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,25 +1,25 @@
|
||||
import type { Meta, StoryObj } from '@storybook/nextjs-vite'
|
||||
import type { Meta, StoryObj } from "@storybook/nextjs-vite"
|
||||
|
||||
import { Progress } from './index'
|
||||
import { Progress } from "./index"
|
||||
|
||||
const meta: Meta<typeof Progress> = {
|
||||
title: 'Core Components/Progress',
|
||||
title: "Core Components/Progress",
|
||||
component: Progress,
|
||||
parameters: {
|
||||
backgrounds: { disable: true },
|
||||
},
|
||||
argTypes: {
|
||||
value: {
|
||||
control: { type: 'range', min: 0, max: 100, step: 1 },
|
||||
description: 'The current progress value (0-100)',
|
||||
control: { type: "range", min: 0, max: 100, step: 1 },
|
||||
description: "The current progress value (0-100)",
|
||||
},
|
||||
'aria-label': {
|
||||
control: 'text',
|
||||
description: 'Accessible label for the progress bar',
|
||||
"aria-label": {
|
||||
control: "text",
|
||||
description: "Accessible label for the progress bar",
|
||||
},
|
||||
},
|
||||
args: {
|
||||
'aria-label': 'Loading progress',
|
||||
"aria-label": "Loading progress",
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
import { ProgressBar } from 'react-aria-components'
|
||||
import { cx } from 'class-variance-authority'
|
||||
import styles from './progress.module.css'
|
||||
import { ProgressProps } from './types'
|
||||
import { ProgressBar } from "react-aria-components"
|
||||
import { cx } from "class-variance-authority"
|
||||
import styles from "./progress.module.css"
|
||||
import { ProgressProps } from "./types"
|
||||
|
||||
export function Progress({
|
||||
value,
|
||||
minValue = 0,
|
||||
maxValue = 100,
|
||||
'aria-label': ariaLabel,
|
||||
"aria-label": ariaLabel,
|
||||
className,
|
||||
}: ProgressProps) {
|
||||
return (
|
||||
|
||||
@@ -2,6 +2,6 @@ export interface ProgressProps {
|
||||
value: number
|
||||
minValue?: number
|
||||
maxValue?: number
|
||||
'aria-label'?: string
|
||||
"aria-label"?: string
|
||||
className?: string
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { cva } from 'class-variance-authority'
|
||||
import { cva } from "class-variance-authority"
|
||||
|
||||
import styles from './progress.module.css'
|
||||
import styles from "./progress.module.css"
|
||||
|
||||
export const config = {
|
||||
variants: {},
|
||||
|
||||
Reference in New Issue
Block a user