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
|
@@ -0,0 +1,595 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { i as e, s as t, v as n } from "./ui-provider-1D_NSYzO.js";
|
|
3
|
+
import { useStrings as r } from "./lib/strings.js";
|
|
4
|
+
import { t as i } from "./utils-l5LpDw2z.js";
|
|
5
|
+
import { n as a } from "./buttons-SbIcm1HJ.js";
|
|
6
|
+
import { c as o, s } from "./typography-DTRkE9zL.js";
|
|
7
|
+
import { t as c } from "./motion-recipes-ChBg4HBq.js";
|
|
8
|
+
import { i as l, n as ee, t as u } from "./tooltip-CsfgrfS7.js";
|
|
9
|
+
import { n as d } from "./structure.recipes-EPz60cU8.js";
|
|
10
|
+
import { t as f } from "./structure-DC2dygdA.js";
|
|
11
|
+
import { t as p } from "./icon-size-B6PVwjbC.js";
|
|
12
|
+
import { r as m } from "./tone-recipes-CPoExcTE.js";
|
|
13
|
+
import { a as h } from "./surface-recipes-BKRVW8Os.js";
|
|
14
|
+
import { n as g } from "./action-menu-TzCoSlwL.js";
|
|
15
|
+
import { Fragment as _, forwardRef as v, isValidElement as y, useCallback as te, useState as b } from "react";
|
|
16
|
+
import { jsx as x, jsxs as S } from "react/jsx-runtime";
|
|
17
|
+
import { ChevronDown as C, Info as w } from "lucide-react";
|
|
18
|
+
import { cva as T } from "class-variance-authority";
|
|
19
|
+
//#region src/components/base/feedback/alert.tsx
|
|
20
|
+
var E = T([
|
|
21
|
+
"alert--component relative grid w-full grid-cols-[0_1fr] items-start gap-y-normal rounded-radius border p-surface text-start",
|
|
22
|
+
"has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-space-md",
|
|
23
|
+
"has-[>[data-slot=alert-action]]:sm:grid-cols-[0_minmax(0,1fr)_auto] has-[>svg]:has-[>[data-slot=alert-action]]:sm:grid-cols-[auto_minmax(0,1fr)_auto] has-[>[data-slot=alert-action]]:gap-x-space-md",
|
|
24
|
+
"[&>svg]:row-span-2 [&>svg]:mt-[calc((1em*1.375-var(--icon))/2)] [&>svg]:shrink-0",
|
|
25
|
+
p.md
|
|
26
|
+
], {
|
|
27
|
+
variants: {
|
|
28
|
+
tone: {
|
|
29
|
+
neutral: "border-border bg-card text-card-foreground",
|
|
30
|
+
primary: `${m.primary.edge} ${m.primary.wash} text-card-foreground [&>svg]:text-primary-accent`,
|
|
31
|
+
secondary: "border-border bg-muted/50 text-card-foreground [&>svg]:text-secondary-foreground",
|
|
32
|
+
info: `${m.info.edge} ${m.info.wash} text-card-foreground [&>svg]:text-info`,
|
|
33
|
+
success: `${m.success.edge} ${m.success.wash} text-card-foreground [&>svg]:text-success`,
|
|
34
|
+
warning: `${m.warning.edge} ${m.warning.wash} text-card-foreground [&>svg]:text-warning-accent`,
|
|
35
|
+
destructive: `${m.destructive.edge} ${m.destructive.wash} text-card-foreground [&>svg]:text-destructive`
|
|
36
|
+
},
|
|
37
|
+
variant: {
|
|
38
|
+
default: "",
|
|
39
|
+
inverse: [
|
|
40
|
+
"border-foreground bg-foreground text-background",
|
|
41
|
+
"[&>svg]:text-background",
|
|
42
|
+
"[&_[data-slot=alert-title]_[data-typography=text]]:text-background",
|
|
43
|
+
"[&_[data-slot=alert-description]_[data-typography=text]]:text-background/75",
|
|
44
|
+
"[&_[data-slot=alert-metadata-item]]:bg-background/10",
|
|
45
|
+
"[&_[data-slot=alert-metadata-item]>svg]:text-background/75",
|
|
46
|
+
"[&_[data-slot=alert-metadata-label]_[data-typography=text]]:text-background/75",
|
|
47
|
+
"[&_[data-slot=alert-metadata-value]_[data-typography=text]]:text-background"
|
|
48
|
+
]
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
defaultVariants: {
|
|
52
|
+
tone: "neutral",
|
|
53
|
+
variant: "default"
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
function D(e) {
|
|
57
|
+
return typeof e == "string" || typeof e == "number" || typeof e == "bigint";
|
|
58
|
+
}
|
|
59
|
+
var O = v(function({ className: e, tone: t, variant: n, role: r = "alert", ...a }, o) {
|
|
60
|
+
return /* @__PURE__ */ x("div", {
|
|
61
|
+
ref: o,
|
|
62
|
+
"data-slot": "alert",
|
|
63
|
+
"data-tone": t ?? "neutral",
|
|
64
|
+
"data-variant": n ?? "default",
|
|
65
|
+
role: r,
|
|
66
|
+
className: i(E({
|
|
67
|
+
tone: t,
|
|
68
|
+
variant: n
|
|
69
|
+
}), e),
|
|
70
|
+
...a
|
|
71
|
+
});
|
|
72
|
+
});
|
|
73
|
+
O.displayName = "Alert";
|
|
74
|
+
var k = v(function({ className: e, children: t, ...n }, r) {
|
|
75
|
+
return /* @__PURE__ */ x("div", {
|
|
76
|
+
ref: r,
|
|
77
|
+
"data-slot": "alert-title",
|
|
78
|
+
className: i("alert--title col-start-2 min-h-icon leading-snug [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:opacity-80", e),
|
|
79
|
+
...n,
|
|
80
|
+
children: D(t) ? /* @__PURE__ */ x(s, {
|
|
81
|
+
tag: "span",
|
|
82
|
+
weight: "semibold",
|
|
83
|
+
lineHeight: "snug",
|
|
84
|
+
children: t
|
|
85
|
+
}) : t
|
|
86
|
+
});
|
|
87
|
+
});
|
|
88
|
+
k.displayName = "AlertTitle";
|
|
89
|
+
var A = v(function({ className: e, children: t, ...n }, r) {
|
|
90
|
+
return /* @__PURE__ */ x(f, {
|
|
91
|
+
ref: r,
|
|
92
|
+
"data-slot": "alert-description",
|
|
93
|
+
gap: "xs",
|
|
94
|
+
align: "start",
|
|
95
|
+
className: i("alert--description col-start-2 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:opacity-80 [&_p]:leading-relaxed", e),
|
|
96
|
+
...n,
|
|
97
|
+
children: D(t) ? /* @__PURE__ */ x(s, {
|
|
98
|
+
tag: "span",
|
|
99
|
+
type: "secondary",
|
|
100
|
+
children: t
|
|
101
|
+
}) : t
|
|
102
|
+
});
|
|
103
|
+
});
|
|
104
|
+
A.displayName = "AlertDescription";
|
|
105
|
+
var ne = v(function({ className: e, ...t }, n) {
|
|
106
|
+
return /* @__PURE__ */ x("dl", {
|
|
107
|
+
ref: n,
|
|
108
|
+
"data-slot": "alert-metadata",
|
|
109
|
+
className: i("alert-metadata--component alert--metadata col-start-2 mt-space-xs flex min-w-0 flex-wrap items-center gap-x-space-md gap-y-space-xs", e),
|
|
110
|
+
...t
|
|
111
|
+
});
|
|
112
|
+
});
|
|
113
|
+
ne.displayName = "AlertMetadata";
|
|
114
|
+
var j = v(function({ className: e, icon: t, label: n, value: r, numeric: a = !1, ...o }, c) {
|
|
115
|
+
return /* @__PURE__ */ S("div", {
|
|
116
|
+
ref: c,
|
|
117
|
+
"data-slot": "alert-metadata-item",
|
|
118
|
+
className: i("alert-metadata-item--component alert--metadata-item inline-flex max-w-full min-w-0 items-center gap-space-sm rounded-radius-sm bg-foreground/8 px-control-xs py-space-xs", "[&>svg]:size-icon-sm [&>svg]:shrink-0 [&>svg]:text-muted-foreground", e),
|
|
119
|
+
...o,
|
|
120
|
+
children: [
|
|
121
|
+
t,
|
|
122
|
+
/* @__PURE__ */ x("dt", {
|
|
123
|
+
"data-slot": "alert-metadata-label",
|
|
124
|
+
className: "alert--metadata-label shrink-0",
|
|
125
|
+
children: D(n) ? /* @__PURE__ */ x(s, {
|
|
126
|
+
tag: "span",
|
|
127
|
+
size: "xs",
|
|
128
|
+
type: "secondary",
|
|
129
|
+
className: "leading-none",
|
|
130
|
+
children: n
|
|
131
|
+
}) : n
|
|
132
|
+
}),
|
|
133
|
+
/* @__PURE__ */ x("dd", {
|
|
134
|
+
"data-slot": "alert-metadata-value",
|
|
135
|
+
className: "alert--metadata-value m-0 min-w-0",
|
|
136
|
+
children: D(r) ? /* @__PURE__ */ x(s, {
|
|
137
|
+
tag: "span",
|
|
138
|
+
size: "xs",
|
|
139
|
+
weight: "semibold",
|
|
140
|
+
className: i("break-words leading-none", a && "tabular-nums"),
|
|
141
|
+
children: r
|
|
142
|
+
}) : r
|
|
143
|
+
})
|
|
144
|
+
]
|
|
145
|
+
});
|
|
146
|
+
});
|
|
147
|
+
j.displayName = "AlertMetadataItem";
|
|
148
|
+
var M = v(function({ className: e, ...t }, n) {
|
|
149
|
+
return /* @__PURE__ */ x(f, {
|
|
150
|
+
ref: n,
|
|
151
|
+
direction: "horizontal",
|
|
152
|
+
align: "center",
|
|
153
|
+
justify: {
|
|
154
|
+
base: "start",
|
|
155
|
+
sm: "end"
|
|
156
|
+
},
|
|
157
|
+
wrap: !0,
|
|
158
|
+
gap: "sm",
|
|
159
|
+
"data-slot": "alert-action",
|
|
160
|
+
className: i("alert--action max-sm:col-start-2 max-sm:mt-space-md sm:col-start-3 sm:row-start-1 sm:row-span-2 sm:self-start", e),
|
|
161
|
+
...t
|
|
162
|
+
});
|
|
163
|
+
});
|
|
164
|
+
M.displayName = "AlertAction";
|
|
165
|
+
//#endregion
|
|
166
|
+
//#region src/components/ui/card.tsx
|
|
167
|
+
function re({ className: e, size: t = "default", ...n }) {
|
|
168
|
+
return /* @__PURE__ */ x("div", {
|
|
169
|
+
"data-slot": "card",
|
|
170
|
+
"data-size": t,
|
|
171
|
+
className: i("card--primitive", e),
|
|
172
|
+
...n
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
function N({ className: e, ...t }) {
|
|
176
|
+
return /* @__PURE__ */ x("div", {
|
|
177
|
+
"data-slot": "card-header",
|
|
178
|
+
className: i("card-header--primitive", e),
|
|
179
|
+
...t
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
function P({ className: e, ...t }) {
|
|
183
|
+
return /* @__PURE__ */ x("div", {
|
|
184
|
+
"data-slot": "card-title",
|
|
185
|
+
className: i("card-title--primitive", e),
|
|
186
|
+
...t
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
function F({ className: e, ...t }) {
|
|
190
|
+
return /* @__PURE__ */ x("div", {
|
|
191
|
+
"data-slot": "card-description",
|
|
192
|
+
className: i("card-description--primitive", e),
|
|
193
|
+
...t
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
function ie({ className: e, ...t }) {
|
|
197
|
+
return /* @__PURE__ */ x("div", {
|
|
198
|
+
"data-slot": "card-content",
|
|
199
|
+
className: i("card-content--primitive", e),
|
|
200
|
+
...t
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
function ae({ className: e, ...t }) {
|
|
204
|
+
return /* @__PURE__ */ x("div", {
|
|
205
|
+
"data-slot": "card-footer",
|
|
206
|
+
className: i("card-footer--primitive", e),
|
|
207
|
+
...t
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
//#endregion
|
|
211
|
+
//#region src/components/base/cards/card.recipes.ts
|
|
212
|
+
var I = {
|
|
213
|
+
none: "p-0",
|
|
214
|
+
sm: "p-surface-xs",
|
|
215
|
+
md: "p-surface",
|
|
216
|
+
lg: "p-surface-lg"
|
|
217
|
+
}, L = {
|
|
218
|
+
root: "flex flex-col w-full font-sans rounded-radius box-border overflow-hidden py-surface gap-space-xl transition-[background-color,border-color,box-shadow] duration-150",
|
|
219
|
+
shell: "@container/card flex flex-col w-full font-sans rounded-radius box-border overflow-hidden py-surface gap-space-xl transition-[background-color,border-color,box-shadow] duration-150",
|
|
220
|
+
surfaceCard: `bg-card ${h.frame.shell} shadow-sm text-card-foreground`,
|
|
221
|
+
surfaceDefault: `bg-card ${h.frame.shell} shadow-sm text-card-foreground`,
|
|
222
|
+
surfaceFlat: "bg-transparent border-0 shadow-none text-foreground",
|
|
223
|
+
surfaceFramed: `bg-card ${h.frame.shell} shadow-sm ${h.frame.ring} text-card-foreground`,
|
|
224
|
+
surfaceRaised: `bg-card ${h.frame.shell} shadow-md text-card-foreground`,
|
|
225
|
+
surfaceSunken: `bg-muted ${h.frame.shell} text-foreground`,
|
|
226
|
+
header: "flex flex-col gap-normal px-surface box-border",
|
|
227
|
+
headerRow: "flex-row flex-wrap items-start justify-between gap-space-lg pb-0",
|
|
228
|
+
headerRowSingle: "items-center",
|
|
229
|
+
headerLeading: "min-w-0 max-w-full flex-1 basis-64",
|
|
230
|
+
headerLeadingSingle: "basis-36",
|
|
231
|
+
headerTrailing: "flex max-w-full flex-wrap shrink-0 items-center gap-space-md",
|
|
232
|
+
headerDivider: `${h.frame.header} [&.border-b]:!pb-surface`,
|
|
233
|
+
title: "min-w-0 leading-tight text-card-foreground",
|
|
234
|
+
titleSm: "text-sm",
|
|
235
|
+
titleMd: "text-base",
|
|
236
|
+
titleLg: "text-lg",
|
|
237
|
+
description: "text-sm text-muted-foreground leading-normal",
|
|
238
|
+
content: "px-surface box-border min-w-0",
|
|
239
|
+
footer: "flex items-center px-surface box-border",
|
|
240
|
+
footerDivider: `${h.frame.footer} [&.border-t]:!pt-surface`,
|
|
241
|
+
alert: "px-surface",
|
|
242
|
+
alertWithHeader: "-mt-space-xs",
|
|
243
|
+
expandToggle: "flex justify-center pb-surface -mt-space-md"
|
|
244
|
+
}, R = {
|
|
245
|
+
root: "card--component",
|
|
246
|
+
header: "card--header",
|
|
247
|
+
title: "card--title",
|
|
248
|
+
description: "card--description",
|
|
249
|
+
content: "card--content",
|
|
250
|
+
footer: "card--footer",
|
|
251
|
+
alert: "card--alert",
|
|
252
|
+
collapseFade: "card--collapse-fade",
|
|
253
|
+
expandToggle: "card--expand-toggle",
|
|
254
|
+
expandToggleButton: "card--expand-toggle-button"
|
|
255
|
+
}, z = {
|
|
256
|
+
shell: L.shell,
|
|
257
|
+
headerX: "px-surface",
|
|
258
|
+
headerDividerY: L.headerDivider,
|
|
259
|
+
contentX: L.content,
|
|
260
|
+
contentY: "",
|
|
261
|
+
footerX: L.footer,
|
|
262
|
+
footerDividerY: L.footerDivider,
|
|
263
|
+
alertX: L.alert,
|
|
264
|
+
expandableBottom: "pb-surface",
|
|
265
|
+
alertOffsetWithHeader: L.alertWithHeader,
|
|
266
|
+
alertOffsetStandalone: ""
|
|
267
|
+
}, oe = {
|
|
268
|
+
card: L.surfaceCard,
|
|
269
|
+
flat: L.surfaceFlat,
|
|
270
|
+
framed: L.surfaceFramed
|
|
271
|
+
};
|
|
272
|
+
//#endregion
|
|
273
|
+
//#region src/components/base/cards/partials/has-renderable-content.ts
|
|
274
|
+
function B(e) {
|
|
275
|
+
return e == null || typeof e == "boolean" ? !1 : typeof e == "string" ? e.trim().length > 0 : typeof e == "number" || typeof e == "bigint" ? !0 : Array.isArray(e) ? e.some(B) : !y(e) || e.type !== _ || B(e.props.children);
|
|
276
|
+
}
|
|
277
|
+
//#endregion
|
|
278
|
+
//#region src/components/base/cards/partials/card-primitives.tsx
|
|
279
|
+
var V = {
|
|
280
|
+
sm: L.titleSm,
|
|
281
|
+
md: L.titleMd,
|
|
282
|
+
lg: L.titleLg
|
|
283
|
+
}, H = {
|
|
284
|
+
sm: "sm",
|
|
285
|
+
md: "base",
|
|
286
|
+
lg: "lg"
|
|
287
|
+
};
|
|
288
|
+
function se({ className: e, ...t }) {
|
|
289
|
+
return /* @__PURE__ */ x(re, {
|
|
290
|
+
className: i(R.root, L.shell, e),
|
|
291
|
+
...t
|
|
292
|
+
});
|
|
293
|
+
}
|
|
294
|
+
function U({ className: e, textGap: t = "normal", padding: n, ...r }) {
|
|
295
|
+
return /* @__PURE__ */ x(N, {
|
|
296
|
+
className: i(R.header, L.header, n !== void 0 && I[n], t === "dense" ? "gap-dense" : "gap-normal", e),
|
|
297
|
+
...r
|
|
298
|
+
});
|
|
299
|
+
}
|
|
300
|
+
function ce({ className: e, children: r, size: a, ...o }) {
|
|
301
|
+
let { defaultScale: c } = t(), l = n(a, c);
|
|
302
|
+
return B(r) ? typeof r != "string" && typeof r != "number" && typeof r != "bigint" ? /* @__PURE__ */ x(P, {
|
|
303
|
+
className: i(R.title, L.title, "font-medium", V[l], e),
|
|
304
|
+
...o,
|
|
305
|
+
children: r
|
|
306
|
+
}) : /* @__PURE__ */ x(s, {
|
|
307
|
+
"data-slot": "card-title",
|
|
308
|
+
tag: "div",
|
|
309
|
+
size: H[l],
|
|
310
|
+
weight: "semibold",
|
|
311
|
+
lineHeight: "tight",
|
|
312
|
+
className: i(R.title, L.title, e),
|
|
313
|
+
...o,
|
|
314
|
+
children: r
|
|
315
|
+
}) : null;
|
|
316
|
+
}
|
|
317
|
+
function le({ className: e, children: t, ...n }) {
|
|
318
|
+
return B(t) ? typeof t != "string" && typeof t != "number" && typeof t != "bigint" ? /* @__PURE__ */ x(F, {
|
|
319
|
+
className: i(R.description, L.description, e),
|
|
320
|
+
...n,
|
|
321
|
+
children: /* @__PURE__ */ x(o.Provider, {
|
|
322
|
+
value: !0,
|
|
323
|
+
children: t
|
|
324
|
+
})
|
|
325
|
+
}) : /* @__PURE__ */ x(s, {
|
|
326
|
+
"data-slot": "card-description",
|
|
327
|
+
tag: "div",
|
|
328
|
+
type: "secondary",
|
|
329
|
+
className: i(R.description, e),
|
|
330
|
+
...n,
|
|
331
|
+
children: t
|
|
332
|
+
}) : null;
|
|
333
|
+
}
|
|
334
|
+
function ue({ className: e, padding: t, ...n }) {
|
|
335
|
+
return /* @__PURE__ */ x(ie, {
|
|
336
|
+
className: i(R.content, L.content, t !== void 0 && I[t], e),
|
|
337
|
+
...n
|
|
338
|
+
});
|
|
339
|
+
}
|
|
340
|
+
function de({ className: e, padding: t, ...n }) {
|
|
341
|
+
return /* @__PURE__ */ x(ae, {
|
|
342
|
+
className: i(R.footer, L.footer, t !== void 0 && I[t], e),
|
|
343
|
+
...n
|
|
344
|
+
});
|
|
345
|
+
}
|
|
346
|
+
//#endregion
|
|
347
|
+
//#region src/components/base/cards/partials/smart-card-alert.tsx
|
|
348
|
+
function fe({ alert: e, alertTone: t, hasHeader: n, className: r }) {
|
|
349
|
+
return /* @__PURE__ */ x("div", {
|
|
350
|
+
className: i(R.alert, z.alertX, r, n ? z.alertOffsetWithHeader : z.alertOffsetStandalone),
|
|
351
|
+
children: /* @__PURE__ */ x(O, {
|
|
352
|
+
tone: t,
|
|
353
|
+
children: /* @__PURE__ */ x(A, { children: e })
|
|
354
|
+
})
|
|
355
|
+
});
|
|
356
|
+
}
|
|
357
|
+
//#endregion
|
|
358
|
+
//#region src/components/base/display/surface-title.tsx
|
|
359
|
+
function pe({ title: e, suffix: t, size: n = "base", className: r, suffixClassName: a, dataSlot: o }) {
|
|
360
|
+
let c = typeof e == "string" || typeof e == "number" || typeof e == "bigint";
|
|
361
|
+
return /* @__PURE__ */ S(s, {
|
|
362
|
+
tag: "div",
|
|
363
|
+
size: n,
|
|
364
|
+
weight: c ? "semibold" : "medium",
|
|
365
|
+
lineHeight: "tight",
|
|
366
|
+
"data-slot": o,
|
|
367
|
+
className: i("surface-title--component flex min-w-0 flex-wrap items-center gap-space-md break-words leading-tight", r),
|
|
368
|
+
children: [e != null && /* @__PURE__ */ x("span", {
|
|
369
|
+
className: "min-w-0 max-w-full",
|
|
370
|
+
...c ? {
|
|
371
|
+
role: "heading",
|
|
372
|
+
"aria-level": 2
|
|
373
|
+
} : {},
|
|
374
|
+
children: e
|
|
375
|
+
}), t != null && /* @__PURE__ */ x("div", {
|
|
376
|
+
className: i("surface-title--suffix inline-flex max-w-full flex-wrap items-center gap-space-md", a),
|
|
377
|
+
children: t
|
|
378
|
+
})]
|
|
379
|
+
});
|
|
380
|
+
}
|
|
381
|
+
//#endregion
|
|
382
|
+
//#region src/components/base/cards/partials/smart-card-actions-menu.tsx
|
|
383
|
+
function me({ actions: e, actionsLabel: t }) {
|
|
384
|
+
let n = e.map((e, t) => ({
|
|
385
|
+
...e,
|
|
386
|
+
id: e.id ?? `card-action-${t}`
|
|
387
|
+
}));
|
|
388
|
+
return /* @__PURE__ */ x(g, {
|
|
389
|
+
actions: n,
|
|
390
|
+
srText: t,
|
|
391
|
+
align: "end",
|
|
392
|
+
closeOnSelect: !0,
|
|
393
|
+
buttonProps: { className: "card--actions-trigger" }
|
|
394
|
+
});
|
|
395
|
+
}
|
|
396
|
+
//#endregion
|
|
397
|
+
//#region src/components/base/cards/partials/smart-card-header-row.tsx
|
|
398
|
+
function he({ tooltipLabel: e }) {
|
|
399
|
+
return /* @__PURE__ */ x(l, { render: (t) => {
|
|
400
|
+
let n = t;
|
|
401
|
+
return /* @__PURE__ */ x(a, {
|
|
402
|
+
...n,
|
|
403
|
+
type: "button",
|
|
404
|
+
tone: "secondary",
|
|
405
|
+
buttonStyle: "ghost",
|
|
406
|
+
size: "sm",
|
|
407
|
+
iconOnly: !0,
|
|
408
|
+
className: i("card--tooltip-trigger", "text-muted-foreground", n.className),
|
|
409
|
+
"aria-label": e,
|
|
410
|
+
children: /* @__PURE__ */ x(w, { className: "size-icon-md" })
|
|
411
|
+
});
|
|
412
|
+
} });
|
|
413
|
+
}
|
|
414
|
+
function ge({ icon: e, title: t, titleSuffix: n, description: r, textGap: a = "normal", tooltip: o, tooltipLabel: s, headerStart: c, headerEnd: l, headerAction: d, actions: p, actionsLabel: m, titleSize: h, className: g }) {
|
|
415
|
+
let _ = Array.isArray(p) ? p : [], v = _.length > 0, y = B(e), te = B(t), b = B(n), C = B(r), w = B(o), T = B(c), E = B(l), D = B(d), O = y || te || b || w, k = E || D || v;
|
|
416
|
+
return /* @__PURE__ */ S(U, {
|
|
417
|
+
className: i(L.headerRow, !C && !T && L.headerRowSingle, z.headerX, g),
|
|
418
|
+
children: [/* @__PURE__ */ S(f, {
|
|
419
|
+
gap: a,
|
|
420
|
+
className: i("card--header-start", L.headerLeading, !C && !T && L.headerLeadingSingle),
|
|
421
|
+
children: [
|
|
422
|
+
!!T && c,
|
|
423
|
+
!!O && /* @__PURE__ */ S("div", {
|
|
424
|
+
className: "card--title-row flex min-w-0 items-start gap-space-sm",
|
|
425
|
+
children: [
|
|
426
|
+
!!y && /* @__PURE__ */ x("span", {
|
|
427
|
+
className: "card--icon flex shrink-0 items-center pt-space-2xs text-muted-foreground [&_svg]:size-icon",
|
|
428
|
+
children: e
|
|
429
|
+
}),
|
|
430
|
+
/* @__PURE__ */ x(pe, {
|
|
431
|
+
dataSlot: "card-title",
|
|
432
|
+
title: t,
|
|
433
|
+
suffix: b ? n : void 0,
|
|
434
|
+
size: h === "md" ? "base" : h === "lg" ? "lg" : "sm",
|
|
435
|
+
className: "card--title flex-1",
|
|
436
|
+
suffixClassName: "card--title-suffix"
|
|
437
|
+
}),
|
|
438
|
+
!!w && /* @__PURE__ */ S(u, { children: [/* @__PURE__ */ x(he, { tooltipLabel: s }), /* @__PURE__ */ x(ee, { children: o })] })
|
|
439
|
+
]
|
|
440
|
+
}),
|
|
441
|
+
!!C && /* @__PURE__ */ x(le, {
|
|
442
|
+
className: "text-start",
|
|
443
|
+
children: r
|
|
444
|
+
})
|
|
445
|
+
]
|
|
446
|
+
}), !!k && /* @__PURE__ */ S("div", {
|
|
447
|
+
className: i("card--header-end", L.headerTrailing),
|
|
448
|
+
children: [
|
|
449
|
+
!!E && l,
|
|
450
|
+
!!D && d,
|
|
451
|
+
!!v && /* @__PURE__ */ x(me, {
|
|
452
|
+
actions: _,
|
|
453
|
+
actionsLabel: m
|
|
454
|
+
})
|
|
455
|
+
]
|
|
456
|
+
})]
|
|
457
|
+
});
|
|
458
|
+
}
|
|
459
|
+
//#endregion
|
|
460
|
+
//#region src/components/base/cards/smart-card.strings.ts
|
|
461
|
+
var _e = {
|
|
462
|
+
actionsLabel: "More actions",
|
|
463
|
+
tooltipLabel: "Card info",
|
|
464
|
+
expandLabel: "Expand card",
|
|
465
|
+
collapseLabel: "Collapse card"
|
|
466
|
+
}, W = v(function({ icon: o, title: l, titleSuffix: ee, description: u, textGap: p = "normal", tooltip: m, tooltipAriaLabel: g, footerText: _, alert: v, alertTone: y = "neutral", surface: w, padding: T = "md", headerPlacement: E = "inside", gap: D, contentGap: O, titleSize: k, actions: A, actionsLabel: ne, headerAction: j, headerStart: M, headerEnd: re, contentTop: N, contentBottom: P, footerSlot: F, headerDivider: ie, footerDivider: ae, expandable: I = !1, defaultExpanded: L = !1, expanded: V, onExpandedChange: H, children: U, className: ce, headerClassName: le, contentClassName: pe, footerClassName: me, strings: he, ...W }, ve) {
|
|
467
|
+
let { defaultSurface: ye, defaultHeaderDivider: be, defaultFooterDivider: xe } = e(), Se = ae ?? xe ?? !1, { defaultScale: Ce } = t(), we = n(k, Ce), G = {
|
|
468
|
+
none: "px-0",
|
|
469
|
+
sm: "px-surface-xs",
|
|
470
|
+
md: "px-surface",
|
|
471
|
+
lg: "px-surface-lg"
|
|
472
|
+
}[T], Te = {
|
|
473
|
+
none: "py-0",
|
|
474
|
+
sm: "py-surface-xs",
|
|
475
|
+
md: "py-surface",
|
|
476
|
+
lg: "py-surface-lg"
|
|
477
|
+
}[T], K = {
|
|
478
|
+
...z,
|
|
479
|
+
headerX: G,
|
|
480
|
+
contentX: G,
|
|
481
|
+
footerX: G,
|
|
482
|
+
headerDividerY: {
|
|
483
|
+
none: "!pb-0",
|
|
484
|
+
sm: "!pb-surface-xs",
|
|
485
|
+
md: "!pb-surface",
|
|
486
|
+
lg: "!pb-surface-lg"
|
|
487
|
+
}[T],
|
|
488
|
+
footerDividerY: {
|
|
489
|
+
none: "!pt-0",
|
|
490
|
+
sm: "!pt-surface-xs",
|
|
491
|
+
md: "!pt-surface",
|
|
492
|
+
lg: "!pt-surface-lg"
|
|
493
|
+
}[T]
|
|
494
|
+
}, q = E === "frame", Ee = Array.isArray(A) ? A : [], J = r(_e, he), De = ne ?? J.actionsLabel, Y = I !== !1 && I !== void 0, Oe = typeof I == "object" && I?.collapsedMaxHeight !== void 0 ? I.collapsedMaxHeight : "12rem", ke = typeof Oe == "number" ? `${Oe}px` : Oe, Ae = V !== void 0, [je, Me] = b(L), X = Ae ? V : je, Ne = te(() => {
|
|
495
|
+
let e = !X;
|
|
496
|
+
Ae || Me(e), H?.(e);
|
|
497
|
+
}, [
|
|
498
|
+
X,
|
|
499
|
+
Ae,
|
|
500
|
+
H
|
|
501
|
+
]), Pe = B(o) || B(l) || B(u) || Ee.length > 0 || B(j) || B(M) || B(re), Fe = B(v), Ie = B(_), Z = B(F), Le = B(N), Re = B(P), ze = Le || Re || B(U) || Y, Be = Pe && (Ie || Z) && !Fe && !ze && !q, Ve = g && g.trim().length > 0 ? g : J.tooltipLabel, He = Y ? { maxHeight: X ? "" : ke } : void 0, Q = w ?? ye ?? "framed", Ue = ie ?? be ?? !1, $ = Be && (Ue || Se);
|
|
502
|
+
return /* @__PURE__ */ S(se, {
|
|
503
|
+
...W,
|
|
504
|
+
"data-header-placement": E,
|
|
505
|
+
ref: ve,
|
|
506
|
+
"data-surface": Q,
|
|
507
|
+
className: i(oe[Q], K.shell, Te, d({ gap: D ?? "xl" }), $ && "gap-0", q && "rounded-radius bg-muted p-surface-xs pt-0 gap-0 ring-0", Q === "flat" && !q && "overflow-visible", Y && i("relative mb-space-xl !overflow-visible", K.expandableBottom), ce),
|
|
508
|
+
children: [
|
|
509
|
+
!!Pe && /* @__PURE__ */ x(ge, {
|
|
510
|
+
icon: o,
|
|
511
|
+
title: l,
|
|
512
|
+
titleSuffix: ee,
|
|
513
|
+
description: u,
|
|
514
|
+
textGap: p,
|
|
515
|
+
tooltip: m,
|
|
516
|
+
tooltipLabel: Ve,
|
|
517
|
+
headerStart: M,
|
|
518
|
+
headerEnd: re,
|
|
519
|
+
headerAction: j,
|
|
520
|
+
actions: Ee,
|
|
521
|
+
actionsLabel: De,
|
|
522
|
+
titleSize: we,
|
|
523
|
+
className: i(Ue && !$ && i(h.frame.header, K.headerDividerY), $ && K.headerDividerY, K.headerX, q && "flex-row items-center min-h-action px-surface-xs py-space-2xs [&_.card--title-row]:items-center [&_.card--icon]:pt-0", le)
|
|
524
|
+
}),
|
|
525
|
+
/* @__PURE__ */ S("div", {
|
|
526
|
+
className: q ? i("card--body-surface flex min-w-0 flex-col rounded-inner bg-card text-card-foreground", d({ gap: D ?? "xl" }), h.frame.shell, Te) : "contents",
|
|
527
|
+
children: [
|
|
528
|
+
!!Fe && /* @__PURE__ */ x(fe, {
|
|
529
|
+
alert: v,
|
|
530
|
+
alertTone: y,
|
|
531
|
+
hasHeader: Pe,
|
|
532
|
+
className: G
|
|
533
|
+
}),
|
|
534
|
+
!!ze && /* @__PURE__ */ S(ue, {
|
|
535
|
+
className: i(K.contentX, K.contentY, Y && "relative overflow-hidden transition-[max-height] duration-500 ease-in-out", pe),
|
|
536
|
+
style: He,
|
|
537
|
+
children: [Le || Re ? /* @__PURE__ */ S(f, {
|
|
538
|
+
gap: O ?? "lg",
|
|
539
|
+
children: [
|
|
540
|
+
!!Le && N,
|
|
541
|
+
O ? /* @__PURE__ */ x(f, {
|
|
542
|
+
gap: O,
|
|
543
|
+
children: U
|
|
544
|
+
}) : /* @__PURE__ */ x("div", {
|
|
545
|
+
className: "min-w-0",
|
|
546
|
+
children: U
|
|
547
|
+
}),
|
|
548
|
+
!!Re && P
|
|
549
|
+
]
|
|
550
|
+
}) : O ? /* @__PURE__ */ x(f, {
|
|
551
|
+
gap: O,
|
|
552
|
+
children: U
|
|
553
|
+
}) : U, !!Y && !X && /* @__PURE__ */ x("div", {
|
|
554
|
+
"aria-hidden": "true",
|
|
555
|
+
className: i(R.collapseFade, "pointer-events-none absolute inset-x-0 bottom-0 h-20 rounded-b-radius bg-linear-to-t to-transparent", Q === "flat" ? "from-background" : "from-card")
|
|
556
|
+
})]
|
|
557
|
+
}),
|
|
558
|
+
(Ie || Z) && /* @__PURE__ */ S(de, {
|
|
559
|
+
className: i(K.footerX, Z ? "flex-col items-stretch gap-space-md" : "justify-end", (Se || $) && i(h.frame.footer, K.footerDividerY), me),
|
|
560
|
+
children: [Ie && (typeof _ == "string" || typeof _ == "number" || typeof _ == "bigint" ? /* @__PURE__ */ x(s, {
|
|
561
|
+
tag: "span",
|
|
562
|
+
size: "xs",
|
|
563
|
+
type: "secondary",
|
|
564
|
+
children: _
|
|
565
|
+
}) : _), Z && F]
|
|
566
|
+
})
|
|
567
|
+
]
|
|
568
|
+
}),
|
|
569
|
+
!!Y && /* @__PURE__ */ x("div", {
|
|
570
|
+
className: i(R.expandToggle, "absolute bottom-0 left-1/2 z-10 -translate-x-1/2 translate-y-1/2"),
|
|
571
|
+
children: /* @__PURE__ */ x(a, {
|
|
572
|
+
type: "button",
|
|
573
|
+
tone: "secondary",
|
|
574
|
+
buttonStyle: "outline",
|
|
575
|
+
size: "sm",
|
|
576
|
+
iconOnly: !0,
|
|
577
|
+
onClick: Ne,
|
|
578
|
+
"aria-expanded": X,
|
|
579
|
+
"aria-label": X ? J.collapseLabel : J.expandLabel,
|
|
580
|
+
className: i(R.expandToggleButton, i(h.frame.shell, "bg-background text-foreground shadow-sm")),
|
|
581
|
+
children: /* @__PURE__ */ x(C, {
|
|
582
|
+
"aria-hidden": "true",
|
|
583
|
+
className: i(`size-icon ${c.chevron}`, X && "rotate-180")
|
|
584
|
+
})
|
|
585
|
+
})
|
|
586
|
+
})
|
|
587
|
+
]
|
|
588
|
+
});
|
|
589
|
+
});
|
|
590
|
+
W.displayName = "Card";
|
|
591
|
+
var ve = W;
|
|
592
|
+
//#endregion
|
|
593
|
+
export { j as _, ue as a, U as c, B as d, oe as f, ne as g, A as h, pe as i, se as l, M as m, ve as n, le as o, O as p, _e as r, de as s, W as t, ce as u, k as v };
|
|
594
|
+
|
|
595
|
+
//# sourceMappingURL=smart-card-lFKxn5Hu.js.map
|