@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,217 +0,0 @@
|
|
|
1
|
-
import { keyframes, style, styleVariants } from "@vanilla-extract/css";
|
|
2
|
-
import { vars } from "../../styles/theme.css.js";
|
|
3
|
-
import { styleWithLayer } from "../../styles/utils.js";
|
|
4
|
-
const slideInRight = keyframes({
|
|
5
|
-
'0%': {
|
|
6
|
-
transform: 'translateX(100%)',
|
|
7
|
-
opacity: '0'
|
|
8
|
-
},
|
|
9
|
-
'100%': {
|
|
10
|
-
transform: 'translateX(0)',
|
|
11
|
-
opacity: '1'
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
const slideInLeft = keyframes({
|
|
15
|
-
'0%': {
|
|
16
|
-
transform: 'translateX(-100%)',
|
|
17
|
-
opacity: '0'
|
|
18
|
-
},
|
|
19
|
-
'100%': {
|
|
20
|
-
transform: 'translateX(0)',
|
|
21
|
-
opacity: '1'
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
const slideInTop = keyframes({
|
|
25
|
-
'0%': {
|
|
26
|
-
transform: 'translateY(-100%)',
|
|
27
|
-
opacity: '0'
|
|
28
|
-
},
|
|
29
|
-
'100%': {
|
|
30
|
-
transform: 'translateY(0)',
|
|
31
|
-
opacity: '1'
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
const slideOutRight = keyframes({
|
|
35
|
-
'0%': {
|
|
36
|
-
transform: 'translateX(0)',
|
|
37
|
-
opacity: '1'
|
|
38
|
-
},
|
|
39
|
-
'100%': {
|
|
40
|
-
transform: 'translateX(100%)',
|
|
41
|
-
opacity: '0'
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
const slideOutLeft = keyframes({
|
|
45
|
-
'0%': {
|
|
46
|
-
transform: 'translateX(0)',
|
|
47
|
-
opacity: '1'
|
|
48
|
-
},
|
|
49
|
-
'100%': {
|
|
50
|
-
transform: 'translateX(-100%)',
|
|
51
|
-
opacity: '0'
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
const slideInBottom = keyframes({
|
|
55
|
-
'0%': {
|
|
56
|
-
transform: 'translateY(100%)',
|
|
57
|
-
opacity: '0'
|
|
58
|
-
},
|
|
59
|
-
'100%': {
|
|
60
|
-
transform: 'translateY(0)',
|
|
61
|
-
opacity: '1'
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
const slideOutBottom = keyframes({
|
|
65
|
-
'0%': {
|
|
66
|
-
transform: 'translateY(0)',
|
|
67
|
-
opacity: '1'
|
|
68
|
-
},
|
|
69
|
-
'100%': {
|
|
70
|
-
transform: 'translateY(100%)',
|
|
71
|
-
opacity: '0'
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
const fadeIn = keyframes({
|
|
75
|
-
'0%': {
|
|
76
|
-
opacity: '0'
|
|
77
|
-
},
|
|
78
|
-
'100%': {
|
|
79
|
-
opacity: '1'
|
|
80
|
-
}
|
|
81
|
-
});
|
|
82
|
-
const fadeOut = keyframes({
|
|
83
|
-
'0%': {
|
|
84
|
-
opacity: '1'
|
|
85
|
-
},
|
|
86
|
-
'100%': {
|
|
87
|
-
opacity: '0'
|
|
88
|
-
}
|
|
89
|
-
});
|
|
90
|
-
const fadeOutSuccess = keyframes({
|
|
91
|
-
'0%': {
|
|
92
|
-
opacity: '1'
|
|
93
|
-
},
|
|
94
|
-
'100%': {
|
|
95
|
-
opacity: '0'
|
|
96
|
-
}
|
|
97
|
-
});
|
|
98
|
-
const fadeOutError = keyframes({
|
|
99
|
-
'0%': {
|
|
100
|
-
opacity: '1'
|
|
101
|
-
},
|
|
102
|
-
'100%': {
|
|
103
|
-
opacity: '0'
|
|
104
|
-
}
|
|
105
|
-
});
|
|
106
|
-
const fadeOutWarning = keyframes({
|
|
107
|
-
'0%': {
|
|
108
|
-
opacity: '1'
|
|
109
|
-
},
|
|
110
|
-
'100%': {
|
|
111
|
-
opacity: '0'
|
|
112
|
-
}
|
|
113
|
-
});
|
|
114
|
-
const fadeOutInfo = keyframes({
|
|
115
|
-
'0%': {
|
|
116
|
-
opacity: '1'
|
|
117
|
-
},
|
|
118
|
-
'100%': {
|
|
119
|
-
opacity: '0'
|
|
120
|
-
}
|
|
121
|
-
});
|
|
122
|
-
const slideOut = keyframes({
|
|
123
|
-
'0%': {
|
|
124
|
-
transform: 'translateX(0)',
|
|
125
|
-
opacity: '1'
|
|
126
|
-
},
|
|
127
|
-
'100%': {
|
|
128
|
-
transform: 'translateX(100%)',
|
|
129
|
-
opacity: '0'
|
|
130
|
-
}
|
|
131
|
-
});
|
|
132
|
-
const toastContainer = style({
|
|
133
|
-
position: 'fixed',
|
|
134
|
-
zIndex: '9999',
|
|
135
|
-
pointerEvents: 'none'
|
|
136
|
-
});
|
|
137
|
-
const toastWrapper = styleVariants({
|
|
138
|
-
topLeft: {
|
|
139
|
-
position: 'fixed',
|
|
140
|
-
top: '16px',
|
|
141
|
-
left: '16px',
|
|
142
|
-
zIndex: '9999'
|
|
143
|
-
},
|
|
144
|
-
topCenter: {
|
|
145
|
-
position: 'fixed',
|
|
146
|
-
top: '16px',
|
|
147
|
-
left: '50%',
|
|
148
|
-
transform: 'translateX(-50%)',
|
|
149
|
-
zIndex: '9999'
|
|
150
|
-
},
|
|
151
|
-
topRight: {
|
|
152
|
-
position: 'fixed',
|
|
153
|
-
top: '16px',
|
|
154
|
-
right: '16px',
|
|
155
|
-
zIndex: '9999'
|
|
156
|
-
},
|
|
157
|
-
bottomLeft: {
|
|
158
|
-
position: 'fixed',
|
|
159
|
-
bottom: '16px',
|
|
160
|
-
left: '16px',
|
|
161
|
-
zIndex: '9999'
|
|
162
|
-
},
|
|
163
|
-
bottomCenter: {
|
|
164
|
-
position: 'fixed',
|
|
165
|
-
bottom: '16px',
|
|
166
|
-
left: '50%',
|
|
167
|
-
transform: 'translateX(-50%)',
|
|
168
|
-
zIndex: '9999'
|
|
169
|
-
},
|
|
170
|
-
bottomRight: {
|
|
171
|
-
position: 'fixed',
|
|
172
|
-
bottom: '16px',
|
|
173
|
-
right: '16px',
|
|
174
|
-
zIndex: '9999'
|
|
175
|
-
}
|
|
176
|
-
});
|
|
177
|
-
const toastItem = style({
|
|
178
|
-
width: '300px',
|
|
179
|
-
pointerEvents: 'auto',
|
|
180
|
-
marginBottom: '8px'
|
|
181
|
-
});
|
|
182
|
-
const toastCloseButton = style({
|
|
183
|
-
background: 'none',
|
|
184
|
-
border: 'none',
|
|
185
|
-
cursor: 'pointer',
|
|
186
|
-
padding: '0',
|
|
187
|
-
display: 'flex',
|
|
188
|
-
alignItems: 'center',
|
|
189
|
-
justifyContent: 'center',
|
|
190
|
-
color: vars.colors.textSecondary,
|
|
191
|
-
fontSize: '16px',
|
|
192
|
-
lineHeight: '1',
|
|
193
|
-
':hover': {
|
|
194
|
-
color: vars.colors.textPrimary
|
|
195
|
-
}
|
|
196
|
-
});
|
|
197
|
-
const toastProgressBarContainer = style({
|
|
198
|
-
position: 'absolute',
|
|
199
|
-
left: 0,
|
|
200
|
-
right: 0,
|
|
201
|
-
bottom: 0,
|
|
202
|
-
height: '3px',
|
|
203
|
-
backgroundColor: 'rgba(0, 0, 0, 0.1)',
|
|
204
|
-
borderRadius: '0 0 4px 4px',
|
|
205
|
-
overflow: 'hidden'
|
|
206
|
-
});
|
|
207
|
-
const toastProgressBar = style({
|
|
208
|
-
height: '100%',
|
|
209
|
-
borderRadius: '0 0 4px 4px',
|
|
210
|
-
transition: 'width 0.1s linear',
|
|
211
|
-
animation: `progressBar 0.3s ease ${fadeIn} forwards`
|
|
212
|
-
});
|
|
213
|
-
const toastContent = styleWithLayer({
|
|
214
|
-
flex: 1,
|
|
215
|
-
minWidth: 0
|
|
216
|
-
});
|
|
217
|
-
export { fadeIn, fadeOut, fadeOutError, fadeOutInfo, fadeOutSuccess, fadeOutWarning, slideInBottom, slideInLeft, slideInRight, slideInTop, slideOut, slideOutBottom, slideOutLeft, slideOutRight, toastCloseButton, toastContainer, toastContent, toastItem, toastProgressBar, toastProgressBarContainer, toastWrapper };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export type ToggleSize = 'small' | 'medium' | 'large';
|
|
3
|
-
export interface ToggleProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'checked' | 'onChange'> {
|
|
4
|
-
checked?: boolean;
|
|
5
|
-
onChange?: (checked: boolean) => void;
|
|
6
|
-
size?: ToggleSize;
|
|
7
|
-
label?: string;
|
|
8
|
-
}
|
|
9
|
-
declare const Toggle: ({ checked, onChange, size, label, disabled, id, ...props }: ToggleProps) => React.JSX.Element;
|
|
10
|
-
export default Toggle;
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import clsx from "clsx";
|
|
3
|
-
import { toggle, toggleFocusRing, toggleInput, toggleLabel, toggleSizes, toggleThumb, toggleThumbChecked, toggleThumbSizes, toggleThumbUnchecked, toggleTrack, toggleTrackChecked, toggleTrackUnchecked } from "./styles.css.js";
|
|
4
|
-
import { useId, useState } from "react";
|
|
5
|
-
import Box from "../Box/index.js";
|
|
6
|
-
const Toggle = ({ checked = false, onChange, size = 'medium', label, disabled = false, id, ...props })=>{
|
|
7
|
-
const [isFocused, setIsFocused] = useState(false);
|
|
8
|
-
const generatedId = useId();
|
|
9
|
-
const toggleId = id || `toggle-${generatedId}`;
|
|
10
|
-
const handleChange = (e)=>{
|
|
11
|
-
if (!disabled && onChange) onChange(e.target.checked);
|
|
12
|
-
};
|
|
13
|
-
return /*#__PURE__*/ jsxs(Box, {
|
|
14
|
-
as: "div",
|
|
15
|
-
className: toggle,
|
|
16
|
-
children: [
|
|
17
|
-
/*#__PURE__*/ jsxs(Box, {
|
|
18
|
-
as: "label",
|
|
19
|
-
htmlFor: toggleId,
|
|
20
|
-
className: toggleLabel,
|
|
21
|
-
children: [
|
|
22
|
-
/*#__PURE__*/ jsx(Box, {
|
|
23
|
-
as: "input",
|
|
24
|
-
type: "checkbox",
|
|
25
|
-
id: toggleId,
|
|
26
|
-
checked: checked,
|
|
27
|
-
onChange: handleChange,
|
|
28
|
-
disabled: disabled,
|
|
29
|
-
className: toggleInput,
|
|
30
|
-
onFocus: ()=>setIsFocused(true),
|
|
31
|
-
onBlur: ()=>setIsFocused(false),
|
|
32
|
-
"aria-checked": checked,
|
|
33
|
-
role: "switch",
|
|
34
|
-
...props
|
|
35
|
-
}),
|
|
36
|
-
/*#__PURE__*/ jsx(Box, {
|
|
37
|
-
as: "span",
|
|
38
|
-
className: clsx(toggleTrack, toggleSizes[size], checked ? toggleTrackChecked : toggleTrackUnchecked),
|
|
39
|
-
"data-size": size,
|
|
40
|
-
children: /*#__PURE__*/ jsx(Box, {
|
|
41
|
-
as: "span",
|
|
42
|
-
className: clsx(toggleThumb, toggleThumbSizes[size], checked ? toggleThumbChecked : toggleThumbUnchecked)
|
|
43
|
-
})
|
|
44
|
-
}),
|
|
45
|
-
/*#__PURE__*/ jsx(Box, {
|
|
46
|
-
as: "span",
|
|
47
|
-
className: toggleFocusRing,
|
|
48
|
-
"data-focused": isFocused,
|
|
49
|
-
"aria-hidden": "true"
|
|
50
|
-
})
|
|
51
|
-
]
|
|
52
|
-
}),
|
|
53
|
-
label && /*#__PURE__*/ jsx(Box, {
|
|
54
|
-
as: "span",
|
|
55
|
-
marginLeft: "small",
|
|
56
|
-
children: label
|
|
57
|
-
})
|
|
58
|
-
]
|
|
59
|
-
});
|
|
60
|
-
};
|
|
61
|
-
const Toggle_Toggle = Toggle;
|
|
62
|
-
export { Toggle_Toggle as default };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare const toggleSizes: Record<"medium" | "large" | "small", string>;
|
|
2
|
-
export declare const toggleLabel: string;
|
|
3
|
-
export declare const toggle: string;
|
|
4
|
-
export declare const toggleInput: string;
|
|
5
|
-
export declare const toggleTrack: string;
|
|
6
|
-
export declare const toggleTrackChecked: string;
|
|
7
|
-
export declare const toggleTrackUnchecked: string;
|
|
8
|
-
export declare const toggleThumb: string;
|
|
9
|
-
export declare const toggleThumbSizes: Record<"medium" | "large" | "small", string>;
|
|
10
|
-
export declare const toggleThumbChecked: string;
|
|
11
|
-
export declare const toggleThumbUnchecked: string;
|
|
12
|
-
export declare const toggleFocusRing: string;
|
|
@@ -1,119 +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 toggleSizes = styleVariants({
|
|
5
|
-
small: {
|
|
6
|
-
width: '1.5rem',
|
|
7
|
-
height: '0.75rem'
|
|
8
|
-
},
|
|
9
|
-
medium: {
|
|
10
|
-
width: '2rem',
|
|
11
|
-
height: '1rem'
|
|
12
|
-
},
|
|
13
|
-
large: {
|
|
14
|
-
width: '2.5rem',
|
|
15
|
-
height: '1.25rem'
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
const toggleLabel = styleWithLayer({
|
|
19
|
-
display: 'inline-flex',
|
|
20
|
-
alignItems: 'center',
|
|
21
|
-
cursor: 'pointer'
|
|
22
|
-
});
|
|
23
|
-
const toggle = styleWithLayer({
|
|
24
|
-
position: 'relative',
|
|
25
|
-
display: 'inline-flex',
|
|
26
|
-
alignItems: 'center',
|
|
27
|
-
selectors: {
|
|
28
|
-
'&:has(input:disabled)': {
|
|
29
|
-
cursor: 'not-allowed',
|
|
30
|
-
opacity: 0.5
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
const toggleInput = styleWithLayer({
|
|
35
|
-
position: 'absolute',
|
|
36
|
-
opacity: 0,
|
|
37
|
-
width: 0,
|
|
38
|
-
height: 0,
|
|
39
|
-
cursor: 'pointer'
|
|
40
|
-
});
|
|
41
|
-
const toggleTrack = styleWithLayer({
|
|
42
|
-
borderRadius: '9999px',
|
|
43
|
-
transition: 'background-color 0.2s ease-in-out',
|
|
44
|
-
backgroundColor: vars.colors.borderDefault,
|
|
45
|
-
position: 'relative',
|
|
46
|
-
display: 'inline-flex',
|
|
47
|
-
alignItems: 'center',
|
|
48
|
-
cursor: 'pointer',
|
|
49
|
-
selectors: {
|
|
50
|
-
'&:hover': {
|
|
51
|
-
backgroundColor: vars.colors.borderMuted
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
const toggleTrackChecked = styleWithLayer({
|
|
56
|
-
backgroundColor: vars.colors.buttonBackgroundPrimary,
|
|
57
|
-
selectors: {
|
|
58
|
-
'&:hover': {
|
|
59
|
-
backgroundColor: vars.colors.buttonBackgroundFocusedPrimary
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
});
|
|
63
|
-
const toggleTrackUnchecked = styleWithLayer({
|
|
64
|
-
backgroundColor: vars.colors.borderDefault
|
|
65
|
-
});
|
|
66
|
-
const toggleThumb = styleWithLayer({
|
|
67
|
-
borderRadius: '50%',
|
|
68
|
-
backgroundColor: vars.colors.backgroundDefault,
|
|
69
|
-
position: 'absolute',
|
|
70
|
-
transition: 'transform 0.2s ease-in-out, background-color 0.2s ease-in-out',
|
|
71
|
-
top: '50%',
|
|
72
|
-
left: '0',
|
|
73
|
-
transform: 'translateY(-50%)'
|
|
74
|
-
});
|
|
75
|
-
const toggleThumbSizes = styleVariants({
|
|
76
|
-
small: {
|
|
77
|
-
width: '0.5rem',
|
|
78
|
-
height: '0.5rem'
|
|
79
|
-
},
|
|
80
|
-
medium: {
|
|
81
|
-
width: '0.75rem',
|
|
82
|
-
height: '0.75rem'
|
|
83
|
-
},
|
|
84
|
-
large: {
|
|
85
|
-
width: '1rem',
|
|
86
|
-
height: '1rem'
|
|
87
|
-
}
|
|
88
|
-
});
|
|
89
|
-
const toggleThumbChecked = styleWithLayer({
|
|
90
|
-
transform: 'translateY(-50%) translateX(1.25rem)',
|
|
91
|
-
backgroundColor: vars.colors.backgroundDefault,
|
|
92
|
-
selectors: {
|
|
93
|
-
'[data-size="small"] &': {
|
|
94
|
-
transform: 'translateY(-50%) translateX(1rem)'
|
|
95
|
-
},
|
|
96
|
-
'[data-size="large"] &': {
|
|
97
|
-
transform: 'translateY(-50%) translateX(1.5rem)'
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
});
|
|
101
|
-
const toggleThumbUnchecked = styleWithLayer({
|
|
102
|
-
transform: 'translateY(-50%) translateX(0)',
|
|
103
|
-
backgroundColor: vars.colors.backgroundDefault
|
|
104
|
-
});
|
|
105
|
-
const toggleFocusRing = styleWithLayer({
|
|
106
|
-
position: 'absolute',
|
|
107
|
-
inset: '-0.25rem',
|
|
108
|
-
borderRadius: '0.5rem',
|
|
109
|
-
pointerEvents: 'none',
|
|
110
|
-
opacity: 0,
|
|
111
|
-
transition: 'opacity 0.2s ease-in-out',
|
|
112
|
-
boxShadow: `0 0 0 3px ${vars.colors.buttonBackgroundPrimary}`,
|
|
113
|
-
selectors: {
|
|
114
|
-
'[data-focused="true"] &': {
|
|
115
|
-
opacity: 1
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
});
|
|
119
|
-
export { toggle, toggleFocusRing, toggleInput, toggleLabel, toggleSizes, toggleThumb, toggleThumbChecked, toggleThumbSizes, toggleThumbUnchecked, toggleTrack, toggleTrackChecked, toggleTrackUnchecked };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export type TooltipPosition = 'top' | 'bottom' | 'left' | 'right';
|
|
3
|
-
export interface TooltipProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
-
content: string;
|
|
5
|
-
position?: TooltipPosition;
|
|
6
|
-
showArrow?: boolean;
|
|
7
|
-
children: React.ReactNode;
|
|
8
|
-
}
|
|
9
|
-
declare const Tooltip: ({ content, position, showArrow, children, ...props }: TooltipProps) => React.JSX.Element;
|
|
10
|
-
export default Tooltip;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import clsx from "clsx";
|
|
3
|
-
import { tooltipArrow, tooltipArrowBottom, tooltipArrowLeft, tooltipArrowRight, tooltipArrowTop, tooltipContainer, tooltipContent, tooltipPositions } from "./styles.css.js";
|
|
4
|
-
import { useState } from "react";
|
|
5
|
-
import Box from "../Box/index.js";
|
|
6
|
-
const Tooltip = ({ content, position = 'top', showArrow = true, children, ...props })=>{
|
|
7
|
-
const [isVisible, setIsVisible] = useState(false);
|
|
8
|
-
const arrowStyle = {
|
|
9
|
-
top: 'bottom' === position ? tooltipArrowBottom : void 0,
|
|
10
|
-
bottom: 'top' === position ? tooltipArrowTop : void 0,
|
|
11
|
-
left: 'right' === position ? tooltipArrowLeft : void 0,
|
|
12
|
-
right: 'left' === position ? tooltipArrowRight : void 0
|
|
13
|
-
};
|
|
14
|
-
return /*#__PURE__*/ jsxs(Box, {
|
|
15
|
-
as: "div",
|
|
16
|
-
className: clsx(tooltipContainer, props.className),
|
|
17
|
-
onMouseEnter: ()=>setIsVisible(true),
|
|
18
|
-
onMouseLeave: ()=>setIsVisible(false),
|
|
19
|
-
onFocus: ()=>setIsVisible(true),
|
|
20
|
-
onBlur: ()=>setIsVisible(false),
|
|
21
|
-
...props,
|
|
22
|
-
children: [
|
|
23
|
-
children,
|
|
24
|
-
/*#__PURE__*/ jsxs(Box, {
|
|
25
|
-
as: "div",
|
|
26
|
-
className: clsx(tooltipContent, tooltipPositions[position]),
|
|
27
|
-
"data-visible": isVisible,
|
|
28
|
-
role: "tooltip",
|
|
29
|
-
children: [
|
|
30
|
-
showArrow && /*#__PURE__*/ jsx(Box, {
|
|
31
|
-
as: "span",
|
|
32
|
-
className: clsx(tooltipArrow, arrowStyle.top, arrowStyle.bottom, arrowStyle.left, arrowStyle.right)
|
|
33
|
-
}),
|
|
34
|
-
content
|
|
35
|
-
]
|
|
36
|
-
})
|
|
37
|
-
]
|
|
38
|
-
});
|
|
39
|
-
};
|
|
40
|
-
const Tooltip_Tooltip = Tooltip;
|
|
41
|
-
export { Tooltip_Tooltip as default };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare const tooltipPositions: Record<"bottom" | "left" | "right" | "top", string>;
|
|
2
|
-
export declare const tooltipContainer: string;
|
|
3
|
-
export declare const tooltipContent: string;
|
|
4
|
-
export declare const tooltipArrow: string;
|
|
5
|
-
export declare const tooltipArrowTop: string;
|
|
6
|
-
export declare const tooltipArrowBottom: string;
|
|
7
|
-
export declare const tooltipArrowLeft: string;
|
|
8
|
-
export declare const tooltipArrowRight: string;
|
|
@@ -1,87 +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 tooltipPositions = styleVariants({
|
|
5
|
-
top: {
|
|
6
|
-
bottom: '100%',
|
|
7
|
-
marginBottom: '0.25rem',
|
|
8
|
-
left: '50%',
|
|
9
|
-
transform: 'translateX(-50%)'
|
|
10
|
-
},
|
|
11
|
-
bottom: {
|
|
12
|
-
top: '100%',
|
|
13
|
-
marginTop: '0.25rem',
|
|
14
|
-
left: '50%',
|
|
15
|
-
transform: 'translateX(-50%)'
|
|
16
|
-
},
|
|
17
|
-
left: {
|
|
18
|
-
right: '100%',
|
|
19
|
-
marginRight: '0.25rem',
|
|
20
|
-
top: '50%',
|
|
21
|
-
transform: 'translateY(-50%)'
|
|
22
|
-
},
|
|
23
|
-
right: {
|
|
24
|
-
left: '100%',
|
|
25
|
-
marginLeft: '0.25rem',
|
|
26
|
-
top: '50%',
|
|
27
|
-
transform: 'translateY(-50%)'
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
const tooltipContainer = styleWithLayer({
|
|
31
|
-
position: 'relative',
|
|
32
|
-
display: 'inline-flex'
|
|
33
|
-
});
|
|
34
|
-
const tooltipContent = styleWithLayer({
|
|
35
|
-
position: 'absolute',
|
|
36
|
-
backgroundColor: vars.colors.textPrimary,
|
|
37
|
-
color: vars.colors.backgroundDefault,
|
|
38
|
-
padding: '0.375rem 0.75rem',
|
|
39
|
-
borderRadius: '0.375rem',
|
|
40
|
-
fontSize: '0.75rem',
|
|
41
|
-
whiteSpace: 'nowrap',
|
|
42
|
-
zIndex: 1001,
|
|
43
|
-
boxShadow: '0 2px 8px rgba(0, 0, 0, 0.15)',
|
|
44
|
-
opacity: 0,
|
|
45
|
-
visibility: 'hidden',
|
|
46
|
-
transition: 'opacity 0.2s ease-in-out, visibility 0.2s ease-in-out',
|
|
47
|
-
pointerEvents: 'none',
|
|
48
|
-
selectors: {
|
|
49
|
-
'&[data-visible="true"]': {
|
|
50
|
-
opacity: 1,
|
|
51
|
-
visibility: 'visible'
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
const tooltipArrow = styleWithLayer({
|
|
56
|
-
position: 'absolute',
|
|
57
|
-
width: '0',
|
|
58
|
-
height: '0',
|
|
59
|
-
borderStyle: 'solid',
|
|
60
|
-
borderWidth: '0.25rem',
|
|
61
|
-
borderColor: 'transparent'
|
|
62
|
-
});
|
|
63
|
-
const tooltipArrowTop = styleWithLayer({
|
|
64
|
-
bottom: '-0.25rem',
|
|
65
|
-
left: '50%',
|
|
66
|
-
transform: 'translateX(-50%)',
|
|
67
|
-
borderTopColor: vars.colors.textPrimary
|
|
68
|
-
});
|
|
69
|
-
const tooltipArrowBottom = styleWithLayer({
|
|
70
|
-
top: '-0.25rem',
|
|
71
|
-
left: '50%',
|
|
72
|
-
transform: 'translateX(-50%)',
|
|
73
|
-
borderBottomColor: vars.colors.textPrimary
|
|
74
|
-
});
|
|
75
|
-
const tooltipArrowLeft = styleWithLayer({
|
|
76
|
-
right: '-0.25rem',
|
|
77
|
-
top: '50%',
|
|
78
|
-
transform: 'translateY(-50%)',
|
|
79
|
-
borderLeftColor: vars.colors.textPrimary
|
|
80
|
-
});
|
|
81
|
-
const tooltipArrowRight = styleWithLayer({
|
|
82
|
-
left: '-0.25rem',
|
|
83
|
-
top: '50%',
|
|
84
|
-
transform: 'translateY(-50%)',
|
|
85
|
-
borderRightColor: vars.colors.textPrimary
|
|
86
|
-
});
|
|
87
|
-
export { tooltipArrow, tooltipArrowBottom, tooltipArrowLeft, tooltipArrowRight, tooltipArrowTop, tooltipContainer, tooltipContent, tooltipPositions };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface VisuallyHiddenProps {
|
|
3
|
-
children: React.ReactNode;
|
|
4
|
-
as?: React.ElementType;
|
|
5
|
-
className?: string;
|
|
6
|
-
}
|
|
7
|
-
declare const VisuallyHidden: ({ children, as: Component, className, ...props }: VisuallyHiddenProps) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
8
|
-
export default VisuallyHidden;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import react from "react";
|
|
2
|
-
import { visuallyHidden } from "./styles.css.js";
|
|
3
|
-
const VisuallyHidden = ({ children, as: Component = 'span', className, ...props })=>/*#__PURE__*/ react.createElement(Component, {
|
|
4
|
-
className: visuallyHidden,
|
|
5
|
-
...props
|
|
6
|
-
}, children);
|
|
7
|
-
const VisuallyHidden_VisuallyHidden = VisuallyHidden;
|
|
8
|
-
export { VisuallyHidden_VisuallyHidden as default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const visuallyHidden: string;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { styleWithLayer } from "../../styles/utils.js";
|
|
2
|
-
const visuallyHidden = styleWithLayer({
|
|
3
|
-
position: 'absolute',
|
|
4
|
-
width: '1px',
|
|
5
|
-
height: '1px',
|
|
6
|
-
padding: 0,
|
|
7
|
-
margin: '-1px',
|
|
8
|
-
overflow: 'hidden',
|
|
9
|
-
clip: 'rect(0, 0, 0, 0)',
|
|
10
|
-
whiteSpace: 'nowrap',
|
|
11
|
-
border: 0
|
|
12
|
-
});
|
|
13
|
-
export { visuallyHidden };
|
package/dist/components/index.js
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { Button } from "./Button/index.js";
|
|
2
|
-
import { List, ListItem } from "./List/index.js";
|
|
3
|
-
import { Input } from "./Input/index.js";
|
|
4
|
-
import { Form, FormInput } from "./Form/index.js";
|
|
5
|
-
import { Navbar, NavbarItem } from "./Navbar/index.js";
|
|
6
|
-
import { Card } from "./Card/index.js";
|
|
7
|
-
import { Alert } from "./Alert/index.js";
|
|
8
|
-
import { Header, P } from "./Text/index.js";
|
|
9
|
-
import { Modal } from "./Modal/index.js";
|
|
10
|
-
import { Badge } from "./Badge/index.js";
|
|
11
|
-
import { Divider } from "./Divider/index.js";
|
|
12
|
-
import { Spinner } from "./Spinner/index.js";
|
|
13
|
-
import { Tooltip } from "./Tooltip/index.js";
|
|
14
|
-
import { Toggle } from "./Toggle/index.js";
|
|
15
|
-
import { Checkbox } from "./Checkbox/index.js";
|
|
16
|
-
import { Radio } from "./Radio/index.js";
|
|
17
|
-
import { Select } from "./Select/index.js";
|
|
18
|
-
import { Tabs } from "./Tabs/index.js";
|
|
19
|
-
import { Avatar } from "./Avatar/index.js";
|
|
20
|
-
import { Tag } from "./Tag/index.js";
|
|
21
|
-
import { Breadcrumb } from "./Breadcrumb/index.js";
|
|
22
|
-
import { Accordion } from "./Accordion/index.js";
|
|
23
|
-
import { Progress } from "./Progress/index.js";
|
|
24
|
-
import { Icon } from "./Icon/index.js";
|
|
25
|
-
import { Toast, ToastProvider, useToast } from "./Toast/index.js";
|
|
26
|
-
import Box from "./Box/index.js";
|
|
27
|
-
import { Table } from "./Table/index.js";
|
|
28
|
-
import { TextArea } from "./TextArea/index.js";
|
|
29
|
-
import { Pagination } from "./Pagination/index.js";
|
|
30
|
-
import { Skeleton } from "./Skeleton/index.js";
|
|
31
|
-
import { Drawer } from "./Drawer/index.js";
|
|
32
|
-
import { DropdownMenu } from "./DropdownMenu/index.js";
|
|
33
|
-
import { Popover } from "./Popover/index.js";
|
|
34
|
-
import { Stepper } from "./Stepper/index.js";
|
|
35
|
-
import { Combobox } from "./Combobox/index.js";
|
|
36
|
-
import { NumberInput } from "./NumberInput/index.js";
|
|
37
|
-
import { FileUpload } from "./FileUpload/index.js";
|
|
38
|
-
import { Stack } from "./Stack/index.js";
|
|
39
|
-
import { Grid } from "./Grid/index.js";
|
|
40
|
-
import { Container } from "./Container/index.js";
|
|
41
|
-
import { AspectRatio } from "./AspectRatio/index.js";
|
|
42
|
-
import { Collapse } from "./Collapse/index.js";
|
|
43
|
-
import { VisuallyHidden } from "./VisuallyHidden/index.js";
|
|
44
|
-
import { EmptyState } from "./EmptyState/index.js";
|
|
45
|
-
import { Separator } from "./Separator/index.js";
|
|
46
|
-
import { ScrollArea } from "./ScrollArea/index.js";
|
|
47
|
-
import { Kbd } from "./Kbd/index.js";
|
|
48
|
-
export { Accordion, Alert, AspectRatio, Avatar, Badge, Box, Breadcrumb, Button, Card, Checkbox, Collapse, Combobox, Container, Divider, Drawer, DropdownMenu, EmptyState, FileUpload, Form, FormInput, Grid, Header, Icon, Input, Kbd, List, ListItem, Modal, Navbar, NavbarItem, NumberInput, P, Pagination, Popover, Progress, Radio, ScrollArea, Select, Separator, Skeleton, Spinner, Stack, Stepper, Table, Tabs, Tag, TextArea, Toast, ToastProvider, Toggle, Tooltip, VisuallyHidden, useToast };
|
package/dist/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './components';
|
package/dist/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./components/index.js";
|