@jordan-mace/chaser-design-system 1.2.2 → 1.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/dist/index.cjs +4894 -0
- package/dist/index.d.cts +1111 -0
- package/dist/index.d.mts +1111 -0
- package/dist/index.mjs +4812 -0
- package/package.json +17 -12
- package/src/components/Accordion/Accordion.stories.tsx +73 -0
- package/src/components/Accordion/Accordion.test.tsx +54 -0
- package/src/components/Accordion/Accordion.tsx +146 -0
- package/src/components/Accordion/styles.css.ts +72 -0
- package/src/components/Alert/Alert.stories.tsx +82 -0
- package/src/components/Alert/Alert.test.tsx +58 -0
- package/src/components/Alert/Alert.tsx +48 -0
- package/src/components/Alert/__screenshots__/Alert.test.tsx/Alert-renders-dismissible-alert-correctly-1-chromium-linux.png +0 -0
- package/src/components/Alert/__screenshots__/Alert.test.tsx/Alert-renders-error-alert-correctly-1-chromium-linux.png +0 -0
- package/src/components/Alert/__screenshots__/Alert.test.tsx/Alert-renders-info-alert-correctly-1-chromium-linux.png +0 -0
- package/src/components/Alert/__screenshots__/Alert.test.tsx/Alert-renders-success-alert-correctly-1-chromium-linux.png +0 -0
- package/src/components/Alert/__screenshots__/Alert.test.tsx/Alert-renders-warning-alert-correctly-1-chromium-linux.png +0 -0
- package/src/components/Alert/styles.css.ts +58 -0
- package/src/components/AspectRatio/AspectRatio.stories.tsx +85 -0
- package/src/components/AspectRatio/AspectRatio.test.tsx +50 -0
- package/src/components/AspectRatio/AspectRatio.tsx +42 -0
- package/src/components/Avatar/Avatar.stories.tsx +82 -0
- package/src/components/Avatar/Avatar.test.tsx +45 -0
- package/src/components/Avatar/Avatar.tsx +51 -0
- package/src/components/Avatar/styles.css.ts +155 -0
- package/src/components/Badge/Badge.stories.tsx +141 -0
- package/src/components/Badge/Badge.test.tsx +74 -0
- package/src/components/Badge/Badge.tsx +46 -0
- package/src/components/Badge/__screenshots__/Badge.test.tsx/Badge-does-not-render-children-when-dot-is-true-1.png +0 -0
- package/src/components/Badge/__screenshots__/Badge.test.tsx/Badge-renders-default-badge-correctly-1-chromium-linux.png +0 -0
- package/src/components/Badge/__screenshots__/Badge.test.tsx/Badge-renders-dot-badge-correctly-1-chromium-linux.png +0 -0
- package/src/components/Badge/__screenshots__/Badge.test.tsx/Badge-renders-dot-with-size-correctly-1-chromium-linux.png +0 -0
- package/src/components/Badge/__screenshots__/Badge.test.tsx/Badge-renders-dot-with-variant-correctly-1-chromium-linux.png +0 -0
- package/src/components/Badge/__screenshots__/Badge.test.tsx/Badge-renders-error-badge-correctly-1-chromium-linux.png +0 -0
- package/src/components/Badge/__screenshots__/Badge.test.tsx/Badge-renders-info-badge-correctly-1-chromium-linux.png +0 -0
- package/src/components/Badge/__screenshots__/Badge.test.tsx/Badge-renders-large-badge-correctly-1-chromium-linux.png +0 -0
- package/src/components/Badge/__screenshots__/Badge.test.tsx/Badge-renders-medium-badge-correctly-1-chromium-linux.png +0 -0
- package/src/components/Badge/__screenshots__/Badge.test.tsx/Badge-renders-small-badge-correctly-1-chromium-linux.png +0 -0
- package/src/components/Badge/__screenshots__/Badge.test.tsx/Badge-renders-span-element-with-proper-attributes-1.png +0 -0
- package/src/components/Badge/__screenshots__/Badge.test.tsx/Badge-renders-success-badge-correctly-1-chromium-linux.png +0 -0
- package/src/components/Badge/__screenshots__/Badge.test.tsx/Badge-renders-warning-badge-correctly-1-chromium-linux.png +0 -0
- package/src/components/Badge/styles.css.ts +82 -0
- package/src/components/Box/Box.stories.tsx +183 -0
- package/src/components/Box/Box.test.tsx +63 -0
- package/src/components/Box/Box.tsx +72 -0
- package/src/components/Box/reset.css.ts +16 -0
- package/src/components/Breadcrumb/Breadcrumb.stories.tsx +55 -0
- package/src/components/Breadcrumb/Breadcrumb.test.tsx +44 -0
- package/src/components/Breadcrumb/Breadcrumb.tsx +102 -0
- package/src/components/Breadcrumb/styles.css.ts +56 -0
- package/src/components/Button/Button.stories.tsx +60 -0
- package/src/components/Button/Button.test.tsx +26 -0
- package/src/components/Button/Button.tsx +31 -0
- package/src/components/Button/__screenshots__/Button.test.tsx/Button-renders-correctly-1-chromium-win32.png +0 -0
- package/src/components/Button/__screenshots__/Button.test.tsx/Button-renders-primary-button-correctly-1-chromium-linux.png +0 -0
- package/src/components/Button/__screenshots__/Button.test.tsx/Button-renders-primary-button-correctly-1-chromium-win32.png +0 -0
- package/src/components/Button/styles.css.ts +32 -0
- package/src/components/Card/Card.stories.tsx +85 -0
- package/src/components/Card/Card.test.tsx +43 -0
- package/src/components/Card/Card.tsx +34 -0
- package/src/components/Card/__screenshots__/Card.test.tsx/Card-renders-elevated-card-correctly-1-chromium-linux.png +0 -0
- package/src/components/Card/__screenshots__/Card.test.tsx/Card-renders-filled-card-correctly-1-chromium-linux.png +0 -0
- package/src/components/Card/__screenshots__/Card.test.tsx/Card-renders-outlined-card-correctly-1-chromium-linux.png +0 -0
- package/src/components/Card/__screenshots__/Card.test.tsx/Card-renders-with-no-padding-1-chromium-linux.png +0 -0
- package/src/components/Card/styles.css.ts +27 -0
- package/src/components/Checkbox/Checkbox.stories.tsx +61 -0
- package/src/components/Checkbox/Checkbox.test.tsx +40 -0
- package/src/components/Checkbox/Checkbox.tsx +58 -0
- package/src/components/Checkbox/styles.css.ts +34 -0
- package/src/components/Collapse/Collapse.stories.tsx +63 -0
- package/src/components/Collapse/Collapse.test.tsx +24 -0
- package/src/components/Collapse/Collapse.tsx +97 -0
- package/src/components/Collapse/styles.css.ts +42 -0
- package/src/components/Combobox/Combobox.stories.tsx +100 -0
- package/src/components/Combobox/Combobox.test.tsx +49 -0
- package/src/components/Combobox/Combobox.tsx +266 -0
- package/src/components/Combobox/styles.css.ts +155 -0
- package/src/components/Container/Container.stories.tsx +69 -0
- package/src/components/Container/Container.test.tsx +42 -0
- package/src/components/Container/Container.tsx +47 -0
- package/src/components/Divider/Divider.stories.tsx +121 -0
- package/src/components/Divider/Divider.test.tsx +56 -0
- package/src/components/Divider/Divider.tsx +40 -0
- package/src/components/Divider/__screenshots__/Divider.test.tsx/Divider-applies-orientation-correctly-1.png +0 -0
- package/src/components/Divider/__screenshots__/Divider.test.tsx/Divider-renders-horizontal-divider-correctly-1-chromium-linux.png +0 -0
- package/src/components/Divider/__screenshots__/Divider.test.tsx/Divider-renders-hr-element-with-proper-attributes-1.png +0 -0
- package/src/components/Divider/__screenshots__/Divider.test.tsx/Divider-renders-large-divider-correctly-1-chromium-linux.png +0 -0
- package/src/components/Divider/__screenshots__/Divider.test.tsx/Divider-renders-medium-divider-correctly-1-chromium-linux.png +0 -0
- package/src/components/Divider/__screenshots__/Divider.test.tsx/Divider-renders-small-divider-correctly-1-chromium-linux.png +0 -0
- package/src/components/Divider/__screenshots__/Divider.test.tsx/Divider-renders-vertical-divider-correctly-1-chromium-linux.png +0 -0
- package/src/components/Divider/styles.css.ts +45 -0
- package/src/components/Drawer/Drawer.stories.tsx +99 -0
- package/src/components/Drawer/Drawer.test.tsx +51 -0
- package/src/components/Drawer/Drawer.tsx +148 -0
- package/src/components/Drawer/styles.css.ts +138 -0
- package/src/components/DropdownMenu/DropdownMenu.stories.tsx +72 -0
- package/src/components/DropdownMenu/DropdownMenu.test.tsx +43 -0
- package/src/components/DropdownMenu/DropdownMenu.tsx +156 -0
- package/src/components/DropdownMenu/styles.css.ts +102 -0
- package/src/components/EmptyState/EmptyState.stories.tsx +47 -0
- package/src/components/EmptyState/EmptyState.test.tsx +25 -0
- package/src/components/EmptyState/EmptyState.tsx +53 -0
- package/src/components/EmptyState/styles.css.ts +36 -0
- package/src/components/FileUpload/FileUpload.stories.tsx +138 -0
- package/src/components/FileUpload/FileUpload.test.tsx +56 -0
- package/src/components/FileUpload/FileUpload.tsx +269 -0
- package/src/components/FileUpload/styles.css.ts +164 -0
- package/src/components/Form/Form.stories.tsx +51 -0
- package/src/components/Form/Form.test.tsx +41 -0
- package/src/components/Form/Form.tsx +28 -0
- package/src/components/Form/FormInput.tsx +16 -0
- package/src/components/Form/__screenshots__/Form.test.tsx/Form-can-submit-1.png +0 -0
- package/src/components/Form/__screenshots__/Form.test.tsx/Form-renders-correctly-1-chromium-win32.png +0 -0
- package/src/components/Form/__screenshots__/Form.test.tsx/Form-renders-form-correctly-1-chromium-linux.png +0 -0
- package/src/components/Form/__screenshots__/Form.test.tsx/Form-renders-form-correctly-1-chromium-win32.png +0 -0
- package/src/components/Form/styles.css.ts +13 -0
- package/src/components/Grid/Grid.stories.tsx +134 -0
- package/src/components/Grid/Grid.test.tsx +41 -0
- package/src/components/Grid/Grid.tsx +48 -0
- package/src/components/Icon/Icon.tsx +43 -0
- package/src/components/Icon/styles.css.ts +11 -0
- package/src/components/Input/Input.stories.tsx +38 -0
- package/src/components/Input/Input.test.tsx +16 -0
- package/src/components/Input/Input.tsx +43 -0
- package/src/components/Input/__screenshots__/Input.test.tsx/Input-renders-correctly-with-label-1-chromium-linux.png +0 -0
- package/src/components/Input/__screenshots__/Input.test.tsx/Input-renders-correctly-with-label-1-chromium-win32.png +0 -0
- package/src/components/Input/__screenshots__/Input.test.tsx/Input-renders-correctly-without-label-1-chromium-linux.png +0 -0
- package/src/components/Input/__screenshots__/Input.test.tsx/Input-renders-correctly-without-label-1-chromium-win32.png +0 -0
- package/src/components/Input/styles.css.ts +10 -0
- package/src/components/Kbd/Kbd.stories.tsx +53 -0
- package/src/components/Kbd/Kbd.test.tsx +22 -0
- package/src/components/Kbd/Kbd.tsx +17 -0
- package/src/components/Kbd/styles.css.ts +18 -0
- package/src/components/List/List.test.tsx +18 -0
- package/src/components/List/List.tsx +13 -0
- package/src/components/List/ListItem.tsx +13 -0
- package/src/components/List/__screenshots__/List.test.tsx/List-renders-correctly-1-chromium-win32.png +0 -0
- package/src/components/List/__screenshots__/List.test.tsx/List-renders-list-correctly-1-chromium-linux.png +0 -0
- package/src/components/List/__screenshots__/List.test.tsx/List-renders-list-correctly-1-chromium-win32.png +0 -0
- package/src/components/List/styles.css.ts +13 -0
- package/src/components/Modal/Modal.stories.tsx +202 -0
- package/src/components/Modal/Modal.test.tsx +168 -0
- package/src/components/Modal/Modal.tsx +109 -0
- package/src/components/Modal/__screenshots__/Modal.test.tsx/Modal-displays-title-correctly-1.png +0 -0
- package/src/components/Modal/__screenshots__/Modal.test.tsx/Modal-handles-backdrop-click-to-close-1.png +0 -0
- package/src/components/Modal/styles.css.ts +99 -0
- package/src/components/Navbar/Navbar.stories.tsx +49 -0
- package/src/components/Navbar/Navbar.test.tsx +18 -0
- package/src/components/Navbar/Navbar.tsx +27 -0
- package/src/components/Navbar/NavbarItem.tsx +14 -0
- package/src/components/Navbar/__screenshots__/Navbar.test.tsx/Navbar-renders-correctly-1-chromium-win32.png +0 -0
- package/src/components/Navbar/__screenshots__/Navbar.test.tsx/Navbar-renders-navbar-correctly-1-chromium-linux.png +0 -0
- package/src/components/Navbar/__screenshots__/Navbar.test.tsx/Navbar-renders-navbar-correctly-1-chromium-win32.png +0 -0
- package/src/components/Navbar/styles.css.ts +5 -0
- package/src/components/NumberInput/NumberInput.stories.tsx +101 -0
- package/src/components/NumberInput/NumberInput.test.tsx +39 -0
- package/src/components/NumberInput/NumberInput.tsx +161 -0
- package/src/components/NumberInput/styles.css.ts +127 -0
- package/src/components/Pagination/Pagination.stories.tsx +63 -0
- package/src/components/Pagination/Pagination.test.tsx +27 -0
- package/src/components/Pagination/Pagination.tsx +138 -0
- package/src/components/Pagination/styles.css.ts +48 -0
- package/src/components/Popover/Popover.stories.tsx +80 -0
- package/src/components/Popover/Popover.test.tsx +47 -0
- package/src/components/Popover/Popover.tsx +171 -0
- package/src/components/Popover/styles.css.ts +197 -0
- package/src/components/Progress/Progress.stories.tsx +73 -0
- package/src/components/Progress/Progress.test.tsx +53 -0
- package/src/components/Progress/Progress.tsx +66 -0
- package/src/components/Progress/styles.css.ts +75 -0
- package/src/components/Radio/Radio.stories.tsx +75 -0
- package/src/components/Radio/Radio.test.tsx +54 -0
- package/src/components/Radio/Radio.tsx +104 -0
- package/src/components/Radio/styles.css.ts +47 -0
- package/src/components/ScrollArea/ScrollArea.stories.tsx +63 -0
- package/src/components/ScrollArea/ScrollArea.test.tsx +24 -0
- package/src/components/ScrollArea/ScrollArea.tsx +50 -0
- package/src/components/ScrollArea/styles.css.ts +28 -0
- package/src/components/Select/Select.stories.tsx +94 -0
- package/src/components/Select/Select.test.tsx +57 -0
- package/src/components/Select/Select.tsx +60 -0
- package/src/components/Select/styles.css.ts +86 -0
- package/src/components/Separator/Separator.stories.tsx +49 -0
- package/src/components/Separator/Separator.test.tsx +22 -0
- package/src/components/Separator/Separator.tsx +37 -0
- package/src/components/Separator/styles.css.ts +32 -0
- package/src/components/Skeleton/Skeleton.stories.tsx +78 -0
- package/src/components/Skeleton/Skeleton.test.tsx +36 -0
- package/src/components/Skeleton/Skeleton.tsx +67 -0
- package/src/components/Skeleton/styles.css.ts +62 -0
- package/src/components/Spinner/Spinner.stories.tsx +123 -0
- package/src/components/Spinner/Spinner.test.tsx +73 -0
- package/src/components/Spinner/Spinner.tsx +41 -0
- package/src/components/Spinner/__screenshots__/Spinner.test.tsx/Spinner-renders-div-element-with-proper-attributes-1.png +0 -0
- package/src/components/Spinner/__screenshots__/Spinner.test.tsx/Spinner-renders-error-color-correctly-1-chromium-linux.png +0 -0
- package/src/components/Spinner/__screenshots__/Spinner.test.tsx/Spinner-renders-info-color-correctly-1-chromium-linux.png +0 -0
- package/src/components/Spinner/__screenshots__/Spinner.test.tsx/Spinner-renders-large-spinner-correctly-1-chromium-linux.png +0 -0
- package/src/components/Spinner/__screenshots__/Spinner.test.tsx/Spinner-renders-medium-spinner-correctly-1-chromium-linux.png +0 -0
- package/src/components/Spinner/__screenshots__/Spinner.test.tsx/Spinner-renders-primary-spinner-correctly-1-chromium-linux.png +0 -0
- package/src/components/Spinner/__screenshots__/Spinner.test.tsx/Spinner-renders-secondary-color-correctly-1-chromium-linux.png +0 -0
- package/src/components/Spinner/__screenshots__/Spinner.test.tsx/Spinner-renders-small-spinner-correctly-1-chromium-linux.png +0 -0
- package/src/components/Spinner/__screenshots__/Spinner.test.tsx/Spinner-renders-success-color-correctly-1-chromium-linux.png +0 -0
- package/src/components/Spinner/__screenshots__/Spinner.test.tsx/Spinner-renders-warning-color-correctly-1-chromium-linux.png +0 -0
- package/src/components/Spinner/styles.css.ts +59 -0
- package/src/components/Stack/Stack.stories.tsx +123 -0
- package/src/components/Stack/Stack.test.tsx +48 -0
- package/src/components/Stack/Stack.tsx +60 -0
- package/src/components/Stepper/Stepper.stories.tsx +85 -0
- package/src/components/Stepper/Stepper.test.tsx +47 -0
- package/src/components/Stepper/Stepper.tsx +133 -0
- package/src/components/Stepper/styles.css.ts +118 -0
- package/src/components/Table/Table.stories.tsx +147 -0
- package/src/components/Table/Table.test.tsx +104 -0
- package/src/components/Table/Table.tsx +131 -0
- package/src/components/Table/styles.css.ts +57 -0
- package/src/components/Tabs/Tabs.stories.tsx +104 -0
- package/src/components/Tabs/Tabs.test.tsx +52 -0
- package/src/components/Tabs/Tabs.tsx +147 -0
- package/src/components/Tabs/styles.css.ts +106 -0
- package/src/components/Tag/Tag.stories.tsx +72 -0
- package/src/components/Tag/Tag.test.tsx +49 -0
- package/src/components/Tag/Tag.tsx +72 -0
- package/src/components/Tag/styles.css.ts +96 -0
- package/src/components/Text/Header.stories.tsx +45 -0
- package/src/components/Text/Header.tsx +20 -0
- package/src/components/Text/P.stories.tsx +24 -0
- package/src/components/Text/P.tsx +19 -0
- package/src/components/Text/Text.test.tsx +32 -0
- package/src/components/Text/__screenshots__/Text.test.tsx/Header-renders-h1-correctly-1-chromium-linux.png +0 -0
- package/src/components/Text/__screenshots__/Text.test.tsx/Header-renders-h1-correctly-1-chromium-win32.png +0 -0
- package/src/components/Text/__screenshots__/Text.test.tsx/Header-renders-h2-correctly-1-chromium-linux.png +0 -0
- package/src/components/Text/__screenshots__/Text.test.tsx/Header-renders-h2-correctly-1-chromium-win32.png +0 -0
- package/src/components/Text/__screenshots__/Text.test.tsx/Header-renders-h3-correctly-1-chromium-linux.png +0 -0
- package/src/components/Text/__screenshots__/Text.test.tsx/Header-renders-h3-correctly-1-chromium-win32.png +0 -0
- package/src/components/Text/__screenshots__/Text.test.tsx/P-renders-correctly-1-chromium-win32.png +0 -0
- package/src/components/Text/__screenshots__/Text.test.tsx/P-renders-p-correctly-1-chromium-linux.png +0 -0
- package/src/components/Text/__screenshots__/Text.test.tsx/P-renders-p-correctly-1-chromium-win32.png +0 -0
- package/src/components/Text/styles.css.ts +15 -0
- package/src/components/TextArea/TextArea.stories.tsx +40 -0
- package/src/components/TextArea/TextArea.test.tsx +16 -0
- package/src/components/TextArea/TextArea.tsx +43 -0
- package/src/components/TextArea/styles.css.ts +12 -0
- package/src/components/Toast/Toast.tsx +342 -0
- package/src/components/Toast/index.ts +9 -0
- package/src/components/Toast/styles.css.ts +213 -0
- package/src/components/Toggle/Toggle.stories.tsx +190 -0
- package/src/components/Toggle/Toggle.test.tsx +85 -0
- package/src/components/Toggle/Toggle.tsx +94 -0
- package/src/components/Toggle/styles.css.ts +130 -0
- package/src/components/Tooltip/Tooltip.stories.tsx +111 -0
- package/src/components/Tooltip/Tooltip.test.tsx +93 -0
- package/src/components/Tooltip/Tooltip.tsx +72 -0
- package/src/components/Tooltip/__screenshots__/Tooltip.test.tsx/Tooltip-has-proper-role-attribute-1.png +0 -0
- package/src/components/Tooltip/__screenshots__/Tooltip.test.tsx/Tooltip-renders-bottom-tooltip-correctly-1-chromium-linux.png +0 -0
- package/src/components/Tooltip/__screenshots__/Tooltip.test.tsx/Tooltip-renders-left-tooltip-correctly-1-chromium-linux.png +0 -0
- package/src/components/Tooltip/__screenshots__/Tooltip.test.tsx/Tooltip-renders-right-tooltip-correctly-1-chromium-linux.png +0 -0
- package/src/components/Tooltip/__screenshots__/Tooltip.test.tsx/Tooltip-renders-tooltip-without-arrow-1-chromium-linux.png +0 -0
- package/src/components/Tooltip/__screenshots__/Tooltip.test.tsx/Tooltip-renders-top-tooltip-correctly-1-chromium-linux.png +0 -0
- package/src/components/Tooltip/__screenshots__/Tooltip.test.tsx/Tooltip-renders-with-tooltip-content-1.png +0 -0
- package/src/components/Tooltip/__screenshots__/Tooltip.test.tsx/Tooltip-shows-tooltip-on-hover-1.png +0 -0
- package/src/components/Tooltip/styles.css.ts +94 -0
- package/src/components/VisuallyHidden/VisuallyHidden.stories.tsx +42 -0
- package/src/components/VisuallyHidden/VisuallyHidden.test.tsx +20 -0
- package/src/components/VisuallyHidden/VisuallyHidden.tsx +26 -0
- package/src/components/VisuallyHidden/styles.css.ts +14 -0
- package/src/index.ts +1 -0
- package/src/styles/layers.css.ts +3 -0
- package/src/styles/reset.css.ts +79 -0
- package/src/styles/sprinkles.css.ts +177 -0
- package/src/styles/theme.css.ts +55 -0
- package/src/styles/utils.ts +9 -0
- package/dist/components/Accordion/Accordion.d.ts +0 -16
- package/dist/components/Accordion/Accordion.js +0 -108
- package/dist/components/Accordion/index.js +0 -2
- package/dist/components/Accordion/styles.css.d.ts +0 -7
- package/dist/components/Accordion/styles.css.js +0 -14
- package/dist/components/Alert/Alert.d.ts +0 -9
- package/dist/components/Alert/Alert.js +0 -28
- package/dist/components/Alert/index.js +0 -2
- package/dist/components/Alert/styles.css.d.ts +0 -4
- package/dist/components/Alert/styles.css.js +0 -13
- package/dist/components/AspectRatio/AspectRatio.d.ts +0 -9
- package/dist/components/AspectRatio/AspectRatio.js +0 -27
- package/dist/components/AspectRatio/index.js +0 -2
- package/dist/components/Avatar/Avatar.d.ts +0 -11
- package/dist/components/Avatar/Avatar.js +0 -27
- package/dist/components/Avatar/index.js +0 -2
- package/dist/components/Avatar/styles.css.d.ts +0 -4
- package/dist/components/Avatar/styles.css.js +0 -19
- package/dist/components/Badge/Badge.d.ts +0 -11
- package/dist/components/Badge/Badge.js +0 -13
- package/dist/components/Badge/index.js +0 -2
- package/dist/components/Badge/styles.css.d.ts +0 -5
- package/dist/components/Badge/styles.css.js +0 -23
- package/dist/components/Box/Box.d.ts +0 -11
- package/dist/components/Box/Box.js +0 -53
- package/dist/components/Box/index.js +0 -2
- package/dist/components/Box/reset.css.d.ts +0 -1
- package/dist/components/Box/reset.css.js +0 -3
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +0 -13
- package/dist/components/Breadcrumb/Breadcrumb.js +0 -66
- package/dist/components/Breadcrumb/index.js +0 -2
- package/dist/components/Breadcrumb/styles.css.d.ts +0 -6
- package/dist/components/Breadcrumb/styles.css.js +0 -10
- package/dist/components/Button/Button.d.ts +0 -9
- package/dist/components/Button/Button.js +0 -15
- package/dist/components/Button/index.js +0 -2
- package/dist/components/Button/styles.css.d.ts +0 -2
- package/dist/components/Button/styles.css.js +0 -9
- package/dist/components/Card/Card.d.ts +0 -8
- package/dist/components/Card/Card.js +0 -15
- package/dist/components/Card/index.js +0 -2
- package/dist/components/Card/styles.css.d.ts +0 -2
- package/dist/components/Card/styles.css.js +0 -10
- package/dist/components/Checkbox/Checkbox.d.ts +0 -6
- package/dist/components/Checkbox/Checkbox.js +0 -50
- package/dist/components/Checkbox/index.js +0 -2
- package/dist/components/Checkbox/styles.css.d.ts +0 -3
- package/dist/components/Checkbox/styles.css.js +0 -7
- package/dist/components/Collapse/Collapse.d.ts +0 -12
- package/dist/components/Collapse/Collapse.js +0 -58
- package/dist/components/Collapse/index.js +0 -2
- package/dist/components/Collapse/styles.css.d.ts +0 -3
- package/dist/components/Collapse/styles.css.js +0 -8
- package/dist/components/Combobox/Combobox.d.ts +0 -23
- package/dist/components/Combobox/Combobox.js +0 -171
- package/dist/components/Combobox/index.js +0 -2
- package/dist/components/Combobox/styles.css.d.ts +0 -13
- package/dist/components/Combobox/styles.css.js +0 -20
- package/dist/components/Container/Container.d.ts +0 -11
- package/dist/components/Container/Container.js +0 -31
- package/dist/components/Container/index.js +0 -2
- package/dist/components/Divider/Divider.d.ts +0 -9
- package/dist/components/Divider/Divider.js +0 -14
- package/dist/components/Divider/index.js +0 -2
- package/dist/components/Divider/styles.css.d.ts +0 -4
- package/dist/components/Divider/styles.css.js +0 -19
- package/dist/components/Drawer/Drawer.d.ts +0 -16
- package/dist/components/Drawer/Drawer.js +0 -113
- package/dist/components/Drawer/index.js +0 -2
- package/dist/components/Drawer/styles.css.d.ts +0 -8
- package/dist/components/Drawer/styles.css.js +0 -17
- package/dist/components/DropdownMenu/DropdownMenu.d.ts +0 -23
- package/dist/components/DropdownMenu/DropdownMenu.js +0 -98
- package/dist/components/DropdownMenu/index.js +0 -2
- package/dist/components/DropdownMenu/styles.css.d.ts +0 -9
- package/dist/components/DropdownMenu/styles.css.js +0 -22
- package/dist/components/EmptyState/EmptyState.d.ts +0 -10
- package/dist/components/EmptyState/EmptyState.js +0 -32
- package/dist/components/EmptyState/index.js +0 -2
- package/dist/components/EmptyState/styles.css.d.ts +0 -5
- package/dist/components/EmptyState/styles.css.js +0 -9
- package/dist/components/FileUpload/FileUpload.d.ts +0 -27
- package/dist/components/FileUpload/FileUpload.js +0 -214
- package/dist/components/FileUpload/index.js +0 -2
- package/dist/components/FileUpload/styles.css.d.ts +0 -19
- package/dist/components/FileUpload/styles.css.js +0 -32
- package/dist/components/Form/Form.d.ts +0 -7
- package/dist/components/Form/Form.js +0 -15
- package/dist/components/Form/FormInput.d.ts +0 -5
- package/dist/components/Form/FormInput.js +0 -15
- package/dist/components/Form/index.js +0 -3
- package/dist/components/Form/styles.css.d.ts +0 -2
- package/dist/components/Form/styles.css.js +0 -4
- package/dist/components/Grid/Grid.d.ts +0 -13
- package/dist/components/Grid/Grid.js +0 -30
- package/dist/components/Grid/index.js +0 -2
- package/dist/components/Icon/Icon.d.ts +0 -12
- package/dist/components/Icon/Icon.js +0 -29
- package/dist/components/Icon/index.js +0 -2
- package/dist/components/Icon/styles.css.d.ts +0 -1
- package/dist/components/Icon/styles.css.js +0 -3
- package/dist/components/Input/Input.d.ts +0 -7
- package/dist/components/Input/Input.js +0 -38
- package/dist/components/Input/index.js +0 -2
- package/dist/components/Input/styles.css.d.ts +0 -2
- package/dist/components/Input/styles.css.js +0 -4
- package/dist/components/Kbd/Kbd.d.ts +0 -7
- package/dist/components/Kbd/Kbd.js +0 -10
- package/dist/components/Kbd/index.js +0 -2
- package/dist/components/Kbd/styles.css.d.ts +0 -1
- package/dist/components/Kbd/styles.css.js +0 -5
- package/dist/components/List/List.d.ts +0 -5
- package/dist/components/List/List.js +0 -11
- package/dist/components/List/ListItem.d.ts +0 -5
- package/dist/components/List/ListItem.js +0 -11
- package/dist/components/List/index.js +0 -3
- package/dist/components/List/styles.css.d.ts +0 -2
- package/dist/components/List/styles.css.js +0 -6
- package/dist/components/Modal/Modal.d.ts +0 -13
- package/dist/components/Modal/Modal.js +0 -71
- package/dist/components/Modal/index.js +0 -2
- package/dist/components/Modal/styles.css.d.ts +0 -7
- package/dist/components/Modal/styles.css.js +0 -16
- package/dist/components/Navbar/Navbar.d.ts +0 -6
- package/dist/components/Navbar/Navbar.js +0 -16
- package/dist/components/Navbar/NavbarItem.d.ts +0 -6
- package/dist/components/Navbar/NavbarItem.js +0 -12
- package/dist/components/Navbar/index.js +0 -3
- package/dist/components/Navbar/styles.css.d.ts +0 -2
- package/dist/components/Navbar/styles.css.js +0 -4
- package/dist/components/NumberInput/NumberInput.d.ts +0 -20
- package/dist/components/NumberInput/NumberInput.js +0 -108
- package/dist/components/NumberInput/index.js +0 -2
- package/dist/components/NumberInput/styles.css.d.ts +0 -10
- package/dist/components/NumberInput/styles.css.js +0 -17
- package/dist/components/Pagination/Pagination.d.ts +0 -11
- package/dist/components/Pagination/Pagination.js +0 -70
- package/dist/components/Pagination/index.js +0 -2
- package/dist/components/Pagination/styles.css.d.ts +0 -4
- package/dist/components/Pagination/styles.css.js +0 -11
- package/dist/components/Popover/Popover.d.ts +0 -18
- package/dist/components/Popover/Popover.js +0 -105
- package/dist/components/Popover/index.js +0 -2
- package/dist/components/Popover/styles.css.d.ts +0 -11
- package/dist/components/Popover/styles.css.js +0 -33
- package/dist/components/Progress/Progress.d.ts +0 -11
- package/dist/components/Progress/Progress.js +0 -55
- package/dist/components/Progress/index.js +0 -2
- package/dist/components/Progress/styles.css.d.ts +0 -4
- package/dist/components/Progress/styles.css.js +0 -18
- package/dist/components/Radio/Radio.d.ts +0 -16
- package/dist/components/Radio/Radio.js +0 -60
- package/dist/components/Radio/index.js +0 -2
- package/dist/components/Radio/styles.css.d.ts +0 -5
- package/dist/components/Radio/styles.css.js +0 -9
- package/dist/components/ScrollArea/ScrollArea.d.ts +0 -11
- package/dist/components/ScrollArea/ScrollArea.js +0 -22
- package/dist/components/ScrollArea/index.js +0 -2
- package/dist/components/ScrollArea/styles.css.d.ts +0 -3
- package/dist/components/ScrollArea/styles.css.js +0 -11
- package/dist/components/Select/Select.d.ts +0 -13
- package/dist/components/Select/Select.js +0 -36
- package/dist/components/Select/index.js +0 -2
- package/dist/components/Select/styles.css.d.ts +0 -4
- package/dist/components/Select/styles.css.js +0 -11
- package/dist/components/Separator/Separator.d.ts +0 -9
- package/dist/components/Separator/Separator.js +0 -13
- package/dist/components/Separator/index.js +0 -2
- package/dist/components/Separator/styles.css.d.ts +0 -4
- package/dist/components/Separator/styles.css.js +0 -15
- package/dist/components/Skeleton/Skeleton.d.ts +0 -14
- package/dist/components/Skeleton/Skeleton.js +0 -28
- package/dist/components/Skeleton/index.js +0 -2
- package/dist/components/Skeleton/styles.css.d.ts +0 -4
- package/dist/components/Skeleton/styles.css.js +0 -20
- package/dist/components/Spinner/Spinner.d.ts +0 -10
- package/dist/components/Spinner/Spinner.js +0 -14
- package/dist/components/Spinner/index.js +0 -2
- package/dist/components/Spinner/styles.css.d.ts +0 -4
- package/dist/components/Spinner/styles.css.js +0 -19
- package/dist/components/Stack/Stack.d.ts +0 -16
- package/dist/components/Stack/Stack.js +0 -39
- package/dist/components/Stack/index.js +0 -2
- package/dist/components/Stepper/Stepper.d.ts +0 -18
- package/dist/components/Stepper/Stepper.js +0 -70
- package/dist/components/Stepper/index.js +0 -2
- package/dist/components/Stepper/styles.css.d.ts +0 -14
- package/dist/components/Stepper/styles.css.js +0 -22
- package/dist/components/Table/Table.d.ts +0 -42
- package/dist/components/Table/Table.js +0 -65
- package/dist/components/Table/index.js +0 -2
- package/dist/components/Table/styles.css.d.ts +0 -8
- package/dist/components/Table/styles.css.js +0 -15
- package/dist/components/Tabs/Tabs.d.ts +0 -29
- package/dist/components/Tabs/Tabs.js +0 -71
- package/dist/components/Tabs/index.js +0 -2
- package/dist/components/Tabs/styles.css.d.ts +0 -6
- package/dist/components/Tabs/styles.css.js +0 -14
- package/dist/components/Tag/Tag.d.ts +0 -16
- package/dist/components/Tag/Tag.js +0 -40
- package/dist/components/Tag/index.js +0 -2
- package/dist/components/Tag/styles.css.d.ts +0 -3
- package/dist/components/Tag/styles.css.js +0 -14
- package/dist/components/Text/Header.d.ts +0 -8
- package/dist/components/Text/Header.js +0 -12
- package/dist/components/Text/P.d.ts +0 -7
- package/dist/components/Text/P.js +0 -12
- package/dist/components/Text/index.js +0 -3
- package/dist/components/Text/styles.css.d.ts +0 -2
- package/dist/components/Text/styles.css.js +0 -6
- package/dist/components/TextArea/TextArea.d.ts +0 -7
- package/dist/components/TextArea/TextArea.js +0 -38
- package/dist/components/TextArea/index.js +0 -2
- package/dist/components/TextArea/styles.css.d.ts +0 -2
- package/dist/components/TextArea/styles.css.js +0 -4
- package/dist/components/Toast/Toast.d.ts +0 -34
- package/dist/components/Toast/Toast.js +0 -236
- package/dist/components/Toast/index.d.ts +0 -1
- package/dist/components/Toast/index.js +0 -2
- package/dist/components/Toast/styles.css.d.ts +0 -21
- package/dist/components/Toast/styles.css.js +0 -32
- package/dist/components/Toggle/Toggle.d.ts +0 -10
- package/dist/components/Toggle/Toggle.js +0 -62
- package/dist/components/Toggle/index.js +0 -2
- package/dist/components/Toggle/styles.css.d.ts +0 -12
- package/dist/components/Toggle/styles.css.js +0 -24
- package/dist/components/Tooltip/Tooltip.d.ts +0 -10
- package/dist/components/Tooltip/Tooltip.js +0 -41
- package/dist/components/Tooltip/index.js +0 -2
- package/dist/components/Tooltip/styles.css.d.ts +0 -8
- package/dist/components/Tooltip/styles.css.js +0 -17
- package/dist/components/VisuallyHidden/VisuallyHidden.d.ts +0 -8
- package/dist/components/VisuallyHidden/VisuallyHidden.js +0 -8
- package/dist/components/VisuallyHidden/index.js +0 -2
- package/dist/components/VisuallyHidden/styles.css.d.ts +0 -1
- package/dist/components/VisuallyHidden/styles.css.js +0 -3
- package/dist/components/index.js +0 -48
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/layers.css.js +0 -4
- package/dist/reset.css.js +0 -1
- package/dist/styles/layers.css.d.ts +0 -3
- package/dist/styles/layers.css.js +0 -4
- package/dist/styles/reset.css.js +0 -1
- package/dist/styles/sprinkles.css.d.ts +0 -241
- package/dist/styles/sprinkles.css.js +0 -2312
- package/dist/styles/theme.css.d.ts +0 -38
- package/dist/styles/theme.css.js +0 -41
- package/dist/styles/utils.d.ts +0 -2
- package/dist/styles/utils.js +0 -8
- package/dist/theme.css.js +0 -41
- /package/{dist/components/Accordion/index.d.ts → src/components/Accordion/index.ts} +0 -0
- /package/{dist/components/Alert/index.d.ts → src/components/Alert/index.ts} +0 -0
- /package/{dist/components/AspectRatio/index.d.ts → src/components/AspectRatio/index.ts} +0 -0
- /package/{dist/components/Avatar/index.d.ts → src/components/Avatar/index.ts} +0 -0
- /package/{dist/components/Badge/index.d.ts → src/components/Badge/index.ts} +0 -0
- /package/{dist/components/Box/index.d.ts → src/components/Box/index.ts} +0 -0
- /package/{dist/components/Breadcrumb/index.d.ts → src/components/Breadcrumb/index.ts} +0 -0
- /package/{dist/components/Button/index.d.ts → src/components/Button/index.ts} +0 -0
- /package/{dist/components/Card/index.d.ts → src/components/Card/index.ts} +0 -0
- /package/{dist/components/Checkbox/index.d.ts → src/components/Checkbox/index.ts} +0 -0
- /package/{dist/components/Collapse/index.d.ts → src/components/Collapse/index.ts} +0 -0
- /package/{dist/components/Combobox/index.d.ts → src/components/Combobox/index.ts} +0 -0
- /package/{dist/components/Container/index.d.ts → src/components/Container/index.ts} +0 -0
- /package/{dist/components/Divider/index.d.ts → src/components/Divider/index.ts} +0 -0
- /package/{dist/components/Drawer/index.d.ts → src/components/Drawer/index.ts} +0 -0
- /package/{dist/components/DropdownMenu/index.d.ts → src/components/DropdownMenu/index.ts} +0 -0
- /package/{dist/components/EmptyState/index.d.ts → src/components/EmptyState/index.ts} +0 -0
- /package/{dist/components/FileUpload/index.d.ts → src/components/FileUpload/index.ts} +0 -0
- /package/{dist/components/Form/index.d.ts → src/components/Form/index.ts} +0 -0
- /package/{dist/components/Grid/index.d.ts → src/components/Grid/index.ts} +0 -0
- /package/{dist/components/Icon/index.d.ts → src/components/Icon/index.ts} +0 -0
- /package/{dist/components/Input/index.d.ts → src/components/Input/index.ts} +0 -0
- /package/{dist/components/Kbd/index.d.ts → src/components/Kbd/index.ts} +0 -0
- /package/{dist/components/List/index.d.ts → src/components/List/index.ts} +0 -0
- /package/{dist/components/Modal/index.d.ts → src/components/Modal/index.ts} +0 -0
- /package/{dist/components/Navbar/index.d.ts → src/components/Navbar/index.ts} +0 -0
- /package/{dist/components/NumberInput/index.d.ts → src/components/NumberInput/index.ts} +0 -0
- /package/{dist/components/Pagination/index.d.ts → src/components/Pagination/index.ts} +0 -0
- /package/{dist/components/Popover/index.d.ts → src/components/Popover/index.ts} +0 -0
- /package/{dist/components/Progress/index.d.ts → src/components/Progress/index.ts} +0 -0
- /package/{dist/components/Radio/index.d.ts → src/components/Radio/index.ts} +0 -0
- /package/{dist/components/ScrollArea/index.d.ts → src/components/ScrollArea/index.ts} +0 -0
- /package/{dist/components/Select/index.d.ts → src/components/Select/index.ts} +0 -0
- /package/{dist/components/Separator/index.d.ts → src/components/Separator/index.ts} +0 -0
- /package/{dist/components/Skeleton/index.d.ts → src/components/Skeleton/index.ts} +0 -0
- /package/{dist/components/Spinner/index.d.ts → src/components/Spinner/index.ts} +0 -0
- /package/{dist/components/Stack/index.d.ts → src/components/Stack/index.ts} +0 -0
- /package/{dist/components/Stepper/index.d.ts → src/components/Stepper/index.ts} +0 -0
- /package/{dist/components/Table/index.d.ts → src/components/Table/index.ts} +0 -0
- /package/{dist/components/Tabs/index.d.ts → src/components/Tabs/index.ts} +0 -0
- /package/{dist/components/Tag/index.d.ts → src/components/Tag/index.ts} +0 -0
- /package/{dist/components/Text/index.d.ts → src/components/Text/index.ts} +0 -0
- /package/{dist/components/TextArea/index.d.ts → src/components/TextArea/index.ts} +0 -0
- /package/{dist/components/Toggle/index.d.ts → src/components/Toggle/index.ts} +0 -0
- /package/{dist/components/Tooltip/index.d.ts → src/components/Tooltip/index.ts} +0 -0
- /package/{dist/components/VisuallyHidden/index.d.ts → src/components/VisuallyHidden/index.ts} +0 -0
- /package/{dist/components/index.d.ts → src/components/index.ts} +0 -0
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { describe, expect, it } from 'vitest';
|
|
2
|
+
import { render } from 'vitest-browser-react';
|
|
3
|
+
import Stack from './Stack';
|
|
4
|
+
import React from 'react';
|
|
5
|
+
|
|
6
|
+
describe('Stack', () => {
|
|
7
|
+
it('renders vertical stack correctly', async () => {
|
|
8
|
+
const { container } = await render(
|
|
9
|
+
<Stack gap="medium">
|
|
10
|
+
<div>Item 1</div>
|
|
11
|
+
<div>Item 2</div>
|
|
12
|
+
<div>Item 3</div>
|
|
13
|
+
</Stack>
|
|
14
|
+
);
|
|
15
|
+
expect(container).toMatchScreenshot();
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
it('renders horizontal stack correctly', async () => {
|
|
19
|
+
const { container } = await render(
|
|
20
|
+
<Stack direction="row" gap="small">
|
|
21
|
+
<div>Item 1</div>
|
|
22
|
+
<div>Item 2</div>
|
|
23
|
+
</Stack>
|
|
24
|
+
);
|
|
25
|
+
expect(container).toMatchScreenshot();
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
it('renders with align and justify', async () => {
|
|
29
|
+
const { container } = await render(
|
|
30
|
+
<Stack direction="row" align="center" justify="between" gap="medium">
|
|
31
|
+
<div>Left</div>
|
|
32
|
+
<div>Right</div>
|
|
33
|
+
</Stack>
|
|
34
|
+
);
|
|
35
|
+
expect(container).toMatchScreenshot();
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
it('renders wrapped stack', async () => {
|
|
39
|
+
const { container } = await render(
|
|
40
|
+
<Stack direction="row" gap="small" wrap>
|
|
41
|
+
<div style={{ minWidth: '200px' }}>Item 1</div>
|
|
42
|
+
<div style={{ minWidth: '200px' }}>Item 2</div>
|
|
43
|
+
<div style={{ minWidth: '200px' }}>Item 3</div>
|
|
44
|
+
</Stack>
|
|
45
|
+
);
|
|
46
|
+
expect(container).toMatchScreenshot();
|
|
47
|
+
});
|
|
48
|
+
});
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import React, { forwardRef } from 'react';
|
|
2
|
+
import Box from '../Box';
|
|
3
|
+
|
|
4
|
+
export type StackDirection = 'row' | 'column';
|
|
5
|
+
export type StackAlign = 'start' | 'center' | 'end' | 'stretch';
|
|
6
|
+
export type StackJustify = 'start' | 'center' | 'end' | 'between' | 'around' | 'evenly';
|
|
7
|
+
|
|
8
|
+
export interface StackProps {
|
|
9
|
+
direction?: StackDirection;
|
|
10
|
+
align?: StackAlign;
|
|
11
|
+
justify?: StackJustify;
|
|
12
|
+
gap?: 'none' | 'small' | 'medium' | 'large';
|
|
13
|
+
wrap?: boolean;
|
|
14
|
+
children?: React.ReactNode;
|
|
15
|
+
className?: string;
|
|
16
|
+
style?: React.CSSProperties;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const alignMap: Record<StackAlign, string> = {
|
|
20
|
+
start: 'flex-start',
|
|
21
|
+
center: 'center',
|
|
22
|
+
end: 'flex-end',
|
|
23
|
+
stretch: 'stretch',
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
const justifyMap: Record<StackJustify, string> = {
|
|
27
|
+
start: 'flex-start',
|
|
28
|
+
center: 'center',
|
|
29
|
+
end: 'flex-end',
|
|
30
|
+
between: 'space-between',
|
|
31
|
+
around: 'space-around',
|
|
32
|
+
evenly: 'space-evenly',
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
const Stack = forwardRef<HTMLElement, StackProps>(
|
|
36
|
+
({ direction = 'column', align, justify, gap, wrap, children, className, style, ...rest }, ref) => {
|
|
37
|
+
const alignItems = align ? alignMap[align] : undefined;
|
|
38
|
+
const justifyContent = justify ? justifyMap[justify] : undefined;
|
|
39
|
+
|
|
40
|
+
return (
|
|
41
|
+
<Box
|
|
42
|
+
ref={ref}
|
|
43
|
+
display="flex"
|
|
44
|
+
flexDirection={direction}
|
|
45
|
+
alignItems={alignItems}
|
|
46
|
+
justifyContent={justifyContent}
|
|
47
|
+
gap={gap}
|
|
48
|
+
className={className}
|
|
49
|
+
style={{ flexWrap: wrap ? 'wrap' : undefined, ...style }}
|
|
50
|
+
{...rest}
|
|
51
|
+
>
|
|
52
|
+
{children}
|
|
53
|
+
</Box>
|
|
54
|
+
);
|
|
55
|
+
}
|
|
56
|
+
);
|
|
57
|
+
|
|
58
|
+
Stack.displayName = 'Stack';
|
|
59
|
+
|
|
60
|
+
export default Stack;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
import { fn } from 'storybook/test';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { Stepper } from '.';
|
|
5
|
+
|
|
6
|
+
const meta = {
|
|
7
|
+
title: 'Components/Stepper',
|
|
8
|
+
component: Stepper,
|
|
9
|
+
parameters: {
|
|
10
|
+
layout: 'centered',
|
|
11
|
+
},
|
|
12
|
+
tags: ['autodocs'],
|
|
13
|
+
} satisfies Meta<typeof Stepper>;
|
|
14
|
+
|
|
15
|
+
export default meta;
|
|
16
|
+
type Story = StoryObj<typeof meta>;
|
|
17
|
+
|
|
18
|
+
const steps = [
|
|
19
|
+
{ title: 'Account', description: 'Create your account' },
|
|
20
|
+
{ title: 'Personal', description: 'Add personal details' },
|
|
21
|
+
{ title: 'Review', description: 'Review your information' },
|
|
22
|
+
{ title: 'Complete', description: 'Finish registration' },
|
|
23
|
+
];
|
|
24
|
+
|
|
25
|
+
export const FirstStep: Story = {
|
|
26
|
+
args: {
|
|
27
|
+
steps,
|
|
28
|
+
currentStep: 0,
|
|
29
|
+
orientation: 'horizontal',
|
|
30
|
+
},
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export const MiddleStep: Story = {
|
|
34
|
+
args: {
|
|
35
|
+
steps,
|
|
36
|
+
currentStep: 2,
|
|
37
|
+
orientation: 'horizontal',
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export const AllCompleted: Story = {
|
|
42
|
+
args: {
|
|
43
|
+
steps,
|
|
44
|
+
currentStep: 4,
|
|
45
|
+
orientation: 'horizontal',
|
|
46
|
+
},
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
export const Vertical: Story = {
|
|
50
|
+
args: {
|
|
51
|
+
steps,
|
|
52
|
+
currentStep: 1,
|
|
53
|
+
orientation: 'vertical',
|
|
54
|
+
},
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
export const WithoutConnectors: Story = {
|
|
58
|
+
args: {
|
|
59
|
+
steps,
|
|
60
|
+
currentStep: 1,
|
|
61
|
+
orientation: 'horizontal',
|
|
62
|
+
showConnectors: false,
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
export const Clickable: Story = {
|
|
67
|
+
args: {
|
|
68
|
+
steps,
|
|
69
|
+
currentStep: 1,
|
|
70
|
+
orientation: 'horizontal',
|
|
71
|
+
clickable: true,
|
|
72
|
+
onStepClick: fn(),
|
|
73
|
+
},
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
export const CustomStatus: Story = {
|
|
77
|
+
args: {
|
|
78
|
+
steps: [
|
|
79
|
+
{ title: 'Step 1', description: 'Completed step', status: 'completed' },
|
|
80
|
+
{ title: 'Step 2', description: 'Current step', status: 'current' },
|
|
81
|
+
{ title: 'Step 3', description: 'Pending step', status: 'pending' },
|
|
82
|
+
],
|
|
83
|
+
orientation: 'horizontal',
|
|
84
|
+
},
|
|
85
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { describe, expect, it } from 'vitest';
|
|
2
|
+
import { render } from 'vitest-browser-react';
|
|
3
|
+
import Stepper from './Stepper';
|
|
4
|
+
import React from 'react';
|
|
5
|
+
|
|
6
|
+
describe('Stepper', () => {
|
|
7
|
+
const steps = [
|
|
8
|
+
{ title: 'Step 1', description: 'Description for step 1' },
|
|
9
|
+
{ title: 'Step 2', description: 'Description for step 2' },
|
|
10
|
+
{ title: 'Step 3', description: 'Description for step 3' },
|
|
11
|
+
];
|
|
12
|
+
|
|
13
|
+
it('renders horizontal stepper at first step', async () => {
|
|
14
|
+
const { container } = await render(
|
|
15
|
+
<Stepper steps={steps} currentStep={0} orientation="horizontal" />
|
|
16
|
+
);
|
|
17
|
+
expect(container).toMatchScreenshot();
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
it('renders horizontal stepper at middle step', async () => {
|
|
21
|
+
const { container } = await render(
|
|
22
|
+
<Stepper steps={steps} currentStep={1} orientation="horizontal" />
|
|
23
|
+
);
|
|
24
|
+
expect(container).toMatchScreenshot();
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
it('renders horizontal stepper with all completed', async () => {
|
|
28
|
+
const { container } = await render(
|
|
29
|
+
<Stepper steps={steps} currentStep={3} orientation="horizontal" />
|
|
30
|
+
);
|
|
31
|
+
expect(container).toMatchScreenshot();
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
it('renders vertical stepper', async () => {
|
|
35
|
+
const { container } = await render(
|
|
36
|
+
<Stepper steps={steps} currentStep={1} orientation="vertical" />
|
|
37
|
+
);
|
|
38
|
+
expect(container).toMatchScreenshot();
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
it('renders without connectors', async () => {
|
|
42
|
+
const { container } = await render(
|
|
43
|
+
<Stepper steps={steps} currentStep={1} showConnectors={false} />
|
|
44
|
+
);
|
|
45
|
+
expect(container).toMatchScreenshot();
|
|
46
|
+
});
|
|
47
|
+
});
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import clsx from 'clsx';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import {
|
|
4
|
+
stepperContainer,
|
|
5
|
+
stepperHorizontal,
|
|
6
|
+
stepperVertical,
|
|
7
|
+
step,
|
|
8
|
+
stepVertical,
|
|
9
|
+
stepIndicator,
|
|
10
|
+
stepIndicatorVariants,
|
|
11
|
+
stepContent,
|
|
12
|
+
stepContentVertical,
|
|
13
|
+
stepTitle,
|
|
14
|
+
stepDescription,
|
|
15
|
+
stepConnector,
|
|
16
|
+
stepConnectorCompleted,
|
|
17
|
+
stepConnectorVertical,
|
|
18
|
+
} from './styles.css';
|
|
19
|
+
import Box from '../Box';
|
|
20
|
+
|
|
21
|
+
export type StepperOrientation = 'horizontal' | 'vertical';
|
|
22
|
+
export type StepStatus = 'pending' | 'current' | 'completed';
|
|
23
|
+
|
|
24
|
+
export interface Step {
|
|
25
|
+
title: string;
|
|
26
|
+
description?: string;
|
|
27
|
+
status?: StepStatus;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export interface StepperProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
31
|
+
steps: Step[];
|
|
32
|
+
currentStep?: number;
|
|
33
|
+
orientation?: StepperOrientation;
|
|
34
|
+
showConnectors?: boolean;
|
|
35
|
+
onStepClick?: (stepIndex: number) => void;
|
|
36
|
+
clickable?: boolean;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
const Stepper = ({
|
|
40
|
+
steps,
|
|
41
|
+
currentStep = 0,
|
|
42
|
+
orientation = 'horizontal',
|
|
43
|
+
showConnectors = true,
|
|
44
|
+
onStepClick,
|
|
45
|
+
clickable = false,
|
|
46
|
+
className,
|
|
47
|
+
...props
|
|
48
|
+
}: StepperProps) => {
|
|
49
|
+
const getStepStatus = (index: number): StepStatus => {
|
|
50
|
+
if (index < currentStep) return 'completed';
|
|
51
|
+
if (index === currentStep) return 'current';
|
|
52
|
+
return 'pending';
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
const handleStepClick = (index: number) => {
|
|
56
|
+
if (clickable && onStepClick) {
|
|
57
|
+
onStepClick(index);
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
return (
|
|
62
|
+
<Box
|
|
63
|
+
className={clsx(
|
|
64
|
+
stepperContainer,
|
|
65
|
+
orientation === 'horizontal' ? stepperHorizontal : stepperVertical,
|
|
66
|
+
className,
|
|
67
|
+
)}
|
|
68
|
+
role="list"
|
|
69
|
+
aria-label="Step progress"
|
|
70
|
+
{...props}
|
|
71
|
+
>
|
|
72
|
+
{steps.map((stepItem, index) => {
|
|
73
|
+
const status = stepItem.status || getStepStatus(index);
|
|
74
|
+
const isLast = index === steps.length - 1;
|
|
75
|
+
const isCompleted = status === 'completed';
|
|
76
|
+
|
|
77
|
+
return (
|
|
78
|
+
<Box
|
|
79
|
+
key={index}
|
|
80
|
+
className={clsx(step, orientation === 'vertical' && stepVertical)}
|
|
81
|
+
role="listitem"
|
|
82
|
+
aria-current={status === 'current' ? 'step' : undefined}
|
|
83
|
+
>
|
|
84
|
+
{showConnectors && !isLast && orientation === 'horizontal' && (
|
|
85
|
+
<Box
|
|
86
|
+
className={clsx(stepConnector, isCompleted && stepConnectorCompleted)}
|
|
87
|
+
aria-hidden="true"
|
|
88
|
+
/>
|
|
89
|
+
)}
|
|
90
|
+
|
|
91
|
+
{showConnectors && !isLast && orientation === 'vertical' && (
|
|
92
|
+
<Box
|
|
93
|
+
className={stepConnectorVertical}
|
|
94
|
+
style={{ backgroundColor: isCompleted ? undefined : undefined }}
|
|
95
|
+
aria-hidden="true"
|
|
96
|
+
/>
|
|
97
|
+
)}
|
|
98
|
+
|
|
99
|
+
<Box
|
|
100
|
+
className={clsx(
|
|
101
|
+
stepIndicator,
|
|
102
|
+
stepIndicatorVariants[status],
|
|
103
|
+
)}
|
|
104
|
+
onClick={() => handleStepClick(index)}
|
|
105
|
+
style={{ cursor: clickable ? 'pointer' : 'default' }}
|
|
106
|
+
aria-label={`Step ${index + 1}: ${stepItem.title}`}
|
|
107
|
+
>
|
|
108
|
+
{status === 'completed' ? '✓' : index + 1}
|
|
109
|
+
</Box>
|
|
110
|
+
|
|
111
|
+
<Box
|
|
112
|
+
className={clsx(
|
|
113
|
+
stepContent,
|
|
114
|
+
orientation === 'vertical' && stepContentVertical,
|
|
115
|
+
)}
|
|
116
|
+
>
|
|
117
|
+
<Box as="h4" className={stepTitle}>
|
|
118
|
+
{stepItem.title}
|
|
119
|
+
</Box>
|
|
120
|
+
{stepItem.description && (
|
|
121
|
+
<Box as="p" className={stepDescription}>
|
|
122
|
+
{stepItem.description}
|
|
123
|
+
</Box>
|
|
124
|
+
)}
|
|
125
|
+
</Box>
|
|
126
|
+
</Box>
|
|
127
|
+
);
|
|
128
|
+
})}
|
|
129
|
+
</Box>
|
|
130
|
+
);
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
export default Stepper;
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { style, styleVariants } from '@vanilla-extract/css';
|
|
2
|
+
import { vars } from '../../styles/theme.css';
|
|
3
|
+
import { styleWithLayer } from '../../styles/utils';
|
|
4
|
+
|
|
5
|
+
export const stepperContainer = styleWithLayer({
|
|
6
|
+
display: 'flex',
|
|
7
|
+
alignItems: 'flex-start',
|
|
8
|
+
width: '100%',
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
export const stepperHorizontal = styleWithLayer({
|
|
12
|
+
flexDirection: 'row',
|
|
13
|
+
justifyContent: 'space-between',
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
export const stepperVertical = styleWithLayer({
|
|
17
|
+
flexDirection: 'column',
|
|
18
|
+
gap: '1rem',
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
export const step = styleWithLayer({
|
|
22
|
+
display: 'flex',
|
|
23
|
+
flexDirection: 'column',
|
|
24
|
+
alignItems: 'center',
|
|
25
|
+
position: 'relative',
|
|
26
|
+
flex: 1,
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
export const stepVertical = styleWithLayer({
|
|
30
|
+
flexDirection: 'row',
|
|
31
|
+
alignItems: 'flex-start',
|
|
32
|
+
gap: '1rem',
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
export const stepIndicator = styleWithLayer({
|
|
36
|
+
width: '2.5rem',
|
|
37
|
+
height: '2.5rem',
|
|
38
|
+
borderRadius: '50%',
|
|
39
|
+
display: 'flex',
|
|
40
|
+
alignItems: 'center',
|
|
41
|
+
justifyContent: 'center',
|
|
42
|
+
fontWeight: '600',
|
|
43
|
+
fontSize: '14px',
|
|
44
|
+
transition: 'all 0.3s ease',
|
|
45
|
+
zIndex: 1,
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
export const stepIndicatorVariants = styleVariants({
|
|
49
|
+
pending: {
|
|
50
|
+
backgroundColor: vars.colors.borderMuted,
|
|
51
|
+
color: vars.colors.textSecondary,
|
|
52
|
+
border: `2px solid ${vars.colors.borderMuted}`,
|
|
53
|
+
},
|
|
54
|
+
current: {
|
|
55
|
+
backgroundColor: vars.colors.buttonBackgroundPrimary,
|
|
56
|
+
color: vars.colors.buttonTextPrimary,
|
|
57
|
+
border: `2px solid ${vars.colors.buttonBackgroundPrimary}`,
|
|
58
|
+
boxShadow: `0 0 0 4px ${vars.colors.alertInfoBackground}`,
|
|
59
|
+
},
|
|
60
|
+
completed: {
|
|
61
|
+
backgroundColor: vars.colors.alertSuccessBorder,
|
|
62
|
+
color: vars.colors.buttonTextPrimary,
|
|
63
|
+
border: `2px solid ${vars.colors.alertSuccessBorder}`,
|
|
64
|
+
},
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
export const stepContent = styleWithLayer({
|
|
68
|
+
display: 'flex',
|
|
69
|
+
flexDirection: 'column',
|
|
70
|
+
alignItems: 'center',
|
|
71
|
+
marginTop: '0.5rem',
|
|
72
|
+
textAlign: 'center',
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
export const stepContentVertical = styleWithLayer({
|
|
76
|
+
alignItems: 'flex-start',
|
|
77
|
+
marginTop: 0,
|
|
78
|
+
textAlign: 'left',
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
export const stepTitle = styleWithLayer({
|
|
82
|
+
fontFamily: vars.fontFamily.heading,
|
|
83
|
+
fontSize: '14px',
|
|
84
|
+
fontWeight: '600',
|
|
85
|
+
color: vars.colors.textPrimary,
|
|
86
|
+
margin: 0,
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
export const stepDescription = styleWithLayer({
|
|
90
|
+
fontSize: '12px',
|
|
91
|
+
color: vars.colors.textSecondary,
|
|
92
|
+
marginTop: '0.25rem',
|
|
93
|
+
maxWidth: '200px',
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
export const stepConnector = styleWithLayer({
|
|
97
|
+
position: 'absolute',
|
|
98
|
+
top: '1.25rem',
|
|
99
|
+
left: 'calc(50% + 1.5rem)',
|
|
100
|
+
right: 'calc(-50% + 1.5rem)',
|
|
101
|
+
height: '2px',
|
|
102
|
+
backgroundColor: vars.colors.borderMuted,
|
|
103
|
+
zIndex: 0,
|
|
104
|
+
});
|
|
105
|
+
|
|
106
|
+
export const stepConnectorCompleted = styleWithLayer({
|
|
107
|
+
backgroundColor: vars.colors.alertSuccessBorder,
|
|
108
|
+
});
|
|
109
|
+
|
|
110
|
+
export const stepConnectorVertical = styleWithLayer({
|
|
111
|
+
position: 'absolute',
|
|
112
|
+
top: '2.5rem',
|
|
113
|
+
left: '1.25rem',
|
|
114
|
+
width: '2px',
|
|
115
|
+
height: 'calc(100% + 1rem)',
|
|
116
|
+
backgroundColor: vars.colors.borderMuted,
|
|
117
|
+
zIndex: 0,
|
|
118
|
+
});
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
|
|
3
|
+
import { Table } from '.';
|
|
4
|
+
import React from 'react';
|
|
5
|
+
|
|
6
|
+
const meta = {
|
|
7
|
+
title: 'Components/Table',
|
|
8
|
+
component: Table,
|
|
9
|
+
parameters: {
|
|
10
|
+
layout: 'centered',
|
|
11
|
+
},
|
|
12
|
+
tags: ['autodocs'],
|
|
13
|
+
decorators: [
|
|
14
|
+
(Story) => (
|
|
15
|
+
<div
|
|
16
|
+
style={{
|
|
17
|
+
width: '600px',
|
|
18
|
+
maxWidth: '100%',
|
|
19
|
+
}}
|
|
20
|
+
>
|
|
21
|
+
<Story />
|
|
22
|
+
</div>
|
|
23
|
+
),
|
|
24
|
+
],
|
|
25
|
+
} satisfies Meta<typeof Table>;
|
|
26
|
+
|
|
27
|
+
export default meta;
|
|
28
|
+
type Story = StoryObj<typeof meta>;
|
|
29
|
+
|
|
30
|
+
const sampleData = [
|
|
31
|
+
{ name: 'John Doe', email: 'john@example.com', role: 'Developer', status: 'Active' },
|
|
32
|
+
{ name: 'Jane Smith', email: 'jane@example.com', role: 'Designer', status: 'Active' },
|
|
33
|
+
{ name: 'Bob Johnson', email: 'bob@example.com', role: 'Manager', status: 'Inactive' },
|
|
34
|
+
{ name: 'Alice Brown', email: 'alice@example.com', role: 'Developer', status: 'Active' },
|
|
35
|
+
];
|
|
36
|
+
|
|
37
|
+
export const Default: Story = {
|
|
38
|
+
render: () => (
|
|
39
|
+
<Table>
|
|
40
|
+
<Table.Thead>
|
|
41
|
+
<Table.Tr>
|
|
42
|
+
<Table.Th>Name</Table.Th>
|
|
43
|
+
<Table.Th>Email</Table.Th>
|
|
44
|
+
<Table.Th>Role</Table.Th>
|
|
45
|
+
<Table.Th>Status</Table.Th>
|
|
46
|
+
</Table.Tr>
|
|
47
|
+
</Table.Thead>
|
|
48
|
+
<Table.Tbody>
|
|
49
|
+
{sampleData.map((row, i) => (
|
|
50
|
+
<Table.Tr key={i}>
|
|
51
|
+
<Table.Td>{row.name}</Table.Td>
|
|
52
|
+
<Table.Td>{row.email}</Table.Td>
|
|
53
|
+
<Table.Td>{row.role}</Table.Td>
|
|
54
|
+
<Table.Td>{row.status}</Table.Td>
|
|
55
|
+
</Table.Tr>
|
|
56
|
+
))}
|
|
57
|
+
</Table.Tbody>
|
|
58
|
+
</Table>
|
|
59
|
+
),
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
export const Striped: Story = {
|
|
63
|
+
render: () => (
|
|
64
|
+
<Table striped>
|
|
65
|
+
<Table.Thead>
|
|
66
|
+
<Table.Tr>
|
|
67
|
+
<Table.Th>Name</Table.Th>
|
|
68
|
+
<Table.Th>Email</Table.Th>
|
|
69
|
+
<Table.Th>Role</Table.Th>
|
|
70
|
+
<Table.Th>Status</Table.Th>
|
|
71
|
+
</Table.Tr>
|
|
72
|
+
</Table.Thead>
|
|
73
|
+
<Table.Tbody>
|
|
74
|
+
{sampleData.map((row, i) => (
|
|
75
|
+
<Table.Tr key={i}>
|
|
76
|
+
<Table.Td>{row.name}</Table.Td>
|
|
77
|
+
<Table.Td>{row.email}</Table.Td>
|
|
78
|
+
<Table.Td>{row.role}</Table.Td>
|
|
79
|
+
<Table.Td>{row.status}</Table.Td>
|
|
80
|
+
</Table.Tr>
|
|
81
|
+
))}
|
|
82
|
+
</Table.Tbody>
|
|
83
|
+
</Table>
|
|
84
|
+
),
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
export const WithFooter: Story = {
|
|
88
|
+
render: () => (
|
|
89
|
+
<Table>
|
|
90
|
+
<Table.Thead>
|
|
91
|
+
<Table.Tr>
|
|
92
|
+
<Table.Th>Product</Table.Th>
|
|
93
|
+
<Table.Th>Quantity</Table.Th>
|
|
94
|
+
<Table.Th>Price</Table.Th>
|
|
95
|
+
<Table.Th>Total</Table.Th>
|
|
96
|
+
</Table.Tr>
|
|
97
|
+
</Table.Thead>
|
|
98
|
+
<Table.Tbody>
|
|
99
|
+
<Table.Tr>
|
|
100
|
+
<Table.Td>Laptop</Table.Td>
|
|
101
|
+
<Table.Td>2</Table.Td>
|
|
102
|
+
<Table.Td>$999.00</Table.Td>
|
|
103
|
+
<Table.Td>$1,998.00</Table.Td>
|
|
104
|
+
</Table.Tr>
|
|
105
|
+
<Table.Tr>
|
|
106
|
+
<Table.Td>Mouse</Table.Td>
|
|
107
|
+
<Table.Td>5</Table.Td>
|
|
108
|
+
<Table.Td>$25.00</Table.Td>
|
|
109
|
+
<Table.Td>$125.00</Table.Td>
|
|
110
|
+
</Table.Tr>
|
|
111
|
+
<Table.Tr>
|
|
112
|
+
<Table.Td>Keyboard</Table.Td>
|
|
113
|
+
<Table.Td>3</Table.Td>
|
|
114
|
+
<Table.Td>$75.00</Table.Td>
|
|
115
|
+
<Table.Td>$225.00</Table.Td>
|
|
116
|
+
</Table.Tr>
|
|
117
|
+
</Table.Tbody>
|
|
118
|
+
<Table.Tfoot>
|
|
119
|
+
<Table.Tr>
|
|
120
|
+
<Table.Td colSpan={3}>Grand Total</Table.Td>
|
|
121
|
+
<Table.Td>$2,348.00</Table.Td>
|
|
122
|
+
</Table.Tr>
|
|
123
|
+
</Table.Tfoot>
|
|
124
|
+
</Table>
|
|
125
|
+
),
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
export const EmptyState: Story = {
|
|
129
|
+
render: () => (
|
|
130
|
+
<Table>
|
|
131
|
+
<Table.Thead>
|
|
132
|
+
<Table.Tr>
|
|
133
|
+
<Table.Th>Name</Table.Th>
|
|
134
|
+
<Table.Th>Email</Table.Th>
|
|
135
|
+
<Table.Th>Role</Table.Th>
|
|
136
|
+
</Table.Tr>
|
|
137
|
+
</Table.Thead>
|
|
138
|
+
<Table.Tbody>
|
|
139
|
+
<Table.Tr>
|
|
140
|
+
<Table.Td colSpan={3} style={{ textAlign: 'center' }}>
|
|
141
|
+
No data available
|
|
142
|
+
</Table.Td>
|
|
143
|
+
</Table.Tr>
|
|
144
|
+
</Table.Tbody>
|
|
145
|
+
</Table>
|
|
146
|
+
),
|
|
147
|
+
};
|