@simplybusiness/mobius 4.2.2 → 4.2.4
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 +2 -0
- package/dist/cjs/components/Accordion/Accordion.stories.d.ts +10 -13
- package/dist/cjs/components/Accordion/Accordion.stories.js +7 -3
- package/dist/cjs/components/Accordion/Accordion.stories.js.map +1 -1
- package/dist/cjs/components/Alert/Alert.stories.d.ts +7 -17
- package/dist/cjs/components/Alert/Alert.stories.js +2 -1
- package/dist/cjs/components/Alert/Alert.stories.js.map +1 -1
- package/dist/cjs/components/Box/Box.stories.d.ts +7 -16
- package/dist/cjs/components/Box/Box.stories.js +4 -3
- package/dist/cjs/components/Box/Box.stories.js.map +1 -1
- package/dist/cjs/components/Breadcrumbs/Breadcrumbs.stories.d.ts +7 -9
- package/dist/cjs/components/Breadcrumbs/Breadcrumbs.stories.js +2 -1
- package/dist/cjs/components/Breadcrumbs/Breadcrumbs.stories.js.map +1 -1
- package/dist/cjs/components/Button/Button.stories.d.ts +17 -58
- package/dist/cjs/components/Button/Button.stories.js +4 -3
- package/dist/cjs/components/Button/Button.stories.js.map +1 -1
- package/dist/cjs/components/Checkbox/Checkbox.stories.d.ts +10 -30
- package/dist/cjs/components/Checkbox/Checkbox.stories.js +7 -3
- package/dist/cjs/components/Checkbox/Checkbox.stories.js.map +1 -1
- package/dist/cjs/components/Checkbox/CheckboxGroup.stories.d.ts +9 -24
- package/dist/cjs/components/Checkbox/CheckboxGroup.stories.js +7 -3
- package/dist/cjs/components/Checkbox/CheckboxGroup.stories.js.map +1 -1
- package/dist/cjs/components/Container/Container.stories.d.ts +6 -8
- package/dist/cjs/components/Container/Container.stories.js +2 -1
- package/dist/cjs/components/Container/Container.stories.js.map +1 -1
- package/dist/cjs/components/Divider/Divider.stories.d.ts +6 -11
- package/dist/cjs/components/Divider/Divider.stories.js +6 -1
- package/dist/cjs/components/Divider/Divider.stories.js.map +1 -1
- package/dist/cjs/components/Drawer/Drawer.stories.d.ts +8 -27
- package/dist/cjs/components/Drawer/Drawer.stories.js +10 -9
- package/dist/cjs/components/Drawer/Drawer.stories.js.map +1 -1
- package/dist/cjs/components/DropdownMenu/DropdownMenu.stories.d.ts +6 -19
- package/dist/cjs/components/DropdownMenu/DropdownMenu.stories.js +12 -11
- package/dist/cjs/components/DropdownMenu/DropdownMenu.stories.js.map +1 -1
- package/dist/cjs/components/ErrorMessage/ErrorMessage.stories.d.ts +7 -12
- package/dist/cjs/components/ErrorMessage/ErrorMessage.stories.js +2 -1
- package/dist/cjs/components/ErrorMessage/ErrorMessage.stories.js.map +1 -1
- package/dist/cjs/components/Fieldset/Fieldset.stories.d.ts +7 -10
- package/dist/cjs/components/Fieldset/Fieldset.stories.js +7 -3
- package/dist/cjs/components/Fieldset/Fieldset.stories.js.map +1 -1
- package/dist/cjs/components/Flex/Flex.stories.d.ts +6 -81
- package/dist/cjs/components/Flex/Flex.stories.js +8 -7
- package/dist/cjs/components/Flex/Flex.stories.js.map +1 -1
- package/dist/cjs/components/Grid/Grid.stories.d.ts +7 -82
- package/dist/cjs/components/Grid/Grid.stories.js +19 -19
- package/dist/cjs/components/Grid/Grid.stories.js.map +1 -1
- package/dist/cjs/components/Icon/Icon.stories.d.ts +6 -9
- package/dist/cjs/components/Icon/Icon.stories.js +5 -4
- package/dist/cjs/components/Icon/Icon.stories.js.map +1 -1
- package/dist/cjs/components/Image/Image.stories.d.ts +6 -8
- package/dist/cjs/components/Image/Image.stories.js +3 -2
- package/dist/cjs/components/Image/Image.stories.js.map +1 -1
- package/dist/cjs/components/Label/Label.stories.d.ts +6 -8
- package/dist/cjs/components/Label/Label.stories.js +2 -1
- package/dist/cjs/components/Label/Label.stories.js.map +1 -1
- package/dist/cjs/components/Link/Link.stories.d.ts +7 -38
- package/dist/cjs/components/Link/Link.stories.js +4 -3
- package/dist/cjs/components/Link/Link.stories.js.map +1 -1
- package/dist/cjs/components/LinkButton/LinkButton.stories.d.ts +5 -47
- package/dist/cjs/components/LinkButton/LinkButton.stories.js +4 -3
- package/dist/cjs/components/LinkButton/LinkButton.stories.js.map +1 -1
- package/dist/cjs/components/List/List.stories.d.ts +10 -33
- package/dist/cjs/components/List/List.stories.js +4 -3
- package/dist/cjs/components/List/List.stories.js.map +1 -1
- package/dist/cjs/components/LoadingIndicator/LoadingIndicator.d.ts +2 -6
- package/dist/cjs/components/LoadingIndicator/LoadingIndicator.js.map +1 -1
- package/dist/cjs/components/LoadingIndicator/LoadingIndicator.stories.d.ts +9 -36
- package/dist/cjs/components/LoadingIndicator/LoadingIndicator.stories.js +7 -9
- package/dist/cjs/components/LoadingIndicator/LoadingIndicator.stories.js.map +1 -1
- package/dist/cjs/components/Logo/Logo.stories.d.ts +6 -16
- package/dist/cjs/components/Logo/Logo.stories.js +5 -4
- package/dist/cjs/components/Logo/Logo.stories.js.map +1 -1
- package/dist/cjs/components/Modal/Modal.stories.d.ts +10 -42
- package/dist/cjs/components/Modal/Modal.stories.js +18 -17
- package/dist/cjs/components/Modal/Modal.stories.js.map +1 -1
- package/dist/cjs/components/NumberField/NumberField.stories.d.ts +10 -52
- package/dist/cjs/components/NumberField/NumberField.stories.js +7 -3
- package/dist/cjs/components/NumberField/NumberField.stories.js.map +1 -1
- package/dist/cjs/components/PasswordField/PasswordField.stories.d.ts +6 -30
- package/dist/cjs/components/PasswordField/PasswordField.stories.js +7 -3
- package/dist/cjs/components/PasswordField/PasswordField.stories.js.map +1 -1
- package/dist/cjs/components/Popover/Popover.stories.d.ts +7 -21
- package/dist/cjs/components/Popover/Popover.stories.js +4 -3
- package/dist/cjs/components/Popover/Popover.stories.js.map +1 -1
- package/dist/cjs/components/Progress/Progress.stories.d.ts +9 -56
- package/dist/cjs/components/Progress/Progress.stories.js +8 -4
- package/dist/cjs/components/Progress/Progress.stories.js.map +1 -1
- package/dist/cjs/components/Radio/Radio.stories.d.ts +11 -37
- package/dist/cjs/components/Radio/Radio.stories.js +8 -4
- package/dist/cjs/components/Radio/Radio.stories.js.map +1 -1
- package/dist/cjs/components/Radio/RadioButton.stories.d.ts +10 -23
- package/dist/cjs/components/Radio/RadioButton.stories.js +8 -4
- package/dist/cjs/components/Radio/RadioButton.stories.js.map +1 -1
- package/dist/cjs/components/SVG/SVG.stories.d.ts +6 -8
- package/dist/cjs/components/SVG/SVG.stories.js +3 -2
- package/dist/cjs/components/SVG/SVG.stories.js.map +1 -1
- package/dist/cjs/components/Segment/Segment.stories.d.ts +8 -30
- package/dist/cjs/components/Segment/Segment.stories.js +11 -10
- package/dist/cjs/components/Segment/Segment.stories.js.map +1 -1
- package/dist/cjs/components/Select/Select.stories.d.ts +10 -31
- package/dist/cjs/components/Select/Select.stories.js +6 -1
- package/dist/cjs/components/Select/Select.stories.js.map +1 -1
- package/dist/cjs/components/Slider/Slider.stories.d.ts +10 -13
- package/dist/cjs/components/Slider/Slider.stories.js +7 -3
- package/dist/cjs/components/Slider/Slider.stories.js.map +1 -1
- package/dist/cjs/components/Table/Table.stories.d.ts +6 -8
- package/dist/cjs/components/Table/Table.stories.js +2 -1
- package/dist/cjs/components/Table/Table.stories.js.map +1 -1
- package/dist/cjs/components/Text/Text.stories.d.ts +7 -11
- package/dist/cjs/components/Text/Text.stories.js +4 -3
- package/dist/cjs/components/Text/Text.stories.js.map +1 -1
- package/dist/cjs/components/TextArea/TextArea.stories.d.ts +11 -31
- package/dist/cjs/components/TextArea/TextArea.stories.js +7 -3
- package/dist/cjs/components/TextArea/TextArea.stories.js.map +1 -1
- package/dist/cjs/components/TextField/TextField.stories.d.ts +19 -45
- package/dist/cjs/components/TextField/TextField.stories.js +7 -3
- package/dist/cjs/components/TextField/TextField.stories.js.map +1 -1
- package/dist/cjs/components/Title/Title.stories.d.ts +6 -8
- package/dist/cjs/components/Title/Title.stories.js +2 -1
- package/dist/cjs/components/Title/Title.stories.js.map +1 -1
- package/dist/cjs/components/VisuallyHidden/VisuallyHidden.stories.d.ts +5 -7
- package/dist/cjs/components/VisuallyHidden/VisuallyHidden.stories.js +2 -1
- package/dist/cjs/components/VisuallyHidden/VisuallyHidden.stories.js.map +1 -1
- package/dist/cjs/hooks/useBreakpoint/useBreakpoint.stories.d.ts +6 -9
- package/dist/cjs/hooks/useBreakpoint/useBreakpoint.stories.js +3 -2
- package/dist/cjs/hooks/useBreakpoint/useBreakpoint.stories.js.map +1 -1
- package/dist/cjs/tsconfig.tsbuildinfo +1 -1
- package/dist/cjs/utils/StoryContainer.d.ts +1 -0
- package/dist/cjs/utils/StoryContainer.js +11 -0
- package/dist/cjs/utils/StoryContainer.js.map +1 -0
- package/dist/cjs/utils/index.d.ts +8 -0
- package/dist/cjs/utils/index.js +25 -0
- package/dist/cjs/utils/index.js.map +1 -0
- package/dist/esm/components/LoadingIndicator/LoadingIndicator.js.map +1 -1
- package/dist/esm/tsconfig.esm.tsbuildinfo +1 -1
- package/dist/esm/utils/StoryContainer.js +4 -0
- package/dist/esm/utils/StoryContainer.js.map +1 -0
- package/dist/esm/utils/index.js +9 -0
- package/dist/esm/utils/index.js.map +1 -0
- package/dist/mobius.d.ts +1 -6
- package/package.json +2 -2
- package/src/components/Accordion/Accordion.mdx +4 -4
- package/src/components/Accordion/Accordion.stories.tsx +19 -8
- package/src/components/Alert/Alert.mdx +1 -2
- package/src/components/Alert/Alert.stories.tsx +8 -4
- package/src/components/Box/Box.mdx +1 -3
- package/src/components/Box/Box.stories.tsx +9 -5
- package/src/components/Breadcrumbs/Breadcrumbs.mdx +0 -4
- package/src/components/Breadcrumbs/Breadcrumbs.stories.tsx +8 -4
- package/src/components/Button/Button.mdx +0 -2
- package/src/components/Button/Button.stories.tsx +19 -15
- package/src/components/Checkbox/Checkbox.mdx +0 -3
- package/src/components/Checkbox/Checkbox.stories.tsx +19 -8
- package/src/components/Checkbox/CheckboxGroup.mdx +1 -1
- package/src/components/Checkbox/CheckboxGroup.stories.tsx +18 -7
- package/src/components/Container/Container.mdx +0 -1
- package/src/components/Container/Container.stories.tsx +7 -3
- package/src/components/Divider/Divider.mdx +0 -2
- package/src/components/Divider/Divider.stories.tsx +15 -3
- package/src/components/Drawer/Drawer.stories.tsx +21 -17
- package/src/components/DropdownMenu/DropdownMenu.mdx +0 -1
- package/src/components/DropdownMenu/DropdownMenu.stories.tsx +26 -18
- package/src/components/ErrorMessage/ErrorMessage.mdx +1 -6
- package/src/components/ErrorMessage/ErrorMessage.stories.tsx +8 -4
- package/src/components/Fieldset/Fieldset.mdx +0 -2
- package/src/components/Fieldset/Fieldset.stories.tsx +16 -5
- package/src/components/Flex/Flex.mdx +0 -1
- package/src/components/Flex/Flex.stories.tsx +28 -24
- package/src/components/Grid/Grid.mdx +0 -2
- package/src/components/Grid/Grid.stories.tsx +44 -41
- package/src/components/Icon/Icon.stories.tsx +10 -6
- package/src/components/Image/Image.mdx +0 -1
- package/src/components/Image/Image.stories.tsx +9 -5
- package/src/components/Label/Label.mdx +0 -1
- package/src/components/Label/Label.stories.tsx +7 -3
- package/src/components/Link/Link.mdx +0 -1
- package/src/components/Link/Link.stories.tsx +9 -5
- package/src/components/LinkButton/LinkButton.mdx +0 -1
- package/src/components/LinkButton/LinkButton.stories.tsx +8 -4
- package/src/components/List/List.mdx +0 -2
- package/src/components/List/List.stories.tsx +12 -8
- package/src/components/LoadingIndicator/LoadingIndicator.mdx +0 -1
- package/src/components/LoadingIndicator/LoadingIndicator.stories.tsx +15 -14
- package/src/components/LoadingIndicator/LoadingIndicator.tsx +5 -8
- package/src/components/Logo/Logo.stories.tsx +9 -5
- package/src/components/Modal/Modal.stories.tsx +38 -34
- package/src/components/NumberField/NumberField.stories.tsx +19 -8
- package/src/components/PasswordField/PasswordField.mdx +0 -3
- package/src/components/PasswordField/PasswordField.stories.tsx +15 -4
- package/src/components/Popover/Popover.stories.tsx +10 -6
- package/src/components/Progress/Progress.mdx +1 -2
- package/src/components/Progress/Progress.stories.tsx +23 -12
- package/src/components/Radio/Radio.mdx +0 -5
- package/src/components/Radio/Radio.stories.tsx +22 -11
- package/src/components/Radio/RadioButton.mdx +0 -5
- package/src/components/Radio/RadioButton.stories.tsx +21 -10
- package/src/components/SVG/SVG.mdx +0 -1
- package/src/components/SVG/SVG.stories.tsx +11 -7
- package/src/components/Segment/Segment.mdx +0 -12
- package/src/components/Segment/Segment.stories.tsx +18 -14
- package/src/components/Select/Select.mdx +0 -4
- package/src/components/Select/Select.stories.tsx +19 -7
- package/src/components/Slider/Slider.mdx +0 -2
- package/src/components/Slider/Slider.stories.tsx +22 -17
- package/src/components/Table/Table.mdx +0 -1
- package/src/components/Table/Table.stories.tsx +8 -4
- package/src/components/Text/Text.mdx +1 -2
- package/src/components/Text/Text.stories.tsx +9 -5
- package/src/components/TextArea/TextArea.mdx +0 -1
- package/src/components/TextArea/TextArea.stories.tsx +20 -9
- package/src/components/TextField/TextField.mdx +0 -3
- package/src/components/TextField/TextField.stories.tsx +28 -17
- package/src/components/Title/Title.mdx +1 -2
- package/src/components/Title/Title.stories.tsx +7 -3
- package/src/components/VisuallyHidden/VisuallyHidden.mdx +1 -3
- package/src/components/VisuallyHidden/VisuallyHidden.stories.tsx +7 -3
- package/src/hooks/useBreakpoint/useBreakpoint.stories.tsx +9 -5
- package/src/styles.d.ts +2 -0
- package/src/utils/StoryContainer.module.css +13 -0
- package/src/utils/StoryContainer.tsx +5 -0
- package/src/utils/index.ts +8 -0
package/CHANGELOG.md
CHANGED
|
@@ -484,6 +484,8 @@ Additionally, mobius and themes are available on the public NPM registry and can
|
|
|
484
484
|
|
|
485
485
|
## Github Links
|
|
486
486
|
|
|
487
|
+
[4.2.4]: https://github.com/simplybusiness/mobius/releases/tag/v4.2.4
|
|
488
|
+
[4.2.3]: https://github.com/simplybusiness/mobius/releases/tag/v4.2.3
|
|
487
489
|
[4.2.2]: https://github.com/simplybusiness/mobius/releases/tag/v4.2.2
|
|
488
490
|
[4.2.1]: https://github.com/simplybusiness/mobius/releases/tag/v4.2.1
|
|
489
491
|
[4.2.0]: https://github.com/simplybusiness/mobius/releases/tag/v4.2.0
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import type { Meta } from "@storybook/react";
|
|
2
|
-
import { Accordion
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export
|
|
9
|
-
export declare const
|
|
10
|
-
export
|
|
11
|
-
export declare const BottomHeader: Meta<typeof Accordion>;
|
|
12
|
-
export declare const WithChildren: Meta<typeof Accordion>;
|
|
13
|
-
export declare const ComplexContent: Meta<typeof Accordion>;
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { Accordion } from "..";
|
|
3
|
+
type StoryType = StoryObj<typeof Accordion>;
|
|
4
|
+
declare const meta: Meta<typeof Accordion>;
|
|
5
|
+
export declare const Normal: StoryType;
|
|
6
|
+
export declare const StartExpanded: StoryType;
|
|
7
|
+
export declare const BottomHeader: StoryType;
|
|
8
|
+
export declare const WithChildren: StoryType;
|
|
9
|
+
export declare const ComplexContent: StoryType;
|
|
10
|
+
export default meta;
|
|
@@ -3,11 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ComplexContent = exports.WithChildren = exports.BottomHeader = exports.StartExpanded = exports.Normal = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const __1 = require("..");
|
|
6
|
-
const
|
|
7
|
-
|
|
6
|
+
const utils_1 = require("../../utils");
|
|
7
|
+
const meta = {
|
|
8
8
|
title: "Components/Accordion",
|
|
9
9
|
component: __1.Accordion,
|
|
10
|
-
argTypes: (0,
|
|
10
|
+
argTypes: (0, utils_1.excludeControls)("headerChildren"),
|
|
11
|
+
decorators: [
|
|
12
|
+
Story => ((0, jsx_runtime_1.jsx)("div", { style: { minHeight: 150 }, children: (0, jsx_runtime_1.jsx)(Story, {}) })),
|
|
13
|
+
],
|
|
11
14
|
};
|
|
12
15
|
exports.Normal = {
|
|
13
16
|
render: (args) => ((0, jsx_runtime_1.jsxs)(__1.Accordion, Object.assign({}, args, { children: [(0, jsx_runtime_1.jsx)("p", { children: "Lorem ipsum dolor, sit amet consectetur adipisicing elit. Sequi repellendus deleniti architecto" }), (0, jsx_runtime_1.jsx)("p", { children: "Lorem ipsum dolor, sit amet consectetur adipisicing elit. Sequi repellendus deleniti architecto" })] }))),
|
|
@@ -55,4 +58,5 @@ exports.ComplexContent = {
|
|
|
55
58
|
startOpen: false,
|
|
56
59
|
},
|
|
57
60
|
};
|
|
61
|
+
exports.default = meta;
|
|
58
62
|
//# sourceMappingURL=Accordion.stories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Accordion.stories.js","sourceRoot":"","sources":["../../../../src/components/Accordion/Accordion.stories.tsx"],"names":[],"mappings":";;;;AACA,0BAA8E;AAC9E,
|
|
1
|
+
{"version":3,"file":"Accordion.stories.js","sourceRoot":"","sources":["../../../../src/components/Accordion/Accordion.stories.tsx"],"names":[],"mappings":";;;;AACA,0BAA8E;AAC9E,uCAA8C;AAI9C,MAAM,IAAI,GAA2B;IACnC,KAAK,EAAE,sBAAsB;IAC7B,SAAS,EAAE,aAAS;IACpB,QAAQ,EAAE,IAAA,uBAAe,EAAC,gBAAgB,CAAC;IAC3C,UAAU,EAAE;QACV,KAAK,CAAC,EAAE,CAAC,CACP,gCAAK,KAAK,EAAE,EAAE,SAAS,EAAE,GAAG,EAAE,YAC5B,uBAAC,KAAK,KAAG,GACL,CACP;KACF;CACF,CAAC;AAEW,QAAA,MAAM,GAAc;IAC/B,MAAM,EAAE,CAAC,IAAoB,EAAE,EAAE,CAAC,CAChC,wBAAC,aAAS,oBAAK,IAAI,eACjB,4IAGI,EACJ,4IAGI,KACM,CACb;IACD,IAAI,EAAE;QACJ,QAAQ,EAAE,UAAU;QACpB,QAAQ,EAAE,UAAU;QACpB,cAAc,EAAE,KAAK;QACrB,SAAS,EAAE,KAAK;KACjB;CACF,CAAC;AAEW,QAAA,aAAa,GAAc;IACtC,MAAM,EAAE,CAAC,IAAoB,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
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
control: {
|
|
9
|
-
type: string;
|
|
10
|
-
};
|
|
11
|
-
options: string[];
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
export default _default;
|
|
16
|
-
export declare const Normal: Meta<typeof Alert>;
|
|
17
|
-
export declare const WithHeader: Meta<typeof Alert>;
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { Alert } from "./Alert";
|
|
3
|
+
type StoryType = StoryObj<typeof Alert>;
|
|
4
|
+
declare const meta: Meta<typeof Alert>;
|
|
5
|
+
export declare const Normal: StoryType;
|
|
6
|
+
export declare const WithHeader: StoryType;
|
|
7
|
+
export default meta;
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.WithHeader = exports.Normal = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const Alert_1 = require("./Alert");
|
|
6
|
-
|
|
6
|
+
const meta = {
|
|
7
7
|
title: "Components/Alert",
|
|
8
8
|
component: Alert_1.Alert,
|
|
9
9
|
argTypes: {
|
|
@@ -33,4 +33,5 @@ exports.WithHeader = {
|
|
|
33
33
|
header: "Information",
|
|
34
34
|
},
|
|
35
35
|
};
|
|
36
|
+
exports.default = meta;
|
|
36
37
|
//# sourceMappingURL=Alert.stories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Alert.stories.js","sourceRoot":"","sources":["../../../../src/components/Alert/Alert.stories.tsx"],"names":[],"mappings":";;;;AACA,mCAA4C;
|
|
1
|
+
{"version":3,"file":"Alert.stories.js","sourceRoot":"","sources":["../../../../src/components/Alert/Alert.stories.tsx"],"names":[],"mappings":";;;;AACA,mCAA4C;AAI5C,MAAM,IAAI,GAAuB;IAC/B,KAAK,EAAE,kBAAkB;IACzB,SAAS,EAAE,aAAK;IAChB,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;YAC1B,OAAO,EAAE,CAAC,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,CAAC;SACjD;KACF;CACF,CAAC;AAEW,QAAA,MAAM,GAAc;IAC/B,MAAM,EAAE,CAAC,IAAgB,EAAE,EAAE,CAAC,CAC5B,wBAAC,aAAK,oBAAK,IAAI,2BACJ,GAAG,EACX,IAAI,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE;gBAChC,SAAS,EAAE,MAAM;aAClB,CAAC,CAAC,MAAM,CAAC,IAAI,IAAI,EAAE,CAAC,KACf,CACT;IACD,IAAI,EAAE;QACJ,OAAO,EAAE,MAAM;QACf,IAAI,EAAE,IAAI;QACV,MAAM,EAAE,EAAE;KACX;CACF,CAAC;AAEW,QAAA,UAAU,GAAc;IACnC,MAAM,EAAE,CAAC,IAAgB,EAAE,EAAE,CAAC,CAC5B,wBAAC,aAAK,oBAAK,IAAI,2BACJ,GAAG,EACX,IAAI,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE;gBAChC,SAAS,EAAE,MAAM;aAClB,CAAC,CAAC,MAAM,CAAC,IAAI,IAAI,EAAE,CAAC,KACf,CACT;IACD,IAAI,EAAE;QACJ,OAAO,EAAE,MAAM;QACf,IAAI,EAAE,IAAI;QACV,MAAM,EAAE,aAAa;KACtB;CACF,CAAC;AAEF,kBAAe,IAAI,CAAC"}
|
|
@@ -1,16 +1,7 @@
|
|
|
1
|
-
import type { Meta } from "@storybook/react";
|
|
2
|
-
import { Box
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export default _default;
|
|
9
|
-
export declare const Normal: Meta<typeof Box>;
|
|
10
|
-
export declare const CustomElement: {
|
|
11
|
-
render: (args: BoxProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
name: string;
|
|
13
|
-
args: {
|
|
14
|
-
elementType: string;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { Box } from "./Box";
|
|
3
|
+
type StoryType = StoryObj<typeof Box>;
|
|
4
|
+
declare const meta: Meta<typeof Box>;
|
|
5
|
+
export declare const Normal: StoryType;
|
|
6
|
+
export declare const CustomElement: StoryType;
|
|
7
|
+
export default meta;
|
|
@@ -4,11 +4,11 @@ exports.CustomElement = exports.Normal = void 0;
|
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const Box_1 = require("./Box");
|
|
6
6
|
const Button_1 = require("../Button");
|
|
7
|
-
const
|
|
8
|
-
|
|
7
|
+
const utils_1 = require("../../utils");
|
|
8
|
+
const meta = {
|
|
9
9
|
title: "Layout/Box",
|
|
10
10
|
component: Box_1.Box,
|
|
11
|
-
argTypes: (0,
|
|
11
|
+
argTypes: (0, utils_1.excludeControls)("style"),
|
|
12
12
|
};
|
|
13
13
|
exports.Normal = {
|
|
14
14
|
render: (args) => ((0, jsx_runtime_1.jsx)(Box_1.Box, Object.assign({}, args, { children: (0, jsx_runtime_1.jsx)(Button_1.Button, { children: "Click me" }) }))),
|
|
@@ -20,4 +20,5 @@ exports.CustomElement = {
|
|
|
20
20
|
elementType: "span",
|
|
21
21
|
},
|
|
22
22
|
};
|
|
23
|
+
exports.default = meta;
|
|
23
24
|
//# sourceMappingURL=Box.stories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Box.stories.js","sourceRoot":"","sources":["../../../../src/components/Box/Box.stories.tsx"],"names":[],"mappings":";;;;AACA,+BAAsC;AACtC,sCAAmC;AACnC,
|
|
1
|
+
{"version":3,"file":"Box.stories.js","sourceRoot":"","sources":["../../../../src/components/Box/Box.stories.tsx"],"names":[],"mappings":";;;;AACA,+BAAsC;AACtC,sCAAmC;AACnC,uCAA8C;AAI9C,MAAM,IAAI,GAAqB;IAC7B,KAAK,EAAE,YAAY;IACnB,SAAS,EAAE,SAAG;IACd,QAAQ,EAAE,IAAA,uBAAe,EAAC,OAAO,CAAC;CACnC,CAAC;AAEW,QAAA,MAAM,GAAc;IAC/B,MAAM,EAAE,CAAC,IAAc,EAAE,EAAE,CAAC,CAC1B,uBAAC,SAAG,oBAAK,IAAI,cACX,uBAAC,eAAM,2BAAkB,IACrB,CACP;CACF,CAAC;AAEW,QAAA,aAAa,GAAc;IACtC,MAAM,EAAE,CAAC,IAAc,EAAE,EAAE,CAAC,uBAAC,SAAG,oBAAK,IAAI,8CAAkC;IAC3E,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE;QACJ,WAAW,EAAE,MAAM;KACpB;CACF,CAAC;AAEF,kBAAe,IAAI,CAAC"}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import type { Meta } from "@storybook/react";
|
|
2
|
-
import { Breadcrumbs
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export default
|
|
8
|
-
export declare const Normal: Meta<typeof Breadcrumbs>;
|
|
9
|
-
export declare const WithLogo: Meta<typeof Breadcrumbs>;
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { Breadcrumbs } from "./Breadcrumbs";
|
|
3
|
+
type StoryType = StoryObj<typeof Breadcrumbs>;
|
|
4
|
+
declare const meta: Meta<typeof Breadcrumbs>;
|
|
5
|
+
export declare const Normal: StoryType;
|
|
6
|
+
export declare const WithLogo: StoryType;
|
|
7
|
+
export default meta;
|
|
@@ -5,7 +5,7 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
5
5
|
const Breadcrumbs_1 = require("./Breadcrumbs");
|
|
6
6
|
const BreadcrumbItem_1 = require("./BreadcrumbItem");
|
|
7
7
|
const Link_1 = require("../Link");
|
|
8
|
-
|
|
8
|
+
const meta = {
|
|
9
9
|
title: "Components/Breadcrumbs",
|
|
10
10
|
component: Breadcrumbs_1.Breadcrumbs,
|
|
11
11
|
};
|
|
@@ -15,4 +15,5 @@ exports.Normal = {
|
|
|
15
15
|
exports.WithLogo = {
|
|
16
16
|
render: (args) => ((0, jsx_runtime_1.jsxs)(Breadcrumbs_1.Breadcrumbs, Object.assign({}, args, { children: [(0, jsx_runtime_1.jsx)(BreadcrumbItem_1.BreadcrumbItem, { children: (0, jsx_runtime_1.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 299.8 85", height: "32px", children: (0, jsx_runtime_1.jsx)("path", { d: "M109.9 38.7c3.3-3.7 4.9-8.2 4.9-13.7 0-6.5-2.3-12.4-6.6-16.7-4.6-4.7-11.1-7.1-18.8-7.1H68.5c-5.3 0-9.1 3.8-9.1 9.1v64.8c0 5.2 3.9 9.1 9.1 9.1h24.8c8.8 0 16.1-2.6 21.2-7.6 4.7-4.6 7.3-11.1 7.3-18.3 0-4.7-1.2-8.9-3.5-12.4-2.1-3-4.9-5.4-8.4-7.2zM68.4 75.9c-.7 0-.9-.3-.9-.9V10.2c0-.8.2-.9.9-.9h20.9c3.8 0 9.2.8 13.1 4.7 2.7 2.8 4.2 6.6 4.2 10.9 0 9.1-11.8 16.2-11.8 16.2s13.2 3.4 16.5 9.2c1.4 2.1 2.1 4.8 2.1 7.9 0 5-1.7 9.4-4.8 12.5-3.5 3.4-8.9 5.3-15.5 5.3l-24.7-.1zM52.2 51.3c1.4 2.8 2.1 5.9 2.1 9.5 0 3.3-.6 6.5-1.8 9.4s-3 5.5-5.3 7.7-5.1 4-8.6 5.2c-3.5 1.3-7.3 1.9-11.5 1.9-5.2 0-10-.9-14.4-2.6-4.4-1.8-8-3.7-10.7-5.7-.7-.6-1.2-1.1-1.6-1.8-.3-.5-.4-1-.4-1.6v-.6c.1-.9.5-1.8 1.2-2.8l2.6-3.7c.9-1.2 1.9-1.9 2.9-2.1.2 0 .3-.1.5-.1.9 0 2 .4 3.2 1.1 5.7 4.1 11.3 6.1 16.7 6.1 3.8 0 6.8-.9 9-2.6s3.3-4 3.3-6.8c0-1.7-.4-3.2-1.3-4.6-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3 6.8-8.4 6.8-3.5 0-6-1.3-7.4-2.2-.9-.7-1-1.6-.3-2.6zm19.3 0l.5-.8c.6-.9 1.4-1 2.5-.4 1 .6 2.7 1.5 4.9 1.5 1.9 0 3.1-.9 3.1-2.2 0-3.6-10.9-2.2-10.9-9.8 0-4.3 3.8-6.6 8.4-6.6 2.9 0 5 .9 6.1 1.6 1 .5 1.1 1.4.6 2.4l-.4.8c-.5 1-1.3 1.2-2.4.7-1-.4-2.4-1.1-4.2-1.1-1.9 0-3 .8-3 2.2 0 3.6 10.9 2.2 10.9 9.7 0 3.9-3.3 6.8-8.4 6.8-3.5 0-6-1.3-7.4-2.2-.8-.7-.9-1.6-.3-2.6z" }) }) }, "root"), (0, jsx_runtime_1.jsx)(BreadcrumbItem_1.BreadcrumbItem, { children: (0, jsx_runtime_1.jsx)(Link_1.Link, { href: "/business-insurance", children: "Business insurance" }) }, "business-insurance"), (0, jsx_runtime_1.jsx)(BreadcrumbItem_1.BreadcrumbItem, { children: (0, jsx_runtime_1.jsx)(Link_1.Link, { href: "/tradesmen", children: "Tradesmen" }) }, "tradesmen"), (0, jsx_runtime_1.jsx)(BreadcrumbItem_1.BreadcrumbItem, { children: (0, jsx_runtime_1.jsx)(Link_1.Link, { href: "/beauty", children: "Beauty Salon" }) }, "beauty-salon-insurance")] }))),
|
|
17
17
|
};
|
|
18
|
+
exports.default = meta;
|
|
18
19
|
//# sourceMappingURL=Breadcrumbs.stories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Breadcrumbs.stories.js","sourceRoot":"","sources":["../../../../src/components/Breadcrumbs/Breadcrumbs.stories.tsx"],"names":[],"mappings":";;;;AACA,+CAA8D;AAC9D,qDAAkD;AAClD,kCAA+B;
|
|
1
|
+
{"version":3,"file":"Breadcrumbs.stories.js","sourceRoot":"","sources":["../../../../src/components/Breadcrumbs/Breadcrumbs.stories.tsx"],"names":[],"mappings":";;;;AACA,+CAA8D;AAC9D,qDAAkD;AAClD,k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
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
truthy: boolean;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
href: {
|
|
21
|
-
if: {
|
|
22
|
-
arg: string;
|
|
23
|
-
eq: string;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
rel: {
|
|
27
|
-
if: {
|
|
28
|
-
arg: string;
|
|
29
|
-
eq: string;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
target: {
|
|
33
|
-
if: {
|
|
34
|
-
arg: string;
|
|
35
|
-
eq: string;
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
type: {
|
|
39
|
-
if: {
|
|
40
|
-
arg: string;
|
|
41
|
-
neq: string;
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
export default _default;
|
|
47
|
-
export declare const Normal: Meta<typeof Button>;
|
|
48
|
-
export declare const Secondary: Meta<typeof Button>;
|
|
49
|
-
export declare const Ghost: Meta<typeof Button>;
|
|
50
|
-
export declare const Basic: Meta<typeof Button>;
|
|
51
|
-
export declare const Large: Meta<typeof Button>;
|
|
52
|
-
export declare const Link: Meta<typeof Button>;
|
|
53
|
-
export declare const Loading: Meta<typeof Button>;
|
|
54
|
-
export declare const Success: Meta<typeof Button>;
|
|
55
|
-
export declare const Disabled: Meta<typeof Button>;
|
|
56
|
-
export declare const WithIconOnTheLeft: Meta<typeof Button>;
|
|
57
|
-
export declare const WithIconOnTheRight: Meta<typeof Button>;
|
|
58
|
-
export declare const Themed: Meta<typeof Button>;
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { Button } from "./Button";
|
|
3
|
+
type StoryType = StoryObj<typeof Button>;
|
|
4
|
+
declare const meta: Meta<typeof Button>;
|
|
5
|
+
export declare const Normal: StoryType;
|
|
6
|
+
export declare const Secondary: StoryType;
|
|
7
|
+
export declare const Ghost: StoryType;
|
|
8
|
+
export declare const Basic: StoryType;
|
|
9
|
+
export declare const Large: StoryType;
|
|
10
|
+
export declare const Link: StoryType;
|
|
11
|
+
export declare const Loading: StoryType;
|
|
12
|
+
export declare const Success: StoryType;
|
|
13
|
+
export declare const Disabled: StoryType;
|
|
14
|
+
export declare const WithIconOnTheLeft: StoryType;
|
|
15
|
+
export declare const WithIconOnTheRight: StoryType;
|
|
16
|
+
export declare const Themed: StoryType;
|
|
59
17
|
export declare const Counter: () => import("react/jsx-runtime").JSX.Element;
|
|
60
18
|
export declare const PressButton: () => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export default meta;
|
|
@@ -6,8 +6,8 @@ const react_1 = require("react");
|
|
|
6
6
|
const icons_1 = require("@simplybusiness/icons");
|
|
7
7
|
const Button_1 = require("./Button");
|
|
8
8
|
const Icon_1 = require("../Icon");
|
|
9
|
-
const
|
|
10
|
-
|
|
9
|
+
const utils_1 = require("../../utils");
|
|
10
|
+
const meta = {
|
|
11
11
|
title: "Components/Button",
|
|
12
12
|
component: Button_1.Button,
|
|
13
13
|
excludeStories: ["Counter", "PressButton"],
|
|
@@ -41,7 +41,7 @@ exports.default = {
|
|
|
41
41
|
arg: "elementType",
|
|
42
42
|
neq: "a",
|
|
43
43
|
},
|
|
44
|
-
} }, (0,
|
|
44
|
+
} }, (0, utils_1.excludeControls)("role", "icon", "iconPosition", "children")),
|
|
45
45
|
};
|
|
46
46
|
exports.Normal = {
|
|
47
47
|
render: (args) => (0, jsx_runtime_1.jsx)(Button_1.Button, Object.assign({}, args)),
|
|
@@ -220,4 +220,5 @@ const PressButton = () => {
|
|
|
220
220
|
(0, jsx_runtime_1.jsx)("li", { children: pressLog }, i))) })] }));
|
|
221
221
|
};
|
|
222
222
|
exports.PressButton = PressButton;
|
|
223
|
+
exports.default = meta;
|
|
223
224
|
//# sourceMappingURL=Button.stories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.stories.js","sourceRoot":"","sources":["../../../../src/components/Button/Button.stories.tsx"],"names":[],"mappings":";;;;AAAA,iCAAiC;AAEjC,iDAAwD;AACxD,qCAA+C;AAC/C,kCAA+B;AAC/B,
|
|
1
|
+
{"version":3,"file":"Button.stories.js","sourceRoot":"","sources":["../../../../src/components/Button/Button.stories.tsx"],"names":[],"mappings":";;;;AAAA,iCAAiC;AAEjC,iDAAwD;AACxD,qCAA+C;AAC/C,kCAA+B;AAC/B,uCAA8C;AAI9C,MAAM,IAAI,GAAwB;IAChC,KAAK,EAAE,mBAAmB;IAC1B,SAAS,EAAE,eAAM;IACjB,cAAc,EAAE,CAAC,SAAS,EAAE,aAAa,CAAC;IAC1C,QAAQ,kBACN,SAAS,EAAE;YACT,EAAE,EAAE;gBACF,GAAG,EAAE,WAAW;gBAChB,MAAM,EAAE,KAAK;aACd;SACF,EACD,SAAS,EAAE;YACT,EAAE,EAAE;gBACF,GAAG,EAAE,WAAW;gBAChB,MAAM,EAAE,KAAK;aACd;SACF,EACD,IAAI,EAAE;YACJ,EAAE,EAAE;gBACF,GAAG,EAAE,aAAa;gBAClB,EAAE,EAAE,GAAG;aACR;SACF,EACD,GAAG,EAAE;YACH,EAAE,EAAE;gBACF,GAAG,EAAE,aAAa;gBAClB,EAAE,EAAE,GAAG;aACR;SACF,EACD,MAAM,EAAE;YACN,EAAE,EAAE;gBACF,GAAG,EAAE,aAAa;gBAClB,EAAE,EAAE,GAAG;aACR;SACF,EACD,IAAI,EAAE;YACJ,EAAE,EAAE;gBACF,GAAG,EAAE,aAAa;gBAClB,GAAG,EAAE,GAAG;aACT;SACF,IACE,IAAA,uBAAe,EAAC,MAAM,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,CAAC,CAC/D;CACF,CAAC;AAEW,QAAA,MAAM,GAAc;IAC/B,MAAM,EAAE,CAAC,IAAiB,EAAE,EAAE,CAAC,uBAAC,eAAM,oBAAK,IAAI,EAAI;IACnD,IAAI,EAAE;QACJ,QAAQ,EAAE,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oDAAoD;gBACpD,yCAAa,QAAQ,IAAZ,CAAC,CAAiB,CAC5B,CAAC,GACC,IACD,CACP,CAAC;AACJ,CAAC,CAAC;AAhBW,QAAA,WAAW,eAgBtB;AAEF,kBAAe,IAAI,CAAC"}
|
|
@@ -1,30 +1,10 @@
|
|
|
1
|
-
import type { Meta } from "@storybook/react";
|
|
2
|
-
import { Checkbox
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
};
|
|
12
|
-
mapping: {
|
|
13
|
-
valid: string;
|
|
14
|
-
invalid: string;
|
|
15
|
-
neither: string;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
label: {
|
|
19
|
-
control: {
|
|
20
|
-
type: string;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
export default _default;
|
|
26
|
-
export declare const Normal: Meta<typeof Checkbox>;
|
|
27
|
-
export declare const Disabled: Meta<typeof Checkbox>;
|
|
28
|
-
export declare const Valid: Meta<typeof Checkbox>;
|
|
29
|
-
export declare const Invalid: Meta<typeof Checkbox>;
|
|
30
|
-
export declare const LongLabel: Meta<typeof Checkbox>;
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { Checkbox } from ".";
|
|
3
|
+
type StoryType = StoryObj<typeof Checkbox>;
|
|
4
|
+
declare const meta: Meta<typeof Checkbox>;
|
|
5
|
+
export declare const Normal: StoryType;
|
|
6
|
+
export declare const Disabled: StoryType;
|
|
7
|
+
export declare const Valid: StoryType;
|
|
8
|
+
export declare const Invalid: StoryType;
|
|
9
|
+
export declare const LongLabel: StoryType;
|
|
10
|
+
export default meta;
|
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.LongLabel = exports.Invalid = exports.Valid = exports.Disabled = exports.Normal = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const _1 = require(".");
|
|
6
|
-
const
|
|
7
|
-
|
|
6
|
+
const utils_1 = require("../../utils");
|
|
7
|
+
const meta = {
|
|
8
8
|
title: "Forms/Checkbox",
|
|
9
9
|
component: _1.Checkbox,
|
|
10
10
|
argTypes: Object.assign({ validationState: {
|
|
@@ -17,7 +17,10 @@ exports.default = {
|
|
|
17
17
|
},
|
|
18
18
|
}, label: {
|
|
19
19
|
control: { type: "text" },
|
|
20
|
-
} }, (0,
|
|
20
|
+
} }, (0, utils_1.excludeControls)("selected", "setSelected", "isRequired", "isReadOnly", "defaultSelected", "value", "groupDisabled")),
|
|
21
|
+
decorators: [
|
|
22
|
+
Story => ((0, jsx_runtime_1.jsx)(utils_1.StoryContainer, { children: (0, jsx_runtime_1.jsx)(Story, {}) })),
|
|
23
|
+
],
|
|
21
24
|
};
|
|
22
25
|
exports.Normal = {
|
|
23
26
|
render: (args) => (0, jsx_runtime_1.jsx)(_1.Checkbox, Object.assign({}, args)),
|
|
@@ -76,4 +79,5 @@ exports.LongLabel = {
|
|
|
76
79
|
isRequired: false,
|
|
77
80
|
},
|
|
78
81
|
};
|
|
82
|
+
exports.default = meta;
|
|
79
83
|
//# sourceMappingURL=Checkbox.stories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.stories.js","sourceRoot":"","sources":["../../../../src/components/Checkbox/Checkbox.stories.tsx"],"names":[],"mappings":";;;;AACA,wBAA4C;AAC5C,
|
|
1
|
+
{"version":3,"file":"Checkbox.stories.js","sourceRoot":"","sources":["../../../../src/components/Checkbox/Checkbox.stories.tsx"],"names":[],"mappings":";;;;AACA,wBAA4C;AAC5C,uCAA8D;AAI9D,MAAM,IAAI,GAA0B;IAClC,KAAK,EAAE,gBAAgB;IACvB,SAAS,EAAE,WAAQ;IACnB,QAAQ,kBACN,eAAe,EAAE;YACf,OAAO,EAAE,CAAC,OAAO,EAAE,SAAS,EA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AK;QACjB,YAAY,EAAE,EAAE;QAChB,eAAe,EAAE,OAAO;QACxB,eAAe,EAAE,KAAK;QACtB,UAAU,EAAE,KAAK;KAClB;CACF,CAAC;AAEW,QAAA,OAAO,GAAc;IAChC,MAAM,EAAE,CAAC,IAAmB,EAAE,EAAE,CAAC,uBAAC,WAAQ,oBAAK,IAAI,EAAI;IACvD,IAAI,EAAE;QACJ,KAAK,EAAE,SAAS;QAChB,KAAK,EAAE,OAAO;QACd,UAAU,EAAE,KAAK;QACjB,eAAe,EAAE,SAAS;QAC1B,YAAY,EAAE,0BAA0B;QACxC,eAAe,EAAE,KAAK;QACtB,UAAU,EAAE,KAAK;KAClB;CACF,CAAC;AAEW,QAAA,SAAS,GAAc;IAClC,MAAM,EAAE,CAAC,IAAmB,EAAE,EAAE,CAAC,uBAAC,WAAQ,oBAAK,IAAI,EAAI;IACvD,IAAI,EAAE;QACJ,KAAK,EAAE,CACL,wEAEE,gCAAM,QAEN,gCAAM,UAEN,gCAAM,WAEN,gCAAM,UAEN,gCAAM,IACL,CACJ;QACD,KAAK,EAAE,OAAO;QACd,UAAU,EAAE,KAAK;QACjB,YAAY,EAAE,EAAE;QAChB,eAAe,EAAE,KAAK;QACtB,UAAU,EAAE,KAAK;KAClB;CACF,CAAC;AAEF,kBAAe,IAAI,CAAC"}
|
|
@@ -1,24 +1,9 @@
|
|
|
1
|
-
import type { Meta } from "@storybook/react";
|
|
2
|
-
import { CheckboxGroup
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
type: string;
|
|
11
|
-
};
|
|
12
|
-
mapping: {
|
|
13
|
-
valid: string;
|
|
14
|
-
invalid: string;
|
|
15
|
-
neither: string;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
export default _default;
|
|
21
|
-
export declare const Normal: Meta<typeof CheckboxGroup>;
|
|
22
|
-
export declare const Disabled: Meta<typeof CheckboxGroup>;
|
|
23
|
-
export declare const Valid: Meta<typeof CheckboxGroup>;
|
|
24
|
-
export declare const Invalid: Meta<typeof CheckboxGroup>;
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { CheckboxGroup } from ".";
|
|
3
|
+
type StoryType = StoryObj<typeof CheckboxGroup>;
|
|
4
|
+
declare const meta: Meta<typeof CheckboxGroup>;
|
|
5
|
+
export declare const Normal: StoryType;
|
|
6
|
+
export declare const Disabled: StoryType;
|
|
7
|
+
export declare const Valid: StoryType;
|
|
8
|
+
export declare const Invalid: StoryType;
|
|
9
|
+
export default meta;
|
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Invalid = exports.Valid = exports.Disabled = exports.Normal = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const _1 = require(".");
|
|
6
|
-
const
|
|
7
|
-
|
|
6
|
+
const utils_1 = require("../../utils");
|
|
7
|
+
const meta = {
|
|
8
8
|
title: "Forms/CheckboxGroup",
|
|
9
9
|
component: _1.CheckboxGroup,
|
|
10
10
|
argTypes: Object.assign({ validationState: {
|
|
@@ -15,7 +15,10 @@ exports.default = {
|
|
|
15
15
|
invalid: "invalid",
|
|
16
16
|
neither: "",
|
|
17
17
|
},
|
|
18
|
-
} }, (0,
|
|
18
|
+
} }, (0, utils_1.excludeControls)("isRequired", "isReadOnly", "defaultValue", "value")),
|
|
19
|
+
decorators: [
|
|
20
|
+
Story => ((0, jsx_runtime_1.jsx)(utils_1.StoryContainer, { children: (0, jsx_runtime_1.jsx)(Story, {}) })),
|
|
21
|
+
],
|
|
19
22
|
};
|
|
20
23
|
exports.Normal = {
|
|
21
24
|
render: (args) => ((0, jsx_runtime_1.jsxs)(_1.CheckboxGroup, Object.assign({}, args, { children: [(0, jsx_runtime_1.jsx)(_1.Checkbox, { label: "Option 1", value: "option1" }), (0, jsx_runtime_1.jsx)(_1.Checkbox, { label: "Option 2", value: "option2" }), (0, jsx_runtime_1.jsx)(_1.Checkbox, { label: "Option 3", value: "option3" })] }))),
|
|
@@ -60,4 +63,5 @@ exports.Invalid = {
|
|
|
60
63
|
isRequired: false,
|
|
61
64
|
},
|
|
62
65
|
};
|
|
66
|
+
exports.default = meta;
|
|
63
67
|
//# sourceMappingURL=CheckboxGroup.stories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckboxGroup.stories.js","sourceRoot":"","sources":["../../../../src/components/Checkbox/CheckboxGroup.stories.tsx"],"names":[],"mappings":";;;;AACA,wBAAgE;AAChE,
|
|
1
|
+
{"version":3,"file":"CheckboxGroup.stories.js","sourceRoot":"","sources":["../../../../src/components/Checkbox/CheckboxGroup.stories.tsx"],"names":[],"mappings":";;;;AACA,wBAAgE;AAChE,uCAA8D;AAI9D,MAAM,IAAI,GAA+B;IACvC,KAAK,EAAE,qBAAqB;IAC5B,SAAS,EAAE,gBAAa;IACxB,QAAQ,kBACN,eAAe,EAAE;YACf,OAAO,EAAE,CAAC,OAAO,EAAE,SAAS,EAAE,SAAS,CAAC;YACxC,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;YAC1B,OAAO,EAAE;gBACP,KAAK,EAAE,OAAO;gBACd,OAAO,EAAE,SAAS;gBAClB,OAAO,EAAE,EAAE;aACZ;SACF,IACE,IAAA,uBAAe,EAAC,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,OAAO,CAAC,CACxE;IACD,UAAU,EAAE;QACV,KAAK,CAAC,EAAE,CAAC,CACP,uBAAC,sBAAc,cACb,uBAAC,KAAK,KAAG,GACM,CAClB;KACF;CACF,CAAC;AAEW,QAAA,MAAM,GAAc;IAC/B,MAAM,EAAE,CAAC,IAAwB,EAAE,EAAE,CAAC,CACpC,wBAAC,gBAAa,oBAAK,IAAI,eACrB,uBAAC,WAAQ,IAAC,KAAK,EAAC,UAAU,EAAC,KAAK,EAA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,IAAI,EAAE;QACJ,KAAK,EAAE,OAAO;QACd,YAAY,EAAE,EAAE;QAChB,UAAU,EAAE,KAAK;QACjB,eAAe,EAAE,OAAO;QACxB,WAAW,EAAE,UAAU;QACvB,UAAU,EAAE,KAAK;KAClB;CACF,CAAC;AAEW,QAAA,OAAO,GAAc;IAChC,MAAM,EAAE,CAAC,IAAwB,EAAE,EAAE,CAAC,CACpC,wBAAC,gBAAa,oBAAK,IAAI,eACrB,uBAAC,WAAQ,IAAC,KAAK,EAAC,UAAU,EAAC,KAAK,EAAC,SAAS,GAAG,EAC7C,uBAAC,WAAQ,IAAC,KAAK,EAAC,UAAU,EAAC,KAAK,EAAC,SAAS,GAAG,EAC7C,uBAAC,WAAQ,IAAC,KAAK,EAAC,UAAU,EAAC,KAAK,EAAC,SAAS,GAAG,KAC/B,CACjB;IACD,IAAI,EAAE;QACJ,KAAK,EAAE,OAAO;QACd,YAAY,EAAE,wBAAwB;QACtC,UAAU,EAAE,KAAK;QACjB,eAAe,EAAE,SAAS;QAC1B,WAAW,EAAE,UAAU;QACvB,UAAU,EAAE,KAAK;KAClB;CACF,CAAC;AAEF,kBAAe,IAAI,CAAC"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import type { Meta } from "@storybook/react";
|
|
2
|
-
import { Container
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export default _default;
|
|
8
|
-
export declare const Normal: Meta<typeof Container>;
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { Container } from "./Container";
|
|
3
|
+
type StoryType = StoryObj<typeof Container>;
|
|
4
|
+
declare const meta: Meta<typeof Container>;
|
|
5
|
+
export declare const Normal: StoryType;
|
|
6
|
+
export default meta;
|
|
@@ -3,11 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Normal = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const Container_1 = require("./Container");
|
|
6
|
-
|
|
6
|
+
const meta = {
|
|
7
7
|
title: "Layout/Container",
|
|
8
8
|
component: Container_1.Container,
|
|
9
9
|
};
|
|
10
10
|
exports.Normal = {
|
|
11
11
|
render: (args) => ((0, jsx_runtime_1.jsx)(Container_1.Container, Object.assign({}, args, { children: "Lorem ipsum dolor, sit amet consectetur adipisicing elit. Sequi repellendus deleniti architecto, expedita ex maxime eum. Reiciendis, natus? Voluptatibus error beatae praesentium molestias saepe dolorem molestiae rem. Rem, eveniet beatae." }))),
|
|
12
12
|
};
|
|
13
|
+
exports.default = meta;
|
|
13
14
|
//# sourceMappingURL=Container.stories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Container.stories.js","sourceRoot":"","sources":["../../../../src/components/Container/Container.stories.tsx"],"names":[],"mappings":";;;;AACA,2CAAwD;
|
|
1
|
+
{"version":3,"file":"Container.stories.js","sourceRoot":"","sources":["../../../../src/components/Container/Container.stories.tsx"],"names":[],"mappings":";;;;AACA,2CAAwD;AAIxD,MAAM,IAAI,GAA2B;IACnC,KAAK,EAAE,kBAAkB;IACzB,SAAS,EAAE,qBAAS;CACrB,CAAC;AAEW,QAAA,MAAM,GAAc;IAC/B,MAAM,EAAE,CAAC,IAAoB,EAAE,EAAE,CAAC,CAChC,uBAAC,qBAAS,oBAAK,IAAI,iQAKP,CACb;CACF,CAAC;AAEF,kBAAe,IAAI,CAAC"}
|
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
import type { Meta } from "@storybook/react";
|
|
2
|
-
import { Divider
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
displayName: string;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
export default _default;
|
|
11
|
-
export declare const Normal: Meta<typeof Divider>;
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { Divider } from "./Divider";
|
|
3
|
+
type StoryType = StoryObj<typeof Divider>;
|
|
4
|
+
declare const meta: Meta<typeof Divider>;
|
|
5
|
+
export declare const Normal: StoryType;
|
|
6
|
+
export default meta;
|
|
@@ -3,11 +3,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Normal = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const Divider_1 = require("./Divider");
|
|
6
|
-
|
|
6
|
+
const utils_1 = require("../../utils");
|
|
7
|
+
const meta = {
|
|
7
8
|
title: "Components/Divider",
|
|
8
9
|
component: Divider_1.Divider,
|
|
10
|
+
decorators: [
|
|
11
|
+
Story => ((0, jsx_runtime_1.jsx)(utils_1.StoryContainer, { children: (0, jsx_runtime_1.jsx)(Story, {}) })),
|
|
12
|
+
],
|
|
9
13
|
};
|
|
10
14
|
exports.Normal = {
|
|
11
15
|
render: (args) => (0, jsx_runtime_1.jsx)(Divider_1.Divider, Object.assign({}, args)),
|
|
12
16
|
};
|
|
17
|
+
exports.default = meta;
|
|
13
18
|
//# sourceMappingURL=Divider.stories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Divider.stories.js","sourceRoot":"","sources":["../../../../src/components/Divider/Divider.stories.tsx"],"names":[],"mappings":";;;;AACA,uCAAkD;
|
|
1
|
+
{"version":3,"file":"Divider.stories.js","sourceRoot":"","sources":["../../../../src/components/Divider/Divider.stories.tsx"],"names":[],"mappings":";;;;AACA,uCAAkD;AAClD,uCAA6C;AAI7C,MAAM,IAAI,GAAyB;IACjC,KAAK,EAAE,oBAAoB;IAC3B,SAAS,EAAE,iBAAO;IAClB,UAAU,EAAE;QACV,KAAK,CAAC,EAAE,CAAC,CACP,uBAAC,sBAAc,cACb,uBAAC,KAAK,KAAG,GACM,CAClB;KACF;CACF,CAAC;AAEW,QAAA,MAAM,GAAc;IAC/B,MAAM,EAAE,CAAC,IAAkB,EAAE,EAAE,CAAC,uBAAC,iBAAO,oBAAK,IAAI,EAAI;CACtD,CAAC;AAEF,kBAAe,IAAI,CAAC"}
|