@tryghost/shade 0.0.0-stage → 0.1.0-alpha.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/LICENSE +22 -0
- package/README.md +142 -2
- package/es/app.js +4 -0
- package/es/assets/images/index.js +2 -0
- package/es/components/layout/error-page.js +40 -0
- package/es/components/layout/error-page.js.map +1 -0
- package/es/components/layout/heading.js +80 -0
- package/es/components/layout/heading.js.map +1 -0
- package/es/components/page-templates/detail-page.js +73 -0
- package/es/components/page-templates/detail-page.js.map +1 -0
- package/es/components/page-templates/large-page-title.js +89 -0
- package/es/components/page-templates/large-page-title.js.map +1 -0
- package/es/components/page-templates/list-page.js +174 -0
- package/es/components/page-templates/list-page.js.map +1 -0
- package/es/components/page-templates/modal-page.js +32 -0
- package/es/components/page-templates/modal-page.js.map +1 -0
- package/es/components/patterns/color-picker.js +328 -0
- package/es/components/patterns/color-picker.js.map +1 -0
- package/es/components/patterns/dirty-confirm-dialog.js +44 -0
- package/es/components/patterns/dirty-confirm-dialog.js.map +1 -0
- package/es/components/patterns/filter-bar-context.js +8 -0
- package/es/components/patterns/filter-bar-context.js.map +1 -0
- package/es/components/patterns/filter-bar.js +67 -0
- package/es/components/patterns/filter-bar.js.map +1 -0
- package/es/components/patterns/filters-helpers.js +415 -0
- package/es/components/patterns/filters-helpers.js.map +1 -0
- package/es/components/patterns/filters.js +1816 -0
- package/es/components/patterns/filters.js.map +1 -0
- package/es/components/patterns/gh-chart.js +152 -0
- package/es/components/patterns/gh-chart.js.map +1 -0
- package/es/components/patterns/image-upload-variants.js +13 -0
- package/es/components/patterns/image-upload-variants.js.map +1 -0
- package/es/components/patterns/image-upload.js +63 -0
- package/es/components/patterns/image-upload.js.map +1 -0
- package/es/components/patterns/kpi-card.js +46 -0
- package/es/components/patterns/kpi-card.js.map +1 -0
- package/es/components/patterns/kpi-tabs.js +61 -0
- package/es/components/patterns/kpi-tabs.js.map +1 -0
- package/es/components/patterns/page-header-large-title.js +13 -0
- package/es/components/patterns/page-header-large-title.js.map +1 -0
- package/es/components/patterns/page-header.js +375 -0
- package/es/components/patterns/page-header.js.map +1 -0
- package/es/components/patterns/setting-group-variants.js +22 -0
- package/es/components/patterns/setting-group-variants.js.map +1 -0
- package/es/components/patterns/setting-group.js +103 -0
- package/es/components/patterns/setting-group.js.map +1 -0
- package/es/components/patterns/settings-modal-variants.js +37 -0
- package/es/components/patterns/settings-modal-variants.js.map +1 -0
- package/es/components/patterns/settings-modal.js +192 -0
- package/es/components/patterns/settings-modal.js.map +1 -0
- package/es/components/patterns/share-modal.js +264 -0
- package/es/components/patterns/share-modal.js.map +1 -0
- package/es/components/patterns/use-dirty-confirmation.js +35 -0
- package/es/components/patterns/use-dirty-confirmation.js.map +1 -0
- package/es/components/patterns/view-bar.js +40 -0
- package/es/components/patterns/view-bar.js.map +1 -0
- package/es/components/primitives/box.js +25 -0
- package/es/components/primitives/box.js.map +1 -0
- package/es/components/primitives/container.js +35 -0
- package/es/components/primitives/container.js.map +1 -0
- package/es/components/primitives/grid.js +26 -0
- package/es/components/primitives/grid.js.map +1 -0
- package/es/components/primitives/index.js +7 -0
- package/es/components/primitives/inline.js +17 -0
- package/es/components/primitives/inline.js.map +1 -0
- package/es/components/primitives/stack.js +17 -0
- package/es/components/primitives/stack.js.map +1 -0
- package/es/components/primitives/text.js +48 -0
- package/es/components/primitives/text.js.map +1 -0
- package/es/components/primitives/types.js +56 -0
- package/es/components/primitives/types.js.map +1 -0
- package/es/components/ui/accordion.js +37 -0
- package/es/components/ui/accordion.js.map +1 -0
- package/es/components/ui/action-list.js +56 -0
- package/es/components/ui/action-list.js.map +1 -0
- package/es/components/ui/alert-dialog.js +80 -0
- package/es/components/ui/alert-dialog.js.map +1 -0
- package/es/components/ui/animated-number.js +14 -0
- package/es/components/ui/animated-number.js.map +1 -0
- package/es/components/ui/avatar.js +52 -0
- package/es/components/ui/avatar.js.map +1 -0
- package/es/components/ui/badge-variants.js +32 -0
- package/es/components/ui/badge-variants.js.map +1 -0
- package/es/components/ui/badge.js +22 -0
- package/es/components/ui/badge.js.map +1 -0
- package/es/components/ui/banner-variants.js +34 -0
- package/es/components/ui/banner-variants.js.map +1 -0
- package/es/components/ui/banner.js +37 -0
- package/es/components/ui/banner.js.map +1 -0
- package/es/components/ui/breadcrumb.js +64 -0
- package/es/components/ui/breadcrumb.js.map +1 -0
- package/es/components/ui/button-variants.js +137 -0
- package/es/components/ui/button-variants.js.map +1 -0
- package/es/components/ui/button.js +35 -0
- package/es/components/ui/button.js.map +1 -0
- package/es/components/ui/calendar.js +119 -0
- package/es/components/ui/calendar.js.map +1 -0
- package/es/components/ui/card-variants.js +13 -0
- package/es/components/ui/card-variants.js.map +1 -0
- package/es/components/ui/card.js +98 -0
- package/es/components/ui/card.js.map +1 -0
- package/es/components/ui/chart.js +188 -0
- package/es/components/ui/chart.js.map +1 -0
- package/es/components/ui/checkbox.js +21 -0
- package/es/components/ui/checkbox.js.map +1 -0
- package/es/components/ui/code-editor-view.js +150 -0
- package/es/components/ui/code-editor-view.js.map +1 -0
- package/es/components/ui/code-editor.js +18 -0
- package/es/components/ui/code-editor.js.map +1 -0
- package/es/components/ui/combobox.js +37 -0
- package/es/components/ui/combobox.js.map +1 -0
- package/es/components/ui/command.js +91 -0
- package/es/components/ui/command.js.map +1 -0
- package/es/components/ui/context-menu.js +82 -0
- package/es/components/ui/context-menu.js.map +1 -0
- package/es/components/ui/copy-field.js +142 -0
- package/es/components/ui/copy-field.js.map +1 -0
- package/es/components/ui/data-list.js +103 -0
- package/es/components/ui/data-list.js.map +1 -0
- package/es/components/ui/dialog.js +49 -0
- package/es/components/ui/dialog.js.map +1 -0
- package/es/components/ui/dropdown-menu.js +86 -0
- package/es/components/ui/dropdown-menu.js.map +1 -0
- package/es/components/ui/dropzone-variants.js +30 -0
- package/es/components/ui/dropzone-variants.js.map +1 -0
- package/es/components/ui/dropzone.js +55 -0
- package/es/components/ui/dropzone.js.map +1 -0
- package/es/components/ui/empty-indicator.js +42 -0
- package/es/components/ui/empty-indicator.js.map +1 -0
- package/es/components/ui/field.js +118 -0
- package/es/components/ui/field.js.map +1 -0
- package/es/components/ui/flag.js +30 -0
- package/es/components/ui/flag.js.map +1 -0
- package/es/components/ui/floating-sidebar-metrics.js +56 -0
- package/es/components/ui/floating-sidebar-metrics.js.map +1 -0
- package/es/components/ui/floating-sidebar.js +522 -0
- package/es/components/ui/floating-sidebar.js.map +1 -0
- package/es/components/ui/form-context.js +25 -0
- package/es/components/ui/form-context.js.map +1 -0
- package/es/components/ui/form.js +75 -0
- package/es/components/ui/form.js.map +1 -0
- package/es/components/ui/hover-card.js +20 -0
- package/es/components/ui/hover-card.js.map +1 -0
- package/es/components/ui/icon.js +2 -0
- package/es/components/ui/image-overlay-button.js +14 -0
- package/es/components/ui/image-overlay-button.js.map +1 -0
- package/es/components/ui/indicator-variants.js +63 -0
- package/es/components/ui/indicator-variants.js.map +1 -0
- package/es/components/ui/indicator.js +26 -0
- package/es/components/ui/indicator.js.map +1 -0
- package/es/components/ui/input-group-variants.js +25 -0
- package/es/components/ui/input-group-variants.js.map +1 -0
- package/es/components/ui/input-group.js +90 -0
- package/es/components/ui/input-group.js.map +1 -0
- package/es/components/ui/input-surface.js +51 -0
- package/es/components/ui/input-surface.js.map +1 -0
- package/es/components/ui/input.js +18 -0
- package/es/components/ui/input.js.map +1 -0
- package/es/components/ui/kbd.js +29 -0
- package/es/components/ui/kbd.js.map +1 -0
- package/es/components/ui/label.js +17 -0
- package/es/components/ui/label.js.map +1 -0
- package/es/components/ui/link.js +30 -0
- package/es/components/ui/link.js.map +1 -0
- package/es/components/ui/loading-indicator.js +50 -0
- package/es/components/ui/loading-indicator.js.map +1 -0
- package/es/components/ui/metric-value.js +39 -0
- package/es/components/ui/metric-value.js.map +1 -0
- package/es/components/ui/multi-select-combobox.js +205 -0
- package/es/components/ui/multi-select-combobox.js.map +1 -0
- package/es/components/ui/navbar.js +41 -0
- package/es/components/ui/navbar.js.map +1 -0
- package/es/components/ui/no-value-label.js +19 -0
- package/es/components/ui/no-value-label.js.map +1 -0
- package/es/components/ui/pagemenu.js +138 -0
- package/es/components/ui/pagemenu.js.map +1 -0
- package/es/components/ui/popover.js +24 -0
- package/es/components/ui/popover.js.map +1 -0
- package/es/components/ui/preview-chrome-variants.js +13 -0
- package/es/components/ui/preview-chrome-variants.js.map +1 -0
- package/es/components/ui/preview-chrome.js +27 -0
- package/es/components/ui/preview-chrome.js.map +1 -0
- package/es/components/ui/radio-group-variants.js +14 -0
- package/es/components/ui/radio-group-variants.js.map +1 -0
- package/es/components/ui/radio-group.js +33 -0
- package/es/components/ui/radio-group.js.map +1 -0
- package/es/components/ui/select-variants.js +45 -0
- package/es/components/ui/select-variants.js.map +1 -0
- package/es/components/ui/select.js +90 -0
- package/es/components/ui/select.js.map +1 -0
- package/es/components/ui/separator.js +17 -0
- package/es/components/ui/separator.js.map +1 -0
- package/es/components/ui/sheet.js +67 -0
- package/es/components/ui/sheet.js.map +1 -0
- package/es/components/ui/sidebar-context.js +12 -0
- package/es/components/ui/sidebar-context.js.map +1 -0
- package/es/components/ui/sidebar.js +384 -0
- package/es/components/ui/sidebar.js.map +1 -0
- package/es/components/ui/simple-pagination.js +68 -0
- package/es/components/ui/simple-pagination.js.map +1 -0
- package/es/components/ui/skeleton.js +77 -0
- package/es/components/ui/skeleton.js.map +1 -0
- package/es/components/ui/sonner.js +29 -0
- package/es/components/ui/sonner.js.map +1 -0
- package/es/components/ui/sortable-list.js +107 -0
- package/es/components/ui/sortable-list.js.map +1 -0
- package/es/components/ui/sticky-footer.js +29 -0
- package/es/components/ui/sticky-footer.js.map +1 -0
- package/es/components/ui/switch.js +34 -0
- package/es/components/ui/switch.js.map +1 -0
- package/es/components/ui/table.js +81 -0
- package/es/components/ui/table.js.map +1 -0
- package/es/components/ui/tabs-variants.js +19 -0
- package/es/components/ui/tabs-variants.js.map +1 -0
- package/es/components/ui/tabs.js +157 -0
- package/es/components/ui/tabs.js.map +1 -0
- package/es/components/ui/textarea.js +17 -0
- package/es/components/ui/textarea.js.map +1 -0
- package/es/components/ui/time-picker.js +33 -0
- package/es/components/ui/time-picker.js.map +1 -0
- package/es/components/ui/toggle-group.js +52 -0
- package/es/components/ui/toggle-group.js.map +1 -0
- package/es/components/ui/toggle-variants.js +34 -0
- package/es/components/ui/toggle-variants.js.map +1 -0
- package/es/components/ui/toggle.js +29 -0
- package/es/components/ui/toggle.js.map +1 -0
- package/es/components/ui/token-field.js +14 -0
- package/es/components/ui/token-field.js.map +1 -0
- package/es/components/ui/tooltip.js +116 -0
- package/es/components/ui/tooltip.js.map +1 -0
- package/es/components/ui/trend-badge.js +77 -0
- package/es/components/ui/trend-badge.js.map +1 -0
- package/es/components.js +79 -0
- package/es/hooks/use-global-dirty-state.js +21 -0
- package/es/hooks/use-global-dirty-state.js.map +1 -0
- package/es/hooks/use-mobile.js +23 -0
- package/es/hooks/use-mobile.js.map +1 -0
- package/es/hooks/use-simple-pagination.js +45 -0
- package/es/hooks/use-simple-pagination.js.map +1 -0
- package/es/icon-BJcGsQ4b.js +185 -0
- package/es/icon-BJcGsQ4b.js.map +1 -0
- package/es/images-CUcakpOD.js +124 -0
- package/es/images-CUcakpOD.js.map +1 -0
- package/es/index.js +113 -0
- package/es/lib/ds-utils.js +214 -0
- package/es/lib/ds-utils.js.map +1 -0
- package/es/lib/overlay-escape.js +13 -0
- package/es/lib/overlay-escape.js.map +1 -0
- package/es/lib/utils.js +2 -0
- package/es/page-templates.js +5 -0
- package/es/patterns.js +19 -0
- package/es/primitives.js +9 -0
- package/es/providers/global-dirty-state-provider.js +25 -0
- package/es/providers/global-dirty-state-provider.js.map +1 -0
- package/es/providers/header-tooltip-provider.js +24 -0
- package/es/providers/header-tooltip-provider.js.map +1 -0
- package/es/providers/shade-context.js +19 -0
- package/es/providers/shade-context.js.map +1 -0
- package/es/providers/shade-provider.js +64 -0
- package/es/providers/shade-provider.js.map +1 -0
- package/es/shade-app.js +28 -0
- package/es/shade-app.js.map +1 -0
- package/es/shade-scope.js +20 -0
- package/es/shade-scope.js.map +1 -0
- package/es/tokens.js +370 -0
- package/es/tokens.js.map +1 -0
- package/es/utils.js +7 -0
- package/package.json +150 -3
- package/preflight.css +422 -0
- package/styles-published.css +2 -0
- package/styles.css +299 -0
- package/tailwind.theme.css +472 -0
- package/theme-variables.css +287 -0
- package/tokens.css +3 -0
- package/types/app.d.ts +6 -0
- package/types/app.d.ts.map +1 -0
- package/types/assets/images/index.d.ts +10 -0
- package/types/assets/images/index.d.ts.map +1 -0
- package/types/components/layout/error-page.d.ts +10 -0
- package/types/components/layout/error-page.d.ts.map +1 -0
- package/types/components/layout/heading.d.ts +29 -0
- package/types/components/layout/heading.d.ts.map +1 -0
- package/types/components/page-templates/detail-page.d.ts +32 -0
- package/types/components/page-templates/detail-page.d.ts.map +1 -0
- package/types/components/page-templates/large-page-title.d.ts +43 -0
- package/types/components/page-templates/large-page-title.d.ts.map +1 -0
- package/types/components/page-templates/list-page.d.ts +44 -0
- package/types/components/page-templates/list-page.d.ts.map +1 -0
- package/types/components/page-templates/modal-page.d.ts +13 -0
- package/types/components/page-templates/modal-page.d.ts.map +1 -0
- package/types/components/patterns/color-picker.d.ts +48 -0
- package/types/components/patterns/color-picker.d.ts.map +1 -0
- package/types/components/patterns/dirty-confirm-dialog.d.ts +16 -0
- package/types/components/patterns/dirty-confirm-dialog.d.ts.map +1 -0
- package/types/components/patterns/filter-bar-context.d.ts +4 -0
- package/types/components/patterns/filter-bar-context.d.ts.map +1 -0
- package/types/components/patterns/filter-bar.d.ts +27 -0
- package/types/components/patterns/filter-bar.d.ts.map +1 -0
- package/types/components/patterns/filters-helpers.d.ts +7 -0
- package/types/components/patterns/filters-helpers.d.ts.map +1 -0
- package/types/components/patterns/filters.d.ts +262 -0
- package/types/components/patterns/filters.d.ts.map +1 -0
- package/types/components/patterns/gh-chart.d.ts +44 -0
- package/types/components/patterns/gh-chart.d.ts.map +1 -0
- package/types/components/patterns/image-upload-variants.d.ts +5 -0
- package/types/components/patterns/image-upload-variants.d.ts.map +1 -0
- package/types/components/patterns/image-upload.d.ts +15 -0
- package/types/components/patterns/image-upload.d.ts.map +1 -0
- package/types/components/patterns/kpi-card.d.ts +12 -0
- package/types/components/patterns/kpi-card.d.ts.map +1 -0
- package/types/components/patterns/kpi-tabs.d.ts +26 -0
- package/types/components/patterns/kpi-tabs.d.ts.map +1 -0
- package/types/components/patterns/page-header-large-title.d.ts +14 -0
- package/types/components/patterns/page-header-large-title.d.ts.map +1 -0
- package/types/components/patterns/page-header.d.ts +99 -0
- package/types/components/patterns/page-header.d.ts.map +1 -0
- package/types/components/patterns/setting-group-variants.d.ts +6 -0
- package/types/components/patterns/setting-group-variants.d.ts.map +1 -0
- package/types/components/patterns/setting-group.d.ts +22 -0
- package/types/components/patterns/setting-group.d.ts.map +1 -0
- package/types/components/patterns/settings-modal-variants.d.ts +8 -0
- package/types/components/patterns/settings-modal-variants.d.ts.map +1 -0
- package/types/components/patterns/settings-modal.d.ts +50 -0
- package/types/components/patterns/settings-modal.d.ts.map +1 -0
- package/types/components/patterns/share-modal.d.ts +56 -0
- package/types/components/patterns/share-modal.d.ts.map +1 -0
- package/types/components/patterns/use-dirty-confirmation.d.ts +3 -0
- package/types/components/patterns/use-dirty-confirmation.d.ts.map +1 -0
- package/types/components/patterns/view-bar.d.ts +13 -0
- package/types/components/patterns/view-bar.d.ts.map +1 -0
- package/types/components/primitives/box.d.ts +12 -0
- package/types/components/primitives/box.d.ts.map +1 -0
- package/types/components/primitives/container.d.ts +11 -0
- package/types/components/primitives/container.d.ts.map +1 -0
- package/types/components/primitives/grid.d.ts +12 -0
- package/types/components/primitives/grid.d.ts.map +1 -0
- package/types/components/primitives/index.d.ts +10 -0
- package/types/components/primitives/index.d.ts.map +1 -0
- package/types/components/primitives/inline.d.ts +13 -0
- package/types/components/primitives/inline.d.ts.map +1 -0
- package/types/components/primitives/stack.d.ts +10 -0
- package/types/components/primitives/stack.d.ts.map +1 -0
- package/types/components/primitives/text.d.ts +18 -0
- package/types/components/primitives/text.d.ts.map +1 -0
- package/types/components/primitives/types.d.ts +10 -0
- package/types/components/primitives/types.d.ts.map +1 -0
- package/types/components/ui/accordion.d.ts +8 -0
- package/types/components/ui/accordion.d.ts.map +1 -0
- package/types/components/ui/action-list.d.ts +21 -0
- package/types/components/ui/action-list.d.ts.map +1 -0
- package/types/components/ui/alert-dialog.d.ts +24 -0
- package/types/components/ui/alert-dialog.d.ts.map +1 -0
- package/types/components/ui/animated-number.d.ts +6 -0
- package/types/components/ui/animated-number.d.ts.map +1 -0
- package/types/components/ui/avatar.d.ts +17 -0
- package/types/components/ui/avatar.d.ts.map +1 -0
- package/types/components/ui/badge-variants.d.ts +7 -0
- package/types/components/ui/badge-variants.d.ts.map +1 -0
- package/types/components/ui/badge.d.ts +9 -0
- package/types/components/ui/badge.d.ts.map +1 -0
- package/types/components/ui/banner-variants.d.ts +6 -0
- package/types/components/ui/banner-variants.d.ts.map +1 -0
- package/types/components/ui/banner.d.ts +24 -0
- package/types/components/ui/banner.d.ts.map +1 -0
- package/types/components/ui/breadcrumb.d.ts +20 -0
- package/types/components/ui/breadcrumb.d.ts.map +1 -0
- package/types/components/ui/button-variants.d.ts +8 -0
- package/types/components/ui/button-variants.d.ts.map +1 -0
- package/types/components/ui/button.d.ts +9 -0
- package/types/components/ui/button.d.ts.map +1 -0
- package/types/components/ui/calendar.d.ts +15 -0
- package/types/components/ui/calendar.d.ts.map +1 -0
- package/types/components/ui/card-variants.d.ts +5 -0
- package/types/components/ui/card-variants.d.ts.map +1 -0
- package/types/components/ui/card.d.ts +16 -0
- package/types/components/ui/card.d.ts.map +1 -0
- package/types/components/ui/chart.d.ts +90 -0
- package/types/components/ui/chart.d.ts.map +1 -0
- package/types/components/ui/checkbox.d.ts +5 -0
- package/types/components/ui/checkbox.d.ts.map +1 -0
- package/types/components/ui/code-editor-view.d.ts +17 -0
- package/types/components/ui/code-editor-view.d.ts.map +1 -0
- package/types/components/ui/code-editor.d.ts +7 -0
- package/types/components/ui/code-editor.d.ts.map +1 -0
- package/types/components/ui/combobox.d.ts +10 -0
- package/types/components/ui/combobox.d.ts.map +1 -0
- package/types/components/ui/command.d.ts +22 -0
- package/types/components/ui/command.d.ts.map +1 -0
- package/types/components/ui/context-menu.d.ts +29 -0
- package/types/components/ui/context-menu.d.ts.map +1 -0
- package/types/components/ui/copy-field.d.ts +19 -0
- package/types/components/ui/copy-field.d.ts.map +1 -0
- package/types/components/ui/data-list.d.ts +53 -0
- package/types/components/ui/data-list.d.ts.map +1 -0
- package/types/components/ui/dialog.d.ts +20 -0
- package/types/components/ui/dialog.d.ts.map +1 -0
- package/types/components/ui/dropdown-menu.d.ts +28 -0
- package/types/components/ui/dropdown-menu.d.ts.map +1 -0
- package/types/components/ui/dropzone-variants.d.ts +7 -0
- package/types/components/ui/dropzone-variants.d.ts.map +1 -0
- package/types/components/ui/dropzone.d.ts +28 -0
- package/types/components/ui/dropzone.d.ts.map +1 -0
- package/types/components/ui/empty-indicator.d.ts +16 -0
- package/types/components/ui/empty-indicator.d.ts.map +1 -0
- package/types/components/ui/field.d.ts +25 -0
- package/types/components/ui/field.d.ts.map +1 -0
- package/types/components/ui/flag.d.ts +11 -0
- package/types/components/ui/flag.d.ts.map +1 -0
- package/types/components/ui/floating-sidebar-metrics.d.ts +54 -0
- package/types/components/ui/floating-sidebar-metrics.d.ts.map +1 -0
- package/types/components/ui/floating-sidebar.d.ts +72 -0
- package/types/components/ui/floating-sidebar.d.ts.map +1 -0
- package/types/components/ui/form-context.d.ts +24 -0
- package/types/components/ui/form-context.d.ts.map +1 -0
- package/types/components/ui/form.d.ts +14 -0
- package/types/components/ui/form.d.ts.map +1 -0
- package/types/components/ui/hover-card.d.ts +7 -0
- package/types/components/ui/hover-card.d.ts.map +1 -0
- package/types/components/ui/icon.d.ts +13 -0
- package/types/components/ui/icon.d.ts.map +1 -0
- package/types/components/ui/image-overlay-button.d.ts +7 -0
- package/types/components/ui/image-overlay-button.d.ts.map +1 -0
- package/types/components/ui/indicator-variants.d.ts +11 -0
- package/types/components/ui/indicator-variants.d.ts.map +1 -0
- package/types/components/ui/indicator.d.ts +9 -0
- package/types/components/ui/indicator.d.ts.map +1 -0
- package/types/components/ui/input-group-variants.d.ts +6 -0
- package/types/components/ui/input-group-variants.d.ts.map +1 -0
- package/types/components/ui/input-group.d.ts +18 -0
- package/types/components/ui/input-group.d.ts.map +1 -0
- package/types/components/ui/input-surface.d.ts +43 -0
- package/types/components/ui/input-surface.d.ts.map +1 -0
- package/types/components/ui/input.d.ts +4 -0
- package/types/components/ui/input.d.ts.map +1 -0
- package/types/components/ui/kbd.d.ts +10 -0
- package/types/components/ui/kbd.d.ts.map +1 -0
- package/types/components/ui/label.d.ts +6 -0
- package/types/components/ui/label.d.ts.map +1 -0
- package/types/components/ui/link.d.ts +15 -0
- package/types/components/ui/link.d.ts.map +1 -0
- package/types/components/ui/loading-indicator.d.ts +12 -0
- package/types/components/ui/loading-indicator.d.ts.map +1 -0
- package/types/components/ui/metric-value.d.ts +16 -0
- package/types/components/ui/metric-value.d.ts.map +1 -0
- package/types/components/ui/multi-select-combobox.d.ts +80 -0
- package/types/components/ui/multi-select-combobox.d.ts.map +1 -0
- package/types/components/ui/navbar.d.ts +18 -0
- package/types/components/ui/navbar.d.ts.map +1 -0
- package/types/components/ui/no-value-label.d.ts +14 -0
- package/types/components/ui/no-value-label.d.ts.map +1 -0
- package/types/components/ui/pagemenu.d.ts +18 -0
- package/types/components/ui/pagemenu.d.ts.map +1 -0
- package/types/components/ui/popover.d.ts +9 -0
- package/types/components/ui/popover.d.ts.map +1 -0
- package/types/components/ui/preview-chrome-variants.d.ts +5 -0
- package/types/components/ui/preview-chrome-variants.d.ts.map +1 -0
- package/types/components/ui/preview-chrome.d.ts +8 -0
- package/types/components/ui/preview-chrome.d.ts.map +1 -0
- package/types/components/ui/radio-group-variants.d.ts +5 -0
- package/types/components/ui/radio-group-variants.d.ts.map +1 -0
- package/types/components/ui/radio-group.d.ts +9 -0
- package/types/components/ui/radio-group.d.ts.map +1 -0
- package/types/components/ui/select-variants.d.ts +7 -0
- package/types/components/ui/select-variants.d.ts.map +1 -0
- package/types/components/ui/select.d.ts +20 -0
- package/types/components/ui/select.d.ts.map +1 -0
- package/types/components/ui/separator.d.ts +5 -0
- package/types/components/ui/separator.d.ts.map +1 -0
- package/types/components/ui/sheet.d.ts +26 -0
- package/types/components/ui/sheet.d.ts.map +1 -0
- package/types/components/ui/sidebar-context.d.ts +15 -0
- package/types/components/ui/sidebar-context.d.ts.map +1 -0
- package/types/components/ui/sidebar.d.ts +56 -0
- package/types/components/ui/sidebar.d.ts.map +1 -0
- package/types/components/ui/simple-pagination.d.ts +16 -0
- package/types/components/ui/simple-pagination.d.ts.map +1 -0
- package/types/components/ui/skeleton.d.ts +15 -0
- package/types/components/ui/skeleton.d.ts.map +1 -0
- package/types/components/ui/sonner.d.ts +5 -0
- package/types/components/ui/sonner.d.ts.map +1 -0
- package/types/components/ui/sortable-list.d.ts +39 -0
- package/types/components/ui/sortable-list.d.ts.map +1 -0
- package/types/components/ui/sticky-footer.d.ts +10 -0
- package/types/components/ui/sticky-footer.d.ts.map +1 -0
- package/types/components/ui/switch.d.ts +11 -0
- package/types/components/ui/switch.d.ts.map +1 -0
- package/types/components/ui/table.d.ts +21 -0
- package/types/components/ui/table.d.ts.map +1 -0
- package/types/components/ui/tabs-variants.d.ts +5 -0
- package/types/components/ui/tabs-variants.d.ts.map +1 -0
- package/types/components/ui/tabs.d.ts +21 -0
- package/types/components/ui/tabs.d.ts.map +1 -0
- package/types/components/ui/textarea.d.ts +4 -0
- package/types/components/ui/textarea.d.ts.map +1 -0
- package/types/components/ui/time-picker.d.ts +8 -0
- package/types/components/ui/time-picker.d.ts.map +1 -0
- package/types/components/ui/toggle-group.d.ts +17 -0
- package/types/components/ui/toggle-group.d.ts.map +1 -0
- package/types/components/ui/toggle-variants.d.ts +8 -0
- package/types/components/ui/toggle-variants.d.ts.map +1 -0
- package/types/components/ui/toggle.d.ts +11 -0
- package/types/components/ui/toggle.d.ts.map +1 -0
- package/types/components/ui/token-field.d.ts +8 -0
- package/types/components/ui/token-field.d.ts.map +1 -0
- package/types/components/ui/tooltip.d.ts +19 -0
- package/types/components/ui/tooltip.d.ts.map +1 -0
- package/types/components/ui/trend-badge.d.ts +13 -0
- package/types/components/ui/trend-badge.d.ts.map +1 -0
- package/types/components.d.ts +81 -0
- package/types/components.d.ts.map +1 -0
- package/types/hooks/use-global-dirty-state.d.ts +12 -0
- package/types/hooks/use-global-dirty-state.d.ts.map +1 -0
- package/types/hooks/use-mobile.d.ts +2 -0
- package/types/hooks/use-mobile.d.ts.map +1 -0
- package/types/hooks/use-simple-pagination.d.ts +45 -0
- package/types/hooks/use-simple-pagination.d.ts.map +1 -0
- package/types/index.d.ts +6 -0
- package/types/index.d.ts.map +1 -0
- package/types/lib/ds-utils.d.ts +36 -0
- package/types/lib/ds-utils.d.ts.map +1 -0
- package/types/lib/overlay-escape.d.ts +8 -0
- package/types/lib/overlay-escape.d.ts.map +1 -0
- package/types/lib/utils.d.ts +2 -0
- package/types/lib/utils.d.ts.map +1 -0
- package/types/page-templates.d.ts +6 -0
- package/types/page-templates.d.ts.map +1 -0
- package/types/patterns.d.ts +23 -0
- package/types/patterns.d.ts.map +1 -0
- package/types/primitives.d.ts +4 -0
- package/types/primitives.d.ts.map +1 -0
- package/types/providers/global-dirty-state-provider.d.ts +5 -0
- package/types/providers/global-dirty-state-provider.d.ts.map +1 -0
- package/types/providers/header-tooltip-provider.d.ts +4 -0
- package/types/providers/header-tooltip-provider.d.ts.map +1 -0
- package/types/providers/shade-context.d.ts +13 -0
- package/types/providers/shade-context.d.ts.map +1 -0
- package/types/providers/shade-provider.d.ts +11 -0
- package/types/providers/shade-provider.d.ts.map +1 -0
- package/types/shade-app.d.ts +17 -0
- package/types/shade-app.d.ts.map +1 -0
- package/types/shade-scope.d.ts +4 -0
- package/types/shade-scope.d.ts.map +1 -0
- package/types/tokens.d.ts +4 -0
- package/types/tokens.d.ts.map +1 -0
- package/types/utils.d.ts +7 -0
- package/types/utils.d.ts.map +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"share-modal.js","names":[],"sources":["../../../src/components/patterns/share-modal.tsx"],"sourcesContent":["import { useShade } from '@/providers/shade-context';\nimport * as DialogPrimitive from '@radix-ui/react-dialog';\nimport { Check, Copy, Link, X } from 'lucide-react';\nimport React, { useState } from 'react';\nimport { Button, type ButtonProps } from '@/components/ui/button';\nimport {\n Dialog,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogTitle,\n DialogTrigger,\n} from '@/components/ui/dialog';\nimport { cn } from '@/lib/utils';\n\ntype ShareService = 'x' | 'threads' | 'facebook' | 'linkedin' | 'bluesky';\n\nexport type ShareModalSocialLink = {\n href: string;\n id?: string;\n label: string;\n service: ShareService;\n title?: string;\n};\n\nexport type ShareModalPreviewProps = {\n href: string;\n} & React.AnchorHTMLAttributes<HTMLAnchorElement>;\n\nasync function copyTextToClipboard(text: string) {\n if (navigator.clipboard?.writeText) {\n try {\n await navigator.clipboard.writeText(text);\n return;\n } catch {\n // Fall back for browser contexts where the async clipboard API is blocked.\n }\n }\n\n const textarea = document.createElement('textarea');\n textarea.value = text;\n textarea.setAttribute('readonly', '');\n textarea.style.position = 'fixed';\n textarea.style.left = '-9999px';\n textarea.style.top = '0';\n document.body.appendChild(textarea);\n textarea.select();\n document.execCommand('copy');\n document.body.removeChild(textarea);\n}\n\nfunction Root(props: React.ComponentPropsWithoutRef<typeof DialogPrimitive.Root>) {\n return <Dialog {...props} />;\n}\n\nconst Trigger = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Trigger>\n>(({ asChild = true, className, ...props }, ref) => (\n <DialogTrigger\n ref={ref}\n asChild={asChild}\n className={cn('cursor-pointer', className)}\n {...props}\n />\n));\nTrigger.displayName = 'ShareModal.Trigger';\n\nconst Content = React.forwardRef<\n React.ElementRef<typeof DialogContent>,\n React.ComponentPropsWithoutRef<typeof DialogContent>\n>(({ className, ...props }, ref) => (\n <DialogContent\n ref={ref}\n className={cn('max-h-[calc(100vh-16vmin)] max-w-[540px] overflow-y-auto p-8', className)}\n {...props}\n />\n));\nContent.displayName = 'ShareModal.Content';\n\nfunction Header({ className, ...props }: React.ComponentPropsWithoutRef<typeof DialogHeader>) {\n return <DialogHeader className={className} {...props} />;\n}\n\nfunction Title({ className, ...props }: React.ComponentPropsWithoutRef<typeof DialogTitle>) {\n return <DialogTitle className={className} {...props} />;\n}\n\nfunction Description({\n className,\n ...props\n}: React.ComponentPropsWithoutRef<typeof DialogDescription>) {\n return <DialogDescription className={className} {...props} />;\n}\n\ntype CloseButtonProps = ButtonProps;\n\nconst CloseButton = React.forwardRef<HTMLButtonElement, CloseButtonProps>(\n ({ children, className, size = 'lg', title = 'Close', variant = 'link', ...props }, ref) => (\n <Button\n ref={ref}\n className={cn(\n 'aspect-square cursor-pointer p-2 text-muted-foreground hover:text-foreground [&_svg]:size-6!',\n className,\n )}\n size={size}\n title={title}\n variant={variant}\n {...props}\n >\n {children || (\n <>\n <X size={24} strokeWidth={1} />\n <span className=\"sr-only\">Close</span>\n </>\n )}\n </Button>\n ),\n);\nCloseButton.displayName = 'ShareModal.CloseButton';\n\nconst Preview = React.forwardRef<HTMLAnchorElement, ShareModalPreviewProps>(\n ({ className, href, rel = 'noopener noreferrer', target = '_blank', ...props }, ref) => {\n const { isAdmin7 } = useShade();\n return (\n <a\n ref={ref}\n className={cn(\n 'flex flex-col items-stretch overflow-hidden border transition-all hover:border-muted-foreground/40',\n isAdmin7 && 'rounded-xl',\n className,\n )}\n href={href}\n rel={rel}\n target={target}\n {...props}\n />\n );\n },\n);\nPreview.displayName = 'ShareModal.Preview';\n\nfunction SocialIcon({ service }: { service: ShareService }) {\n if (service === 'threads') {\n return (\n <svg fill=\"none\" viewBox=\"0 0 18 18\">\n <g clipPath=\"url(#social-threads_svg__clip0_351_18008)\">\n <path\n d=\"M13.033 8.38a5.924 5.924 0 00-.223-.102c-.13-2.418-1.452-3.802-3.67-3.816h-.03c-1.327 0-2.43.566-3.11 1.597l1.22.837c.507-.77 1.304-.934 1.89-.934h.02c.73.004 1.282.217 1.639.63.26.302.433.72.519 1.245a9.334 9.334 0 00-2.097-.101c-2.109.121-3.465 1.351-3.374 3.06.047.868.478 1.614 1.216 2.1.624.413 1.428.614 2.263.568 1.103-.06 1.969-.48 2.572-1.25.459-.585.749-1.342.877-2.296.526.317.915.735 1.13 1.236.366.854.387 2.255-.756 3.398-1.003 1.002-2.207 1.435-4.028 1.448-2.02-.015-3.547-.663-4.54-1.925-.93-1.182-1.41-2.89-1.428-5.075.018-2.185.498-3.893 1.428-5.075.993-1.262 2.52-1.91 4.54-1.925 2.034.015 3.588.666 4.62 1.934.505.622.886 1.405 1.137 2.317l1.43-.382c-.305-1.122-.784-2.09-1.436-2.892C13.52 1.35 11.587.517 9.096.5h-.01C6.6.517 4.689 1.354 3.404 2.986 2.262 4.44 1.672 6.46 1.652 8.994v.012c.02 2.534.61 4.555 1.752 6.008C4.69 16.646 6.6 17.483 9.086 17.5h.01c2.21-.015 3.768-.594 5.051-1.876 1.68-1.678 1.629-3.78 1.075-5.07-.397-.927-1.154-1.678-2.189-2.175zm-3.816 3.587c-.924.052-1.884-.363-1.932-1.252-.035-.659.47-1.394 1.99-1.482a8.9 8.9 0 01.512-.014c.552 0 1.068.053 1.538.156-.175 2.187-1.203 2.542-2.108 2.592z\"\n fill=\"currentColor\"\n ></path>\n </g>\n <defs>\n <clipPath id=\"social-threads_svg__clip0_351_18008\">\n <path d=\"M0 0h17v17H0z\" fill=\"#fff\" transform=\"translate(.5 .5)\"></path>\n </clipPath>\n </defs>\n </svg>\n );\n }\n\n if (service === 'facebook') {\n return (\n <svg fill=\"none\" viewBox=\"0 0 40 40\">\n <path\n d=\"M20 40.004c11.046 0 20-8.955 20-20 0-11.046-8.954-20-20-20s-20 8.954-20 20c0 11.045 8.954 20 20 20z\"\n fill=\"#1977f3\"\n ></path>\n <path\n d=\"M27.785 25.785l.886-5.782h-5.546V16.25c0-1.58.773-3.125 3.26-3.125h2.522V8.204s-2.29-.39-4.477-.39c-4.568 0-7.555 2.767-7.555 7.781v4.408h-5.08v5.782h5.08v13.976a20.08 20.08 0 003.125.242c1.063 0 2.107-.085 3.125-.242V25.785h4.66z\"\n fill=\"#fff\"\n ></path>\n </svg>\n );\n }\n\n if (service === 'linkedin') {\n return (\n <svg fill=\"none\" viewBox=\"0 0 16 16\">\n <g clipPath=\"url(#social-linkedin_svg__clip0_537_833)\">\n <path\n clipRule=\"evenodd\"\n d=\"M1.778 16h12.444c.982 0 1.778-.796 1.778-1.778V1.778C16 .796 15.204 0 14.222 0H1.778C.796 0 0 .796 0 1.778v12.444C0 15.204.796 16 1.778 16z\"\n fill=\"#007ebb\"\n fillRule=\"evenodd\"\n ></path>\n <path\n clipRule=\"evenodd\"\n d=\"M13.778 13.778h-2.374V9.734c0-1.109-.421-1.729-1.299-1.729-.955 0-1.453.645-1.453 1.729v4.044H6.363V6.074h2.289v1.038s.688-1.273 2.322-1.273c1.634 0 2.804.997 2.804 3.061v4.878zM3.634 5.065c-.78 0-1.411-.636-1.411-1.421s.631-1.422 1.41-1.422c.78 0 1.411.637 1.411 1.422 0 .785-.631 1.421-1.41 1.421zm-1.182 8.713h2.386V6.074H2.452v7.704z\"\n fill=\"#fff\"\n fillRule=\"evenodd\"\n ></path>\n </g>\n <defs>\n <clipPath id=\"social-linkedin_svg__clip0_537_833\">\n <path d=\"M0 0h16v16H0z\" fill=\"#fff\"></path>\n </clipPath>\n </defs>\n </svg>\n );\n }\n\n if (service === 'bluesky') {\n return (\n <svg fill=\"none\" viewBox=\"0 -33.5 568 568\">\n <path\n d=\"M123.121 33.664C188.241 82.553 258.281 181.681 284 234.873c25.719-53.192 95.759-152.32 160.879-201.209C491.866-1.612 568-28.906 568 57.946c0 17.346-9.945 145.713-15.778 166.555-20.275 72.453-94.155 90.933-159.875 79.748 114.875 19.551 144.097 84.311 80.986 149.071-119.86 122.992-172.272-30.859-185.702-70.281-2.462-7.227-3.614-10.608-3.631-7.733-.017-2.875-1.169.506-3.631 7.733-13.43 39.422-65.842 193.273-185.702 70.281-63.111-64.76-33.889-129.52 80.986-149.071-65.72 11.185-139.6-7.295-159.875-79.748C9.945 203.659 0 75.292 0 57.946 0-28.906 76.135-1.612 123.121 33.664z\"\n fill=\"#0085ff\"\n ></path>\n </svg>\n );\n }\n\n return (\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path\n d=\"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z\"\n fill=\"currentColor\"\n ></path>\n </svg>\n );\n}\n\ninterface SocialLinksProps extends React.HTMLAttributes<HTMLDivElement> {\n layout?: 'footer' | 'stacked';\n links: ShareModalSocialLink[];\n shape?: ButtonProps['shape'];\n variant?: ButtonProps['variant'];\n}\n\nfunction SocialLinks({\n className,\n layout = 'footer',\n links,\n shape,\n variant,\n ...props\n}: SocialLinksProps) {\n const { isAdmin7 } = useShade();\n if (layout === 'stacked') {\n return (\n <div className={cn('flex gap-2', className)} {...props}>\n {links.map((link) => (\n <Button\n key={link.id ?? link.href}\n className=\"flex-1\"\n id={link.id}\n shape={shape}\n variant={variant ?? 'outline'}\n asChild\n >\n <a\n aria-label={link.label}\n href={link.href}\n rel=\"noreferrer\"\n target=\"_blank\"\n title={link.title || link.label}\n >\n <SocialIcon service={link.service} />\n <span className=\"sr-only\">{link.label}</span>\n </a>\n </Button>\n ))}\n </div>\n );\n }\n\n return (\n <div className={cn('flex items-center gap-2', className)} {...props}>\n {links.map((link) =>\n isAdmin7 || shape || variant ? (\n <Button\n key={link.id ?? link.href}\n className=\"w-12 flex-none px-3\"\n shape={shape}\n variant={variant ?? 'ghost'}\n asChild\n >\n <a\n aria-label={link.label}\n href={link.href}\n id={link.id}\n rel=\"noopener noreferrer\"\n target=\"_blank\"\n title={link.title || link.label}\n >\n <SocialIcon service={link.service} />\n </a>\n </Button>\n ) : (\n <a\n key={link.id ?? link.href}\n aria-label={link.label}\n className=\"flex h-(--control-height) flex-1 items-center justify-center rounded-xs bg-muted px-3 hover:bg-muted-foreground/20 sm:w-14 sm:flex-none [&_svg]:h-4\"\n href={link.href}\n rel=\"noopener noreferrer\"\n target=\"_blank\"\n title={link.title || link.label}\n >\n <SocialIcon service={link.service} />\n </a>\n ),\n )}\n </div>\n );\n}\n\ninterface CopyButtonProps extends ButtonProps {\n copyURL: string;\n icon?: 'copy' | 'link';\n label?: string;\n successLabel?: string;\n}\n\nfunction CopyButton({\n children,\n copyURL,\n disabled,\n icon = 'link',\n label = 'Copy link',\n onClick,\n successLabel = 'Copied!',\n ...props\n}: CopyButtonProps) {\n const [isCopied, setIsCopied] = useState(false);\n\n const handleCopyLink = async (event: React.MouseEvent<HTMLButtonElement>) => {\n onClick?.(event);\n\n if (event.defaultPrevented) {\n return;\n }\n\n await copyTextToClipboard(copyURL);\n setIsCopied(true);\n setTimeout(() => setIsCopied(false), 2000);\n };\n\n const Icon = icon === 'copy' ? Copy : Link;\n\n return (\n <Button\n disabled={disabled || !copyURL}\n type=\"button\"\n onClick={(event) => {\n void handleCopyLink(event);\n }}\n {...props}\n >\n {children || (\n <>\n {isCopied ? <Check /> : <Icon />}\n {isCopied ? successLabel : label}\n </>\n )}\n </Button>\n );\n}\n\ninterface CopyURLBoxProps extends React.HTMLAttributes<HTMLDivElement> {\n copyURL: string;\n}\n\nfunction CopyURLBox({ children, className, copyURL, ...props }: CopyURLBoxProps) {\n return (\n <div\n className={cn('flex items-center gap-2 rounded-md border bg-muted p-2', className)}\n {...props}\n >\n <span className=\"min-w-0 flex-1 truncate px-2 text-sm\">{copyURL}</span>\n {children}\n </div>\n );\n}\n\nfunction Footer({ className, ...props }: React.ComponentPropsWithoutRef<typeof DialogFooter>) {\n const { isAdmin7 } = useShade();\n return (\n <DialogFooter\n className={cn('justify-between gap-6', isAdmin7 && 'gap-8 sm:gap-8', className)}\n {...props}\n />\n );\n}\n\nconst ShareModal = {\n CloseButton,\n Content,\n CopyButton,\n CopyURLBox,\n Description,\n Footer,\n Header,\n Preview,\n Root,\n SocialLinks,\n Title,\n Trigger,\n};\n\nexport default ShareModal;\n"],"mappings":"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"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as React$1 from "react";
|
|
2
|
+
//#region src/components/patterns/use-dirty-confirmation.ts
|
|
3
|
+
function useDirtyConfirmation() {
|
|
4
|
+
const pendingAction = React$1.useRef(null);
|
|
5
|
+
const [open, setOpen] = React$1.useState(false);
|
|
6
|
+
const confirm = React$1.useCallback((dirty, action) => {
|
|
7
|
+
if (!dirty) {
|
|
8
|
+
action();
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
11
|
+
pendingAction.current = action;
|
|
12
|
+
setOpen(true);
|
|
13
|
+
}, []);
|
|
14
|
+
const handleOpenChange = React$1.useCallback((nextOpen) => {
|
|
15
|
+
setOpen(nextOpen);
|
|
16
|
+
if (!nextOpen) pendingAction.current = null;
|
|
17
|
+
}, []);
|
|
18
|
+
return {
|
|
19
|
+
confirm,
|
|
20
|
+
dialogProps: {
|
|
21
|
+
open,
|
|
22
|
+
onConfirm: React$1.useCallback(() => {
|
|
23
|
+
const action = pendingAction.current;
|
|
24
|
+
pendingAction.current = null;
|
|
25
|
+
setOpen(false);
|
|
26
|
+
action?.();
|
|
27
|
+
}, []),
|
|
28
|
+
onOpenChange: handleOpenChange
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
//#endregion
|
|
33
|
+
export { useDirtyConfirmation };
|
|
34
|
+
|
|
35
|
+
//# sourceMappingURL=use-dirty-confirmation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-dirty-confirmation.js","names":[],"sources":["../../../src/components/patterns/use-dirty-confirmation.ts"],"sourcesContent":["import * as React from 'react';\n\nimport type { DirtyConfirmDialogController } from '@/components/patterns/dirty-confirm-dialog';\n\nexport function useDirtyConfirmation(): DirtyConfirmDialogController {\n const pendingAction = React.useRef<(() => void) | null>(null);\n const [open, setOpen] = React.useState(false);\n\n const confirm = React.useCallback((dirty: boolean, action: () => void) => {\n if (!dirty) {\n action();\n return;\n }\n\n pendingAction.current = action;\n setOpen(true);\n }, []);\n\n const handleOpenChange = React.useCallback((nextOpen: boolean) => {\n setOpen(nextOpen);\n if (!nextOpen) {\n pendingAction.current = null;\n }\n }, []);\n\n const handleConfirm = React.useCallback(() => {\n const action = pendingAction.current;\n pendingAction.current = null;\n setOpen(false);\n action?.();\n }, []);\n\n return {\n confirm,\n dialogProps: {\n open,\n onConfirm: handleConfirm,\n onOpenChange: handleOpenChange,\n },\n };\n}\n"],"mappings":";;AAIA,SAAgB,uBAAqD;CACnE,MAAM,gBAAgB,QAAM,OAA4B,IAAI;CAC5D,MAAM,CAAC,MAAM,WAAW,QAAM,SAAS,KAAK;CAE5C,MAAM,UAAU,QAAM,aAAa,OAAgB,WAAuB;EACxE,IAAI,CAAC,OAAO;GACV,OAAO;GACP;EACF;EAEA,cAAc,UAAU;EACxB,QAAQ,IAAI;CACd,GAAG,CAAC,CAAC;CAEL,MAAM,mBAAmB,QAAM,aAAa,aAAsB;EAChE,QAAQ,QAAQ;EAChB,IAAI,CAAC,UACH,cAAc,UAAU;CAE5B,GAAG,CAAC,CAAC;CASL,OAAO;EACL;EACA,aAAa;GACX;GACA,WAXkB,QAAM,kBAAkB;IAC5C,MAAM,SAAS,cAAc;IAC7B,cAAc,UAAU;IACxB,QAAQ,KAAK;IACb,SAAS;GACX,GAAG,CAAC,CAMW;GACX,cAAc;EAChB;CACF;AACF"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { cn } from "../../lib/ds-utils.js";
|
|
2
|
+
import { Inline } from "../primitives/inline.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/patterns/view-bar.tsx
|
|
6
|
+
function ViewBarNav({ className, children }) {
|
|
7
|
+
return /* @__PURE__ */ jsx(Inline, {
|
|
8
|
+
align: "center",
|
|
9
|
+
className: cn("min-w-0 flex-1", className),
|
|
10
|
+
"data-slot": "view-bar-nav",
|
|
11
|
+
gap: "sm",
|
|
12
|
+
children
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
function ViewBarActions({ className, children }) {
|
|
16
|
+
return /* @__PURE__ */ jsx(Inline, {
|
|
17
|
+
align: "center",
|
|
18
|
+
className: cn("shrink-0", className),
|
|
19
|
+
"data-slot": "view-bar-actions",
|
|
20
|
+
gap: "sm",
|
|
21
|
+
children
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
var ViewBar = Object.assign(function ViewBar({ className, children }) {
|
|
25
|
+
return /* @__PURE__ */ jsx(Inline, {
|
|
26
|
+
align: "center",
|
|
27
|
+
className: cn("w-full", className),
|
|
28
|
+
"data-slot": "view-bar",
|
|
29
|
+
gap: "lg",
|
|
30
|
+
justify: "between",
|
|
31
|
+
children
|
|
32
|
+
});
|
|
33
|
+
}, {
|
|
34
|
+
Nav: ViewBarNav,
|
|
35
|
+
Actions: ViewBarActions
|
|
36
|
+
});
|
|
37
|
+
//#endregion
|
|
38
|
+
export { ViewBar, ViewBarActions, ViewBarNav };
|
|
39
|
+
|
|
40
|
+
//# sourceMappingURL=view-bar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"view-bar.js","names":[],"sources":["../../../src/components/patterns/view-bar.tsx"],"sourcesContent":["import React from 'react';\nimport { Inline } from '@/components/primitives';\nimport { cn } from '@/lib/utils';\n\ntype PropsWithChildrenAndClassName = React.PropsWithChildren & {\n className?: string;\n};\n\n// ---------------------------------------------------------------------------\n// Nav — flex-1 left side, gives PageMenu a measurable width for responsive collapse\n// ---------------------------------------------------------------------------\n\nfunction ViewBarNav({ className, children }: PropsWithChildrenAndClassName) {\n return (\n <Inline\n align=\"center\"\n className={cn('min-w-0 flex-1', className)}\n data-slot=\"view-bar-nav\"\n gap=\"sm\"\n >\n {children}\n </Inline>\n );\n}\n\n// ---------------------------------------------------------------------------\n// Actions — shrink-0 right side (date-range picker, etc.)\n// ---------------------------------------------------------------------------\n\nfunction ViewBarActions({ className, children }: PropsWithChildrenAndClassName) {\n return (\n <Inline\n align=\"center\"\n className={cn('shrink-0', className)}\n data-slot=\"view-bar-actions\"\n gap=\"sm\"\n >\n {children}\n </Inline>\n );\n}\n\n// ---------------------------------------------------------------------------\n// Root\n// ---------------------------------------------------------------------------\n\ntype ViewBarComponent = React.FC<PropsWithChildrenAndClassName> & {\n Nav: React.FC<PropsWithChildrenAndClassName>;\n Actions: React.FC<PropsWithChildrenAndClassName>;\n};\n\nconst ViewBar: ViewBarComponent = Object.assign(\n function ViewBar({ className, children }: PropsWithChildrenAndClassName) {\n return (\n <Inline\n align=\"center\"\n className={cn('w-full', className)}\n data-slot=\"view-bar\"\n gap=\"lg\"\n justify=\"between\"\n >\n {children}\n </Inline>\n );\n },\n {\n Nav: ViewBarNav,\n Actions: ViewBarActions,\n },\n);\n\nexport { ViewBar, ViewBarNav, ViewBarActions };\n"],"mappings":";;;;;AAYA,SAAS,WAAW,EAAE,WAAW,YAA2C;CAC1E,OACE,oBAAC,QAAD;EACE,OAAM;EACN,WAAW,GAAG,kBAAkB,SAAS;EACzC,aAAU;EACV,KAAI;EAEH;CACK,CAAA;AAEZ;AAMA,SAAS,eAAe,EAAE,WAAW,YAA2C;CAC9E,OACE,oBAAC,QAAD;EACE,OAAM;EACN,WAAW,GAAG,YAAY,SAAS;EACnC,aAAU;EACV,KAAI;EAEH;CACK,CAAA;AAEZ;AAWA,IAAM,UAA4B,OAAO,OACvC,SAAS,QAAQ,EAAE,WAAW,YAA2C;CACvE,OACE,oBAAC,QAAD;EACE,OAAM;EACN,WAAW,GAAG,UAAU,SAAS;EACjC,aAAU;EACV,KAAI;EACJ,SAAQ;EAEP;CACK,CAAA;AAEZ,GACA;CACE,KAAK;CACL,SAAS;AACX,CACF"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { cn } from "../../lib/ds-utils.js";
|
|
2
|
+
import { PADDING_CLASSES, PADDING_X_CLASSES, PADDING_Y_CLASSES } from "./types.js";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/primitives/box.tsx
|
|
6
|
+
var RADIUS_CLASSES = {
|
|
7
|
+
none: "rounded-none",
|
|
8
|
+
sm: "rounded-sm",
|
|
9
|
+
md: "rounded-md",
|
|
10
|
+
lg: "rounded-lg",
|
|
11
|
+
xl: "rounded-xl",
|
|
12
|
+
full: "rounded-full"
|
|
13
|
+
};
|
|
14
|
+
var Box = React.forwardRef(function Box({ className, padding, paddingX, paddingY, radius, ...props }, ref) {
|
|
15
|
+
return /* @__PURE__ */ jsx("div", {
|
|
16
|
+
ref,
|
|
17
|
+
className: cn(padding && PADDING_CLASSES[padding], paddingX && PADDING_X_CLASSES[paddingX], paddingY && PADDING_Y_CLASSES[paddingY], radius && RADIUS_CLASSES[radius], className),
|
|
18
|
+
...props
|
|
19
|
+
});
|
|
20
|
+
});
|
|
21
|
+
Box.displayName = "Box";
|
|
22
|
+
//#endregion
|
|
23
|
+
export { Box };
|
|
24
|
+
|
|
25
|
+
//# sourceMappingURL=box.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"box.js","names":[],"sources":["../../../src/components/primitives/box.tsx"],"sourcesContent":["import { cn } from '@/lib/utils';\nimport { PADDING_CLASSES, PADDING_X_CLASSES, PADDING_Y_CLASSES, SpaceStep } from './types';\nimport React from 'react';\n\ntype BoxRadius = 'none' | 'sm' | 'md' | 'lg' | 'xl' | 'full';\n\nconst RADIUS_CLASSES: Record<BoxRadius, string> = {\n none: 'rounded-none',\n sm: 'rounded-sm',\n md: 'rounded-md',\n lg: 'rounded-lg',\n xl: 'rounded-xl',\n full: 'rounded-full',\n};\n\nexport interface BoxProps extends React.HTMLAttributes<HTMLDivElement> {\n padding?: SpaceStep;\n paddingX?: SpaceStep;\n paddingY?: SpaceStep;\n radius?: BoxRadius;\n}\n\nconst Box = React.forwardRef<HTMLDivElement, BoxProps>(function Box(\n { className, padding, paddingX, paddingY, radius, ...props }: BoxProps,\n ref,\n) {\n return (\n <div\n ref={ref}\n className={cn(\n padding && PADDING_CLASSES[padding],\n paddingX && PADDING_X_CLASSES[paddingX],\n paddingY && PADDING_Y_CLASSES[paddingY],\n radius && RADIUS_CLASSES[radius],\n className,\n )}\n {...props}\n />\n );\n});\n\nBox.displayName = 'Box';\n\nexport { Box };\n"],"mappings":";;;;;AAMA,IAAM,iBAA4C;CAChD,MAAM;CACN,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,MAAM;AACR;AASA,IAAM,MAAM,MAAM,WAAqC,SAAS,IAC9D,EAAE,WAAW,SAAS,UAAU,UAAU,QAAQ,GAAG,SACrD,KACA;CACA,OACE,oBAAC,OAAD;EACO;EACL,WAAW,GACT,WAAW,gBAAgB,UAC3B,YAAY,kBAAkB,WAC9B,YAAY,kBAAkB,WAC9B,UAAU,eAAe,SACzB,SACF;EACA,GAAI;CACL,CAAA;AAEL,CAAC;AAED,IAAI,cAAc"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { cn } from "../../lib/ds-utils.js";
|
|
2
|
+
import { PADDING_X_CLASSES } from "./types.js";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/primitives/container.tsx
|
|
6
|
+
var MAX_WIDTH_CLASSES = {
|
|
7
|
+
xs: "max-w-xs",
|
|
8
|
+
sm: "max-w-sm",
|
|
9
|
+
md: "max-w-md",
|
|
10
|
+
lg: "max-w-lg",
|
|
11
|
+
xl: "max-w-xl",
|
|
12
|
+
"2xl": "max-w-2xl",
|
|
13
|
+
"3xl": "max-w-3xl",
|
|
14
|
+
"4xl": "max-w-4xl",
|
|
15
|
+
"5xl": "max-w-5xl",
|
|
16
|
+
"6xl": "max-w-6xl",
|
|
17
|
+
"7xl": "max-w-7xl",
|
|
18
|
+
"8xl": "max-w-8xl",
|
|
19
|
+
"9xl": "max-w-9xl",
|
|
20
|
+
prose: "max-w-prose",
|
|
21
|
+
page: "max-w-page",
|
|
22
|
+
"page-with-sidebar": "max-w-pageminsidebar"
|
|
23
|
+
};
|
|
24
|
+
var Container = React.forwardRef(function Container({ className, size = "page", centered = true, paddingX, ...props }, ref) {
|
|
25
|
+
return /* @__PURE__ */ jsx("div", {
|
|
26
|
+
ref,
|
|
27
|
+
className: cn("w-full", MAX_WIDTH_CLASSES[size], centered && "mx-auto", paddingX && PADDING_X_CLASSES[paddingX], className),
|
|
28
|
+
...props
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
Container.displayName = "Container";
|
|
32
|
+
//#endregion
|
|
33
|
+
export { Container };
|
|
34
|
+
|
|
35
|
+
//# sourceMappingURL=container.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"container.js","names":[],"sources":["../../../src/components/primitives/container.tsx"],"sourcesContent":["import { cn } from '@/lib/utils';\nimport { PADDING_X_CLASSES, SpaceStep } from './types';\nimport React from 'react';\n\nexport type ContainerSize =\n | 'xs'\n | 'sm'\n | 'md'\n | 'lg'\n | 'xl'\n | '2xl'\n | '3xl'\n | '4xl'\n | '5xl'\n | '6xl'\n | '7xl'\n | '8xl'\n | '9xl'\n | 'prose'\n | 'page'\n | 'page-with-sidebar';\n\nconst MAX_WIDTH_CLASSES: Record<ContainerSize, string> = {\n xs: 'max-w-xs',\n sm: 'max-w-sm',\n md: 'max-w-md',\n lg: 'max-w-lg',\n xl: 'max-w-xl',\n '2xl': 'max-w-2xl',\n '3xl': 'max-w-3xl',\n '4xl': 'max-w-4xl',\n '5xl': 'max-w-5xl',\n '6xl': 'max-w-6xl',\n '7xl': 'max-w-7xl',\n '8xl': 'max-w-8xl',\n '9xl': 'max-w-9xl',\n prose: 'max-w-prose',\n page: 'max-w-page',\n 'page-with-sidebar': 'max-w-pageminsidebar',\n};\n\nexport interface ContainerProps extends React.HTMLAttributes<HTMLDivElement> {\n size?: ContainerSize;\n centered?: boolean;\n paddingX?: SpaceStep;\n}\n\nconst Container = React.forwardRef<HTMLDivElement, ContainerProps>(function Container(\n { className, size = 'page', centered = true, paddingX, ...props }: ContainerProps,\n ref,\n) {\n return (\n <div\n ref={ref}\n className={cn(\n 'w-full',\n MAX_WIDTH_CLASSES[size],\n centered && 'mx-auto',\n paddingX && PADDING_X_CLASSES[paddingX],\n className,\n )}\n {...props}\n />\n );\n});\n\nContainer.displayName = 'Container';\n\nexport { Container };\n"],"mappings":";;;;;AAsBA,IAAM,oBAAmD;CACvD,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,OAAO;CACP,OAAO;CACP,OAAO;CACP,OAAO;CACP,OAAO;CACP,OAAO;CACP,OAAO;CACP,OAAO;CACP,OAAO;CACP,MAAM;CACN,qBAAqB;AACvB;AAQA,IAAM,YAAY,MAAM,WAA2C,SAAS,UAC1E,EAAE,WAAW,OAAO,QAAQ,WAAW,MAAM,UAAU,GAAG,SAC1D,KACA;CACA,OACE,oBAAC,OAAD;EACO;EACL,WAAW,GACT,UACA,kBAAkB,OAClB,YAAY,WACZ,YAAY,kBAAkB,WAC9B,SACF;EACA,GAAI;CACL,CAAA;AAEL,CAAC;AAED,UAAU,cAAc"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { cn } from "../../lib/ds-utils.js";
|
|
2
|
+
import { ALIGN_ITEMS_CLASSES, GAP_CLASSES, JUSTIFY_CONTENT_CLASSES } from "./types.js";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/primitives/grid.tsx
|
|
6
|
+
var GRID_COLUMNS_CLASSES = {
|
|
7
|
+
1: "grid-cols-1",
|
|
8
|
+
2: "grid-cols-2",
|
|
9
|
+
3: "grid-cols-3",
|
|
10
|
+
4: "grid-cols-4",
|
|
11
|
+
5: "grid-cols-5",
|
|
12
|
+
6: "grid-cols-6",
|
|
13
|
+
12: "grid-cols-12"
|
|
14
|
+
};
|
|
15
|
+
var Grid = React.forwardRef(function Grid({ className, columns = 1, gap = "md", align = "stretch", justify = "start", ...props }, ref) {
|
|
16
|
+
return /* @__PURE__ */ jsx("div", {
|
|
17
|
+
ref,
|
|
18
|
+
className: cn("grid", GRID_COLUMNS_CLASSES[columns], GAP_CLASSES[gap], ALIGN_ITEMS_CLASSES[align], JUSTIFY_CONTENT_CLASSES[justify], className),
|
|
19
|
+
...props
|
|
20
|
+
});
|
|
21
|
+
});
|
|
22
|
+
Grid.displayName = "Grid";
|
|
23
|
+
//#endregion
|
|
24
|
+
export { Grid };
|
|
25
|
+
|
|
26
|
+
//# sourceMappingURL=grid.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grid.js","names":[],"sources":["../../../src/components/primitives/grid.tsx"],"sourcesContent":["import { cn } from '@/lib/utils';\nimport {\n ALIGN_ITEMS_CLASSES,\n GAP_CLASSES,\n JUSTIFY_CONTENT_CLASSES,\n Align,\n Justify,\n SpaceStep,\n} from './types';\nimport React from 'react';\n\ntype GridColumns = 1 | 2 | 3 | 4 | 5 | 6 | 12;\n\nconst GRID_COLUMNS_CLASSES: Record<GridColumns, string> = {\n 1: 'grid-cols-1',\n 2: 'grid-cols-2',\n 3: 'grid-cols-3',\n 4: 'grid-cols-4',\n 5: 'grid-cols-5',\n 6: 'grid-cols-6',\n 12: 'grid-cols-12',\n};\n\nexport interface GridProps extends React.HTMLAttributes<HTMLDivElement> {\n columns?: GridColumns;\n gap?: SpaceStep;\n align?: Align;\n justify?: Justify;\n}\n\nconst Grid = React.forwardRef<HTMLDivElement, GridProps>(function Grid(\n { className, columns = 1, gap = 'md', align = 'stretch', justify = 'start', ...props }: GridProps,\n ref,\n) {\n return (\n <div\n ref={ref}\n className={cn(\n 'grid',\n GRID_COLUMNS_CLASSES[columns],\n GAP_CLASSES[gap],\n ALIGN_ITEMS_CLASSES[align],\n JUSTIFY_CONTENT_CLASSES[justify],\n className,\n )}\n {...props}\n />\n );\n});\n\nGrid.displayName = 'Grid';\n\nexport { Grid };\n"],"mappings":";;;;;AAaA,IAAM,uBAAoD;CACxD,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,IAAI;AACN;AASA,IAAM,OAAO,MAAM,WAAsC,SAAS,KAChE,EAAE,WAAW,UAAU,GAAG,MAAM,MAAM,QAAQ,WAAW,UAAU,SAAS,GAAG,SAC/E,KACA;CACA,OACE,oBAAC,OAAD;EACO;EACL,WAAW,GACT,QACA,qBAAqB,UACrB,YAAY,MACZ,oBAAoB,QACpB,wBAAwB,UACxB,SACF;EACA,GAAI;CACL,CAAA;AAEL,CAAC;AAED,KAAK,cAAc"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Box } from "./box.js";
|
|
2
|
+
import { Container } from "./container.js";
|
|
3
|
+
import { Grid } from "./grid.js";
|
|
4
|
+
import { Inline } from "./inline.js";
|
|
5
|
+
import { Stack } from "./stack.js";
|
|
6
|
+
import { Text } from "./text.js";
|
|
7
|
+
export { Box, Container, Grid, Inline, Stack, Text };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { cn } from "../../lib/ds-utils.js";
|
|
2
|
+
import { ALIGN_ITEMS_CLASSES, GAP_CLASSES, JUSTIFY_CONTENT_CLASSES } from "./types.js";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/primitives/inline.tsx
|
|
6
|
+
var Inline = React.forwardRef(function Inline({ as = "div", className, gap = "md", align = "center", justify = "start", wrap = false, ...props }, ref) {
|
|
7
|
+
return /* @__PURE__ */ jsx(as, {
|
|
8
|
+
ref,
|
|
9
|
+
className: cn("flex flex-row", wrap ? "flex-wrap" : "flex-nowrap", GAP_CLASSES[gap], ALIGN_ITEMS_CLASSES[align], JUSTIFY_CONTENT_CLASSES[justify], className),
|
|
10
|
+
...props
|
|
11
|
+
});
|
|
12
|
+
});
|
|
13
|
+
Inline.displayName = "Inline";
|
|
14
|
+
//#endregion
|
|
15
|
+
export { Inline };
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=inline.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inline.js","names":[],"sources":["../../../src/components/primitives/inline.tsx"],"sourcesContent":["import { cn } from '@/lib/utils';\nimport {\n ALIGN_ITEMS_CLASSES,\n GAP_CLASSES,\n JUSTIFY_CONTENT_CLASSES,\n Align,\n Justify,\n SpaceStep,\n} from './types';\nimport React from 'react';\n\ntype InlineElement = 'div' | 'header' | 'section' | 'footer' | 'nav' | 'span';\n\nexport interface InlineProps extends React.HTMLAttributes<HTMLElement> {\n as?: InlineElement;\n gap?: SpaceStep;\n align?: Align;\n justify?: Justify;\n wrap?: boolean;\n}\n\nconst Inline = React.forwardRef<HTMLElement, InlineProps>(function Inline(\n {\n as = 'div',\n className,\n gap = 'md',\n align = 'center',\n justify = 'start',\n wrap = false,\n ...props\n }: InlineProps,\n ref: React.Ref<HTMLElement>,\n) {\n const Component = as as React.ElementType;\n\n return (\n <Component\n ref={ref}\n className={cn(\n 'flex flex-row',\n wrap ? 'flex-wrap' : 'flex-nowrap',\n GAP_CLASSES[gap],\n ALIGN_ITEMS_CLASSES[align],\n JUSTIFY_CONTENT_CLASSES[justify],\n className,\n )}\n {...props}\n />\n );\n});\n\nInline.displayName = 'Inline';\n\nexport { Inline };\n"],"mappings":";;;;;AAqBA,IAAM,SAAS,MAAM,WAAqC,SAAS,OACjE,EACE,KAAK,OACL,WACA,MAAM,MACN,QAAQ,UACR,UAAU,SACV,OAAO,OACP,GAAG,SAEL,KACA;CAGA,OACE,oBAAC,IAAD;EACO;EACL,WAAW,GACT,iBACA,OAAO,cAAc,eACrB,YAAY,MACZ,oBAAoB,QACpB,wBAAwB,UACxB,SACF;EACA,GAAI;CACL,CAAA;AAEL,CAAC;AAED,OAAO,cAAc"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { cn } from "../../lib/ds-utils.js";
|
|
2
|
+
import { ALIGN_ITEMS_CLASSES, GAP_CLASSES, JUSTIFY_CONTENT_CLASSES } from "./types.js";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/primitives/stack.tsx
|
|
6
|
+
var Stack = React.forwardRef(function Stack({ className, gap = "md", align = "stretch", justify = "start", ...props }, ref) {
|
|
7
|
+
return /* @__PURE__ */ jsx("div", {
|
|
8
|
+
ref,
|
|
9
|
+
className: cn("flex flex-col", GAP_CLASSES[gap], ALIGN_ITEMS_CLASSES[align], JUSTIFY_CONTENT_CLASSES[justify], className),
|
|
10
|
+
...props
|
|
11
|
+
});
|
|
12
|
+
});
|
|
13
|
+
Stack.displayName = "Stack";
|
|
14
|
+
//#endregion
|
|
15
|
+
export { Stack };
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=stack.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stack.js","names":[],"sources":["../../../src/components/primitives/stack.tsx"],"sourcesContent":["import { cn } from '@/lib/utils';\nimport {\n ALIGN_ITEMS_CLASSES,\n GAP_CLASSES,\n JUSTIFY_CONTENT_CLASSES,\n Align,\n Justify,\n SpaceStep,\n} from './types';\nimport React from 'react';\n\nexport interface StackProps extends React.HTMLAttributes<HTMLDivElement> {\n gap?: SpaceStep;\n align?: Align;\n justify?: Justify;\n}\n\nconst Stack = React.forwardRef<HTMLDivElement, StackProps>(function Stack(\n { className, gap = 'md', align = 'stretch', justify = 'start', ...props }: StackProps,\n ref,\n) {\n return (\n <div\n ref={ref}\n className={cn(\n 'flex flex-col',\n GAP_CLASSES[gap],\n ALIGN_ITEMS_CLASSES[align],\n JUSTIFY_CONTENT_CLASSES[justify],\n className,\n )}\n {...props}\n />\n );\n});\n\nStack.displayName = 'Stack';\n\nexport { Stack };\n"],"mappings":";;;;;AAiBA,IAAM,QAAQ,MAAM,WAAuC,SAAS,MAClE,EAAE,WAAW,MAAM,MAAM,QAAQ,WAAW,UAAU,SAAS,GAAG,SAClE,KACA;CACA,OACE,oBAAC,OAAD;EACO;EACL,WAAW,GACT,iBACA,YAAY,MACZ,oBAAoB,QACpB,wBAAwB,UACxB,SACF;EACA,GAAI;CACL,CAAA;AAEL,CAAC;AAED,MAAM,cAAc"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { cn } from "../../lib/ds-utils.js";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
//#region src/components/primitives/text.tsx
|
|
5
|
+
var TEXT_SIZE_CLASSES = {
|
|
6
|
+
"2xs": "text-2xs",
|
|
7
|
+
xs: "text-xs",
|
|
8
|
+
sm: "text-sm",
|
|
9
|
+
md: "text-md",
|
|
10
|
+
lg: "text-lg",
|
|
11
|
+
xl: "text-xl",
|
|
12
|
+
"2xl": "text-2xl",
|
|
13
|
+
"3xl": "text-3xl"
|
|
14
|
+
};
|
|
15
|
+
var TEXT_WEIGHT_CLASSES = {
|
|
16
|
+
regular: "font-normal",
|
|
17
|
+
medium: "font-medium",
|
|
18
|
+
semibold: "font-semibold",
|
|
19
|
+
bold: "font-bold"
|
|
20
|
+
};
|
|
21
|
+
var TEXT_TONE_CLASSES = {
|
|
22
|
+
primary: "text-text-primary",
|
|
23
|
+
secondary: "text-text-secondary",
|
|
24
|
+
tertiary: "text-text-tertiary"
|
|
25
|
+
};
|
|
26
|
+
var TEXT_LEADING_CLASSES = {
|
|
27
|
+
none: "leading-none",
|
|
28
|
+
snug: "leading-snug",
|
|
29
|
+
normal: "leading-normal",
|
|
30
|
+
relaxed: "leading-relaxed",
|
|
31
|
+
tight: "leading-tight",
|
|
32
|
+
tighter: "leading-tighter",
|
|
33
|
+
supertight: "leading-supertight",
|
|
34
|
+
body: "leading-body",
|
|
35
|
+
heading: "leading-heading"
|
|
36
|
+
};
|
|
37
|
+
var Text = React.forwardRef(function Text({ as = "p", className, size = "md", weight = "regular", tone = "primary", leading = "body", truncate = false, ...props }, ref) {
|
|
38
|
+
return /* @__PURE__ */ jsx(as, {
|
|
39
|
+
ref,
|
|
40
|
+
className: cn(TEXT_SIZE_CLASSES[size], TEXT_WEIGHT_CLASSES[weight], TEXT_TONE_CLASSES[tone], TEXT_LEADING_CLASSES[leading], truncate && "truncate", className),
|
|
41
|
+
...props
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
Text.displayName = "Text";
|
|
45
|
+
//#endregion
|
|
46
|
+
export { Text };
|
|
47
|
+
|
|
48
|
+
//# sourceMappingURL=text.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text.js","names":[],"sources":["../../../src/components/primitives/text.tsx"],"sourcesContent":["import { cn } from '@/lib/utils';\nimport React from 'react';\n\ntype TextElement =\n | 'p'\n | 'span'\n | 'div'\n | 'label'\n | 'small'\n | 'strong'\n | 'em'\n | 'h1'\n | 'h2'\n | 'h3'\n | 'h4'\n | 'h5'\n | 'h6';\n\ntype TextSize = '2xs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl';\ntype TextWeight = 'regular' | 'medium' | 'semibold' | 'bold';\ntype TextTone = 'primary' | 'secondary' | 'tertiary';\ntype TextLeading =\n | 'none'\n | 'snug'\n | 'normal'\n | 'relaxed'\n | 'tight'\n | 'tighter'\n | 'supertight'\n | 'body'\n | 'heading';\n\nconst TEXT_SIZE_CLASSES: Record<TextSize, string> = {\n '2xs': 'text-2xs',\n xs: 'text-xs',\n sm: 'text-sm',\n md: 'text-md',\n lg: 'text-lg',\n xl: 'text-xl',\n '2xl': 'text-2xl',\n '3xl': 'text-3xl',\n};\n\nconst TEXT_WEIGHT_CLASSES: Record<TextWeight, string> = {\n regular: 'font-normal',\n medium: 'font-medium',\n semibold: 'font-semibold',\n bold: 'font-bold',\n};\n\nconst TEXT_TONE_CLASSES: Record<TextTone, string> = {\n primary: 'text-text-primary',\n secondary: 'text-text-secondary',\n tertiary: 'text-text-tertiary',\n};\n\nconst TEXT_LEADING_CLASSES: Record<TextLeading, string> = {\n none: 'leading-none',\n snug: 'leading-snug',\n normal: 'leading-normal',\n relaxed: 'leading-relaxed',\n tight: 'leading-tight',\n tighter: 'leading-tighter',\n supertight: 'leading-supertight',\n body: 'leading-body',\n heading: 'leading-heading',\n};\n\nexport interface TextProps extends React.HTMLAttributes<HTMLElement> {\n as?: TextElement;\n size?: TextSize;\n weight?: TextWeight;\n tone?: TextTone;\n leading?: TextLeading;\n truncate?: boolean;\n}\n\nconst Text = React.forwardRef<HTMLElement, TextProps>(function Text(\n {\n as = 'p',\n className,\n size = 'md',\n weight = 'regular',\n tone = 'primary',\n leading = 'body',\n truncate = false,\n ...props\n }: TextProps,\n ref,\n) {\n const Component = as as React.ElementType;\n\n return (\n <Component\n ref={ref}\n className={cn(\n TEXT_SIZE_CLASSES[size],\n TEXT_WEIGHT_CLASSES[weight],\n TEXT_TONE_CLASSES[tone],\n TEXT_LEADING_CLASSES[leading],\n truncate && 'truncate',\n className,\n )}\n {...props}\n />\n );\n});\n\nText.displayName = 'Text';\n\nexport { Text };\nexport type { TextElement, TextLeading, TextSize, TextTone, TextWeight };\n"],"mappings":";;;;AAgCA,IAAM,oBAA8C;CAClD,OAAO;CACP,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,OAAO;CACP,OAAO;AACT;AAEA,IAAM,sBAAkD;CACtD,SAAS;CACT,QAAQ;CACR,UAAU;CACV,MAAM;AACR;AAEA,IAAM,oBAA8C;CAClD,SAAS;CACT,WAAW;CACX,UAAU;AACZ;AAEA,IAAM,uBAAoD;CACxD,MAAM;CACN,MAAM;CACN,QAAQ;CACR,SAAS;CACT,OAAO;CACP,SAAS;CACT,YAAY;CACZ,MAAM;CACN,SAAS;AACX;AAWA,IAAM,OAAO,MAAM,WAAmC,SAAS,KAC7D,EACE,KAAK,KACL,WACA,OAAO,MACP,SAAS,WACT,OAAO,WACP,UAAU,QACV,WAAW,OACX,GAAG,SAEL,KACA;CAGA,OACE,oBAAC,IAAD;EACO;EACL,WAAW,GACT,kBAAkB,OAClB,oBAAoB,SACpB,kBAAkB,OAClB,qBAAqB,UACrB,YAAY,YACZ,SACF;EACA,GAAI;CACL,CAAA;AAEL,CAAC;AAED,KAAK,cAAc"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
//#region src/components/primitives/types.ts
|
|
2
|
+
var GAP_CLASSES = {
|
|
3
|
+
none: "gap-0",
|
|
4
|
+
xs: "gap-1",
|
|
5
|
+
sm: "gap-2",
|
|
6
|
+
md: "gap-3",
|
|
7
|
+
lg: "gap-5",
|
|
8
|
+
xl: "gap-6",
|
|
9
|
+
"2xl": "gap-8"
|
|
10
|
+
};
|
|
11
|
+
var PADDING_CLASSES = {
|
|
12
|
+
none: "p-0",
|
|
13
|
+
xs: "p-1",
|
|
14
|
+
sm: "p-2",
|
|
15
|
+
md: "p-3",
|
|
16
|
+
lg: "p-5",
|
|
17
|
+
xl: "p-6",
|
|
18
|
+
"2xl": "p-8"
|
|
19
|
+
};
|
|
20
|
+
var PADDING_X_CLASSES = {
|
|
21
|
+
none: "px-0",
|
|
22
|
+
xs: "px-1",
|
|
23
|
+
sm: "px-2",
|
|
24
|
+
md: "px-3",
|
|
25
|
+
lg: "px-5",
|
|
26
|
+
xl: "px-6",
|
|
27
|
+
"2xl": "px-8"
|
|
28
|
+
};
|
|
29
|
+
var PADDING_Y_CLASSES = {
|
|
30
|
+
none: "py-0",
|
|
31
|
+
xs: "py-1",
|
|
32
|
+
sm: "py-2",
|
|
33
|
+
md: "py-3",
|
|
34
|
+
lg: "py-5",
|
|
35
|
+
xl: "py-6",
|
|
36
|
+
"2xl": "py-8"
|
|
37
|
+
};
|
|
38
|
+
var ALIGN_ITEMS_CLASSES = {
|
|
39
|
+
start: "items-start",
|
|
40
|
+
center: "items-center",
|
|
41
|
+
end: "items-end",
|
|
42
|
+
stretch: "items-stretch",
|
|
43
|
+
baseline: "items-baseline"
|
|
44
|
+
};
|
|
45
|
+
var JUSTIFY_CONTENT_CLASSES = {
|
|
46
|
+
start: "justify-start",
|
|
47
|
+
center: "justify-center",
|
|
48
|
+
end: "justify-end",
|
|
49
|
+
between: "justify-between",
|
|
50
|
+
around: "justify-around",
|
|
51
|
+
evenly: "justify-evenly"
|
|
52
|
+
};
|
|
53
|
+
//#endregion
|
|
54
|
+
export { ALIGN_ITEMS_CLASSES, GAP_CLASSES, JUSTIFY_CONTENT_CLASSES, PADDING_CLASSES, PADDING_X_CLASSES, PADDING_Y_CLASSES };
|
|
55
|
+
|
|
56
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","names":[],"sources":["../../../src/components/primitives/types.ts"],"sourcesContent":["export type SpaceStep = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n\nexport type Align = 'start' | 'center' | 'end' | 'stretch' | 'baseline';\n\nexport type Justify = 'start' | 'center' | 'end' | 'between' | 'around' | 'evenly';\n\nexport const GAP_CLASSES: Record<SpaceStep, string> = {\n none: 'gap-0',\n xs: 'gap-1',\n sm: 'gap-2',\n md: 'gap-3',\n lg: 'gap-5',\n xl: 'gap-6',\n '2xl': 'gap-8',\n};\n\nexport const PADDING_CLASSES: Record<SpaceStep, string> = {\n none: 'p-0',\n xs: 'p-1',\n sm: 'p-2',\n md: 'p-3',\n lg: 'p-5',\n xl: 'p-6',\n '2xl': 'p-8',\n};\n\nexport const PADDING_X_CLASSES: Record<SpaceStep, string> = {\n none: 'px-0',\n xs: 'px-1',\n sm: 'px-2',\n md: 'px-3',\n lg: 'px-5',\n xl: 'px-6',\n '2xl': 'px-8',\n};\n\nexport const PADDING_Y_CLASSES: Record<SpaceStep, string> = {\n none: 'py-0',\n xs: 'py-1',\n sm: 'py-2',\n md: 'py-3',\n lg: 'py-5',\n xl: 'py-6',\n '2xl': 'py-8',\n};\n\nexport const ALIGN_ITEMS_CLASSES: Record<Align, string> = {\n start: 'items-start',\n center: 'items-center',\n end: 'items-end',\n stretch: 'items-stretch',\n baseline: 'items-baseline',\n};\n\nexport const JUSTIFY_CONTENT_CLASSES: Record<Justify, string> = {\n start: 'justify-start',\n center: 'justify-center',\n end: 'justify-end',\n between: 'justify-between',\n around: 'justify-around',\n evenly: 'justify-evenly',\n};\n"],"mappings":";AAMA,IAAa,cAAyC;CACpD,MAAM;CACN,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,OAAO;AACT;AAEA,IAAa,kBAA6C;CACxD,MAAM;CACN,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,OAAO;AACT;AAEA,IAAa,oBAA+C;CAC1D,MAAM;CACN,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,OAAO;AACT;AAEA,IAAa,oBAA+C;CAC1D,MAAM;CACN,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,OAAO;AACT;AAEA,IAAa,sBAA6C;CACxD,OAAO;CACP,QAAQ;CACR,KAAK;CACL,SAAS;CACT,UAAU;AACZ;AAEA,IAAa,0BAAmD;CAC9D,OAAO;CACP,QAAQ;CACR,KAAK;CACL,SAAS;CACT,QAAQ;CACR,QAAQ;AACV"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { cn } from "../../lib/ds-utils.js";
|
|
2
|
+
import { ChevronDown } from "lucide-react";
|
|
3
|
+
import * as React$1 from "react";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
import * as AccordionPrimitive from "@radix-ui/react-accordion";
|
|
6
|
+
//#region src/components/ui/accordion.tsx
|
|
7
|
+
var Accordion = AccordionPrimitive.Root;
|
|
8
|
+
var AccordionItem = React$1.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(AccordionPrimitive.Item, {
|
|
9
|
+
ref,
|
|
10
|
+
className: cn("border-b", className),
|
|
11
|
+
...props
|
|
12
|
+
}));
|
|
13
|
+
AccordionItem.displayName = "AccordionItem";
|
|
14
|
+
var AccordionTrigger = React$1.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(AccordionPrimitive.Header, {
|
|
15
|
+
className: "flex",
|
|
16
|
+
children: /* @__PURE__ */ jsxs(AccordionPrimitive.Trigger, {
|
|
17
|
+
ref,
|
|
18
|
+
className: cn("flex flex-1 items-center justify-between py-4 text-left text-sm font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180", className),
|
|
19
|
+
...props,
|
|
20
|
+
children: [children, /* @__PURE__ */ jsx(ChevronDown, { className: "size-4 shrink-0 text-muted-foreground transition-transform duration-200" })]
|
|
21
|
+
})
|
|
22
|
+
}));
|
|
23
|
+
AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;
|
|
24
|
+
var AccordionContent = React$1.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(AccordionPrimitive.Content, {
|
|
25
|
+
ref,
|
|
26
|
+
className: "overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
|
|
27
|
+
...props,
|
|
28
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
29
|
+
className: cn("pt-0 pb-4", className),
|
|
30
|
+
children
|
|
31
|
+
})
|
|
32
|
+
}));
|
|
33
|
+
AccordionContent.displayName = AccordionPrimitive.Content.displayName;
|
|
34
|
+
//#endregion
|
|
35
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger };
|
|
36
|
+
|
|
37
|
+
//# sourceMappingURL=accordion.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accordion.js","names":[],"sources":["../../../src/components/ui/accordion.tsx"],"sourcesContent":["import * as React from 'react';\nimport * as AccordionPrimitive from '@radix-ui/react-accordion';\nimport { ChevronDown } from 'lucide-react';\n\nimport { cn } from '@/lib/utils';\n\nconst Accordion = AccordionPrimitive.Root;\n\nconst AccordionItem = React.forwardRef<\n React.ElementRef<typeof AccordionPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Item>\n>(({ className, ...props }, ref) => (\n <AccordionPrimitive.Item ref={ref} className={cn('border-b', className)} {...props} />\n));\nAccordionItem.displayName = 'AccordionItem';\n\nconst AccordionTrigger = React.forwardRef<\n React.ElementRef<typeof AccordionPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Trigger>\n>(({ className, children, ...props }, ref) => (\n <AccordionPrimitive.Header className=\"flex\">\n <AccordionPrimitive.Trigger\n ref={ref}\n className={cn(\n 'flex flex-1 items-center justify-between py-4 text-left text-sm font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180',\n className,\n )}\n {...props}\n >\n {children}\n <ChevronDown className=\"size-4 shrink-0 text-muted-foreground transition-transform duration-200\" />\n </AccordionPrimitive.Trigger>\n </AccordionPrimitive.Header>\n));\nAccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;\n\nconst AccordionContent = React.forwardRef<\n React.ElementRef<typeof AccordionPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Content>\n>(({ className, children, ...props }, ref) => (\n <AccordionPrimitive.Content\n ref={ref}\n className=\"overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down\"\n {...props}\n >\n <div className={cn('pt-0 pb-4', className)}>{children}</div>\n </AccordionPrimitive.Content>\n));\nAccordionContent.displayName = AccordionPrimitive.Content.displayName;\n\nexport { Accordion, AccordionItem, AccordionTrigger, AccordionContent };\n"],"mappings":";;;;;;AAMA,IAAM,YAAY,mBAAmB;AAErC,IAAM,gBAAgB,QAAM,YAGzB,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,mBAAmB,MAApB;CAA8B;CAAK,WAAW,GAAG,YAAY,SAAS;CAAG,GAAI;AAAQ,CAAA,CACtF;AACD,cAAc,cAAc;AAE5B,IAAM,mBAAmB,QAAM,YAG5B,EAAE,WAAW,UAAU,GAAG,SAAS,QACpC,oBAAC,mBAAmB,QAApB;CAA2B,WAAU;WACnC,qBAAC,mBAAmB,SAApB;EACO;EACL,WAAW,GACT,kJACA,SACF;EACA,GAAI;YANN,CAQG,UACD,oBAAC,aAAD,EAAa,WAAU,0EAA2E,CAAA,CACxE;;AACH,CAAA,CAC5B;AACD,iBAAiB,cAAc,mBAAmB,QAAQ;AAE1D,IAAM,mBAAmB,QAAM,YAG5B,EAAE,WAAW,UAAU,GAAG,SAAS,QACpC,oBAAC,mBAAmB,SAApB;CACO;CACL,WAAU;CACV,GAAI;WAEJ,oBAAC,OAAD;EAAK,WAAW,GAAG,aAAa,SAAS;EAAI;CAAc,CAAA;AACjC,CAAA,CAC7B;AACD,iBAAiB,cAAc,mBAAmB,QAAQ"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { cn } from "../../lib/ds-utils.js";
|
|
2
|
+
import * as React$1 from "react";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { cva } from "class-variance-authority";
|
|
5
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
6
|
+
//#region src/components/ui/action-list.tsx
|
|
7
|
+
var actionListItemVariants = cva("group/action-list-item relative flex min-w-0 items-stretch border-b border-border last:border-b-transparent", {
|
|
8
|
+
variants: { hover: {
|
|
9
|
+
true: "before:pointer-events-none before:absolute before:-inset-x-4 before:inset-y-0 before:z-0 before:rounded-md before:bg-table-row-hover before:opacity-0 before:transition-opacity hover:border-b-transparent hover:before:opacity-100",
|
|
10
|
+
false: ""
|
|
11
|
+
} },
|
|
12
|
+
defaultVariants: { hover: true }
|
|
13
|
+
});
|
|
14
|
+
var ActionList = React$1.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", {
|
|
15
|
+
ref,
|
|
16
|
+
className: cn("flex flex-col", className),
|
|
17
|
+
...props
|
|
18
|
+
}));
|
|
19
|
+
ActionList.displayName = "ActionList";
|
|
20
|
+
var ActionListItem = React$1.forwardRef(({ className, hover, ...props }, ref) => /* @__PURE__ */ jsx("div", {
|
|
21
|
+
ref,
|
|
22
|
+
className: cn(actionListItemVariants({
|
|
23
|
+
hover,
|
|
24
|
+
className
|
|
25
|
+
})),
|
|
26
|
+
...props
|
|
27
|
+
}));
|
|
28
|
+
ActionListItem.displayName = "ActionListItem";
|
|
29
|
+
var ActionListItemContent = React$1.forwardRef(({ asChild = false, className, ...props }, ref) => {
|
|
30
|
+
return /* @__PURE__ */ jsx(asChild ? Slot : "div", {
|
|
31
|
+
ref,
|
|
32
|
+
className: cn("relative z-10 min-w-0 grow", className),
|
|
33
|
+
...props
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
ActionListItemContent.displayName = "ActionListItemContent";
|
|
37
|
+
var actionListItemActionsVariants = cva("relative z-10 flex shrink-0 items-center py-3 pl-2", {
|
|
38
|
+
variants: { visibility: {
|
|
39
|
+
always: "",
|
|
40
|
+
hover: "md:opacity-0 md:transition-opacity md:group-focus-within/action-list-item:opacity-100 md:group-hover/action-list-item:opacity-100"
|
|
41
|
+
} },
|
|
42
|
+
defaultVariants: { visibility: "always" }
|
|
43
|
+
});
|
|
44
|
+
var ActionListItemActions = React$1.forwardRef(({ className, visibility, ...props }, ref) => /* @__PURE__ */ jsx("div", {
|
|
45
|
+
ref,
|
|
46
|
+
className: cn(actionListItemActionsVariants({
|
|
47
|
+
visibility,
|
|
48
|
+
className
|
|
49
|
+
})),
|
|
50
|
+
...props
|
|
51
|
+
}));
|
|
52
|
+
ActionListItemActions.displayName = "ActionListItemActions";
|
|
53
|
+
//#endregion
|
|
54
|
+
export { ActionList, ActionListItem, ActionListItemActions, ActionListItemContent };
|
|
55
|
+
|
|
56
|
+
//# sourceMappingURL=action-list.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action-list.js","names":[],"sources":["../../../src/components/ui/action-list.tsx"],"sourcesContent":["import { Slot } from '@radix-ui/react-slot';\nimport { type VariantProps, cva } from 'class-variance-authority';\nimport * as React from 'react';\n\nimport { cn } from '@/lib/utils';\n\nconst actionListItemVariants = cva(\n 'group/action-list-item relative flex min-w-0 items-stretch border-b border-border last:border-b-transparent',\n {\n variants: {\n hover: {\n true: 'before:pointer-events-none before:absolute before:-inset-x-4 before:inset-y-0 before:z-0 before:rounded-md before:bg-table-row-hover before:opacity-0 before:transition-opacity hover:border-b-transparent hover:before:opacity-100',\n false: '',\n },\n },\n defaultVariants: {\n hover: true,\n },\n },\n);\n\nconst ActionList = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => (\n <div ref={ref} className={cn('flex flex-col', className)} {...props} />\n ),\n);\nActionList.displayName = 'ActionList';\n\ninterface ActionListItemProps\n extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof actionListItemVariants> {}\n\nconst ActionListItem = React.forwardRef<HTMLDivElement, ActionListItemProps>(\n ({ className, hover, ...props }, ref) => (\n <div ref={ref} className={cn(actionListItemVariants({ hover, className }))} {...props} />\n ),\n);\nActionListItem.displayName = 'ActionListItem';\n\ninterface ActionListItemContentProps extends React.HTMLAttributes<HTMLDivElement> {\n asChild?: boolean;\n}\n\nconst ActionListItemContent = React.forwardRef<HTMLDivElement, ActionListItemContentProps>(\n ({ asChild = false, className, ...props }, ref) => {\n const Component = asChild ? Slot : 'div';\n\n return (\n <Component ref={ref} className={cn('relative z-10 min-w-0 grow', className)} {...props} />\n );\n },\n);\nActionListItemContent.displayName = 'ActionListItemContent';\n\nconst actionListItemActionsVariants = cva('relative z-10 flex shrink-0 items-center py-3 pl-2', {\n variants: {\n visibility: {\n always: '',\n hover:\n 'md:opacity-0 md:transition-opacity md:group-focus-within/action-list-item:opacity-100 md:group-hover/action-list-item:opacity-100',\n },\n },\n defaultVariants: {\n visibility: 'always',\n },\n});\n\ninterface ActionListItemActionsProps\n extends\n React.HTMLAttributes<HTMLDivElement>,\n VariantProps<typeof actionListItemActionsVariants> {}\n\nconst ActionListItemActions = React.forwardRef<HTMLDivElement, ActionListItemActionsProps>(\n ({ className, visibility, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(actionListItemActionsVariants({ visibility, className }))}\n {...props}\n />\n ),\n);\nActionListItemActions.displayName = 'ActionListItemActions';\n\nexport { ActionList, ActionListItem, ActionListItemActions, ActionListItemContent };\n"],"mappings":";;;;;;AAMA,IAAM,yBAAyB,IAC7B,+GACA;CACE,UAAU,EACR,OAAO;EACL,MAAM;EACN,OAAO;CACT,EACF;CACA,iBAAiB,EACf,OAAO,KACT;AACF,CACF;AAEA,IAAM,aAAa,QAAM,YACtB,EAAE,WAAW,GAAG,SAAS,QACxB,oBAAC,OAAD;CAAU;CAAK,WAAW,GAAG,iBAAiB,SAAS;CAAG,GAAI;AAAQ,CAAA,CAE1E;AACA,WAAW,cAAc;AAKzB,IAAM,iBAAiB,QAAM,YAC1B,EAAE,WAAW,OAAO,GAAG,SAAS,QAC/B,oBAAC,OAAD;CAAU;CAAK,WAAW,GAAG,uBAAuB;EAAE;EAAO;CAAU,CAAC,CAAC;CAAG,GAAI;AAAQ,CAAA,CAE5F;AACA,eAAe,cAAc;AAM7B,IAAM,wBAAwB,QAAM,YACjC,EAAE,UAAU,OAAO,WAAW,GAAG,SAAS,QAAQ;CAGjD,OACE,oBAHgB,UAAU,OAAO,OAGjC;EAAgB;EAAK,WAAW,GAAG,8BAA8B,SAAS;EAAG,GAAI;CAAQ,CAAA;AAE7F,CACF;AACA,sBAAsB,cAAc;AAEpC,IAAM,gCAAgC,IAAI,sDAAsD;CAC9F,UAAU,EACR,YAAY;EACV,QAAQ;EACR,OACE;CACJ,EACF;CACA,iBAAiB,EACf,YAAY,SACd;AACF,CAAC;AAOD,IAAM,wBAAwB,QAAM,YACjC,EAAE,WAAW,YAAY,GAAG,SAAS,QACpC,oBAAC,OAAD;CACO;CACL,WAAW,GAAG,8BAA8B;EAAE;EAAY;CAAU,CAAC,CAAC;CACtE,GAAI;AACL,CAAA,CAEL;AACA,sBAAsB,cAAc"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { cn } from "../../lib/ds-utils.js";
|
|
2
|
+
import { useShade } from "../../providers/shade-context.js";
|
|
3
|
+
import { ShadeScope } from "../../shade-scope.js";
|
|
4
|
+
import { buttonVariants } from "./button-variants.js";
|
|
5
|
+
import * as React$1 from "react";
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
|
|
8
|
+
//#region src/components/ui/alert-dialog.tsx
|
|
9
|
+
var AlertDialog = AlertDialogPrimitive.Root;
|
|
10
|
+
var AlertDialogTrigger = AlertDialogPrimitive.Trigger;
|
|
11
|
+
var AlertDialogPortal = AlertDialogPrimitive.Portal;
|
|
12
|
+
var AlertDialogOverlay = React$1.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(AlertDialogPrimitive.Overlay, {
|
|
13
|
+
className: cn("fixed inset-0 z-50 transform-gpu bg-black/30 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0 dark:bg-black/60", className),
|
|
14
|
+
...props,
|
|
15
|
+
ref
|
|
16
|
+
}));
|
|
17
|
+
AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
|
|
18
|
+
var AlertDialogContent = React$1.forwardRef(({ className, overlayClassName, ...props }, ref) => /* @__PURE__ */ jsx(AlertDialogPortal, { children: /* @__PURE__ */ jsxs(ShadeScope, { children: [/* @__PURE__ */ jsx(AlertDialogOverlay, {
|
|
19
|
+
className: overlayClassName,
|
|
20
|
+
onClick: (e) => e.stopPropagation()
|
|
21
|
+
}), /* @__PURE__ */ jsx(AlertDialogPrimitive.Content, {
|
|
22
|
+
ref,
|
|
23
|
+
className: cn("fixed top-[20%] left-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-20%] gap-6 bg-surface-elevated-2 p-6 shadow-lg duration-200 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:slide-out-to-top-[18%] data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:slide-in-from-top-[18%] sm:rounded-lg", className),
|
|
24
|
+
...props
|
|
25
|
+
})] }) }));
|
|
26
|
+
AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;
|
|
27
|
+
var AlertDialogHeader = ({ className, ...props }) => /* @__PURE__ */ jsx("div", {
|
|
28
|
+
className: cn("flex flex-col gap-y-2 text-center sm:text-left", className),
|
|
29
|
+
...props
|
|
30
|
+
});
|
|
31
|
+
AlertDialogHeader.displayName = "AlertDialogHeader";
|
|
32
|
+
var AlertDialogFooter = ({ className, ...props }) => /* @__PURE__ */ jsx("div", {
|
|
33
|
+
className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-2", className),
|
|
34
|
+
...props
|
|
35
|
+
});
|
|
36
|
+
AlertDialogFooter.displayName = "AlertDialogFooter";
|
|
37
|
+
var AlertDialogTitle = React$1.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(AlertDialogPrimitive.Title, {
|
|
38
|
+
ref,
|
|
39
|
+
className: cn("text-xl font-semibold", className),
|
|
40
|
+
...props
|
|
41
|
+
}));
|
|
42
|
+
AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
|
|
43
|
+
var AlertDialogDescription = React$1.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(AlertDialogPrimitive.Description, {
|
|
44
|
+
ref,
|
|
45
|
+
className: cn("text-base", className),
|
|
46
|
+
...props
|
|
47
|
+
}));
|
|
48
|
+
AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;
|
|
49
|
+
var AlertDialogAction = React$1.forwardRef(({ className, variant, ...props }, ref) => {
|
|
50
|
+
const { controlShape, isAdmin7 } = useShade();
|
|
51
|
+
return /* @__PURE__ */ jsx(AlertDialogPrimitive.Action, {
|
|
52
|
+
ref,
|
|
53
|
+
className: cn(buttonVariants({
|
|
54
|
+
isAdmin7,
|
|
55
|
+
shape: controlShape,
|
|
56
|
+
variant
|
|
57
|
+
}), className),
|
|
58
|
+
...props,
|
|
59
|
+
"data-control-shape": controlShape
|
|
60
|
+
});
|
|
61
|
+
});
|
|
62
|
+
AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
|
|
63
|
+
var AlertDialogCancel = React$1.forwardRef(({ className, ...props }, ref) => {
|
|
64
|
+
const { controlShape, isAdmin7 } = useShade();
|
|
65
|
+
return /* @__PURE__ */ jsx(AlertDialogPrimitive.Cancel, {
|
|
66
|
+
ref,
|
|
67
|
+
className: cn(buttonVariants({
|
|
68
|
+
isAdmin7,
|
|
69
|
+
shape: controlShape,
|
|
70
|
+
variant: "outline"
|
|
71
|
+
}), "mt-2 sm:mt-0", className),
|
|
72
|
+
...props,
|
|
73
|
+
"data-control-shape": controlShape
|
|
74
|
+
});
|
|
75
|
+
});
|
|
76
|
+
AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
|
|
77
|
+
//#endregion
|
|
78
|
+
export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger };
|
|
79
|
+
|
|
80
|
+
//# sourceMappingURL=alert-dialog.js.map
|