@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,133 +0,0 @@
|
|
|
1
|
-
import type {Meta, StoryObj} from '@storybook/react';
|
|
2
|
-
import {useState} from 'react';
|
|
3
|
-
import {Icon} from '../icon';
|
|
4
|
-
import {Popover, PopoverContent, PopoverTrigger} from '../popover';
|
|
5
|
-
import {
|
|
6
|
-
Command,
|
|
7
|
-
CommandEmpty,
|
|
8
|
-
CommandGroup,
|
|
9
|
-
CommandInput,
|
|
10
|
-
CommandItem,
|
|
11
|
-
CommandList,
|
|
12
|
-
CommandSeparator,
|
|
13
|
-
CommandShortcut,
|
|
14
|
-
CommandTrigger,
|
|
15
|
-
} from './command';
|
|
16
|
-
|
|
17
|
-
const meta = {
|
|
18
|
-
title: 'Components/Command',
|
|
19
|
-
component: Command,
|
|
20
|
-
tags: ['autodocs'],
|
|
21
|
-
} satisfies Meta<typeof Command>;
|
|
22
|
-
|
|
23
|
-
export default meta;
|
|
24
|
-
|
|
25
|
-
type Story = StoryObj<typeof meta>;
|
|
26
|
-
|
|
27
|
-
export const Default: Story = {
|
|
28
|
-
render: () => (
|
|
29
|
-
<Command className="rounded-10 shadow-tooltip max-w-400">
|
|
30
|
-
<CommandInput placeholder="Type a command or search..." />
|
|
31
|
-
<CommandList>
|
|
32
|
-
<CommandEmpty>No results found.</CommandEmpty>
|
|
33
|
-
<CommandGroup heading="Suggestions">
|
|
34
|
-
<CommandItem>
|
|
35
|
-
<Icon name="calendar2Line" className="size-16 mr-8" />
|
|
36
|
-
<span>Calendar</span>
|
|
37
|
-
</CommandItem>
|
|
38
|
-
<CommandItem>
|
|
39
|
-
<Icon name="emotion2Line" className="size-16 mr-8" />
|
|
40
|
-
<span>Search Emoji</span>
|
|
41
|
-
</CommandItem>
|
|
42
|
-
<CommandItem>
|
|
43
|
-
<Icon name="calculatorLine" className="size-16 mr-8" />
|
|
44
|
-
<span>Calculator</span>
|
|
45
|
-
</CommandItem>
|
|
46
|
-
</CommandGroup>
|
|
47
|
-
<CommandSeparator />
|
|
48
|
-
<CommandGroup heading="Settings">
|
|
49
|
-
<CommandItem>
|
|
50
|
-
<Icon name="user3Line" className="size-16 mr-8" />
|
|
51
|
-
<span>Profile</span>
|
|
52
|
-
<CommandShortcut>⌘P</CommandShortcut>
|
|
53
|
-
</CommandItem>
|
|
54
|
-
<CommandItem>
|
|
55
|
-
<Icon name="mailLine" className="size-16 mr-8" />
|
|
56
|
-
<span>Mail</span>
|
|
57
|
-
<CommandShortcut>⌘M</CommandShortcut>
|
|
58
|
-
</CommandItem>
|
|
59
|
-
<CommandItem>
|
|
60
|
-
<Icon name="settings3Line" className="size-16 mr-8" />
|
|
61
|
-
<span>Settings</span>
|
|
62
|
-
<CommandShortcut>⌘S</CommandShortcut>
|
|
63
|
-
</CommandItem>
|
|
64
|
-
</CommandGroup>
|
|
65
|
-
</CommandList>
|
|
66
|
-
</Command>
|
|
67
|
-
),
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
export const Combobox: Story = {
|
|
71
|
-
render: () => {
|
|
72
|
-
const frameworks = [
|
|
73
|
-
{value: 'next.js', label: 'Next.js', icon: 'reactjsLine' as const},
|
|
74
|
-
{value: 'sveltekit', label: 'SvelteKit', icon: 'svelteLine' as const},
|
|
75
|
-
{value: 'nuxt.js', label: 'Nuxt.js', icon: 'vuejsLine' as const},
|
|
76
|
-
{value: 'remix', label: 'Remix', icon: 'reactjsLine' as const},
|
|
77
|
-
{value: 'astro', label: 'Astro', icon: 'rocketLine' as const},
|
|
78
|
-
{value: 'vue', label: 'Vue', icon: 'vuejsLine' as const},
|
|
79
|
-
{value: 'react', label: 'React', icon: 'reactjsLine' as const},
|
|
80
|
-
];
|
|
81
|
-
|
|
82
|
-
function ComboboxDemo() {
|
|
83
|
-
const [open, setOpen] = useState(false);
|
|
84
|
-
const [value, setValue] = useState('');
|
|
85
|
-
|
|
86
|
-
return (
|
|
87
|
-
<div className="flex flex-col gap-16">
|
|
88
|
-
<Popover open={open} onOpenChange={setOpen}>
|
|
89
|
-
<PopoverTrigger asChild>
|
|
90
|
-
<CommandTrigger className="w-280" placeholder="Select framework...">
|
|
91
|
-
{value ? frameworks.find((framework) => framework.value === value)?.label : null}
|
|
92
|
-
</CommandTrigger>
|
|
93
|
-
</PopoverTrigger>
|
|
94
|
-
<PopoverContent className="w-280 p-0" align="start">
|
|
95
|
-
<Command>
|
|
96
|
-
<CommandInput placeholder="Search framework..." />
|
|
97
|
-
<CommandList>
|
|
98
|
-
<CommandEmpty>No framework found.</CommandEmpty>
|
|
99
|
-
<CommandGroup>
|
|
100
|
-
{frameworks.map((framework) => (
|
|
101
|
-
<CommandItem
|
|
102
|
-
key={framework.value}
|
|
103
|
-
value={framework.value}
|
|
104
|
-
onSelect={(currentValue) => {
|
|
105
|
-
setValue(currentValue === value ? '' : currentValue);
|
|
106
|
-
setOpen(false);
|
|
107
|
-
}}
|
|
108
|
-
>
|
|
109
|
-
<Icon
|
|
110
|
-
name="check"
|
|
111
|
-
className={`size-16 mr-8 ${value === framework.value ? 'opacity-100' : 'opacity-0'}`}
|
|
112
|
-
/>
|
|
113
|
-
<Icon name={framework.icon} className="size-16 mr-8" />
|
|
114
|
-
{framework.label}
|
|
115
|
-
</CommandItem>
|
|
116
|
-
))}
|
|
117
|
-
</CommandGroup>
|
|
118
|
-
</CommandList>
|
|
119
|
-
</Command>
|
|
120
|
-
</PopoverContent>
|
|
121
|
-
</Popover>
|
|
122
|
-
{value && (
|
|
123
|
-
<p className="text-sm text-foreground-neutral-muted">
|
|
124
|
-
Selected: {frameworks.find((f) => f.value === value)?.label}
|
|
125
|
-
</p>
|
|
126
|
-
)}
|
|
127
|
-
</div>
|
|
128
|
-
);
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
return <ComboboxDemo />;
|
|
132
|
-
},
|
|
133
|
-
};
|
|
@@ -1,265 +0,0 @@
|
|
|
1
|
-
import {cva, type VariantProps} from 'class-variance-authority';
|
|
2
|
-
import {Command as CommandPrimitive} from 'cmdk';
|
|
3
|
-
import {type ComponentProps, forwardRef, useCallback, useState} from 'react';
|
|
4
|
-
import {cn} from 'utils/cn';
|
|
5
|
-
import {Icon} from '../icon';
|
|
6
|
-
import {Kbd} from '../kbd';
|
|
7
|
-
|
|
8
|
-
const commandTriggerVariants = cva(
|
|
9
|
-
[
|
|
10
|
-
'flex items-center justify-between gap-8',
|
|
11
|
-
'w-full rounded-6 px-8 text-sm leading-20',
|
|
12
|
-
'bg-background-field-base text-foreground-neutral-base',
|
|
13
|
-
'shadow-button-neutral transition-[color,box-shadow] outline-none',
|
|
14
|
-
'hover:bg-background-field-hover cursor-pointer',
|
|
15
|
-
'focus-visible:shadow-border-interactive-with-active',
|
|
16
|
-
'disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-background-neutral-disabled disabled:shadow-none disabled:text-foreground-neutral-disabled',
|
|
17
|
-
],
|
|
18
|
-
{
|
|
19
|
-
variants: {
|
|
20
|
-
variant: {
|
|
21
|
-
base: 'bg-background-field-base',
|
|
22
|
-
component: 'bg-background-field-component',
|
|
23
|
-
},
|
|
24
|
-
size: {
|
|
25
|
-
small: 'h-28 py-4',
|
|
26
|
-
base: 'h-32 py-6',
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
defaultVariants: {
|
|
30
|
-
variant: 'base',
|
|
31
|
-
size: 'base',
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
);
|
|
35
|
-
|
|
36
|
-
type CommandTriggerProps = ComponentProps<'button'> &
|
|
37
|
-
VariantProps<typeof commandTriggerVariants> & {
|
|
38
|
-
placeholder?: string;
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
const CommandTrigger = forwardRef<HTMLButtonElement, CommandTriggerProps>(
|
|
42
|
-
({className, variant, size, placeholder, children, ...props}, ref) => {
|
|
43
|
-
const hasValue = Boolean(children);
|
|
44
|
-
|
|
45
|
-
return (
|
|
46
|
-
<button
|
|
47
|
-
ref={ref}
|
|
48
|
-
type="button"
|
|
49
|
-
data-slot="command-trigger"
|
|
50
|
-
data-placeholder={!hasValue || undefined}
|
|
51
|
-
className={cn(
|
|
52
|
-
commandTriggerVariants({variant, size}),
|
|
53
|
-
'data-placeholder:text-foreground-neutral-muted',
|
|
54
|
-
className,
|
|
55
|
-
)}
|
|
56
|
-
{...props}
|
|
57
|
-
>
|
|
58
|
-
<span className="flex-1 text-left truncate">{hasValue ? children : placeholder}</span>
|
|
59
|
-
<Icon name="arrowDownSLine" className="size-16 text-foreground-neutral-muted shrink-0" />
|
|
60
|
-
</button>
|
|
61
|
-
);
|
|
62
|
-
},
|
|
63
|
-
);
|
|
64
|
-
CommandTrigger.displayName = 'CommandTrigger';
|
|
65
|
-
|
|
66
|
-
function Command({className, ...props}: ComponentProps<typeof CommandPrimitive>) {
|
|
67
|
-
return (
|
|
68
|
-
<CommandPrimitive
|
|
69
|
-
data-slot="command"
|
|
70
|
-
className={cn(
|
|
71
|
-
'flex h-full w-full flex-col overflow-hidden rounded-10',
|
|
72
|
-
'bg-background-neutral-overlay text-foreground-neutral-base',
|
|
73
|
-
className,
|
|
74
|
-
)}
|
|
75
|
-
{...props}
|
|
76
|
-
/>
|
|
77
|
-
);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
function CommandDialog({children, ...props}: ComponentProps<typeof CommandPrimitive.Dialog>) {
|
|
81
|
-
return (
|
|
82
|
-
<CommandPrimitive.Dialog data-slot="command-dialog" {...props}>
|
|
83
|
-
<div className="fixed inset-0 z-50 bg-background-neutral-overlay/80 backdrop-blur-sm" />
|
|
84
|
-
<div className="fixed left-1/2 top-1/2 z-50 w-full max-w-600 -translate-x-1/2 -translate-y-1/2 p-16">
|
|
85
|
-
<Command className="shadow-tooltip">{children}</Command>
|
|
86
|
-
</div>
|
|
87
|
-
</CommandPrimitive.Dialog>
|
|
88
|
-
);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
type CommandInputProps = ComponentProps<typeof CommandPrimitive.Input> & {
|
|
92
|
-
showClearButton?: boolean;
|
|
93
|
-
onClear?: () => void;
|
|
94
|
-
};
|
|
95
|
-
|
|
96
|
-
function CommandInput({
|
|
97
|
-
className,
|
|
98
|
-
value,
|
|
99
|
-
onValueChange,
|
|
100
|
-
onClear,
|
|
101
|
-
showClearButton = true,
|
|
102
|
-
...props
|
|
103
|
-
}: CommandInputProps) {
|
|
104
|
-
const [internalValue, setInternalValue] = useState('');
|
|
105
|
-
const isControlled = value !== undefined;
|
|
106
|
-
const inputValue = isControlled ? value : internalValue;
|
|
107
|
-
const hasValue = Boolean(inputValue);
|
|
108
|
-
|
|
109
|
-
const handleValueChange = useCallback(
|
|
110
|
-
(newValue: string) => {
|
|
111
|
-
if (!isControlled) {
|
|
112
|
-
setInternalValue(newValue);
|
|
113
|
-
}
|
|
114
|
-
onValueChange?.(newValue);
|
|
115
|
-
},
|
|
116
|
-
[isControlled, onValueChange],
|
|
117
|
-
);
|
|
118
|
-
|
|
119
|
-
const handleClear = useCallback(() => {
|
|
120
|
-
if (!isControlled) {
|
|
121
|
-
setInternalValue('');
|
|
122
|
-
}
|
|
123
|
-
onValueChange?.('');
|
|
124
|
-
onClear?.();
|
|
125
|
-
}, [isControlled, onValueChange, onClear]);
|
|
126
|
-
|
|
127
|
-
const handleKeyDown = useCallback(
|
|
128
|
-
(e: React.KeyboardEvent<HTMLInputElement>) => {
|
|
129
|
-
if (e.key === 'Escape' && hasValue) {
|
|
130
|
-
e.preventDefault();
|
|
131
|
-
e.stopPropagation();
|
|
132
|
-
handleClear();
|
|
133
|
-
}
|
|
134
|
-
},
|
|
135
|
-
[hasValue, handleClear],
|
|
136
|
-
);
|
|
137
|
-
|
|
138
|
-
return (
|
|
139
|
-
<div className="flex items-center gap-8 border-b border-border-neutral-strong p-8">
|
|
140
|
-
<Icon name="searchLine" className="size-16 shrink-0 text-foreground-neutral-muted" />
|
|
141
|
-
<CommandPrimitive.Input
|
|
142
|
-
data-slot="command-input"
|
|
143
|
-
value={inputValue}
|
|
144
|
-
onValueChange={handleValueChange}
|
|
145
|
-
onKeyDown={handleKeyDown}
|
|
146
|
-
className={cn(
|
|
147
|
-
'flex-1 bg-transparent text-sm leading-20 outline-none',
|
|
148
|
-
'placeholder:text-foreground-neutral-muted',
|
|
149
|
-
'disabled:cursor-not-allowed disabled:text-foreground-neutral-disabled',
|
|
150
|
-
className,
|
|
151
|
-
)}
|
|
152
|
-
{...props}
|
|
153
|
-
/>
|
|
154
|
-
{showClearButton && hasValue && (
|
|
155
|
-
<button
|
|
156
|
-
type="button"
|
|
157
|
-
onClick={handleClear}
|
|
158
|
-
className={cn(
|
|
159
|
-
'shrink-0 cursor-pointer rounded-4 p-2',
|
|
160
|
-
'text-foreground-neutral-muted hover:text-foreground-neutral-subtle transition-colors',
|
|
161
|
-
)}
|
|
162
|
-
aria-label="Clear search"
|
|
163
|
-
>
|
|
164
|
-
<Icon name="closeLine" className="size-16" />
|
|
165
|
-
</button>
|
|
166
|
-
)}
|
|
167
|
-
</div>
|
|
168
|
-
);
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
function CommandList({className, ...props}: ComponentProps<typeof CommandPrimitive.List>) {
|
|
172
|
-
return (
|
|
173
|
-
<CommandPrimitive.List
|
|
174
|
-
data-slot="command-list"
|
|
175
|
-
className={cn('max-h-300 overflow-y-auto overflow-x-hidden p-4 scrollbar', className)}
|
|
176
|
-
{...props}
|
|
177
|
-
/>
|
|
178
|
-
);
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
function CommandEmpty({className, ...props}: ComponentProps<typeof CommandPrimitive.Empty>) {
|
|
182
|
-
return (
|
|
183
|
-
<CommandPrimitive.Empty
|
|
184
|
-
data-slot="command-empty"
|
|
185
|
-
className={cn('py-24 text-center text-sm text-foreground-neutral-muted', className)}
|
|
186
|
-
{...props}
|
|
187
|
-
/>
|
|
188
|
-
);
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
function CommandGroup({className, ...props}: ComponentProps<typeof CommandPrimitive.Group>) {
|
|
192
|
-
return (
|
|
193
|
-
<CommandPrimitive.Group
|
|
194
|
-
data-slot="command-group"
|
|
195
|
-
className={cn(
|
|
196
|
-
'overflow-hidden',
|
|
197
|
-
'[&_[cmdk-group-heading]]:px-8 [&_[cmdk-group-heading]]:py-4',
|
|
198
|
-
'[&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:leading-20',
|
|
199
|
-
'[&_[cmdk-group-heading]]:text-foreground-neutral-subtle',
|
|
200
|
-
'[&_[cmdk-group-heading]]:select-none',
|
|
201
|
-
className,
|
|
202
|
-
)}
|
|
203
|
-
{...props}
|
|
204
|
-
/>
|
|
205
|
-
);
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
function CommandSeparator({
|
|
209
|
-
className,
|
|
210
|
-
...props
|
|
211
|
-
}: ComponentProps<typeof CommandPrimitive.Separator>) {
|
|
212
|
-
return (
|
|
213
|
-
<CommandPrimitive.Separator
|
|
214
|
-
data-slot="command-separator"
|
|
215
|
-
className={cn(
|
|
216
|
-
'relative -mx-4 my-4 h-px',
|
|
217
|
-
'bg-border-neutral-menu-top',
|
|
218
|
-
'after:absolute after:inset-x-0 after:top-px after:h-px',
|
|
219
|
-
'after:bg-border-neutral-menu-bottom',
|
|
220
|
-
className,
|
|
221
|
-
)}
|
|
222
|
-
{...props}
|
|
223
|
-
/>
|
|
224
|
-
);
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
function CommandItem({className, ...props}: ComponentProps<typeof CommandPrimitive.Item>) {
|
|
228
|
-
return (
|
|
229
|
-
<CommandPrimitive.Item
|
|
230
|
-
data-slot="command-item"
|
|
231
|
-
className={cn(
|
|
232
|
-
'relative flex cursor-pointer select-none items-center gap-8 rounded-6 px-8 py-6',
|
|
233
|
-
'text-sm leading-20 text-foreground-neutral-subtle outline-none transition-colors',
|
|
234
|
-
'aria-selected:bg-background-components-hover aria-selected:text-foreground-neutral-base',
|
|
235
|
-
'data-[disabled=true]:pointer-events-none data-[disabled=true]:text-foreground-neutral-disabled',
|
|
236
|
-
className,
|
|
237
|
-
)}
|
|
238
|
-
{...props}
|
|
239
|
-
/>
|
|
240
|
-
);
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
function CommandShortcut({className, children, ...props}: ComponentProps<typeof Kbd>) {
|
|
244
|
-
return (
|
|
245
|
-
<Kbd data-slot="command-shortcut" className={cn('ml-auto', className)} {...props}>
|
|
246
|
-
{children}
|
|
247
|
-
</Kbd>
|
|
248
|
-
);
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
export {
|
|
252
|
-
Command,
|
|
253
|
-
CommandTrigger,
|
|
254
|
-
CommandDialog,
|
|
255
|
-
CommandInput,
|
|
256
|
-
CommandList,
|
|
257
|
-
CommandEmpty,
|
|
258
|
-
CommandGroup,
|
|
259
|
-
CommandItem,
|
|
260
|
-
CommandSeparator,
|
|
261
|
-
CommandShortcut,
|
|
262
|
-
commandTriggerVariants,
|
|
263
|
-
};
|
|
264
|
-
|
|
265
|
-
export type {CommandTriggerProps, CommandInputProps};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './command';
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import type {Meta, StoryObj} from '@storybook/react';
|
|
2
|
-
import {Confetti, ConfettiButton} from './confetti';
|
|
3
|
-
|
|
4
|
-
const meta = {
|
|
5
|
-
title: 'Components/Confetti',
|
|
6
|
-
component: Confetti,
|
|
7
|
-
tags: ['autodocs'],
|
|
8
|
-
parameters: {
|
|
9
|
-
layout: 'centered',
|
|
10
|
-
},
|
|
11
|
-
} satisfies Meta<typeof Confetti>;
|
|
12
|
-
|
|
13
|
-
export default meta;
|
|
14
|
-
type Story = StoryObj<typeof meta>;
|
|
15
|
-
|
|
16
|
-
export const Default: Story = {
|
|
17
|
-
render: () => (
|
|
18
|
-
<div className="flex h-400 w-600 items-center justify-center rounded-16 bg-background-subtle-base">
|
|
19
|
-
<ConfettiButton>Click for Confetti!</ConfettiButton>
|
|
20
|
-
</div>
|
|
21
|
-
),
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
export const WithOptions: Story = {
|
|
25
|
-
render: () => (
|
|
26
|
-
<div className="flex h-400 w-600 items-center justify-center rounded-16 bg-background-subtle-base">
|
|
27
|
-
<ConfettiButton
|
|
28
|
-
options={{
|
|
29
|
-
particleCount: 150,
|
|
30
|
-
spread: 60,
|
|
31
|
-
colors: ['#ff6b6b', '#4ecdc4', '#ffe66d', '#95e1d3'],
|
|
32
|
-
}}
|
|
33
|
-
>
|
|
34
|
-
Custom Confetti Button
|
|
35
|
-
</ConfettiButton>
|
|
36
|
-
</div>
|
|
37
|
-
),
|
|
38
|
-
};
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
GlobalOptions as ConfettiGlobalOptions,
|
|
3
|
-
CreateTypes as ConfettiInstance,
|
|
4
|
-
Options as ConfettiOptions,
|
|
5
|
-
} from 'canvas-confetti';
|
|
6
|
-
import confetti from 'canvas-confetti';
|
|
7
|
-
import {Button} from 'components/button';
|
|
8
|
-
import type {ComponentProps, ReactNode} from 'react';
|
|
9
|
-
import {
|
|
10
|
-
createContext,
|
|
11
|
-
forwardRef,
|
|
12
|
-
useCallback,
|
|
13
|
-
useEffect,
|
|
14
|
-
useImperativeHandle,
|
|
15
|
-
useMemo,
|
|
16
|
-
useRef,
|
|
17
|
-
} from 'react';
|
|
18
|
-
|
|
19
|
-
type ConfettiApi = {
|
|
20
|
-
fire: (options?: ConfettiOptions) => Promise<void>;
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
const ConfettiContext = createContext<ConfettiApi | null>(null);
|
|
24
|
-
|
|
25
|
-
export type ConfettiRef = ConfettiApi | null;
|
|
26
|
-
|
|
27
|
-
export type ConfettiProps = ComponentProps<'canvas'> & {
|
|
28
|
-
options?: ConfettiOptions;
|
|
29
|
-
globalOptions?: ConfettiGlobalOptions;
|
|
30
|
-
manualstart?: boolean;
|
|
31
|
-
children?: ReactNode;
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
const ConfettiComponent = forwardRef<ConfettiRef, ConfettiProps>(
|
|
35
|
-
(
|
|
36
|
-
{
|
|
37
|
-
options,
|
|
38
|
-
globalOptions = {resize: true, useWorker: true},
|
|
39
|
-
manualstart = false,
|
|
40
|
-
children,
|
|
41
|
-
...props
|
|
42
|
-
},
|
|
43
|
-
ref,
|
|
44
|
-
) => {
|
|
45
|
-
const instanceRef = useRef<ConfettiInstance | null>(null);
|
|
46
|
-
const hasAutoFiredRef = useRef<boolean>(false);
|
|
47
|
-
const optionsRef = useRef<ConfettiOptions | undefined>(options);
|
|
48
|
-
|
|
49
|
-
useEffect(() => {
|
|
50
|
-
optionsRef.current = options;
|
|
51
|
-
}, [options]);
|
|
52
|
-
|
|
53
|
-
const canvasRef = useCallback(
|
|
54
|
-
(node: HTMLCanvasElement | null) => {
|
|
55
|
-
if (node !== null) {
|
|
56
|
-
if (instanceRef.current) {
|
|
57
|
-
instanceRef.current.reset();
|
|
58
|
-
}
|
|
59
|
-
instanceRef.current = confetti.create(node, {
|
|
60
|
-
...globalOptions,
|
|
61
|
-
});
|
|
62
|
-
} else {
|
|
63
|
-
if (instanceRef.current) {
|
|
64
|
-
instanceRef.current.reset();
|
|
65
|
-
instanceRef.current = null;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
[globalOptions],
|
|
70
|
-
);
|
|
71
|
-
|
|
72
|
-
const fire = useCallback(async (opts: ConfettiOptions = {}) => {
|
|
73
|
-
try {
|
|
74
|
-
await instanceRef.current?.({...optionsRef.current, ...opts});
|
|
75
|
-
} catch (error) {
|
|
76
|
-
// biome-ignore lint/suspicious/noConsole: we need to log the error
|
|
77
|
-
console.error('Confetti error:', error);
|
|
78
|
-
}
|
|
79
|
-
}, []);
|
|
80
|
-
|
|
81
|
-
const api = useMemo<ConfettiApi>(
|
|
82
|
-
() => ({
|
|
83
|
-
fire,
|
|
84
|
-
}),
|
|
85
|
-
[fire],
|
|
86
|
-
);
|
|
87
|
-
|
|
88
|
-
useImperativeHandle(ref, () => api, [api]);
|
|
89
|
-
|
|
90
|
-
useEffect(() => {
|
|
91
|
-
if (!manualstart && !hasAutoFiredRef.current && instanceRef.current) {
|
|
92
|
-
hasAutoFiredRef.current = true;
|
|
93
|
-
void instanceRef.current(optionsRef.current);
|
|
94
|
-
}
|
|
95
|
-
}, [manualstart]);
|
|
96
|
-
|
|
97
|
-
return (
|
|
98
|
-
<ConfettiContext.Provider value={api}>
|
|
99
|
-
<canvas ref={canvasRef} {...props} />
|
|
100
|
-
{children}
|
|
101
|
-
</ConfettiContext.Provider>
|
|
102
|
-
);
|
|
103
|
-
},
|
|
104
|
-
);
|
|
105
|
-
|
|
106
|
-
ConfettiComponent.displayName = 'Confetti';
|
|
107
|
-
|
|
108
|
-
export const Confetti = ConfettiComponent;
|
|
109
|
-
|
|
110
|
-
export type ConfettiButtonProps = ComponentProps<'button'> & {
|
|
111
|
-
options?: ConfettiOptions & ConfettiGlobalOptions & {canvas?: HTMLCanvasElement};
|
|
112
|
-
};
|
|
113
|
-
|
|
114
|
-
export function ConfettiButton({options, onClick, children, ...props}: ConfettiButtonProps) {
|
|
115
|
-
const handleClick: ComponentProps<'button'>['onClick'] = async (event) => {
|
|
116
|
-
try {
|
|
117
|
-
const rect = event.currentTarget.getBoundingClientRect();
|
|
118
|
-
const x = rect.left + rect.width / 2;
|
|
119
|
-
const y = rect.top + rect.height / 2;
|
|
120
|
-
await confetti({
|
|
121
|
-
...options,
|
|
122
|
-
origin: {
|
|
123
|
-
x: x / window.innerWidth,
|
|
124
|
-
y: y / window.innerHeight,
|
|
125
|
-
},
|
|
126
|
-
});
|
|
127
|
-
} catch (error) {
|
|
128
|
-
// biome-ignore lint/suspicious/noConsole: we need to log the error
|
|
129
|
-
console.error('Confetti button error:', error);
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
onClick?.(event);
|
|
133
|
-
};
|
|
134
|
-
|
|
135
|
-
return (
|
|
136
|
-
<Button onClick={handleClick} {...props}>
|
|
137
|
-
{children}
|
|
138
|
-
</Button>
|
|
139
|
-
);
|
|
140
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './confetti';
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import {Icon} from 'components/icon';
|
|
2
|
-
import {Skeleton} from 'components/skeleton';
|
|
3
|
-
import {Text} from 'components/typography';
|
|
4
|
-
|
|
5
|
-
export function AnalyticsContent() {
|
|
6
|
-
return (
|
|
7
|
-
<div className="min-h-[calc(100vh-48px)] p-12 md:p-24 space-y-16 md:space-y-20 bg-background-neutral-base">
|
|
8
|
-
<div className="flex flex-col md:flex-row items-start md:items-center justify-between gap-12 md:gap-0">
|
|
9
|
-
<Skeleton className="h-28 md:h-32 w-120 md:w-160" />
|
|
10
|
-
<div className="flex items-center gap-8 md:gap-16">
|
|
11
|
-
<Skeleton className="h-28 md:h-32 w-80 md:w-100" />
|
|
12
|
-
<Skeleton className="h-28 md:h-32 w-100 md:w-160" />
|
|
13
|
-
</div>
|
|
14
|
-
</div>
|
|
15
|
-
|
|
16
|
-
<div className="flex gap-12 md:gap-16 overflow-x-auto scrollbar pb-4 md:pb-0 -mx-12 px-12 md:mx-0 md:px-0">
|
|
17
|
-
{['Total', 'Success', 'Failed', 'Neutral', 'Failure rate'].map((label) => (
|
|
18
|
-
<div
|
|
19
|
-
key={label}
|
|
20
|
-
className="shrink-0 w-100 md:w-auto md:flex-1 p-12 rounded-8 bg-background-neutral-base border border-border-neutral-base"
|
|
21
|
-
>
|
|
22
|
-
<p className="text-xs text-foreground-neutral-subtle mb-4">{label}</p>
|
|
23
|
-
<Skeleton className="h-20 w-40" />
|
|
24
|
-
</div>
|
|
25
|
-
))}
|
|
26
|
-
</div>
|
|
27
|
-
|
|
28
|
-
<div className="flex flex-col md:flex-row gap-16 md:gap-20">
|
|
29
|
-
<div className="flex-1 p-12 rounded-8 bg-background-neutral-base border border-border-neutral-base">
|
|
30
|
-
<p className="text-sm font-medium text-foreground-neutral-base mb-12">
|
|
31
|
-
Performance over time
|
|
32
|
-
</p>
|
|
33
|
-
<div className="h-120 md:h-160 flex items-center justify-center">
|
|
34
|
-
<div className="text-center">
|
|
35
|
-
<Icon
|
|
36
|
-
name="fileChartLine"
|
|
37
|
-
className="size-24 text-foreground-neutral-muted mx-auto mb-8"
|
|
38
|
-
/>
|
|
39
|
-
<p className="text-sm text-foreground-neutral-subtle">Nothing here yet.</p>
|
|
40
|
-
</div>
|
|
41
|
-
</div>
|
|
42
|
-
</div>
|
|
43
|
-
<div className="flex-1 p-12 rounded-8 bg-background-neutral-base border border-border-neutral-base">
|
|
44
|
-
<p className="text-sm font-medium text-foreground-neutral-base mb-12">
|
|
45
|
-
Duration distribution
|
|
46
|
-
</p>
|
|
47
|
-
<div className="h-120 md:h-160 flex items-center justify-center">
|
|
48
|
-
<div className="text-center">
|
|
49
|
-
<Icon
|
|
50
|
-
name="barChartBoxLine"
|
|
51
|
-
className="size-24 text-foreground-neutral-muted mx-auto mb-8"
|
|
52
|
-
/>
|
|
53
|
-
<p className="text-sm text-foreground-neutral-subtle">Nothing here yet.</p>
|
|
54
|
-
</div>
|
|
55
|
-
</div>
|
|
56
|
-
</div>
|
|
57
|
-
</div>
|
|
58
|
-
|
|
59
|
-
<div className="rounded-8 bg-background-neutral-base border border-border-neutral-base overflow-hidden">
|
|
60
|
-
<div className="flex flex-col md:flex-row items-start md:items-center justify-between p-12 gap-12 md:gap-0 border-b border-border-neutral-strong">
|
|
61
|
-
<p className="text-sm font-medium text-foreground-neutral-base">Jobs breakdown</p>
|
|
62
|
-
<div className="flex items-center gap-8 md:gap-16 w-full md:w-auto">
|
|
63
|
-
<Skeleton className="h-28 flex-1 md:flex-none md:w-200" />
|
|
64
|
-
<Skeleton className="h-28 w-28 shrink-0" />
|
|
65
|
-
</div>
|
|
66
|
-
</div>
|
|
67
|
-
<div className="py-48 md:py-64 flex flex-col items-center justify-center gap-12">
|
|
68
|
-
<div className="size-32 rounded-6 bg-transparent border border-border-neutral-strong flex items-center justify-center">
|
|
69
|
-
<Icon
|
|
70
|
-
name="shipfox"
|
|
71
|
-
className="size-16 text-foreground-neutral-subtle"
|
|
72
|
-
color="var(--foreground-neutral-subtle, #a1a1aa)"
|
|
73
|
-
/>
|
|
74
|
-
</div>
|
|
75
|
-
<div className="text-center space-y-4 px-16">
|
|
76
|
-
<Text size="sm" className="text-foreground-neutral-base">
|
|
77
|
-
No jobs yet
|
|
78
|
-
</Text>
|
|
79
|
-
<Text size="xs" className="text-foreground-neutral-muted">
|
|
80
|
-
Import past runs or start a runner.
|
|
81
|
-
</Text>
|
|
82
|
-
</div>
|
|
83
|
-
</div>
|
|
84
|
-
</div>
|
|
85
|
-
|
|
86
|
-
<div className="space-y-16">
|
|
87
|
-
{Array.from({length: 3}).map((_, i) => {
|
|
88
|
-
const blockId = `analytics-extra-block-${i}`;
|
|
89
|
-
return (
|
|
90
|
-
<div
|
|
91
|
-
key={blockId}
|
|
92
|
-
className="p-12 md:p-16 rounded-8 bg-background-subtle-base border border-border-neutral-strong"
|
|
93
|
-
>
|
|
94
|
-
<Skeleton className="h-16 w-full max-w-400 mb-8" />
|
|
95
|
-
<Skeleton className="h-12 w-full max-w-600" />
|
|
96
|
-
</div>
|
|
97
|
-
);
|
|
98
|
-
})}
|
|
99
|
-
</div>
|
|
100
|
-
</div>
|
|
101
|
-
);
|
|
102
|
-
}
|