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:
Rasmus Langvad
2026-01-07 12:45:50 +00:00
parent 932413412b
commit d0546926a9
500 changed files with 18367 additions and 18419 deletions

View File

@@ -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",
},
}

View File

@@ -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>
)
}

View File

@@ -1 +1 @@
export { InputLabel } from './InputLabel'
export { InputLabel } from "./InputLabel"

View File

@@ -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;
}

View File

@@ -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

View File

@@ -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,
},
})