@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,124 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Button } from '../../../components/button/index.js';
|
|
3
|
+
import { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger } from '../../../components/dropdown-menu/index.js';
|
|
4
|
+
import { Icon } from '../../../components/icon/index.js';
|
|
5
|
+
import { Kbd } from '../../../components/kbd/index.js';
|
|
6
|
+
import { useEffect, useState } from 'react';
|
|
7
|
+
import { cn } from '../../../utils/cn.js';
|
|
8
|
+
const defaultFilters = [
|
|
9
|
+
{
|
|
10
|
+
id: 'success',
|
|
11
|
+
label: 'Success',
|
|
12
|
+
checked: false
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
id: 'failed',
|
|
16
|
+
label: 'Failed',
|
|
17
|
+
checked: false
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
id: 'neutral',
|
|
21
|
+
label: 'Neutral',
|
|
22
|
+
checked: false
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
id: 'flaked',
|
|
26
|
+
label: 'Flaked',
|
|
27
|
+
checked: false
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
id: 'running',
|
|
31
|
+
label: 'Running',
|
|
32
|
+
checked: false
|
|
33
|
+
}
|
|
34
|
+
];
|
|
35
|
+
export function FilterButton({ filters: controlledFilters, onFiltersChange, className }) {
|
|
36
|
+
const [internalFilters, setInternalFilters] = useState(defaultFilters);
|
|
37
|
+
const [open, setOpen] = useState(false);
|
|
38
|
+
const filters = controlledFilters ?? internalFilters;
|
|
39
|
+
const handleFilterChange = (filterId, checked)=>{
|
|
40
|
+
const updatedFilters = filters.map((f)=>f.id === filterId ? {
|
|
41
|
+
...f,
|
|
42
|
+
checked
|
|
43
|
+
} : f);
|
|
44
|
+
if (onFiltersChange) {
|
|
45
|
+
onFiltersChange(updatedFilters);
|
|
46
|
+
} else {
|
|
47
|
+
setInternalFilters(updatedFilters);
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
const activeCount = filters.filter((f)=>f.checked).length;
|
|
51
|
+
// Keyboard shortcut handler for "F" key
|
|
52
|
+
useEffect(()=>{
|
|
53
|
+
const handleKeyDown = (event)=>{
|
|
54
|
+
// Check if key is 'f' or 'F'
|
|
55
|
+
if (event.key !== 'f' && event.key !== 'F') {
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
// Ignore if event is from input, textarea, or contentEditable
|
|
59
|
+
const target = event.target;
|
|
60
|
+
if (target.tagName === 'INPUT' || target.tagName === 'TEXTAREA' || target.isContentEditable) {
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
// Open the dropdown
|
|
64
|
+
event.preventDefault();
|
|
65
|
+
setOpen(true);
|
|
66
|
+
};
|
|
67
|
+
window.addEventListener('keydown', handleKeyDown);
|
|
68
|
+
return ()=>{
|
|
69
|
+
window.removeEventListener('keydown', handleKeyDown);
|
|
70
|
+
};
|
|
71
|
+
}, []);
|
|
72
|
+
return /*#__PURE__*/ _jsxs(DropdownMenu, {
|
|
73
|
+
open: open,
|
|
74
|
+
onOpenChange: setOpen,
|
|
75
|
+
children: [
|
|
76
|
+
/*#__PURE__*/ _jsx(DropdownMenuTrigger, {
|
|
77
|
+
asChild: true,
|
|
78
|
+
children: /*#__PURE__*/ _jsxs(Button, {
|
|
79
|
+
variant: "secondary",
|
|
80
|
+
size: "sm",
|
|
81
|
+
className: cn(className),
|
|
82
|
+
children: [
|
|
83
|
+
/*#__PURE__*/ _jsx(Icon, {
|
|
84
|
+
name: "filterLine",
|
|
85
|
+
className: "size-16 text-foreground-neutral-subtle block md:hidden"
|
|
86
|
+
}),
|
|
87
|
+
/*#__PURE__*/ _jsxs("span", {
|
|
88
|
+
className: "hidden md:inline-flex items-center gap-6",
|
|
89
|
+
children: [
|
|
90
|
+
"Filter ",
|
|
91
|
+
/*#__PURE__*/ _jsx(Kbd, {
|
|
92
|
+
className: "h-16 min-w-16 px-4 text-[10px]",
|
|
93
|
+
children: "F"
|
|
94
|
+
})
|
|
95
|
+
]
|
|
96
|
+
}),
|
|
97
|
+
activeCount > 0 && /*#__PURE__*/ _jsx("span", {
|
|
98
|
+
className: "size-16 rounded-full bg-foreground-highlight-interactive text-[10px] font-medium text-foreground-neutral-on-color flex items-center justify-center",
|
|
99
|
+
children: activeCount
|
|
100
|
+
})
|
|
101
|
+
]
|
|
102
|
+
})
|
|
103
|
+
}),
|
|
104
|
+
/*#__PURE__*/ _jsxs(DropdownMenuContent, {
|
|
105
|
+
align: "start",
|
|
106
|
+
className: "w-200",
|
|
107
|
+
children: [
|
|
108
|
+
/*#__PURE__*/ _jsx(DropdownMenuLabel, {
|
|
109
|
+
children: "Status"
|
|
110
|
+
}),
|
|
111
|
+
/*#__PURE__*/ _jsx(DropdownMenuSeparator, {}),
|
|
112
|
+
filters.map((filter)=>/*#__PURE__*/ _jsx(DropdownMenuCheckboxItem, {
|
|
113
|
+
checked: filter.checked,
|
|
114
|
+
onCheckedChange: (checked)=>handleFilterChange(filter.id, checked),
|
|
115
|
+
closeOnSelect: false,
|
|
116
|
+
children: filter.label
|
|
117
|
+
}, filter.id))
|
|
118
|
+
]
|
|
119
|
+
})
|
|
120
|
+
]
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
//# sourceMappingURL=filter-button.js.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Toolbar components exports
|
|
3
|
+
*/
|
|
4
|
+
export type { FilterButtonProps } from './filter-button';
|
|
5
|
+
export { FilterButton } from './filter-button';
|
|
6
|
+
export type { PageToolbarProps } from './page-toolbar';
|
|
7
|
+
export { PageToolbar } from './page-toolbar';
|
|
8
|
+
export type { ToolbarActionsProps } from './toolbar-actions';
|
|
9
|
+
export { ToolbarActions } from './toolbar-actions';
|
|
10
|
+
export { ToolbarSearch } from './toolbar-search';
|
|
11
|
+
export type { ViewDropdownProps } from './view-dropdown';
|
|
12
|
+
export { ViewDropdown } from './view-dropdown';
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Toolbar components exports
|
|
3
|
+
*/ // Toolbar sub-components
|
|
4
|
+
export { FilterButton } from './filter-button.js';
|
|
5
|
+
export { PageToolbar } from './page-toolbar.js';
|
|
6
|
+
export { ToolbarActions } from './toolbar-actions.js';
|
|
7
|
+
export { ToolbarSearch } from './toolbar-search.js';
|
|
8
|
+
export { ViewDropdown } from './view-dropdown.js';
|
|
9
|
+
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generic Page Toolbar Component
|
|
3
|
+
*
|
|
4
|
+
* A reusable toolbar for dashboard pages with title, refresh indicator,
|
|
5
|
+
* time period selector, and playback controls.
|
|
6
|
+
*/
|
|
7
|
+
import type { ComponentProps, ReactNode } from 'react';
|
|
8
|
+
import type { TimePeriod } from '../context';
|
|
9
|
+
export interface PageToolbarProps extends Omit<ComponentProps<'div'>, 'title' | 'children'> {
|
|
10
|
+
/**
|
|
11
|
+
* The title to display in the toolbar header
|
|
12
|
+
*/
|
|
13
|
+
title: ReactNode;
|
|
14
|
+
/**
|
|
15
|
+
* Last updated timestamp text
|
|
16
|
+
* @default '13s ago'
|
|
17
|
+
*/
|
|
18
|
+
lastUpdated?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Current time period value
|
|
21
|
+
* @default '2days'
|
|
22
|
+
*/
|
|
23
|
+
timePeriod?: TimePeriod;
|
|
24
|
+
/**
|
|
25
|
+
* Callback when time period changes
|
|
26
|
+
*/
|
|
27
|
+
onTimePeriodChange?: (value: TimePeriod) => void;
|
|
28
|
+
/**
|
|
29
|
+
* Callback when refresh button is clicked
|
|
30
|
+
*/
|
|
31
|
+
onRefresh?: () => void;
|
|
32
|
+
/**
|
|
33
|
+
* Show playback controls
|
|
34
|
+
* @default true
|
|
35
|
+
*/
|
|
36
|
+
showPlaybackControls?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Callback when rewind button is clicked
|
|
39
|
+
*/
|
|
40
|
+
onRewind?: () => void;
|
|
41
|
+
/**
|
|
42
|
+
* Callback when play button is clicked
|
|
43
|
+
*/
|
|
44
|
+
onPlay?: () => void;
|
|
45
|
+
/**
|
|
46
|
+
* Callback when speed button is clicked
|
|
47
|
+
*/
|
|
48
|
+
onSpeed?: () => void;
|
|
49
|
+
/**
|
|
50
|
+
* Additional actions to render on the right side
|
|
51
|
+
*/
|
|
52
|
+
actions?: ReactNode;
|
|
53
|
+
/**
|
|
54
|
+
* Children to render (e.g., mobile menu button)
|
|
55
|
+
*/
|
|
56
|
+
children?: ReactNode;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Generic Page Toolbar
|
|
60
|
+
*
|
|
61
|
+
* A flexible toolbar component that can be used across different dashboard pages.
|
|
62
|
+
* Supports title customization, time period selection, refresh indicator, and playback controls.
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* ```tsx
|
|
66
|
+
* <PageToolbar
|
|
67
|
+
* title="Analytics"
|
|
68
|
+
* timePeriod="2days"
|
|
69
|
+
* onTimePeriodChange={setTimePeriod}
|
|
70
|
+
* onRefresh={handleRefresh}
|
|
71
|
+
* />
|
|
72
|
+
* ```
|
|
73
|
+
*/
|
|
74
|
+
export declare function PageToolbar({ title, lastUpdated, timePeriod, onTimePeriodChange, onRefresh, showPlaybackControls, onRewind, onPlay, onSpeed, actions, children, className, ...props }: PageToolbarProps): import("react/jsx-runtime").JSX.Element;
|
|
75
|
+
//# sourceMappingURL=page-toolbar.d.ts.map
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* Generic Page Toolbar Component
|
|
4
|
+
*
|
|
5
|
+
* A reusable toolbar for dashboard pages with title, refresh indicator,
|
|
6
|
+
* time period selector, and playback controls.
|
|
7
|
+
*/ import { Button } from '../../../components/button/index.js';
|
|
8
|
+
import { ButtonGroup, ButtonGroupSeparator } from '../../../components/button-group/index.js';
|
|
9
|
+
import { Icon } from '../../../components/icon/index.js';
|
|
10
|
+
import { Kbd } from '../../../components/kbd/index.js';
|
|
11
|
+
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '../../../components/select/index.js';
|
|
12
|
+
import { Header, Text } from '../../../components/typography/index.js';
|
|
13
|
+
import { cn } from '../../../utils/cn.js';
|
|
14
|
+
/**
|
|
15
|
+
* Generic Page Toolbar
|
|
16
|
+
*
|
|
17
|
+
* A flexible toolbar component that can be used across different dashboard pages.
|
|
18
|
+
* Supports title customization, time period selection, refresh indicator, and playback controls.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```tsx
|
|
22
|
+
* <PageToolbar
|
|
23
|
+
* title="Analytics"
|
|
24
|
+
* timePeriod="2days"
|
|
25
|
+
* onTimePeriodChange={setTimePeriod}
|
|
26
|
+
* onRefresh={handleRefresh}
|
|
27
|
+
* />
|
|
28
|
+
* ```
|
|
29
|
+
*/ export function PageToolbar({ title, lastUpdated = '13s ago', timePeriod = '2days', onTimePeriodChange, onRefresh, showPlaybackControls = true, onRewind, onPlay, onSpeed, actions, children, className, ...props }) {
|
|
30
|
+
return /*#__PURE__*/ _jsxs("div", {
|
|
31
|
+
className: cn('flex flex-wrap gap-12 items-center justify-between px-12 py-20 md:px-24 md:py-40', className),
|
|
32
|
+
...props,
|
|
33
|
+
children: [
|
|
34
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
35
|
+
className: "flex items-center gap-4",
|
|
36
|
+
children: [
|
|
37
|
+
children,
|
|
38
|
+
typeof title === 'string' ? /*#__PURE__*/ _jsx(Header, {
|
|
39
|
+
variant: "h1",
|
|
40
|
+
className: "text-foreground-neutral-base text-xl md:text-2xl",
|
|
41
|
+
children: title
|
|
42
|
+
}) : title
|
|
43
|
+
]
|
|
44
|
+
}),
|
|
45
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
46
|
+
className: "flex items-center gap-8 md:gap-12",
|
|
47
|
+
children: [
|
|
48
|
+
/*#__PURE__*/ _jsx("div", {
|
|
49
|
+
className: "flex items-center gap-8",
|
|
50
|
+
children: /*#__PURE__*/ _jsxs(Button, {
|
|
51
|
+
variant: "transparent",
|
|
52
|
+
size: "md",
|
|
53
|
+
className: "w-full group text-foreground-neutral-muted",
|
|
54
|
+
"aria-label": "Refresh",
|
|
55
|
+
onClick: onRefresh,
|
|
56
|
+
children: [
|
|
57
|
+
/*#__PURE__*/ _jsx(Text, {
|
|
58
|
+
size: "xs",
|
|
59
|
+
className: "hidden md:flex group-hover:text-foreground-neutral-subtle",
|
|
60
|
+
children: lastUpdated
|
|
61
|
+
}),
|
|
62
|
+
/*#__PURE__*/ _jsx(Icon, {
|
|
63
|
+
name: "loopRightLine",
|
|
64
|
+
className: "size-14 group-hover:text-foreground-neutral-subtle"
|
|
65
|
+
})
|
|
66
|
+
]
|
|
67
|
+
})
|
|
68
|
+
}),
|
|
69
|
+
/*#__PURE__*/ _jsxs(Select, {
|
|
70
|
+
value: timePeriod,
|
|
71
|
+
onValueChange: onTimePeriodChange,
|
|
72
|
+
children: [
|
|
73
|
+
/*#__PURE__*/ _jsx(SelectTrigger, {
|
|
74
|
+
className: "w-full md:w-280",
|
|
75
|
+
children: /*#__PURE__*/ _jsx("div", {
|
|
76
|
+
className: "flex items-center gap-8 flex-1 min-w-0",
|
|
77
|
+
children: /*#__PURE__*/ _jsx(SelectValue, {
|
|
78
|
+
placeholder: "Select time range"
|
|
79
|
+
})
|
|
80
|
+
})
|
|
81
|
+
}),
|
|
82
|
+
/*#__PURE__*/ _jsxs(SelectContent, {
|
|
83
|
+
children: [
|
|
84
|
+
/*#__PURE__*/ _jsx(SelectItem, {
|
|
85
|
+
value: "1hour",
|
|
86
|
+
children: /*#__PURE__*/ _jsxs("div", {
|
|
87
|
+
className: "flex items-center gap-8",
|
|
88
|
+
children: [
|
|
89
|
+
/*#__PURE__*/ _jsx(Kbd, {
|
|
90
|
+
className: "h-16",
|
|
91
|
+
children: "1h"
|
|
92
|
+
}),
|
|
93
|
+
/*#__PURE__*/ _jsx("span", {
|
|
94
|
+
children: "Past 1 Hour"
|
|
95
|
+
})
|
|
96
|
+
]
|
|
97
|
+
})
|
|
98
|
+
}),
|
|
99
|
+
/*#__PURE__*/ _jsx(SelectItem, {
|
|
100
|
+
value: "1day",
|
|
101
|
+
children: /*#__PURE__*/ _jsxs("div", {
|
|
102
|
+
className: "flex items-center gap-8",
|
|
103
|
+
children: [
|
|
104
|
+
/*#__PURE__*/ _jsx(Kbd, {
|
|
105
|
+
className: "h-16",
|
|
106
|
+
children: "1d"
|
|
107
|
+
}),
|
|
108
|
+
/*#__PURE__*/ _jsx("span", {
|
|
109
|
+
children: "Past 1 Day"
|
|
110
|
+
})
|
|
111
|
+
]
|
|
112
|
+
})
|
|
113
|
+
}),
|
|
114
|
+
/*#__PURE__*/ _jsx(SelectItem, {
|
|
115
|
+
value: "2days",
|
|
116
|
+
children: /*#__PURE__*/ _jsxs("div", {
|
|
117
|
+
className: "flex items-center gap-8",
|
|
118
|
+
children: [
|
|
119
|
+
/*#__PURE__*/ _jsx(Kbd, {
|
|
120
|
+
className: "h-16",
|
|
121
|
+
children: "2d"
|
|
122
|
+
}),
|
|
123
|
+
/*#__PURE__*/ _jsx("span", {
|
|
124
|
+
children: "Past 2 Days"
|
|
125
|
+
})
|
|
126
|
+
]
|
|
127
|
+
})
|
|
128
|
+
}),
|
|
129
|
+
/*#__PURE__*/ _jsx(SelectItem, {
|
|
130
|
+
value: "7days",
|
|
131
|
+
children: /*#__PURE__*/ _jsxs("div", {
|
|
132
|
+
className: "flex items-center gap-8",
|
|
133
|
+
children: [
|
|
134
|
+
/*#__PURE__*/ _jsx(Kbd, {
|
|
135
|
+
className: "h-16",
|
|
136
|
+
children: "7d"
|
|
137
|
+
}),
|
|
138
|
+
/*#__PURE__*/ _jsx("span", {
|
|
139
|
+
children: "Past 7 Days"
|
|
140
|
+
})
|
|
141
|
+
]
|
|
142
|
+
})
|
|
143
|
+
}),
|
|
144
|
+
/*#__PURE__*/ _jsx(SelectItem, {
|
|
145
|
+
value: "30days",
|
|
146
|
+
children: /*#__PURE__*/ _jsxs("div", {
|
|
147
|
+
className: "flex items-center gap-8",
|
|
148
|
+
children: [
|
|
149
|
+
/*#__PURE__*/ _jsx(Kbd, {
|
|
150
|
+
className: "h-16",
|
|
151
|
+
children: "30d"
|
|
152
|
+
}),
|
|
153
|
+
/*#__PURE__*/ _jsx("span", {
|
|
154
|
+
children: "Past 30 Days"
|
|
155
|
+
})
|
|
156
|
+
]
|
|
157
|
+
})
|
|
158
|
+
})
|
|
159
|
+
]
|
|
160
|
+
})
|
|
161
|
+
]
|
|
162
|
+
}),
|
|
163
|
+
showPlaybackControls && /*#__PURE__*/ _jsxs(ButtonGroup, {
|
|
164
|
+
"aria-label": "Playback controls",
|
|
165
|
+
className: "hidden lg:flex",
|
|
166
|
+
children: [
|
|
167
|
+
/*#__PURE__*/ _jsx(Button, {
|
|
168
|
+
variant: "secondary",
|
|
169
|
+
size: "md",
|
|
170
|
+
"aria-label": "Rewind",
|
|
171
|
+
onClick: onRewind,
|
|
172
|
+
children: /*#__PURE__*/ _jsx(Icon, {
|
|
173
|
+
name: "rewindFill",
|
|
174
|
+
className: "size-16 text-foreground-neutral-subtle"
|
|
175
|
+
})
|
|
176
|
+
}),
|
|
177
|
+
/*#__PURE__*/ _jsx(ButtonGroupSeparator, {}),
|
|
178
|
+
/*#__PURE__*/ _jsx(Button, {
|
|
179
|
+
variant: "secondary",
|
|
180
|
+
size: "md",
|
|
181
|
+
"aria-label": "Play",
|
|
182
|
+
onClick: onPlay,
|
|
183
|
+
children: /*#__PURE__*/ _jsx(Icon, {
|
|
184
|
+
name: "playFill",
|
|
185
|
+
className: "size-16 text-foreground-neutral-subtle"
|
|
186
|
+
})
|
|
187
|
+
}),
|
|
188
|
+
/*#__PURE__*/ _jsx(ButtonGroupSeparator, {}),
|
|
189
|
+
/*#__PURE__*/ _jsx(Button, {
|
|
190
|
+
variant: "secondary",
|
|
191
|
+
size: "md",
|
|
192
|
+
"aria-label": "Speed",
|
|
193
|
+
onClick: onSpeed,
|
|
194
|
+
children: /*#__PURE__*/ _jsx(Icon, {
|
|
195
|
+
name: "speedFill",
|
|
196
|
+
className: "size-16 text-foreground-neutral-subtle"
|
|
197
|
+
})
|
|
198
|
+
})
|
|
199
|
+
]
|
|
200
|
+
}),
|
|
201
|
+
actions
|
|
202
|
+
]
|
|
203
|
+
})
|
|
204
|
+
]
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
//# sourceMappingURL=page-toolbar.js.map
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Toolbar Actions Component
|
|
3
|
+
*
|
|
4
|
+
* Contains filter, search, and view controls for dashboard tables.
|
|
5
|
+
*/
|
|
6
|
+
import type { ComponentProps, ReactNode } from 'react';
|
|
7
|
+
export interface ToolbarActionsProps extends Omit<ComponentProps<'div'>, 'children'> {
|
|
8
|
+
/**
|
|
9
|
+
* Show filter button
|
|
10
|
+
* @default true
|
|
11
|
+
*/
|
|
12
|
+
showFilter?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Show search input
|
|
15
|
+
* @default true
|
|
16
|
+
*/
|
|
17
|
+
showSearch?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Show view dropdown
|
|
20
|
+
* @default true
|
|
21
|
+
*/
|
|
22
|
+
showView?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Search placeholder text
|
|
25
|
+
* @default 'Search...'
|
|
26
|
+
*/
|
|
27
|
+
searchPlaceholder?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Additional custom actions
|
|
30
|
+
*/
|
|
31
|
+
children?: ReactNode;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Toolbar Actions
|
|
35
|
+
*
|
|
36
|
+
* Provides filter, search, and column visibility controls.
|
|
37
|
+
* Automatically connects to DashboardContext for state management.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```tsx
|
|
41
|
+
* <ToolbarActions />
|
|
42
|
+
* ```
|
|
43
|
+
*
|
|
44
|
+
* @example With custom actions
|
|
45
|
+
* ```tsx
|
|
46
|
+
* <ToolbarActions>
|
|
47
|
+
* <Button>Custom Action</Button>
|
|
48
|
+
* </ToolbarActions>
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
export declare function ToolbarActions({ showFilter, showSearch, showView, searchPlaceholder, className, children, ...props }: ToolbarActionsProps): import("react/jsx-runtime").JSX.Element;
|
|
52
|
+
//# sourceMappingURL=toolbar-actions.d.ts.map
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Toolbar Actions Component
|
|
3
|
+
*
|
|
4
|
+
* Contains filter, search, and view controls for dashboard tables.
|
|
5
|
+
*/ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { cn } from '../../../utils/cn.js';
|
|
7
|
+
import { useDashboardContext } from '../context/index.js';
|
|
8
|
+
import { FilterButton } from './filter-button.js';
|
|
9
|
+
import { ToolbarSearch } from './toolbar-search.js';
|
|
10
|
+
import { ViewDropdown } from './view-dropdown.js';
|
|
11
|
+
/**
|
|
12
|
+
* Toolbar Actions
|
|
13
|
+
*
|
|
14
|
+
* Provides filter, search, and column visibility controls.
|
|
15
|
+
* Automatically connects to DashboardContext for state management.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```tsx
|
|
19
|
+
* <ToolbarActions />
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* @example With custom actions
|
|
23
|
+
* ```tsx
|
|
24
|
+
* <ToolbarActions>
|
|
25
|
+
* <Button>Custom Action</Button>
|
|
26
|
+
* </ToolbarActions>
|
|
27
|
+
* ```
|
|
28
|
+
*/ export function ToolbarActions({ showFilter = true, showSearch = true, showView = true, searchPlaceholder = 'Try: job name, status, pipeline...', className, children, ...props }) {
|
|
29
|
+
const { setSearchQuery, filters, setFilters, columns, setColumns } = useDashboardContext();
|
|
30
|
+
return /*#__PURE__*/ _jsxs("div", {
|
|
31
|
+
className: cn('flex items-start md:items-center gap-8 md:gap-12', className),
|
|
32
|
+
...props,
|
|
33
|
+
children: [
|
|
34
|
+
showFilter && /*#__PURE__*/ _jsx(FilterButton, {
|
|
35
|
+
filters: filters,
|
|
36
|
+
onFiltersChange: setFilters
|
|
37
|
+
}),
|
|
38
|
+
showSearch && /*#__PURE__*/ _jsx(ToolbarSearch, {
|
|
39
|
+
placeholder: searchPlaceholder,
|
|
40
|
+
onSelect: setSearchQuery
|
|
41
|
+
}),
|
|
42
|
+
showView && /*#__PURE__*/ _jsx(ViewDropdown, {
|
|
43
|
+
columns: columns,
|
|
44
|
+
onColumnsChange: setColumns
|
|
45
|
+
}),
|
|
46
|
+
children
|
|
47
|
+
]
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
//# sourceMappingURL=toolbar-actions.js.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface ToolbarSearchProps {
|
|
2
|
+
/**
|
|
3
|
+
* Placeholder text for the search trigger
|
|
4
|
+
*/
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
/**
|
|
7
|
+
* Keyboard shortcut to open the search modal
|
|
8
|
+
* @default 'meta+k'
|
|
9
|
+
*/
|
|
10
|
+
shortcutKey?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Callback when a search item is selected
|
|
13
|
+
*/
|
|
14
|
+
onSelect?: (value: string) => void;
|
|
15
|
+
/**
|
|
16
|
+
* Additional class name for the trigger
|
|
17
|
+
*/
|
|
18
|
+
className?: string;
|
|
19
|
+
}
|
|
20
|
+
export declare function ToolbarSearch({ placeholder, shortcutKey, onSelect, className, }: ToolbarSearchProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
//# sourceMappingURL=toolbar-search.d.ts.map
|