@jordan-mace/chaser-design-system 1.2.1 → 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 -66
- 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 -55
- 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 -152
- 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 -78
- 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 -16
- 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 -51
- 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 -31
- 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 -26
- 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 -32
- 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 -37
- 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 -143
- 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 -42
- 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 -146
- 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 -94
- 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 -31
- 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 -146
- 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 -12
- 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 -10
- 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 -9
- 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 -17
- 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 -12
- 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 -93
- 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 -118
- 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 -45
- 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 -192
- 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 -72
- 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 -43
- 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 -26
- 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 -83
- 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 -29
- 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 -65
- 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 -60
- 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 -105
- 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 -50
- 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 -101
- 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 -94
- 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 -14
- 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 -11
- 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 -217
- 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 -119
- 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 -87
- 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 -13
- 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 -57
- package/dist/styles/layers.css.d.ts +0 -3
- package/dist/styles/layers.css.js +0 -4
- package/dist/styles/reset.css.js +0 -57
- package/dist/styles/sprinkles.css.d.ts +0 -241
- package/dist/styles/sprinkles.css.js +0 -220
- package/dist/styles/theme.css.d.ts +0 -38
- package/dist/styles/theme.css.js +0 -50
- package/dist/styles/utils.d.ts +0 -2
- package/dist/styles/utils.js +0 -8
- package/dist/theme.css.js +0 -50
- /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
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef } from "react";
|
|
3
|
-
import Box from "../Box/index.js";
|
|
4
|
-
const alignMap = {
|
|
5
|
-
start: 'flex-start',
|
|
6
|
-
center: 'center',
|
|
7
|
-
end: 'flex-end',
|
|
8
|
-
stretch: 'stretch'
|
|
9
|
-
};
|
|
10
|
-
const justifyMap = {
|
|
11
|
-
start: 'flex-start',
|
|
12
|
-
center: 'center',
|
|
13
|
-
end: 'flex-end',
|
|
14
|
-
between: 'space-between',
|
|
15
|
-
around: 'space-around',
|
|
16
|
-
evenly: 'space-evenly'
|
|
17
|
-
};
|
|
18
|
-
const Stack = /*#__PURE__*/ forwardRef(({ direction = 'column', align, justify, gap, wrap, children, className, style, ...rest }, ref)=>{
|
|
19
|
-
const alignItems = align ? alignMap[align] : void 0;
|
|
20
|
-
const justifyContent = justify ? justifyMap[justify] : void 0;
|
|
21
|
-
return /*#__PURE__*/ jsx(Box, {
|
|
22
|
-
ref: ref,
|
|
23
|
-
display: "flex",
|
|
24
|
-
flexDirection: direction,
|
|
25
|
-
alignItems: alignItems,
|
|
26
|
-
justifyContent: justifyContent,
|
|
27
|
-
gap: gap,
|
|
28
|
-
className: className,
|
|
29
|
-
style: {
|
|
30
|
-
flexWrap: wrap ? 'wrap' : void 0,
|
|
31
|
-
...style
|
|
32
|
-
},
|
|
33
|
-
...rest,
|
|
34
|
-
children: children
|
|
35
|
-
});
|
|
36
|
-
});
|
|
37
|
-
Stack.displayName = 'Stack';
|
|
38
|
-
const Stack_Stack = Stack;
|
|
39
|
-
export { Stack_Stack as default };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export type StepperOrientation = 'horizontal' | 'vertical';
|
|
3
|
-
export type StepStatus = 'pending' | 'current' | 'completed';
|
|
4
|
-
export interface Step {
|
|
5
|
-
title: string;
|
|
6
|
-
description?: string;
|
|
7
|
-
status?: StepStatus;
|
|
8
|
-
}
|
|
9
|
-
export interface StepperProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
10
|
-
steps: Step[];
|
|
11
|
-
currentStep?: number;
|
|
12
|
-
orientation?: StepperOrientation;
|
|
13
|
-
showConnectors?: boolean;
|
|
14
|
-
onStepClick?: (stepIndex: number) => void;
|
|
15
|
-
clickable?: boolean;
|
|
16
|
-
}
|
|
17
|
-
declare const Stepper: ({ steps, currentStep, orientation, showConnectors, onStepClick, clickable, className, ...props }: StepperProps) => React.JSX.Element;
|
|
18
|
-
export default Stepper;
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import clsx from "clsx";
|
|
3
|
-
import "react";
|
|
4
|
-
import { step, stepConnector, stepConnectorCompleted, stepConnectorVertical, stepContent, stepContentVertical, stepDescription, stepIndicator, stepIndicatorVariants, stepTitle, stepVertical, stepperContainer, stepperHorizontal, stepperVertical } from "./styles.css.js";
|
|
5
|
-
import Box from "../Box/index.js";
|
|
6
|
-
const Stepper = ({ steps, currentStep = 0, orientation = 'horizontal', showConnectors = true, onStepClick, clickable = false, className, ...props })=>{
|
|
7
|
-
const getStepStatus = (index)=>{
|
|
8
|
-
if (index < currentStep) return 'completed';
|
|
9
|
-
if (index === currentStep) return 'current';
|
|
10
|
-
return 'pending';
|
|
11
|
-
};
|
|
12
|
-
const handleStepClick = (index)=>{
|
|
13
|
-
if (clickable && onStepClick) onStepClick(index);
|
|
14
|
-
};
|
|
15
|
-
return /*#__PURE__*/ jsx(Box, {
|
|
16
|
-
className: clsx(stepperContainer, 'horizontal' === orientation ? stepperHorizontal : stepperVertical, className),
|
|
17
|
-
role: "list",
|
|
18
|
-
"aria-label": "Step progress",
|
|
19
|
-
...props,
|
|
20
|
-
children: steps.map((stepItem, index)=>{
|
|
21
|
-
const status = stepItem.status || getStepStatus(index);
|
|
22
|
-
const isLast = index === steps.length - 1;
|
|
23
|
-
const isCompleted = 'completed' === status;
|
|
24
|
-
return /*#__PURE__*/ jsxs(Box, {
|
|
25
|
-
className: clsx(step, 'vertical' === orientation && stepVertical),
|
|
26
|
-
role: "listitem",
|
|
27
|
-
"aria-current": 'current' === status ? 'step' : void 0,
|
|
28
|
-
children: [
|
|
29
|
-
showConnectors && !isLast && 'horizontal' === orientation && /*#__PURE__*/ jsx(Box, {
|
|
30
|
-
className: clsx(stepConnector, isCompleted && stepConnectorCompleted),
|
|
31
|
-
"aria-hidden": "true"
|
|
32
|
-
}),
|
|
33
|
-
showConnectors && !isLast && 'vertical' === orientation && /*#__PURE__*/ jsx(Box, {
|
|
34
|
-
className: stepConnectorVertical,
|
|
35
|
-
style: {
|
|
36
|
-
backgroundColor: isCompleted ? void 0 : void 0
|
|
37
|
-
},
|
|
38
|
-
"aria-hidden": "true"
|
|
39
|
-
}),
|
|
40
|
-
/*#__PURE__*/ jsx(Box, {
|
|
41
|
-
className: clsx(stepIndicator, stepIndicatorVariants[status]),
|
|
42
|
-
onClick: ()=>handleStepClick(index),
|
|
43
|
-
style: {
|
|
44
|
-
cursor: clickable ? 'pointer' : 'default'
|
|
45
|
-
},
|
|
46
|
-
"aria-label": `Step ${index + 1}: ${stepItem.title}`,
|
|
47
|
-
children: 'completed' === status ? '✓' : index + 1
|
|
48
|
-
}),
|
|
49
|
-
/*#__PURE__*/ jsxs(Box, {
|
|
50
|
-
className: clsx(stepContent, 'vertical' === orientation && stepContentVertical),
|
|
51
|
-
children: [
|
|
52
|
-
/*#__PURE__*/ jsx(Box, {
|
|
53
|
-
as: "h4",
|
|
54
|
-
className: stepTitle,
|
|
55
|
-
children: stepItem.title
|
|
56
|
-
}),
|
|
57
|
-
stepItem.description && /*#__PURE__*/ jsx(Box, {
|
|
58
|
-
as: "p",
|
|
59
|
-
className: stepDescription,
|
|
60
|
-
children: stepItem.description
|
|
61
|
-
})
|
|
62
|
-
]
|
|
63
|
-
})
|
|
64
|
-
]
|
|
65
|
-
}, index);
|
|
66
|
-
})
|
|
67
|
-
});
|
|
68
|
-
};
|
|
69
|
-
const Stepper_Stepper = Stepper;
|
|
70
|
-
export { Stepper_Stepper as default };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export declare const stepperContainer: string;
|
|
2
|
-
export declare const stepperHorizontal: string;
|
|
3
|
-
export declare const stepperVertical: string;
|
|
4
|
-
export declare const step: string;
|
|
5
|
-
export declare const stepVertical: string;
|
|
6
|
-
export declare const stepIndicator: string;
|
|
7
|
-
export declare const stepIndicatorVariants: Record<"current" | "pending" | "completed", string>;
|
|
8
|
-
export declare const stepContent: string;
|
|
9
|
-
export declare const stepContentVertical: string;
|
|
10
|
-
export declare const stepTitle: string;
|
|
11
|
-
export declare const stepDescription: string;
|
|
12
|
-
export declare const stepConnector: string;
|
|
13
|
-
export declare const stepConnectorCompleted: string;
|
|
14
|
-
export declare const stepConnectorVertical: string;
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { styleVariants } from "@vanilla-extract/css";
|
|
2
|
-
import { vars } from "../../styles/theme.css.js";
|
|
3
|
-
import { styleWithLayer } from "../../styles/utils.js";
|
|
4
|
-
const stepperContainer = styleWithLayer({
|
|
5
|
-
display: 'flex',
|
|
6
|
-
alignItems: 'flex-start',
|
|
7
|
-
width: '100%'
|
|
8
|
-
});
|
|
9
|
-
const stepperHorizontal = styleWithLayer({
|
|
10
|
-
flexDirection: 'row',
|
|
11
|
-
justifyContent: 'space-between'
|
|
12
|
-
});
|
|
13
|
-
const stepperVertical = styleWithLayer({
|
|
14
|
-
flexDirection: 'column',
|
|
15
|
-
gap: '1rem'
|
|
16
|
-
});
|
|
17
|
-
const step = styleWithLayer({
|
|
18
|
-
display: 'flex',
|
|
19
|
-
flexDirection: 'column',
|
|
20
|
-
alignItems: 'center',
|
|
21
|
-
position: 'relative',
|
|
22
|
-
flex: 1
|
|
23
|
-
});
|
|
24
|
-
const stepVertical = styleWithLayer({
|
|
25
|
-
flexDirection: 'row',
|
|
26
|
-
alignItems: 'flex-start',
|
|
27
|
-
gap: '1rem'
|
|
28
|
-
});
|
|
29
|
-
const stepIndicator = styleWithLayer({
|
|
30
|
-
width: '2.5rem',
|
|
31
|
-
height: '2.5rem',
|
|
32
|
-
borderRadius: '50%',
|
|
33
|
-
display: 'flex',
|
|
34
|
-
alignItems: 'center',
|
|
35
|
-
justifyContent: 'center',
|
|
36
|
-
fontWeight: '600',
|
|
37
|
-
fontSize: '14px',
|
|
38
|
-
transition: 'all 0.3s ease',
|
|
39
|
-
zIndex: 1
|
|
40
|
-
});
|
|
41
|
-
const stepIndicatorVariants = styleVariants({
|
|
42
|
-
pending: {
|
|
43
|
-
backgroundColor: vars.colors.borderMuted,
|
|
44
|
-
color: vars.colors.textSecondary,
|
|
45
|
-
border: `2px solid ${vars.colors.borderMuted}`
|
|
46
|
-
},
|
|
47
|
-
current: {
|
|
48
|
-
backgroundColor: vars.colors.buttonBackgroundPrimary,
|
|
49
|
-
color: vars.colors.buttonTextPrimary,
|
|
50
|
-
border: `2px solid ${vars.colors.buttonBackgroundPrimary}`,
|
|
51
|
-
boxShadow: `0 0 0 4px ${vars.colors.alertInfoBackground}`
|
|
52
|
-
},
|
|
53
|
-
completed: {
|
|
54
|
-
backgroundColor: vars.colors.alertSuccessBorder,
|
|
55
|
-
color: vars.colors.buttonTextPrimary,
|
|
56
|
-
border: `2px solid ${vars.colors.alertSuccessBorder}`
|
|
57
|
-
}
|
|
58
|
-
});
|
|
59
|
-
const stepContent = styleWithLayer({
|
|
60
|
-
display: 'flex',
|
|
61
|
-
flexDirection: 'column',
|
|
62
|
-
alignItems: 'center',
|
|
63
|
-
marginTop: '0.5rem',
|
|
64
|
-
textAlign: 'center'
|
|
65
|
-
});
|
|
66
|
-
const stepContentVertical = styleWithLayer({
|
|
67
|
-
alignItems: 'flex-start',
|
|
68
|
-
marginTop: 0,
|
|
69
|
-
textAlign: 'left'
|
|
70
|
-
});
|
|
71
|
-
const stepTitle = styleWithLayer({
|
|
72
|
-
fontFamily: vars.fontFamily.heading,
|
|
73
|
-
fontSize: '14px',
|
|
74
|
-
fontWeight: '600',
|
|
75
|
-
color: vars.colors.textPrimary,
|
|
76
|
-
margin: 0
|
|
77
|
-
});
|
|
78
|
-
const stepDescription = styleWithLayer({
|
|
79
|
-
fontSize: '12px',
|
|
80
|
-
color: vars.colors.textSecondary,
|
|
81
|
-
marginTop: '0.25rem',
|
|
82
|
-
maxWidth: '200px'
|
|
83
|
-
});
|
|
84
|
-
const stepConnector = styleWithLayer({
|
|
85
|
-
position: 'absolute',
|
|
86
|
-
top: '1.25rem',
|
|
87
|
-
left: 'calc(50% + 1.5rem)',
|
|
88
|
-
right: 'calc(-50% + 1.5rem)',
|
|
89
|
-
height: '2px',
|
|
90
|
-
backgroundColor: vars.colors.borderMuted,
|
|
91
|
-
zIndex: 0
|
|
92
|
-
});
|
|
93
|
-
const stepConnectorCompleted = styleWithLayer({
|
|
94
|
-
backgroundColor: vars.colors.alertSuccessBorder
|
|
95
|
-
});
|
|
96
|
-
const stepConnectorVertical = styleWithLayer({
|
|
97
|
-
position: 'absolute',
|
|
98
|
-
top: '2.5rem',
|
|
99
|
-
left: '1.25rem',
|
|
100
|
-
width: '2px',
|
|
101
|
-
height: 'calc(100% + 1rem)',
|
|
102
|
-
backgroundColor: vars.colors.borderMuted,
|
|
103
|
-
zIndex: 0
|
|
104
|
-
});
|
|
105
|
-
export { step, stepConnector, stepConnectorCompleted, stepConnectorVertical, stepContent, stepContentVertical, stepDescription, stepIndicator, stepIndicatorVariants, stepTitle, stepVertical, stepperContainer, stepperHorizontal, stepperVertical };
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
type TableProps = {
|
|
3
|
-
children: React.ReactNode;
|
|
4
|
-
className?: string;
|
|
5
|
-
striped?: boolean;
|
|
6
|
-
containerClassName?: string;
|
|
7
|
-
};
|
|
8
|
-
type TheadProps = {
|
|
9
|
-
children: React.ReactNode;
|
|
10
|
-
className?: string;
|
|
11
|
-
};
|
|
12
|
-
type TbodyProps = {
|
|
13
|
-
children: React.ReactNode;
|
|
14
|
-
className?: string;
|
|
15
|
-
};
|
|
16
|
-
type TfootProps = {
|
|
17
|
-
children: React.ReactNode;
|
|
18
|
-
className?: string;
|
|
19
|
-
};
|
|
20
|
-
type TrProps = {
|
|
21
|
-
children: React.ReactNode;
|
|
22
|
-
className?: string;
|
|
23
|
-
};
|
|
24
|
-
type ThProps = {
|
|
25
|
-
children?: React.ReactNode;
|
|
26
|
-
className?: string;
|
|
27
|
-
};
|
|
28
|
-
type TdProps = {
|
|
29
|
-
children?: React.ReactNode;
|
|
30
|
-
className?: string;
|
|
31
|
-
colSpan?: number;
|
|
32
|
-
rowSpan?: number;
|
|
33
|
-
};
|
|
34
|
-
declare const Table: (({ children, className, striped, containerClassName, }: TableProps) => React.JSX.Element) & {
|
|
35
|
-
Thead: ({ children, className }: TheadProps) => React.JSX.Element;
|
|
36
|
-
Tbody: ({ children, className }: TbodyProps) => React.JSX.Element;
|
|
37
|
-
Tfoot: ({ children, className }: TfootProps) => React.JSX.Element;
|
|
38
|
-
Tr: ({ children, className }: TrProps) => React.JSX.Element;
|
|
39
|
-
Th: ({ children, className }: ThProps) => React.JSX.Element;
|
|
40
|
-
Td: ({ children, className, colSpan, rowSpan }: TdProps) => React.JSX.Element;
|
|
41
|
-
};
|
|
42
|
-
export default Table;
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import clsx from "clsx";
|
|
3
|
-
import { createContext, useContext } from "react";
|
|
4
|
-
import { table, tableContainer, tbody, td, tfoot, th, thead, tr } from "./styles.css.js";
|
|
5
|
-
import Box from "../Box/index.js";
|
|
6
|
-
const TableContext = /*#__PURE__*/ createContext({});
|
|
7
|
-
const TableComponent = ({ children, className, striped = false, containerClassName })=>/*#__PURE__*/ jsx(TableContext.Provider, {
|
|
8
|
-
value: {
|
|
9
|
-
striped
|
|
10
|
-
},
|
|
11
|
-
children: /*#__PURE__*/ jsx(Box, {
|
|
12
|
-
className: clsx(tableContainer, containerClassName),
|
|
13
|
-
width: "100%",
|
|
14
|
-
children: /*#__PURE__*/ jsx(Box, {
|
|
15
|
-
as: "table",
|
|
16
|
-
className: clsx(table, className),
|
|
17
|
-
children: children
|
|
18
|
-
})
|
|
19
|
-
})
|
|
20
|
-
});
|
|
21
|
-
const Thead = ({ children, className })=>/*#__PURE__*/ jsx(Box, {
|
|
22
|
-
as: "thead",
|
|
23
|
-
className: clsx(thead, className),
|
|
24
|
-
children: children
|
|
25
|
-
});
|
|
26
|
-
const Tbody = ({ children, className })=>/*#__PURE__*/ jsx(Box, {
|
|
27
|
-
as: "tbody",
|
|
28
|
-
className: clsx(tbody, className),
|
|
29
|
-
children: children
|
|
30
|
-
});
|
|
31
|
-
const Tfoot = ({ children, className })=>/*#__PURE__*/ jsx(Box, {
|
|
32
|
-
as: "tfoot",
|
|
33
|
-
className: clsx(tfoot, className),
|
|
34
|
-
children: children
|
|
35
|
-
});
|
|
36
|
-
const Tr = ({ children, className })=>{
|
|
37
|
-
const { striped } = useContext(TableContext);
|
|
38
|
-
return /*#__PURE__*/ jsx(Box, {
|
|
39
|
-
as: "tr",
|
|
40
|
-
className: clsx(tr[striped ? 'striped' : 'default'], className),
|
|
41
|
-
children: children
|
|
42
|
-
});
|
|
43
|
-
};
|
|
44
|
-
const Th = ({ children, className })=>/*#__PURE__*/ jsx(Box, {
|
|
45
|
-
as: "th",
|
|
46
|
-
className: clsx(th, className),
|
|
47
|
-
children: children
|
|
48
|
-
});
|
|
49
|
-
const Td = ({ children, className, colSpan, rowSpan })=>/*#__PURE__*/ jsx(Box, {
|
|
50
|
-
as: "td",
|
|
51
|
-
className: clsx(td, className),
|
|
52
|
-
colSpan: colSpan,
|
|
53
|
-
rowSpan: rowSpan,
|
|
54
|
-
children: children
|
|
55
|
-
});
|
|
56
|
-
const Table = Object.assign(TableComponent, {
|
|
57
|
-
Thead,
|
|
58
|
-
Tbody,
|
|
59
|
-
Tfoot,
|
|
60
|
-
Tr,
|
|
61
|
-
Th,
|
|
62
|
-
Td
|
|
63
|
-
});
|
|
64
|
-
const Table_Table = Table;
|
|
65
|
-
export { Table_Table as default };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare const table: string;
|
|
2
|
-
export declare const thead: string;
|
|
3
|
-
export declare const tbody: string;
|
|
4
|
-
export declare const tfoot: string;
|
|
5
|
-
export declare const tr: Record<"default" | "striped", string>;
|
|
6
|
-
export declare const th: string;
|
|
7
|
-
export declare const td: string;
|
|
8
|
-
export declare const tableContainer: string;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { styleVariants } from "@vanilla-extract/css";
|
|
2
|
-
import { vars } from "../../styles/theme.css.js";
|
|
3
|
-
import { styleWithLayer } from "../../styles/utils.js";
|
|
4
|
-
const table = styleWithLayer({
|
|
5
|
-
width: '100%',
|
|
6
|
-
borderCollapse: 'collapse',
|
|
7
|
-
borderSpacing: 0,
|
|
8
|
-
fontFamily: vars.fontFamily.body
|
|
9
|
-
});
|
|
10
|
-
const thead = styleWithLayer({
|
|
11
|
-
backgroundColor: vars.colors.backgroundDefault,
|
|
12
|
-
borderBottom: `2px solid ${vars.colors.borderDefault}`
|
|
13
|
-
});
|
|
14
|
-
const tbody = styleWithLayer({
|
|
15
|
-
backgroundColor: 'transparent'
|
|
16
|
-
});
|
|
17
|
-
const tfoot = styleWithLayer({
|
|
18
|
-
backgroundColor: vars.colors.backgroundMuted,
|
|
19
|
-
borderTop: `2px solid ${vars.colors.borderDefault}`,
|
|
20
|
-
fontWeight: 'bold'
|
|
21
|
-
});
|
|
22
|
-
const tr = styleVariants({
|
|
23
|
-
default: {
|
|
24
|
-
borderBottom: `1px solid ${vars.colors.borderMuted}`,
|
|
25
|
-
':hover': {
|
|
26
|
-
backgroundColor: vars.colors.backgroundMuted
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
striped: {
|
|
30
|
-
borderBottom: `1px solid ${vars.colors.borderMuted}`
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
const th = styleWithLayer({
|
|
34
|
-
padding: '12px 16px',
|
|
35
|
-
textAlign: 'left',
|
|
36
|
-
fontWeight: '600',
|
|
37
|
-
color: vars.colors.textPrimary,
|
|
38
|
-
whiteSpace: 'nowrap'
|
|
39
|
-
});
|
|
40
|
-
const td = styleWithLayer({
|
|
41
|
-
padding: '12px 16px',
|
|
42
|
-
color: vars.colors.textPrimary,
|
|
43
|
-
borderBottom: `1px solid ${vars.colors.borderMuted}`
|
|
44
|
-
});
|
|
45
|
-
const tableContainer = styleWithLayer({
|
|
46
|
-
overflowX: 'auto',
|
|
47
|
-
border: `1px solid ${vars.colors.borderDefault}`,
|
|
48
|
-
borderRadius: '8px'
|
|
49
|
-
});
|
|
50
|
-
export { table, tableContainer, tbody, td, tfoot, th, thead, tr };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
type TabsProps = {
|
|
3
|
-
children: React.ReactNode;
|
|
4
|
-
defaultValue?: string;
|
|
5
|
-
orientation?: 'horizontal' | 'vertical';
|
|
6
|
-
className?: string;
|
|
7
|
-
onChange?: (value: string) => void;
|
|
8
|
-
};
|
|
9
|
-
type TabListProps = {
|
|
10
|
-
children: React.ReactNode;
|
|
11
|
-
className?: string;
|
|
12
|
-
};
|
|
13
|
-
type TabProps = {
|
|
14
|
-
value: string;
|
|
15
|
-
children: React.ReactNode;
|
|
16
|
-
disabled?: boolean;
|
|
17
|
-
className?: string;
|
|
18
|
-
};
|
|
19
|
-
type TabPanelProps = {
|
|
20
|
-
value: string;
|
|
21
|
-
children: React.ReactNode;
|
|
22
|
-
className?: string;
|
|
23
|
-
};
|
|
24
|
-
declare const TabsComponent: (({ children, defaultValue, orientation, className, onChange, }: TabsProps) => React.JSX.Element) & {
|
|
25
|
-
List: ({ children, className }: TabListProps) => React.JSX.Element;
|
|
26
|
-
Tab: ({ value, children, disabled, className }: TabProps) => React.JSX.Element;
|
|
27
|
-
Panel: ({ value, children, className }: TabPanelProps) => React.JSX.Element | null;
|
|
28
|
-
};
|
|
29
|
-
export default TabsComponent;
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import clsx from "clsx";
|
|
3
|
-
import { createContext, useContext, useState } from "react";
|
|
4
|
-
import { tabContent, tabItem, tabsContainer, tabsList, tabsListHorizontal, tabsListVertical } from "./styles.css.js";
|
|
5
|
-
import Box from "../Box/index.js";
|
|
6
|
-
const TabsContext = /*#__PURE__*/ createContext({
|
|
7
|
-
activeTab: '',
|
|
8
|
-
setActiveTab: ()=>{}
|
|
9
|
-
});
|
|
10
|
-
const Tabs = ({ children, defaultValue = '', orientation = 'horizontal', className, onChange })=>{
|
|
11
|
-
const [activeTab, setActiveTab] = useState(defaultValue);
|
|
12
|
-
const handleTabChange = (value)=>{
|
|
13
|
-
setActiveTab(value);
|
|
14
|
-
if (onChange) onChange(value);
|
|
15
|
-
};
|
|
16
|
-
return /*#__PURE__*/ jsx(TabsContext.Provider, {
|
|
17
|
-
value: {
|
|
18
|
-
activeTab,
|
|
19
|
-
setActiveTab: handleTabChange,
|
|
20
|
-
orientation
|
|
21
|
-
},
|
|
22
|
-
children: /*#__PURE__*/ jsx(Box, {
|
|
23
|
-
className: clsx(tabsContainer, className),
|
|
24
|
-
width: "100%",
|
|
25
|
-
children: children
|
|
26
|
-
})
|
|
27
|
-
});
|
|
28
|
-
};
|
|
29
|
-
const TabList = ({ children, className })=>{
|
|
30
|
-
const { orientation } = useContext(TabsContext);
|
|
31
|
-
return /*#__PURE__*/ jsx(Box, {
|
|
32
|
-
as: "div",
|
|
33
|
-
role: "tablist",
|
|
34
|
-
className: clsx(tabsList, 'vertical' === orientation ? tabsListVertical : tabsListHorizontal, className),
|
|
35
|
-
children: children
|
|
36
|
-
});
|
|
37
|
-
};
|
|
38
|
-
const Tab = ({ value, children, disabled = false, className })=>{
|
|
39
|
-
const { activeTab, setActiveTab, orientation } = useContext(TabsContext);
|
|
40
|
-
const isActive = activeTab === value;
|
|
41
|
-
const handleClick = ()=>{
|
|
42
|
-
if (!disabled) setActiveTab(value);
|
|
43
|
-
};
|
|
44
|
-
return /*#__PURE__*/ jsx(Box, {
|
|
45
|
-
as: "button",
|
|
46
|
-
role: "tab",
|
|
47
|
-
"aria-selected": isActive,
|
|
48
|
-
disabled: disabled,
|
|
49
|
-
onClick: handleClick,
|
|
50
|
-
className: clsx(tabItem['vertical' === orientation ? isActive ? 'verticalActive' : 'base' : isActive ? 'active' : 'base'], className),
|
|
51
|
-
children: children
|
|
52
|
-
});
|
|
53
|
-
};
|
|
54
|
-
const TabPanel = ({ value, children, className })=>{
|
|
55
|
-
const { activeTab } = useContext(TabsContext);
|
|
56
|
-
const isActive = activeTab === value;
|
|
57
|
-
if (!isActive) return null;
|
|
58
|
-
return /*#__PURE__*/ jsx(Box, {
|
|
59
|
-
as: "div",
|
|
60
|
-
role: "tabpanel",
|
|
61
|
-
className: clsx(tabContent, className),
|
|
62
|
-
children: children
|
|
63
|
-
});
|
|
64
|
-
};
|
|
65
|
-
const TabsComponent = Object.assign(Tabs, {
|
|
66
|
-
List: TabList,
|
|
67
|
-
Tab,
|
|
68
|
-
Panel: TabPanel
|
|
69
|
-
});
|
|
70
|
-
const Tabs_Tabs = TabsComponent;
|
|
71
|
-
export { Tabs_Tabs as default };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare const tabsContainer: string;
|
|
2
|
-
export declare const tabsList: string;
|
|
3
|
-
export declare const tabsListHorizontal: string;
|
|
4
|
-
export declare const tabsListVertical: string;
|
|
5
|
-
export declare const tabItem: Record<"active" | "base" | "verticalActive", string>;
|
|
6
|
-
export declare const tabContent: string;
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { styleVariants } from "@vanilla-extract/css";
|
|
2
|
-
import { vars } from "../../styles/theme.css.js";
|
|
3
|
-
import { styleWithLayer } from "../../styles/utils.js";
|
|
4
|
-
const tabsContainer = styleWithLayer({
|
|
5
|
-
width: '100%'
|
|
6
|
-
});
|
|
7
|
-
const tabsList = styleWithLayer({
|
|
8
|
-
display: 'flex',
|
|
9
|
-
gap: '4px',
|
|
10
|
-
borderBottom: `2px solid ${vars.colors.borderDefault}`,
|
|
11
|
-
fontFamily: vars.fontFamily.body
|
|
12
|
-
});
|
|
13
|
-
const tabsListHorizontal = styleWithLayer({
|
|
14
|
-
flexDirection: 'row',
|
|
15
|
-
overflowX: 'auto'
|
|
16
|
-
});
|
|
17
|
-
const tabsListVertical = styleWithLayer({
|
|
18
|
-
flexDirection: 'column',
|
|
19
|
-
borderBottom: 'none',
|
|
20
|
-
borderRight: `2px solid ${vars.colors.borderDefault}`
|
|
21
|
-
});
|
|
22
|
-
const tabItem = styleVariants({
|
|
23
|
-
base: {
|
|
24
|
-
padding: '0.75rem 1.5rem',
|
|
25
|
-
fontSize: '14px',
|
|
26
|
-
fontWeight: '500',
|
|
27
|
-
color: vars.colors.textSecondary,
|
|
28
|
-
cursor: 'pointer',
|
|
29
|
-
border: 'none',
|
|
30
|
-
backgroundColor: 'transparent',
|
|
31
|
-
whiteSpace: 'nowrap',
|
|
32
|
-
transition: 'all 0.2s ease',
|
|
33
|
-
':focus-visible': {
|
|
34
|
-
outline: `2px solid ${vars.colors.buttonBackgroundPrimary}`,
|
|
35
|
-
outlineOffset: '2px'
|
|
36
|
-
},
|
|
37
|
-
':hover:not(:disabled)': {
|
|
38
|
-
color: vars.colors.textPrimary,
|
|
39
|
-
backgroundColor: vars.colors.backgroundMuted
|
|
40
|
-
},
|
|
41
|
-
':disabled': {
|
|
42
|
-
cursor: 'not-allowed',
|
|
43
|
-
opacity: 0.5
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
active: {
|
|
47
|
-
padding: '0.75rem 1.5rem',
|
|
48
|
-
fontSize: '14px',
|
|
49
|
-
fontWeight: '500',
|
|
50
|
-
color: vars.colors.buttonBackgroundPrimary,
|
|
51
|
-
cursor: 'pointer',
|
|
52
|
-
border: 'none',
|
|
53
|
-
backgroundColor: 'transparent',
|
|
54
|
-
whiteSpace: 'nowrap',
|
|
55
|
-
transition: 'all 0.2s ease',
|
|
56
|
-
borderBottom: `2px solid ${vars.colors.buttonBackgroundPrimary}`,
|
|
57
|
-
marginBottom: '-2px',
|
|
58
|
-
':focus-visible': {
|
|
59
|
-
outline: `2px solid ${vars.colors.buttonBackgroundPrimary}`,
|
|
60
|
-
outlineOffset: '2px'
|
|
61
|
-
},
|
|
62
|
-
':hover:not(:disabled)': {
|
|
63
|
-
backgroundColor: vars.colors.backgroundMuted
|
|
64
|
-
},
|
|
65
|
-
':disabled': {
|
|
66
|
-
cursor: 'not-allowed',
|
|
67
|
-
opacity: 0.5
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
verticalActive: {
|
|
71
|
-
padding: '0.75rem 1.5rem',
|
|
72
|
-
fontSize: '14px',
|
|
73
|
-
fontWeight: '500',
|
|
74
|
-
color: vars.colors.buttonBackgroundPrimary,
|
|
75
|
-
cursor: 'pointer',
|
|
76
|
-
border: 'none',
|
|
77
|
-
backgroundColor: 'transparent',
|
|
78
|
-
whiteSpace: 'nowrap',
|
|
79
|
-
transition: 'all 0.2s ease',
|
|
80
|
-
borderRight: `2px solid ${vars.colors.buttonBackgroundPrimary}`,
|
|
81
|
-
marginRight: '-2px',
|
|
82
|
-
':focus-visible': {
|
|
83
|
-
outline: `2px solid ${vars.colors.buttonBackgroundPrimary}`,
|
|
84
|
-
outlineOffset: '2px'
|
|
85
|
-
},
|
|
86
|
-
':hover:not(:disabled)': {
|
|
87
|
-
backgroundColor: vars.colors.backgroundMuted
|
|
88
|
-
},
|
|
89
|
-
':disabled': {
|
|
90
|
-
cursor: 'not-allowed',
|
|
91
|
-
opacity: 0.5
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
});
|
|
95
|
-
const tabContent = styleWithLayer({
|
|
96
|
-
padding: '1.5rem 0',
|
|
97
|
-
fontFamily: vars.fontFamily.body,
|
|
98
|
-
fontSize: '14px',
|
|
99
|
-
color: vars.colors.textPrimary
|
|
100
|
-
});
|
|
101
|
-
export { tabContent, tabItem, tabsContainer, tabsList, tabsListHorizontal, tabsListVertical };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
type TagProps = {
|
|
3
|
-
children: React.ReactNode;
|
|
4
|
-
variant?: 'default' | 'primary' | 'success' | 'warning' | 'error';
|
|
5
|
-
onRemove?: () => void;
|
|
6
|
-
removable?: boolean;
|
|
7
|
-
className?: string;
|
|
8
|
-
};
|
|
9
|
-
type TagGroupProps = {
|
|
10
|
-
children: React.ReactNode;
|
|
11
|
-
className?: string;
|
|
12
|
-
};
|
|
13
|
-
declare const TagComponent: (({ children, variant, onRemove, removable, className, }: TagProps) => React.JSX.Element) & {
|
|
14
|
-
Group: ({ children, className }: TagGroupProps) => React.JSX.Element;
|
|
15
|
-
};
|
|
16
|
-
export default TagComponent;
|