@midas-ds/components 17.30.0 → 17.30.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.
- package/CHANGELOG.md +6 -0
- package/accordion/index.js +1 -1
- package/badge/index.js +1 -1
- package/breadcrumbs/index.js +1 -1
- package/button/index.js +1 -1
- package/calendar/index.js +1 -1
- package/card/index.js +1 -1
- package/checkbox/index.js +1 -1
- package/chunks/{accordion-BzmYSOS3.js → accordion-DlVM6IKH.js} +3 -3
- package/chunks/{badge-BfK6XrlL.js → badge-C4bXJmhn.js} +1 -1
- package/chunks/{breadcrumbs-DV0ZJc62.js → breadcrumbs-BGnyY3bO.js} +1 -1
- package/chunks/{button-C-WkFek9.js → button-dpe6hXmI.js} +2 -2
- package/chunks/{calendar-Bt1FLxqr.js → calendar-BnT8aqrk.js} +46 -45
- package/chunks/{card-CdH2UMUW.js → card-C0S9Kyi2.js} +3 -3
- package/chunks/{checkbox-DiFQy3MS.js → checkbox-B1RWLsu9.js} +4 -4
- package/chunks/{clear-button-Bv0YGBNG.js → clear-button-DWtOkhCH.js} +1 -1
- package/chunks/clsx-DAqHMl_k.js +7 -0
- package/chunks/{color-scheme-switch-0axiBsna.js → color-scheme-switch-DVyIszaD.js} +4 -4
- package/chunks/{combobox-DkZbA3o4.js → combobox-BLAVO2ax.js} +5 -5
- package/chunks/{date-field-CPpWZqws.js → date-field-D5QLfSD_.js} +5 -5
- package/chunks/date-picker-BWSHiwIN.js +142 -0
- package/chunks/{drop-zone-DH3ZyHsr.js → drop-zone-DNhEbH4w.js} +1 -1
- package/chunks/{field-error-LtNtEKDp.js → field-error-BHoPnRe4.js} +2 -2
- package/chunks/{file-list-D8Zc1aYS.js → file-list-Ntos8dkG.js} +4 -4
- package/chunks/{grid-Cn_8RSvj.js → grid-BR68fpvW.js} +1 -1
- package/chunks/{heading-BEl_z-5T.js → heading-DcOjYrUM.js} +1 -1
- package/chunks/{info-banner-BVKtmVKN.js → info-banner-DXjPEG69.js} +2 -2
- package/chunks/{label-Dw5p84T2.js → label-pGlER0ro.js} +4 -4
- package/chunks/{layout-CUAjEEuH.js → layout-Bue2Lkbc.js} +6 -6
- package/chunks/{link-DHu1cTmz.js → link-B76JDA2N.js} +1 -1
- package/chunks/{link-button-DYg_0p4Y.js → link-button-BeXxC22w.js} +1 -1
- package/chunks/{list-box-DmEoMvX1.js → list-box-BzBJX0nP.js} +3 -3
- package/chunks/{logo-DyZ2pXt7.js → logo-DSJ1bUJZ.js} +1 -1
- package/chunks/{menu-CP0Xvmx0.js → menu-DbQ98noD.js} +1 -1
- package/chunks/{modal-B_uSoXZM.js → modal-C8rs1jfL.js} +3 -3
- package/chunks/{popover-DGcogqbS.js → popover-B82BcP5n.js} +1 -1
- package/chunks/{progress-bar-BfFxpqUv.js → progress-bar-S6GNHQRZ.js} +2 -2
- package/chunks/{radio-_z6ObjYx.js → radio-uAtTm38S.js} +4 -4
- package/chunks/{search-field-Cp_HHDl4.js → search-field-Bx3JApAJ.js} +5 -5
- package/chunks/{select-Wy6NakdH.js → select-CuKVJ1x9.js} +44 -43
- package/chunks/{skeleton-B_BPRPJy.js → skeleton-R_3dS7Ro.js} +1 -1
- package/chunks/{spinner-COGZlDJB.js → spinner-CIjfJeGm.js} +1 -1
- package/chunks/{stack-LF3ExhH9.js → stack-BAHKom_Q.js} +1 -1
- package/chunks/{table-O_Y45Sb7.js → table-DDTeIVh8.js} +2 -2
- package/chunks/{tabs-Co09VWvC.js → tabs-owuRVJ3N.js} +1 -1
- package/chunks/{tag-RjuYlFZI.js → tag-BEawJnJm.js} +2 -2
- package/chunks/{text-DwmZ-ew8.js → text-DnvD4Cjc.js} +1 -1
- package/chunks/textfield-G6u6RJD5.js +113 -0
- package/chunks/{time-field-Cnp-dYhm.js → time-field-Mm1iDLzS.js} +6 -6
- package/chunks/{toast-Dg3fVjSS.js → toast-DZuvVRD_.js} +2 -2
- package/chunks/{toggle-button-CIvsOXQf.js → toggle-button-DD_bXanH.js} +1 -1
- package/chunks/{tooltip-BkesIUIF.js → tooltip-1GBTeMrm.js} +1 -1
- package/clear-button/index.js +1 -1
- package/color-scheme-switch/index.js +1 -1
- package/combobox/index.js +1 -1
- package/date-field/index.js +1 -1
- package/date-picker/index.js +1 -1
- package/drop-zone/index.js +1 -1
- package/field-error/index.js +1 -1
- package/file-list/index.js +1 -1
- package/grid/index.js +1 -1
- package/heading/index.js +1 -1
- package/index.js +45 -44
- package/info-banner/index.js +1 -1
- package/label/index.js +1 -1
- package/layout/Layout.d.ts +1 -2
- package/layout/context/LayoutContext.d.ts +7 -1
- package/layout/index.js +1 -1
- package/link/index.js +1 -1
- package/link-button/index.js +1 -1
- package/list-box/index.js +1 -1
- package/logo/index.js +1 -1
- package/menu/index.js +1 -1
- package/modal/index.js +1 -1
- package/package.json +2 -1
- package/popover/index.js +1 -1
- package/progress-bar/index.js +1 -1
- package/radio/index.js +1 -1
- package/search-field/index.js +1 -1
- package/select/index.js +1 -1
- package/skeleton/index.js +1 -1
- package/spinner/index.js +1 -1
- package/stack/index.js +1 -1
- package/table/index.js +1 -1
- package/tabs/index.js +1 -1
- package/tag/index.js +1 -1
- package/text/index.js +1 -1
- package/textfield/index.js +1 -1
- package/time-field/index.js +1 -1
- package/toast/index.js +1 -1
- package/toggle-button/index.js +1 -1
- package/tooltip/index.js +1 -1
- package/accordion/Accordion.stories.d.ts +0 -23
- package/accordion/AccordionItem.stories.d.ts +0 -25
- package/badge/Badge.stories.d.ts +0 -17
- package/breadcrumbs/Breadcrumbs.stories.d.ts +0 -25
- package/button/Button.stories.d.ts +0 -25
- package/button/ButtonGroup.stories.d.ts +0 -15
- package/calendar/Calendar.stories.d.ts +0 -17
- package/calendar/RangeCalendar.stories.d.ts +0 -15
- package/card/Card.stories.d.ts +0 -19
- package/checkbox/Checkbox.stories.d.ts +0 -30
- package/checkbox/CheckboxGroup.stories.d.ts +0 -31
- package/chunks/clsx-Di52oYUU.js +0 -23
- package/chunks/date-picker-DQ7vCG5-.js +0 -142
- package/chunks/textfield-Bu0Hg2pJ.js +0 -112
- package/color-scheme-switch/ColorSchemeSwitch.stories.d.ts +0 -7
- package/color-scheme-switch/ColorSchemeSwitchMenu.stories.d.ts +0 -8
- package/combobox/ComboBox.stories.d.ts +0 -43
- package/date-field/DateField.stories.d.ts +0 -15
- package/date-picker/DatePicker.stories.d.ts +0 -17
- package/date-picker/DateRangePicker.stories.d.ts +0 -39
- package/drop-zone/DropZone.stories.d.ts +0 -16
- package/file-list/FileList.stories.d.ts +0 -31
- package/grid/Grid.stories.d.ts +0 -28
- package/heading/Heading.stories.d.ts +0 -30
- package/info-banner/InfoBanner.stories.d.ts +0 -16
- package/label/Label.stories.d.ts +0 -10
- package/layout/Layout.stories.d.ts +0 -9
- package/link/Link.stories.d.ts +0 -14
- package/link-button/LinkButton.stories.d.ts +0 -13
- package/list-box/ListBox.stories.d.ts +0 -24
- package/logo/Logo.stories.d.ts +0 -7
- package/menu/Menu.stories.d.ts +0 -35
- package/modal/Modal.stories.d.ts +0 -15
- package/popover/Popover.stories.d.ts +0 -18
- package/progress-bar/ProgressBar.stories.d.ts +0 -18
- package/radio/Radio.stories.d.ts +0 -110
- package/radio/RadioGroup.stories.d.ts +0 -27
- package/search-field/SearchField.stories.d.ts +0 -34
- package/select/Select.stories.d.ts +0 -53
- package/skeleton/Skeleton.Form.stories.d.ts +0 -20
- package/skeleton/Skeleton.stories.d.ts +0 -10
- package/spinner/Spinner.stories.d.ts +0 -20
- package/stack/Stack.stories.d.ts +0 -24
- package/table/Table.stories.d.ts +0 -39
- package/tabs/Tabs.stories.d.ts +0 -31
- package/tag/Tag.stories.d.ts +0 -17
- package/text/Text.stories.d.ts +0 -10
- package/textfield/TextArea.stories.d.ts +0 -365
- package/textfield/TextField.stories.d.ts +0 -39
- package/time-field/TimeField.stories.d.ts +0 -37
- package/toast/Toast.stories.d.ts +0 -24
- package/tooltip/Tooltip.stories.d.ts +0 -26
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { n as e, t } from "./clsx-Di52oYUU.js";
|
|
3
|
-
import { t as n } from "./useLocalizedStringFormatter-CeyBc0x0.js";
|
|
4
|
-
import { n as r } from "./button-C-WkFek9.js";
|
|
5
|
-
import { n as i, t as a } from "./label-Dw5p84T2.js";
|
|
6
|
-
import { t as o } from "./text-DwmZ-ew8.js";
|
|
7
|
-
import { t as s } from "./field-error-LtNtEKDp.js";
|
|
8
|
-
import { t as c } from "./character-counter-CSoVSrxZ.js";
|
|
9
|
-
import { t as l } from "./TextField.module-BLGiCC4q.js";
|
|
10
|
-
import { forwardRef as u, useState as d } from "react";
|
|
11
|
-
import { Input as f, InputContext as p, TextArea as m, TextField as h, TextFieldContext as g, useContextProps as _ } from "react-aria-components";
|
|
12
|
-
import { jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
13
|
-
//#region src/textfield/TextFieldBase.tsx
|
|
14
|
-
var b = u((t, n) => {
|
|
15
|
-
[t] = _(t, n, g);
|
|
16
|
-
let { label: r, description: u, errorMessage: d, showCounter: f, errorPosition: p = "top", size: m = "large", popover: b, children: x } = t;
|
|
17
|
-
return /* @__PURE__ */ y(h, {
|
|
18
|
-
...t,
|
|
19
|
-
className: e(l.textField, { [l.medium]: m === "medium" }),
|
|
20
|
-
children: [
|
|
21
|
-
/* @__PURE__ */ v(i, {
|
|
22
|
-
popover: b,
|
|
23
|
-
children: r && /* @__PURE__ */ v(a, { children: r })
|
|
24
|
-
}),
|
|
25
|
-
u && /* @__PURE__ */ v(o, {
|
|
26
|
-
slot: "description",
|
|
27
|
-
children: u
|
|
28
|
-
}),
|
|
29
|
-
f && /* @__PURE__ */ v(c, { isLonely: !u }),
|
|
30
|
-
p === "top" && /* @__PURE__ */ v(s, {
|
|
31
|
-
"data-testid": "fieldError",
|
|
32
|
-
children: d
|
|
33
|
-
}),
|
|
34
|
-
x,
|
|
35
|
-
p === "bottom" && /* @__PURE__ */ v(s, {
|
|
36
|
-
"data-testid": "fieldError",
|
|
37
|
-
className: l.bottomError,
|
|
38
|
-
children: d
|
|
39
|
-
})
|
|
40
|
-
]
|
|
41
|
-
});
|
|
42
|
-
});
|
|
43
|
-
b.displayName = "TextFieldBase";
|
|
44
|
-
var x = {
|
|
45
|
-
en: {
|
|
46
|
-
hide: "Hide",
|
|
47
|
-
show: "Show",
|
|
48
|
-
showPassword: "Show password"
|
|
49
|
-
},
|
|
50
|
-
sv: {
|
|
51
|
-
hide: "Dölj",
|
|
52
|
-
show: "Visa",
|
|
53
|
-
showPassword: "Visa lösenord"
|
|
54
|
-
}
|
|
55
|
-
}, S = ({ showPassword: e, onToggle: t }) => {
|
|
56
|
-
let i = n(x);
|
|
57
|
-
return /* @__PURE__ */ v(r, {
|
|
58
|
-
"aria-label": i.format("showPassword"),
|
|
59
|
-
"aria-pressed": e,
|
|
60
|
-
variant: "tertiary",
|
|
61
|
-
onPress: t,
|
|
62
|
-
className: l.passwordButton,
|
|
63
|
-
children: e ? i.format("hide") : i.format("show")
|
|
64
|
-
});
|
|
65
|
-
}, C = u(({ skipContext: e = !1, ...n }, r) => {
|
|
66
|
-
let [i, a] = _(n, r, p), o = e ? r : a, s = e ? n : i, c = s.type === "password", [u, m] = d(!1);
|
|
67
|
-
return /* @__PURE__ */ y("div", {
|
|
68
|
-
className: l.wrap,
|
|
69
|
-
children: [/* @__PURE__ */ v(f, {
|
|
70
|
-
...s,
|
|
71
|
-
ref: o,
|
|
72
|
-
type: c && u ? "text" : s.type,
|
|
73
|
-
className: t(l.input, s.className)
|
|
74
|
-
}), c && /* @__PURE__ */ v(S, {
|
|
75
|
-
showPassword: u,
|
|
76
|
-
onToggle: () => m((e) => !e)
|
|
77
|
-
})]
|
|
78
|
-
});
|
|
79
|
-
});
|
|
80
|
-
C.displayName = "Input";
|
|
81
|
-
//#endregion
|
|
82
|
-
//#region src/textfield/TextField.tsx
|
|
83
|
-
var w = u(({ className: e, list: n, type: r, min: i, max: a, form: o, ...s }, c) => /* @__PURE__ */ v(b, {
|
|
84
|
-
...s,
|
|
85
|
-
children: /* @__PURE__ */ v(C, {
|
|
86
|
-
className: t(e),
|
|
87
|
-
form: o,
|
|
88
|
-
list: n,
|
|
89
|
-
min: i,
|
|
90
|
-
max: a,
|
|
91
|
-
ref: c,
|
|
92
|
-
type: r,
|
|
93
|
-
skipContext: !0
|
|
94
|
-
})
|
|
95
|
-
}));
|
|
96
|
-
w.displayName = "TextField";
|
|
97
|
-
//#endregion
|
|
98
|
-
//#region src/textfield/TextArea.tsx
|
|
99
|
-
var T = u(({ className: e, cols: n, form: r, rows: i, wrap: a, ...o }, s) => /* @__PURE__ */ v(b, {
|
|
100
|
-
...o,
|
|
101
|
-
children: /* @__PURE__ */ v(m, {
|
|
102
|
-
className: t(l.textArea, e),
|
|
103
|
-
cols: n,
|
|
104
|
-
form: r,
|
|
105
|
-
ref: s,
|
|
106
|
-
rows: i,
|
|
107
|
-
wrap: a
|
|
108
|
-
})
|
|
109
|
-
}));
|
|
110
|
-
T.displayName = "TextArea";
|
|
111
|
-
//#endregion
|
|
112
|
-
export { b as i, w as n, C as r, T as t };
|
|
@@ -1,7 +0,0 @@
|
|
|
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;
|
|
7
|
-
export declare const WithCallback: Story;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
-
import { ColorSchemeSwitchMenu } from './ColorSchemeSwitchMenu';
|
|
3
|
-
declare const meta: Meta<typeof ColorSchemeSwitchMenu>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof ColorSchemeSwitchMenu>;
|
|
6
|
-
export declare const Primary: Story;
|
|
7
|
-
export declare const DefaultDark: Story;
|
|
8
|
-
export declare const WithCallback: Story;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { StoryObj } from '@storybook/react-vite';
|
|
2
|
-
import { options, optionsWithSections } from '@midas-ds/test-utils';
|
|
3
|
-
import { default as React } from 'react';
|
|
4
|
-
import { ComboBox } from './ComboBox';
|
|
5
|
-
type Item = (typeof options)[0];
|
|
6
|
-
type Section = (typeof optionsWithSections)[0];
|
|
7
|
-
type Story<T extends object = Item> = StoryObj<typeof ComboBox<T>>;
|
|
8
|
-
declare const _default: {
|
|
9
|
-
component: typeof ComboBox;
|
|
10
|
-
title: string;
|
|
11
|
-
tags: string[];
|
|
12
|
-
args: {
|
|
13
|
-
label: string;
|
|
14
|
-
placeholder: string;
|
|
15
|
-
description: string;
|
|
16
|
-
errorMessage: string;
|
|
17
|
-
errorPosition: "top";
|
|
18
|
-
size: "large";
|
|
19
|
-
};
|
|
20
|
-
argTypes: {
|
|
21
|
-
placeholder: {
|
|
22
|
-
control: "text";
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
render: (args: import('./ComboBox').ComboBoxProps<{
|
|
26
|
-
id: import('react-aria-components').Key;
|
|
27
|
-
name: string;
|
|
28
|
-
}>) => React.JSX.Element;
|
|
29
|
-
};
|
|
30
|
-
export default _default;
|
|
31
|
-
export declare const Primary: Story;
|
|
32
|
-
export declare const Invalid: Story;
|
|
33
|
-
export declare const DS1253: Story;
|
|
34
|
-
export declare const MediumSizeInvalid: Story;
|
|
35
|
-
export declare const Disabled: Story;
|
|
36
|
-
export declare const ReadOnly: Story;
|
|
37
|
-
export declare const Required: Story;
|
|
38
|
-
export declare const Sectioned: Story<Section>;
|
|
39
|
-
export declare const NotVirtualized: Story<Section>;
|
|
40
|
-
export declare const PerformanceTest: Story;
|
|
41
|
-
export declare const AsynchronousLoadingWithEmptyMessage: Story;
|
|
42
|
-
export declare const InfiniteScroll: Story;
|
|
43
|
-
export declare const WithHelpPopover: Story;
|
|
@@ -1,15 +0,0 @@
|
|
|
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 DisabledWithDefaultValue: Story;
|
|
14
|
-
export declare const WithClearButton: Story;
|
|
15
|
-
export declare const WithHelpPopover: Story;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
-
import { CalendarDate } from '@internationalized/date';
|
|
3
|
-
import { DatePicker } from './DatePicker';
|
|
4
|
-
declare const meta: Meta<typeof DatePicker<CalendarDate>>;
|
|
5
|
-
export default meta;
|
|
6
|
-
type Story = StoryObj<typeof DatePicker<CalendarDate>>;
|
|
7
|
-
export declare const Primary: Story;
|
|
8
|
-
export declare const WithTime: Story;
|
|
9
|
-
export declare const Disabled: Story;
|
|
10
|
-
export declare const DisabledWithDefaultValue: Story;
|
|
11
|
-
export declare const ReadOnly: Story;
|
|
12
|
-
export declare const Invalid: Story;
|
|
13
|
-
export declare const Required: Story;
|
|
14
|
-
export declare const CustomValiation: Story;
|
|
15
|
-
export declare const ControlledState: Story;
|
|
16
|
-
export declare const WithClearButton: Story;
|
|
17
|
-
export declare const WithHelpPopover: Story;
|
|
@@ -1,39 +0,0 @@
|
|
|
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;
|
|
39
|
-
export declare const MaxRangeDuration: Story;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
-
import { DropZone } from './DropZone';
|
|
3
|
-
declare const meta: Meta<typeof DropZone>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof meta>;
|
|
6
|
-
export declare const Default: Story;
|
|
7
|
-
export declare const WithUploadButton: Story;
|
|
8
|
-
export declare const WithFieldLabel: Story;
|
|
9
|
-
export declare const Invalid: Story;
|
|
10
|
-
export declare const RejectsWrongFileType: Story;
|
|
11
|
-
export declare const RejectsTypeBeforeDrop: Story;
|
|
12
|
-
export declare const Disabled: Story;
|
|
13
|
-
interface DropZoneTestContainerProps {
|
|
14
|
-
onSelect: (files: File[]) => void;
|
|
15
|
-
}
|
|
16
|
-
export declare const WithFileTrigger: StoryObj<DropZoneTestContainerProps>;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { StoryObj } from '@storybook/react-vite';
|
|
2
|
-
import { default as React } from 'react';
|
|
3
|
-
import { FileList } from './FileList';
|
|
4
|
-
type Story = StoryObj<typeof FileList>;
|
|
5
|
-
declare const _default: {
|
|
6
|
-
component: ({ className, children, ...props }: import('./FileList').FileListProps) => React.JSX.Element;
|
|
7
|
-
subcomponents: {
|
|
8
|
-
FileListItem: ({ fileName, fileSize, status, progress, errorMessage, onCancel, onDelete, className, }: import('./FileListItem').FileListItemProps) => React.JSX.Element;
|
|
9
|
-
};
|
|
10
|
-
title: string;
|
|
11
|
-
tags: string[];
|
|
12
|
-
args: {
|
|
13
|
-
'aria-label': string;
|
|
14
|
-
};
|
|
15
|
-
render: (args: import('./FileList').FileListProps) => React.JSX.Element;
|
|
16
|
-
};
|
|
17
|
-
export default _default;
|
|
18
|
-
export declare const Default: Story;
|
|
19
|
-
export declare const WithoutFileSize: Story;
|
|
20
|
-
export declare const Empty: Story;
|
|
21
|
-
export declare const Uploading: Story;
|
|
22
|
-
export declare const UploadingDeterminate: Story;
|
|
23
|
-
export declare const Success: Story;
|
|
24
|
-
export declare const Error: Story;
|
|
25
|
-
export declare const MixedStates: Story;
|
|
26
|
-
export declare const AnimatedCompletion: StoryObj;
|
|
27
|
-
export declare const AnimatedFailure: StoryObj;
|
|
28
|
-
interface FocusTestContainerProps {
|
|
29
|
-
initialFiles: string[];
|
|
30
|
-
}
|
|
31
|
-
export declare const FocusManagementTest: StoryObj<FocusTestContainerProps>;
|
package/grid/Grid.stories.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { StoryObj } from '@storybook/react-vite';
|
|
2
|
-
import { Grid } from './Grid';
|
|
3
|
-
type Story = StoryObj<typeof Grid>;
|
|
4
|
-
declare const _default: {
|
|
5
|
-
component: import('react').FC<import('./Grid').GridProps>;
|
|
6
|
-
subcomponents: {
|
|
7
|
-
GridItem: import('react').FC<import('./GridItem').GridItemProps>;
|
|
8
|
-
};
|
|
9
|
-
title: string;
|
|
10
|
-
tags: string[];
|
|
11
|
-
parameters: {
|
|
12
|
-
layout: string;
|
|
13
|
-
};
|
|
14
|
-
argTypes: {
|
|
15
|
-
isContained: {
|
|
16
|
-
control: {
|
|
17
|
-
type: "boolean";
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
removeMargins: {
|
|
21
|
-
control: {
|
|
22
|
-
type: "boolean";
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
export default _default;
|
|
28
|
-
export declare const Primary: Story;
|
|
@@ -1,30 +0,0 @@
|
|
|
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;
|
|
@@ -1,16 +0,0 @@
|
|
|
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;
|
package/label/Label.stories.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
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;
|
|
@@ -1,9 +0,0 @@
|
|
|
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;
|
package/link/Link.stories.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
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;
|
|
@@ -1,13 +0,0 @@
|
|
|
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;
|
|
13
|
-
export declare const NewTab: Story;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { StoryObj } from '@storybook/react-vite';
|
|
2
|
-
import { Fruit, optionsWithSections } from '@midas-ds/test-utils';
|
|
3
|
-
import { ListBox } from './ListBox';
|
|
4
|
-
type Story<T extends object = Fruit> = StoryObj<typeof ListBox<T>>;
|
|
5
|
-
declare const _default: {
|
|
6
|
-
component: <T extends object>({ className, children, virtualized, size, ...rest }: import('./ListBox').ListBoxProps<T>) => import('react').JSX.Element;
|
|
7
|
-
subcomponents: {
|
|
8
|
-
ListBoxItem: <T extends object>({ children, className, textValue, ...rest }: import('react-aria-components').ListBoxItemProps<T>) => import('react').JSX.Element;
|
|
9
|
-
};
|
|
10
|
-
tags: string[];
|
|
11
|
-
title: string;
|
|
12
|
-
parameters: {
|
|
13
|
-
layout: string;
|
|
14
|
-
};
|
|
15
|
-
args: {
|
|
16
|
-
'aria-label': string;
|
|
17
|
-
children: (item: Fruit) => import('react').JSX.Element;
|
|
18
|
-
items: Fruit[];
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
export default _default;
|
|
22
|
-
export declare const SelectionModeSingle: Story;
|
|
23
|
-
export declare const Sectioned: Story<(typeof optionsWithSections)[0]>;
|
|
24
|
-
export declare const NotVirtualized: Story;
|
package/logo/Logo.stories.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
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;
|
package/menu/Menu.stories.d.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { StoryObj } from '@storybook/react-vite';
|
|
2
|
-
import { default as React } from 'react';
|
|
3
|
-
import { Menu } from './Menu';
|
|
4
|
-
interface Item {
|
|
5
|
-
id: string | number;
|
|
6
|
-
name: string;
|
|
7
|
-
children?: Item[];
|
|
8
|
-
[prop: string]: unknown;
|
|
9
|
-
}
|
|
10
|
-
type Story = StoryObj<typeof Menu<Item>>;
|
|
11
|
-
declare const _default: {
|
|
12
|
-
title: string;
|
|
13
|
-
component: <T extends object>({ className, size, ...rest }: import('./Menu').MenuProps<T>) => React.JSX.Element;
|
|
14
|
-
subcomponents: {
|
|
15
|
-
MenuItem: <T extends object>(props: import('./MenuItem').MenuItemProps<T>) => React.JSX.Element;
|
|
16
|
-
};
|
|
17
|
-
render: (args: import('./Menu').MenuProps<object>) => React.JSX.Element;
|
|
18
|
-
args: {
|
|
19
|
-
children: (item: object) => React.JSX.Element;
|
|
20
|
-
items: {
|
|
21
|
-
id: number;
|
|
22
|
-
name: string;
|
|
23
|
-
}[];
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
export default _default;
|
|
27
|
-
export declare const Primary: Story;
|
|
28
|
-
export declare const ControlledSingleSelection: Story;
|
|
29
|
-
export declare const ControlledMultipleSelection: Story;
|
|
30
|
-
export declare const Sections: Story;
|
|
31
|
-
export declare const Separators: Story;
|
|
32
|
-
export declare const TextSlots: Story;
|
|
33
|
-
export declare const MultiSelectWithDescriptions: Story;
|
|
34
|
-
export declare const DisabledItems: Story;
|
|
35
|
-
export declare const SubMenus: Story;
|
package/modal/Modal.stories.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
-
import { Modal } from './Modal';
|
|
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;
|
|
@@ -1,18 +0,0 @@
|
|
|
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: import('react').ForwardRefExoticComponent<import('./Popover').PopoverProps & import('react').RefAttributes<HTMLElement>>;
|
|
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;
|
|
@@ -1,18 +0,0 @@
|
|
|
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;
|
|
16
|
-
export declare const Circular: Story;
|
|
17
|
-
export declare const CircularSmall: Story;
|
|
18
|
-
export declare const CircularIndeterminate: Story;
|