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,1499 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useStrings as e } from "../lib/strings.js";
|
|
3
|
+
import { t } from "../utils-C2EKeIw3.js";
|
|
4
|
+
import { n } from "../buttons-Co6GavvM.js";
|
|
5
|
+
import { a as r, i, r as a } from "../typography-Cv8MT-82.js";
|
|
6
|
+
import { r as o, t as s } from "../structure-BvW4vG4H.js";
|
|
7
|
+
import { t as c } from "../smart-card-B5FcKODh.js";
|
|
8
|
+
import { i as l, n as u, r as d, t as f } from "../format-iamDSqs2.js";
|
|
9
|
+
import { _ as p, g as m } from "../primitives-DKPOGVpj.js";
|
|
10
|
+
import { t as h } from "../badge-BZXZT9wd.js";
|
|
11
|
+
import { t as g } from "../chart-DVfcwQu6.js";
|
|
12
|
+
import { n as _ } from "../display-ByI5tkqy.js";
|
|
13
|
+
import { useId as v, useMemo as y } from "react";
|
|
14
|
+
import { Fragment as b, jsx as x, jsxs as S } from "react/jsx-runtime";
|
|
15
|
+
import { ArrowDown as C, ArrowRight as ee, ArrowUp as w, ArrowUpRight as T, Calendar as E, Equal as te, Minus as D } from "lucide-react";
|
|
16
|
+
import { Area as O, AreaChart as k, ResponsiveContainer as A } from "recharts";
|
|
17
|
+
//#region src/components/blocks/analytics/analytics.strings.ts
|
|
18
|
+
var j = {
|
|
19
|
+
metricErrorLabel: "Unable to load metric",
|
|
20
|
+
comparisonTitle: "Comparison",
|
|
21
|
+
heatmapDayLabels: [
|
|
22
|
+
"Mon",
|
|
23
|
+
"",
|
|
24
|
+
"Wed",
|
|
25
|
+
"",
|
|
26
|
+
"Fri",
|
|
27
|
+
"",
|
|
28
|
+
""
|
|
29
|
+
],
|
|
30
|
+
heatmapMonthNames: [
|
|
31
|
+
"Jan",
|
|
32
|
+
"Feb",
|
|
33
|
+
"Mar",
|
|
34
|
+
"Apr",
|
|
35
|
+
"May",
|
|
36
|
+
"Jun",
|
|
37
|
+
"Jul",
|
|
38
|
+
"Aug",
|
|
39
|
+
"Sep",
|
|
40
|
+
"Oct",
|
|
41
|
+
"Nov",
|
|
42
|
+
"Dec"
|
|
43
|
+
],
|
|
44
|
+
heatmapLegendLess: "Less",
|
|
45
|
+
heatmapLegendMore: "More"
|
|
46
|
+
};
|
|
47
|
+
//#endregion
|
|
48
|
+
//#region src/components/blocks/analytics/format-metric-value.ts
|
|
49
|
+
function M(e) {
|
|
50
|
+
if (e.value === null || e.value === void 0) return "—";
|
|
51
|
+
let t = e.value, n = typeof t == "number" ? t : null;
|
|
52
|
+
switch (e.valueType) {
|
|
53
|
+
case "currency": return n === null ? String(t) : f(n, {
|
|
54
|
+
currency: e.currency,
|
|
55
|
+
currencyDisplay: "code"
|
|
56
|
+
}).replace(/\u00a0/g, " ");
|
|
57
|
+
case "percentage": return n === null ? String(t) : l(n);
|
|
58
|
+
case "duration": return n === null ? String(t) : u(n);
|
|
59
|
+
case "number": return n === null ? String(t) : d(n);
|
|
60
|
+
default: return String(t);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
function N(e) {
|
|
64
|
+
return e.trend ? e.trend : e.change?.direction === "up" ? "positive" : e.change?.direction === "down" ? "negative" : "neutral";
|
|
65
|
+
}
|
|
66
|
+
//#endregion
|
|
67
|
+
//#region src/components/blocks/analytics/atoms/metric-trend-chip.tsx
|
|
68
|
+
var ne = {
|
|
69
|
+
positive: {
|
|
70
|
+
text: "text-success",
|
|
71
|
+
badge: "bg-success/10 text-success",
|
|
72
|
+
arrow: "text-success"
|
|
73
|
+
},
|
|
74
|
+
negative: {
|
|
75
|
+
text: "text-destructive",
|
|
76
|
+
badge: "bg-destructive/10 text-destructive",
|
|
77
|
+
arrow: "text-destructive"
|
|
78
|
+
},
|
|
79
|
+
neutral: {
|
|
80
|
+
text: "text-muted-foreground",
|
|
81
|
+
badge: "bg-muted text-muted-foreground",
|
|
82
|
+
arrow: "text-muted-foreground"
|
|
83
|
+
}
|
|
84
|
+
}, P = {
|
|
85
|
+
sm: "size-icon-sm",
|
|
86
|
+
md: "size-icon-md",
|
|
87
|
+
lg: "size-icon"
|
|
88
|
+
}, F = {
|
|
89
|
+
sm: "xxs",
|
|
90
|
+
md: "xs",
|
|
91
|
+
lg: "sm"
|
|
92
|
+
}, re = {
|
|
93
|
+
sm: "px-1.5 py-0.5",
|
|
94
|
+
md: "px-2 py-0.5",
|
|
95
|
+
lg: "px-2.5 py-1"
|
|
96
|
+
};
|
|
97
|
+
function ie(e, t) {
|
|
98
|
+
return e || (t === "up" ? "positive" : t === "down" ? "negative" : "neutral");
|
|
99
|
+
}
|
|
100
|
+
function I({ change: e, trend: n, size: i = "md", variant: a = "default", className: o }) {
|
|
101
|
+
let s = ie(n, e.direction), c = e.direction === "up" ? w : e.direction === "down" ? C : D, l = ne[s], u = String(e.value), d = e.direction === "up" ? "+" : (e.direction, "");
|
|
102
|
+
return a === "inline" ? /* @__PURE__ */ S(p, {
|
|
103
|
+
size: F[i],
|
|
104
|
+
weight: "medium",
|
|
105
|
+
className: t("metric-trend-chip--component", l.text, "tabular-nums", o),
|
|
106
|
+
children: [d, u]
|
|
107
|
+
}) : a === "compact" ? /* @__PURE__ */ S("span", {
|
|
108
|
+
className: t("inline-flex items-center gap-space-2xs", l.text, o),
|
|
109
|
+
children: [/* @__PURE__ */ x(c, {
|
|
110
|
+
className: P[i],
|
|
111
|
+
strokeWidth: 2.5,
|
|
112
|
+
"aria-hidden": "true"
|
|
113
|
+
}), /* @__PURE__ */ x(p, {
|
|
114
|
+
size: F[i],
|
|
115
|
+
weight: "semibold",
|
|
116
|
+
className: "text-current tabular-nums",
|
|
117
|
+
children: u
|
|
118
|
+
})]
|
|
119
|
+
}) : a === "badge" ? /* @__PURE__ */ S("span", {
|
|
120
|
+
className: t("inline-flex items-center gap-space-xs rounded-full", l.badge, re[i], o),
|
|
121
|
+
children: [
|
|
122
|
+
/* @__PURE__ */ x(c, {
|
|
123
|
+
className: P[i],
|
|
124
|
+
strokeWidth: 2.5,
|
|
125
|
+
"aria-hidden": "true"
|
|
126
|
+
}),
|
|
127
|
+
/* @__PURE__ */ x(p, {
|
|
128
|
+
size: F[i],
|
|
129
|
+
weight: "semibold",
|
|
130
|
+
className: "text-current tabular-nums",
|
|
131
|
+
children: u
|
|
132
|
+
}),
|
|
133
|
+
!!e.label && /* @__PURE__ */ x(r, {
|
|
134
|
+
tag: "span",
|
|
135
|
+
size: F[i],
|
|
136
|
+
className: "text-current opacity-70",
|
|
137
|
+
children: e.label
|
|
138
|
+
})
|
|
139
|
+
]
|
|
140
|
+
}) : /* @__PURE__ */ S("span", {
|
|
141
|
+
className: t("inline-flex items-center gap-space-xs", l.text, o),
|
|
142
|
+
children: [
|
|
143
|
+
/* @__PURE__ */ x(c, {
|
|
144
|
+
className: P[i],
|
|
145
|
+
strokeWidth: 2.5,
|
|
146
|
+
"aria-hidden": "true"
|
|
147
|
+
}),
|
|
148
|
+
/* @__PURE__ */ x(p, {
|
|
149
|
+
size: F[i],
|
|
150
|
+
weight: "semibold",
|
|
151
|
+
className: "tabular-nums",
|
|
152
|
+
children: u
|
|
153
|
+
}),
|
|
154
|
+
!!e.label && /* @__PURE__ */ x(r, {
|
|
155
|
+
tag: "span",
|
|
156
|
+
size: F[i],
|
|
157
|
+
type: "secondary",
|
|
158
|
+
children: e.label
|
|
159
|
+
})
|
|
160
|
+
]
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
I.displayName = "MetricTrendChip";
|
|
164
|
+
//#endregion
|
|
165
|
+
//#region src/components/blocks/analytics/atoms/metric-sparkline.tsx
|
|
166
|
+
var ae = {
|
|
167
|
+
positive: "var(--success)",
|
|
168
|
+
negative: "var(--destructive)",
|
|
169
|
+
neutral: "var(--muted-foreground)"
|
|
170
|
+
};
|
|
171
|
+
function L({ data: e, trend: n = "neutral", color: r, className: i, animated: a = !0, "aria-label": o = "Trend sparkline" }) {
|
|
172
|
+
let s = v(), c = y(() => `metric-spark-${s.replaceAll(":", "")}`, [s]), l = r ?? ae[n], u = y(() => !Array.isArray(e) || e.length === 0 ? [] : e.map((e, t) => ({
|
|
173
|
+
i: t,
|
|
174
|
+
v: e
|
|
175
|
+
})), [e]);
|
|
176
|
+
return u.length === 0 ? /* @__PURE__ */ x("div", {
|
|
177
|
+
className: t("metric-sparkline--component", "h-full w-full", i),
|
|
178
|
+
"aria-hidden": "true"
|
|
179
|
+
}) : /* @__PURE__ */ x("div", {
|
|
180
|
+
className: t("metric-sparkline--component h-full w-full", i),
|
|
181
|
+
role: "img",
|
|
182
|
+
"aria-label": o,
|
|
183
|
+
children: /* @__PURE__ */ x(A, {
|
|
184
|
+
width: "100%",
|
|
185
|
+
height: "100%",
|
|
186
|
+
initialDimension: {
|
|
187
|
+
width: 1,
|
|
188
|
+
height: 1
|
|
189
|
+
},
|
|
190
|
+
children: /* @__PURE__ */ S(k, {
|
|
191
|
+
data: u,
|
|
192
|
+
margin: {
|
|
193
|
+
top: 2,
|
|
194
|
+
right: 0,
|
|
195
|
+
bottom: 0,
|
|
196
|
+
left: 0
|
|
197
|
+
},
|
|
198
|
+
children: [/* @__PURE__ */ x("defs", { children: /* @__PURE__ */ S("linearGradient", {
|
|
199
|
+
id: c,
|
|
200
|
+
x1: "0",
|
|
201
|
+
y1: "0",
|
|
202
|
+
x2: "0",
|
|
203
|
+
y2: "1",
|
|
204
|
+
children: [/* @__PURE__ */ x("stop", {
|
|
205
|
+
offset: "0%",
|
|
206
|
+
stopColor: l,
|
|
207
|
+
stopOpacity: .25
|
|
208
|
+
}), /* @__PURE__ */ x("stop", {
|
|
209
|
+
offset: "100%",
|
|
210
|
+
stopColor: l,
|
|
211
|
+
stopOpacity: 0
|
|
212
|
+
})]
|
|
213
|
+
}) }), /* @__PURE__ */ x(O, {
|
|
214
|
+
type: "monotone",
|
|
215
|
+
dataKey: "v",
|
|
216
|
+
stroke: l,
|
|
217
|
+
strokeWidth: 1.75,
|
|
218
|
+
fill: `url(#${c})`,
|
|
219
|
+
dot: !1,
|
|
220
|
+
activeDot: !1,
|
|
221
|
+
isAnimationActive: a,
|
|
222
|
+
animationDuration: 600
|
|
223
|
+
})]
|
|
224
|
+
})
|
|
225
|
+
})
|
|
226
|
+
});
|
|
227
|
+
}
|
|
228
|
+
L.displayName = "MetricSparkline";
|
|
229
|
+
//#endregion
|
|
230
|
+
//#region src/components/blocks/analytics/atoms/metric-skeleton.tsx
|
|
231
|
+
var R = ({ className: e }) => /* @__PURE__ */ x("div", { className: t("animate-pulse rounded bg-muted", e) });
|
|
232
|
+
function z({ variant: e = "default", size: n = "md", className: r }) {
|
|
233
|
+
let i = "p-surface";
|
|
234
|
+
return e === "card" ? /* @__PURE__ */ S(c, {
|
|
235
|
+
className: t("metric-skeleton--component", r),
|
|
236
|
+
"aria-busy": "true",
|
|
237
|
+
"aria-live": "polite",
|
|
238
|
+
children: [
|
|
239
|
+
/* @__PURE__ */ x(R, { className: "h-3 w-24" }),
|
|
240
|
+
/* @__PURE__ */ x(R, { className: t("mt-space-lg", n === "lg" ? "h-9 w-40" : "h-7 w-32") }),
|
|
241
|
+
/* @__PURE__ */ x(R, { className: "mt-space-md h-3 w-20" }),
|
|
242
|
+
/* @__PURE__ */ x(R, { className: "mt-space-lg h-8 w-full" })
|
|
243
|
+
]
|
|
244
|
+
}) : e === "bordered" || e === "accent" || e === "colored" ? /* @__PURE__ */ S("div", {
|
|
245
|
+
className: t("metric-skeleton--component", "rounded-radius border border-border bg-card shadow-sm", i, r),
|
|
246
|
+
"aria-busy": "true",
|
|
247
|
+
"aria-live": "polite",
|
|
248
|
+
children: [
|
|
249
|
+
/* @__PURE__ */ x(R, { className: "h-3 w-24" }),
|
|
250
|
+
/* @__PURE__ */ x(R, { className: t("mt-space-lg", n === "lg" ? "h-9 w-40" : "h-7 w-32") }),
|
|
251
|
+
/* @__PURE__ */ x(R, { className: "mt-space-md h-3 w-20" }),
|
|
252
|
+
/* @__PURE__ */ x(R, { className: "mt-space-lg h-8 w-full" })
|
|
253
|
+
]
|
|
254
|
+
}) : e === "compact" ? /* @__PURE__ */ S("div", {
|
|
255
|
+
className: t("flex items-center gap-space-lg", r),
|
|
256
|
+
"aria-busy": "true",
|
|
257
|
+
children: [
|
|
258
|
+
/* @__PURE__ */ x(R, { className: "size-9 rounded-radius" }),
|
|
259
|
+
/* @__PURE__ */ S("div", {
|
|
260
|
+
className: "flex-1 space-y-space-sm",
|
|
261
|
+
children: [/* @__PURE__ */ x(R, { className: "h-3 w-20" }), /* @__PURE__ */ x(R, { className: "h-4 w-28" })]
|
|
262
|
+
}),
|
|
263
|
+
/* @__PURE__ */ x(R, { className: "h-5 w-12 rounded-full" })
|
|
264
|
+
]
|
|
265
|
+
}) : e === "minimal" ? /* @__PURE__ */ S("div", {
|
|
266
|
+
className: t("inline-flex items-baseline gap-space-md", r),
|
|
267
|
+
"aria-busy": "true",
|
|
268
|
+
children: [/* @__PURE__ */ x(R, { className: "h-3 w-12" }), /* @__PURE__ */ x(R, { className: "h-3 w-16" })]
|
|
269
|
+
}) : /* @__PURE__ */ S("div", {
|
|
270
|
+
className: t("flex flex-col gap-space-sm", i, r),
|
|
271
|
+
"aria-busy": "true",
|
|
272
|
+
children: [
|
|
273
|
+
/* @__PURE__ */ x(R, { className: "h-3 w-20" }),
|
|
274
|
+
/* @__PURE__ */ x(R, { className: "h-5 w-28" }),
|
|
275
|
+
/* @__PURE__ */ x(R, { className: "mt-1 h-6 w-full" })
|
|
276
|
+
]
|
|
277
|
+
});
|
|
278
|
+
}
|
|
279
|
+
z.displayName = "MetricSkeleton";
|
|
280
|
+
//#endregion
|
|
281
|
+
//#region src/components/blocks/analytics/metric/metric.tsx
|
|
282
|
+
var B = {
|
|
283
|
+
default: {
|
|
284
|
+
border: "border-border",
|
|
285
|
+
bg: "bg-card",
|
|
286
|
+
bar: "bg-foreground",
|
|
287
|
+
dot: "bg-foreground",
|
|
288
|
+
ring: "ring-border"
|
|
289
|
+
},
|
|
290
|
+
primary: {
|
|
291
|
+
border: "border-primary/25",
|
|
292
|
+
bg: "bg-primary/5",
|
|
293
|
+
bar: "bg-primary",
|
|
294
|
+
dot: "bg-primary",
|
|
295
|
+
ring: "ring-primary/20"
|
|
296
|
+
},
|
|
297
|
+
success: {
|
|
298
|
+
border: "border-success/30",
|
|
299
|
+
bg: "bg-success/5",
|
|
300
|
+
bar: "bg-success",
|
|
301
|
+
dot: "bg-success",
|
|
302
|
+
ring: "ring-success/20"
|
|
303
|
+
},
|
|
304
|
+
warning: {
|
|
305
|
+
border: "border-warning/40",
|
|
306
|
+
bg: "bg-warning/10",
|
|
307
|
+
bar: "bg-warning",
|
|
308
|
+
dot: "bg-warning",
|
|
309
|
+
ring: "ring-warning/30"
|
|
310
|
+
},
|
|
311
|
+
danger: {
|
|
312
|
+
border: "border-destructive/30",
|
|
313
|
+
bg: "bg-destructive/5",
|
|
314
|
+
bar: "bg-destructive",
|
|
315
|
+
dot: "bg-destructive",
|
|
316
|
+
ring: "ring-destructive/20"
|
|
317
|
+
},
|
|
318
|
+
info: {
|
|
319
|
+
border: "border-info/30",
|
|
320
|
+
bg: "bg-info/5",
|
|
321
|
+
bar: "bg-info",
|
|
322
|
+
dot: "bg-info",
|
|
323
|
+
ring: "ring-info/20"
|
|
324
|
+
}
|
|
325
|
+
}, oe = {
|
|
326
|
+
sm: "text-sm",
|
|
327
|
+
md: "text-base",
|
|
328
|
+
lg: "text-base"
|
|
329
|
+
}, V = {
|
|
330
|
+
sm: "text-base",
|
|
331
|
+
md: "text-base",
|
|
332
|
+
lg: "text-base"
|
|
333
|
+
}, H = {
|
|
334
|
+
sm: "h-control-sm",
|
|
335
|
+
md: "h-control",
|
|
336
|
+
lg: "h-control-lg"
|
|
337
|
+
}, U = 16;
|
|
338
|
+
function W(e) {
|
|
339
|
+
let { data: n, variant: i = "default", size: a = "md", colorScheme: o = "default", showSparkline: s = !0, showChange: c = !0, showIcon: l = !0, loading: u = !1, error: d = !1, errorLabel: f, progress: p = 0, className: m, "aria-label": h } = e, g = t("metric--component", m), _ = y(() => M(n), [n]), v = y(() => N(n), [n]);
|
|
340
|
+
if (u) return /* @__PURE__ */ x(z, {
|
|
341
|
+
variant: i,
|
|
342
|
+
size: a,
|
|
343
|
+
className: g
|
|
344
|
+
});
|
|
345
|
+
if (d) return /* @__PURE__ */ x("div", {
|
|
346
|
+
className: t("flex items-center justify-center rounded-radius border border-border bg-card text-card-foreground", "p-surface", g),
|
|
347
|
+
children: /* @__PURE__ */ x(r, { children: f ?? j.metricErrorLabel })
|
|
348
|
+
});
|
|
349
|
+
let b = {
|
|
350
|
+
data: n,
|
|
351
|
+
formattedValue: _,
|
|
352
|
+
trend: v,
|
|
353
|
+
size: a,
|
|
354
|
+
showSparkline: s,
|
|
355
|
+
showChange: c,
|
|
356
|
+
showIcon: l,
|
|
357
|
+
colorScheme: o,
|
|
358
|
+
ariaLabel: h ?? n.label,
|
|
359
|
+
className: g
|
|
360
|
+
};
|
|
361
|
+
switch (i) {
|
|
362
|
+
case "card": return /* @__PURE__ */ x(ce, { ...b });
|
|
363
|
+
case "compact": return /* @__PURE__ */ x(le, { ...b });
|
|
364
|
+
case "minimal": return /* @__PURE__ */ x(ue, { ...b });
|
|
365
|
+
case "bordered": return /* @__PURE__ */ x(de, { ...b });
|
|
366
|
+
case "accent": return /* @__PURE__ */ x(fe, { ...b });
|
|
367
|
+
case "colored": return /* @__PURE__ */ x(pe, {
|
|
368
|
+
...b,
|
|
369
|
+
progress: p
|
|
370
|
+
});
|
|
371
|
+
default: return /* @__PURE__ */ x(se, { ...b });
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
W.displayName = "Metric";
|
|
375
|
+
function se({ data: e, formattedValue: n, trend: a, size: o, showSparkline: c, showChange: l, showIcon: u, ariaLabel: d, className: f }) {
|
|
376
|
+
let p = e.icon;
|
|
377
|
+
return /* @__PURE__ */ S(s, {
|
|
378
|
+
gap: "xs",
|
|
379
|
+
className: f,
|
|
380
|
+
"aria-label": d,
|
|
381
|
+
children: [
|
|
382
|
+
/* @__PURE__ */ S(s, {
|
|
383
|
+
direction: "horizontal",
|
|
384
|
+
align: "center",
|
|
385
|
+
gap: "sm",
|
|
386
|
+
className: "min-w-0 text-muted-foreground",
|
|
387
|
+
children: [!!u && !!p && /* @__PURE__ */ x(p, {
|
|
388
|
+
className: "size-icon-md shrink-0",
|
|
389
|
+
"aria-hidden": "true"
|
|
390
|
+
}), /* @__PURE__ */ x(r, {
|
|
391
|
+
size: "xs",
|
|
392
|
+
type: "secondary",
|
|
393
|
+
weight: "medium",
|
|
394
|
+
className: "truncate",
|
|
395
|
+
children: e.label
|
|
396
|
+
})]
|
|
397
|
+
}),
|
|
398
|
+
/* @__PURE__ */ x(i, {
|
|
399
|
+
tag: "h5",
|
|
400
|
+
className: t("font-bold tabular-nums tracking-tight border-none pb-0 leading-tight truncate", oe[o]),
|
|
401
|
+
title: n,
|
|
402
|
+
children: n
|
|
403
|
+
}),
|
|
404
|
+
!!l && !!e.change && /* @__PURE__ */ x("div", {
|
|
405
|
+
className: "min-w-0",
|
|
406
|
+
children: /* @__PURE__ */ x(I, {
|
|
407
|
+
change: e.change,
|
|
408
|
+
trend: e.trend,
|
|
409
|
+
size: o,
|
|
410
|
+
variant: "compact"
|
|
411
|
+
})
|
|
412
|
+
}),
|
|
413
|
+
!!e.subtitle && /* @__PURE__ */ x(r, {
|
|
414
|
+
size: "xs",
|
|
415
|
+
type: "secondary",
|
|
416
|
+
className: "truncate",
|
|
417
|
+
children: e.subtitle
|
|
418
|
+
}),
|
|
419
|
+
!!c && !!e.sparkline?.length && /* @__PURE__ */ x(L, {
|
|
420
|
+
data: e.sparkline,
|
|
421
|
+
trend: a,
|
|
422
|
+
className: t("mt-auto", H[o])
|
|
423
|
+
}),
|
|
424
|
+
!!e.footer && /* @__PURE__ */ x(r, {
|
|
425
|
+
size: "xs",
|
|
426
|
+
type: "discrete",
|
|
427
|
+
className: "truncate",
|
|
428
|
+
children: e.footer
|
|
429
|
+
})
|
|
430
|
+
]
|
|
431
|
+
});
|
|
432
|
+
}
|
|
433
|
+
function ce({ data: e, formattedValue: n, trend: a, size: o, showSparkline: l, showChange: u, showIcon: d, ariaLabel: f, className: p }) {
|
|
434
|
+
let m = e.icon, h = !!(e.href || e.onClick), g = /* @__PURE__ */ x(c, {
|
|
435
|
+
title: e.label,
|
|
436
|
+
icon: d && m ? /* @__PURE__ */ x(m, {
|
|
437
|
+
className: "size-icon",
|
|
438
|
+
"aria-hidden": "true"
|
|
439
|
+
}) : null,
|
|
440
|
+
tooltip: e.tooltip,
|
|
441
|
+
className: t(h && "cursor-pointer transition-shadow hover:shadow-md", p),
|
|
442
|
+
"aria-label": f,
|
|
443
|
+
children: /* @__PURE__ */ S(s, {
|
|
444
|
+
gap: "normal",
|
|
445
|
+
children: [
|
|
446
|
+
/* @__PURE__ */ S(s, {
|
|
447
|
+
direction: "horizontal",
|
|
448
|
+
align: "baseline",
|
|
449
|
+
justify: "between",
|
|
450
|
+
gap: "normal",
|
|
451
|
+
children: [/* @__PURE__ */ x(i, {
|
|
452
|
+
tag: o === "sm" ? "h5" : o === "lg" ? "h3" : "h4",
|
|
453
|
+
className: t("max-w-full break-words font-bold tabular-nums tracking-tight border-none pb-0 leading-none", V[o]),
|
|
454
|
+
children: n
|
|
455
|
+
}), !!u && !!e.change && /* @__PURE__ */ x(I, {
|
|
456
|
+
change: e.change,
|
|
457
|
+
trend: e.trend,
|
|
458
|
+
size: o,
|
|
459
|
+
variant: "badge"
|
|
460
|
+
})]
|
|
461
|
+
}),
|
|
462
|
+
!!e.subtitle && /* @__PURE__ */ x(r, {
|
|
463
|
+
type: "secondary",
|
|
464
|
+
children: e.subtitle
|
|
465
|
+
}),
|
|
466
|
+
!!l && !!e.sparkline?.length && /* @__PURE__ */ x(L, {
|
|
467
|
+
data: e.sparkline,
|
|
468
|
+
trend: a,
|
|
469
|
+
className: o === "lg" ? "h-control-lg" : "h-control"
|
|
470
|
+
}),
|
|
471
|
+
!!e.footer && /* @__PURE__ */ x(r, {
|
|
472
|
+
size: "xs",
|
|
473
|
+
type: "secondary",
|
|
474
|
+
children: e.footer
|
|
475
|
+
})
|
|
476
|
+
]
|
|
477
|
+
})
|
|
478
|
+
});
|
|
479
|
+
return h && e.onClick ? /* @__PURE__ */ x("div", {
|
|
480
|
+
role: "button",
|
|
481
|
+
tabIndex: 0,
|
|
482
|
+
onClick: e.onClick,
|
|
483
|
+
onKeyDown: (t) => (t.key === "Enter" || t.key === " ") && e.onClick?.(),
|
|
484
|
+
className: "rounded-radius focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/40",
|
|
485
|
+
children: g
|
|
486
|
+
}) : g;
|
|
487
|
+
}
|
|
488
|
+
function le({ data: e, formattedValue: n, size: i, showChange: a, showIcon: o, ariaLabel: s, className: c }) {
|
|
489
|
+
let l = e.icon;
|
|
490
|
+
return /* @__PURE__ */ S("div", {
|
|
491
|
+
className: t("flex items-center gap-space-lg", c),
|
|
492
|
+
"aria-label": s,
|
|
493
|
+
children: [
|
|
494
|
+
!!o && !!l && /* @__PURE__ */ x("span", {
|
|
495
|
+
className: "inline-flex size-avatar shrink-0 items-center justify-center rounded-radius bg-muted/60 text-muted-foreground",
|
|
496
|
+
children: /* @__PURE__ */ x(l, {
|
|
497
|
+
className: "size-icon",
|
|
498
|
+
"aria-hidden": "true"
|
|
499
|
+
})
|
|
500
|
+
}),
|
|
501
|
+
/* @__PURE__ */ S("div", {
|
|
502
|
+
className: "min-w-0 flex-1",
|
|
503
|
+
children: [/* @__PURE__ */ x(r, {
|
|
504
|
+
size: "xs",
|
|
505
|
+
type: "secondary",
|
|
506
|
+
className: "truncate",
|
|
507
|
+
children: e.label
|
|
508
|
+
}), /* @__PURE__ */ x(p, {
|
|
509
|
+
size: i === "sm" ? "sm" : "base",
|
|
510
|
+
weight: "bold",
|
|
511
|
+
className: "block truncate tabular-nums",
|
|
512
|
+
children: n
|
|
513
|
+
})]
|
|
514
|
+
}),
|
|
515
|
+
!!a && !!e.change && /* @__PURE__ */ x(I, {
|
|
516
|
+
change: e.change,
|
|
517
|
+
trend: e.trend,
|
|
518
|
+
size: i,
|
|
519
|
+
variant: "badge",
|
|
520
|
+
className: "shrink-0"
|
|
521
|
+
})
|
|
522
|
+
]
|
|
523
|
+
});
|
|
524
|
+
}
|
|
525
|
+
function ue({ data: e, formattedValue: n, size: i, showChange: a, ariaLabel: o, className: s }) {
|
|
526
|
+
return /* @__PURE__ */ S("span", {
|
|
527
|
+
className: t("inline-flex items-baseline gap-space-md", s),
|
|
528
|
+
"aria-label": o,
|
|
529
|
+
children: [
|
|
530
|
+
/* @__PURE__ */ S(r, {
|
|
531
|
+
tag: "span",
|
|
532
|
+
size: i === "lg" ? "sm" : "xs",
|
|
533
|
+
type: "secondary",
|
|
534
|
+
children: [e.label, ":"]
|
|
535
|
+
}),
|
|
536
|
+
/* @__PURE__ */ x(p, {
|
|
537
|
+
size: i === "lg" ? "sm" : "xs",
|
|
538
|
+
weight: "semibold",
|
|
539
|
+
className: "tabular-nums",
|
|
540
|
+
children: n
|
|
541
|
+
}),
|
|
542
|
+
!!a && !!e.change && /* @__PURE__ */ x(I, {
|
|
543
|
+
change: e.change,
|
|
544
|
+
trend: e.trend,
|
|
545
|
+
size: "sm",
|
|
546
|
+
variant: "inline"
|
|
547
|
+
})
|
|
548
|
+
]
|
|
549
|
+
});
|
|
550
|
+
}
|
|
551
|
+
function de({ data: e, formattedValue: n, trend: a, size: o, showSparkline: c, showChange: l, showIcon: u, colorScheme: d, ariaLabel: f, className: p }) {
|
|
552
|
+
let m = e.icon, h = B[d];
|
|
553
|
+
return /* @__PURE__ */ S(s, {
|
|
554
|
+
gap: "lg",
|
|
555
|
+
className: t("rounded-radius border shadow-sm", "p-surface", h.border, h.bg, p),
|
|
556
|
+
"aria-label": f,
|
|
557
|
+
children: [
|
|
558
|
+
/* @__PURE__ */ S(s, {
|
|
559
|
+
direction: "horizontal",
|
|
560
|
+
align: "center",
|
|
561
|
+
justify: "between",
|
|
562
|
+
gap: "md",
|
|
563
|
+
children: [/* @__PURE__ */ S("div", {
|
|
564
|
+
className: "flex items-center gap-space-md text-muted-foreground",
|
|
565
|
+
children: [!!u && !!m && /* @__PURE__ */ x(m, {
|
|
566
|
+
className: "size-icon shrink-0",
|
|
567
|
+
"aria-hidden": "true"
|
|
568
|
+
}), /* @__PURE__ */ x(r, {
|
|
569
|
+
size: "xs",
|
|
570
|
+
type: "secondary",
|
|
571
|
+
weight: "medium",
|
|
572
|
+
children: e.label
|
|
573
|
+
})]
|
|
574
|
+
}), !!l && !!e.change && /* @__PURE__ */ x(I, {
|
|
575
|
+
change: e.change,
|
|
576
|
+
trend: e.trend,
|
|
577
|
+
size: o,
|
|
578
|
+
variant: "badge"
|
|
579
|
+
})]
|
|
580
|
+
}),
|
|
581
|
+
/* @__PURE__ */ x(i, {
|
|
582
|
+
tag: o === "lg" ? "h3" : "h4",
|
|
583
|
+
className: t("font-bold tabular-nums tracking-tight border-none pb-0 leading-none", V[o]),
|
|
584
|
+
children: n
|
|
585
|
+
}),
|
|
586
|
+
!!e.subtitle && /* @__PURE__ */ x(r, {
|
|
587
|
+
size: "xs",
|
|
588
|
+
type: "secondary",
|
|
589
|
+
children: e.subtitle
|
|
590
|
+
}),
|
|
591
|
+
!!c && !!e.sparkline?.length && /* @__PURE__ */ x(L, {
|
|
592
|
+
data: e.sparkline,
|
|
593
|
+
trend: a,
|
|
594
|
+
className: H[o]
|
|
595
|
+
}),
|
|
596
|
+
!!e.footer && /* @__PURE__ */ x(r, {
|
|
597
|
+
size: "xs",
|
|
598
|
+
type: "discrete",
|
|
599
|
+
children: e.footer
|
|
600
|
+
})
|
|
601
|
+
]
|
|
602
|
+
});
|
|
603
|
+
}
|
|
604
|
+
function fe({ data: e, formattedValue: n, trend: o, size: c, showSparkline: l, showChange: u, ariaLabel: d, className: f }) {
|
|
605
|
+
let p = e.icon;
|
|
606
|
+
return /* @__PURE__ */ S(s, {
|
|
607
|
+
gap: "none",
|
|
608
|
+
className: t("dark relative overflow-hidden rounded-radius bg-card text-card-foreground shadow-sm ring-1 ring-border", f),
|
|
609
|
+
"aria-label": d,
|
|
610
|
+
children: [/* @__PURE__ */ S(s, {
|
|
611
|
+
gap: "md",
|
|
612
|
+
className: "p-surface",
|
|
613
|
+
children: [
|
|
614
|
+
/* @__PURE__ */ S(s, {
|
|
615
|
+
direction: "horizontal",
|
|
616
|
+
align: "center",
|
|
617
|
+
justify: "between",
|
|
618
|
+
gap: "lg",
|
|
619
|
+
children: [/* @__PURE__ */ x(a, { children: e.label }), !!p && /* @__PURE__ */ x("span", {
|
|
620
|
+
className: "inline-flex size-avatar-sm items-center justify-center rounded-radius bg-foreground/[0.08]",
|
|
621
|
+
children: /* @__PURE__ */ x(p, {
|
|
622
|
+
className: "size-icon-md text-muted-foreground",
|
|
623
|
+
"aria-hidden": "true"
|
|
624
|
+
})
|
|
625
|
+
})]
|
|
626
|
+
}),
|
|
627
|
+
/* @__PURE__ */ S("div", {
|
|
628
|
+
className: "flex items-baseline gap-2.5",
|
|
629
|
+
children: [/* @__PURE__ */ x(i, {
|
|
630
|
+
tag: "h3",
|
|
631
|
+
className: t("font-bold tabular-nums tracking-tight border-none pb-0 leading-none text-foreground", V[c]),
|
|
632
|
+
children: n
|
|
633
|
+
}), !!u && !!e.change && /* @__PURE__ */ x(I, {
|
|
634
|
+
change: e.change,
|
|
635
|
+
trend: e.trend,
|
|
636
|
+
size: c,
|
|
637
|
+
variant: "compact"
|
|
638
|
+
})]
|
|
639
|
+
}),
|
|
640
|
+
!!e.subtitle && /* @__PURE__ */ x(r, {
|
|
641
|
+
size: "xs",
|
|
642
|
+
type: "secondary",
|
|
643
|
+
children: e.subtitle
|
|
644
|
+
})
|
|
645
|
+
]
|
|
646
|
+
}), !!l && !!e.sparkline?.length && /* @__PURE__ */ x(L, {
|
|
647
|
+
data: e.sparkline,
|
|
648
|
+
trend: o,
|
|
649
|
+
className: "h-control-lg w-full"
|
|
650
|
+
})]
|
|
651
|
+
});
|
|
652
|
+
}
|
|
653
|
+
function pe({ data: e, formattedValue: n, size: a, showChange: o, colorScheme: s, ariaLabel: c, className: l, progress: u = 0 }) {
|
|
654
|
+
let d = B[s === "default" ? "primary" : s], f = Math.round(Math.min(Math.max(u, 0), 100) / 100 * U);
|
|
655
|
+
return /* @__PURE__ */ S("div", {
|
|
656
|
+
className: t("rounded-radius bg-card shadow-sm border border-border/50", "p-surface", l),
|
|
657
|
+
"aria-label": c,
|
|
658
|
+
children: [
|
|
659
|
+
/* @__PURE__ */ S("div", {
|
|
660
|
+
className: "flex items-center gap-space-md",
|
|
661
|
+
children: [/* @__PURE__ */ x(r, {
|
|
662
|
+
size: "xs",
|
|
663
|
+
type: "secondary",
|
|
664
|
+
weight: "medium",
|
|
665
|
+
className: "truncate",
|
|
666
|
+
children: e.label
|
|
667
|
+
}), /* @__PURE__ */ x("span", {
|
|
668
|
+
className: t("size-1.5 rounded-full shrink-0", d.dot),
|
|
669
|
+
"aria-hidden": "true"
|
|
670
|
+
})]
|
|
671
|
+
}),
|
|
672
|
+
/* @__PURE__ */ S("div", {
|
|
673
|
+
className: "mt-space-md flex items-baseline gap-space-md",
|
|
674
|
+
children: [/* @__PURE__ */ x(i, {
|
|
675
|
+
tag: "h3",
|
|
676
|
+
className: t("font-bold tabular-nums tracking-tight border-none pb-0 leading-none", V[a]),
|
|
677
|
+
children: n
|
|
678
|
+
}), !!e.subtitle && /* @__PURE__ */ x(r, {
|
|
679
|
+
size: "xs",
|
|
680
|
+
type: "secondary",
|
|
681
|
+
children: e.subtitle
|
|
682
|
+
})]
|
|
683
|
+
}),
|
|
684
|
+
/* @__PURE__ */ x("div", {
|
|
685
|
+
className: "mt-space-xl flex items-center gap-space-2xs",
|
|
686
|
+
role: "progressbar",
|
|
687
|
+
"aria-label": `${e.label} progress`,
|
|
688
|
+
"aria-valuenow": u,
|
|
689
|
+
"aria-valuemin": 0,
|
|
690
|
+
"aria-valuemax": 100,
|
|
691
|
+
"aria-valuetext": `${u}%`,
|
|
692
|
+
children: Array.from({ length: U }, (e, n) => /* @__PURE__ */ x("div", { className: t("h-6 w-1.5 rounded-radius-sm transition-colors", n < f ? d.bar : "bg-muted") }, `seg-${n}`))
|
|
693
|
+
}),
|
|
694
|
+
!!o && !!e.change && /* @__PURE__ */ x("div", {
|
|
695
|
+
className: "mt-space-lg",
|
|
696
|
+
children: /* @__PURE__ */ x(I, {
|
|
697
|
+
change: e.change,
|
|
698
|
+
trend: e.trend,
|
|
699
|
+
size: a,
|
|
700
|
+
variant: "default"
|
|
701
|
+
})
|
|
702
|
+
}),
|
|
703
|
+
!!e.footer && /* @__PURE__ */ S("div", {
|
|
704
|
+
className: "mt-space-md inline-flex items-center gap-space-xs text-muted-foreground",
|
|
705
|
+
children: [/* @__PURE__ */ x(T, {
|
|
706
|
+
className: "size-icon-sm",
|
|
707
|
+
"aria-hidden": "true"
|
|
708
|
+
}), /* @__PURE__ */ x(r, {
|
|
709
|
+
size: "xs",
|
|
710
|
+
type: "secondary",
|
|
711
|
+
children: e.footer
|
|
712
|
+
})]
|
|
713
|
+
})
|
|
714
|
+
]
|
|
715
|
+
});
|
|
716
|
+
}
|
|
717
|
+
//#endregion
|
|
718
|
+
//#region src/components/blocks/analytics/metric-bar/metric-bar.tsx
|
|
719
|
+
function G({ metrics: e, period: i, onPeriodChange: a, variant: o = "default", size: s = "sm", showSparklines: c = !0, showChanges: l = !0, footerText: u, className: d }) {
|
|
720
|
+
let f = /* @__PURE__ */ x("div", {
|
|
721
|
+
className: "grid min-w-0 flex-1 grid-cols-1 divide-y divide-border @xl/metric-bar:flex @xl/metric-bar:items-stretch @xl/metric-bar:divide-x @xl/metric-bar:divide-y-0",
|
|
722
|
+
children: e.map((e) => /* @__PURE__ */ x("div", {
|
|
723
|
+
className: "flex min-w-0 flex-col px-4 py-2.5 @xl/metric-bar:min-w-36 @xl/metric-bar:flex-1",
|
|
724
|
+
children: /* @__PURE__ */ x(W, {
|
|
725
|
+
data: e,
|
|
726
|
+
variant: "default",
|
|
727
|
+
size: s,
|
|
728
|
+
showSparkline: c,
|
|
729
|
+
showChange: l,
|
|
730
|
+
className: "flex-1"
|
|
731
|
+
})
|
|
732
|
+
}, e.id))
|
|
733
|
+
}), p = !!i && /* @__PURE__ */ x("div", {
|
|
734
|
+
className: "flex shrink-0 items-center border-b border-border px-3 py-2 lg:border-b-0 lg:py-0",
|
|
735
|
+
children: /* @__PURE__ */ S(n, {
|
|
736
|
+
tone: "secondary",
|
|
737
|
+
buttonStyle: "ghost",
|
|
738
|
+
className: "gap-space-sm",
|
|
739
|
+
onClick: a ? () => a(i.value) : void 0,
|
|
740
|
+
children: [/* @__PURE__ */ x(E, {
|
|
741
|
+
className: "size-icon-md",
|
|
742
|
+
"aria-hidden": "true"
|
|
743
|
+
}), /* @__PURE__ */ x(r, {
|
|
744
|
+
size: "inherit",
|
|
745
|
+
weight: "medium",
|
|
746
|
+
children: i.label
|
|
747
|
+
})]
|
|
748
|
+
})
|
|
749
|
+
});
|
|
750
|
+
return o === "gradient" ? /* @__PURE__ */ S("div", {
|
|
751
|
+
className: t("metric-bar--component @container/metric-bar", "w-full", "rounded-radius bg-gradient-to-r from-primary/8 via-info/5 to-success/8 p-px", d),
|
|
752
|
+
children: [/* @__PURE__ */ S("div", {
|
|
753
|
+
className: "flex min-w-0 flex-col overflow-hidden rounded-radius bg-card @xl/metric-bar:flex-row",
|
|
754
|
+
children: [p && /* @__PURE__ */ S(b, { children: [p, /* @__PURE__ */ x("div", {
|
|
755
|
+
className: "hidden w-px bg-border @xl/metric-bar:block",
|
|
756
|
+
"aria-hidden": "true"
|
|
757
|
+
})] }), f]
|
|
758
|
+
}), !!u && /* @__PURE__ */ x("div", {
|
|
759
|
+
className: "rounded-b-radius border-t border-border/50 bg-card px-4 py-2",
|
|
760
|
+
children: /* @__PURE__ */ x(r, {
|
|
761
|
+
size: "xs",
|
|
762
|
+
type: "discrete",
|
|
763
|
+
children: u
|
|
764
|
+
})
|
|
765
|
+
})]
|
|
766
|
+
}) : /* @__PURE__ */ S("div", {
|
|
767
|
+
className: t("metric-bar--component @container/metric-bar flex w-full flex-col overflow-hidden rounded-radius border border-border bg-card shadow-sm", d),
|
|
768
|
+
children: [/* @__PURE__ */ S("div", {
|
|
769
|
+
className: "flex min-w-0 flex-col overflow-hidden @xl/metric-bar:flex-row",
|
|
770
|
+
children: [p && /* @__PURE__ */ S(b, { children: [p, /* @__PURE__ */ x("div", {
|
|
771
|
+
className: "hidden w-px bg-border @xl/metric-bar:block",
|
|
772
|
+
"aria-hidden": "true"
|
|
773
|
+
})] }), f]
|
|
774
|
+
}), !!u && /* @__PURE__ */ x("div", {
|
|
775
|
+
className: "border-t border-border/50 px-4 py-2",
|
|
776
|
+
children: /* @__PURE__ */ x(r, {
|
|
777
|
+
size: "xs",
|
|
778
|
+
type: "discrete",
|
|
779
|
+
children: u
|
|
780
|
+
})
|
|
781
|
+
})]
|
|
782
|
+
});
|
|
783
|
+
}
|
|
784
|
+
G.displayName = "MetricBar";
|
|
785
|
+
//#endregion
|
|
786
|
+
//#region src/components/blocks/analytics/metric-grid/metric-grid.tsx
|
|
787
|
+
var K = {
|
|
788
|
+
1: "grid-cols-1",
|
|
789
|
+
2: "grid-cols-1 @md/metric-grid:grid-cols-2",
|
|
790
|
+
3: "grid-cols-1 @md/metric-grid:grid-cols-2 @3xl/metric-grid:grid-cols-3",
|
|
791
|
+
4: "grid-cols-1 @md/metric-grid:grid-cols-2 @5xl/metric-grid:grid-cols-4",
|
|
792
|
+
6: "grid-cols-1 @md/metric-grid:grid-cols-2 @3xl/metric-grid:grid-cols-3 @7xl/metric-grid:grid-cols-6"
|
|
793
|
+
};
|
|
794
|
+
function me(e) {
|
|
795
|
+
return K[e <= 1 ? 1 : e === 2 ? 2 : e === 3 ? 3 : e <= 4 || e > 6 ? 4 : 6];
|
|
796
|
+
}
|
|
797
|
+
function q({ metrics: e, variant: n = "card", size: r = "md", colorScheme: i = "default", columns: a = "auto", gap: s = "xl", showSparklines: c = !0, showChanges: l = !0, showIcons: u = !0, loading: d = !1, className: f }) {
|
|
798
|
+
let p = a === "auto" ? me(e.length) : K[a];
|
|
799
|
+
return /* @__PURE__ */ x("div", {
|
|
800
|
+
className: t("metric-grid--component @container/metric-grid", f),
|
|
801
|
+
children: /* @__PURE__ */ x(o, {
|
|
802
|
+
columns: 1,
|
|
803
|
+
gap: s,
|
|
804
|
+
className: t("metric-grid--grid", p),
|
|
805
|
+
children: e.map((e) => /* @__PURE__ */ x(W, {
|
|
806
|
+
data: e,
|
|
807
|
+
variant: n,
|
|
808
|
+
size: r,
|
|
809
|
+
colorScheme: i,
|
|
810
|
+
showSparkline: c,
|
|
811
|
+
showChange: l,
|
|
812
|
+
showIcon: u,
|
|
813
|
+
loading: d
|
|
814
|
+
}, e.id))
|
|
815
|
+
})
|
|
816
|
+
});
|
|
817
|
+
}
|
|
818
|
+
q.displayName = "MetricGrid";
|
|
819
|
+
//#endregion
|
|
820
|
+
//#region src/components/blocks/analytics/metric-comparison/metric-comparison.tsx
|
|
821
|
+
var J = {
|
|
822
|
+
title: "Comparison",
|
|
823
|
+
currentLabel: "This period",
|
|
824
|
+
previousLabel: "Previous period",
|
|
825
|
+
suffix: "vs previous"
|
|
826
|
+
};
|
|
827
|
+
function Y(e) {
|
|
828
|
+
if (e == null) return null;
|
|
829
|
+
if (typeof e == "number") return e;
|
|
830
|
+
let t = Number(e);
|
|
831
|
+
return Number.isFinite(t) ? t : null;
|
|
832
|
+
}
|
|
833
|
+
function X({ current: n, previous: o, title: c, currentPeriod: l, previousPeriod: u, className: d, strings: f }) {
|
|
834
|
+
let m = e(J, f), g = Y(n.value), _ = Y(o.value), v = g !== null && _ !== null, y = v ? g - _ : 0, b = v && _ !== 0 ? Math.round(y / _ * 100) : 0, T = y > 0, E = y === 0, D = E ? te : T ? w : C, O = E ? {
|
|
835
|
+
box: "bg-muted/40",
|
|
836
|
+
chip: "bg-card text-muted-foreground border border-border/60"
|
|
837
|
+
} : T ? {
|
|
838
|
+
box: "bg-success/10",
|
|
839
|
+
chip: "bg-success/15 text-success"
|
|
840
|
+
} : {
|
|
841
|
+
box: "bg-destructive/10",
|
|
842
|
+
chip: "bg-destructive/15 text-destructive"
|
|
843
|
+
};
|
|
844
|
+
return /* @__PURE__ */ S(s, {
|
|
845
|
+
"data-component": "metric-comparison",
|
|
846
|
+
"data-slot": "metric-comparison",
|
|
847
|
+
gap: "md",
|
|
848
|
+
className: t("metric-comparison--component @container/metric-comparison", d),
|
|
849
|
+
"aria-label": c ?? m.title,
|
|
850
|
+
children: [
|
|
851
|
+
!!(l || u) && /* @__PURE__ */ S(s, {
|
|
852
|
+
direction: "horizontal",
|
|
853
|
+
wrap: !0,
|
|
854
|
+
align: "center",
|
|
855
|
+
gap: "sm",
|
|
856
|
+
children: [!!l && /* @__PURE__ */ x(h, {
|
|
857
|
+
tone: "secondary",
|
|
858
|
+
inline: !0,
|
|
859
|
+
children: l
|
|
860
|
+
}), !!u && /* @__PURE__ */ x(h, {
|
|
861
|
+
tone: "secondary",
|
|
862
|
+
inline: !0,
|
|
863
|
+
children: u
|
|
864
|
+
})]
|
|
865
|
+
}),
|
|
866
|
+
/* @__PURE__ */ S("div", {
|
|
867
|
+
className: "grid items-stretch gap-space-md grid-cols-1 @md/metric-comparison:grid-cols-[1fr_auto_1fr]",
|
|
868
|
+
children: [
|
|
869
|
+
/* @__PURE__ */ S("div", {
|
|
870
|
+
className: "rounded-radius border border-border/60 bg-card p-surface",
|
|
871
|
+
children: [/* @__PURE__ */ x(a, { children: m.currentLabel }), /* @__PURE__ */ x(i, {
|
|
872
|
+
tag: "h5",
|
|
873
|
+
className: "text-base tabular-nums tracking-tight border-none pb-0",
|
|
874
|
+
children: M(n)
|
|
875
|
+
})]
|
|
876
|
+
}),
|
|
877
|
+
/* @__PURE__ */ S("div", {
|
|
878
|
+
className: "flex items-center justify-center text-muted-foreground/60",
|
|
879
|
+
children: [/* @__PURE__ */ x(ee, {
|
|
880
|
+
className: "hidden size-icon @md/metric-comparison:block",
|
|
881
|
+
"aria-hidden": "true"
|
|
882
|
+
}), /* @__PURE__ */ x(C, {
|
|
883
|
+
className: "size-icon @md/metric-comparison:hidden",
|
|
884
|
+
"aria-hidden": "true"
|
|
885
|
+
})]
|
|
886
|
+
}),
|
|
887
|
+
/* @__PURE__ */ S("div", {
|
|
888
|
+
className: "rounded-radius border border-border/60 bg-muted/30 p-surface",
|
|
889
|
+
children: [/* @__PURE__ */ x(a, { children: m.previousLabel }), /* @__PURE__ */ x(i, {
|
|
890
|
+
tag: "h5",
|
|
891
|
+
className: "text-base tabular-nums tracking-tight border-none pb-0 text-muted-foreground",
|
|
892
|
+
children: M(o)
|
|
893
|
+
})]
|
|
894
|
+
})
|
|
895
|
+
]
|
|
896
|
+
}),
|
|
897
|
+
!!v && /* @__PURE__ */ x("div", {
|
|
898
|
+
className: t("rounded-radius p-surface", O.box),
|
|
899
|
+
children: /* @__PURE__ */ S(s, {
|
|
900
|
+
direction: "horizontal",
|
|
901
|
+
wrap: !0,
|
|
902
|
+
align: "center",
|
|
903
|
+
gap: "md",
|
|
904
|
+
children: [/* @__PURE__ */ S("div", {
|
|
905
|
+
className: t("inline-flex items-center gap-space-xs rounded-full px-2 py-0.5", O.chip),
|
|
906
|
+
children: [/* @__PURE__ */ x(D, {
|
|
907
|
+
className: "size-icon-sm",
|
|
908
|
+
strokeWidth: 2.5,
|
|
909
|
+
"aria-hidden": "true"
|
|
910
|
+
}), /* @__PURE__ */ S(p, {
|
|
911
|
+
size: "xs",
|
|
912
|
+
weight: "semibold",
|
|
913
|
+
className: "tabular-nums",
|
|
914
|
+
children: [T ? "+" : E ? "" : "−", ((e) => {
|
|
915
|
+
let t = Math.abs(e);
|
|
916
|
+
return M({
|
|
917
|
+
...n,
|
|
918
|
+
value: t
|
|
919
|
+
});
|
|
920
|
+
})(y)]
|
|
921
|
+
})]
|
|
922
|
+
}), /* @__PURE__ */ S(r, {
|
|
923
|
+
size: "xs",
|
|
924
|
+
type: "secondary",
|
|
925
|
+
className: t("tabular-nums", T && "text-success", !T && !E && "text-destructive"),
|
|
926
|
+
children: [
|
|
927
|
+
T ? "+" : E ? "" : "−",
|
|
928
|
+
Math.abs(b),
|
|
929
|
+
"% ",
|
|
930
|
+
m.suffix
|
|
931
|
+
]
|
|
932
|
+
})]
|
|
933
|
+
})
|
|
934
|
+
})
|
|
935
|
+
]
|
|
936
|
+
});
|
|
937
|
+
}
|
|
938
|
+
X.displayName = "MetricComparison";
|
|
939
|
+
//#endregion
|
|
940
|
+
//#region src/components/blocks/analytics/metric-micro-grid/metric-micro-grid.tsx
|
|
941
|
+
var he = [
|
|
942
|
+
"bars",
|
|
943
|
+
"line",
|
|
944
|
+
"dots",
|
|
945
|
+
"progress",
|
|
946
|
+
"area",
|
|
947
|
+
"pie"
|
|
948
|
+
], ge = {
|
|
949
|
+
bars: "var(--primary)",
|
|
950
|
+
line: "var(--info)",
|
|
951
|
+
dots: "var(--warning)",
|
|
952
|
+
progress: "var(--success)",
|
|
953
|
+
area: "var(--primary)",
|
|
954
|
+
pie: "var(--success)"
|
|
955
|
+
}, Z = [
|
|
956
|
+
"var(--success)",
|
|
957
|
+
"var(--info)",
|
|
958
|
+
"var(--warning)"
|
|
959
|
+
];
|
|
960
|
+
function _e({ data: e, color: n }) {
|
|
961
|
+
let r = Math.max(...e, 1);
|
|
962
|
+
return /* @__PURE__ */ x("div", {
|
|
963
|
+
className: t("metric-micro-grid--component", "flex h-5 items-end gap-space-2xs"),
|
|
964
|
+
children: e.slice(0, 6).map((e, t) => /* @__PURE__ */ x("div", {
|
|
965
|
+
className: "flex-1 rounded-t-radius-sm",
|
|
966
|
+
style: {
|
|
967
|
+
height: `${e / r * 100}%`,
|
|
968
|
+
backgroundColor: n,
|
|
969
|
+
opacity: .8
|
|
970
|
+
}
|
|
971
|
+
}, `bar-${t}`))
|
|
972
|
+
});
|
|
973
|
+
}
|
|
974
|
+
function ve({ data: e, color: t }) {
|
|
975
|
+
let n = Math.max(...e, 1), r = Math.min(...e), i = n - r || 1, a = e.slice(0, 6);
|
|
976
|
+
return /* @__PURE__ */ x("svg", {
|
|
977
|
+
viewBox: "0 0 60 16",
|
|
978
|
+
className: "h-5 w-full",
|
|
979
|
+
preserveAspectRatio: "none",
|
|
980
|
+
children: /* @__PURE__ */ x("polyline", {
|
|
981
|
+
fill: "none",
|
|
982
|
+
stroke: t,
|
|
983
|
+
strokeWidth: "1.5",
|
|
984
|
+
strokeLinecap: "round",
|
|
985
|
+
strokeLinejoin: "round",
|
|
986
|
+
points: a.map((e, t) => `${t / Math.max(a.length - 1, 1) * 60},${16 - (e - r) / i * 14}`).join(" ")
|
|
987
|
+
})
|
|
988
|
+
});
|
|
989
|
+
}
|
|
990
|
+
function ye({ data: e, color: t }) {
|
|
991
|
+
let n = Math.max(...e, 1);
|
|
992
|
+
return /* @__PURE__ */ x("div", {
|
|
993
|
+
className: "flex h-5 items-end justify-around",
|
|
994
|
+
"data-intrinsic-geometry": !0,
|
|
995
|
+
children: e.slice(0, 5).map((e, r) => /* @__PURE__ */ x("div", {
|
|
996
|
+
className: "h-1.5 w-1.5 rounded-full",
|
|
997
|
+
style: {
|
|
998
|
+
marginBottom: `${e / n * 12}px`,
|
|
999
|
+
backgroundColor: t
|
|
1000
|
+
}
|
|
1001
|
+
}, `dot-${r}`))
|
|
1002
|
+
});
|
|
1003
|
+
}
|
|
1004
|
+
function be({ data: e, color: t }) {
|
|
1005
|
+
let n = e[0] ?? 0, r = e[1] ?? 100, i = Math.min(n / r * 100, 100);
|
|
1006
|
+
return /* @__PURE__ */ x("div", {
|
|
1007
|
+
className: "h-1.5 w-full overflow-hidden rounded-full bg-muted",
|
|
1008
|
+
children: /* @__PURE__ */ x("div", {
|
|
1009
|
+
className: "h-full rounded-full transition-all",
|
|
1010
|
+
style: {
|
|
1011
|
+
width: `${i}%`,
|
|
1012
|
+
backgroundColor: t
|
|
1013
|
+
}
|
|
1014
|
+
})
|
|
1015
|
+
});
|
|
1016
|
+
}
|
|
1017
|
+
function xe({ data: e, color: t }) {
|
|
1018
|
+
let n = `micro-area-${v().replaceAll(":", "")}`, r = e.map((e, t) => ({
|
|
1019
|
+
i: t,
|
|
1020
|
+
v: e
|
|
1021
|
+
}));
|
|
1022
|
+
return /* @__PURE__ */ x("div", {
|
|
1023
|
+
className: "h-5 w-full",
|
|
1024
|
+
children: /* @__PURE__ */ x(A, {
|
|
1025
|
+
width: "100%",
|
|
1026
|
+
height: "100%",
|
|
1027
|
+
initialDimension: {
|
|
1028
|
+
width: 1,
|
|
1029
|
+
height: 1
|
|
1030
|
+
},
|
|
1031
|
+
children: /* @__PURE__ */ S(k, {
|
|
1032
|
+
data: r,
|
|
1033
|
+
margin: {
|
|
1034
|
+
top: 0,
|
|
1035
|
+
right: 0,
|
|
1036
|
+
bottom: 0,
|
|
1037
|
+
left: 0
|
|
1038
|
+
},
|
|
1039
|
+
children: [/* @__PURE__ */ x("defs", { children: /* @__PURE__ */ S("linearGradient", {
|
|
1040
|
+
id: n,
|
|
1041
|
+
x1: "0",
|
|
1042
|
+
y1: "0",
|
|
1043
|
+
x2: "0",
|
|
1044
|
+
y2: "1",
|
|
1045
|
+
children: [/* @__PURE__ */ x("stop", {
|
|
1046
|
+
offset: "0%",
|
|
1047
|
+
stopColor: t,
|
|
1048
|
+
stopOpacity: .3
|
|
1049
|
+
}), /* @__PURE__ */ x("stop", {
|
|
1050
|
+
offset: "100%",
|
|
1051
|
+
stopColor: t,
|
|
1052
|
+
stopOpacity: 0
|
|
1053
|
+
})]
|
|
1054
|
+
}) }), /* @__PURE__ */ x(O, {
|
|
1055
|
+
type: "monotone",
|
|
1056
|
+
dataKey: "v",
|
|
1057
|
+
stroke: t,
|
|
1058
|
+
strokeWidth: 1.25,
|
|
1059
|
+
fill: `url(#${n})`
|
|
1060
|
+
})]
|
|
1061
|
+
})
|
|
1062
|
+
})
|
|
1063
|
+
});
|
|
1064
|
+
}
|
|
1065
|
+
function Se({ data: e }) {
|
|
1066
|
+
let t = e.reduce((e, t) => e + t, 0) || 1, n = 0;
|
|
1067
|
+
return /* @__PURE__ */ x("svg", {
|
|
1068
|
+
viewBox: "0 0 24 24",
|
|
1069
|
+
className: "h-6 w-6",
|
|
1070
|
+
children: e.slice(0, 3).map((e, r) => {
|
|
1071
|
+
let i = e / t * 360, a = n;
|
|
1072
|
+
n += i;
|
|
1073
|
+
let o = (a - 90) * Math.PI / 180, s = (a + i - 90) * Math.PI / 180, c = +(i > 180), l = 12 + 10 * Math.cos(o), u = 12 + 10 * Math.sin(o), d = 12 + 10 * Math.cos(s), f = 12 + 10 * Math.sin(s);
|
|
1074
|
+
return /* @__PURE__ */ x("path", {
|
|
1075
|
+
d: `M12,12 L${l},${u} A10,10 0 ${c},1 ${d},${f} Z`,
|
|
1076
|
+
fill: Z[r % Z.length]
|
|
1077
|
+
}, `slice-${r}`);
|
|
1078
|
+
})
|
|
1079
|
+
});
|
|
1080
|
+
}
|
|
1081
|
+
function Ce({ kind: e, data: t }) {
|
|
1082
|
+
let n = ge[e];
|
|
1083
|
+
return e === "bars" ? /* @__PURE__ */ x(_e, {
|
|
1084
|
+
data: t,
|
|
1085
|
+
color: n
|
|
1086
|
+
}) : e === "line" ? /* @__PURE__ */ x(ve, {
|
|
1087
|
+
data: t,
|
|
1088
|
+
color: n
|
|
1089
|
+
}) : e === "dots" ? /* @__PURE__ */ x(ye, {
|
|
1090
|
+
data: t,
|
|
1091
|
+
color: n
|
|
1092
|
+
}) : e === "progress" ? /* @__PURE__ */ x(be, {
|
|
1093
|
+
data: t,
|
|
1094
|
+
color: n
|
|
1095
|
+
}) : e === "area" ? /* @__PURE__ */ x(xe, {
|
|
1096
|
+
data: t,
|
|
1097
|
+
color: n
|
|
1098
|
+
}) : /* @__PURE__ */ x(Se, { data: t });
|
|
1099
|
+
}
|
|
1100
|
+
function Q({ title: e = "Overview", cells: n, className: r }) {
|
|
1101
|
+
return /* @__PURE__ */ x("div", {
|
|
1102
|
+
"data-component": "metric-micro-grid",
|
|
1103
|
+
"data-slot": "metric-micro-grid",
|
|
1104
|
+
className: t("metric-micro-grid--component min-w-0", r),
|
|
1105
|
+
"aria-label": e,
|
|
1106
|
+
children: /* @__PURE__ */ x("div", {
|
|
1107
|
+
className: "grid grid-cols-3 grid-rows-2",
|
|
1108
|
+
children: n.slice(0, 6).map((e, n) => /* @__PURE__ */ x("div", {
|
|
1109
|
+
className: t("p-surface-xs", n % 3 != 2 && "border-r border-border/50", n < 3 && "border-b border-border/50"),
|
|
1110
|
+
children: /* @__PURE__ */ S(s, {
|
|
1111
|
+
gap: "sm",
|
|
1112
|
+
children: [
|
|
1113
|
+
/* @__PURE__ */ x(a, {
|
|
1114
|
+
className: "truncate",
|
|
1115
|
+
children: e.label
|
|
1116
|
+
}),
|
|
1117
|
+
/* @__PURE__ */ x(p, {
|
|
1118
|
+
weight: "bold",
|
|
1119
|
+
className: "truncate tabular-nums",
|
|
1120
|
+
children: e.value
|
|
1121
|
+
}),
|
|
1122
|
+
/* @__PURE__ */ x("div", {
|
|
1123
|
+
className: "mt-auto",
|
|
1124
|
+
children: /* @__PURE__ */ x(Ce, {
|
|
1125
|
+
kind: e.chart ?? he[n],
|
|
1126
|
+
data: e.data
|
|
1127
|
+
})
|
|
1128
|
+
})
|
|
1129
|
+
]
|
|
1130
|
+
})
|
|
1131
|
+
}, e.id ?? e.label))
|
|
1132
|
+
})
|
|
1133
|
+
});
|
|
1134
|
+
}
|
|
1135
|
+
Q.displayName = "MetricMicroGrid";
|
|
1136
|
+
//#endregion
|
|
1137
|
+
//#region src/components/blocks/analytics/metric-gradient/metric-gradient.tsx
|
|
1138
|
+
var we = {
|
|
1139
|
+
green: "bg-gradient-to-br from-success via-primary to-success",
|
|
1140
|
+
purple: "bg-gradient-to-br from-primary via-info to-primary",
|
|
1141
|
+
warm: "bg-gradient-to-br from-warning via-destructive to-warning",
|
|
1142
|
+
ocean: "bg-gradient-to-br from-info via-success to-info"
|
|
1143
|
+
}, $ = "var(--inverse-foreground)", Te = "var(--inverse-muted)";
|
|
1144
|
+
function Ee({ title: e, value: n, change: o, data: c, theme: l = "green", subtitle: u, className: d }) {
|
|
1145
|
+
let f = `metric-grad-${v().replaceAll(":", "")}`;
|
|
1146
|
+
return /* @__PURE__ */ x("div", {
|
|
1147
|
+
className: t("metric-gradient--component", "relative overflow-hidden rounded-radius p-surface text-inverse-foreground shadow-sm ring-1 ring-inverse-border", we[l], d),
|
|
1148
|
+
children: /* @__PURE__ */ S(s, {
|
|
1149
|
+
gap: "md",
|
|
1150
|
+
children: [/* @__PURE__ */ S(s, {
|
|
1151
|
+
direction: "horizontal",
|
|
1152
|
+
align: "start",
|
|
1153
|
+
justify: "between",
|
|
1154
|
+
wrap: !0,
|
|
1155
|
+
className: "relative rounded-radius bg-inverse-background p-surface",
|
|
1156
|
+
children: [/* @__PURE__ */ S(s, {
|
|
1157
|
+
gap: "xs",
|
|
1158
|
+
className: "min-w-0",
|
|
1159
|
+
children: [
|
|
1160
|
+
/* @__PURE__ */ x(a, {
|
|
1161
|
+
tone: "inverse",
|
|
1162
|
+
children: e
|
|
1163
|
+
}),
|
|
1164
|
+
!!n && /* @__PURE__ */ x(i, {
|
|
1165
|
+
tag: "h3",
|
|
1166
|
+
className: "text-base font-bold tabular-nums tracking-tight border-none pb-0 leading-none text-inverse-foreground",
|
|
1167
|
+
children: n
|
|
1168
|
+
}),
|
|
1169
|
+
!!u && /* @__PURE__ */ x(r, {
|
|
1170
|
+
size: "xs",
|
|
1171
|
+
className: "text-inverse-muted",
|
|
1172
|
+
children: u
|
|
1173
|
+
})
|
|
1174
|
+
]
|
|
1175
|
+
}), !!o && /* @__PURE__ */ x(I, {
|
|
1176
|
+
change: o,
|
|
1177
|
+
trend: o.direction === "up" ? "positive" : o.direction === "down" ? "negative" : "neutral",
|
|
1178
|
+
size: "sm",
|
|
1179
|
+
variant: "badge",
|
|
1180
|
+
className: "shrink-0 !bg-inverse-surface-strong !text-inverse-foreground"
|
|
1181
|
+
})]
|
|
1182
|
+
}), /* @__PURE__ */ x("div", {
|
|
1183
|
+
className: "relative -mx-1 h-24",
|
|
1184
|
+
children: /* @__PURE__ */ x(A, {
|
|
1185
|
+
width: "100%",
|
|
1186
|
+
height: "100%",
|
|
1187
|
+
initialDimension: {
|
|
1188
|
+
width: 1,
|
|
1189
|
+
height: 1
|
|
1190
|
+
},
|
|
1191
|
+
children: /* @__PURE__ */ S(k, {
|
|
1192
|
+
data: c,
|
|
1193
|
+
margin: {
|
|
1194
|
+
top: 4,
|
|
1195
|
+
right: 0,
|
|
1196
|
+
bottom: 0,
|
|
1197
|
+
left: 0
|
|
1198
|
+
},
|
|
1199
|
+
children: [/* @__PURE__ */ x("defs", { children: /* @__PURE__ */ S("linearGradient", {
|
|
1200
|
+
id: f,
|
|
1201
|
+
x1: "0",
|
|
1202
|
+
y1: "0",
|
|
1203
|
+
x2: "0",
|
|
1204
|
+
y2: "1",
|
|
1205
|
+
children: [/* @__PURE__ */ x("stop", {
|
|
1206
|
+
offset: "0%",
|
|
1207
|
+
stopColor: $,
|
|
1208
|
+
stopOpacity: .3
|
|
1209
|
+
}), /* @__PURE__ */ x("stop", {
|
|
1210
|
+
offset: "100%",
|
|
1211
|
+
stopColor: $,
|
|
1212
|
+
stopOpacity: 0
|
|
1213
|
+
})]
|
|
1214
|
+
}) }), /* @__PURE__ */ x(O, {
|
|
1215
|
+
type: "monotone",
|
|
1216
|
+
dataKey: "value",
|
|
1217
|
+
stroke: Te,
|
|
1218
|
+
strokeWidth: 2,
|
|
1219
|
+
fill: `url(#${f})`,
|
|
1220
|
+
dot: !1,
|
|
1221
|
+
activeDot: {
|
|
1222
|
+
r: 4,
|
|
1223
|
+
strokeWidth: 2,
|
|
1224
|
+
fill: $,
|
|
1225
|
+
stroke: Te
|
|
1226
|
+
},
|
|
1227
|
+
isAnimationActive: !0,
|
|
1228
|
+
animationDuration: 800
|
|
1229
|
+
})]
|
|
1230
|
+
})
|
|
1231
|
+
})
|
|
1232
|
+
})]
|
|
1233
|
+
})
|
|
1234
|
+
});
|
|
1235
|
+
}
|
|
1236
|
+
Ee.displayName = "MetricGradient";
|
|
1237
|
+
//#endregion
|
|
1238
|
+
//#region src/components/blocks/analytics/activity-heatmap/activity-heatmap.tsx
|
|
1239
|
+
var De = {
|
|
1240
|
+
0: "bg-muted",
|
|
1241
|
+
1: "bg-success/20",
|
|
1242
|
+
2: "bg-success/40",
|
|
1243
|
+
3: "bg-success/65",
|
|
1244
|
+
4: "bg-success"
|
|
1245
|
+
};
|
|
1246
|
+
function Oe(e, t) {
|
|
1247
|
+
if (e.length === 0) return {
|
|
1248
|
+
weeks: [],
|
|
1249
|
+
monthLabels: []
|
|
1250
|
+
};
|
|
1251
|
+
let n = [...e].sort((e, t) => e.date.localeCompare(t.date)), r = /* @__PURE__ */ new Date(n[0].date + "T00:00:00"), i = /* @__PURE__ */ new Date(n[n.length - 1].date + "T00:00:00"), a = r.getDay(), o = a === 0 ? -6 : 1 - a, s = new Date(r);
|
|
1252
|
+
s.setDate(s.getDate() + o);
|
|
1253
|
+
let c = /* @__PURE__ */ new Map();
|
|
1254
|
+
for (let e of n) c.set(e.date, e.level);
|
|
1255
|
+
let l = [], u = [], d = -1, f = [], p = new Date(s);
|
|
1256
|
+
for (; p <= i;) {
|
|
1257
|
+
let e = p.toISOString().slice(0, 10), n = (p.getDay() + 6) % 7;
|
|
1258
|
+
n === 0 && f.length > 0 && (l.push(f), f = []);
|
|
1259
|
+
let r = p.getMonth();
|
|
1260
|
+
if (r !== d) {
|
|
1261
|
+
let e = n === 0 ? l.length : l.length + 1;
|
|
1262
|
+
u.find((t) => t.weekIndex === e) || u.push({
|
|
1263
|
+
label: t[r],
|
|
1264
|
+
weekIndex: e
|
|
1265
|
+
}), d = r;
|
|
1266
|
+
}
|
|
1267
|
+
let i = c.get(e) ?? 0;
|
|
1268
|
+
f.push({
|
|
1269
|
+
date: e,
|
|
1270
|
+
level: i
|
|
1271
|
+
}), p.setDate(p.getDate() + 1);
|
|
1272
|
+
}
|
|
1273
|
+
if (f.length > 0) {
|
|
1274
|
+
for (; f.length < 7;) f.push(null);
|
|
1275
|
+
l.push(f);
|
|
1276
|
+
}
|
|
1277
|
+
return {
|
|
1278
|
+
weeks: l,
|
|
1279
|
+
monthLabels: u
|
|
1280
|
+
};
|
|
1281
|
+
}
|
|
1282
|
+
function ke({ title: n, description: i, data: a, className: o, strings: c }) {
|
|
1283
|
+
let l = e(j, c), { weeks: u, monthLabels: d } = Oe(a, l.heatmapMonthNames);
|
|
1284
|
+
return /* @__PURE__ */ S(s, {
|
|
1285
|
+
gap: "md",
|
|
1286
|
+
"data-component": "activity-heatmap",
|
|
1287
|
+
"data-slot": "activity-heatmap",
|
|
1288
|
+
className: t("activity-heatmap--component", o),
|
|
1289
|
+
"aria-label": n,
|
|
1290
|
+
children: [
|
|
1291
|
+
!!i && /* @__PURE__ */ x(r, {
|
|
1292
|
+
type: "secondary",
|
|
1293
|
+
children: i
|
|
1294
|
+
}),
|
|
1295
|
+
/* @__PURE__ */ S("div", {
|
|
1296
|
+
className: "overflow-x-auto",
|
|
1297
|
+
"data-intrinsic-geometry": !0,
|
|
1298
|
+
children: [/* @__PURE__ */ x("div", {
|
|
1299
|
+
className: "relative mb-1",
|
|
1300
|
+
style: {
|
|
1301
|
+
paddingLeft: "28px",
|
|
1302
|
+
height: "12px"
|
|
1303
|
+
},
|
|
1304
|
+
children: /* @__PURE__ */ x("div", {
|
|
1305
|
+
className: "relative flex",
|
|
1306
|
+
style: { width: `${u.length * 15}px` },
|
|
1307
|
+
children: d.filter((e, t, n) => t === 0 || e.weekIndex - n[t - 1].weekIndex >= 3).map((e) => /* @__PURE__ */ x(r, {
|
|
1308
|
+
size: "xs",
|
|
1309
|
+
type: "secondary",
|
|
1310
|
+
className: "absolute leading-none whitespace-nowrap",
|
|
1311
|
+
style: {
|
|
1312
|
+
left: `${e.weekIndex * 15}px`,
|
|
1313
|
+
top: 0
|
|
1314
|
+
},
|
|
1315
|
+
children: e.label
|
|
1316
|
+
}, `${e.label}-${e.weekIndex}`))
|
|
1317
|
+
})
|
|
1318
|
+
}), /* @__PURE__ */ S("div", {
|
|
1319
|
+
className: "flex gap-0",
|
|
1320
|
+
children: [/* @__PURE__ */ x("div", {
|
|
1321
|
+
className: "mr-1 flex flex-col gap-0.75",
|
|
1322
|
+
children: l.heatmapDayLabels.map((e, t) => /* @__PURE__ */ x("div", {
|
|
1323
|
+
className: "flex h-3 w-6 items-center justify-end",
|
|
1324
|
+
children: !!e && /* @__PURE__ */ x(r, {
|
|
1325
|
+
size: "xs",
|
|
1326
|
+
type: "secondary",
|
|
1327
|
+
className: "leading-none",
|
|
1328
|
+
children: e
|
|
1329
|
+
})
|
|
1330
|
+
}, `day-${t}`))
|
|
1331
|
+
}), /* @__PURE__ */ x("div", {
|
|
1332
|
+
className: "flex gap-0.75",
|
|
1333
|
+
children: u.map((e, n) => /* @__PURE__ */ x("div", {
|
|
1334
|
+
className: "flex flex-col gap-0.75",
|
|
1335
|
+
children: e.map((e, r) => {
|
|
1336
|
+
let i = e ? `${e.date}: Level ${e.level}` : void 0;
|
|
1337
|
+
return /* @__PURE__ */ x("div", {
|
|
1338
|
+
className: t("size-3 rounded-radius-sm", e ? De[e.level] : "bg-transparent"),
|
|
1339
|
+
title: i
|
|
1340
|
+
}, `d-${n}-${r}`);
|
|
1341
|
+
})
|
|
1342
|
+
}, `w-${n}`))
|
|
1343
|
+
})]
|
|
1344
|
+
})]
|
|
1345
|
+
}),
|
|
1346
|
+
/* @__PURE__ */ S("div", {
|
|
1347
|
+
className: "mt-space-xl flex items-center justify-end gap-space-sm",
|
|
1348
|
+
children: [
|
|
1349
|
+
/* @__PURE__ */ x(r, {
|
|
1350
|
+
size: "xs",
|
|
1351
|
+
type: "secondary",
|
|
1352
|
+
children: l.heatmapLegendLess
|
|
1353
|
+
}),
|
|
1354
|
+
[
|
|
1355
|
+
0,
|
|
1356
|
+
1,
|
|
1357
|
+
2,
|
|
1358
|
+
3,
|
|
1359
|
+
4
|
|
1360
|
+
].map((e) => /* @__PURE__ */ x("div", { className: t("size-3 rounded-radius-sm", De[e]) }, `legend-${e}`)),
|
|
1361
|
+
/* @__PURE__ */ x(r, {
|
|
1362
|
+
size: "xs",
|
|
1363
|
+
type: "secondary",
|
|
1364
|
+
children: l.heatmapLegendMore
|
|
1365
|
+
})
|
|
1366
|
+
]
|
|
1367
|
+
})
|
|
1368
|
+
]
|
|
1369
|
+
});
|
|
1370
|
+
}
|
|
1371
|
+
ke.displayName = "ActivityHeatmap";
|
|
1372
|
+
//#endregion
|
|
1373
|
+
//#region src/components/blocks/analytics/chart-card/chart-card.tsx
|
|
1374
|
+
function Ae({ title: e, description: n, headerEnd: r, titleSuffix: i, footer: a, config: o, children: s, initialDimension: c, surface: l, padding: u, className: d, contentClassName: f, chartClassName: p }) {
|
|
1375
|
+
return /* @__PURE__ */ x(_, {
|
|
1376
|
+
title: e,
|
|
1377
|
+
description: n,
|
|
1378
|
+
headerEnd: r,
|
|
1379
|
+
titleSuffix: i,
|
|
1380
|
+
footerSlot: a,
|
|
1381
|
+
surface: l,
|
|
1382
|
+
padding: u,
|
|
1383
|
+
className: t("chart-card--component", d),
|
|
1384
|
+
contentClassName: t("chart-card--content", f),
|
|
1385
|
+
children: /* @__PURE__ */ x(g, {
|
|
1386
|
+
config: o,
|
|
1387
|
+
initialDimension: c,
|
|
1388
|
+
className: t("chart-card--chart min-h-[var(--chart-min-height)]", p),
|
|
1389
|
+
children: s
|
|
1390
|
+
})
|
|
1391
|
+
});
|
|
1392
|
+
}
|
|
1393
|
+
Ae.displayName = "ChartCard";
|
|
1394
|
+
//#endregion
|
|
1395
|
+
//#region src/components/blocks/analytics/time-ruler/types.ts
|
|
1396
|
+
var je = {
|
|
1397
|
+
legendNone: "None",
|
|
1398
|
+
legendLow: "Low",
|
|
1399
|
+
legendMedium: "Medium",
|
|
1400
|
+
legendHigh: "High",
|
|
1401
|
+
legendNow: "Now",
|
|
1402
|
+
formatHourLabel: (e) => String(e).padStart(2, "0"),
|
|
1403
|
+
formatHourTitle: (e, t) => `${e}:00 - ${t}`
|
|
1404
|
+
};
|
|
1405
|
+
//#endregion
|
|
1406
|
+
//#region src/components/blocks/analytics/time-ruler/time-ruler.tsx
|
|
1407
|
+
function Me({ hours: n, currentHour: i, className: a, strings: o }) {
|
|
1408
|
+
let c = e(je, o), l = Math.max(...n, 1), u = n.indexOf(Math.max(...n));
|
|
1409
|
+
function d(e) {
|
|
1410
|
+
if (e === 0) return "bg-muted";
|
|
1411
|
+
let t = e / l;
|
|
1412
|
+
return t < .33 ? "bg-primary/25" : t < .66 ? "bg-primary/55" : "bg-primary";
|
|
1413
|
+
}
|
|
1414
|
+
return /* @__PURE__ */ S(s, {
|
|
1415
|
+
gap: "sm",
|
|
1416
|
+
className: t("time-ruler--component", a),
|
|
1417
|
+
children: [
|
|
1418
|
+
/* @__PURE__ */ x("div", {
|
|
1419
|
+
className: "relative flex h-8 gap-px overflow-hidden rounded-radius-md",
|
|
1420
|
+
children: n.map((e, n) => /* @__PURE__ */ x("div", {
|
|
1421
|
+
className: t("relative flex-1 transition-colors duration-200", d(e), n === u && "ring-1 ring-primary ring-inset"),
|
|
1422
|
+
title: c.formatHourTitle(c.formatHourLabel(n), e)
|
|
1423
|
+
}, n))
|
|
1424
|
+
}),
|
|
1425
|
+
/* @__PURE__ */ x("div", {
|
|
1426
|
+
className: "relative flex",
|
|
1427
|
+
children: n.map((e, t) => /* @__PURE__ */ x("div", {
|
|
1428
|
+
className: "flex-1 text-center",
|
|
1429
|
+
children: t % 4 == 0 && /* @__PURE__ */ x(m, {
|
|
1430
|
+
size: "xs",
|
|
1431
|
+
className: "tabular-nums",
|
|
1432
|
+
children: c.formatHourLabel(t)
|
|
1433
|
+
})
|
|
1434
|
+
}, t))
|
|
1435
|
+
}),
|
|
1436
|
+
i !== void 0 && i >= 0 && i < 24 && /* @__PURE__ */ x("div", {
|
|
1437
|
+
className: "relative h-0",
|
|
1438
|
+
children: /* @__PURE__ */ x("div", {
|
|
1439
|
+
className: "absolute -top-[42px] flex flex-col items-center",
|
|
1440
|
+
style: {
|
|
1441
|
+
left: `${i / 24 * 100}%`,
|
|
1442
|
+
transform: "translateX(-50%)"
|
|
1443
|
+
},
|
|
1444
|
+
children: /* @__PURE__ */ x("div", { className: "h-0 w-0 border-x-[4px] border-b-[5px] border-x-transparent border-b-destructive" })
|
|
1445
|
+
})
|
|
1446
|
+
}),
|
|
1447
|
+
/* @__PURE__ */ S("div", {
|
|
1448
|
+
className: "flex items-center gap-space-lg",
|
|
1449
|
+
children: [
|
|
1450
|
+
/* @__PURE__ */ S("div", {
|
|
1451
|
+
className: "flex items-center gap-space-xs",
|
|
1452
|
+
children: [/* @__PURE__ */ x("div", { className: "h-2 w-3 rounded-radius-sm bg-muted" }), /* @__PURE__ */ x(r, {
|
|
1453
|
+
size: "xs",
|
|
1454
|
+
type: "secondary",
|
|
1455
|
+
children: c.legendNone
|
|
1456
|
+
})]
|
|
1457
|
+
}),
|
|
1458
|
+
/* @__PURE__ */ S("div", {
|
|
1459
|
+
className: "flex items-center gap-space-xs",
|
|
1460
|
+
children: [/* @__PURE__ */ x("div", { className: "h-2 w-3 rounded-radius-sm bg-primary/25" }), /* @__PURE__ */ x(r, {
|
|
1461
|
+
size: "xs",
|
|
1462
|
+
type: "secondary",
|
|
1463
|
+
children: c.legendLow
|
|
1464
|
+
})]
|
|
1465
|
+
}),
|
|
1466
|
+
/* @__PURE__ */ S("div", {
|
|
1467
|
+
className: "flex items-center gap-space-xs",
|
|
1468
|
+
children: [/* @__PURE__ */ x("div", { className: "h-2 w-3 rounded-radius-sm bg-primary/55" }), /* @__PURE__ */ x(r, {
|
|
1469
|
+
size: "xs",
|
|
1470
|
+
type: "secondary",
|
|
1471
|
+
children: c.legendMedium
|
|
1472
|
+
})]
|
|
1473
|
+
}),
|
|
1474
|
+
/* @__PURE__ */ S("div", {
|
|
1475
|
+
className: "flex items-center gap-space-xs",
|
|
1476
|
+
children: [/* @__PURE__ */ x("div", { className: "h-2 w-3 rounded-radius-sm bg-primary" }), /* @__PURE__ */ x(r, {
|
|
1477
|
+
size: "xs",
|
|
1478
|
+
type: "secondary",
|
|
1479
|
+
children: c.legendHigh
|
|
1480
|
+
})]
|
|
1481
|
+
}),
|
|
1482
|
+
i !== void 0 && /* @__PURE__ */ S("div", {
|
|
1483
|
+
className: "flex items-center gap-space-xs",
|
|
1484
|
+
children: [/* @__PURE__ */ x("div", { className: "h-0 w-0 border-x-[3px] border-b-[4px] border-x-transparent border-b-destructive" }), /* @__PURE__ */ x(r, {
|
|
1485
|
+
size: "xs",
|
|
1486
|
+
type: "secondary",
|
|
1487
|
+
children: c.legendNow
|
|
1488
|
+
})]
|
|
1489
|
+
})
|
|
1490
|
+
]
|
|
1491
|
+
})
|
|
1492
|
+
]
|
|
1493
|
+
});
|
|
1494
|
+
}
|
|
1495
|
+
Me.displayName = "TimeDistributionRuler";
|
|
1496
|
+
//#endregion
|
|
1497
|
+
export { ke as ActivityHeatmap, Ae as ChartCard, W as Metric, G as MetricBar, X as MetricComparison, Ee as MetricGradient, q as MetricGrid, Q as MetricMicroGrid, z as MetricSkeleton, L as MetricSparkline, I as MetricTrendChip, Me as TimeDistributionRuler, j as defaultAnalyticsStrings, J as defaultMetricComparisonStrings, je as defaultTimeDistributionRulerStrings, M as formatMetricValue, N as resolveTrend };
|
|
1498
|
+
|
|
1499
|
+
//# sourceMappingURL=analytics.js.map
|