themelia-react-ui 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +351 -0
- package/README.md +26 -13
- package/dist/{accordion-CQXVcd7Q.js → accordion-B6a3vVgA.js} +84 -82
- package/dist/accordion-B6a3vVgA.js.map +1 -0
- package/dist/action-menu-TzCoSlwL.js +280 -0
- package/dist/action-menu-TzCoSlwL.js.map +1 -0
- package/dist/{affordance-geometry.generated-CCIXb2A1.js → affordance-geometry.generated-B5iu-Mkr.js} +3 -2
- package/dist/affordance-geometry.generated-B5iu-Mkr.js.map +1 -0
- package/dist/{ai-artifact-2PQ2fItc.js → ai-artifact-BMJdv-6q.js} +379 -376
- package/dist/ai-artifact-BMJdv-6q.js.map +1 -0
- package/dist/{app-shell-BE_j8-AT.js → app-shell-ZK5RWdo6.js} +4 -4
- package/dist/{app-shell-BE_j8-AT.js.map → app-shell-ZK5RWdo6.js.map} +1 -1
- package/dist/attachment-BtfhGm8i.js +245 -0
- package/dist/attachment-BtfhGm8i.js.map +1 -0
- package/dist/{auth-M3vGMgDR.js → auth-CYxKfo69.js} +237 -235
- package/dist/auth-CYxKfo69.js.map +1 -0
- package/dist/{avatar-djdaaQ_s.js → avatar-BBnEJIx8.js} +66 -65
- package/dist/avatar-BBnEJIx8.js.map +1 -0
- package/dist/badge-MrKVNzW9.js +93 -0
- package/dist/badge-MrKVNzW9.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/batch-action-bar.js +3 -0
- package/dist/base/buttons.js +2 -3
- package/dist/base/cards.js +2 -2
- package/dist/base/carousel.js +13 -13
- package/dist/base/carousel.js.map +1 -1
- package/dist/base/cascader.js +103 -115
- package/dist/base/cascader.js.map +1 -1
- package/dist/base/chart.js +1 -1
- package/dist/base/choice-inputs.js +3 -3
- 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 +2 -2
- package/dist/base/display.js +7 -7
- package/dist/base/feedback.js +3 -3
- package/dist/base/forms-numeric.js +1 -1
- package/dist/base/forms.js +2 -2
- package/dist/base/inline-edit.js +17 -17
- 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/metadata-list.js +3 -0
- package/dist/base/navigation.js +7 -7
- package/dist/base/popover-menu.js +1 -1
- package/dist/base/popover.js +1 -1
- package/dist/base/qr-code.js +1 -1
- package/dist/base/repeaters.js +171 -170
- 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 +147 -137
- 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 +2 -2
- 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 +2 -2
- package/dist/batch-action-bar-BZGDG-Si.js +104 -0
- package/dist/batch-action-bar-BZGDG-Si.js.map +1 -0
- package/dist/blocks/admin.js +173 -171
- package/dist/blocks/admin.js.map +1 -1
- package/dist/blocks/ai.js +266 -263
- package/dist/blocks/ai.js.map +1 -1
- package/dist/blocks/analytics/usage-card.js +1 -1
- package/dist/blocks/analytics.js +440 -438
- package/dist/blocks/analytics.js.map +1 -1
- package/dist/blocks/collaboration.js +1 -1
- package/dist/blocks/commerce/receipt.js +1 -1
- package/dist/blocks/commerce.js +1945 -1266
- package/dist/blocks/commerce.js.map +1 -1
- package/dist/blocks/data-display.js +3 -2
- package/dist/blocks/onboarding.js +50 -49
- package/dist/blocks/onboarding.js.map +1 -1
- package/dist/blocks/planning.js +25 -25
- package/dist/blocks/planning.js.map +1 -1
- package/dist/blocks/timelines.js +1 -1
- package/dist/breadcrumbs-D5t7I023.js +129 -0
- package/dist/breadcrumbs-D5t7I023.js.map +1 -0
- package/dist/{button-R9CCoH7A.js → button-QYwiyhD2.js} +15 -14
- package/dist/button-QYwiyhD2.js.map +1 -0
- package/dist/{button-BS3KDg00.js → buttons-SbIcm1HJ.js} +200 -213
- package/dist/buttons-SbIcm1HJ.js.map +1 -0
- package/dist/{cards-QoJ4syG9.js → cards-CiiHpKYd.js} +8 -8
- package/dist/cards-CiiHpKYd.js.map +1 -0
- package/dist/{chart-DwYRKKc-.js → chart-QfrARkXl.js} +5 -5
- package/dist/{chart-DwYRKKc-.js.map → chart-QfrARkXl.js.map} +1 -1
- package/dist/checkbox-DhB6K0bK.js +36 -0
- package/dist/checkbox-DhB6K0bK.js.map +1 -0
- package/dist/choice-inputs-t6w3ATNz.js +766 -0
- package/dist/choice-inputs-t6w3ATNz.js.map +1 -0
- package/dist/code-block-Dgbu-CU3.js +185 -0
- package/dist/code-block-Dgbu-CU3.js.map +1 -0
- package/dist/{collapsible-oMUGM4tr.js → collapsible-D8AEGU1-.js} +4 -4
- package/dist/{collapsible-oMUGM4tr.js.map → collapsible-D8AEGU1-.js.map} +1 -1
- package/dist/{collection-content-Ys-OZOkY.js → collection-content-uK16Grv0.js} +3 -3
- package/dist/{collection-content-Ys-OZOkY.js.map → collection-content-uK16Grv0.js.map} +1 -1
- package/dist/{combobox-6dvVny2q.js → combobox-2Ic8N9bL.js} +74 -68
- package/dist/combobox-2Ic8N9bL.js.map +1 -0
- package/dist/{combobox-CB7039j7.js → combobox-DLl0bfiq.js} +307 -305
- package/dist/combobox-DLl0bfiq.js.map +1 -0
- package/dist/{command-kPMPjIxJ.js → command-kNR20o7x.js} +7 -7
- package/dist/{command-kPMPjIxJ.js.map → command-kNR20o7x.js.map} +1 -1
- package/dist/{comments-You0Bzbr.js → comments-BpDuCUUu.js} +341 -339
- package/dist/comments-BpDuCUUu.js.map +1 -0
- package/dist/components/base/action-menu/action-menu.d.ts +21 -4
- package/dist/components/base/action-menu/action-menu.recipes.d.ts +21 -0
- package/dist/components/base/action-menu/index.d.ts +1 -0
- package/dist/components/base/badge/badge.recipes.d.ts +4 -4
- package/dist/components/base/batch-action-bar/batch-action-bar.d.ts +50 -0
- package/dist/components/base/batch-action-bar/batch-action-bar.strings.d.ts +20 -0
- package/dist/components/base/batch-action-bar/index.d.ts +8 -0
- package/dist/components/base/buttons/button-group.recipes.d.ts +1 -1
- package/dist/components/base/buttons/button.recipes.d.ts +2 -2
- package/dist/components/base/choice-inputs/checkbox.d.ts +2 -2
- package/dist/components/base/choice-inputs/choice-types.d.ts +18 -6
- package/dist/components/base/display/alert-dialog.d.ts +6 -5
- package/dist/components/base/display/dialog.d.ts +4 -8
- package/dist/components/base/display/icon-badge/icon-badge.d.ts +1 -1
- package/dist/components/base/forms/form-sizing.d.ts +15 -12
- package/dist/components/base/metadata-list/index.d.ts +12 -0
- package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-list.d.ts +28 -25
- package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-value.d.ts +2 -2
- package/dist/components/base/navigation/index.d.ts +1 -1
- package/dist/components/base/navigation/page-header/index.d.ts +1 -0
- package/dist/components/base/navigation/page-header/page-header-commands.d.ts +73 -0
- package/dist/components/base/navigation/page-header/page-header.d.ts +26 -3
- package/dist/components/base/sheet/sheet.d.ts +4 -8
- package/dist/components/base/signature-pad/signature-pad.types.d.ts +5 -1
- package/dist/components/base/signature-pad/signature-pad.utils.d.ts +11 -3
- package/dist/components/base/text-inputs/field-clear-button.d.ts +6 -0
- package/dist/components/base/upload/upload.recipes.d.ts +25 -3
- package/dist/components/base/value-inputs/index.d.ts +5 -5
- package/dist/components/base/value-inputs/tags-input.d.ts +36 -12
- package/dist/components/blocks/commerce/address-card/address-card.d.ts +1 -1
- package/dist/components/blocks/commerce/address-card/types.d.ts +2 -1
- package/dist/components/blocks/commerce/cart-summary/cart-summary.d.ts +3 -1
- package/dist/components/blocks/commerce/cart-summary/index.d.ts +2 -2
- package/dist/components/blocks/commerce/cart-summary/types.d.ts +6 -1
- package/dist/components/blocks/commerce/discount-stack/discount-stack.d.ts +3 -1
- package/dist/components/blocks/commerce/discount-stack/index.d.ts +2 -2
- package/dist/components/blocks/commerce/discount-stack/types.d.ts +16 -4
- package/dist/components/blocks/commerce/fulfillment-group/fulfillment-group.d.ts +5 -0
- package/dist/components/blocks/commerce/fulfillment-group/index.d.ts +2 -0
- package/dist/components/blocks/commerce/fulfillment-group/types.d.ts +43 -0
- package/dist/components/blocks/commerce/index.d.ts +13 -5
- package/dist/components/blocks/commerce/invoice-header/invoice-header.d.ts +1 -1
- package/dist/components/blocks/commerce/invoice-header/types.d.ts +4 -2
- package/dist/components/blocks/commerce/invoice-mini/invoice-mini.d.ts +1 -1
- package/dist/components/blocks/commerce/invoice-mini/types.d.ts +2 -1
- package/dist/components/blocks/commerce/order-customer/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-customer/order-customer.d.ts +5 -0
- package/dist/components/blocks/commerce/order-customer/types.d.ts +48 -0
- package/dist/components/blocks/commerce/order-header/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-header/order-header.d.ts +5 -0
- package/dist/components/blocks/commerce/order-header/types.d.ts +37 -0
- package/dist/components/blocks/commerce/order-line-item/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-line-item/order-line-item.d.ts +5 -0
- package/dist/components/blocks/commerce/order-line-item/types.d.ts +46 -0
- package/dist/components/blocks/commerce/order-summary/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-summary/order-summary.d.ts +5 -0
- package/dist/components/blocks/commerce/order-summary/types.d.ts +42 -0
- package/dist/components/blocks/commerce/order-transactions/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-transactions/order-transactions.d.ts +5 -0
- package/dist/components/blocks/commerce/order-transactions/types.d.ts +46 -0
- package/dist/components/blocks/commerce/payment-method/index.d.ts +2 -2
- package/dist/components/blocks/commerce/payment-method/payment-method.d.ts +9 -1
- package/dist/components/blocks/commerce/payment-method/types.d.ts +12 -1
- package/dist/components/blocks/commerce/refund-status/index.d.ts +2 -2
- package/dist/components/blocks/commerce/refund-status/refund-status.d.ts +3 -1
- package/dist/components/blocks/commerce/refund-status/types.d.ts +6 -3
- package/dist/components/blocks/commerce/shared/address-lines.d.ts +21 -0
- package/dist/components/blocks/commerce/shared/line-thumbnail.d.ts +9 -0
- package/dist/components/blocks/commerce/shared/order-status.d.ts +51 -0
- package/dist/components/blocks/commerce/shipment-tracking/shipment-tracking.d.ts +1 -1
- package/dist/components/blocks/commerce/shipment-tracking/types.d.ts +27 -6
- package/dist/components/blocks/commerce/summary-panel/amount-row.d.ts +2 -0
- package/dist/components/blocks/commerce/summary-panel/index.d.ts +3 -0
- package/dist/components/blocks/commerce/summary-panel/summary-panel.d.ts +2 -0
- package/dist/components/blocks/commerce/summary-panel/types.d.ts +26 -0
- package/dist/components/blocks/commerce/tax-breakdown/tax-breakdown.d.ts +1 -1
- package/dist/components/blocks/commerce/tax-breakdown/types.d.ts +2 -1
- package/dist/components/blocks/data-display/metadata/index.d.ts +30 -4
- package/dist/components/features/activities/partials/activity-row.d.ts +6 -2
- package/dist/components/features/activities/partials/tone-tokens.d.ts +0 -6
- package/dist/components/features/global-search/partials/global-search-group-heading.d.ts +15 -0
- package/dist/components/features/global-search/partials/tone-palettes.d.ts +0 -5
- package/dist/components/features/kanban/kanban.d.ts +1 -1
- package/dist/components/features/kanban/kanban.strings.d.ts +1 -1
- package/dist/components/features/kanban/kanban.types.d.ts +2 -2
- package/dist/components/features/media-library/hooks/use-media-library.d.ts +1 -1
- package/dist/components/features/media-library/index.d.ts +1 -1
- package/dist/components/features/media-library/media-library.d.ts +1 -1
- package/dist/components/features/media-library/media-library.strings.d.ts +4 -0
- package/dist/components/features/media-library/media-library.types.d.ts +74 -1
- package/dist/components/features/media-library/partials/media-library-partials.d.ts +3 -3
- package/dist/components/features/mentions/partials/mention-kind-toggles.d.ts +16 -0
- package/dist/components/features/overlays/alert-dialog.d.ts +1 -1
- package/dist/components/features/overlays/dialog.d.ts +1 -1
- package/dist/components/features/overlays/index.d.ts +1 -1
- package/dist/components/features/overlays/overlay-tone-icon.d.ts +3 -3
- package/dist/components/features/overlays/overlays.types.d.ts +20 -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-summary.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 +23 -1
- package/dist/components/features/products/products.types.d.ts +9 -2
- package/dist/components/features/resource/index.d.ts +1 -1
- package/dist/components/features/resource/resource.d.ts +1 -1
- package/dist/components/features/resource/resource.types.d.ts +34 -6
- package/dist/components/features/rich-text-editor/index.d.ts +2 -1
- package/dist/components/features/rich-text-editor/partials/image-nodes.d.ts +13 -0
- package/dist/components/features/rich-text-editor/partials/image-uploads.d.ts +66 -0
- package/dist/components/features/rich-text-editor/partials/inline-reference-node.d.ts +19 -0
- package/dist/components/features/rich-text-editor/rich-text-editor.recipes.d.ts +1 -1
- package/dist/components/features/rich-text-editor/rich-text-editor.strings.d.ts +14 -0
- package/dist/components/features/rich-text-editor/rich-text-editor.types.d.ts +45 -0
- package/dist/components/features/rich-text-editor/use-rich-text-images.d.ts +18 -0
- package/dist/components/features/sync/index.d.ts +26 -3
- package/dist/components/features/table/data-table.d.ts +1 -1
- package/dist/components/features/table/table.types.d.ts +32 -7
- package/dist/components/layout/page/index.d.ts +1 -1
- package/dist/components/layout/page/page.types.d.ts +33 -36
- package/dist/components/layout/page/partials/page-actions.d.ts +1 -0
- package/dist/components/layout/page/partials/page-header.d.ts +1 -1
- package/dist/components/layout/settings/settings.d.ts +16 -2
- package/dist/components/layout/workspace/workspace.types.d.ts +21 -4
- package/dist/components/typography/rich-text/index.d.ts +1 -1
- package/dist/components/typography/rich-text/rich-text-tree.d.ts +19 -0
- package/dist/components/typography/rich-text/rich-text.d.ts +16 -0
- package/dist/components/typography/text-link.d.ts +4 -3
- package/dist/components/ui/checkbox.d.ts +4 -3
- package/dist/components/ui/overlay.recipes.d.ts +0 -9
- package/dist/components/ui/switch.d.ts +2 -2
- package/dist/{containers-D_L4mTVb.js → containers-DmWiJa2I.js} +36 -35
- package/dist/containers-DmWiJa2I.js.map +1 -0
- package/dist/{copyable-DDjTeW_j.js → copyable-B3Gwgdqc.js} +6 -6
- package/dist/{copyable-DDjTeW_j.js.map → copyable-B3Gwgdqc.js.map} +1 -1
- package/dist/data-display-DafIvCl5.js +960 -0
- package/dist/data-display-DafIvCl5.js.map +1 -0
- package/dist/{date-uf3z37Nm.js → date-BgK3bTdo.js} +5 -5
- package/dist/{date-uf3z37Nm.js.map → date-BgK3bTdo.js.map} +1 -1
- package/dist/date-picker-CF-DtUpF.js +1529 -0
- package/dist/date-picker-CF-DtUpF.js.map +1 -0
- package/dist/{date-pickers-CnFCb0n2.js → date-pickers-BmzxJl5l.js} +19 -19
- package/dist/{date-pickers-CnFCb0n2.js.map → date-pickers-BmzxJl5l.js.map} +1 -1
- package/dist/{display-DrdvPwF0.js → display-DsQTVzMz.js} +88 -87
- package/dist/display-DsQTVzMz.js.map +1 -0
- package/dist/{dropdown-menu-CURh59jb.js → dropdown-menu-E2qmdC7o.js} +7 -7
- package/dist/{dropdown-menu-CURh59jb.js.map → dropdown-menu-E2qmdC7o.js.map} +1 -1
- package/dist/features/activities.js +414 -501
- package/dist/features/activities.js.map +1 -1
- package/dist/features/ai-chat.js +170 -169
- package/dist/features/ai-chat.js.map +1 -1
- package/dist/features/async-preview.js +8 -8
- 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 +139 -138
- package/dist/features/data-view.js.map +1 -1
- package/dist/features/email-composer/engine.js +1 -1
- package/dist/features/email-composer.js +73 -71
- package/dist/features/email-composer.js.map +1 -1
- package/dist/features/event-calendar.js +278 -275
- package/dist/features/event-calendar.js.map +1 -1
- package/dist/features/filters.js +1 -1
- package/dist/features/global-search.js +307 -310
- package/dist/features/global-search.js.map +1 -1
- package/dist/features/kanban.js +95 -97
- package/dist/features/kanban.js.map +1 -1
- package/dist/features/map.js +56 -57
- package/dist/features/map.js.map +1 -1
- package/dist/features/media-library.js +918 -825
- 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 +1115 -1122
- package/dist/features/products.js.map +1 -1
- package/dist/features/questionnaire.js +202 -194
- package/dist/features/questionnaire.js.map +1 -1
- package/dist/features/resource-assignment.js +25 -25
- package/dist/features/resource-assignment.js.map +1 -1
- package/dist/features/resource.js +77 -69
- package/dist/features/resource.js.map +1 -1
- package/dist/features/rich-text-editor.js +30 -11
- package/dist/features/rich-text-editor.js.map +1 -1
- package/dist/features/schema-form.js +33 -33
- package/dist/features/schema-form.js.map +1 -1
- package/dist/features/suggestions.js +3 -3
- package/dist/features/sync.js +3 -3
- package/dist/features/table.js +1 -1
- package/dist/features/theme-tweaker.js +397 -396
- package/dist/features/theme-tweaker.js.map +1 -1
- package/dist/{feedback-C7nR0UtT.js → feedback-qNuMBtRH.js} +84 -83
- package/dist/feedback-qNuMBtRH.js.map +1 -0
- package/dist/{field-affordance-recipes-CkOCdE2y.js → field-affordance-recipes-qQeIf4lG.js} +8 -6
- package/dist/field-affordance-recipes-qQeIf4lG.js.map +1 -0
- package/dist/field-state-recipes-BVA2CWHo.js +12 -0
- package/dist/field-state-recipes-BVA2CWHo.js.map +1 -0
- package/dist/{filters-Da-gNPsE.js → filters-BkHH53uv.js} +565 -563
- package/dist/filters-BkHH53uv.js.map +1 -0
- package/dist/focus-recipes-B653VaLq.js +12 -0
- package/dist/focus-recipes-B653VaLq.js.map +1 -0
- package/dist/{form-field-VZRULhUK.js → form-field-DUt4UxSV.js} +4 -4
- package/dist/{form-field-VZRULhUK.js.map → form-field-DUt4UxSV.js.map} +1 -1
- package/dist/{form-sizing-uWP4lzVh.js → form-sizing-By94KzXE.js} +19 -15
- package/dist/form-sizing-By94KzXE.js.map +1 -0
- package/dist/{forms-DDeEnXSY.js → forms-Bzha-Y3B.js} +22 -22
- package/dist/{forms-DDeEnXSY.js.map → forms-Bzha-Y3B.js.map} +1 -1
- package/dist/{forms-numeric-D3CO60IF.js → forms-numeric-C0bvjRPZ.js} +265 -264
- package/dist/forms-numeric-C0bvjRPZ.js.map +1 -0
- package/dist/{header-2ycNqGOR.js → header-BOefOKd1.js} +47 -51
- package/dist/header-BOefOKd1.js.map +1 -0
- package/dist/{hooks-DQ5SPwZw.js → hooks-9k_TtmKh.js} +2 -2
- package/dist/{hooks-DQ5SPwZw.js.map → hooks-9k_TtmKh.js.map} +1 -1
- package/dist/{http-CdEIHyQf.js → http-D_6rOnzU.js} +2 -2
- package/dist/{http-CdEIHyQf.js.map → http-D_6rOnzU.js.map} +1 -1
- package/dist/icon-badge-CAuKupo9.js +55 -0
- package/dist/icon-badge-CAuKupo9.js.map +1 -0
- package/dist/index.js +7 -7
- package/dist/input-DWhBBBww.js +262 -0
- package/dist/input-DWhBBBww.js.map +1 -0
- package/dist/{input-BoLm9Hks.js → input-Ddi_LSYv.js} +3 -3
- package/dist/{input-BoLm9Hks.js.map → input-Ddi_LSYv.js.map} +1 -1
- package/dist/interaction-recipes-CHr0dJUs.js +24 -0
- package/dist/interaction-recipes-CHr0dJUs.js.map +1 -0
- package/dist/{item-xzh8Df65.js → item-DEmDiTlD.js} +98 -97
- package/dist/item-DEmDiTlD.js.map +1 -0
- package/dist/layer-recipes-CCpklYME.js +13 -0
- package/dist/layer-recipes-CCpklYME.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 +1 -0
- package/dist/lib/field-affordance-recipes.d.ts +6 -1
- package/dist/lib/field-state-recipes.d.ts +9 -8
- package/dist/lib/focus-recipes.d.ts +24 -0
- package/dist/lib/interaction-recipes.d.ts +35 -0
- package/dist/lib/layer-recipes.d.ts +19 -0
- package/dist/lib/motion-recipes.d.ts +1 -0
- package/dist/lib/overlay-anatomy-recipes.d.ts +1 -0
- package/dist/lib/safe-image-src.d.ts +10 -0
- package/dist/lib/sanitize-html.d.ts +15 -3
- package/dist/lib/surface-recipes.d.ts +47 -7
- package/dist/lib/token-merge.generated.d.ts +9 -6
- package/dist/lib/tone-recipes.d.ts +79 -0
- package/dist/lib/ui-provider/hooks.d.ts +2 -1
- package/dist/lib/ui-provider/index.d.ts +2 -2
- package/dist/lib/ui-provider/types.d.ts +9 -0
- package/dist/lib/utils.js +1 -1
- package/dist/media-gallery-DcTtAaeC.js +203 -0
- package/dist/media-gallery-DcTtAaeC.js.map +1 -0
- package/dist/mentions-D-uyCh01.js +568 -0
- package/dist/mentions-D-uyCh01.js.map +1 -0
- package/dist/{message-YfFmbXNP.js → message-CdHgIWKf.js} +5 -5
- package/dist/{message-YfFmbXNP.js.map → message-CdHgIWKf.js.map} +1 -1
- package/dist/metadata-list-X5rYAKSB.js +394 -0
- package/dist/metadata-list-X5rYAKSB.js.map +1 -0
- package/dist/{motion-recipes-B6jKXEcN.js → motion-recipes-ChBg4HBq.js} +3 -2
- package/dist/{motion-recipes-B6jKXEcN.js.map → motion-recipes-ChBg4HBq.js.map} +1 -1
- package/dist/navigation-D3KwXmaq.js +145 -0
- package/dist/navigation-D3KwXmaq.js.map +1 -0
- package/dist/navigation-HJf5zxlH.js +268 -0
- package/dist/navigation-HJf5zxlH.js.map +1 -0
- package/dist/{navigation-row-recipes-DlU-4QYO.js → navigation-row-recipes-BVowojQw.js} +2 -2
- package/dist/{navigation-row-recipes-DlU-4QYO.js.map → navigation-row-recipes-BVowojQw.js.map} +1 -1
- package/dist/{number-CKRBYmZK.js → number-DMhe-Vsk.js} +5 -5
- package/dist/{number-CKRBYmZK.js.map → number-DMhe-Vsk.js.map} +1 -1
- package/dist/overflow-tab-bar-sQHXLlwQ.js +280 -0
- package/dist/overflow-tab-bar-sQHXLlwQ.js.map +1 -0
- package/dist/overlay.recipes-8GHqmlb4.js +6 -0
- package/dist/overlay.recipes-8GHqmlb4.js.map +1 -0
- package/dist/overlays-I0axtYA6.js +999 -0
- package/dist/overlays-I0axtYA6.js.map +1 -0
- package/dist/page-B5dTH9gE.js +224 -0
- package/dist/page-B5dTH9gE.js.map +1 -0
- package/dist/page-header-commands-DjzFEq3E.js +126 -0
- package/dist/page-header-commands-DjzFEq3E.js.map +1 -0
- package/dist/{pagination-Cm0jqa3I.js → pagination-3bPA_a6K.js} +15 -15
- package/dist/{pagination-Cm0jqa3I.js.map → pagination-3bPA_a6K.js.map} +1 -1
- package/dist/{popover-Dcv_9jxr.js → popover-Di55PyAI.js} +8 -8
- package/dist/popover-Di55PyAI.js.map +1 -0
- package/dist/{popover-menu-DnRFKnHP.js → popover-menu-B71Tn2Qz.js} +6 -6
- package/dist/{popover-menu-DnRFKnHP.js.map → popover-menu-B71Tn2Qz.js.map} +1 -1
- package/dist/{popover.recipes-wmbvL8Ah.js → popover.recipes-Bdyhj2db.js} +2 -2
- package/dist/{popover.recipes-wmbvL8Ah.js.map → popover.recipes-Bdyhj2db.js.map} +1 -1
- package/dist/{primitives-BHrwQXFC.js → primitives-B-CkiEMU.js} +5 -5
- package/dist/{primitives-BHrwQXFC.js.map → primitives-B-CkiEMU.js.map} +1 -1
- package/dist/primitives.js +4 -4
- package/dist/{progress-Br9WTFya.js → progress-rnS8-uAW.js} +9 -9
- package/dist/{progress-Br9WTFya.js.map → progress-rnS8-uAW.js.map} +1 -1
- package/dist/{receipt-CV89q1fs.js → receipt-D0oswZ0p.js} +6 -6
- package/dist/{receipt-CV89q1fs.js.map → receipt-D0oswZ0p.js.map} +1 -1
- package/dist/rich-text-DvGulsNJ.js +78 -0
- package/dist/rich-text-DvGulsNJ.js.map +1 -0
- package/dist/rich-text-editor-sMU_Scqm.js +1204 -0
- package/dist/rich-text-editor-sMU_Scqm.js.map +1 -0
- package/dist/rich-text-editor.recipes-CadiF_Uu.js +88 -0
- package/dist/rich-text-editor.recipes-CadiF_Uu.js.map +1 -0
- package/dist/rich-text-editor.strings-CB59ekH2.js +38 -0
- package/dist/rich-text-editor.strings-CB59ekH2.js.map +1 -0
- package/dist/safe-image-src-C6kQSMBZ.js +17 -0
- package/dist/safe-image-src-C6kQSMBZ.js.map +1 -0
- package/dist/sanitize-html-DsQmI48u.js +92 -0
- package/dist/sanitize-html-DsQmI48u.js.map +1 -0
- package/dist/scroll-area-Bt_vXY2b.js +48 -0
- package/dist/scroll-area-Bt_vXY2b.js.map +1 -0
- package/dist/{separator-Do5GWDYi.js → separator-C8DlRGwF.js} +3 -3
- package/dist/{separator-Do5GWDYi.js.map → separator-C8DlRGwF.js.map} +1 -1
- package/dist/{separator-BMEvwnSX.js → separator-CYHnjsAb.js} +2 -2
- package/dist/{separator-BMEvwnSX.js.map → separator-CYHnjsAb.js.map} +1 -1
- package/dist/services/actions/action-adapters.d.ts +18 -0
- package/dist/services/actions/index.d.ts +1 -1
- package/dist/services/actions.js +16 -4
- package/dist/services/actions.js.map +1 -1
- package/dist/settings-CQW3b-Cu.js +170 -0
- package/dist/settings-CQW3b-Cu.js.map +1 -0
- package/dist/sheet-4SEvVYzA.js +210 -0
- package/dist/sheet-4SEvVYzA.js.map +1 -0
- package/dist/{sidebar-Crc9M9JV.js → sidebar-C7WWR29L.js} +180 -179
- package/dist/sidebar-C7WWR29L.js.map +1 -0
- package/dist/{sidebar-Cb8WzOvE.js → sidebar-d7Dg80ln.js} +16 -16
- package/dist/sidebar-d7Dg80ln.js.map +1 -0
- package/dist/{skeleton-DVMXr15h.js → skeleton-Cz890JZF.js} +9 -9
- package/dist/{skeleton-DVMXr15h.js.map → skeleton-Cz890JZF.js.map} +1 -1
- package/dist/smart-card-lFKxn5Hu.js +595 -0
- package/dist/smart-card-lFKxn5Hu.js.map +1 -0
- package/dist/{spinner-CmTAbEp0.js → spinner-fa3h1Aif.js} +7 -7
- package/dist/{spinner-CmTAbEp0.js.map → spinner-fa3h1Aif.js.map} +1 -1
- package/dist/{structure-hzCW-XsV.js → structure-DC2dygdA.js} +2 -2
- package/dist/{structure-hzCW-XsV.js.map → structure-DC2dygdA.js.map} +1 -1
- package/dist/style.css +1 -1
- package/dist/surface-recipes-BKRVW8Os.js +43 -0
- package/dist/surface-recipes-BKRVW8Os.js.map +1 -0
- package/dist/{table-D6zKeYQX.js → table-CIKyLUsy.js} +59 -58
- package/dist/table-CIKyLUsy.js.map +1 -0
- package/dist/table-CrcLN9Io.js +1458 -0
- package/dist/table-CrcLN9Io.js.map +1 -0
- package/dist/{tabs-Dk8E_knt.js → tabs-DwBJfjxX.js} +58 -57
- package/dist/tabs-DwBJfjxX.js.map +1 -0
- package/dist/{text-inputs-BFpku0Qd.js → text-inputs-aaK9wcDT.js} +74 -79
- package/dist/text-inputs-aaK9wcDT.js.map +1 -0
- package/dist/theme.css +3 -3
- package/dist/{timelines-CxuAFIc2.js → timelines-C_SBwHNP.js} +153 -150
- package/dist/timelines-C_SBwHNP.js.map +1 -0
- package/dist/tone-recipes-CPoExcTE.js +70 -0
- package/dist/tone-recipes-CPoExcTE.js.map +1 -0
- package/dist/tooltip-CsfgrfS7.js +111 -0
- package/dist/tooltip-CsfgrfS7.js.map +1 -0
- package/dist/{tree-BotPlyiD.js → tree-BiKhg8AY.js} +68 -66
- package/dist/tree-BiKhg8AY.js.map +1 -0
- package/dist/typography/rich-text.js +1 -1
- package/dist/typography-DTRkE9zL.js +117 -0
- package/dist/typography-DTRkE9zL.js.map +1 -0
- package/dist/typography.js +1 -1
- package/dist/{ui-provider-D2_TeLqw.js → ui-provider-1D_NSYzO.js} +11 -3
- package/dist/ui-provider-1D_NSYzO.js.map +1 -0
- package/dist/ui-provider.js +3 -3
- package/dist/{upload-B0WHW7ak.js → upload-BO8-CLN6.js} +209 -209
- package/dist/upload-BO8-CLN6.js.map +1 -0
- package/dist/{upload-queue-BHZ_wBfd.js → upload-queue-EOC8g1gf.js} +109 -111
- package/dist/upload-queue-EOC8g1gf.js.map +1 -0
- package/dist/upload.recipes-BbxTqrCT.js +61 -0
- package/dist/upload.recipes-BbxTqrCT.js.map +1 -0
- package/dist/{usage-card-U0YBLTNT.js → usage-card-obRaBskq.js} +46 -46
- package/dist/{usage-card-U0YBLTNT.js.map → usage-card-obRaBskq.js.map} +1 -1
- package/dist/{utils-Cospvlj1.js → utils-l5LpDw2z.js} +56 -24
- package/dist/utils-l5LpDw2z.js.map +1 -0
- package/dist/value-inputs-TAYMX111.js +947 -0
- package/dist/value-inputs-TAYMX111.js.map +1 -0
- package/dist/{value-typography-Deb3yQZg.js → value-typography-b8wpz1eX.js} +2 -2
- package/dist/{value-typography-Deb3yQZg.js.map → value-typography-b8wpz1eX.js.map} +1 -1
- package/dist/workspace-DH0v0KcB.js +407 -0
- package/dist/workspace-DH0v0KcB.js.map +1 -0
- package/docs/consumer-skill/SKILL.md +19 -20
- package/docs/consumer-skill/examples/app-layout.tsx +1 -1
- package/docs/consumer-skill/examples/composition.tsx +3 -3
- package/docs/consumer-skill/examples/detail.tsx +59 -12
- package/docs/consumer-skill/examples/edit.tsx +1 -1
- package/docs/consumer-skill/examples/receipt.tsx +2 -2
- package/docs/consumer-skill/examples/scoped-directory.tsx +1 -1
- package/docs/consumer-skill/examples/website.tsx +1 -1
- package/docs/consumer-skill/references/agents-md.md +33 -0
- package/docs/consumer-skill/references/analytics.md +1 -1
- package/docs/consumer-skill/references/composition.md +51 -8
- package/docs/consumer-skill/references/design-contract.md +12 -3
- package/docs/consumer-skill/references/installation.md +11 -1
- package/docs/consumer-skill/references/public-api.json +847 -447
- package/docs/consumer-skill/references/review.md +25 -5
- package/docs/consumer-skill/references/theming.md +8 -4
- package/docs/consumer-skill/references/tokens.json +1 -1
- package/docs/consumer-skill/references/workflows.md +29 -10
- package/docs/consumer-skill/scripts/composition-policy.mjs +41 -11
- package/docs/consumer-skill/scripts/surface-policy.mjs +139 -5
- package/package.json +10 -2
- package/dist/accordion-CQXVcd7Q.js.map +0 -1
- package/dist/action-menu-BTpyPWJ2.js +0 -264
- package/dist/action-menu-BTpyPWJ2.js.map +0 -1
- package/dist/affordance-geometry.generated-CCIXb2A1.js.map +0 -1
- package/dist/ai-artifact-2PQ2fItc.js.map +0 -1
- package/dist/attachment-q69dlt5Y.js +0 -244
- package/dist/attachment-q69dlt5Y.js.map +0 -1
- package/dist/auth-M3vGMgDR.js.map +0 -1
- package/dist/avatar-djdaaQ_s.js.map +0 -1
- package/dist/badge-0tATj-tW.js +0 -92
- package/dist/badge-0tATj-tW.js.map +0 -1
- package/dist/breadcrumbs-BG_FfMK4.js +0 -128
- package/dist/breadcrumbs-BG_FfMK4.js.map +0 -1
- package/dist/button-BS3KDg00.js.map +0 -1
- package/dist/button-R9CCoH7A.js.map +0 -1
- package/dist/buttons-DS0ZIwJ_.js +0 -99
- package/dist/buttons-DS0ZIwJ_.js.map +0 -1
- package/dist/cards-QoJ4syG9.js.map +0 -1
- package/dist/checkbox-B7ygNTYp.js +0 -35
- package/dist/checkbox-B7ygNTYp.js.map +0 -1
- package/dist/choice-inputs-DrJ17tpL.js +0 -752
- package/dist/choice-inputs-DrJ17tpL.js.map +0 -1
- package/dist/code-block-CD0B7M93.js +0 -183
- package/dist/code-block-CD0B7M93.js.map +0 -1
- package/dist/combobox-6dvVny2q.js.map +0 -1
- package/dist/combobox-CB7039j7.js.map +0 -1
- package/dist/comments-You0Bzbr.js.map +0 -1
- package/dist/components/layout/page/partials/page-header-commands.d.ts +0 -13
- package/dist/containers-D_L4mTVb.js.map +0 -1
- package/dist/data-display-3xWQUnMA.js +0 -1335
- package/dist/data-display-3xWQUnMA.js.map +0 -1
- package/dist/date-picker-DrDFj8Lo.js +0 -1527
- package/dist/date-picker-DrDFj8Lo.js.map +0 -1
- package/dist/display-DrdvPwF0.js.map +0 -1
- package/dist/feedback-C7nR0UtT.js.map +0 -1
- package/dist/field-affordance-recipes-CkOCdE2y.js.map +0 -1
- package/dist/field-state-recipes-C-MFBX_8.js +0 -11
- package/dist/field-state-recipes-C-MFBX_8.js.map +0 -1
- package/dist/filters-Da-gNPsE.js.map +0 -1
- package/dist/form-sizing-uWP4lzVh.js.map +0 -1
- package/dist/forms-numeric-D3CO60IF.js.map +0 -1
- package/dist/header-2ycNqGOR.js.map +0 -1
- package/dist/icon-badge-DKlaKXoo.js +0 -53
- package/dist/icon-badge-DKlaKXoo.js.map +0 -1
- package/dist/input-DhQdBnV3.js +0 -255
- package/dist/input-DhQdBnV3.js.map +0 -1
- package/dist/item-xzh8Df65.js.map +0 -1
- package/dist/media-gallery-DQUQ0m3O.js +0 -201
- package/dist/media-gallery-DQUQ0m3O.js.map +0 -1
- package/dist/mentions-DwnO1hh4.js +0 -564
- package/dist/mentions-DwnO1hh4.js.map +0 -1
- package/dist/navigation-Cbp5V8gG.js +0 -264
- package/dist/navigation-Cbp5V8gG.js.map +0 -1
- package/dist/navigation-Cs1npsPm.js +0 -300
- package/dist/navigation-Cs1npsPm.js.map +0 -1
- package/dist/overlay.recipes-CNO2S9V6.js +0 -34
- package/dist/overlay.recipes-CNO2S9V6.js.map +0 -1
- package/dist/overlays-DhZO7N-I.js +0 -994
- package/dist/overlays-DhZO7N-I.js.map +0 -1
- package/dist/page-C6R_8jFt.js +0 -325
- package/dist/page-C6R_8jFt.js.map +0 -1
- package/dist/page-header-hUTzcRZX.js +0 -112
- package/dist/page-header-hUTzcRZX.js.map +0 -1
- package/dist/popover-Dcv_9jxr.js.map +0 -1
- package/dist/rich-text-editor-CF8QYt5p.js +0 -574
- package/dist/rich-text-editor-CF8QYt5p.js.map +0 -1
- package/dist/rich-text-editor.recipes-CnrbmTS1.js +0 -81
- package/dist/rich-text-editor.recipes-CnrbmTS1.js.map +0 -1
- package/dist/rich-text-editor.strings-BpnIQgMl.js +0 -25
- package/dist/rich-text-editor.strings-BpnIQgMl.js.map +0 -1
- package/dist/rich-text-j-FGAeZW.js +0 -32
- package/dist/rich-text-j-FGAeZW.js.map +0 -1
- package/dist/sanitize-html-BG9FGe-j.js +0 -64
- package/dist/sanitize-html-BG9FGe-j.js.map +0 -1
- package/dist/scroll-area-DRdr16Pt.js +0 -47
- package/dist/scroll-area-DRdr16Pt.js.map +0 -1
- package/dist/settings-DHk0L2MF.js +0 -161
- package/dist/settings-DHk0L2MF.js.map +0 -1
- package/dist/sheet-DRFNY1_D.js +0 -207
- package/dist/sheet-DRFNY1_D.js.map +0 -1
- package/dist/sidebar-Cb8WzOvE.js.map +0 -1
- package/dist/sidebar-Crc9M9JV.js.map +0 -1
- package/dist/smart-card-Bek-TwUp.js +0 -599
- package/dist/smart-card-Bek-TwUp.js.map +0 -1
- package/dist/surface-recipes-DOdoBXGm.js +0 -28
- package/dist/surface-recipes-DOdoBXGm.js.map +0 -1
- package/dist/table-D6zKeYQX.js.map +0 -1
- package/dist/table-Dn4XSrSB.js +0 -1444
- package/dist/table-Dn4XSrSB.js.map +0 -1
- package/dist/tabs-Dk8E_knt.js.map +0 -1
- package/dist/text-inputs-BFpku0Qd.js.map +0 -1
- package/dist/timelines-CxuAFIc2.js.map +0 -1
- package/dist/tree-BotPlyiD.js.map +0 -1
- package/dist/typography-CAr3dQhX.js +0 -116
- package/dist/typography-CAr3dQhX.js.map +0 -1
- package/dist/ui-provider-D2_TeLqw.js.map +0 -1
- package/dist/upload-B0WHW7ak.js.map +0 -1
- package/dist/upload-queue-BHZ_wBfd.js.map +0 -1
- package/dist/use-file-drop-target-BX7GnhoQ.js +0 -39
- package/dist/use-file-drop-target-BX7GnhoQ.js.map +0 -1
- package/dist/utils-Cospvlj1.js.map +0 -1
- package/dist/value-inputs-CjfzGMsN.js +0 -854
- package/dist/value-inputs-CjfzGMsN.js.map +0 -1
- package/dist/workspace-YoFjXi6i.js +0 -394
- package/dist/workspace-YoFjXi6i.js.map +0 -1
- /package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-list.strings.d.ts +0 -0
|
@@ -1,1335 +0,0 @@
|
|
|
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
|