@wireapp/react-ui-kit 9.31.0 → 9.33.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (158) hide show
  1. package/lib/Form/Button.stories.d.ts +26 -0
  2. package/lib/Form/Button.stories.d.ts.map +1 -0
  3. package/lib/Form/Button.stories.js +63 -0
  4. package/lib/Form/ButtonLink.stories.d.ts +15 -0
  5. package/lib/Form/ButtonLink.stories.d.ts.map +1 -0
  6. package/lib/Form/ButtonLink.stories.js +52 -0
  7. package/lib/Form/Checkbox.d.ts +1 -2
  8. package/lib/Form/Checkbox.d.ts.map +1 -1
  9. package/lib/Form/Checkbox.stories.d.ts +16 -0
  10. package/lib/Form/Checkbox.stories.d.ts.map +1 -0
  11. package/lib/Form/Checkbox.stories.js +35 -0
  12. package/lib/Form/CodeInput.d.ts +1 -0
  13. package/lib/Form/CodeInput.d.ts.map +1 -1
  14. package/lib/Form/CodeInput.stories.d.ts +15 -0
  15. package/lib/Form/CodeInput.stories.d.ts.map +1 -0
  16. package/lib/Form/CodeInput.stories.js +51 -0
  17. package/lib/Form/DropFileInput.stories.d.ts +13 -0
  18. package/lib/Form/DropFileInput.stories.d.ts.map +1 -0
  19. package/lib/Form/DropFileInput.stories.js +43 -0
  20. package/lib/Form/ErrorMessage.stories.d.ts +14 -0
  21. package/lib/Form/ErrorMessage.stories.d.ts.map +1 -0
  22. package/lib/Form/ErrorMessage.stories.js +23 -0
  23. package/lib/Form/Form.stories.d.ts +13 -0
  24. package/lib/Form/Form.stories.d.ts.map +1 -0
  25. package/lib/Form/Form.stories.js +23 -0
  26. package/lib/Form/IndicatorRangeInput.stories.d.ts +13 -0
  27. package/lib/Form/IndicatorRangeInput.stories.d.ts.map +1 -0
  28. package/lib/Form/IndicatorRangeInput.stories.js +51 -0
  29. package/lib/Form/Input.stories.d.ts +18 -0
  30. package/lib/Form/Input.stories.d.ts.map +1 -0
  31. package/lib/Form/Input.stories.js +56 -0
  32. package/lib/Form/InputBlock.stories.d.ts +15 -0
  33. package/lib/Form/InputBlock.stories.d.ts.map +1 -0
  34. package/lib/Form/InputBlock.stories.js +27 -0
  35. package/lib/Form/InputLabel.stories.d.ts +15 -0
  36. package/lib/Form/InputLabel.stories.d.ts.map +1 -0
  37. package/lib/Form/InputLabel.stories.js +35 -0
  38. package/lib/Form/InputSubmitCombo.stories.d.ts +15 -0
  39. package/lib/Form/InputSubmitCombo.stories.d.ts.map +1 -0
  40. package/lib/Form/InputSubmitCombo.stories.js +26 -0
  41. package/lib/Form/RangeInput.stories.d.ts +16 -0
  42. package/lib/Form/RangeInput.stories.d.ts.map +1 -0
  43. package/lib/Form/RangeInput.stories.js +62 -0
  44. package/lib/Form/RoundIconButton.stories.d.ts +15 -0
  45. package/lib/Form/RoundIconButton.stories.d.ts.map +1 -0
  46. package/lib/Form/RoundIconButton.stories.js +30 -0
  47. package/lib/Form/Select.d.ts +3 -3
  48. package/lib/Form/Select.d.ts.map +1 -1
  49. package/lib/Form/Select.js +2 -1
  50. package/lib/Form/Select.stories.d.ts +16 -0
  51. package/lib/Form/Select.stories.d.ts.map +1 -0
  52. package/lib/Form/Select.stories.js +68 -0
  53. package/lib/Form/SelectComponents.d.ts +5 -1
  54. package/lib/Form/SelectComponents.d.ts.map +1 -1
  55. package/lib/Form/SelectComponents.js +16 -1
  56. package/lib/Form/SelectComponents.styles.d.ts +5 -0
  57. package/lib/Form/SelectComponents.styles.d.ts.map +1 -0
  58. package/lib/Form/SelectComponents.styles.js +38 -0
  59. package/lib/Form/ShakeBox.stories.d.ts +15 -0
  60. package/lib/Form/ShakeBox.stories.d.ts.map +1 -0
  61. package/lib/Form/ShakeBox.stories.js +54 -0
  62. package/lib/Form/Switch.stories.d.ts +17 -0
  63. package/lib/Form/Switch.stories.d.ts.map +1 -0
  64. package/lib/Form/Switch.stories.js +66 -0
  65. package/lib/Form/TextArea.stories.d.ts +16 -0
  66. package/lib/Form/TextArea.stories.d.ts.map +1 -0
  67. package/lib/Form/TextArea.stories.js +35 -0
  68. package/lib/Form/Tooltip.d.ts +1 -2
  69. package/lib/Form/Tooltip.d.ts.map +1 -1
  70. package/lib/Form/Tooltip.stories.d.ts +17 -0
  71. package/lib/Form/Tooltip.stories.d.ts.map +1 -0
  72. package/lib/Form/Tooltip.stories.js +46 -0
  73. package/lib/Icon/SVGIcon.stories.d.ts +12 -0
  74. package/lib/Icon/SVGIcon.stories.d.ts.map +1 -0
  75. package/lib/Icon/SVGIcon.stories.js +60 -0
  76. package/lib/Identity/Animation.d.ts +8 -8
  77. package/lib/Identity/Animation.d.ts.map +1 -1
  78. package/lib/Identity/Animation.js +7 -30
  79. package/lib/Identity/Animation.stories.d.ts +6 -0
  80. package/lib/Identity/Animation.stories.d.ts.map +1 -0
  81. package/lib/Identity/Animation.stories.js +73 -0
  82. package/lib/Identity/Avatar.stories.d.ts +13 -0
  83. package/lib/Identity/Avatar.stories.d.ts.map +1 -0
  84. package/lib/Identity/Avatar.stories.js +64 -0
  85. package/lib/Identity/AvatarGrid.stories.d.ts +12 -0
  86. package/lib/Identity/AvatarGrid.stories.d.ts.map +1 -0
  87. package/lib/Identity/AvatarGrid.stories.js +90 -0
  88. package/lib/Identity/Logo.stories.d.ts +12 -0
  89. package/lib/Identity/Logo.stories.d.ts.map +1 -0
  90. package/lib/Identity/Logo.stories.js +62 -0
  91. package/lib/Identity/colors-v2.stories.d.ts +12 -0
  92. package/lib/Identity/colors-v2.stories.d.ts.map +1 -0
  93. package/lib/Identity/colors-v2.stories.js +78 -0
  94. package/lib/Identity/colors.stories.d.ts +10 -0
  95. package/lib/Identity/colors.stories.d.ts.map +1 -0
  96. package/lib/Identity/colors.stories.js +75 -0
  97. package/lib/Layout/Box.stories.d.ts +12 -0
  98. package/lib/Layout/Box.stories.d.ts.map +1 -0
  99. package/lib/Layout/Box.stories.js +58 -0
  100. package/lib/Layout/Column.stories.d.ts +10 -0
  101. package/lib/Layout/Column.stories.d.ts.map +1 -0
  102. package/lib/Layout/Column.stories.js +40 -0
  103. package/lib/Layout/Container.stories.d.ts +10 -0
  104. package/lib/Layout/Container.stories.d.ts.map +1 -0
  105. package/lib/Layout/Container.stories.js +38 -0
  106. package/lib/Layout/headerMenu/HeaderMenu.stories.d.ts +10 -0
  107. package/lib/Layout/headerMenu/HeaderMenu.stories.d.ts.map +1 -0
  108. package/lib/Layout/headerMenu/HeaderMenu.stories.js +49 -0
  109. package/lib/Menu/TabBar.stories.d.ts +11 -0
  110. package/lib/Menu/TabBar.stories.d.ts.map +1 -0
  111. package/lib/Menu/TabBar.stories.js +66 -0
  112. package/lib/Misc/ButtonGroup.stories.d.ts +10 -0
  113. package/lib/Misc/ButtonGroup.stories.d.ts.map +1 -0
  114. package/lib/Misc/ButtonGroup.stories.js +28 -0
  115. package/lib/Misc/IconButton.stories.d.ts +14 -0
  116. package/lib/Misc/IconButton.stories.d.ts.map +1 -0
  117. package/lib/Misc/IconButton.stories.js +59 -0
  118. package/lib/Misc/Loading.stories.d.ts +15 -0
  119. package/lib/Misc/Loading.stories.d.ts.map +1 -0
  120. package/lib/Misc/Loading.stories.js +47 -0
  121. package/lib/Misc/Pagination.stories.d.ts +14 -0
  122. package/lib/Misc/Pagination.stories.d.ts.map +1 -0
  123. package/lib/Misc/Pagination.stories.js +97 -0
  124. package/lib/Misc/Pill.stories.d.ts +15 -0
  125. package/lib/Misc/Pill.stories.d.ts.map +1 -0
  126. package/lib/Misc/Pill.stories.js +59 -0
  127. package/lib/Modal/Modal.stories.d.ts +12 -0
  128. package/lib/Modal/Modal.stories.d.ts.map +1 -0
  129. package/lib/Modal/Modal.stories.js +63 -0
  130. package/lib/Text/Heading.d.ts +1 -2
  131. package/lib/Text/Heading.d.ts.map +1 -1
  132. package/lib/Text/Heading.stories.d.ts +38 -0
  133. package/lib/Text/Heading.stories.d.ts.map +1 -0
  134. package/lib/Text/Heading.stories.js +67 -0
  135. package/lib/Text/Label.d.ts.map +1 -1
  136. package/lib/Text/Label.js +6 -2
  137. package/lib/Text/Label.stories.d.ts +403 -0
  138. package/lib/Text/Label.stories.d.ts.map +1 -0
  139. package/lib/Text/Label.stories.js +37 -0
  140. package/lib/Text/Line.stories.d.ts +19 -0
  141. package/lib/Text/Line.stories.d.ts.map +1 -0
  142. package/lib/Text/Line.stories.js +43 -0
  143. package/lib/Text/Link.stories.d.ts +27 -0
  144. package/lib/Text/Link.stories.d.ts.map +1 -0
  145. package/lib/Text/Link.stories.js +75 -0
  146. package/lib/Text/Paragraph.stories.d.ts +15 -0
  147. package/lib/Text/Paragraph.stories.d.ts.map +1 -0
  148. package/lib/Text/Paragraph.stories.js +30 -0
  149. package/lib/Text/Text.stories.d.ts +32 -0
  150. package/lib/Text/Text.stories.d.ts.map +1 -0
  151. package/lib/Text/Text.stories.js +59 -0
  152. package/lib/Text/TextLink.stories.d.ts +20 -0
  153. package/lib/Text/TextLink.stories.d.ts.map +1 -0
  154. package/lib/Text/TextLink.stories.js +37 -0
  155. package/lib/Text/Title.stories.d.ts +24 -0
  156. package/lib/Text/Title.stories.d.ts.map +1 -0
  157. package/lib/Text/Title.stories.js +63 -0
  158. package/package.json +17 -9
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DisabledChecked = exports.Disabled = exports.Checked = exports.Default = void 0;
4
+ const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
5
+ /*
6
+ * Wire
7
+ * Copyright (C) 2025 Wire Swiss GmbH
8
+ *
9
+ * This program is free software: you can redistribute it and/or modify
10
+ * it under the terms of the GNU General Public License as published by
11
+ * the Free Software Foundation, either version 3 of the License, or
12
+ * (at your option) any later version.
13
+ *
14
+ * This program is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
+ * GNU General Public License for more details.
18
+ *
19
+ * You should have received a copy of the GNU General Public License
20
+ * along with this program. If not, see http://www.gnu.org/licenses/.
21
+ *
22
+ */
23
+ const react_1 = require("react");
24
+ const Switch_1 = require("./Switch");
25
+ const DefaultStory = ({ checked, disabled }) => {
26
+ const [isChecked, setIsChecked] = (0, react_1.useState)(checked);
27
+ return (0, jsx_runtime_1.jsx)(Switch_1.Switch, { checked: isChecked, disabled: disabled, onToggle: () => setIsChecked(!isChecked) });
28
+ };
29
+ const meta = {
30
+ title: 'Form/Switch',
31
+ component: Switch_1.Switch,
32
+ parameters: {
33
+ layout: 'centered',
34
+ },
35
+ tags: ['autodocs'],
36
+ render: ({ checked, disabled, ...args }) => (0, jsx_runtime_1.jsx)(DefaultStory, { ...args, checked: checked, disabled: disabled }),
37
+ };
38
+ exports.default = meta;
39
+ exports.Default = {
40
+ args: {
41
+ checked: false,
42
+ disabled: false,
43
+ onToggle: () => { },
44
+ },
45
+ };
46
+ exports.Checked = {
47
+ args: {
48
+ checked: true,
49
+ disabled: false,
50
+ onToggle: () => { },
51
+ },
52
+ };
53
+ exports.Disabled = {
54
+ args: {
55
+ checked: false,
56
+ disabled: true,
57
+ onToggle: () => { },
58
+ },
59
+ };
60
+ exports.DisabledChecked = {
61
+ args: {
62
+ checked: true,
63
+ disabled: true,
64
+ onToggle: () => { },
65
+ },
66
+ };
@@ -0,0 +1,16 @@
1
+ import type { StoryObj } from '@storybook/react';
2
+ declare const meta: {
3
+ title: string;
4
+ component: import("react").ForwardRefExoticComponent<Omit<import("./TextArea").TextAreaProps<HTMLTextAreaElement>, "ref"> & import("react").RefAttributes<HTMLTextAreaElement>>;
5
+ parameters: {
6
+ layout: string;
7
+ };
8
+ tags: string[];
9
+ };
10
+ export default meta;
11
+ type Story = StoryObj<typeof meta>;
12
+ export declare const Default: Story;
13
+ export declare const WithLabel: Story;
14
+ export declare const Invalid: Story;
15
+ export declare const Disabled: Story;
16
+ //# sourceMappingURL=TextArea.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextArea.stories.d.ts","sourceRoot":"","sources":["../../src/Form/TextArea.stories.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAO,QAAQ,EAAC,MAAM,kBAAkB,CAAC;AAKrD,QAAA,MAAM,IAAI;;;;;;;CAOuB,CAAC;AAElC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAOvB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAKtB,CAAC"}
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Disabled = exports.Invalid = exports.WithLabel = exports.Default = void 0;
4
+ const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
5
+ const InputLabel_1 = require("./InputLabel");
6
+ const TextArea_1 = require("./TextArea");
7
+ const meta = {
8
+ title: 'Form/TextArea',
9
+ component: TextArea_1.TextArea,
10
+ parameters: {
11
+ layout: 'centered',
12
+ },
13
+ tags: ['autodocs'],
14
+ };
15
+ exports.default = meta;
16
+ exports.Default = {
17
+ args: {
18
+ placeholder: 'Enter your message...',
19
+ },
20
+ };
21
+ exports.WithLabel = {
22
+ render: () => ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(InputLabel_1.InputLabel, { htmlFor: "textarea-example", children: "Message" }), (0, jsx_runtime_1.jsx)(TextArea_1.TextArea, { id: "textarea-example", placeholder: "Type your message here..." })] })),
23
+ };
24
+ exports.Invalid = {
25
+ args: {
26
+ placeholder: 'Invalid input...',
27
+ markInvalid: true,
28
+ },
29
+ };
30
+ exports.Disabled = {
31
+ args: {
32
+ placeholder: 'Disabled textarea...',
33
+ disabled: true,
34
+ },
35
+ };
@@ -1,8 +1,7 @@
1
1
  import { HTMLProps, ReactNode } from 'react';
2
- interface TooltipProps<T = HTMLDivElement> extends HTMLProps<T> {
2
+ export interface TooltipProps<T = HTMLDivElement> extends HTMLProps<T> {
3
3
  body: ReactNode;
4
4
  selector?: string;
5
5
  }
6
6
  export declare const Tooltip: ({ children, ...props }: TooltipProps) => import("@emotion/react/jsx-runtime").JSX.Element;
7
- export {};
8
7
  //# sourceMappingURL=Tooltip.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../src/Form/Tooltip.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAC,SAAS,EAA0B,SAAS,EAAmB,MAAM,OAAO,CAAC;AAqJrF,UAAU,YAAY,CAAC,CAAC,GAAG,cAAc,CAAE,SAAQ,SAAS,CAAC,CAAC,CAAC;IAC7D,IAAI,EAAE,SAAS,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAID,eAAO,MAAM,OAAO,2BAA0B,YAAY,qDAmCzD,CAAC"}
1
+ {"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../src/Form/Tooltip.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAC,SAAS,EAA0B,SAAS,EAAmB,MAAM,OAAO,CAAC;AAqJrF,MAAM,WAAW,YAAY,CAAC,CAAC,GAAG,cAAc,CAAE,SAAQ,SAAS,CAAC,CAAC,CAAC;IACpE,IAAI,EAAE,SAAS,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAID,eAAO,MAAM,OAAO,2BAA0B,YAAY,qDAmCzD,CAAC"}
@@ -0,0 +1,17 @@
1
+ import type { StoryObj } from '@storybook/react';
2
+ declare const meta: {
3
+ title: string;
4
+ component: ({ children, ...props }: import("./Tooltip").TooltipProps) => import("@emotion/react/jsx-runtime").JSX.Element;
5
+ parameters: {
6
+ layout: string;
7
+ };
8
+ tags: string[];
9
+ };
10
+ export default meta;
11
+ type Story = StoryObj<typeof meta>;
12
+ export declare const Default: Story;
13
+ export declare const WithInput: Story;
14
+ export declare const CustomPosition: Story;
15
+ export declare const LongContent: Story;
16
+ export declare const WithMarkup: Story;
17
+ //# sourceMappingURL=Tooltip.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tooltip.stories.d.ts","sourceRoot":"","sources":["../../src/Form/Tooltip.stories.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAO,QAAQ,EAAC,MAAM,kBAAkB,CAAC;AAMrD,QAAA,MAAM,IAAI;;;;;;;CAOsB,CAAC;AAEjC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAKvB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAK5B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAKzB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAaxB,CAAC"}
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WithMarkup = exports.LongContent = exports.CustomPosition = exports.WithInput = exports.Default = void 0;
4
+ const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
5
+ const Button_1 = require("./Button");
6
+ const Input_1 = require("./Input");
7
+ const Tooltip_1 = require("./Tooltip");
8
+ const meta = {
9
+ title: 'Form/Tooltip',
10
+ component: Tooltip_1.Tooltip,
11
+ parameters: {
12
+ layout: 'centered',
13
+ },
14
+ tags: ['autodocs'],
15
+ };
16
+ exports.default = meta;
17
+ exports.Default = {
18
+ args: {
19
+ body: 'This is a tooltip',
20
+ children: (0, jsx_runtime_1.jsx)(Button_1.Button, { children: "Hover me" }),
21
+ },
22
+ };
23
+ exports.WithInput = {
24
+ args: {
25
+ body: 'Enter your username',
26
+ children: (0, jsx_runtime_1.jsx)(Input_1.Input, { placeholder: "Username" }),
27
+ },
28
+ };
29
+ exports.CustomPosition = {
30
+ args: {
31
+ body: 'Tooltip on the right',
32
+ children: (0, jsx_runtime_1.jsx)(Button_1.Button, { children: "Hover me" }),
33
+ },
34
+ };
35
+ exports.LongContent = {
36
+ args: {
37
+ body: 'This is a longer tooltip that might wrap to multiple lines. It contains more detailed information about the element.',
38
+ children: (0, jsx_runtime_1.jsx)(Button_1.Button, { children: "Hover for more info" }),
39
+ },
40
+ };
41
+ exports.WithMarkup = {
42
+ args: {
43
+ body: ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("strong", { children: "Bold text" }), (0, jsx_runtime_1.jsx)("br", {}), (0, jsx_runtime_1.jsx)("em", { children: "Italic text" }), (0, jsx_runtime_1.jsx)("br", {}), "Regular text"] })),
44
+ children: (0, jsx_runtime_1.jsx)(Button_1.Button, { children: "Hover for formatted tooltip" }),
45
+ },
46
+ };
@@ -0,0 +1,12 @@
1
+ declare const meta: {
2
+ title: string;
3
+ component: ({ realWidth, realHeight, scale, width, height, shadow, children, fill, ...props }: import("./SVGIcon").InternalSVGIconProps) => import("@emotion/react/jsx-runtime").JSX.Element;
4
+ parameters: {
5
+ layout: string;
6
+ };
7
+ tags: string[];
8
+ render: (args: import("./SVGIcon").InternalSVGIconProps<SVGSVGElement>) => import("@emotion/react/jsx-runtime").JSX.Element;
9
+ };
10
+ export default meta;
11
+ export declare const Default: {};
12
+ //# sourceMappingURL=SVGIcon.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SVGIcon.stories.d.ts","sourceRoot":"","sources":["../../src/Icon/SVGIcon.stories.tsx"],"names":[],"mappings":"AA2BA,QAAA,MAAM,IAAI;;;;;;;;CAQsB,CAAC;AAEjC,eAAe,IAAI,CAAC;AAsCpB,eAAO,MAAM,OAAO,IAAK,CAAC"}
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.Default = void 0;
27
+ const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
28
+ const SVGIcon_1 = require("./SVGIcon");
29
+ const Icons = __importStar(require("./index"));
30
+ const meta = {
31
+ title: 'Icon/SVGIcon',
32
+ component: SVGIcon_1.SVGIcon,
33
+ parameters: {
34
+ layout: 'centered',
35
+ },
36
+ tags: ['autodocs'],
37
+ render: args => (0, jsx_runtime_1.jsx)(IconGallery, { ...args }),
38
+ };
39
+ exports.default = meta;
40
+ const IconGallery = (props) => {
41
+ const allIcons = { ...Icons };
42
+ return ((0, jsx_runtime_1.jsx)("div", { style: {
43
+ display: 'grid',
44
+ gridTemplateColumns: 'repeat(auto-fill, minmax(120px, 1fr))',
45
+ gap: '24px',
46
+ padding: '24px',
47
+ maxWidth: '800px',
48
+ }, children: Object.entries(allIcons)
49
+ .filter(([_, component]) => typeof component === 'function')
50
+ .map(([name, IconComponent]) => ((0, jsx_runtime_1.jsxs)("div", { style: {
51
+ display: 'flex',
52
+ flexDirection: 'column',
53
+ alignItems: 'center',
54
+ gap: '8px',
55
+ padding: '16px',
56
+ border: '1px solid #e5e5e5',
57
+ borderRadius: '8px',
58
+ }, children: [(0, jsx_runtime_1.jsx)(IconComponent, { ...props, "data-uie-name": name }), (0, jsx_runtime_1.jsx)("div", { style: { fontSize: '12px', textAlign: 'center' }, children: name })] }, name))) }));
59
+ };
60
+ exports.Default = {};
@@ -1,7 +1,7 @@
1
- import * as React from 'react';
1
+ import { ReactNode, ComponentType, HTMLProps } from 'react';
2
2
  type TransitionProps = Partial<any> & {
3
- children: React.ReactNode;
4
- component?: string | React.ComponentType<any>;
3
+ children: ReactNode;
4
+ component?: string | ComponentType<any>;
5
5
  };
6
6
  type OpacityProps = TransitionProps & {
7
7
  endValue?: number;
@@ -11,7 +11,7 @@ type MovementProps = TransitionProps & {
11
11
  endValue?: string;
12
12
  startValue?: string;
13
13
  };
14
- type TransitionContainerProps = React.HTMLProps<any> & {
14
+ type TransitionContainerProps = HTMLProps<any> & {
15
15
  appear?: boolean;
16
16
  component?: string;
17
17
  enter?: boolean;
@@ -23,9 +23,9 @@ export declare const Opacity: ({ startValue, endValue, timeout, ...props }: Opac
23
23
  export declare const YAxisMovement: ({ startValue, endValue, timeout, ...props }: MovementProps) => import("@emotion/react/jsx-runtime").JSX.Element;
24
24
  export declare const XAxisMovement: ({ startValue, endValue, timeout, ...props }: MovementProps) => import("@emotion/react/jsx-runtime").JSX.Element;
25
25
  export declare const Slide: ({ startValue, endValue, timeout, ...props }: MovementProps) => import("@emotion/react/jsx-runtime").JSX.Element;
26
- export declare const LeftRightMovement: (props: any) => import("@emotion/react/jsx-runtime").JSX.Element;
27
- export declare const RightLeftMovement: (props: any) => import("@emotion/react/jsx-runtime").JSX.Element;
28
- export declare const TopDownMovement: (props: any) => import("@emotion/react/jsx-runtime").JSX.Element;
29
- export declare const BottomUpMovement: (props: any) => import("@emotion/react/jsx-runtime").JSX.Element;
26
+ export declare const LeftRightMovement: (props: MovementProps) => import("@emotion/react/jsx-runtime").JSX.Element;
27
+ export declare const RightLeftMovement: (props: MovementProps) => import("@emotion/react/jsx-runtime").JSX.Element;
28
+ export declare const TopDownMovement: (props: MovementProps) => import("@emotion/react/jsx-runtime").JSX.Element;
29
+ export declare const BottomUpMovement: (props: MovementProps) => import("@emotion/react/jsx-runtime").JSX.Element;
30
30
  export {};
31
31
  //# sourceMappingURL=Animation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Animation.d.ts","sourceRoot":"","sources":["../../src/Identity/Animation.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,KAAK,eAAe,GAAG,OAAO,CAAC,GAAG,CAAC,GAAG;IACpC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;CAC/C,CAAC;AAEF,KAAK,YAAY,GAAG,eAAe,GAAG;IACpC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,KAAK,aAAa,GAAG,eAAe,GAAG;IACrC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,KAAK,wBAAwB,GAAG,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG;IACrD,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,mBAAmB,UAAW,wBAAwB,qDAAmC,CAAC;AAEvG,eAAO,MAAM,UAAU,+DAAsE,eAAe,qDAQ3G,CAAC;AAEF,eAAO,MAAM,OAAO,gDAA0E,YAAY,qDAmBzG,CAAC;AAEF,eAAO,MAAM,aAAa,gDAKvB,aAAa,qDAmBf,CAAC;AAEF,eAAO,MAAM,aAAa,gDAKvB,aAAa,qDAmBf,CAAC;AAEF,eAAO,MAAM,KAAK,gDAAmF,aAAa,qDAmBjH,CAAC;AAEF,eAAO,MAAM,iBAAiB,kEAA2E,CAAC;AAC1G,eAAO,MAAM,iBAAiB,kEAA0E,CAAC;AAEzG,eAAO,MAAM,eAAe,kEAAyE,CAAC;AACtG,eAAO,MAAM,gBAAgB,kEAAwE,CAAC"}
1
+ {"version":3,"file":"Animation.d.ts","sourceRoot":"","sources":["../../src/Identity/Animation.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAC,SAAS,EAAE,aAAa,EAAE,SAAS,EAAgB,MAAM,OAAO,CAAC;AAQzE,KAAK,eAAe,GAAG,OAAO,CAAC,GAAG,CAAC,GAAG;IACpC,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,GAAG,aAAa,CAAC,GAAG,CAAC,CAAC;CACzC,CAAC;AAEF,KAAK,YAAY,GAAG,eAAe,GAAG;IACpC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,KAAK,aAAa,GAAG,eAAe,GAAG;IACrC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,KAAK,wBAAwB,GAAG,SAAS,CAAC,GAAG,CAAC,GAAG;IAC/C,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,mBAAmB,UAAW,wBAAwB,qDAAmC,CAAC;AAEvG,eAAO,MAAM,UAAU,+DAAsE,eAAe,qDAQ3G,CAAC;AAEF,eAAO,MAAM,OAAO,gDAA0E,YAAY,qDAmBzG,CAAC;AAEF,eAAO,MAAM,aAAa,gDAKvB,aAAa,qDAmBf,CAAC;AAEF,eAAO,MAAM,aAAa,gDAKvB,aAAa,qDAmBf,CAAC;AAEF,eAAO,MAAM,KAAK,gDAAmF,aAAa,qDAmBjH,CAAC;AAEF,eAAO,MAAM,iBAAiB,UAAW,aAAa,qDAErD,CAAC;AACF,eAAO,MAAM,iBAAiB,UAAW,aAAa,qDAErD,CAAC;AAEF,eAAO,MAAM,eAAe,UAAW,aAAa,qDAAkE,CAAC;AACvH,eAAO,MAAM,gBAAgB,UAAW,aAAa,qDAAiE,CAAC"}
@@ -1,27 +1,4 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
2
  Object.defineProperty(exports, "__esModule", { value: true });
26
3
  exports.BottomUpMovement = exports.TopDownMovement = exports.RightLeftMovement = exports.LeftRightMovement = exports.Slide = exports.XAxisMovement = exports.YAxisMovement = exports.Opacity = exports.Transition = exports.TransitionContainer = void 0;
27
4
  const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
@@ -43,13 +20,13 @@ const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
43
20
  * along with this program. If not, see http://www.gnu.org/licenses/.
44
21
  *
45
22
  */
46
- const React = __importStar(require("react"));
47
- const react_1 = require("@emotion/react");
23
+ const react_1 = require("react");
24
+ const react_2 = require("@emotion/react");
48
25
  const motions_1 = require("./motions");
49
26
  const { CSSTransition, TransitionGroup } = require('react-transition-group');
50
27
  const TransitionContainer = (props) => (0, jsx_runtime_1.jsx)(TransitionGroup, { ...props });
51
28
  exports.TransitionContainer = TransitionContainer;
52
- const Transition = ({ animationStyle, timeout, component = 'div', children, ...props }) => ((0, jsx_runtime_1.jsx)(react_1.ClassNames, { children: ({ css }) => ((0, jsx_runtime_1.jsx)(CSSTransition, { timeout: timeout, classNames: css(animationStyle), ...props, children: component ? React.createElement(component, {}, children) : children })) }));
29
+ const Transition = ({ animationStyle, timeout, component = 'div', children, ...props }) => ((0, jsx_runtime_1.jsx)(react_2.ClassNames, { children: ({ css }) => ((0, jsx_runtime_1.jsx)(CSSTransition, { timeout: timeout, classNames: css(animationStyle), ...props, children: component ? (0, react_1.createElement)(component, {}, children) : children })) }));
53
30
  exports.Transition = Transition;
54
31
  const Opacity = ({ startValue = 0, endValue = 1, timeout = motions_1.DURATION.DEFAULT, ...props }) => ((0, jsx_runtime_1.jsx)(exports.Transition, { animationStyle: {
55
32
  '&-enter': { opacity: startValue },
@@ -111,11 +88,11 @@ const Slide = ({ startValue = '-100%', endValue = '0%', timeout = motions_1.DURA
111
88
  '&-exit-done': { marginTop: startValue },
112
89
  }, timeout: timeout, ...props }));
113
90
  exports.Slide = Slide;
114
- const LeftRightMovement = props => (0, jsx_runtime_1.jsx)(exports.XAxisMovement, { startValue: "-100vh", endValue: "0vh", ...props });
91
+ const LeftRightMovement = (props) => ((0, jsx_runtime_1.jsx)(exports.XAxisMovement, { startValue: "-100vh", endValue: "0vh", ...props }));
115
92
  exports.LeftRightMovement = LeftRightMovement;
116
- const RightLeftMovement = props => (0, jsx_runtime_1.jsx)(exports.XAxisMovement, { startValue: "100vh", endValue: "0vh", ...props });
93
+ const RightLeftMovement = (props) => ((0, jsx_runtime_1.jsx)(exports.XAxisMovement, { startValue: "100vh", endValue: "0vh", ...props }));
117
94
  exports.RightLeftMovement = RightLeftMovement;
118
- const TopDownMovement = props => (0, jsx_runtime_1.jsx)(exports.YAxisMovement, { startValue: "-100%", endValue: "0%", ...props });
95
+ const TopDownMovement = (props) => (0, jsx_runtime_1.jsx)(exports.YAxisMovement, { startValue: "-100%", endValue: "0%", ...props });
119
96
  exports.TopDownMovement = TopDownMovement;
120
- const BottomUpMovement = props => (0, jsx_runtime_1.jsx)(exports.YAxisMovement, { startValue: "100%", endValue: "0%", ...props });
97
+ const BottomUpMovement = (props) => (0, jsx_runtime_1.jsx)(exports.YAxisMovement, { startValue: "100%", endValue: "0%", ...props });
121
98
  exports.BottomUpMovement = BottomUpMovement;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ declare const meta: Meta;
3
+ export default meta;
4
+ export declare const AllAnimations: () => import("@emotion/react/jsx-runtime").JSX.Element;
5
+ export declare const CustomizableAnimation: StoryObj;
6
+ //# sourceMappingURL=Animation.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Animation.stories.d.ts","sourceRoot":"","sources":["../../src/Identity/Animation.stories.tsx"],"names":[],"mappings":"AAqBA,OAAO,EAAC,IAAI,EAAE,QAAQ,EAAC,MAAM,kBAAkB,CAAC;AAahD,QAAA,MAAM,IAAI,EAAE,IASX,CAAC;AAEF,eAAe,IAAI,CAAC;AA4CpB,eAAO,MAAM,aAAa,wDA4EzB,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,QAqCnC,CAAC"}
@@ -0,0 +1,73 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CustomizableAnimation = exports.AllAnimations = void 0;
4
+ const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
5
+ /*
6
+ * Wire
7
+ * Copyright (C) 2025 Wire Swiss GmbH
8
+ *
9
+ * This program is free software: you can redistribute it and/or modify
10
+ * it under the terms of the GNU General Public License as published by
11
+ * the Free Software Foundation, either version 3 of the License, or
12
+ * (at your option) any later version.
13
+ *
14
+ * This program is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
+ * GNU General Public License for more details.
18
+ *
19
+ * You should have received a copy of the GNU General Public License
20
+ * along with this program. If not, see http://www.gnu.org/licenses/.
21
+ *
22
+ */
23
+ const react_1 = require("react");
24
+ const Animation_1 = require("./Animation");
25
+ const colors_1 = require("./colors");
26
+ const meta = {
27
+ title: 'Identity/Animation',
28
+ decorators: [
29
+ Story => ((0, jsx_runtime_1.jsx)("div", { style: { padding: '24px', maxWidth: '600px', margin: '0 auto' }, children: (0, jsx_runtime_1.jsx)(Story, {}) })),
30
+ ],
31
+ };
32
+ exports.default = meta;
33
+ const AnimationDemo = ({ title, children, }) => {
34
+ const [isAnimating, setIsAnimating] = (0, react_1.useState)(false);
35
+ const toggle = () => setIsAnimating(!isAnimating);
36
+ return ((0, jsx_runtime_1.jsxs)("div", { style: { marginBottom: '32px' }, children: [(0, jsx_runtime_1.jsxs)("div", { style: { marginBottom: '16px' }, children: [(0, jsx_runtime_1.jsx)("h3", { style: { marginBottom: '8px' }, children: title }), (0, jsx_runtime_1.jsx)("button", { onClick: toggle, style: {
37
+ backgroundColor: colors_1.COLOR.BLUE,
38
+ border: 'none',
39
+ borderRadius: '4px',
40
+ color: colors_1.COLOR.WHITE,
41
+ cursor: 'pointer',
42
+ padding: '8px 16px',
43
+ }, children: "Toggle Animation" })] }), (0, jsx_runtime_1.jsx)("div", { style: {
44
+ backgroundColor: colors_1.COLOR.GRAY_LIGHTEN_72,
45
+ borderRadius: '4px',
46
+ minHeight: '100px',
47
+ padding: '24px',
48
+ }, children: children(isAnimating, toggle) })] }));
49
+ };
50
+ const AllAnimations = () => ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(AnimationDemo, { title: "Opacity", children: isAnimating => ((0, jsx_runtime_1.jsx)(Animation_1.Opacity, { in: isAnimating, children: (0, jsx_runtime_1.jsx)("div", { style: { padding: '16px', backgroundColor: colors_1.COLOR.WHITE, borderRadius: '4px' }, children: "Fade in/out content" }) })) }), (0, jsx_runtime_1.jsx)(AnimationDemo, { title: "Top Down Movement", children: isAnimating => ((0, jsx_runtime_1.jsx)(Animation_1.TopDownMovement, { in: isAnimating, children: (0, jsx_runtime_1.jsx)("div", { style: { padding: '16px', backgroundColor: colors_1.COLOR.WHITE, borderRadius: '4px' }, children: "Moving from top" }) })) }), (0, jsx_runtime_1.jsx)(AnimationDemo, { title: "Bottom Up Movement", children: isAnimating => ((0, jsx_runtime_1.jsx)(Animation_1.BottomUpMovement, { in: isAnimating, children: (0, jsx_runtime_1.jsx)("div", { style: { padding: '16px', backgroundColor: colors_1.COLOR.WHITE, borderRadius: '4px' }, children: "Moving from bottom" }) })) }), (0, jsx_runtime_1.jsx)(AnimationDemo, { title: "Y-Axis Movement", children: isAnimating => ((0, jsx_runtime_1.jsx)(Animation_1.YAxisMovement, { in: isAnimating, startValue: "50%", endValue: "-50%", children: (0, jsx_runtime_1.jsx)("div", { style: { padding: '16px', backgroundColor: colors_1.COLOR.WHITE, borderRadius: '4px' }, children: "Custom vertical movement" }) })) }), (0, jsx_runtime_1.jsx)(AnimationDemo, { title: "Left Right Movement", children: isAnimating => ((0, jsx_runtime_1.jsx)(Animation_1.LeftRightMovement, { in: isAnimating, children: (0, jsx_runtime_1.jsx)("div", { style: { padding: '16px', backgroundColor: colors_1.COLOR.WHITE, borderRadius: '4px' }, children: "Moving from left" }) })) }), (0, jsx_runtime_1.jsx)(AnimationDemo, { title: "Right Left Movement", children: isAnimating => ((0, jsx_runtime_1.jsx)(Animation_1.RightLeftMovement, { in: isAnimating, children: (0, jsx_runtime_1.jsx)("div", { style: { padding: '16px', backgroundColor: colors_1.COLOR.WHITE, borderRadius: '4px' }, children: "Moving from right" }) })) }), (0, jsx_runtime_1.jsx)(AnimationDemo, { title: "X-Axis Movement", children: isAnimating => ((0, jsx_runtime_1.jsx)(Animation_1.XAxisMovement, { in: isAnimating, startValue: "10vh", endValue: "-10vh", children: (0, jsx_runtime_1.jsx)("div", { style: { padding: '16px', backgroundColor: colors_1.COLOR.WHITE, borderRadius: '4px' }, children: "Custom horizontal movement" }) })) }), (0, jsx_runtime_1.jsx)(AnimationDemo, { title: "Combined Animations", children: isAnimating => ((0, jsx_runtime_1.jsx)(Animation_1.TopDownMovement, { in: isAnimating, children: (0, jsx_runtime_1.jsx)(Animation_1.Opacity, { in: isAnimating, children: (0, jsx_runtime_1.jsx)(Animation_1.XAxisMovement, { in: isAnimating, startValue: "40vh", endValue: "10vh", children: (0, jsx_runtime_1.jsx)("div", { style: { padding: '16px', backgroundColor: colors_1.COLOR.WHITE, borderRadius: '4px' }, children: "Combined fade, vertical and horizontal movement" }) }) }) })) })] }));
51
+ exports.AllAnimations = AllAnimations;
52
+ exports.CustomizableAnimation = {
53
+ render: function Render() {
54
+ const [isAnimating, setIsAnimating] = (0, react_1.useState)(false);
55
+ const toggle = () => setIsAnimating(!isAnimating);
56
+ return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("button", { onClick: toggle, style: {
57
+ backgroundColor: colors_1.COLOR.BLUE,
58
+ border: 'none',
59
+ borderRadius: '4px',
60
+ color: colors_1.COLOR.WHITE,
61
+ cursor: 'pointer',
62
+ marginBottom: '24px',
63
+ padding: '8px 16px',
64
+ }, children: "Toggle Animation" }), (0, jsx_runtime_1.jsx)(Animation_1.Opacity, { in: isAnimating, timeout: 2000, children: (0, jsx_runtime_1.jsx)("div", { style: { padding: '16px', backgroundColor: colors_1.COLOR.WHITE, borderRadius: '4px' }, children: "Customizable animation duration (2 seconds)" }) })] }));
65
+ },
66
+ parameters: {
67
+ docs: {
68
+ description: {
69
+ story: 'Animations can be customized with different durations and timing functions.',
70
+ },
71
+ },
72
+ },
73
+ };
@@ -0,0 +1,13 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { Avatar } from './Avatar';
3
+ declare const meta: Meta<typeof Avatar>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Avatar>;
6
+ export declare const WithInitials: Story;
7
+ export declare const WithImage: Story;
8
+ export declare const CustomColors: Story;
9
+ export declare const Small: Story;
10
+ export declare const Large: Story;
11
+ export declare const ForcedInitials: Story;
12
+ export declare const MultipleSizes: Story;
13
+ //# sourceMappingURL=Avatar.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Avatar.stories.d.ts","sourceRoot":"","sources":["../../src/Identity/Avatar.stories.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAC,IAAI,EAAE,QAAQ,EAAC,MAAM,kBAAkB,CAAC;AAEhD,OAAO,EAAC,MAAM,EAAC,MAAM,UAAU,CAAC;AAGhC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,MAAM,CAY7B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,MAAM,CAAC,CAAC;AAErC,eAAO,MAAM,YAAY,EAAE,KAK1B,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAMvB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAO1B,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAKnB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAKnB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAO5B,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAU3B,CAAC"}
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MultipleSizes = exports.ForcedInitials = exports.Large = exports.Small = exports.CustomColors = exports.WithImage = exports.WithInitials = void 0;
4
+ const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
5
+ const Avatar_1 = require("./Avatar");
6
+ const colors_1 = require("./colors");
7
+ const meta = {
8
+ component: Avatar_1.Avatar,
9
+ title: 'Identity/Avatar',
10
+ argTypes: {
11
+ backgroundColor: { control: 'color' },
12
+ borderColor: { control: 'color' },
13
+ size: { control: { type: 'number', min: 16, max: 128, step: 4 } },
14
+ name: { control: 'text' },
15
+ url: { control: 'text' },
16
+ forceInitials: { control: 'boolean' },
17
+ isAvatarGridItem: { control: 'boolean' },
18
+ },
19
+ };
20
+ exports.default = meta;
21
+ exports.WithInitials = {
22
+ args: {
23
+ name: 'John Doe',
24
+ size: 48,
25
+ },
26
+ };
27
+ exports.WithImage = {
28
+ args: {
29
+ name: 'John Doe',
30
+ size: 48,
31
+ url: 'https://wire.com/hs-fs/hubfs/images%202024/about-us-hero-min.jpg?width=2175&height=2043&name=about-us-hero-min.jpg',
32
+ },
33
+ };
34
+ exports.CustomColors = {
35
+ args: {
36
+ backgroundColor: colors_1.COLOR.BLUE,
37
+ borderColor: colors_1.COLOR.WHITE,
38
+ name: 'Jane Smith',
39
+ size: 48,
40
+ },
41
+ };
42
+ exports.Small = {
43
+ args: {
44
+ name: 'JS',
45
+ size: 24,
46
+ },
47
+ };
48
+ exports.Large = {
49
+ args: {
50
+ name: 'Jane Smith',
51
+ size: 96,
52
+ },
53
+ };
54
+ exports.ForcedInitials = {
55
+ args: {
56
+ forceInitials: true,
57
+ name: 'John Doe',
58
+ size: 48,
59
+ url: 'https://placekitten.com/200/200',
60
+ },
61
+ };
62
+ exports.MultipleSizes = {
63
+ render: () => ((0, jsx_runtime_1.jsxs)("div", { style: { display: 'flex', gap: '16px', alignItems: 'center' }, children: [(0, jsx_runtime_1.jsx)(Avatar_1.Avatar, { name: "John Doe", size: 24 }), (0, jsx_runtime_1.jsx)(Avatar_1.Avatar, { name: "John Doe", size: 32 }), (0, jsx_runtime_1.jsx)(Avatar_1.Avatar, { name: "John Doe", size: 48 }), (0, jsx_runtime_1.jsx)(Avatar_1.Avatar, { name: "John Doe", size: 64 }), (0, jsx_runtime_1.jsx)(Avatar_1.Avatar, { name: "John Doe", size: 96 })] })),
64
+ };
@@ -0,0 +1,12 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { AvatarGrid } from './AvatarGrid';
3
+ declare const meta: Meta<typeof AvatarGrid>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof AvatarGrid>;
6
+ export declare const Default: Story;
7
+ export declare const WithImages: Story;
8
+ export declare const CustomStyle: Story;
9
+ export declare const TwoItems: Story;
10
+ export declare const SingleItem: Story;
11
+ export declare const MultipleSizes: Story;
12
+ //# sourceMappingURL=AvatarGrid.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AvatarGrid.stories.d.ts","sourceRoot":"","sources":["../../src/Identity/AvatarGrid.stories.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAC,IAAI,EAAE,QAAQ,EAAC,MAAM,kBAAkB,CAAC;AAEhD,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AAGxC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,UAAU,CASjC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,UAAU,CAAC,CAAC;AAEzC,eAAO,MAAM,OAAO,EAAE,KAUrB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAkBxB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAYzB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAQtB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAKxB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KA6B3B,CAAC"}