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 { Select } from './Select'
|
||||
import { Select } from "./Select"
|
||||
|
||||
const meta: Meta<typeof Select> = {
|
||||
title: 'Core Components/Select',
|
||||
title: "Core Components/Select",
|
||||
component: Select,
|
||||
argTypes: {},
|
||||
}
|
||||
@@ -13,43 +13,43 @@ export default meta
|
||||
type Story = StoryObj<typeof Select>
|
||||
|
||||
const items = [
|
||||
{ label: 'Foo', value: 'foo' },
|
||||
{ label: 'Bar', value: 'bar' },
|
||||
{ label: 'Baz', value: 'baz' },
|
||||
{ label: "Foo", value: "foo" },
|
||||
{ label: "Bar", value: "bar" },
|
||||
{ label: "Baz", value: "baz" },
|
||||
]
|
||||
|
||||
export const Default: Story = {
|
||||
args: {
|
||||
items,
|
||||
label: 'Select an item',
|
||||
name: 'foo',
|
||||
label: "Select an item",
|
||||
name: "foo",
|
||||
},
|
||||
}
|
||||
|
||||
export const DefaultSelected: Story = {
|
||||
args: {
|
||||
items,
|
||||
label: 'Select an item',
|
||||
name: 'foo',
|
||||
defaultSelectedKey: 'foo',
|
||||
label: "Select an item",
|
||||
name: "foo",
|
||||
defaultSelectedKey: "foo",
|
||||
},
|
||||
}
|
||||
|
||||
export const Icons: Story = {
|
||||
args: {
|
||||
items,
|
||||
label: 'Select an item',
|
||||
name: 'foo',
|
||||
icon: 'star',
|
||||
itemIcon: 'check',
|
||||
label: "Select an item",
|
||||
name: "foo",
|
||||
icon: "star",
|
||||
itemIcon: "check",
|
||||
},
|
||||
}
|
||||
|
||||
export const Filtering: Story = {
|
||||
args: {
|
||||
items,
|
||||
label: 'Select an item',
|
||||
name: 'foo',
|
||||
label: "Select an item",
|
||||
name: "foo",
|
||||
enableFiltering: true,
|
||||
},
|
||||
}
|
||||
@@ -57,9 +57,9 @@ export const Filtering: Story = {
|
||||
export const FilteringSelected: Story = {
|
||||
args: {
|
||||
items,
|
||||
label: 'Select an item',
|
||||
name: 'foo',
|
||||
label: "Select an item",
|
||||
name: "foo",
|
||||
enableFiltering: true,
|
||||
defaultSelectedKey: 'foo',
|
||||
defaultSelectedKey: "foo",
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user