themelia-react-ui 1.0.1 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +417 -0
- package/README.md +67 -16
- package/dist/{accordion-B-5Focs8.js → accordion-CQXVcd7Q.js} +15 -15
- package/dist/accordion-CQXVcd7Q.js.map +1 -0
- package/dist/action-menu-BTpyPWJ2.js +264 -0
- package/dist/action-menu-BTpyPWJ2.js.map +1 -0
- package/dist/affordance-geometry.generated-CCIXb2A1.js +68 -0
- package/dist/affordance-geometry.generated-CCIXb2A1.js.map +1 -0
- package/dist/{ai-artifact-B5tPpXnS.js → ai-artifact-2PQ2fItc.js} +206 -215
- package/dist/ai-artifact-2PQ2fItc.js.map +1 -0
- package/dist/{app-shell-at8Kt4l_.js → app-shell-BE_j8-AT.js} +11 -10
- package/dist/app-shell-BE_j8-AT.js.map +1 -0
- package/dist/{attachment-BO2R47wn.js → attachment-q69dlt5Y.js} +14 -14
- package/dist/attachment-q69dlt5Y.js.map +1 -0
- package/dist/auth-M3vGMgDR.js +723 -0
- package/dist/auth-M3vGMgDR.js.map +1 -0
- package/dist/{avatar-Bpzty83c.js → avatar-djdaaQ_s.js} +15 -13
- package/dist/avatar-djdaaQ_s.js.map +1 -0
- package/dist/{badge-BZXZT9wd.js → badge-0tATj-tW.js} +9 -9
- package/dist/badge-0tATj-tW.js.map +1 -0
- package/dist/base/accordion.js +1 -1
- package/dist/base/action-menu.js +1 -1
- package/dist/base/attachment.js +1 -1
- package/dist/base/avatar.js +1 -1
- package/dist/base/badge.js +1 -1
- package/dist/base/buttons.js +3 -2
- package/dist/base/cards.js +3 -3
- package/dist/base/carousel.js +33 -35
- package/dist/base/carousel.js.map +1 -1
- package/dist/base/cascader.js +246 -222
- package/dist/base/cascader.js.map +1 -1
- package/dist/base/chart.js +1 -1
- package/dist/base/choice-inputs.js +2 -2
- package/dist/base/code-block.js +1 -1
- package/dist/base/combobox.js +1 -1
- package/dist/base/command.js +1 -1
- package/dist/base/copyable.js +1 -1
- package/dist/base/date-pickers.js +3 -3
- package/dist/base/display.js +7 -7
- package/dist/base/feedback.js +4 -4
- package/dist/base/forms-numeric.js +1 -1
- package/dist/base/forms.js +2 -2
- package/dist/base/inline-edit.js +94 -92
- package/dist/base/inline-edit.js.map +1 -1
- package/dist/base/item.js +1 -1
- package/dist/base/media-gallery.js +1 -1
- package/dist/base/navigation.js +6 -6
- package/dist/base/popover-menu.js +1 -1
- package/dist/base/popover.js +1 -1
- package/dist/base/qr-code.js +7 -4
- package/dist/base/qr-code.js.map +1 -1
- package/dist/base/repeaters.js +53 -53
- package/dist/base/repeaters.js.map +1 -1
- package/dist/base/sheet.js +1 -1
- package/dist/base/sidebar.js +1 -1
- package/dist/base/signature-pad.js +84 -82
- package/dist/base/signature-pad.js.map +1 -1
- package/dist/base/skeleton.js +1 -1
- package/dist/base/spinner.js +1 -1
- package/dist/base/structure.js +1 -1
- package/dist/base/table.js +1 -1
- package/dist/base/text-inputs.js +2 -2
- package/dist/base/toaster.js +7 -7
- package/dist/base/toaster.js.map +1 -1
- package/dist/base/tree.js +1 -1
- package/dist/base/upload-queue.js +1 -1
- package/dist/base/upload.js +3 -3
- package/dist/base/value-inputs.js +1 -1
- package/dist/blocks/admin.js +228 -219
- package/dist/blocks/admin.js.map +1 -1
- package/dist/blocks/ai.js +182 -212
- package/dist/blocks/ai.js.map +1 -1
- package/dist/blocks/analytics/usage-card.js +1 -1
- package/dist/blocks/analytics.js +665 -620
- package/dist/blocks/analytics.js.map +1 -1
- package/dist/blocks/collaboration.js +2 -2
- package/dist/blocks/commerce/receipt.js +1 -1
- package/dist/blocks/commerce.js +1439 -1553
- package/dist/blocks/commerce.js.map +1 -1
- package/dist/blocks/data-display.js +1 -1
- package/dist/blocks/onboarding.js +6 -6
- package/dist/blocks/onboarding.js.map +1 -1
- package/dist/blocks/planning.js +88 -97
- package/dist/blocks/planning.js.map +1 -1
- package/dist/blocks/timelines.js +1 -1
- package/dist/{breadcrumbs-DdQ_I5ra.js → breadcrumbs-BG_FfMK4.js} +10 -9
- package/dist/breadcrumbs-BG_FfMK4.js.map +1 -0
- package/dist/button-BS3KDg00.js +674 -0
- package/dist/button-BS3KDg00.js.map +1 -0
- package/dist/{button-BS6l5JUw.js → button-R9CCoH7A.js} +3 -3
- package/dist/button-R9CCoH7A.js.map +1 -0
- package/dist/buttons-DS0ZIwJ_.js +99 -0
- package/dist/buttons-DS0ZIwJ_.js.map +1 -0
- package/dist/{cards-Cum56XOF.js → cards-QoJ4syG9.js} +12 -12
- package/dist/{cards-Cum56XOF.js.map → cards-QoJ4syG9.js.map} +1 -1
- package/dist/chart-DwYRKKc-.js +152 -0
- package/dist/chart-DwYRKKc-.js.map +1 -0
- package/dist/checkbox-B7ygNTYp.js +35 -0
- package/dist/checkbox-B7ygNTYp.js.map +1 -0
- package/dist/choice-inputs-DrJ17tpL.js +752 -0
- package/dist/choice-inputs-DrJ17tpL.js.map +1 -0
- package/dist/{code-block-xHKbAJDj.js → code-block-CD0B7M93.js} +27 -27
- package/dist/code-block-CD0B7M93.js.map +1 -0
- package/dist/{collapsible-DsnktFNv.js → collapsible-oMUGM4tr.js} +3 -3
- package/dist/{collapsible-DsnktFNv.js.map → collapsible-oMUGM4tr.js.map} +1 -1
- package/dist/{collection-content-C4fthJV_.js → collection-content-Ys-OZOkY.js} +3 -3
- package/dist/{collection-content-C4fthJV_.js.map → collection-content-Ys-OZOkY.js.map} +1 -1
- package/dist/combobox-6dvVny2q.js +272 -0
- package/dist/combobox-6dvVny2q.js.map +1 -0
- package/dist/combobox-CB7039j7.js +865 -0
- package/dist/combobox-CB7039j7.js.map +1 -0
- package/dist/{command-C0xe7u9B.js → command-kPMPjIxJ.js} +35 -31
- package/dist/command-kPMPjIxJ.js.map +1 -0
- package/dist/{comments-DviPLnwy.js → comments-You0Bzbr.js} +434 -409
- package/dist/comments-You0Bzbr.js.map +1 -0
- package/dist/components/base/accordion/accordion-variants.d.ts +3 -3
- package/dist/components/base/action-menu/action-menu.d.ts +7 -2
- package/dist/components/base/avatar/stacked-avatars.d.ts +5 -4
- package/dist/components/base/badge/badge.d.ts +1 -1
- package/dist/components/base/badge/badge.recipes.d.ts +4 -4
- package/dist/components/base/buttons/base-button.d.ts +7 -0
- package/dist/components/base/buttons/button-group.recipes.d.ts +2 -2
- package/dist/components/base/buttons/button.recipes.d.ts +10 -19
- package/dist/components/base/buttons/button.variants.d.ts +1 -0
- package/dist/components/base/buttons/loader-button.d.ts +3 -1
- package/dist/components/base/buttons/text-button.d.ts +2 -2
- package/dist/components/base/buttons/use-pending-button-focus.d.ts +3 -0
- package/dist/components/base/cards/card.recipes.d.ts +13 -5
- package/dist/components/base/cards/partials/card-primitives.d.ts +9 -4
- package/dist/components/base/cards/smart-card.types.d.ts +1 -1
- package/dist/components/base/carousel/carousel.d.ts +3 -1
- package/dist/components/base/chart/chart.d.ts +7 -7
- package/dist/components/base/choice-inputs/checkbox.d.ts +6 -7
- package/dist/components/base/choice-inputs/choice-types.d.ts +10 -1
- package/dist/components/base/choice-inputs/pill-radio-group.d.ts +9 -0
- package/dist/components/base/choice-inputs/select-popup.d.ts +9 -1
- package/dist/components/base/choice-inputs/switch-card.d.ts +1 -1
- package/dist/components/base/date-pickers/date-picker-field.d.ts +23 -0
- package/dist/components/base/date-pickers/date-picker.recipes.d.ts +5 -18
- package/dist/components/base/date-pickers/datepicker.types.d.ts +16 -3
- package/dist/components/base/display/alert-dialog.d.ts +8 -2
- package/dist/components/base/display/content-block.d.ts +4 -2
- package/dist/components/base/display/date-block.d.ts +1 -1
- package/dist/components/base/display/dialog.d.ts +12 -5
- package/dist/components/base/display/surface-title.d.ts +6 -1
- package/dist/components/base/feedback/alert.d.ts +1 -1
- package/dist/components/base/feedback/state-display.d.ts +5 -4
- package/dist/components/base/forms/form-field.d.ts +1 -0
- package/dist/components/base/forms/form-sizing.d.ts +35 -3
- package/dist/components/base/forms/workflow.d.ts +2 -0
- package/dist/components/base/forms-numeric/coordinates-input.d.ts +3 -0
- package/dist/components/base/forms-numeric/rounding-mode-select.d.ts +4 -1
- package/dist/components/base/navigation/dropdown-menu.d.ts +2 -2
- package/dist/components/base/navigation/language-switcher.d.ts +4 -1
- package/dist/components/base/navigation/overflow-tab-bar.d.ts +7 -0
- package/dist/components/base/navigation/page-header/page-header.d.ts +4 -1
- package/dist/components/base/navigation/tabs.d.ts +3 -5
- package/dist/components/base/popover/popover.recipes.d.ts +3 -3
- package/dist/components/base/qr-code/qr-code.d.ts +2 -0
- package/dist/components/base/sheet/index.d.ts +29 -1
- package/dist/components/base/sheet/sheet.d.ts +14 -5
- package/dist/components/base/spinner/spinner.d.ts +3 -2
- package/dist/components/base/structure/structure.types.d.ts +1 -1
- package/dist/components/base/table/index.d.ts +1 -1
- package/dist/components/base/text-inputs/clear-native-field.d.ts +2 -0
- package/dist/components/base/text-inputs/input-group.d.ts +2 -2
- package/dist/components/base/text-inputs/input-trailing-action.d.ts +3 -0
- package/dist/components/base/upload/upload.recipes.d.ts +11 -0
- package/dist/components/base/value-inputs/date-time-input.d.ts +4 -2
- package/dist/components/base/value-inputs/tags-input.d.ts +2 -0
- package/dist/components/blocks/admin/api-key-list/api-key-list.types.d.ts +1 -1
- package/dist/components/blocks/analytics/format-metric-value.d.ts +11 -1
- package/dist/components/blocks/analytics/index.d.ts +1 -1
- package/dist/components/blocks/analytics/types.d.ts +1 -1
- package/dist/components/blocks/analytics/use-metric-format-options.d.ts +3 -0
- package/dist/components/blocks/collaboration/message/message.recipes.d.ts +12 -0
- package/dist/components/blocks/commerce/address-card/address-card.d.ts +1 -1
- package/dist/components/blocks/commerce/address-card/types.d.ts +3 -1
- package/dist/components/blocks/commerce/booking-calendar-event-card/booking-calendar-event-card.d.ts +4 -0
- package/dist/components/blocks/commerce/booking-calendar-event-card/booking-calendar-event-card.types.d.ts +2 -2
- package/dist/components/blocks/commerce/discount-stack/types.d.ts +1 -1
- package/dist/components/blocks/commerce/inventory-section/types.d.ts +4 -1
- package/dist/components/blocks/commerce/loyalty-points/types.d.ts +1 -1
- package/dist/components/blocks/commerce/order-status/types.d.ts +4 -0
- package/dist/components/blocks/commerce/payment-method/payment-method.d.ts +1 -1
- package/dist/components/blocks/commerce/payment-method/types.d.ts +3 -1
- package/dist/components/blocks/commerce/seo-listing/seo-listing-card.d.ts +1 -1
- package/dist/components/blocks/commerce/seo-listing/types.d.ts +3 -1
- package/dist/components/blocks/commerce/vendor-profile/types.d.ts +4 -1
- package/dist/components/blocks/data-display/dense-info-card/dense-info.strings.d.ts +4 -1
- package/dist/components/blocks/data-display/empty-state/partials/illustrations/document-stack.d.ts +1 -4
- package/dist/components/blocks/data-display/empty-state/partials/illustrations/inbox-clean.d.ts +1 -4
- package/dist/components/blocks/data-display/empty-state/partials/illustrations/index.d.ts +3 -3
- package/dist/components/blocks/data-display/empty-state/partials/illustrations/stacked-cards.d.ts +1 -6
- package/dist/components/blocks/data-display/inline-stat/inline-stat.d.ts +4 -1
- package/dist/components/features/combobox/components/error-message.d.ts +1 -1
- package/dist/components/features/comments/hooks/use-attachment-upload.d.ts +5 -0
- package/dist/components/features/filters/facets/search-facet.d.ts +0 -12
- package/dist/components/features/filters/facets/tags-facet.d.ts +1 -1
- package/dist/components/features/global-search/partials/global-search-idle-state.d.ts +1 -1
- package/dist/components/features/media-library/media-library.d.ts +1 -1
- package/dist/components/features/media-library/media-library.types.d.ts +9 -1
- package/dist/components/features/media-library/partials/media-library-partials.d.ts +1 -1
- package/dist/components/features/overlays/alert-dialog.d.ts +1 -1
- package/dist/components/features/overlays/drawer.d.ts +1 -1
- package/dist/components/features/overlays/hooks/use-overlay-actions.d.ts +2 -2
- package/dist/components/features/overlays/hooks/use-overlay-visibility.d.ts +11 -4
- package/dist/components/features/overlays/hooks/use-pending-overlay-focus.d.ts +2 -0
- package/dist/components/features/overlays/overlay-tone-icon.d.ts +37 -0
- package/dist/components/features/overlays/overlays.types.d.ts +46 -22
- package/dist/components/features/products/components/product-variants-manager.d.ts +1 -1
- package/dist/components/features/products/partials/index.d.ts +1 -1
- package/dist/components/features/products/partials/product-metric-tile.d.ts +6 -0
- package/dist/components/features/products/partials/product-tone.d.ts +11 -1
- package/dist/components/features/products/products.types.d.ts +2 -1
- package/dist/components/features/rich-text-editor/rich-text-editor.recipes.d.ts +2 -1
- package/dist/components/features/table/data-table.d.ts +1 -1
- package/dist/components/features/table/partials/cell-renderers.d.ts +1 -1
- package/dist/components/features/table/table.types.d.ts +1 -1
- package/dist/components/features/theme-tweaker/theme-provider-settings.d.ts +3 -1
- package/dist/components/layout/auth/auth.types.d.ts +1 -0
- package/dist/components/layout/page/index.d.ts +1 -1
- package/dist/components/layout/page/page.d.ts +0 -1
- package/dist/components/layout/page/page.types.d.ts +62 -6
- package/dist/components/layout/page/partials/page-header-commands.d.ts +13 -0
- package/dist/components/layout/page/partials/page-header.d.ts +1 -1
- package/dist/components/layout/sidebar/sidebar.context.d.ts +1 -1
- package/dist/components/layout/sidebar/sidebar.types.d.ts +4 -0
- package/dist/components/layout/workspace/workspace.types.d.ts +3 -0
- package/dist/components/primitives/date.d.ts +16 -3
- package/dist/components/primitives/dimensions.d.ts +6 -0
- package/dist/components/primitives/duration.d.ts +6 -0
- package/dist/components/primitives/file-size.d.ts +6 -0
- package/dist/components/primitives/index.d.ts +1 -1
- package/dist/components/primitives/initials.d.ts +11 -2
- package/dist/components/primitives/link.d.ts +7 -0
- package/dist/components/primitives/money.d.ts +29 -7
- package/dist/components/primitives/number.d.ts +17 -0
- package/dist/components/primitives/value-typography.d.ts +54 -0
- package/dist/components/primitives/value.d.ts +31 -6
- package/dist/components/typography/heading.d.ts +13 -2
- package/dist/components/typography/index.d.ts +1 -1
- package/dist/components/typography/label.d.ts +3 -0
- package/dist/components/typography/running-text.d.ts +12 -0
- package/dist/components/typography/text-link.d.ts +23 -1
- package/dist/components/typography/text.d.ts +12 -0
- package/dist/components/typography/text.styles.d.ts +37 -5
- package/dist/components/ui/button.d.ts +1 -1
- package/dist/components/ui/checkbox.d.ts +5 -0
- package/dist/components/ui/overlay.recipes.d.ts +15 -2
- package/dist/components/ui/popover.d.ts +1 -1
- package/dist/components/ui/select.d.ts +3 -1
- package/dist/components/ui/sidebar.d.ts +1 -1
- package/dist/components/ui/switch.d.ts +5 -0
- package/dist/components/ui/table.d.ts +2 -1
- package/dist/container.recipes-D9t8MHR3.js +27 -0
- package/dist/container.recipes-D9t8MHR3.js.map +1 -0
- package/dist/{containers-6s-ucRQQ.js → containers-D_L4mTVb.js} +34 -57
- package/dist/containers-D_L4mTVb.js.map +1 -0
- package/dist/control-group-recipes-DBXmfh2E.js +21 -0
- package/dist/control-group-recipes-DBXmfh2E.js.map +1 -0
- package/dist/{copyable-B7SBXJMr.js → copyable-DDjTeW_j.js} +6 -6
- package/dist/{copyable-B7SBXJMr.js.map → copyable-DDjTeW_j.js.map} +1 -1
- package/dist/data-display-3xWQUnMA.js +1335 -0
- package/dist/data-display-3xWQUnMA.js.map +1 -0
- package/dist/date-picker-DrDFj8Lo.js +1527 -0
- package/dist/date-picker-DrDFj8Lo.js.map +1 -0
- package/dist/date-pickers-CnFCb0n2.js +174 -0
- package/dist/date-pickers-CnFCb0n2.js.map +1 -0
- package/dist/date-uf3z37Nm.js +144 -0
- package/dist/date-uf3z37Nm.js.map +1 -0
- package/dist/{display-CFM5myut.js → display-DrdvPwF0.js} +25 -25
- package/dist/display-DrdvPwF0.js.map +1 -0
- package/dist/{dropdown-menu-BlnyHr-9.js → dropdown-menu-CURh59jb.js} +22 -15
- package/dist/dropdown-menu-CURh59jb.js.map +1 -0
- package/dist/features/activities.js +177 -163
- package/dist/features/activities.js.map +1 -1
- package/dist/features/ai-chat.js +187 -183
- package/dist/features/ai-chat.js.map +1 -1
- package/dist/features/async-preview.js +9 -9
- package/dist/features/async-preview.js.map +1 -1
- package/dist/features/combobox.js +1 -1
- package/dist/features/comments.js +1 -1
- package/dist/features/data-view.js +25 -23
- package/dist/features/data-view.js.map +1 -1
- package/dist/features/email-composer/engine.js +1 -1
- package/dist/features/email-composer.js +353 -355
- package/dist/features/email-composer.js.map +1 -1
- package/dist/features/event-calendar.js +346 -354
- package/dist/features/event-calendar.js.map +1 -1
- package/dist/features/filters.js +1 -1
- package/dist/features/global-search.js +225 -227
- package/dist/features/global-search.js.map +1 -1
- package/dist/features/kanban.js +29 -29
- package/dist/features/kanban.js.map +1 -1
- package/dist/features/map.js +59 -58
- package/dist/features/map.js.map +1 -1
- package/dist/features/media-library.js +898 -900
- package/dist/features/media-library.js.map +1 -1
- package/dist/features/mentions.js +1 -1
- package/dist/features/overlays.js +1 -1
- package/dist/features/products.js +1412 -1444
- package/dist/features/products.js.map +1 -1
- package/dist/features/questionnaire.js +51 -49
- package/dist/features/questionnaire.js.map +1 -1
- package/dist/features/resource-assignment.js +103 -97
- package/dist/features/resource-assignment.js.map +1 -1
- package/dist/features/resource.js +13 -13
- package/dist/features/resource.js.map +1 -1
- package/dist/features/rich-text-editor.js +2 -2
- package/dist/features/schema-form.js +187 -183
- package/dist/features/schema-form.js.map +1 -1
- package/dist/features/suggestions.js +3 -3
- package/dist/features/sync.js +7 -7
- package/dist/features/sync.js.map +1 -1
- package/dist/features/table.js +1 -1
- package/dist/features/theme-tweaker.js +508 -503
- package/dist/features/theme-tweaker.js.map +1 -1
- package/dist/{feedback-DWUkgEjR.js → feedback-C7nR0UtT.js} +30 -31
- package/dist/feedback-C7nR0UtT.js.map +1 -0
- package/dist/field-affordance-recipes-CkOCdE2y.js +46 -0
- package/dist/field-affordance-recipes-CkOCdE2y.js.map +1 -0
- package/dist/{field-state-recipes-CBTRt9Bt.js → field-state-recipes-C-MFBX_8.js} +5 -5
- package/dist/field-state-recipes-C-MFBX_8.js.map +1 -0
- package/dist/{filters-BhsUtsxW.js → filters-Da-gNPsE.js} +760 -765
- package/dist/filters-Da-gNPsE.js.map +1 -0
- package/dist/{form-field-Bn7ZH1rA.js → form-field-VZRULhUK.js} +20 -12
- package/dist/form-field-VZRULhUK.js.map +1 -0
- package/dist/form-sizing-uWP4lzVh.js +126 -0
- package/dist/form-sizing-uWP4lzVh.js.map +1 -0
- package/dist/{forms-B7pzS25o.js → forms-DDeEnXSY.js} +38 -38
- package/dist/forms-DDeEnXSY.js.map +1 -0
- package/dist/forms-numeric-D3CO60IF.js +905 -0
- package/dist/forms-numeric-D3CO60IF.js.map +1 -0
- package/dist/{header-C59QZyxV.js → header-2ycNqGOR.js} +42 -37
- package/dist/header-2ycNqGOR.js.map +1 -0
- package/dist/{hooks-CM1Vp9Pe.js → hooks-DQ5SPwZw.js} +2 -2
- package/dist/{hooks-CM1Vp9Pe.js.map → hooks-DQ5SPwZw.js.map} +1 -1
- package/dist/{http-CLTVJc5I.js → http-CdEIHyQf.js} +2 -2
- package/dist/http-CdEIHyQf.js.map +1 -0
- package/dist/{icon-badge-Dv0RYQwj.js → icon-badge-DKlaKXoo.js} +4 -4
- package/dist/{icon-badge-Dv0RYQwj.js.map → icon-badge-DKlaKXoo.js.map} +1 -1
- package/dist/index.js +2 -2
- package/dist/input-BoLm9Hks.js +20 -0
- package/dist/input-BoLm9Hks.js.map +1 -0
- package/dist/input-DhQdBnV3.js +255 -0
- package/dist/input-DhQdBnV3.js.map +1 -0
- package/dist/item-xzh8Df65.js +264 -0
- package/dist/item-xzh8Df65.js.map +1 -0
- package/dist/layout/app-shell.js +1 -1
- package/dist/layout/auth.js +1 -1
- package/dist/layout/containers.js +1 -1
- package/dist/layout/header.js +1 -1
- package/dist/layout/hooks.js +1 -1
- package/dist/layout/navigation.js +1 -1
- package/dist/layout/page.js +1 -1
- package/dist/layout/settings.js +1 -1
- package/dist/layout/sidebar.js +2 -2
- package/dist/layout/workspace.js +1 -1
- package/dist/layout.js +10 -10
- package/dist/lib/affordance-geometry.generated.d.ts +46 -10
- package/dist/lib/control-group-recipes.d.ts +22 -0
- package/dist/lib/field-affordance-recipes.d.ts +70 -2
- package/dist/lib/field-state-recipes.d.ts +6 -4
- package/dist/lib/format.d.ts +9 -0
- package/dist/lib/money-format.d.ts +30 -0
- package/dist/lib/navigation-row-recipes.d.ts +3 -2
- package/dist/lib/overlay-anatomy-recipes.d.ts +2 -2
- package/dist/lib/surface-recipes.d.ts +13 -8
- package/dist/lib/token-merge.generated.d.ts +144 -2
- package/dist/lib/track-recipes.d.ts +1 -1
- package/dist/lib/ui-provider/provider.d.ts +7 -2
- package/dist/lib/ui-provider/store.d.ts +6 -2
- package/dist/lib/ui-provider/types.d.ts +9 -4
- package/dist/lib/use-prefers-reduced-motion.d.ts +2 -0
- package/dist/lib/utils.js +1 -1
- package/dist/media-gallery-DQUQ0m3O.js +201 -0
- package/dist/media-gallery-DQUQ0m3O.js.map +1 -0
- package/dist/{mentions-B8Ko-fhS.js → mentions-DwnO1hh4.js} +40 -39
- package/dist/{mentions-B8Ko-fhS.js.map → mentions-DwnO1hh4.js.map} +1 -1
- package/dist/message-YfFmbXNP.js +127 -0
- package/dist/message-YfFmbXNP.js.map +1 -0
- package/dist/{navigation-BUIn2Qxx.js → navigation-Cbp5V8gG.js} +27 -28
- package/dist/navigation-Cbp5V8gG.js.map +1 -0
- package/dist/navigation-Cs1npsPm.js +300 -0
- package/dist/navigation-Cs1npsPm.js.map +1 -0
- package/dist/{navigation-row-recipes-GVh11KiT.js → navigation-row-recipes-DlU-4QYO.js} +3 -3
- package/dist/navigation-row-recipes-DlU-4QYO.js.map +1 -0
- package/dist/number-CKRBYmZK.js +352 -0
- package/dist/number-CKRBYmZK.js.map +1 -0
- package/dist/overlay.recipes-CNO2S9V6.js +34 -0
- package/dist/overlay.recipes-CNO2S9V6.js.map +1 -0
- package/dist/overlays-DhZO7N-I.js +994 -0
- package/dist/overlays-DhZO7N-I.js.map +1 -0
- package/dist/page-C6R_8jFt.js +325 -0
- package/dist/page-C6R_8jFt.js.map +1 -0
- package/dist/{page-header-DQRa0jug.js → page-header-hUTzcRZX.js} +12 -12
- package/dist/page-header-hUTzcRZX.js.map +1 -0
- package/dist/{pagination-C29vvt3I.js → pagination-Cm0jqa3I.js} +21 -21
- package/dist/pagination-Cm0jqa3I.js.map +1 -0
- package/dist/{popover-CoLDEg19.js → popover-Dcv_9jxr.js} +23 -22
- package/dist/popover-Dcv_9jxr.js.map +1 -0
- package/dist/{popover-menu-GLIQTJTx.js → popover-menu-DnRFKnHP.js} +6 -6
- package/dist/{popover-menu-GLIQTJTx.js.map → popover-menu-DnRFKnHP.js.map} +1 -1
- package/dist/{popover.recipes-zgBhMlUu.js → popover.recipes-wmbvL8Ah.js} +5 -5
- package/dist/popover.recipes-wmbvL8Ah.js.map +1 -0
- package/dist/primitives-BHrwQXFC.js +379 -0
- package/dist/primitives-BHrwQXFC.js.map +1 -0
- package/dist/primitives.js +5 -5
- package/dist/{progress-BOe8l_FZ.js → progress-Br9WTFya.js} +12 -11
- package/dist/progress-Br9WTFya.js.map +1 -0
- package/dist/{receipt-BM8xsGFy.js → receipt-CV89q1fs.js} +8 -8
- package/dist/{receipt-BM8xsGFy.js.map → receipt-CV89q1fs.js.map} +1 -1
- package/dist/rich-text-editor-CF8QYt5p.js +574 -0
- package/dist/rich-text-editor-CF8QYt5p.js.map +1 -0
- package/dist/{rich-text-editor.recipes-DxvOE0Lp.js → rich-text-editor.recipes-CnrbmTS1.js} +35 -26
- package/dist/rich-text-editor.recipes-CnrbmTS1.js.map +1 -0
- package/dist/{rich-text-B7sBAdDG.js → rich-text-j-FGAeZW.js} +4 -4
- package/dist/{rich-text-B7sBAdDG.js.map → rich-text-j-FGAeZW.js.map} +1 -1
- package/dist/{scroll-area-BheMQ270.js → scroll-area-DRdr16Pt.js} +3 -3
- package/dist/scroll-area-DRdr16Pt.js.map +1 -0
- package/dist/{separator-DO0EbCEm.js → separator-BMEvwnSX.js} +2 -2
- package/dist/{separator-DO0EbCEm.js.map → separator-BMEvwnSX.js.map} +1 -1
- package/dist/{separator-Gk_WXH-l.js → separator-Do5GWDYi.js} +4 -4
- package/dist/separator-Do5GWDYi.js.map +1 -0
- package/dist/services/actions/action-adapters.d.ts +4 -0
- package/dist/services/actions.js +8 -3
- package/dist/services/actions.js.map +1 -1
- package/dist/{settings-BnCyyPOJ.js → settings-DHk0L2MF.js} +20 -19
- package/dist/settings-DHk0L2MF.js.map +1 -0
- package/dist/sheet-DRFNY1_D.js +207 -0
- package/dist/sheet-DRFNY1_D.js.map +1 -0
- package/dist/sidebar-Cb8WzOvE.js +511 -0
- package/dist/sidebar-Cb8WzOvE.js.map +1 -0
- package/dist/{sidebar-DPR7fmqN.js → sidebar-Crc9M9JV.js} +220 -201
- package/dist/sidebar-Crc9M9JV.js.map +1 -0
- package/dist/{skeleton-CmT1ppqb.js → skeleton-DVMXr15h.js} +5 -5
- package/dist/{skeleton-CmT1ppqb.js.map → skeleton-DVMXr15h.js.map} +1 -1
- package/dist/smart-card-Bek-TwUp.js +599 -0
- package/dist/smart-card-Bek-TwUp.js.map +1 -0
- package/dist/{spinner-BY9HbUEh.js → spinner-CmTAbEp0.js} +8 -6
- package/dist/spinner-CmTAbEp0.js.map +1 -0
- package/dist/{structure-MvKVq-oL.js → structure-hzCW-XsV.js} +3 -3
- package/dist/{structure-MvKVq-oL.js.map → structure-hzCW-XsV.js.map} +1 -1
- package/dist/{structure.recipes-Bqhf9oIh.js → structure.recipes-EPz60cU8.js} +37 -19
- package/dist/structure.recipes-EPz60cU8.js.map +1 -0
- package/dist/style.css +1 -1
- package/dist/surface-recipes-DOdoBXGm.js +28 -0
- package/dist/surface-recipes-DOdoBXGm.js.map +1 -0
- package/dist/table-D6zKeYQX.js +162 -0
- package/dist/table-D6zKeYQX.js.map +1 -0
- package/dist/table-Dn4XSrSB.js +1444 -0
- package/dist/table-Dn4XSrSB.js.map +1 -0
- package/dist/tabs-Dk8E_knt.js +189 -0
- package/dist/tabs-Dk8E_knt.js.map +1 -0
- package/dist/text-inputs-BFpku0Qd.js +331 -0
- package/dist/text-inputs-BFpku0Qd.js.map +1 -0
- package/dist/{text.styles-BwB7vAF2.js → text.styles-g4He6UIW.js} +26 -15
- package/dist/text.styles-g4He6UIW.js.map +1 -0
- package/dist/theme.css +90 -124
- package/dist/themes/green.css +24 -0
- package/dist/{timelines-B9ICkQcV.js → timelines-CxuAFIc2.js} +97 -104
- package/dist/timelines-CxuAFIc2.js.map +1 -0
- package/dist/track-recipes-CDcKmndW.js +10 -0
- package/dist/track-recipes-CDcKmndW.js.map +1 -0
- package/dist/{tree-BdWSaoFT.js → tree-BotPlyiD.js} +13 -13
- package/dist/{tree-BdWSaoFT.js.map → tree-BotPlyiD.js.map} +1 -1
- package/dist/typography/rich-text.js +1 -1
- package/dist/typography-CAr3dQhX.js +116 -0
- package/dist/typography-CAr3dQhX.js.map +1 -0
- package/dist/typography.js +2 -2
- package/dist/{ui-provider-CftIB6TY.js → ui-provider-D2_TeLqw.js} +22 -22
- package/dist/ui-provider-D2_TeLqw.js.map +1 -0
- package/dist/ui-provider.js +1 -1
- package/dist/{upload-D8Za5x_c.js → upload-B0WHW7ak.js} +278 -274
- package/dist/upload-B0WHW7ak.js.map +1 -0
- package/dist/{upload-queue-hIIYBLS7.js → upload-queue-BHZ_wBfd.js} +72 -75
- package/dist/upload-queue-BHZ_wBfd.js.map +1 -0
- package/dist/{usage-card-DnmnJ58D.js → usage-card-U0YBLTNT.js} +31 -33
- package/dist/usage-card-U0YBLTNT.js.map +1 -0
- package/dist/utils-Cospvlj1.js +4445 -0
- package/dist/utils-Cospvlj1.js.map +1 -0
- package/dist/value-inputs-CjfzGMsN.js +854 -0
- package/dist/value-inputs-CjfzGMsN.js.map +1 -0
- package/dist/value-typography-Deb3yQZg.js +116 -0
- package/dist/value-typography-Deb3yQZg.js.map +1 -0
- package/dist/{workspace-C1PZmk8L.js → workspace-YoFjXi6i.js} +97 -105
- package/dist/workspace-YoFjXi6i.js.map +1 -0
- package/docs/consumer-skill/SKILL.md +123 -119
- package/docs/consumer-skill/examples/analytics.tsx +34 -0
- package/docs/consumer-skill/examples/app-layout.tsx +42 -14
- package/docs/consumer-skill/examples/detail.tsx +20 -5
- package/docs/consumer-skill/examples/edit.tsx +1 -1
- package/docs/consumer-skill/examples/layout-blocks.tsx +20 -0
- package/docs/consumer-skill/examples/manifest.json +37 -3
- package/docs/consumer-skill/examples/scoped-directory.tsx +2 -2
- package/docs/consumer-skill/examples/website.tsx +56 -0
- package/docs/consumer-skill/references/analytics.md +70 -0
- package/docs/consumer-skill/references/composition.md +195 -9
- package/docs/consumer-skill/references/design-contract.md +33 -7
- package/docs/consumer-skill/references/discovery.md +80 -5
- package/docs/consumer-skill/references/installation.md +22 -0
- package/docs/consumer-skill/references/integration.md +46 -1
- package/docs/consumer-skill/references/public-api.json +2083 -237
- package/docs/consumer-skill/references/review.md +74 -6
- package/docs/consumer-skill/references/theming.md +59 -8
- package/docs/consumer-skill/references/tokens.json +180 -9
- package/docs/consumer-skill/references/workflows.md +34 -0
- package/docs/consumer-skill/scripts/check-composition.mjs +1 -1
- package/docs/consumer-skill/scripts/composition-policy.mjs +271 -18
- package/docs/consumer-skill/scripts/discovery.mjs +69 -9
- package/docs/consumer-skill/scripts/pin-button-defaults.mjs +95 -0
- package/docs/consumer-skill/scripts/surface-policy.mjs +44 -0
- package/package.json +11 -6
- package/dist/accordion-B-5Focs8.js.map +0 -1
- package/dist/action-menu-Cx3SdfbN.js +0 -265
- package/dist/action-menu-Cx3SdfbN.js.map +0 -1
- package/dist/affordance-geometry.generated-D8Jcfb0G.js +0 -32
- package/dist/affordance-geometry.generated-D8Jcfb0G.js.map +0 -1
- package/dist/ai-artifact-B5tPpXnS.js.map +0 -1
- package/dist/app-shell-at8Kt4l_.js.map +0 -1
- package/dist/attachment-BO2R47wn.js.map +0 -1
- package/dist/auth-OFwWSAap.js +0 -704
- package/dist/auth-OFwWSAap.js.map +0 -1
- package/dist/avatar-Bpzty83c.js.map +0 -1
- package/dist/badge-BZXZT9wd.js.map +0 -1
- package/dist/breadcrumbs-DdQ_I5ra.js.map +0 -1
- package/dist/button-BS6l5JUw.js.map +0 -1
- package/dist/buttons-Co6GavvM.js +0 -674
- package/dist/buttons-Co6GavvM.js.map +0 -1
- package/dist/chart-DVfcwQu6.js +0 -149
- package/dist/chart-DVfcwQu6.js.map +0 -1
- package/dist/checkbox-BavDRjF7.js +0 -34
- package/dist/checkbox-BavDRjF7.js.map +0 -1
- package/dist/choice-inputs-CC7XqPQO.js +0 -619
- package/dist/choice-inputs-CC7XqPQO.js.map +0 -1
- package/dist/code-block-xHKbAJDj.js.map +0 -1
- package/dist/combobox-DEbdr-3u.js +0 -273
- package/dist/combobox-DEbdr-3u.js.map +0 -1
- package/dist/combobox-xv3yJbzl.js +0 -850
- package/dist/combobox-xv3yJbzl.js.map +0 -1
- package/dist/command-C0xe7u9B.js.map +0 -1
- package/dist/comments-DviPLnwy.js.map +0 -1
- package/dist/containers-6s-ucRQQ.js.map +0 -1
- package/dist/data-display-cWIRdeaf.js +0 -1129
- package/dist/data-display-cWIRdeaf.js.map +0 -1
- package/dist/date-BFNMnrS5.js +0 -140
- package/dist/date-BFNMnrS5.js.map +0 -1
- package/dist/date-picker-CA6ogMQB.js +0 -1521
- package/dist/date-picker-CA6ogMQB.js.map +0 -1
- package/dist/date-pickers-BPIKLdsD.js +0 -224
- package/dist/date-pickers-BPIKLdsD.js.map +0 -1
- package/dist/display-CFM5myut.js.map +0 -1
- package/dist/dropdown-menu-BlnyHr-9.js.map +0 -1
- package/dist/feedback-DWUkgEjR.js.map +0 -1
- package/dist/field-affordance-recipes-IjzPrCTw.js +0 -17
- package/dist/field-affordance-recipes-IjzPrCTw.js.map +0 -1
- package/dist/field-state-recipes-CBTRt9Bt.js.map +0 -1
- package/dist/filters-BhsUtsxW.js.map +0 -1
- package/dist/form-field-Bn7ZH1rA.js.map +0 -1
- package/dist/form-sizing-BWs70_a2.js +0 -100
- package/dist/form-sizing-BWs70_a2.js.map +0 -1
- package/dist/format-iamDSqs2.js +0 -110
- package/dist/format-iamDSqs2.js.map +0 -1
- package/dist/forms-B7pzS25o.js.map +0 -1
- package/dist/forms-numeric-BUBxELBv.js +0 -867
- package/dist/forms-numeric-BUBxELBv.js.map +0 -1
- package/dist/header-C59QZyxV.js.map +0 -1
- package/dist/http-CLTVJc5I.js.map +0 -1
- package/dist/input-WwYQZJzG.js +0 -202
- package/dist/input-WwYQZJzG.js.map +0 -1
- package/dist/input-ci9fIgFH.js +0 -20
- package/dist/input-ci9fIgFH.js.map +0 -1
- package/dist/item-pJ0GsOiJ.js +0 -257
- package/dist/item-pJ0GsOiJ.js.map +0 -1
- package/dist/media-gallery-DhDRgnVZ.js +0 -200
- package/dist/media-gallery-DhDRgnVZ.js.map +0 -1
- package/dist/message-COsdEvXT.js +0 -108
- package/dist/message-COsdEvXT.js.map +0 -1
- package/dist/navigation-BUIn2Qxx.js.map +0 -1
- package/dist/navigation-DBEu4POU.js +0 -267
- package/dist/navigation-DBEu4POU.js.map +0 -1
- package/dist/navigation-row-recipes-GVh11KiT.js.map +0 -1
- package/dist/number-BNT_BIzJ.js +0 -269
- package/dist/number-BNT_BIzJ.js.map +0 -1
- package/dist/overlay.recipes-BxW5FIfK.js +0 -6
- package/dist/overlay.recipes-BxW5FIfK.js.map +0 -1
- package/dist/overlays-B11wZka6.js +0 -982
- package/dist/overlays-B11wZka6.js.map +0 -1
- package/dist/page-BV6ioQg3.js +0 -202
- package/dist/page-BV6ioQg3.js.map +0 -1
- package/dist/page-header-DQRa0jug.js.map +0 -1
- package/dist/pagination-C29vvt3I.js.map +0 -1
- package/dist/popover-CoLDEg19.js.map +0 -1
- package/dist/popover.recipes-zgBhMlUu.js.map +0 -1
- package/dist/primitives-DKPOGVpj.js +0 -330
- package/dist/primitives-DKPOGVpj.js.map +0 -1
- package/dist/progress-BOe8l_FZ.js.map +0 -1
- package/dist/rich-text-editor-CoVrTiSv.js +0 -575
- package/dist/rich-text-editor-CoVrTiSv.js.map +0 -1
- package/dist/rich-text-editor.recipes-DxvOE0Lp.js.map +0 -1
- package/dist/scroll-area-BheMQ270.js.map +0 -1
- package/dist/select-B2mb-qN2.js +0 -108
- package/dist/select-B2mb-qN2.js.map +0 -1
- package/dist/separator-Gk_WXH-l.js.map +0 -1
- package/dist/settings-BnCyyPOJ.js.map +0 -1
- package/dist/sheet-B-q914Ad.js +0 -205
- package/dist/sheet-B-q914Ad.js.map +0 -1
- package/dist/sidebar-C_2p3Tfj.js +0 -501
- package/dist/sidebar-C_2p3Tfj.js.map +0 -1
- package/dist/sidebar-DPR7fmqN.js.map +0 -1
- package/dist/smart-card-CYLn46e6.js +0 -578
- package/dist/smart-card-CYLn46e6.js.map +0 -1
- package/dist/spinner-BY9HbUEh.js.map +0 -1
- package/dist/structure.recipes-Bqhf9oIh.js.map +0 -1
- package/dist/surface-recipes-CQfRr-VL.js +0 -27
- package/dist/surface-recipes-CQfRr-VL.js.map +0 -1
- package/dist/table-BS39xnlq.js +0 -1424
- package/dist/table-BS39xnlq.js.map +0 -1
- package/dist/table-DnlAJ-xR.js +0 -146
- package/dist/table-DnlAJ-xR.js.map +0 -1
- package/dist/tabs-B5cNMWiP.js +0 -187
- package/dist/tabs-B5cNMWiP.js.map +0 -1
- package/dist/text-inputs-Dh9XGyiS.js +0 -331
- package/dist/text-inputs-Dh9XGyiS.js.map +0 -1
- package/dist/text.styles-BwB7vAF2.js.map +0 -1
- package/dist/timelines-B9ICkQcV.js.map +0 -1
- package/dist/track-recipes-LLPNVwFg.js +0 -10
- package/dist/track-recipes-LLPNVwFg.js.map +0 -1
- package/dist/typography-Cv8MT-82.js +0 -96
- package/dist/typography-Cv8MT-82.js.map +0 -1
- package/dist/ui-provider-CftIB6TY.js.map +0 -1
- package/dist/upload-D8Za5x_c.js.map +0 -1
- package/dist/upload-queue-hIIYBLS7.js.map +0 -1
- package/dist/usage-card-DnmnJ58D.js.map +0 -1
- package/dist/utils-C2EKeIw3.js +0 -72
- package/dist/utils-C2EKeIw3.js.map +0 -1
- package/dist/value-inputs-DX2dbxjj.js +0 -824
- package/dist/value-inputs-DX2dbxjj.js.map +0 -1
- package/dist/workspace-C1PZmk8L.js.map +0 -1
|
@@ -0,0 +1,599 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { _ as e, i as t, s as n } from "./ui-provider-D2_TeLqw.js";
|
|
3
|
+
import { useStrings as r } from "./lib/strings.js";
|
|
4
|
+
import { t as i } from "./utils-Cospvlj1.js";
|
|
5
|
+
import { c as a, s as o } from "./typography-CAr3dQhX.js";
|
|
6
|
+
import { a as s, c, o as l, t as u } from "./button-BS3KDg00.js";
|
|
7
|
+
import { n as d } from "./structure.recipes-EPz60cU8.js";
|
|
8
|
+
import { t as f } from "./structure-hzCW-XsV.js";
|
|
9
|
+
import { t as p } from "./icon-size-B6PVwjbC.js";
|
|
10
|
+
import { n as m } from "./surface-recipes-DOdoBXGm.js";
|
|
11
|
+
import { n as ee } from "./action-menu-BTpyPWJ2.js";
|
|
12
|
+
import { Fragment as h, forwardRef as g, isValidElement as _, useCallback as te, useState as ne } from "react";
|
|
13
|
+
import { jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
14
|
+
import { ChevronDown as re, Info as b, MoreHorizontal as x } from "lucide-react";
|
|
15
|
+
import { cva as S } from "class-variance-authority";
|
|
16
|
+
//#region src/components/base/feedback/alert.tsx
|
|
17
|
+
var C = S([
|
|
18
|
+
"alert--component relative grid w-full grid-cols-[0_1fr] items-start gap-y-normal rounded-radius border p-surface text-start",
|
|
19
|
+
"has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-space-sm",
|
|
20
|
+
"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-sm",
|
|
21
|
+
"[&>svg]:row-span-2 [&>svg]:mt-[calc((1em*1.375-var(--icon))/2)] [&>svg]:shrink-0",
|
|
22
|
+
p.md
|
|
23
|
+
], {
|
|
24
|
+
variants: {
|
|
25
|
+
tone: {
|
|
26
|
+
neutral: "border-border bg-card text-card-foreground",
|
|
27
|
+
primary: "border-primary/30 bg-primary/5 text-card-foreground [&>svg]:text-primary-accent",
|
|
28
|
+
secondary: "border-border bg-secondary/40 text-card-foreground [&>svg]:text-secondary-foreground",
|
|
29
|
+
info: "border-info/30 bg-info/5 text-card-foreground [&>svg]:text-info",
|
|
30
|
+
success: "border-success/30 bg-success/10 text-card-foreground [&>svg]:text-success",
|
|
31
|
+
warning: "border-warning/40 bg-warning/10 text-card-foreground [&>svg]:text-warning-accent",
|
|
32
|
+
destructive: "border-destructive/30 bg-destructive/5 text-card-foreground [&>svg]:text-destructive"
|
|
33
|
+
},
|
|
34
|
+
variant: {
|
|
35
|
+
default: "",
|
|
36
|
+
inverse: [
|
|
37
|
+
"border-foreground bg-foreground text-background",
|
|
38
|
+
"[&>svg]:text-background",
|
|
39
|
+
"[&_[data-slot=alert-title]_[data-typography=text]]:text-background",
|
|
40
|
+
"[&_[data-slot=alert-description]_[data-typography=text]]:text-background/75",
|
|
41
|
+
"[&_[data-slot=alert-metadata-item]]:bg-background/10",
|
|
42
|
+
"[&_[data-slot=alert-metadata-item]>svg]:text-background/70",
|
|
43
|
+
"[&_[data-slot=alert-metadata-label]_[data-typography=text]]:text-background/70",
|
|
44
|
+
"[&_[data-slot=alert-metadata-value]_[data-typography=text]]:text-background"
|
|
45
|
+
]
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
defaultVariants: {
|
|
49
|
+
tone: "neutral",
|
|
50
|
+
variant: "default"
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
function w(e) {
|
|
54
|
+
return typeof e == "string" || typeof e == "number" || typeof e == "bigint";
|
|
55
|
+
}
|
|
56
|
+
var T = g(function({ className: e, tone: t, variant: n, role: r = "alert", ...a }, o) {
|
|
57
|
+
return /* @__PURE__ */ v("div", {
|
|
58
|
+
ref: o,
|
|
59
|
+
"data-slot": "alert",
|
|
60
|
+
"data-tone": t ?? "neutral",
|
|
61
|
+
"data-variant": n ?? "default",
|
|
62
|
+
role: r,
|
|
63
|
+
className: i(C({
|
|
64
|
+
tone: t,
|
|
65
|
+
variant: n
|
|
66
|
+
}), e),
|
|
67
|
+
...a
|
|
68
|
+
});
|
|
69
|
+
});
|
|
70
|
+
T.displayName = "Alert";
|
|
71
|
+
var E = g(function({ className: e, children: t, ...n }, r) {
|
|
72
|
+
return /* @__PURE__ */ v("div", {
|
|
73
|
+
ref: r,
|
|
74
|
+
"data-slot": "alert-title",
|
|
75
|
+
className: i("alert--title col-start-2 min-h-icon leading-snug [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:opacity-80", e),
|
|
76
|
+
...n,
|
|
77
|
+
children: w(t) ? /* @__PURE__ */ v(o, {
|
|
78
|
+
tag: "span",
|
|
79
|
+
weight: "semibold",
|
|
80
|
+
lineHeight: "snug",
|
|
81
|
+
children: t
|
|
82
|
+
}) : t
|
|
83
|
+
});
|
|
84
|
+
});
|
|
85
|
+
E.displayName = "AlertTitle";
|
|
86
|
+
var D = g(function({ className: e, children: t, ...n }, r) {
|
|
87
|
+
return /* @__PURE__ */ v(f, {
|
|
88
|
+
ref: r,
|
|
89
|
+
"data-slot": "alert-description",
|
|
90
|
+
gap: "xs",
|
|
91
|
+
align: "start",
|
|
92
|
+
className: i("alert--description col-start-2 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:opacity-80 [&_p]:leading-relaxed", e),
|
|
93
|
+
...n,
|
|
94
|
+
children: w(t) ? /* @__PURE__ */ v(o, {
|
|
95
|
+
tag: "span",
|
|
96
|
+
type: "secondary",
|
|
97
|
+
children: t
|
|
98
|
+
}) : t
|
|
99
|
+
});
|
|
100
|
+
});
|
|
101
|
+
D.displayName = "AlertDescription";
|
|
102
|
+
var ie = g(function({ className: e, ...t }, n) {
|
|
103
|
+
return /* @__PURE__ */ v("dl", {
|
|
104
|
+
ref: n,
|
|
105
|
+
"data-slot": "alert-metadata",
|
|
106
|
+
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),
|
|
107
|
+
...t
|
|
108
|
+
});
|
|
109
|
+
});
|
|
110
|
+
ie.displayName = "AlertMetadata";
|
|
111
|
+
var O = g(function({ className: e, icon: t, label: n, value: r, numeric: a = !1, ...s }, c) {
|
|
112
|
+
return /* @__PURE__ */ y("div", {
|
|
113
|
+
ref: c,
|
|
114
|
+
"data-slot": "alert-metadata-item",
|
|
115
|
+
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-muted/60 px-control-xs py-space-xs", "[&>svg]:size-icon-sm [&>svg]:shrink-0 [&>svg]:text-muted-foreground", e),
|
|
116
|
+
...s,
|
|
117
|
+
children: [
|
|
118
|
+
t,
|
|
119
|
+
/* @__PURE__ */ v("dt", {
|
|
120
|
+
"data-slot": "alert-metadata-label",
|
|
121
|
+
className: "alert--metadata-label shrink-0",
|
|
122
|
+
children: w(n) ? /* @__PURE__ */ v(o, {
|
|
123
|
+
tag: "span",
|
|
124
|
+
size: "xs",
|
|
125
|
+
type: "secondary",
|
|
126
|
+
className: "leading-none",
|
|
127
|
+
children: n
|
|
128
|
+
}) : n
|
|
129
|
+
}),
|
|
130
|
+
/* @__PURE__ */ v("dd", {
|
|
131
|
+
"data-slot": "alert-metadata-value",
|
|
132
|
+
className: "alert--metadata-value m-0 min-w-0",
|
|
133
|
+
children: w(r) ? /* @__PURE__ */ v(o, {
|
|
134
|
+
tag: "span",
|
|
135
|
+
size: "xs",
|
|
136
|
+
weight: "semibold",
|
|
137
|
+
className: i("break-words leading-none", a && "tabular-nums"),
|
|
138
|
+
children: r
|
|
139
|
+
}) : r
|
|
140
|
+
})
|
|
141
|
+
]
|
|
142
|
+
});
|
|
143
|
+
});
|
|
144
|
+
O.displayName = "AlertMetadataItem";
|
|
145
|
+
var k = g(function({ className: e, ...t }, n) {
|
|
146
|
+
return /* @__PURE__ */ v(f, {
|
|
147
|
+
ref: n,
|
|
148
|
+
direction: "horizontal",
|
|
149
|
+
align: "center",
|
|
150
|
+
justify: {
|
|
151
|
+
base: "start",
|
|
152
|
+
sm: "end"
|
|
153
|
+
},
|
|
154
|
+
wrap: !0,
|
|
155
|
+
gap: "sm",
|
|
156
|
+
"data-slot": "alert-action",
|
|
157
|
+
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),
|
|
158
|
+
...t
|
|
159
|
+
});
|
|
160
|
+
});
|
|
161
|
+
k.displayName = "AlertAction";
|
|
162
|
+
//#endregion
|
|
163
|
+
//#region src/components/ui/card.tsx
|
|
164
|
+
function A({ className: e, size: t = "default", ...n }) {
|
|
165
|
+
return /* @__PURE__ */ v("div", {
|
|
166
|
+
"data-slot": "card",
|
|
167
|
+
"data-size": t,
|
|
168
|
+
className: i("card--primitive", e),
|
|
169
|
+
...n
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
function j({ className: e, ...t }) {
|
|
173
|
+
return /* @__PURE__ */ v("div", {
|
|
174
|
+
"data-slot": "card-header",
|
|
175
|
+
className: i("card-header--primitive", e),
|
|
176
|
+
...t
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
function M({ className: e, ...t }) {
|
|
180
|
+
return /* @__PURE__ */ v("div", {
|
|
181
|
+
"data-slot": "card-title",
|
|
182
|
+
className: i("card-title--primitive", e),
|
|
183
|
+
...t
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
function ae({ className: e, ...t }) {
|
|
187
|
+
return /* @__PURE__ */ v("div", {
|
|
188
|
+
"data-slot": "card-description",
|
|
189
|
+
className: i("card-description--primitive", e),
|
|
190
|
+
...t
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
function oe({ className: e, ...t }) {
|
|
194
|
+
return /* @__PURE__ */ v("div", {
|
|
195
|
+
"data-slot": "card-content",
|
|
196
|
+
className: i("card-content--primitive", e),
|
|
197
|
+
...t
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
function se({ className: e, ...t }) {
|
|
201
|
+
return /* @__PURE__ */ v("div", {
|
|
202
|
+
"data-slot": "card-footer",
|
|
203
|
+
className: i("card-footer--primitive", e),
|
|
204
|
+
...t
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
//#endregion
|
|
208
|
+
//#region src/components/base/cards/card.recipes.ts
|
|
209
|
+
var N = {
|
|
210
|
+
none: "p-0",
|
|
211
|
+
sm: "p-surface-xs",
|
|
212
|
+
md: "p-surface",
|
|
213
|
+
lg: "p-surface-lg"
|
|
214
|
+
}, P = {
|
|
215
|
+
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",
|
|
216
|
+
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",
|
|
217
|
+
surfaceCard: `bg-card ${m.frame.shell} shadow-sm text-card-foreground`,
|
|
218
|
+
surfaceDefault: `bg-card ${m.frame.shell} shadow-sm text-card-foreground`,
|
|
219
|
+
surfaceFlat: "bg-transparent border-0 shadow-none text-foreground",
|
|
220
|
+
surfaceFramed: `bg-card ${m.frame.shell} shadow-sm ring-4 ring-border/30 text-card-foreground`,
|
|
221
|
+
surfaceRaised: `bg-card ${m.frame.shell} shadow-md text-card-foreground`,
|
|
222
|
+
surfaceSunken: `bg-muted ${m.frame.shell} text-foreground`,
|
|
223
|
+
header: "flex flex-col gap-normal px-surface box-border",
|
|
224
|
+
headerRow: "flex-row flex-wrap items-start justify-between gap-space-lg pb-0",
|
|
225
|
+
headerRowSingle: "items-center",
|
|
226
|
+
headerLeading: "min-w-0 max-w-full flex-1 basis-64",
|
|
227
|
+
headerLeadingSingle: "basis-36",
|
|
228
|
+
headerTrailing: "flex max-w-full flex-wrap shrink-0 items-center gap-space-md",
|
|
229
|
+
headerDivider: `${m.frame.header} [&.border-b]:!pb-surface`,
|
|
230
|
+
title: "min-w-0 leading-tight text-card-foreground",
|
|
231
|
+
titleSm: "text-sm",
|
|
232
|
+
titleMd: "text-base",
|
|
233
|
+
titleLg: "text-lg",
|
|
234
|
+
description: "text-sm text-muted-foreground leading-normal",
|
|
235
|
+
content: "px-surface box-border min-w-0",
|
|
236
|
+
footer: "flex items-center px-surface box-border",
|
|
237
|
+
footerDivider: `${m.frame.footer} [&.border-t]:!pt-surface`,
|
|
238
|
+
alert: "px-surface",
|
|
239
|
+
alertWithHeader: "-mt-space-xs",
|
|
240
|
+
expandToggle: "flex justify-center pb-surface -mt-space-md"
|
|
241
|
+
}, F = {
|
|
242
|
+
root: "card--component",
|
|
243
|
+
header: "card--header",
|
|
244
|
+
title: "card--title",
|
|
245
|
+
description: "card--description",
|
|
246
|
+
content: "card--content",
|
|
247
|
+
footer: "card--footer",
|
|
248
|
+
alert: "card--alert",
|
|
249
|
+
collapseFade: "card--collapse-fade",
|
|
250
|
+
expandToggle: "card--expand-toggle",
|
|
251
|
+
expandToggleButton: "card--expand-toggle-button"
|
|
252
|
+
}, I = {
|
|
253
|
+
shell: P.shell,
|
|
254
|
+
headerX: "px-surface",
|
|
255
|
+
headerDividerY: P.headerDivider,
|
|
256
|
+
contentX: P.content,
|
|
257
|
+
contentY: "",
|
|
258
|
+
footerX: P.footer,
|
|
259
|
+
footerDividerY: P.footerDivider,
|
|
260
|
+
alertX: P.alert,
|
|
261
|
+
expandableBottom: "pb-surface",
|
|
262
|
+
alertOffsetWithHeader: P.alertWithHeader,
|
|
263
|
+
alertOffsetStandalone: ""
|
|
264
|
+
}, ce = {
|
|
265
|
+
card: P.surfaceCard,
|
|
266
|
+
flat: P.surfaceFlat,
|
|
267
|
+
framed: P.surfaceFramed
|
|
268
|
+
};
|
|
269
|
+
//#endregion
|
|
270
|
+
//#region src/components/base/cards/partials/has-renderable-content.ts
|
|
271
|
+
function L(e) {
|
|
272
|
+
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(L) : !_(e) || e.type !== h || L(e.props.children);
|
|
273
|
+
}
|
|
274
|
+
//#endregion
|
|
275
|
+
//#region src/components/base/cards/partials/card-primitives.tsx
|
|
276
|
+
var R = {
|
|
277
|
+
sm: P.titleSm,
|
|
278
|
+
md: P.titleMd,
|
|
279
|
+
lg: P.titleLg
|
|
280
|
+
}, z = {
|
|
281
|
+
sm: "sm",
|
|
282
|
+
md: "base",
|
|
283
|
+
lg: "lg"
|
|
284
|
+
};
|
|
285
|
+
function le({ className: e, ...t }) {
|
|
286
|
+
return /* @__PURE__ */ v(A, {
|
|
287
|
+
className: i(F.root, P.shell, e),
|
|
288
|
+
...t
|
|
289
|
+
});
|
|
290
|
+
}
|
|
291
|
+
function B({ className: e, textGap: t = "normal", padding: n, ...r }) {
|
|
292
|
+
return /* @__PURE__ */ v(j, {
|
|
293
|
+
className: i(F.header, P.header, n !== void 0 && N[n], t === "dense" ? "gap-dense" : "gap-normal", e),
|
|
294
|
+
...r
|
|
295
|
+
});
|
|
296
|
+
}
|
|
297
|
+
function ue({ className: t, children: r, size: a, ...s }) {
|
|
298
|
+
let { defaultScale: c } = n(), l = e(a, c);
|
|
299
|
+
return L(r) ? typeof r != "string" && typeof r != "number" && typeof r != "bigint" ? /* @__PURE__ */ v(M, {
|
|
300
|
+
className: i(F.title, P.title, "font-medium", R[l], t),
|
|
301
|
+
...s,
|
|
302
|
+
children: r
|
|
303
|
+
}) : /* @__PURE__ */ v(o, {
|
|
304
|
+
"data-slot": "card-title",
|
|
305
|
+
tag: "div",
|
|
306
|
+
size: z[l],
|
|
307
|
+
weight: "semibold",
|
|
308
|
+
lineHeight: "tight",
|
|
309
|
+
className: i(F.title, P.title, t),
|
|
310
|
+
...s,
|
|
311
|
+
children: r
|
|
312
|
+
}) : null;
|
|
313
|
+
}
|
|
314
|
+
function V({ className: e, children: t, ...n }) {
|
|
315
|
+
return L(t) ? typeof t != "string" && typeof t != "number" && typeof t != "bigint" ? /* @__PURE__ */ v(ae, {
|
|
316
|
+
className: i(F.description, P.description, e),
|
|
317
|
+
...n,
|
|
318
|
+
children: /* @__PURE__ */ v(a.Provider, {
|
|
319
|
+
value: !0,
|
|
320
|
+
children: t
|
|
321
|
+
})
|
|
322
|
+
}) : /* @__PURE__ */ v(o, {
|
|
323
|
+
"data-slot": "card-description",
|
|
324
|
+
tag: "div",
|
|
325
|
+
type: "secondary",
|
|
326
|
+
className: i(F.description, e),
|
|
327
|
+
...n,
|
|
328
|
+
children: t
|
|
329
|
+
}) : null;
|
|
330
|
+
}
|
|
331
|
+
function de({ className: e, padding: t, ...n }) {
|
|
332
|
+
return /* @__PURE__ */ v(oe, {
|
|
333
|
+
className: i(F.content, P.content, t !== void 0 && N[t], e),
|
|
334
|
+
...n
|
|
335
|
+
});
|
|
336
|
+
}
|
|
337
|
+
function fe({ className: e, padding: t, ...n }) {
|
|
338
|
+
return /* @__PURE__ */ v(se, {
|
|
339
|
+
className: i(F.footer, P.footer, t !== void 0 && N[t], e),
|
|
340
|
+
...n
|
|
341
|
+
});
|
|
342
|
+
}
|
|
343
|
+
//#endregion
|
|
344
|
+
//#region src/components/base/cards/partials/smart-card-alert.tsx
|
|
345
|
+
function pe({ alert: e, alertTone: t, hasHeader: n, className: r }) {
|
|
346
|
+
return /* @__PURE__ */ v("div", {
|
|
347
|
+
className: i(F.alert, I.alertX, r, n ? I.alertOffsetWithHeader : I.alertOffsetStandalone),
|
|
348
|
+
children: /* @__PURE__ */ v(T, {
|
|
349
|
+
tone: t,
|
|
350
|
+
children: /* @__PURE__ */ v(D, { children: e })
|
|
351
|
+
})
|
|
352
|
+
});
|
|
353
|
+
}
|
|
354
|
+
//#endregion
|
|
355
|
+
//#region src/components/base/display/surface-title.tsx
|
|
356
|
+
function H({ title: e, suffix: t, size: n = "base", className: r, suffixClassName: a, dataSlot: s }) {
|
|
357
|
+
let c = typeof e == "string" || typeof e == "number" || typeof e == "bigint";
|
|
358
|
+
return /* @__PURE__ */ y(o, {
|
|
359
|
+
tag: "div",
|
|
360
|
+
size: n,
|
|
361
|
+
weight: c ? "semibold" : "medium",
|
|
362
|
+
lineHeight: "tight",
|
|
363
|
+
"data-slot": s,
|
|
364
|
+
className: i("surface-title--component flex min-w-0 flex-wrap items-center gap-space-md break-words leading-tight", r),
|
|
365
|
+
children: [e != null && /* @__PURE__ */ v("span", {
|
|
366
|
+
className: "min-w-0 max-w-full",
|
|
367
|
+
...c ? {
|
|
368
|
+
role: "heading",
|
|
369
|
+
"aria-level": 2
|
|
370
|
+
} : {},
|
|
371
|
+
children: e
|
|
372
|
+
}), t != null && /* @__PURE__ */ v("div", {
|
|
373
|
+
className: i("surface-title--suffix inline-flex max-w-full flex-wrap items-center gap-space-md", a),
|
|
374
|
+
children: t
|
|
375
|
+
})]
|
|
376
|
+
});
|
|
377
|
+
}
|
|
378
|
+
//#endregion
|
|
379
|
+
//#region src/components/base/cards/partials/smart-card-actions-menu.tsx
|
|
380
|
+
function me({ actions: e, actionsLabel: t }) {
|
|
381
|
+
let n = e.map((e, t) => ({
|
|
382
|
+
...e,
|
|
383
|
+
id: e.id ?? `card-action-${t}`
|
|
384
|
+
}));
|
|
385
|
+
return /* @__PURE__ */ v(ee, {
|
|
386
|
+
actions: n,
|
|
387
|
+
icon: x,
|
|
388
|
+
srText: t,
|
|
389
|
+
align: "end",
|
|
390
|
+
closeOnSelect: !0,
|
|
391
|
+
buttonProps: {
|
|
392
|
+
size: "sm",
|
|
393
|
+
tone: "secondary",
|
|
394
|
+
buttonStyle: "ghost",
|
|
395
|
+
iconOnly: !0,
|
|
396
|
+
className: "card--actions-trigger size-action-sm text-muted-foreground"
|
|
397
|
+
}
|
|
398
|
+
});
|
|
399
|
+
}
|
|
400
|
+
//#endregion
|
|
401
|
+
//#region src/components/base/cards/partials/smart-card-header-row.tsx
|
|
402
|
+
function he({ tooltipLabel: e }) {
|
|
403
|
+
return /* @__PURE__ */ v(c, { render: (t) => {
|
|
404
|
+
let n = t;
|
|
405
|
+
return /* @__PURE__ */ v(u, {
|
|
406
|
+
...n,
|
|
407
|
+
type: "button",
|
|
408
|
+
tone: "secondary",
|
|
409
|
+
buttonStyle: "ghost",
|
|
410
|
+
size: "sm",
|
|
411
|
+
iconOnly: !0,
|
|
412
|
+
className: i("card--tooltip-trigger", "text-muted-foreground", n.className),
|
|
413
|
+
"aria-label": e,
|
|
414
|
+
children: /* @__PURE__ */ v(b, { className: "size-icon-md" })
|
|
415
|
+
});
|
|
416
|
+
} });
|
|
417
|
+
}
|
|
418
|
+
function ge({ icon: e, title: t, titleSuffix: n, description: r, textGap: a = "normal", tooltip: o, tooltipLabel: c, headerStart: u, headerEnd: d, headerAction: p, actions: m, actionsLabel: ee, titleSize: h, className: g }) {
|
|
419
|
+
let _ = Array.isArray(m) ? m : [], te = _.length > 0, ne = L(e), re = L(t), b = L(n), x = L(r), S = L(o), C = L(u), w = L(d), T = L(p), E = ne || re || b || S, D = w || T || te;
|
|
420
|
+
return /* @__PURE__ */ y(B, {
|
|
421
|
+
className: i(P.headerRow, !x && !C && P.headerRowSingle, I.headerX, g),
|
|
422
|
+
children: [/* @__PURE__ */ y(f, {
|
|
423
|
+
gap: a,
|
|
424
|
+
className: i("card--header-start", P.headerLeading, !x && !C && P.headerLeadingSingle),
|
|
425
|
+
children: [
|
|
426
|
+
!!C && u,
|
|
427
|
+
!!E && /* @__PURE__ */ y("div", {
|
|
428
|
+
className: "card--title-row flex min-w-0 items-start gap-space-sm",
|
|
429
|
+
children: [
|
|
430
|
+
!!ne && /* @__PURE__ */ v("span", {
|
|
431
|
+
className: "card--icon flex shrink-0 items-center pt-space-2xs text-muted-foreground [&_svg]:size-icon",
|
|
432
|
+
children: e
|
|
433
|
+
}),
|
|
434
|
+
/* @__PURE__ */ v(H, {
|
|
435
|
+
dataSlot: "card-title",
|
|
436
|
+
title: t,
|
|
437
|
+
suffix: b ? n : void 0,
|
|
438
|
+
size: h === "md" ? "base" : h === "lg" ? "lg" : "sm",
|
|
439
|
+
className: "card--title flex-1",
|
|
440
|
+
suffixClassName: "card--title-suffix"
|
|
441
|
+
}),
|
|
442
|
+
!!S && /* @__PURE__ */ y(s, { children: [/* @__PURE__ */ v(he, { tooltipLabel: c }), /* @__PURE__ */ v(l, { children: o })] })
|
|
443
|
+
]
|
|
444
|
+
}),
|
|
445
|
+
!!x && /* @__PURE__ */ v(V, {
|
|
446
|
+
className: "text-start",
|
|
447
|
+
children: r
|
|
448
|
+
})
|
|
449
|
+
]
|
|
450
|
+
}), !!D && /* @__PURE__ */ y("div", {
|
|
451
|
+
className: i("card--header-end", P.headerTrailing),
|
|
452
|
+
children: [
|
|
453
|
+
!!w && d,
|
|
454
|
+
!!T && p,
|
|
455
|
+
!!te && /* @__PURE__ */ v(me, {
|
|
456
|
+
actions: _,
|
|
457
|
+
actionsLabel: ee
|
|
458
|
+
})
|
|
459
|
+
]
|
|
460
|
+
})]
|
|
461
|
+
});
|
|
462
|
+
}
|
|
463
|
+
//#endregion
|
|
464
|
+
//#region src/components/base/cards/smart-card.strings.ts
|
|
465
|
+
var _e = {
|
|
466
|
+
actionsLabel: "Card actions",
|
|
467
|
+
tooltipLabel: "Card info",
|
|
468
|
+
expandLabel: "Expand card",
|
|
469
|
+
collapseLabel: "Collapse card"
|
|
470
|
+
}, U = g(function({ icon: a, title: s, titleSuffix: c, description: l, textGap: p = "normal", tooltip: ee, tooltipAriaLabel: h, footerText: g, alert: _, alertTone: b = "neutral", surface: x, padding: S = "md", headerPlacement: C = "inside", gap: w, contentGap: T, titleSize: E, actions: D, actionsLabel: ie, headerAction: O, headerStart: k, headerEnd: A, contentTop: j, contentBottom: M, footerSlot: ae, headerDivider: oe, footerDivider: se, expandable: N = !1, defaultExpanded: P = !1, expanded: R, onExpandedChange: z, children: B, className: ue, headerClassName: V, contentClassName: H, footerClassName: me, strings: he, ...U }, ve) {
|
|
471
|
+
let { defaultSurface: ye, defaultHeaderDivider: be, defaultFooterDivider: xe } = t(), Se = se ?? xe ?? !1, { defaultScale: Ce } = n(), we = e(E, Ce), W = {
|
|
472
|
+
none: "px-0",
|
|
473
|
+
sm: "px-surface-xs",
|
|
474
|
+
md: "px-surface",
|
|
475
|
+
lg: "px-surface-lg"
|
|
476
|
+
}[S], Te = {
|
|
477
|
+
none: "py-0",
|
|
478
|
+
sm: "py-surface-xs",
|
|
479
|
+
md: "py-surface",
|
|
480
|
+
lg: "py-surface-lg"
|
|
481
|
+
}[S], G = {
|
|
482
|
+
...I,
|
|
483
|
+
headerX: W,
|
|
484
|
+
contentX: W,
|
|
485
|
+
footerX: W,
|
|
486
|
+
headerDividerY: {
|
|
487
|
+
none: "!pb-0",
|
|
488
|
+
sm: "!pb-surface-xs",
|
|
489
|
+
md: "!pb-surface",
|
|
490
|
+
lg: "!pb-surface-lg"
|
|
491
|
+
}[S],
|
|
492
|
+
footerDividerY: {
|
|
493
|
+
none: "!pt-0",
|
|
494
|
+
sm: "!pt-surface-xs",
|
|
495
|
+
md: "!pt-surface",
|
|
496
|
+
lg: "!pt-surface-lg"
|
|
497
|
+
}[S]
|
|
498
|
+
}, K = C === "frame", Ee = Array.isArray(D) ? D : [], q = r(_e, he), De = ie ?? q.actionsLabel, J = N !== !1 && N !== void 0, Oe = typeof N == "object" && N?.collapsedMaxHeight !== void 0 ? N.collapsedMaxHeight : "12rem", ke = typeof Oe == "number" ? `${Oe}px` : Oe, Ae = R !== void 0, [je, Me] = ne(P), Y = Ae ? R : je, Ne = te(() => {
|
|
499
|
+
let e = !Y;
|
|
500
|
+
Ae || Me(e), z?.(e);
|
|
501
|
+
}, [
|
|
502
|
+
Y,
|
|
503
|
+
Ae,
|
|
504
|
+
z
|
|
505
|
+
]), X = L(a) || L(s) || L(l) || Ee.length > 0 || L(O) || L(k) || L(A), Pe = L(_), Fe = L(g), Z = L(ae), Ie = L(j), Le = L(M), Re = Ie || Le || L(B) || J, ze = X && (Fe || Z) && !Pe && !Re && !K, Be = h && h.trim().length > 0 ? h : q.tooltipLabel, Ve = J ? { maxHeight: Y ? "" : ke } : void 0, Q = x ?? ye ?? "framed", He = oe ?? be ?? !1, $ = ze && (He || Se);
|
|
506
|
+
return /* @__PURE__ */ y(le, {
|
|
507
|
+
...U,
|
|
508
|
+
"data-header-placement": C,
|
|
509
|
+
ref: ve,
|
|
510
|
+
"data-surface": Q,
|
|
511
|
+
className: i(ce[Q], G.shell, Te, d({ gap: w ?? "xl" }), $ && "gap-0", K && "rounded-radius bg-muted p-surface-xs pt-0 gap-0 ring-0", Q === "flat" && !K && "overflow-visible", J && i("relative mb-space-xl !overflow-visible", G.expandableBottom), ue),
|
|
512
|
+
children: [
|
|
513
|
+
!!X && /* @__PURE__ */ v(ge, {
|
|
514
|
+
icon: a,
|
|
515
|
+
title: s,
|
|
516
|
+
titleSuffix: c,
|
|
517
|
+
description: l,
|
|
518
|
+
textGap: p,
|
|
519
|
+
tooltip: ee,
|
|
520
|
+
tooltipLabel: Be,
|
|
521
|
+
headerStart: k,
|
|
522
|
+
headerEnd: A,
|
|
523
|
+
headerAction: O,
|
|
524
|
+
actions: Ee,
|
|
525
|
+
actionsLabel: De,
|
|
526
|
+
titleSize: we,
|
|
527
|
+
className: i(He && !$ && i(m.frame.header, G.headerDividerY), $ && G.headerDividerY, G.headerX, K && "flex-row items-center min-h-action px-surface-xs py-space-2xs [&_.card--title-row]:items-center [&_.card--icon]:pt-0", V)
|
|
528
|
+
}),
|
|
529
|
+
/* @__PURE__ */ y("div", {
|
|
530
|
+
className: K ? i("card--body-surface flex min-w-0 flex-col rounded-inner bg-card text-card-foreground", d({ gap: w ?? "xl" }), m.frame.shell, Te) : "contents",
|
|
531
|
+
children: [
|
|
532
|
+
!!Pe && /* @__PURE__ */ v(pe, {
|
|
533
|
+
alert: _,
|
|
534
|
+
alertTone: b,
|
|
535
|
+
hasHeader: X,
|
|
536
|
+
className: W
|
|
537
|
+
}),
|
|
538
|
+
!!Re && /* @__PURE__ */ y(de, {
|
|
539
|
+
className: i(G.contentX, G.contentY, J && "relative overflow-hidden transition-[max-height] duration-500 ease-in-out", H),
|
|
540
|
+
style: Ve,
|
|
541
|
+
children: [Ie || Le ? /* @__PURE__ */ y(f, {
|
|
542
|
+
gap: T ?? "lg",
|
|
543
|
+
children: [
|
|
544
|
+
!!Ie && j,
|
|
545
|
+
T ? /* @__PURE__ */ v(f, {
|
|
546
|
+
gap: T,
|
|
547
|
+
children: B
|
|
548
|
+
}) : /* @__PURE__ */ v("div", {
|
|
549
|
+
className: "min-w-0",
|
|
550
|
+
children: B
|
|
551
|
+
}),
|
|
552
|
+
!!Le && M
|
|
553
|
+
]
|
|
554
|
+
}) : T ? /* @__PURE__ */ v(f, {
|
|
555
|
+
gap: T,
|
|
556
|
+
children: B
|
|
557
|
+
}) : B, !!J && !Y && /* @__PURE__ */ v("div", {
|
|
558
|
+
"aria-hidden": "true",
|
|
559
|
+
className: i(F.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")
|
|
560
|
+
})]
|
|
561
|
+
}),
|
|
562
|
+
(Fe || Z) && /* @__PURE__ */ y(fe, {
|
|
563
|
+
className: i(G.footerX, Z ? "flex-col items-stretch gap-space-md" : "justify-end", (Se || $) && i(m.frame.footer, G.footerDividerY), me),
|
|
564
|
+
children: [Fe && (typeof g == "string" || typeof g == "number" || typeof g == "bigint" ? /* @__PURE__ */ v(o, {
|
|
565
|
+
tag: "span",
|
|
566
|
+
size: "xs",
|
|
567
|
+
type: "secondary",
|
|
568
|
+
children: g
|
|
569
|
+
}) : g), Z && ae]
|
|
570
|
+
})
|
|
571
|
+
]
|
|
572
|
+
}),
|
|
573
|
+
!!J && /* @__PURE__ */ v("div", {
|
|
574
|
+
className: i(F.expandToggle, "absolute bottom-0 left-1/2 z-10 -translate-x-1/2 translate-y-1/2"),
|
|
575
|
+
children: /* @__PURE__ */ v(u, {
|
|
576
|
+
type: "button",
|
|
577
|
+
tone: "secondary",
|
|
578
|
+
buttonStyle: "outline",
|
|
579
|
+
size: "sm",
|
|
580
|
+
iconOnly: !0,
|
|
581
|
+
onClick: Ne,
|
|
582
|
+
"aria-expanded": Y,
|
|
583
|
+
"aria-label": Y ? q.collapseLabel : q.expandLabel,
|
|
584
|
+
className: i(F.expandToggleButton, i(m.frame.shell, "bg-background text-foreground shadow-sm"), "hover:bg-muted/40 transition-colors", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"),
|
|
585
|
+
children: /* @__PURE__ */ v(re, {
|
|
586
|
+
"aria-hidden": "true",
|
|
587
|
+
className: i("size-icon transition-transform duration-300", Y && "rotate-180")
|
|
588
|
+
})
|
|
589
|
+
})
|
|
590
|
+
})
|
|
591
|
+
]
|
|
592
|
+
});
|
|
593
|
+
});
|
|
594
|
+
U.displayName = "Card";
|
|
595
|
+
var ve = U;
|
|
596
|
+
//#endregion
|
|
597
|
+
export { O as _, de as a, B as c, L as d, ce as f, ie as g, D as h, H as i, le as l, k as m, ve as n, V as o, T as p, _e as r, fe as s, U as t, ue as u, E as v };
|
|
598
|
+
|
|
599
|
+
//# sourceMappingURL=smart-card-Bek-TwUp.js.map
|