@wireapp/react-ui-kit 9.32.0 → 9.33.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/lib/Form/Button.stories.d.ts +26 -0
- package/lib/Form/Button.stories.d.ts.map +1 -0
- package/lib/Form/Button.stories.js +63 -0
- package/lib/Form/ButtonLink.stories.d.ts +15 -0
- package/lib/Form/ButtonLink.stories.d.ts.map +1 -0
- package/lib/Form/ButtonLink.stories.js +52 -0
- package/lib/Form/Checkbox.d.ts +1 -2
- package/lib/Form/Checkbox.d.ts.map +1 -1
- package/lib/Form/Checkbox.stories.d.ts +16 -0
- package/lib/Form/Checkbox.stories.d.ts.map +1 -0
- package/lib/Form/Checkbox.stories.js +35 -0
- package/lib/Form/CodeInput.d.ts +1 -0
- package/lib/Form/CodeInput.d.ts.map +1 -1
- package/lib/Form/CodeInput.stories.d.ts +15 -0
- package/lib/Form/CodeInput.stories.d.ts.map +1 -0
- package/lib/Form/CodeInput.stories.js +51 -0
- package/lib/Form/DropFileInput.stories.d.ts +13 -0
- package/lib/Form/DropFileInput.stories.d.ts.map +1 -0
- package/lib/Form/DropFileInput.stories.js +43 -0
- package/lib/Form/ErrorMessage.stories.d.ts +14 -0
- package/lib/Form/ErrorMessage.stories.d.ts.map +1 -0
- package/lib/Form/ErrorMessage.stories.js +23 -0
- package/lib/Form/Form.stories.d.ts +13 -0
- package/lib/Form/Form.stories.d.ts.map +1 -0
- package/lib/Form/Form.stories.js +23 -0
- package/lib/Form/IndicatorRangeInput.stories.d.ts +13 -0
- package/lib/Form/IndicatorRangeInput.stories.d.ts.map +1 -0
- package/lib/Form/IndicatorRangeInput.stories.js +51 -0
- package/lib/Form/Input.js +1 -1
- package/lib/Form/Input.stories.d.ts +18 -0
- package/lib/Form/Input.stories.d.ts.map +1 -0
- package/lib/Form/Input.stories.js +56 -0
- package/lib/Form/InputBlock.stories.d.ts +15 -0
- package/lib/Form/InputBlock.stories.d.ts.map +1 -0
- package/lib/Form/InputBlock.stories.js +27 -0
- package/lib/Form/InputLabel.stories.d.ts +15 -0
- package/lib/Form/InputLabel.stories.d.ts.map +1 -0
- package/lib/Form/InputLabel.stories.js +35 -0
- package/lib/Form/InputSubmitCombo.stories.d.ts +15 -0
- package/lib/Form/InputSubmitCombo.stories.d.ts.map +1 -0
- package/lib/Form/InputSubmitCombo.stories.js +26 -0
- package/lib/Form/RangeInput.stories.d.ts +16 -0
- package/lib/Form/RangeInput.stories.d.ts.map +1 -0
- package/lib/Form/RangeInput.stories.js +62 -0
- package/lib/Form/RoundIconButton.stories.d.ts +15 -0
- package/lib/Form/RoundIconButton.stories.d.ts.map +1 -0
- package/lib/Form/RoundIconButton.stories.js +30 -0
- package/lib/Form/Select.d.ts +1 -2
- package/lib/Form/Select.d.ts.map +1 -1
- package/lib/Form/Select.stories.d.ts +16 -0
- package/lib/Form/Select.stories.d.ts.map +1 -0
- package/lib/Form/Select.stories.js +68 -0
- package/lib/Form/ShakeBox.stories.d.ts +15 -0
- package/lib/Form/ShakeBox.stories.d.ts.map +1 -0
- package/lib/Form/ShakeBox.stories.js +54 -0
- package/lib/Form/Switch.stories.d.ts +17 -0
- package/lib/Form/Switch.stories.d.ts.map +1 -0
- package/lib/Form/Switch.stories.js +66 -0
- package/lib/Form/TextArea.stories.d.ts +16 -0
- package/lib/Form/TextArea.stories.d.ts.map +1 -0
- package/lib/Form/TextArea.stories.js +35 -0
- package/lib/Form/Tooltip.d.ts +1 -2
- package/lib/Form/Tooltip.d.ts.map +1 -1
- package/lib/Form/Tooltip.stories.d.ts +17 -0
- package/lib/Form/Tooltip.stories.d.ts.map +1 -0
- package/lib/Form/Tooltip.stories.js +46 -0
- package/lib/Icon/SVGIcon.stories.d.ts +12 -0
- package/lib/Icon/SVGIcon.stories.d.ts.map +1 -0
- package/lib/Icon/SVGIcon.stories.js +60 -0
- package/lib/Identity/Animation.d.ts +8 -8
- package/lib/Identity/Animation.d.ts.map +1 -1
- package/lib/Identity/Animation.js +7 -30
- package/lib/Identity/Animation.stories.d.ts +6 -0
- package/lib/Identity/Animation.stories.d.ts.map +1 -0
- package/lib/Identity/Animation.stories.js +73 -0
- package/lib/Identity/Avatar.stories.d.ts +13 -0
- package/lib/Identity/Avatar.stories.d.ts.map +1 -0
- package/lib/Identity/Avatar.stories.js +64 -0
- package/lib/Identity/AvatarGrid.stories.d.ts +12 -0
- package/lib/Identity/AvatarGrid.stories.d.ts.map +1 -0
- package/lib/Identity/AvatarGrid.stories.js +90 -0
- package/lib/Identity/Logo.stories.d.ts +12 -0
- package/lib/Identity/Logo.stories.d.ts.map +1 -0
- package/lib/Identity/Logo.stories.js +62 -0
- package/lib/Identity/colors-v2.stories.d.ts +12 -0
- package/lib/Identity/colors-v2.stories.d.ts.map +1 -0
- package/lib/Identity/colors-v2.stories.js +78 -0
- package/lib/Identity/colors.stories.d.ts +10 -0
- package/lib/Identity/colors.stories.d.ts.map +1 -0
- package/lib/Identity/colors.stories.js +75 -0
- package/lib/Layout/Box.stories.d.ts +12 -0
- package/lib/Layout/Box.stories.d.ts.map +1 -0
- package/lib/Layout/Box.stories.js +58 -0
- package/lib/Layout/Column.stories.d.ts +10 -0
- package/lib/Layout/Column.stories.d.ts.map +1 -0
- package/lib/Layout/Column.stories.js +40 -0
- package/lib/Layout/Container.stories.d.ts +10 -0
- package/lib/Layout/Container.stories.d.ts.map +1 -0
- package/lib/Layout/Container.stories.js +38 -0
- package/lib/Layout/headerMenu/HeaderMenu.stories.d.ts +10 -0
- package/lib/Layout/headerMenu/HeaderMenu.stories.d.ts.map +1 -0
- package/lib/Layout/headerMenu/HeaderMenu.stories.js +49 -0
- package/lib/Menu/TabBar.stories.d.ts +11 -0
- package/lib/Menu/TabBar.stories.d.ts.map +1 -0
- package/lib/Menu/TabBar.stories.js +66 -0
- package/lib/Misc/ButtonGroup.stories.d.ts +10 -0
- package/lib/Misc/ButtonGroup.stories.d.ts.map +1 -0
- package/lib/Misc/ButtonGroup.stories.js +28 -0
- package/lib/Misc/IconButton.stories.d.ts +14 -0
- package/lib/Misc/IconButton.stories.d.ts.map +1 -0
- package/lib/Misc/IconButton.stories.js +59 -0
- package/lib/Misc/Loading.stories.d.ts +15 -0
- package/lib/Misc/Loading.stories.d.ts.map +1 -0
- package/lib/Misc/Loading.stories.js +47 -0
- package/lib/Misc/Pagination.stories.d.ts +14 -0
- package/lib/Misc/Pagination.stories.d.ts.map +1 -0
- package/lib/Misc/Pagination.stories.js +97 -0
- package/lib/Misc/Pill.stories.d.ts +15 -0
- package/lib/Misc/Pill.stories.d.ts.map +1 -0
- package/lib/Misc/Pill.stories.js +59 -0
- package/lib/Modal/Modal.stories.d.ts +12 -0
- package/lib/Modal/Modal.stories.d.ts.map +1 -0
- package/lib/Modal/Modal.stories.js +63 -0
- package/lib/Text/Heading.d.ts +1 -2
- package/lib/Text/Heading.d.ts.map +1 -1
- package/lib/Text/Heading.stories.d.ts +38 -0
- package/lib/Text/Heading.stories.d.ts.map +1 -0
- package/lib/Text/Heading.stories.js +67 -0
- package/lib/Text/Label.d.ts.map +1 -1
- package/lib/Text/Label.js +6 -2
- package/lib/Text/Label.stories.d.ts +403 -0
- package/lib/Text/Label.stories.d.ts.map +1 -0
- package/lib/Text/Label.stories.js +37 -0
- package/lib/Text/Line.stories.d.ts +19 -0
- package/lib/Text/Line.stories.d.ts.map +1 -0
- package/lib/Text/Line.stories.js +43 -0
- package/lib/Text/Link.stories.d.ts +27 -0
- package/lib/Text/Link.stories.d.ts.map +1 -0
- package/lib/Text/Link.stories.js +75 -0
- package/lib/Text/Paragraph.stories.d.ts +15 -0
- package/lib/Text/Paragraph.stories.d.ts.map +1 -0
- package/lib/Text/Paragraph.stories.js +30 -0
- package/lib/Text/Text.stories.d.ts +32 -0
- package/lib/Text/Text.stories.d.ts.map +1 -0
- package/lib/Text/Text.stories.js +59 -0
- package/lib/Text/TextLink.stories.d.ts +20 -0
- package/lib/Text/TextLink.stories.d.ts.map +1 -0
- package/lib/Text/TextLink.stories.js +37 -0
- package/lib/Text/Title.stories.d.ts +24 -0
- package/lib/Text/Title.stories.d.ts.map +1 -0
- package/lib/Text/Title.stories.js +63 -0
- package/package.json +17 -9
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LeadParagraph = exports.TruncatedParagraph = exports.Default = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
5
|
+
const Paragraph_1 = require("./Paragraph");
|
|
6
|
+
const meta = {
|
|
7
|
+
title: 'Typography/Paragraph',
|
|
8
|
+
component: Paragraph_1.Paragraph,
|
|
9
|
+
parameters: {
|
|
10
|
+
layout: 'padded',
|
|
11
|
+
},
|
|
12
|
+
tags: ['autodocs'],
|
|
13
|
+
};
|
|
14
|
+
exports.default = meta;
|
|
15
|
+
const LOREM_IPSUM = `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.`;
|
|
16
|
+
exports.Default = {
|
|
17
|
+
args: {
|
|
18
|
+
children: LOREM_IPSUM,
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
exports.TruncatedParagraph = {
|
|
22
|
+
args: {
|
|
23
|
+
children: LOREM_IPSUM,
|
|
24
|
+
noWrap: true,
|
|
25
|
+
truncate: true,
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
exports.LeadParagraph = {
|
|
29
|
+
render: () => (0, jsx_runtime_1.jsx)(Paragraph_1.Lead, { children: LOREM_IPSUM }),
|
|
30
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: import("react").ForwardRefExoticComponent<Omit<import("./Text").TextProps<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
5
|
+
parameters: {
|
|
6
|
+
layout: string;
|
|
7
|
+
};
|
|
8
|
+
tags: string[];
|
|
9
|
+
argTypes: {
|
|
10
|
+
color: {
|
|
11
|
+
control: "color";
|
|
12
|
+
};
|
|
13
|
+
fontSize: {
|
|
14
|
+
control: "text";
|
|
15
|
+
};
|
|
16
|
+
textTransform: {
|
|
17
|
+
control: "select";
|
|
18
|
+
options: string[];
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export default meta;
|
|
23
|
+
type Story = StoryObj<typeof meta>;
|
|
24
|
+
export declare const Default: Story;
|
|
25
|
+
export declare const BoldText: Story;
|
|
26
|
+
export declare const SmallText: Story;
|
|
27
|
+
export declare const MutedText: Story;
|
|
28
|
+
export declare const UppercaseText: Story;
|
|
29
|
+
export declare const LargeText: Story;
|
|
30
|
+
export declare const ColoredText: Story;
|
|
31
|
+
export declare const CustomFontSize: Story;
|
|
32
|
+
//# sourceMappingURL=Text.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Text.stories.d.ts","sourceRoot":"","sources":["../../src/Text/Text.stories.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAO,QAAQ,EAAC,MAAM,kBAAkB,CAAC;AAMrD,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;CAmBmB,CAAC;AAE9B,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAEtB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAEvB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAEvB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAE3B,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAEvB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAKzB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAK5B,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CustomFontSize = exports.ColoredText = exports.LargeText = exports.UppercaseText = exports.MutedText = exports.SmallText = exports.BoldText = exports.Default = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
5
|
+
const Text_1 = require("./Text");
|
|
6
|
+
const Identity_1 = require("../Identity");
|
|
7
|
+
const meta = {
|
|
8
|
+
title: 'Typography/Text',
|
|
9
|
+
component: Text_1.Text,
|
|
10
|
+
parameters: {
|
|
11
|
+
layout: 'centered',
|
|
12
|
+
},
|
|
13
|
+
tags: ['autodocs'],
|
|
14
|
+
argTypes: {
|
|
15
|
+
color: {
|
|
16
|
+
control: 'color',
|
|
17
|
+
},
|
|
18
|
+
fontSize: {
|
|
19
|
+
control: 'text',
|
|
20
|
+
},
|
|
21
|
+
textTransform: {
|
|
22
|
+
control: 'select',
|
|
23
|
+
options: ['none', 'uppercase', 'lowercase', 'capitalize'],
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
};
|
|
27
|
+
exports.default = meta;
|
|
28
|
+
exports.Default = {
|
|
29
|
+
args: {
|
|
30
|
+
children: 'Default Text',
|
|
31
|
+
},
|
|
32
|
+
};
|
|
33
|
+
exports.BoldText = {
|
|
34
|
+
render: () => (0, jsx_runtime_1.jsx)(Text_1.Bold, { children: "Bold Text" }),
|
|
35
|
+
};
|
|
36
|
+
exports.SmallText = {
|
|
37
|
+
render: () => (0, jsx_runtime_1.jsx)(Text_1.Small, { children: "Small Text" }),
|
|
38
|
+
};
|
|
39
|
+
exports.MutedText = {
|
|
40
|
+
render: () => (0, jsx_runtime_1.jsx)(Text_1.Muted, { children: "Muted Text" }),
|
|
41
|
+
};
|
|
42
|
+
exports.UppercaseText = {
|
|
43
|
+
render: () => (0, jsx_runtime_1.jsx)(Text_1.Uppercase, { children: "Uppercase Text" }),
|
|
44
|
+
};
|
|
45
|
+
exports.LargeText = {
|
|
46
|
+
render: () => (0, jsx_runtime_1.jsx)(Text_1.Large, { children: "Large Text" }),
|
|
47
|
+
};
|
|
48
|
+
exports.ColoredText = {
|
|
49
|
+
args: {
|
|
50
|
+
children: 'Colored Text',
|
|
51
|
+
color: Identity_1.COLOR.RED,
|
|
52
|
+
},
|
|
53
|
+
};
|
|
54
|
+
exports.CustomFontSize = {
|
|
55
|
+
args: {
|
|
56
|
+
children: 'Custom Size Text',
|
|
57
|
+
fontSize: '24px',
|
|
58
|
+
},
|
|
59
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: (props: import("./TextLink").TextLinkProps<HTMLAnchorElement>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
5
|
+
parameters: {
|
|
6
|
+
layout: string;
|
|
7
|
+
};
|
|
8
|
+
tags: string[];
|
|
9
|
+
argTypes: {
|
|
10
|
+
color: {
|
|
11
|
+
control: "color";
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export default meta;
|
|
16
|
+
type Story = StoryObj<typeof meta>;
|
|
17
|
+
export declare const Default: Story;
|
|
18
|
+
export declare const InText: Story;
|
|
19
|
+
export declare const CustomColor: Story;
|
|
20
|
+
//# sourceMappingURL=TextLink.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextLink.stories.d.ts","sourceRoot":"","sources":["../../src/Text/TextLink.stories.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAO,QAAQ,EAAC,MAAM,kBAAkB,CAAC;AAOrD,QAAA,MAAM,IAAI;;;;;;;;;;;;CAYuB,CAAC;AAElC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAMpB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAMzB,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CustomColor = exports.InText = exports.Default = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
5
|
+
const Text_1 = require("./Text");
|
|
6
|
+
const TextLink_1 = require("./TextLink");
|
|
7
|
+
const colors_v2_1 = require("../Identity/colors-v2");
|
|
8
|
+
const meta = {
|
|
9
|
+
title: 'Typography/TextLink',
|
|
10
|
+
component: TextLink_1.TextLink,
|
|
11
|
+
parameters: {
|
|
12
|
+
layout: 'centered',
|
|
13
|
+
},
|
|
14
|
+
tags: ['autodocs'],
|
|
15
|
+
argTypes: {
|
|
16
|
+
color: {
|
|
17
|
+
control: 'color',
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
exports.default = meta;
|
|
22
|
+
exports.Default = {
|
|
23
|
+
args: {
|
|
24
|
+
children: 'Default TextLink',
|
|
25
|
+
href: '#',
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
exports.InText = {
|
|
29
|
+
render: () => ((0, jsx_runtime_1.jsxs)(Text_1.Text, { children: ["This is a paragraph with a ", (0, jsx_runtime_1.jsx)(TextLink_1.TextLink, { href: "#", children: "text link" }), " inside."] })),
|
|
30
|
+
};
|
|
31
|
+
exports.CustomColor = {
|
|
32
|
+
args: {
|
|
33
|
+
children: 'Custom Color Link',
|
|
34
|
+
color: colors_v2_1.COLOR_V2.RED,
|
|
35
|
+
href: '#',
|
|
36
|
+
},
|
|
37
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: (props: import("./Title").TitleProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
5
|
+
parameters: {
|
|
6
|
+
layout: string;
|
|
7
|
+
};
|
|
8
|
+
tags: string[];
|
|
9
|
+
argTypes: {
|
|
10
|
+
color: {
|
|
11
|
+
control: "color";
|
|
12
|
+
};
|
|
13
|
+
fontSize: {
|
|
14
|
+
control: "text";
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export default meta;
|
|
19
|
+
type Story = StoryObj<typeof meta>;
|
|
20
|
+
export declare const Default: Story;
|
|
21
|
+
export declare const CustomColor: Story;
|
|
22
|
+
export declare const CustomSize: Story;
|
|
23
|
+
export declare const NotCentered: Story;
|
|
24
|
+
//# sourceMappingURL=Title.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Title.stories.d.ts","sourceRoot":"","sources":["../../src/Text/Title.stories.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAO,QAAQ,EAAC,MAAM,kBAAkB,CAAC;AAMrD,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;CAeoB,CAAC;AAE/B,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAKzB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAKxB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAKzB,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Wire
|
|
4
|
+
* Copyright (C) 2025 Wire Swiss GmbH
|
|
5
|
+
*
|
|
6
|
+
* This program is free software: you can redistribute it and/or modify
|
|
7
|
+
* it under the terms of the GNU General Public License as published by
|
|
8
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
9
|
+
* (at your option) any later version.
|
|
10
|
+
*
|
|
11
|
+
* This program is distributed in the hope that it will be useful,
|
|
12
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
13
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
14
|
+
* GNU General Public License for more details.
|
|
15
|
+
*
|
|
16
|
+
* You should have received a copy of the GNU General Public License
|
|
17
|
+
* along with this program. If not, see http://www.gnu.org/licenses/.
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
exports.NotCentered = exports.CustomSize = exports.CustomColor = exports.Default = void 0;
|
|
22
|
+
const Title_1 = require("./Title");
|
|
23
|
+
const Identity_1 = require("../Identity");
|
|
24
|
+
const meta = {
|
|
25
|
+
title: 'Typography/Title',
|
|
26
|
+
component: Title_1.Title,
|
|
27
|
+
parameters: {
|
|
28
|
+
layout: 'centered',
|
|
29
|
+
},
|
|
30
|
+
tags: ['autodocs'],
|
|
31
|
+
argTypes: {
|
|
32
|
+
color: {
|
|
33
|
+
control: 'color',
|
|
34
|
+
},
|
|
35
|
+
fontSize: {
|
|
36
|
+
control: 'text',
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
exports.default = meta;
|
|
41
|
+
exports.Default = {
|
|
42
|
+
args: {
|
|
43
|
+
children: 'Default Title',
|
|
44
|
+
},
|
|
45
|
+
};
|
|
46
|
+
exports.CustomColor = {
|
|
47
|
+
args: {
|
|
48
|
+
children: 'Colored Title',
|
|
49
|
+
color: Identity_1.COLOR.RED,
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
exports.CustomSize = {
|
|
53
|
+
args: {
|
|
54
|
+
children: 'Custom Size Title',
|
|
55
|
+
fontSize: '3rem',
|
|
56
|
+
},
|
|
57
|
+
};
|
|
58
|
+
exports.NotCentered = {
|
|
59
|
+
args: {
|
|
60
|
+
children: 'Left-aligned Title',
|
|
61
|
+
center: false,
|
|
62
|
+
},
|
|
63
|
+
};
|
package/package.json
CHANGED
|
@@ -20,10 +20,19 @@
|
|
|
20
20
|
"@babel/preset-env": "7.26.7",
|
|
21
21
|
"@babel/preset-react": "7.26.3",
|
|
22
22
|
"@babel/preset-typescript": "7.26.0",
|
|
23
|
-
"@
|
|
23
|
+
"@chromatic-com/storybook": "^3.2.4",
|
|
24
|
+
"@emotion/babel-preset-css-prop": "^11.12.0",
|
|
24
25
|
"@emotion/jest": "11.13.0",
|
|
25
26
|
"@emotion/react": "^11.10.4",
|
|
26
|
-
"@
|
|
27
|
+
"@storybook/addon-essentials": "^8.5.2",
|
|
28
|
+
"@storybook/addon-interactions": "^8.5.2",
|
|
29
|
+
"@storybook/addon-onboarding": "^8.5.2",
|
|
30
|
+
"@storybook/addon-themes": "^8.5.2",
|
|
31
|
+
"@storybook/addon-webpack5-compiler-swc": "^2.0.0",
|
|
32
|
+
"@storybook/blocks": "^8.5.2",
|
|
33
|
+
"@storybook/react": "^8.5.2",
|
|
34
|
+
"@storybook/react-webpack5": "^8.5.2",
|
|
35
|
+
"@storybook/test": "^8.5.2",
|
|
27
36
|
"@swc/core": "^1.3.10",
|
|
28
37
|
"@swc/jest": "^0.2.23",
|
|
29
38
|
"@testing-library/jest-dom": "6.6.3",
|
|
@@ -33,17 +42,16 @@
|
|
|
33
42
|
"@types/node": "^22.0.0",
|
|
34
43
|
"@types/react": "^18.0.25",
|
|
35
44
|
"@types/react-dom": "^18.0.8",
|
|
36
|
-
"@types/webpack-env": "1.18.
|
|
45
|
+
"@types/webpack-env": "1.18.8",
|
|
37
46
|
"babel-jest": "29.7.0",
|
|
38
47
|
"babel-loader": "9.2.1",
|
|
39
48
|
"jest": "^29.2.1",
|
|
40
49
|
"react": "18.3.1",
|
|
41
50
|
"react-dom": "18.3.1",
|
|
42
51
|
"react-helmet": "6.1.0",
|
|
43
|
-
"react-hot-loader": "4.13.1",
|
|
44
|
-
"react-styleguidist": "13.1.4",
|
|
45
52
|
"react-test-renderer": "18.3.1",
|
|
46
53
|
"rimraf": "6.0.1",
|
|
54
|
+
"storybook": "^8.5.2",
|
|
47
55
|
"typescript": "^5.0.4",
|
|
48
56
|
"webpack": "^5.74.0"
|
|
49
57
|
},
|
|
@@ -60,15 +68,15 @@
|
|
|
60
68
|
},
|
|
61
69
|
"scripts": {
|
|
62
70
|
"build": "yarn clean && tsc",
|
|
63
|
-
"build:
|
|
71
|
+
"build:storybook": "storybook build",
|
|
64
72
|
"clean": "rimraf lib",
|
|
65
73
|
"dist": "yarn build",
|
|
66
|
-
"start": "
|
|
74
|
+
"start": "storybook dev -p 6006",
|
|
67
75
|
"test": "jest",
|
|
68
76
|
"test:coverage": "jest --coverage",
|
|
69
77
|
"test:watch": "jest --watch",
|
|
70
78
|
"test:update": "jest --updateSnapshot"
|
|
71
79
|
},
|
|
72
|
-
"version": "9.
|
|
73
|
-
"gitHead": "
|
|
80
|
+
"version": "9.33.1",
|
|
81
|
+
"gitHead": "dbcc1b8a380b1efb3d7abd19cf6859f58f796d38"
|
|
74
82
|
}
|