@simplybusiness/mobius 4.2.2 → 4.2.3
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 +1 -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
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import type { Meta } from "@storybook/react";
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
2
|
import { Icon } from "./Icon";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export default _default;
|
|
9
|
-
export declare const Normal: Meta<typeof Icon>;
|
|
10
|
-
export declare const Spinning: Meta<typeof Icon>;
|
|
3
|
+
type StoryType = StoryObj<typeof Icon>;
|
|
4
|
+
declare const meta: Meta<typeof Icon>;
|
|
5
|
+
export declare const Normal: StoryType;
|
|
6
|
+
export declare const Spinning: StoryType;
|
|
7
|
+
export default meta;
|
|
@@ -3,17 +3,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Spinning = exports.Normal = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const Icon_1 = require("./Icon");
|
|
6
|
-
const
|
|
7
|
-
|
|
6
|
+
const utils_1 = require("../../utils");
|
|
7
|
+
const meta = {
|
|
8
8
|
title: "Components/Icon",
|
|
9
9
|
component: Icon_1.Icon,
|
|
10
|
-
argTypes: Object.assign({}, (0,
|
|
10
|
+
argTypes: Object.assign({}, (0, utils_1.excludeControls)("icon")),
|
|
11
11
|
};
|
|
12
12
|
const defaultArgs = {
|
|
13
13
|
spin: false,
|
|
14
14
|
spinReverse: false,
|
|
15
15
|
fixedWidth: false,
|
|
16
|
-
size: "
|
|
16
|
+
size: "lg",
|
|
17
17
|
};
|
|
18
18
|
const home = {
|
|
19
19
|
iconName: "home",
|
|
@@ -31,4 +31,5 @@ exports.Spinning = {
|
|
|
31
31
|
render: (args) => ((0, jsx_runtime_1.jsx)("p", { children: (0, jsx_runtime_1.jsx)(Icon_1.Icon, Object.assign({}, args, { icon: home })) })),
|
|
32
32
|
args: Object.assign(Object.assign({}, defaultArgs), { spin: true }),
|
|
33
33
|
};
|
|
34
|
+
exports.default = meta;
|
|
34
35
|
//# sourceMappingURL=Icon.stories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.stories.js","sourceRoot":"","sources":["../../../../src/components/Icon/Icon.stories.tsx"],"names":[],"mappings":";;;;AACA,iCAA8B;AAC9B,
|
|
1
|
+
{"version":3,"file":"Icon.stories.js","sourceRoot":"","sources":["../../../../src/components/Icon/Icon.stories.tsx"],"names":[],"mappings":";;;;AACA,iCAA8B;AAC9B,uCAA8C;AAK9C,MAAM,IAAI,GAAsB;IAC9B,KAAK,EAAE,iBAAiB;IACxB,SAAS,EAAE,WAAI;IACf,QAAQ,oBACH,IAAA,uBAAe,EAAC,MAAM,CAAC,CAC3B;CACF,CAAC;AAEF,MAAM,WAAW,GAAG;IAClB,IAAI,EAAE,KAAK;IACX,WAAW,EAAE,KAAK;IAClB,UAAU,EAAE,KAAK;IACjB,IAAI,EAAE,IAAI;CACF,CAAC;AAEX,MAAM,IAAI,GAAG;IACX,QAAQ,EAAE,MAAM;IAChB,KAAK,EAAE,GAAG;IACV,MAAM,EAAE,GAAG;IACX,WAAW,EACT,+JAA+J;IACjK,QAAQ,EAAE,MAAM;IAChB,IAAI,EAAE,MAAM;CACJ,CAAC;AAEE,QAAA,MAAM,GAAc;IAC/B,MAAM,EAAE,CAAC,IAAe,EAAE,EAAE,CAAC,CAC3B,wCACE,uBAAC,WAAI,oBAAK,IAAI,IAAE,IAAI,EAAE,IAAI,IAAI,GAC5B,CACL;IACD,IAAI,oBACC,WAAW,CACf;CACF,CAAC;AAEW,QAAA,QAAQ,GAAc;IACjC,MAAM,EAAE,CAAC,IAAe,EAAE,EAAE,CAAC,CAC3B,wCACE,uBAAC,WAAI,oBAAK,IAAI,IAAE,IAAI,EAAE,IAAI,IAAI,GAC5B,CACL;IACD,IAAI,kCACC,WAAW,KACd,IAAI,EAAE,IAAI,GACX;CACF,CAAC;AAEF,kBAAe,IAAI,CAAC"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import type { Meta } from "@storybook/react";
|
|
2
|
-
import { Image
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export default _default;
|
|
8
|
-
export declare const Normal: Meta<typeof Image>;
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { Image } from "./Image";
|
|
3
|
+
type StoryType = StoryObj<typeof Image>;
|
|
4
|
+
declare const meta: Meta<typeof Image>;
|
|
5
|
+
export declare const Normal: StoryType;
|
|
6
|
+
export default meta;
|
|
@@ -3,11 +3,11 @@ 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 Image_1 = require("./Image");
|
|
6
|
-
const
|
|
7
|
-
exports.default = {
|
|
6
|
+
const meta = {
|
|
8
7
|
title: "Components/Image",
|
|
9
8
|
component: Image_1.Image,
|
|
10
9
|
};
|
|
10
|
+
const testImg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWMAAACOCAMAAADTsZk7AAAAflBMVEX///8AAACHh4fHx8dAQECZmZn19fXW1taBgYESEhJfX19kZGTLy8vi4uLS0tLf39/5+fnr6+t2dnZFRUUdHR2NjY03NzdaWlp9fX3AwMAuLi5ubm4WFhbIyMhRUVFhYWG3t7eWlpakpKQtLS2srKwkJCRKSkqfn59UVFQhISE54s5lAAAGvElEQVR4nO2aeXeqPBDGxQXhKpsoQrEtWpf2+3/Bt2YIkA3Q5vbcc97n959mSIaHZDJZJhMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/le4Qbheh+Ey+bUW42DJmgziIcskYpbLqN85Xp9rzUWqdmogb9wpPK3BTajHva3mzp3Lp3fu+ng2NSA+L3Av9qohz0/l/MCaTMtF0GcZLvYZM/Sz/bEwWbnnPL0ws2y1Cwcaf4jQMdG4fdSXXzu1xMdtt+hwbN+5NNX/ZnaKlee9fge5WNsqMlmu30TLeaHr9sniS7BKX3ubf4gRGi8GNXI3cqFf8RdRijh7s1Os3Otz+/YlV+cftYbuVG25VHt9MVesPGtBz4bGsacp3tQi/w2NE22lG00YDd51li9ywNjprOa2RF6bJHCawWfQOG3qKGrPy91xV1Lkc/xZXWiMFVfZlRZWbtbYvTYylFNv1XTBTBEl4kWHt42Xv9e+OR9LwSpu+nq2n3plU7u/HqtiP+6sZk1Sntb176LpFazAL15nIu20QE7l7KPE0ezz/mvKC5dNA8zsZa0+r9Cvccx78WZ9zyjcoFjVf5SSZcJD8YJlO270Sl98Jprd+Fcvou+XjpM1H5eZ5QR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Ll7q8cNbk3nxJY77zvK06VnWuP7xh+xgDGitnpvwVl/wsrb6FFdQLa2UR8qDGq7XYXrO4SJoj0ld2xhnM+BJO3naI+EH0LqTT1XBR5+/CIOPH0lnBXiEI+VUA7fbeT3hsndfudp75H9u3zfS429RdSl0mPKixQlPs+vyvbOV5ZXP2/67Es3ZHMC29zi0BcZDE/KM5H/vcK6+8+mz4bOdBHtX4o3kw05SmP15LmzVue7JArpky1qnO8iIv3nKdVWr/duTTGk8i1UXdKZo9jSex6tNWu9c3CfZqRaX6ktVFsZravlwx6dH4qH/lr9Yijt59oUxzo6xOunQXLxQGNf6e5aRLVrmp08WVNMz2M12UDfKDaGU9TtyJ2I1UjTiGu7Fi3pCcNlc6a3/5Y7hZero/pb/5J6G/rCsZBYtyzr7sIS3PvcO6OO7JtW26uRmPqd1TPmczop+tFn9FYQskUXi/Ih39hTGmp77jvRxzxzsky34zXt+vvQEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA1vgP5DhQPmIS6yAAAAAASUVORK5CYII=";
|
|
11
11
|
exports.Normal = {
|
|
12
12
|
render: (args) => (0, jsx_runtime_1.jsx)(Image_1.Image, Object.assign({}, args)),
|
|
13
13
|
args: {
|
|
@@ -15,4 +15,5 @@ exports.Normal = {
|
|
|
15
15
|
alt: "test image",
|
|
16
16
|
},
|
|
17
17
|
};
|
|
18
|
+
exports.default = meta;
|
|
18
19
|
//# sourceMappingURL=Image.stories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Image.stories.js","sourceRoot":"","sources":["../../../../src/components/Image/Image.stories.tsx"],"names":[],"mappings":";;;;AACA,mCAA4C;
|
|
1
|
+
{"version":3,"file":"Image.stories.js","sourceRoot":"","sources":["../../../../src/components/Image/Image.stories.tsx"],"names":[],"mappings":";;;;AACA,mCAA4C;AAI5C,MAAM,IAAI,GAAuB;IAC/B,KAAK,EAAE,kBAAkB;IACzB,SAAS,EAAE,aAAK;CACjB,CAAC;AAEF,MAAM,OAAO,GACX,whFAAwhF,CAAC;AAE9gF,QAAA,MAAM,GAAc;IAC/B,MAAM,EAAE,CAAC,IAAgB,EAAE,EAAE,CAAC,uBAAC,aAAK,oBAAK,IAAI,EAAI;IACjD,IAAI,EAAE;QACJ,GAAG,EAAE,OAAO;QACZ,GAAG,EAAE,YAAY;KAClB;CACF,CAAC;AAEF,kBAAe,IAAI,CAAC"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import type { Meta } from "@storybook/react";
|
|
2
|
-
import { Label
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export default _default;
|
|
8
|
-
export declare const Normal: Meta<typeof Label>;
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { Label } from "./Label";
|
|
3
|
+
type StoryType = StoryObj<typeof Label>;
|
|
4
|
+
declare const meta: Meta<typeof Label>;
|
|
5
|
+
export declare const Normal: StoryType;
|
|
6
|
+
export default meta;
|
|
@@ -3,7 +3,7 @@ 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 Label_1 = require("./Label");
|
|
6
|
-
|
|
6
|
+
const meta = {
|
|
7
7
|
title: "Forms/Label",
|
|
8
8
|
component: Label_1.Label,
|
|
9
9
|
};
|
|
@@ -13,4 +13,5 @@ exports.Normal = {
|
|
|
13
13
|
children: "Example label",
|
|
14
14
|
},
|
|
15
15
|
};
|
|
16
|
+
exports.default = meta;
|
|
16
17
|
//# sourceMappingURL=Label.stories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Label.stories.js","sourceRoot":"","sources":["../../../../src/components/Label/Label.stories.tsx"],"names":[],"mappings":";;;;AACA,mCAA4C;
|
|
1
|
+
{"version":3,"file":"Label.stories.js","sourceRoot":"","sources":["../../../../src/components/Label/Label.stories.tsx"],"names":[],"mappings":";;;;AACA,mCAA4C;AAI5C,MAAM,IAAI,GAAuB;IAC/B,KAAK,EAAE,aAAa;IACpB,SAAS,EAAE,aAAK;CACjB,CAAC;AAEW,QAAA,MAAM,GAAc;IAC/B,MAAM,EAAE,CAAC,IAAgB,EAAE,EAAE,CAAC,uBAAC,aAAK,oBAAK,IAAI,EAAI;IACjD,IAAI,EAAE;QACJ,QAAQ,EAAE,eAAe;KAC1B;CACF,CAAC;AAEF,kBAAe,IAAI,CAAC"}
|
|
@@ -1,38 +1,7 @@
|
|
|
1
|
-
import type { Meta } from "@storybook/react";
|
|
2
|
-
import { Link
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
options: string[];
|
|
9
|
-
control: {
|
|
10
|
-
type: string;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
to: {
|
|
14
|
-
control: {
|
|
15
|
-
type: string;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
title: {
|
|
19
|
-
control: {
|
|
20
|
-
type: string;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
download: {
|
|
24
|
-
control: {
|
|
25
|
-
type: string;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
rel: {
|
|
29
|
-
options: string[];
|
|
30
|
-
control: {
|
|
31
|
-
type: string;
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
export default _default;
|
|
37
|
-
export declare const Normal: Meta<typeof Link>;
|
|
38
|
-
export declare const Disabled: Meta<typeof Link>;
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { Link } from "./Link";
|
|
3
|
+
type StoryType = StoryObj<typeof Link>;
|
|
4
|
+
declare const meta: Meta<typeof Link>;
|
|
5
|
+
export declare const Normal: StoryType;
|
|
6
|
+
export declare const Disabled: StoryType;
|
|
7
|
+
export default meta;
|
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Disabled = exports.Normal = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const Link_1 = require("./Link");
|
|
6
|
-
const
|
|
7
|
-
|
|
6
|
+
const utils_1 = require("../../utils");
|
|
7
|
+
const meta = {
|
|
8
8
|
title: "Components/Link",
|
|
9
9
|
component: Link_1.Link,
|
|
10
10
|
argTypes: Object.assign({ target: {
|
|
@@ -19,7 +19,7 @@ exports.default = {
|
|
|
19
19
|
}, rel: {
|
|
20
20
|
options: ["noopener noreferrer", "canonical", "nofollow"],
|
|
21
21
|
control: { type: "select" },
|
|
22
|
-
} }, (0,
|
|
22
|
+
} }, (0, utils_1.excludeControls)("elementType", "style", "onClick")),
|
|
23
23
|
};
|
|
24
24
|
exports.Normal = {
|
|
25
25
|
render: (args) => (0, jsx_runtime_1.jsx)(Link_1.Link, Object.assign({}, args, { children: "Link text" })),
|
|
@@ -41,4 +41,5 @@ exports.Disabled = {
|
|
|
41
41
|
title: "",
|
|
42
42
|
},
|
|
43
43
|
};
|
|
44
|
+
exports.default = meta;
|
|
44
45
|
//# sourceMappingURL=Link.stories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Link.stories.js","sourceRoot":"","sources":["../../../../src/components/Link/Link.stories.tsx"],"names":[],"mappings":";;;;AACA,iCAAyC;AACzC,
|
|
1
|
+
{"version":3,"file":"Link.stories.js","sourceRoot":"","sources":["../../../../src/components/Link/Link.stories.tsx"],"names":[],"mappings":";;;;AACA,iCAAyC;AACzC,uCAA8C;AAI9C,MAAM,IAAI,GAAsB;IAC9B,KAAK,EAAE,iBAAiB;IACxB,SAAS,EAAE,WAAI;IACf,QAAQ,kBACN,MAAM,EAAE;YACN,OAAO,EAAE,CAAC,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,CAAC;YAC/C,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;SAC5B,EACD,EAAE,EAAE;YACF,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;SAC1B,EACD,KAAK,EAAE;YACL,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;SAC1B,EACD,QAAQ,EAAE;YACR,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;SAC7B,EACD,GAAG,EAAE;YACH,OAAO,EAAE,CAAC,qBAAqB,EAAE,WAAW,EAAE,UAAU,CAAC;YACzD,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;SAC5B,IACE,IAAA,uBAAe,EAAC,aAAa,EAAE,OAAO,EAAE,SAAS,CAAC,CACtD;CACF,CAAC;AAEW,QAAA,MAAM,GAAc;IAC/B,MAAM,EAAE,CAAC,IAAe,EAAE,EAAE,CAAC,uBAAC,WAAI,oBAAK,IAAI,6BAAkB;IAC7D,IAAI,EAAE;QACJ,IAAI,EAAE,wBAAwB;QAC9B,UAAU,EAAE,KAAK;QACjB,QAAQ,EAAE,KAAK;QACf,EAAE,EAAE,EAAE;QACN,KAAK,EAAE,EAAE;KACV;CACF,CAAC;AAEW,QAAA,QAAQ,GAAc;IACjC,MAAM,EAAE,CAAC,IAAe,EAAE,EAAE,CAAC,uBAAC,WAAI,oBAAK,IAAI,6BAAkB;IAC7D,IAAI,EAAE;QACJ,IAAI,EAAE,wBAAwB;QAC9B,UAAU,EAAE,IAAI;QAChB,QAAQ,EAAE,KAAK;QACf,EAAE,EAAE,EAAE;QACN,KAAK,EAAE,EAAE;KACV;CACF,CAAC;AAEF,kBAAe,IAAI,CAAC"}
|
|
@@ -1,48 +1,6 @@
|
|
|
1
|
-
import type { Meta } from "@storybook/react";
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
2
|
import { LinkButton } from "./LinkButton";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
target: {
|
|
8
|
-
options: string[];
|
|
9
|
-
control: {
|
|
10
|
-
type: string;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
to: {
|
|
14
|
-
control: {
|
|
15
|
-
type: string;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
title: {
|
|
19
|
-
control: {
|
|
20
|
-
type: string;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
download: {
|
|
24
|
-
control: {
|
|
25
|
-
type: string;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
rel: {
|
|
29
|
-
options: string[];
|
|
30
|
-
control: {
|
|
31
|
-
type: string;
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
icon: {
|
|
35
|
-
options: string[];
|
|
36
|
-
control: {
|
|
37
|
-
type: string;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
iconPosition: {
|
|
41
|
-
if: {
|
|
42
|
-
arg: string;
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
export default _default;
|
|
48
|
-
export declare const Normal: Meta<typeof LinkButton>;
|
|
3
|
+
type StoryType = StoryObj<typeof LinkButton>;
|
|
4
|
+
declare const meta: Meta<typeof LinkButton>;
|
|
5
|
+
export declare const Normal: StoryType;
|
|
6
|
+
export default meta;
|
|
@@ -3,8 +3,8 @@ 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 LinkButton_1 = require("./LinkButton");
|
|
6
|
-
const
|
|
7
|
-
|
|
6
|
+
const utils_1 = require("../../utils");
|
|
7
|
+
const meta = {
|
|
8
8
|
title: "Components/LinkButton",
|
|
9
9
|
component: LinkButton_1.LinkButton,
|
|
10
10
|
argTypes: Object.assign({ target: {
|
|
@@ -26,7 +26,7 @@ exports.default = {
|
|
|
26
26
|
if: {
|
|
27
27
|
arg: "icon",
|
|
28
28
|
},
|
|
29
|
-
} }, (0,
|
|
29
|
+
} }, (0, utils_1.excludeControls)("style")),
|
|
30
30
|
};
|
|
31
31
|
exports.Normal = {
|
|
32
32
|
render: (args) => ((0, jsx_runtime_1.jsx)(LinkButton_1.LinkButton, Object.assign({}, args, { children: "LinkButton text" }))),
|
|
@@ -42,4 +42,5 @@ exports.Normal = {
|
|
|
42
42
|
role: "",
|
|
43
43
|
},
|
|
44
44
|
};
|
|
45
|
+
exports.default = meta;
|
|
45
46
|
//# sourceMappingURL=LinkButton.stories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LinkButton.stories.js","sourceRoot":"","sources":["../../../../src/components/LinkButton/LinkButton.stories.tsx"],"names":[],"mappings":";;;;AACA,6CAA2D;AAC3D,
|
|
1
|
+
{"version":3,"file":"LinkButton.stories.js","sourceRoot":"","sources":["../../../../src/components/LinkButton/LinkButton.stories.tsx"],"names":[],"mappings":";;;;AACA,6CAA2D;AAC3D,uCAA8C;AAI9C,MAAM,IAAI,GAA4B;IACpC,KAAK,EAAE,uBAAuB;IAC9B,SAAS,EAAE,uBAAU;IACrB,QAAQ,kBACN,MAAM,EAAE;YACN,OAAO,EAAE,CAAC,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,CAAC;YAC/C,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;SAC5B,EACD,EAAE,EAAE;YACF,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;SAC1B,EACD,KAAK,EAAE;YACL,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;SAC1B,EACD,QAAQ,EAAE;YACR,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;SAC7B,EACD,GAAG,EAAE;YACH,OAAO,EAAE,CAAC,qBAAqB,EAAE,WAAW,EAAE,UAAU,CAAC;YACzD,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;SAC5B,EACD,IAAI,EAAE;YACJ,OAAO,EAAE,CAAC,MAAM,EAAE,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,CAAC;YAChE,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;SAC3B,EACD,YAAY,EAAE;YACZ,EAAE,EAAE;gBACF,GAAG,EAAE,MAAM;aACZ;SACF,IACE,IAAA,uBAAe,EAAC,OAAO,CAAC,CAC5B;CACF,CAAC;AAEW,QAAA,MAAM,GAAc;IAC/B,MAAM,EAAE,CAAC,IAAqB,EAAE,EAAE,CAAC,CACjC,uBAAC,uBAAU,oBAAK,IAAI,mCAA8B,CACnD;IACD,IAAI,EAAE;QACJ,IAAI,EAAE,wBAAwB;QAC9B,EAAE,EAAE,EAAE;QACN,KAAK,EAAE,EAAE;QACT,IAAI,EAAE,IAAI;QACV,QAAQ,EAAE,KAAK;QACf,UAAU,EAAE,KAAK;QACjB,SAAS,EAAE,KAAK;QAChB,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,EAAE;KACT;CACF,CAAC;AAEF,kBAAe,IAAI,CAAC"}
|
|
@@ -1,33 +1,10 @@
|
|
|
1
|
-
import type { Meta } from "@storybook/react";
|
|
2
|
-
import { List
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
if: {
|
|
12
|
-
arg: string;
|
|
13
|
-
truthy: boolean;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
isReversed: {
|
|
17
|
-
if: {
|
|
18
|
-
arg: string;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
start: {
|
|
22
|
-
if: {
|
|
23
|
-
arg: string;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
export default _default;
|
|
29
|
-
export declare const Unordered: Meta<typeof List>;
|
|
30
|
-
export declare const Ordered: Meta<typeof List>;
|
|
31
|
-
export declare const StartingFromASpecificNumber: Meta<typeof List>;
|
|
32
|
-
export declare const Reversed: Meta<typeof List>;
|
|
33
|
-
export declare const WithCustomIcons: Meta<typeof List>;
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { List } from ".";
|
|
3
|
+
type StoryType = StoryObj<typeof List>;
|
|
4
|
+
declare const meta: Meta<typeof List>;
|
|
5
|
+
export declare const Unordered: StoryType;
|
|
6
|
+
export declare const Ordered: StoryType;
|
|
7
|
+
export declare const StartingFromASpecificNumber: StoryType;
|
|
8
|
+
export declare const Reversed: StoryType;
|
|
9
|
+
export declare const WithCustomIcons: StoryType;
|
|
10
|
+
export default meta;
|
|
@@ -5,8 +5,8 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
5
5
|
const icons_1 = require("@simplybusiness/icons");
|
|
6
6
|
const index_1 = require("../index");
|
|
7
7
|
const _1 = require(".");
|
|
8
|
-
const
|
|
9
|
-
|
|
8
|
+
const utils_1 = require("../../utils");
|
|
9
|
+
const meta = {
|
|
10
10
|
title: "Components/List",
|
|
11
11
|
component: _1.List,
|
|
12
12
|
argTypes: Object.assign({ liststyletype: {
|
|
@@ -23,7 +23,7 @@ exports.default = {
|
|
|
23
23
|
if: {
|
|
24
24
|
arg: "isOrdered",
|
|
25
25
|
},
|
|
26
|
-
} }, (0,
|
|
26
|
+
} }, (0, utils_1.excludeControls)("icon")),
|
|
27
27
|
};
|
|
28
28
|
exports.Unordered = {
|
|
29
29
|
render: (args) => ((0, jsx_runtime_1.jsxs)(_1.List, Object.assign({}, args, { children: [(0, jsx_runtime_1.jsx)(_1.ListItem, { children: "Foo" }), (0, jsx_runtime_1.jsx)(_1.ListItem, { children: "Bar" }), (0, jsx_runtime_1.jsx)(_1.ListItem, { children: "Baz" })] }))),
|
|
@@ -78,4 +78,5 @@ exports.WithCustomIcons = {
|
|
|
78
78
|
},
|
|
79
79
|
},
|
|
80
80
|
};
|
|
81
|
+
exports.default = meta;
|
|
81
82
|
//# sourceMappingURL=List.stories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"List.stories.js","sourceRoot":"","sources":["../../../../src/components/List/List.stories.tsx"],"names":[],"mappings":";;;;AACA,iDAAoD;AACpD,oCAAsC;AACtC,wBAA8C;AAC9C,
|
|
1
|
+
{"version":3,"file":"List.stories.js","sourceRoot":"","sources":["../../../../src/components/List/List.stories.tsx"],"names":[],"mappings":";;;;AACA,iDAAoD;AACpD,oCAAsC;AACtC,wBAA8C;AAC9C,uCAA8C;AAI9C,MAAM,IAAI,GAAsB;IAC9B,KAAK,EAAE,iBAAiB;IACxB,SAAS,EAAE,OAAI;IACf,QAAQ,kBACN,aAAa,EAAE;YACb,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;YAC1B,EAAE,EAAE;gBACF,GAAG,EAAE,WAAW;gBAChB,MAAM,EAAE,KAAK;aACd;SACF,EACD,UAAU,EAAE;YACV,EAAE,EAAE;gBACF,GAAG,EAAE,WAAW;aACjB;SACF,EACD,KAAK,EAAE;YACL,EAAE,EAAE;gBACF,GAAG,EAAE,WAAW;aACjB;SACF,IACE,IAAA,uBAAe,EAAC,MAAM,CAAC,CAC3B;CACF,CAAC;AAEW,QAAA,SAAS,GAAc;IAClC,MAAM,EAAE,CAAC,IAAe,EAAE,EAAE,CAAC,CAC3B,wBAAC,OAAI,oBAAK,IAAI,eACZ,uBAAC,WAAQ,sBAAe,EACxB,uBAAC,WAAQ,sBAAe,EACxB,uBAAC,WAAQ,sBAAe,KACnB,CACR;IACD,IAAI,EAAE;QACJ,SAAS,EAAE,KAAK;QAChB,UAAU,EAAE,KAAK;QACjB,aAAa,EAAE,MAAM;KACtB;CACF,CAAC;AAEW,QAAA,OAAO,GAAc;IAChC,MAAM,EAAE,CAAC,IAAe,EAAE,EAAE,CAAC,CAC3B,wBAAC,OAAI,oBAAK,IAAI,eACZ,uBAAC,WAAQ,sBAAe,EACxB,uBAAC,WAAQ,sBAAe,EACxB,uBAAC,WAAQ,sBAAe,KACnB,CAC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R;IACD,IAAI,EAAE;QACJ,IAAI,EAAE,uBAAC,YAAI,IAAC,IAAI,EAAE,YAAI,EAAE,KAAK,EAAC,OAAO,GAAG;KACzC;IACD,UAAU,EAAE;QACV,QAAQ,EAAE;YACR,OAAO,EAAE,CAAC,WAAW,EAAE,eAAe,CAAC;SACxC;KACF;CACF,CAAC;AAEF,kBAAe,IAAI,CAAC"}
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import { Ref, RefAttributes } from "react";
|
|
2
|
-
import { type IconDefinition } from "@simplybusiness/icons";
|
|
3
2
|
import { ForwardedRefComponent } from "../../types/components";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
icon?: IconDefinition;
|
|
7
|
-
fontSize?: string;
|
|
8
|
-
color?: string;
|
|
3
|
+
import { IconProps } from "../Icon";
|
|
4
|
+
export interface LoadingIndicatorProps extends RefAttributes<SVGSVGElement>, IconProps {
|
|
9
5
|
}
|
|
10
6
|
export type LoadingIndicatorRef = Ref<SVGSVGElement>;
|
|
11
7
|
declare const LoadingIndicator: ForwardedRefComponent<LoadingIndicatorProps, SVGSVGElement>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoadingIndicator.js","sourceRoot":"","sources":["../../../../src/components/LoadingIndicator/LoadingIndicator.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,iCAAuD;AACvD,+DAA2C;AAC3C,
|
|
1
|
+
{"version":3,"file":"LoadingIndicator.js","sourceRoot":"","sources":["../../../../src/components/LoadingIndicator/LoadingIndicator.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,iCAAuD;AACvD,+DAA2C;AAC3C,iDAAgD;AAEhD,kCAA0C;AAQ1C,MAAM,gBAAgB,GAGlB,IAAA,kBAAU,EAAC,CAAC,KAA4B,EAAE,GAAwB,EAAE,EAAE;IACxE,MAAM,EAAE,IAAI,GAAG,eAAO,KAAoB,KAAK,EAApB,UAAU,UAAK,KAAK,EAAzC,QAAiC,CAAQ,CAAC;IAEhD,MAAM,OAAO,GAAG,IAAA,gBAAU,EACxB,QAAQ,EACR,yBAAyB,EACzB,UAAU,CAAC,SAAS,CACrB,CAAC;IAEF,OAAO,CACL,uBAAC,WAAI,kBAAC,IAAI,EAAE,IAAI,EAAE,IAAI,QAAC,GAAG,EAAE,GAAG,IAAM,UAAU,IAAE,SAAS,EAAE,OAAO,IAAI,CACxE,CAAC;AACJ,CAAC,CAAC,CAAC;AAGM,4CAAgB;AADzB,gBAAgB,CAAC,WAAW,GAAG,kBAAkB,CAAC"}
|
|
@@ -1,36 +1,9 @@
|
|
|
1
|
-
import type { Meta } from "@storybook/react";
|
|
2
|
-
import { LoadingIndicator
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
loading: import("@simplybusiness/icons").IconDefinition;
|
|
11
|
-
refreshArrow: import("@simplybusiness/icons").IconDefinition;
|
|
12
|
-
home: import("@simplybusiness/icons").IconDefinition;
|
|
13
|
-
};
|
|
14
|
-
control: {
|
|
15
|
-
type: string;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
color: {
|
|
19
|
-
options: string[];
|
|
20
|
-
control: {
|
|
21
|
-
type: string;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
fontSize: {
|
|
25
|
-
options: string[];
|
|
26
|
-
control: {
|
|
27
|
-
type: string;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
export default _default;
|
|
33
|
-
export declare const Normal: Meta<typeof LoadingIndicator>;
|
|
34
|
-
export declare const Large: Meta<typeof LoadingIndicator>;
|
|
35
|
-
export declare const WithCustomColour: Meta<typeof LoadingIndicator>;
|
|
36
|
-
export declare const WithCustomIcon: Meta<typeof LoadingIndicator>;
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { LoadingIndicator } from "./LoadingIndicator";
|
|
3
|
+
type StoryType = StoryObj<typeof LoadingIndicator>;
|
|
4
|
+
declare const meta: Meta<typeof LoadingIndicator>;
|
|
5
|
+
export declare const Normal: StoryType;
|
|
6
|
+
export declare const Large: StoryType;
|
|
7
|
+
export declare const WithCustomColour: StoryType;
|
|
8
|
+
export declare const WithCustomIcon: StoryType;
|
|
9
|
+
export default meta;
|
|
@@ -5,7 +5,7 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
5
5
|
const icons_1 = require("@simplybusiness/icons");
|
|
6
6
|
const LoadingIndicator_1 = require("./LoadingIndicator");
|
|
7
7
|
const iconOptions = { loading: icons_1.loading, refreshArrow: icons_1.refreshArrow, home: icons_1.home };
|
|
8
|
-
|
|
8
|
+
const meta = {
|
|
9
9
|
title: "Components/LoadingIndicator",
|
|
10
10
|
component: LoadingIndicator_1.LoadingIndicator,
|
|
11
11
|
argTypes: {
|
|
@@ -18,38 +18,36 @@ exports.default = {
|
|
|
18
18
|
options: ["darkcyan", "deeppink", "royalblue", "tomato"],
|
|
19
19
|
control: { type: "radio" },
|
|
20
20
|
},
|
|
21
|
-
fontSize: {
|
|
22
|
-
options: ["72px", "48px", "24px"],
|
|
23
|
-
control: { type: "radio" },
|
|
24
|
-
},
|
|
25
21
|
},
|
|
26
22
|
};
|
|
27
23
|
exports.Normal = {
|
|
28
24
|
render: (args) => (0, jsx_runtime_1.jsx)(LoadingIndicator_1.LoadingIndicator, Object.assign({}, args)),
|
|
29
25
|
args: {
|
|
30
26
|
icon: icons_1.loading,
|
|
31
|
-
|
|
27
|
+
size: "md",
|
|
32
28
|
},
|
|
33
29
|
};
|
|
34
30
|
exports.Large = {
|
|
35
31
|
render: (args) => (0, jsx_runtime_1.jsx)(LoadingIndicator_1.LoadingIndicator, Object.assign({}, args)),
|
|
36
32
|
args: {
|
|
37
33
|
icon: icons_1.loading,
|
|
38
|
-
|
|
34
|
+
size: "lg",
|
|
39
35
|
},
|
|
40
36
|
};
|
|
41
37
|
exports.WithCustomColour = {
|
|
42
38
|
render: (args) => (0, jsx_runtime_1.jsx)(LoadingIndicator_1.LoadingIndicator, Object.assign({}, args)),
|
|
43
39
|
args: {
|
|
44
40
|
icon: icons_1.loading,
|
|
45
|
-
|
|
41
|
+
size: "md",
|
|
42
|
+
color: "tomato",
|
|
46
43
|
},
|
|
47
44
|
};
|
|
48
45
|
exports.WithCustomIcon = {
|
|
49
46
|
render: (args) => (0, jsx_runtime_1.jsx)(LoadingIndicator_1.LoadingIndicator, Object.assign({}, args)),
|
|
50
47
|
args: {
|
|
51
48
|
icon: icons_1.refreshArrow,
|
|
52
|
-
|
|
49
|
+
size: "md",
|
|
53
50
|
},
|
|
54
51
|
};
|
|
52
|
+
exports.default = meta;
|
|
55
53
|
//# sourceMappingURL=LoadingIndicator.stories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoadingIndicator.stories.js","sourceRoot":"","sources":["../../../../src/components/LoadingIndicator/LoadingIndicator.stories.tsx"],"names":[],"mappings":";;;;AAAA,iDAAoE;AAEpE,yDAA6E;AAE7E,MAAM,WAAW,GAAG,EAAE,OAAO,EAAP,eAAO,EAAE,YAAY,EAAZ,oBAAY,EAAE,IAAI,EAAJ,YAAI,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"LoadingIndicator.stories.js","sourceRoot":"","sources":["../../../../src/components/LoadingIndicator/LoadingIndicator.stories.tsx"],"names":[],"mappings":";;;;AAAA,iDAAoE;AAEpE,yDAA6E;AAE7E,MAAM,WAAW,GAAG,EAAE,OAAO,EAAP,eAAO,EAAE,YAAY,EAAZ,oBAAY,EAAE,IAAI,EAAJ,YAAI,EAAE,CAAC;AAIpD,MAAM,IAAI,GAAkC;IAC1C,KAAK,EAAE,6BAA6B;IACpC,SAAS,EAAE,mCAAgB;IAC3B,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,OAAO,EAAE,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC;YACjC,OAAO,EAAE,W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
|
-
args: {
|
|
12
|
-
width: number;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
export default _default;
|
|
16
|
-
export declare const Normal: Meta<typeof Logo>;
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { Logo } from "..";
|
|
3
|
+
type StoryType = StoryObj<typeof Logo>;
|
|
4
|
+
declare const meta: Meta<typeof Logo>;
|
|
5
|
+
export declare const Normal: StoryType;
|
|
6
|
+
export default meta;
|
|
@@ -3,19 +3,20 @@ 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 __1 = require("..");
|
|
6
|
-
const
|
|
7
|
-
|
|
6
|
+
const utils_1 = require("../../utils");
|
|
7
|
+
const meta = {
|
|
8
8
|
title: "Components/Logo",
|
|
9
9
|
component: __1.Logo,
|
|
10
10
|
argTypes: Object.assign({ width: {
|
|
11
11
|
control: "number",
|
|
12
|
-
} }, (0,
|
|
12
|
+
} }, (0, utils_1.excludeControls)("height")),
|
|
13
13
|
args: {
|
|
14
|
-
width: 144,
|
|
14
|
+
width: "144",
|
|
15
15
|
},
|
|
16
16
|
};
|
|
17
17
|
exports.Normal = {
|
|
18
18
|
render: (args) => (0, jsx_runtime_1.jsx)(__1.Logo, Object.assign({}, args)),
|
|
19
19
|
args: {},
|
|
20
20
|
};
|
|
21
|
+
exports.default = meta;
|
|
21
22
|
//# sourceMappingURL=Logo.stories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Logo.stories.js","sourceRoot":"","sources":["../../../../src/components/Logo/Logo.stories.tsx"],"names":[],"mappings":";;;;AACA,0BAAqC;AACrC,
|
|
1
|
+
{"version":3,"file":"Logo.stories.js","sourceRoot":"","sources":["../../../../src/components/Logo/Logo.stories.tsx"],"names":[],"mappings":";;;;AACA,0BAAqC;AACrC,uCAA8C;AAI9C,MAAM,IAAI,GAAsB;IAC9B,KAAK,EAAE,iBAAiB;IACxB,SAAS,EAAE,QAAI;IACf,QAAQ,kBACN,KAAK,EAAE;YACL,OAAO,EAAE,QAAQ;SAClB,IACE,IAAA,uBAAe,EAAC,QAAQ,CAAC,CAC7B;IACD,IAAI,EAAE;QACJ,KAAK,EAAE,KAAK;KACb;CACF,CAAC;AAEW,QAAA,MAAM,GAAc;IAC/B,MAAM,EAAE,CAAC,IAAe,EAAE,EAAE,CAAC,uBAAC,QAAI,oBAAK,IAAI,EAAI;IAC/C,IAAI,EAAE,EAAE;CACT,CAAC;AAEF,kBAAe,IAAI,CAAC"}
|