@shipfox/react-ui 0.14.0 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/avatar/avatar.js +1 -1
- package/dist/components/button-group/button-group.d.ts +17 -0
- package/dist/components/button-group/button-group.js +74 -0
- package/dist/components/button-group/button-group.stories.js +644 -0
- package/dist/components/button-group/index.d.ts +2 -0
- package/dist/components/button-group/index.js +3 -0
- package/dist/components/code-block/code-block-footer.js +4 -2
- package/dist/components/command/command.d.ts +28 -0
- package/dist/components/command/command.js +190 -0
- package/dist/components/command/command.stories.js +228 -0
- package/dist/components/command/index.d.ts +2 -0
- package/dist/components/command/index.js +3 -0
- package/dist/components/dashboard/components/animated-logo.d.ts +4 -0
- package/dist/components/dashboard/components/animated-logo.js +23 -0
- package/dist/components/dashboard/components/charts/bar-chart.d.ts +39 -0
- package/dist/components/dashboard/components/charts/bar-chart.js +104 -0
- package/dist/components/dashboard/components/charts/chart-tooltip.d.ts +14 -0
- package/dist/components/dashboard/components/charts/chart-tooltip.js +45 -0
- package/dist/components/dashboard/components/charts/colors.d.ts +11 -0
- package/dist/components/dashboard/components/charts/colors.js +17 -0
- package/dist/components/dashboard/components/charts/index.d.ts +5 -0
- package/dist/components/dashboard/components/charts/index.js +6 -0
- package/dist/components/dashboard/components/charts/line-chart.d.ts +37 -0
- package/dist/components/dashboard/components/charts/line-chart.js +128 -0
- package/dist/components/dashboard/components/complete-setup-button.d.ts +4 -0
- package/dist/components/dashboard/components/complete-setup-button.js +28 -0
- package/dist/components/dashboard/components/dashboard-alert.d.ts +8 -0
- package/dist/components/dashboard/components/dashboard-alert.js +24 -0
- package/dist/components/dashboard/components/kpi-card.d.ts +15 -0
- package/dist/components/dashboard/components/kpi-card.js +77 -0
- package/dist/components/dashboard/components/mobile-menu.d.ts +2 -0
- package/dist/components/dashboard/components/mobile-menu.js +65 -0
- package/dist/components/dashboard/components/mobile-sidebar.d.ts +19 -0
- package/dist/components/dashboard/components/mobile-sidebar.js +50 -0
- package/dist/components/dashboard/components/organization-selector.d.ts +25 -0
- package/dist/components/dashboard/components/organization-selector.js +115 -0
- package/dist/components/dashboard/components/sidebar.d.ts +24 -0
- package/dist/components/dashboard/components/sidebar.js +218 -0
- package/dist/components/dashboard/components/top-menu.d.ts +5 -0
- package/dist/components/dashboard/components/top-menu.js +31 -0
- package/dist/components/dashboard/components/topbar-button.d.ts +7 -0
- package/dist/components/dashboard/components/topbar-button.js +18 -0
- package/dist/components/dashboard/components/topbar.d.ts +4 -0
- package/dist/components/dashboard/components/topbar.js +62 -0
- package/dist/components/dashboard/components/user-profile.d.ts +2 -0
- package/dist/components/dashboard/components/user-profile.js +146 -0
- package/dist/components/dashboard/context/dashboard-context.d.ts +70 -0
- package/dist/components/dashboard/context/dashboard-context.js +175 -0
- package/dist/components/dashboard/context/index.d.ts +8 -0
- package/dist/components/dashboard/context/index.js +6 -0
- package/dist/components/dashboard/context/types.d.ts +50 -0
- package/dist/components/dashboard/context/types.js +7 -0
- package/dist/components/dashboard/context/utils.d.ts +28 -0
- package/dist/components/dashboard/context/utils.js +53 -0
- package/dist/components/dashboard/dashboard.d.ts +28 -0
- package/dist/components/dashboard/dashboard.js +110 -0
- package/dist/components/dashboard/dashboard.stories.js +23 -0
- package/dist/components/dashboard/filters/expression-filter-bar.d.ts +42 -0
- package/dist/components/dashboard/filters/expression-filter-bar.js +80 -0
- package/dist/components/dashboard/filters/index.d.ts +6 -0
- package/dist/components/dashboard/filters/index.js +5 -0
- package/dist/components/dashboard/index.d.ts +26 -0
- package/dist/components/dashboard/index.js +24 -0
- package/dist/components/dashboard/pages/analytics-page.d.ts +20 -0
- package/dist/components/dashboard/pages/analytics-page.js +258 -0
- package/dist/components/dashboard/pages/index.d.ts +6 -0
- package/dist/components/dashboard/pages/index.js +6 -0
- package/dist/components/dashboard/pages/jobs-page.d.ts +20 -0
- package/dist/components/dashboard/pages/jobs-page.js +56 -0
- package/dist/components/dashboard/table/index.d.ts +6 -0
- package/dist/components/dashboard/table/index.js +5 -0
- package/dist/components/dashboard/table/table-wrapper.d.ts +104 -0
- package/dist/components/dashboard/table/table-wrapper.js +93 -0
- package/dist/components/dashboard/toolbar/filter-button.d.ts +12 -0
- package/dist/components/dashboard/toolbar/filter-button.js +124 -0
- package/dist/components/dashboard/toolbar/index.d.ts +13 -0
- package/dist/components/dashboard/toolbar/index.js +10 -0
- package/dist/components/dashboard/toolbar/page-toolbar.d.ts +75 -0
- package/dist/components/dashboard/toolbar/page-toolbar.js +208 -0
- package/dist/components/dashboard/toolbar/toolbar-actions.d.ts +52 -0
- package/dist/components/dashboard/toolbar/toolbar-actions.js +51 -0
- package/dist/components/dashboard/toolbar/toolbar-search.d.ts +21 -0
- package/dist/components/dashboard/toolbar/toolbar-search.js +123 -0
- package/dist/components/dashboard/toolbar/view-dropdown.d.ts +11 -0
- package/dist/components/dashboard/toolbar/view-dropdown.js +113 -0
- package/dist/components/form/form.stories.js +6 -1
- package/dist/components/index.d.ts +8 -0
- package/dist/components/index.js +8 -0
- package/dist/components/kbd/index.d.ts +2 -0
- package/dist/components/kbd/index.js +3 -0
- package/dist/components/kbd/kbd.d.ts +7 -0
- package/dist/components/kbd/kbd.js +18 -0
- package/dist/components/kbd/kbd.stories.js +119 -0
- package/dist/components/modal/modal.js +3 -3
- package/dist/components/search/index.d.ts +7 -0
- package/dist/components/search/index.js +8 -0
- package/dist/components/search/search-context.d.ts +11 -0
- package/dist/components/search/search-context.js +56 -0
- package/dist/components/search/search-inline.d.ts +9 -0
- package/dist/components/search/search-inline.js +85 -0
- package/dist/components/search/search-modal.d.ts +25 -0
- package/dist/components/search/search-modal.js +168 -0
- package/dist/components/search/search-trigger.d.ts +9 -0
- package/dist/components/search/search-trigger.js +37 -0
- package/dist/components/search/search-variants.d.ts +14 -0
- package/dist/components/search/search-variants.js +90 -0
- package/dist/components/search/search.d.ts +11 -0
- package/dist/components/search/search.js +35 -0
- package/dist/components/search/search.stories.js +630 -0
- package/dist/components/select/index.d.ts +2 -0
- package/dist/components/select/index.js +3 -0
- package/dist/components/select/select.d.ts +27 -0
- package/dist/components/select/select.js +154 -0
- package/dist/components/select/select.stories.js +393 -0
- package/dist/components/sheet/index.d.ts +2 -0
- package/dist/components/sheet/index.js +3 -0
- package/dist/components/sheet/sheet.d.ts +33 -0
- package/dist/components/sheet/sheet.js +163 -0
- package/dist/components/sheet/sheet.stories.js +368 -0
- package/dist/components/skeleton/index.d.ts +2 -0
- package/dist/components/skeleton/index.js +3 -0
- package/dist/components/skeleton/skeleton.d.ts +5 -0
- package/dist/components/skeleton/skeleton.js +11 -0
- package/dist/components/skeleton/skeleton.stories.js +345 -0
- package/dist/components/table/data-table.d.ts +83 -0
- package/dist/components/table/data-table.js +164 -0
- package/dist/components/table/index.d.ts +6 -0
- package/dist/components/table/index.js +6 -0
- package/dist/components/table/table-column-header.d.ts +79 -0
- package/dist/components/table/table-column-header.js +99 -0
- package/dist/components/table/table-pagination.d.ts +53 -0
- package/dist/components/table/table-pagination.js +139 -0
- package/dist/components/table/table.d.ts +11 -0
- package/dist/components/table/table.js +64 -0
- package/dist/components/table/table.stories.columns.d.ts +24 -0
- package/dist/components/table/table.stories.columns.js +310 -0
- package/dist/components/table/table.stories.components.d.ts +14 -0
- package/dist/components/table/table.stories.components.js +107 -0
- package/dist/components/table/table.stories.data.d.ts +54 -0
- package/dist/components/table/table.stories.data.js +122 -0
- package/dist/components/table/table.stories.js +302 -0
- package/dist/styles.css +1 -1
- package/package.json +14 -5
- package/.storybook/main.ts +0 -35
- package/.storybook/preview.tsx +0 -59
- package/.storybook/vitest.setup.ts +0 -4
- package/.turbo/turbo-build.log +0 -19
- package/.turbo/turbo-check.log +0 -6
- package/.turbo/turbo-type.log +0 -5
- package/CHANGELOG.md +0 -104
- package/argos.config.ts +0 -33
- package/dist/build-css-entry.js.map +0 -1
- package/dist/colors.stories.conts.d.ts.map +0 -1
- package/dist/colors.stories.conts.js.map +0 -1
- package/dist/colors.stories.js.map +0 -1
- package/dist/components/alert/alert.d.ts.map +0 -1
- package/dist/components/alert/alert.js.map +0 -1
- package/dist/components/alert/alert.stories.js.map +0 -1
- package/dist/components/alert/index.d.ts.map +0 -1
- package/dist/components/alert/index.js.map +0 -1
- package/dist/components/avatar/avatar-group.d.ts.map +0 -1
- package/dist/components/avatar/avatar-group.js.map +0 -1
- package/dist/components/avatar/avatar.d.ts.map +0 -1
- package/dist/components/avatar/avatar.js.map +0 -1
- package/dist/components/avatar/avatar.stories.js.map +0 -1
- package/dist/components/avatar/index.d.ts.map +0 -1
- package/dist/components/avatar/index.js.map +0 -1
- package/dist/components/badge/badge.d.ts.map +0 -1
- package/dist/components/badge/badge.js.map +0 -1
- package/dist/components/badge/badge.stories.js.map +0 -1
- package/dist/components/badge/icon-badge.d.ts.map +0 -1
- package/dist/components/badge/icon-badge.js.map +0 -1
- package/dist/components/badge/index.d.ts.map +0 -1
- package/dist/components/badge/index.js.map +0 -1
- package/dist/components/badge/status-badge.d.ts.map +0 -1
- package/dist/components/badge/status-badge.js.map +0 -1
- package/dist/components/badge/user-badge.d.ts.map +0 -1
- package/dist/components/badge/user-badge.js.map +0 -1
- package/dist/components/button/button-link.d.ts.map +0 -1
- package/dist/components/button/button-link.js.map +0 -1
- package/dist/components/button/button-link.stories.js.map +0 -1
- package/dist/components/button/button.d.ts.map +0 -1
- package/dist/components/button/button.js.map +0 -1
- package/dist/components/button/button.stories.js.map +0 -1
- package/dist/components/button/icon-button.d.ts.map +0 -1
- package/dist/components/button/icon-button.js.map +0 -1
- package/dist/components/button/icon-button.stories.js.map +0 -1
- package/dist/components/button/index.d.ts.map +0 -1
- package/dist/components/button/index.js.map +0 -1
- package/dist/components/calendar/calendar.d.ts.map +0 -1
- package/dist/components/calendar/calendar.js.map +0 -1
- package/dist/components/calendar/index.d.ts.map +0 -1
- package/dist/components/calendar/index.js.map +0 -1
- package/dist/components/checkbox/checkbox-label.d.ts.map +0 -1
- package/dist/components/checkbox/checkbox-label.js.map +0 -1
- package/dist/components/checkbox/checkbox-links.d.ts.map +0 -1
- package/dist/components/checkbox/checkbox-links.js.map +0 -1
- package/dist/components/checkbox/checkbox.d.ts.map +0 -1
- package/dist/components/checkbox/checkbox.js.map +0 -1
- package/dist/components/checkbox/checkbox.stories.js.map +0 -1
- package/dist/components/checkbox/index.d.ts.map +0 -1
- package/dist/components/checkbox/index.js.map +0 -1
- package/dist/components/code-block/code-block-footer.d.ts.map +0 -1
- package/dist/components/code-block/code-block-footer.js.map +0 -1
- package/dist/components/code-block/code-block.d.ts.map +0 -1
- package/dist/components/code-block/code-block.js.map +0 -1
- package/dist/components/code-block/code-block.stories.js.map +0 -1
- package/dist/components/code-block/code-content.d.ts.map +0 -1
- package/dist/components/code-block/code-content.js.map +0 -1
- package/dist/components/code-block/code-copy-button.d.ts.map +0 -1
- package/dist/components/code-block/code-copy-button.js.map +0 -1
- package/dist/components/code-block/code-tabs.d.ts.map +0 -1
- package/dist/components/code-block/code-tabs.js.map +0 -1
- package/dist/components/code-block/index.d.ts.map +0 -1
- package/dist/components/code-block/index.js.map +0 -1
- package/dist/components/confetti/confetti.d.ts.map +0 -1
- package/dist/components/confetti/confetti.js.map +0 -1
- package/dist/components/confetti/confetti.stories.js.map +0 -1
- package/dist/components/confetti/index.d.ts.map +0 -1
- package/dist/components/confetti/index.js.map +0 -1
- package/dist/components/date-picker/date-picker.d.ts.map +0 -1
- package/dist/components/date-picker/date-picker.js.map +0 -1
- package/dist/components/date-picker/date-picker.stories.js.map +0 -1
- package/dist/components/date-picker/index.d.ts.map +0 -1
- package/dist/components/date-picker/index.js.map +0 -1
- package/dist/components/date-time-range-picker/date-time-range-picker.d.ts.map +0 -1
- package/dist/components/date-time-range-picker/date-time-range-picker.js.map +0 -1
- package/dist/components/date-time-range-picker/index.d.ts.map +0 -1
- package/dist/components/date-time-range-picker/index.js.map +0 -1
- package/dist/components/dot-grid/dot-grid.d.ts.map +0 -1
- package/dist/components/dot-grid/dot-grid.js.map +0 -1
- package/dist/components/dot-grid/index.d.ts.map +0 -1
- package/dist/components/dot-grid/index.js.map +0 -1
- package/dist/components/dropdown-menu/dropdown-menu.d.ts.map +0 -1
- package/dist/components/dropdown-menu/dropdown-menu.js.map +0 -1
- package/dist/components/dropdown-menu/dropdown-menu.stories.js.map +0 -1
- package/dist/components/dropdown-menu/index.d.ts.map +0 -1
- package/dist/components/dropdown-menu/index.js.map +0 -1
- package/dist/components/dynamic-item/dynamic-item.d.ts.map +0 -1
- package/dist/components/dynamic-item/dynamic-item.js.map +0 -1
- package/dist/components/dynamic-item/dynamic-item.stories.js.map +0 -1
- package/dist/components/dynamic-item/index.d.ts.map +0 -1
- package/dist/components/dynamic-item/index.js.map +0 -1
- package/dist/components/form/form.d.ts.map +0 -1
- package/dist/components/form/form.js.map +0 -1
- package/dist/components/form/form.stories.js.map +0 -1
- package/dist/components/form/index.d.ts.map +0 -1
- package/dist/components/form/index.js.map +0 -1
- package/dist/components/icon/custom/badge.d.ts.map +0 -1
- package/dist/components/icon/custom/badge.js.map +0 -1
- package/dist/components/icon/custom/check-circle-solid.d.ts.map +0 -1
- package/dist/components/icon/custom/check-circle-solid.js.map +0 -1
- package/dist/components/icon/custom/circle-dotted-line.d.ts.map +0 -1
- package/dist/components/icon/custom/circle-dotted-line.js.map +0 -1
- package/dist/components/icon/custom/component-fill.d.ts.map +0 -1
- package/dist/components/icon/custom/component-fill.js.map +0 -1
- package/dist/components/icon/custom/component-line.d.ts.map +0 -1
- package/dist/components/icon/custom/component-line.js.map +0 -1
- package/dist/components/icon/custom/ellipse-mini-solid.d.ts.map +0 -1
- package/dist/components/icon/custom/ellipse-mini-solid.js.map +0 -1
- package/dist/components/icon/custom/index.d.ts.map +0 -1
- package/dist/components/icon/custom/index.js.map +0 -1
- package/dist/components/icon/custom/info-tooltip-fill.d.ts.map +0 -1
- package/dist/components/icon/custom/info-tooltip-fill.js.map +0 -1
- package/dist/components/icon/custom/resize.d.ts.map +0 -1
- package/dist/components/icon/custom/resize.js.map +0 -1
- package/dist/components/icon/custom/shipfox-logo.d.ts.map +0 -1
- package/dist/components/icon/custom/shipfox-logo.js.map +0 -1
- package/dist/components/icon/custom/slack-logo.d.ts.map +0 -1
- package/dist/components/icon/custom/slack-logo.js.map +0 -1
- package/dist/components/icon/custom/spinner.d.ts.map +0 -1
- package/dist/components/icon/custom/spinner.js.map +0 -1
- package/dist/components/icon/custom/stripe-logo.d.ts.map +0 -1
- package/dist/components/icon/custom/stripe-logo.js.map +0 -1
- package/dist/components/icon/custom/thunder.d.ts.map +0 -1
- package/dist/components/icon/custom/thunder.js.map +0 -1
- package/dist/components/icon/custom/x-circle-solid.d.ts.map +0 -1
- package/dist/components/icon/custom/x-circle-solid.js.map +0 -1
- package/dist/components/icon/icon.d.ts.map +0 -1
- package/dist/components/icon/icon.js.map +0 -1
- package/dist/components/icon/icon.stories.js.map +0 -1
- package/dist/components/icon/index.d.ts.map +0 -1
- package/dist/components/icon/index.js.map +0 -1
- package/dist/components/icon/remixicon-registry.d.ts.map +0 -1
- package/dist/components/icon/remixicon-registry.js.map +0 -1
- package/dist/components/index.d.ts.map +0 -1
- package/dist/components/index.js.map +0 -1
- package/dist/components/inline-tips/index.d.ts.map +0 -1
- package/dist/components/inline-tips/index.js.map +0 -1
- package/dist/components/inline-tips/inline-tips.d.ts.map +0 -1
- package/dist/components/inline-tips/inline-tips.js.map +0 -1
- package/dist/components/inline-tips/inline-tips.stories.js.map +0 -1
- package/dist/components/input/index.d.ts.map +0 -1
- package/dist/components/input/index.js.map +0 -1
- package/dist/components/input/input.d.ts.map +0 -1
- package/dist/components/input/input.js.map +0 -1
- package/dist/components/input/input.stories.js.map +0 -1
- package/dist/components/item/index.d.ts.map +0 -1
- package/dist/components/item/index.js.map +0 -1
- package/dist/components/item/item.d.ts.map +0 -1
- package/dist/components/item/item.js.map +0 -1
- package/dist/components/item/item.stories.js.map +0 -1
- package/dist/components/label/index.d.ts.map +0 -1
- package/dist/components/label/index.js.map +0 -1
- package/dist/components/label/label.d.ts.map +0 -1
- package/dist/components/label/label.js.map +0 -1
- package/dist/components/label/label.stories.js.map +0 -1
- package/dist/components/modal/index.d.ts.map +0 -1
- package/dist/components/modal/index.js.map +0 -1
- package/dist/components/modal/modal.d.ts.map +0 -1
- package/dist/components/modal/modal.js.map +0 -1
- package/dist/components/modal/modal.stories.js.map +0 -1
- package/dist/components/moving-border/index.d.ts.map +0 -1
- package/dist/components/moving-border/index.js.map +0 -1
- package/dist/components/moving-border/moving-border.d.ts.map +0 -1
- package/dist/components/moving-border/moving-border.js.map +0 -1
- package/dist/components/popover/index.d.ts.map +0 -1
- package/dist/components/popover/index.js.map +0 -1
- package/dist/components/popover/popover.d.ts.map +0 -1
- package/dist/components/popover/popover.js.map +0 -1
- package/dist/components/shiny-text/index.d.ts.map +0 -1
- package/dist/components/shiny-text/index.js.map +0 -1
- package/dist/components/shiny-text/shiny-text.d.ts.map +0 -1
- package/dist/components/shiny-text/shiny-text.js.map +0 -1
- package/dist/components/tabs/index.d.ts.map +0 -1
- package/dist/components/tabs/index.js.map +0 -1
- package/dist/components/tabs/tabs.d.ts.map +0 -1
- package/dist/components/tabs/tabs.js.map +0 -1
- package/dist/components/tabs/tabs.stories.js.map +0 -1
- package/dist/components/textarea/index.d.ts.map +0 -1
- package/dist/components/textarea/index.js.map +0 -1
- package/dist/components/textarea/textarea.d.ts.map +0 -1
- package/dist/components/textarea/textarea.js.map +0 -1
- package/dist/components/textarea/textarea.stories.js.map +0 -1
- package/dist/components/theme/index.d.ts.map +0 -1
- package/dist/components/theme/index.js.map +0 -1
- package/dist/components/theme/theme-provider.d.ts.map +0 -1
- package/dist/components/theme/theme-provider.js.map +0 -1
- package/dist/components/toast/index.d.ts.map +0 -1
- package/dist/components/toast/index.js.map +0 -1
- package/dist/components/toast/toast-custom.d.ts.map +0 -1
- package/dist/components/toast/toast-custom.js.map +0 -1
- package/dist/components/toast/toast.d.ts.map +0 -1
- package/dist/components/toast/toast.js.map +0 -1
- package/dist/components/toast/toast.stories.js.map +0 -1
- package/dist/components/tooltip/index.d.ts.map +0 -1
- package/dist/components/tooltip/index.js.map +0 -1
- package/dist/components/tooltip/tooltip.d.ts.map +0 -1
- package/dist/components/tooltip/tooltip.js.map +0 -1
- package/dist/components/tooltip/tooltip.stories.js.map +0 -1
- package/dist/components/typography/code.d.ts.map +0 -1
- package/dist/components/typography/code.js.map +0 -1
- package/dist/components/typography/code.stories.js.map +0 -1
- package/dist/components/typography/header.d.ts.map +0 -1
- package/dist/components/typography/header.js.map +0 -1
- package/dist/components/typography/header.stories.js.map +0 -1
- package/dist/components/typography/index.d.ts.map +0 -1
- package/dist/components/typography/index.js.map +0 -1
- package/dist/components/typography/text.d.ts.map +0 -1
- package/dist/components/typography/text.js.map +0 -1
- package/dist/components/typography/text.stories.js.map +0 -1
- package/dist/hooks/index.d.ts.map +0 -1
- package/dist/hooks/index.js.map +0 -1
- package/dist/hooks/useCopy.d.ts.map +0 -1
- package/dist/hooks/useCopy.js.map +0 -1
- package/dist/hooks/useCopyToClipboard.d.ts.map +0 -1
- package/dist/hooks/useCopyToClipboard.js.map +0 -1
- package/dist/hooks/useMediaQuery.d.ts.map +0 -1
- package/dist/hooks/useMediaQuery.js.map +0 -1
- package/dist/hooks/useResolvedTheme.d.ts.map +0 -1
- package/dist/hooks/useResolvedTheme.js.map +0 -1
- package/dist/hooks/useShikiHighlight.d.ts.map +0 -1
- package/dist/hooks/useShikiHighlight.js.map +0 -1
- package/dist/hooks/useShikiStyleInjection.d.ts.map +0 -1
- package/dist/hooks/useShikiStyleInjection.js.map +0 -1
- package/dist/hooks/useTheme.d.ts.map +0 -1
- package/dist/hooks/useTheme.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/onboarding/sign-in.stories.js.map +0 -1
- package/dist/state/theme.d.ts.map +0 -1
- package/dist/state/theme.js.map +0 -1
- package/dist/utils/avatar.d.ts.map +0 -1
- package/dist/utils/avatar.js.map +0 -1
- package/dist/utils/clipboard.d.ts.map +0 -1
- package/dist/utils/clipboard.js.map +0 -1
- package/dist/utils/cn.d.ts.map +0 -1
- package/dist/utils/cn.js.map +0 -1
- package/dist/utils/date.d.ts.map +0 -1
- package/dist/utils/date.js.map +0 -1
- package/dist/utils/debounce.d.ts.map +0 -1
- package/dist/utils/debounce.js.map +0 -1
- package/dist/utils/format/chart.d.ts.map +0 -1
- package/dist/utils/format/chart.js.map +0 -1
- package/dist/utils/format/date.d.ts.map +0 -1
- package/dist/utils/format/date.js.map +0 -1
- package/dist/utils/format/duration.d.ts.map +0 -1
- package/dist/utils/format/duration.js.map +0 -1
- package/dist/utils/format/index.d.ts.map +0 -1
- package/dist/utils/format/index.js.map +0 -1
- package/dist/utils/format/number.d.ts.map +0 -1
- package/dist/utils/format/number.js.map +0 -1
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/index.js.map +0 -1
- package/index.css +0 -970
- package/src/assets/illustration-1.svg +0 -92
- package/src/assets/illustration-2.svg +0 -14
- package/src/assets/illustration-gradient.svg +0 -7049
- package/src/build-css-entry.ts +0 -3
- package/src/colors.stories.conts.ts +0 -164
- package/src/colors.stories.tsx +0 -66
- package/src/components/alert/alert.stories.tsx +0 -178
- package/src/components/alert/alert.tsx +0 -291
- package/src/components/alert/index.ts +0 -1
- package/src/components/avatar/avatar-group.tsx +0 -186
- package/src/components/avatar/avatar.stories.tsx +0 -179
- package/src/components/avatar/avatar.tsx +0 -219
- package/src/components/avatar/index.ts +0 -2
- package/src/components/badge/badge.stories.tsx +0 -468
- package/src/components/badge/badge.tsx +0 -147
- package/src/components/badge/icon-badge.tsx +0 -43
- package/src/components/badge/index.ts +0 -4
- package/src/components/badge/status-badge.tsx +0 -43
- package/src/components/badge/user-badge.tsx +0 -34
- package/src/components/button/button-link.stories.tsx +0 -86
- package/src/components/button/button-link.tsx +0 -76
- package/src/components/button/button.stories.tsx +0 -138
- package/src/components/button/button.tsx +0 -91
- package/src/components/button/icon-button.stories.tsx +0 -228
- package/src/components/button/icon-button.tsx +0 -95
- package/src/components/button/index.ts +0 -3
- package/src/components/calendar/calendar.tsx +0 -90
- package/src/components/calendar/index.ts +0 -1
- package/src/components/checkbox/checkbox-label.tsx +0 -125
- package/src/components/checkbox/checkbox-links.tsx +0 -92
- package/src/components/checkbox/checkbox.stories.tsx +0 -391
- package/src/components/checkbox/checkbox.tsx +0 -71
- package/src/components/checkbox/index.ts +0 -3
- package/src/components/code-block/code-block-footer.tsx +0 -190
- package/src/components/code-block/code-block.stories.tsx +0 -323
- package/src/components/code-block/code-block.tsx +0 -283
- package/src/components/code-block/code-content.tsx +0 -63
- package/src/components/code-block/code-copy-button.tsx +0 -73
- package/src/components/code-block/code-tabs.tsx +0 -170
- package/src/components/code-block/index.ts +0 -3
- package/src/components/confetti/confetti.stories.tsx +0 -38
- package/src/components/confetti/confetti.tsx +0 -140
- package/src/components/confetti/index.ts +0 -1
- package/src/components/date-picker/date-picker.stories.tsx +0 -230
- package/src/components/date-picker/date-picker.tsx +0 -179
- package/src/components/date-picker/index.ts +0 -1
- package/src/components/date-time-range-picker/date-time-range-picker.tsx +0 -211
- package/src/components/date-time-range-picker/index.ts +0 -1
- package/src/components/dot-grid/dot-grid.tsx +0 -325
- package/src/components/dot-grid/index.ts +0 -1
- package/src/components/dropdown-menu/dropdown-menu.stories.tsx +0 -384
- package/src/components/dropdown-menu/dropdown-menu.tsx +0 -416
- package/src/components/dropdown-menu/index.ts +0 -1
- package/src/components/dynamic-item/dynamic-item.stories.tsx +0 -266
- package/src/components/dynamic-item/dynamic-item.tsx +0 -74
- package/src/components/dynamic-item/index.ts +0 -1
- package/src/components/form/form.stories.tsx +0 -500
- package/src/components/form/form.tsx +0 -154
- package/src/components/form/index.ts +0 -1
- package/src/components/icon/custom/badge.tsx +0 -17
- package/src/components/icon/custom/check-circle-solid.tsx +0 -24
- package/src/components/icon/custom/circle-dotted-line.tsx +0 -17
- package/src/components/icon/custom/component-fill.tsx +0 -17
- package/src/components/icon/custom/component-line.tsx +0 -17
- package/src/components/icon/custom/ellipse-mini-solid.tsx +0 -17
- package/src/components/icon/custom/index.ts +0 -14
- package/src/components/icon/custom/info-tooltip-fill.tsx +0 -21
- package/src/components/icon/custom/resize.tsx +0 -17
- package/src/components/icon/custom/shipfox-logo.tsx +0 -20
- package/src/components/icon/custom/slack-logo.tsx +0 -35
- package/src/components/icon/custom/spinner.tsx +0 -144
- package/src/components/icon/custom/stripe-logo.tsx +0 -27
- package/src/components/icon/custom/thunder.tsx +0 -17
- package/src/components/icon/custom/x-circle-solid.tsx +0 -24
- package/src/components/icon/icon.stories.tsx +0 -31
- package/src/components/icon/icon.tsx +0 -90
- package/src/components/icon/index.ts +0 -1
- package/src/components/icon/remixicon-registry.ts +0 -24
- package/src/components/index.ts +0 -29
- package/src/components/inline-tips/index.ts +0 -1
- package/src/components/inline-tips/inline-tips.stories.tsx +0 -131
- package/src/components/inline-tips/inline-tips.tsx +0 -132
- package/src/components/input/index.ts +0 -1
- package/src/components/input/input.stories.tsx +0 -138
- package/src/components/input/input.tsx +0 -43
- package/src/components/item/index.ts +0 -1
- package/src/components/item/item.stories.tsx +0 -159
- package/src/components/item/item.tsx +0 -182
- package/src/components/label/index.ts +0 -1
- package/src/components/label/label.stories.tsx +0 -67
- package/src/components/label/label.tsx +0 -15
- package/src/components/modal/index.ts +0 -1
- package/src/components/modal/modal.stories.tsx +0 -448
- package/src/components/modal/modal.tsx +0 -311
- package/src/components/moving-border/index.ts +0 -1
- package/src/components/moving-border/moving-border.tsx +0 -67
- package/src/components/popover/index.ts +0 -1
- package/src/components/popover/popover.tsx +0 -60
- package/src/components/renovate.json +0 -23
- package/src/components/shiny-text/index.ts +0 -1
- package/src/components/shiny-text/shiny-text.tsx +0 -21
- package/src/components/tabs/index.ts +0 -1
- package/src/components/tabs/tabs.stories.tsx +0 -100
- package/src/components/tabs/tabs.tsx +0 -380
- package/src/components/textarea/index.ts +0 -1
- package/src/components/textarea/textarea.stories.tsx +0 -196
- package/src/components/textarea/textarea.tsx +0 -42
- package/src/components/theme/index.ts +0 -1
- package/src/components/theme/theme-provider.tsx +0 -50
- package/src/components/toast/index.ts +0 -2
- package/src/components/toast/toast-custom.tsx +0 -154
- package/src/components/toast/toast.stories.tsx +0 -369
- package/src/components/toast/toast.tsx +0 -41
- package/src/components/tooltip/index.ts +0 -1
- package/src/components/tooltip/tooltip.stories.tsx +0 -284
- package/src/components/tooltip/tooltip.tsx +0 -121
- package/src/components/typography/code.stories.tsx +0 -36
- package/src/components/typography/code.tsx +0 -38
- package/src/components/typography/header.stories.tsx +0 -27
- package/src/components/typography/header.tsx +0 -41
- package/src/components/typography/index.ts +0 -3
- package/src/components/typography/text.stories.tsx +0 -67
- package/src/components/typography/text.tsx +0 -50
- package/src/hooks/index.ts +0 -6
- package/src/hooks/useCopy.ts +0 -0
- package/src/hooks/useCopyToClipboard.ts +0 -20
- package/src/hooks/useMediaQuery.ts +0 -87
- package/src/hooks/useResolvedTheme.ts +0 -34
- package/src/hooks/useShikiHighlight.ts +0 -140
- package/src/hooks/useShikiStyleInjection.ts +0 -34
- package/src/hooks/useTheme.ts +0 -10
- package/src/index.ts +0 -4
- package/src/onboarding/sign-in.stories.tsx +0 -85
- package/src/state/theme.ts +0 -15
- package/src/utils/avatar.ts +0 -27
- package/src/utils/clipboard.ts +0 -4
- package/src/utils/cn.ts +0 -6
- package/src/utils/date.test.ts +0 -119
- package/src/utils/date.ts +0 -99
- package/src/utils/debounce.ts +0 -15
- package/src/utils/format/chart.ts +0 -16
- package/src/utils/format/date.test.ts +0 -65
- package/src/utils/format/date.ts +0 -75
- package/src/utils/format/duration.test.ts +0 -58
- package/src/utils/format/duration.ts +0 -82
- package/src/utils/format/index.ts +0 -4
- package/src/utils/format/number.test.ts +0 -38
- package/src/utils/format/number.ts +0 -33
- package/src/utils/index.ts +0 -6
- package/test/global.ts +0 -3
- package/test/setup.ts +0 -9
- package/tsconfig.build.json +0 -19
- package/tsconfig.json +0 -11
- package/tsconfig.test.json +0 -12
- package/vercel.json +0 -8
- package/vite.css.config.ts +0 -30
- package/vitest.config.ts +0 -44
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Column definitions for Table stories
|
|
3
|
+
*/ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
4
|
+
import { Badge } from '../../components/badge/index.js';
|
|
5
|
+
import { Icon } from '../../components/icon/index.js';
|
|
6
|
+
import { TableColumnHeader } from './table-column-header.js';
|
|
7
|
+
/**
|
|
8
|
+
* Create column definitions for JobData
|
|
9
|
+
*/ export const createJobColumns = ()=>[
|
|
10
|
+
{
|
|
11
|
+
accessorKey: 'name',
|
|
12
|
+
header: ({ column })=>/*#__PURE__*/ _jsx(TableColumnHeader, {
|
|
13
|
+
column: column,
|
|
14
|
+
title: "Name"
|
|
15
|
+
}),
|
|
16
|
+
cell: ({ row })=>/*#__PURE__*/ _jsx("div", {
|
|
17
|
+
className: "font-medium text-foreground-neutral-base",
|
|
18
|
+
children: row.getValue('name')
|
|
19
|
+
})
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
accessorKey: 'total',
|
|
23
|
+
header: ({ column })=>/*#__PURE__*/ _jsx(TableColumnHeader, {
|
|
24
|
+
column: column,
|
|
25
|
+
title: "Total"
|
|
26
|
+
}),
|
|
27
|
+
cell: ({ row })=>/*#__PURE__*/ _jsxs("div", {
|
|
28
|
+
className: "flex items-center gap-6",
|
|
29
|
+
children: [
|
|
30
|
+
/*#__PURE__*/ _jsx("div", {
|
|
31
|
+
className: "size-6 rounded-full bg-foreground-neutral-muted"
|
|
32
|
+
}),
|
|
33
|
+
/*#__PURE__*/ _jsx("span", {
|
|
34
|
+
className: "tabular-nums",
|
|
35
|
+
children: row.getValue('total')
|
|
36
|
+
})
|
|
37
|
+
]
|
|
38
|
+
})
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
accessorKey: 'success',
|
|
42
|
+
header: ({ column })=>/*#__PURE__*/ _jsx(TableColumnHeader, {
|
|
43
|
+
column: column,
|
|
44
|
+
title: "Success"
|
|
45
|
+
}),
|
|
46
|
+
cell: ({ row })=>/*#__PURE__*/ _jsxs("div", {
|
|
47
|
+
className: "flex items-center gap-6",
|
|
48
|
+
children: [
|
|
49
|
+
/*#__PURE__*/ _jsx("div", {
|
|
50
|
+
className: "size-6 rounded-full bg-tag-success-icon"
|
|
51
|
+
}),
|
|
52
|
+
/*#__PURE__*/ _jsx("span", {
|
|
53
|
+
className: "tabular-nums",
|
|
54
|
+
children: row.getValue('success')
|
|
55
|
+
})
|
|
56
|
+
]
|
|
57
|
+
})
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
accessorKey: 'failed',
|
|
61
|
+
header: ({ column })=>/*#__PURE__*/ _jsx(TableColumnHeader, {
|
|
62
|
+
column: column,
|
|
63
|
+
title: "Failed"
|
|
64
|
+
}),
|
|
65
|
+
cell: ({ row })=>/*#__PURE__*/ _jsxs("div", {
|
|
66
|
+
className: "flex items-center gap-6",
|
|
67
|
+
children: [
|
|
68
|
+
/*#__PURE__*/ _jsx("div", {
|
|
69
|
+
className: "size-6 rounded-full bg-tag-error-icon"
|
|
70
|
+
}),
|
|
71
|
+
/*#__PURE__*/ _jsx("span", {
|
|
72
|
+
className: "tabular-nums",
|
|
73
|
+
children: row.getValue('failed')
|
|
74
|
+
})
|
|
75
|
+
]
|
|
76
|
+
})
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
accessorKey: 'neutral',
|
|
80
|
+
header: ({ column })=>/*#__PURE__*/ _jsx(TableColumnHeader, {
|
|
81
|
+
column: column,
|
|
82
|
+
title: "Neutral"
|
|
83
|
+
}),
|
|
84
|
+
cell: ({ row })=>/*#__PURE__*/ _jsxs("div", {
|
|
85
|
+
className: "flex items-center gap-6",
|
|
86
|
+
children: [
|
|
87
|
+
/*#__PURE__*/ _jsx("div", {
|
|
88
|
+
className: "size-6 rounded-full bg-foreground-neutral-muted"
|
|
89
|
+
}),
|
|
90
|
+
/*#__PURE__*/ _jsx("span", {
|
|
91
|
+
className: "tabular-nums",
|
|
92
|
+
children: row.getValue('neutral')
|
|
93
|
+
})
|
|
94
|
+
]
|
|
95
|
+
})
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
accessorKey: 'flaked',
|
|
99
|
+
header: ({ column })=>/*#__PURE__*/ _jsx(TableColumnHeader, {
|
|
100
|
+
column: column,
|
|
101
|
+
title: "Flaked"
|
|
102
|
+
}),
|
|
103
|
+
cell: ({ row })=>/*#__PURE__*/ _jsxs("div", {
|
|
104
|
+
className: "flex items-center gap-6",
|
|
105
|
+
children: [
|
|
106
|
+
/*#__PURE__*/ _jsx("div", {
|
|
107
|
+
className: "size-6 rounded-full bg-tag-warning-icon"
|
|
108
|
+
}),
|
|
109
|
+
/*#__PURE__*/ _jsx("span", {
|
|
110
|
+
className: "tabular-nums",
|
|
111
|
+
children: row.getValue('flaked')
|
|
112
|
+
})
|
|
113
|
+
]
|
|
114
|
+
})
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
accessorKey: 'failureRate',
|
|
118
|
+
header: ({ column })=>/*#__PURE__*/ _jsx(TableColumnHeader, {
|
|
119
|
+
column: column,
|
|
120
|
+
title: "Failure rate"
|
|
121
|
+
}),
|
|
122
|
+
cell: ({ row })=>/*#__PURE__*/ _jsx("span", {
|
|
123
|
+
className: "tabular-nums",
|
|
124
|
+
children: row.getValue('failureRate')
|
|
125
|
+
})
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
accessorKey: 'flakeRate',
|
|
129
|
+
header: ({ column })=>/*#__PURE__*/ _jsx(TableColumnHeader, {
|
|
130
|
+
column: column,
|
|
131
|
+
title: "Flake rate"
|
|
132
|
+
}),
|
|
133
|
+
cell: ({ row })=>/*#__PURE__*/ _jsx("span", {
|
|
134
|
+
className: "tabular-nums",
|
|
135
|
+
children: row.getValue('flakeRate')
|
|
136
|
+
})
|
|
137
|
+
}
|
|
138
|
+
];
|
|
139
|
+
/**
|
|
140
|
+
* Create column definitions for User data
|
|
141
|
+
*/ export const createUserColumns = ()=>[
|
|
142
|
+
{
|
|
143
|
+
accessorKey: 'name',
|
|
144
|
+
header: ({ column })=>/*#__PURE__*/ _jsx(TableColumnHeader, {
|
|
145
|
+
column: column,
|
|
146
|
+
title: "Name"
|
|
147
|
+
}),
|
|
148
|
+
cell: ({ row })=>/*#__PURE__*/ _jsx("div", {
|
|
149
|
+
className: "font-medium text-foreground-neutral-base",
|
|
150
|
+
children: row.getValue('name')
|
|
151
|
+
})
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
accessorKey: 'email',
|
|
155
|
+
header: ({ column })=>/*#__PURE__*/ _jsx(TableColumnHeader, {
|
|
156
|
+
column: column,
|
|
157
|
+
title: "Email"
|
|
158
|
+
}),
|
|
159
|
+
cell: ({ row })=>/*#__PURE__*/ _jsx("div", {
|
|
160
|
+
className: "text-foreground-neutral-subtle",
|
|
161
|
+
children: row.getValue('email')
|
|
162
|
+
})
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
accessorKey: 'role',
|
|
166
|
+
header: ({ column })=>/*#__PURE__*/ _jsx(TableColumnHeader, {
|
|
167
|
+
column: column,
|
|
168
|
+
title: "Role"
|
|
169
|
+
}),
|
|
170
|
+
cell: ({ row })=>/*#__PURE__*/ _jsx(Badge, {
|
|
171
|
+
variant: "neutral",
|
|
172
|
+
children: row.getValue('role')
|
|
173
|
+
})
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
accessorKey: 'status',
|
|
177
|
+
header: ({ column })=>/*#__PURE__*/ _jsx(TableColumnHeader, {
|
|
178
|
+
column: column,
|
|
179
|
+
title: "Status"
|
|
180
|
+
}),
|
|
181
|
+
cell: ({ row })=>{
|
|
182
|
+
const status = row.getValue('status');
|
|
183
|
+
return /*#__PURE__*/ _jsx(Badge, {
|
|
184
|
+
variant: status === 'active' ? 'success' : 'neutral',
|
|
185
|
+
children: status.charAt(0).toUpperCase() + status.slice(1)
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
];
|
|
190
|
+
/**
|
|
191
|
+
* Create column definitions for SearchJobData
|
|
192
|
+
*/ export const createSearchJobColumns = ()=>[
|
|
193
|
+
{
|
|
194
|
+
accessorKey: 'name',
|
|
195
|
+
header: ({ column })=>/*#__PURE__*/ _jsx(TableColumnHeader, {
|
|
196
|
+
column: column,
|
|
197
|
+
title: "Job Name"
|
|
198
|
+
}),
|
|
199
|
+
cell: ({ row })=>/*#__PURE__*/ _jsx("div", {
|
|
200
|
+
className: "font-medium text-foreground-neutral-base",
|
|
201
|
+
children: row.getValue('name')
|
|
202
|
+
})
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
accessorKey: 'repository',
|
|
206
|
+
header: ({ column })=>/*#__PURE__*/ _jsx(TableColumnHeader, {
|
|
207
|
+
column: column,
|
|
208
|
+
title: "Repository"
|
|
209
|
+
}),
|
|
210
|
+
cell: ({ row })=>/*#__PURE__*/ _jsx("div", {
|
|
211
|
+
className: "text-foreground-neutral-subtle font-mono text-xs",
|
|
212
|
+
children: row.getValue('repository')
|
|
213
|
+
})
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
accessorKey: 'branch',
|
|
217
|
+
header: ({ column })=>/*#__PURE__*/ _jsx(TableColumnHeader, {
|
|
218
|
+
column: column,
|
|
219
|
+
title: "Branch"
|
|
220
|
+
}),
|
|
221
|
+
cell: ({ row })=>/*#__PURE__*/ _jsxs("div", {
|
|
222
|
+
className: "flex items-center gap-6",
|
|
223
|
+
children: [
|
|
224
|
+
/*#__PURE__*/ _jsx(Icon, {
|
|
225
|
+
name: "gitBranchLine",
|
|
226
|
+
className: "size-14 text-foreground-neutral-muted"
|
|
227
|
+
}),
|
|
228
|
+
/*#__PURE__*/ _jsx("span", {
|
|
229
|
+
className: "font-mono text-xs",
|
|
230
|
+
children: row.getValue('branch')
|
|
231
|
+
})
|
|
232
|
+
]
|
|
233
|
+
})
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
accessorKey: 'total',
|
|
237
|
+
header: ({ column })=>/*#__PURE__*/ _jsx(TableColumnHeader, {
|
|
238
|
+
column: column,
|
|
239
|
+
title: "Total"
|
|
240
|
+
}),
|
|
241
|
+
cell: ({ row })=>/*#__PURE__*/ _jsx("span", {
|
|
242
|
+
className: "tabular-nums",
|
|
243
|
+
children: row.getValue('total')
|
|
244
|
+
})
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
accessorKey: 'success',
|
|
248
|
+
header: ({ column })=>/*#__PURE__*/ _jsx(TableColumnHeader, {
|
|
249
|
+
column: column,
|
|
250
|
+
title: "Success"
|
|
251
|
+
}),
|
|
252
|
+
cell: ({ row })=>/*#__PURE__*/ _jsxs("div", {
|
|
253
|
+
className: "flex items-center gap-6",
|
|
254
|
+
children: [
|
|
255
|
+
/*#__PURE__*/ _jsx("div", {
|
|
256
|
+
className: "size-6 rounded-full bg-tag-success-icon"
|
|
257
|
+
}),
|
|
258
|
+
/*#__PURE__*/ _jsx("span", {
|
|
259
|
+
className: "tabular-nums",
|
|
260
|
+
children: row.getValue('success')
|
|
261
|
+
})
|
|
262
|
+
]
|
|
263
|
+
})
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
accessorKey: 'failed',
|
|
267
|
+
header: ({ column })=>/*#__PURE__*/ _jsx(TableColumnHeader, {
|
|
268
|
+
column: column,
|
|
269
|
+
title: "Failed"
|
|
270
|
+
}),
|
|
271
|
+
cell: ({ row })=>/*#__PURE__*/ _jsxs("div", {
|
|
272
|
+
className: "flex items-center gap-6",
|
|
273
|
+
children: [
|
|
274
|
+
/*#__PURE__*/ _jsx("div", {
|
|
275
|
+
className: "size-6 rounded-full bg-tag-error-icon"
|
|
276
|
+
}),
|
|
277
|
+
/*#__PURE__*/ _jsx("span", {
|
|
278
|
+
className: "tabular-nums",
|
|
279
|
+
children: row.getValue('failed')
|
|
280
|
+
})
|
|
281
|
+
]
|
|
282
|
+
})
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
accessorKey: 'status',
|
|
286
|
+
header: ({ column })=>/*#__PURE__*/ _jsx(TableColumnHeader, {
|
|
287
|
+
column: column,
|
|
288
|
+
title: "Status"
|
|
289
|
+
}),
|
|
290
|
+
cell: ({ row })=>{
|
|
291
|
+
const status = row.getValue('status');
|
|
292
|
+
const variantMap = {
|
|
293
|
+
active: 'info',
|
|
294
|
+
completed: 'success',
|
|
295
|
+
failed: 'error'
|
|
296
|
+
};
|
|
297
|
+
return /*#__PURE__*/ _jsx(Badge, {
|
|
298
|
+
variant: variantMap[status],
|
|
299
|
+
children: status.charAt(0).toUpperCase() + status.slice(1)
|
|
300
|
+
});
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
];
|
|
304
|
+
/**
|
|
305
|
+
* Column instances for reuse in stories
|
|
306
|
+
*/ export const jobColumns = createJobColumns();
|
|
307
|
+
export const userColumns = createUserColumns();
|
|
308
|
+
export const searchJobColumns = createSearchJobColumns();
|
|
309
|
+
|
|
310
|
+
//# sourceMappingURL=table.stories.columns.js.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared components for Table stories
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Empty state component for job tables
|
|
6
|
+
*/
|
|
7
|
+
export declare function JobsEmptyState(): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
/**
|
|
9
|
+
* Search modal content component with job filtering
|
|
10
|
+
*/
|
|
11
|
+
export declare function SearchModalContent({ onSelectJob }: {
|
|
12
|
+
onSelectJob: (jobId: string) => void;
|
|
13
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
//# sourceMappingURL=table.stories.components.d.ts.map
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* Shared components for Table stories
|
|
4
|
+
*/ import { Icon } from '../../components/icon/index.js';
|
|
5
|
+
import { useSearchContext } from '../../components/search/search-context.js';
|
|
6
|
+
import { SearchEmpty, SearchFooter, SearchGroup, SearchInput, SearchItem, SearchList } from '../../components/search/search-modal.js';
|
|
7
|
+
import { Text } from '../../components/typography/index.js';
|
|
8
|
+
import { useMemo } from 'react';
|
|
9
|
+
import { searchJobsData } from './table.stories.data.js';
|
|
10
|
+
/**
|
|
11
|
+
* Empty state component for job tables
|
|
12
|
+
*/ export function JobsEmptyState() {
|
|
13
|
+
return /*#__PURE__*/ _jsxs("div", {
|
|
14
|
+
className: "flex flex-col items-center justify-center gap-12 py-48",
|
|
15
|
+
children: [
|
|
16
|
+
/*#__PURE__*/ _jsx("div", {
|
|
17
|
+
className: "size-32 rounded-6 bg-transparent border border-border-neutral-strong flex items-center justify-center",
|
|
18
|
+
children: /*#__PURE__*/ _jsx(Icon, {
|
|
19
|
+
name: "shipfox",
|
|
20
|
+
className: "size-16 text-foreground-neutral-subtle",
|
|
21
|
+
color: "var(--foreground-neutral-subtle, #a1a1aa)"
|
|
22
|
+
})
|
|
23
|
+
}),
|
|
24
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
25
|
+
className: "text-center space-y-4",
|
|
26
|
+
children: [
|
|
27
|
+
/*#__PURE__*/ _jsx(Text, {
|
|
28
|
+
size: "sm",
|
|
29
|
+
className: "text-foreground-neutral-base",
|
|
30
|
+
children: "No jobs yet"
|
|
31
|
+
}),
|
|
32
|
+
/*#__PURE__*/ _jsx(Text, {
|
|
33
|
+
size: "xs",
|
|
34
|
+
className: "text-foreground-neutral-muted",
|
|
35
|
+
children: "Import past runs or start a runner."
|
|
36
|
+
})
|
|
37
|
+
]
|
|
38
|
+
})
|
|
39
|
+
]
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Search modal content component with job filtering
|
|
44
|
+
*/ export function SearchModalContent({ onSelectJob }) {
|
|
45
|
+
const { searchValue } = useSearchContext();
|
|
46
|
+
const modalFilteredData = useMemo(()=>{
|
|
47
|
+
if (!searchValue) {
|
|
48
|
+
return searchJobsData;
|
|
49
|
+
}
|
|
50
|
+
const query = searchValue.toLowerCase();
|
|
51
|
+
return searchJobsData.filter((job)=>job.name.toLowerCase().includes(query) || job.repository.toLowerCase().includes(query) || job.branch.toLowerCase().includes(query));
|
|
52
|
+
}, [
|
|
53
|
+
searchValue
|
|
54
|
+
]);
|
|
55
|
+
return /*#__PURE__*/ _jsxs(_Fragment, {
|
|
56
|
+
children: [
|
|
57
|
+
/*#__PURE__*/ _jsx(SearchInput, {
|
|
58
|
+
placeholder: "Search by job name, repository, or branch..."
|
|
59
|
+
}),
|
|
60
|
+
/*#__PURE__*/ _jsx(SearchList, {
|
|
61
|
+
children: modalFilteredData.length === 0 ? /*#__PURE__*/ _jsx(SearchEmpty, {
|
|
62
|
+
children: /*#__PURE__*/ _jsx(JobsEmptyState, {})
|
|
63
|
+
}) : /*#__PURE__*/ _jsx(SearchGroup, {
|
|
64
|
+
heading: searchValue ? `Results (${modalFilteredData.length})` : 'All Jobs',
|
|
65
|
+
children: modalFilteredData.map((job)=>/*#__PURE__*/ _jsx(SearchItem, {
|
|
66
|
+
value: `${job.id}-${job.name}-${job.repository}-${job.branch}`,
|
|
67
|
+
icon: /*#__PURE__*/ _jsx(Icon, {
|
|
68
|
+
name: "gitBranchLine",
|
|
69
|
+
className: "size-16 text-foreground-neutral-subtle"
|
|
70
|
+
}),
|
|
71
|
+
description: `${job.repository} • ${job.branch}`,
|
|
72
|
+
onSelect: ()=>onSelectJob(job.id),
|
|
73
|
+
children: job.name
|
|
74
|
+
}, job.id))
|
|
75
|
+
})
|
|
76
|
+
}),
|
|
77
|
+
/*#__PURE__*/ _jsx(SearchFooter, {
|
|
78
|
+
children: /*#__PURE__*/ _jsxs("div", {
|
|
79
|
+
className: "flex items-center justify-between px-8 py-6",
|
|
80
|
+
children: [
|
|
81
|
+
/*#__PURE__*/ _jsx(Text, {
|
|
82
|
+
size: "xs",
|
|
83
|
+
className: "text-foreground-neutral-muted",
|
|
84
|
+
children: "Select a job to filter the table"
|
|
85
|
+
}),
|
|
86
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
87
|
+
className: "flex items-center gap-8",
|
|
88
|
+
children: [
|
|
89
|
+
/*#__PURE__*/ _jsx(Icon, {
|
|
90
|
+
name: "cornerDownLeft",
|
|
91
|
+
className: "size-14 text-foreground-neutral-muted"
|
|
92
|
+
}),
|
|
93
|
+
/*#__PURE__*/ _jsx(Text, {
|
|
94
|
+
size: "xs",
|
|
95
|
+
className: "text-foreground-neutral-muted",
|
|
96
|
+
children: "to select"
|
|
97
|
+
})
|
|
98
|
+
]
|
|
99
|
+
})
|
|
100
|
+
]
|
|
101
|
+
})
|
|
102
|
+
})
|
|
103
|
+
]
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
//# sourceMappingURL=table.stories.components.js.map
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Data types, generation functions, and sample data for Table stories
|
|
3
|
+
*/
|
|
4
|
+
export type JobData = {
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
total: number;
|
|
8
|
+
success: number;
|
|
9
|
+
failed: number;
|
|
10
|
+
neutral: number;
|
|
11
|
+
flaked: number;
|
|
12
|
+
failureRate: string;
|
|
13
|
+
flakeRate: string;
|
|
14
|
+
repository?: string;
|
|
15
|
+
branch?: string;
|
|
16
|
+
};
|
|
17
|
+
export type SearchJobData = {
|
|
18
|
+
id: string;
|
|
19
|
+
name: string;
|
|
20
|
+
total: number;
|
|
21
|
+
success: number;
|
|
22
|
+
failed: number;
|
|
23
|
+
status: 'active' | 'completed' | 'failed';
|
|
24
|
+
repository: string;
|
|
25
|
+
branch: string;
|
|
26
|
+
};
|
|
27
|
+
export type User = {
|
|
28
|
+
id: string;
|
|
29
|
+
name: string;
|
|
30
|
+
email: string;
|
|
31
|
+
role: string;
|
|
32
|
+
status: 'active' | 'inactive';
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Generate mock job data
|
|
36
|
+
*/
|
|
37
|
+
export declare const generateJobData: (count: number) => JobData[];
|
|
38
|
+
/**
|
|
39
|
+
* Generate mock search job data with varied properties
|
|
40
|
+
*/
|
|
41
|
+
export declare const generateSearchJobData: (count: number) => SearchJobData[];
|
|
42
|
+
/**
|
|
43
|
+
* Sample job data
|
|
44
|
+
*/
|
|
45
|
+
export declare const jobsData: JobData[];
|
|
46
|
+
/**
|
|
47
|
+
* Sample search job data
|
|
48
|
+
*/
|
|
49
|
+
export declare const searchJobsData: SearchJobData[];
|
|
50
|
+
/**
|
|
51
|
+
* Sample user data
|
|
52
|
+
*/
|
|
53
|
+
export declare const users: User[];
|
|
54
|
+
//# sourceMappingURL=table.stories.data.d.ts.map
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Data types, generation functions, and sample data for Table stories
|
|
3
|
+
*/ /**
|
|
4
|
+
* Generate mock job data
|
|
5
|
+
*/ export const generateJobData = (count)=>{
|
|
6
|
+
return Array.from({
|
|
7
|
+
length: count
|
|
8
|
+
}, (_, i)=>{
|
|
9
|
+
const total = 40 + i % 20; // keeps totals in a reasonable range
|
|
10
|
+
const failed = i % 7;
|
|
11
|
+
const flaked = i % 5;
|
|
12
|
+
const neutral = i % 3;
|
|
13
|
+
const success = total - failed - flaked - neutral;
|
|
14
|
+
const failureRate = `${Math.round(failed / total * 100)}%`;
|
|
15
|
+
const flakeRate = `${Math.round(flaked / total * 100)}%`;
|
|
16
|
+
return {
|
|
17
|
+
id: `job-${i + 1}`,
|
|
18
|
+
name: 'Dependabot updates',
|
|
19
|
+
total,
|
|
20
|
+
success,
|
|
21
|
+
failed,
|
|
22
|
+
neutral,
|
|
23
|
+
flaked,
|
|
24
|
+
failureRate,
|
|
25
|
+
flakeRate,
|
|
26
|
+
repository: 'shipfox/tooling',
|
|
27
|
+
branch: 'main'
|
|
28
|
+
};
|
|
29
|
+
});
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Generate mock search job data with varied properties
|
|
33
|
+
*/ export const generateSearchJobData = (count)=>{
|
|
34
|
+
const jobNames = [
|
|
35
|
+
'Build & Deploy',
|
|
36
|
+
'Run Tests',
|
|
37
|
+
'Code Quality Check',
|
|
38
|
+
'Security Scan',
|
|
39
|
+
'Integration Tests',
|
|
40
|
+
'Performance Tests',
|
|
41
|
+
'Deploy to Staging',
|
|
42
|
+
'Deploy to Production',
|
|
43
|
+
'Database Migration',
|
|
44
|
+
'Cache Warm-up'
|
|
45
|
+
];
|
|
46
|
+
const repositories = [
|
|
47
|
+
'shipfox/tooling',
|
|
48
|
+
'shipfox/web',
|
|
49
|
+
'shipfox/api',
|
|
50
|
+
'shipfox/mobile'
|
|
51
|
+
];
|
|
52
|
+
const branches = [
|
|
53
|
+
'main',
|
|
54
|
+
'develop',
|
|
55
|
+
'staging',
|
|
56
|
+
'feat/new-feature'
|
|
57
|
+
];
|
|
58
|
+
const statuses = [
|
|
59
|
+
'active',
|
|
60
|
+
'completed',
|
|
61
|
+
'failed'
|
|
62
|
+
];
|
|
63
|
+
return Array.from({
|
|
64
|
+
length: count
|
|
65
|
+
}, (_, i)=>({
|
|
66
|
+
id: `job-${i + 1}`,
|
|
67
|
+
name: jobNames[i % jobNames.length],
|
|
68
|
+
total: Math.floor(Math.random() * 100) + 20,
|
|
69
|
+
success: Math.floor(Math.random() * 80) + 10,
|
|
70
|
+
failed: Math.floor(Math.random() * 20),
|
|
71
|
+
status: statuses[i % statuses.length],
|
|
72
|
+
repository: repositories[i % repositories.length],
|
|
73
|
+
branch: branches[i % branches.length]
|
|
74
|
+
}));
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* Sample job data
|
|
78
|
+
*/ export const jobsData = generateJobData(100);
|
|
79
|
+
/**
|
|
80
|
+
* Sample search job data
|
|
81
|
+
*/ export const searchJobsData = generateSearchJobData(50);
|
|
82
|
+
/**
|
|
83
|
+
* Sample user data
|
|
84
|
+
*/ export const users = [
|
|
85
|
+
{
|
|
86
|
+
id: '1',
|
|
87
|
+
name: 'John Doe',
|
|
88
|
+
email: 'john@example.com',
|
|
89
|
+
role: 'Admin',
|
|
90
|
+
status: 'active'
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
id: '2',
|
|
94
|
+
name: 'Jane Smith',
|
|
95
|
+
email: 'jane@example.com',
|
|
96
|
+
role: 'User',
|
|
97
|
+
status: 'active'
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
id: '3',
|
|
101
|
+
name: 'Bob Johnson',
|
|
102
|
+
email: 'bob@example.com',
|
|
103
|
+
role: 'User',
|
|
104
|
+
status: 'inactive'
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
id: '4',
|
|
108
|
+
name: 'Alice Williams',
|
|
109
|
+
email: 'alice@example.com',
|
|
110
|
+
role: 'Editor',
|
|
111
|
+
status: 'active'
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
id: '5',
|
|
115
|
+
name: 'Charlie Brown',
|
|
116
|
+
email: 'charlie@example.com',
|
|
117
|
+
role: 'User',
|
|
118
|
+
status: 'active'
|
|
119
|
+
}
|
|
120
|
+
];
|
|
121
|
+
|
|
122
|
+
//# sourceMappingURL=table.stories.data.js.map
|