@tryghost/shade 0.0.0-stage → 0.1.0-alpha.1
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 +28 -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 +11 -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,7 @@
|
|
|
1
|
+
import type { Filter, FilterFieldConfig, FilterGroup, FilterI18nConfig, FilterOperator } from '../../components/patterns/filters';
|
|
2
|
+
export declare const DEFAULT_I18N: FilterI18nConfig;
|
|
3
|
+
export declare const createOperatorsFromI18n: (i18n: FilterI18nConfig) => Record<string, FilterOperator[]>;
|
|
4
|
+
export declare const DEFAULT_OPERATORS: Record<string, FilterOperator[]>;
|
|
5
|
+
export declare const createFilter: <T = unknown>(field: string, operator?: string, values?: T[]) => Filter<T>;
|
|
6
|
+
export declare const createFilterGroup: <T = unknown>(id: string, label: string, fields: FilterFieldConfig<T>[], initialFilters?: Filter<T>[]) => FilterGroup<T>;
|
|
7
|
+
//# sourceMappingURL=filters-helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filters-helpers.d.ts","sourceRoot":"","sources":["../../../src/components/patterns/filters-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EACN,iBAAiB,EACjB,WAAW,EACX,gBAAgB,EAChB,cAAc,EACf,MAAM,+BAA+B,CAAC;AAGvC,eAAO,MAAM,YAAY,EAAE,gBA2E1B,CAAC;AAGF,eAAO,MAAM,uBAAuB,SAC5B,gBAAgB,KACrB,MAAM,CAAC,MAAM,EAAE,cAAc,EAAE,CAuGhC,CAAC;AAGH,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,EAAE,CACxB,CAAC;AAExC,eAAO,MAAM,YAAY,GAAI,CAAC,GAAG,OAAO,SAC/B,MAAM,aACF,MAAM,WACT,CAAC,EAAE,KACV,MAAM,CAAC,CAAC,CAKT,CAAC;AAEH,eAAO,MAAM,iBAAiB,GAAI,CAAC,GAAG,OAAO,MACvC,MAAM,SACH,MAAM,UACL,iBAAiB,CAAC,CAAC,CAAC,EAAE,mBACd,MAAM,CAAC,CAAC,CAAC,EAAE,KAC1B,WAAW,CAAC,CAAC,CAKd,CAAC"}
|
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
export interface FilterI18nConfig {
|
|
3
|
+
addFilter: string;
|
|
4
|
+
clearFilters: string;
|
|
5
|
+
searchFields: string;
|
|
6
|
+
noFieldsFound: string;
|
|
7
|
+
noResultsFound: string;
|
|
8
|
+
loading: string;
|
|
9
|
+
loadMore: string;
|
|
10
|
+
showMore: (count: number) => string;
|
|
11
|
+
select: string;
|
|
12
|
+
true: string;
|
|
13
|
+
false: string;
|
|
14
|
+
min: string;
|
|
15
|
+
max: string;
|
|
16
|
+
to: string;
|
|
17
|
+
typeAndPressEnter: string;
|
|
18
|
+
selected: string;
|
|
19
|
+
selectedCount: string;
|
|
20
|
+
percent: string;
|
|
21
|
+
defaultCurrency: string;
|
|
22
|
+
defaultColor: string;
|
|
23
|
+
addFilterTitle: string;
|
|
24
|
+
operators: {
|
|
25
|
+
is: string;
|
|
26
|
+
isNot: string;
|
|
27
|
+
isAnyOf: string;
|
|
28
|
+
isNotAnyOf: string;
|
|
29
|
+
includesAll: string;
|
|
30
|
+
excludesAll: string;
|
|
31
|
+
before: string;
|
|
32
|
+
after: string;
|
|
33
|
+
between: string;
|
|
34
|
+
notBetween: string;
|
|
35
|
+
contains: string;
|
|
36
|
+
notContains: string;
|
|
37
|
+
startsWith: string;
|
|
38
|
+
endsWith: string;
|
|
39
|
+
isExactly: string;
|
|
40
|
+
equals: string;
|
|
41
|
+
notEquals: string;
|
|
42
|
+
greaterThan: string;
|
|
43
|
+
lessThan: string;
|
|
44
|
+
overlaps: string;
|
|
45
|
+
includes: string;
|
|
46
|
+
excludes: string;
|
|
47
|
+
includesAllOf: string;
|
|
48
|
+
includesAnyOf: string;
|
|
49
|
+
empty: string;
|
|
50
|
+
notEmpty: string;
|
|
51
|
+
};
|
|
52
|
+
placeholders: {
|
|
53
|
+
enterField: (fieldType: string) => string;
|
|
54
|
+
selectField: string;
|
|
55
|
+
searchField: (fieldName: string) => string;
|
|
56
|
+
enterKey: string;
|
|
57
|
+
enterValue: string;
|
|
58
|
+
};
|
|
59
|
+
helpers: {
|
|
60
|
+
formatOperator: (operator: string) => string;
|
|
61
|
+
};
|
|
62
|
+
validation: {
|
|
63
|
+
invalidEmail: string;
|
|
64
|
+
invalidUrl: string;
|
|
65
|
+
invalidTel: string;
|
|
66
|
+
invalid: string;
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
export interface FilterDatePickerProps<T = unknown> {
|
|
70
|
+
field?: FilterFieldConfig<T>;
|
|
71
|
+
value: string;
|
|
72
|
+
onChange: (value: string) => void;
|
|
73
|
+
className?: string;
|
|
74
|
+
embedded?: boolean;
|
|
75
|
+
}
|
|
76
|
+
export declare function FilterDatePicker<T = unknown>({ field, value, onChange, className, embedded, }: FilterDatePickerProps<T>): React.JSX.Element;
|
|
77
|
+
export interface FilterOption<T = unknown> {
|
|
78
|
+
value: T;
|
|
79
|
+
label: string;
|
|
80
|
+
detail?: string;
|
|
81
|
+
icon?: React.ReactNode;
|
|
82
|
+
metadata?: Record<string, unknown>;
|
|
83
|
+
}
|
|
84
|
+
export interface FilterOperator {
|
|
85
|
+
value: string;
|
|
86
|
+
label: string;
|
|
87
|
+
supportsMultiple?: boolean;
|
|
88
|
+
}
|
|
89
|
+
export interface CustomRendererProps<T = unknown> {
|
|
90
|
+
field: FilterFieldConfig<T>;
|
|
91
|
+
values: T[];
|
|
92
|
+
onChange: (values: T[]) => void;
|
|
93
|
+
operator: string;
|
|
94
|
+
onOperatorChange?: (operator: string) => void;
|
|
95
|
+
readOnly?: boolean;
|
|
96
|
+
}
|
|
97
|
+
export interface FilterFieldGroup<T = unknown> {
|
|
98
|
+
group?: string;
|
|
99
|
+
fields: FilterFieldConfig<T>[];
|
|
100
|
+
previewLimit?: number;
|
|
101
|
+
}
|
|
102
|
+
export type FilterFieldsConfig<T = unknown> = FilterFieldConfig<T>[] | FilterFieldGroup<T>[];
|
|
103
|
+
export interface ValueSourceParams<T = string> {
|
|
104
|
+
query: string;
|
|
105
|
+
selectedValues: T[];
|
|
106
|
+
}
|
|
107
|
+
export interface ValueSourceState<T = string> {
|
|
108
|
+
options: FilterOption<T>[];
|
|
109
|
+
isInitialLoad: boolean;
|
|
110
|
+
isSearching: boolean;
|
|
111
|
+
isLoadingMore: boolean;
|
|
112
|
+
hasMore: boolean;
|
|
113
|
+
loadMore: () => void;
|
|
114
|
+
}
|
|
115
|
+
export type ValueSourceResult<T = string> = ValueSourceState<T>;
|
|
116
|
+
export interface ValueSource<T = string> {
|
|
117
|
+
readonly id: string;
|
|
118
|
+
useOptions(params: ValueSourceParams<T>): ValueSourceResult<T>;
|
|
119
|
+
}
|
|
120
|
+
export interface FilterFieldConfig<T = unknown> {
|
|
121
|
+
key?: string;
|
|
122
|
+
label?: string;
|
|
123
|
+
pillLabel?: string;
|
|
124
|
+
staticValue?: boolean;
|
|
125
|
+
icon?: React.ReactNode;
|
|
126
|
+
type?: 'select' | 'multiselect' | 'date' | 'daterange' | 'text' | 'number' | 'numberrange' | 'boolean' | 'email' | 'url' | 'tel' | 'time' | 'datetime' | 'custom' | 'separator';
|
|
127
|
+
group?: string;
|
|
128
|
+
fields?: FilterFieldConfig<T>[];
|
|
129
|
+
previewLimit?: number;
|
|
130
|
+
readOnly?: boolean;
|
|
131
|
+
options?: FilterOption<T>[];
|
|
132
|
+
isLoading?: boolean;
|
|
133
|
+
operators?: FilterOperator[];
|
|
134
|
+
customRenderer?: (props: CustomRendererProps<T>) => React.ReactNode;
|
|
135
|
+
customValueRenderer?: (values: T[], options: FilterOption<T>[]) => React.ReactNode;
|
|
136
|
+
placeholder?: string;
|
|
137
|
+
searchable?: boolean;
|
|
138
|
+
maxSelections?: number;
|
|
139
|
+
min?: number;
|
|
140
|
+
max?: number;
|
|
141
|
+
step?: number;
|
|
142
|
+
prefix?: string | React.ReactNode;
|
|
143
|
+
suffix?: string | React.ReactNode;
|
|
144
|
+
pattern?: string;
|
|
145
|
+
validation?: (value: unknown) => boolean;
|
|
146
|
+
allowCustomValues?: boolean;
|
|
147
|
+
className?: string;
|
|
148
|
+
popoverContentClassName?: string;
|
|
149
|
+
triggerClassName?: string;
|
|
150
|
+
selectedOptionsClassName?: string;
|
|
151
|
+
groupLabel?: string;
|
|
152
|
+
onLabel?: string;
|
|
153
|
+
offLabel?: string;
|
|
154
|
+
onInputChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
155
|
+
valueSource?: ValueSource<string>;
|
|
156
|
+
defaultOperator?: string;
|
|
157
|
+
defaultValue?: T;
|
|
158
|
+
hideOperatorSelect?: boolean;
|
|
159
|
+
renderOperatorInValue?: boolean;
|
|
160
|
+
value?: T[];
|
|
161
|
+
onValueChange?: (values: T[]) => void;
|
|
162
|
+
autoCloseOnSelect?: boolean;
|
|
163
|
+
}
|
|
164
|
+
export type FieldSpec<T = unknown> = FilterFieldConfig<T>;
|
|
165
|
+
export interface FilterSegmentOption {
|
|
166
|
+
value: string;
|
|
167
|
+
label: string;
|
|
168
|
+
}
|
|
169
|
+
export interface FilterSegmentSelectProps {
|
|
170
|
+
value: string;
|
|
171
|
+
options: FilterSegmentOption[];
|
|
172
|
+
onChange: (value: string) => void;
|
|
173
|
+
placeholder?: string;
|
|
174
|
+
ariaLabel?: string;
|
|
175
|
+
className?: string;
|
|
176
|
+
testId?: string;
|
|
177
|
+
readOnly?: boolean;
|
|
178
|
+
}
|
|
179
|
+
export declare function FilterSegmentSelect({ value, options, onChange, placeholder, ariaLabel, className, testId, readOnly, }: FilterSegmentSelectProps): React.JSX.Element;
|
|
180
|
+
export interface FilterSegmentMultiSelectProps {
|
|
181
|
+
values: string[];
|
|
182
|
+
options: FilterSegmentOption[];
|
|
183
|
+
onChange: (values: string[]) => void;
|
|
184
|
+
placeholder?: string;
|
|
185
|
+
searchPlaceholder?: string;
|
|
186
|
+
ariaLabel?: string;
|
|
187
|
+
className?: string;
|
|
188
|
+
testId?: string;
|
|
189
|
+
readOnly?: boolean;
|
|
190
|
+
}
|
|
191
|
+
export declare function FilterSegmentMultiSelect({ values, options, onChange, placeholder, searchPlaceholder, ariaLabel, className, testId, readOnly, }: FilterSegmentMultiSelectProps): React.JSX.Element;
|
|
192
|
+
export interface FilterSegmentInputProps {
|
|
193
|
+
value: string;
|
|
194
|
+
onChange: (value: string) => void;
|
|
195
|
+
placeholder?: string;
|
|
196
|
+
ariaLabel?: string;
|
|
197
|
+
className?: string;
|
|
198
|
+
testId?: string;
|
|
199
|
+
readOnly?: boolean;
|
|
200
|
+
}
|
|
201
|
+
export declare function FilterSegmentInput({ value, onChange, placeholder, ariaLabel, className, testId, readOnly, }: FilterSegmentInputProps): React.JSX.Element;
|
|
202
|
+
export interface Filter<T = unknown> {
|
|
203
|
+
id: string;
|
|
204
|
+
field: string;
|
|
205
|
+
operator: string;
|
|
206
|
+
values: T[];
|
|
207
|
+
}
|
|
208
|
+
export interface FilterGroup<T = unknown> {
|
|
209
|
+
id: string;
|
|
210
|
+
label?: string;
|
|
211
|
+
filters: Filter<T>[];
|
|
212
|
+
fields: FilterFieldConfig<T>[];
|
|
213
|
+
}
|
|
214
|
+
interface FiltersContentProps<T = unknown> {
|
|
215
|
+
filters: Filter<T>[];
|
|
216
|
+
fields: FilterFieldsConfig<T>;
|
|
217
|
+
onChange: (filters: Filter<T>[]) => void;
|
|
218
|
+
}
|
|
219
|
+
export declare const FiltersContent: <T = unknown>({ filters, fields, onChange, }: FiltersContentProps<T>) => React.JSX.Element;
|
|
220
|
+
declare const FiltersTrigger: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
221
|
+
/** Collapse the previous header label below lg; the accessible name remains. */
|
|
222
|
+
collapseLabel?: boolean;
|
|
223
|
+
/** Temporary appearance choices for existing screens while Admin 7 is disabled. */
|
|
224
|
+
fallbackStyle?: 'list' | 'funnel' | 'funnel-plus';
|
|
225
|
+
fallbackClassName?: string;
|
|
226
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
227
|
+
interface FiltersProps<T = unknown> {
|
|
228
|
+
filters: Filter<T>[];
|
|
229
|
+
fields: FilterFieldsConfig<T>;
|
|
230
|
+
onChange: (filters: Filter<T>[]) => void;
|
|
231
|
+
className?: string;
|
|
232
|
+
showAddButton?: boolean;
|
|
233
|
+
addButtonText?: string;
|
|
234
|
+
addButtonIcon?: React.ReactNode;
|
|
235
|
+
addButtonClassName?: string;
|
|
236
|
+
addButtonVariant?: 'solid' | 'outline' | 'ghost' | 'secondary';
|
|
237
|
+
addButton?: React.ReactNode;
|
|
238
|
+
showClearButton?: boolean;
|
|
239
|
+
clearButtonText?: string;
|
|
240
|
+
clearButtonIcon?: React.ReactNode;
|
|
241
|
+
clearButtonClassName?: string;
|
|
242
|
+
clearButton?: React.ReactNode;
|
|
243
|
+
onClear?: () => void;
|
|
244
|
+
variant?: 'solid' | 'outline';
|
|
245
|
+
size?: 'sm' | 'md' | 'lg';
|
|
246
|
+
radius?: 'md' | 'full';
|
|
247
|
+
i18n?: Partial<FilterI18nConfig>;
|
|
248
|
+
showSearchInput?: boolean;
|
|
249
|
+
cursorPointer?: boolean;
|
|
250
|
+
trigger?: React.ReactNode;
|
|
251
|
+
allowMultiple?: boolean;
|
|
252
|
+
popoverContentClassName?: string;
|
|
253
|
+
popoverAlign?: 'start' | 'center' | 'end';
|
|
254
|
+
keyboardShortcut?: string;
|
|
255
|
+
onActiveFieldChange?: (fieldKey: string | null) => void;
|
|
256
|
+
}
|
|
257
|
+
export declare function Filters<T = unknown>({ filters, fields, onChange, className, showAddButton, addButtonText, addButtonIcon, addButtonClassName, addButtonVariant, addButton, showClearButton, clearButtonText, clearButtonIcon, clearButtonClassName, clearButton, onClear, variant, size, radius, i18n, showSearchInput, cursorPointer, trigger, allowMultiple, popoverContentClassName, popoverAlign, keyboardShortcut, onActiveFieldChange, }: FiltersProps<T>): React.JSX.Element;
|
|
258
|
+
export declare namespace Filters {
|
|
259
|
+
export { FiltersTrigger as Trigger };
|
|
260
|
+
}
|
|
261
|
+
export {};
|
|
262
|
+
//# sourceMappingURL=filters.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filters.d.ts","sourceRoot":"","sources":["../../../src/components/patterns/filters.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAuD/B,MAAM,WAAW,gBAAgB;IAE/B,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,EAAE,EAAE,MAAM,CAAC;IACX,iBAAiB,EAAE,MAAM,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IAGvB,SAAS,EAAE;QACT,EAAE,EAAE,MAAM,CAAC;QACX,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,CAAC;QAChB,UAAU,EAAE,MAAM,CAAC;QACnB,WAAW,EAAE,MAAM,CAAC;QACpB,WAAW,EAAE,MAAM,CAAC;QACpB,MAAM,EAAE,MAAM,CAAC;QACf,KAAK,EAAE,MAAM,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Ac"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface TooltipPayload {
|
|
3
|
+
value: number;
|
|
4
|
+
payload: {
|
|
5
|
+
date?: string;
|
|
6
|
+
formattedValue?: string;
|
|
7
|
+
label?: string;
|
|
8
|
+
diffValue?: null | number;
|
|
9
|
+
formattedDiffValue?: null | string;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
interface TooltipProps {
|
|
13
|
+
active?: boolean;
|
|
14
|
+
payload?: TooltipPayload[];
|
|
15
|
+
range?: number;
|
|
16
|
+
showHours?: boolean;
|
|
17
|
+
color?: string;
|
|
18
|
+
}
|
|
19
|
+
declare const GhCustomTooltipContent: ({ active, payload, range, showHours, color }: TooltipProps) => React.JSX.Element | null;
|
|
20
|
+
export type GhAreaChartDataItem = {
|
|
21
|
+
date: string;
|
|
22
|
+
value: number;
|
|
23
|
+
formattedValue: string;
|
|
24
|
+
label: string;
|
|
25
|
+
};
|
|
26
|
+
interface GhAreaChartProps {
|
|
27
|
+
data: GhAreaChartDataItem[];
|
|
28
|
+
range: number;
|
|
29
|
+
yAxisRange?: [number, number];
|
|
30
|
+
color?: string;
|
|
31
|
+
id: string;
|
|
32
|
+
className?: string;
|
|
33
|
+
syncId?: string;
|
|
34
|
+
allowDataOverflow?: boolean;
|
|
35
|
+
showYAxisValues?: boolean;
|
|
36
|
+
showHorizontalLines?: boolean;
|
|
37
|
+
dataFormatter?: (value: number) => string;
|
|
38
|
+
showHours?: boolean;
|
|
39
|
+
tooltipContent?: React.ReactElement;
|
|
40
|
+
}
|
|
41
|
+
declare const GhAreaChart: React.FC<GhAreaChartProps>;
|
|
42
|
+
export { GhAreaChart, GhCustomTooltipContent };
|
|
43
|
+
export type { TooltipProps };
|
|
44
|
+
//# sourceMappingURL=gh-chart.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gh-chart.d.ts","sourceRoot":"","sources":["../../../src/components/patterns/gh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AAM,CAAC;IAC1C,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;CACrC;AAED,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAwG3C,CAAC;AAEF,OAAO,EAAE,WAAW,EAAE,sBAAsB,EAAE,CAAC;AAE/C,YAAY,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
declare const imageUploadPreviewVariants: (props?: ({
|
|
2
|
+
background?: "checkerboard" | "default" | null | undefined;
|
|
3
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
4
|
+
export { imageUploadPreviewVariants };
|
|
5
|
+
//# sourceMappingURL=image-upload-variants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image-upload-variants.d.ts","sourceRoot":"","sources":["../../../src/components/patterns/image-upload-variants.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,0BAA0B;;8EAc/B,CAAC;AAEF,OAAO,EAAE,0BAA0B,EAAE,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
3
|
+
import { imageUploadPreviewVariants } from '../../components/patterns/image-upload-variants';
|
|
4
|
+
import { type ButtonProps } from '../../components/ui/button';
|
|
5
|
+
import { type DropzoneProps } from '../../components/ui/dropzone';
|
|
6
|
+
declare const ImageUpload: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
declare const ImageUploadDropzone: React.ForwardRefExoticComponent<DropzoneProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
export interface ImageUploadPreviewProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof imageUploadPreviewVariants> {
|
|
9
|
+
}
|
|
10
|
+
declare const ImageUploadPreview: React.ForwardRefExoticComponent<ImageUploadPreviewProps & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
declare const ImageUploadImage: React.ForwardRefExoticComponent<React.ImgHTMLAttributes<HTMLImageElement> & React.RefAttributes<HTMLImageElement>>;
|
|
12
|
+
declare const ImageUploadActions: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
declare const ImageUploadAction: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
14
|
+
export { ImageUpload, ImageUploadAction, ImageUploadActions, ImageUploadDropzone, ImageUploadImage, ImageUploadPreview, };
|
|
15
|
+
//# sourceMappingURL=image-upload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image-upload.d.ts","sourceRoot":"","sources":["../../../src/components/patterns/image-upload.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,OAAO,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AACzF,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAY,KAAK,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAKxE,QAAA,MAAM,WAAW,6GAShB,CAAC;AAGF,QAAA,MAAM,mBAAmB,sFAUxB,CAAC;AAGF,MAAM,WAAW,uBACf,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,YAAY,CAAC,OAAO,0BAA0B,CAAC;CAAG;AAElG,QAAA,MAAM,kBAAkB,gGAUvB,CAAC;AAGF,QAAA,MAAM,gBAAgB,oHAWpB,CAAC;AAGH,QAAA,MAAM,kBAAkB,6GAYvB,CAAC;AAGF,QAAA,MAAM,iBAAiB,uFAetB,CAAC;AAGF,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,kBAAkB,GACnB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare const KpiCardHeader: React.FC<React.HTMLAttributes<HTMLDivElement>>;
|
|
3
|
+
declare const KpiCardHeaderLabel: React.FC<React.HTMLAttributes<HTMLDivElement>>;
|
|
4
|
+
interface KpiCardValueProps {
|
|
5
|
+
value: string | number;
|
|
6
|
+
diffDirection?: 'up' | 'down' | 'same' | 'empty' | 'hidden';
|
|
7
|
+
diffValue?: string | number;
|
|
8
|
+
diffTooltip?: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
declare const KpiCardHeaderValue: React.FC<KpiCardValueProps>;
|
|
11
|
+
export { KpiCardHeader, KpiCardHeaderLabel, KpiCardHeaderValue };
|
|
12
|
+
//# sourceMappingURL=kpi-card.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kpi-card.d.ts","sourceRoot":"","sources":["../../../src/components/patterns/kpi-card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,CAgBjE,CAAC;AAEF,QAAA,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,CAuBtE,CAAC;AAEF,UAAU,iBAAiB;IACzB,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC;IAC5D,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC/B;AAED,QAAA,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CA8BnD,CAAC;AAEF,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as LucideIcons from 'lucide-react';
|
|
3
|
+
import { ButtonProps } from '../../components/ui/button';
|
|
4
|
+
import { TabsTrigger } from '../../components/ui/tabs';
|
|
5
|
+
interface KpiTabTriggerProps extends React.ComponentProps<typeof TabsTrigger> {
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
declare const KpiTabTrigger: React.FC<KpiTabTriggerProps>;
|
|
9
|
+
interface KpiTabValueProps {
|
|
10
|
+
color?: string;
|
|
11
|
+
icon?: keyof typeof LucideIcons;
|
|
12
|
+
label: string;
|
|
13
|
+
value: string | number;
|
|
14
|
+
diffDirection?: 'up' | 'down' | 'same' | 'hidden';
|
|
15
|
+
diffValue?: string | number;
|
|
16
|
+
className?: string;
|
|
17
|
+
'data-testid'?: string;
|
|
18
|
+
}
|
|
19
|
+
declare const KpiTabValue: React.FC<KpiTabValueProps>;
|
|
20
|
+
interface KpiDropdownButtonProps extends ButtonProps {
|
|
21
|
+
className?: string;
|
|
22
|
+
children: React.ReactNode;
|
|
23
|
+
}
|
|
24
|
+
declare const KpiDropdownButton: React.ForwardRefExoticComponent<KpiDropdownButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
25
|
+
export { KpiTabTrigger, KpiTabValue, KpiDropdownButton };
|
|
26
|
+
//# sourceMappingURL=kpi-tabs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kpi-tabs.d.ts","sourceRoot":"","sources":["../../../src/components/patterns/kpi-tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,WAAW,MAAM,cAAc,CAAC;AAI5C,OAAO,EAAU,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAE7D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAGnD,UAAU,kBAAmB,SAAQ,KAAK,CAAC,cAAc,CAAC,OAAO,WAAW,CAAC;IAC3E,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAM/C,CAAC;AAEF,UAAU,gBAAgB;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,OAAO,WAAW,CAAC;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,MAAM,GAAG,QAAQ,CAAC;IAClD,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAgD3C,CAAC;AAEF,UAAU,sBAAuB,SAAQ,WAAW;IAClD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,QAAA,MAAM,iBAAiB,kGActB,CAAC;AAGF,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,iBAAiB,EAAE,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface PageHeaderLargeTitle {
|
|
2
|
+
/** Where the title renders large, above the page's header; null until it has mounted. */
|
|
3
|
+
slot: HTMLElement | null;
|
|
4
|
+
/** Called by a title as it mounts; returns its unregister. */
|
|
5
|
+
registerTitle: () => () => void;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Provided by a page template showing its title large (ListPage, with large
|
|
9
|
+
* titles on): PageHeader.Title then renders large into the slot as well as
|
|
10
|
+
* small in the header, which takes over as the page scrolls. Without it, the
|
|
11
|
+
* title renders as usual.
|
|
12
|
+
*/
|
|
13
|
+
export declare const PageHeaderLargeTitleContext: import("react").Context<PageHeaderLargeTitle | null>;
|
|
14
|
+
//# sourceMappingURL=page-header-large-title.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"page-header-large-title.d.ts","sourceRoot":"","sources":["../../../src/components/patterns/page-header-large-title.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,oBAAoB;IACnC,yFAAyF;IACzF,IAAI,EAAE,WAAW,GAAG,IAAI,CAAC;IACzB,8DAA8D;IAC9D,aAAa,EAAE,MAAM,MAAM,IAAI,CAAC;CACjC;AAED;;;;;GAKG;AACH,eAAO,MAAM,2BAA2B,sDAAmD,CAAC"}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { DropdownMenuContent, DropdownMenuTrigger } from '../../components/ui/dropdown-menu';
|
|
2
|
+
import { type ButtonProps } from '../../components/ui/button';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
type PropsWithChildrenAndClassName = React.PropsWithChildren & {
|
|
5
|
+
className?: string;
|
|
6
|
+
};
|
|
7
|
+
type PageHeaderProps = PropsWithChildrenAndClassName & {
|
|
8
|
+
sticky?: boolean;
|
|
9
|
+
blurredBackground?: boolean;
|
|
10
|
+
};
|
|
11
|
+
/** Header tooltips require Admin 7 and never belong on primary actions. */
|
|
12
|
+
declare function PageHeaderTooltip({ children, label, shortcut, }: React.PropsWithChildren<{
|
|
13
|
+
label: string;
|
|
14
|
+
shortcut?: string;
|
|
15
|
+
}>): React.JSX.Element;
|
|
16
|
+
declare const PageHeaderTooltipTrigger: React.ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/react-tooltip").TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
17
|
+
type PageHeaderActionProps = ButtonProps & {
|
|
18
|
+
label: string;
|
|
19
|
+
iconOnly?: boolean;
|
|
20
|
+
primary?: boolean;
|
|
21
|
+
shortcut?: string;
|
|
22
|
+
/** Show an explanation for a changing value; static labels need no tooltip. */
|
|
23
|
+
tooltip?: boolean;
|
|
24
|
+
/** Temporary compatibility for existing screens; new headers use the defaults. */
|
|
25
|
+
fallbackVariant?: ButtonProps['variant'];
|
|
26
|
+
fallbackSize?: ButtonProps['size'];
|
|
27
|
+
};
|
|
28
|
+
declare const PageHeaderAction: React.ForwardRefExoticComponent<ButtonProps & {
|
|
29
|
+
label: string;
|
|
30
|
+
iconOnly?: boolean;
|
|
31
|
+
primary?: boolean;
|
|
32
|
+
shortcut?: string;
|
|
33
|
+
/** Show an explanation for a changing value; static labels need no tooltip. */
|
|
34
|
+
tooltip?: boolean;
|
|
35
|
+
/** Temporary compatibility for existing screens; new headers use the defaults. */
|
|
36
|
+
fallbackVariant?: ButtonProps['variant'];
|
|
37
|
+
fallbackSize?: ButtonProps['size'];
|
|
38
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
39
|
+
declare const PageHeaderFilterTrigger: React.ForwardRefExoticComponent<Omit<PageHeaderActionProps, "label"> & React.RefAttributes<HTMLButtonElement>>;
|
|
40
|
+
declare const PageHeaderSelectTrigger: React.ForwardRefExoticComponent<Omit<import("../../components/ui/select").SelectTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
41
|
+
label: string;
|
|
42
|
+
tooltip?: boolean;
|
|
43
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
44
|
+
declare function PageHeaderBreadcrumb({ className, children }: PropsWithChildrenAndClassName): React.JSX.Element;
|
|
45
|
+
declare function PageHeaderCount({ className, children }: PropsWithChildrenAndClassName): React.JSX.Element;
|
|
46
|
+
declare function PageHeaderDescription({ className, children }: PropsWithChildrenAndClassName): React.JSX.Element;
|
|
47
|
+
declare function PageHeaderMeta({ className, children }: PropsWithChildrenAndClassName): React.JSX.Element;
|
|
48
|
+
/**
|
|
49
|
+
* `Title` accepts heading text plus optional `Count`, `Description`, and `Meta`
|
|
50
|
+
* children. `Count` flows inline inside the H1; `Description` and `Meta` stack
|
|
51
|
+
* below the heading.
|
|
52
|
+
*/
|
|
53
|
+
declare function PageHeaderTitle({ className, children }: PropsWithChildrenAndClassName): React.JSX.Element;
|
|
54
|
+
declare function PageHeaderLeft({ className, children }: PropsWithChildrenAndClassName): React.JSX.Element;
|
|
55
|
+
type PageHeaderActionGroupPrimaryProps = PropsWithChildrenAndClassName;
|
|
56
|
+
declare function PageHeaderActionGroupPrimary({ children, className }: PageHeaderActionGroupPrimaryProps): React.JSX.Element | null;
|
|
57
|
+
type PageHeaderActionGroupMobileMenuProps = React.PropsWithChildren;
|
|
58
|
+
declare function PageHeaderActionGroupMobileMenu({ children }: PageHeaderActionGroupMobileMenuProps): React.JSX.Element;
|
|
59
|
+
type PageHeaderActionGroupMobileMenuTriggerProps = React.ComponentPropsWithoutRef<typeof DropdownMenuTrigger>;
|
|
60
|
+
declare function PageHeaderActionGroupMobileMenuTrigger({ children, ...props }: PageHeaderActionGroupMobileMenuTriggerProps): React.JSX.Element;
|
|
61
|
+
type PageHeaderActionGroupMobileMenuContentProps = React.ComponentPropsWithoutRef<typeof DropdownMenuContent>;
|
|
62
|
+
declare function PageHeaderActionGroupMobileMenuContent({ children, ...props }: PageHeaderActionGroupMobileMenuContentProps): React.JSX.Element;
|
|
63
|
+
type PageHeaderActionGroupProps = PropsWithChildrenAndClassName & {
|
|
64
|
+
mobileMenuBreakpoint?: number;
|
|
65
|
+
};
|
|
66
|
+
type PageHeaderActionGroupComponent = React.FC<PageHeaderActionGroupProps> & {
|
|
67
|
+
Primary: React.FC<PageHeaderActionGroupPrimaryProps>;
|
|
68
|
+
MobileMenu: React.FC<PageHeaderActionGroupMobileMenuProps>;
|
|
69
|
+
MobileMenuTrigger: React.FC<PageHeaderActionGroupMobileMenuTriggerProps>;
|
|
70
|
+
MobileMenuContent: React.FC<PageHeaderActionGroupMobileMenuContentProps>;
|
|
71
|
+
};
|
|
72
|
+
declare const PageHeaderActionGroup: PageHeaderActionGroupComponent;
|
|
73
|
+
declare function PageHeaderActions({ className, children }: PropsWithChildrenAndClassName): React.JSX.Element;
|
|
74
|
+
type PageHeaderComponent = React.FC<PageHeaderProps> & {
|
|
75
|
+
Left: React.FC<PropsWithChildrenAndClassName>;
|
|
76
|
+
Breadcrumb: React.FC<PropsWithChildrenAndClassName>;
|
|
77
|
+
Title: React.FC<PropsWithChildrenAndClassName>;
|
|
78
|
+
Count: React.FC<PropsWithChildrenAndClassName>;
|
|
79
|
+
Description: React.FC<PropsWithChildrenAndClassName>;
|
|
80
|
+
Meta: React.FC<PropsWithChildrenAndClassName>;
|
|
81
|
+
Actions: React.FC<PropsWithChildrenAndClassName>;
|
|
82
|
+
ActionGroup: PageHeaderActionGroupComponent;
|
|
83
|
+
Action: typeof PageHeaderAction;
|
|
84
|
+
FilterTrigger: typeof PageHeaderFilterTrigger;
|
|
85
|
+
SelectTrigger: typeof PageHeaderSelectTrigger;
|
|
86
|
+
Tooltip: typeof PageHeaderTooltip;
|
|
87
|
+
TooltipTrigger: typeof PageHeaderTooltipTrigger;
|
|
88
|
+
};
|
|
89
|
+
/**
|
|
90
|
+
* PageHeader is the canonical page-chrome component for Ghost Admin pages.
|
|
91
|
+
*
|
|
92
|
+
* The main row contains `Left` (Breadcrumb + Title) and `Actions`.
|
|
93
|
+
* Compose optional ViewBar and FilterBar rows beside it in ListPage.Header.
|
|
94
|
+
* `Title` accepts an inline `Count` and stacked `Description`/`Meta` children.
|
|
95
|
+
* See page-header.mdx for the action ordering and interaction contract.
|
|
96
|
+
*/
|
|
97
|
+
declare const PageHeader: PageHeaderComponent;
|
|
98
|
+
export { PageHeader, PageHeaderLeft, PageHeaderBreadcrumb, PageHeaderTitle, PageHeaderCount, PageHeaderDescription, PageHeaderMeta, PageHeaderActions, PageHeaderActionGroup, PageHeaderActionGroupPrimary, PageHeaderActionGroupMobileMenu, PageHeaderActionGroupMobileMenuTrigger, PageHeaderActionGroupMobileMenuContent, };
|
|
99
|
+
//# sourceMappingURL=page-header.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"page-header.d.ts","sourceRoot":"","sources":["../../../src/components/patterns/page-header.tsx"],"names":[],"mappings":"AAEA,OAAO,EAEL,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAQlE,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,KAAK,6BAA6B,GAAG,KAAK,CAAC,iBAAiB,GAAG;IAC7D,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,KAAK,eAAe,GAAG,6BAA6B,GAAG;IACrD,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B,CAAC;AAEF,2EAA2E;AAC3E,iBAAS,iBAAiB,CAAC,EACzB,QAAQ,EACR,KAAK,EACL,QAAQ,GACT,EAAE,KAAK,CAAC,iBAAiB,CAAC;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,qBAgB/D;AAED,QAAA,MAAM,wBAAwB,6OAe5B,CAAC;AAKH,KAAK,qBAAqB,GAAG,WAAW,GAAG;IACzC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,+EAA+E;IAC/E,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,kFAAkF;IAClF,eAAe,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IACzC,YAAY,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CACpC,CAAC;AAEF,Q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C;IAC5C,MAAM,EAAE,OAAO,gBAAgB,CAAC;IAChC,aAAa,EAAE,OAAO,uBAAuB,CAAC;IAC9C,aAAa,EAAE,OAAO,uBAAuB,CAAC;IAC9C,OAAO,EAAE,OAAO,iBAAiB,CAAC;IAClC,cAAc,EAAE,OAAO,wBAAwB,CAAC;CACjD,CAAC;AAEF;;;;;;;GAOG;AACH,QAAA,MAAM,UAAU,EAAE,mBAuCjB,CAAC;AAEF,OAAO,EACL,UAAU,EACV,cAAc,EACd,oBAAoB,EACpB,eAAe,EACf,eAAe,EACf,qBAAqB,EACrB,cAAc,EACd,iBAAiB,EACjB,qBAAqB,EACrB,4BAA4B,EAC5B,+BAA+B,EAC/B,sCAAsC,EACtC,sCAAsC,GACvC,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const settingGroupVariants: (props?: ({
|
|
2
|
+
variant?: "outline" | "plain" | null | undefined;
|
|
3
|
+
highlighted?: boolean | null | undefined;
|
|
4
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
5
|
+
export { settingGroupVariants };
|
|
6
|
+
//# sourceMappingURL=setting-group-variants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setting-group-variants.d.ts","sourceRoot":"","sources":["../../../src/components/patterns/setting-group-variants.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,oBAAoB;;;8EAkBzB,CAAC;AAEF,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
3
|
+
import { settingGroupVariants } from '../../components/patterns/setting-group-variants';
|
|
4
|
+
interface SettingGroupProps extends React.ComponentPropsWithoutRef<'div'>, VariantProps<typeof settingGroupVariants> {
|
|
5
|
+
editing?: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare const SettingGroup: React.ForwardRefExoticComponent<SettingGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
declare const SettingGroupHeader: React.ForwardRefExoticComponent<Omit<import("../../components/primitives/inline").InlineProps & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
9
|
+
declare const SettingGroupDetails: React.ForwardRefExoticComponent<Omit<import("../../components/primitives/stack").StackProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
declare const SettingGroupTitle: React.ForwardRefExoticComponent<Omit<import("../../components/primitives/text").TextProps & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
11
|
+
declare const SettingGroupDescription: React.ForwardRefExoticComponent<Omit<import("../../components/primitives/text").TextProps & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
12
|
+
declare const SettingGroupActions: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
interface SettingGroupContentProps extends React.ComponentPropsWithoutRef<'div'> {
|
|
14
|
+
columns?: 1 | 2;
|
|
15
|
+
}
|
|
16
|
+
declare const SettingGroupContent: React.ForwardRefExoticComponent<SettingGroupContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
+
declare const SettingGroupValue: React.ForwardRefExoticComponent<Omit<import("../../components/primitives/stack").StackProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
18
|
+
declare const SettingGroupValueTitle: React.ForwardRefExoticComponent<Omit<import("../../components/primitives/text").TextProps & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
19
|
+
declare const SettingGroupValueContent: React.ForwardRefExoticComponent<Omit<import("../../components/primitives/inline").InlineProps & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
20
|
+
export { SettingGroup, SettingGroupActions, SettingGroupContent, SettingGroupDescription, SettingGroupDetails, SettingGroupHeader, SettingGroupTitle, SettingGroupValue, SettingGroupValueContent, SettingGroupValueTitle, };
|
|
21
|
+
export type { SettingGroupContentProps, SettingGroupProps };
|
|
22
|
+
//# sourceMappingURL=setting-group.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setting-group.d.ts","sourceRoot":"","sources":["../../../src/components/patterns/setting-group.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,8CAA8C,CAAC;AAOpF,UAAU,iBACR,SAAQ,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,YAAY,CAAC,OAAO,oBAAoB,CAAC;IACxF,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,QAAA,MAAM,YAAY,0FASjB,CAAC;AAGF,QAAA,MAAM,kBAAkB,0KAatB,CAAC;AAGH,QAAA,MAAM,mBAAmB,8KAKvB,CAAC;AAGH,QAAA,MAAM,iBAAiB,sKAYrB,CAAC;AAGH,QAAA,MAAM,uBAAuB,sKAY3B,CAAC;AAGH,QAAA,MAAM,mBAAmB,mKAIxB,CAAC;AAGF,UAAU,wBAAyB,SAAQ,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC;IAC9E,OAAO,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;CACjB;AAED,QAAA,MAAM,mBAAmB,iGAsBxB,CAAC;AAGF,QAAA,MAAM,iBAAiB,8KAKrB,CAAC;AAGH,QAAA,MAAM,sBAAsB,sKAK1B,CAAC;AAGH,QAAA,MAAM,wBAAwB,0KAK5B,CAAC;AAGH,OAAO,EACL,YAAY,EACZ,mBAAmB,EACnB,mBAAmB,EACnB,uBAAuB,EACvB,mBAAmB,EACnB,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,wBAAwB,EACxB,sBAAsB,GACvB,CAAC;AACF,YAAY,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
declare const settingsModalVariants: (props?: ({
|
|
2
|
+
size?: "bleed" | "full" | "lg" | "md" | "sm" | "xl" | null | undefined;
|
|
3
|
+
align?: "center" | "left" | "right" | null | undefined;
|
|
4
|
+
scrolling?: boolean | null | undefined;
|
|
5
|
+
formSheet?: boolean | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
+
export { settingsModalVariants };
|
|
8
|
+
//# sourceMappingURL=settings-modal-variants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings-modal-variants.d.ts","sourceRoot":"","sources":["../../../src/components/patterns/settings-modal-variants.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,qBAAqB;;;;;8EAiC1B,CAAC;AAEF,OAAO,EAAE,qBAAqB,EAAE,CAAC"}
|