themelia-react-ui 1.0.1 → 2.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 +417 -0
- package/README.md +67 -16
- package/dist/{accordion-B-5Focs8.js → accordion-CQXVcd7Q.js} +15 -15
- package/dist/accordion-CQXVcd7Q.js.map +1 -0
- package/dist/action-menu-BTpyPWJ2.js +264 -0
- package/dist/action-menu-BTpyPWJ2.js.map +1 -0
- package/dist/affordance-geometry.generated-CCIXb2A1.js +68 -0
- package/dist/affordance-geometry.generated-CCIXb2A1.js.map +1 -0
- package/dist/{ai-artifact-B5tPpXnS.js → ai-artifact-2PQ2fItc.js} +206 -215
- package/dist/ai-artifact-2PQ2fItc.js.map +1 -0
- package/dist/{app-shell-at8Kt4l_.js → app-shell-BE_j8-AT.js} +11 -10
- package/dist/app-shell-BE_j8-AT.js.map +1 -0
- package/dist/{attachment-BO2R47wn.js → attachment-q69dlt5Y.js} +14 -14
- package/dist/attachment-q69dlt5Y.js.map +1 -0
- package/dist/auth-M3vGMgDR.js +723 -0
- package/dist/auth-M3vGMgDR.js.map +1 -0
- package/dist/{avatar-Bpzty83c.js → avatar-djdaaQ_s.js} +15 -13
- package/dist/avatar-djdaaQ_s.js.map +1 -0
- package/dist/{badge-BZXZT9wd.js → badge-0tATj-tW.js} +9 -9
- package/dist/badge-0tATj-tW.js.map +1 -0
- package/dist/base/accordion.js +1 -1
- package/dist/base/action-menu.js +1 -1
- package/dist/base/attachment.js +1 -1
- package/dist/base/avatar.js +1 -1
- package/dist/base/badge.js +1 -1
- package/dist/base/buttons.js +3 -2
- package/dist/base/cards.js +3 -3
- package/dist/base/carousel.js +33 -35
- package/dist/base/carousel.js.map +1 -1
- package/dist/base/cascader.js +246 -222
- package/dist/base/cascader.js.map +1 -1
- package/dist/base/chart.js +1 -1
- package/dist/base/choice-inputs.js +2 -2
- package/dist/base/code-block.js +1 -1
- package/dist/base/combobox.js +1 -1
- package/dist/base/command.js +1 -1
- package/dist/base/copyable.js +1 -1
- package/dist/base/date-pickers.js +3 -3
- package/dist/base/display.js +7 -7
- package/dist/base/feedback.js +4 -4
- package/dist/base/forms-numeric.js +1 -1
- package/dist/base/forms.js +2 -2
- package/dist/base/inline-edit.js +94 -92
- package/dist/base/inline-edit.js.map +1 -1
- package/dist/base/item.js +1 -1
- package/dist/base/media-gallery.js +1 -1
- package/dist/base/navigation.js +6 -6
- package/dist/base/popover-menu.js +1 -1
- package/dist/base/popover.js +1 -1
- package/dist/base/qr-code.js +7 -4
- package/dist/base/qr-code.js.map +1 -1
- package/dist/base/repeaters.js +53 -53
- package/dist/base/repeaters.js.map +1 -1
- package/dist/base/sheet.js +1 -1
- package/dist/base/sidebar.js +1 -1
- package/dist/base/signature-pad.js +84 -82
- package/dist/base/signature-pad.js.map +1 -1
- package/dist/base/skeleton.js +1 -1
- package/dist/base/spinner.js +1 -1
- package/dist/base/structure.js +1 -1
- package/dist/base/table.js +1 -1
- package/dist/base/text-inputs.js +2 -2
- package/dist/base/toaster.js +7 -7
- package/dist/base/toaster.js.map +1 -1
- package/dist/base/tree.js +1 -1
- package/dist/base/upload-queue.js +1 -1
- package/dist/base/upload.js +3 -3
- package/dist/base/value-inputs.js +1 -1
- package/dist/blocks/admin.js +228 -219
- package/dist/blocks/admin.js.map +1 -1
- package/dist/blocks/ai.js +182 -212
- package/dist/blocks/ai.js.map +1 -1
- package/dist/blocks/analytics/usage-card.js +1 -1
- package/dist/blocks/analytics.js +665 -620
- package/dist/blocks/analytics.js.map +1 -1
- package/dist/blocks/collaboration.js +2 -2
- package/dist/blocks/commerce/receipt.js +1 -1
- package/dist/blocks/commerce.js +1439 -1553
- package/dist/blocks/commerce.js.map +1 -1
- package/dist/blocks/data-display.js +1 -1
- package/dist/blocks/onboarding.js +6 -6
- package/dist/blocks/onboarding.js.map +1 -1
- package/dist/blocks/planning.js +88 -97
- package/dist/blocks/planning.js.map +1 -1
- package/dist/blocks/timelines.js +1 -1
- package/dist/{breadcrumbs-DdQ_I5ra.js → breadcrumbs-BG_FfMK4.js} +10 -9
- package/dist/breadcrumbs-BG_FfMK4.js.map +1 -0
- package/dist/button-BS3KDg00.js +674 -0
- package/dist/button-BS3KDg00.js.map +1 -0
- package/dist/{button-BS6l5JUw.js → button-R9CCoH7A.js} +3 -3
- package/dist/button-R9CCoH7A.js.map +1 -0
- package/dist/buttons-DS0ZIwJ_.js +99 -0
- package/dist/buttons-DS0ZIwJ_.js.map +1 -0
- package/dist/{cards-Cum56XOF.js → cards-QoJ4syG9.js} +12 -12
- package/dist/{cards-Cum56XOF.js.map → cards-QoJ4syG9.js.map} +1 -1
- package/dist/chart-DwYRKKc-.js +152 -0
- package/dist/chart-DwYRKKc-.js.map +1 -0
- package/dist/checkbox-B7ygNTYp.js +35 -0
- package/dist/checkbox-B7ygNTYp.js.map +1 -0
- package/dist/choice-inputs-DrJ17tpL.js +752 -0
- package/dist/choice-inputs-DrJ17tpL.js.map +1 -0
- package/dist/{code-block-xHKbAJDj.js → code-block-CD0B7M93.js} +27 -27
- package/dist/code-block-CD0B7M93.js.map +1 -0
- package/dist/{collapsible-DsnktFNv.js → collapsible-oMUGM4tr.js} +3 -3
- package/dist/{collapsible-DsnktFNv.js.map → collapsible-oMUGM4tr.js.map} +1 -1
- package/dist/{collection-content-C4fthJV_.js → collection-content-Ys-OZOkY.js} +3 -3
- package/dist/{collection-content-C4fthJV_.js.map → collection-content-Ys-OZOkY.js.map} +1 -1
- package/dist/combobox-6dvVny2q.js +272 -0
- package/dist/combobox-6dvVny2q.js.map +1 -0
- package/dist/combobox-CB7039j7.js +865 -0
- package/dist/combobox-CB7039j7.js.map +1 -0
- package/dist/{command-C0xe7u9B.js → command-kPMPjIxJ.js} +35 -31
- package/dist/command-kPMPjIxJ.js.map +1 -0
- package/dist/{comments-DviPLnwy.js → comments-You0Bzbr.js} +434 -409
- package/dist/comments-You0Bzbr.js.map +1 -0
- package/dist/components/base/accordion/accordion-variants.d.ts +3 -3
- package/dist/components/base/action-menu/action-menu.d.ts +7 -2
- package/dist/components/base/avatar/stacked-avatars.d.ts +5 -4
- package/dist/components/base/badge/badge.d.ts +1 -1
- package/dist/components/base/badge/badge.recipes.d.ts +4 -4
- package/dist/components/base/buttons/base-button.d.ts +7 -0
- package/dist/components/base/buttons/button-group.recipes.d.ts +2 -2
- package/dist/components/base/buttons/button.recipes.d.ts +10 -19
- package/dist/components/base/buttons/button.variants.d.ts +1 -0
- package/dist/components/base/buttons/loader-button.d.ts +3 -1
- package/dist/components/base/buttons/text-button.d.ts +2 -2
- package/dist/components/base/buttons/use-pending-button-focus.d.ts +3 -0
- package/dist/components/base/cards/card.recipes.d.ts +13 -5
- package/dist/components/base/cards/partials/card-primitives.d.ts +9 -4
- package/dist/components/base/cards/smart-card.types.d.ts +1 -1
- package/dist/components/base/carousel/carousel.d.ts +3 -1
- package/dist/components/base/chart/chart.d.ts +7 -7
- package/dist/components/base/choice-inputs/checkbox.d.ts +6 -7
- package/dist/components/base/choice-inputs/choice-types.d.ts +10 -1
- package/dist/components/base/choice-inputs/pill-radio-group.d.ts +9 -0
- package/dist/components/base/choice-inputs/select-popup.d.ts +9 -1
- package/dist/components/base/choice-inputs/switch-card.d.ts +1 -1
- package/dist/components/base/date-pickers/date-picker-field.d.ts +23 -0
- package/dist/components/base/date-pickers/date-picker.recipes.d.ts +5 -18
- package/dist/components/base/date-pickers/datepicker.types.d.ts +16 -3
- package/dist/components/base/display/alert-dialog.d.ts +8 -2
- package/dist/components/base/display/content-block.d.ts +4 -2
- package/dist/components/base/display/date-block.d.ts +1 -1
- package/dist/components/base/display/dialog.d.ts +12 -5
- package/dist/components/base/display/surface-title.d.ts +6 -1
- package/dist/components/base/feedback/alert.d.ts +1 -1
- package/dist/components/base/feedback/state-display.d.ts +5 -4
- package/dist/components/base/forms/form-field.d.ts +1 -0
- package/dist/components/base/forms/form-sizing.d.ts +35 -3
- package/dist/components/base/forms/workflow.d.ts +2 -0
- package/dist/components/base/forms-numeric/coordinates-input.d.ts +3 -0
- package/dist/components/base/forms-numeric/rounding-mode-select.d.ts +4 -1
- package/dist/components/base/navigation/dropdown-menu.d.ts +2 -2
- package/dist/components/base/navigation/language-switcher.d.ts +4 -1
- package/dist/components/base/navigation/overflow-tab-bar.d.ts +7 -0
- package/dist/components/base/navigation/page-header/page-header.d.ts +4 -1
- package/dist/components/base/navigation/tabs.d.ts +3 -5
- package/dist/components/base/popover/popover.recipes.d.ts +3 -3
- package/dist/components/base/qr-code/qr-code.d.ts +2 -0
- package/dist/components/base/sheet/index.d.ts +29 -1
- package/dist/components/base/sheet/sheet.d.ts +14 -5
- package/dist/components/base/spinner/spinner.d.ts +3 -2
- package/dist/components/base/structure/structure.types.d.ts +1 -1
- package/dist/components/base/table/index.d.ts +1 -1
- package/dist/components/base/text-inputs/clear-native-field.d.ts +2 -0
- package/dist/components/base/text-inputs/input-group.d.ts +2 -2
- package/dist/components/base/text-inputs/input-trailing-action.d.ts +3 -0
- package/dist/components/base/upload/upload.recipes.d.ts +11 -0
- package/dist/components/base/value-inputs/date-time-input.d.ts +4 -2
- package/dist/components/base/value-inputs/tags-input.d.ts +2 -0
- package/dist/components/blocks/admin/api-key-list/api-key-list.types.d.ts +1 -1
- package/dist/components/blocks/analytics/format-metric-value.d.ts +11 -1
- package/dist/components/blocks/analytics/index.d.ts +1 -1
- package/dist/components/blocks/analytics/types.d.ts +1 -1
- package/dist/components/blocks/analytics/use-metric-format-options.d.ts +3 -0
- package/dist/components/blocks/collaboration/message/message.recipes.d.ts +12 -0
- package/dist/components/blocks/commerce/address-card/address-card.d.ts +1 -1
- package/dist/components/blocks/commerce/address-card/types.d.ts +3 -1
- package/dist/components/blocks/commerce/booking-calendar-event-card/booking-calendar-event-card.d.ts +4 -0
- package/dist/components/blocks/commerce/booking-calendar-event-card/booking-calendar-event-card.types.d.ts +2 -2
- package/dist/components/blocks/commerce/discount-stack/types.d.ts +1 -1
- package/dist/components/blocks/commerce/inventory-section/types.d.ts +4 -1
- package/dist/components/blocks/commerce/loyalty-points/types.d.ts +1 -1
- package/dist/components/blocks/commerce/order-status/types.d.ts +4 -0
- package/dist/components/blocks/commerce/payment-method/payment-method.d.ts +1 -1
- package/dist/components/blocks/commerce/payment-method/types.d.ts +3 -1
- package/dist/components/blocks/commerce/seo-listing/seo-listing-card.d.ts +1 -1
- package/dist/components/blocks/commerce/seo-listing/types.d.ts +3 -1
- package/dist/components/blocks/commerce/vendor-profile/types.d.ts +4 -1
- package/dist/components/blocks/data-display/dense-info-card/dense-info.strings.d.ts +4 -1
- package/dist/components/blocks/data-display/empty-state/partials/illustrations/document-stack.d.ts +1 -4
- package/dist/components/blocks/data-display/empty-state/partials/illustrations/inbox-clean.d.ts +1 -4
- package/dist/components/blocks/data-display/empty-state/partials/illustrations/index.d.ts +3 -3
- package/dist/components/blocks/data-display/empty-state/partials/illustrations/stacked-cards.d.ts +1 -6
- package/dist/components/blocks/data-display/inline-stat/inline-stat.d.ts +4 -1
- package/dist/components/features/combobox/components/error-message.d.ts +1 -1
- package/dist/components/features/comments/hooks/use-attachment-upload.d.ts +5 -0
- package/dist/components/features/filters/facets/search-facet.d.ts +0 -12
- package/dist/components/features/filters/facets/tags-facet.d.ts +1 -1
- package/dist/components/features/global-search/partials/global-search-idle-state.d.ts +1 -1
- package/dist/components/features/media-library/media-library.d.ts +1 -1
- package/dist/components/features/media-library/media-library.types.d.ts +9 -1
- package/dist/components/features/media-library/partials/media-library-partials.d.ts +1 -1
- package/dist/components/features/overlays/alert-dialog.d.ts +1 -1
- package/dist/components/features/overlays/drawer.d.ts +1 -1
- package/dist/components/features/overlays/hooks/use-overlay-actions.d.ts +2 -2
- package/dist/components/features/overlays/hooks/use-overlay-visibility.d.ts +11 -4
- package/dist/components/features/overlays/hooks/use-pending-overlay-focus.d.ts +2 -0
- package/dist/components/features/overlays/overlay-tone-icon.d.ts +37 -0
- package/dist/components/features/overlays/overlays.types.d.ts +46 -22
- package/dist/components/features/products/components/product-variants-manager.d.ts +1 -1
- package/dist/components/features/products/partials/index.d.ts +1 -1
- package/dist/components/features/products/partials/product-metric-tile.d.ts +6 -0
- package/dist/components/features/products/partials/product-tone.d.ts +11 -1
- package/dist/components/features/products/products.types.d.ts +2 -1
- package/dist/components/features/rich-text-editor/rich-text-editor.recipes.d.ts +2 -1
- package/dist/components/features/table/data-table.d.ts +1 -1
- package/dist/components/features/table/partials/cell-renderers.d.ts +1 -1
- package/dist/components/features/table/table.types.d.ts +1 -1
- package/dist/components/features/theme-tweaker/theme-provider-settings.d.ts +3 -1
- package/dist/components/layout/auth/auth.types.d.ts +1 -0
- package/dist/components/layout/page/index.d.ts +1 -1
- package/dist/components/layout/page/page.d.ts +0 -1
- package/dist/components/layout/page/page.types.d.ts +62 -6
- package/dist/components/layout/page/partials/page-header-commands.d.ts +13 -0
- package/dist/components/layout/page/partials/page-header.d.ts +1 -1
- package/dist/components/layout/sidebar/sidebar.context.d.ts +1 -1
- package/dist/components/layout/sidebar/sidebar.types.d.ts +4 -0
- package/dist/components/layout/workspace/workspace.types.d.ts +3 -0
- package/dist/components/primitives/date.d.ts +16 -3
- package/dist/components/primitives/dimensions.d.ts +6 -0
- package/dist/components/primitives/duration.d.ts +6 -0
- package/dist/components/primitives/file-size.d.ts +6 -0
- package/dist/components/primitives/index.d.ts +1 -1
- package/dist/components/primitives/initials.d.ts +11 -2
- package/dist/components/primitives/link.d.ts +7 -0
- package/dist/components/primitives/money.d.ts +29 -7
- package/dist/components/primitives/number.d.ts +17 -0
- package/dist/components/primitives/value-typography.d.ts +54 -0
- package/dist/components/primitives/value.d.ts +31 -6
- package/dist/components/typography/heading.d.ts +13 -2
- package/dist/components/typography/index.d.ts +1 -1
- package/dist/components/typography/label.d.ts +3 -0
- package/dist/components/typography/running-text.d.ts +12 -0
- package/dist/components/typography/text-link.d.ts +23 -1
- package/dist/components/typography/text.d.ts +12 -0
- package/dist/components/typography/text.styles.d.ts +37 -5
- package/dist/components/ui/button.d.ts +1 -1
- package/dist/components/ui/checkbox.d.ts +5 -0
- package/dist/components/ui/overlay.recipes.d.ts +15 -2
- package/dist/components/ui/popover.d.ts +1 -1
- package/dist/components/ui/select.d.ts +3 -1
- package/dist/components/ui/sidebar.d.ts +1 -1
- package/dist/components/ui/switch.d.ts +5 -0
- package/dist/components/ui/table.d.ts +2 -1
- package/dist/container.recipes-D9t8MHR3.js +27 -0
- package/dist/container.recipes-D9t8MHR3.js.map +1 -0
- package/dist/{containers-6s-ucRQQ.js → containers-D_L4mTVb.js} +34 -57
- package/dist/containers-D_L4mTVb.js.map +1 -0
- package/dist/control-group-recipes-DBXmfh2E.js +21 -0
- package/dist/control-group-recipes-DBXmfh2E.js.map +1 -0
- package/dist/{copyable-B7SBXJMr.js → copyable-DDjTeW_j.js} +6 -6
- package/dist/{copyable-B7SBXJMr.js.map → copyable-DDjTeW_j.js.map} +1 -1
- package/dist/data-display-3xWQUnMA.js +1335 -0
- package/dist/data-display-3xWQUnMA.js.map +1 -0
- package/dist/date-picker-DrDFj8Lo.js +1527 -0
- package/dist/date-picker-DrDFj8Lo.js.map +1 -0
- package/dist/date-pickers-CnFCb0n2.js +174 -0
- package/dist/date-pickers-CnFCb0n2.js.map +1 -0
- package/dist/date-uf3z37Nm.js +144 -0
- package/dist/date-uf3z37Nm.js.map +1 -0
- package/dist/{display-CFM5myut.js → display-DrdvPwF0.js} +25 -25
- package/dist/display-DrdvPwF0.js.map +1 -0
- package/dist/{dropdown-menu-BlnyHr-9.js → dropdown-menu-CURh59jb.js} +22 -15
- package/dist/dropdown-menu-CURh59jb.js.map +1 -0
- package/dist/features/activities.js +177 -163
- package/dist/features/activities.js.map +1 -1
- package/dist/features/ai-chat.js +187 -183
- package/dist/features/ai-chat.js.map +1 -1
- package/dist/features/async-preview.js +9 -9
- package/dist/features/async-preview.js.map +1 -1
- package/dist/features/combobox.js +1 -1
- package/dist/features/comments.js +1 -1
- package/dist/features/data-view.js +25 -23
- package/dist/features/data-view.js.map +1 -1
- package/dist/features/email-composer/engine.js +1 -1
- package/dist/features/email-composer.js +353 -355
- package/dist/features/email-composer.js.map +1 -1
- package/dist/features/event-calendar.js +346 -354
- package/dist/features/event-calendar.js.map +1 -1
- package/dist/features/filters.js +1 -1
- package/dist/features/global-search.js +225 -227
- package/dist/features/global-search.js.map +1 -1
- package/dist/features/kanban.js +29 -29
- package/dist/features/kanban.js.map +1 -1
- package/dist/features/map.js +59 -58
- package/dist/features/map.js.map +1 -1
- package/dist/features/media-library.js +898 -900
- package/dist/features/media-library.js.map +1 -1
- package/dist/features/mentions.js +1 -1
- package/dist/features/overlays.js +1 -1
- package/dist/features/products.js +1412 -1444
- package/dist/features/products.js.map +1 -1
- package/dist/features/questionnaire.js +51 -49
- package/dist/features/questionnaire.js.map +1 -1
- package/dist/features/resource-assignment.js +103 -97
- package/dist/features/resource-assignment.js.map +1 -1
- package/dist/features/resource.js +13 -13
- package/dist/features/resource.js.map +1 -1
- package/dist/features/rich-text-editor.js +2 -2
- package/dist/features/schema-form.js +187 -183
- package/dist/features/schema-form.js.map +1 -1
- package/dist/features/suggestions.js +3 -3
- package/dist/features/sync.js +7 -7
- package/dist/features/sync.js.map +1 -1
- package/dist/features/table.js +1 -1
- package/dist/features/theme-tweaker.js +508 -503
- package/dist/features/theme-tweaker.js.map +1 -1
- package/dist/{feedback-DWUkgEjR.js → feedback-C7nR0UtT.js} +30 -31
- package/dist/feedback-C7nR0UtT.js.map +1 -0
- package/dist/field-affordance-recipes-CkOCdE2y.js +46 -0
- package/dist/field-affordance-recipes-CkOCdE2y.js.map +1 -0
- package/dist/{field-state-recipes-CBTRt9Bt.js → field-state-recipes-C-MFBX_8.js} +5 -5
- package/dist/field-state-recipes-C-MFBX_8.js.map +1 -0
- package/dist/{filters-BhsUtsxW.js → filters-Da-gNPsE.js} +760 -765
- package/dist/filters-Da-gNPsE.js.map +1 -0
- package/dist/{form-field-Bn7ZH1rA.js → form-field-VZRULhUK.js} +20 -12
- package/dist/form-field-VZRULhUK.js.map +1 -0
- package/dist/form-sizing-uWP4lzVh.js +126 -0
- package/dist/form-sizing-uWP4lzVh.js.map +1 -0
- package/dist/{forms-B7pzS25o.js → forms-DDeEnXSY.js} +38 -38
- package/dist/forms-DDeEnXSY.js.map +1 -0
- package/dist/forms-numeric-D3CO60IF.js +905 -0
- package/dist/forms-numeric-D3CO60IF.js.map +1 -0
- package/dist/{header-C59QZyxV.js → header-2ycNqGOR.js} +42 -37
- package/dist/header-2ycNqGOR.js.map +1 -0
- package/dist/{hooks-CM1Vp9Pe.js → hooks-DQ5SPwZw.js} +2 -2
- package/dist/{hooks-CM1Vp9Pe.js.map → hooks-DQ5SPwZw.js.map} +1 -1
- package/dist/{http-CLTVJc5I.js → http-CdEIHyQf.js} +2 -2
- package/dist/http-CdEIHyQf.js.map +1 -0
- package/dist/{icon-badge-Dv0RYQwj.js → icon-badge-DKlaKXoo.js} +4 -4
- package/dist/{icon-badge-Dv0RYQwj.js.map → icon-badge-DKlaKXoo.js.map} +1 -1
- package/dist/index.js +2 -2
- package/dist/input-BoLm9Hks.js +20 -0
- package/dist/input-BoLm9Hks.js.map +1 -0
- package/dist/input-DhQdBnV3.js +255 -0
- package/dist/input-DhQdBnV3.js.map +1 -0
- package/dist/item-xzh8Df65.js +264 -0
- package/dist/item-xzh8Df65.js.map +1 -0
- package/dist/layout/app-shell.js +1 -1
- package/dist/layout/auth.js +1 -1
- package/dist/layout/containers.js +1 -1
- package/dist/layout/header.js +1 -1
- package/dist/layout/hooks.js +1 -1
- package/dist/layout/navigation.js +1 -1
- package/dist/layout/page.js +1 -1
- package/dist/layout/settings.js +1 -1
- package/dist/layout/sidebar.js +2 -2
- package/dist/layout/workspace.js +1 -1
- package/dist/layout.js +10 -10
- package/dist/lib/affordance-geometry.generated.d.ts +46 -10
- package/dist/lib/control-group-recipes.d.ts +22 -0
- package/dist/lib/field-affordance-recipes.d.ts +70 -2
- package/dist/lib/field-state-recipes.d.ts +6 -4
- package/dist/lib/format.d.ts +9 -0
- package/dist/lib/money-format.d.ts +30 -0
- package/dist/lib/navigation-row-recipes.d.ts +3 -2
- package/dist/lib/overlay-anatomy-recipes.d.ts +2 -2
- package/dist/lib/surface-recipes.d.ts +13 -8
- package/dist/lib/token-merge.generated.d.ts +144 -2
- package/dist/lib/track-recipes.d.ts +1 -1
- package/dist/lib/ui-provider/provider.d.ts +7 -2
- package/dist/lib/ui-provider/store.d.ts +6 -2
- package/dist/lib/ui-provider/types.d.ts +9 -4
- package/dist/lib/use-prefers-reduced-motion.d.ts +2 -0
- package/dist/lib/utils.js +1 -1
- package/dist/media-gallery-DQUQ0m3O.js +201 -0
- package/dist/media-gallery-DQUQ0m3O.js.map +1 -0
- package/dist/{mentions-B8Ko-fhS.js → mentions-DwnO1hh4.js} +40 -39
- package/dist/{mentions-B8Ko-fhS.js.map → mentions-DwnO1hh4.js.map} +1 -1
- package/dist/message-YfFmbXNP.js +127 -0
- package/dist/message-YfFmbXNP.js.map +1 -0
- package/dist/{navigation-BUIn2Qxx.js → navigation-Cbp5V8gG.js} +27 -28
- package/dist/navigation-Cbp5V8gG.js.map +1 -0
- package/dist/navigation-Cs1npsPm.js +300 -0
- package/dist/navigation-Cs1npsPm.js.map +1 -0
- package/dist/{navigation-row-recipes-GVh11KiT.js → navigation-row-recipes-DlU-4QYO.js} +3 -3
- package/dist/navigation-row-recipes-DlU-4QYO.js.map +1 -0
- package/dist/number-CKRBYmZK.js +352 -0
- package/dist/number-CKRBYmZK.js.map +1 -0
- package/dist/overlay.recipes-CNO2S9V6.js +34 -0
- package/dist/overlay.recipes-CNO2S9V6.js.map +1 -0
- package/dist/overlays-DhZO7N-I.js +994 -0
- package/dist/overlays-DhZO7N-I.js.map +1 -0
- package/dist/page-C6R_8jFt.js +325 -0
- package/dist/page-C6R_8jFt.js.map +1 -0
- package/dist/{page-header-DQRa0jug.js → page-header-hUTzcRZX.js} +12 -12
- package/dist/page-header-hUTzcRZX.js.map +1 -0
- package/dist/{pagination-C29vvt3I.js → pagination-Cm0jqa3I.js} +21 -21
- package/dist/pagination-Cm0jqa3I.js.map +1 -0
- package/dist/{popover-CoLDEg19.js → popover-Dcv_9jxr.js} +23 -22
- package/dist/popover-Dcv_9jxr.js.map +1 -0
- package/dist/{popover-menu-GLIQTJTx.js → popover-menu-DnRFKnHP.js} +6 -6
- package/dist/{popover-menu-GLIQTJTx.js.map → popover-menu-DnRFKnHP.js.map} +1 -1
- package/dist/{popover.recipes-zgBhMlUu.js → popover.recipes-wmbvL8Ah.js} +5 -5
- package/dist/popover.recipes-wmbvL8Ah.js.map +1 -0
- package/dist/primitives-BHrwQXFC.js +379 -0
- package/dist/primitives-BHrwQXFC.js.map +1 -0
- package/dist/primitives.js +5 -5
- package/dist/{progress-BOe8l_FZ.js → progress-Br9WTFya.js} +12 -11
- package/dist/progress-Br9WTFya.js.map +1 -0
- package/dist/{receipt-BM8xsGFy.js → receipt-CV89q1fs.js} +8 -8
- package/dist/{receipt-BM8xsGFy.js.map → receipt-CV89q1fs.js.map} +1 -1
- package/dist/rich-text-editor-CF8QYt5p.js +574 -0
- package/dist/rich-text-editor-CF8QYt5p.js.map +1 -0
- package/dist/{rich-text-editor.recipes-DxvOE0Lp.js → rich-text-editor.recipes-CnrbmTS1.js} +35 -26
- package/dist/rich-text-editor.recipes-CnrbmTS1.js.map +1 -0
- package/dist/{rich-text-B7sBAdDG.js → rich-text-j-FGAeZW.js} +4 -4
- package/dist/{rich-text-B7sBAdDG.js.map → rich-text-j-FGAeZW.js.map} +1 -1
- package/dist/{scroll-area-BheMQ270.js → scroll-area-DRdr16Pt.js} +3 -3
- package/dist/scroll-area-DRdr16Pt.js.map +1 -0
- package/dist/{separator-DO0EbCEm.js → separator-BMEvwnSX.js} +2 -2
- package/dist/{separator-DO0EbCEm.js.map → separator-BMEvwnSX.js.map} +1 -1
- package/dist/{separator-Gk_WXH-l.js → separator-Do5GWDYi.js} +4 -4
- package/dist/separator-Do5GWDYi.js.map +1 -0
- package/dist/services/actions/action-adapters.d.ts +4 -0
- package/dist/services/actions.js +8 -3
- package/dist/services/actions.js.map +1 -1
- package/dist/{settings-BnCyyPOJ.js → settings-DHk0L2MF.js} +20 -19
- package/dist/settings-DHk0L2MF.js.map +1 -0
- package/dist/sheet-DRFNY1_D.js +207 -0
- package/dist/sheet-DRFNY1_D.js.map +1 -0
- package/dist/sidebar-Cb8WzOvE.js +511 -0
- package/dist/sidebar-Cb8WzOvE.js.map +1 -0
- package/dist/{sidebar-DPR7fmqN.js → sidebar-Crc9M9JV.js} +220 -201
- package/dist/sidebar-Crc9M9JV.js.map +1 -0
- package/dist/{skeleton-CmT1ppqb.js → skeleton-DVMXr15h.js} +5 -5
- package/dist/{skeleton-CmT1ppqb.js.map → skeleton-DVMXr15h.js.map} +1 -1
- package/dist/smart-card-Bek-TwUp.js +599 -0
- package/dist/smart-card-Bek-TwUp.js.map +1 -0
- package/dist/{spinner-BY9HbUEh.js → spinner-CmTAbEp0.js} +8 -6
- package/dist/spinner-CmTAbEp0.js.map +1 -0
- package/dist/{structure-MvKVq-oL.js → structure-hzCW-XsV.js} +3 -3
- package/dist/{structure-MvKVq-oL.js.map → structure-hzCW-XsV.js.map} +1 -1
- package/dist/{structure.recipes-Bqhf9oIh.js → structure.recipes-EPz60cU8.js} +37 -19
- package/dist/structure.recipes-EPz60cU8.js.map +1 -0
- package/dist/style.css +1 -1
- package/dist/surface-recipes-DOdoBXGm.js +28 -0
- package/dist/surface-recipes-DOdoBXGm.js.map +1 -0
- package/dist/table-D6zKeYQX.js +162 -0
- package/dist/table-D6zKeYQX.js.map +1 -0
- package/dist/table-Dn4XSrSB.js +1444 -0
- package/dist/table-Dn4XSrSB.js.map +1 -0
- package/dist/tabs-Dk8E_knt.js +189 -0
- package/dist/tabs-Dk8E_knt.js.map +1 -0
- package/dist/text-inputs-BFpku0Qd.js +331 -0
- package/dist/text-inputs-BFpku0Qd.js.map +1 -0
- package/dist/{text.styles-BwB7vAF2.js → text.styles-g4He6UIW.js} +26 -15
- package/dist/text.styles-g4He6UIW.js.map +1 -0
- package/dist/theme.css +90 -124
- package/dist/themes/green.css +24 -0
- package/dist/{timelines-B9ICkQcV.js → timelines-CxuAFIc2.js} +97 -104
- package/dist/timelines-CxuAFIc2.js.map +1 -0
- package/dist/track-recipes-CDcKmndW.js +10 -0
- package/dist/track-recipes-CDcKmndW.js.map +1 -0
- package/dist/{tree-BdWSaoFT.js → tree-BotPlyiD.js} +13 -13
- package/dist/{tree-BdWSaoFT.js.map → tree-BotPlyiD.js.map} +1 -1
- package/dist/typography/rich-text.js +1 -1
- package/dist/typography-CAr3dQhX.js +116 -0
- package/dist/typography-CAr3dQhX.js.map +1 -0
- package/dist/typography.js +2 -2
- package/dist/{ui-provider-CftIB6TY.js → ui-provider-D2_TeLqw.js} +22 -22
- package/dist/ui-provider-D2_TeLqw.js.map +1 -0
- package/dist/ui-provider.js +1 -1
- package/dist/{upload-D8Za5x_c.js → upload-B0WHW7ak.js} +278 -274
- package/dist/upload-B0WHW7ak.js.map +1 -0
- package/dist/{upload-queue-hIIYBLS7.js → upload-queue-BHZ_wBfd.js} +72 -75
- package/dist/upload-queue-BHZ_wBfd.js.map +1 -0
- package/dist/{usage-card-DnmnJ58D.js → usage-card-U0YBLTNT.js} +31 -33
- package/dist/usage-card-U0YBLTNT.js.map +1 -0
- package/dist/utils-Cospvlj1.js +4445 -0
- package/dist/utils-Cospvlj1.js.map +1 -0
- package/dist/value-inputs-CjfzGMsN.js +854 -0
- package/dist/value-inputs-CjfzGMsN.js.map +1 -0
- package/dist/value-typography-Deb3yQZg.js +116 -0
- package/dist/value-typography-Deb3yQZg.js.map +1 -0
- package/dist/{workspace-C1PZmk8L.js → workspace-YoFjXi6i.js} +97 -105
- package/dist/workspace-YoFjXi6i.js.map +1 -0
- package/docs/consumer-skill/SKILL.md +123 -119
- package/docs/consumer-skill/examples/analytics.tsx +34 -0
- package/docs/consumer-skill/examples/app-layout.tsx +42 -14
- package/docs/consumer-skill/examples/detail.tsx +20 -5
- package/docs/consumer-skill/examples/edit.tsx +1 -1
- package/docs/consumer-skill/examples/layout-blocks.tsx +20 -0
- package/docs/consumer-skill/examples/manifest.json +37 -3
- package/docs/consumer-skill/examples/scoped-directory.tsx +2 -2
- package/docs/consumer-skill/examples/website.tsx +56 -0
- package/docs/consumer-skill/references/analytics.md +70 -0
- package/docs/consumer-skill/references/composition.md +195 -9
- package/docs/consumer-skill/references/design-contract.md +33 -7
- package/docs/consumer-skill/references/discovery.md +80 -5
- package/docs/consumer-skill/references/installation.md +22 -0
- package/docs/consumer-skill/references/integration.md +46 -1
- package/docs/consumer-skill/references/public-api.json +2083 -237
- package/docs/consumer-skill/references/review.md +74 -6
- package/docs/consumer-skill/references/theming.md +59 -8
- package/docs/consumer-skill/references/tokens.json +180 -9
- package/docs/consumer-skill/references/workflows.md +34 -0
- package/docs/consumer-skill/scripts/check-composition.mjs +1 -1
- package/docs/consumer-skill/scripts/composition-policy.mjs +271 -18
- package/docs/consumer-skill/scripts/discovery.mjs +69 -9
- package/docs/consumer-skill/scripts/pin-button-defaults.mjs +95 -0
- package/docs/consumer-skill/scripts/surface-policy.mjs +44 -0
- package/package.json +11 -6
- package/dist/accordion-B-5Focs8.js.map +0 -1
- package/dist/action-menu-Cx3SdfbN.js +0 -265
- package/dist/action-menu-Cx3SdfbN.js.map +0 -1
- package/dist/affordance-geometry.generated-D8Jcfb0G.js +0 -32
- package/dist/affordance-geometry.generated-D8Jcfb0G.js.map +0 -1
- package/dist/ai-artifact-B5tPpXnS.js.map +0 -1
- package/dist/app-shell-at8Kt4l_.js.map +0 -1
- package/dist/attachment-BO2R47wn.js.map +0 -1
- package/dist/auth-OFwWSAap.js +0 -704
- package/dist/auth-OFwWSAap.js.map +0 -1
- package/dist/avatar-Bpzty83c.js.map +0 -1
- package/dist/badge-BZXZT9wd.js.map +0 -1
- package/dist/breadcrumbs-DdQ_I5ra.js.map +0 -1
- package/dist/button-BS6l5JUw.js.map +0 -1
- package/dist/buttons-Co6GavvM.js +0 -674
- package/dist/buttons-Co6GavvM.js.map +0 -1
- package/dist/chart-DVfcwQu6.js +0 -149
- package/dist/chart-DVfcwQu6.js.map +0 -1
- package/dist/checkbox-BavDRjF7.js +0 -34
- package/dist/checkbox-BavDRjF7.js.map +0 -1
- package/dist/choice-inputs-CC7XqPQO.js +0 -619
- package/dist/choice-inputs-CC7XqPQO.js.map +0 -1
- package/dist/code-block-xHKbAJDj.js.map +0 -1
- package/dist/combobox-DEbdr-3u.js +0 -273
- package/dist/combobox-DEbdr-3u.js.map +0 -1
- package/dist/combobox-xv3yJbzl.js +0 -850
- package/dist/combobox-xv3yJbzl.js.map +0 -1
- package/dist/command-C0xe7u9B.js.map +0 -1
- package/dist/comments-DviPLnwy.js.map +0 -1
- package/dist/containers-6s-ucRQQ.js.map +0 -1
- package/dist/data-display-cWIRdeaf.js +0 -1129
- package/dist/data-display-cWIRdeaf.js.map +0 -1
- package/dist/date-BFNMnrS5.js +0 -140
- package/dist/date-BFNMnrS5.js.map +0 -1
- package/dist/date-picker-CA6ogMQB.js +0 -1521
- package/dist/date-picker-CA6ogMQB.js.map +0 -1
- package/dist/date-pickers-BPIKLdsD.js +0 -224
- package/dist/date-pickers-BPIKLdsD.js.map +0 -1
- package/dist/display-CFM5myut.js.map +0 -1
- package/dist/dropdown-menu-BlnyHr-9.js.map +0 -1
- package/dist/feedback-DWUkgEjR.js.map +0 -1
- package/dist/field-affordance-recipes-IjzPrCTw.js +0 -17
- package/dist/field-affordance-recipes-IjzPrCTw.js.map +0 -1
- package/dist/field-state-recipes-CBTRt9Bt.js.map +0 -1
- package/dist/filters-BhsUtsxW.js.map +0 -1
- package/dist/form-field-Bn7ZH1rA.js.map +0 -1
- package/dist/form-sizing-BWs70_a2.js +0 -100
- package/dist/form-sizing-BWs70_a2.js.map +0 -1
- package/dist/format-iamDSqs2.js +0 -110
- package/dist/format-iamDSqs2.js.map +0 -1
- package/dist/forms-B7pzS25o.js.map +0 -1
- package/dist/forms-numeric-BUBxELBv.js +0 -867
- package/dist/forms-numeric-BUBxELBv.js.map +0 -1
- package/dist/header-C59QZyxV.js.map +0 -1
- package/dist/http-CLTVJc5I.js.map +0 -1
- package/dist/input-WwYQZJzG.js +0 -202
- package/dist/input-WwYQZJzG.js.map +0 -1
- package/dist/input-ci9fIgFH.js +0 -20
- package/dist/input-ci9fIgFH.js.map +0 -1
- package/dist/item-pJ0GsOiJ.js +0 -257
- package/dist/item-pJ0GsOiJ.js.map +0 -1
- package/dist/media-gallery-DhDRgnVZ.js +0 -200
- package/dist/media-gallery-DhDRgnVZ.js.map +0 -1
- package/dist/message-COsdEvXT.js +0 -108
- package/dist/message-COsdEvXT.js.map +0 -1
- package/dist/navigation-BUIn2Qxx.js.map +0 -1
- package/dist/navigation-DBEu4POU.js +0 -267
- package/dist/navigation-DBEu4POU.js.map +0 -1
- package/dist/navigation-row-recipes-GVh11KiT.js.map +0 -1
- package/dist/number-BNT_BIzJ.js +0 -269
- package/dist/number-BNT_BIzJ.js.map +0 -1
- package/dist/overlay.recipes-BxW5FIfK.js +0 -6
- package/dist/overlay.recipes-BxW5FIfK.js.map +0 -1
- package/dist/overlays-B11wZka6.js +0 -982
- package/dist/overlays-B11wZka6.js.map +0 -1
- package/dist/page-BV6ioQg3.js +0 -202
- package/dist/page-BV6ioQg3.js.map +0 -1
- package/dist/page-header-DQRa0jug.js.map +0 -1
- package/dist/pagination-C29vvt3I.js.map +0 -1
- package/dist/popover-CoLDEg19.js.map +0 -1
- package/dist/popover.recipes-zgBhMlUu.js.map +0 -1
- package/dist/primitives-DKPOGVpj.js +0 -330
- package/dist/primitives-DKPOGVpj.js.map +0 -1
- package/dist/progress-BOe8l_FZ.js.map +0 -1
- package/dist/rich-text-editor-CoVrTiSv.js +0 -575
- package/dist/rich-text-editor-CoVrTiSv.js.map +0 -1
- package/dist/rich-text-editor.recipes-DxvOE0Lp.js.map +0 -1
- package/dist/scroll-area-BheMQ270.js.map +0 -1
- package/dist/select-B2mb-qN2.js +0 -108
- package/dist/select-B2mb-qN2.js.map +0 -1
- package/dist/separator-Gk_WXH-l.js.map +0 -1
- package/dist/settings-BnCyyPOJ.js.map +0 -1
- package/dist/sheet-B-q914Ad.js +0 -205
- package/dist/sheet-B-q914Ad.js.map +0 -1
- package/dist/sidebar-C_2p3Tfj.js +0 -501
- package/dist/sidebar-C_2p3Tfj.js.map +0 -1
- package/dist/sidebar-DPR7fmqN.js.map +0 -1
- package/dist/smart-card-CYLn46e6.js +0 -578
- package/dist/smart-card-CYLn46e6.js.map +0 -1
- package/dist/spinner-BY9HbUEh.js.map +0 -1
- package/dist/structure.recipes-Bqhf9oIh.js.map +0 -1
- package/dist/surface-recipes-CQfRr-VL.js +0 -27
- package/dist/surface-recipes-CQfRr-VL.js.map +0 -1
- package/dist/table-BS39xnlq.js +0 -1424
- package/dist/table-BS39xnlq.js.map +0 -1
- package/dist/table-DnlAJ-xR.js +0 -146
- package/dist/table-DnlAJ-xR.js.map +0 -1
- package/dist/tabs-B5cNMWiP.js +0 -187
- package/dist/tabs-B5cNMWiP.js.map +0 -1
- package/dist/text-inputs-Dh9XGyiS.js +0 -331
- package/dist/text-inputs-Dh9XGyiS.js.map +0 -1
- package/dist/text.styles-BwB7vAF2.js.map +0 -1
- package/dist/timelines-B9ICkQcV.js.map +0 -1
- package/dist/track-recipes-LLPNVwFg.js +0 -10
- package/dist/track-recipes-LLPNVwFg.js.map +0 -1
- package/dist/typography-Cv8MT-82.js +0 -96
- package/dist/typography-Cv8MT-82.js.map +0 -1
- package/dist/ui-provider-CftIB6TY.js.map +0 -1
- package/dist/upload-D8Za5x_c.js.map +0 -1
- package/dist/upload-queue-hIIYBLS7.js.map +0 -1
- package/dist/usage-card-DnmnJ58D.js.map +0 -1
- package/dist/utils-C2EKeIw3.js +0 -72
- package/dist/utils-C2EKeIw3.js.map +0 -1
- package/dist/value-inputs-DX2dbxjj.js +0 -824
- package/dist/value-inputs-DX2dbxjj.js.map +0 -1
- package/dist/workspace-C1PZmk8L.js.map +0 -1
|
@@ -0,0 +1,1335 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { s as e } from "./ui-provider-D2_TeLqw.js";
|
|
3
|
+
import { useStrings as t } from "./lib/strings.js";
|
|
4
|
+
import { t as n } from "./utils-Cospvlj1.js";
|
|
5
|
+
import { a as r, o as i, s as a } from "./typography-CAr3dQhX.js";
|
|
6
|
+
import { a as o, c as s, o as c } from "./button-BS3KDg00.js";
|
|
7
|
+
import { r as l, t as u } from "./structure-hzCW-XsV.js";
|
|
8
|
+
import { i as d, o as f, r as p, s as m } from "./feedback-C7nR0UtT.js";
|
|
9
|
+
import { _ as h, c as g, l as _, m as v, o as y, p as b, s as x } from "./primitives-BHrwQXFC.js";
|
|
10
|
+
import { r as S } from "./number-CKRBYmZK.js";
|
|
11
|
+
import { a as C, r as w, t as T } from "./date-uf3z37Nm.js";
|
|
12
|
+
import { t as E } from "./badge-0tATj-tW.js";
|
|
13
|
+
import { t as D } from "./separator-Do5GWDYi.js";
|
|
14
|
+
import { t as O } from "./field-affordance-recipes-CkOCdE2y.js";
|
|
15
|
+
import { n as k } from "./display-DrdvPwF0.js";
|
|
16
|
+
import { c as ee, n as A, o as j, r as M, t as te, u as ne } from "./item-xzh8Df65.js";
|
|
17
|
+
import N, { forwardRef as P, useId as F } from "react";
|
|
18
|
+
import { Fragment as I, jsx as L, jsxs as R } from "react/jsx-runtime";
|
|
19
|
+
import { Info as re, Search as ie } from "lucide-react";
|
|
20
|
+
//#region src/components/blocks/data-display/dense-info-card/helpers.tsx
|
|
21
|
+
function ae({ value: e, max: t = 5, label: r }) {
|
|
22
|
+
return /* @__PURE__ */ R("div", {
|
|
23
|
+
className: n("helpers--component", "flex items-center gap-space-md"),
|
|
24
|
+
children: [/* @__PURE__ */ L("div", {
|
|
25
|
+
className: "flex items-center gap-space-xs",
|
|
26
|
+
children: Array.from({ length: t }, (t, r) => /* @__PURE__ */ L("div", { className: n("h-1.5 w-3 rounded-full", r < e ? "bg-foreground/60" : "bg-muted") }, r))
|
|
27
|
+
}), !!r && /* @__PURE__ */ L(a, {
|
|
28
|
+
size: "xs",
|
|
29
|
+
type: "secondary",
|
|
30
|
+
children: r
|
|
31
|
+
})]
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
function z({ label: e, value: t, badge: n, badgeTone: r }) {
|
|
35
|
+
return /* @__PURE__ */ R(u, {
|
|
36
|
+
direction: "horizontal",
|
|
37
|
+
align: "center",
|
|
38
|
+
justify: "between",
|
|
39
|
+
gap: "md",
|
|
40
|
+
children: [
|
|
41
|
+
/* @__PURE__ */ L(a, {
|
|
42
|
+
size: "xs",
|
|
43
|
+
className: "shrink-0 text-muted-foreground",
|
|
44
|
+
children: e
|
|
45
|
+
}),
|
|
46
|
+
!!n && /* @__PURE__ */ L(E, {
|
|
47
|
+
tone: r ?? "secondary",
|
|
48
|
+
children: n
|
|
49
|
+
}),
|
|
50
|
+
!!t && !n && /* @__PURE__ */ L(a, {
|
|
51
|
+
weight: "semibold",
|
|
52
|
+
className: "text-right tabular-nums",
|
|
53
|
+
children: t
|
|
54
|
+
})
|
|
55
|
+
]
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
//#endregion
|
|
59
|
+
//#region src/components/blocks/data-display/dense-info-card/partials/dense-info-dashboard.tsx
|
|
60
|
+
function B({ title: e, description: t, statusBadges: r, rows: i, secondaryRows: o, scale: s, footerBadges: c, footerText: l, actions: d, className: f }) {
|
|
61
|
+
return /* @__PURE__ */ L(k, {
|
|
62
|
+
title: e,
|
|
63
|
+
description: t,
|
|
64
|
+
titleSuffix: r.length > 0 ? /* @__PURE__ */ L(u, {
|
|
65
|
+
direction: "horizontal",
|
|
66
|
+
wrap: !0,
|
|
67
|
+
align: "center",
|
|
68
|
+
gap: "sm",
|
|
69
|
+
children: r.map((e) => /* @__PURE__ */ L(E, {
|
|
70
|
+
tone: e.tone,
|
|
71
|
+
children: e.label
|
|
72
|
+
}, e.label))
|
|
73
|
+
}) : void 0,
|
|
74
|
+
actions: d,
|
|
75
|
+
className: n("dense-info-dashboard--component", f),
|
|
76
|
+
children: /* @__PURE__ */ R(u, {
|
|
77
|
+
gap: "2xl",
|
|
78
|
+
children: [
|
|
79
|
+
/* @__PURE__ */ R(u, {
|
|
80
|
+
gap: "md",
|
|
81
|
+
children: [i.map((e) => /* @__PURE__ */ L(z, { ...e }, e.label)), !!s && /* @__PURE__ */ R("div", {
|
|
82
|
+
className: "flex items-center justify-between",
|
|
83
|
+
children: [/* @__PURE__ */ L(a, {
|
|
84
|
+
size: "xs",
|
|
85
|
+
className: "text-muted-foreground",
|
|
86
|
+
children: s.label
|
|
87
|
+
}), /* @__PURE__ */ L(ae, {
|
|
88
|
+
value: s.value,
|
|
89
|
+
max: s.max,
|
|
90
|
+
label: `${String(s.value)}/${String(s.max ?? 5)}`
|
|
91
|
+
})]
|
|
92
|
+
})]
|
|
93
|
+
}),
|
|
94
|
+
!!o && o.length > 0 && /* @__PURE__ */ L(u, {
|
|
95
|
+
gap: "md",
|
|
96
|
+
children: o.map((e) => /* @__PURE__ */ L(z, { ...e }, e.label))
|
|
97
|
+
}),
|
|
98
|
+
(!!c || !!l) && /* @__PURE__ */ R(u, {
|
|
99
|
+
direction: "horizontal",
|
|
100
|
+
wrap: !0,
|
|
101
|
+
align: "center",
|
|
102
|
+
gap: "md",
|
|
103
|
+
children: [!!c && c.map((e) => /* @__PURE__ */ L(E, {
|
|
104
|
+
tone: e.tone,
|
|
105
|
+
children: e.label
|
|
106
|
+
}, e.label)), !!l && /* @__PURE__ */ L(a, {
|
|
107
|
+
size: "xs",
|
|
108
|
+
className: "text-muted-foreground",
|
|
109
|
+
children: l
|
|
110
|
+
})]
|
|
111
|
+
})
|
|
112
|
+
]
|
|
113
|
+
})
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
B.displayName = "DenseInfoDashboard";
|
|
117
|
+
//#endregion
|
|
118
|
+
//#region src/components/blocks/data-display/inline-stat/inline-stat.tsx
|
|
119
|
+
function V({ label: e, value: t, layout: i = "between", mono: a = !1, className: o, labelClassName: s, valueClassName: c }) {
|
|
120
|
+
let l = a ? v : h, d = L(typeof e == "string" || typeof e == "number" ? r : "span", {
|
|
121
|
+
className: s,
|
|
122
|
+
children: e
|
|
123
|
+
});
|
|
124
|
+
return i === "stacked" ? /* @__PURE__ */ R(u, {
|
|
125
|
+
gap: "2xs",
|
|
126
|
+
className: n("inline-stat--component", o),
|
|
127
|
+
children: [d, /* @__PURE__ */ L(l, {
|
|
128
|
+
size: "inherit",
|
|
129
|
+
className: n("text-sm leading-snug", a && "tabular-nums", c),
|
|
130
|
+
children: t
|
|
131
|
+
})]
|
|
132
|
+
}) : /* @__PURE__ */ R(u, {
|
|
133
|
+
direction: "horizontal",
|
|
134
|
+
gap: "md",
|
|
135
|
+
justify: i === "between" ? "between" : "start",
|
|
136
|
+
wrap: !1,
|
|
137
|
+
className: n("inline-stat--component", o),
|
|
138
|
+
children: [d, /* @__PURE__ */ L(l, {
|
|
139
|
+
size: "inherit",
|
|
140
|
+
className: n("text-sm leading-snug", a && "tabular-nums", c),
|
|
141
|
+
children: t
|
|
142
|
+
})]
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
V.displayName = "InlineStat";
|
|
146
|
+
//#endregion
|
|
147
|
+
//#region src/components/blocks/data-display/dense-info-card/dense-info.strings.ts
|
|
148
|
+
var H = {
|
|
149
|
+
total: "Total",
|
|
150
|
+
tasks: "tasks",
|
|
151
|
+
priority: "priority"
|
|
152
|
+
};
|
|
153
|
+
//#endregion
|
|
154
|
+
//#region src/components/blocks/data-display/dense-info-card/partials/dense-info-classification.tsx
|
|
155
|
+
function U({ title: e, description: r, stats: o, items: s, totalLabel: c, totalValue: d, footerBadges: f, footerText: p, actions: m, className: g, strings: _ }) {
|
|
156
|
+
let v = t(H, _);
|
|
157
|
+
return /* @__PURE__ */ L(k, {
|
|
158
|
+
title: e,
|
|
159
|
+
description: r,
|
|
160
|
+
actions: m,
|
|
161
|
+
className: n("dense-info-classification--component", g),
|
|
162
|
+
children: /* @__PURE__ */ R(u, {
|
|
163
|
+
gap: "2xl",
|
|
164
|
+
children: [
|
|
165
|
+
/* @__PURE__ */ L(l, {
|
|
166
|
+
columns: {
|
|
167
|
+
base: 2,
|
|
168
|
+
sm: 3
|
|
169
|
+
},
|
|
170
|
+
gap: "xl",
|
|
171
|
+
children: o.map((e) => /* @__PURE__ */ R(u, {
|
|
172
|
+
gap: "dense",
|
|
173
|
+
className: "min-w-0 items-start",
|
|
174
|
+
children: [
|
|
175
|
+
/* @__PURE__ */ L(i, {
|
|
176
|
+
tag: "h4",
|
|
177
|
+
className: "border-none pb-0 text-base font-semibold tabular-nums",
|
|
178
|
+
children: e.value
|
|
179
|
+
}),
|
|
180
|
+
/* @__PURE__ */ L(a, {
|
|
181
|
+
size: "xs",
|
|
182
|
+
type: "secondary",
|
|
183
|
+
weight: "medium",
|
|
184
|
+
children: e.label
|
|
185
|
+
}),
|
|
186
|
+
!!e.trendBadge && /* @__PURE__ */ L(E, {
|
|
187
|
+
tone: e.trendTone ?? "secondary",
|
|
188
|
+
className: "self-start",
|
|
189
|
+
children: e.trendBadge
|
|
190
|
+
})
|
|
191
|
+
]
|
|
192
|
+
}, e.label))
|
|
193
|
+
}),
|
|
194
|
+
/* @__PURE__ */ R(u, {
|
|
195
|
+
gap: "md",
|
|
196
|
+
children: [/* @__PURE__ */ L(j, { children: s.map((e) => /* @__PURE__ */ R(te, {
|
|
197
|
+
size: "sm",
|
|
198
|
+
role: "listitem",
|
|
199
|
+
children: [
|
|
200
|
+
/* @__PURE__ */ L(ee, { children: /* @__PURE__ */ L("span", { className: n("h-2 w-2 shrink-0 rounded-full", e.dotColor) }) }),
|
|
201
|
+
/* @__PURE__ */ L(M, { children: /* @__PURE__ */ R(ne, {
|
|
202
|
+
bold: !1,
|
|
203
|
+
className: "gap-space-md",
|
|
204
|
+
children: [e.label, !!e.badge && /* @__PURE__ */ L(E, {
|
|
205
|
+
tone: e.badgeTone ?? "secondary",
|
|
206
|
+
children: e.badge
|
|
207
|
+
})]
|
|
208
|
+
}) }),
|
|
209
|
+
/* @__PURE__ */ L(A, { children: /* @__PURE__ */ L(h, {
|
|
210
|
+
weight: "semibold",
|
|
211
|
+
className: "tabular-nums",
|
|
212
|
+
children: e.value
|
|
213
|
+
}) })
|
|
214
|
+
]
|
|
215
|
+
}, e.label)) }), !!d && /* @__PURE__ */ R(I, { children: [/* @__PURE__ */ L(D, {}), /* @__PURE__ */ L(V, {
|
|
216
|
+
label: /* @__PURE__ */ L(a, {
|
|
217
|
+
tag: "span",
|
|
218
|
+
weight: "bold",
|
|
219
|
+
lineHeight: "tight",
|
|
220
|
+
children: c ?? v.total
|
|
221
|
+
}),
|
|
222
|
+
value: d,
|
|
223
|
+
valueClassName: "text-sm font-bold tabular-nums"
|
|
224
|
+
})] })]
|
|
225
|
+
}),
|
|
226
|
+
(!!f || !!p) && /* @__PURE__ */ R(u, {
|
|
227
|
+
direction: "horizontal",
|
|
228
|
+
wrap: !0,
|
|
229
|
+
align: "center",
|
|
230
|
+
gap: "md",
|
|
231
|
+
children: [!!f && f.map((e) => /* @__PURE__ */ L(E, {
|
|
232
|
+
tone: e.tone,
|
|
233
|
+
children: e.label
|
|
234
|
+
}, e.label)), !!p && /* @__PURE__ */ L(a, {
|
|
235
|
+
size: "xs",
|
|
236
|
+
className: "text-muted-foreground",
|
|
237
|
+
children: p
|
|
238
|
+
})]
|
|
239
|
+
})
|
|
240
|
+
]
|
|
241
|
+
})
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
U.displayName = "DenseInfoClassification";
|
|
245
|
+
//#endregion
|
|
246
|
+
//#region src/components/blocks/data-display/dense-info-card/partials/dense-info-financial.tsx
|
|
247
|
+
function W({ title: e, description: r, headerBadges: i, lineItems: o, totalLabel: s, totalAmount: c, footerBadges: l, footerText: d, actions: f, className: p, strings: m }) {
|
|
248
|
+
let g = t(H, m);
|
|
249
|
+
return /* @__PURE__ */ L(k, {
|
|
250
|
+
title: e,
|
|
251
|
+
description: r,
|
|
252
|
+
titleSuffix: i.length > 0 ? /* @__PURE__ */ L(u, {
|
|
253
|
+
direction: "horizontal",
|
|
254
|
+
wrap: !0,
|
|
255
|
+
align: "center",
|
|
256
|
+
gap: "sm",
|
|
257
|
+
children: i.map((e) => /* @__PURE__ */ L(E, {
|
|
258
|
+
tone: e.tone,
|
|
259
|
+
children: e.label
|
|
260
|
+
}, e.label))
|
|
261
|
+
}) : void 0,
|
|
262
|
+
actions: f,
|
|
263
|
+
className: n("dense-info-financial--component", p),
|
|
264
|
+
children: /* @__PURE__ */ R(u, {
|
|
265
|
+
gap: "2xl",
|
|
266
|
+
children: [/* @__PURE__ */ R(u, {
|
|
267
|
+
gap: "md",
|
|
268
|
+
children: [/* @__PURE__ */ L(j, { children: o.map((e) => /* @__PURE__ */ R(te, {
|
|
269
|
+
size: "sm",
|
|
270
|
+
role: "listitem",
|
|
271
|
+
children: [/* @__PURE__ */ L(M, { children: /* @__PURE__ */ R(ne, {
|
|
272
|
+
className: "gap-space-md",
|
|
273
|
+
children: [e.label, !!e.badge && /* @__PURE__ */ L(E, {
|
|
274
|
+
tone: e.badgeTone ?? "secondary",
|
|
275
|
+
children: e.badge
|
|
276
|
+
})]
|
|
277
|
+
}) }), /* @__PURE__ */ L(A, { children: /* @__PURE__ */ L(h, {
|
|
278
|
+
weight: "semibold",
|
|
279
|
+
className: "tabular-nums",
|
|
280
|
+
children: e.amount
|
|
281
|
+
}) })]
|
|
282
|
+
}, e.label)) }), !!c && /* @__PURE__ */ R(I, { children: [/* @__PURE__ */ L(D, {}), /* @__PURE__ */ L(V, {
|
|
283
|
+
label: /* @__PURE__ */ L(a, {
|
|
284
|
+
tag: "span",
|
|
285
|
+
weight: "semibold",
|
|
286
|
+
lineHeight: "tight",
|
|
287
|
+
children: s ?? g.total
|
|
288
|
+
}),
|
|
289
|
+
value: c,
|
|
290
|
+
valueClassName: "text-sm font-semibold tabular-nums"
|
|
291
|
+
})] })]
|
|
292
|
+
}), (!!l || !!d) && /* @__PURE__ */ R(u, {
|
|
293
|
+
direction: "horizontal",
|
|
294
|
+
wrap: !0,
|
|
295
|
+
align: "center",
|
|
296
|
+
gap: "md",
|
|
297
|
+
children: [!!l && l.map((e) => /* @__PURE__ */ L(E, {
|
|
298
|
+
tone: e.tone,
|
|
299
|
+
children: e.label
|
|
300
|
+
}, e.label)), !!d && /* @__PURE__ */ L(a, {
|
|
301
|
+
size: "xs",
|
|
302
|
+
className: "text-muted-foreground",
|
|
303
|
+
children: d
|
|
304
|
+
})]
|
|
305
|
+
})]
|
|
306
|
+
})
|
|
307
|
+
});
|
|
308
|
+
}
|
|
309
|
+
W.displayName = "DenseInfoFinancial";
|
|
310
|
+
//#endregion
|
|
311
|
+
//#region src/components/blocks/data-display/dense-info-card/partials/dense-info-project.tsx
|
|
312
|
+
function G({ title: e, description: r, statusLabel: o, statusTone: s, metaPairs: c, date: l, priority: d, completedTasks: f, totalTasks: p, actions: m, className: h, strings: g }) {
|
|
313
|
+
let _ = t(H, g), v = p > 0 ? Math.round(f / p * 100) : 0, y = 2 * Math.PI * 7, b = y - v / 100 * y;
|
|
314
|
+
return /* @__PURE__ */ L(k, {
|
|
315
|
+
padding: "md",
|
|
316
|
+
actions: m,
|
|
317
|
+
className: n("dense-info-project-card--component", h),
|
|
318
|
+
children: /* @__PURE__ */ R(u, {
|
|
319
|
+
gap: "lg",
|
|
320
|
+
children: [
|
|
321
|
+
/* @__PURE__ */ R(u, {
|
|
322
|
+
gap: "normal",
|
|
323
|
+
children: [/* @__PURE__ */ R(u, {
|
|
324
|
+
direction: "horizontal",
|
|
325
|
+
wrap: !0,
|
|
326
|
+
align: "center",
|
|
327
|
+
gap: "sm",
|
|
328
|
+
children: [/* @__PURE__ */ L(i, {
|
|
329
|
+
tag: "h5",
|
|
330
|
+
className: "font-bold border-none pb-0",
|
|
331
|
+
children: e
|
|
332
|
+
}), /* @__PURE__ */ L(E, {
|
|
333
|
+
tone: s,
|
|
334
|
+
dot: !0,
|
|
335
|
+
children: o
|
|
336
|
+
})]
|
|
337
|
+
}), !!r && /* @__PURE__ */ L(a, {
|
|
338
|
+
type: "secondary",
|
|
339
|
+
className: "line-clamp-2",
|
|
340
|
+
children: r
|
|
341
|
+
})]
|
|
342
|
+
}),
|
|
343
|
+
!!c && c.length > 0 && /* @__PURE__ */ L(u, {
|
|
344
|
+
direction: "horizontal",
|
|
345
|
+
wrap: !0,
|
|
346
|
+
align: "center",
|
|
347
|
+
gap: "sm",
|
|
348
|
+
children: c.map((e, t) => /* @__PURE__ */ R("span", {
|
|
349
|
+
className: "flex items-center gap-space-xs",
|
|
350
|
+
children: [
|
|
351
|
+
t > 0 && /* @__PURE__ */ L(a, {
|
|
352
|
+
tag: "span",
|
|
353
|
+
type: "discrete",
|
|
354
|
+
children: "•"
|
|
355
|
+
}),
|
|
356
|
+
!!e.icon && /* @__PURE__ */ L("span", {
|
|
357
|
+
className: "text-muted-foreground",
|
|
358
|
+
children: e.icon
|
|
359
|
+
}),
|
|
360
|
+
/* @__PURE__ */ L(a, {
|
|
361
|
+
size: "xs",
|
|
362
|
+
type: "secondary",
|
|
363
|
+
children: e.label
|
|
364
|
+
})
|
|
365
|
+
]
|
|
366
|
+
}, e.label))
|
|
367
|
+
}),
|
|
368
|
+
(!!l || !!d) && /* @__PURE__ */ R(u, {
|
|
369
|
+
direction: "horizontal",
|
|
370
|
+
align: "center",
|
|
371
|
+
justify: "between",
|
|
372
|
+
gap: "md",
|
|
373
|
+
children: [!!l && /* @__PURE__ */ L(a, {
|
|
374
|
+
size: "xs",
|
|
375
|
+
type: "secondary",
|
|
376
|
+
children: l
|
|
377
|
+
}), !!d && /* @__PURE__ */ R(a, {
|
|
378
|
+
size: "xs",
|
|
379
|
+
type: "secondary",
|
|
380
|
+
children: [
|
|
381
|
+
d,
|
|
382
|
+
" ",
|
|
383
|
+
_.priority
|
|
384
|
+
]
|
|
385
|
+
})]
|
|
386
|
+
}),
|
|
387
|
+
/* @__PURE__ */ R("div", {
|
|
388
|
+
className: "flex items-center gap-space-md",
|
|
389
|
+
children: [/* @__PURE__ */ R("svg", {
|
|
390
|
+
width: "20",
|
|
391
|
+
height: "20",
|
|
392
|
+
viewBox: "0 0 20 20",
|
|
393
|
+
className: "shrink-0",
|
|
394
|
+
"aria-hidden": "true",
|
|
395
|
+
children: [/* @__PURE__ */ L("circle", {
|
|
396
|
+
cx: "10",
|
|
397
|
+
cy: "10",
|
|
398
|
+
r: "7",
|
|
399
|
+
fill: "none",
|
|
400
|
+
stroke: "currentColor",
|
|
401
|
+
strokeWidth: "2",
|
|
402
|
+
className: "stroke-border"
|
|
403
|
+
}), /* @__PURE__ */ L("circle", {
|
|
404
|
+
cx: "10",
|
|
405
|
+
cy: "10",
|
|
406
|
+
r: "7",
|
|
407
|
+
fill: "none",
|
|
408
|
+
stroke: "currentColor",
|
|
409
|
+
strokeWidth: "2",
|
|
410
|
+
strokeDasharray: y,
|
|
411
|
+
strokeDashoffset: b,
|
|
412
|
+
strokeLinecap: "round",
|
|
413
|
+
className: "text-primary-accent",
|
|
414
|
+
transform: "rotate(-90 10 10)"
|
|
415
|
+
})]
|
|
416
|
+
}), /* @__PURE__ */ R(a, {
|
|
417
|
+
size: "xs",
|
|
418
|
+
weight: "medium",
|
|
419
|
+
children: [
|
|
420
|
+
f,
|
|
421
|
+
"/",
|
|
422
|
+
p,
|
|
423
|
+
" ",
|
|
424
|
+
_.tasks
|
|
425
|
+
]
|
|
426
|
+
})]
|
|
427
|
+
})
|
|
428
|
+
]
|
|
429
|
+
})
|
|
430
|
+
});
|
|
431
|
+
}
|
|
432
|
+
G.displayName = "DenseInfoProjectCard";
|
|
433
|
+
//#endregion
|
|
434
|
+
//#region src/components/blocks/data-display/dense-info-card/partials/dense-info-score.tsx
|
|
435
|
+
function K({ title: e, description: t, statusBadges: r, score: o, scoreLevel: s, scoreFilled: c, scoreTotal: l = 10, rows: d, footerBadges: f, actions: p, className: m }) {
|
|
436
|
+
let h = s === "good" ? "bg-success" : s === "medium" ? "bg-warning" : "bg-destructive";
|
|
437
|
+
return /* @__PURE__ */ L(k, {
|
|
438
|
+
title: e,
|
|
439
|
+
description: t,
|
|
440
|
+
titleSuffix: r.length > 0 ? /* @__PURE__ */ L(u, {
|
|
441
|
+
direction: "horizontal",
|
|
442
|
+
wrap: !0,
|
|
443
|
+
align: "center",
|
|
444
|
+
gap: "sm",
|
|
445
|
+
children: r.map((e) => /* @__PURE__ */ L(E, {
|
|
446
|
+
tone: e.tone,
|
|
447
|
+
children: e.label
|
|
448
|
+
}, e.label))
|
|
449
|
+
}) : void 0,
|
|
450
|
+
actions: p,
|
|
451
|
+
className: n("dense-info-score-card--component", m),
|
|
452
|
+
children: /* @__PURE__ */ R(u, {
|
|
453
|
+
gap: "2xl",
|
|
454
|
+
children: [
|
|
455
|
+
/* @__PURE__ */ R(u, {
|
|
456
|
+
gap: "md",
|
|
457
|
+
align: "center",
|
|
458
|
+
children: [/* @__PURE__ */ L(i, {
|
|
459
|
+
tag: "h2",
|
|
460
|
+
className: "text-base font-bold tabular-nums border-none pb-0",
|
|
461
|
+
children: String(o)
|
|
462
|
+
}), /* @__PURE__ */ L(u, {
|
|
463
|
+
direction: "horizontal",
|
|
464
|
+
align: "center",
|
|
465
|
+
justify: "center",
|
|
466
|
+
gap: "xs",
|
|
467
|
+
children: Array.from({ length: l }, (e, t) => /* @__PURE__ */ L("div", { className: n("h-5 w-2 rounded-radius-sm", t < c ? h : "bg-muted") }, t))
|
|
468
|
+
})]
|
|
469
|
+
}),
|
|
470
|
+
/* @__PURE__ */ L(u, {
|
|
471
|
+
gap: "md",
|
|
472
|
+
children: d.map((e) => /* @__PURE__ */ L(V, {
|
|
473
|
+
label: /* @__PURE__ */ L(a, {
|
|
474
|
+
tag: "span",
|
|
475
|
+
size: "xs",
|
|
476
|
+
type: "secondary",
|
|
477
|
+
weight: "medium",
|
|
478
|
+
lineHeight: "tight",
|
|
479
|
+
children: e.label
|
|
480
|
+
}),
|
|
481
|
+
value: e.value,
|
|
482
|
+
valueClassName: "text-sm font-semibold text-right tabular-nums"
|
|
483
|
+
}, e.label))
|
|
484
|
+
}),
|
|
485
|
+
!!f && f.length > 0 && /* @__PURE__ */ L(u, {
|
|
486
|
+
direction: "horizontal",
|
|
487
|
+
wrap: !0,
|
|
488
|
+
align: "center",
|
|
489
|
+
gap: "md",
|
|
490
|
+
children: f.map((e) => /* @__PURE__ */ L(E, {
|
|
491
|
+
tone: e.tone,
|
|
492
|
+
children: e.label
|
|
493
|
+
}, e.label))
|
|
494
|
+
})
|
|
495
|
+
]
|
|
496
|
+
})
|
|
497
|
+
});
|
|
498
|
+
}
|
|
499
|
+
K.displayName = "DenseInfoScoreCard";
|
|
500
|
+
//#endregion
|
|
501
|
+
//#region src/components/blocks/data-display/empty-state/empty-state.strings.ts
|
|
502
|
+
var q = {
|
|
503
|
+
title: "Nothing here yet",
|
|
504
|
+
description: "Once data lands, it will show up in this view.",
|
|
505
|
+
ariaLabel: "Empty state"
|
|
506
|
+
}, oe = {
|
|
507
|
+
sm: "!p-surface-xs",
|
|
508
|
+
md: "!p-surface",
|
|
509
|
+
lg: "!p-surface-lg"
|
|
510
|
+
}, se = {
|
|
511
|
+
none: "default",
|
|
512
|
+
icon: "icon",
|
|
513
|
+
"icon-soft": "icon",
|
|
514
|
+
illustration: "default"
|
|
515
|
+
}, ce = {
|
|
516
|
+
none: void 0,
|
|
517
|
+
icon: void 0,
|
|
518
|
+
"icon-soft": "bg-muted/40 text-muted-foreground",
|
|
519
|
+
illustration: "mb-space-xl"
|
|
520
|
+
}, J = P(function({ title: r, description: o, media: s, mediaVariant: c = "none", renderMedia: l, actions: h, footer: g, padding: _, border: v = !1, className: y, strings: b, ariaLabel: x }, S) {
|
|
521
|
+
let C = t(q, b), { defaultScale: w } = e(), T = _ ?? w ?? "md", E = r ?? C.title, D = o === !1 ? null : o ?? C.description, O = l ? l({ mediaVariant: c }) : s, k = !!O;
|
|
522
|
+
return /* @__PURE__ */ R(p, {
|
|
523
|
+
ref: S,
|
|
524
|
+
role: "status",
|
|
525
|
+
"aria-label": x ?? C.ariaLabel,
|
|
526
|
+
className: n("empty-state--component", oe[T], v ? "border-border border border-dashed" : "border-border border-0", y),
|
|
527
|
+
children: [/* @__PURE__ */ R(f, {
|
|
528
|
+
className: "empty-state--header",
|
|
529
|
+
children: [
|
|
530
|
+
!!k && /* @__PURE__ */ L(m, {
|
|
531
|
+
variant: se[c],
|
|
532
|
+
className: n("empty-state--media", ce[c]),
|
|
533
|
+
children: O
|
|
534
|
+
}),
|
|
535
|
+
/* @__PURE__ */ L(i, {
|
|
536
|
+
tag: "h3",
|
|
537
|
+
align: "center",
|
|
538
|
+
className: "empty-state--title border-0 pb-0",
|
|
539
|
+
"data-slot": "empty-title",
|
|
540
|
+
children: E
|
|
541
|
+
}),
|
|
542
|
+
!!D && /* @__PURE__ */ L(a, {
|
|
543
|
+
type: "secondary",
|
|
544
|
+
align: "center",
|
|
545
|
+
className: "empty-state--description leading-relaxed [&>a]:text-primary-accent [&>a]:underline [&>a]:underline-offset-4 hover:[&>a]:no-underline",
|
|
546
|
+
"data-slot": "empty-description",
|
|
547
|
+
children: D
|
|
548
|
+
})
|
|
549
|
+
]
|
|
550
|
+
}), (!!h || !!g) && /* @__PURE__ */ R(d, {
|
|
551
|
+
className: "empty-state--content",
|
|
552
|
+
children: [!!h && /* @__PURE__ */ L(u, {
|
|
553
|
+
direction: "horizontal",
|
|
554
|
+
gap: "md",
|
|
555
|
+
justify: "center",
|
|
556
|
+
className: "empty-state--actions",
|
|
557
|
+
children: h
|
|
558
|
+
}), !!g && /* @__PURE__ */ L(a, {
|
|
559
|
+
tag: "div",
|
|
560
|
+
size: "xs",
|
|
561
|
+
type: "secondary",
|
|
562
|
+
align: "center",
|
|
563
|
+
className: "empty-state--footer",
|
|
564
|
+
children: g
|
|
565
|
+
})]
|
|
566
|
+
})]
|
|
567
|
+
});
|
|
568
|
+
});
|
|
569
|
+
J.displayName = "EmptyState";
|
|
570
|
+
//#endregion
|
|
571
|
+
//#region src/components/blocks/data-display/empty-state/partials/illustrations/document-stack.tsx
|
|
572
|
+
function Y({ className: e }) {
|
|
573
|
+
return /* @__PURE__ */ L("div", {
|
|
574
|
+
className: n("document-stack-illustration--component relative h-24 w-32", e),
|
|
575
|
+
"aria-hidden": "true",
|
|
576
|
+
children: /* @__PURE__ */ R("svg", {
|
|
577
|
+
viewBox: "0 0 128 96",
|
|
578
|
+
className: "h-full w-full overflow-visible",
|
|
579
|
+
focusable: "false",
|
|
580
|
+
children: [/* @__PURE__ */ R("g", {
|
|
581
|
+
transform: "rotate(-6 44 44)",
|
|
582
|
+
children: [
|
|
583
|
+
/* @__PURE__ */ L("rect", {
|
|
584
|
+
x: 4.5,
|
|
585
|
+
y: 4.5,
|
|
586
|
+
width: 79,
|
|
587
|
+
height: 79,
|
|
588
|
+
style: { rx: "var(--radius-md)" },
|
|
589
|
+
className: "fill-muted/70 dark:fill-muted/40 stroke-border/50 drop-shadow-xs"
|
|
590
|
+
}),
|
|
591
|
+
/* @__PURE__ */ L("rect", {
|
|
592
|
+
x: 13,
|
|
593
|
+
y: 13,
|
|
594
|
+
width: 48,
|
|
595
|
+
height: 8,
|
|
596
|
+
rx: 4,
|
|
597
|
+
className: "fill-muted"
|
|
598
|
+
}),
|
|
599
|
+
/* @__PURE__ */ L("rect", {
|
|
600
|
+
x: 13,
|
|
601
|
+
y: 27,
|
|
602
|
+
width: 40,
|
|
603
|
+
height: 6,
|
|
604
|
+
rx: 3,
|
|
605
|
+
className: "fill-muted/60"
|
|
606
|
+
}),
|
|
607
|
+
/* @__PURE__ */ L("rect", {
|
|
608
|
+
x: 13,
|
|
609
|
+
y: 39,
|
|
610
|
+
width: 36,
|
|
611
|
+
height: 6,
|
|
612
|
+
rx: 3,
|
|
613
|
+
className: "fill-muted/60"
|
|
614
|
+
})
|
|
615
|
+
]
|
|
616
|
+
}), /* @__PURE__ */ R("g", {
|
|
617
|
+
transform: "rotate(3 84 48)",
|
|
618
|
+
children: [
|
|
619
|
+
/* @__PURE__ */ L("rect", {
|
|
620
|
+
x: 44.5,
|
|
621
|
+
y: 8.5,
|
|
622
|
+
width: 79,
|
|
623
|
+
height: 79,
|
|
624
|
+
style: { rx: "var(--radius-md)" },
|
|
625
|
+
className: "fill-background stroke-border drop-shadow-xs"
|
|
626
|
+
}),
|
|
627
|
+
/* @__PURE__ */ L("rect", {
|
|
628
|
+
x: 53,
|
|
629
|
+
y: 17,
|
|
630
|
+
width: 48,
|
|
631
|
+
height: 8,
|
|
632
|
+
rx: 4,
|
|
633
|
+
className: "fill-muted"
|
|
634
|
+
}),
|
|
635
|
+
/* @__PURE__ */ L("rect", {
|
|
636
|
+
x: 53,
|
|
637
|
+
y: 31,
|
|
638
|
+
width: 40,
|
|
639
|
+
height: 6,
|
|
640
|
+
rx: 3,
|
|
641
|
+
className: "fill-muted/60"
|
|
642
|
+
}),
|
|
643
|
+
/* @__PURE__ */ L("rect", {
|
|
644
|
+
x: 53,
|
|
645
|
+
y: 43,
|
|
646
|
+
width: 36,
|
|
647
|
+
height: 6,
|
|
648
|
+
rx: 3,
|
|
649
|
+
className: "fill-muted/60"
|
|
650
|
+
}),
|
|
651
|
+
/* @__PURE__ */ L("circle", {
|
|
652
|
+
cx: 56,
|
|
653
|
+
cy: 76,
|
|
654
|
+
r: 3,
|
|
655
|
+
className: "fill-success"
|
|
656
|
+
}),
|
|
657
|
+
/* @__PURE__ */ L("rect", {
|
|
658
|
+
x: 63,
|
|
659
|
+
y: 73,
|
|
660
|
+
width: 32,
|
|
661
|
+
height: 6,
|
|
662
|
+
rx: 3,
|
|
663
|
+
className: "fill-muted/60"
|
|
664
|
+
})
|
|
665
|
+
]
|
|
666
|
+
})]
|
|
667
|
+
})
|
|
668
|
+
});
|
|
669
|
+
}
|
|
670
|
+
Y.displayName = "DocumentStackIllustration";
|
|
671
|
+
//#endregion
|
|
672
|
+
//#region src/components/blocks/data-display/empty-state/partials/illustrations/inbox-clean.tsx
|
|
673
|
+
function le({ className: e }) {
|
|
674
|
+
let t = F();
|
|
675
|
+
return /* @__PURE__ */ L("div", {
|
|
676
|
+
className: n("inbox-clean-illustration--component relative h-24 w-32", e),
|
|
677
|
+
"aria-hidden": "true",
|
|
678
|
+
children: /* @__PURE__ */ R("svg", {
|
|
679
|
+
viewBox: "0 0 128 96",
|
|
680
|
+
className: "h-full w-full overflow-visible",
|
|
681
|
+
focusable: "false",
|
|
682
|
+
children: [
|
|
683
|
+
/* @__PURE__ */ L("defs", { children: /* @__PURE__ */ L("clipPath", {
|
|
684
|
+
id: t,
|
|
685
|
+
children: /* @__PURE__ */ L("rect", {
|
|
686
|
+
x: .5,
|
|
687
|
+
y: 40.5,
|
|
688
|
+
width: 127,
|
|
689
|
+
height: 55,
|
|
690
|
+
style: { rx: "var(--radius)" }
|
|
691
|
+
})
|
|
692
|
+
}) }),
|
|
693
|
+
/* @__PURE__ */ L("circle", {
|
|
694
|
+
cx: 64,
|
|
695
|
+
cy: 16,
|
|
696
|
+
r: 15.5,
|
|
697
|
+
className: "fill-success/12 stroke-success/30"
|
|
698
|
+
}),
|
|
699
|
+
/* @__PURE__ */ L("path", {
|
|
700
|
+
d: "M59 16l3 3 7-7",
|
|
701
|
+
fill: "none",
|
|
702
|
+
className: "stroke-success",
|
|
703
|
+
strokeWidth: 2,
|
|
704
|
+
strokeLinecap: "round",
|
|
705
|
+
strokeLinejoin: "round"
|
|
706
|
+
}),
|
|
707
|
+
/* @__PURE__ */ L("rect", {
|
|
708
|
+
x: .5,
|
|
709
|
+
y: 40.5,
|
|
710
|
+
width: 127,
|
|
711
|
+
height: 55,
|
|
712
|
+
style: { rx: "var(--radius)" },
|
|
713
|
+
className: "fill-background drop-shadow-xs"
|
|
714
|
+
}),
|
|
715
|
+
/* @__PURE__ */ R("g", {
|
|
716
|
+
clipPath: `url(#${t})`,
|
|
717
|
+
children: [
|
|
718
|
+
/* @__PURE__ */ L("rect", {
|
|
719
|
+
x: 1,
|
|
720
|
+
y: 41,
|
|
721
|
+
width: 126,
|
|
722
|
+
height: 12,
|
|
723
|
+
className: "fill-muted/30"
|
|
724
|
+
}),
|
|
725
|
+
/* @__PURE__ */ L("rect", {
|
|
726
|
+
x: 13,
|
|
727
|
+
y: 66,
|
|
728
|
+
width: 48,
|
|
729
|
+
height: 6,
|
|
730
|
+
rx: 3,
|
|
731
|
+
className: "fill-muted/60"
|
|
732
|
+
}),
|
|
733
|
+
/* @__PURE__ */ L("rect", {
|
|
734
|
+
x: 13,
|
|
735
|
+
y: 76,
|
|
736
|
+
width: 32,
|
|
737
|
+
height: 6,
|
|
738
|
+
rx: 3,
|
|
739
|
+
className: "fill-muted/40"
|
|
740
|
+
}),
|
|
741
|
+
/* @__PURE__ */ L("circle", {
|
|
742
|
+
cx: 109,
|
|
743
|
+
cy: 74,
|
|
744
|
+
r: 6,
|
|
745
|
+
className: "fill-muted/40"
|
|
746
|
+
})
|
|
747
|
+
]
|
|
748
|
+
}),
|
|
749
|
+
/* @__PURE__ */ L("rect", {
|
|
750
|
+
x: .5,
|
|
751
|
+
y: 40.5,
|
|
752
|
+
width: 127,
|
|
753
|
+
height: 55,
|
|
754
|
+
style: { rx: "var(--radius)" },
|
|
755
|
+
fill: "none",
|
|
756
|
+
className: "stroke-border"
|
|
757
|
+
})
|
|
758
|
+
]
|
|
759
|
+
})
|
|
760
|
+
});
|
|
761
|
+
}
|
|
762
|
+
le.displayName = "InboxCleanIllustration";
|
|
763
|
+
//#endregion
|
|
764
|
+
//#region src/components/blocks/data-display/empty-state/partials/illustrations/search-glass.tsx
|
|
765
|
+
function ue({ className: e }) {
|
|
766
|
+
return /* @__PURE__ */ L("div", {
|
|
767
|
+
className: n("search-glass-illustration--component", "flex size-20 items-center justify-center rounded-full bg-muted/40 ring-8 ring-muted/20", e),
|
|
768
|
+
"aria-hidden": "true",
|
|
769
|
+
children: /* @__PURE__ */ L(ie, { className: "size-8 text-muted-foreground" })
|
|
770
|
+
});
|
|
771
|
+
}
|
|
772
|
+
ue.displayName = "SearchGlassIllustration";
|
|
773
|
+
//#endregion
|
|
774
|
+
//#region src/components/blocks/data-display/empty-state/partials/illustrations/stacked-cards.tsx
|
|
775
|
+
function de({ className: e }) {
|
|
776
|
+
let t = F();
|
|
777
|
+
return /* @__PURE__ */ L("div", {
|
|
778
|
+
className: n("stacked-cards-illustration--component relative h-24 w-52", e),
|
|
779
|
+
"aria-hidden": "true",
|
|
780
|
+
children: /* @__PURE__ */ R("svg", {
|
|
781
|
+
viewBox: "0 0 208 96",
|
|
782
|
+
className: "h-full w-full overflow-visible",
|
|
783
|
+
focusable: "false",
|
|
784
|
+
children: [
|
|
785
|
+
/* @__PURE__ */ L("defs", { children: /* @__PURE__ */ R("linearGradient", {
|
|
786
|
+
id: t,
|
|
787
|
+
x1: "0",
|
|
788
|
+
y1: "0",
|
|
789
|
+
x2: "0",
|
|
790
|
+
y2: "1",
|
|
791
|
+
children: [
|
|
792
|
+
/* @__PURE__ */ L("stop", {
|
|
793
|
+
stopColor: "var(--background)",
|
|
794
|
+
stopOpacity: 0
|
|
795
|
+
}),
|
|
796
|
+
/* @__PURE__ */ L("stop", {
|
|
797
|
+
offset: "0.5",
|
|
798
|
+
stopColor: "var(--background)",
|
|
799
|
+
stopOpacity: .6
|
|
800
|
+
}),
|
|
801
|
+
/* @__PURE__ */ L("stop", {
|
|
802
|
+
offset: "1",
|
|
803
|
+
stopColor: "var(--background)"
|
|
804
|
+
})
|
|
805
|
+
]
|
|
806
|
+
}) }),
|
|
807
|
+
/* @__PURE__ */ L("rect", {
|
|
808
|
+
x: 24.5,
|
|
809
|
+
y: .5,
|
|
810
|
+
width: 159,
|
|
811
|
+
height: 23,
|
|
812
|
+
style: { rx: "var(--radius)" },
|
|
813
|
+
className: "fill-muted/60 dark:fill-muted/30 stroke-border/50"
|
|
814
|
+
}),
|
|
815
|
+
/* @__PURE__ */ L("rect", {
|
|
816
|
+
x: 12.5,
|
|
817
|
+
y: 12.5,
|
|
818
|
+
width: 183,
|
|
819
|
+
height: 23,
|
|
820
|
+
style: { rx: "var(--radius)" },
|
|
821
|
+
className: "fill-muted/80 dark:fill-muted/50 stroke-border/60"
|
|
822
|
+
}),
|
|
823
|
+
/* @__PURE__ */ L("rect", {
|
|
824
|
+
x: .5,
|
|
825
|
+
y: 24.5,
|
|
826
|
+
width: 207,
|
|
827
|
+
height: 63,
|
|
828
|
+
style: { rx: "var(--radius)" },
|
|
829
|
+
className: "fill-background stroke-border drop-shadow-xs"
|
|
830
|
+
}),
|
|
831
|
+
/* @__PURE__ */ L("rect", {
|
|
832
|
+
x: 17,
|
|
833
|
+
y: 40,
|
|
834
|
+
width: 32,
|
|
835
|
+
height: 32,
|
|
836
|
+
rx: 4,
|
|
837
|
+
className: "fill-muted"
|
|
838
|
+
}),
|
|
839
|
+
/* @__PURE__ */ L("rect", {
|
|
840
|
+
x: 61,
|
|
841
|
+
y: 44,
|
|
842
|
+
width: 97.5,
|
|
843
|
+
height: 10,
|
|
844
|
+
rx: 4,
|
|
845
|
+
className: "fill-muted"
|
|
846
|
+
}),
|
|
847
|
+
/* @__PURE__ */ L("rect", {
|
|
848
|
+
x: 61,
|
|
849
|
+
y: 60,
|
|
850
|
+
width: 65,
|
|
851
|
+
height: 8,
|
|
852
|
+
rx: 4,
|
|
853
|
+
className: "fill-muted/60"
|
|
854
|
+
}),
|
|
855
|
+
/* @__PURE__ */ L("rect", {
|
|
856
|
+
y: 64,
|
|
857
|
+
width: 208,
|
|
858
|
+
height: 32,
|
|
859
|
+
fill: `url(#${t})`
|
|
860
|
+
})
|
|
861
|
+
]
|
|
862
|
+
})
|
|
863
|
+
});
|
|
864
|
+
}
|
|
865
|
+
de.displayName = "StackedCardsIllustration";
|
|
866
|
+
//#endregion
|
|
867
|
+
//#region src/components/blocks/data-display/empty-state/partials/illustrations/users-circle.tsx
|
|
868
|
+
function fe({ className: e }) {
|
|
869
|
+
return /* @__PURE__ */ R("div", {
|
|
870
|
+
className: n("users-circle-illustration--component relative flex h-24 w-32 items-center justify-center", e),
|
|
871
|
+
"aria-hidden": "true",
|
|
872
|
+
children: [
|
|
873
|
+
/* @__PURE__ */ L("div", { className: "bg-muted/70 border-border absolute left-2 size-12 rounded-full border-2" }),
|
|
874
|
+
/* @__PURE__ */ L("div", { className: "bg-muted border-border z-10 size-14 rounded-full border-2 shadow-sm" }),
|
|
875
|
+
/* @__PURE__ */ L("div", { className: "bg-muted/60 border-border absolute right-2 size-10 rounded-full border-2" })
|
|
876
|
+
]
|
|
877
|
+
});
|
|
878
|
+
}
|
|
879
|
+
fe.displayName = "UsersCircleIllustration";
|
|
880
|
+
//#endregion
|
|
881
|
+
//#region src/components/blocks/data-display/metadata/metadata-list.strings.ts
|
|
882
|
+
var pe = {
|
|
883
|
+
formatInfoAriaLabel: (e) => `${e} info`,
|
|
884
|
+
infoFallback: "Info"
|
|
885
|
+
};
|
|
886
|
+
//#endregion
|
|
887
|
+
//#region src/components/blocks/data-display/metadata/metadata-value.tsx
|
|
888
|
+
function me(e) {
|
|
889
|
+
return e == null || e === "";
|
|
890
|
+
}
|
|
891
|
+
function he(e, t = "—") {
|
|
892
|
+
return /* @__PURE__ */ L(b, {
|
|
893
|
+
className: n("metadata-value--component", e),
|
|
894
|
+
children: t
|
|
895
|
+
});
|
|
896
|
+
}
|
|
897
|
+
function ge(e) {
|
|
898
|
+
throw Error("Unsupported metadata value descriptor.");
|
|
899
|
+
}
|
|
900
|
+
function X(e) {
|
|
901
|
+
if (e.kind === "node") return /* @__PURE__ */ L(I, { children: e.node });
|
|
902
|
+
if (e.kind === "empty" || e.kind !== "link" && me(e.value)) return he(e.className, e.emptyLabel);
|
|
903
|
+
switch (e.kind) {
|
|
904
|
+
case void 0:
|
|
905
|
+
case "text": return /* @__PURE__ */ L(h, {
|
|
906
|
+
className: n("metadata-value--component", e.className),
|
|
907
|
+
children: e.display ?? e.value
|
|
908
|
+
});
|
|
909
|
+
case "mono": return /* @__PURE__ */ L(v, {
|
|
910
|
+
className: n("metadata-value--component", e.className),
|
|
911
|
+
children: e.display ?? e.value
|
|
912
|
+
});
|
|
913
|
+
case "email": return /* @__PURE__ */ L(y, {
|
|
914
|
+
value: e.value,
|
|
915
|
+
display: e.display,
|
|
916
|
+
emptyLabel: e.emptyLabel,
|
|
917
|
+
className: n("metadata-value--component", e.className)
|
|
918
|
+
});
|
|
919
|
+
case "phone": return /* @__PURE__ */ L(g, {
|
|
920
|
+
value: e.value,
|
|
921
|
+
display: e.display,
|
|
922
|
+
emptyLabel: e.emptyLabel,
|
|
923
|
+
className: n("metadata-value--component", e.className)
|
|
924
|
+
});
|
|
925
|
+
case "url": return /* @__PURE__ */ L(_, {
|
|
926
|
+
value: e.value,
|
|
927
|
+
display: e.display,
|
|
928
|
+
emptyLabel: e.emptyLabel,
|
|
929
|
+
className: n("metadata-value--component", e.className)
|
|
930
|
+
});
|
|
931
|
+
case "link": return /* @__PURE__ */ L(x, {
|
|
932
|
+
href: e.href,
|
|
933
|
+
emptyLabel: e.emptyLabel,
|
|
934
|
+
className: n("metadata-value--component", e.className),
|
|
935
|
+
children: e.display ?? e.value ?? e.href
|
|
936
|
+
});
|
|
937
|
+
case "date": return /* @__PURE__ */ L(T, {
|
|
938
|
+
value: e.value,
|
|
939
|
+
format: e.dateFormat,
|
|
940
|
+
preset: e.datePreset,
|
|
941
|
+
locale: e.dateLocale,
|
|
942
|
+
emptyLabel: e.emptyLabel,
|
|
943
|
+
className: n("metadata-value--component", e.className)
|
|
944
|
+
});
|
|
945
|
+
case "time": return /* @__PURE__ */ L(C, {
|
|
946
|
+
value: e.value,
|
|
947
|
+
format: e.timeFormat,
|
|
948
|
+
preset: e.timePreset,
|
|
949
|
+
locale: e.dateLocale,
|
|
950
|
+
emptyLabel: e.emptyLabel,
|
|
951
|
+
className: n("metadata-value--component", e.className)
|
|
952
|
+
});
|
|
953
|
+
case "datetime": return /* @__PURE__ */ L(w, {
|
|
954
|
+
value: e.value,
|
|
955
|
+
format: e.dateFormat,
|
|
956
|
+
timeFormat: e.timeFormat,
|
|
957
|
+
preset: e.datePreset,
|
|
958
|
+
locale: e.dateLocale,
|
|
959
|
+
emptyLabel: e.emptyLabel,
|
|
960
|
+
className: n("metadata-value--component", e.className)
|
|
961
|
+
});
|
|
962
|
+
case "money": return /* @__PURE__ */ L(S, {
|
|
963
|
+
amount: e.value,
|
|
964
|
+
currency: e.currency,
|
|
965
|
+
unit: e.unit,
|
|
966
|
+
minorUnitScale: e.minorUnitScale,
|
|
967
|
+
symbol: e.symbol,
|
|
968
|
+
currencyDisplay: e.currencyDisplay,
|
|
969
|
+
formatMode: e.formatMode,
|
|
970
|
+
minimumFractionDigits: e.minimumFractionDigits,
|
|
971
|
+
maximumFractionDigits: e.maximumFractionDigits,
|
|
972
|
+
locale: e.locale,
|
|
973
|
+
emptyLabel: e.emptyLabel,
|
|
974
|
+
className: n("metadata-value--component", e.className)
|
|
975
|
+
});
|
|
976
|
+
case "badge": return /* @__PURE__ */ L(E, {
|
|
977
|
+
tone: e.badgeTone ?? "secondary",
|
|
978
|
+
size: e.badgeSize,
|
|
979
|
+
inline: !0,
|
|
980
|
+
className: n("metadata-value--component self-start justify-self-start", e.className),
|
|
981
|
+
children: e.display ?? e.value
|
|
982
|
+
});
|
|
983
|
+
default: return ge(e);
|
|
984
|
+
}
|
|
985
|
+
}
|
|
986
|
+
X.displayName = "MetadataValue";
|
|
987
|
+
//#endregion
|
|
988
|
+
//#region src/components/blocks/data-display/metadata/metadata-list.tsx
|
|
989
|
+
var _e = {
|
|
990
|
+
1: 1,
|
|
991
|
+
2: {
|
|
992
|
+
base: 1,
|
|
993
|
+
md: 2
|
|
994
|
+
},
|
|
995
|
+
3: {
|
|
996
|
+
base: 1,
|
|
997
|
+
sm: 2,
|
|
998
|
+
lg: 3
|
|
999
|
+
},
|
|
1000
|
+
4: {
|
|
1001
|
+
base: 1,
|
|
1002
|
+
sm: 2,
|
|
1003
|
+
lg: 3,
|
|
1004
|
+
xl: 4
|
|
1005
|
+
}
|
|
1006
|
+
};
|
|
1007
|
+
function ve(e) {
|
|
1008
|
+
return typeof e == "object" ? e : _e[e];
|
|
1009
|
+
}
|
|
1010
|
+
var Z = (e, t) => e.id ? e.id : `metadata-${typeof e.label == "string" ? e.label : `${t}`}-${t}`;
|
|
1011
|
+
function ye(e) {
|
|
1012
|
+
return typeof e == "string" || typeof e == "number";
|
|
1013
|
+
}
|
|
1014
|
+
function be(e) {
|
|
1015
|
+
return typeof e == "object" && !!e && !N.isValidElement(e) && !Array.isArray(e) && ("kind" in e || "node" in e || "value" in e);
|
|
1016
|
+
}
|
|
1017
|
+
function Q({ value: e, isEmptyValue: t, emptyLabel: r, valueBase: i }) {
|
|
1018
|
+
return be(e) ? e.kind === "node" ? /* @__PURE__ */ L(X, { ...e }) : /* @__PURE__ */ L(X, {
|
|
1019
|
+
...e,
|
|
1020
|
+
emptyLabel: e.emptyLabel ?? r,
|
|
1021
|
+
className: n(i, e.className)
|
|
1022
|
+
}) : ye(e) ? /* @__PURE__ */ L(X, {
|
|
1023
|
+
value: e,
|
|
1024
|
+
kind: t ? "empty" : "text",
|
|
1025
|
+
emptyLabel: r,
|
|
1026
|
+
className: i
|
|
1027
|
+
}) : e;
|
|
1028
|
+
}
|
|
1029
|
+
function $({ triggerProps: e, ariaLabel: t }) {
|
|
1030
|
+
let { className: r, ...i } = e;
|
|
1031
|
+
return /* @__PURE__ */ L("button", {
|
|
1032
|
+
...i,
|
|
1033
|
+
type: "button",
|
|
1034
|
+
className: n("metadata-list--info-trigger", O.target, O.focus, O.clear, r),
|
|
1035
|
+
"aria-label": t,
|
|
1036
|
+
children: /* @__PURE__ */ L(re, {
|
|
1037
|
+
className: n(O.icon, "cursor-help"),
|
|
1038
|
+
"aria-hidden": "true"
|
|
1039
|
+
})
|
|
1040
|
+
});
|
|
1041
|
+
}
|
|
1042
|
+
function xe({ items: e, columns: i = 2, density: d = "default", emptyLabel: f = "—", title: p, titleSeparator: m = !1, className: h, layout: g = "grid", separator: _ = ": ", itemSeparator: v = !1, strings: y }) {
|
|
1043
|
+
let b = t(pe, y), x = N.useMemo(() => e.filter(Boolean), [e]);
|
|
1044
|
+
if (x.length === 0) return null;
|
|
1045
|
+
let S = d === "compact", C = "metadata--field text-left", w = "metadata-list--value text-sm", T = "block", E = p != null, O = E && m;
|
|
1046
|
+
if (g === "inline") {
|
|
1047
|
+
let e = typeof v == "string" ? v : v ? " | " : "";
|
|
1048
|
+
return /* @__PURE__ */ R(u, {
|
|
1049
|
+
gap: "sm",
|
|
1050
|
+
className: n("metadata-list--component", "metadata-list-container @container/metadata-list", h),
|
|
1051
|
+
children: [
|
|
1052
|
+
!!E && /* @__PURE__ */ L(r, {
|
|
1053
|
+
tag: "div",
|
|
1054
|
+
className: n("metadata-list--title", T),
|
|
1055
|
+
children: p
|
|
1056
|
+
}),
|
|
1057
|
+
!!O && /* @__PURE__ */ L(D, { className: "metadata-list--title-separator" }),
|
|
1058
|
+
/* @__PURE__ */ L(u, {
|
|
1059
|
+
direction: "horizontal",
|
|
1060
|
+
align: "baseline",
|
|
1061
|
+
gap: S ? "sm" : "md",
|
|
1062
|
+
className: "metadata-list--inline",
|
|
1063
|
+
children: x.map((t, i) => {
|
|
1064
|
+
let l = Z(t, i), d = t.emptyLabel ?? f, p = t.value === null || t.value === void 0, m = t.value ?? d, h = t.icon, g = t.tooltip !== null && t.tooltip !== void 0, v = typeof t.render == "function", y = e && i < x.length - 1;
|
|
1065
|
+
return /* @__PURE__ */ R(N.Fragment, { children: [/* @__PURE__ */ R(u, {
|
|
1066
|
+
direction: "horizontal",
|
|
1067
|
+
align: "baseline",
|
|
1068
|
+
gap: "xs",
|
|
1069
|
+
className: "metadata-list--item min-w-0 [&>*]:max-w-full [&>*]:min-w-0 [&>.badge--component]:self-center",
|
|
1070
|
+
children: [
|
|
1071
|
+
!!h && /* @__PURE__ */ L(h, { className: n("flex-shrink-0 self-center", S ? "size-icon-sm" : "size-icon", "text-muted-foreground") }),
|
|
1072
|
+
/* @__PURE__ */ R(u, {
|
|
1073
|
+
direction: "horizontal",
|
|
1074
|
+
gap: "none",
|
|
1075
|
+
align: "baseline",
|
|
1076
|
+
className: "min-w-0",
|
|
1077
|
+
children: [
|
|
1078
|
+
/* @__PURE__ */ L(r, {
|
|
1079
|
+
className: n("metadata-list--label whitespace-nowrap", C),
|
|
1080
|
+
children: t.label
|
|
1081
|
+
}),
|
|
1082
|
+
!!g && /* @__PURE__ */ R(o, { children: [/* @__PURE__ */ L(s, { render: (e) => /* @__PURE__ */ L($, {
|
|
1083
|
+
triggerProps: e,
|
|
1084
|
+
ariaLabel: typeof t.label == "string" ? b.formatInfoAriaLabel(t.label) : b.infoFallback
|
|
1085
|
+
}) }), /* @__PURE__ */ L(c, {
|
|
1086
|
+
side: "top",
|
|
1087
|
+
align: "start",
|
|
1088
|
+
className: "max-w-xs",
|
|
1089
|
+
children: /* @__PURE__ */ L(a, {
|
|
1090
|
+
type: "inverse",
|
|
1091
|
+
size: "xs",
|
|
1092
|
+
children: t.tooltip
|
|
1093
|
+
})
|
|
1094
|
+
})] }),
|
|
1095
|
+
/* @__PURE__ */ L(a, {
|
|
1096
|
+
tag: "span",
|
|
1097
|
+
size: "sm",
|
|
1098
|
+
type: "secondary",
|
|
1099
|
+
children: _
|
|
1100
|
+
})
|
|
1101
|
+
]
|
|
1102
|
+
}),
|
|
1103
|
+
v ? t.render?.(t) : Q({
|
|
1104
|
+
value: m,
|
|
1105
|
+
isEmptyValue: p,
|
|
1106
|
+
emptyLabel: d,
|
|
1107
|
+
valueBase: n(w, "leading-tight")
|
|
1108
|
+
})
|
|
1109
|
+
]
|
|
1110
|
+
}), !!y && /* @__PURE__ */ L(a, {
|
|
1111
|
+
tag: "span",
|
|
1112
|
+
size: "sm",
|
|
1113
|
+
type: "secondary",
|
|
1114
|
+
className: "metadata-list--item-separator",
|
|
1115
|
+
children: e
|
|
1116
|
+
})] }, l);
|
|
1117
|
+
})
|
|
1118
|
+
})
|
|
1119
|
+
]
|
|
1120
|
+
});
|
|
1121
|
+
}
|
|
1122
|
+
if (g === "rows") {
|
|
1123
|
+
let e = S ? "py-row-y-sm" : "py-row-y";
|
|
1124
|
+
return /* @__PURE__ */ R(u, {
|
|
1125
|
+
gap: "sm",
|
|
1126
|
+
className: n("metadata-list--component", "metadata-list-container @container/metadata-list", h),
|
|
1127
|
+
children: [
|
|
1128
|
+
!!E && /* @__PURE__ */ L(r, {
|
|
1129
|
+
tag: "div",
|
|
1130
|
+
className: n("metadata-list--title", T),
|
|
1131
|
+
children: p
|
|
1132
|
+
}),
|
|
1133
|
+
!!O && /* @__PURE__ */ L(D, { className: "metadata-list--title-separator" }),
|
|
1134
|
+
/* @__PURE__ */ L(u, {
|
|
1135
|
+
render: /* @__PURE__ */ L("dl", {}),
|
|
1136
|
+
gap: "none",
|
|
1137
|
+
className: "metadata-list--rows m-0 divide-y divide-border/50",
|
|
1138
|
+
children: x.map((t, i) => {
|
|
1139
|
+
let l = Z(t, i), u = t.emptyLabel ?? f, d = t.value === null || t.value === void 0, p = t.value ?? u, m = t.icon, h = t.tooltip !== null && t.tooltip !== void 0, g = typeof t.render == "function";
|
|
1140
|
+
return /* @__PURE__ */ R("div", {
|
|
1141
|
+
className: n("metadata-list--item grid grid-cols-[minmax(0,1fr)_fit-content(60%)] items-baseline gap-x-space-md", e),
|
|
1142
|
+
children: [/* @__PURE__ */ R("dt", {
|
|
1143
|
+
className: "flex items-center gap-space-sm min-w-0",
|
|
1144
|
+
children: [
|
|
1145
|
+
!!m && /* @__PURE__ */ L(m, { className: n("flex-shrink-0 text-muted-foreground", S ? "size-icon-sm" : "size-icon") }),
|
|
1146
|
+
/* @__PURE__ */ L(r, {
|
|
1147
|
+
className: n("metadata-list--label", C),
|
|
1148
|
+
children: t.label
|
|
1149
|
+
}),
|
|
1150
|
+
!!h && /* @__PURE__ */ R(o, { children: [/* @__PURE__ */ L(s, { render: (e) => /* @__PURE__ */ L($, {
|
|
1151
|
+
triggerProps: e,
|
|
1152
|
+
ariaLabel: typeof t.label == "string" ? b.formatInfoAriaLabel(t.label) : b.infoFallback
|
|
1153
|
+
}) }), /* @__PURE__ */ L(c, {
|
|
1154
|
+
side: "top",
|
|
1155
|
+
align: "start",
|
|
1156
|
+
className: "max-w-xs",
|
|
1157
|
+
children: /* @__PURE__ */ L(a, {
|
|
1158
|
+
type: "inverse",
|
|
1159
|
+
size: "xs",
|
|
1160
|
+
children: t.tooltip
|
|
1161
|
+
})
|
|
1162
|
+
})] })
|
|
1163
|
+
]
|
|
1164
|
+
}), /* @__PURE__ */ R("dd", {
|
|
1165
|
+
className: "m-0 grid min-w-0 justify-items-end text-right gap-dense break-words [overflow-wrap:anywhere] [&>*]:max-w-full [&>*]:min-w-0 [&>.badge--component]:justify-self-end",
|
|
1166
|
+
children: [g ? t.render?.(t) : Q({
|
|
1167
|
+
value: p,
|
|
1168
|
+
isEmptyValue: d,
|
|
1169
|
+
emptyLabel: u,
|
|
1170
|
+
valueBase: n(w, "text-right break-words leading-tight")
|
|
1171
|
+
}), !!t.description && /* @__PURE__ */ L(a, {
|
|
1172
|
+
size: "xs",
|
|
1173
|
+
type: "secondary",
|
|
1174
|
+
align: "right",
|
|
1175
|
+
lineHeight: "snug",
|
|
1176
|
+
className: "metadata-list--description",
|
|
1177
|
+
children: t.description
|
|
1178
|
+
})]
|
|
1179
|
+
})]
|
|
1180
|
+
}, l);
|
|
1181
|
+
})
|
|
1182
|
+
})
|
|
1183
|
+
]
|
|
1184
|
+
});
|
|
1185
|
+
}
|
|
1186
|
+
return /* @__PURE__ */ R(u, {
|
|
1187
|
+
gap: "sm",
|
|
1188
|
+
className: n("metadata-list--component", "metadata-list-container @container/metadata-list", h),
|
|
1189
|
+
children: [
|
|
1190
|
+
!!E && /* @__PURE__ */ L(r, {
|
|
1191
|
+
tag: "div",
|
|
1192
|
+
className: n("metadata-list--title", T),
|
|
1193
|
+
children: p
|
|
1194
|
+
}),
|
|
1195
|
+
!!O && /* @__PURE__ */ L(D, { className: "metadata-list--title-separator" }),
|
|
1196
|
+
/* @__PURE__ */ L(l, {
|
|
1197
|
+
columns: ve(i),
|
|
1198
|
+
gap: S ? "md" : "xl",
|
|
1199
|
+
align: "start",
|
|
1200
|
+
className: "metadata-list--grid",
|
|
1201
|
+
children: x.map((e, t) => {
|
|
1202
|
+
let i = Z(e, t), l = e.emptyLabel ?? f, d = e.value === null || e.value === void 0, p = e.value ?? l, m = e.icon, h = e.tooltip !== null && e.tooltip !== void 0, g = typeof e.render == "function";
|
|
1203
|
+
return /* @__PURE__ */ R(u, {
|
|
1204
|
+
gap: S ? "dense" : "normal",
|
|
1205
|
+
className: "metadata-list--item min-w-0 items-start [&>*]:max-w-full [&>*]:min-w-0 [&>.badge--component]:self-start",
|
|
1206
|
+
children: [
|
|
1207
|
+
/* @__PURE__ */ R("div", {
|
|
1208
|
+
className: "flex items-center gap-space-sm",
|
|
1209
|
+
children: [
|
|
1210
|
+
!!m && /* @__PURE__ */ L(m, { className: n("flex-shrink-0", S ? "size-icon-sm" : "size-icon", "text-muted-foreground") }),
|
|
1211
|
+
/* @__PURE__ */ L(r, {
|
|
1212
|
+
className: n("metadata-list--label", C),
|
|
1213
|
+
children: e.label
|
|
1214
|
+
}),
|
|
1215
|
+
!!h && /* @__PURE__ */ R(o, { children: [/* @__PURE__ */ L(s, { render: (t) => /* @__PURE__ */ L($, {
|
|
1216
|
+
triggerProps: t,
|
|
1217
|
+
ariaLabel: typeof e.label == "string" ? b.formatInfoAriaLabel(e.label) : b.infoFallback
|
|
1218
|
+
}) }), /* @__PURE__ */ L(c, {
|
|
1219
|
+
side: "top",
|
|
1220
|
+
align: "start",
|
|
1221
|
+
className: "max-w-xs",
|
|
1222
|
+
children: /* @__PURE__ */ L(a, {
|
|
1223
|
+
type: "inverse",
|
|
1224
|
+
size: "xs",
|
|
1225
|
+
children: e.tooltip
|
|
1226
|
+
})
|
|
1227
|
+
})] })
|
|
1228
|
+
]
|
|
1229
|
+
}),
|
|
1230
|
+
g ? e.render?.(e) : Q({
|
|
1231
|
+
value: p,
|
|
1232
|
+
isEmptyValue: d,
|
|
1233
|
+
emptyLabel: l,
|
|
1234
|
+
valueBase: n(w, "leading-tight")
|
|
1235
|
+
}),
|
|
1236
|
+
!!e.description && /* @__PURE__ */ L(a, {
|
|
1237
|
+
size: "xs",
|
|
1238
|
+
type: "secondary",
|
|
1239
|
+
lineHeight: "snug",
|
|
1240
|
+
className: "metadata-list--description",
|
|
1241
|
+
children: e.description
|
|
1242
|
+
})
|
|
1243
|
+
]
|
|
1244
|
+
}, i);
|
|
1245
|
+
})
|
|
1246
|
+
})
|
|
1247
|
+
]
|
|
1248
|
+
});
|
|
1249
|
+
}
|
|
1250
|
+
xe.displayName = "MetadataList";
|
|
1251
|
+
//#endregion
|
|
1252
|
+
//#region src/components/blocks/data-display/relationship-card-frame.tsx
|
|
1253
|
+
function Se(e) {
|
|
1254
|
+
return e ? typeof e == "object" && !Array.isArray(e) && "label" in e ? /* @__PURE__ */ L(E, {
|
|
1255
|
+
inline: !0,
|
|
1256
|
+
tone: e.tone ?? "secondary",
|
|
1257
|
+
size: e.size,
|
|
1258
|
+
children: e.label
|
|
1259
|
+
}) : e : null;
|
|
1260
|
+
}
|
|
1261
|
+
var Ce = P(function({ icon: e, title: t, titleBadge: r, alertSlot: i, metadataSlot: o, primaryActionSlot: s, overflowActionSlot: c, selectorSlot: l, detailsSlot: d, className: f, headerClassName: p, bodyClassName: m, ...h }, g) {
|
|
1262
|
+
let _ = !!i || !!o || !!s || !!l || !!d;
|
|
1263
|
+
return /* @__PURE__ */ R(u, {
|
|
1264
|
+
ref: g,
|
|
1265
|
+
className: n("relationship-card-frame--component", f),
|
|
1266
|
+
...h,
|
|
1267
|
+
children: [/* @__PURE__ */ R(u, {
|
|
1268
|
+
direction: "horizontal",
|
|
1269
|
+
gap: "md",
|
|
1270
|
+
align: "start",
|
|
1271
|
+
justify: "between",
|
|
1272
|
+
wrap: !1,
|
|
1273
|
+
className: n("relationship-card-frame--header", p),
|
|
1274
|
+
children: [/* @__PURE__ */ R(u, {
|
|
1275
|
+
direction: "horizontal",
|
|
1276
|
+
gap: "md",
|
|
1277
|
+
align: "start",
|
|
1278
|
+
wrap: !1,
|
|
1279
|
+
className: "relationship-card-frame--header-start",
|
|
1280
|
+
children: [!!e && /* @__PURE__ */ L("div", {
|
|
1281
|
+
className: "relationship-card-frame--icon mt-space-2xs inline-flex shrink-0 items-center text-muted-foreground",
|
|
1282
|
+
children: e
|
|
1283
|
+
}), /* @__PURE__ */ L("div", {
|
|
1284
|
+
className: "min-w-0",
|
|
1285
|
+
children: /* @__PURE__ */ R(u, {
|
|
1286
|
+
direction: "horizontal",
|
|
1287
|
+
gap: "sm",
|
|
1288
|
+
className: "relationship-card-frame--title-row",
|
|
1289
|
+
children: [/* @__PURE__ */ L(a, {
|
|
1290
|
+
tag: "div",
|
|
1291
|
+
weight: "medium",
|
|
1292
|
+
className: "relationship-card-frame--title truncate",
|
|
1293
|
+
children: t
|
|
1294
|
+
}), !!r && /* @__PURE__ */ L("span", {
|
|
1295
|
+
className: "relationship-card-frame--title-badge inline-flex",
|
|
1296
|
+
children: Se(r)
|
|
1297
|
+
})]
|
|
1298
|
+
})
|
|
1299
|
+
})]
|
|
1300
|
+
}), !!c && /* @__PURE__ */ L("div", {
|
|
1301
|
+
className: "relationship-card-frame--overflow shrink-0",
|
|
1302
|
+
children: c
|
|
1303
|
+
})]
|
|
1304
|
+
}), !!_ && /* @__PURE__ */ R(u, {
|
|
1305
|
+
className: n("relationship-card-frame--body", m),
|
|
1306
|
+
children: [
|
|
1307
|
+
!!i && /* @__PURE__ */ L("div", {
|
|
1308
|
+
className: "relationship-card-frame--alert",
|
|
1309
|
+
children: i
|
|
1310
|
+
}),
|
|
1311
|
+
!!l && /* @__PURE__ */ L("div", {
|
|
1312
|
+
className: "relationship-card-frame--selector",
|
|
1313
|
+
children: l
|
|
1314
|
+
}),
|
|
1315
|
+
!!o && /* @__PURE__ */ L("div", {
|
|
1316
|
+
className: "relationship-card-frame--metadata",
|
|
1317
|
+
children: o
|
|
1318
|
+
}),
|
|
1319
|
+
!!s && /* @__PURE__ */ L("div", {
|
|
1320
|
+
className: "relationship-card-frame--primary-action",
|
|
1321
|
+
children: s
|
|
1322
|
+
}),
|
|
1323
|
+
!!d && /* @__PURE__ */ L("div", {
|
|
1324
|
+
className: "relationship-card-frame--details",
|
|
1325
|
+
children: d
|
|
1326
|
+
})
|
|
1327
|
+
]
|
|
1328
|
+
})]
|
|
1329
|
+
});
|
|
1330
|
+
});
|
|
1331
|
+
Ce.displayName = "RelationshipCardFrame";
|
|
1332
|
+
//#endregion
|
|
1333
|
+
export { B as _, de as a, Y as c, K as d, G as f, V as g, H as h, fe as i, J as l, U as m, xe as n, ue as o, W as p, X as r, le as s, Ce as t, q as u };
|
|
1334
|
+
|
|
1335
|
+
//# sourceMappingURL=data-display-3xWQUnMA.js.map
|