Merged in fix/3697-prettier-configs (pull request #3396)
fix(SW-3691): Setup one prettier config for whole repo * Setup prettierrc in root and remove other configs Approved-by: Joakim Jäderberg Approved-by: Linus Flood
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import type { Meta, StoryObj } from '@storybook/nextjs-vite'
|
||||
import type { Meta, StoryObj } from "@storybook/nextjs-vite"
|
||||
|
||||
import { InputLabel } from './InputLabel'
|
||||
import { InputLabel } from "./InputLabel"
|
||||
|
||||
const meta: Meta<typeof InputLabel> = {
|
||||
title: 'Core Components/InputLabel',
|
||||
title: "Core Components/InputLabel",
|
||||
component: InputLabel,
|
||||
argTypes: {},
|
||||
}
|
||||
@@ -14,21 +14,21 @@ type Story = StoryObj<typeof InputLabel>
|
||||
|
||||
export const Default: Story = {
|
||||
args: {
|
||||
children: 'Label',
|
||||
children: "Label",
|
||||
required: false,
|
||||
},
|
||||
}
|
||||
|
||||
export const Discreet: Story = {
|
||||
args: {
|
||||
children: 'Label',
|
||||
size: 'discreet',
|
||||
children: "Label",
|
||||
size: "discreet",
|
||||
},
|
||||
}
|
||||
|
||||
export const Small: Story = {
|
||||
args: {
|
||||
children: 'Label',
|
||||
size: 'small',
|
||||
children: "Label",
|
||||
size: "small",
|
||||
},
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { inputLabelVariants } from './variants'
|
||||
import { inputLabelVariants } from "./variants"
|
||||
|
||||
import type { InputLabelProps } from './types'
|
||||
import type { InputLabelProps } from "./types"
|
||||
|
||||
export function InputLabel({
|
||||
children,
|
||||
@@ -23,7 +23,7 @@ export function InputLabel({
|
||||
<span className={classNames} {...rest}>
|
||||
{children}
|
||||
{/* eslint-disable-next-line formatjs/no-literal-string-in-jsx */}
|
||||
{required && <span aria-hidden="true">{' *'}</span>}
|
||||
{required && <span aria-hidden="true">{" *"}</span>}
|
||||
</span>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -1 +1 @@
|
||||
export { InputLabel } from './InputLabel'
|
||||
export { InputLabel } from "./InputLabel"
|
||||
|
||||
@@ -41,10 +41,10 @@
|
||||
|
||||
input:focus ~ .inputLabel,
|
||||
input:placeholder-shown ~ .inputLabel,
|
||||
input[value]:not([value='']) ~ .inputLabel,
|
||||
input[value]:not([value=""]) ~ .inputLabel,
|
||||
textarea:focus ~ .inputLabel,
|
||||
textarea:placeholder-shown ~ .inputLabel,
|
||||
textarea[value]:not([value='']) ~ .inputLabel,
|
||||
textarea[value]:not([value=""]) ~ .inputLabel,
|
||||
.selected {
|
||||
font-family: var(--Label-Font-family), var(--Label-Font-fallback);
|
||||
font-size: var(--Label-Size);
|
||||
@@ -87,7 +87,7 @@ textarea:disabled ~ .inputLabel {
|
||||
order: unset;
|
||||
}
|
||||
|
||||
:global(.select-container)[data-open='true'] .inputLabel:not(.discreet),
|
||||
:global(.select-container)[data-open="true"] .inputLabel:not(.discreet),
|
||||
:global(.react-aria-SelectValue):has(:nth-child(2)) .inputLabel:not(.discreet) {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { VariantProps } from 'class-variance-authority'
|
||||
import type { VariantProps } from "class-variance-authority"
|
||||
|
||||
import type { inputLabelVariants } from './variants'
|
||||
import type { inputLabelVariants } from "./variants"
|
||||
|
||||
export interface InputLabelProps
|
||||
extends
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { cva } from 'class-variance-authority'
|
||||
import { cva } from "class-variance-authority"
|
||||
|
||||
import styles from './inputLabel.module.css'
|
||||
import styles from "./inputLabel.module.css"
|
||||
|
||||
export const inputLabelVariants = cva(styles.inputLabel, {
|
||||
variants: {
|
||||
@@ -20,7 +20,7 @@ export const inputLabelVariants = cva(styles.inputLabel, {
|
||||
},
|
||||
},
|
||||
defaultVariants: {
|
||||
size: 'regular',
|
||||
size: "regular",
|
||||
required: false,
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user