themelia-react-ui 0.0.0-stage → 1.0.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/CHANGELOG.md +64 -0
- package/LICENSE +21 -0
- package/README.md +249 -2
- package/THIRD_PARTY_NOTICES.md +65 -0
- package/dist/accordion-BRWh3BM1.js +205 -0
- package/dist/accordion-BRWh3BM1.js.map +1 -0
- package/dist/action-menu-Cx3SdfbN.js +265 -0
- package/dist/action-menu-Cx3SdfbN.js.map +1 -0
- package/dist/action-presentation.js +11 -0
- package/dist/action-presentation.js.map +1 -0
- package/dist/affordance-geometry.generated-DXl-Zb3Z.js +23 -0
- package/dist/affordance-geometry.generated-DXl-Zb3Z.js.map +1 -0
- package/dist/ai-artifact-DkOArd3-.js +1121 -0
- package/dist/ai-artifact-DkOArd3-.js.map +1 -0
- package/dist/anchored-positioning-DPnKTvNs.js +6 -0
- package/dist/anchored-positioning-DPnKTvNs.js.map +1 -0
- package/dist/app-shell-BH_bGcE2.js +235 -0
- package/dist/app-shell-BH_bGcE2.js.map +1 -0
- package/dist/attachment-DsLgNHXt.js +244 -0
- package/dist/attachment-DsLgNHXt.js.map +1 -0
- package/dist/auth-BDB1V_2q.js +704 -0
- package/dist/auth-BDB1V_2q.js.map +1 -0
- package/dist/avatar-CsnWaYmt.js +173 -0
- package/dist/avatar-CsnWaYmt.js.map +1 -0
- package/dist/badge-BZXZT9wd.js +92 -0
- package/dist/badge-BZXZT9wd.js.map +1 -0
- package/dist/base/accordion.js +3 -0
- package/dist/base/action-menu.js +3 -0
- package/dist/base/attachment.js +3 -0
- package/dist/base/avatar.js +3 -0
- package/dist/base/badge.js +3 -0
- package/dist/base/buttons.js +3 -0
- package/dist/base/cards.js +4 -0
- package/dist/base/carousel.js +251 -0
- package/dist/base/carousel.js.map +1 -0
- package/dist/base/cascader.js +361 -0
- package/dist/base/cascader.js.map +1 -0
- package/dist/base/chart.js +3 -0
- package/dist/base/choice-inputs.js +3 -0
- package/dist/base/code-block.js +3 -0
- package/dist/base/combobox.js +3 -0
- package/dist/base/command.js +3 -0
- package/dist/base/copyable.js +3 -0
- package/dist/base/date-pickers.js +4 -0
- package/dist/base/display.js +8 -0
- package/dist/base/feedback.js +4 -0
- package/dist/base/forms-numeric.js +3 -0
- package/dist/base/forms.js +4 -0
- package/dist/base/item.js +3 -0
- package/dist/base/media-gallery.js +3 -0
- package/dist/base/navigation.js +8 -0
- package/dist/base/popover-menu.js +3 -0
- package/dist/base/popover.js +3 -0
- package/dist/base/qr-code.js +63 -0
- package/dist/base/qr-code.js.map +1 -0
- package/dist/base/repeaters.js +620 -0
- package/dist/base/repeaters.js.map +1 -0
- package/dist/base/sheet.js +3 -0
- package/dist/base/sidebar.js +3 -0
- package/dist/base/signature-pad.js +364 -0
- package/dist/base/signature-pad.js.map +1 -0
- package/dist/base/skeleton.js +3 -0
- package/dist/base/spinner.js +3 -0
- package/dist/base/structure.js +3 -0
- package/dist/base/table.js +3 -0
- package/dist/base/text-inputs.js +4 -0
- package/dist/base/toaster.js +102 -0
- package/dist/base/toaster.js.map +1 -0
- package/dist/base/tree.js +3 -0
- package/dist/base/upload-queue.js +3 -0
- package/dist/base/upload.js +5 -0
- package/dist/base/value-inputs.js +3 -0
- package/dist/blocks/admin.js +478 -0
- package/dist/blocks/admin.js.map +1 -0
- package/dist/blocks/ai.js +1021 -0
- package/dist/blocks/ai.js.map +1 -0
- package/dist/blocks/analytics.js +1499 -0
- package/dist/blocks/analytics.js.map +1 -0
- package/dist/blocks/collaboration.js +3 -0
- package/dist/blocks/commerce/receipt.js +3 -0
- package/dist/blocks/commerce.js +3393 -0
- package/dist/blocks/commerce.js.map +1 -0
- package/dist/blocks/data-display.js +3 -0
- package/dist/blocks/onboarding.js +128 -0
- package/dist/blocks/onboarding.js.map +1 -0
- package/dist/blocks/timelines.js +3 -0
- package/dist/breadcrumbs-DdQ_I5ra.js +127 -0
- package/dist/breadcrumbs-DdQ_I5ra.js.map +1 -0
- package/dist/button-BS6l5JUw.js +47 -0
- package/dist/button-BS6l5JUw.js.map +1 -0
- package/dist/buttons-Co6GavvM.js +674 -0
- package/dist/buttons-Co6GavvM.js.map +1 -0
- package/dist/cards-BMB0laLG.js +66 -0
- package/dist/cards-BMB0laLG.js.map +1 -0
- package/dist/chart-DVfcwQu6.js +149 -0
- package/dist/chart-DVfcwQu6.js.map +1 -0
- package/dist/choice-inputs-CavA-SGV.js +644 -0
- package/dist/choice-inputs-CavA-SGV.js.map +1 -0
- package/dist/code-block-DIlqzoiD.js +183 -0
- package/dist/code-block-DIlqzoiD.js.map +1 -0
- package/dist/collapsible-DsnktFNv.js +81 -0
- package/dist/collapsible-DsnktFNv.js.map +1 -0
- package/dist/collection-content-C4fthJV_.js +53 -0
- package/dist/collection-content-C4fthJV_.js.map +1 -0
- package/dist/combobox-CHD750do.js +850 -0
- package/dist/combobox-CHD750do.js.map +1 -0
- package/dist/combobox-HDftpzxt.js +273 -0
- package/dist/combobox-HDftpzxt.js.map +1 -0
- package/dist/command-D0kWBZfd.js +421 -0
- package/dist/command-D0kWBZfd.js.map +1 -0
- package/dist/comments-CvYeglMS.js +1132 -0
- package/dist/comments-CvYeglMS.js.map +1 -0
- package/dist/component-vocabulary.js +26 -0
- package/dist/component-vocabulary.js.map +1 -0
- package/dist/components/base/accordion/accordion-variants.d.ts +36 -0
- package/dist/components/base/accordion/accordion.d.ts +20 -0
- package/dist/components/base/accordion/accordion.strings.d.ts +15 -0
- package/dist/components/base/accordion/accordion.types.d.ts +74 -0
- package/dist/components/base/accordion/index.d.ts +4 -0
- package/dist/components/base/accordion/smart-accordion.d.ts +7 -0
- package/dist/components/base/action-menu/action-menu.d.ts +147 -0
- package/dist/components/base/action-menu/action-menu.strings.d.ts +4 -0
- package/dist/components/base/action-menu/index.d.ts +11 -0
- package/dist/components/base/attachment/attachment.d.ts +17 -0
- package/dist/components/base/attachment/attachment.types.d.ts +49 -0
- package/dist/components/base/attachment/index.d.ts +2 -0
- package/dist/components/base/avatar/avatar.d.ts +24 -0
- package/dist/components/base/avatar/index.d.ts +14 -0
- package/dist/components/base/avatar/stacked-avatars.d.ts +39 -0
- package/dist/components/base/badge/badge.d.ts +22 -0
- package/dist/components/base/badge/badge.recipes.d.ts +20 -0
- package/dist/components/base/badge/index.d.ts +2 -0
- package/dist/components/base/buttons/base-button.d.ts +24 -0
- package/dist/components/base/buttons/button-group.d.ts +28 -0
- package/dist/components/base/buttons/button-group.recipes.d.ts +6 -0
- package/dist/components/base/buttons/button.d.ts +47 -0
- package/dist/components/base/buttons/button.recipes.d.ts +23 -0
- package/dist/components/base/buttons/button.variants.d.ts +8 -0
- package/dist/components/base/buttons/index.d.ts +7 -0
- package/dist/components/base/buttons/loader-button.d.ts +40 -0
- package/dist/components/base/buttons/text-button.d.ts +19 -0
- package/dist/components/base/buttons/tooltip-button.d.ts +7 -0
- package/dist/components/base/cards/card-actions.d.ts +41 -0
- package/dist/components/base/cards/card.recipes.d.ts +28 -0
- package/dist/components/base/cards/index.d.ts +5 -0
- package/dist/components/base/cards/partials/card-primitives.d.ts +21 -0
- package/dist/components/base/cards/partials/has-renderable-content.d.ts +8 -0
- package/dist/components/base/cards/partials/smart-card-actions-menu.d.ts +8 -0
- package/dist/components/base/cards/partials/smart-card-alert.d.ts +20 -0
- package/dist/components/base/cards/partials/smart-card-header-row.d.ts +33 -0
- package/dist/components/base/cards/partials/smart-card-skeleton.d.ts +16 -0
- package/dist/components/base/cards/smart-card.d.ts +9 -0
- package/dist/components/base/cards/smart-card.strings.d.ts +18 -0
- package/dist/components/base/cards/smart-card.tokens.d.ts +44 -0
- package/dist/components/base/cards/smart-card.types.d.ts +144 -0
- package/dist/components/base/carousel/carousel.d.ts +105 -0
- package/dist/components/base/carousel/carousel.strings.d.ts +6 -0
- package/dist/components/base/carousel/index.d.ts +2 -0
- package/dist/components/base/cascader/cascader.d.ts +2 -0
- package/dist/components/base/cascader/cascader.types.d.ts +57 -0
- package/dist/components/base/cascader/index.d.ts +2 -0
- package/dist/components/base/chart/chart.d.ts +99 -0
- package/dist/components/base/chart/index.d.ts +9 -0
- package/dist/components/base/choice-inputs/card-checkbox-group.d.ts +27 -0
- package/dist/components/base/choice-inputs/card-radio-group.d.ts +19 -0
- package/dist/components/base/choice-inputs/checkbox.d.ts +17 -0
- package/dist/components/base/choice-inputs/choice-types.d.ts +57 -0
- package/dist/components/base/choice-inputs/index.d.ts +28 -0
- package/dist/components/base/choice-inputs/list-radio-group.d.ts +13 -0
- package/dist/components/base/choice-inputs/pill-radio-group.d.ts +27 -0
- package/dist/components/base/choice-inputs/select-popup.d.ts +26 -0
- package/dist/components/base/choice-inputs/select.d.ts +94 -0
- package/dist/components/base/choice-inputs/switch-card.d.ts +36 -0
- package/dist/components/base/choice-inputs/switch.d.ts +38 -0
- package/dist/components/base/choice-inputs/toggle-field.d.ts +41 -0
- package/dist/components/base/code-block/code-block.d.ts +3 -0
- package/dist/components/base/code-block/code-block.types.d.ts +46 -0
- package/dist/components/base/code-block/index.d.ts +2 -0
- package/dist/components/base/code-block/use-code-copy.d.ts +6 -0
- package/dist/components/base/combobox/index.d.ts +27 -0
- package/dist/components/base/command/command.d.ts +73 -0
- package/dist/components/base/command/index.d.ts +1 -0
- package/dist/components/base/copyable/copyable.d.ts +36 -0
- package/dist/components/base/copyable/index.d.ts +1 -0
- package/dist/components/base/date-pickers/date-picker-footer.d.ts +14 -0
- package/dist/components/base/date-pickers/date-picker-header.d.ts +10 -0
- package/dist/components/base/date-pickers/date-picker-helpers.d.ts +87 -0
- package/dist/components/base/date-pickers/date-picker-internals.d.ts +10 -0
- package/dist/components/base/date-pickers/date-picker-multiple.d.ts +20 -0
- package/dist/components/base/date-pickers/date-picker-range.d.ts +15 -0
- package/dist/components/base/date-pickers/date-picker-single.d.ts +15 -0
- package/dist/components/base/date-pickers/date-picker.d.ts +3 -0
- package/dist/components/base/date-pickers/date-picker.recipes.d.ts +18 -0
- package/dist/components/base/date-pickers/date-pickers.strings.d.ts +14 -0
- package/dist/components/base/date-pickers/datepicker.types.d.ts +285 -0
- package/dist/components/base/date-pickers/index.d.ts +7 -0
- package/dist/components/base/date-pickers/month-year-picker.d.ts +4 -0
- package/dist/components/base/date-pickers/time-picker.d.ts +70 -0
- package/dist/components/base/display/alert-dialog.d.ts +25 -0
- package/dist/components/base/display/boolean-indicator.d.ts +25 -0
- package/dist/components/base/display/collapsible.d.ts +21 -0
- package/dist/components/base/display/content-block.d.ts +73 -0
- package/dist/components/base/display/content-block.strings.d.ts +5 -0
- package/dist/components/base/display/date-block.d.ts +70 -0
- package/dist/components/base/display/dialog.d.ts +35 -0
- package/dist/components/base/display/icon-badge/icon-badge.d.ts +45 -0
- package/dist/components/base/display/icon-badge/index.d.ts +1 -0
- package/dist/components/base/display/icon-size.d.ts +5 -0
- package/dist/components/base/display/index.d.ts +31 -0
- package/dist/components/base/display/placeholder-pattern.d.ts +7 -0
- package/dist/components/base/display/scroll-area.d.ts +12 -0
- package/dist/components/base/display/separator.d.ts +10 -0
- package/dist/components/base/display/surface-title.d.ts +10 -0
- package/dist/components/base/display/tooltip.d.ts +28 -0
- package/dist/components/base/display/visually-hidden.d.ts +14 -0
- package/dist/components/base/feedback/alert.d.ts +49 -0
- package/dist/components/base/feedback/empty.d.ts +48 -0
- package/dist/components/base/feedback/index.d.ts +27 -0
- package/dist/components/base/feedback/progress.d.ts +81 -0
- package/dist/components/base/feedback/progress.strings.d.ts +5 -0
- package/dist/components/base/feedback/state-display.d.ts +39 -0
- package/dist/components/base/forms/controlled-form-field.d.ts +32 -0
- package/dist/components/base/forms/controlled-form-field.strings.d.ts +7 -0
- package/dist/components/base/forms/form-field.d.ts +38 -0
- package/dist/components/base/forms/form-sizing.d.ts +86 -0
- package/dist/components/base/forms/index.d.ts +4 -0
- package/dist/components/base/forms/operation-password-form.d.ts +16 -0
- package/dist/components/base/forms/workflow.d.ts +68 -0
- package/dist/components/base/forms-numeric/coordinates-input.d.ts +47 -0
- package/dist/components/base/forms-numeric/currency-input.d.ts +44 -0
- package/dist/components/base/forms-numeric/decimal-input.d.ts +53 -0
- package/dist/components/base/forms-numeric/dimensions-input.d.ts +79 -0
- package/dist/components/base/forms-numeric/index.d.ts +21 -0
- package/dist/components/base/forms-numeric/money-input.d.ts +67 -0
- package/dist/components/base/forms-numeric/money-input.strings.d.ts +6 -0
- package/dist/components/base/forms-numeric/percentage-input.d.ts +8 -0
- package/dist/components/base/forms-numeric/rounding-mode-select.d.ts +12 -0
- package/dist/components/base/forms-numeric/weight-input.d.ts +54 -0
- package/dist/components/base/item/index.d.ts +2 -0
- package/dist/components/base/item/item.d.ts +12 -0
- package/dist/components/base/item/item.types.d.ts +100 -0
- package/dist/components/base/media-gallery/index.d.ts +2 -0
- package/dist/components/base/media-gallery/media-gallery.d.ts +45 -0
- package/dist/components/base/navigation/breadcrumbs.d.ts +37 -0
- package/dist/components/base/navigation/dropdown-menu.d.ts +45 -0
- package/dist/components/base/navigation/index.d.ts +21 -0
- package/dist/components/base/navigation/language-switcher.d.ts +12 -0
- package/dist/components/base/navigation/navigation-tabs.d.ts +40 -0
- package/dist/components/base/navigation/overflow-tab-bar.d.ts +43 -0
- package/dist/components/base/navigation/page-header/index.d.ts +1 -0
- package/dist/components/base/navigation/page-header/page-header.d.ts +88 -0
- package/dist/components/base/navigation/pagination.d.ts +61 -0
- package/dist/components/base/navigation/tab-scroll-viewport.d.ts +12 -0
- package/dist/components/base/navigation/tabs.d.ts +23 -0
- package/dist/components/base/popover/collection-content.d.ts +22 -0
- package/dist/components/base/popover/index.d.ts +1 -0
- package/dist/components/base/popover/popover.d.ts +54 -0
- package/dist/components/base/popover/popover.recipes.d.ts +29 -0
- package/dist/components/base/popover-menu/index.d.ts +3 -0
- package/dist/components/base/popover-menu/popover-menu.d.ts +82 -0
- package/dist/components/base/popover-menu/popover-menu.types.d.ts +30 -0
- package/dist/components/base/qr-code/index.d.ts +8 -0
- package/dist/components/base/qr-code/qr-code.d.ts +13 -0
- package/dist/components/base/repeaters/index.d.ts +21 -0
- package/dist/components/base/repeaters/key-value-editor.d.ts +27 -0
- package/dist/components/base/repeaters/localized-object-field.d.ts +35 -0
- package/dist/components/base/repeaters/localized-string-field.d.ts +25 -0
- package/dist/components/base/repeaters/localized-string-repeater.d.ts +44 -0
- package/dist/components/base/repeaters/object-repeater.d.ts +66 -0
- package/dist/components/base/repeaters/repeater.d.ts +87 -0
- package/dist/components/base/repeaters/repeaters.strings.d.ts +16 -0
- package/dist/components/base/repeaters/string-repeater.d.ts +65 -0
- package/dist/components/base/repeaters/string-repeater.utils.d.ts +2 -0
- package/dist/components/base/sheet/index.d.ts +1 -0
- package/dist/components/base/sheet/sheet.d.ts +35 -0
- package/dist/components/base/sidebar/index.d.ts +6 -0
- package/dist/components/base/sidebar/sidebar.d.ts +135 -0
- package/dist/components/base/signature-pad/index.d.ts +4 -0
- package/dist/components/base/signature-pad/signature-pad.d.ts +4 -0
- package/dist/components/base/signature-pad/signature-pad.types.d.ts +66 -0
- package/dist/components/base/signature-pad/signature-pad.utils.d.ts +8 -0
- package/dist/components/base/skeleton/index.d.ts +14 -0
- package/dist/components/base/skeleton/skeleton.d.ts +54 -0
- package/dist/components/base/spinner/index.d.ts +1 -0
- package/dist/components/base/spinner/spinner.d.ts +32 -0
- package/dist/components/base/structure/adaptive-grid.d.ts +3 -0
- package/dist/components/base/structure/grid-cell.d.ts +3 -0
- package/dist/components/base/structure/grid.d.ts +3 -0
- package/dist/components/base/structure/index.d.ts +5 -0
- package/dist/components/base/structure/stack.d.ts +3 -0
- package/dist/components/base/structure/structure.context.d.ts +6 -0
- package/dist/components/base/structure/structure.recipes.d.ts +27 -0
- package/dist/components/base/structure/structure.responsive.d.ts +5 -0
- package/dist/components/base/structure/structure.types.d.ts +51 -0
- package/dist/components/base/table/index.d.ts +18 -0
- package/dist/components/base/text-inputs/hooks/index.d.ts +1 -0
- package/dist/components/base/text-inputs/hooks/use-form-field-state.d.ts +48 -0
- package/dist/components/base/text-inputs/index.d.ts +21 -0
- package/dist/components/base/text-inputs/input-group.d.ts +46 -0
- package/dist/components/base/text-inputs/input.d.ts +45 -0
- package/dist/components/base/text-inputs/password-input.d.ts +28 -0
- package/dist/components/base/text-inputs/slug-field.d.ts +21 -0
- package/dist/components/base/text-inputs/textarea.d.ts +37 -0
- package/dist/components/base/toaster/index.d.ts +1 -0
- package/dist/components/base/toaster/toaster.d.ts +6 -0
- package/dist/components/base/tree/hierarchy.d.ts +11 -0
- package/dist/components/base/tree/index.d.ts +2 -0
- package/dist/components/base/tree/tree.d.ts +3 -0
- package/dist/components/base/tree/tree.types.d.ts +47 -0
- package/dist/components/base/upload/avatar-upload.d.ts +39 -0
- package/dist/components/base/upload/dropzone.d.ts +40 -0
- package/dist/components/base/upload/file-picker-input.d.ts +15 -0
- package/dist/components/base/upload/file-upload.d.ts +9 -0
- package/dist/components/base/upload/file-upload.strings.d.ts +18 -0
- package/dist/components/base/upload/file-upload.types.d.ts +68 -0
- package/dist/components/base/upload/file-upload.validation.d.ts +21 -0
- package/dist/components/base/upload/image-upload.d.ts +57 -0
- package/dist/components/base/upload/index.d.ts +26 -0
- package/dist/components/base/upload/use-file-drop-target.d.ts +22 -0
- package/dist/components/base/upload-queue/index.d.ts +3 -0
- package/dist/components/base/upload-queue/upload-progress-list.d.ts +55 -0
- package/dist/components/base/upload-queue/upload-tray.d.ts +46 -0
- package/dist/components/base/value-inputs/color-input.d.ts +26 -0
- package/dist/components/base/value-inputs/date-time-input.d.ts +19 -0
- package/dist/components/base/value-inputs/index.d.ts +25 -0
- package/dist/components/base/value-inputs/phone-input.d.ts +48 -0
- package/dist/components/base/value-inputs/slider.d.ts +59 -0
- package/dist/components/base/value-inputs/tags-input.d.ts +67 -0
- package/dist/components/blocks/admin/action-surfaces/index.d.ts +127 -0
- package/dist/components/blocks/admin/admin.strings.d.ts +11 -0
- package/dist/components/blocks/admin/api-key-list/api-key-list.d.ts +2 -0
- package/dist/components/blocks/admin/api-key-list/api-key-list.strings.d.ts +16 -0
- package/dist/components/blocks/admin/api-key-list/api-key-list.types.d.ts +58 -0
- package/dist/components/blocks/admin/api-key-list/index.d.ts +3 -0
- package/dist/components/blocks/admin/index.d.ts +4 -0
- package/dist/components/blocks/admin/role-permission/index.d.ts +2 -0
- package/dist/components/blocks/admin/role-permission/role-permission.d.ts +5 -0
- package/dist/components/blocks/admin/role-permission/types.d.ts +26 -0
- package/dist/components/blocks/ai/ai-agent/ai-agent.d.ts +5 -0
- package/dist/components/blocks/ai/ai-agent/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-agent/types.d.ts +30 -0
- package/dist/components/blocks/ai/ai-artifact/ai-artifact.d.ts +5 -0
- package/dist/components/blocks/ai/ai-artifact/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-artifact/types.d.ts +50 -0
- package/dist/components/blocks/ai/ai-attachment/ai-attachment.d.ts +5 -0
- package/dist/components/blocks/ai/ai-attachment/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-attachment/types.d.ts +35 -0
- package/dist/components/blocks/ai/ai-chain-of-thought/ai-chain-of-thought.d.ts +5 -0
- package/dist/components/blocks/ai/ai-chain-of-thought/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-chain-of-thought/types.d.ts +36 -0
- package/dist/components/blocks/ai/ai-citation/ai-citation.d.ts +5 -0
- package/dist/components/blocks/ai/ai-citation/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-citation/types.d.ts +38 -0
- package/dist/components/blocks/ai/ai-classification/ai-classification.d.ts +2 -0
- package/dist/components/blocks/ai/ai-classification/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-classification/types.d.ts +27 -0
- package/dist/components/blocks/ai/ai-code-block/ai-code-block.d.ts +6 -0
- package/dist/components/blocks/ai/ai-code-block/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-code-block/types.d.ts +38 -0
- package/dist/components/blocks/ai/ai-confidence/ai-confidence.d.ts +5 -0
- package/dist/components/blocks/ai/ai-confidence/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-confidence/types.d.ts +25 -0
- package/dist/components/blocks/ai/ai-confirmation/ai-confirmation.d.ts +5 -0
- package/dist/components/blocks/ai/ai-confirmation/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-confirmation/types.d.ts +40 -0
- package/dist/components/blocks/ai/ai-feedback/ai-feedback.d.ts +5 -0
- package/dist/components/blocks/ai/ai-feedback/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-feedback/types.d.ts +24 -0
- package/dist/components/blocks/ai/ai-file-tree/ai-file-tree.d.ts +5 -0
- package/dist/components/blocks/ai/ai-file-tree/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-file-tree/types.d.ts +59 -0
- package/dist/components/blocks/ai/ai-inline-citation/ai-inline-citation.d.ts +5 -0
- package/dist/components/blocks/ai/ai-inline-citation/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-inline-citation/types.d.ts +22 -0
- package/dist/components/blocks/ai/ai-message-bubble/ai-message-bubble.d.ts +6 -0
- package/dist/components/blocks/ai/ai-message-bubble/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-message-bubble/types.d.ts +35 -0
- package/dist/components/blocks/ai/ai-package-info/ai-package-info.d.ts +5 -0
- package/dist/components/blocks/ai/ai-package-info/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-package-info/types.d.ts +39 -0
- package/dist/components/blocks/ai/ai-prompt-suggestions/ai-prompt-suggestions.d.ts +5 -0
- package/dist/components/blocks/ai/ai-prompt-suggestions/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-prompt-suggestions/types.d.ts +26 -0
- package/dist/components/blocks/ai/ai-reasoning/ai-reasoning.d.ts +5 -0
- package/dist/components/blocks/ai/ai-reasoning/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-reasoning/types.d.ts +32 -0
- package/dist/components/blocks/ai/ai-shimmer/ai-shimmer.d.ts +5 -0
- package/dist/components/blocks/ai/ai-shimmer/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-shimmer/types.d.ts +11 -0
- package/dist/components/blocks/ai/ai-sources/ai-sources.d.ts +5 -0
- package/dist/components/blocks/ai/ai-sources/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-sources/types.d.ts +44 -0
- package/dist/components/blocks/ai/ai-summary/ai-summary.d.ts +2 -0
- package/dist/components/blocks/ai/ai-summary/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-summary/types.d.ts +32 -0
- package/dist/components/blocks/ai/ai-task/ai-task.d.ts +5 -0
- package/dist/components/blocks/ai/ai-task/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-task/types.d.ts +38 -0
- package/dist/components/blocks/ai/ai-token-usage/ai-token-usage.d.ts +5 -0
- package/dist/components/blocks/ai/ai-token-usage/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-token-usage/types.d.ts +22 -0
- package/dist/components/blocks/ai/ai-tool-call/ai-tool-call.d.ts +5 -0
- package/dist/components/blocks/ai/ai-tool-call/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-tool-call/types.d.ts +38 -0
- package/dist/components/blocks/ai/ai.strings.d.ts +36 -0
- package/dist/components/blocks/ai/index.d.ts +24 -0
- package/dist/components/blocks/ai/use-copy-feedback.d.ts +6 -0
- package/dist/components/blocks/analytics/activity-heatmap/activity-heatmap.d.ts +5 -0
- package/dist/components/blocks/analytics/activity-heatmap/index.d.ts +2 -0
- package/dist/components/blocks/analytics/activity-heatmap/types.d.ts +20 -0
- package/dist/components/blocks/analytics/analytics.strings.d.ts +35 -0
- package/dist/components/blocks/analytics/atoms/metric-skeleton.d.ts +13 -0
- package/dist/components/blocks/analytics/atoms/metric-sparkline.d.ts +15 -0
- package/dist/components/blocks/analytics/atoms/metric-trend-chip.d.ts +15 -0
- package/dist/components/blocks/analytics/chart-card/chart-card.d.ts +42 -0
- package/dist/components/blocks/analytics/chart-card/index.d.ts +1 -0
- package/dist/components/blocks/analytics/format-metric-value.d.ts +8 -0
- package/dist/components/blocks/analytics/index.d.ts +34 -0
- package/dist/components/blocks/analytics/metric/index.d.ts +1 -0
- package/dist/components/blocks/analytics/metric/metric.d.ts +28 -0
- package/dist/components/blocks/analytics/metric-bar/index.d.ts +1 -0
- package/dist/components/blocks/analytics/metric-bar/metric-bar.d.ts +22 -0
- package/dist/components/blocks/analytics/metric-comparison/index.d.ts +1 -0
- package/dist/components/blocks/analytics/metric-comparison/metric-comparison.d.ts +26 -0
- package/dist/components/blocks/analytics/metric-gradient/index.d.ts +1 -0
- package/dist/components/blocks/analytics/metric-gradient/metric-gradient.d.ts +19 -0
- package/dist/components/blocks/analytics/metric-grid/index.d.ts +1 -0
- package/dist/components/blocks/analytics/metric-grid/metric-grid.d.ts +33 -0
- package/dist/components/blocks/analytics/metric-micro-grid/index.d.ts +1 -0
- package/dist/components/blocks/analytics/metric-micro-grid/metric-micro-grid.d.ts +23 -0
- package/dist/components/blocks/analytics/time-ruler/index.d.ts +2 -0
- package/dist/components/blocks/analytics/time-ruler/time-ruler.d.ts +5 -0
- package/dist/components/blocks/analytics/time-ruler/types.d.ts +32 -0
- package/dist/components/blocks/analytics/types.d.ts +83 -0
- package/dist/components/blocks/collaboration/index.d.ts +1 -0
- package/dist/components/blocks/collaboration/message/index.d.ts +2 -0
- package/dist/components/blocks/collaboration/message/message.d.ts +8 -0
- package/dist/components/blocks/collaboration/message/message.types.d.ts +30 -0
- package/dist/components/blocks/commerce/address-card/address-card.d.ts +5 -0
- package/dist/components/blocks/commerce/address-card/index.d.ts +2 -0
- package/dist/components/blocks/commerce/address-card/types.d.ts +43 -0
- package/dist/components/blocks/commerce/booking-calendar-event-card/booking-calendar-event-card.d.ts +12 -0
- package/dist/components/blocks/commerce/booking-calendar-event-card/booking-calendar-event-card.types.d.ts +36 -0
- package/dist/components/blocks/commerce/booking-calendar-event-card/index.d.ts +2 -0
- package/dist/components/blocks/commerce/cart-summary/cart-summary.d.ts +5 -0
- package/dist/components/blocks/commerce/cart-summary/index.d.ts +2 -0
- package/dist/components/blocks/commerce/cart-summary/types.d.ts +53 -0
- package/dist/components/blocks/commerce/coupon-input/coupon-input.d.ts +5 -0
- package/dist/components/blocks/commerce/coupon-input/index.d.ts +2 -0
- package/dist/components/blocks/commerce/coupon-input/types.d.ts +35 -0
- package/dist/components/blocks/commerce/discount-stack/discount-stack.d.ts +5 -0
- package/dist/components/blocks/commerce/discount-stack/index.d.ts +2 -0
- package/dist/components/blocks/commerce/discount-stack/types.d.ts +27 -0
- package/dist/components/blocks/commerce/format-signed-amount.d.ts +22 -0
- package/dist/components/blocks/commerce/giftcard-card/giftcard-card.d.ts +62 -0
- package/dist/components/blocks/commerce/giftcard-card/index.d.ts +2 -0
- package/dist/components/blocks/commerce/giftcard-card/partials/giftcard-compact.d.ts +10 -0
- package/dist/components/blocks/commerce/giftcard-card/partials/giftcard-copy-button.d.ts +9 -0
- package/dist/components/blocks/commerce/giftcard-card/partials/giftcard-dark.d.ts +7 -0
- package/dist/components/blocks/commerce/giftcard-card/partials/giftcard-full.d.ts +11 -0
- package/dist/components/blocks/commerce/giftcard-card/partials/giftcard-illustrated.d.ts +10 -0
- package/dist/components/blocks/commerce/giftcard-card/partials/giftcard-minimal.d.ts +10 -0
- package/dist/components/blocks/commerce/giftcard-card/types.d.ts +83 -0
- package/dist/components/blocks/commerce/index.d.ts +34 -0
- package/dist/components/blocks/commerce/inventory-level/index.d.ts +3 -0
- package/dist/components/blocks/commerce/inventory-level/inventory-level.d.ts +5 -0
- package/dist/components/blocks/commerce/inventory-level/inventory-level.strings.d.ts +10 -0
- package/dist/components/blocks/commerce/inventory-level/types.d.ts +20 -0
- package/dist/components/blocks/commerce/inventory-section/index.d.ts +2 -0
- package/dist/components/blocks/commerce/inventory-section/inventory-section.d.ts +5 -0
- package/dist/components/blocks/commerce/inventory-section/types.d.ts +105 -0
- package/dist/components/blocks/commerce/invoice-header/index.d.ts +2 -0
- package/dist/components/blocks/commerce/invoice-header/invoice-header.d.ts +5 -0
- package/dist/components/blocks/commerce/invoice-header/types.d.ts +51 -0
- package/dist/components/blocks/commerce/invoice-line-items/index.d.ts +2 -0
- package/dist/components/blocks/commerce/invoice-line-items/invoice-line-items.d.ts +5 -0
- package/dist/components/blocks/commerce/invoice-line-items/types.d.ts +64 -0
- package/dist/components/blocks/commerce/invoice-mini/index.d.ts +2 -0
- package/dist/components/blocks/commerce/invoice-mini/invoice-mini.d.ts +5 -0
- package/dist/components/blocks/commerce/invoice-mini/types.d.ts +28 -0
- package/dist/components/blocks/commerce/loyalty-points/index.d.ts +2 -0
- package/dist/components/blocks/commerce/loyalty-points/loyalty-points.d.ts +5 -0
- package/dist/components/blocks/commerce/loyalty-points/types.d.ts +32 -0
- package/dist/components/blocks/commerce/order-status/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-status/order-status.d.ts +5 -0
- package/dist/components/blocks/commerce/order-status/types.d.ts +35 -0
- package/dist/components/blocks/commerce/order-timeline/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-timeline/order-timeline.d.ts +5 -0
- package/dist/components/blocks/commerce/order-timeline/types.d.ts +22 -0
- package/dist/components/blocks/commerce/payment-method/index.d.ts +2 -0
- package/dist/components/blocks/commerce/payment-method/payment-method.d.ts +5 -0
- package/dist/components/blocks/commerce/payment-method/types.d.ts +33 -0
- package/dist/components/blocks/commerce/payment-timeline/index.d.ts +2 -0
- package/dist/components/blocks/commerce/payment-timeline/payment-timeline.d.ts +5 -0
- package/dist/components/blocks/commerce/payment-timeline/types.d.ts +15 -0
- package/dist/components/blocks/commerce/receipt/index.d.ts +3 -0
- package/dist/components/blocks/commerce/receipt/receipt-items.d.ts +2 -0
- package/dist/components/blocks/commerce/receipt/receipt.d.ts +3 -0
- package/dist/components/blocks/commerce/receipt/types.d.ts +42 -0
- package/dist/components/blocks/commerce/refund-status/index.d.ts +2 -0
- package/dist/components/blocks/commerce/refund-status/refund-status.d.ts +5 -0
- package/dist/components/blocks/commerce/refund-status/types.d.ts +37 -0
- package/dist/components/blocks/commerce/seo-listing/index.d.ts +3 -0
- package/dist/components/blocks/commerce/seo-listing/seo-listing-card.d.ts +5 -0
- package/dist/components/blocks/commerce/seo-listing/seo-listing-score.d.ts +5 -0
- package/dist/components/blocks/commerce/seo-listing/types.d.ts +92 -0
- package/dist/components/blocks/commerce/shipment-tracking/index.d.ts +2 -0
- package/dist/components/blocks/commerce/shipment-tracking/shipment-tracking.d.ts +5 -0
- package/dist/components/blocks/commerce/shipment-tracking/types.d.ts +44 -0
- package/dist/components/blocks/commerce/subscription-summary/index.d.ts +2 -0
- package/dist/components/blocks/commerce/subscription-summary/subscription-summary.d.ts +5 -0
- package/dist/components/blocks/commerce/subscription-summary/types.d.ts +39 -0
- package/dist/components/blocks/commerce/tax-breakdown/index.d.ts +2 -0
- package/dist/components/blocks/commerce/tax-breakdown/tax-breakdown.d.ts +5 -0
- package/dist/components/blocks/commerce/tax-breakdown/types.d.ts +34 -0
- package/dist/components/blocks/commerce/upcoming-booking/index.d.ts +2 -0
- package/dist/components/blocks/commerce/upcoming-booking/types.d.ts +29 -0
- package/dist/components/blocks/commerce/upcoming-booking/upcoming-booking.d.ts +5 -0
- package/dist/components/blocks/commerce/vendor-profile/index.d.ts +3 -0
- package/dist/components/blocks/commerce/vendor-profile/types.d.ts +86 -0
- package/dist/components/blocks/commerce/vendor-profile/vendor-profile.d.ts +2 -0
- package/dist/components/blocks/commerce/voucher-entry/index.d.ts +2 -0
- package/dist/components/blocks/commerce/voucher-entry/types.d.ts +33 -0
- package/dist/components/blocks/commerce/voucher-entry/voucher-entry.d.ts +5 -0
- package/dist/components/blocks/data-display/dense-info-card/dense-info.strings.d.ts +6 -0
- package/dist/components/blocks/data-display/dense-info-card/helpers.d.ts +19 -0
- package/dist/components/blocks/data-display/dense-info-card/index.d.ts +7 -0
- package/dist/components/blocks/data-display/dense-info-card/partials/dense-info-classification.d.ts +5 -0
- package/dist/components/blocks/data-display/dense-info-card/partials/dense-info-dashboard.d.ts +5 -0
- package/dist/components/blocks/data-display/dense-info-card/partials/dense-info-financial.d.ts +5 -0
- package/dist/components/blocks/data-display/dense-info-card/partials/dense-info-project.d.ts +5 -0
- package/dist/components/blocks/data-display/dense-info-card/partials/dense-info-score.d.ts +5 -0
- package/dist/components/blocks/data-display/dense-info-card/types.d.ts +183 -0
- package/dist/components/blocks/data-display/empty-state/empty-state.d.ts +2 -0
- package/dist/components/blocks/data-display/empty-state/empty-state.strings.d.ts +19 -0
- package/dist/components/blocks/data-display/empty-state/empty-state.types.d.ts +86 -0
- package/dist/components/blocks/data-display/empty-state/index.d.ts +5 -0
- package/dist/components/blocks/data-display/empty-state/partials/illustrations/document-stack.d.ts +9 -0
- package/dist/components/blocks/data-display/empty-state/partials/illustrations/inbox-clean.d.ts +9 -0
- package/dist/components/blocks/data-display/empty-state/partials/illustrations/index.d.ts +25 -0
- package/dist/components/blocks/data-display/empty-state/partials/illustrations/search-glass.d.ts +9 -0
- package/dist/components/blocks/data-display/empty-state/partials/illustrations/stacked-cards.d.ts +11 -0
- package/dist/components/blocks/data-display/empty-state/partials/illustrations/types.d.ts +4 -0
- package/dist/components/blocks/data-display/empty-state/partials/illustrations/users-circle.d.ts +9 -0
- package/dist/components/blocks/data-display/index.d.ts +6 -0
- package/dist/components/blocks/data-display/inline-stat/index.d.ts +1 -0
- package/dist/components/blocks/data-display/inline-stat/inline-stat.d.ts +35 -0
- package/dist/components/blocks/data-display/metadata/index.d.ts +4 -0
- package/dist/components/blocks/data-display/metadata/metadata-list.d.ts +78 -0
- package/dist/components/blocks/data-display/metadata/metadata-list.strings.d.ts +18 -0
- package/dist/components/blocks/data-display/metadata/metadata-value.d.ts +142 -0
- package/dist/components/blocks/data-display/relationship-card-frame.d.ts +40 -0
- package/dist/components/blocks/onboarding/checklist/checklist.d.ts +2 -0
- package/dist/components/blocks/onboarding/checklist/checklist.strings.d.ts +15 -0
- package/dist/components/blocks/onboarding/checklist/checklist.types.d.ts +64 -0
- package/dist/components/blocks/onboarding/checklist/index.d.ts +4 -0
- package/dist/components/blocks/onboarding/checklist/partials/step-status-indicator.d.ts +12 -0
- package/dist/components/blocks/onboarding/index.d.ts +7 -0
- package/dist/components/blocks/timelines/changelog/changelog-timeline.d.ts +5 -0
- package/dist/components/blocks/timelines/changelog/index.d.ts +2 -0
- package/dist/components/blocks/timelines/changelog/types.d.ts +33 -0
- package/dist/components/blocks/timelines/index.d.ts +5 -0
- package/dist/components/blocks/timelines/milestones/index.d.ts +2 -0
- package/dist/components/blocks/timelines/milestones/milestones-timeline.d.ts +5 -0
- package/dist/components/blocks/timelines/milestones/types.d.ts +32 -0
- package/dist/components/blocks/timelines/shared/index.d.ts +1 -0
- package/dist/components/blocks/timelines/shared/timeline.d.ts +40 -0
- package/dist/components/blocks/timelines/steps-card/index.d.ts +2 -0
- package/dist/components/blocks/timelines/steps-card/steps-card.d.ts +9 -0
- package/dist/components/blocks/timelines/steps-card/types.d.ts +38 -0
- package/dist/components/features/activities/activities-feed.d.ts +5 -0
- package/dist/components/features/activities/activities.config.d.ts +6 -0
- package/dist/components/features/activities/activities.strings.d.ts +38 -0
- package/dist/components/features/activities/activities.types.d.ts +431 -0
- package/dist/components/features/activities/activity-event-adapter.d.ts +38 -0
- package/dist/components/features/activities/activity-log.d.ts +6 -0
- package/dist/components/features/activities/hooks/index.d.ts +2 -0
- package/dist/components/features/activities/hooks/use-activity-feed.d.ts +44 -0
- package/dist/components/features/activities/hooks/use-activity-resources.d.ts +22 -0
- package/dist/components/features/activities/index.d.ts +8 -0
- package/dist/components/features/activities/partials/activity-actions-menu.d.ts +11 -0
- package/dist/components/features/activities/partials/activity-changes.d.ts +8 -0
- package/dist/components/features/activities/partials/activity-date-label.d.ts +9 -0
- package/dist/components/features/activities/partials/activity-empty-state.d.ts +9 -0
- package/dist/components/features/activities/partials/activity-headline.d.ts +20 -0
- package/dist/components/features/activities/partials/activity-marker.d.ts +25 -0
- package/dist/components/features/activities/partials/activity-resource-tag.d.ts +11 -0
- package/dist/components/features/activities/partials/activity-row.d.ts +68 -0
- package/dist/components/features/activities/partials/index.d.ts +8 -0
- package/dist/components/features/activities/partials/tone-tokens.d.ts +25 -0
- package/dist/components/features/ai-chat/ai-chat.d.ts +81 -0
- package/dist/components/features/ai-chat/ai-chat.strings.d.ts +56 -0
- package/dist/components/features/ai-chat/ai-chat.types.d.ts +170 -0
- package/dist/components/features/ai-chat/hooks/index.d.ts +1 -0
- package/dist/components/features/ai-chat/hooks/use-ai-chat-scroll.d.ts +15 -0
- package/dist/components/features/ai-chat/index.d.ts +5 -0
- package/dist/components/features/ai-chat/partials/ai-chat-attachments-strip.d.ts +15 -0
- package/dist/components/features/ai-chat/partials/ai-chat-conversation.d.ts +28 -0
- package/dist/components/features/ai-chat/partials/ai-chat-empty-state.d.ts +22 -0
- package/dist/components/features/ai-chat/partials/ai-chat-message.d.ts +21 -0
- package/dist/components/features/ai-chat/partials/ai-chat-prompt-input.d.ts +59 -0
- package/dist/components/features/ai-chat/partials/ai-chat-queue.d.ts +19 -0
- package/dist/components/features/ai-chat/partials/ai-chat-suggestions-row.d.ts +18 -0
- package/dist/components/features/ai-chat/partials/index.d.ts +7 -0
- package/dist/components/features/async-preview/async-preview.d.ts +84 -0
- package/dist/components/features/async-preview/async-preview.strings.d.ts +14 -0
- package/dist/components/features/async-preview/async-preview.types.d.ts +133 -0
- package/dist/components/features/async-preview/hooks/index.d.ts +1 -0
- package/dist/components/features/async-preview/hooks/use-async-preview.d.ts +8 -0
- package/dist/components/features/async-preview/index.d.ts +6 -0
- package/dist/components/features/async-preview/partials/index.d.ts +1 -0
- package/dist/components/features/async-preview/preview-trigger-cell.d.ts +45 -0
- package/dist/components/features/combobox/async-resource-combobox.d.ts +94 -0
- package/dist/components/features/combobox/combobox.d.ts +20 -0
- package/dist/components/features/combobox/combobox.strings.d.ts +14 -0
- package/dist/components/features/combobox/components/combobox-dropdown.d.ts +57 -0
- package/dist/components/features/combobox/components/error-message.d.ts +15 -0
- package/dist/components/features/combobox/components/highlighted-text.d.ts +14 -0
- package/dist/components/features/combobox/components/index.d.ts +13 -0
- package/dist/components/features/combobox/components/loading-more.d.ts +15 -0
- package/dist/components/features/combobox/components/status-content.d.ts +21 -0
- package/dist/components/features/combobox/constants.d.ts +19 -0
- package/dist/components/features/combobox/hooks/index.d.ts +2 -0
- package/dist/components/features/combobox/hooks/use-combobox-core.d.ts +30 -0
- package/dist/components/features/combobox/hooks/use-debounced-search.d.ts +10 -0
- package/dist/components/features/combobox/hooks/use-grouped-items.d.ts +9 -0
- package/dist/components/features/combobox/hooks/use-load-more.d.ts +12 -0
- package/dist/components/features/combobox/index.d.ts +13 -0
- package/dist/components/features/combobox/types.d.ts +184 -0
- package/dist/components/features/comments/comments-provider.d.ts +15 -0
- package/dist/components/features/comments/comments.d.ts +2 -0
- package/dist/components/features/comments/comments.strings.d.ts +91 -0
- package/dist/components/features/comments/comments.types.d.ts +369 -0
- package/dist/components/features/comments/hooks/index.d.ts +4 -0
- package/dist/components/features/comments/hooks/use-attachment-upload.d.ts +28 -0
- package/dist/components/features/comments/hooks/use-comments.d.ts +34 -0
- package/dist/components/features/comments/index.d.ts +8 -0
- package/dist/components/features/comments/partials/comment-attachment-chip.d.ts +23 -0
- package/dist/components/features/comments/partials/comment-composer.d.ts +12 -0
- package/dist/components/features/comments/partials/comment-content.d.ts +13 -0
- package/dist/components/features/comments/partials/comment-empty.d.ts +12 -0
- package/dist/components/features/comments/partials/comment-item.d.ts +3 -0
- package/dist/components/features/comments/partials/comment-timeline.d.ts +3 -0
- package/dist/components/features/comments/partials/index.d.ts +9 -0
- package/dist/components/features/data-view/data-view-filtering.d.ts +3 -0
- package/dist/components/features/data-view/data-view.d.ts +7 -0
- package/dist/components/features/data-view/data-view.strings.d.ts +9 -0
- package/dist/components/features/data-view/data-view.types.d.ts +191 -0
- package/dist/components/features/data-view/hooks/index.d.ts +1 -0
- package/dist/components/features/data-view/hooks/use-data-view.d.ts +2 -0
- package/dist/components/features/data-view/index.d.ts +4 -0
- package/dist/components/features/email-composer/document.d.ts +8 -0
- package/dist/components/features/email-composer/email-composer.d.ts +2 -0
- package/dist/components/features/email-composer/email-html.d.ts +5 -0
- package/dist/components/features/email-composer/engine.d.ts +18 -0
- package/dist/components/features/email-composer/http.d.ts +6 -0
- package/dist/components/features/email-composer/index.d.ts +6 -0
- package/dist/components/features/email-composer/partials/body-editor.d.ts +11 -0
- package/dist/components/features/email-composer/partials/data-status.d.ts +8 -0
- package/dist/components/features/email-composer/partials/html-preview.d.ts +6 -0
- package/dist/components/features/email-composer/partials/recipients.d.ts +14 -0
- package/dist/components/features/email-composer/partials/variables.d.ts +11 -0
- package/dist/components/features/email-composer/strings.d.ts +79 -0
- package/dist/components/features/email-composer/types.d.ts +195 -0
- package/dist/components/features/email-composer/use-composer.d.ts +119 -0
- package/dist/components/features/event-calendar/colors.d.ts +29 -0
- package/dist/components/features/event-calendar/event-calendar-day-cell.d.ts +5 -0
- package/dist/components/features/event-calendar/event-calendar-event-badge.d.ts +5 -0
- package/dist/components/features/event-calendar/event-calendar-event-card.d.ts +16 -0
- package/dist/components/features/event-calendar/event-calendar-header.d.ts +8 -0
- package/dist/components/features/event-calendar/event-calendar-legend.d.ts +5 -0
- package/dist/components/features/event-calendar/event-calendar.d.ts +5 -0
- package/dist/components/features/event-calendar/event-calendar.types.d.ts +350 -0
- package/dist/components/features/event-calendar/index.d.ts +11 -0
- package/dist/components/features/event-calendar/use-event-calendar-data.d.ts +15 -0
- package/dist/components/features/event-calendar/use-event-calendar.d.ts +24 -0
- package/dist/components/features/filters/facets/async-select-facet.d.ts +28 -0
- package/dist/components/features/filters/facets/date-facet.d.ts +18 -0
- package/dist/components/features/filters/facets/range-facet.d.ts +30 -0
- package/dist/components/features/filters/facets/search-facet.d.ts +27 -0
- package/dist/components/features/filters/facets/select-facet.d.ts +19 -0
- package/dist/components/features/filters/facets/tags-facet.d.ts +27 -0
- package/dist/components/features/filters/filter-context.d.ts +61 -0
- package/dist/components/features/filters/filter-layout.d.ts +16 -0
- package/dist/components/features/filters/filter-query.d.ts +21 -0
- package/dist/components/features/filters/filters.strings.d.ts +103 -0
- package/dist/components/features/filters/filters.types.d.ts +222 -0
- package/dist/components/features/filters/hooks/index.d.ts +3 -0
- package/dist/components/features/filters/hooks/use-async-options.d.ts +16 -0
- package/dist/components/features/filters/hooks/use-filter-groups.d.ts +16 -0
- package/dist/components/features/filters/index.d.ts +42 -0
- package/dist/components/features/filters/operator-options.d.ts +9 -0
- package/dist/components/features/filters/partials/active-filter-item.d.ts +37 -0
- package/dist/components/features/filters/partials/async-filter-content.d.ts +21 -0
- package/dist/components/features/filters/partials/date-filter-content.d.ts +14 -0
- package/dist/components/features/filters/partials/filter-error-boundary.d.ts +9 -0
- package/dist/components/features/filters/partials/filter-list-content.d.ts +24 -0
- package/dist/components/features/filters/partials/filter-list-item.d.ts +19 -0
- package/dist/components/features/filters/partials/filter-operator-select.d.ts +22 -0
- package/dist/components/features/filters/partials/filter-pill.d.ts +26 -0
- package/dist/components/features/filters/partials/filter-popover-content.d.ts +36 -0
- package/dist/components/features/filters/partials/filter-tabs.d.ts +14 -0
- package/dist/components/features/filters/partials/filter-value-display.d.ts +21 -0
- package/dist/components/features/filters/partials/filters-button.d.ts +32 -0
- package/dist/components/features/filters/partials/index.d.ts +14 -0
- package/dist/components/features/filters/partials/regular-filter-content.d.ts +28 -0
- package/dist/components/features/filters/partials/search-filters-list.d.ts +25 -0
- package/dist/components/features/filters/partials/tags-filter-content.d.ts +28 -0
- package/dist/components/features/filters/utils/filter-utils.d.ts +37 -0
- package/dist/components/features/filters/validators.d.ts +63 -0
- package/dist/components/features/global-search/global-search-dialog.d.ts +13 -0
- package/dist/components/features/global-search/global-search.d.ts +52 -0
- package/dist/components/features/global-search/global-search.strings.d.ts +36 -0
- package/dist/components/features/global-search/global-search.types.d.ts +105 -0
- package/dist/components/features/global-search/hooks/index.d.ts +2 -0
- package/dist/components/features/global-search/hooks/use-global-search.d.ts +33 -0
- package/dist/components/features/global-search/index.d.ts +9 -0
- package/dist/components/features/global-search/partials/global-search-empty-state.d.ts +7 -0
- package/dist/components/features/global-search/partials/global-search-footer.d.ts +13 -0
- package/dist/components/features/global-search/partials/global-search-idle-state.d.ts +12 -0
- package/dist/components/features/global-search/partials/global-search-input.d.ts +17 -0
- package/dist/components/features/global-search/partials/global-search-result-row.d.ts +16 -0
- package/dist/components/features/global-search/partials/global-search-tabs.d.ts +13 -0
- package/dist/components/features/global-search/partials/index.d.ts +12 -0
- package/dist/components/features/global-search/partials/tone-palettes.d.ts +8 -0
- package/dist/components/features/kanban/hooks/index.d.ts +1 -0
- package/dist/components/features/kanban/hooks/use-kanban.d.ts +32 -0
- package/dist/components/features/kanban/index.d.ts +5 -0
- package/dist/components/features/kanban/kanban-context.d.ts +25 -0
- package/dist/components/features/kanban/kanban-keyboard.d.ts +10 -0
- package/dist/components/features/kanban/kanban.d.ts +38 -0
- package/dist/components/features/kanban/kanban.strings.d.ts +24 -0
- package/dist/components/features/kanban/kanban.types.d.ts +168 -0
- package/dist/components/features/map/index.d.ts +13 -0
- package/dist/components/features/map/map.d.ts +166 -0
- package/dist/components/features/map/place-autocomplete.d.ts +97 -0
- package/dist/components/features/map/public-leaflet.types.d.ts +71 -0
- package/dist/components/features/map/use-map-color-scheme.d.ts +2 -0
- package/dist/components/features/media-library/hooks/index.d.ts +1 -0
- package/dist/components/features/media-library/hooks/use-media-library.d.ts +5 -0
- package/dist/components/features/media-library/index.d.ts +6 -0
- package/dist/components/features/media-library/media-library.d.ts +3 -0
- package/dist/components/features/media-library/media-library.strings.d.ts +124 -0
- package/dist/components/features/media-library/media-library.types.d.ts +568 -0
- package/dist/components/features/media-library/media-resource-gallery.d.ts +2 -0
- package/dist/components/features/media-library/partials/index.d.ts +1 -0
- package/dist/components/features/media-library/partials/media-library-partials.d.ts +10 -0
- package/dist/components/features/mentions/hooks/index.d.ts +2 -0
- package/dist/components/features/mentions/hooks/use-mentions-search.d.ts +41 -0
- package/dist/components/features/mentions/hooks/use-mentions.d.ts +35 -0
- package/dist/components/features/mentions/index.d.ts +5 -0
- package/dist/components/features/mentions/mentions.strings.d.ts +26 -0
- package/dist/components/features/mentions/mentions.types.d.ts +100 -0
- package/dist/components/features/mentions/partials/index.d.ts +4 -0
- package/dist/components/features/mentions/partials/mention-chip.d.ts +29 -0
- package/dist/components/features/mentions/partials/mention-content.d.ts +22 -0
- package/dist/components/features/mentions/partials/mention-inline-suggestions.d.ts +36 -0
- package/dist/components/features/mentions/partials/mention-picker.d.ts +31 -0
- package/dist/components/features/mentions/utils/build-mention-html.d.ts +24 -0
- package/dist/components/features/mentions/utils/index.d.ts +3 -0
- package/dist/components/features/mentions/utils/parse-mentions-from-html.d.ts +13 -0
- package/dist/components/features/mentions/utils/split-html-by-mentions.d.ts +16 -0
- package/dist/components/features/overlays/alert-dialog.d.ts +4 -0
- package/dist/components/features/overlays/dialog.d.ts +4 -0
- package/dist/components/features/overlays/drawer.d.ts +4 -0
- package/dist/components/features/overlays/hooks/index.d.ts +2 -0
- package/dist/components/features/overlays/hooks/use-overlay-actions.d.ts +24 -0
- package/dist/components/features/overlays/hooks/use-overlay-visibility.d.ts +36 -0
- package/dist/components/features/overlays/index.d.ts +6 -0
- package/dist/components/features/overlays/overlays.strings.d.ts +19 -0
- package/dist/components/features/overlays/overlays.types.d.ts +169 -0
- package/dist/components/features/products/components/index.d.ts +17 -0
- package/dist/components/features/products/components/product-contract-overview.d.ts +5 -0
- package/dist/components/features/products/components/product-details-card.d.ts +5 -0
- package/dist/components/features/products/components/product-operations-card.d.ts +5 -0
- package/dist/components/features/products/components/product-option-action-menu.d.ts +5 -0
- package/dist/components/features/products/components/product-options-matrix.d.ts +5 -0
- package/dist/components/features/products/components/product-options-summary.d.ts +5 -0
- package/dist/components/features/products/components/product-overview.d.ts +5 -0
- package/dist/components/features/products/components/product-policies-card.d.ts +5 -0
- package/dist/components/features/products/components/product-quote-preview-card.d.ts +5 -0
- package/dist/components/features/products/components/product-readiness-card.d.ts +5 -0
- package/dist/components/features/products/components/product-structure-card.d.ts +5 -0
- package/dist/components/features/products/components/product-variant-action-menu.d.ts +5 -0
- package/dist/components/features/products/components/product-variant-details.d.ts +5 -0
- package/dist/components/features/products/components/product-variant-editor.d.ts +5 -0
- package/dist/components/features/products/components/product-variants-bulk-table.d.ts +5 -0
- package/dist/components/features/products/components/product-variants-manager.d.ts +5 -0
- package/dist/components/features/products/components/product-variants-table.d.ts +5 -0
- package/dist/components/features/products/index.d.ts +3 -0
- package/dist/components/features/products/partials/index.d.ts +7 -0
- package/dist/components/features/products/partials/product-actions.d.ts +10 -0
- package/dist/components/features/products/partials/product-empty-state.d.ts +10 -0
- package/dist/components/features/products/partials/product-metric-tile.d.ts +4 -0
- package/dist/components/features/products/partials/product-rows.d.ts +35 -0
- package/dist/components/features/products/partials/product-tone.d.ts +8 -0
- package/dist/components/features/products/partials/product-values.d.ts +1 -0
- package/dist/components/features/products/partials/product-variant-table-parts.d.ts +28 -0
- package/dist/components/features/products/products.strings.d.ts +308 -0
- package/dist/components/features/products/products.types.d.ts +906 -0
- package/dist/components/features/questionnaire/index.d.ts +3 -0
- package/dist/components/features/questionnaire/questionnaire-control.d.ts +3 -0
- package/dist/components/features/questionnaire/questionnaire.d.ts +2 -0
- package/dist/components/features/questionnaire/questionnaire.types.d.ts +98 -0
- package/dist/components/features/questionnaire/questionnaire.utils.d.ts +5 -0
- package/dist/components/features/resource/index.d.ts +3 -0
- package/dist/components/features/resource/resource.d.ts +8 -0
- package/dist/components/features/resource/resource.strings.d.ts +12 -0
- package/dist/components/features/resource/resource.types.d.ts +161 -0
- package/dist/components/features/resource-assignment/hooks/index.d.ts +2 -0
- package/dist/components/features/resource-assignment/hooks/use-shared-resource-card.d.ts +32 -0
- package/dist/components/features/resource-assignment/index.d.ts +6 -0
- package/dist/components/features/resource-assignment/partials/default-shared-resource-partials.d.ts +31 -0
- package/dist/components/features/resource-assignment/partials/index.d.ts +1 -0
- package/dist/components/features/resource-assignment/resource-assignment.d.ts +12 -0
- package/dist/components/features/resource-assignment/resource-assignment.strings.d.ts +17 -0
- package/dist/components/features/resource-assignment/resource-assignment.types.d.ts +193 -0
- package/dist/components/features/rich-text-editor/form-rich-text-editor.d.ts +6 -0
- package/dist/components/features/rich-text-editor/index.d.ts +5 -0
- package/dist/components/features/rich-text-editor/partials/caret-helpers.d.ts +28 -0
- package/dist/components/features/rich-text-editor/partials/counts-footer.d.ts +32 -0
- package/dist/components/features/rich-text-editor/partials/html-helpers.d.ts +7 -0
- package/dist/components/features/rich-text-editor/partials/index.d.ts +7 -0
- package/dist/components/features/rich-text-editor/partials/rich-text-editor-fallback.d.ts +8 -0
- package/dist/components/features/rich-text-editor/partials/rich-text-editor-tiptap.d.ts +3 -0
- package/dist/components/features/rich-text-editor/partials/rich-text-editor-toolbar.d.ts +33 -0
- package/dist/components/features/rich-text-editor/rich-text-editor.d.ts +3 -0
- package/dist/components/features/rich-text-editor/rich-text-editor.recipes.d.ts +6 -0
- package/dist/components/features/rich-text-editor/rich-text-editor.strings.d.ts +32 -0
- package/dist/components/features/rich-text-editor/rich-text-editor.types.d.ts +111 -0
- package/dist/components/features/schema-form/hooks/index.d.ts +1 -0
- package/dist/components/features/schema-form/hooks/use-schema-form.d.ts +23 -0
- package/dist/components/features/schema-form/index.d.ts +5 -0
- package/dist/components/features/schema-form/partials/index.d.ts +3 -0
- package/dist/components/features/schema-form/partials/schema-form-actions.d.ts +23 -0
- package/dist/components/features/schema-form/partials/schema-form-empty.d.ts +12 -0
- package/dist/components/features/schema-form/partials/schema-form-field.d.ts +12 -0
- package/dist/components/features/schema-form/schema-form.d.ts +5 -0
- package/dist/components/features/schema-form/schema-form.strings.d.ts +11 -0
- package/dist/components/features/schema-form/schema-form.types.d.ts +271 -0
- package/dist/components/features/schema-form/schema-form.utils.d.ts +18 -0
- package/dist/components/features/suggestions/hooks/index.d.ts +1 -0
- package/dist/components/features/suggestions/hooks/use-suggestions.d.ts +9 -0
- package/dist/components/features/suggestions/index.d.ts +4 -0
- package/dist/components/features/suggestions/suggestions.d.ts +5 -0
- package/dist/components/features/suggestions/suggestions.strings.d.ts +16 -0
- package/dist/components/features/suggestions/suggestions.types.d.ts +79 -0
- package/dist/components/features/sync/index.d.ts +3 -0
- package/dist/components/features/sync/sync-range-dialog-form.d.ts +5 -0
- package/dist/components/features/sync/sync.strings.d.ts +18 -0
- package/dist/components/features/sync/sync.types.d.ts +44 -0
- package/dist/components/features/table/column-visibility-toggle.d.ts +5 -0
- package/dist/components/features/table/data-table.d.ts +6 -0
- package/dist/components/features/table/filter-bar.d.ts +5 -0
- package/dist/components/features/table/hooks.d.ts +47 -0
- package/dist/components/features/table/index.d.ts +16 -0
- package/dist/components/features/table/pagination.d.ts +5 -0
- package/dist/components/features/table/partials/cell-renderers.d.ts +141 -0
- package/dist/components/features/table/partials/cell-value.d.ts +121 -0
- package/dist/components/features/table/partials/fullscreen-toggle.d.ts +16 -0
- package/dist/components/features/table/partials/resource-cell.d.ts +63 -0
- package/dist/components/features/table/partials/table-link.d.ts +3 -0
- package/dist/components/features/table/table-actions.d.ts +5 -0
- package/dist/components/features/table/table-body.d.ts +5 -0
- package/dist/components/features/table/table-header.d.ts +6 -0
- package/dist/components/features/table/table-helpers.d.ts +39 -0
- package/dist/components/features/table/table-toolbar.d.ts +5 -0
- package/dist/components/features/table/table.strings.d.ts +3 -0
- package/dist/components/features/table/table.types.d.ts +489 -0
- package/dist/components/features/theme-tweaker/admin-ui-theme-provider.d.ts +6 -0
- package/dist/components/features/theme-tweaker/index.d.ts +10 -0
- package/dist/components/features/theme-tweaker/theme-provider-settings.d.ts +49 -0
- package/dist/components/features/theme-tweaker/theme-scope.d.ts +7 -0
- package/dist/components/features/theme-tweaker/theme-tweaker.d.ts +2 -0
- package/dist/components/features/theme-tweaker/theme-tweaker.fields.d.ts +7 -0
- package/dist/components/features/theme-tweaker/theme-tweaker.recipes.d.ts +25 -0
- package/dist/components/features/theme-tweaker/theme-tweaker.strings.d.ts +75 -0
- package/dist/components/features/theme-tweaker/theme-tweaker.types.d.ts +161 -0
- package/dist/components/features/theme-tweaker/theme-tweaker.utils.d.ts +23 -0
- package/dist/components/features/theme-tweaker/use-applied-theme.d.ts +11 -0
- package/dist/components/layout/app-shell/app-layout.d.ts +12 -0
- package/dist/components/layout/app-shell/app-shell.types.d.ts +151 -0
- package/dist/components/layout/app-shell/index.d.ts +6 -0
- package/dist/components/layout/app-shell/sidebar-inset-layout.d.ts +2 -0
- package/dist/components/layout/app-shell/stacked-layout.d.ts +2 -0
- package/dist/components/layout/app-shell/topbar-sidebar-layout.d.ts +2 -0
- package/dist/components/layout/auth/auth-card.d.ts +2 -0
- package/dist/components/layout/auth/auth-footer-links.d.ts +2 -0
- package/dist/components/layout/auth/auth-form.d.ts +11 -0
- package/dist/components/layout/auth/auth-hooks.d.ts +4 -0
- package/dist/components/layout/auth/auth-method-switch.d.ts +4 -0
- package/dist/components/layout/auth/auth-shell.d.ts +2 -0
- package/dist/components/layout/auth/auth-social-providers.d.ts +3 -0
- package/dist/components/layout/auth/auth-split-panel.d.ts +2 -0
- package/dist/components/layout/auth/auth.strings.d.ts +21 -0
- package/dist/components/layout/auth/auth.types.d.ts +282 -0
- package/dist/components/layout/auth/index.d.ts +10 -0
- package/dist/components/layout/containers/container.recipes.d.ts +5 -0
- package/dist/components/layout/containers/containers.types.d.ts +17 -0
- package/dist/components/layout/containers/content-container.d.ts +3 -0
- package/dist/components/layout/containers/index.d.ts +5 -0
- package/dist/components/layout/containers/page-viewport.d.ts +3 -0
- package/dist/components/layout/containers/section.d.ts +3 -0
- package/dist/components/layout/containers/two-column-layout.d.ts +27 -0
- package/dist/components/layout/header/header.d.ts +2 -0
- package/dist/components/layout/header/header.types.d.ts +198 -0
- package/dist/components/layout/header/index.d.ts +9 -0
- package/dist/components/layout/header/partials/header-breadcrumbs.d.ts +4 -0
- package/dist/components/layout/header/partials/header-global-search-trigger.d.ts +2 -0
- package/dist/components/layout/header/partials/header-notifications.d.ts +2 -0
- package/dist/components/layout/header/partials/header-search.d.ts +2 -0
- package/dist/components/layout/header/partials/header-tool-button.d.ts +4 -0
- package/dist/components/layout/header/partials/header-tool-popover.d.ts +2 -0
- package/dist/components/layout/header/partials/header-user-menu.d.ts +2 -0
- package/dist/components/layout/hooks/index.d.ts +3 -0
- package/dist/components/layout/hooks/use-active-path.d.ts +1 -0
- package/dist/components/layout/hooks/use-command-shortcut.d.ts +7 -0
- package/dist/components/layout/hooks/use-layout-link.d.ts +2 -0
- package/dist/components/layout/index.d.ts +24 -0
- package/dist/components/layout/layout.types.d.ts +91 -0
- package/dist/components/layout/navigation/breadcrumb-progress/breadcrumb-progress.d.ts +5 -0
- package/dist/components/layout/navigation/breadcrumb-progress/index.d.ts +2 -0
- package/dist/components/layout/navigation/breadcrumb-progress/types.d.ts +24 -0
- package/dist/components/layout/navigation/category-nav/category-nav.d.ts +5 -0
- package/dist/components/layout/navigation/category-nav/index.d.ts +2 -0
- package/dist/components/layout/navigation/category-nav/types.d.ts +22 -0
- package/dist/components/layout/navigation/index.d.ts +17 -0
- package/dist/components/layout/navigation/section-nav/index.d.ts +1 -0
- package/dist/components/layout/navigation/section-nav/section-nav.d.ts +29 -0
- package/dist/components/layout/navigation/side-nav.d.ts +58 -0
- package/dist/components/layout/page/index.d.ts +4 -0
- package/dist/components/layout/page/page.d.ts +3 -0
- package/dist/components/layout/page/page.types.d.ts +138 -0
- package/dist/components/layout/page/partials/page-actions.d.ts +2 -0
- package/dist/components/layout/page/partials/page-header.d.ts +2 -0
- package/dist/components/layout/settings/index.d.ts +1 -0
- package/dist/components/layout/settings/settings.d.ts +65 -0
- package/dist/components/layout/sidebar/app-sidebar.d.ts +7 -0
- package/dist/components/layout/sidebar/components/sidebar-grouped-navigation.d.ts +4 -0
- package/dist/components/layout/sidebar/components/sidebar-logo.d.ts +10 -0
- package/dist/components/layout/sidebar/components/sidebar-navigation-footer.d.ts +2 -0
- package/dist/components/layout/sidebar/components/sidebar-navigation-user.d.ts +23 -0
- package/dist/components/layout/sidebar/components/sidebar-navigation.d.ts +4 -0
- package/dist/components/layout/sidebar/components/sidebar-workspace-dropdown.d.ts +2 -0
- package/dist/components/layout/sidebar/index.d.ts +11 -0
- package/dist/components/layout/sidebar/sidebar.context.d.ts +17 -0
- package/dist/components/layout/sidebar/sidebar.d.ts +9 -0
- package/dist/components/layout/sidebar/sidebar.types.d.ts +218 -0
- package/dist/components/layout/sidebar/sidebar.utils.d.ts +29 -0
- package/dist/components/layout/workspace/index.d.ts +3 -0
- package/dist/components/layout/workspace/workspace.d.ts +6 -0
- package/dist/components/layout/workspace/workspace.strings.d.ts +18 -0
- package/dist/components/layout/workspace/workspace.types.d.ts +141 -0
- package/dist/components/primitives/date.d.ts +63 -0
- package/dist/components/primitives/dimensions.d.ts +30 -0
- package/dist/components/primitives/duration.d.ts +23 -0
- package/dist/components/primitives/file-size.d.ts +23 -0
- package/dist/components/primitives/index.d.ts +11 -0
- package/dist/components/primitives/initials-format.d.ts +21 -0
- package/dist/components/primitives/initials.d.ts +16 -0
- package/dist/components/primitives/link.d.ts +28 -0
- package/dist/components/primitives/money.d.ts +79 -0
- package/dist/components/primitives/name.d.ts +16 -0
- package/dist/components/primitives/number.d.ts +23 -0
- package/dist/components/primitives/value.d.ts +23 -0
- package/dist/components/typography/content-typography.d.ts +4 -0
- package/dist/components/typography/display-label.d.ts +5 -0
- package/dist/components/typography/heading.d.ts +16 -0
- package/dist/components/typography/index.d.ts +10 -0
- package/dist/components/typography/label.d.ts +8 -0
- package/dist/components/typography/rich-text/index.d.ts +2 -0
- package/dist/components/typography/rich-text/rich-text.d.ts +6 -0
- package/dist/components/typography/text-link.d.ts +7 -0
- package/dist/components/typography/text.d.ts +17 -0
- package/dist/components/typography/text.styles.d.ts +50 -0
- package/dist/components/ui/accordion.d.ts +6 -0
- package/dist/components/ui/alert-dialog.d.ts +21 -0
- package/dist/components/ui/avatar.d.ts +11 -0
- package/dist/components/ui/badge.d.ts +5 -0
- package/dist/components/ui/breadcrumb.d.ts +11 -0
- package/dist/components/ui/button-group.d.ts +12 -0
- package/dist/components/ui/button.d.ts +12 -0
- package/dist/components/ui/calendar.d.ts +10 -0
- package/dist/components/ui/card.d.ts +11 -0
- package/dist/components/ui/checkbox.d.ts +6 -0
- package/dist/components/ui/collapsible.d.ts +9 -0
- package/dist/components/ui/combobox.d.ts +40 -0
- package/dist/components/ui/command.d.ts +50 -0
- package/dist/components/ui/dialog.d.ts +26 -0
- package/dist/components/ui/disclosure-panel.d.ts +14 -0
- package/dist/components/ui/empty.d.ts +11 -0
- package/dist/components/ui/input-group.d.ts +18 -0
- package/dist/components/ui/input.d.ts +3 -0
- package/dist/components/ui/item.d.ts +22 -0
- package/dist/components/ui/overlay.recipes.d.ts +2 -0
- package/dist/components/ui/pagination.d.ts +17 -0
- package/dist/components/ui/popover.d.ts +22 -0
- package/dist/components/ui/select.d.ts +18 -0
- package/dist/components/ui/separator.d.ts +3 -0
- package/dist/components/ui/sheet.d.ts +25 -0
- package/dist/components/ui/sidebar.d.ts +64 -0
- package/dist/components/ui/skeleton.d.ts +2 -0
- package/dist/components/ui/slot.d.ts +6 -0
- package/dist/components/ui/sonner.d.ts +3 -0
- package/dist/components/ui/switch.d.ts +5 -0
- package/dist/components/ui/table.d.ts +13 -0
- package/dist/components/ui/tabs.d.ts +10 -0
- package/dist/components/ui/textarea.d.ts +3 -0
- package/dist/components/ui/toggle-group.d.ts +12 -0
- package/dist/components/ui/toggle.d.ts +8 -0
- package/dist/components/ui/tooltip.d.ts +13 -0
- package/dist/containers-CPNyNo1_.js +124 -0
- package/dist/containers-CPNyNo1_.js.map +1 -0
- package/dist/content-typography-CnwgMJ37.js +6 -0
- package/dist/content-typography-CnwgMJ37.js.map +1 -0
- package/dist/copyable-B7SBXJMr.js +65 -0
- package/dist/copyable-B7SBXJMr.js.map +1 -0
- package/dist/data-display-b3d1TfL4.js +1129 -0
- package/dist/data-display-b3d1TfL4.js.map +1 -0
- package/dist/date-BFNMnrS5.js +140 -0
- package/dist/date-BFNMnrS5.js.map +1 -0
- package/dist/date-picker-DI6kPNof.js +1521 -0
- package/dist/date-picker-DI6kPNof.js.map +1 -0
- package/dist/date-pickers-ByP6Cv2z.js +224 -0
- package/dist/date-pickers-ByP6Cv2z.js.map +1 -0
- package/dist/disclosure-panel-B0HFNZ9x.js +35 -0
- package/dist/disclosure-panel-B0HFNZ9x.js.map +1 -0
- package/dist/display-ByI5tkqy.js +343 -0
- package/dist/display-ByI5tkqy.js.map +1 -0
- package/dist/dropdown-menu-BlnyHr-9.js +186 -0
- package/dist/dropdown-menu-BlnyHr-9.js.map +1 -0
- package/dist/editable-text-recipe-Bkm6wKHp.js +10 -0
- package/dist/editable-text-recipe-Bkm6wKHp.js.map +1 -0
- package/dist/favicon.svg +1 -0
- package/dist/features/activities.js +1360 -0
- package/dist/features/activities.js.map +1 -0
- package/dist/features/ai-chat.js +567 -0
- package/dist/features/ai-chat.js.map +1 -0
- package/dist/features/async-preview.js +478 -0
- package/dist/features/async-preview.js.map +1 -0
- package/dist/features/combobox.js +3 -0
- package/dist/features/comments.js +3 -0
- package/dist/features/data-view.js +519 -0
- package/dist/features/data-view.js.map +1 -0
- package/dist/features/email-composer/engine.js +2 -0
- package/dist/features/email-composer.js +1099 -0
- package/dist/features/email-composer.js.map +1 -0
- package/dist/features/event-calendar.js +711 -0
- package/dist/features/event-calendar.js.map +1 -0
- package/dist/features/filters.js +3 -0
- package/dist/features/global-search.js +593 -0
- package/dist/features/global-search.js.map +1 -0
- package/dist/features/kanban.js +425 -0
- package/dist/features/kanban.js.map +1 -0
- package/dist/features/map/images/layers-2x.png +0 -0
- package/dist/features/map/images/layers.png +0 -0
- package/dist/features/map/images/marker-icon-2x.png +0 -0
- package/dist/features/map/images/marker-icon.png +0 -0
- package/dist/features/map/images/marker-shadow.png +0 -0
- package/dist/features/map/images/spritesheet-2x.png +0 -0
- package/dist/features/map/images/spritesheet.png +0 -0
- package/dist/features/map/images/spritesheet.svg +156 -0
- package/dist/features/map/style.css +809 -0
- package/dist/features/map.js +1052 -0
- package/dist/features/map.js.map +1 -0
- package/dist/features/media-library.js +2007 -0
- package/dist/features/media-library.js.map +1 -0
- package/dist/features/mentions.js +3 -0
- package/dist/features/overlays.js +3 -0
- package/dist/features/products.js +3076 -0
- package/dist/features/products.js.map +1 -0
- package/dist/features/questionnaire.js +365 -0
- package/dist/features/questionnaire.js.map +1 -0
- package/dist/features/resource-assignment.js +317 -0
- package/dist/features/resource-assignment.js.map +1 -0
- package/dist/features/resource.js +254 -0
- package/dist/features/resource.js.map +1 -0
- package/dist/features/rich-text-editor.js +23 -0
- package/dist/features/rich-text-editor.js.map +1 -0
- package/dist/features/schema-form.js +744 -0
- package/dist/features/schema-form.js.map +1 -0
- package/dist/features/suggestions.js +149 -0
- package/dist/features/suggestions.js.map +1 -0
- package/dist/features/sync.js +136 -0
- package/dist/features/sync.js.map +1 -0
- package/dist/features/table.js +3 -0
- package/dist/features/theme-tweaker.js +2083 -0
- package/dist/features/theme-tweaker.js.map +1 -0
- package/dist/feedback-a9j9J-9A.js +391 -0
- package/dist/feedback-a9j9J-9A.js.map +1 -0
- package/dist/field-affordance-recipes-CHdUtn2Z.js +17 -0
- package/dist/field-affordance-recipes-CHdUtn2Z.js.map +1 -0
- package/dist/field-state-recipes-CBTRt9Bt.js +11 -0
- package/dist/field-state-recipes-CBTRt9Bt.js.map +1 -0
- package/dist/filters-qtrcv1hf.js +2203 -0
- package/dist/filters-qtrcv1hf.js.map +1 -0
- package/dist/form-field-C6W-y2hR.js +48 -0
- package/dist/form-field-C6W-y2hR.js.map +1 -0
- package/dist/form-sizing-39NohSqn.js +99 -0
- package/dist/form-sizing-39NohSqn.js.map +1 -0
- package/dist/format-iamDSqs2.js +110 -0
- package/dist/format-iamDSqs2.js.map +1 -0
- package/dist/forms-BF-HSbff.js +194 -0
- package/dist/forms-BF-HSbff.js.map +1 -0
- package/dist/forms-numeric-Y15Bg5Nr.js +867 -0
- package/dist/forms-numeric-Y15Bg5Nr.js.map +1 -0
- package/dist/header-B8ex54cY.js +452 -0
- package/dist/header-B8ex54cY.js.map +1 -0
- package/dist/hooks/use-debounce.d.ts +1 -0
- package/dist/hooks/use-debounced-callback.d.ts +40 -0
- package/dist/hooks/use-files.d.ts +48 -0
- package/dist/hooks/use-mobile.d.ts +2 -0
- package/dist/hooks/useFormErrors.d.ts +7 -0
- package/dist/hooks-D6UBVzf2.js +88 -0
- package/dist/hooks-D6UBVzf2.js.map +1 -0
- package/dist/http-CLTVJc5I.js +331 -0
- package/dist/http-CLTVJc5I.js.map +1 -0
- package/dist/icon-badge-Dv0RYQwj.js +53 -0
- package/dist/icon-badge-Dv0RYQwj.js.map +1 -0
- package/dist/icon-size-B6PVwjbC.js +18 -0
- package/dist/icon-size-B6PVwjbC.js.map +1 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +7 -0
- package/dist/initials-format-CDoQEOd_.js +35 -0
- package/dist/initials-format-CDoQEOd_.js.map +1 -0
- package/dist/input-DMorJiTI.js +202 -0
- package/dist/input-DMorJiTI.js.map +1 -0
- package/dist/input-ci9fIgFH.js +20 -0
- package/dist/input-ci9fIgFH.js.map +1 -0
- package/dist/item-pJ0GsOiJ.js +257 -0
- package/dist/item-pJ0GsOiJ.js.map +1 -0
- package/dist/layout/app-shell.js +3 -0
- package/dist/layout/auth.js +3 -0
- package/dist/layout/containers.js +3 -0
- package/dist/layout/header.js +3 -0
- package/dist/layout/hooks.js +3 -0
- package/dist/layout/navigation.js +3 -0
- package/dist/layout/page.js +3 -0
- package/dist/layout/settings.js +3 -0
- package/dist/layout/sidebar.js +4 -0
- package/dist/layout/workspace.js +3 -0
- package/dist/layout.js +13 -0
- package/dist/layout.types-Cn7aUzJp.js +20 -0
- package/dist/layout.types-Cn7aUzJp.js.map +1 -0
- package/dist/lib/action-presentation.d.ts +15 -0
- package/dist/lib/affordance-geometry.generated.d.ts +18 -0
- package/dist/lib/anchored-positioning.d.ts +5 -0
- package/dist/lib/command-filter.d.ts +1 -0
- package/dist/lib/component-vocabulary.d.ts +12 -0
- package/dist/lib/editable-text-recipe.d.ts +6 -0
- package/dist/lib/email-composer.d.ts +6 -0
- package/dist/lib/field-affordance-recipes.d.ts +20 -0
- package/dist/lib/field-state-recipes.d.ts +10 -0
- package/dist/lib/format.d.ts +53 -0
- package/dist/lib/motion-recipes.d.ts +8 -0
- package/dist/lib/navigation-row-recipes.d.ts +26 -0
- package/dist/lib/overlay-anatomy-recipes.d.ts +8 -0
- package/dist/lib/row-recipes.d.ts +3 -0
- package/dist/lib/sanitize-html.d.ts +8 -0
- package/dist/lib/strings.d.ts +16 -0
- package/dist/lib/strings.js +32 -0
- package/dist/lib/strings.js.map +1 -0
- package/dist/lib/surface-recipes.d.ts +27 -0
- package/dist/lib/theme-scope.d.ts +31 -0
- package/dist/lib/token-merge.generated.d.ts +2 -0
- package/dist/lib/track-recipes.d.ts +4 -0
- package/dist/lib/ui-provider/defaults.d.ts +12 -0
- package/dist/lib/ui-provider/hooks.d.ts +13 -0
- package/dist/lib/ui-provider/index.d.ts +28 -0
- package/dist/lib/ui-provider/provider.d.ts +15 -0
- package/dist/lib/ui-provider/scale.d.ts +5 -0
- package/dist/lib/ui-provider/store.d.ts +11 -0
- package/dist/lib/ui-provider/types.d.ts +157 -0
- package/dist/lib/utils.d.ts +2 -0
- package/dist/lib/utils.js +2 -0
- package/dist/map-demo-tile.svg +1 -0
- package/dist/media-gallery-Ca4YmvBi.js +200 -0
- package/dist/media-gallery-Ca4YmvBi.js.map +1 -0
- package/dist/mentions-CRio8mTm.js +563 -0
- package/dist/mentions-CRio8mTm.js.map +1 -0
- package/dist/message-B5-6LeYl.js +108 -0
- package/dist/message-B5-6LeYl.js.map +1 -0
- package/dist/motion-recipes-B6jKXEcN.js +27 -0
- package/dist/motion-recipes-B6jKXEcN.js.map +1 -0
- package/dist/navigation-BTrEb5u4.js +267 -0
- package/dist/navigation-BTrEb5u4.js.map +1 -0
- package/dist/navigation-DqEITuD2.js +265 -0
- package/dist/navigation-DqEITuD2.js.map +1 -0
- package/dist/navigation-row-recipes-BFpvGPGE.js +29 -0
- package/dist/navigation-row-recipes-BFpvGPGE.js.map +1 -0
- package/dist/number-BNT_BIzJ.js +269 -0
- package/dist/number-BNT_BIzJ.js.map +1 -0
- package/dist/overlay.recipes-BxW5FIfK.js +6 -0
- package/dist/overlay.recipes-BxW5FIfK.js.map +1 -0
- package/dist/overlays-DBqV0J_V.js +982 -0
- package/dist/overlays-DBqV0J_V.js.map +1 -0
- package/dist/page-BMBGjJY8.js +202 -0
- package/dist/page-BMBGjJY8.js.map +1 -0
- package/dist/page-header-BH41wCyY.js +112 -0
- package/dist/page-header-BH41wCyY.js.map +1 -0
- package/dist/pagination-C29vvt3I.js +149 -0
- package/dist/pagination-C29vvt3I.js.map +1 -0
- package/dist/popover-TInGXsjg.js +194 -0
- package/dist/popover-TInGXsjg.js.map +1 -0
- package/dist/popover-menu-BzqXqE72.js +99 -0
- package/dist/popover-menu-BzqXqE72.js.map +1 -0
- package/dist/popover.recipes-zgBhMlUu.js +34 -0
- package/dist/popover.recipes-zgBhMlUu.js.map +1 -0
- package/dist/primitives-DKPOGVpj.js +330 -0
- package/dist/primitives-DKPOGVpj.js.map +1 -0
- package/dist/primitives.js +7 -0
- package/dist/receipt-DYWTQGEc.js +113 -0
- package/dist/receipt-DYWTQGEc.js.map +1 -0
- package/dist/rich-text-B7sBAdDG.js +32 -0
- package/dist/rich-text-B7sBAdDG.js.map +1 -0
- package/dist/rich-text-editor-BZSJchAF.js +575 -0
- package/dist/rich-text-editor-BZSJchAF.js.map +1 -0
- package/dist/rich-text-editor.recipes-DxvOE0Lp.js +72 -0
- package/dist/rich-text-editor.recipes-DxvOE0Lp.js.map +1 -0
- package/dist/rich-text-editor.strings-BpnIQgMl.js +25 -0
- package/dist/rich-text-editor.strings-BpnIQgMl.js.map +1 -0
- package/dist/row-recipes-DL8n7t_b.js +10 -0
- package/dist/row-recipes-DL8n7t_b.js.map +1 -0
- package/dist/sanitize-html-BG9FGe-j.js +64 -0
- package/dist/sanitize-html-BG9FGe-j.js.map +1 -0
- package/dist/scroll-area-BheMQ270.js +47 -0
- package/dist/scroll-area-BheMQ270.js.map +1 -0
- package/dist/select-B2mb-qN2.js +108 -0
- package/dist/select-B2mb-qN2.js.map +1 -0
- package/dist/separator-DO0EbCEm.js +17 -0
- package/dist/separator-DO0EbCEm.js.map +1 -0
- package/dist/separator-Gk_WXH-l.js +21 -0
- package/dist/separator-Gk_WXH-l.js.map +1 -0
- package/dist/services/actions/action-adapters.d.ts +77 -0
- package/dist/services/actions/action-overlay-outlet.d.ts +3 -0
- package/dist/services/actions/action-provider.d.ts +7 -0
- package/dist/services/actions/action-scope.d.ts +3 -0
- package/dist/services/actions/action-store.d.ts +55 -0
- package/dist/services/actions/actions.strings.d.ts +2 -0
- package/dist/services/actions/actions.types.d.ts +322 -0
- package/dist/services/actions/hooks.d.ts +8 -0
- package/dist/services/actions/index.d.ts +8 -0
- package/dist/services/actions.js +811 -0
- package/dist/services/actions.js.map +1 -0
- package/dist/settings-D9f_wdIC.js +160 -0
- package/dist/settings-D9f_wdIC.js.map +1 -0
- package/dist/sheet-vOUloJ4O.js +205 -0
- package/dist/sheet-vOUloJ4O.js.map +1 -0
- package/dist/sidebar-C3UKkbC5.js +501 -0
- package/dist/sidebar-C3UKkbC5.js.map +1 -0
- package/dist/sidebar-CNBKFDRW.js +598 -0
- package/dist/sidebar-CNBKFDRW.js.map +1 -0
- package/dist/skeleton-BvRhK8y-.js +264 -0
- package/dist/skeleton-BvRhK8y-.js.map +1 -0
- package/dist/slot-CLF9kLrS.js +16 -0
- package/dist/slot-CLF9kLrS.js.map +1 -0
- package/dist/smart-card-B5FcKODh.js +577 -0
- package/dist/smart-card-B5FcKODh.js.map +1 -0
- package/dist/spinner-JtlFJ7Nc.js +78 -0
- package/dist/spinner-JtlFJ7Nc.js.map +1 -0
- package/dist/structure-BvW4vG4H.js +95 -0
- package/dist/structure-BvW4vG4H.js.map +1 -0
- package/dist/structure.recipes-DjqnBpwz.js +548 -0
- package/dist/structure.recipes-DjqnBpwz.js.map +1 -0
- package/dist/style.css +3 -0
- package/dist/surface-recipes-CQfRr-VL.js +27 -0
- package/dist/surface-recipes-CQfRr-VL.js.map +1 -0
- package/dist/table-DnlAJ-xR.js +146 -0
- package/dist/table-DnlAJ-xR.js.map +1 -0
- package/dist/table-ghtAQ-JJ.js +1424 -0
- package/dist/table-ghtAQ-JJ.js.map +1 -0
- package/dist/tabs-DY09eoZg.js +187 -0
- package/dist/tabs-DY09eoZg.js.map +1 -0
- package/dist/text-inputs-BhOcedTo.js +331 -0
- package/dist/text-inputs-BhOcedTo.js.map +1 -0
- package/dist/text.styles-BwB7vAF2.js +64 -0
- package/dist/text.styles-BwB7vAF2.js.map +1 -0
- package/dist/theme-scope-kStaAer0.js +39 -0
- package/dist/theme-scope-kStaAer0.js.map +1 -0
- package/dist/theme.css +872 -0
- package/dist/timelines-CnZ2S_Gr.js +446 -0
- package/dist/timelines-CnZ2S_Gr.js.map +1 -0
- package/dist/track-recipes-LLPNVwFg.js +10 -0
- package/dist/track-recipes-LLPNVwFg.js.map +1 -0
- package/dist/tree-COD9BGdU.js +185 -0
- package/dist/tree-COD9BGdU.js.map +1 -0
- package/dist/types/index.d.ts +11 -0
- package/dist/types/locale.types.d.ts +7 -0
- package/dist/types/pagination.types.d.ts +24 -0
- package/dist/typography/rich-text.js +3 -0
- package/dist/typography-Cv8MT-82.js +96 -0
- package/dist/typography-Cv8MT-82.js.map +1 -0
- package/dist/typography.js +3 -0
- package/dist/ui-provider-CftIB6TY.js +128 -0
- package/dist/ui-provider-CftIB6TY.js.map +1 -0
- package/dist/ui-provider.js +4 -0
- package/dist/upload-DIzw1dx1.js +849 -0
- package/dist/upload-DIzw1dx1.js.map +1 -0
- package/dist/upload-queue-xRJ3qDmd.js +410 -0
- package/dist/upload-queue-xRJ3qDmd.js.map +1 -0
- package/dist/use-debounce-DZ_1ZBPa.js +18 -0
- package/dist/use-debounce-DZ_1ZBPa.js.map +1 -0
- package/dist/use-debounced-callback-Cx1h-hdv.js +30 -0
- package/dist/use-debounced-callback-Cx1h-hdv.js.map +1 -0
- package/dist/use-file-drop-target-BX7GnhoQ.js +39 -0
- package/dist/use-file-drop-target-BX7GnhoQ.js.map +1 -0
- package/dist/use-mobile-vaLKwgyf.js +15 -0
- package/dist/use-mobile-vaLKwgyf.js.map +1 -0
- package/dist/utils-C2EKeIw3.js +72 -0
- package/dist/utils-C2EKeIw3.js.map +1 -0
- package/dist/value-inputs-Co1fu-xv.js +824 -0
- package/dist/value-inputs-Co1fu-xv.js.map +1 -0
- package/dist/workspace-Cbqz4FzN.js +402 -0
- package/dist/workspace-Cbqz4FzN.js.map +1 -0
- package/docs/consumer-skill/SKILL.md +32 -0
- package/docs/consumer-skill/examples/app-layout.tsx +31 -0
- package/docs/consumer-skill/examples/composition.tsx +37 -0
- package/docs/consumer-skill/examples/content-workflow.tsx +13 -0
- package/docs/consumer-skill/examples/destructive-confirm.tsx +42 -0
- package/docs/consumer-skill/examples/detail.tsx +28 -0
- package/docs/consumer-skill/examples/edit.tsx +61 -0
- package/docs/consumer-skill/examples/email-composer.tsx +25 -0
- package/docs/consumer-skill/examples/hierarchy-capture.tsx +25 -0
- package/docs/consumer-skill/examples/index-table.tsx +36 -0
- package/docs/consumer-skill/examples/manifest.json +94 -0
- package/docs/consumer-skill/examples/receipt.tsx +19 -0
- package/docs/consumer-skill/references/composition.md +170 -0
- package/docs/consumer-skill/references/design-contract.md +145 -0
- package/docs/consumer-skill/references/discovery.md +33 -0
- package/docs/consumer-skill/references/installation.md +66 -0
- package/docs/consumer-skill/references/integration.md +57 -0
- package/docs/consumer-skill/references/public-api.json +17527 -0
- package/docs/consumer-skill/references/theming.md +56 -0
- package/docs/consumer-skill/references/tokens.json +422 -0
- package/docs/consumer-skill/references/workflows.md +39 -0
- package/docs/consumer-skill/scripts/discovery.mjs +79 -0
- package/docs/consumer-skill/scripts/find-components.mjs +11 -0
- package/package.json +621 -4
|
@@ -0,0 +1,1424 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { _ as e, s as t } from "./ui-provider-CftIB6TY.js";
|
|
3
|
+
import { t as n } from "./utils-C2EKeIw3.js";
|
|
4
|
+
import { n as r } from "./buttons-Co6GavvM.js";
|
|
5
|
+
import { a as i, r as a, t as o } from "./typography-Cv8MT-82.js";
|
|
6
|
+
import { t as s } from "./structure-BvW4vG4H.js";
|
|
7
|
+
import { n as c, t as l } from "./action-menu-Cx3SdfbN.js";
|
|
8
|
+
import { _ as u, c as d, d as f, g as p, h as m, i as h, l as g, m as _, o as v, p as y, s as b } from "./primitives-DKPOGVpj.js";
|
|
9
|
+
import { t as x } from "./initials-format-CDoQEOd_.js";
|
|
10
|
+
import { n as ee, r as S, t as C } from "./number-BNT_BIzJ.js";
|
|
11
|
+
import { a as w, i as te, r as ne, s as T, t as re } from "./date-BFNMnrS5.js";
|
|
12
|
+
import { t as ie } from "./badge-BZXZT9wd.js";
|
|
13
|
+
import { t as ae } from "./separator-Gk_WXH-l.js";
|
|
14
|
+
import { t as oe } from "./input-DMorJiTI.js";
|
|
15
|
+
import { c as se } from "./choice-inputs-CavA-SGV.js";
|
|
16
|
+
import { a as ce, c as le, i as ue, n as de, o as fe, r as E, s as pe, t as D } from "./pagination-C29vvt3I.js";
|
|
17
|
+
import { c as O, i as me, n as he, o as ge, s as _e, t as ve } from "./table-DnlAJ-xR.js";
|
|
18
|
+
import { l as ye } from "./data-display-b3d1TfL4.js";
|
|
19
|
+
import { createContext as be, isValidElement as xe, useCallback as k, useContext as Se, useEffect as A, useMemo as j, useRef as M, useState as N } from "react";
|
|
20
|
+
import { Fragment as Ce, jsx as P, jsxs as F } from "react/jsx-runtime";
|
|
21
|
+
import { ArrowDown as we, ArrowUp as Te, Calendar as I, ChevronLeft as Ee, ChevronRight as De, ChevronsUpDown as Oe, Mail as L, Maximize2 as ke, Minimize2 as Ae, MoreHorizontal as je, PackageOpen as Me, Settings2 as Ne } from "lucide-react";
|
|
22
|
+
import { flexRender as Pe, getCoreRowModel as Fe, getFilteredRowModel as Ie, getSortedRowModel as Le, useReactTable as Re } from "@tanstack/react-table";
|
|
23
|
+
//#region src/components/features/table/hooks.ts
|
|
24
|
+
var ze = 300;
|
|
25
|
+
function R(e) {
|
|
26
|
+
return e ? e.querySelector("[data-slot=\"table-container\"]") : null;
|
|
27
|
+
}
|
|
28
|
+
function Be(e, t = {}) {
|
|
29
|
+
let { stepPx: n = ze, deps: r = [] } = t, [i, a] = N(!1), [o, s] = N(!1), c = M(0), l = k(() => {
|
|
30
|
+
let t = R(e.current);
|
|
31
|
+
if (!t) {
|
|
32
|
+
a(!1), s(!1);
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
let { scrollLeft: n, scrollWidth: r, clientWidth: i } = t;
|
|
36
|
+
a(n > 1), s(n + i < r - 1);
|
|
37
|
+
}, [e]);
|
|
38
|
+
A(() => {
|
|
39
|
+
let t, n = window.setTimeout(() => {
|
|
40
|
+
l();
|
|
41
|
+
let n = R(e.current);
|
|
42
|
+
if (!n) return;
|
|
43
|
+
let r = () => {
|
|
44
|
+
cancelAnimationFrame(c.current), c.current = requestAnimationFrame(l);
|
|
45
|
+
};
|
|
46
|
+
n.addEventListener("scroll", r, { passive: !0 });
|
|
47
|
+
let i = new ResizeObserver(l);
|
|
48
|
+
i.observe(n), n.firstElementChild && i.observe(n.firstElementChild), t = () => {
|
|
49
|
+
n.removeEventListener("scroll", r), cancelAnimationFrame(c.current), i.disconnect();
|
|
50
|
+
};
|
|
51
|
+
}, 0);
|
|
52
|
+
return () => {
|
|
53
|
+
window.clearTimeout(n), t?.();
|
|
54
|
+
};
|
|
55
|
+
}, [
|
|
56
|
+
e,
|
|
57
|
+
l,
|
|
58
|
+
...r
|
|
59
|
+
]);
|
|
60
|
+
let u = k((t) => {
|
|
61
|
+
R(e.current)?.scrollBy({
|
|
62
|
+
left: t,
|
|
63
|
+
behavior: "smooth"
|
|
64
|
+
});
|
|
65
|
+
}, [e]);
|
|
66
|
+
return {
|
|
67
|
+
canScrollLeft: i,
|
|
68
|
+
canScrollRight: o,
|
|
69
|
+
scrollBy: u,
|
|
70
|
+
scrollLeft: k(() => u(-n), [u, n]),
|
|
71
|
+
scrollRight: k(() => u(n), [u, n])
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
var Ve = [
|
|
75
|
+
"a[href]",
|
|
76
|
+
"button:not([disabled])",
|
|
77
|
+
"input:not([disabled])",
|
|
78
|
+
"select:not([disabled])",
|
|
79
|
+
"textarea:not([disabled])",
|
|
80
|
+
"[tabindex]:not([tabindex=\"-1\"])"
|
|
81
|
+
].join(",");
|
|
82
|
+
function He(e, t, n) {
|
|
83
|
+
let r = M(n);
|
|
84
|
+
r.current = n, A(() => {
|
|
85
|
+
if (!e || typeof document > "u") return;
|
|
86
|
+
let n = document.activeElement, i = document.body.style.overflow;
|
|
87
|
+
document.body.style.overflow = "hidden";
|
|
88
|
+
let a = (e) => {
|
|
89
|
+
let n = t.current;
|
|
90
|
+
if (!n) return;
|
|
91
|
+
if (e.key === "Escape") {
|
|
92
|
+
e.preventDefault(), e.stopPropagation(), r.current();
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
95
|
+
if (e.key !== "Tab") return;
|
|
96
|
+
let i = Array.from(n.querySelectorAll(Ve)).filter((e) => e.offsetParent !== null || e === document.activeElement);
|
|
97
|
+
if (i.length === 0) return;
|
|
98
|
+
let a = i[0], o = i[i.length - 1], s = document.activeElement, c = s instanceof Node && n.contains(s);
|
|
99
|
+
e.shiftKey && (!c || s === a) ? (e.preventDefault(), o.focus()) : !e.shiftKey && (!c || s === o) && (e.preventDefault(), a.focus());
|
|
100
|
+
}, o = t.current;
|
|
101
|
+
return document.addEventListener("keydown", a, !0), () => {
|
|
102
|
+
document.removeEventListener("keydown", a, !0), document.body.style.overflow = i;
|
|
103
|
+
let e = document.activeElement;
|
|
104
|
+
(o && e instanceof Node && o.contains(e) || e === document.body) && n?.isConnected && n.focus();
|
|
105
|
+
};
|
|
106
|
+
}, [e, t]);
|
|
107
|
+
}
|
|
108
|
+
//#endregion
|
|
109
|
+
//#region src/components/features/table/table.strings.ts
|
|
110
|
+
var Ue = (e) => {
|
|
111
|
+
let t = e.replace(/[_-]+/g, " ").replace(/\s+/g, " ").trim();
|
|
112
|
+
return t ? t.replace(/\b\w/g, (e) => e.toUpperCase()) : "Column";
|
|
113
|
+
}, z = {
|
|
114
|
+
emptyState: { message: "No results found." },
|
|
115
|
+
actions: {
|
|
116
|
+
triggerLabel: "Actions",
|
|
117
|
+
srLabel: "Row actions menu"
|
|
118
|
+
},
|
|
119
|
+
filter: {
|
|
120
|
+
searchPlaceholder: "Filter...",
|
|
121
|
+
columnsButton: "Columns"
|
|
122
|
+
},
|
|
123
|
+
columnVisibility: {
|
|
124
|
+
title: "Toggle columns",
|
|
125
|
+
triggerLabel: "Columns",
|
|
126
|
+
formatLabel: (e, t) => t && t.trim().length > 0 ? t : Ue(e)
|
|
127
|
+
},
|
|
128
|
+
toolbar: {
|
|
129
|
+
scrollLeft: "Scroll left",
|
|
130
|
+
scrollRight: "Scroll right",
|
|
131
|
+
columns: "Toggle columns",
|
|
132
|
+
enterFullscreen: "Enter full screen",
|
|
133
|
+
exitFullscreen: "Exit full screen"
|
|
134
|
+
},
|
|
135
|
+
pagination: {
|
|
136
|
+
showing: "Showing",
|
|
137
|
+
to: "to",
|
|
138
|
+
of: "of",
|
|
139
|
+
entries: "results",
|
|
140
|
+
previous: "Previous",
|
|
141
|
+
next: "Next",
|
|
142
|
+
previousLabel: "Go to previous page",
|
|
143
|
+
nextLabel: "Go to next page",
|
|
144
|
+
morePages: "More pages",
|
|
145
|
+
page: "Page",
|
|
146
|
+
rowsPerPage: "Rows per page",
|
|
147
|
+
ariaLabel: "Pagination navigation"
|
|
148
|
+
},
|
|
149
|
+
selection: {
|
|
150
|
+
summary: (e, t) => `${e} of ${t} row${t === 1 ? "" : "s"} selected.`,
|
|
151
|
+
row: (e) => `Select row ${e + 1}`,
|
|
152
|
+
selectAll: "Select all rows",
|
|
153
|
+
clear: "Clear selection"
|
|
154
|
+
},
|
|
155
|
+
accessibility: {
|
|
156
|
+
scrollRegion: "Table scroll area",
|
|
157
|
+
fullscreenRegion: "Table, full screen"
|
|
158
|
+
}
|
|
159
|
+
}, B = (e, t) => ({
|
|
160
|
+
...e,
|
|
161
|
+
...t ?? {}
|
|
162
|
+
}), We = (e) => e ? {
|
|
163
|
+
emptyState: B(z.emptyState, e.emptyState),
|
|
164
|
+
actions: B(z.actions, e.actions),
|
|
165
|
+
filter: B(z.filter, e.filter),
|
|
166
|
+
columnVisibility: B(z.columnVisibility, e.columnVisibility),
|
|
167
|
+
toolbar: B(z.toolbar, e.toolbar),
|
|
168
|
+
pagination: B(z.pagination, e.pagination),
|
|
169
|
+
selection: B(z.selection, e.selection),
|
|
170
|
+
accessibility: B(z.accessibility, e.accessibility)
|
|
171
|
+
} : z;
|
|
172
|
+
//#endregion
|
|
173
|
+
//#region src/components/features/table/pagination.tsx
|
|
174
|
+
function V(e, t) {
|
|
175
|
+
if (t <= 7) return Array.from({ length: t }, (e, t) => t + 1);
|
|
176
|
+
let n = [1];
|
|
177
|
+
e > 3 && n.push("ellipsis");
|
|
178
|
+
let r = Math.max(2, e - 1), i = Math.min(t - 1, e + 1);
|
|
179
|
+
for (let e = r; e <= i; e++) n.push(e);
|
|
180
|
+
return e < t - 2 && n.push("ellipsis"), n.push(t), n;
|
|
181
|
+
}
|
|
182
|
+
function Ge(e, t, n) {
|
|
183
|
+
let r = new URLSearchParams();
|
|
184
|
+
return r.set(n, String(t)), `${e}?${r.toString()}`;
|
|
185
|
+
}
|
|
186
|
+
function Ke({ pagination: e, onPageChange: t, labels: r = {}, pageQueryKey: i }) {
|
|
187
|
+
let a = {
|
|
188
|
+
...z.pagination,
|
|
189
|
+
...r
|
|
190
|
+
}, o = {
|
|
191
|
+
navigationLabel: a.ariaLabel,
|
|
192
|
+
previous: a.previous,
|
|
193
|
+
next: a.next,
|
|
194
|
+
previousLabel: a.previousLabel ?? le.previousLabel,
|
|
195
|
+
nextLabel: a.nextLabel ?? le.nextLabel,
|
|
196
|
+
morePages: a.morePages ?? le.morePages
|
|
197
|
+
}, s = i ?? "page", c = (e.current_page - 1) * e.per_page + 1, l = Math.min(e.current_page * e.per_page, e.total), u = k((n, r) => {
|
|
198
|
+
r && t?.(n, r, e.path || "");
|
|
199
|
+
}, [t, e.path]), d = e.prev_page_url !== null, f = e.next_page_url !== null, m = V(e.current_page, e.last_page);
|
|
200
|
+
return /* @__PURE__ */ F("div", {
|
|
201
|
+
className: n("pagination--component", "flex flex-col items-start gap-space-md px-surface py-row-y-lg sm:flex-row sm:items-center sm:justify-between sm:gap-0"),
|
|
202
|
+
children: [/* @__PURE__ */ F(p, {
|
|
203
|
+
size: "xs",
|
|
204
|
+
className: "tabular-nums tracking-tight",
|
|
205
|
+
children: [
|
|
206
|
+
/* @__PURE__ */ P(C, {
|
|
207
|
+
value: c,
|
|
208
|
+
size: "xs",
|
|
209
|
+
weight: "medium",
|
|
210
|
+
align: "left"
|
|
211
|
+
}),
|
|
212
|
+
"–",
|
|
213
|
+
/* @__PURE__ */ P(C, {
|
|
214
|
+
value: l,
|
|
215
|
+
size: "xs",
|
|
216
|
+
weight: "medium",
|
|
217
|
+
align: "left"
|
|
218
|
+
}),
|
|
219
|
+
" ",
|
|
220
|
+
a.of,
|
|
221
|
+
" ",
|
|
222
|
+
/* @__PURE__ */ P(C, {
|
|
223
|
+
value: e.total,
|
|
224
|
+
size: "xs",
|
|
225
|
+
weight: "medium",
|
|
226
|
+
align: "left"
|
|
227
|
+
}),
|
|
228
|
+
" ",
|
|
229
|
+
a.entries
|
|
230
|
+
]
|
|
231
|
+
}), /* @__PURE__ */ P(pe, {
|
|
232
|
+
strings: o,
|
|
233
|
+
className: "mx-0 w-full justify-start sm:w-auto sm:justify-center",
|
|
234
|
+
children: /* @__PURE__ */ F(D, {
|
|
235
|
+
className: "gap-0 sm:gap-space-2xs",
|
|
236
|
+
children: [
|
|
237
|
+
/* @__PURE__ */ P(E, { children: /* @__PURE__ */ P(fe, {
|
|
238
|
+
text: a.previous,
|
|
239
|
+
href: "#",
|
|
240
|
+
onClick: (t) => {
|
|
241
|
+
t.preventDefault(), u(e.current_page - 1, e.prev_page_url);
|
|
242
|
+
},
|
|
243
|
+
"aria-disabled": !d,
|
|
244
|
+
className: `h-action-sm text-pxs ${d ? "" : "pointer-events-none opacity-40"}`
|
|
245
|
+
}) }),
|
|
246
|
+
m.map((t, n) => {
|
|
247
|
+
let r = t === "ellipsis", i = r ? `ellipsis-${e.current_page}-${n}` : `page-${t}`;
|
|
248
|
+
return /* @__PURE__ */ P(E, { children: r ? /* @__PURE__ */ P(de, { className: "size-action-sm" }) : /* @__PURE__ */ P(ue, {
|
|
249
|
+
href: "#",
|
|
250
|
+
active: t === e.current_page,
|
|
251
|
+
onClick: (n) => {
|
|
252
|
+
n.preventDefault(), u(t, Ge(e.path, t, s));
|
|
253
|
+
},
|
|
254
|
+
className: "size-action-sm text-pxs",
|
|
255
|
+
children: t
|
|
256
|
+
}) }, i);
|
|
257
|
+
}),
|
|
258
|
+
/* @__PURE__ */ P(E, { children: /* @__PURE__ */ P(ce, {
|
|
259
|
+
text: a.next,
|
|
260
|
+
href: "#",
|
|
261
|
+
onClick: (t) => {
|
|
262
|
+
t.preventDefault(), u(e.current_page + 1, e.next_page_url);
|
|
263
|
+
},
|
|
264
|
+
"aria-disabled": !f,
|
|
265
|
+
className: `h-action-sm text-pxs ${f ? "" : "pointer-events-none opacity-40"}`
|
|
266
|
+
}) })
|
|
267
|
+
]
|
|
268
|
+
})
|
|
269
|
+
})]
|
|
270
|
+
});
|
|
271
|
+
}
|
|
272
|
+
Ke.displayName = "Pagination";
|
|
273
|
+
//#endregion
|
|
274
|
+
//#region src/components/features/table/table-actions.tsx
|
|
275
|
+
function qe(e) {
|
|
276
|
+
let { row: t, actions: r, menuLabel: i, displayMode: a = "menu", responsiveBreakpoint: o = 1040, strings: s } = e, u = s ?? z, d = i ?? u.actions.triggerLabel, f = j(() => {
|
|
277
|
+
let e = typeof r == "function" ? r(t) : r;
|
|
278
|
+
return Array.isArray(e) ? e : [];
|
|
279
|
+
}, [r, t]), p = j(() => {
|
|
280
|
+
let e = (e) => typeof e == "function" ? e(t) : e;
|
|
281
|
+
return f.flatMap((t) => {
|
|
282
|
+
let n = e(t.visible) ?? !0;
|
|
283
|
+
return n ? [{
|
|
284
|
+
...t,
|
|
285
|
+
visible: n,
|
|
286
|
+
disabled: e(t.disabled) ?? !1
|
|
287
|
+
}] : [];
|
|
288
|
+
});
|
|
289
|
+
}, [f, t]), m = p.length > 0, [h, g] = N(!1), _ = p.filter((e) => e.tone !== "destructive"), v = p.filter((e) => e.tone === "destructive"), y = [..._, ...v];
|
|
290
|
+
if (A(() => {
|
|
291
|
+
if (a !== "auto" || !m) {
|
|
292
|
+
g(!1);
|
|
293
|
+
return;
|
|
294
|
+
}
|
|
295
|
+
let e = () => {
|
|
296
|
+
try {
|
|
297
|
+
g(window.innerWidth <= o);
|
|
298
|
+
} catch {
|
|
299
|
+
g(!1);
|
|
300
|
+
}
|
|
301
|
+
};
|
|
302
|
+
return e(), window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
|
|
303
|
+
}, [
|
|
304
|
+
a,
|
|
305
|
+
m,
|
|
306
|
+
o
|
|
307
|
+
]), !m) return null;
|
|
308
|
+
let b = a === "auto" ? h ? "menu" : "inline" : a, x = y.map((e, n) => ({
|
|
309
|
+
id: e.id || `${e.label}-${n}`,
|
|
310
|
+
label: e.label,
|
|
311
|
+
icon: e.icon,
|
|
312
|
+
disabled: !!e.disabled,
|
|
313
|
+
tone: e.tone,
|
|
314
|
+
buttonStyle: e.buttonStyle,
|
|
315
|
+
onClick: () => e.onClick?.(t)
|
|
316
|
+
}));
|
|
317
|
+
return b === "inline" ? /* @__PURE__ */ P(l, {
|
|
318
|
+
actions: x,
|
|
319
|
+
className: n("table-actions--component")
|
|
320
|
+
}) : /* @__PURE__ */ P(c, {
|
|
321
|
+
actions: x,
|
|
322
|
+
label: void 0,
|
|
323
|
+
icon: je,
|
|
324
|
+
srText: d || u.actions.srLabel,
|
|
325
|
+
closeOnSelect: !0,
|
|
326
|
+
align: "end",
|
|
327
|
+
density: "table"
|
|
328
|
+
});
|
|
329
|
+
}
|
|
330
|
+
qe.displayName = "DataTableActions";
|
|
331
|
+
//#endregion
|
|
332
|
+
//#region src/components/features/table/table-helpers.tsx
|
|
333
|
+
var Je = (e, t, n) => {
|
|
334
|
+
typeof e == "function" ? t((t) => {
|
|
335
|
+
let r = e(t);
|
|
336
|
+
return n && n(r), r;
|
|
337
|
+
}) : (t(e), n && n(e));
|
|
338
|
+
}, Ye = (e, t, n) => {
|
|
339
|
+
typeof e == "function" ? t((t) => {
|
|
340
|
+
let r = e(t);
|
|
341
|
+
return n && n(r), r;
|
|
342
|
+
}) : (t(e), n && n(e));
|
|
343
|
+
}, H = (e, t, n) => {
|
|
344
|
+
typeof e == "function" ? t((t) => {
|
|
345
|
+
let r = e(t);
|
|
346
|
+
return n && n(r), r;
|
|
347
|
+
}) : (t(e), n && n(e));
|
|
348
|
+
}, U = (e, t, n, r) => {
|
|
349
|
+
let i = "";
|
|
350
|
+
return r && (i += "bg-primary/5 "), typeof n == "function" ? i += n(e, t) + " " : n && (i += n + " "), i.trim();
|
|
351
|
+
}, W = (e, t, n, r, i) => {
|
|
352
|
+
let a = "";
|
|
353
|
+
return typeof n == "string" ? a = n : n && (a = n(e, t)), r && i ? `${a} sticky left-0 z-10 bg-card shadow-[1px_0_0_0_var(--border)]` : a;
|
|
354
|
+
}, Xe = (e) => e.getSelectedRowModel().rows.map((e) => e.original), Ze = (e, t = z) => /* @__PURE__ */ P("div", {
|
|
355
|
+
className: "px-space-sm",
|
|
356
|
+
children: /* @__PURE__ */ P(se, {
|
|
357
|
+
className: "size-icon cursor-pointer disabled:cursor-not-allowed disabled:opacity-40",
|
|
358
|
+
checked: e.getIsSelected(),
|
|
359
|
+
disabled: !e.getCanSelect(),
|
|
360
|
+
onCheckedChange: (t) => e.toggleSelected(t === !0),
|
|
361
|
+
onClick: (e) => e.stopPropagation(),
|
|
362
|
+
"aria-label": t.selection.row(e.index)
|
|
363
|
+
})
|
|
364
|
+
}), Qe = (e, t = z) => /* @__PURE__ */ P("div", {
|
|
365
|
+
className: "px-space-sm",
|
|
366
|
+
children: /* @__PURE__ */ P(se, {
|
|
367
|
+
className: "size-icon cursor-pointer",
|
|
368
|
+
checked: e.getIsAllPageRowsSelected(),
|
|
369
|
+
indeterminate: e.getIsSomePageRowsSelected() && !e.getIsAllPageRowsSelected(),
|
|
370
|
+
onCheckedChange: (t) => e.toggleAllPageRowsSelected(t === !0),
|
|
371
|
+
"aria-label": t.selection.selectAll
|
|
372
|
+
})
|
|
373
|
+
}), $e = (e, t = z) => [{
|
|
374
|
+
id: "selection",
|
|
375
|
+
header: ({ table: e }) => Qe(e, t),
|
|
376
|
+
cell: ({ row: e }) => Ze(e, t),
|
|
377
|
+
enableSorting: !1,
|
|
378
|
+
enableResizing: !1,
|
|
379
|
+
size: 40
|
|
380
|
+
}, ...e];
|
|
381
|
+
//#endregion
|
|
382
|
+
//#region src/components/features/table/table-body.tsx
|
|
383
|
+
function et({ table: e, onRowClick: t, emptyStateMessage: r, emptyStateAction: i, cellClassName: a = "", rowClassName: o = "", stickyFirstColumn: s = !1, striped: c = !1, strings: l }) {
|
|
384
|
+
let u = e.getRowModel().rows, d = r ?? l?.emptyState.message ?? z.emptyState.message, f = (e) => {
|
|
385
|
+
t && t(e);
|
|
386
|
+
};
|
|
387
|
+
return u.length ? /* @__PURE__ */ P(he, { children: u.map((e, r) => {
|
|
388
|
+
let i = e.getIsSelected(), l = e.getVisibleCells(), u = U(e, r, o, i), d = () => {
|
|
389
|
+
t && f(e.original);
|
|
390
|
+
}, p = c && r % 2 != 0 ? "bg-muted/30" : "", m = n(u, p, "transition-colors duration-150", "hover:bg-muted/35 data-[state=selected]:bg-primary/8", t ? "cursor-pointer" : "", "border-b border-border/50 last:border-b-0");
|
|
391
|
+
return /* @__PURE__ */ P(O, {
|
|
392
|
+
"data-state": i ? "selected" : null,
|
|
393
|
+
className: m,
|
|
394
|
+
onClick: d,
|
|
395
|
+
children: l.map((t, r) => /* @__PURE__ */ P(me, {
|
|
396
|
+
className: n(W(t.column.id, e, a, s, r === 0), "first:pl-surface last:pr-surface", t.column.columnDef.meta?.align === "end" && "text-right", t.column.columnDef.meta?.align === "center" && "text-center"),
|
|
397
|
+
children: Pe(t.column.columnDef.cell, t.getContext())
|
|
398
|
+
}, t.id))
|
|
399
|
+
}, e.id);
|
|
400
|
+
}) }) : /* @__PURE__ */ P(he, {
|
|
401
|
+
className: "table-body--component",
|
|
402
|
+
children: /* @__PURE__ */ P(O, {
|
|
403
|
+
className: "hover:bg-transparent",
|
|
404
|
+
children: /* @__PURE__ */ P(me, {
|
|
405
|
+
className: "p-0 text-center",
|
|
406
|
+
colSpan: e.getAllColumns().length,
|
|
407
|
+
children: /* @__PURE__ */ P(ye, {
|
|
408
|
+
title: d,
|
|
409
|
+
description: !1,
|
|
410
|
+
media: /* @__PURE__ */ P(Me, { className: "size-icon" }),
|
|
411
|
+
mediaVariant: "icon-soft",
|
|
412
|
+
actions: i,
|
|
413
|
+
className: "data-table--empty-state"
|
|
414
|
+
})
|
|
415
|
+
})
|
|
416
|
+
})
|
|
417
|
+
});
|
|
418
|
+
}
|
|
419
|
+
et.displayName = "DataTableBody";
|
|
420
|
+
//#endregion
|
|
421
|
+
//#region src/components/features/table/table-header.tsx
|
|
422
|
+
function tt({ table: e, enableResizing: t = !1, stickyHeader: o = !1, headerClassName: s = "", cellClassName: c = "", stickyFirstColumn: l = !1, columnGroups: u, headerTransparent: d = !1 }) {
|
|
423
|
+
let f = e.getHeaderGroups(), p = o ? n("sticky top-0 z-20 backdrop-blur-md shadow-[0_1px_0_0_var(--border)]", d ? "bg-background/95" : "bg-muted/95") : "", m = (e) => u ? u.find((t) => t.columns.includes(e)) : null;
|
|
424
|
+
return /* @__PURE__ */ F(_e, {
|
|
425
|
+
className: s,
|
|
426
|
+
children: [(() => {
|
|
427
|
+
if (!u || u.length === 0 || f.length === 0) return null;
|
|
428
|
+
let e = f[0].headers, t = null, r = 0, i = [];
|
|
429
|
+
return e.forEach((o, s) => {
|
|
430
|
+
let c = m(o.id)?.header || "";
|
|
431
|
+
c === t ? r++ : (t !== null && r > 0 && i.push(/* @__PURE__ */ P(ge, {
|
|
432
|
+
colSpan: r,
|
|
433
|
+
className: n("h-12 border-r border-border/60 bg-muted/35 px-surface py-row-y-sm text-center text-muted-foreground/75 last:border-r-0", p),
|
|
434
|
+
children: /* @__PURE__ */ P(a, { children: t || "" })
|
|
435
|
+
}, `group-${t}-${i.length}`)), t = c, r = 1), s === e.length - 1 && r > 0 && i.push(/* @__PURE__ */ P(ge, {
|
|
436
|
+
colSpan: r,
|
|
437
|
+
className: n("h-12 whitespace-nowrap border-r border-border/60 bg-muted/35 px-surface py-row-y-sm text-center text-muted-foreground/75 last:border-r-0", p),
|
|
438
|
+
children: /* @__PURE__ */ P(a, { children: t || "" })
|
|
439
|
+
}, `group-${t}-${i.length}`));
|
|
440
|
+
}), /* @__PURE__ */ P(O, {
|
|
441
|
+
className: n("table-header--component", "border-b border-border"),
|
|
442
|
+
children: i
|
|
443
|
+
});
|
|
444
|
+
})(), f.map((e) => /* @__PURE__ */ P(O, {
|
|
445
|
+
className: n("border-b border-border/70", d ? "bg-transparent hover:bg-transparent" : "bg-muted/45 hover:bg-muted/45"),
|
|
446
|
+
children: e.headers.map((e, a) => {
|
|
447
|
+
let s = n(W(e.id, null, c, l, a === 0), "h-12", "first:pl-surface last:pr-surface", "text-muted-foreground font-medium whitespace-nowrap", e.column.columnDef.meta?.align === "end" && "text-right", e.column.columnDef.meta?.align === "center" && "text-center", p, o && l && a === 0 && "z-30", !o && "bg-transparent"), u = t ? { position: "relative" } : void 0, d = e.getResizeHandler(), f = e.column.getIsResizing(), m = (() => {
|
|
448
|
+
let t = e.column.columnDef.header;
|
|
449
|
+
return typeof t == "string" ? t : typeof e.id == "string" ? e.id : "column";
|
|
450
|
+
})();
|
|
451
|
+
return /* @__PURE__ */ P(ge, {
|
|
452
|
+
className: s,
|
|
453
|
+
style: u,
|
|
454
|
+
children: e.isPlaceholder ? null : /* @__PURE__ */ F("div", { children: [(() => {
|
|
455
|
+
let t = e.column.getCanSort(), i = e.column.getIsSorted(), a = Pe(e.column.columnDef.header, e.getContext()), o = i === "asc" ? Te : i === "desc" ? we : Oe;
|
|
456
|
+
return t ? /* @__PURE__ */ F(r, {
|
|
457
|
+
type: "button",
|
|
458
|
+
tone: "secondary",
|
|
459
|
+
buttonStyle: "ghost",
|
|
460
|
+
size: "sm",
|
|
461
|
+
onClick: e.column.getToggleSortingHandler(),
|
|
462
|
+
className: n("group -ml-space-sm inline-flex select-none items-center gap-space-sm rounded px-space-sm", "hover:text-foreground transition-colors", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/40", i && "text-foreground"),
|
|
463
|
+
"aria-label": `Sort ${m}`,
|
|
464
|
+
children: [a, /* @__PURE__ */ P(o, {
|
|
465
|
+
className: n("size-icon-sm shrink-0 transition-opacity", i ? "opacity-100" : "opacity-30 group-hover:opacity-70"),
|
|
466
|
+
"aria-hidden": "true"
|
|
467
|
+
})]
|
|
468
|
+
}) : /* @__PURE__ */ P("div", {
|
|
469
|
+
className: n("flex items-center", e.column.columnDef.meta?.align === "end" && "justify-end", e.column.columnDef.meta?.align === "center" && "justify-center"),
|
|
470
|
+
children: a
|
|
471
|
+
});
|
|
472
|
+
})(), !!t && /* @__PURE__ */ P(r, {
|
|
473
|
+
type: "button",
|
|
474
|
+
tone: "secondary",
|
|
475
|
+
buttonStyle: "ghost",
|
|
476
|
+
size: "sm",
|
|
477
|
+
iconOnly: !0,
|
|
478
|
+
className: n("absolute top-0 right-0 h-full w-1 cursor-col-resize select-none touch-none rounded-none bg-foreground/50 p-0 opacity-0 hover:opacity-100 focus-visible:opacity-100 focus-visible:outline-none", f && "bg-primary-accent!"),
|
|
479
|
+
"aria-label": `Resize ${m}`,
|
|
480
|
+
"aria-orientation": "vertical",
|
|
481
|
+
onMouseDown: d,
|
|
482
|
+
onTouchStart: d,
|
|
483
|
+
children: /* @__PURE__ */ P(i, {
|
|
484
|
+
tag: "span",
|
|
485
|
+
size: "inherit",
|
|
486
|
+
className: "sr-only",
|
|
487
|
+
children: `Resize ${m}`
|
|
488
|
+
})
|
|
489
|
+
})] })
|
|
490
|
+
}, e.id);
|
|
491
|
+
})
|
|
492
|
+
}, e.id))]
|
|
493
|
+
});
|
|
494
|
+
}
|
|
495
|
+
tt.displayName = "DataTableHeader";
|
|
496
|
+
//#endregion
|
|
497
|
+
//#region src/components/features/table/column-visibility-toggle.tsx
|
|
498
|
+
function G({ table: e, className: t, align: r = "end", labelVisibility: i = "hidden", strings: a = z }) {
|
|
499
|
+
let o = e.getAllColumns().filter((e) => e.getCanHide());
|
|
500
|
+
if (o.length === 0) return null;
|
|
501
|
+
let s = i !== "hidden", l = o.map((e) => {
|
|
502
|
+
let t = e.columnDef.header, n = a.columnVisibility.formatLabel(e.id, typeof t == "string" ? t : void 0);
|
|
503
|
+
return {
|
|
504
|
+
id: e.id,
|
|
505
|
+
type: "checkbox",
|
|
506
|
+
label: n,
|
|
507
|
+
group: a.columnVisibility.title,
|
|
508
|
+
checked: e.getIsVisible(),
|
|
509
|
+
onCheckedChange: (t) => e.toggleVisibility(!!t),
|
|
510
|
+
className: "capitalize"
|
|
511
|
+
};
|
|
512
|
+
});
|
|
513
|
+
return /* @__PURE__ */ P(c, {
|
|
514
|
+
actions: l,
|
|
515
|
+
icon: Ne,
|
|
516
|
+
label: a.columnVisibility.triggerLabel,
|
|
517
|
+
srText: a.columnVisibility.triggerLabel,
|
|
518
|
+
align: r,
|
|
519
|
+
width: "w-48",
|
|
520
|
+
density: "table",
|
|
521
|
+
labelVisibility: s ? "responsive" : "hidden",
|
|
522
|
+
buttonProps: {
|
|
523
|
+
"aria-label": a.columnVisibility.triggerLabel,
|
|
524
|
+
tone: "secondary",
|
|
525
|
+
buttonStyle: "outline",
|
|
526
|
+
size: "sm",
|
|
527
|
+
iconOnly: !s,
|
|
528
|
+
className: n("column-visibility-toggle--component", s ? "h-action-sm gap-space-sm px-control-sm" : "size-action-sm gap-0 px-0", t)
|
|
529
|
+
},
|
|
530
|
+
preserveOrder: !0
|
|
531
|
+
});
|
|
532
|
+
}
|
|
533
|
+
G.displayName = "ColumnVisibilityToggle";
|
|
534
|
+
//#endregion
|
|
535
|
+
//#region src/components/features/table/partials/fullscreen-toggle.tsx
|
|
536
|
+
var nt = "text-muted-foreground/70 hover:text-foreground disabled:pointer-events-none disabled:opacity-30";
|
|
537
|
+
function rt({ fullscreen: e, onFullscreenChange: t, enterLabel: i = "Enter full screen", exitLabel: a = "Exit full screen", className: o }) {
|
|
538
|
+
let s = e ? a : i, c = e ? Ae : ke;
|
|
539
|
+
return /* @__PURE__ */ P(r, {
|
|
540
|
+
type: "button",
|
|
541
|
+
tone: "secondary",
|
|
542
|
+
buttonStyle: "ghost",
|
|
543
|
+
size: "sm",
|
|
544
|
+
iconOnly: !0,
|
|
545
|
+
"aria-label": s,
|
|
546
|
+
"aria-pressed": e,
|
|
547
|
+
onClick: () => t(!e),
|
|
548
|
+
className: n("fullscreen-toggle--component", nt, o),
|
|
549
|
+
children: /* @__PURE__ */ P(c, { className: "size-icon-sm" })
|
|
550
|
+
});
|
|
551
|
+
}
|
|
552
|
+
rt.displayName = "FullscreenToggle";
|
|
553
|
+
//#endregion
|
|
554
|
+
//#region src/components/features/table/table-toolbar.tsx
|
|
555
|
+
var it = 300, at = "rounded-none text-muted-foreground/70 transition-colors duration-150 hover:text-foreground disabled:pointer-events-none disabled:opacity-30";
|
|
556
|
+
function ot({ label: e, onClick: t, disabled: i, className: a, children: o }) {
|
|
557
|
+
return /* @__PURE__ */ P(r, {
|
|
558
|
+
type: "button",
|
|
559
|
+
tone: "secondary",
|
|
560
|
+
buttonStyle: "ghost",
|
|
561
|
+
size: "sm",
|
|
562
|
+
iconOnly: !0,
|
|
563
|
+
"aria-label": e,
|
|
564
|
+
className: n("table-toolbar--component", at, a),
|
|
565
|
+
onClick: t,
|
|
566
|
+
disabled: i,
|
|
567
|
+
children: o
|
|
568
|
+
});
|
|
569
|
+
}
|
|
570
|
+
function K(e) {
|
|
571
|
+
return e ? e.querySelector("[data-slot=\"table-container\"]") : null;
|
|
572
|
+
}
|
|
573
|
+
function st({ table: e, tableAreaRef: t, fullscreen: r, onFullscreenChange: i, showFullscreenToggle: a = !1, enableColumnVisibility: o = !1, labelVisibility: s = "hidden", strings: c = z }) {
|
|
574
|
+
let [l, u] = N(!1), [d, f] = N(!1), p = M(0), m = M(null), h = k(() => {
|
|
575
|
+
let e = K(t.current);
|
|
576
|
+
if (!e) {
|
|
577
|
+
u(!1), f(!1);
|
|
578
|
+
return;
|
|
579
|
+
}
|
|
580
|
+
let { scrollLeft: n, scrollWidth: r, clientWidth: i } = e;
|
|
581
|
+
u(n > 1), f(n + i < r - 1);
|
|
582
|
+
}, [t]);
|
|
583
|
+
A(() => {
|
|
584
|
+
let e = window.setTimeout(() => {
|
|
585
|
+
let e = K(t.current);
|
|
586
|
+
if (!e || (h(), typeof ResizeObserver > "u")) return;
|
|
587
|
+
let n = () => {
|
|
588
|
+
cancelAnimationFrame(p.current), p.current = requestAnimationFrame(h);
|
|
589
|
+
};
|
|
590
|
+
e.addEventListener("scroll", n, { passive: !0 });
|
|
591
|
+
let r = new ResizeObserver(h);
|
|
592
|
+
r.observe(e), e.firstElementChild && r.observe(e.firstElementChild), m.current = () => {
|
|
593
|
+
e.removeEventListener("scroll", n), cancelAnimationFrame(p.current), r.disconnect();
|
|
594
|
+
};
|
|
595
|
+
}, 0);
|
|
596
|
+
return () => {
|
|
597
|
+
window.clearTimeout(e), m.current?.();
|
|
598
|
+
};
|
|
599
|
+
}, [
|
|
600
|
+
t,
|
|
601
|
+
h,
|
|
602
|
+
r
|
|
603
|
+
]);
|
|
604
|
+
let g = k(() => {
|
|
605
|
+
K(t.current)?.scrollBy({
|
|
606
|
+
left: -300,
|
|
607
|
+
behavior: "smooth"
|
|
608
|
+
});
|
|
609
|
+
}, [t]), _ = k(() => {
|
|
610
|
+
K(t.current)?.scrollBy({
|
|
611
|
+
left: it,
|
|
612
|
+
behavior: "smooth"
|
|
613
|
+
});
|
|
614
|
+
}, [t]), v = o ? e.getAllColumns().filter((e) => e.getCanHide()) : [], y = l || d, b = v.length > 0, x = a;
|
|
615
|
+
return !y && !b && !x ? null : /* @__PURE__ */ F("div", {
|
|
616
|
+
className: "flex items-center rounded-radius-md border border-border bg-card",
|
|
617
|
+
children: [
|
|
618
|
+
!!y && /* @__PURE__ */ F(Ce, { children: [
|
|
619
|
+
/* @__PURE__ */ P(ot, {
|
|
620
|
+
label: c.toolbar.scrollLeft,
|
|
621
|
+
onClick: g,
|
|
622
|
+
disabled: !l,
|
|
623
|
+
className: "rounded-l-[calc(var(--radius-radius-md)-1px)]",
|
|
624
|
+
children: /* @__PURE__ */ P(Ee, { className: "size-icon-sm" })
|
|
625
|
+
}),
|
|
626
|
+
/* @__PURE__ */ P(ot, {
|
|
627
|
+
label: c.toolbar.scrollRight,
|
|
628
|
+
onClick: _,
|
|
629
|
+
disabled: !d,
|
|
630
|
+
children: /* @__PURE__ */ P(De, { className: "size-icon-sm" })
|
|
631
|
+
}),
|
|
632
|
+
(b || x) && /* @__PURE__ */ P("div", { className: "h-4 w-px bg-border" })
|
|
633
|
+
] }),
|
|
634
|
+
!!b && /* @__PURE__ */ F(Ce, { children: [/* @__PURE__ */ P(G, {
|
|
635
|
+
table: e,
|
|
636
|
+
strings: c,
|
|
637
|
+
labelVisibility: s,
|
|
638
|
+
className: n("rounded-none border-0 shadow-none", !y && "rounded-l-[calc(var(--radius-radius-md)-1px)]", !x && "rounded-r-[calc(var(--radius-radius-md)-1px)]")
|
|
639
|
+
}), x && /* @__PURE__ */ P("div", { className: "h-4 w-px bg-border" })] }),
|
|
640
|
+
x && /* @__PURE__ */ P(rt, {
|
|
641
|
+
fullscreen: r,
|
|
642
|
+
onFullscreenChange: i,
|
|
643
|
+
enterLabel: c.toolbar.enterFullscreen,
|
|
644
|
+
exitLabel: c.toolbar.exitFullscreen,
|
|
645
|
+
className: n("rounded-none rounded-r-[calc(var(--radius-radius-md)-1px)]", !y && !b && "rounded-l-[calc(var(--radius-radius-md)-1px)]")
|
|
646
|
+
})
|
|
647
|
+
]
|
|
648
|
+
});
|
|
649
|
+
}
|
|
650
|
+
st.displayName = "DataTableToolbar";
|
|
651
|
+
//#endregion
|
|
652
|
+
//#region src/components/features/table/data-table.tsx
|
|
653
|
+
var ct = be("sm");
|
|
654
|
+
function lt() {
|
|
655
|
+
return Se(ct);
|
|
656
|
+
}
|
|
657
|
+
var ut = {
|
|
658
|
+
sm: "[&_th]:h-12 [&_th]:px-surface [&_th]:py-row-y-lg [&_th]:text-sm [&_td]:px-surface [&_td]:py-row-y [&_td]:text-sm",
|
|
659
|
+
md: "[&_th]:h-12 [&_th]:px-surface [&_th]:py-row-y-lg [&_th]:text-sm [&_td]:px-surface [&_td]:py-row-y-lg [&_td]:text-sm",
|
|
660
|
+
lg: "[&_th]:h-12 [&_th]:px-surface [&_th]:py-row-y-lg [&_th]:text-sm [&_td]:px-surface [&_td]:py-row-y-lg [&_td]:text-sm"
|
|
661
|
+
}, dt = {
|
|
662
|
+
sm: "sm",
|
|
663
|
+
md: "sm",
|
|
664
|
+
lg: "sm"
|
|
665
|
+
}, ft = (e) => {
|
|
666
|
+
if (e !== void 0) return typeof e == "number" ? `${e}px` : e;
|
|
667
|
+
};
|
|
668
|
+
function pt(e, t) {
|
|
669
|
+
return e.map((e) => "columns" in e && e.columns ? {
|
|
670
|
+
...e,
|
|
671
|
+
columns: pt(e.columns, t)
|
|
672
|
+
} : (e.id ?? ("accessorKey" in e && typeof e.accessorKey == "string" ? e.accessorKey.replace(/\./g, "_") : void 0) ?? (typeof e.header == "string" ? e.header : void 0)) === t && e.filterFn === void 0 ? {
|
|
673
|
+
...e,
|
|
674
|
+
filterFn: "includesString"
|
|
675
|
+
} : e);
|
|
676
|
+
}
|
|
677
|
+
function q({ size: a, surface: o = "card", headerTransparent: s = !0, columns: c, data: l, columnGroups: u, rowActions: d, rowActionsMenuLabel: f, rowActionsDisplayMode: p, rowActionsBreakpoint: m, enableSorting: h = !1, enableFiltering: g = !1, filterColumn: _, filterPlaceholder: v, manualSorting: y = !1, enableColumnVisibility: b = !1, fullscreen: x, defaultFullscreen: ee = !1, onFullscreenChange: S, showFullscreenToggle: C = !1, enableRowSelection: w = !1, enableMultiRowSelection: te = !0, enableSubRowSelection: ne = !1, pagination: T, pageQueryKey: re, onPageChange: ie, onSortingChange: se, onColumnFiltersChange: ce, onRowClick: le, onRowSelectionChange: ue, stickyHeader: de = !1, stickyToolbar: fe = !1, stickyFirstColumn: E = !1, maxBodyHeight: pe, fillAvailableHeight: D = !1, emptyStateMessage: O, emptyStateAction: me, className: he = "", rowClassName: ge = "", cellClassName: _e = "", headerClassName: ye = "", wrapperClassName: be = "", innerClassName: xe = "overflow-x-auto", tableContainerClassName: Se = "", getRowId: we, rowSelection: Te, sorting: I, defaultSorting: Ee, columnVisibility: De, defaultColumnVisibility: Oe, initialState: L, onColumnVisibilityChange: ke, strings: Ae, topbarContent: je, topbarEnd: Me, topbarClassName: Ne, toolbarLabelVisibility: Pe = "hidden", footerContent: ze, selectionToolbar: R, bulkActions: Be, selectionToolbarClassName: Ve, storageKey: Ue }) {
|
|
678
|
+
let { defaultScale: z } = t(), B = e(a, z), V = j(() => We(Ae), [Ae]), Ge = n("bg-card", ge), Je = O ?? V.emptyState.message, Ye = re ?? "page", H = ft(pe), U = Array.isArray(c) && c.length === 2 && Array.isArray(c[1]) ? c[0] : c, W = j(() => Ue ? `dt.${Ue}.columns` : null, [Ue]), Xe = j(() => {
|
|
679
|
+
let e = Oe ?? L?.columnVisibility ?? {};
|
|
680
|
+
if (!W || typeof window > "u") return e;
|
|
681
|
+
try {
|
|
682
|
+
let t = window.localStorage.getItem(W);
|
|
683
|
+
return {
|
|
684
|
+
...t ? JSON.parse(t) : {},
|
|
685
|
+
...e
|
|
686
|
+
};
|
|
687
|
+
} catch {
|
|
688
|
+
return e;
|
|
689
|
+
}
|
|
690
|
+
}, [
|
|
691
|
+
Oe,
|
|
692
|
+
W,
|
|
693
|
+
L?.columnVisibility
|
|
694
|
+
]), [Ze, Qe] = N(Ee ?? L?.sorting ?? []), [G, nt] = N(L?.columnFilters ?? []), [rt, it] = N(Xe), [at, ot] = N(L?.rowSelection || {}), [K, lt] = N(ee), q = I ?? Ze, J = De ?? rt, Y = Te ?? at, X = x ?? K, mt = M(null), ht = k((e) => {
|
|
695
|
+
let t = typeof e == "function" ? e(G) : e;
|
|
696
|
+
nt(t), ce?.(t);
|
|
697
|
+
}, [G, ce]), gt = k((e) => {
|
|
698
|
+
let t = typeof e == "function" ? e(q) : e;
|
|
699
|
+
I === void 0 && Qe(t), se?.(t);
|
|
700
|
+
}, [
|
|
701
|
+
I,
|
|
702
|
+
se,
|
|
703
|
+
q
|
|
704
|
+
]), _t = k((e) => {
|
|
705
|
+
let t = typeof e == "function" ? e(J) : e;
|
|
706
|
+
if (De === void 0 && it(t), W && typeof window < "u") try {
|
|
707
|
+
window.localStorage.setItem(W, JSON.stringify(t));
|
|
708
|
+
} catch {}
|
|
709
|
+
ke?.(t);
|
|
710
|
+
}, [
|
|
711
|
+
J,
|
|
712
|
+
De,
|
|
713
|
+
W,
|
|
714
|
+
ke
|
|
715
|
+
]), vt = k((e) => {
|
|
716
|
+
let t = typeof e == "function" ? e(Y) : e;
|
|
717
|
+
Te === void 0 && ot(t), ue?.(t);
|
|
718
|
+
}, [
|
|
719
|
+
Te,
|
|
720
|
+
ue,
|
|
721
|
+
Y
|
|
722
|
+
]), yt = M(null), Z = k((e) => {
|
|
723
|
+
x === void 0 && lt(e), S?.(e);
|
|
724
|
+
}, [x, S]);
|
|
725
|
+
He(X, yt, k(() => Z(!1), [Z]));
|
|
726
|
+
let bt = k((e) => typeof f == "function" ? f(e) : f ?? V.actions.triggerLabel, [f, V.actions.triggerLabel]), xt = j(() => {
|
|
727
|
+
let e = g && _ ? pt(U, _) : U, t = w ? $e(e, V) : e;
|
|
728
|
+
if (!d) return t;
|
|
729
|
+
let n = {
|
|
730
|
+
id: "actions",
|
|
731
|
+
header: V.actions.triggerLabel,
|
|
732
|
+
cell: ({ row: e }) => /* @__PURE__ */ P(qe, {
|
|
733
|
+
row: e.original,
|
|
734
|
+
actions: d,
|
|
735
|
+
menuLabel: bt(e.original),
|
|
736
|
+
displayMode: p,
|
|
737
|
+
responsiveBreakpoint: m,
|
|
738
|
+
strings: V
|
|
739
|
+
}),
|
|
740
|
+
enableSorting: !1,
|
|
741
|
+
enableHiding: !1,
|
|
742
|
+
size: 40
|
|
743
|
+
};
|
|
744
|
+
return [...t, n];
|
|
745
|
+
}, [
|
|
746
|
+
U,
|
|
747
|
+
g,
|
|
748
|
+
_,
|
|
749
|
+
w,
|
|
750
|
+
d,
|
|
751
|
+
bt,
|
|
752
|
+
m,
|
|
753
|
+
p,
|
|
754
|
+
V
|
|
755
|
+
]), Q = Re({
|
|
756
|
+
data: l,
|
|
757
|
+
columns: xt,
|
|
758
|
+
state: {
|
|
759
|
+
sorting: q,
|
|
760
|
+
columnVisibility: J,
|
|
761
|
+
rowSelection: Y,
|
|
762
|
+
columnFilters: G
|
|
763
|
+
},
|
|
764
|
+
enableSorting: h,
|
|
765
|
+
enableColumnFilters: g,
|
|
766
|
+
manualFiltering: !g,
|
|
767
|
+
manualSorting: y,
|
|
768
|
+
autoResetPageIndex: !1,
|
|
769
|
+
enableRowSelection: w,
|
|
770
|
+
enableMultiRowSelection: te,
|
|
771
|
+
enableSubRowSelection: ne,
|
|
772
|
+
onSortingChange: h ? gt : void 0,
|
|
773
|
+
onRowSelectionChange: w ? vt : void 0,
|
|
774
|
+
onColumnVisibilityChange: _t,
|
|
775
|
+
onColumnFiltersChange: ht,
|
|
776
|
+
getCoreRowModel: Fe(),
|
|
777
|
+
getFilteredRowModel: Ie(),
|
|
778
|
+
getSortedRowModel: Le(),
|
|
779
|
+
getRowId: we
|
|
780
|
+
}), St = g && _ ? Q.getAllLeafColumns().find((e) => e.id === _ && e.getCanFilter()) : void 0, Ct = v ?? V.filter.searchPlaceholder, wt = T && T.last_page > 1, Tt = Q.getSelectedRowModel().rows.map((e) => e.original), $ = Tt.length, Et = k(() => {
|
|
781
|
+
Q.resetRowSelection();
|
|
782
|
+
}, [Q]), Dt = {
|
|
783
|
+
table: Q,
|
|
784
|
+
selectedRows: Tt,
|
|
785
|
+
selectedRowCount: $,
|
|
786
|
+
totalRowCount: l.length,
|
|
787
|
+
rowSelection: Y,
|
|
788
|
+
clearSelection: Et
|
|
789
|
+
}, Ot = typeof Be == "function" ? Be(Dt) : Be, kt = $ > 0 ? /* @__PURE__ */ F("div", {
|
|
790
|
+
"data-component": "data-table-selection-toolbar",
|
|
791
|
+
"data-slot": "data-table-selection-toolbar",
|
|
792
|
+
className: n("data-table-selection-toolbar--component flex min-w-0 flex-col gap-space-md border-b border-border/70 bg-muted/35 px-surface py-row-y @2xl/data-table:flex-row @2xl/data-table:items-center @2xl/data-table:justify-between", fe && "sticky top-0 z-20 bg-card/95 backdrop-blur", Ve),
|
|
793
|
+
children: [/* @__PURE__ */ P(i, {
|
|
794
|
+
className: "data-table-selection-toolbar--summary min-w-0",
|
|
795
|
+
children: V.selection.summary($, l.length)
|
|
796
|
+
}), /* @__PURE__ */ F("div", {
|
|
797
|
+
"data-slot": "data-table-selection-toolbar-actions",
|
|
798
|
+
className: "data-table-selection-toolbar--actions flex shrink-0 flex-wrap items-center gap-space-md",
|
|
799
|
+
children: [Ot, /* @__PURE__ */ P(r, {
|
|
800
|
+
type: "button",
|
|
801
|
+
tone: "secondary",
|
|
802
|
+
buttonStyle: "ghost",
|
|
803
|
+
onClick: Et,
|
|
804
|
+
children: V.selection.clear
|
|
805
|
+
})]
|
|
806
|
+
})]
|
|
807
|
+
}) : null, At = !w || $ === 0 || R === null || R === !1 ? null : typeof R == "function" ? R(Dt) : R ?? kt, jt = j(() => {
|
|
808
|
+
if (H) return { "--data-table-body-max-height": H };
|
|
809
|
+
}, [H]), Mt = X || D || H !== void 0;
|
|
810
|
+
A(() => {
|
|
811
|
+
let e = mt.current?.querySelector("[data-slot=\"table-container\"]");
|
|
812
|
+
e && (e.tabIndex = 0, e.setAttribute("aria-label", V.accessibility.scrollRegion));
|
|
813
|
+
}, [V.accessibility.scrollRegion]);
|
|
814
|
+
let Nt = ct.Provider, Pt = dt[B];
|
|
815
|
+
return /* @__PURE__ */ P(Nt, {
|
|
816
|
+
value: Pt,
|
|
817
|
+
children: /* @__PURE__ */ F("div", {
|
|
818
|
+
ref: yt,
|
|
819
|
+
role: X ? "dialog" : void 0,
|
|
820
|
+
"aria-modal": X ? !0 : void 0,
|
|
821
|
+
"aria-label": X ? V.accessibility.fullscreenRegion : void 0,
|
|
822
|
+
className: n("data-table--component @container/data-table", X ? "fixed inset-0 z-50 bg-background flex flex-col overflow-hidden p-surface" : n("w-full min-w-0 max-w-full", D && "flex h-full min-h-0 flex-col", o === "card" && "overflow-hidden rounded-radius border border-border bg-card shadow-[0_1px_3px_0_color-mix(in_oklch,var(--foreground)_4%,transparent)]", o === "glass" && "rounded-radius-md overflow-hidden border border-border/60", be)),
|
|
823
|
+
children: [
|
|
824
|
+
!!(St || je || Me || b || C) && /* @__PURE__ */ F("div", {
|
|
825
|
+
className: n("relative", fe && "sticky top-0 z-20 bg-card/95 backdrop-blur"),
|
|
826
|
+
children: [/* @__PURE__ */ F("div", {
|
|
827
|
+
className: n("data-table-topbar grid gap-space-lg px-surface py-row-y @2xl/data-table:grid-cols-[minmax(0,1fr)_auto] @2xl/data-table:items-end", X ? "mb-space-lg shrink-0" : "mb-0", Ne),
|
|
828
|
+
children: [/* @__PURE__ */ F("div", {
|
|
829
|
+
className: "data-table-topbar-left flex min-w-0 flex-col gap-space-md",
|
|
830
|
+
children: [je, St && /* @__PURE__ */ P("div", {
|
|
831
|
+
className: "min-w-0 max-w-sm",
|
|
832
|
+
children: /* @__PURE__ */ P(oe, {
|
|
833
|
+
"aria-label": Ct,
|
|
834
|
+
placeholder: Ct,
|
|
835
|
+
value: St.getFilterValue() ?? "",
|
|
836
|
+
onChange: (e) => St.setFilterValue(e.target.value)
|
|
837
|
+
})
|
|
838
|
+
})]
|
|
839
|
+
}), /* @__PURE__ */ F("div", {
|
|
840
|
+
className: "data-table-topbar-right flex flex-wrap items-center justify-end gap-space-md",
|
|
841
|
+
children: [Me, /* @__PURE__ */ P(st, {
|
|
842
|
+
table: Q,
|
|
843
|
+
tableAreaRef: mt,
|
|
844
|
+
fullscreen: X,
|
|
845
|
+
onFullscreenChange: Z,
|
|
846
|
+
showFullscreenToggle: C,
|
|
847
|
+
enableColumnVisibility: b,
|
|
848
|
+
labelVisibility: Pe,
|
|
849
|
+
strings: V
|
|
850
|
+
})]
|
|
851
|
+
})]
|
|
852
|
+
}), /* @__PURE__ */ P(ae, {})]
|
|
853
|
+
}),
|
|
854
|
+
At,
|
|
855
|
+
/* @__PURE__ */ P("div", {
|
|
856
|
+
ref: mt,
|
|
857
|
+
style: jt,
|
|
858
|
+
className: n("min-h-0", Mt ? "overflow-hidden" : xe, (X || D) && "flex-1"),
|
|
859
|
+
children: /* @__PURE__ */ F(ve, {
|
|
860
|
+
className: n("relative", ut[B], he),
|
|
861
|
+
containerClassName: n("focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2", Mt && "overflow-auto", H !== void 0 && "max-h-(--data-table-body-max-height)", (X || D) && "h-full min-h-0", Se),
|
|
862
|
+
children: [/* @__PURE__ */ P(tt, {
|
|
863
|
+
table: Q,
|
|
864
|
+
stickyHeader: de,
|
|
865
|
+
headerClassName: ye,
|
|
866
|
+
cellClassName: _e,
|
|
867
|
+
stickyFirstColumn: E,
|
|
868
|
+
columnGroups: u,
|
|
869
|
+
headerTransparent: s
|
|
870
|
+
}), /* @__PURE__ */ P(et, {
|
|
871
|
+
table: Q,
|
|
872
|
+
onRowClick: le,
|
|
873
|
+
emptyStateMessage: Je,
|
|
874
|
+
emptyStateAction: me,
|
|
875
|
+
cellClassName: _e,
|
|
876
|
+
rowClassName: Ge,
|
|
877
|
+
stickyFirstColumn: E,
|
|
878
|
+
strings: V
|
|
879
|
+
})]
|
|
880
|
+
})
|
|
881
|
+
}),
|
|
882
|
+
!!wt && /* @__PURE__ */ F(Ce, { children: [/* @__PURE__ */ P(ae, {}), /* @__PURE__ */ P(Ke, {
|
|
883
|
+
pagination: T,
|
|
884
|
+
onPageChange: ie,
|
|
885
|
+
pageQueryKey: Ye,
|
|
886
|
+
labels: V.pagination
|
|
887
|
+
})] }),
|
|
888
|
+
!!ze && /* @__PURE__ */ P("div", {
|
|
889
|
+
"data-slot": "data-table-footer",
|
|
890
|
+
className: "data-table--footer border-t border-border/70 px-surface py-row-y",
|
|
891
|
+
children: ze
|
|
892
|
+
})
|
|
893
|
+
]
|
|
894
|
+
})
|
|
895
|
+
});
|
|
896
|
+
}
|
|
897
|
+
q.displayName = "DataTable";
|
|
898
|
+
//#endregion
|
|
899
|
+
//#region src/components/features/table/filter-bar.tsx
|
|
900
|
+
function J({ table: e, filterColumn: t, filterPlaceholder: r, enableColumnVisibility: i = !1, customContent: a, strings: o = z }) {
|
|
901
|
+
if (!t && !i && !a) return null;
|
|
902
|
+
let s = r ?? o.filter.searchPlaceholder;
|
|
903
|
+
return /* @__PURE__ */ F("div", {
|
|
904
|
+
className: n("filter-bar--component", "flex items-center justify-between p-surface"),
|
|
905
|
+
children: [/* @__PURE__ */ F("div", {
|
|
906
|
+
className: "flex flex-1 items-center space-x-space-md",
|
|
907
|
+
children: [!!t && /* @__PURE__ */ P(oe, {
|
|
908
|
+
placeholder: s,
|
|
909
|
+
value: e.getColumn(t)?.getFilterValue() ?? "",
|
|
910
|
+
onChange: (n) => {
|
|
911
|
+
let r = n.target.value;
|
|
912
|
+
e.getColumn(t)?.setFilterValue(r);
|
|
913
|
+
},
|
|
914
|
+
className: "max-w-sm"
|
|
915
|
+
}), a]
|
|
916
|
+
}), !!i && /* @__PURE__ */ P(G, {
|
|
917
|
+
table: e,
|
|
918
|
+
strings: o,
|
|
919
|
+
labelVisibility: "responsive",
|
|
920
|
+
className: "ml-auto"
|
|
921
|
+
})]
|
|
922
|
+
});
|
|
923
|
+
}
|
|
924
|
+
J.displayName = "DataTableFilterBar";
|
|
925
|
+
//#endregion
|
|
926
|
+
//#region src/components/features/table/partials/cell-value.tsx
|
|
927
|
+
function Y(e) {
|
|
928
|
+
return e === !1 || e == null || typeof e == "string" && e.trim() === "";
|
|
929
|
+
}
|
|
930
|
+
function X(e) {
|
|
931
|
+
return e == null;
|
|
932
|
+
}
|
|
933
|
+
function mt(e) {
|
|
934
|
+
return typeof e == "object" && !!e && !Array.isArray(e) && !xe(e) && !(e instanceof Date);
|
|
935
|
+
}
|
|
936
|
+
function ht(e) {
|
|
937
|
+
return Array.isArray(e);
|
|
938
|
+
}
|
|
939
|
+
function gt(e) {
|
|
940
|
+
let [t, n, r] = e;
|
|
941
|
+
return {
|
|
942
|
+
...r,
|
|
943
|
+
value: t,
|
|
944
|
+
kind: n
|
|
945
|
+
};
|
|
946
|
+
}
|
|
947
|
+
function _t(e) {
|
|
948
|
+
if (e === !1) return null;
|
|
949
|
+
if (xe(e)) return e;
|
|
950
|
+
if (ht(e)) {
|
|
951
|
+
let t = gt(e);
|
|
952
|
+
return Y(t.value) && X(t.display) ? null : t;
|
|
953
|
+
}
|
|
954
|
+
return mt(e) ? Y(e.value) && X(e.display) ? null : e : Y(e) ? null : { value: e };
|
|
955
|
+
}
|
|
956
|
+
function vt(e) {
|
|
957
|
+
return e instanceof Date ? e.toISOString() : String(e ?? "");
|
|
958
|
+
}
|
|
959
|
+
function yt({ descriptor: e, index: t = 0, emptyLabel: r, className: i, primaryWeight: a = "medium" }) {
|
|
960
|
+
let o = t === 0, s = e.kind ?? (o ? "value" : "secondary"), c = e.value, l = e.display ?? (c instanceof Date ? vt(c) : c), y = e.emptyLabel ?? r, x = n(i, e.className), T = o ? a : "regular";
|
|
961
|
+
switch (s) {
|
|
962
|
+
case "secondary": return /* @__PURE__ */ P(p, {
|
|
963
|
+
size: "inherit",
|
|
964
|
+
className: x,
|
|
965
|
+
children: l
|
|
966
|
+
});
|
|
967
|
+
case "muted": return /* @__PURE__ */ P(m, {
|
|
968
|
+
size: "inherit",
|
|
969
|
+
className: x,
|
|
970
|
+
children: l
|
|
971
|
+
});
|
|
972
|
+
case "name": return /* @__PURE__ */ P(f, {
|
|
973
|
+
value: e.display === void 0 && typeof c == "string" ? c : void 0,
|
|
974
|
+
force: e.force,
|
|
975
|
+
emptyLabel: y,
|
|
976
|
+
size: "inherit",
|
|
977
|
+
weight: T,
|
|
978
|
+
className: x,
|
|
979
|
+
children: e.display
|
|
980
|
+
});
|
|
981
|
+
case "mono": return /* @__PURE__ */ P(_, {
|
|
982
|
+
size: "inherit",
|
|
983
|
+
weight: T,
|
|
984
|
+
className: x,
|
|
985
|
+
children: l
|
|
986
|
+
});
|
|
987
|
+
case "link": {
|
|
988
|
+
let t = e.href ?? vt(c);
|
|
989
|
+
return /* @__PURE__ */ P(b, {
|
|
990
|
+
href: t,
|
|
991
|
+
emptyLabel: y,
|
|
992
|
+
className: x,
|
|
993
|
+
children: l
|
|
994
|
+
});
|
|
995
|
+
}
|
|
996
|
+
case "email": return /* @__PURE__ */ P(v, {
|
|
997
|
+
value: typeof c == "string" ? c : void 0,
|
|
998
|
+
display: e.display,
|
|
999
|
+
emptyLabel: y,
|
|
1000
|
+
className: x
|
|
1001
|
+
});
|
|
1002
|
+
case "phone": return /* @__PURE__ */ P(d, {
|
|
1003
|
+
value: typeof c == "string" ? c : void 0,
|
|
1004
|
+
display: e.display,
|
|
1005
|
+
emptyLabel: y,
|
|
1006
|
+
className: x
|
|
1007
|
+
});
|
|
1008
|
+
case "url": return /* @__PURE__ */ P(g, {
|
|
1009
|
+
value: typeof c == "string" ? c : void 0,
|
|
1010
|
+
display: e.display,
|
|
1011
|
+
emptyLabel: y,
|
|
1012
|
+
className: x
|
|
1013
|
+
});
|
|
1014
|
+
case "money": return /* @__PURE__ */ P(S, {
|
|
1015
|
+
amount: typeof c == "number" || typeof c == "string" ? c : null,
|
|
1016
|
+
currency: e.currency,
|
|
1017
|
+
locale: e.locale,
|
|
1018
|
+
currencyDisplay: e.currencyDisplay,
|
|
1019
|
+
minimumFractionDigits: e.minimumFractionDigits,
|
|
1020
|
+
maximumFractionDigits: e.maximumFractionDigits,
|
|
1021
|
+
formatMode: e.formatMode,
|
|
1022
|
+
emptyLabel: y,
|
|
1023
|
+
size: "inherit",
|
|
1024
|
+
weight: T,
|
|
1025
|
+
className: x
|
|
1026
|
+
});
|
|
1027
|
+
case "number": return /* @__PURE__ */ P(C, {
|
|
1028
|
+
value: typeof c == "number" || typeof c == "string" ? c : null,
|
|
1029
|
+
locale: e.locale,
|
|
1030
|
+
options: e.options,
|
|
1031
|
+
emptyLabel: y,
|
|
1032
|
+
size: "inherit",
|
|
1033
|
+
weight: T,
|
|
1034
|
+
className: x
|
|
1035
|
+
});
|
|
1036
|
+
case "percent": return /* @__PURE__ */ P(ee, {
|
|
1037
|
+
value: typeof c == "number" || typeof c == "string" ? c : null,
|
|
1038
|
+
locale: e.locale,
|
|
1039
|
+
scaled: e.scaled,
|
|
1040
|
+
options: e.options,
|
|
1041
|
+
emptyLabel: y,
|
|
1042
|
+
size: "inherit",
|
|
1043
|
+
weight: T,
|
|
1044
|
+
className: x
|
|
1045
|
+
});
|
|
1046
|
+
case "fileSize": return /* @__PURE__ */ P(h, {
|
|
1047
|
+
value: typeof c == "number" ? c : null,
|
|
1048
|
+
from: e.from,
|
|
1049
|
+
locale: e.locale,
|
|
1050
|
+
emptyLabel: y,
|
|
1051
|
+
size: "inherit",
|
|
1052
|
+
weight: T,
|
|
1053
|
+
className: x
|
|
1054
|
+
});
|
|
1055
|
+
case "date": return /* @__PURE__ */ P(re, {
|
|
1056
|
+
value: c,
|
|
1057
|
+
format: e.dateFormat,
|
|
1058
|
+
preset: e.datePreset,
|
|
1059
|
+
locale: e.dateLocale,
|
|
1060
|
+
emptyLabel: y,
|
|
1061
|
+
size: "inherit",
|
|
1062
|
+
weight: T,
|
|
1063
|
+
className: x
|
|
1064
|
+
});
|
|
1065
|
+
case "time": return /* @__PURE__ */ P(w, {
|
|
1066
|
+
value: c,
|
|
1067
|
+
format: e.timeFormat,
|
|
1068
|
+
locale: e.dateLocale,
|
|
1069
|
+
emptyLabel: y,
|
|
1070
|
+
size: "inherit",
|
|
1071
|
+
weight: T,
|
|
1072
|
+
className: x
|
|
1073
|
+
});
|
|
1074
|
+
case "dateTime": return /* @__PURE__ */ P(ne, {
|
|
1075
|
+
value: c,
|
|
1076
|
+
format: e.dateFormat,
|
|
1077
|
+
timeFormat: e.timeFormat,
|
|
1078
|
+
preset: e.datePreset,
|
|
1079
|
+
locale: e.dateLocale,
|
|
1080
|
+
emptyLabel: y,
|
|
1081
|
+
size: "inherit",
|
|
1082
|
+
weight: T,
|
|
1083
|
+
className: x
|
|
1084
|
+
});
|
|
1085
|
+
case "relativeTime": return /* @__PURE__ */ P(te, {
|
|
1086
|
+
value: c,
|
|
1087
|
+
locale: e.dateLocale,
|
|
1088
|
+
emptyLabel: y,
|
|
1089
|
+
size: "inherit",
|
|
1090
|
+
weight: T,
|
|
1091
|
+
className: x
|
|
1092
|
+
});
|
|
1093
|
+
default: return /* @__PURE__ */ P(u, {
|
|
1094
|
+
size: "inherit",
|
|
1095
|
+
weight: T,
|
|
1096
|
+
className: x,
|
|
1097
|
+
children: l
|
|
1098
|
+
});
|
|
1099
|
+
}
|
|
1100
|
+
}
|
|
1101
|
+
function Z({ value: e, kind: t, href: r, currency: i, currencyDisplay: a, minimumFractionDigits: o, maximumFractionDigits: s, formatMode: c, locale: l, dateLocale: d, from: f, force: p, options: m, scaled: h, dateFormat: g, datePreset: _, timeFormat: v, emptyLabel: b, fallback: x = "--", missing: ee, className: S, children: C }) {
|
|
1102
|
+
let w = ee ?? Y(e);
|
|
1103
|
+
return C === void 0 ? w ? /* @__PURE__ */ P(y, {
|
|
1104
|
+
size: "inherit",
|
|
1105
|
+
className: n("cell-value--component", S),
|
|
1106
|
+
children: b ?? x
|
|
1107
|
+
}) : yt({
|
|
1108
|
+
descriptor: {
|
|
1109
|
+
value: e,
|
|
1110
|
+
kind: t,
|
|
1111
|
+
href: r,
|
|
1112
|
+
currency: i,
|
|
1113
|
+
currencyDisplay: a,
|
|
1114
|
+
minimumFractionDigits: o,
|
|
1115
|
+
maximumFractionDigits: s,
|
|
1116
|
+
formatMode: c,
|
|
1117
|
+
locale: l,
|
|
1118
|
+
dateLocale: d,
|
|
1119
|
+
from: f,
|
|
1120
|
+
force: p,
|
|
1121
|
+
options: m,
|
|
1122
|
+
scaled: h,
|
|
1123
|
+
dateFormat: g,
|
|
1124
|
+
datePreset: _,
|
|
1125
|
+
timeFormat: v,
|
|
1126
|
+
emptyLabel: b,
|
|
1127
|
+
className: "cell-value--component"
|
|
1128
|
+
},
|
|
1129
|
+
emptyLabel: b ?? x,
|
|
1130
|
+
className: S
|
|
1131
|
+
}) : /* @__PURE__ */ P(w ? y : u, {
|
|
1132
|
+
size: "inherit",
|
|
1133
|
+
className: n("cell-value--component", S),
|
|
1134
|
+
children: C
|
|
1135
|
+
});
|
|
1136
|
+
}
|
|
1137
|
+
function bt({ values: e = [], emptyLabel: t = "--", className: r, itemClassName: i, primaryClassName: a, secondaryClassName: o, primaryWeight: s = "medium" }) {
|
|
1138
|
+
let c = e.map(_t).filter((e) => e !== null).slice(0, 4);
|
|
1139
|
+
return c.length === 0 ? /* @__PURE__ */ P(y, {
|
|
1140
|
+
size: "inherit",
|
|
1141
|
+
className: n("cell-stack--component", r),
|
|
1142
|
+
children: t
|
|
1143
|
+
}) : /* @__PURE__ */ P("div", {
|
|
1144
|
+
className: n("cell-stack--component flex min-w-0 flex-col items-start gap-space-2xs", r),
|
|
1145
|
+
children: c.map((e, r) => {
|
|
1146
|
+
let c = r === 0, l = n("cell-stack--item min-w-0 max-w-full truncate", !c && "text-xs", i, c ? a : o);
|
|
1147
|
+
return xe(e) ? /* @__PURE__ */ P("div", {
|
|
1148
|
+
className: l,
|
|
1149
|
+
children: e
|
|
1150
|
+
}, r) : /* @__PURE__ */ P("div", {
|
|
1151
|
+
className: l,
|
|
1152
|
+
children: yt({
|
|
1153
|
+
descriptor: e,
|
|
1154
|
+
index: r,
|
|
1155
|
+
emptyLabel: t,
|
|
1156
|
+
className: n("leading-tight", !c && "text-xs"),
|
|
1157
|
+
primaryWeight: s
|
|
1158
|
+
})
|
|
1159
|
+
}, r);
|
|
1160
|
+
})
|
|
1161
|
+
});
|
|
1162
|
+
}
|
|
1163
|
+
Z.displayName = "CellValue", bt.displayName = "CellStack";
|
|
1164
|
+
//#endregion
|
|
1165
|
+
//#region src/components/features/table/partials/table-link.tsx
|
|
1166
|
+
var xt = ({ className: e, ...t }) => /* @__PURE__ */ P(b, {
|
|
1167
|
+
className: n("table-link--component", "underline decoration-link-color/35 decoration-dotted underline-offset-2 hover:decoration-link-color", e),
|
|
1168
|
+
...t,
|
|
1169
|
+
children: t.children
|
|
1170
|
+
});
|
|
1171
|
+
//#endregion
|
|
1172
|
+
//#region src/components/features/table/partials/resource-cell.tsx
|
|
1173
|
+
function Q(e, t) {
|
|
1174
|
+
if (e && typeof e == "object" && !("type" in e) && "label" in e) {
|
|
1175
|
+
let n = e.icon;
|
|
1176
|
+
return /* @__PURE__ */ F(ie, {
|
|
1177
|
+
tone: e.tone ?? "secondary",
|
|
1178
|
+
dot: e.dot,
|
|
1179
|
+
children: [!!n && /* @__PURE__ */ P(n, { className: "size-icon-sm" }), e.label]
|
|
1180
|
+
}, e.id ?? t);
|
|
1181
|
+
}
|
|
1182
|
+
return /* @__PURE__ */ P("span", { children: e }, t);
|
|
1183
|
+
}
|
|
1184
|
+
function St(e) {
|
|
1185
|
+
return e ? Array.isArray(e) ? /* @__PURE__ */ P("span", {
|
|
1186
|
+
className: "inline-flex min-w-0 flex-wrap items-center gap-x-space-md gap-y-space-2xs",
|
|
1187
|
+
children: e.map((e, t) => /* @__PURE__ */ F("span", {
|
|
1188
|
+
className: "inline-flex min-w-0 items-center gap-space-sm",
|
|
1189
|
+
children: [!!e.label && /* @__PURE__ */ P(i, {
|
|
1190
|
+
tag: "span",
|
|
1191
|
+
size: "inherit",
|
|
1192
|
+
type: "secondary",
|
|
1193
|
+
className: "shrink-0",
|
|
1194
|
+
children: e.label
|
|
1195
|
+
}), /* @__PURE__ */ P(i, {
|
|
1196
|
+
tag: "span",
|
|
1197
|
+
size: "inherit",
|
|
1198
|
+
type: "secondary",
|
|
1199
|
+
className: "truncate",
|
|
1200
|
+
children: e.value
|
|
1201
|
+
})]
|
|
1202
|
+
}, e.id ?? t))
|
|
1203
|
+
}) : e : null;
|
|
1204
|
+
}
|
|
1205
|
+
function Ct({ title: e, subtitle: t, metadata: r, badges: a = [], imageUrl: c, icon: l = L, fallback: u, href: d, renderLink: f, emptyLabel: p = "—", className: m, mediaClassName: h, contentClassName: g, titleClassName: _, subtitleClassName: v }) {
|
|
1206
|
+
if (!e) return /* @__PURE__ */ P(i, {
|
|
1207
|
+
size: "inherit",
|
|
1208
|
+
type: "secondary",
|
|
1209
|
+
className: m,
|
|
1210
|
+
children: p
|
|
1211
|
+
});
|
|
1212
|
+
let y = typeof e == "string" ? e : void 0, b = y ? x(y, { strategy: "first-words" }) : "", ee = /* @__PURE__ */ F(s, {
|
|
1213
|
+
render: /* @__PURE__ */ P("span", {}),
|
|
1214
|
+
gap: "dense",
|
|
1215
|
+
className: n("resource-cell--content", g),
|
|
1216
|
+
children: [
|
|
1217
|
+
/* @__PURE__ */ F(s, {
|
|
1218
|
+
render: /* @__PURE__ */ P("span", {}),
|
|
1219
|
+
direction: "horizontal",
|
|
1220
|
+
gap: "sm",
|
|
1221
|
+
wrap: !1,
|
|
1222
|
+
className: "resource-cell--title-row",
|
|
1223
|
+
children: [/* @__PURE__ */ P(i, {
|
|
1224
|
+
tag: "span",
|
|
1225
|
+
size: "inherit",
|
|
1226
|
+
weight: "medium",
|
|
1227
|
+
className: n("resource-cell--title truncate", _),
|
|
1228
|
+
children: e
|
|
1229
|
+
}), a.length > 0 && /* @__PURE__ */ P("span", {
|
|
1230
|
+
className: "resource-cell--badges inline-flex shrink-0 items-center gap-space-sm",
|
|
1231
|
+
children: a.map(Q)
|
|
1232
|
+
})]
|
|
1233
|
+
}),
|
|
1234
|
+
!!t && /* @__PURE__ */ P(i, {
|
|
1235
|
+
tag: "span",
|
|
1236
|
+
size: "inherit",
|
|
1237
|
+
type: "secondary",
|
|
1238
|
+
className: n("resource-cell--subtitle truncate", v),
|
|
1239
|
+
children: t
|
|
1240
|
+
}),
|
|
1241
|
+
!!r && /* @__PURE__ */ P("span", {
|
|
1242
|
+
className: "resource-cell--metadata min-w-0",
|
|
1243
|
+
children: St(r)
|
|
1244
|
+
})
|
|
1245
|
+
]
|
|
1246
|
+
}), S = /* @__PURE__ */ F("span", {
|
|
1247
|
+
className: n("resource-cell--component inline-flex min-w-0 items-center gap-space-md", m),
|
|
1248
|
+
children: [/* @__PURE__ */ P("span", {
|
|
1249
|
+
className: n("resource-cell--media relative inline-flex size-avatar shrink-0 items-center justify-center overflow-hidden rounded-full bg-muted text-muted-foreground", h),
|
|
1250
|
+
children: c ? /* @__PURE__ */ P("img", {
|
|
1251
|
+
src: c,
|
|
1252
|
+
alt: y ?? "",
|
|
1253
|
+
className: "absolute inset-0 size-full object-cover"
|
|
1254
|
+
}) : u || (b ? /* @__PURE__ */ P(i, {
|
|
1255
|
+
size: "inherit",
|
|
1256
|
+
weight: "semibold",
|
|
1257
|
+
className: "text-sm leading-none",
|
|
1258
|
+
children: b
|
|
1259
|
+
}) : /* @__PURE__ */ P(l, { className: "size-icon" }))
|
|
1260
|
+
}), ee]
|
|
1261
|
+
});
|
|
1262
|
+
if (!d) return S;
|
|
1263
|
+
let C = "resource-cell--link inline-flex min-w-0 rounded-radius-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2";
|
|
1264
|
+
return f ? f({
|
|
1265
|
+
href: d,
|
|
1266
|
+
children: S,
|
|
1267
|
+
className: C,
|
|
1268
|
+
"aria-label": y
|
|
1269
|
+
}) : /* @__PURE__ */ P(o, {
|
|
1270
|
+
href: d,
|
|
1271
|
+
size: "inherit",
|
|
1272
|
+
underline: !1,
|
|
1273
|
+
className: C,
|
|
1274
|
+
"aria-label": y,
|
|
1275
|
+
children: S
|
|
1276
|
+
});
|
|
1277
|
+
}
|
|
1278
|
+
Ct.displayName = "ResourceCell";
|
|
1279
|
+
//#endregion
|
|
1280
|
+
//#region src/components/features/table/partials/cell-renderers.tsx
|
|
1281
|
+
function wt({ value: e, map: t, emptyLabel: r = "—", className: a }) {
|
|
1282
|
+
if (!e || !(e in t)) return /* @__PURE__ */ P(i, {
|
|
1283
|
+
size: "inherit",
|
|
1284
|
+
type: "secondary",
|
|
1285
|
+
className: n("status-cell--component", a),
|
|
1286
|
+
children: r
|
|
1287
|
+
});
|
|
1288
|
+
let o = t[e], s = o.icon;
|
|
1289
|
+
return /* @__PURE__ */ F(ie, {
|
|
1290
|
+
tone: o.tone ?? "secondary",
|
|
1291
|
+
className: n("status-cell--component gap-space-sm", a),
|
|
1292
|
+
children: [!!s && /* @__PURE__ */ P(s, { className: "size-icon-sm" }), o.label]
|
|
1293
|
+
});
|
|
1294
|
+
}
|
|
1295
|
+
wt.displayName = "StatusCell";
|
|
1296
|
+
function Tt({ items: e = [], emptyLabel: t = "—", className: r, badgeClassName: a }) {
|
|
1297
|
+
let o = e.filter((e) => !e.hidden);
|
|
1298
|
+
return o.length === 0 ? /* @__PURE__ */ P(i, {
|
|
1299
|
+
size: "inherit",
|
|
1300
|
+
type: "secondary",
|
|
1301
|
+
className: n("status-cluster-cell--component", r),
|
|
1302
|
+
children: t
|
|
1303
|
+
}) : /* @__PURE__ */ P("span", {
|
|
1304
|
+
className: n("status-cluster-cell--component inline-flex min-w-0 flex-wrap items-center gap-space-sm", r),
|
|
1305
|
+
children: o.map((e, t) => {
|
|
1306
|
+
let r = e.icon;
|
|
1307
|
+
return /* @__PURE__ */ F(ie, {
|
|
1308
|
+
tone: e.tone ?? "secondary",
|
|
1309
|
+
dot: e.dot,
|
|
1310
|
+
className: n("shrink-0", a),
|
|
1311
|
+
children: [!!r && /* @__PURE__ */ P(r, { className: "size-icon-sm" }), e.label]
|
|
1312
|
+
}, e.id ?? t);
|
|
1313
|
+
})
|
|
1314
|
+
});
|
|
1315
|
+
}
|
|
1316
|
+
Tt.displayName = "StatusClusterCell";
|
|
1317
|
+
function $({ value: e, format: t, preset: r, locale: a, showIcon: o = !0, icon: s = I, emptyLabel: c = "—", className: l }) {
|
|
1318
|
+
let u = T(e);
|
|
1319
|
+
return u ? /* @__PURE__ */ F("span", {
|
|
1320
|
+
className: n("date-cell--component inline-flex items-center gap-space-sm", l),
|
|
1321
|
+
children: [!!o && /* @__PURE__ */ P(s, { className: "size-icon text-muted-foreground" }), /* @__PURE__ */ P(re, {
|
|
1322
|
+
value: u,
|
|
1323
|
+
format: t,
|
|
1324
|
+
preset: r,
|
|
1325
|
+
locale: a,
|
|
1326
|
+
emptyLabel: c,
|
|
1327
|
+
size: "inherit",
|
|
1328
|
+
type: "secondary"
|
|
1329
|
+
})]
|
|
1330
|
+
}) : /* @__PURE__ */ P(i, {
|
|
1331
|
+
size: "inherit",
|
|
1332
|
+
type: "secondary",
|
|
1333
|
+
className: n("date-cell--component", l),
|
|
1334
|
+
children: c
|
|
1335
|
+
});
|
|
1336
|
+
}
|
|
1337
|
+
$.displayName = "DateCell";
|
|
1338
|
+
function Et({ value: e, format: t, preset: r, locale: a, showIcon: o = !0, icon: s = I, emptyLabel: c = "—", className: l, primaryClassName: u, secondary: d, secondaryClassName: f }) {
|
|
1339
|
+
let p = T(e);
|
|
1340
|
+
if (!p) return /* @__PURE__ */ P(i, {
|
|
1341
|
+
size: "inherit",
|
|
1342
|
+
type: "secondary",
|
|
1343
|
+
className: n("date-meta-cell--component", l),
|
|
1344
|
+
children: c
|
|
1345
|
+
});
|
|
1346
|
+
let m = typeof d == "function" ? d(p) : d;
|
|
1347
|
+
return /* @__PURE__ */ F("span", {
|
|
1348
|
+
className: n("date-meta-cell--component inline-flex min-w-0 items-start gap-space-sm", l),
|
|
1349
|
+
children: [!!o && /* @__PURE__ */ P(s, { className: "mt-space-2xs size-icon shrink-0 text-muted-foreground" }), /* @__PURE__ */ F("span", {
|
|
1350
|
+
className: "grid min-w-0 gap-space-2xs",
|
|
1351
|
+
children: [/* @__PURE__ */ P(re, {
|
|
1352
|
+
value: p,
|
|
1353
|
+
format: t,
|
|
1354
|
+
preset: r,
|
|
1355
|
+
locale: a,
|
|
1356
|
+
emptyLabel: c,
|
|
1357
|
+
size: "inherit",
|
|
1358
|
+
type: "secondary",
|
|
1359
|
+
className: n("truncate tabular-nums", u)
|
|
1360
|
+
}), !!m && /* @__PURE__ */ P(i, {
|
|
1361
|
+
tag: "span",
|
|
1362
|
+
size: "inherit",
|
|
1363
|
+
type: "secondary",
|
|
1364
|
+
className: n("truncate", f),
|
|
1365
|
+
children: m
|
|
1366
|
+
})]
|
|
1367
|
+
})]
|
|
1368
|
+
});
|
|
1369
|
+
}
|
|
1370
|
+
Et.displayName = "DateMetaCell";
|
|
1371
|
+
function Dt({ value: e, currency: t, locale: r, emptyLabel: i = "—", className: a, weight: o = "semibold" }) {
|
|
1372
|
+
return /* @__PURE__ */ P(S, {
|
|
1373
|
+
amount: e,
|
|
1374
|
+
currency: t,
|
|
1375
|
+
locale: r,
|
|
1376
|
+
formatMode: t ? "with_symbol" : "decimal",
|
|
1377
|
+
emptyLabel: i,
|
|
1378
|
+
size: "inherit",
|
|
1379
|
+
weight: o,
|
|
1380
|
+
className: n("currency-cell--component tabular-nums", a)
|
|
1381
|
+
});
|
|
1382
|
+
}
|
|
1383
|
+
Dt.displayName = "CurrencyCell";
|
|
1384
|
+
function Ot({ name: e, imageUrl: t, icon: r = L, subtitle: a, emptyLabel: o = "—", className: s }) {
|
|
1385
|
+
return !e || e.trim().length === 0 ? /* @__PURE__ */ P(i, {
|
|
1386
|
+
size: "inherit",
|
|
1387
|
+
type: "secondary",
|
|
1388
|
+
className: n("avatar-cell--component", s),
|
|
1389
|
+
children: o
|
|
1390
|
+
}) : /* @__PURE__ */ F("span", {
|
|
1391
|
+
className: n("avatar-cell--component inline-flex items-center gap-space-md", s),
|
|
1392
|
+
children: [/* @__PURE__ */ P("span", {
|
|
1393
|
+
className: "relative inline-flex size-avatar-sm shrink-0 items-center justify-center overflow-hidden rounded-full bg-muted text-muted-foreground",
|
|
1394
|
+
children: t ? /* @__PURE__ */ P("img", {
|
|
1395
|
+
src: t,
|
|
1396
|
+
alt: e,
|
|
1397
|
+
className: "absolute inset-0 size-full object-cover"
|
|
1398
|
+
}) : e.length > 0 ? /* @__PURE__ */ P(i, {
|
|
1399
|
+
size: "inherit",
|
|
1400
|
+
weight: "semibold",
|
|
1401
|
+
className: "text-sm leading-none",
|
|
1402
|
+
children: x(e, { strategy: "first-words" })
|
|
1403
|
+
}) : /* @__PURE__ */ P(r, { className: "size-icon" })
|
|
1404
|
+
}), /* @__PURE__ */ F("span", {
|
|
1405
|
+
className: "min-w-0 inline-flex flex-col",
|
|
1406
|
+
children: [/* @__PURE__ */ P(i, {
|
|
1407
|
+
size: "inherit",
|
|
1408
|
+
weight: "medium",
|
|
1409
|
+
className: "truncate",
|
|
1410
|
+
children: e
|
|
1411
|
+
}), !!a && /* @__PURE__ */ P(i, {
|
|
1412
|
+
size: "inherit",
|
|
1413
|
+
type: "secondary",
|
|
1414
|
+
className: "truncate",
|
|
1415
|
+
children: a
|
|
1416
|
+
})]
|
|
1417
|
+
})]
|
|
1418
|
+
});
|
|
1419
|
+
}
|
|
1420
|
+
Ot.displayName = "AvatarCell";
|
|
1421
|
+
//#endregion
|
|
1422
|
+
export { z as A, U as C, Ye as D, Je as E, R as M, Be as N, qe as O, W as S, H as T, tt as _, wt as a, Qe as b, xt as c, J as d, q as f, G as g, rt as h, Et as i, We as j, Ke as k, bt as l, st as m, Dt as n, Tt as o, lt as p, $ as r, Ct as s, Ot as t, Z as u, et as v, Xe as w, Ze as x, $e as y };
|
|
1423
|
+
|
|
1424
|
+
//# sourceMappingURL=table-ghtAQ-JJ.js.map
|