@shipfox/react-ui 0.15.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/button-group/button-group.stories.js +4 -4
- 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/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-sidebar.d.ts +19 -0
- package/dist/components/dashboard/components/mobile-sidebar.js +50 -0
- package/dist/components/dashboard/components/organization-selector.d.ts +24 -1
- package/dist/components/dashboard/components/organization-selector.js +93 -70
- package/dist/components/dashboard/components/sidebar.d.ts +24 -0
- package/dist/components/dashboard/components/sidebar.js +218 -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 +27 -1
- package/dist/components/dashboard/dashboard.js +76 -36
- 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 +25 -1
- package/dist/components/dashboard/index.js +22 -1
- 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/index.d.ts +1 -0
- package/dist/components/index.js +1 -0
- package/dist/components/modal/modal.js +3 -3
- package/dist/components/search/search-inline.js +1 -1
- package/dist/components/search/search-modal.js +13 -7
- package/dist/components/select/select.d.ts +3 -1
- package/dist/components/select/select.js +2 -1
- 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/table/data-table.d.ts +15 -2
- package/dist/components/table/data-table.js +7 -2
- package/dist/styles.css +1 -1
- package/package.json +12 -4
- package/.storybook/main.ts +0 -35
- package/.storybook/preview.tsx +0 -66
- 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 -114
- 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/button-group/button-group.d.ts.map +0 -1
- package/dist/components/button-group/button-group.js.map +0 -1
- package/dist/components/button-group/button-group.stories.js.map +0 -1
- package/dist/components/button-group/index.d.ts.map +0 -1
- package/dist/components/button-group/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/command/command.d.ts.map +0 -1
- package/dist/components/command/command.js.map +0 -1
- package/dist/components/command/command.stories.js.map +0 -1
- package/dist/components/command/index.d.ts.map +0 -1
- package/dist/components/command/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/dashboard/components/analytics-content.d.ts +0 -2
- package/dist/components/dashboard/components/analytics-content.d.ts.map +0 -1
- package/dist/components/dashboard/components/analytics-content.js +0 -180
- package/dist/components/dashboard/components/analytics-content.js.map +0 -1
- package/dist/components/dashboard/components/animated-logo.d.ts.map +0 -1
- package/dist/components/dashboard/components/animated-logo.js.map +0 -1
- package/dist/components/dashboard/components/complete-setup-button.d.ts.map +0 -1
- package/dist/components/dashboard/components/complete-setup-button.js.map +0 -1
- package/dist/components/dashboard/components/jobs-content.d.ts +0 -2
- package/dist/components/dashboard/components/jobs-content.d.ts.map +0 -1
- package/dist/components/dashboard/components/jobs-content.js +0 -69
- package/dist/components/dashboard/components/jobs-content.js.map +0 -1
- package/dist/components/dashboard/components/mobile-menu.d.ts.map +0 -1
- package/dist/components/dashboard/components/mobile-menu.js.map +0 -1
- package/dist/components/dashboard/components/organization-selector.d.ts.map +0 -1
- package/dist/components/dashboard/components/organization-selector.js.map +0 -1
- package/dist/components/dashboard/components/top-menu.d.ts.map +0 -1
- package/dist/components/dashboard/components/top-menu.js.map +0 -1
- package/dist/components/dashboard/components/topbar-button.d.ts.map +0 -1
- package/dist/components/dashboard/components/topbar-button.js.map +0 -1
- package/dist/components/dashboard/components/topbar.d.ts.map +0 -1
- package/dist/components/dashboard/components/topbar.js.map +0 -1
- package/dist/components/dashboard/components/user-profile.d.ts.map +0 -1
- package/dist/components/dashboard/components/user-profile.js.map +0 -1
- package/dist/components/dashboard/dashboard.d.ts.map +0 -1
- package/dist/components/dashboard/dashboard.js.map +0 -1
- package/dist/components/dashboard/dashboard.stories.js.map +0 -1
- package/dist/components/dashboard/index.d.ts.map +0 -1
- package/dist/components/dashboard/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/kbd/index.d.ts.map +0 -1
- package/dist/components/kbd/index.js.map +0 -1
- package/dist/components/kbd/kbd.d.ts.map +0 -1
- package/dist/components/kbd/kbd.js.map +0 -1
- package/dist/components/kbd/kbd.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/search/index.d.ts.map +0 -1
- package/dist/components/search/index.js.map +0 -1
- package/dist/components/search/search-context.d.ts.map +0 -1
- package/dist/components/search/search-context.js.map +0 -1
- package/dist/components/search/search-inline.d.ts.map +0 -1
- package/dist/components/search/search-inline.js.map +0 -1
- package/dist/components/search/search-modal.d.ts.map +0 -1
- package/dist/components/search/search-modal.js.map +0 -1
- package/dist/components/search/search-trigger.d.ts.map +0 -1
- package/dist/components/search/search-trigger.js.map +0 -1
- package/dist/components/search/search-variants.d.ts.map +0 -1
- package/dist/components/search/search-variants.js.map +0 -1
- package/dist/components/search/search.d.ts.map +0 -1
- package/dist/components/search/search.js.map +0 -1
- package/dist/components/search/search.stories.js.map +0 -1
- package/dist/components/select/index.d.ts.map +0 -1
- package/dist/components/select/index.js.map +0 -1
- package/dist/components/select/select.d.ts.map +0 -1
- package/dist/components/select/select.js.map +0 -1
- package/dist/components/select/select.stories.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/skeleton/index.d.ts.map +0 -1
- package/dist/components/skeleton/index.js.map +0 -1
- package/dist/components/skeleton/skeleton.d.ts.map +0 -1
- package/dist/components/skeleton/skeleton.js.map +0 -1
- package/dist/components/skeleton/skeleton.stories.js.map +0 -1
- package/dist/components/table/data-table.d.ts.map +0 -1
- package/dist/components/table/data-table.js.map +0 -1
- package/dist/components/table/index.d.ts.map +0 -1
- package/dist/components/table/index.js.map +0 -1
- package/dist/components/table/table-column-header.d.ts.map +0 -1
- package/dist/components/table/table-column-header.js.map +0 -1
- package/dist/components/table/table-pagination.d.ts.map +0 -1
- package/dist/components/table/table-pagination.js.map +0 -1
- package/dist/components/table/table.d.ts.map +0 -1
- package/dist/components/table/table.js.map +0 -1
- package/dist/components/table/table.stories.columns.d.ts.map +0 -1
- package/dist/components/table/table.stories.columns.js.map +0 -1
- package/dist/components/table/table.stories.components.d.ts.map +0 -1
- package/dist/components/table/table.stories.components.js.map +0 -1
- package/dist/components/table/table.stories.data.d.ts.map +0 -1
- package/dist/components/table/table.stories.data.js.map +0 -1
- package/dist/components/table/table.stories.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 -1018
- 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/button-group/button-group.stories.tsx +0 -361
- package/src/components/button-group/button-group.tsx +0 -111
- package/src/components/button-group/index.ts +0 -1
- 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 -197
- 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/command/command.stories.tsx +0 -133
- package/src/components/command/command.tsx +0 -265
- package/src/components/command/index.ts +0 -1
- 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/dashboard/components/analytics-content.tsx +0 -102
- package/src/components/dashboard/components/animated-logo.tsx +0 -25
- package/src/components/dashboard/components/complete-setup-button.tsx +0 -30
- package/src/components/dashboard/components/jobs-content.tsx +0 -51
- package/src/components/dashboard/components/mobile-menu.tsx +0 -50
- package/src/components/dashboard/components/organization-selector.tsx +0 -51
- package/src/components/dashboard/components/top-menu.tsx +0 -26
- package/src/components/dashboard/components/topbar-button.tsx +0 -27
- package/src/components/dashboard/components/topbar.tsx +0 -40
- package/src/components/dashboard/components/user-profile.tsx +0 -90
- package/src/components/dashboard/dashboard.stories.tsx +0 -25
- package/src/components/dashboard/dashboard.tsx +0 -61
- package/src/components/dashboard/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 -505
- 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 -36
- 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/kbd/index.ts +0 -1
- package/src/components/kbd/kbd.stories.tsx +0 -64
- package/src/components/kbd/kbd.tsx +0 -32
- 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/search/index.ts +0 -28
- package/src/components/search/search-context.tsx +0 -78
- package/src/components/search/search-inline.tsx +0 -107
- package/src/components/search/search-modal.tsx +0 -198
- package/src/components/search/search-trigger.tsx +0 -47
- package/src/components/search/search-variants.ts +0 -88
- package/src/components/search/search.stories.tsx +0 -392
- package/src/components/search/search.tsx +0 -47
- package/src/components/select/index.ts +0 -1
- package/src/components/select/select.stories.tsx +0 -207
- package/src/components/select/select.tsx +0 -220
- package/src/components/shiny-text/index.ts +0 -1
- package/src/components/shiny-text/shiny-text.tsx +0 -21
- package/src/components/skeleton/index.ts +0 -1
- package/src/components/skeleton/skeleton.stories.tsx +0 -178
- package/src/components/skeleton/skeleton.tsx +0 -14
- package/src/components/table/data-table.tsx +0 -254
- package/src/components/table/index.ts +0 -5
- package/src/components/table/table-column-header.tsx +0 -141
- package/src/components/table/table-pagination.tsx +0 -161
- package/src/components/table/table.stories.columns.tsx +0 -198
- package/src/components/table/table.stories.components.tsx +0 -104
- package/src/components/table/table.stories.data.ts +0 -117
- package/src/components/table/table.stories.tsx +0 -256
- package/src/components/table/table.tsx +0 -95
- 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
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import type {RemixiconComponentType} from '@remixicon/react';
|
|
2
|
-
import {
|
|
3
|
-
RiAddLine,
|
|
4
|
-
RiArrowRightSLine,
|
|
5
|
-
RiBookOpenFill,
|
|
6
|
-
RiCheckLine,
|
|
7
|
-
RiCloseLine,
|
|
8
|
-
RiFileCopyLine,
|
|
9
|
-
RiGithubFill,
|
|
10
|
-
RiGoogleFill,
|
|
11
|
-
RiHomeSmileFill,
|
|
12
|
-
RiImageAddFill,
|
|
13
|
-
RiInformationFill,
|
|
14
|
-
RiMicrosoftFill,
|
|
15
|
-
RiMoneyDollarCircleLine,
|
|
16
|
-
RiSubtractLine,
|
|
17
|
-
} from '@remixicon/react';
|
|
18
|
-
import type {ComponentProps} from 'react';
|
|
19
|
-
import {
|
|
20
|
-
BadgeIcon,
|
|
21
|
-
CheckCircleSolidIcon,
|
|
22
|
-
CircleDottedLineIcon,
|
|
23
|
-
ComponentFillIcon,
|
|
24
|
-
ComponentLineIcon,
|
|
25
|
-
EllipseMiniSolidIcon,
|
|
26
|
-
InfoTooltipFillIcon,
|
|
27
|
-
ResizeIcon,
|
|
28
|
-
ShipfoxLogo,
|
|
29
|
-
SlackLogo,
|
|
30
|
-
SpinnerIcon,
|
|
31
|
-
StripeLogo,
|
|
32
|
-
ThunderIcon,
|
|
33
|
-
XCircleSolidIcon,
|
|
34
|
-
} from './custom';
|
|
35
|
-
import {remixiconMap} from './remixicon-registry';
|
|
36
|
-
|
|
37
|
-
const commonRemixicons = {
|
|
38
|
-
addLine: RiAddLine,
|
|
39
|
-
close: RiCloseLine,
|
|
40
|
-
check: RiCheckLine,
|
|
41
|
-
copy: RiFileCopyLine,
|
|
42
|
-
info: RiInformationFill,
|
|
43
|
-
imageAdd: RiImageAddFill,
|
|
44
|
-
chevronRight: RiArrowRightSLine,
|
|
45
|
-
homeSmile: RiHomeSmileFill,
|
|
46
|
-
money: RiMoneyDollarCircleLine,
|
|
47
|
-
google: RiGoogleFill,
|
|
48
|
-
microsoft: RiMicrosoftFill,
|
|
49
|
-
github: RiGithubFill,
|
|
50
|
-
subtractLine: RiSubtractLine,
|
|
51
|
-
bookOpen: RiBookOpenFill,
|
|
52
|
-
} as const satisfies Record<string, RemixiconComponentType>;
|
|
53
|
-
|
|
54
|
-
const customIconsMap = {
|
|
55
|
-
shipfox: ShipfoxLogo,
|
|
56
|
-
slack: SlackLogo,
|
|
57
|
-
stripe: StripeLogo,
|
|
58
|
-
badge: BadgeIcon,
|
|
59
|
-
checkCircleSolid: CheckCircleSolidIcon,
|
|
60
|
-
circleDottedLine: CircleDottedLineIcon,
|
|
61
|
-
componentFill: ComponentFillIcon,
|
|
62
|
-
componentLine: ComponentLineIcon,
|
|
63
|
-
ellipseMiniSolid: EllipseMiniSolidIcon,
|
|
64
|
-
infoTooltipFill: InfoTooltipFillIcon,
|
|
65
|
-
resize: ResizeIcon,
|
|
66
|
-
spinner: SpinnerIcon,
|
|
67
|
-
thunder: ThunderIcon,
|
|
68
|
-
xCircleSolid: XCircleSolidIcon,
|
|
69
|
-
} as const satisfies Record<string, RemixiconComponentType>;
|
|
70
|
-
|
|
71
|
-
const iconsMap = {
|
|
72
|
-
...remixiconMap,
|
|
73
|
-
...commonRemixicons,
|
|
74
|
-
...customIconsMap,
|
|
75
|
-
} as Record<string, RemixiconComponentType> & typeof customIconsMap;
|
|
76
|
-
|
|
77
|
-
export type IconName = keyof typeof iconsMap;
|
|
78
|
-
export const iconNames = Object.keys(iconsMap) as IconName[];
|
|
79
|
-
|
|
80
|
-
type BaseIconProps = ComponentProps<RemixiconComponentType>;
|
|
81
|
-
type IconProps = {name: IconName; size?: number | string} & Omit<
|
|
82
|
-
BaseIconProps,
|
|
83
|
-
'name' | 'size' | 'width' | 'height'
|
|
84
|
-
>;
|
|
85
|
-
|
|
86
|
-
export function Icon({name, size, ...props}: IconProps) {
|
|
87
|
-
const IconComponent = iconsMap[name];
|
|
88
|
-
const svgProps = size && typeof size === 'number' ? {...props, width: size, height: size} : props;
|
|
89
|
-
return <IconComponent {...svgProps} />;
|
|
90
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './icon';
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type {RemixiconComponentType} from '@remixicon/react';
|
|
2
|
-
import * as RemixIcons from '@remixicon/react';
|
|
3
|
-
|
|
4
|
-
const remixiconEntries = Object.entries(RemixIcons).filter(
|
|
5
|
-
([key, value]) => key.startsWith('Ri') && typeof value === 'function',
|
|
6
|
-
) as Array<[string, RemixiconComponentType]>;
|
|
7
|
-
|
|
8
|
-
function iconNameToKey(iconName: string): string {
|
|
9
|
-
const withoutPrefix = iconName.slice(2);
|
|
10
|
-
return withoutPrefix.charAt(0).toLowerCase() + withoutPrefix.slice(1);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
const remixiconMapEntries = remixiconEntries.map(([name, component]) => [
|
|
14
|
-
iconNameToKey(name),
|
|
15
|
-
component,
|
|
16
|
-
]) as Array<[string, RemixiconComponentType]>;
|
|
17
|
-
|
|
18
|
-
export const remixiconMap = Object.fromEntries(remixiconMapEntries) as Record<
|
|
19
|
-
string,
|
|
20
|
-
RemixiconComponentType
|
|
21
|
-
>;
|
|
22
|
-
|
|
23
|
-
export type RemixIconName = keyof typeof remixiconMap;
|
|
24
|
-
export const remixiconNames = Object.keys(remixiconMap) as RemixIconName[];
|
package/src/components/index.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
export * from './alert';
|
|
2
|
-
export * from './avatar';
|
|
3
|
-
export * from './badge';
|
|
4
|
-
export * from './button';
|
|
5
|
-
export * from './button-group';
|
|
6
|
-
export * from './calendar';
|
|
7
|
-
export * from './checkbox';
|
|
8
|
-
export * from './code-block';
|
|
9
|
-
export * from './command';
|
|
10
|
-
export * from './confetti';
|
|
11
|
-
export * from './date-picker';
|
|
12
|
-
export * from './date-time-range-picker';
|
|
13
|
-
export * from './dot-grid';
|
|
14
|
-
export * from './dropdown-menu';
|
|
15
|
-
export * from './dynamic-item';
|
|
16
|
-
export * from './form';
|
|
17
|
-
export * from './icon';
|
|
18
|
-
export * from './inline-tips';
|
|
19
|
-
export * from './input';
|
|
20
|
-
export * from './item';
|
|
21
|
-
export * from './kbd';
|
|
22
|
-
export * from './label';
|
|
23
|
-
export * from './modal';
|
|
24
|
-
export * from './moving-border';
|
|
25
|
-
export * from './popover';
|
|
26
|
-
export * from './search';
|
|
27
|
-
export * from './select';
|
|
28
|
-
export * from './shiny-text';
|
|
29
|
-
export * from './skeleton';
|
|
30
|
-
export * from './table';
|
|
31
|
-
export * from './tabs';
|
|
32
|
-
export * from './textarea';
|
|
33
|
-
export * from './theme';
|
|
34
|
-
export * from './toast';
|
|
35
|
-
export * from './tooltip';
|
|
36
|
-
export * from './typography';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './inline-tips';
|
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
import {argosScreenshot} from '@argos-ci/storybook/vitest';
|
|
2
|
-
import type {Meta, StoryObj} from '@storybook/react';
|
|
3
|
-
import {Code, Header} from 'components/typography';
|
|
4
|
-
import {
|
|
5
|
-
InlineTips,
|
|
6
|
-
InlineTipsAction,
|
|
7
|
-
InlineTipsActions,
|
|
8
|
-
InlineTipsContent,
|
|
9
|
-
InlineTipsDescription,
|
|
10
|
-
InlineTipsTitle,
|
|
11
|
-
} from './inline-tips';
|
|
12
|
-
|
|
13
|
-
const meta = {
|
|
14
|
-
title: 'Components/InlineTips',
|
|
15
|
-
component: InlineTips,
|
|
16
|
-
tags: ['autodocs'],
|
|
17
|
-
argTypes: {
|
|
18
|
-
type: {
|
|
19
|
-
control: 'select',
|
|
20
|
-
options: ['default', 'info', 'success', 'error'],
|
|
21
|
-
},
|
|
22
|
-
variant: {
|
|
23
|
-
control: 'select',
|
|
24
|
-
options: ['primary', 'secondary'],
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
args: {
|
|
28
|
-
type: 'default',
|
|
29
|
-
variant: 'primary',
|
|
30
|
-
},
|
|
31
|
-
} satisfies Meta<typeof InlineTips>;
|
|
32
|
-
|
|
33
|
-
export default meta;
|
|
34
|
-
|
|
35
|
-
type Story = StoryObj<typeof meta>;
|
|
36
|
-
|
|
37
|
-
const types = ['default', 'info', 'success', 'error'] as const;
|
|
38
|
-
const variants = ['primary', 'secondary'] as const;
|
|
39
|
-
|
|
40
|
-
export const Default: Story = {
|
|
41
|
-
play: async (ctx) => {
|
|
42
|
-
await new Promise((resolve) => setTimeout(resolve, 100));
|
|
43
|
-
await argosScreenshot(ctx, 'InlineTips Default');
|
|
44
|
-
},
|
|
45
|
-
render: (args) => {
|
|
46
|
-
return (
|
|
47
|
-
<InlineTips {...args}>
|
|
48
|
-
<InlineTipsContent>
|
|
49
|
-
<InlineTipsTitle>Title</InlineTipsTitle>
|
|
50
|
-
<InlineTipsDescription>Description</InlineTipsDescription>
|
|
51
|
-
</InlineTipsContent>
|
|
52
|
-
<InlineTipsActions>
|
|
53
|
-
<InlineTipsAction variant={args.variant}>Label</InlineTipsAction>
|
|
54
|
-
<InlineTipsAction variant={args.variant}>Label</InlineTipsAction>
|
|
55
|
-
</InlineTipsActions>
|
|
56
|
-
</InlineTips>
|
|
57
|
-
);
|
|
58
|
-
},
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
export const Variants: Story = {
|
|
62
|
-
render: () => {
|
|
63
|
-
return (
|
|
64
|
-
<div className="flex flex-col gap-16">
|
|
65
|
-
{variants.map((variant) => (
|
|
66
|
-
<InlineTips key={variant} type="default" variant={variant}>
|
|
67
|
-
<InlineTipsContent>
|
|
68
|
-
<InlineTipsTitle>Title</InlineTipsTitle>
|
|
69
|
-
<InlineTipsDescription>Description</InlineTipsDescription>
|
|
70
|
-
</InlineTipsContent>
|
|
71
|
-
<InlineTipsActions>
|
|
72
|
-
<InlineTipsAction variant="primary">Label</InlineTipsAction>
|
|
73
|
-
<InlineTipsAction variant="secondary">Label</InlineTipsAction>
|
|
74
|
-
</InlineTipsActions>
|
|
75
|
-
</InlineTips>
|
|
76
|
-
))}
|
|
77
|
-
</div>
|
|
78
|
-
);
|
|
79
|
-
},
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
export const DesignMock: Story = {
|
|
83
|
-
render: () => {
|
|
84
|
-
const content = {
|
|
85
|
-
default: {title: 'Title', description: 'Description'},
|
|
86
|
-
info: {title: 'Title', description: 'Description'},
|
|
87
|
-
success: {title: 'Title', description: 'Description'},
|
|
88
|
-
error: {title: 'Title', description: 'Description'},
|
|
89
|
-
};
|
|
90
|
-
|
|
91
|
-
return (
|
|
92
|
-
<div className="flex flex-col gap-32 pb-64 pt-32 px-32 bg-background-neutral-base">
|
|
93
|
-
<Header variant="h3" className="text-foreground-neutral-subtle">
|
|
94
|
-
INLINE TIPS
|
|
95
|
-
</Header>
|
|
96
|
-
<div className="flex flex-col gap-16">
|
|
97
|
-
<Code variant="label" className="text-foreground-neutral-subtle">
|
|
98
|
-
Primary
|
|
99
|
-
</Code>
|
|
100
|
-
{types.map((type) => (
|
|
101
|
-
<InlineTips key={type} type={type} variant="primary">
|
|
102
|
-
<InlineTipsContent>
|
|
103
|
-
<InlineTipsTitle>{content[type].title}</InlineTipsTitle>
|
|
104
|
-
<InlineTipsDescription>{content[type].description}</InlineTipsDescription>
|
|
105
|
-
</InlineTipsContent>
|
|
106
|
-
<InlineTipsActions>
|
|
107
|
-
<InlineTipsAction variant="primary">Label</InlineTipsAction>
|
|
108
|
-
<InlineTipsAction variant="secondary">Label</InlineTipsAction>
|
|
109
|
-
</InlineTipsActions>
|
|
110
|
-
</InlineTips>
|
|
111
|
-
))}
|
|
112
|
-
<Code variant="label" className="text-foreground-neutral-subtle">
|
|
113
|
-
Secondary
|
|
114
|
-
</Code>
|
|
115
|
-
{types.map((type) => (
|
|
116
|
-
<InlineTips key={type} type={type} variant="secondary">
|
|
117
|
-
<InlineTipsContent>
|
|
118
|
-
<InlineTipsTitle>{content[type].title}</InlineTipsTitle>
|
|
119
|
-
<InlineTipsDescription>{content[type].description}</InlineTipsDescription>
|
|
120
|
-
</InlineTipsContent>
|
|
121
|
-
<InlineTipsActions>
|
|
122
|
-
<InlineTipsAction variant="primary">Label</InlineTipsAction>
|
|
123
|
-
<InlineTipsAction variant="secondary">Label</InlineTipsAction>
|
|
124
|
-
</InlineTipsActions>
|
|
125
|
-
</InlineTips>
|
|
126
|
-
))}
|
|
127
|
-
</div>
|
|
128
|
-
</div>
|
|
129
|
-
);
|
|
130
|
-
},
|
|
131
|
-
};
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
import {cva, type VariantProps} from 'class-variance-authority';
|
|
2
|
-
import type {ComponentProps} from 'react';
|
|
3
|
-
import {cn} from 'utils/cn';
|
|
4
|
-
|
|
5
|
-
const inlineTipsBaseVariants = cva('w-full text-sm flex gap-12 items-center', {
|
|
6
|
-
variants: {
|
|
7
|
-
variant: {
|
|
8
|
-
primary:
|
|
9
|
-
'bg-background-components-base text-foreground-neutral-base border border-border-neutral-base shadow-button-neutral rounded-8 px-12 py-8',
|
|
10
|
-
secondary: 'bg-transparent text-foreground-neutral-base',
|
|
11
|
-
},
|
|
12
|
-
},
|
|
13
|
-
defaultVariants: {
|
|
14
|
-
variant: 'primary',
|
|
15
|
-
},
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
const inlineTipsLineVariants = cva('w-4 self-stretch my-4 rounded-full', {
|
|
19
|
-
variants: {
|
|
20
|
-
type: {
|
|
21
|
-
default: 'bg-tag-neutral-icon',
|
|
22
|
-
info: 'bg-tag-warning-icon',
|
|
23
|
-
success: 'bg-tag-success-icon',
|
|
24
|
-
error: 'bg-tag-error-icon',
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
defaultVariants: {
|
|
28
|
-
type: 'default',
|
|
29
|
-
},
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
type InlineTipsProps = ComponentProps<'div'> &
|
|
33
|
-
VariantProps<typeof inlineTipsBaseVariants> & {
|
|
34
|
-
type?: 'default' | 'info' | 'success' | 'error';
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
function InlineTips({className, variant, type = 'default', children, ...props}: InlineTipsProps) {
|
|
38
|
-
return (
|
|
39
|
-
<div
|
|
40
|
-
data-slot="inline-tips"
|
|
41
|
-
className={cn(inlineTipsBaseVariants({variant}), className)}
|
|
42
|
-
{...props}
|
|
43
|
-
>
|
|
44
|
-
<div
|
|
45
|
-
data-slot="inline-tips-line"
|
|
46
|
-
className={cn(inlineTipsLineVariants({type}))}
|
|
47
|
-
aria-hidden="true"
|
|
48
|
-
/>
|
|
49
|
-
{children}
|
|
50
|
-
</div>
|
|
51
|
-
);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
function InlineTipsContent({className, ...props}: ComponentProps<'div'>) {
|
|
55
|
-
return (
|
|
56
|
-
<div data-slot="inline-tips-content" className={cn('flex-1 min-w-0', className)} {...props} />
|
|
57
|
-
);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
function InlineTipsTitle({className, ...props}: ComponentProps<'div'>) {
|
|
61
|
-
return (
|
|
62
|
-
<div
|
|
63
|
-
data-slot="inline-tips-title"
|
|
64
|
-
className={cn('font-medium text-sm leading-20 text-foreground-neutral-base mb-4', className)}
|
|
65
|
-
{...props}
|
|
66
|
-
/>
|
|
67
|
-
);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
function InlineTipsDescription({className, ...props}: ComponentProps<'div'>) {
|
|
71
|
-
return (
|
|
72
|
-
<div
|
|
73
|
-
data-slot="inline-tips-description"
|
|
74
|
-
className={cn(
|
|
75
|
-
'text-xs leading-20 text-foreground-neutral-muted [&_p]:leading-relaxed',
|
|
76
|
-
className,
|
|
77
|
-
)}
|
|
78
|
-
{...props}
|
|
79
|
-
/>
|
|
80
|
-
);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
function InlineTipsActions({className, ...props}: ComponentProps<'div'>) {
|
|
84
|
-
return (
|
|
85
|
-
<div
|
|
86
|
-
data-slot="inline-tips-actions"
|
|
87
|
-
className={cn('flex items-center gap-8 shrink-0', className)}
|
|
88
|
-
{...props}
|
|
89
|
-
/>
|
|
90
|
-
);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
const inlineTipsActionVariants = cva(
|
|
94
|
-
'rounded-6 px-10 py-6 text-xs font-medium leading-20 transition-colors duration-150 outline-none focus-visible:ring-2 focus-visible:ring-background-accent-blue-base focus-visible:ring-offset-2',
|
|
95
|
-
{
|
|
96
|
-
variants: {
|
|
97
|
-
variant: {
|
|
98
|
-
primary:
|
|
99
|
-
'bg-background-button-inverted-default text-foreground-contrast-primary shadow-button-inverted hover:bg-background-button-inverted-hover active:bg-background-button-inverted-pressed focus-visible:shadow-button-inverted-focus disabled:bg-background-neutral-disabled disabled:text-foreground-neutral-disabled disabled:shadow-none ',
|
|
100
|
-
secondary:
|
|
101
|
-
'bg-background-button-neutral-default text-foreground-neutral-base shadow-button-neutral hover:bg-background-button-neutral-hover active:bg-background-button-neutral-pressed disabled:bg-background-neutral-disabled focus-visible:shadow-button-neutral-focus disabled:text-foreground-neutral-disabled disabled:shadow-none',
|
|
102
|
-
},
|
|
103
|
-
},
|
|
104
|
-
defaultVariants: {
|
|
105
|
-
variant: 'primary',
|
|
106
|
-
},
|
|
107
|
-
},
|
|
108
|
-
);
|
|
109
|
-
|
|
110
|
-
function InlineTipsAction({
|
|
111
|
-
className,
|
|
112
|
-
variant,
|
|
113
|
-
...props
|
|
114
|
-
}: ComponentProps<'button'> & VariantProps<typeof inlineTipsActionVariants>) {
|
|
115
|
-
return (
|
|
116
|
-
<button
|
|
117
|
-
data-slot="inline-tips-action"
|
|
118
|
-
type="button"
|
|
119
|
-
className={cn(inlineTipsActionVariants({variant}), className)}
|
|
120
|
-
{...props}
|
|
121
|
-
/>
|
|
122
|
-
);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
export {
|
|
126
|
-
InlineTips,
|
|
127
|
-
InlineTipsContent,
|
|
128
|
-
InlineTipsTitle,
|
|
129
|
-
InlineTipsDescription,
|
|
130
|
-
InlineTipsActions,
|
|
131
|
-
InlineTipsAction,
|
|
132
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './input';
|
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
import type {Meta, StoryObj} from '@storybook/react';
|
|
2
|
-
import {Code, Header} from 'components/typography';
|
|
3
|
-
import {Input} from './input';
|
|
4
|
-
|
|
5
|
-
const typeOptions = [
|
|
6
|
-
'text',
|
|
7
|
-
'email',
|
|
8
|
-
'password',
|
|
9
|
-
'number',
|
|
10
|
-
'search',
|
|
11
|
-
'url',
|
|
12
|
-
'tel',
|
|
13
|
-
'date',
|
|
14
|
-
'time',
|
|
15
|
-
'datetime-local',
|
|
16
|
-
'month',
|
|
17
|
-
'week',
|
|
18
|
-
'color',
|
|
19
|
-
'file',
|
|
20
|
-
] as const;
|
|
21
|
-
|
|
22
|
-
const meta = {
|
|
23
|
-
title: 'Components/Input',
|
|
24
|
-
component: Input,
|
|
25
|
-
tags: ['autodocs'],
|
|
26
|
-
argTypes: {
|
|
27
|
-
type: {
|
|
28
|
-
control: 'select',
|
|
29
|
-
options: typeOptions,
|
|
30
|
-
},
|
|
31
|
-
placeholder: {control: 'text'},
|
|
32
|
-
disabled: {control: 'boolean'},
|
|
33
|
-
'aria-invalid': {control: 'boolean'},
|
|
34
|
-
},
|
|
35
|
-
args: {
|
|
36
|
-
type: 'text',
|
|
37
|
-
placeholder: 'Type something…',
|
|
38
|
-
disabled: false,
|
|
39
|
-
'aria-invalid': false,
|
|
40
|
-
},
|
|
41
|
-
} satisfies Meta<typeof Input>;
|
|
42
|
-
|
|
43
|
-
export default meta;
|
|
44
|
-
|
|
45
|
-
type Story = StoryObj<typeof meta>;
|
|
46
|
-
|
|
47
|
-
export const Default: Story = {};
|
|
48
|
-
|
|
49
|
-
const variants = ['base', 'component'] as const;
|
|
50
|
-
const sizes = ['base', 'small'] as const;
|
|
51
|
-
|
|
52
|
-
export const States: Story = {
|
|
53
|
-
render: (args) => (
|
|
54
|
-
<div className="flex flex-col gap-32">
|
|
55
|
-
{variants.map((variant) =>
|
|
56
|
-
sizes.map((size) => (
|
|
57
|
-
<div key={variant + size} className="flex flex-col gap-16">
|
|
58
|
-
<Header variant="h3">
|
|
59
|
-
{variant} {size}
|
|
60
|
-
</Header>
|
|
61
|
-
<div className="flex flex-col gap-8">
|
|
62
|
-
<Code variant="label" className="text-foreground-neutral-subtle">
|
|
63
|
-
Default
|
|
64
|
-
</Code>
|
|
65
|
-
|
|
66
|
-
<Input {...args} variant={variant} size={size} />
|
|
67
|
-
</div>
|
|
68
|
-
|
|
69
|
-
<div className="flex flex-col gap-8">
|
|
70
|
-
<Code variant="label" className="text-foreground-neutral-subtle">
|
|
71
|
-
Hover
|
|
72
|
-
</Code>
|
|
73
|
-
|
|
74
|
-
<Input {...args} className="hover" variant={variant} size={size} />
|
|
75
|
-
</div>
|
|
76
|
-
<div className="flex flex-col gap-8">
|
|
77
|
-
<Code variant="label" className="text-foreground-neutral-subtle">
|
|
78
|
-
Active
|
|
79
|
-
</Code>
|
|
80
|
-
|
|
81
|
-
<Input
|
|
82
|
-
{...args}
|
|
83
|
-
className="active"
|
|
84
|
-
defaultValue="The quick brown fox jumps over the lazy dog"
|
|
85
|
-
variant={variant}
|
|
86
|
-
size={size}
|
|
87
|
-
/>
|
|
88
|
-
</div>
|
|
89
|
-
<div className="flex flex-col gap-8">
|
|
90
|
-
<Code variant="label" className="text-foreground-neutral-subtle">
|
|
91
|
-
Focus
|
|
92
|
-
</Code>
|
|
93
|
-
|
|
94
|
-
<Input {...args} className="focus" variant={variant} size={size} />
|
|
95
|
-
</div>
|
|
96
|
-
<div className="flex flex-col gap-8">
|
|
97
|
-
<Code variant="label" className="text-foreground-neutral-subtle">
|
|
98
|
-
Disabled
|
|
99
|
-
</Code>
|
|
100
|
-
|
|
101
|
-
<Input {...args} disabled variant={variant} size={size} />
|
|
102
|
-
</div>
|
|
103
|
-
<div className="flex flex-col gap-8">
|
|
104
|
-
<Code variant="label" className="text-foreground-neutral-subtle">
|
|
105
|
-
Invalid
|
|
106
|
-
</Code>
|
|
107
|
-
|
|
108
|
-
<Input {...args} aria-invalid variant={variant} size={size} />
|
|
109
|
-
</div>
|
|
110
|
-
</div>
|
|
111
|
-
)),
|
|
112
|
-
)}
|
|
113
|
-
</div>
|
|
114
|
-
),
|
|
115
|
-
};
|
|
116
|
-
|
|
117
|
-
States.parameters = {
|
|
118
|
-
pseudo: {
|
|
119
|
-
hover: '.hover',
|
|
120
|
-
active: '.active',
|
|
121
|
-
focusVisible: '.focus',
|
|
122
|
-
},
|
|
123
|
-
};
|
|
124
|
-
|
|
125
|
-
export const Types: Story = {
|
|
126
|
-
render: (args) => (
|
|
127
|
-
<div className="flex flex-col gap-32">
|
|
128
|
-
{typeOptions.map((t) => (
|
|
129
|
-
<div key={t} className="flex flex-col gap-8">
|
|
130
|
-
<Code variant="label" className="text-foreground-neutral-subtle">
|
|
131
|
-
{t}
|
|
132
|
-
</Code>
|
|
133
|
-
<Input {...args} type={t} />
|
|
134
|
-
</div>
|
|
135
|
-
))}
|
|
136
|
-
</div>
|
|
137
|
-
),
|
|
138
|
-
};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import {cva, type VariantProps} from 'class-variance-authority';
|
|
2
|
-
import type {ComponentProps} from 'react';
|
|
3
|
-
import {cn} from 'utils/cn';
|
|
4
|
-
|
|
5
|
-
export const inputVariants = cva('', {
|
|
6
|
-
variants: {
|
|
7
|
-
variant: {
|
|
8
|
-
base: 'bg-background-field-base',
|
|
9
|
-
component: 'bg-background-field-component',
|
|
10
|
-
},
|
|
11
|
-
size: {
|
|
12
|
-
base: 'py-6',
|
|
13
|
-
small: 'py-4',
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
|
-
defaultVariants: {
|
|
17
|
-
variant: 'base',
|
|
18
|
-
size: 'base',
|
|
19
|
-
},
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
type InputProps = Omit<ComponentProps<'input'>, 'size'> & VariantProps<typeof inputVariants>;
|
|
23
|
-
|
|
24
|
-
export function Input({className, type, variant, size, ...props}: InputProps) {
|
|
25
|
-
return (
|
|
26
|
-
<input
|
|
27
|
-
type={type}
|
|
28
|
-
data-slot="input"
|
|
29
|
-
className={cn(
|
|
30
|
-
'placeholder:text-foreground-neutral-muted w-full min-w-0 rounded-6 px-8 text-sm leading-20 text-foreground-neutral-base shadow-button-neutral transition-[color,box-shadow] outline-none',
|
|
31
|
-
'hover:bg-background-field-hover',
|
|
32
|
-
'selection:bg-background-accent-neutral-soft selection:text-foreground-neutral-on-inverted',
|
|
33
|
-
'file:text-foreground-neutral-base file:inline-flex file:font-medium',
|
|
34
|
-
'disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-background-neutral-disabled disabled:shadow-none disabled:text-foreground-neutral-disabled',
|
|
35
|
-
'focus-visible:shadow-border-interactive-with-active',
|
|
36
|
-
'aria-invalid:shadow-border-error',
|
|
37
|
-
inputVariants({variant, size}),
|
|
38
|
-
className,
|
|
39
|
-
)}
|
|
40
|
-
{...props}
|
|
41
|
-
/>
|
|
42
|
-
);
|
|
43
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './item';
|