@shipfox/react-ui 0.15.0 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/button-group/button-group.stories.js +4 -4
- package/dist/components/dashboard/components/charts/bar-chart.d.ts +39 -0
- package/dist/components/dashboard/components/charts/bar-chart.js +104 -0
- package/dist/components/dashboard/components/charts/chart-tooltip.d.ts +14 -0
- package/dist/components/dashboard/components/charts/chart-tooltip.js +45 -0
- package/dist/components/dashboard/components/charts/colors.d.ts +11 -0
- package/dist/components/dashboard/components/charts/colors.js +17 -0
- package/dist/components/dashboard/components/charts/index.d.ts +5 -0
- package/dist/components/dashboard/components/charts/index.js +6 -0
- package/dist/components/dashboard/components/charts/line-chart.d.ts +37 -0
- package/dist/components/dashboard/components/charts/line-chart.js +128 -0
- package/dist/components/dashboard/components/dashboard-alert.d.ts +8 -0
- package/dist/components/dashboard/components/dashboard-alert.js +24 -0
- package/dist/components/dashboard/components/kpi-card.d.ts +15 -0
- package/dist/components/dashboard/components/kpi-card.js +77 -0
- package/dist/components/dashboard/components/mobile-sidebar.d.ts +19 -0
- package/dist/components/dashboard/components/mobile-sidebar.js +50 -0
- package/dist/components/dashboard/components/organization-selector.d.ts +24 -1
- package/dist/components/dashboard/components/organization-selector.js +93 -70
- package/dist/components/dashboard/components/sidebar.d.ts +24 -0
- package/dist/components/dashboard/components/sidebar.js +218 -0
- package/dist/components/dashboard/context/dashboard-context.d.ts +70 -0
- package/dist/components/dashboard/context/dashboard-context.js +175 -0
- package/dist/components/dashboard/context/index.d.ts +8 -0
- package/dist/components/dashboard/context/index.js +6 -0
- package/dist/components/dashboard/context/types.d.ts +50 -0
- package/dist/components/dashboard/context/types.js +7 -0
- package/dist/components/dashboard/context/utils.d.ts +28 -0
- package/dist/components/dashboard/context/utils.js +53 -0
- package/dist/components/dashboard/dashboard.d.ts +27 -1
- package/dist/components/dashboard/dashboard.js +76 -36
- package/dist/components/dashboard/filters/expression-filter-bar.d.ts +42 -0
- package/dist/components/dashboard/filters/expression-filter-bar.js +80 -0
- package/dist/components/dashboard/filters/index.d.ts +6 -0
- package/dist/components/dashboard/filters/index.js +5 -0
- package/dist/components/dashboard/index.d.ts +25 -1
- package/dist/components/dashboard/index.js +22 -1
- package/dist/components/dashboard/pages/analytics-page.d.ts +20 -0
- package/dist/components/dashboard/pages/analytics-page.js +258 -0
- package/dist/components/dashboard/pages/index.d.ts +6 -0
- package/dist/components/dashboard/pages/index.js +6 -0
- package/dist/components/dashboard/pages/jobs-page.d.ts +20 -0
- package/dist/components/dashboard/pages/jobs-page.js +56 -0
- package/dist/components/dashboard/table/index.d.ts +6 -0
- package/dist/components/dashboard/table/index.js +5 -0
- package/dist/components/dashboard/table/table-wrapper.d.ts +104 -0
- package/dist/components/dashboard/table/table-wrapper.js +93 -0
- package/dist/components/dashboard/toolbar/filter-button.d.ts +12 -0
- package/dist/components/dashboard/toolbar/filter-button.js +124 -0
- package/dist/components/dashboard/toolbar/index.d.ts +13 -0
- package/dist/components/dashboard/toolbar/index.js +10 -0
- package/dist/components/dashboard/toolbar/page-toolbar.d.ts +75 -0
- package/dist/components/dashboard/toolbar/page-toolbar.js +208 -0
- package/dist/components/dashboard/toolbar/toolbar-actions.d.ts +52 -0
- package/dist/components/dashboard/toolbar/toolbar-actions.js +51 -0
- package/dist/components/dashboard/toolbar/toolbar-search.d.ts +21 -0
- package/dist/components/dashboard/toolbar/toolbar-search.js +123 -0
- package/dist/components/dashboard/toolbar/view-dropdown.d.ts +11 -0
- package/dist/components/dashboard/toolbar/view-dropdown.js +113 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +1 -0
- package/dist/components/modal/modal.js +3 -3
- package/dist/components/search/search-inline.js +1 -1
- package/dist/components/search/search-modal.js +13 -7
- package/dist/components/select/select.d.ts +3 -1
- package/dist/components/select/select.js +2 -1
- package/dist/components/sheet/index.d.ts +2 -0
- package/dist/components/sheet/index.js +3 -0
- package/dist/components/sheet/sheet.d.ts +33 -0
- package/dist/components/sheet/sheet.js +163 -0
- package/dist/components/sheet/sheet.stories.js +368 -0
- package/dist/components/table/data-table.d.ts +15 -2
- package/dist/components/table/data-table.js +7 -2
- package/dist/styles.css +1 -1
- package/package.json +12 -4
- package/.storybook/main.ts +0 -35
- package/.storybook/preview.tsx +0 -66
- package/.storybook/vitest.setup.ts +0 -4
- package/.turbo/turbo-build.log +0 -19
- package/.turbo/turbo-check.log +0 -6
- package/.turbo/turbo-type.log +0 -5
- package/CHANGELOG.md +0 -114
- package/argos.config.ts +0 -33
- package/dist/build-css-entry.js.map +0 -1
- package/dist/colors.stories.conts.d.ts.map +0 -1
- package/dist/colors.stories.conts.js.map +0 -1
- package/dist/colors.stories.js.map +0 -1
- package/dist/components/alert/alert.d.ts.map +0 -1
- package/dist/components/alert/alert.js.map +0 -1
- package/dist/components/alert/alert.stories.js.map +0 -1
- package/dist/components/alert/index.d.ts.map +0 -1
- package/dist/components/alert/index.js.map +0 -1
- package/dist/components/avatar/avatar-group.d.ts.map +0 -1
- package/dist/components/avatar/avatar-group.js.map +0 -1
- package/dist/components/avatar/avatar.d.ts.map +0 -1
- package/dist/components/avatar/avatar.js.map +0 -1
- package/dist/components/avatar/avatar.stories.js.map +0 -1
- package/dist/components/avatar/index.d.ts.map +0 -1
- package/dist/components/avatar/index.js.map +0 -1
- package/dist/components/badge/badge.d.ts.map +0 -1
- package/dist/components/badge/badge.js.map +0 -1
- package/dist/components/badge/badge.stories.js.map +0 -1
- package/dist/components/badge/icon-badge.d.ts.map +0 -1
- package/dist/components/badge/icon-badge.js.map +0 -1
- package/dist/components/badge/index.d.ts.map +0 -1
- package/dist/components/badge/index.js.map +0 -1
- package/dist/components/badge/status-badge.d.ts.map +0 -1
- package/dist/components/badge/status-badge.js.map +0 -1
- package/dist/components/badge/user-badge.d.ts.map +0 -1
- package/dist/components/badge/user-badge.js.map +0 -1
- package/dist/components/button/button-link.d.ts.map +0 -1
- package/dist/components/button/button-link.js.map +0 -1
- package/dist/components/button/button-link.stories.js.map +0 -1
- package/dist/components/button/button.d.ts.map +0 -1
- package/dist/components/button/button.js.map +0 -1
- package/dist/components/button/button.stories.js.map +0 -1
- package/dist/components/button/icon-button.d.ts.map +0 -1
- package/dist/components/button/icon-button.js.map +0 -1
- package/dist/components/button/icon-button.stories.js.map +0 -1
- package/dist/components/button/index.d.ts.map +0 -1
- package/dist/components/button/index.js.map +0 -1
- package/dist/components/button-group/button-group.d.ts.map +0 -1
- package/dist/components/button-group/button-group.js.map +0 -1
- package/dist/components/button-group/button-group.stories.js.map +0 -1
- package/dist/components/button-group/index.d.ts.map +0 -1
- package/dist/components/button-group/index.js.map +0 -1
- package/dist/components/calendar/calendar.d.ts.map +0 -1
- package/dist/components/calendar/calendar.js.map +0 -1
- package/dist/components/calendar/index.d.ts.map +0 -1
- package/dist/components/calendar/index.js.map +0 -1
- package/dist/components/checkbox/checkbox-label.d.ts.map +0 -1
- package/dist/components/checkbox/checkbox-label.js.map +0 -1
- package/dist/components/checkbox/checkbox-links.d.ts.map +0 -1
- package/dist/components/checkbox/checkbox-links.js.map +0 -1
- package/dist/components/checkbox/checkbox.d.ts.map +0 -1
- package/dist/components/checkbox/checkbox.js.map +0 -1
- package/dist/components/checkbox/checkbox.stories.js.map +0 -1
- package/dist/components/checkbox/index.d.ts.map +0 -1
- package/dist/components/checkbox/index.js.map +0 -1
- package/dist/components/code-block/code-block-footer.d.ts.map +0 -1
- package/dist/components/code-block/code-block-footer.js.map +0 -1
- package/dist/components/code-block/code-block.d.ts.map +0 -1
- package/dist/components/code-block/code-block.js.map +0 -1
- package/dist/components/code-block/code-block.stories.js.map +0 -1
- package/dist/components/code-block/code-content.d.ts.map +0 -1
- package/dist/components/code-block/code-content.js.map +0 -1
- package/dist/components/code-block/code-copy-button.d.ts.map +0 -1
- package/dist/components/code-block/code-copy-button.js.map +0 -1
- package/dist/components/code-block/code-tabs.d.ts.map +0 -1
- package/dist/components/code-block/code-tabs.js.map +0 -1
- package/dist/components/code-block/index.d.ts.map +0 -1
- package/dist/components/code-block/index.js.map +0 -1
- package/dist/components/command/command.d.ts.map +0 -1
- package/dist/components/command/command.js.map +0 -1
- package/dist/components/command/command.stories.js.map +0 -1
- package/dist/components/command/index.d.ts.map +0 -1
- package/dist/components/command/index.js.map +0 -1
- package/dist/components/confetti/confetti.d.ts.map +0 -1
- package/dist/components/confetti/confetti.js.map +0 -1
- package/dist/components/confetti/confetti.stories.js.map +0 -1
- package/dist/components/confetti/index.d.ts.map +0 -1
- package/dist/components/confetti/index.js.map +0 -1
- package/dist/components/dashboard/components/analytics-content.d.ts +0 -2
- package/dist/components/dashboard/components/analytics-content.d.ts.map +0 -1
- package/dist/components/dashboard/components/analytics-content.js +0 -180
- package/dist/components/dashboard/components/analytics-content.js.map +0 -1
- package/dist/components/dashboard/components/animated-logo.d.ts.map +0 -1
- package/dist/components/dashboard/components/animated-logo.js.map +0 -1
- package/dist/components/dashboard/components/complete-setup-button.d.ts.map +0 -1
- package/dist/components/dashboard/components/complete-setup-button.js.map +0 -1
- package/dist/components/dashboard/components/jobs-content.d.ts +0 -2
- package/dist/components/dashboard/components/jobs-content.d.ts.map +0 -1
- package/dist/components/dashboard/components/jobs-content.js +0 -69
- package/dist/components/dashboard/components/jobs-content.js.map +0 -1
- package/dist/components/dashboard/components/mobile-menu.d.ts.map +0 -1
- package/dist/components/dashboard/components/mobile-menu.js.map +0 -1
- package/dist/components/dashboard/components/organization-selector.d.ts.map +0 -1
- package/dist/components/dashboard/components/organization-selector.js.map +0 -1
- package/dist/components/dashboard/components/top-menu.d.ts.map +0 -1
- package/dist/components/dashboard/components/top-menu.js.map +0 -1
- package/dist/components/dashboard/components/topbar-button.d.ts.map +0 -1
- package/dist/components/dashboard/components/topbar-button.js.map +0 -1
- package/dist/components/dashboard/components/topbar.d.ts.map +0 -1
- package/dist/components/dashboard/components/topbar.js.map +0 -1
- package/dist/components/dashboard/components/user-profile.d.ts.map +0 -1
- package/dist/components/dashboard/components/user-profile.js.map +0 -1
- package/dist/components/dashboard/dashboard.d.ts.map +0 -1
- package/dist/components/dashboard/dashboard.js.map +0 -1
- package/dist/components/dashboard/dashboard.stories.js.map +0 -1
- package/dist/components/dashboard/index.d.ts.map +0 -1
- package/dist/components/dashboard/index.js.map +0 -1
- package/dist/components/date-picker/date-picker.d.ts.map +0 -1
- package/dist/components/date-picker/date-picker.js.map +0 -1
- package/dist/components/date-picker/date-picker.stories.js.map +0 -1
- package/dist/components/date-picker/index.d.ts.map +0 -1
- package/dist/components/date-picker/index.js.map +0 -1
- package/dist/components/date-time-range-picker/date-time-range-picker.d.ts.map +0 -1
- package/dist/components/date-time-range-picker/date-time-range-picker.js.map +0 -1
- package/dist/components/date-time-range-picker/index.d.ts.map +0 -1
- package/dist/components/date-time-range-picker/index.js.map +0 -1
- package/dist/components/dot-grid/dot-grid.d.ts.map +0 -1
- package/dist/components/dot-grid/dot-grid.js.map +0 -1
- package/dist/components/dot-grid/index.d.ts.map +0 -1
- package/dist/components/dot-grid/index.js.map +0 -1
- package/dist/components/dropdown-menu/dropdown-menu.d.ts.map +0 -1
- package/dist/components/dropdown-menu/dropdown-menu.js.map +0 -1
- package/dist/components/dropdown-menu/dropdown-menu.stories.js.map +0 -1
- package/dist/components/dropdown-menu/index.d.ts.map +0 -1
- package/dist/components/dropdown-menu/index.js.map +0 -1
- package/dist/components/dynamic-item/dynamic-item.d.ts.map +0 -1
- package/dist/components/dynamic-item/dynamic-item.js.map +0 -1
- package/dist/components/dynamic-item/dynamic-item.stories.js.map +0 -1
- package/dist/components/dynamic-item/index.d.ts.map +0 -1
- package/dist/components/dynamic-item/index.js.map +0 -1
- package/dist/components/form/form.d.ts.map +0 -1
- package/dist/components/form/form.js.map +0 -1
- package/dist/components/form/form.stories.js.map +0 -1
- package/dist/components/form/index.d.ts.map +0 -1
- package/dist/components/form/index.js.map +0 -1
- package/dist/components/icon/custom/badge.d.ts.map +0 -1
- package/dist/components/icon/custom/badge.js.map +0 -1
- package/dist/components/icon/custom/check-circle-solid.d.ts.map +0 -1
- package/dist/components/icon/custom/check-circle-solid.js.map +0 -1
- package/dist/components/icon/custom/circle-dotted-line.d.ts.map +0 -1
- package/dist/components/icon/custom/circle-dotted-line.js.map +0 -1
- package/dist/components/icon/custom/component-fill.d.ts.map +0 -1
- package/dist/components/icon/custom/component-fill.js.map +0 -1
- package/dist/components/icon/custom/component-line.d.ts.map +0 -1
- package/dist/components/icon/custom/component-line.js.map +0 -1
- package/dist/components/icon/custom/ellipse-mini-solid.d.ts.map +0 -1
- package/dist/components/icon/custom/ellipse-mini-solid.js.map +0 -1
- package/dist/components/icon/custom/index.d.ts.map +0 -1
- package/dist/components/icon/custom/index.js.map +0 -1
- package/dist/components/icon/custom/info-tooltip-fill.d.ts.map +0 -1
- package/dist/components/icon/custom/info-tooltip-fill.js.map +0 -1
- package/dist/components/icon/custom/resize.d.ts.map +0 -1
- package/dist/components/icon/custom/resize.js.map +0 -1
- package/dist/components/icon/custom/shipfox-logo.d.ts.map +0 -1
- package/dist/components/icon/custom/shipfox-logo.js.map +0 -1
- package/dist/components/icon/custom/slack-logo.d.ts.map +0 -1
- package/dist/components/icon/custom/slack-logo.js.map +0 -1
- package/dist/components/icon/custom/spinner.d.ts.map +0 -1
- package/dist/components/icon/custom/spinner.js.map +0 -1
- package/dist/components/icon/custom/stripe-logo.d.ts.map +0 -1
- package/dist/components/icon/custom/stripe-logo.js.map +0 -1
- package/dist/components/icon/custom/thunder.d.ts.map +0 -1
- package/dist/components/icon/custom/thunder.js.map +0 -1
- package/dist/components/icon/custom/x-circle-solid.d.ts.map +0 -1
- package/dist/components/icon/custom/x-circle-solid.js.map +0 -1
- package/dist/components/icon/icon.d.ts.map +0 -1
- package/dist/components/icon/icon.js.map +0 -1
- package/dist/components/icon/icon.stories.js.map +0 -1
- package/dist/components/icon/index.d.ts.map +0 -1
- package/dist/components/icon/index.js.map +0 -1
- package/dist/components/icon/remixicon-registry.d.ts.map +0 -1
- package/dist/components/icon/remixicon-registry.js.map +0 -1
- package/dist/components/index.d.ts.map +0 -1
- package/dist/components/index.js.map +0 -1
- package/dist/components/inline-tips/index.d.ts.map +0 -1
- package/dist/components/inline-tips/index.js.map +0 -1
- package/dist/components/inline-tips/inline-tips.d.ts.map +0 -1
- package/dist/components/inline-tips/inline-tips.js.map +0 -1
- package/dist/components/inline-tips/inline-tips.stories.js.map +0 -1
- package/dist/components/input/index.d.ts.map +0 -1
- package/dist/components/input/index.js.map +0 -1
- package/dist/components/input/input.d.ts.map +0 -1
- package/dist/components/input/input.js.map +0 -1
- package/dist/components/input/input.stories.js.map +0 -1
- package/dist/components/item/index.d.ts.map +0 -1
- package/dist/components/item/index.js.map +0 -1
- package/dist/components/item/item.d.ts.map +0 -1
- package/dist/components/item/item.js.map +0 -1
- package/dist/components/item/item.stories.js.map +0 -1
- package/dist/components/kbd/index.d.ts.map +0 -1
- package/dist/components/kbd/index.js.map +0 -1
- package/dist/components/kbd/kbd.d.ts.map +0 -1
- package/dist/components/kbd/kbd.js.map +0 -1
- package/dist/components/kbd/kbd.stories.js.map +0 -1
- package/dist/components/label/index.d.ts.map +0 -1
- package/dist/components/label/index.js.map +0 -1
- package/dist/components/label/label.d.ts.map +0 -1
- package/dist/components/label/label.js.map +0 -1
- package/dist/components/label/label.stories.js.map +0 -1
- package/dist/components/modal/index.d.ts.map +0 -1
- package/dist/components/modal/index.js.map +0 -1
- package/dist/components/modal/modal.d.ts.map +0 -1
- package/dist/components/modal/modal.js.map +0 -1
- package/dist/components/modal/modal.stories.js.map +0 -1
- package/dist/components/moving-border/index.d.ts.map +0 -1
- package/dist/components/moving-border/index.js.map +0 -1
- package/dist/components/moving-border/moving-border.d.ts.map +0 -1
- package/dist/components/moving-border/moving-border.js.map +0 -1
- package/dist/components/popover/index.d.ts.map +0 -1
- package/dist/components/popover/index.js.map +0 -1
- package/dist/components/popover/popover.d.ts.map +0 -1
- package/dist/components/popover/popover.js.map +0 -1
- package/dist/components/search/index.d.ts.map +0 -1
- package/dist/components/search/index.js.map +0 -1
- package/dist/components/search/search-context.d.ts.map +0 -1
- package/dist/components/search/search-context.js.map +0 -1
- package/dist/components/search/search-inline.d.ts.map +0 -1
- package/dist/components/search/search-inline.js.map +0 -1
- package/dist/components/search/search-modal.d.ts.map +0 -1
- package/dist/components/search/search-modal.js.map +0 -1
- package/dist/components/search/search-trigger.d.ts.map +0 -1
- package/dist/components/search/search-trigger.js.map +0 -1
- package/dist/components/search/search-variants.d.ts.map +0 -1
- package/dist/components/search/search-variants.js.map +0 -1
- package/dist/components/search/search.d.ts.map +0 -1
- package/dist/components/search/search.js.map +0 -1
- package/dist/components/search/search.stories.js.map +0 -1
- package/dist/components/select/index.d.ts.map +0 -1
- package/dist/components/select/index.js.map +0 -1
- package/dist/components/select/select.d.ts.map +0 -1
- package/dist/components/select/select.js.map +0 -1
- package/dist/components/select/select.stories.js.map +0 -1
- package/dist/components/shiny-text/index.d.ts.map +0 -1
- package/dist/components/shiny-text/index.js.map +0 -1
- package/dist/components/shiny-text/shiny-text.d.ts.map +0 -1
- package/dist/components/shiny-text/shiny-text.js.map +0 -1
- package/dist/components/skeleton/index.d.ts.map +0 -1
- package/dist/components/skeleton/index.js.map +0 -1
- package/dist/components/skeleton/skeleton.d.ts.map +0 -1
- package/dist/components/skeleton/skeleton.js.map +0 -1
- package/dist/components/skeleton/skeleton.stories.js.map +0 -1
- package/dist/components/table/data-table.d.ts.map +0 -1
- package/dist/components/table/data-table.js.map +0 -1
- package/dist/components/table/index.d.ts.map +0 -1
- package/dist/components/table/index.js.map +0 -1
- package/dist/components/table/table-column-header.d.ts.map +0 -1
- package/dist/components/table/table-column-header.js.map +0 -1
- package/dist/components/table/table-pagination.d.ts.map +0 -1
- package/dist/components/table/table-pagination.js.map +0 -1
- package/dist/components/table/table.d.ts.map +0 -1
- package/dist/components/table/table.js.map +0 -1
- package/dist/components/table/table.stories.columns.d.ts.map +0 -1
- package/dist/components/table/table.stories.columns.js.map +0 -1
- package/dist/components/table/table.stories.components.d.ts.map +0 -1
- package/dist/components/table/table.stories.components.js.map +0 -1
- package/dist/components/table/table.stories.data.d.ts.map +0 -1
- package/dist/components/table/table.stories.data.js.map +0 -1
- package/dist/components/table/table.stories.js.map +0 -1
- package/dist/components/tabs/index.d.ts.map +0 -1
- package/dist/components/tabs/index.js.map +0 -1
- package/dist/components/tabs/tabs.d.ts.map +0 -1
- package/dist/components/tabs/tabs.js.map +0 -1
- package/dist/components/tabs/tabs.stories.js.map +0 -1
- package/dist/components/textarea/index.d.ts.map +0 -1
- package/dist/components/textarea/index.js.map +0 -1
- package/dist/components/textarea/textarea.d.ts.map +0 -1
- package/dist/components/textarea/textarea.js.map +0 -1
- package/dist/components/textarea/textarea.stories.js.map +0 -1
- package/dist/components/theme/index.d.ts.map +0 -1
- package/dist/components/theme/index.js.map +0 -1
- package/dist/components/theme/theme-provider.d.ts.map +0 -1
- package/dist/components/theme/theme-provider.js.map +0 -1
- package/dist/components/toast/index.d.ts.map +0 -1
- package/dist/components/toast/index.js.map +0 -1
- package/dist/components/toast/toast-custom.d.ts.map +0 -1
- package/dist/components/toast/toast-custom.js.map +0 -1
- package/dist/components/toast/toast.d.ts.map +0 -1
- package/dist/components/toast/toast.js.map +0 -1
- package/dist/components/toast/toast.stories.js.map +0 -1
- package/dist/components/tooltip/index.d.ts.map +0 -1
- package/dist/components/tooltip/index.js.map +0 -1
- package/dist/components/tooltip/tooltip.d.ts.map +0 -1
- package/dist/components/tooltip/tooltip.js.map +0 -1
- package/dist/components/tooltip/tooltip.stories.js.map +0 -1
- package/dist/components/typography/code.d.ts.map +0 -1
- package/dist/components/typography/code.js.map +0 -1
- package/dist/components/typography/code.stories.js.map +0 -1
- package/dist/components/typography/header.d.ts.map +0 -1
- package/dist/components/typography/header.js.map +0 -1
- package/dist/components/typography/header.stories.js.map +0 -1
- package/dist/components/typography/index.d.ts.map +0 -1
- package/dist/components/typography/index.js.map +0 -1
- package/dist/components/typography/text.d.ts.map +0 -1
- package/dist/components/typography/text.js.map +0 -1
- package/dist/components/typography/text.stories.js.map +0 -1
- package/dist/hooks/index.d.ts.map +0 -1
- package/dist/hooks/index.js.map +0 -1
- package/dist/hooks/useCopy.d.ts.map +0 -1
- package/dist/hooks/useCopy.js.map +0 -1
- package/dist/hooks/useCopyToClipboard.d.ts.map +0 -1
- package/dist/hooks/useCopyToClipboard.js.map +0 -1
- package/dist/hooks/useMediaQuery.d.ts.map +0 -1
- package/dist/hooks/useMediaQuery.js.map +0 -1
- package/dist/hooks/useResolvedTheme.d.ts.map +0 -1
- package/dist/hooks/useResolvedTheme.js.map +0 -1
- package/dist/hooks/useShikiHighlight.d.ts.map +0 -1
- package/dist/hooks/useShikiHighlight.js.map +0 -1
- package/dist/hooks/useShikiStyleInjection.d.ts.map +0 -1
- package/dist/hooks/useShikiStyleInjection.js.map +0 -1
- package/dist/hooks/useTheme.d.ts.map +0 -1
- package/dist/hooks/useTheme.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/onboarding/sign-in.stories.js.map +0 -1
- package/dist/state/theme.d.ts.map +0 -1
- package/dist/state/theme.js.map +0 -1
- package/dist/utils/avatar.d.ts.map +0 -1
- package/dist/utils/avatar.js.map +0 -1
- package/dist/utils/clipboard.d.ts.map +0 -1
- package/dist/utils/clipboard.js.map +0 -1
- package/dist/utils/cn.d.ts.map +0 -1
- package/dist/utils/cn.js.map +0 -1
- package/dist/utils/date.d.ts.map +0 -1
- package/dist/utils/date.js.map +0 -1
- package/dist/utils/debounce.d.ts.map +0 -1
- package/dist/utils/debounce.js.map +0 -1
- package/dist/utils/format/chart.d.ts.map +0 -1
- package/dist/utils/format/chart.js.map +0 -1
- package/dist/utils/format/date.d.ts.map +0 -1
- package/dist/utils/format/date.js.map +0 -1
- package/dist/utils/format/duration.d.ts.map +0 -1
- package/dist/utils/format/duration.js.map +0 -1
- package/dist/utils/format/index.d.ts.map +0 -1
- package/dist/utils/format/index.js.map +0 -1
- package/dist/utils/format/number.d.ts.map +0 -1
- package/dist/utils/format/number.js.map +0 -1
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/index.js.map +0 -1
- package/index.css +0 -1018
- package/src/assets/illustration-1.svg +0 -92
- package/src/assets/illustration-2.svg +0 -14
- package/src/assets/illustration-gradient.svg +0 -7049
- package/src/build-css-entry.ts +0 -3
- package/src/colors.stories.conts.ts +0 -164
- package/src/colors.stories.tsx +0 -66
- package/src/components/alert/alert.stories.tsx +0 -178
- package/src/components/alert/alert.tsx +0 -291
- package/src/components/alert/index.ts +0 -1
- package/src/components/avatar/avatar-group.tsx +0 -186
- package/src/components/avatar/avatar.stories.tsx +0 -179
- package/src/components/avatar/avatar.tsx +0 -219
- package/src/components/avatar/index.ts +0 -2
- package/src/components/badge/badge.stories.tsx +0 -468
- package/src/components/badge/badge.tsx +0 -147
- package/src/components/badge/icon-badge.tsx +0 -43
- package/src/components/badge/index.ts +0 -4
- package/src/components/badge/status-badge.tsx +0 -43
- package/src/components/badge/user-badge.tsx +0 -34
- package/src/components/button/button-link.stories.tsx +0 -86
- package/src/components/button/button-link.tsx +0 -76
- package/src/components/button/button.stories.tsx +0 -138
- package/src/components/button/button.tsx +0 -91
- package/src/components/button/icon-button.stories.tsx +0 -228
- package/src/components/button/icon-button.tsx +0 -95
- package/src/components/button/index.ts +0 -3
- package/src/components/button-group/button-group.stories.tsx +0 -361
- package/src/components/button-group/button-group.tsx +0 -111
- package/src/components/button-group/index.ts +0 -1
- package/src/components/calendar/calendar.tsx +0 -90
- package/src/components/calendar/index.ts +0 -1
- package/src/components/checkbox/checkbox-label.tsx +0 -125
- package/src/components/checkbox/checkbox-links.tsx +0 -92
- package/src/components/checkbox/checkbox.stories.tsx +0 -391
- package/src/components/checkbox/checkbox.tsx +0 -71
- package/src/components/checkbox/index.ts +0 -3
- package/src/components/code-block/code-block-footer.tsx +0 -197
- package/src/components/code-block/code-block.stories.tsx +0 -323
- package/src/components/code-block/code-block.tsx +0 -283
- package/src/components/code-block/code-content.tsx +0 -63
- package/src/components/code-block/code-copy-button.tsx +0 -73
- package/src/components/code-block/code-tabs.tsx +0 -170
- package/src/components/code-block/index.ts +0 -3
- package/src/components/command/command.stories.tsx +0 -133
- package/src/components/command/command.tsx +0 -265
- package/src/components/command/index.ts +0 -1
- package/src/components/confetti/confetti.stories.tsx +0 -38
- package/src/components/confetti/confetti.tsx +0 -140
- package/src/components/confetti/index.ts +0 -1
- package/src/components/dashboard/components/analytics-content.tsx +0 -102
- package/src/components/dashboard/components/animated-logo.tsx +0 -25
- package/src/components/dashboard/components/complete-setup-button.tsx +0 -30
- package/src/components/dashboard/components/jobs-content.tsx +0 -51
- package/src/components/dashboard/components/mobile-menu.tsx +0 -50
- package/src/components/dashboard/components/organization-selector.tsx +0 -51
- package/src/components/dashboard/components/top-menu.tsx +0 -26
- package/src/components/dashboard/components/topbar-button.tsx +0 -27
- package/src/components/dashboard/components/topbar.tsx +0 -40
- package/src/components/dashboard/components/user-profile.tsx +0 -90
- package/src/components/dashboard/dashboard.stories.tsx +0 -25
- package/src/components/dashboard/dashboard.tsx +0 -61
- package/src/components/dashboard/index.ts +0 -1
- package/src/components/date-picker/date-picker.stories.tsx +0 -230
- package/src/components/date-picker/date-picker.tsx +0 -179
- package/src/components/date-picker/index.ts +0 -1
- package/src/components/date-time-range-picker/date-time-range-picker.tsx +0 -211
- package/src/components/date-time-range-picker/index.ts +0 -1
- package/src/components/dot-grid/dot-grid.tsx +0 -325
- package/src/components/dot-grid/index.ts +0 -1
- package/src/components/dropdown-menu/dropdown-menu.stories.tsx +0 -384
- package/src/components/dropdown-menu/dropdown-menu.tsx +0 -416
- package/src/components/dropdown-menu/index.ts +0 -1
- package/src/components/dynamic-item/dynamic-item.stories.tsx +0 -266
- package/src/components/dynamic-item/dynamic-item.tsx +0 -74
- package/src/components/dynamic-item/index.ts +0 -1
- package/src/components/form/form.stories.tsx +0 -505
- package/src/components/form/form.tsx +0 -154
- package/src/components/form/index.ts +0 -1
- package/src/components/icon/custom/badge.tsx +0 -17
- package/src/components/icon/custom/check-circle-solid.tsx +0 -24
- package/src/components/icon/custom/circle-dotted-line.tsx +0 -17
- package/src/components/icon/custom/component-fill.tsx +0 -17
- package/src/components/icon/custom/component-line.tsx +0 -17
- package/src/components/icon/custom/ellipse-mini-solid.tsx +0 -17
- package/src/components/icon/custom/index.ts +0 -14
- package/src/components/icon/custom/info-tooltip-fill.tsx +0 -21
- package/src/components/icon/custom/resize.tsx +0 -17
- package/src/components/icon/custom/shipfox-logo.tsx +0 -20
- package/src/components/icon/custom/slack-logo.tsx +0 -35
- package/src/components/icon/custom/spinner.tsx +0 -144
- package/src/components/icon/custom/stripe-logo.tsx +0 -27
- package/src/components/icon/custom/thunder.tsx +0 -17
- package/src/components/icon/custom/x-circle-solid.tsx +0 -24
- package/src/components/icon/icon.stories.tsx +0 -31
- package/src/components/icon/icon.tsx +0 -90
- package/src/components/icon/index.ts +0 -1
- package/src/components/icon/remixicon-registry.ts +0 -24
- package/src/components/index.ts +0 -36
- package/src/components/inline-tips/index.ts +0 -1
- package/src/components/inline-tips/inline-tips.stories.tsx +0 -131
- package/src/components/inline-tips/inline-tips.tsx +0 -132
- package/src/components/input/index.ts +0 -1
- package/src/components/input/input.stories.tsx +0 -138
- package/src/components/input/input.tsx +0 -43
- package/src/components/item/index.ts +0 -1
- package/src/components/item/item.stories.tsx +0 -159
- package/src/components/item/item.tsx +0 -182
- package/src/components/kbd/index.ts +0 -1
- package/src/components/kbd/kbd.stories.tsx +0 -64
- package/src/components/kbd/kbd.tsx +0 -32
- package/src/components/label/index.ts +0 -1
- package/src/components/label/label.stories.tsx +0 -67
- package/src/components/label/label.tsx +0 -15
- package/src/components/modal/index.ts +0 -1
- package/src/components/modal/modal.stories.tsx +0 -448
- package/src/components/modal/modal.tsx +0 -311
- package/src/components/moving-border/index.ts +0 -1
- package/src/components/moving-border/moving-border.tsx +0 -67
- package/src/components/popover/index.ts +0 -1
- package/src/components/popover/popover.tsx +0 -60
- package/src/components/renovate.json +0 -23
- package/src/components/search/index.ts +0 -28
- package/src/components/search/search-context.tsx +0 -78
- package/src/components/search/search-inline.tsx +0 -107
- package/src/components/search/search-modal.tsx +0 -198
- package/src/components/search/search-trigger.tsx +0 -47
- package/src/components/search/search-variants.ts +0 -88
- package/src/components/search/search.stories.tsx +0 -392
- package/src/components/search/search.tsx +0 -47
- package/src/components/select/index.ts +0 -1
- package/src/components/select/select.stories.tsx +0 -207
- package/src/components/select/select.tsx +0 -220
- package/src/components/shiny-text/index.ts +0 -1
- package/src/components/shiny-text/shiny-text.tsx +0 -21
- package/src/components/skeleton/index.ts +0 -1
- package/src/components/skeleton/skeleton.stories.tsx +0 -178
- package/src/components/skeleton/skeleton.tsx +0 -14
- package/src/components/table/data-table.tsx +0 -254
- package/src/components/table/index.ts +0 -5
- package/src/components/table/table-column-header.tsx +0 -141
- package/src/components/table/table-pagination.tsx +0 -161
- package/src/components/table/table.stories.columns.tsx +0 -198
- package/src/components/table/table.stories.components.tsx +0 -104
- package/src/components/table/table.stories.data.ts +0 -117
- package/src/components/table/table.stories.tsx +0 -256
- package/src/components/table/table.tsx +0 -95
- package/src/components/tabs/index.ts +0 -1
- package/src/components/tabs/tabs.stories.tsx +0 -100
- package/src/components/tabs/tabs.tsx +0 -380
- package/src/components/textarea/index.ts +0 -1
- package/src/components/textarea/textarea.stories.tsx +0 -196
- package/src/components/textarea/textarea.tsx +0 -42
- package/src/components/theme/index.ts +0 -1
- package/src/components/theme/theme-provider.tsx +0 -50
- package/src/components/toast/index.ts +0 -2
- package/src/components/toast/toast-custom.tsx +0 -154
- package/src/components/toast/toast.stories.tsx +0 -369
- package/src/components/toast/toast.tsx +0 -41
- package/src/components/tooltip/index.ts +0 -1
- package/src/components/tooltip/tooltip.stories.tsx +0 -284
- package/src/components/tooltip/tooltip.tsx +0 -121
- package/src/components/typography/code.stories.tsx +0 -36
- package/src/components/typography/code.tsx +0 -38
- package/src/components/typography/header.stories.tsx +0 -27
- package/src/components/typography/header.tsx +0 -41
- package/src/components/typography/index.ts +0 -3
- package/src/components/typography/text.stories.tsx +0 -67
- package/src/components/typography/text.tsx +0 -50
- package/src/hooks/index.ts +0 -6
- package/src/hooks/useCopy.ts +0 -0
- package/src/hooks/useCopyToClipboard.ts +0 -20
- package/src/hooks/useMediaQuery.ts +0 -87
- package/src/hooks/useResolvedTheme.ts +0 -34
- package/src/hooks/useShikiHighlight.ts +0 -140
- package/src/hooks/useShikiStyleInjection.ts +0 -34
- package/src/hooks/useTheme.ts +0 -10
- package/src/index.ts +0 -4
- package/src/onboarding/sign-in.stories.tsx +0 -85
- package/src/state/theme.ts +0 -15
- package/src/utils/avatar.ts +0 -27
- package/src/utils/clipboard.ts +0 -4
- package/src/utils/cn.ts +0 -6
- package/src/utils/date.test.ts +0 -119
- package/src/utils/date.ts +0 -99
- package/src/utils/debounce.ts +0 -15
- package/src/utils/format/chart.ts +0 -16
- package/src/utils/format/date.test.ts +0 -65
- package/src/utils/format/date.ts +0 -75
- package/src/utils/format/duration.test.ts +0 -58
- package/src/utils/format/duration.ts +0 -82
- package/src/utils/format/index.ts +0 -4
- package/src/utils/format/number.test.ts +0 -38
- package/src/utils/format/number.ts +0 -33
- package/src/utils/index.ts +0 -6
- package/test/global.ts +0 -3
- package/test/setup.ts +0 -9
- package/tsconfig.build.json +0 -19
- package/tsconfig.json +0 -11
- package/tsconfig.test.json +0 -12
- package/vercel.json +0 -8
- package/vite.css.config.ts +0 -30
- package/vitest.config.ts +0 -44
|
@@ -1,311 +0,0 @@
|
|
|
1
|
-
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
2
|
-
import {cva} from 'class-variance-authority';
|
|
3
|
-
import {Button} from 'components/button';
|
|
4
|
-
import {Icon} from 'components/icon';
|
|
5
|
-
import {Text} from 'components/typography';
|
|
6
|
-
import {motion, type Transition} from 'framer-motion';
|
|
7
|
-
import {useMediaQuery} from 'hooks/useMediaQuery';
|
|
8
|
-
import {type ComponentProps, createContext, useContext} from 'react';
|
|
9
|
-
import {cn} from 'utils/cn';
|
|
10
|
-
import {Drawer as VaulDrawer} from 'vaul';
|
|
11
|
-
|
|
12
|
-
const modalDefaultTransition: Transition = {
|
|
13
|
-
type: 'spring',
|
|
14
|
-
stiffness: 300,
|
|
15
|
-
damping: 30,
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
type ModalContextValue = {
|
|
19
|
-
breakpoint: string;
|
|
20
|
-
isDesktop: boolean;
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
const ModalContext = createContext<ModalContextValue | null>(null);
|
|
24
|
-
|
|
25
|
-
function useModalContext() {
|
|
26
|
-
const context = useContext(ModalContext);
|
|
27
|
-
if (!context) {
|
|
28
|
-
throw new Error('Modal components must be used within a Modal component');
|
|
29
|
-
}
|
|
30
|
-
return context;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
const modalOverlayVariants = cva(
|
|
34
|
-
'fixed inset-0 z-40 bg-background-backdrop-backdrop data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0',
|
|
35
|
-
);
|
|
36
|
-
|
|
37
|
-
const modalContentVariants = cva(
|
|
38
|
-
'fixed left-1/2 top-1/2 z-50 flex flex-col overflow-clip bg-background-neutral-base rounded-16 w-full max-w-[576px] -translate-x-1/2 -translate-y-1/2 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 shadow-tooltip',
|
|
39
|
-
);
|
|
40
|
-
|
|
41
|
-
function Modal({
|
|
42
|
-
breakpoint = '(min-width: 768px)',
|
|
43
|
-
children,
|
|
44
|
-
...props
|
|
45
|
-
}: ComponentProps<typeof DialogPrimitive.Root> & {breakpoint?: string}) {
|
|
46
|
-
const isDesktop = useMediaQuery(breakpoint);
|
|
47
|
-
|
|
48
|
-
const contextValue: ModalContextValue = {
|
|
49
|
-
breakpoint,
|
|
50
|
-
isDesktop,
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
const Root = isDesktop ? DialogPrimitive.Root : VaulDrawer.Root;
|
|
54
|
-
|
|
55
|
-
return (
|
|
56
|
-
<ModalContext.Provider value={contextValue}>
|
|
57
|
-
<Root {...props}>{children}</Root>
|
|
58
|
-
</ModalContext.Provider>
|
|
59
|
-
);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
function ModalTrigger(props: ComponentProps<typeof DialogPrimitive.Trigger>) {
|
|
63
|
-
const {isDesktop} = useModalContext();
|
|
64
|
-
|
|
65
|
-
if (isDesktop) {
|
|
66
|
-
return <DialogPrimitive.Trigger {...props} />;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
return <VaulDrawer.Trigger {...props} />;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
function ModalPortal(props: ComponentProps<typeof DialogPrimitive.Portal>) {
|
|
73
|
-
const {isDesktop} = useModalContext();
|
|
74
|
-
|
|
75
|
-
if (isDesktop) {
|
|
76
|
-
return <DialogPrimitive.Portal {...props} />;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
return <VaulDrawer.Portal {...props} />;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
function ModalClose(props: ComponentProps<typeof DialogPrimitive.Close>) {
|
|
83
|
-
const {isDesktop} = useModalContext();
|
|
84
|
-
|
|
85
|
-
if (isDesktop) {
|
|
86
|
-
return <DialogPrimitive.Close {...props} />;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
return <VaulDrawer.Close {...props} />;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
type ModalOverlayProps = ComponentProps<typeof DialogPrimitive.Overlay> & {
|
|
93
|
-
animated?: boolean;
|
|
94
|
-
transition?: Transition;
|
|
95
|
-
};
|
|
96
|
-
|
|
97
|
-
function ModalOverlay({
|
|
98
|
-
className,
|
|
99
|
-
animated = true,
|
|
100
|
-
transition = modalDefaultTransition,
|
|
101
|
-
...props
|
|
102
|
-
}: ModalOverlayProps) {
|
|
103
|
-
const {isDesktop} = useModalContext();
|
|
104
|
-
|
|
105
|
-
if (!isDesktop) {
|
|
106
|
-
return <VaulDrawer.Overlay className={cn(modalOverlayVariants(), className)} {...props} />;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
if (animated) {
|
|
110
|
-
return (
|
|
111
|
-
<DialogPrimitive.Overlay className={cn(modalOverlayVariants(), className)} asChild {...props}>
|
|
112
|
-
<motion.div
|
|
113
|
-
initial={{opacity: 0}}
|
|
114
|
-
animate={{opacity: 1}}
|
|
115
|
-
exit={{opacity: 0}}
|
|
116
|
-
transition={transition}
|
|
117
|
-
/>
|
|
118
|
-
</DialogPrimitive.Overlay>
|
|
119
|
-
);
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
return <DialogPrimitive.Overlay className={cn(modalOverlayVariants(), className)} {...props} />;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
type ModalContentProps = ComponentProps<typeof DialogPrimitive.Content> & {
|
|
126
|
-
animated?: boolean;
|
|
127
|
-
transition?: Transition;
|
|
128
|
-
overlayClassName?: string;
|
|
129
|
-
};
|
|
130
|
-
|
|
131
|
-
function ModalContent({
|
|
132
|
-
className,
|
|
133
|
-
children,
|
|
134
|
-
animated = true,
|
|
135
|
-
transition = modalDefaultTransition,
|
|
136
|
-
overlayClassName,
|
|
137
|
-
...props
|
|
138
|
-
}: ModalContentProps) {
|
|
139
|
-
const {isDesktop} = useModalContext();
|
|
140
|
-
|
|
141
|
-
if (!isDesktop) {
|
|
142
|
-
return (
|
|
143
|
-
<ModalPortal>
|
|
144
|
-
<ModalOverlay animated={animated} transition={transition} className={overlayClassName} />
|
|
145
|
-
<VaulDrawer.Content
|
|
146
|
-
className={cn(
|
|
147
|
-
'fixed bottom-0 left-0 right-0 z-50 flex flex-col bg-background-neutral-base rounded-t-16 max-h-[85vh] shadow-tooltip',
|
|
148
|
-
className,
|
|
149
|
-
)}
|
|
150
|
-
{...props}
|
|
151
|
-
>
|
|
152
|
-
<div className="relative w-full h-full flex flex-col min-h-0">
|
|
153
|
-
<div className="pointer-events-none absolute inset-0 shadow-separator-inset rounded-t-16" />
|
|
154
|
-
<div className="flex items-center justify-center pt-8 pb-8 shrink-0">
|
|
155
|
-
<div className="bg-foreground-neutral-subtle w-32 h-4 rounded-full opacity-40" />
|
|
156
|
-
</div>
|
|
157
|
-
{children}
|
|
158
|
-
</div>
|
|
159
|
-
</VaulDrawer.Content>
|
|
160
|
-
</ModalPortal>
|
|
161
|
-
);
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
const baseClasses = cn(modalContentVariants(), className);
|
|
165
|
-
|
|
166
|
-
return (
|
|
167
|
-
<ModalPortal>
|
|
168
|
-
<ModalOverlay animated={animated} transition={transition} className={overlayClassName} />
|
|
169
|
-
<DialogPrimitive.Content className={baseClasses} {...props}>
|
|
170
|
-
<div className="relative size-full">
|
|
171
|
-
<div className="pointer-events-none absolute inset-0 shadow-separator-inset rounded-16" />
|
|
172
|
-
{children}
|
|
173
|
-
</div>
|
|
174
|
-
</DialogPrimitive.Content>
|
|
175
|
-
</ModalPortal>
|
|
176
|
-
);
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
type ModalHeaderProps = ComponentProps<'div'> & {
|
|
180
|
-
title?: string;
|
|
181
|
-
showEscIndicator?: boolean;
|
|
182
|
-
showClose?: boolean;
|
|
183
|
-
};
|
|
184
|
-
|
|
185
|
-
function ModalHeader({
|
|
186
|
-
className,
|
|
187
|
-
title,
|
|
188
|
-
showEscIndicator = true,
|
|
189
|
-
showClose = true,
|
|
190
|
-
children,
|
|
191
|
-
...props
|
|
192
|
-
}: ModalHeaderProps) {
|
|
193
|
-
const {isDesktop} = useModalContext();
|
|
194
|
-
|
|
195
|
-
return (
|
|
196
|
-
<div className="flex flex-col w-full shrink-0" {...props}>
|
|
197
|
-
<div className="bg-background-neutral-base flex items-center justify-center gap-20 overflow-clip px-24 py-16 w-full">
|
|
198
|
-
{title ? (
|
|
199
|
-
<Text size="lg" className="flex-1 overflow-ellipsis overflow-hidden whitespace-nowrap">
|
|
200
|
-
{title}
|
|
201
|
-
</Text>
|
|
202
|
-
) : (
|
|
203
|
-
<div className="flex-1">{children}</div>
|
|
204
|
-
)}
|
|
205
|
-
<div className="flex items-center gap-8">
|
|
206
|
-
{isDesktop && showEscIndicator && (
|
|
207
|
-
<kbd className="flex items-center justify-center rounded-8 border border-border-neutral-base shadow-button-neutral bg-background-field-base text-xs text-foreground-neutral-subtle px-4">
|
|
208
|
-
esc
|
|
209
|
-
</kbd>
|
|
210
|
-
)}
|
|
211
|
-
{showClose && (
|
|
212
|
-
<ModalClose asChild>
|
|
213
|
-
<Button
|
|
214
|
-
variant="transparent"
|
|
215
|
-
size="xs"
|
|
216
|
-
className="rounded-4 p-2 cursor-pointer bg-transparent border-none text-foreground-neutral-muted hover:text-foreground-neutral-base hover:bg-background-components-hover transition-colors duration-150 outline-none focus-visible:ring-2 focus-visible:ring-background-accent-blue-base focus-visible:ring-offset-2 w-24 h-24"
|
|
217
|
-
>
|
|
218
|
-
<Icon name="close" />
|
|
219
|
-
</Button>
|
|
220
|
-
</ModalClose>
|
|
221
|
-
)}
|
|
222
|
-
</div>
|
|
223
|
-
</div>
|
|
224
|
-
<div className="bg-border-neutral-strong h-[1px] w-full" />
|
|
225
|
-
</div>
|
|
226
|
-
);
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
function ModalBody({className, children, ...props}: ComponentProps<'div'>) {
|
|
230
|
-
const {isDesktop} = useModalContext();
|
|
231
|
-
|
|
232
|
-
return (
|
|
233
|
-
<div
|
|
234
|
-
className={cn(
|
|
235
|
-
'bg-background-neutral-base flex flex-col items-start px-24 pb-24 pt-16 w-full',
|
|
236
|
-
isDesktop ? 'overflow-clip' : 'overflow-y-auto overflow-x-clip flex-1',
|
|
237
|
-
className,
|
|
238
|
-
)}
|
|
239
|
-
{...props}
|
|
240
|
-
>
|
|
241
|
-
{children}
|
|
242
|
-
</div>
|
|
243
|
-
);
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
function ModalFooter({className, children, ...props}: ComponentProps<'div'>) {
|
|
247
|
-
return (
|
|
248
|
-
<div className="flex flex-col w-full shrink-0" {...props}>
|
|
249
|
-
<div className="bg-border-neutral-strong h-[1px] w-full" />
|
|
250
|
-
<div className="bg-background-neutral-base flex items-end justify-end gap-20 overflow-clip px-24 py-16 w-full">
|
|
251
|
-
<div className={cn('flex items-center gap-16', className)}>{children}</div>
|
|
252
|
-
</div>
|
|
253
|
-
</div>
|
|
254
|
-
);
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
type ModalTitleProps = ComponentProps<typeof DialogPrimitive.Title>;
|
|
258
|
-
|
|
259
|
-
function ModalTitle({className, ...props}: ModalTitleProps) {
|
|
260
|
-
const {isDesktop} = useModalContext();
|
|
261
|
-
|
|
262
|
-
const titleClassName = cn(
|
|
263
|
-
'font-medium text-lg leading-20 overflow-ellipsis overflow-hidden text-foreground-neutral-base',
|
|
264
|
-
className,
|
|
265
|
-
);
|
|
266
|
-
|
|
267
|
-
if (!isDesktop) {
|
|
268
|
-
return <VaulDrawer.Title className={titleClassName} {...props} />;
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
return <DialogPrimitive.Title className={titleClassName} {...props} />;
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
type ModalDescriptionProps = ComponentProps<typeof DialogPrimitive.Description>;
|
|
275
|
-
|
|
276
|
-
function ModalDescription({className, ...props}: ModalDescriptionProps) {
|
|
277
|
-
const {isDesktop} = useModalContext();
|
|
278
|
-
|
|
279
|
-
const descClassName = cn('text-sm leading-20 text-foreground-neutral-subtle', className);
|
|
280
|
-
|
|
281
|
-
if (!isDesktop) {
|
|
282
|
-
return <VaulDrawer.Description className={descClassName} {...props} />;
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
return <DialogPrimitive.Description className={descClassName} {...props} />;
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
export {
|
|
289
|
-
Modal,
|
|
290
|
-
ModalPortal,
|
|
291
|
-
ModalOverlay,
|
|
292
|
-
ModalTrigger,
|
|
293
|
-
ModalClose,
|
|
294
|
-
ModalContent,
|
|
295
|
-
ModalHeader,
|
|
296
|
-
ModalBody,
|
|
297
|
-
ModalFooter,
|
|
298
|
-
ModalTitle,
|
|
299
|
-
ModalDescription,
|
|
300
|
-
modalContentVariants,
|
|
301
|
-
modalOverlayVariants,
|
|
302
|
-
modalDefaultTransition,
|
|
303
|
-
};
|
|
304
|
-
|
|
305
|
-
export type {
|
|
306
|
-
ModalContentProps,
|
|
307
|
-
ModalHeaderProps,
|
|
308
|
-
ModalOverlayProps,
|
|
309
|
-
ModalTitleProps,
|
|
310
|
-
ModalDescriptionProps,
|
|
311
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './moving-border';
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
motion,
|
|
3
|
-
useAnimationFrame,
|
|
4
|
-
useMotionTemplate,
|
|
5
|
-
useMotionValue,
|
|
6
|
-
useTransform,
|
|
7
|
-
} from 'framer-motion';
|
|
8
|
-
import type {ComponentProps} from 'react';
|
|
9
|
-
import {useRef} from 'react';
|
|
10
|
-
|
|
11
|
-
export type MovingBorderProps = {
|
|
12
|
-
children: React.ReactNode;
|
|
13
|
-
duration?: number;
|
|
14
|
-
rx?: string;
|
|
15
|
-
ry?: string;
|
|
16
|
-
} & ComponentProps<'svg'>;
|
|
17
|
-
|
|
18
|
-
export function MovingBorder({
|
|
19
|
-
children,
|
|
20
|
-
duration = 3000,
|
|
21
|
-
rx,
|
|
22
|
-
ry,
|
|
23
|
-
...otherProps
|
|
24
|
-
}: MovingBorderProps) {
|
|
25
|
-
const pathRef = useRef<SVGRectElement | null>(null);
|
|
26
|
-
const progress = useMotionValue<number>(0);
|
|
27
|
-
|
|
28
|
-
useAnimationFrame((time: number) => {
|
|
29
|
-
const length = pathRef.current?.getTotalLength();
|
|
30
|
-
if (length) {
|
|
31
|
-
const pxPerMillisecond = length / duration;
|
|
32
|
-
progress.set((time * pxPerMillisecond) % length);
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
|
|
36
|
-
const x = useTransform(progress, (val: number) => pathRef.current?.getPointAtLength(val)?.x ?? 0);
|
|
37
|
-
const y = useTransform(progress, (val: number) => pathRef.current?.getPointAtLength(val)?.y ?? 0);
|
|
38
|
-
|
|
39
|
-
const transform = useMotionTemplate`translateX(${x}px) translateY(${y}px) translateX(-50%) translateY(-50%)`;
|
|
40
|
-
|
|
41
|
-
return (
|
|
42
|
-
<>
|
|
43
|
-
<svg
|
|
44
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
45
|
-
preserveAspectRatio="none"
|
|
46
|
-
className="absolute h-full w-full"
|
|
47
|
-
width="100%"
|
|
48
|
-
height="100%"
|
|
49
|
-
{...otherProps}
|
|
50
|
-
>
|
|
51
|
-
<title>Moving Border</title>
|
|
52
|
-
<rect fill="none" width="100%" height="100%" rx={rx} ry={ry} ref={pathRef} />
|
|
53
|
-
</svg>
|
|
54
|
-
<motion.div
|
|
55
|
-
style={{
|
|
56
|
-
position: 'absolute',
|
|
57
|
-
top: 0,
|
|
58
|
-
left: 0,
|
|
59
|
-
display: 'inline-block',
|
|
60
|
-
transform,
|
|
61
|
-
}}
|
|
62
|
-
>
|
|
63
|
-
{children}
|
|
64
|
-
</motion.div>
|
|
65
|
-
</>
|
|
66
|
-
);
|
|
67
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './popover';
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
2
|
-
import type {ComponentProps} from 'react';
|
|
3
|
-
import {cn} from 'utils/cn';
|
|
4
|
-
|
|
5
|
-
function Popover({...props}: ComponentProps<typeof PopoverPrimitive.Root>) {
|
|
6
|
-
return <PopoverPrimitive.Root {...props} />;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
function PopoverTrigger({...props}: ComponentProps<typeof PopoverPrimitive.Trigger>) {
|
|
10
|
-
return <PopoverPrimitive.Trigger {...props} />;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
function PopoverAnchor({...props}: ComponentProps<typeof PopoverPrimitive.Anchor>) {
|
|
14
|
-
return <PopoverPrimitive.Anchor {...props} />;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
function PopoverPortal({...props}: ComponentProps<typeof PopoverPrimitive.Portal>) {
|
|
18
|
-
return <PopoverPrimitive.Portal {...props} />;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
function PopoverContent({
|
|
22
|
-
className,
|
|
23
|
-
align = 'center',
|
|
24
|
-
sideOffset = 4,
|
|
25
|
-
...props
|
|
26
|
-
}: ComponentProps<typeof PopoverPrimitive.Content>) {
|
|
27
|
-
return (
|
|
28
|
-
<PopoverPortal>
|
|
29
|
-
<PopoverPrimitive.Content
|
|
30
|
-
align={align}
|
|
31
|
-
sideOffset={sideOffset}
|
|
32
|
-
className={cn(
|
|
33
|
-
'z-50 rounded-10 bg-background-neutral-overlay shadow-tooltip outline-none',
|
|
34
|
-
'data-[state=open]:animate-in data-[state=closed]:animate-out',
|
|
35
|
-
'data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0',
|
|
36
|
-
'data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95',
|
|
37
|
-
'data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2',
|
|
38
|
-
'data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',
|
|
39
|
-
className,
|
|
40
|
-
)}
|
|
41
|
-
{...props}
|
|
42
|
-
/>
|
|
43
|
-
</PopoverPortal>
|
|
44
|
-
);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
function PopoverArrow({className, ...props}: ComponentProps<typeof PopoverPrimitive.Arrow>) {
|
|
48
|
-
return (
|
|
49
|
-
<PopoverPrimitive.Arrow
|
|
50
|
-
className={cn('fill-background-neutral-overlay', className)}
|
|
51
|
-
{...props}
|
|
52
|
-
/>
|
|
53
|
-
);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
function PopoverClose({...props}: ComponentProps<typeof PopoverPrimitive.Close>) {
|
|
57
|
-
return <PopoverPrimitive.Close {...props} />;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export {Popover, PopoverTrigger, PopoverAnchor, PopoverContent, PopoverArrow, PopoverClose};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
|
3
|
-
"extends": [
|
|
4
|
-
"config:recommended",
|
|
5
|
-
"group:recommended",
|
|
6
|
-
"monorepo:turbo",
|
|
7
|
-
"monorepo:vitest",
|
|
8
|
-
"monorepo:react",
|
|
9
|
-
"packages:react",
|
|
10
|
-
"packages:vite",
|
|
11
|
-
"packages:unitTest",
|
|
12
|
-
"helpers:pinGitHubActionDigests",
|
|
13
|
-
"helpers:followTypescriptRc",
|
|
14
|
-
"customManagers:biomeVersions",
|
|
15
|
-
"customManagers:dockerfileVersions",
|
|
16
|
-
"replacements:all",
|
|
17
|
-
"security:openssf-scorecard",
|
|
18
|
-
":configMigration",
|
|
19
|
-
"abandonments:recommended",
|
|
20
|
-
":gitSignOff",
|
|
21
|
-
"schedule:daily"
|
|
22
|
-
]
|
|
23
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
export {Search, type SearchProps} from './search';
|
|
2
|
-
export {useSearchContext} from './search-context';
|
|
3
|
-
export {SearchInline, type SearchInlineProps} from './search-inline';
|
|
4
|
-
export {
|
|
5
|
-
SearchContent,
|
|
6
|
-
type SearchContentProps,
|
|
7
|
-
SearchEmpty,
|
|
8
|
-
type SearchEmptyProps,
|
|
9
|
-
SearchFooter,
|
|
10
|
-
type SearchFooterProps,
|
|
11
|
-
SearchGroup,
|
|
12
|
-
type SearchGroupProps,
|
|
13
|
-
SearchInput,
|
|
14
|
-
type SearchInputProps,
|
|
15
|
-
SearchItem,
|
|
16
|
-
type SearchItemProps,
|
|
17
|
-
SearchList,
|
|
18
|
-
type SearchListProps,
|
|
19
|
-
SearchSeparator,
|
|
20
|
-
type SearchSeparatorProps,
|
|
21
|
-
} from './search-modal';
|
|
22
|
-
export {SearchTrigger, type SearchTriggerProps} from './search-trigger';
|
|
23
|
-
|
|
24
|
-
export {
|
|
25
|
-
searchDefaultTransition,
|
|
26
|
-
searchInputVariants,
|
|
27
|
-
searchTriggerVariants,
|
|
28
|
-
} from './search-variants';
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import {createContext, useCallback, useContext, useEffect, useState} from 'react';
|
|
2
|
-
import {SHORTCUT_KEY_REGEX} from './search-variants';
|
|
3
|
-
|
|
4
|
-
export type SearchContextValue = {
|
|
5
|
-
open: boolean;
|
|
6
|
-
setOpen: (open: boolean) => void;
|
|
7
|
-
searchValue: string;
|
|
8
|
-
setSearchValue: (value: string) => void;
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
export const SearchContext = createContext<SearchContextValue | null>(null);
|
|
12
|
-
|
|
13
|
-
export function useSearchContext() {
|
|
14
|
-
const context = useContext(SearchContext);
|
|
15
|
-
if (!context) {
|
|
16
|
-
throw new Error('Search components must be used within a Search component');
|
|
17
|
-
}
|
|
18
|
-
return context;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export function useControllableState<T>(
|
|
22
|
-
controlledValue: T | undefined,
|
|
23
|
-
defaultValue: T,
|
|
24
|
-
onChange?: (value: T) => void,
|
|
25
|
-
): [T, (value: T) => void] {
|
|
26
|
-
const [internalValue, setInternalValue] = useState(defaultValue);
|
|
27
|
-
const isControlled = controlledValue !== undefined;
|
|
28
|
-
const value = isControlled ? controlledValue : internalValue;
|
|
29
|
-
|
|
30
|
-
const setValue = useCallback(
|
|
31
|
-
(newValue: T) => {
|
|
32
|
-
if (!isControlled) {
|
|
33
|
-
setInternalValue(newValue);
|
|
34
|
-
}
|
|
35
|
-
onChange?.(newValue);
|
|
36
|
-
},
|
|
37
|
-
[isControlled, onChange],
|
|
38
|
-
);
|
|
39
|
-
|
|
40
|
-
return [value, setValue];
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export function useKeyboardShortcut(shortcutKey: string | undefined, onTrigger: () => void) {
|
|
44
|
-
useEffect(() => {
|
|
45
|
-
if (!shortcutKey) return;
|
|
46
|
-
|
|
47
|
-
const handleKeyDown = (e: KeyboardEvent) => {
|
|
48
|
-
const key = shortcutKey.toLowerCase();
|
|
49
|
-
const isMetaKey = key.startsWith('meta+') || key.startsWith('cmd+') || key.startsWith('⌘');
|
|
50
|
-
const isCtrlKey = key.startsWith('ctrl+');
|
|
51
|
-
const targetKey = key.replace(SHORTCUT_KEY_REGEX, '');
|
|
52
|
-
|
|
53
|
-
const shouldTrigger =
|
|
54
|
-
(isMetaKey && e.metaKey && e.key.toLowerCase() === targetKey) ||
|
|
55
|
-
(isCtrlKey && e.ctrlKey && e.key.toLowerCase() === targetKey) ||
|
|
56
|
-
(!isMetaKey && !isCtrlKey && e.key.toLowerCase() === targetKey && !e.metaKey && !e.ctrlKey);
|
|
57
|
-
|
|
58
|
-
if (!shouldTrigger) return;
|
|
59
|
-
|
|
60
|
-
if (!isMetaKey && !isCtrlKey) {
|
|
61
|
-
const target = e.target as HTMLElement;
|
|
62
|
-
if (
|
|
63
|
-
target.tagName === 'INPUT' ||
|
|
64
|
-
target.tagName === 'TEXTAREA' ||
|
|
65
|
-
target.isContentEditable
|
|
66
|
-
) {
|
|
67
|
-
return;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
e.preventDefault();
|
|
72
|
-
onTrigger();
|
|
73
|
-
};
|
|
74
|
-
|
|
75
|
-
document.addEventListener('keydown', handleKeyDown);
|
|
76
|
-
return () => document.removeEventListener('keydown', handleKeyDown);
|
|
77
|
-
}, [shortcutKey, onTrigger]);
|
|
78
|
-
}
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import type {VariantProps} from 'class-variance-authority';
|
|
2
|
-
import type {ComponentProps} from 'react';
|
|
3
|
-
import {useCallback, useRef, useState} from 'react';
|
|
4
|
-
import {cn} from 'utils/cn';
|
|
5
|
-
import {Icon} from '../icon';
|
|
6
|
-
import {searchInputVariants} from './search-variants';
|
|
7
|
-
|
|
8
|
-
export type SearchInlineProps = Omit<ComponentProps<'input'>, 'size'> &
|
|
9
|
-
VariantProps<typeof searchInputVariants> & {
|
|
10
|
-
showClearButton?: boolean;
|
|
11
|
-
onClear?: () => void;
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
export function SearchInline({
|
|
15
|
-
className,
|
|
16
|
-
variant,
|
|
17
|
-
size,
|
|
18
|
-
radius,
|
|
19
|
-
value,
|
|
20
|
-
onChange,
|
|
21
|
-
onClear,
|
|
22
|
-
showClearButton = true,
|
|
23
|
-
...props
|
|
24
|
-
}: SearchInlineProps) {
|
|
25
|
-
const inputRef = useRef<HTMLInputElement>(null);
|
|
26
|
-
const [internalValue, setInternalValue] = useState('');
|
|
27
|
-
const isControlled = value !== undefined;
|
|
28
|
-
const inputValue = isControlled ? value : internalValue;
|
|
29
|
-
const hasValue = Boolean(inputValue);
|
|
30
|
-
const isSmall = size === 'small';
|
|
31
|
-
|
|
32
|
-
const handleChange = useCallback(
|
|
33
|
-
(e: React.ChangeEvent<HTMLInputElement>) => {
|
|
34
|
-
if (!isControlled) {
|
|
35
|
-
setInternalValue(e.target.value);
|
|
36
|
-
}
|
|
37
|
-
onChange?.(e);
|
|
38
|
-
},
|
|
39
|
-
[isControlled, onChange],
|
|
40
|
-
);
|
|
41
|
-
|
|
42
|
-
const handleClear = useCallback(() => {
|
|
43
|
-
if (!isControlled) {
|
|
44
|
-
setInternalValue('');
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
if (onChange && inputRef.current) {
|
|
48
|
-
inputRef.current.value = '';
|
|
49
|
-
const syntheticEvent = {
|
|
50
|
-
target: inputRef.current,
|
|
51
|
-
currentTarget: inputRef.current,
|
|
52
|
-
} as React.ChangeEvent<HTMLInputElement>;
|
|
53
|
-
onChange(syntheticEvent);
|
|
54
|
-
}
|
|
55
|
-
onClear?.();
|
|
56
|
-
inputRef.current?.focus();
|
|
57
|
-
}, [isControlled, onChange, onClear]);
|
|
58
|
-
|
|
59
|
-
const handleKeyDown = useCallback(
|
|
60
|
-
(e: React.KeyboardEvent<HTMLInputElement>) => {
|
|
61
|
-
if (e.key === 'Escape' && hasValue) {
|
|
62
|
-
e.preventDefault();
|
|
63
|
-
handleClear();
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
[hasValue, handleClear],
|
|
67
|
-
);
|
|
68
|
-
|
|
69
|
-
return (
|
|
70
|
-
<div
|
|
71
|
-
data-slot="search-inline"
|
|
72
|
-
className={cn(searchInputVariants({variant, size, radius}), className)}
|
|
73
|
-
>
|
|
74
|
-
<Icon
|
|
75
|
-
name="searchLine"
|
|
76
|
-
className={cn('shrink-0 text-foreground-neutral-muted', isSmall ? 'size-14' : 'size-16')}
|
|
77
|
-
/>
|
|
78
|
-
<input
|
|
79
|
-
ref={inputRef}
|
|
80
|
-
type="text"
|
|
81
|
-
value={inputValue}
|
|
82
|
-
onChange={handleChange}
|
|
83
|
-
onKeyDown={handleKeyDown}
|
|
84
|
-
className={cn(
|
|
85
|
-
'flex-1 bg-transparent outline-none min-w-0',
|
|
86
|
-
'text-foreground-neutral-base',
|
|
87
|
-
'placeholder:text-foreground-neutral-muted',
|
|
88
|
-
'disabled:cursor-not-allowed disabled:text-foreground-neutral-disabled',
|
|
89
|
-
)}
|
|
90
|
-
{...props}
|
|
91
|
-
/>
|
|
92
|
-
{showClearButton && hasValue && (
|
|
93
|
-
<button
|
|
94
|
-
type="button"
|
|
95
|
-
onClick={handleClear}
|
|
96
|
-
className={cn(
|
|
97
|
-
'shrink-0 cursor-pointer rounded-4 p-2 -mx-2',
|
|
98
|
-
'text-foreground-neutral-muted hover:text-foreground-neutral-subtle transition-colors',
|
|
99
|
-
)}
|
|
100
|
-
aria-label="Clear search"
|
|
101
|
-
>
|
|
102
|
-
<Icon name="closeLine" className="size-16" />
|
|
103
|
-
</button>
|
|
104
|
-
)}
|
|
105
|
-
</div>
|
|
106
|
-
);
|
|
107
|
-
}
|