@shipfox/react-ui 0.14.0 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/avatar/avatar.js +1 -1
- package/dist/components/button-group/button-group.d.ts +17 -0
- package/dist/components/button-group/button-group.js +74 -0
- package/dist/components/button-group/button-group.stories.js +644 -0
- package/dist/components/button-group/index.d.ts +2 -0
- package/dist/components/button-group/index.js +3 -0
- package/dist/components/code-block/code-block-footer.js +4 -2
- package/dist/components/command/command.d.ts +28 -0
- package/dist/components/command/command.js +190 -0
- package/dist/components/command/command.stories.js +228 -0
- package/dist/components/command/index.d.ts +2 -0
- package/dist/components/command/index.js +3 -0
- package/dist/components/dashboard/components/animated-logo.d.ts +4 -0
- package/dist/components/dashboard/components/animated-logo.js +23 -0
- package/dist/components/dashboard/components/charts/bar-chart.d.ts +39 -0
- package/dist/components/dashboard/components/charts/bar-chart.js +104 -0
- package/dist/components/dashboard/components/charts/chart-tooltip.d.ts +14 -0
- package/dist/components/dashboard/components/charts/chart-tooltip.js +45 -0
- package/dist/components/dashboard/components/charts/colors.d.ts +11 -0
- package/dist/components/dashboard/components/charts/colors.js +17 -0
- package/dist/components/dashboard/components/charts/index.d.ts +5 -0
- package/dist/components/dashboard/components/charts/index.js +6 -0
- package/dist/components/dashboard/components/charts/line-chart.d.ts +37 -0
- package/dist/components/dashboard/components/charts/line-chart.js +128 -0
- package/dist/components/dashboard/components/complete-setup-button.d.ts +4 -0
- package/dist/components/dashboard/components/complete-setup-button.js +28 -0
- package/dist/components/dashboard/components/dashboard-alert.d.ts +8 -0
- package/dist/components/dashboard/components/dashboard-alert.js +24 -0
- package/dist/components/dashboard/components/kpi-card.d.ts +15 -0
- package/dist/components/dashboard/components/kpi-card.js +77 -0
- package/dist/components/dashboard/components/mobile-menu.d.ts +2 -0
- package/dist/components/dashboard/components/mobile-menu.js +65 -0
- package/dist/components/dashboard/components/mobile-sidebar.d.ts +19 -0
- package/dist/components/dashboard/components/mobile-sidebar.js +50 -0
- package/dist/components/dashboard/components/organization-selector.d.ts +25 -0
- package/dist/components/dashboard/components/organization-selector.js +115 -0
- package/dist/components/dashboard/components/sidebar.d.ts +24 -0
- package/dist/components/dashboard/components/sidebar.js +218 -0
- package/dist/components/dashboard/components/top-menu.d.ts +5 -0
- package/dist/components/dashboard/components/top-menu.js +31 -0
- package/dist/components/dashboard/components/topbar-button.d.ts +7 -0
- package/dist/components/dashboard/components/topbar-button.js +18 -0
- package/dist/components/dashboard/components/topbar.d.ts +4 -0
- package/dist/components/dashboard/components/topbar.js +62 -0
- package/dist/components/dashboard/components/user-profile.d.ts +2 -0
- package/dist/components/dashboard/components/user-profile.js +146 -0
- package/dist/components/dashboard/context/dashboard-context.d.ts +70 -0
- package/dist/components/dashboard/context/dashboard-context.js +175 -0
- package/dist/components/dashboard/context/index.d.ts +8 -0
- package/dist/components/dashboard/context/index.js +6 -0
- package/dist/components/dashboard/context/types.d.ts +50 -0
- package/dist/components/dashboard/context/types.js +7 -0
- package/dist/components/dashboard/context/utils.d.ts +28 -0
- package/dist/components/dashboard/context/utils.js +53 -0
- package/dist/components/dashboard/dashboard.d.ts +28 -0
- package/dist/components/dashboard/dashboard.js +110 -0
- package/dist/components/dashboard/dashboard.stories.js +23 -0
- package/dist/components/dashboard/filters/expression-filter-bar.d.ts +42 -0
- package/dist/components/dashboard/filters/expression-filter-bar.js +80 -0
- package/dist/components/dashboard/filters/index.d.ts +6 -0
- package/dist/components/dashboard/filters/index.js +5 -0
- package/dist/components/dashboard/index.d.ts +26 -0
- package/dist/components/dashboard/index.js +24 -0
- package/dist/components/dashboard/pages/analytics-page.d.ts +20 -0
- package/dist/components/dashboard/pages/analytics-page.js +258 -0
- package/dist/components/dashboard/pages/index.d.ts +6 -0
- package/dist/components/dashboard/pages/index.js +6 -0
- package/dist/components/dashboard/pages/jobs-page.d.ts +20 -0
- package/dist/components/dashboard/pages/jobs-page.js +56 -0
- package/dist/components/dashboard/table/index.d.ts +6 -0
- package/dist/components/dashboard/table/index.js +5 -0
- package/dist/components/dashboard/table/table-wrapper.d.ts +104 -0
- package/dist/components/dashboard/table/table-wrapper.js +93 -0
- package/dist/components/dashboard/toolbar/filter-button.d.ts +12 -0
- package/dist/components/dashboard/toolbar/filter-button.js +124 -0
- package/dist/components/dashboard/toolbar/index.d.ts +13 -0
- package/dist/components/dashboard/toolbar/index.js +10 -0
- package/dist/components/dashboard/toolbar/page-toolbar.d.ts +75 -0
- package/dist/components/dashboard/toolbar/page-toolbar.js +208 -0
- package/dist/components/dashboard/toolbar/toolbar-actions.d.ts +52 -0
- package/dist/components/dashboard/toolbar/toolbar-actions.js +51 -0
- package/dist/components/dashboard/toolbar/toolbar-search.d.ts +21 -0
- package/dist/components/dashboard/toolbar/toolbar-search.js +123 -0
- package/dist/components/dashboard/toolbar/view-dropdown.d.ts +11 -0
- package/dist/components/dashboard/toolbar/view-dropdown.js +113 -0
- package/dist/components/form/form.stories.js +6 -1
- package/dist/components/index.d.ts +8 -0
- package/dist/components/index.js +8 -0
- package/dist/components/kbd/index.d.ts +2 -0
- package/dist/components/kbd/index.js +3 -0
- package/dist/components/kbd/kbd.d.ts +7 -0
- package/dist/components/kbd/kbd.js +18 -0
- package/dist/components/kbd/kbd.stories.js +119 -0
- package/dist/components/modal/modal.js +3 -3
- package/dist/components/search/index.d.ts +7 -0
- package/dist/components/search/index.js +8 -0
- package/dist/components/search/search-context.d.ts +11 -0
- package/dist/components/search/search-context.js +56 -0
- package/dist/components/search/search-inline.d.ts +9 -0
- package/dist/components/search/search-inline.js +85 -0
- package/dist/components/search/search-modal.d.ts +25 -0
- package/dist/components/search/search-modal.js +168 -0
- package/dist/components/search/search-trigger.d.ts +9 -0
- package/dist/components/search/search-trigger.js +37 -0
- package/dist/components/search/search-variants.d.ts +14 -0
- package/dist/components/search/search-variants.js +90 -0
- package/dist/components/search/search.d.ts +11 -0
- package/dist/components/search/search.js +35 -0
- package/dist/components/search/search.stories.js +630 -0
- package/dist/components/select/index.d.ts +2 -0
- package/dist/components/select/index.js +3 -0
- package/dist/components/select/select.d.ts +27 -0
- package/dist/components/select/select.js +154 -0
- package/dist/components/select/select.stories.js +393 -0
- package/dist/components/sheet/index.d.ts +2 -0
- package/dist/components/sheet/index.js +3 -0
- package/dist/components/sheet/sheet.d.ts +33 -0
- package/dist/components/sheet/sheet.js +163 -0
- package/dist/components/sheet/sheet.stories.js +368 -0
- package/dist/components/skeleton/index.d.ts +2 -0
- package/dist/components/skeleton/index.js +3 -0
- package/dist/components/skeleton/skeleton.d.ts +5 -0
- package/dist/components/skeleton/skeleton.js +11 -0
- package/dist/components/skeleton/skeleton.stories.js +345 -0
- package/dist/components/table/data-table.d.ts +83 -0
- package/dist/components/table/data-table.js +164 -0
- package/dist/components/table/index.d.ts +6 -0
- package/dist/components/table/index.js +6 -0
- package/dist/components/table/table-column-header.d.ts +79 -0
- package/dist/components/table/table-column-header.js +99 -0
- package/dist/components/table/table-pagination.d.ts +53 -0
- package/dist/components/table/table-pagination.js +139 -0
- package/dist/components/table/table.d.ts +11 -0
- package/dist/components/table/table.js +64 -0
- package/dist/components/table/table.stories.columns.d.ts +24 -0
- package/dist/components/table/table.stories.columns.js +310 -0
- package/dist/components/table/table.stories.components.d.ts +14 -0
- package/dist/components/table/table.stories.components.js +107 -0
- package/dist/components/table/table.stories.data.d.ts +54 -0
- package/dist/components/table/table.stories.data.js +122 -0
- package/dist/components/table/table.stories.js +302 -0
- package/dist/styles.css +1 -1
- package/package.json +14 -5
- package/.storybook/main.ts +0 -35
- package/.storybook/preview.tsx +0 -59
- package/.storybook/vitest.setup.ts +0 -4
- package/.turbo/turbo-build.log +0 -19
- package/.turbo/turbo-check.log +0 -6
- package/.turbo/turbo-type.log +0 -5
- package/CHANGELOG.md +0 -104
- package/argos.config.ts +0 -33
- package/dist/build-css-entry.js.map +0 -1
- package/dist/colors.stories.conts.d.ts.map +0 -1
- package/dist/colors.stories.conts.js.map +0 -1
- package/dist/colors.stories.js.map +0 -1
- package/dist/components/alert/alert.d.ts.map +0 -1
- package/dist/components/alert/alert.js.map +0 -1
- package/dist/components/alert/alert.stories.js.map +0 -1
- package/dist/components/alert/index.d.ts.map +0 -1
- package/dist/components/alert/index.js.map +0 -1
- package/dist/components/avatar/avatar-group.d.ts.map +0 -1
- package/dist/components/avatar/avatar-group.js.map +0 -1
- package/dist/components/avatar/avatar.d.ts.map +0 -1
- package/dist/components/avatar/avatar.js.map +0 -1
- package/dist/components/avatar/avatar.stories.js.map +0 -1
- package/dist/components/avatar/index.d.ts.map +0 -1
- package/dist/components/avatar/index.js.map +0 -1
- package/dist/components/badge/badge.d.ts.map +0 -1
- package/dist/components/badge/badge.js.map +0 -1
- package/dist/components/badge/badge.stories.js.map +0 -1
- package/dist/components/badge/icon-badge.d.ts.map +0 -1
- package/dist/components/badge/icon-badge.js.map +0 -1
- package/dist/components/badge/index.d.ts.map +0 -1
- package/dist/components/badge/index.js.map +0 -1
- package/dist/components/badge/status-badge.d.ts.map +0 -1
- package/dist/components/badge/status-badge.js.map +0 -1
- package/dist/components/badge/user-badge.d.ts.map +0 -1
- package/dist/components/badge/user-badge.js.map +0 -1
- package/dist/components/button/button-link.d.ts.map +0 -1
- package/dist/components/button/button-link.js.map +0 -1
- package/dist/components/button/button-link.stories.js.map +0 -1
- package/dist/components/button/button.d.ts.map +0 -1
- package/dist/components/button/button.js.map +0 -1
- package/dist/components/button/button.stories.js.map +0 -1
- package/dist/components/button/icon-button.d.ts.map +0 -1
- package/dist/components/button/icon-button.js.map +0 -1
- package/dist/components/button/icon-button.stories.js.map +0 -1
- package/dist/components/button/index.d.ts.map +0 -1
- package/dist/components/button/index.js.map +0 -1
- package/dist/components/calendar/calendar.d.ts.map +0 -1
- package/dist/components/calendar/calendar.js.map +0 -1
- package/dist/components/calendar/index.d.ts.map +0 -1
- package/dist/components/calendar/index.js.map +0 -1
- package/dist/components/checkbox/checkbox-label.d.ts.map +0 -1
- package/dist/components/checkbox/checkbox-label.js.map +0 -1
- package/dist/components/checkbox/checkbox-links.d.ts.map +0 -1
- package/dist/components/checkbox/checkbox-links.js.map +0 -1
- package/dist/components/checkbox/checkbox.d.ts.map +0 -1
- package/dist/components/checkbox/checkbox.js.map +0 -1
- package/dist/components/checkbox/checkbox.stories.js.map +0 -1
- package/dist/components/checkbox/index.d.ts.map +0 -1
- package/dist/components/checkbox/index.js.map +0 -1
- package/dist/components/code-block/code-block-footer.d.ts.map +0 -1
- package/dist/components/code-block/code-block-footer.js.map +0 -1
- package/dist/components/code-block/code-block.d.ts.map +0 -1
- package/dist/components/code-block/code-block.js.map +0 -1
- package/dist/components/code-block/code-block.stories.js.map +0 -1
- package/dist/components/code-block/code-content.d.ts.map +0 -1
- package/dist/components/code-block/code-content.js.map +0 -1
- package/dist/components/code-block/code-copy-button.d.ts.map +0 -1
- package/dist/components/code-block/code-copy-button.js.map +0 -1
- package/dist/components/code-block/code-tabs.d.ts.map +0 -1
- package/dist/components/code-block/code-tabs.js.map +0 -1
- package/dist/components/code-block/index.d.ts.map +0 -1
- package/dist/components/code-block/index.js.map +0 -1
- package/dist/components/confetti/confetti.d.ts.map +0 -1
- package/dist/components/confetti/confetti.js.map +0 -1
- package/dist/components/confetti/confetti.stories.js.map +0 -1
- package/dist/components/confetti/index.d.ts.map +0 -1
- package/dist/components/confetti/index.js.map +0 -1
- package/dist/components/date-picker/date-picker.d.ts.map +0 -1
- package/dist/components/date-picker/date-picker.js.map +0 -1
- package/dist/components/date-picker/date-picker.stories.js.map +0 -1
- package/dist/components/date-picker/index.d.ts.map +0 -1
- package/dist/components/date-picker/index.js.map +0 -1
- package/dist/components/date-time-range-picker/date-time-range-picker.d.ts.map +0 -1
- package/dist/components/date-time-range-picker/date-time-range-picker.js.map +0 -1
- package/dist/components/date-time-range-picker/index.d.ts.map +0 -1
- package/dist/components/date-time-range-picker/index.js.map +0 -1
- package/dist/components/dot-grid/dot-grid.d.ts.map +0 -1
- package/dist/components/dot-grid/dot-grid.js.map +0 -1
- package/dist/components/dot-grid/index.d.ts.map +0 -1
- package/dist/components/dot-grid/index.js.map +0 -1
- package/dist/components/dropdown-menu/dropdown-menu.d.ts.map +0 -1
- package/dist/components/dropdown-menu/dropdown-menu.js.map +0 -1
- package/dist/components/dropdown-menu/dropdown-menu.stories.js.map +0 -1
- package/dist/components/dropdown-menu/index.d.ts.map +0 -1
- package/dist/components/dropdown-menu/index.js.map +0 -1
- package/dist/components/dynamic-item/dynamic-item.d.ts.map +0 -1
- package/dist/components/dynamic-item/dynamic-item.js.map +0 -1
- package/dist/components/dynamic-item/dynamic-item.stories.js.map +0 -1
- package/dist/components/dynamic-item/index.d.ts.map +0 -1
- package/dist/components/dynamic-item/index.js.map +0 -1
- package/dist/components/form/form.d.ts.map +0 -1
- package/dist/components/form/form.js.map +0 -1
- package/dist/components/form/form.stories.js.map +0 -1
- package/dist/components/form/index.d.ts.map +0 -1
- package/dist/components/form/index.js.map +0 -1
- package/dist/components/icon/custom/badge.d.ts.map +0 -1
- package/dist/components/icon/custom/badge.js.map +0 -1
- package/dist/components/icon/custom/check-circle-solid.d.ts.map +0 -1
- package/dist/components/icon/custom/check-circle-solid.js.map +0 -1
- package/dist/components/icon/custom/circle-dotted-line.d.ts.map +0 -1
- package/dist/components/icon/custom/circle-dotted-line.js.map +0 -1
- package/dist/components/icon/custom/component-fill.d.ts.map +0 -1
- package/dist/components/icon/custom/component-fill.js.map +0 -1
- package/dist/components/icon/custom/component-line.d.ts.map +0 -1
- package/dist/components/icon/custom/component-line.js.map +0 -1
- package/dist/components/icon/custom/ellipse-mini-solid.d.ts.map +0 -1
- package/dist/components/icon/custom/ellipse-mini-solid.js.map +0 -1
- package/dist/components/icon/custom/index.d.ts.map +0 -1
- package/dist/components/icon/custom/index.js.map +0 -1
- package/dist/components/icon/custom/info-tooltip-fill.d.ts.map +0 -1
- package/dist/components/icon/custom/info-tooltip-fill.js.map +0 -1
- package/dist/components/icon/custom/resize.d.ts.map +0 -1
- package/dist/components/icon/custom/resize.js.map +0 -1
- package/dist/components/icon/custom/shipfox-logo.d.ts.map +0 -1
- package/dist/components/icon/custom/shipfox-logo.js.map +0 -1
- package/dist/components/icon/custom/slack-logo.d.ts.map +0 -1
- package/dist/components/icon/custom/slack-logo.js.map +0 -1
- package/dist/components/icon/custom/spinner.d.ts.map +0 -1
- package/dist/components/icon/custom/spinner.js.map +0 -1
- package/dist/components/icon/custom/stripe-logo.d.ts.map +0 -1
- package/dist/components/icon/custom/stripe-logo.js.map +0 -1
- package/dist/components/icon/custom/thunder.d.ts.map +0 -1
- package/dist/components/icon/custom/thunder.js.map +0 -1
- package/dist/components/icon/custom/x-circle-solid.d.ts.map +0 -1
- package/dist/components/icon/custom/x-circle-solid.js.map +0 -1
- package/dist/components/icon/icon.d.ts.map +0 -1
- package/dist/components/icon/icon.js.map +0 -1
- package/dist/components/icon/icon.stories.js.map +0 -1
- package/dist/components/icon/index.d.ts.map +0 -1
- package/dist/components/icon/index.js.map +0 -1
- package/dist/components/icon/remixicon-registry.d.ts.map +0 -1
- package/dist/components/icon/remixicon-registry.js.map +0 -1
- package/dist/components/index.d.ts.map +0 -1
- package/dist/components/index.js.map +0 -1
- package/dist/components/inline-tips/index.d.ts.map +0 -1
- package/dist/components/inline-tips/index.js.map +0 -1
- package/dist/components/inline-tips/inline-tips.d.ts.map +0 -1
- package/dist/components/inline-tips/inline-tips.js.map +0 -1
- package/dist/components/inline-tips/inline-tips.stories.js.map +0 -1
- package/dist/components/input/index.d.ts.map +0 -1
- package/dist/components/input/index.js.map +0 -1
- package/dist/components/input/input.d.ts.map +0 -1
- package/dist/components/input/input.js.map +0 -1
- package/dist/components/input/input.stories.js.map +0 -1
- package/dist/components/item/index.d.ts.map +0 -1
- package/dist/components/item/index.js.map +0 -1
- package/dist/components/item/item.d.ts.map +0 -1
- package/dist/components/item/item.js.map +0 -1
- package/dist/components/item/item.stories.js.map +0 -1
- package/dist/components/label/index.d.ts.map +0 -1
- package/dist/components/label/index.js.map +0 -1
- package/dist/components/label/label.d.ts.map +0 -1
- package/dist/components/label/label.js.map +0 -1
- package/dist/components/label/label.stories.js.map +0 -1
- package/dist/components/modal/index.d.ts.map +0 -1
- package/dist/components/modal/index.js.map +0 -1
- package/dist/components/modal/modal.d.ts.map +0 -1
- package/dist/components/modal/modal.js.map +0 -1
- package/dist/components/modal/modal.stories.js.map +0 -1
- package/dist/components/moving-border/index.d.ts.map +0 -1
- package/dist/components/moving-border/index.js.map +0 -1
- package/dist/components/moving-border/moving-border.d.ts.map +0 -1
- package/dist/components/moving-border/moving-border.js.map +0 -1
- package/dist/components/popover/index.d.ts.map +0 -1
- package/dist/components/popover/index.js.map +0 -1
- package/dist/components/popover/popover.d.ts.map +0 -1
- package/dist/components/popover/popover.js.map +0 -1
- package/dist/components/shiny-text/index.d.ts.map +0 -1
- package/dist/components/shiny-text/index.js.map +0 -1
- package/dist/components/shiny-text/shiny-text.d.ts.map +0 -1
- package/dist/components/shiny-text/shiny-text.js.map +0 -1
- package/dist/components/tabs/index.d.ts.map +0 -1
- package/dist/components/tabs/index.js.map +0 -1
- package/dist/components/tabs/tabs.d.ts.map +0 -1
- package/dist/components/tabs/tabs.js.map +0 -1
- package/dist/components/tabs/tabs.stories.js.map +0 -1
- package/dist/components/textarea/index.d.ts.map +0 -1
- package/dist/components/textarea/index.js.map +0 -1
- package/dist/components/textarea/textarea.d.ts.map +0 -1
- package/dist/components/textarea/textarea.js.map +0 -1
- package/dist/components/textarea/textarea.stories.js.map +0 -1
- package/dist/components/theme/index.d.ts.map +0 -1
- package/dist/components/theme/index.js.map +0 -1
- package/dist/components/theme/theme-provider.d.ts.map +0 -1
- package/dist/components/theme/theme-provider.js.map +0 -1
- package/dist/components/toast/index.d.ts.map +0 -1
- package/dist/components/toast/index.js.map +0 -1
- package/dist/components/toast/toast-custom.d.ts.map +0 -1
- package/dist/components/toast/toast-custom.js.map +0 -1
- package/dist/components/toast/toast.d.ts.map +0 -1
- package/dist/components/toast/toast.js.map +0 -1
- package/dist/components/toast/toast.stories.js.map +0 -1
- package/dist/components/tooltip/index.d.ts.map +0 -1
- package/dist/components/tooltip/index.js.map +0 -1
- package/dist/components/tooltip/tooltip.d.ts.map +0 -1
- package/dist/components/tooltip/tooltip.js.map +0 -1
- package/dist/components/tooltip/tooltip.stories.js.map +0 -1
- package/dist/components/typography/code.d.ts.map +0 -1
- package/dist/components/typography/code.js.map +0 -1
- package/dist/components/typography/code.stories.js.map +0 -1
- package/dist/components/typography/header.d.ts.map +0 -1
- package/dist/components/typography/header.js.map +0 -1
- package/dist/components/typography/header.stories.js.map +0 -1
- package/dist/components/typography/index.d.ts.map +0 -1
- package/dist/components/typography/index.js.map +0 -1
- package/dist/components/typography/text.d.ts.map +0 -1
- package/dist/components/typography/text.js.map +0 -1
- package/dist/components/typography/text.stories.js.map +0 -1
- package/dist/hooks/index.d.ts.map +0 -1
- package/dist/hooks/index.js.map +0 -1
- package/dist/hooks/useCopy.d.ts.map +0 -1
- package/dist/hooks/useCopy.js.map +0 -1
- package/dist/hooks/useCopyToClipboard.d.ts.map +0 -1
- package/dist/hooks/useCopyToClipboard.js.map +0 -1
- package/dist/hooks/useMediaQuery.d.ts.map +0 -1
- package/dist/hooks/useMediaQuery.js.map +0 -1
- package/dist/hooks/useResolvedTheme.d.ts.map +0 -1
- package/dist/hooks/useResolvedTheme.js.map +0 -1
- package/dist/hooks/useShikiHighlight.d.ts.map +0 -1
- package/dist/hooks/useShikiHighlight.js.map +0 -1
- package/dist/hooks/useShikiStyleInjection.d.ts.map +0 -1
- package/dist/hooks/useShikiStyleInjection.js.map +0 -1
- package/dist/hooks/useTheme.d.ts.map +0 -1
- package/dist/hooks/useTheme.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/onboarding/sign-in.stories.js.map +0 -1
- package/dist/state/theme.d.ts.map +0 -1
- package/dist/state/theme.js.map +0 -1
- package/dist/utils/avatar.d.ts.map +0 -1
- package/dist/utils/avatar.js.map +0 -1
- package/dist/utils/clipboard.d.ts.map +0 -1
- package/dist/utils/clipboard.js.map +0 -1
- package/dist/utils/cn.d.ts.map +0 -1
- package/dist/utils/cn.js.map +0 -1
- package/dist/utils/date.d.ts.map +0 -1
- package/dist/utils/date.js.map +0 -1
- package/dist/utils/debounce.d.ts.map +0 -1
- package/dist/utils/debounce.js.map +0 -1
- package/dist/utils/format/chart.d.ts.map +0 -1
- package/dist/utils/format/chart.js.map +0 -1
- package/dist/utils/format/date.d.ts.map +0 -1
- package/dist/utils/format/date.js.map +0 -1
- package/dist/utils/format/duration.d.ts.map +0 -1
- package/dist/utils/format/duration.js.map +0 -1
- package/dist/utils/format/index.d.ts.map +0 -1
- package/dist/utils/format/index.js.map +0 -1
- package/dist/utils/format/number.d.ts.map +0 -1
- package/dist/utils/format/number.js.map +0 -1
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/index.js.map +0 -1
- package/index.css +0 -970
- package/src/assets/illustration-1.svg +0 -92
- package/src/assets/illustration-2.svg +0 -14
- package/src/assets/illustration-gradient.svg +0 -7049
- package/src/build-css-entry.ts +0 -3
- package/src/colors.stories.conts.ts +0 -164
- package/src/colors.stories.tsx +0 -66
- package/src/components/alert/alert.stories.tsx +0 -178
- package/src/components/alert/alert.tsx +0 -291
- package/src/components/alert/index.ts +0 -1
- package/src/components/avatar/avatar-group.tsx +0 -186
- package/src/components/avatar/avatar.stories.tsx +0 -179
- package/src/components/avatar/avatar.tsx +0 -219
- package/src/components/avatar/index.ts +0 -2
- package/src/components/badge/badge.stories.tsx +0 -468
- package/src/components/badge/badge.tsx +0 -147
- package/src/components/badge/icon-badge.tsx +0 -43
- package/src/components/badge/index.ts +0 -4
- package/src/components/badge/status-badge.tsx +0 -43
- package/src/components/badge/user-badge.tsx +0 -34
- package/src/components/button/button-link.stories.tsx +0 -86
- package/src/components/button/button-link.tsx +0 -76
- package/src/components/button/button.stories.tsx +0 -138
- package/src/components/button/button.tsx +0 -91
- package/src/components/button/icon-button.stories.tsx +0 -228
- package/src/components/button/icon-button.tsx +0 -95
- package/src/components/button/index.ts +0 -3
- package/src/components/calendar/calendar.tsx +0 -90
- package/src/components/calendar/index.ts +0 -1
- package/src/components/checkbox/checkbox-label.tsx +0 -125
- package/src/components/checkbox/checkbox-links.tsx +0 -92
- package/src/components/checkbox/checkbox.stories.tsx +0 -391
- package/src/components/checkbox/checkbox.tsx +0 -71
- package/src/components/checkbox/index.ts +0 -3
- package/src/components/code-block/code-block-footer.tsx +0 -190
- package/src/components/code-block/code-block.stories.tsx +0 -323
- package/src/components/code-block/code-block.tsx +0 -283
- package/src/components/code-block/code-content.tsx +0 -63
- package/src/components/code-block/code-copy-button.tsx +0 -73
- package/src/components/code-block/code-tabs.tsx +0 -170
- package/src/components/code-block/index.ts +0 -3
- package/src/components/confetti/confetti.stories.tsx +0 -38
- package/src/components/confetti/confetti.tsx +0 -140
- package/src/components/confetti/index.ts +0 -1
- package/src/components/date-picker/date-picker.stories.tsx +0 -230
- package/src/components/date-picker/date-picker.tsx +0 -179
- package/src/components/date-picker/index.ts +0 -1
- package/src/components/date-time-range-picker/date-time-range-picker.tsx +0 -211
- package/src/components/date-time-range-picker/index.ts +0 -1
- package/src/components/dot-grid/dot-grid.tsx +0 -325
- package/src/components/dot-grid/index.ts +0 -1
- package/src/components/dropdown-menu/dropdown-menu.stories.tsx +0 -384
- package/src/components/dropdown-menu/dropdown-menu.tsx +0 -416
- package/src/components/dropdown-menu/index.ts +0 -1
- package/src/components/dynamic-item/dynamic-item.stories.tsx +0 -266
- package/src/components/dynamic-item/dynamic-item.tsx +0 -74
- package/src/components/dynamic-item/index.ts +0 -1
- package/src/components/form/form.stories.tsx +0 -500
- package/src/components/form/form.tsx +0 -154
- package/src/components/form/index.ts +0 -1
- package/src/components/icon/custom/badge.tsx +0 -17
- package/src/components/icon/custom/check-circle-solid.tsx +0 -24
- package/src/components/icon/custom/circle-dotted-line.tsx +0 -17
- package/src/components/icon/custom/component-fill.tsx +0 -17
- package/src/components/icon/custom/component-line.tsx +0 -17
- package/src/components/icon/custom/ellipse-mini-solid.tsx +0 -17
- package/src/components/icon/custom/index.ts +0 -14
- package/src/components/icon/custom/info-tooltip-fill.tsx +0 -21
- package/src/components/icon/custom/resize.tsx +0 -17
- package/src/components/icon/custom/shipfox-logo.tsx +0 -20
- package/src/components/icon/custom/slack-logo.tsx +0 -35
- package/src/components/icon/custom/spinner.tsx +0 -144
- package/src/components/icon/custom/stripe-logo.tsx +0 -27
- package/src/components/icon/custom/thunder.tsx +0 -17
- package/src/components/icon/custom/x-circle-solid.tsx +0 -24
- package/src/components/icon/icon.stories.tsx +0 -31
- package/src/components/icon/icon.tsx +0 -90
- package/src/components/icon/index.ts +0 -1
- package/src/components/icon/remixicon-registry.ts +0 -24
- package/src/components/index.ts +0 -29
- package/src/components/inline-tips/index.ts +0 -1
- package/src/components/inline-tips/inline-tips.stories.tsx +0 -131
- package/src/components/inline-tips/inline-tips.tsx +0 -132
- package/src/components/input/index.ts +0 -1
- package/src/components/input/input.stories.tsx +0 -138
- package/src/components/input/input.tsx +0 -43
- package/src/components/item/index.ts +0 -1
- package/src/components/item/item.stories.tsx +0 -159
- package/src/components/item/item.tsx +0 -182
- package/src/components/label/index.ts +0 -1
- package/src/components/label/label.stories.tsx +0 -67
- package/src/components/label/label.tsx +0 -15
- package/src/components/modal/index.ts +0 -1
- package/src/components/modal/modal.stories.tsx +0 -448
- package/src/components/modal/modal.tsx +0 -311
- package/src/components/moving-border/index.ts +0 -1
- package/src/components/moving-border/moving-border.tsx +0 -67
- package/src/components/popover/index.ts +0 -1
- package/src/components/popover/popover.tsx +0 -60
- package/src/components/renovate.json +0 -23
- package/src/components/shiny-text/index.ts +0 -1
- package/src/components/shiny-text/shiny-text.tsx +0 -21
- package/src/components/tabs/index.ts +0 -1
- package/src/components/tabs/tabs.stories.tsx +0 -100
- package/src/components/tabs/tabs.tsx +0 -380
- package/src/components/textarea/index.ts +0 -1
- package/src/components/textarea/textarea.stories.tsx +0 -196
- package/src/components/textarea/textarea.tsx +0 -42
- package/src/components/theme/index.ts +0 -1
- package/src/components/theme/theme-provider.tsx +0 -50
- package/src/components/toast/index.ts +0 -2
- package/src/components/toast/toast-custom.tsx +0 -154
- package/src/components/toast/toast.stories.tsx +0 -369
- package/src/components/toast/toast.tsx +0 -41
- package/src/components/tooltip/index.ts +0 -1
- package/src/components/tooltip/tooltip.stories.tsx +0 -284
- package/src/components/tooltip/tooltip.tsx +0 -121
- package/src/components/typography/code.stories.tsx +0 -36
- package/src/components/typography/code.tsx +0 -38
- package/src/components/typography/header.stories.tsx +0 -27
- package/src/components/typography/header.tsx +0 -41
- package/src/components/typography/index.ts +0 -3
- package/src/components/typography/text.stories.tsx +0 -67
- package/src/components/typography/text.tsx +0 -50
- package/src/hooks/index.ts +0 -6
- package/src/hooks/useCopy.ts +0 -0
- package/src/hooks/useCopyToClipboard.ts +0 -20
- package/src/hooks/useMediaQuery.ts +0 -87
- package/src/hooks/useResolvedTheme.ts +0 -34
- package/src/hooks/useShikiHighlight.ts +0 -140
- package/src/hooks/useShikiStyleInjection.ts +0 -34
- package/src/hooks/useTheme.ts +0 -10
- package/src/index.ts +0 -4
- package/src/onboarding/sign-in.stories.tsx +0 -85
- package/src/state/theme.ts +0 -15
- package/src/utils/avatar.ts +0 -27
- package/src/utils/clipboard.ts +0 -4
- package/src/utils/cn.ts +0 -6
- package/src/utils/date.test.ts +0 -119
- package/src/utils/date.ts +0 -99
- package/src/utils/debounce.ts +0 -15
- package/src/utils/format/chart.ts +0 -16
- package/src/utils/format/date.test.ts +0 -65
- package/src/utils/format/date.ts +0 -75
- package/src/utils/format/duration.test.ts +0 -58
- package/src/utils/format/duration.ts +0 -82
- package/src/utils/format/index.ts +0 -4
- package/src/utils/format/number.test.ts +0 -38
- package/src/utils/format/number.ts +0 -33
- package/src/utils/index.ts +0 -6
- package/test/global.ts +0 -3
- package/test/setup.ts +0 -9
- package/tsconfig.build.json +0 -19
- package/tsconfig.json +0 -11
- package/tsconfig.test.json +0 -12
- package/vercel.json +0 -8
- package/vite.css.config.ts +0 -30
- package/vitest.config.ts +0 -44
|
@@ -0,0 +1,644 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useState } from 'react';
|
|
3
|
+
import { Button } from '../button/index.js';
|
|
4
|
+
import { Icon } from '../icon/index.js';
|
|
5
|
+
import { Input } from '../input/index.js';
|
|
6
|
+
import { Popover, PopoverContent, PopoverTrigger } from '../popover/index.js';
|
|
7
|
+
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '../select/index.js';
|
|
8
|
+
import { Textarea } from '../textarea/index.js';
|
|
9
|
+
import { Code, Header } from '../typography/index.js';
|
|
10
|
+
import { ButtonGroup, ButtonGroupSeparator, ButtonGroupText } from './button-group.js';
|
|
11
|
+
const meta = {
|
|
12
|
+
title: 'Components/ButtonGroup',
|
|
13
|
+
component: ButtonGroup,
|
|
14
|
+
tags: [
|
|
15
|
+
'autodocs'
|
|
16
|
+
],
|
|
17
|
+
parameters: {
|
|
18
|
+
docs: {
|
|
19
|
+
description: {
|
|
20
|
+
component: 'A container that groups related buttons together with consistent styling. Automatically styles Button, Input, Select, and Textarea children without requiring manual className overrides. Separators are recommended for visual hierarchy.'
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
argTypes: {
|
|
25
|
+
orientation: {
|
|
26
|
+
control: 'select',
|
|
27
|
+
options: [
|
|
28
|
+
'horizontal',
|
|
29
|
+
'vertical'
|
|
30
|
+
],
|
|
31
|
+
description: 'The orientation of the button group',
|
|
32
|
+
defaultValue: 'horizontal'
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
export default meta;
|
|
37
|
+
function SelectExample() {
|
|
38
|
+
const [currency, setCurrency] = useState('$');
|
|
39
|
+
return /*#__PURE__*/ _jsxs("div", {
|
|
40
|
+
className: "inline-flex gap-8",
|
|
41
|
+
children: [
|
|
42
|
+
/*#__PURE__*/ _jsxs(ButtonGroup, {
|
|
43
|
+
className: "w-280",
|
|
44
|
+
"aria-label": "Currency converter",
|
|
45
|
+
children: [
|
|
46
|
+
/*#__PURE__*/ _jsxs(Select, {
|
|
47
|
+
value: currency,
|
|
48
|
+
onValueChange: setCurrency,
|
|
49
|
+
children: [
|
|
50
|
+
/*#__PURE__*/ _jsx(SelectTrigger, {
|
|
51
|
+
className: "w-80 font-mono text-foreground-neutral-subtle",
|
|
52
|
+
"aria-label": "Select currency",
|
|
53
|
+
children: /*#__PURE__*/ _jsx(SelectValue, {})
|
|
54
|
+
}),
|
|
55
|
+
/*#__PURE__*/ _jsxs(SelectContent, {
|
|
56
|
+
align: "start",
|
|
57
|
+
children: [
|
|
58
|
+
/*#__PURE__*/ _jsx(SelectItem, {
|
|
59
|
+
value: "$",
|
|
60
|
+
children: "$ USD"
|
|
61
|
+
}),
|
|
62
|
+
/*#__PURE__*/ _jsx(SelectItem, {
|
|
63
|
+
value: "€",
|
|
64
|
+
children: "€ EUR"
|
|
65
|
+
}),
|
|
66
|
+
/*#__PURE__*/ _jsx(SelectItem, {
|
|
67
|
+
value: "£",
|
|
68
|
+
children: "£ GBP"
|
|
69
|
+
}),
|
|
70
|
+
/*#__PURE__*/ _jsx(SelectItem, {
|
|
71
|
+
value: "¥",
|
|
72
|
+
children: "¥ JPY"
|
|
73
|
+
})
|
|
74
|
+
]
|
|
75
|
+
})
|
|
76
|
+
]
|
|
77
|
+
}),
|
|
78
|
+
/*#__PURE__*/ _jsx(ButtonGroupSeparator, {}),
|
|
79
|
+
/*#__PURE__*/ _jsx(Input, {
|
|
80
|
+
placeholder: "10.00",
|
|
81
|
+
pattern: "[0-9]*",
|
|
82
|
+
"aria-label": "Amount"
|
|
83
|
+
})
|
|
84
|
+
]
|
|
85
|
+
}),
|
|
86
|
+
/*#__PURE__*/ _jsx(ButtonGroup, {
|
|
87
|
+
"aria-label": "Send action",
|
|
88
|
+
children: /*#__PURE__*/ _jsx(Button, {
|
|
89
|
+
variant: "secondary",
|
|
90
|
+
"aria-label": "Send",
|
|
91
|
+
children: /*#__PURE__*/ _jsx(Icon, {
|
|
92
|
+
name: "arrowRightLine",
|
|
93
|
+
className: "size-16 text-foreground-neutral-subtle"
|
|
94
|
+
})
|
|
95
|
+
})
|
|
96
|
+
})
|
|
97
|
+
]
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
function PopoverExample() {
|
|
101
|
+
const [open, setOpen] = useState(false);
|
|
102
|
+
return /*#__PURE__*/ _jsxs(ButtonGroup, {
|
|
103
|
+
"aria-label": "Copilot actions",
|
|
104
|
+
children: [
|
|
105
|
+
/*#__PURE__*/ _jsxs(ButtonGroupText, {
|
|
106
|
+
children: [
|
|
107
|
+
/*#__PURE__*/ _jsx(Icon, {
|
|
108
|
+
name: "sparklingLine",
|
|
109
|
+
className: "size-16"
|
|
110
|
+
}),
|
|
111
|
+
"Copilot"
|
|
112
|
+
]
|
|
113
|
+
}),
|
|
114
|
+
/*#__PURE__*/ _jsx(ButtonGroupSeparator, {}),
|
|
115
|
+
/*#__PURE__*/ _jsxs(Popover, {
|
|
116
|
+
open: open,
|
|
117
|
+
onOpenChange: setOpen,
|
|
118
|
+
children: [
|
|
119
|
+
/*#__PURE__*/ _jsx(PopoverTrigger, {
|
|
120
|
+
asChild: true,
|
|
121
|
+
children: /*#__PURE__*/ _jsx(Button, {
|
|
122
|
+
variant: "secondary",
|
|
123
|
+
size: "sm",
|
|
124
|
+
className: "!text-foreground-neutral-subtle",
|
|
125
|
+
"aria-label": "Open Copilot options",
|
|
126
|
+
children: /*#__PURE__*/ _jsx(Icon, {
|
|
127
|
+
name: "arrowDownSLine",
|
|
128
|
+
className: "size-16"
|
|
129
|
+
})
|
|
130
|
+
})
|
|
131
|
+
}),
|
|
132
|
+
/*#__PURE__*/ _jsxs(PopoverContent, {
|
|
133
|
+
align: "end",
|
|
134
|
+
className: "w-320 p-0 rounded-12",
|
|
135
|
+
children: [
|
|
136
|
+
/*#__PURE__*/ _jsx("div", {
|
|
137
|
+
className: "px-16 py-12 border-b border-border-neutral-strong",
|
|
138
|
+
children: /*#__PURE__*/ _jsx(Header, {
|
|
139
|
+
variant: "h4",
|
|
140
|
+
className: "text-sm font-medium",
|
|
141
|
+
children: "Agent Tasks"
|
|
142
|
+
})
|
|
143
|
+
}),
|
|
144
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
145
|
+
className: "p-16 flex flex-col gap-12",
|
|
146
|
+
children: [
|
|
147
|
+
/*#__PURE__*/ _jsx(Textarea, {
|
|
148
|
+
placeholder: "Describe your task in natural language.",
|
|
149
|
+
className: "min-h-80 resize-none",
|
|
150
|
+
"aria-label": "Task description"
|
|
151
|
+
}),
|
|
152
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
153
|
+
className: "flex flex-col gap-8",
|
|
154
|
+
children: [
|
|
155
|
+
/*#__PURE__*/ _jsx(Code, {
|
|
156
|
+
variant: "label",
|
|
157
|
+
className: "font-medium text-foreground-neutral-base",
|
|
158
|
+
children: "Start a new task with Copilot"
|
|
159
|
+
}),
|
|
160
|
+
/*#__PURE__*/ _jsx(Code, {
|
|
161
|
+
variant: "paragraph",
|
|
162
|
+
className: "text-foreground-neutral-subtle text-xs",
|
|
163
|
+
children: "Describe your task in natural language. Copilot will work in the background and open a pull request for your review."
|
|
164
|
+
})
|
|
165
|
+
]
|
|
166
|
+
})
|
|
167
|
+
]
|
|
168
|
+
})
|
|
169
|
+
]
|
|
170
|
+
})
|
|
171
|
+
]
|
|
172
|
+
})
|
|
173
|
+
]
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
export const Default = {
|
|
177
|
+
render: ()=>/*#__PURE__*/ _jsxs("div", {
|
|
178
|
+
className: "flex flex-col gap-24",
|
|
179
|
+
children: [
|
|
180
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
181
|
+
className: "flex flex-col gap-8",
|
|
182
|
+
children: [
|
|
183
|
+
/*#__PURE__*/ _jsx(Code, {
|
|
184
|
+
variant: "label",
|
|
185
|
+
className: "text-foreground-neutral-subtle",
|
|
186
|
+
children: "Basic Button Group"
|
|
187
|
+
}),
|
|
188
|
+
/*#__PURE__*/ _jsxs(ButtonGroup, {
|
|
189
|
+
"aria-label": "Playback controls",
|
|
190
|
+
children: [
|
|
191
|
+
/*#__PURE__*/ _jsx(Button, {
|
|
192
|
+
variant: "secondary",
|
|
193
|
+
size: "sm",
|
|
194
|
+
"aria-label": "Rewind",
|
|
195
|
+
children: /*#__PURE__*/ _jsx(Icon, {
|
|
196
|
+
name: "rewindFill",
|
|
197
|
+
className: "size-14 text-foreground-neutral-subtle"
|
|
198
|
+
})
|
|
199
|
+
}),
|
|
200
|
+
/*#__PURE__*/ _jsx(ButtonGroupSeparator, {}),
|
|
201
|
+
/*#__PURE__*/ _jsx(Button, {
|
|
202
|
+
variant: "secondary",
|
|
203
|
+
size: "sm",
|
|
204
|
+
"aria-label": "Play",
|
|
205
|
+
children: /*#__PURE__*/ _jsx(Icon, {
|
|
206
|
+
name: "playFill",
|
|
207
|
+
className: "size-14 text-foreground-neutral-subtle"
|
|
208
|
+
})
|
|
209
|
+
}),
|
|
210
|
+
/*#__PURE__*/ _jsx(ButtonGroupSeparator, {}),
|
|
211
|
+
/*#__PURE__*/ _jsx(Button, {
|
|
212
|
+
variant: "secondary",
|
|
213
|
+
size: "sm",
|
|
214
|
+
"aria-label": "Speed",
|
|
215
|
+
children: /*#__PURE__*/ _jsx(Icon, {
|
|
216
|
+
name: "speedFill",
|
|
217
|
+
className: "size-14 text-foreground-neutral-subtle"
|
|
218
|
+
})
|
|
219
|
+
})
|
|
220
|
+
]
|
|
221
|
+
})
|
|
222
|
+
]
|
|
223
|
+
}),
|
|
224
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
225
|
+
className: "flex flex-col gap-12",
|
|
226
|
+
children: [
|
|
227
|
+
/*#__PURE__*/ _jsx(Code, {
|
|
228
|
+
variant: "label",
|
|
229
|
+
className: "text-foreground-neutral-subtle",
|
|
230
|
+
children: "Sizes"
|
|
231
|
+
}),
|
|
232
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
233
|
+
className: "flex flex-col gap-8",
|
|
234
|
+
children: [
|
|
235
|
+
/*#__PURE__*/ _jsxs(ButtonGroup, {
|
|
236
|
+
"aria-label": "Small buttons",
|
|
237
|
+
children: [
|
|
238
|
+
/*#__PURE__*/ _jsx(Button, {
|
|
239
|
+
variant: "secondary",
|
|
240
|
+
size: "sm",
|
|
241
|
+
"aria-label": "Cut",
|
|
242
|
+
children: /*#__PURE__*/ _jsx(Icon, {
|
|
243
|
+
name: "rewindFill",
|
|
244
|
+
className: "size-14 text-foreground-neutral-subtle"
|
|
245
|
+
})
|
|
246
|
+
}),
|
|
247
|
+
/*#__PURE__*/ _jsx(ButtonGroupSeparator, {}),
|
|
248
|
+
/*#__PURE__*/ _jsx(Button, {
|
|
249
|
+
variant: "secondary",
|
|
250
|
+
size: "sm",
|
|
251
|
+
"aria-label": "Copy",
|
|
252
|
+
children: /*#__PURE__*/ _jsx(Icon, {
|
|
253
|
+
name: "playFill",
|
|
254
|
+
className: "size-14 text-foreground-neutral-subtle"
|
|
255
|
+
})
|
|
256
|
+
}),
|
|
257
|
+
/*#__PURE__*/ _jsx(ButtonGroupSeparator, {}),
|
|
258
|
+
/*#__PURE__*/ _jsx(Button, {
|
|
259
|
+
variant: "secondary",
|
|
260
|
+
size: "sm",
|
|
261
|
+
"aria-label": "Paste",
|
|
262
|
+
children: /*#__PURE__*/ _jsx(Icon, {
|
|
263
|
+
name: "speedFill",
|
|
264
|
+
className: "size-14 text-foreground-neutral-subtle"
|
|
265
|
+
})
|
|
266
|
+
})
|
|
267
|
+
]
|
|
268
|
+
}),
|
|
269
|
+
/*#__PURE__*/ _jsxs(ButtonGroup, {
|
|
270
|
+
"aria-label": "Medium buttons",
|
|
271
|
+
children: [
|
|
272
|
+
/*#__PURE__*/ _jsx(Button, {
|
|
273
|
+
variant: "secondary",
|
|
274
|
+
size: "md",
|
|
275
|
+
"aria-label": "Cut",
|
|
276
|
+
children: /*#__PURE__*/ _jsx(Icon, {
|
|
277
|
+
name: "rewindFill",
|
|
278
|
+
className: "size-16 text-foreground-neutral-subtle"
|
|
279
|
+
})
|
|
280
|
+
}),
|
|
281
|
+
/*#__PURE__*/ _jsx(ButtonGroupSeparator, {}),
|
|
282
|
+
/*#__PURE__*/ _jsx(Button, {
|
|
283
|
+
variant: "secondary",
|
|
284
|
+
size: "md",
|
|
285
|
+
"aria-label": "Copy",
|
|
286
|
+
children: /*#__PURE__*/ _jsx(Icon, {
|
|
287
|
+
name: "playFill",
|
|
288
|
+
className: "size-16 text-foreground-neutral-subtle"
|
|
289
|
+
})
|
|
290
|
+
}),
|
|
291
|
+
/*#__PURE__*/ _jsx(ButtonGroupSeparator, {}),
|
|
292
|
+
/*#__PURE__*/ _jsx(Button, {
|
|
293
|
+
variant: "secondary",
|
|
294
|
+
size: "md",
|
|
295
|
+
"aria-label": "Paste",
|
|
296
|
+
children: /*#__PURE__*/ _jsx(Icon, {
|
|
297
|
+
name: "speedFill",
|
|
298
|
+
className: "size-16 text-foreground-neutral-subtle"
|
|
299
|
+
})
|
|
300
|
+
})
|
|
301
|
+
]
|
|
302
|
+
}),
|
|
303
|
+
/*#__PURE__*/ _jsxs(ButtonGroup, {
|
|
304
|
+
"aria-label": "Large buttons",
|
|
305
|
+
children: [
|
|
306
|
+
/*#__PURE__*/ _jsx(Button, {
|
|
307
|
+
variant: "secondary",
|
|
308
|
+
size: "lg",
|
|
309
|
+
"aria-label": "Cut",
|
|
310
|
+
children: /*#__PURE__*/ _jsx(Icon, {
|
|
311
|
+
name: "rewindFill",
|
|
312
|
+
className: "size-16 text-foreground-neutral-subtle"
|
|
313
|
+
})
|
|
314
|
+
}),
|
|
315
|
+
/*#__PURE__*/ _jsx(ButtonGroupSeparator, {}),
|
|
316
|
+
/*#__PURE__*/ _jsx(Button, {
|
|
317
|
+
variant: "secondary",
|
|
318
|
+
size: "lg",
|
|
319
|
+
"aria-label": "Copy",
|
|
320
|
+
children: /*#__PURE__*/ _jsx(Icon, {
|
|
321
|
+
name: "playFill",
|
|
322
|
+
className: "size-16 text-foreground-neutral-subtle"
|
|
323
|
+
})
|
|
324
|
+
}),
|
|
325
|
+
/*#__PURE__*/ _jsx(ButtonGroupSeparator, {}),
|
|
326
|
+
/*#__PURE__*/ _jsx(Button, {
|
|
327
|
+
variant: "secondary",
|
|
328
|
+
size: "lg",
|
|
329
|
+
"aria-label": "Paste",
|
|
330
|
+
children: /*#__PURE__*/ _jsx(Icon, {
|
|
331
|
+
name: "speedFill",
|
|
332
|
+
className: "size-16 text-foreground-neutral-subtle"
|
|
333
|
+
})
|
|
334
|
+
})
|
|
335
|
+
]
|
|
336
|
+
})
|
|
337
|
+
]
|
|
338
|
+
})
|
|
339
|
+
]
|
|
340
|
+
}),
|
|
341
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
342
|
+
className: "flex flex-col gap-8",
|
|
343
|
+
children: [
|
|
344
|
+
/*#__PURE__*/ _jsx(Code, {
|
|
345
|
+
variant: "label",
|
|
346
|
+
className: "text-foreground-neutral-subtle",
|
|
347
|
+
children: "Orientation"
|
|
348
|
+
}),
|
|
349
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
350
|
+
className: "flex gap-24 items-start",
|
|
351
|
+
children: [
|
|
352
|
+
/*#__PURE__*/ _jsxs(ButtonGroup, {
|
|
353
|
+
"aria-label": "Horizontal",
|
|
354
|
+
children: [
|
|
355
|
+
/*#__PURE__*/ _jsx(Button, {
|
|
356
|
+
variant: "secondary",
|
|
357
|
+
size: "sm",
|
|
358
|
+
"aria-label": "Zoom in",
|
|
359
|
+
children: /*#__PURE__*/ _jsx(Icon, {
|
|
360
|
+
name: "addLine",
|
|
361
|
+
className: "size-16 text-foreground-neutral-subtle"
|
|
362
|
+
})
|
|
363
|
+
}),
|
|
364
|
+
/*#__PURE__*/ _jsx(ButtonGroupSeparator, {}),
|
|
365
|
+
/*#__PURE__*/ _jsx(Button, {
|
|
366
|
+
variant: "secondary",
|
|
367
|
+
size: "sm",
|
|
368
|
+
"aria-label": "Zoom out",
|
|
369
|
+
children: /*#__PURE__*/ _jsx(Icon, {
|
|
370
|
+
name: "subtractLine",
|
|
371
|
+
className: "size-16 text-foreground-neutral-subtle"
|
|
372
|
+
})
|
|
373
|
+
})
|
|
374
|
+
]
|
|
375
|
+
}),
|
|
376
|
+
/*#__PURE__*/ _jsxs(ButtonGroup, {
|
|
377
|
+
orientation: "vertical",
|
|
378
|
+
className: "h-fit w-fit",
|
|
379
|
+
"aria-label": "Vertical",
|
|
380
|
+
children: [
|
|
381
|
+
/*#__PURE__*/ _jsx(Button, {
|
|
382
|
+
variant: "secondary",
|
|
383
|
+
size: "sm",
|
|
384
|
+
"aria-label": "Increase",
|
|
385
|
+
children: /*#__PURE__*/ _jsx(Icon, {
|
|
386
|
+
name: "addLine",
|
|
387
|
+
className: "size-16 text-foreground-neutral-subtle"
|
|
388
|
+
})
|
|
389
|
+
}),
|
|
390
|
+
/*#__PURE__*/ _jsx(ButtonGroupSeparator, {
|
|
391
|
+
orientation: "horizontal"
|
|
392
|
+
}),
|
|
393
|
+
/*#__PURE__*/ _jsx(Button, {
|
|
394
|
+
variant: "secondary",
|
|
395
|
+
size: "sm",
|
|
396
|
+
"aria-label": "Decrease",
|
|
397
|
+
children: /*#__PURE__*/ _jsx(Icon, {
|
|
398
|
+
name: "subtractLine",
|
|
399
|
+
className: "size-16 text-foreground-neutral-subtle"
|
|
400
|
+
})
|
|
401
|
+
})
|
|
402
|
+
]
|
|
403
|
+
})
|
|
404
|
+
]
|
|
405
|
+
})
|
|
406
|
+
]
|
|
407
|
+
}),
|
|
408
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
409
|
+
className: "flex flex-col gap-8",
|
|
410
|
+
children: [
|
|
411
|
+
/*#__PURE__*/ _jsx(Code, {
|
|
412
|
+
variant: "label",
|
|
413
|
+
className: "text-foreground-neutral-subtle",
|
|
414
|
+
children: "Split Button"
|
|
415
|
+
}),
|
|
416
|
+
/*#__PURE__*/ _jsxs(ButtonGroup, {
|
|
417
|
+
"aria-label": "Save actions",
|
|
418
|
+
children: [
|
|
419
|
+
/*#__PURE__*/ _jsx(Button, {
|
|
420
|
+
variant: "secondary",
|
|
421
|
+
size: "sm",
|
|
422
|
+
className: " !text-foreground-neutral-subtle",
|
|
423
|
+
children: "Save"
|
|
424
|
+
}),
|
|
425
|
+
/*#__PURE__*/ _jsx(ButtonGroupSeparator, {}),
|
|
426
|
+
/*#__PURE__*/ _jsx(Button, {
|
|
427
|
+
variant: "secondary",
|
|
428
|
+
size: "sm",
|
|
429
|
+
"aria-label": "More options",
|
|
430
|
+
children: /*#__PURE__*/ _jsx(Icon, {
|
|
431
|
+
name: "arrowDownSLine",
|
|
432
|
+
className: "size-16 text-foreground-neutral-subtle"
|
|
433
|
+
})
|
|
434
|
+
})
|
|
435
|
+
]
|
|
436
|
+
})
|
|
437
|
+
]
|
|
438
|
+
}),
|
|
439
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
440
|
+
className: "flex flex-col gap-8",
|
|
441
|
+
children: [
|
|
442
|
+
/*#__PURE__*/ _jsx(Code, {
|
|
443
|
+
variant: "label",
|
|
444
|
+
className: "text-foreground-neutral-subtle",
|
|
445
|
+
children: "With Input"
|
|
446
|
+
}),
|
|
447
|
+
/*#__PURE__*/ _jsxs(ButtonGroup, {
|
|
448
|
+
className: "w-320",
|
|
449
|
+
"aria-label": "Search",
|
|
450
|
+
children: [
|
|
451
|
+
/*#__PURE__*/ _jsx(Input, {
|
|
452
|
+
placeholder: "Search...",
|
|
453
|
+
"aria-label": "Search input"
|
|
454
|
+
}),
|
|
455
|
+
/*#__PURE__*/ _jsx(ButtonGroupSeparator, {}),
|
|
456
|
+
/*#__PURE__*/ _jsx(Button, {
|
|
457
|
+
variant: "secondary",
|
|
458
|
+
"aria-label": "Submit search",
|
|
459
|
+
children: /*#__PURE__*/ _jsx(Icon, {
|
|
460
|
+
name: "searchLine",
|
|
461
|
+
className: "size-16 text-foreground-neutral-subtle"
|
|
462
|
+
})
|
|
463
|
+
})
|
|
464
|
+
]
|
|
465
|
+
})
|
|
466
|
+
]
|
|
467
|
+
}),
|
|
468
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
469
|
+
className: "flex flex-col gap-8",
|
|
470
|
+
children: [
|
|
471
|
+
/*#__PURE__*/ _jsx(Code, {
|
|
472
|
+
variant: "label",
|
|
473
|
+
className: "text-foreground-neutral-subtle",
|
|
474
|
+
children: "Quantity Selector"
|
|
475
|
+
}),
|
|
476
|
+
/*#__PURE__*/ _jsxs(ButtonGroup, {
|
|
477
|
+
className: "w-280",
|
|
478
|
+
"aria-label": "Quantity selector",
|
|
479
|
+
children: [
|
|
480
|
+
/*#__PURE__*/ _jsx(Button, {
|
|
481
|
+
variant: "secondary",
|
|
482
|
+
"aria-label": "Decrease",
|
|
483
|
+
children: /*#__PURE__*/ _jsx(Icon, {
|
|
484
|
+
name: "subtractLine",
|
|
485
|
+
className: "size-16 text-foreground-neutral-subtle"
|
|
486
|
+
})
|
|
487
|
+
}),
|
|
488
|
+
/*#__PURE__*/ _jsx(ButtonGroupSeparator, {}),
|
|
489
|
+
/*#__PURE__*/ _jsx(Input, {
|
|
490
|
+
placeholder: "1",
|
|
491
|
+
className: "text-center",
|
|
492
|
+
"aria-label": "Quantity"
|
|
493
|
+
}),
|
|
494
|
+
/*#__PURE__*/ _jsx(ButtonGroupSeparator, {}),
|
|
495
|
+
/*#__PURE__*/ _jsx(Button, {
|
|
496
|
+
variant: "secondary",
|
|
497
|
+
"aria-label": "Increase",
|
|
498
|
+
children: /*#__PURE__*/ _jsx(Icon, {
|
|
499
|
+
name: "addLine",
|
|
500
|
+
className: "size-16 text-foreground-neutral-subtle"
|
|
501
|
+
})
|
|
502
|
+
})
|
|
503
|
+
]
|
|
504
|
+
})
|
|
505
|
+
]
|
|
506
|
+
}),
|
|
507
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
508
|
+
className: "flex flex-col gap-8",
|
|
509
|
+
children: [
|
|
510
|
+
/*#__PURE__*/ _jsx(Code, {
|
|
511
|
+
variant: "label",
|
|
512
|
+
className: "text-foreground-neutral-subtle",
|
|
513
|
+
children: "With Select"
|
|
514
|
+
}),
|
|
515
|
+
/*#__PURE__*/ _jsx(SelectExample, {})
|
|
516
|
+
]
|
|
517
|
+
}),
|
|
518
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
519
|
+
className: "flex flex-col gap-8",
|
|
520
|
+
children: [
|
|
521
|
+
/*#__PURE__*/ _jsx(Code, {
|
|
522
|
+
variant: "label",
|
|
523
|
+
className: "text-foreground-neutral-subtle",
|
|
524
|
+
children: "With Popover"
|
|
525
|
+
}),
|
|
526
|
+
/*#__PURE__*/ _jsx(PopoverExample, {})
|
|
527
|
+
]
|
|
528
|
+
}),
|
|
529
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
530
|
+
className: "flex flex-col gap-8",
|
|
531
|
+
children: [
|
|
532
|
+
/*#__PURE__*/ _jsx(Code, {
|
|
533
|
+
variant: "label",
|
|
534
|
+
className: "text-foreground-neutral-subtle",
|
|
535
|
+
children: "Nested Groups"
|
|
536
|
+
}),
|
|
537
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
538
|
+
className: "inline-flex gap-8",
|
|
539
|
+
children: [
|
|
540
|
+
/*#__PURE__*/ _jsxs(ButtonGroup, {
|
|
541
|
+
"aria-label": "Page selection",
|
|
542
|
+
children: [
|
|
543
|
+
/*#__PURE__*/ _jsx(Button, {
|
|
544
|
+
variant: "transparent",
|
|
545
|
+
className: "w-42 !text-foreground-neutral-subtle",
|
|
546
|
+
"aria-label": "Page 1",
|
|
547
|
+
children: "1"
|
|
548
|
+
}),
|
|
549
|
+
/*#__PURE__*/ _jsx(ButtonGroupSeparator, {}),
|
|
550
|
+
/*#__PURE__*/ _jsx(Button, {
|
|
551
|
+
variant: "transparent",
|
|
552
|
+
className: "w-42 !text-foreground-neutral-subtle",
|
|
553
|
+
"aria-label": "Page 2",
|
|
554
|
+
children: "2"
|
|
555
|
+
}),
|
|
556
|
+
/*#__PURE__*/ _jsx(ButtonGroupSeparator, {}),
|
|
557
|
+
/*#__PURE__*/ _jsx(Button, {
|
|
558
|
+
variant: "transparent",
|
|
559
|
+
className: "w-42 !text-foreground-neutral-subtle",
|
|
560
|
+
"aria-label": "Page 3",
|
|
561
|
+
children: "3"
|
|
562
|
+
}),
|
|
563
|
+
/*#__PURE__*/ _jsx(ButtonGroupSeparator, {}),
|
|
564
|
+
/*#__PURE__*/ _jsx(Button, {
|
|
565
|
+
variant: "transparent",
|
|
566
|
+
className: "w-42 !text-foreground-neutral-subtle",
|
|
567
|
+
"aria-label": "Page 4",
|
|
568
|
+
children: "4"
|
|
569
|
+
}),
|
|
570
|
+
/*#__PURE__*/ _jsx(ButtonGroupSeparator, {}),
|
|
571
|
+
/*#__PURE__*/ _jsx(Button, {
|
|
572
|
+
variant: "transparent",
|
|
573
|
+
className: "w-42 !text-foreground-neutral-subtle",
|
|
574
|
+
"aria-label": "Page 5",
|
|
575
|
+
children: "5"
|
|
576
|
+
})
|
|
577
|
+
]
|
|
578
|
+
}),
|
|
579
|
+
/*#__PURE__*/ _jsxs(ButtonGroup, {
|
|
580
|
+
"aria-label": "Pagination controls",
|
|
581
|
+
children: [
|
|
582
|
+
/*#__PURE__*/ _jsx(Button, {
|
|
583
|
+
variant: "transparent",
|
|
584
|
+
"aria-label": "Previous page",
|
|
585
|
+
children: /*#__PURE__*/ _jsx(Icon, {
|
|
586
|
+
name: "arrowLeftSLine",
|
|
587
|
+
className: "size-16 text-foreground-neutral-subtle"
|
|
588
|
+
})
|
|
589
|
+
}),
|
|
590
|
+
/*#__PURE__*/ _jsx(ButtonGroupSeparator, {}),
|
|
591
|
+
/*#__PURE__*/ _jsx(Button, {
|
|
592
|
+
variant: "transparent",
|
|
593
|
+
"aria-label": "Next page",
|
|
594
|
+
children: /*#__PURE__*/ _jsx(Icon, {
|
|
595
|
+
name: "arrowRightSLine",
|
|
596
|
+
className: "size-16 text-foreground-neutral-subtle"
|
|
597
|
+
})
|
|
598
|
+
})
|
|
599
|
+
]
|
|
600
|
+
})
|
|
601
|
+
]
|
|
602
|
+
})
|
|
603
|
+
]
|
|
604
|
+
}),
|
|
605
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
606
|
+
className: "flex flex-col gap-8",
|
|
607
|
+
children: [
|
|
608
|
+
/*#__PURE__*/ _jsx(Code, {
|
|
609
|
+
variant: "label",
|
|
610
|
+
className: "text-foreground-neutral-subtle",
|
|
611
|
+
children: "Disabled State"
|
|
612
|
+
}),
|
|
613
|
+
/*#__PURE__*/ _jsxs(ButtonGroup, {
|
|
614
|
+
"aria-label": "Button group with disabled state",
|
|
615
|
+
children: [
|
|
616
|
+
/*#__PURE__*/ _jsx(Button, {
|
|
617
|
+
variant: "secondary",
|
|
618
|
+
size: "sm",
|
|
619
|
+
className: " !text-foreground-neutral-subtle",
|
|
620
|
+
children: "Enabled"
|
|
621
|
+
}),
|
|
622
|
+
/*#__PURE__*/ _jsx(ButtonGroupSeparator, {}),
|
|
623
|
+
/*#__PURE__*/ _jsx(Button, {
|
|
624
|
+
variant: "secondary",
|
|
625
|
+
size: "sm",
|
|
626
|
+
disabled: true,
|
|
627
|
+
children: "Disabled"
|
|
628
|
+
}),
|
|
629
|
+
/*#__PURE__*/ _jsx(ButtonGroupSeparator, {}),
|
|
630
|
+
/*#__PURE__*/ _jsx(Button, {
|
|
631
|
+
variant: "secondary",
|
|
632
|
+
size: "sm",
|
|
633
|
+
className: " !text-foreground-neutral-subtle",
|
|
634
|
+
children: "Enabled"
|
|
635
|
+
})
|
|
636
|
+
]
|
|
637
|
+
})
|
|
638
|
+
]
|
|
639
|
+
})
|
|
640
|
+
]
|
|
641
|
+
})
|
|
642
|
+
};
|
|
643
|
+
|
|
644
|
+
//# sourceMappingURL=button-group.stories.js.map
|