@midas-ds/components 16.4.0 โ†’ 16.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/accordion/Accordion.stories.d.ts +24 -0
  3. package/badge/Badge.stories.d.ts +17 -0
  4. package/breadcrumbs/Breadcrumbs.stories.d.ts +16 -0
  5. package/button/Button.stories.d.ts +25 -0
  6. package/button/ButtonGroup.stories.d.ts +15 -0
  7. package/calendar/Calendar.stories.d.ts +15 -0
  8. package/calendar/RangeCalendar.stories.d.ts +13 -0
  9. package/card/Card.stories.d.ts +12 -0
  10. package/checkbox/Checkbox.stories.d.ts +30 -0
  11. package/checkbox/CheckboxGroup.stories.d.ts +29 -0
  12. package/color-scheme-switch/ColorSchemeSwitch.stories.d.ts +6 -0
  13. package/combobox/ComboBox.stories.d.ts +44 -0
  14. package/date-field/DateField.stories.d.ts +13 -0
  15. package/date-picker/DatePicker.stories.d.ts +14 -0
  16. package/date-picker/DateRangePicker.stories.d.ts +38 -0
  17. package/file-upload/DropZone.stories.d.ts +6 -0
  18. package/file-upload/FileUpload.stories.d.ts +11 -0
  19. package/grid/Grid.stories.d.ts +30 -0
  20. package/heading/Heading.stories.d.ts +30 -0
  21. package/info-banner/InfoBanner.stories.d.ts +16 -0
  22. package/label/Label.stories.d.ts +10 -0
  23. package/layout/Layout.stories.d.ts +9 -0
  24. package/legacy-select/LegacySelect.stories.d.ts +27 -0
  25. package/link/Link.stories.d.ts +14 -0
  26. package/link-button/LinkButton.stories.d.ts +12 -0
  27. package/logo/Logo.stories.d.ts +7 -0
  28. package/menu/Menu.stories.d.ts +34 -0
  29. package/modal/Dialog.stories.d.ts +15 -0
  30. package/package.json +1 -1
  31. package/popover/Popover.stories.d.ts +18 -0
  32. package/progress-bar/ProgressBar.stories.d.ts +15 -0
  33. package/radio/Radio.stories.d.ts +53 -0
  34. package/search-field/SearchField.stories.d.ts +22 -0
  35. package/select/Select.stories.d.ts +45 -0
  36. package/skeleton/Skeleton.Form.stories.d.ts +20 -0
  37. package/skeleton/Skeleton.stories.d.ts +10 -0
  38. package/spinner/Spinner.stories.d.ts +20 -0
  39. package/table/Table.stories.d.ts +31 -0
  40. package/tabs/Tabs.stories.d.ts +22 -0
  41. package/tag/Tag.stories.d.ts +8 -0
  42. package/text/Text.stories.d.ts +12 -0
  43. package/textfield/TextArea.stories.d.ts +367 -0
  44. package/textfield/TextField.stories.d.ts +34 -0
  45. package/toast/Toast.stories.d.ts +22 -0
  46. package/tooltip/Tooltip.stories.d.ts +26 -0
  47. package/utils/tests.d.ts +17 -0
package/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ ## 16.4.1 (2026-01-16)
2
+
3
+ ### ๐Ÿงช Tests updated
4
+
5
+ - **textfield:** rename file ([8287e354be](https://github.com/migrationsverket/midas/commit/8287e354be))
6
+ - replace jest with vitest ([6d8ca7deb3](https://github.com/migrationsverket/midas/commit/6d8ca7deb3))
7
+ - move new tests into component folder ([306aaaa4f5](https://github.com/migrationsverket/midas/commit/306aaaa4f5))
8
+ - **Table:** skip a11y tests for slow virtualized table ([a6055b5c91](https://github.com/migrationsverket/midas/commit/a6055b5c91))
9
+ - move tests and stories to component folders ([967763f723](https://github.com/migrationsverket/midas/commit/967763f723))
10
+
1
11
  ## 16.4.0 (2026-01-15)
2
12
 
3
13
  ### ๐Ÿš€ Features
@@ -0,0 +1,24 @@
1
+ import { default as React } from 'react';
2
+ import { StoryObj } from '@storybook/react-vite';
3
+ import { Accordion } from '.';
4
+ type Story = StoryObj<typeof Accordion>;
5
+ declare const _default: {
6
+ component: React.FC<import('./Accordion').MidasAccordion>;
7
+ subcomponents: {
8
+ AccordionItem: React.ComponentType<unknown>;
9
+ };
10
+ title: string;
11
+ tags: string[];
12
+ args: {
13
+ size: "large";
14
+ };
15
+ };
16
+ export default _default;
17
+ export declare const Default: Story;
18
+ export declare const Contained: Story;
19
+ export declare const AllowsMultipleExpanded: Story;
20
+ export declare const DefaultExpandedKeys: Story;
21
+ export declare const CustomTriggerElements: Story;
22
+ export declare const DynamicContent: Story;
23
+ export declare const DS1060: Story;
24
+ export declare const AccordionHasBackground: Story;
@@ -0,0 +1,17 @@
1
+ import { StoryObj } from '@storybook/react-vite';
2
+ import { Badge } from './Badge';
3
+ type Story = StoryObj<typeof Badge>;
4
+ declare const _default: {
5
+ component: import('react').FC<import('react').HTMLAttributes<HTMLSpanElement>>;
6
+ title: string;
7
+ tags: string[];
8
+ parameters: {
9
+ layout: string;
10
+ };
11
+ args: {};
12
+ render: (args: import('react').HTMLAttributes<HTMLSpanElement>) => import("react/jsx-runtime").JSX.Element;
13
+ };
14
+ export default _default;
15
+ export declare const NoLabel: Story;
16
+ export declare const WithLabel: Story;
17
+ export declare const LongLabel: Story;
@@ -0,0 +1,16 @@
1
+ import { StoryObj } from '@storybook/react-vite';
2
+ import { Breadcrumbs } from './Breadcrumbs';
3
+ type Story = StoryObj<typeof Breadcrumbs>;
4
+ declare const _default: {
5
+ component: <T extends import('./Breadcrumbs').BreadcrumbItem>({ items, className, ...rest }: import('./Breadcrumbs').BreadcrumbsProps<T>) => import("react/jsx-runtime").JSX.Element;
6
+ title: string;
7
+ tags: string[];
8
+ args: {
9
+ items: {
10
+ title: string;
11
+ href: string;
12
+ }[];
13
+ };
14
+ };
15
+ export default _default;
16
+ export declare const Primary: Story;
@@ -0,0 +1,25 @@
1
+ import { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { Button } from './Button';
3
+ declare const meta: Meta<typeof Button>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Button>;
6
+ export declare const Primary: Story;
7
+ export declare const Secondary: Story;
8
+ export declare const TertiaryWithIcon: Story;
9
+ export declare const PrimaryDisabled: Story;
10
+ export declare const SecondaryDisabled: Story;
11
+ export declare const PrimaryFullwidth: {
12
+ args: {
13
+ children: string;
14
+ fullwidth: boolean;
15
+ };
16
+ };
17
+ export declare const Icon: {
18
+ args: {
19
+ children: undefined;
20
+ icon: import('react').ForwardRefExoticComponent<Omit<import('lucide-react').LucideProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
21
+ variant: string;
22
+ 'aria-label': string;
23
+ };
24
+ };
25
+ export declare const Danger: Story;
@@ -0,0 +1,15 @@
1
+ import { StoryObj } from '@storybook/react-vite';
2
+ import { ButtonGroup } from './ButtonGroup';
3
+ type Story = StoryObj<typeof ButtonGroup>;
4
+ declare const _default: {
5
+ component: import('react').FC<import('react').HTMLAttributes<HTMLDivElement>>;
6
+ title: string;
7
+ tags: string[];
8
+ parameters: {
9
+ layout: string;
10
+ };
11
+ args: {};
12
+ argTypes: {};
13
+ };
14
+ export default _default;
15
+ export declare const Primary: Story;
@@ -0,0 +1,15 @@
1
+ import { StoryObj } from '@storybook/react-vite';
2
+ import { Calendar } from './Calendar';
3
+ type Story = StoryObj<typeof Calendar>;
4
+ declare const _default: {
5
+ component: import('react').FC<import('./Calendar').CalendarProps>;
6
+ render: (args: import('./Calendar').CalendarProps) => import("react/jsx-runtime").JSX.Element;
7
+ title: string;
8
+ tags: string[];
9
+ };
10
+ export default _default;
11
+ export declare const Primary: Story;
12
+ export declare const Disabled: Story;
13
+ export declare const ReadOnly: Story;
14
+ export declare const Invalid: Story;
15
+ export declare const UnavailableWeekends: Story;
@@ -0,0 +1,13 @@
1
+ import { StoryObj } from '@storybook/react-vite';
2
+ import { RangeCalendar } from './RangeCalendar';
3
+ type Story = StoryObj<typeof RangeCalendar>;
4
+ declare const _default: {
5
+ component: import('react').FC<import('./RangeCalendar').RangeCalendarProps>;
6
+ title: string;
7
+ tags: string[];
8
+ };
9
+ export default _default;
10
+ export declare const Primary: Story;
11
+ export declare const SelectedDates: Story;
12
+ export declare const Disabled: Story;
13
+ export declare const ReadOnly: Story;
@@ -0,0 +1,12 @@
1
+ import { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { Card } from './Card';
3
+ declare const meta: Meta<typeof Card>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Card>;
6
+ export declare const Example: Story;
7
+ export declare const Horizontal: Story;
8
+ export declare const WithActions: Story;
9
+ export declare const WithPrimaryAction: Story;
10
+ export declare const WithLink: Story;
11
+ export declare const WithImage: Story;
12
+ export declare const WithContainedImage: Story;
@@ -0,0 +1,30 @@
1
+ import { StoryObj } from '@storybook/react-vite';
2
+ import { Checkbox } from './Checkbox';
3
+ type Story = StoryObj<typeof Checkbox>;
4
+ declare const _default: {
5
+ component: import('react').ForwardRefExoticComponent<import('react-aria').AriaCheckboxProps & import('react-aria-components').SlotProps & {
6
+ className?: string;
7
+ } & import('react').RefAttributes<HTMLLabelElement>>;
8
+ title: string;
9
+ tags: string[];
10
+ parameters: {
11
+ layout: string;
12
+ };
13
+ args: {
14
+ isDisabled: false;
15
+ isIndeterminate: false;
16
+ isInvalid: false;
17
+ isReadOnly: false;
18
+ isRequired: false;
19
+ value: string;
20
+ children: string;
21
+ };
22
+ };
23
+ export default _default;
24
+ export declare const Primary: Story;
25
+ export declare const Disabled: Story;
26
+ export declare const ReadOnly: Story;
27
+ export declare const Invalid: Story;
28
+ export declare const Indeterminate: Story;
29
+ export declare const Selected: Story;
30
+ export declare const Required: Story;
@@ -0,0 +1,29 @@
1
+ import { StoryObj } from '@storybook/react-vite';
2
+ import { CheckboxGroup } from './CheckboxGroup';
3
+ type Story = StoryObj<typeof CheckboxGroup>;
4
+ declare const _default: {
5
+ title: string;
6
+ component: typeof CheckboxGroup;
7
+ parameters: {
8
+ layout: string;
9
+ };
10
+ args: {
11
+ isInvalid: false;
12
+ isDisabled: false;
13
+ isRequired: false;
14
+ isReadOnly: false;
15
+ label: string;
16
+ description: string;
17
+ errorMessage: string;
18
+ errorPosition: "top";
19
+ children: import("react/jsx-runtime").JSX.Element[];
20
+ };
21
+ tags: string[];
22
+ };
23
+ export default _default;
24
+ export declare const Primary: Story;
25
+ export declare const ShowSelectAll: Story;
26
+ export declare const SelectAllInteraction: Story;
27
+ export declare const Disabled: Story;
28
+ export declare const ReadOnly: Story;
29
+ export declare const Invalid: Story;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { ColorSchemeSwitch } from './ColorSchemeSwitch';
3
+ declare const meta: Meta<typeof ColorSchemeSwitch>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof ColorSchemeSwitch>;
6
+ export declare const Primary: Story;
@@ -0,0 +1,44 @@
1
+ import { StoryObj } from '@storybook/react-vite';
2
+ import { optionsWithSections } from '../utils/tests';
3
+ import { ComboBox } from './ComboBox';
4
+ type Item = (typeof options)[0];
5
+ type Section = (typeof optionsWithSections)[0];
6
+ type Story<T extends object = Item> = StoryObj<typeof ComboBox<T>>;
7
+ declare const options: {
8
+ id: number;
9
+ name: string;
10
+ }[];
11
+ declare const _default: {
12
+ component: typeof ComboBox;
13
+ title: string;
14
+ tags: string[];
15
+ args: {
16
+ label: string;
17
+ placeholder: string;
18
+ description: string;
19
+ errorMessage: string;
20
+ errorPosition: "top";
21
+ size: "large";
22
+ };
23
+ argTypes: {
24
+ placeholder: {
25
+ control: "text";
26
+ };
27
+ };
28
+ render: (args: import('./ComboBox').ComboBoxProps<{
29
+ id: number;
30
+ name: string;
31
+ }>) => import("react/jsx-runtime").JSX.Element;
32
+ };
33
+ export default _default;
34
+ export declare const Primary: Story;
35
+ export declare const Invalid: Story;
36
+ export declare const DS1253: Story;
37
+ export declare const MediumSizeInvalid: Story;
38
+ export declare const Disabled: Story;
39
+ export declare const ReadOnly: Story;
40
+ export declare const Required: Story;
41
+ export declare const Sectioned: Story<Section>;
42
+ export declare const PerformanceTest: Story;
43
+ export declare const AsynchronousLoadingWithEmptyMessage: Story;
44
+ export declare const InfiniteScroll: Story;
@@ -0,0 +1,13 @@
1
+ import { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { DateField } from './DateField';
3
+ type Story = StoryObj<typeof DateField>;
4
+ declare const _default: Meta<typeof DateField>;
5
+ export default _default;
6
+ /** Don't put format in description, it changes with browser language settings! */
7
+ export declare const Primary: Story;
8
+ export declare const Invalid: Story;
9
+ export declare const Disabled: Story;
10
+ export declare const ReadOnly: Story;
11
+ /** When using uncontrolled value */
12
+ export declare const WithDefaultValue: Story;
13
+ export declare const WithClearButton: Story;
@@ -0,0 +1,14 @@
1
+ import { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { DatePicker } from './DatePicker';
3
+ declare const meta: Meta<typeof DatePicker>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof DatePicker>;
6
+ export declare const Primary: Story;
7
+ export declare const WithTime: Story;
8
+ export declare const Disabled: Story;
9
+ export declare const ReadOnly: Story;
10
+ export declare const Invalid: Story;
11
+ export declare const Required: Story;
12
+ export declare const CustomValiation: Story;
13
+ export declare const ControlledState: Story;
14
+ export declare const WithClearButton: Story;
@@ -0,0 +1,38 @@
1
+ import { StoryObj } from '@storybook/react-vite';
2
+ import { DateRangePicker } from './DateRangePicker';
3
+ type Story = StoryObj<typeof DateRangePicker>;
4
+ declare const _default: {
5
+ component: import('react').FC<import('./DateRangePicker').DateRangePickerProps>;
6
+ title: string;
7
+ tags: string[];
8
+ parameters: {
9
+ a11y: {
10
+ config: {
11
+ rules: {
12
+ id: string;
13
+ selector: string;
14
+ enabled: boolean;
15
+ }[];
16
+ };
17
+ options: {
18
+ rules: {
19
+ 'color-contrast': {
20
+ enabled: boolean;
21
+ };
22
+ };
23
+ };
24
+ };
25
+ };
26
+ args: {
27
+ label: string;
28
+ description: string;
29
+ errorMessage: string;
30
+ errorPosition: "top";
31
+ };
32
+ };
33
+ export default _default;
34
+ export declare const Primary: Story;
35
+ export declare const Disabled: Story;
36
+ export declare const ReadOnly: Story;
37
+ export declare const Invalid: Story;
38
+ export declare const WithClearButton: Story;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { DropZone } from './FileUpload';
3
+ declare const meta: Meta<typeof DropZone>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
@@ -0,0 +1,11 @@
1
+ import { StoryObj } from '@storybook/react-vite';
2
+ import { DropZone } from './FileUpload';
3
+ type Story = StoryObj<typeof DropZone>;
4
+ declare const _default: {
5
+ component: import('react').FC<import('react-aria-components').DropZoneProps>;
6
+ title: string;
7
+ tags: string[];
8
+ args: {};
9
+ };
10
+ export default _default;
11
+ export declare const DropIt: Story;
@@ -0,0 +1,30 @@
1
+ declare const _default: {
2
+ component: import('react').FC<import('./Grid').GridProps>;
3
+ subcomponents: {
4
+ GridItem: import('react').FC<import('./GridItem').GridItemProps>;
5
+ };
6
+ title: string;
7
+ tags: string[];
8
+ parameters: {
9
+ layout: string;
10
+ };
11
+ argTypes: {
12
+ isContained: {
13
+ control: {
14
+ type: "boolean";
15
+ };
16
+ };
17
+ removeMargins: {
18
+ control: {
19
+ type: "boolean";
20
+ };
21
+ };
22
+ };
23
+ };
24
+ export default _default;
25
+ export declare const Primary: {
26
+ args: {};
27
+ render: ({ ...args }: {
28
+ [x: string]: any;
29
+ }) => import("react/jsx-runtime").JSX.Element;
30
+ };
@@ -0,0 +1,30 @@
1
+ import { StoryObj } from '@storybook/react-vite';
2
+ import { Heading } from './Heading';
3
+ type Story = StoryObj<typeof Heading>;
4
+ declare const _default: {
5
+ component: import('react').FC<import('./Heading').HeadingProps>;
6
+ title: string;
7
+ tags: string[];
8
+ args: {
9
+ isExpressive: false;
10
+ enableMargins: false;
11
+ };
12
+ argTypes: {
13
+ level: {
14
+ control: {
15
+ max: number;
16
+ min: number;
17
+ };
18
+ };
19
+ };
20
+ };
21
+ export default _default;
22
+ export declare const Heading1: Story;
23
+ export declare const ExpressiveHeading1: Story;
24
+ export declare const Heading2: Story;
25
+ export declare const ExpressiveHeading2: Story;
26
+ export declare const Heading3: Story;
27
+ export declare const ExpressiveHeading3: Story;
28
+ export declare const ExpressiveHeading4: Story;
29
+ export declare const ExpressiveHeading5: Story;
30
+ export declare const ChangeSemanticElement: Story;
@@ -0,0 +1,16 @@
1
+ import { StoryObj } from '@storybook/react-vite';
2
+ import { default as React } from 'react';
3
+ import { InfoBanner } from './InfoBanner';
4
+ type Story = StoryObj<typeof InfoBanner>;
5
+ declare const _default: {
6
+ component: React.FC<import('./InfoBanner').InfoBannerProps>;
7
+ title: string;
8
+ tags: string[];
9
+ };
10
+ export default _default;
11
+ export declare const Success: Story;
12
+ export declare const Warning: Story;
13
+ export declare const Info: Story;
14
+ export declare const Important: Story;
15
+ export declare const Dismissable: Story;
16
+ export declare const Controlled: Story;
@@ -0,0 +1,10 @@
1
+ import { StoryObj } from '@storybook/react-vite';
2
+ import { Label } from './Label';
3
+ type Story = StoryObj<typeof Label>;
4
+ declare const _default: {
5
+ component: import('react').FC<import('react-aria-components').LabelProps>;
6
+ title: string;
7
+ tags: string[];
8
+ };
9
+ export default _default;
10
+ export declare const Primary: Story;
@@ -0,0 +1,9 @@
1
+ import { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { Layout } from './Layout';
3
+ declare const meta: Meta<typeof Layout>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Layout>;
6
+ export declare const Primary: Story;
7
+ export declare const External: Story;
8
+ export declare const OnlyHeader: Story;
9
+ export declare const Navbar: Story;
@@ -0,0 +1,27 @@
1
+ import { StoryObj } from '@storybook/react-vite';
2
+ import { LegacySelect } from '.';
3
+ type Story = StoryObj<typeof LegacySelect>;
4
+ declare const _default: {
5
+ component: import('react').ForwardRefExoticComponent<Omit<import('./types').SelectProps, "children" | "items"> & {
6
+ options: import('..').ListBoxOption[];
7
+ } & import('react').RefAttributes<HTMLButtonElement>>;
8
+ title: string;
9
+ tags: string[];
10
+ args: {
11
+ description: string;
12
+ isDisabled: false;
13
+ isSelectableAll: false;
14
+ label: string;
15
+ options: {
16
+ name: string;
17
+ id: string;
18
+ }[];
19
+ placeholder: string;
20
+ selectionMode: "single";
21
+ showTags: false;
22
+ errorPosition: "top";
23
+ size: "large";
24
+ };
25
+ };
26
+ export default _default;
27
+ export declare const Primary: Story;
@@ -0,0 +1,14 @@
1
+ import { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { Link } from './Link';
3
+ declare const meta: Meta<typeof Link>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Link>;
6
+ export declare const Primary: Story;
7
+ export declare const PrimaryDisabled: Story;
8
+ export declare const ExternalLink: Story;
9
+ export declare const DownloadLink: Story;
10
+ export declare const Standalone: Story;
11
+ export declare const StandaloneDisabled: Story;
12
+ export declare const ExternalLinkStandalone: Story;
13
+ export declare const DownloadLinkStandalone: Story;
14
+ export declare const CustomIcon: Story;
@@ -0,0 +1,12 @@
1
+ import { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { LinkButton } from './LinkButton';
3
+ declare const meta: Meta<typeof LinkButton>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof LinkButton>;
6
+ export declare const Primary: Story;
7
+ export declare const Secondary: Story;
8
+ export declare const Tertiary: Story;
9
+ export declare const Previous: Story;
10
+ export declare const Disabled: Story;
11
+ export declare const AppLink: Story;
12
+ export declare const Danger: Story;
@@ -0,0 +1,7 @@
1
+ import { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { Logo } from './Logo';
3
+ declare const meta: Meta<typeof Logo>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Logo>;
6
+ export declare const Primary: Story;
7
+ export declare const Monochrome: Story;
@@ -0,0 +1,34 @@
1
+ import { StoryObj } from '@storybook/react-vite';
2
+ import { Menu } from './Menu';
3
+ interface Item {
4
+ id: string | number;
5
+ name: string;
6
+ children?: Item[];
7
+ [prop: string]: unknown;
8
+ }
9
+ type Story = StoryObj<typeof Menu<Item>>;
10
+ declare const _default: {
11
+ title: string;
12
+ component: <T extends import('./Menu').MenuItemObject>({ className, size, ...rest }: import('./Menu').MenuProps<T>) => import("react/jsx-runtime").JSX.Element;
13
+ subcomponents: {
14
+ MenuItem: <T extends import('./Menu').MenuItemObject>(props: import('./MenuItem').MenuItemProps<T>) => import("react/jsx-runtime").JSX.Element;
15
+ };
16
+ render: (args: import('./Menu').MenuProps<import('./Menu').MenuItemObject>) => import("react/jsx-runtime").JSX.Element;
17
+ args: {
18
+ children: (item: import('./Menu').MenuItemObject) => import("react/jsx-runtime").JSX.Element;
19
+ items: {
20
+ id: number;
21
+ name: string;
22
+ }[];
23
+ };
24
+ };
25
+ export default _default;
26
+ export declare const Primary: Story;
27
+ export declare const ControlledSingleSelection: Story;
28
+ export declare const ControlledMultipleSelection: Story;
29
+ export declare const Sections: Story;
30
+ export declare const Separators: Story;
31
+ export declare const TextSlots: Story;
32
+ export declare const MultiSelectWithDescriptions: Story;
33
+ export declare const DisabledItems: Story;
34
+ export declare const SubMenus: Story;
@@ -0,0 +1,15 @@
1
+ import { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { Modal } from './Dialog';
3
+ type Story = StoryObj<typeof Modal>;
4
+ declare const _default: Meta<typeof Modal>;
5
+ export default _default;
6
+ export declare const Default: Story;
7
+ export declare const NotDismissable: Story;
8
+ /**
9
+ * For special cases when modal should not be closable without taking further action
10
+ */
11
+ export declare const HiddenCloseButton: Story;
12
+ export declare const EmptyTitle: Story;
13
+ export declare const Scrollable: Story;
14
+ export declare const DS1282: Story;
15
+ export declare const LongTitle: Story;
package/package.json CHANGED
@@ -14,7 +14,7 @@
14
14
  "description": "Midas Components",
15
15
  "homepage": "https://designsystem.migrationsverket.se/",
16
16
  "license": "CC0-1.0",
17
- "version": "16.4.0",
17
+ "version": "16.4.1",
18
18
  "module": "./index.js",
19
19
  "type": "module",
20
20
  "main": "./index.js",
@@ -0,0 +1,18 @@
1
+ import { StoryObj } from '@storybook/react-vite';
2
+ import { Popover } from './Popover';
3
+ import { DialogTrigger } from 'react-aria-components';
4
+ type Story = StoryObj<typeof Popover>;
5
+ declare const _default: {
6
+ component: typeof Popover;
7
+ subcomponents: {
8
+ DialogTrigger: typeof DialogTrigger;
9
+ };
10
+ title: string;
11
+ tags: string[];
12
+ parameters: {
13
+ layout: string;
14
+ };
15
+ };
16
+ export default _default;
17
+ export declare const Primary: Story;
18
+ export declare const Placement: Story;
@@ -0,0 +1,15 @@
1
+ import { StoryObj } from '@storybook/react-vite';
2
+ import { ProgressBar } from './ProgressBar';
3
+ type Story = StoryObj<typeof ProgressBar>;
4
+ declare const _default: {
5
+ component: import('react').FC<import('./ProgressBar').ProgressBarProps>;
6
+ title: string;
7
+ tags: string[];
8
+ args: {
9
+ isIndeterminate: false;
10
+ };
11
+ };
12
+ export default _default;
13
+ export declare const Primary: Story;
14
+ export declare const WithoutLabels: Story;
15
+ export declare const IsIndeterminate: Story;