themelia-react-ui 2.0.0 → 2.0.2
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 +527 -0
- package/README.md +47 -14
- package/THIRD_PARTY_NOTICES.md +13 -0
- package/dist/accordion-Cjb6sx0G.js +208 -0
- package/dist/accordion-Cjb6sx0G.js.map +1 -0
- package/dist/action-menu-CllU52Mm.js +280 -0
- package/dist/action-menu-CllU52Mm.js.map +1 -0
- package/dist/affordance-geometry.generated-tF36bREk.js +140 -0
- package/dist/affordance-geometry.generated-tF36bREk.js.map +1 -0
- package/dist/ai-artifact-DvTwDVyL.js +1148 -0
- package/dist/ai-artifact-DvTwDVyL.js.map +1 -0
- package/dist/{app-shell-BE_j8-AT.js → app-shell-C4FhvCqF.js} +5 -5
- package/dist/{app-shell-BE_j8-AT.js.map → app-shell-C4FhvCqF.js.map} +1 -1
- package/dist/attachment-BxDfL2mw.js +246 -0
- package/dist/attachment-BxDfL2mw.js.map +1 -0
- package/dist/{auth-M3vGMgDR.js → auth-ax2BqjrI.js} +241 -235
- package/dist/auth-ax2BqjrI.js.map +1 -0
- package/dist/{avatar-djdaaQ_s.js → avatar-DAPlDvhJ.js} +67 -66
- package/dist/avatar-DAPlDvhJ.js.map +1 -0
- package/dist/badge-HpFqoqSY.js +93 -0
- package/dist/badge-HpFqoqSY.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 +50 -46
- package/dist/base/carousel.js.map +1 -1
- package/dist/base/cascader.js +69 -81
- 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 +2 -2
- 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 +20 -20
- 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 +216 -220
- 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 +79 -2
- package/dist/base/spinner.js.map +1 -0
- 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 +46 -45
- 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 +2 -2
- package/dist/batch-action-bar-DnUJ21NQ.js +105 -0
- package/dist/batch-action-bar-DnUJ21NQ.js.map +1 -0
- package/dist/blocks/admin.js +171 -169
- package/dist/blocks/admin.js.map +1 -1
- package/dist/blocks/ai.js +308 -285
- package/dist/blocks/ai.js.map +1 -1
- package/dist/blocks/analytics/usage-card.js +1 -1
- package/dist/blocks/analytics.js +626 -589
- 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 +2051 -1329
- package/dist/blocks/commerce.js.map +1 -1
- package/dist/blocks/data-display.js +3 -2
- package/dist/blocks/onboarding.js +68 -58
- package/dist/blocks/onboarding.js.map +1 -1
- package/dist/blocks/planning.js +27 -26
- package/dist/blocks/planning.js.map +1 -1
- package/dist/blocks/timelines.js +1 -1
- package/dist/breadcrumbs-C-oqs1sQ.js +129 -0
- package/dist/breadcrumbs-C-oqs1sQ.js.map +1 -0
- package/dist/{button-R9CCoH7A.js → button-DVzspB_G.js} +15 -14
- package/dist/button-DVzspB_G.js.map +1 -0
- package/dist/{button-BS3KDg00.js → buttons-DPZekJFu.js} +208 -216
- package/dist/buttons-DPZekJFu.js.map +1 -0
- package/dist/cards-BaBZR-AU.js +68 -0
- package/dist/cards-BaBZR-AU.js.map +1 -0
- package/dist/{chart-DwYRKKc-.js → chart-ZOYyK2xG.js} +58 -55
- package/dist/chart-ZOYyK2xG.js.map +1 -0
- package/dist/checkbox-AWIhNhmo.js +36 -0
- package/dist/checkbox-AWIhNhmo.js.map +1 -0
- package/dist/choice-inputs-CNHvARCJ.js +770 -0
- package/dist/choice-inputs-CNHvARCJ.js.map +1 -0
- package/dist/code-block-DeneBJR_.js +185 -0
- package/dist/code-block-DeneBJR_.js.map +1 -0
- package/dist/{collapsible-oMUGM4tr.js → collapsible-C-_l4hpy.js} +4 -4
- package/dist/{collapsible-oMUGM4tr.js.map → collapsible-C-_l4hpy.js.map} +1 -1
- package/dist/{collection-content-Ys-OZOkY.js → collection-content-By56pLog.js} +3 -3
- package/dist/{collection-content-Ys-OZOkY.js.map → collection-content-By56pLog.js.map} +1 -1
- package/dist/combobox-C0EQW6dr.js +875 -0
- package/dist/combobox-C0EQW6dr.js.map +1 -0
- package/dist/combobox-xCQ2RMNE.js +309 -0
- package/dist/combobox-xCQ2RMNE.js.map +1 -0
- package/dist/{command-kPMPjIxJ.js → command-C25VMRII.js} +7 -7
- package/dist/{command-kPMPjIxJ.js.map → command-C25VMRII.js.map} +1 -1
- package/dist/{comments-You0Bzbr.js → comments-BYYlTA8E.js} +390 -379
- package/dist/comments-BYYlTA8E.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 +5 -5
- 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/buttons/loader-button.d.ts +2 -1
- package/dist/components/base/cards/card.recipes.d.ts +2 -3
- package/dist/components/base/cards/partials/smart-card-skeleton.d.ts +3 -13
- package/dist/components/base/cards/smart-card.types.d.ts +11 -4
- package/dist/components/base/chart/chart.d.ts +2 -5
- 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/combobox/combobox.strings.d.ts +7 -0
- package/dist/components/base/combobox/index.d.ts +30 -4
- 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 +26 -15
- 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/navigation/pagination.d.ts +5 -2
- package/dist/components/base/popover/popover.recipes.d.ts +15 -1
- 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/table/index.d.ts +9 -2
- package/dist/components/base/text-inputs/field-clear-button.d.ts +6 -0
- package/dist/components/base/text-inputs/input-group.d.ts +2 -2
- 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/ai/ai-shimmer/ai-shimmer.d.ts +1 -1
- package/dist/components/blocks/ai/ai-shimmer/types.d.ts +3 -0
- 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 +45 -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/inline-stat/inline-stat.d.ts +16 -8
- package/dist/components/blocks/data-display/metadata/index.d.ts +30 -4
- package/dist/components/features/activities/partials/activity-marker.d.ts +6 -3
- 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/appointment-calendar/appointment-calendar.d.ts +5 -0
- package/dist/components/features/appointment-calendar/appointment-calendar.types.d.ts +220 -0
- package/dist/components/features/appointment-calendar/appointment-calendar.utils.d.ts +41 -0
- package/dist/components/features/appointment-calendar/index.d.ts +3 -0
- package/dist/components/features/appointment-calendar/partials/appointment-agenda.d.ts +32 -0
- package/dist/components/features/appointment-calendar/partials/appointment-month.d.ts +13 -0
- package/dist/components/features/combobox/combobox.strings.d.ts +15 -1
- package/dist/components/features/combobox/types.d.ts +4 -0
- 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 +6 -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 +7 -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 +54 -1
- 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-header.d.ts +1 -1
- package/dist/components/features/table/table.strings.d.ts +55 -1
- package/dist/components/features/table/table.types.d.ts +49 -11
- package/dist/components/features/theme-tweaker/theme-tweaker.types.d.ts +5 -0
- 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/primitives/number.d.ts +4 -2
- package/dist/components/primitives/value.d.ts +3 -1
- 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 +8 -3
- package/dist/components/ui/checkbox.d.ts +4 -3
- package/dist/components/ui/combobox.d.ts +6 -2
- package/dist/components/ui/item.d.ts +8 -8
- package/dist/components/ui/overlay.recipes.d.ts +0 -9
- package/dist/components/ui/switch.d.ts +2 -2
- package/dist/components/ui/tabs.d.ts +1 -1
- package/dist/{containers-D_L4mTVb.js → containers-Mu1LMGV1.js} +36 -35
- package/dist/containers-Mu1LMGV1.js.map +1 -0
- package/dist/{copyable-DDjTeW_j.js → copyable-ClBuk_UK.js} +6 -6
- package/dist/{copyable-DDjTeW_j.js.map → copyable-ClBuk_UK.js.map} +1 -1
- package/dist/data-display-DT_khPl_.js +971 -0
- package/dist/data-display-DT_khPl_.js.map +1 -0
- package/dist/{date-uf3z37Nm.js → date-DCrsDTZc.js} +5 -5
- package/dist/{date-uf3z37Nm.js.map → date-DCrsDTZc.js.map} +1 -1
- package/dist/date-picker-ay0Pha_a.js +1530 -0
- package/dist/date-picker-ay0Pha_a.js.map +1 -0
- package/dist/date-pickers-Ccw8DL2b.js +175 -0
- package/dist/date-pickers-Ccw8DL2b.js.map +1 -0
- package/dist/display-hAc1HjpI.js +344 -0
- package/dist/display-hAc1HjpI.js.map +1 -0
- package/dist/dropdown-menu-Cl4X7L5S.js +193 -0
- package/dist/dropdown-menu-Cl4X7L5S.js.map +1 -0
- package/dist/editable-text-recipe-Cn61kEcv.js +10 -0
- package/dist/editable-text-recipe-Cn61kEcv.js.map +1 -0
- package/dist/features/activities.js +478 -542
- package/dist/features/activities.js.map +1 -1
- package/dist/features/ai-chat.js +209 -199
- package/dist/features/ai-chat.js.map +1 -1
- package/dist/features/appointment-calendar.js +683 -0
- package/dist/features/appointment-calendar.js.map +1 -0
- package/dist/features/async-preview.js +109 -107
- 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 +30 -29
- package/dist/features/data-view.js.map +1 -1
- package/dist/features/email-composer/engine.js +1 -1
- package/dist/features/email-composer.js +285 -283
- package/dist/features/email-composer.js.map +1 -1
- package/dist/features/event-calendar.js +282 -273
- package/dist/features/event-calendar.js.map +1 -1
- package/dist/features/filters.js +1 -1
- package/dist/features/global-search.js +318 -318
- package/dist/features/global-search.js.map +1 -1
- package/dist/features/kanban.js +146 -147
- package/dist/features/kanban.js.map +1 -1
- package/dist/features/map.js +269 -268
- package/dist/features/map.js.map +1 -1
- package/dist/features/media-library.js +970 -863
- 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 +1137 -1124
- package/dist/features/products.js.map +1 -1
- package/dist/features/questionnaire.js +206 -194
- package/dist/features/questionnaire.js.map +1 -1
- package/dist/features/resource-assignment.js +24 -21
- 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 +35 -33
- package/dist/features/schema-form.js.map +1 -1
- package/dist/features/suggestions.js +3 -3
- package/dist/features/sync.js +11 -5
- package/dist/features/sync.js.map +1 -1
- package/dist/features/table.js +1 -1
- package/dist/features/theme-tweaker.js +501 -496
- package/dist/features/theme-tweaker.js.map +1 -1
- package/dist/feedback-BYIhtitP.js +239 -0
- package/dist/feedback-BYIhtitP.js.map +1 -0
- package/dist/field-affordance-recipes-DZhnIL_Y.js +41 -0
- package/dist/field-affordance-recipes-DZhnIL_Y.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-BGfvjP4d.js} +483 -472
- package/dist/filters-BGfvjP4d.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-CwH9y77i.js} +6 -5
- package/dist/form-field-CwH9y77i.js.map +1 -0
- package/dist/{form-sizing-uWP4lzVh.js → form-sizing-BdP_Mf5p.js} +45 -46
- package/dist/form-sizing-BdP_Mf5p.js.map +1 -0
- package/dist/{forms-DDeEnXSY.js → forms-B9G_xwzi.js} +22 -22
- package/dist/{forms-DDeEnXSY.js.map → forms-B9G_xwzi.js.map} +1 -1
- package/dist/forms-numeric-B_jraJaQ.js +906 -0
- package/dist/forms-numeric-B_jraJaQ.js.map +1 -0
- package/dist/{header-2ycNqGOR.js → header-CGXuhcRm.js} +164 -161
- package/dist/header-CGXuhcRm.js.map +1 -0
- package/dist/{hooks-DQ5SPwZw.js → hooks-Dkz0K2WT.js} +2 -2
- package/dist/{hooks-DQ5SPwZw.js.map → hooks-Dkz0K2WT.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-DYKIwvOV.js +55 -0
- package/dist/icon-badge-DYKIwvOV.js.map +1 -0
- package/dist/index.js +7 -7
- package/dist/input-CZw8iU99.js +21 -0
- package/dist/input-CZw8iU99.js.map +1 -0
- package/dist/input-DQdEd0YD.js +263 -0
- package/dist/input-DQdEd0YD.js.map +1 -0
- package/dist/interaction-recipes-XR9ZpVYL.js +25 -0
- package/dist/interaction-recipes-XR9ZpVYL.js.map +1 -0
- package/dist/item-K5_ghvze.js +275 -0
- package/dist/item-K5_ghvze.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 +72 -0
- package/dist/lib/editable-text-recipe.d.ts +4 -4
- package/dist/lib/field-affordance-recipes.d.ts +8 -3
- 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 +40 -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/theme-mode-css.d.ts +7 -0
- package/dist/lib/token-merge.generated.d.ts +9 -6
- package/dist/lib/tone-recipes.d.ts +87 -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 +11 -2
- package/dist/lib/utils.js +1 -1
- package/dist/media-gallery-3zIVLMWH.js +203 -0
- package/dist/media-gallery-3zIVLMWH.js.map +1 -0
- package/dist/mentions-utuUvH1K.js +570 -0
- package/dist/mentions-utuUvH1K.js.map +1 -0
- package/dist/{message-YfFmbXNP.js → message-DZ_ruyUV.js} +7 -6
- package/dist/message-DZ_ruyUV.js.map +1 -0
- package/dist/metadata-list-8N16ZMW_.js +405 -0
- package/dist/metadata-list-8N16ZMW_.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-Bnotn4AQ.js +145 -0
- package/dist/navigation-Bnotn4AQ.js.map +1 -0
- package/dist/navigation-BzhHI3lo.js +269 -0
- package/dist/navigation-BzhHI3lo.js.map +1 -0
- package/dist/{navigation-row-recipes-DlU-4QYO.js → navigation-row-recipes-BFLCk_Aq.js} +2 -2
- package/dist/{navigation-row-recipes-DlU-4QYO.js.map → navigation-row-recipes-BFLCk_Aq.js.map} +1 -1
- package/dist/{number-CKRBYmZK.js → number-DbV1Dija.js} +36 -34
- package/dist/{number-CKRBYmZK.js.map → number-DbV1Dija.js.map} +1 -1
- package/dist/overflow-tab-bar-CWY7Nogn.js +282 -0
- package/dist/overflow-tab-bar-CWY7Nogn.js.map +1 -0
- package/dist/overlay.recipes-8GHqmlb4.js +6 -0
- package/dist/overlay.recipes-8GHqmlb4.js.map +1 -0
- package/dist/overlays-DNWmZrJ4.js +1001 -0
- package/dist/overlays-DNWmZrJ4.js.map +1 -0
- package/dist/page-Bgl1F560.js +224 -0
- package/dist/page-Bgl1F560.js.map +1 -0
- package/dist/page-header-commands-DOb6WsfD.js +126 -0
- package/dist/page-header-commands-DOb6WsfD.js.map +1 -0
- package/dist/pagination-BL25hu2s.js +158 -0
- package/dist/pagination-BL25hu2s.js.map +1 -0
- package/dist/{popover-Dcv_9jxr.js → popover-7_m66eYW.js} +11 -10
- package/dist/popover-7_m66eYW.js.map +1 -0
- package/dist/popover-menu-B9WWygpa.js +100 -0
- package/dist/popover-menu-B9WWygpa.js.map +1 -0
- package/dist/{popover.recipes-wmbvL8Ah.js → popover.recipes-D3j8R8Yp.js} +18 -11
- package/dist/popover.recipes-D3j8R8Yp.js.map +1 -0
- package/dist/{primitives-BHrwQXFC.js → primitives-BFK08r9M.js} +45 -44
- package/dist/primitives-BFK08r9M.js.map +1 -0
- package/dist/primitives.js +4 -4
- package/dist/{progress-Br9WTFya.js → progress-B1VnCT0K.js} +9 -9
- package/dist/{progress-Br9WTFya.js.map → progress-B1VnCT0K.js.map} +1 -1
- package/dist/{receipt-CV89q1fs.js → receipt-BVSOH3Xo.js} +9 -6
- package/dist/{receipt-CV89q1fs.js.map → receipt-BVSOH3Xo.js.map} +1 -1
- package/dist/rich-text-GOUyKQ-s.js +78 -0
- package/dist/rich-text-GOUyKQ-s.js.map +1 -0
- package/dist/rich-text-editor-cRLC-eBK.js +1196 -0
- package/dist/rich-text-editor-cRLC-eBK.js.map +1 -0
- package/dist/rich-text-editor-toolbar-DfXg0-VC.js +94 -0
- package/dist/rich-text-editor-toolbar-DfXg0-VC.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-DcI-M1UT.js +48 -0
- package/dist/scroll-area-DcI-M1UT.js.map +1 -0
- package/dist/{separator-Do5GWDYi.js → separator-BDV-Y648.js} +3 -3
- package/dist/{separator-Do5GWDYi.js.map → separator-BDV-Y648.js.map} +1 -1
- package/dist/{separator-BMEvwnSX.js → separator-Bom7NsGO.js} +2 -2
- package/dist/{separator-BMEvwnSX.js.map → separator-Bom7NsGO.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-ybnjVwbd.js +171 -0
- package/dist/settings-ybnjVwbd.js.map +1 -0
- package/dist/sheet-CGpB3omz.js +211 -0
- package/dist/sheet-CGpB3omz.js.map +1 -0
- package/dist/{sidebar-Cb8WzOvE.js → sidebar-A0ElHINE.js} +17 -16
- package/dist/sidebar-A0ElHINE.js.map +1 -0
- package/dist/{sidebar-Crc9M9JV.js → sidebar-CPx_7YBa.js} +205 -203
- package/dist/sidebar-CPx_7YBa.js.map +1 -0
- package/dist/{skeleton-DVMXr15h.js → skeleton-Byjnt7qr.js} +9 -9
- package/dist/{skeleton-DVMXr15h.js.map → skeleton-Byjnt7qr.js.map} +1 -1
- package/dist/smart-card-DiC5aac3.js +604 -0
- package/dist/smart-card-DiC5aac3.js.map +1 -0
- package/dist/{structure-hzCW-XsV.js → structure-BmisBK-3.js} +2 -2
- package/dist/{structure-hzCW-XsV.js.map → structure-BmisBK-3.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-BweFy_P9.js +1530 -0
- package/dist/table-BweFy_P9.js.map +1 -0
- package/dist/table-DsfzoUia.js +175 -0
- package/dist/table-DsfzoUia.js.map +1 -0
- package/dist/tabs-CDocW5D1.js +191 -0
- package/dist/tabs-CDocW5D1.js.map +1 -0
- package/dist/text-inputs-f9Ia-aCi.js +353 -0
- package/dist/text-inputs-f9Ia-aCi.js.map +1 -0
- package/dist/theme-mode-css-BB-_RYab.js +14 -0
- package/dist/theme-mode-css-BB-_RYab.js.map +1 -0
- package/dist/theme-scope-BJ6eE2xt.js +50 -0
- package/dist/theme-scope-BJ6eE2xt.js.map +1 -0
- package/dist/theme.css +285 -228
- package/dist/themes/green.css +16 -12
- package/dist/timelines-CwM_9IhD.js +457 -0
- package/dist/timelines-CwM_9IhD.js.map +1 -0
- package/dist/tone-recipes-BPsRAvhu.js +73 -0
- package/dist/tone-recipes-BPsRAvhu.js.map +1 -0
- package/dist/tooltip-yiRJUFjp.js +111 -0
- package/dist/tooltip-yiRJUFjp.js.map +1 -0
- package/dist/{tree-BotPlyiD.js → tree-WnKQzwbq.js} +69 -67
- package/dist/tree-WnKQzwbq.js.map +1 -0
- package/dist/typography/rich-text.js +1 -1
- package/dist/typography-UTnveOEy.js +117 -0
- package/dist/typography-UTnveOEy.js.map +1 -0
- package/dist/typography.js +2 -2
- package/dist/{ui-provider-D2_TeLqw.js → ui-provider-C_U0Xma4.js} +13 -5
- package/dist/ui-provider-C_U0Xma4.js.map +1 -0
- package/dist/ui-provider.js +3 -3
- package/dist/{upload-B0WHW7ak.js → upload-CXyxmQBP.js} +210 -209
- package/dist/upload-CXyxmQBP.js.map +1 -0
- package/dist/{upload-queue-BHZ_wBfd.js → upload-queue-Boscubn9.js} +111 -111
- package/dist/upload-queue-Boscubn9.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-BhO5eqkX.js} +45 -29
- package/dist/usage-card-BhO5eqkX.js.map +1 -0
- package/dist/{utils-Cospvlj1.js → utils-BRhFDwuU.js} +114 -67
- package/dist/utils-BRhFDwuU.js.map +1 -0
- package/dist/value-inputs-DXPDjvBU.js +963 -0
- package/dist/value-inputs-DXPDjvBU.js.map +1 -0
- package/dist/{value-typography-Deb3yQZg.js → value-typography-BP8OG6h5.js} +2 -2
- package/dist/{value-typography-Deb3yQZg.js.map → value-typography-BP8OG6h5.js.map} +1 -1
- package/dist/workspace-Cdrg7k9f.js +408 -0
- package/dist/workspace-Cdrg7k9f.js.map +1 -0
- package/docs/consumer-skill/SKILL.md +21 -22
- 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 +58 -13
- package/docs/consumer-skill/references/design-contract.md +12 -3
- package/docs/consumer-skill/references/installation.md +11 -1
- package/docs/consumer-skill/references/integration.md +4 -3
- package/docs/consumer-skill/references/public-api.json +956 -453
- package/docs/consumer-skill/references/review.md +32 -5
- package/docs/consumer-skill/references/theming.md +78 -9
- package/docs/consumer-skill/references/tokens.json +1 -1
- package/docs/consumer-skill/references/workflows.md +54 -10
- package/docs/consumer-skill/scripts/composition-policy.mjs +42 -11
- package/docs/consumer-skill/scripts/surface-policy.mjs +150 -5
- package/package.json +17 -5
- package/dist/accordion-CQXVcd7Q.js +0 -205
- 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 +0 -68
- package/dist/affordance-geometry.generated-CCIXb2A1.js.map +0 -1
- package/dist/ai-artifact-2PQ2fItc.js +0 -1112
- 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 +0 -66
- package/dist/cards-QoJ4syG9.js.map +0 -1
- package/dist/chart-DwYRKKc-.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 +0 -272
- package/dist/combobox-6dvVny2q.js.map +0 -1
- package/dist/combobox-CB7039j7.js +0 -865
- 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/date-pickers-CnFCb0n2.js +0 -174
- package/dist/date-pickers-CnFCb0n2.js.map +0 -1
- package/dist/display-DrdvPwF0.js +0 -343
- package/dist/display-DrdvPwF0.js.map +0 -1
- package/dist/dropdown-menu-CURh59jb.js +0 -193
- package/dist/dropdown-menu-CURh59jb.js.map +0 -1
- package/dist/editable-text-recipe-Bkm6wKHp.js +0 -10
- package/dist/editable-text-recipe-Bkm6wKHp.js.map +0 -1
- package/dist/feedback-C7nR0UtT.js +0 -232
- package/dist/feedback-C7nR0UtT.js.map +0 -1
- package/dist/field-affordance-recipes-CkOCdE2y.js +0 -46
- 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-field-VZRULhUK.js.map +0 -1
- package/dist/form-sizing-uWP4lzVh.js.map +0 -1
- package/dist/forms-numeric-D3CO60IF.js +0 -905
- 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-BoLm9Hks.js +0 -20
- package/dist/input-BoLm9Hks.js.map +0 -1
- package/dist/input-DhQdBnV3.js +0 -255
- package/dist/input-DhQdBnV3.js.map +0 -1
- package/dist/item-xzh8Df65.js +0 -264
- 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/message-YfFmbXNP.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/pagination-Cm0jqa3I.js +0 -149
- package/dist/pagination-Cm0jqa3I.js.map +0 -1
- package/dist/popover-Dcv_9jxr.js.map +0 -1
- package/dist/popover-menu-DnRFKnHP.js +0 -99
- package/dist/popover-menu-DnRFKnHP.js.map +0 -1
- package/dist/popover.recipes-wmbvL8Ah.js.map +0 -1
- package/dist/primitives-BHrwQXFC.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/spinner-CmTAbEp0.js +0 -80
- package/dist/spinner-CmTAbEp0.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 +0 -162
- 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 +0 -189
- package/dist/tabs-Dk8E_knt.js.map +0 -1
- package/dist/text-inputs-BFpku0Qd.js +0 -331
- package/dist/text-inputs-BFpku0Qd.js.map +0 -1
- package/dist/theme-scope-kStaAer0.js +0 -39
- package/dist/theme-scope-kStaAer0.js.map +0 -1
- package/dist/timelines-CxuAFIc2.js +0 -439
- 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/usage-card-U0YBLTNT.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,604 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { i as e, m as t, s as n, v as r } from "./ui-provider-C_U0Xma4.js";
|
|
3
|
+
import { useStrings as i } from "./lib/strings.js";
|
|
4
|
+
import { t as a } from "./utils-BRhFDwuU.js";
|
|
5
|
+
import { n as o } from "./buttons-DPZekJFu.js";
|
|
6
|
+
import { c as s, n as c } from "./typography-UTnveOEy.js";
|
|
7
|
+
import { n as l } from "./text.styles-g4He6UIW.js";
|
|
8
|
+
import { t as ee } from "./motion-recipes-ChBg4HBq.js";
|
|
9
|
+
import { i as u, n as te, t as ne } from "./tooltip-yiRJUFjp.js";
|
|
10
|
+
import { n as d } from "./structure.recipes-EPz60cU8.js";
|
|
11
|
+
import { t as f } from "./structure-BmisBK-3.js";
|
|
12
|
+
import { t as p } from "./icon-size-B6PVwjbC.js";
|
|
13
|
+
import { i as m } from "./tone-recipes-BPsRAvhu.js";
|
|
14
|
+
import { a as h } from "./surface-recipes-BKRVW8Os.js";
|
|
15
|
+
import { n as g } from "./action-menu-CllU52Mm.js";
|
|
16
|
+
import { Fragment as _, forwardRef as v, isValidElement as y, useCallback as b, useId as x, useState as S } from "react";
|
|
17
|
+
import { jsx as C, jsxs as w } from "react/jsx-runtime";
|
|
18
|
+
import { ChevronDown as re, Info as T } from "lucide-react";
|
|
19
|
+
import { cva as E } from "class-variance-authority";
|
|
20
|
+
//#region src/components/base/feedback/alert.tsx
|
|
21
|
+
var D = E([
|
|
22
|
+
"alert--component box-border relative grid w-full grid-cols-[0_1fr] items-start gap-y-normal rounded-radius border p-surface text-start",
|
|
23
|
+
"has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-space-md",
|
|
24
|
+
"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",
|
|
25
|
+
"[&>svg]:row-span-2 [&>svg]:mt-[calc((1em*1.375-var(--icon))/2)] [&>svg]:shrink-0",
|
|
26
|
+
p.md
|
|
27
|
+
], {
|
|
28
|
+
variants: {
|
|
29
|
+
tone: {
|
|
30
|
+
neutral: "border-border bg-card text-card-foreground",
|
|
31
|
+
primary: `${m.primary.edge} ${m.primary.wash} text-card-foreground [&>svg]:text-primary-accent`,
|
|
32
|
+
secondary: "border-border bg-muted/50 text-card-foreground [&>svg]:text-secondary-foreground",
|
|
33
|
+
info: `${m.info.edge} ${m.info.wash} text-card-foreground [&>svg]:text-info`,
|
|
34
|
+
success: `${m.success.edge} ${m.success.wash} text-card-foreground [&>svg]:text-success`,
|
|
35
|
+
warning: `${m.warning.edge} ${m.warning.wash} text-card-foreground [&>svg]:text-warning-accent`,
|
|
36
|
+
destructive: `${m.destructive.edge} ${m.destructive.wash} text-card-foreground [&>svg]:text-destructive`
|
|
37
|
+
},
|
|
38
|
+
variant: {
|
|
39
|
+
default: "",
|
|
40
|
+
inverse: [
|
|
41
|
+
"border-foreground bg-foreground text-background",
|
|
42
|
+
"[&>svg]:text-background",
|
|
43
|
+
"[&_[data-slot=alert-title]_[data-typography=text]]:text-background",
|
|
44
|
+
"[&_[data-slot=alert-description]_[data-typography=text]]:text-background",
|
|
45
|
+
"[&_[data-slot=alert-metadata-item]]:bg-background/10",
|
|
46
|
+
"[&_[data-slot=alert-metadata-item]>svg]:text-background",
|
|
47
|
+
"[&_[data-slot=alert-metadata-label]_[data-typography=text]]:text-background",
|
|
48
|
+
"[&_[data-slot=alert-metadata-value]_[data-typography=text]]:text-background"
|
|
49
|
+
]
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
defaultVariants: {
|
|
53
|
+
tone: "neutral",
|
|
54
|
+
variant: "default"
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
function O(e) {
|
|
58
|
+
return typeof e == "string" || typeof e == "number" || typeof e == "bigint";
|
|
59
|
+
}
|
|
60
|
+
var k = v(function({ className: e, tone: n, variant: r, role: i = "alert", ...o }, s) {
|
|
61
|
+
let { defaultTextSize: c } = t();
|
|
62
|
+
return /* @__PURE__ */ C("div", {
|
|
63
|
+
ref: s,
|
|
64
|
+
"data-slot": "alert",
|
|
65
|
+
"data-tone": n ?? "neutral",
|
|
66
|
+
"data-variant": r ?? "default",
|
|
67
|
+
role: i,
|
|
68
|
+
className: a(l({
|
|
69
|
+
size: c,
|
|
70
|
+
type: "inherit"
|
|
71
|
+
}), D({
|
|
72
|
+
tone: n,
|
|
73
|
+
variant: r
|
|
74
|
+
}), e),
|
|
75
|
+
...o
|
|
76
|
+
});
|
|
77
|
+
});
|
|
78
|
+
k.displayName = "Alert";
|
|
79
|
+
var ie = v(function({ className: e, children: t, ...n }, r) {
|
|
80
|
+
return /* @__PURE__ */ C("div", {
|
|
81
|
+
ref: r,
|
|
82
|
+
"data-slot": "alert-title",
|
|
83
|
+
className: a("alert--title col-start-2 min-h-icon leading-snug", c, e),
|
|
84
|
+
...n,
|
|
85
|
+
children: O(t) ? /* @__PURE__ */ C(s, {
|
|
86
|
+
tag: "span",
|
|
87
|
+
type: "inherit",
|
|
88
|
+
weight: "semibold",
|
|
89
|
+
lineHeight: "snug",
|
|
90
|
+
children: t
|
|
91
|
+
}) : t
|
|
92
|
+
});
|
|
93
|
+
});
|
|
94
|
+
ie.displayName = "AlertTitle";
|
|
95
|
+
var A = v(function({ className: e, children: t, ...n }, r) {
|
|
96
|
+
return /* @__PURE__ */ C(f, {
|
|
97
|
+
ref: r,
|
|
98
|
+
"data-slot": "alert-description",
|
|
99
|
+
gap: "xs",
|
|
100
|
+
align: "start",
|
|
101
|
+
className: a("alert--description col-start-2 [&_p]:leading-relaxed", c, e),
|
|
102
|
+
...n,
|
|
103
|
+
children: O(t) ? /* @__PURE__ */ C(s, {
|
|
104
|
+
tag: "span",
|
|
105
|
+
type: "secondary",
|
|
106
|
+
children: t
|
|
107
|
+
}) : t
|
|
108
|
+
});
|
|
109
|
+
});
|
|
110
|
+
A.displayName = "AlertDescription";
|
|
111
|
+
var j = v(function({ className: e, ...t }, n) {
|
|
112
|
+
return /* @__PURE__ */ C("dl", {
|
|
113
|
+
ref: n,
|
|
114
|
+
"data-slot": "alert-metadata",
|
|
115
|
+
className: a("alert-metadata--component alert--metadata col-start-2 m-0 mt-space-xs flex min-w-0 flex-wrap items-center gap-x-space-md gap-y-space-xs", e),
|
|
116
|
+
...t
|
|
117
|
+
});
|
|
118
|
+
});
|
|
119
|
+
j.displayName = "AlertMetadata";
|
|
120
|
+
var M = v(function({ className: e, icon: t, label: n, value: r, numeric: i = !1, ...o }, c) {
|
|
121
|
+
return /* @__PURE__ */ w("div", {
|
|
122
|
+
ref: c,
|
|
123
|
+
"data-slot": "alert-metadata-item",
|
|
124
|
+
className: a("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),
|
|
125
|
+
...o,
|
|
126
|
+
children: [
|
|
127
|
+
t,
|
|
128
|
+
/* @__PURE__ */ C("dt", {
|
|
129
|
+
"data-slot": "alert-metadata-label",
|
|
130
|
+
className: "alert--metadata-label shrink-0",
|
|
131
|
+
children: O(n) ? /* @__PURE__ */ C(s, {
|
|
132
|
+
tag: "span",
|
|
133
|
+
size: "xs",
|
|
134
|
+
type: "secondary",
|
|
135
|
+
lineHeight: "none",
|
|
136
|
+
children: n
|
|
137
|
+
}) : n
|
|
138
|
+
}),
|
|
139
|
+
/* @__PURE__ */ C("dd", {
|
|
140
|
+
"data-slot": "alert-metadata-value",
|
|
141
|
+
className: "alert--metadata-value m-0 min-w-0",
|
|
142
|
+
children: O(r) ? /* @__PURE__ */ C(s, {
|
|
143
|
+
tag: "span",
|
|
144
|
+
type: "inherit",
|
|
145
|
+
size: "xs",
|
|
146
|
+
weight: "semibold",
|
|
147
|
+
lineHeight: "none",
|
|
148
|
+
className: a("break-words", i && "tabular-nums"),
|
|
149
|
+
children: r
|
|
150
|
+
}) : r
|
|
151
|
+
})
|
|
152
|
+
]
|
|
153
|
+
});
|
|
154
|
+
});
|
|
155
|
+
M.displayName = "AlertMetadataItem";
|
|
156
|
+
var N = v(function({ className: e, ...t }, n) {
|
|
157
|
+
return /* @__PURE__ */ C(f, {
|
|
158
|
+
ref: n,
|
|
159
|
+
direction: "horizontal",
|
|
160
|
+
align: "center",
|
|
161
|
+
justify: {
|
|
162
|
+
base: "start",
|
|
163
|
+
sm: "end"
|
|
164
|
+
},
|
|
165
|
+
wrap: !0,
|
|
166
|
+
gap: "sm",
|
|
167
|
+
"data-slot": "alert-action",
|
|
168
|
+
className: a("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),
|
|
169
|
+
...t
|
|
170
|
+
});
|
|
171
|
+
});
|
|
172
|
+
N.displayName = "AlertAction";
|
|
173
|
+
//#endregion
|
|
174
|
+
//#region src/components/ui/card.tsx
|
|
175
|
+
function ae({ className: e, size: t = "default", ...n }) {
|
|
176
|
+
return /* @__PURE__ */ C("div", {
|
|
177
|
+
"data-slot": "card",
|
|
178
|
+
"data-size": t,
|
|
179
|
+
className: a("card--primitive", e),
|
|
180
|
+
...n
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
function oe({ className: e, ...t }) {
|
|
184
|
+
return /* @__PURE__ */ C("div", {
|
|
185
|
+
"data-slot": "card-header",
|
|
186
|
+
className: a("card-header--primitive", e),
|
|
187
|
+
...t
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
function se({ className: e, ...t }) {
|
|
191
|
+
return /* @__PURE__ */ C("div", {
|
|
192
|
+
"data-slot": "card-title",
|
|
193
|
+
className: a("card-title--primitive", e),
|
|
194
|
+
...t
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
function ce({ className: e, ...t }) {
|
|
198
|
+
return /* @__PURE__ */ C("div", {
|
|
199
|
+
"data-slot": "card-content",
|
|
200
|
+
className: a("card-content--primitive", e),
|
|
201
|
+
...t
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
function P({ className: e, ...t }) {
|
|
205
|
+
return /* @__PURE__ */ C("div", {
|
|
206
|
+
"data-slot": "card-footer",
|
|
207
|
+
className: a("card-footer--primitive", e),
|
|
208
|
+
...t
|
|
209
|
+
});
|
|
210
|
+
}
|
|
211
|
+
//#endregion
|
|
212
|
+
//#region src/components/base/cards/card.recipes.ts
|
|
213
|
+
var F = {
|
|
214
|
+
none: "p-0",
|
|
215
|
+
sm: "p-surface-xs",
|
|
216
|
+
md: "p-surface",
|
|
217
|
+
lg: "p-surface-lg"
|
|
218
|
+
}, I = {
|
|
219
|
+
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",
|
|
220
|
+
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",
|
|
221
|
+
surfaceCard: `bg-card ${h.frame.shell} shadow-sm text-card-foreground`,
|
|
222
|
+
surfaceDefault: `bg-card ${h.frame.shell} shadow-sm text-card-foreground`,
|
|
223
|
+
surfaceFlat: "bg-transparent border-0 shadow-none text-inherit",
|
|
224
|
+
surfaceFramed: `bg-card ${h.frame.shell} shadow-sm ${h.frame.ring} text-card-foreground`,
|
|
225
|
+
surfaceRaised: `bg-card ${h.frame.shell} shadow-md text-card-foreground`,
|
|
226
|
+
surfaceSunken: `bg-muted ${h.frame.shell} text-foreground`,
|
|
227
|
+
header: "flex flex-col gap-normal px-surface box-border",
|
|
228
|
+
headerRow: "flex-row flex-wrap items-start justify-between gap-space-lg pb-0",
|
|
229
|
+
headerRowSingle: "items-center",
|
|
230
|
+
headerLeading: "min-w-0 max-w-full flex-1 basis-64",
|
|
231
|
+
headerLeadingSingle: "basis-36",
|
|
232
|
+
headerTrailing: "flex max-w-full flex-wrap shrink-0 items-center gap-space-md",
|
|
233
|
+
headerDivider: `${h.frame.header} [&.border-b]:!pb-surface`,
|
|
234
|
+
title: "min-w-0 leading-tight text-inherit",
|
|
235
|
+
titleSm: "text-sm",
|
|
236
|
+
titleMd: "text-base",
|
|
237
|
+
titleLg: "text-lg",
|
|
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
|
+
}, L = {
|
|
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
|
+
}, R = {
|
|
256
|
+
shell: I.shell,
|
|
257
|
+
headerX: "px-surface",
|
|
258
|
+
headerDividerY: I.headerDivider,
|
|
259
|
+
contentX: I.content,
|
|
260
|
+
contentY: "",
|
|
261
|
+
footerX: I.footer,
|
|
262
|
+
footerDividerY: I.footerDivider,
|
|
263
|
+
alertX: I.alert,
|
|
264
|
+
expandableBottom: "pb-surface",
|
|
265
|
+
alertOffsetWithHeader: I.alertWithHeader,
|
|
266
|
+
alertOffsetStandalone: ""
|
|
267
|
+
}, le = {
|
|
268
|
+
card: I.surfaceCard,
|
|
269
|
+
flat: I.surfaceFlat,
|
|
270
|
+
framed: I.surfaceFramed
|
|
271
|
+
};
|
|
272
|
+
//#endregion
|
|
273
|
+
//#region src/components/base/cards/partials/has-renderable-content.ts
|
|
274
|
+
function z(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(z) : !y(e) || e.type !== _ || z(e.props.children);
|
|
276
|
+
}
|
|
277
|
+
//#endregion
|
|
278
|
+
//#region src/components/base/cards/partials/card-primitives.tsx
|
|
279
|
+
var B = {
|
|
280
|
+
sm: I.titleSm,
|
|
281
|
+
md: I.titleMd,
|
|
282
|
+
lg: I.titleLg
|
|
283
|
+
}, V = {
|
|
284
|
+
sm: "sm",
|
|
285
|
+
md: "base",
|
|
286
|
+
lg: "lg"
|
|
287
|
+
};
|
|
288
|
+
function ue({ className: e, ...t }) {
|
|
289
|
+
return /* @__PURE__ */ C(ae, {
|
|
290
|
+
className: a(L.root, I.shell, e),
|
|
291
|
+
...t
|
|
292
|
+
});
|
|
293
|
+
}
|
|
294
|
+
function de({ className: e, textGap: t = "normal", padding: n, ...r }) {
|
|
295
|
+
return /* @__PURE__ */ C(oe, {
|
|
296
|
+
className: a(L.header, I.header, n !== void 0 && F[n], t === "dense" ? "gap-dense" : "gap-normal", e),
|
|
297
|
+
...r
|
|
298
|
+
});
|
|
299
|
+
}
|
|
300
|
+
function fe({ className: e, children: t, size: i, ...o }) {
|
|
301
|
+
let { defaultScale: c } = n(), l = r(i, c);
|
|
302
|
+
return z(t) ? typeof t != "string" && typeof t != "number" && typeof t != "bigint" ? /* @__PURE__ */ C(se, {
|
|
303
|
+
className: a(L.title, I.title, "font-medium", B[l], e),
|
|
304
|
+
...o,
|
|
305
|
+
children: t
|
|
306
|
+
}) : /* @__PURE__ */ C(s, {
|
|
307
|
+
"data-slot": "card-title",
|
|
308
|
+
tag: "div",
|
|
309
|
+
size: V[l],
|
|
310
|
+
weight: "semibold",
|
|
311
|
+
lineHeight: "tight",
|
|
312
|
+
className: a(L.title, I.title, e),
|
|
313
|
+
...o,
|
|
314
|
+
children: t
|
|
315
|
+
}) : null;
|
|
316
|
+
}
|
|
317
|
+
function pe({ className: e, children: t, ...n }) {
|
|
318
|
+
return z(t) ? /* @__PURE__ */ C(s, {
|
|
319
|
+
"data-slot": "card-description",
|
|
320
|
+
tag: "div",
|
|
321
|
+
type: "secondary",
|
|
322
|
+
className: a(L.description, e),
|
|
323
|
+
...n,
|
|
324
|
+
children: t
|
|
325
|
+
}) : null;
|
|
326
|
+
}
|
|
327
|
+
function me({ className: e, padding: t, ...n }) {
|
|
328
|
+
return /* @__PURE__ */ C(ce, {
|
|
329
|
+
className: a(L.content, I.content, t !== void 0 && F[t], e),
|
|
330
|
+
...n
|
|
331
|
+
});
|
|
332
|
+
}
|
|
333
|
+
function he({ className: e, padding: t, ...n }) {
|
|
334
|
+
return /* @__PURE__ */ C(P, {
|
|
335
|
+
className: a(L.footer, I.footer, t !== void 0 && F[t], e),
|
|
336
|
+
...n
|
|
337
|
+
});
|
|
338
|
+
}
|
|
339
|
+
//#endregion
|
|
340
|
+
//#region src/components/base/cards/partials/smart-card-alert.tsx
|
|
341
|
+
function ge({ alert: e, alertTone: t, hasHeader: n, className: r }) {
|
|
342
|
+
return /* @__PURE__ */ C("div", {
|
|
343
|
+
className: a(L.alert, R.alertX, r, n ? R.alertOffsetWithHeader : R.alertOffsetStandalone),
|
|
344
|
+
children: /* @__PURE__ */ C(k, {
|
|
345
|
+
tone: t,
|
|
346
|
+
children: /* @__PURE__ */ C(A, { children: e })
|
|
347
|
+
})
|
|
348
|
+
});
|
|
349
|
+
}
|
|
350
|
+
//#endregion
|
|
351
|
+
//#region src/components/base/display/surface-title.tsx
|
|
352
|
+
function _e({ title: e, suffix: t, size: n = "base", className: r, suffixClassName: i, dataSlot: o }) {
|
|
353
|
+
let c = typeof e == "string" || typeof e == "number" || typeof e == "bigint";
|
|
354
|
+
return /* @__PURE__ */ w(s, {
|
|
355
|
+
tag: "div",
|
|
356
|
+
type: "inherit",
|
|
357
|
+
size: n,
|
|
358
|
+
weight: c ? "semibold" : "medium",
|
|
359
|
+
lineHeight: "tight",
|
|
360
|
+
"data-slot": o,
|
|
361
|
+
className: a("surface-title--component flex min-w-0 flex-wrap items-center gap-space-md break-words", r),
|
|
362
|
+
children: [e != null && /* @__PURE__ */ C("span", {
|
|
363
|
+
className: "min-w-0 max-w-full",
|
|
364
|
+
...c ? {
|
|
365
|
+
role: "heading",
|
|
366
|
+
"aria-level": 2
|
|
367
|
+
} : {},
|
|
368
|
+
children: e
|
|
369
|
+
}), t != null && /* @__PURE__ */ C("div", {
|
|
370
|
+
className: a("surface-title--suffix inline-flex max-w-full flex-wrap items-center gap-space-md", i),
|
|
371
|
+
children: t
|
|
372
|
+
})]
|
|
373
|
+
});
|
|
374
|
+
}
|
|
375
|
+
//#endregion
|
|
376
|
+
//#region src/components/base/cards/partials/smart-card-actions-menu.tsx
|
|
377
|
+
function ve({ actions: e, actionsLabel: t }) {
|
|
378
|
+
let n = e.map((e, t) => ({
|
|
379
|
+
...e,
|
|
380
|
+
id: e.id ?? `card-action-${t}`
|
|
381
|
+
}));
|
|
382
|
+
return /* @__PURE__ */ C(g, {
|
|
383
|
+
actions: n,
|
|
384
|
+
srText: t,
|
|
385
|
+
align: "end",
|
|
386
|
+
closeOnSelect: !0,
|
|
387
|
+
buttonProps: { className: "card--actions-trigger" }
|
|
388
|
+
});
|
|
389
|
+
}
|
|
390
|
+
//#endregion
|
|
391
|
+
//#region src/components/base/cards/partials/smart-card-header-row.tsx
|
|
392
|
+
function ye({ tooltipLabel: e }) {
|
|
393
|
+
return /* @__PURE__ */ C(u, { render: (t) => {
|
|
394
|
+
let n = t;
|
|
395
|
+
return /* @__PURE__ */ C(o, {
|
|
396
|
+
...n,
|
|
397
|
+
type: "button",
|
|
398
|
+
tone: "secondary",
|
|
399
|
+
buttonStyle: "ghost",
|
|
400
|
+
size: "sm",
|
|
401
|
+
iconOnly: !0,
|
|
402
|
+
className: a("card--tooltip-trigger", "text-muted-foreground", n.className),
|
|
403
|
+
"aria-label": e,
|
|
404
|
+
children: /* @__PURE__ */ C(T, { className: "size-icon-md" })
|
|
405
|
+
});
|
|
406
|
+
} });
|
|
407
|
+
}
|
|
408
|
+
function be({ icon: e, title: t, titleSuffix: n, description: r, textGap: i = "normal", tooltip: o, tooltipLabel: s, headerStart: c, headerEnd: l, headerAction: ee, actions: u, actionsLabel: d, titleSize: p, className: m }) {
|
|
409
|
+
let h = Array.isArray(u) ? u : [], g = h.length > 0, _ = z(e), v = z(t), y = z(n), b = z(r), x = z(o), S = z(c), re = z(l), T = z(ee), E = _ || v || y || x, D = re || T || g;
|
|
410
|
+
return /* @__PURE__ */ w(de, {
|
|
411
|
+
className: a(I.headerRow, S && (i === "dense" ? "gap-y-dense" : "gap-y-normal"), !b && !S && I.headerRowSingle, R.headerX, m),
|
|
412
|
+
children: [
|
|
413
|
+
!!S && /* @__PURE__ */ C("div", {
|
|
414
|
+
className: "card--header-context min-w-0 max-w-full basis-full",
|
|
415
|
+
children: c
|
|
416
|
+
}),
|
|
417
|
+
/* @__PURE__ */ w(f, {
|
|
418
|
+
gap: i,
|
|
419
|
+
className: a("card--header-start", I.headerLeading, !b && !S && I.headerLeadingSingle),
|
|
420
|
+
children: [!!E && /* @__PURE__ */ w("div", {
|
|
421
|
+
className: "card--title-row flex min-w-0 items-start gap-space-sm",
|
|
422
|
+
children: [
|
|
423
|
+
!!_ && /* @__PURE__ */ C("span", {
|
|
424
|
+
className: "card--icon flex shrink-0 items-center pt-space-2xs text-muted-foreground [&_svg]:size-icon",
|
|
425
|
+
children: e
|
|
426
|
+
}),
|
|
427
|
+
/* @__PURE__ */ C(_e, {
|
|
428
|
+
dataSlot: "card-title",
|
|
429
|
+
title: t,
|
|
430
|
+
suffix: y ? n : void 0,
|
|
431
|
+
size: p === "md" ? "base" : p === "lg" ? "lg" : "sm",
|
|
432
|
+
className: "card--title flex-1",
|
|
433
|
+
suffixClassName: "card--title-suffix"
|
|
434
|
+
}),
|
|
435
|
+
!!x && /* @__PURE__ */ w(ne, { children: [/* @__PURE__ */ C(ye, { tooltipLabel: s }), /* @__PURE__ */ C(te, { children: o })] })
|
|
436
|
+
]
|
|
437
|
+
}), !!b && /* @__PURE__ */ C(pe, {
|
|
438
|
+
className: "text-start",
|
|
439
|
+
children: r
|
|
440
|
+
})]
|
|
441
|
+
}),
|
|
442
|
+
!!D && /* @__PURE__ */ w("div", {
|
|
443
|
+
className: a("card--header-end", I.headerTrailing),
|
|
444
|
+
children: [
|
|
445
|
+
!!re && l,
|
|
446
|
+
!!T && ee,
|
|
447
|
+
!!g && /* @__PURE__ */ C(ve, {
|
|
448
|
+
actions: h,
|
|
449
|
+
actionsLabel: d
|
|
450
|
+
})
|
|
451
|
+
]
|
|
452
|
+
})
|
|
453
|
+
]
|
|
454
|
+
});
|
|
455
|
+
}
|
|
456
|
+
//#endregion
|
|
457
|
+
//#region src/components/base/cards/smart-card.strings.ts
|
|
458
|
+
var xe = {
|
|
459
|
+
actionsLabel: "More actions",
|
|
460
|
+
tooltipLabel: "Card info",
|
|
461
|
+
expandLabel: "Expand card",
|
|
462
|
+
collapseLabel: "Collapse card"
|
|
463
|
+
}, H = v(function({ icon: t, title: c, titleSuffix: l, description: u, textGap: te = "normal", tooltip: ne, tooltipAriaLabel: p, footerText: m, alert: g, alertTone: _ = "neutral", surface: v, padding: y = "md", headerPlacement: T = "inside", gap: E, contentGap: D, titleSize: O, actions: k, actionsLabel: ie, headerAction: A, headerStart: j, headerEnd: M, contentTop: N, contentBottom: ae, footerSlot: oe, headerDivider: se, footerDivider: ce, expandable: P = !1, defaultExpanded: F = !1, expanded: I, onExpandedChange: B, children: V, className: de, headerClassName: fe, contentClassName: pe, footerClassName: _e, strings: ve, ...ye }, H) {
|
|
464
|
+
let { defaultSurface: Se, defaultHeaderDivider: Ce, defaultFooterDivider: we } = e(), { defaultScale: Te } = n(), Ee = r(O, Te), U = {
|
|
465
|
+
none: "px-0",
|
|
466
|
+
sm: "px-surface-xs",
|
|
467
|
+
md: "px-surface",
|
|
468
|
+
lg: "px-surface-lg"
|
|
469
|
+
}[y], De = {
|
|
470
|
+
none: "py-0",
|
|
471
|
+
sm: "py-surface-xs",
|
|
472
|
+
md: "py-surface",
|
|
473
|
+
lg: "py-surface-lg"
|
|
474
|
+
}[y], W = {
|
|
475
|
+
...R,
|
|
476
|
+
headerX: U,
|
|
477
|
+
contentX: U,
|
|
478
|
+
footerX: U,
|
|
479
|
+
headerDividerY: {
|
|
480
|
+
none: "!pb-0",
|
|
481
|
+
sm: "!pb-surface-xs",
|
|
482
|
+
md: "!pb-surface",
|
|
483
|
+
lg: "!pb-surface-lg"
|
|
484
|
+
}[y],
|
|
485
|
+
footerDividerY: {
|
|
486
|
+
none: "!pt-0",
|
|
487
|
+
sm: "!pt-surface-xs",
|
|
488
|
+
md: "!pt-surface",
|
|
489
|
+
lg: "!pt-surface-lg"
|
|
490
|
+
}[y]
|
|
491
|
+
}, G = T === "frame", Oe = Array.isArray(k) ? k : [], K = i(xe, ve), ke = ie ?? K.actionsLabel, q = P !== !1 && P !== void 0, Ae = typeof P == "object" && P?.collapsedMaxHeight !== void 0 ? P.collapsedMaxHeight : "12rem", je = typeof Ae == "number" ? `${Ae}px` : Ae, J = I !== void 0, Me = x(), [Ne, Pe] = S(F), Y = J ? I : Ne, Fe = b(() => {
|
|
492
|
+
let e = !Y;
|
|
493
|
+
J || Pe(e), B?.(e);
|
|
494
|
+
}, [
|
|
495
|
+
Y,
|
|
496
|
+
J,
|
|
497
|
+
B
|
|
498
|
+
]), Ie = (e) => {
|
|
499
|
+
if (!q || Y) return;
|
|
500
|
+
let t = e.currentTarget, n = e.target, r = t.getBoundingClientRect(), i = n.getBoundingClientRect();
|
|
501
|
+
t.scrollTop === 0 && i.top >= r.top && i.bottom <= r.bottom || (J || Pe(!0), B?.(!0), requestAnimationFrame(() => {
|
|
502
|
+
n.isConnected && n === n.ownerDocument.activeElement && n.scrollIntoView?.({
|
|
503
|
+
block: "nearest",
|
|
504
|
+
inline: "nearest"
|
|
505
|
+
});
|
|
506
|
+
}));
|
|
507
|
+
}, Le = z(t) || z(c) || z(u) || Oe.length > 0 || z(A) || z(j) || z(M), Re = z(g), X = z(m), Z = z(oe), ze = z(N), Be = z(ae), Ve = z(V), He = ze || Be || Ve || q, Ue = Re || He || X || Z, We = Le && (X || Z) && !Re && !He && !G, Ge = p && p.trim().length > 0 ? p : K.tooltipLabel, Ke = q ? { maxHeight: Y ? "" : je } : void 0, Q = v ?? Se ?? "framed", qe = Q !== "flat", Je = se ?? (qe && !G && (Ce ?? !0)), Ye = ce ?? (qe && (we ?? !0)), $ = We && (Je || Ye);
|
|
508
|
+
return /* @__PURE__ */ w(ue, {
|
|
509
|
+
...ye,
|
|
510
|
+
"data-header-placement": T,
|
|
511
|
+
ref: H,
|
|
512
|
+
"data-surface": Q,
|
|
513
|
+
className: a(le[Q], W.shell, De, d({ gap: E ?? "xl" }), $ && "gap-0", G && "rounded-radius bg-muted text-foreground p-surface-xs pt-0 gap-0 ring-0", Q === "flat" && !G && "overflow-visible", q && a("relative mb-space-xl !overflow-visible", W.expandableBottom), de),
|
|
514
|
+
children: [
|
|
515
|
+
!!Le && /* @__PURE__ */ C(be, {
|
|
516
|
+
icon: t,
|
|
517
|
+
title: c,
|
|
518
|
+
titleSuffix: l,
|
|
519
|
+
description: u,
|
|
520
|
+
textGap: te,
|
|
521
|
+
tooltip: ne,
|
|
522
|
+
tooltipLabel: Ge,
|
|
523
|
+
headerStart: j,
|
|
524
|
+
headerEnd: M,
|
|
525
|
+
headerAction: A,
|
|
526
|
+
actions: Oe,
|
|
527
|
+
actionsLabel: ke,
|
|
528
|
+
titleSize: Ee,
|
|
529
|
+
className: a(Je && !$ && a(h.frame.header, W.headerDividerY), $ && W.headerDividerY, W.headerX, G && "flex-row items-center min-h-action px-surface-xs py-space-2xs [&_.card--title-row]:items-center [&_.card--icon]:pt-0", fe)
|
|
530
|
+
}),
|
|
531
|
+
Ue && /* @__PURE__ */ w("div", {
|
|
532
|
+
className: G ? a("card--body-surface flex min-w-0 flex-col rounded-inner bg-card text-card-foreground", d({ gap: E ?? "xl" }), h.frame.shell, De) : "contents",
|
|
533
|
+
children: [
|
|
534
|
+
!!Re && /* @__PURE__ */ C(ge, {
|
|
535
|
+
alert: g,
|
|
536
|
+
alertTone: _,
|
|
537
|
+
hasHeader: Le,
|
|
538
|
+
className: U
|
|
539
|
+
}),
|
|
540
|
+
!!He && /* @__PURE__ */ w(me, {
|
|
541
|
+
id: q ? Me : void 0,
|
|
542
|
+
onFocusCapture: q ? Ie : void 0,
|
|
543
|
+
className: a(W.contentX, W.contentY, q && a("relative transition-[max-height] duration-500 ease-in-out motion-reduce:transition-none", Y ? "overflow-visible" : "overflow-hidden"), pe),
|
|
544
|
+
style: Ke,
|
|
545
|
+
children: [ze || Be ? /* @__PURE__ */ w(f, {
|
|
546
|
+
gap: D ?? "lg",
|
|
547
|
+
children: [
|
|
548
|
+
!!ze && N,
|
|
549
|
+
Ve && (D ? /* @__PURE__ */ C(f, {
|
|
550
|
+
gap: D,
|
|
551
|
+
children: V
|
|
552
|
+
}) : /* @__PURE__ */ C("div", {
|
|
553
|
+
className: "min-w-0",
|
|
554
|
+
children: V
|
|
555
|
+
})),
|
|
556
|
+
!!Be && ae
|
|
557
|
+
]
|
|
558
|
+
}) : D ? /* @__PURE__ */ C(f, {
|
|
559
|
+
gap: D,
|
|
560
|
+
children: V
|
|
561
|
+
}) : V, !!q && !Y && /* @__PURE__ */ C("div", {
|
|
562
|
+
"aria-hidden": "true",
|
|
563
|
+
className: a(L.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")
|
|
564
|
+
})]
|
|
565
|
+
}),
|
|
566
|
+
(X || Z) && /* @__PURE__ */ w(he, {
|
|
567
|
+
className: a(W.footerX, Z ? "flex-col items-stretch gap-space-md" : "justify-end", (Ye || $) && a(h.frame.footer, W.footerDividerY), _e),
|
|
568
|
+
children: [X && (typeof m == "string" || typeof m == "number" || typeof m == "bigint" ? /* @__PURE__ */ C(s, {
|
|
569
|
+
tag: "span",
|
|
570
|
+
size: "xs",
|
|
571
|
+
type: "secondary",
|
|
572
|
+
children: m
|
|
573
|
+
}) : m), Z && oe]
|
|
574
|
+
})
|
|
575
|
+
]
|
|
576
|
+
}),
|
|
577
|
+
!!q && /* @__PURE__ */ C("div", {
|
|
578
|
+
className: a(L.expandToggle, "absolute bottom-0 left-1/2 z-10 -translate-x-1/2 translate-y-1/2"),
|
|
579
|
+
children: /* @__PURE__ */ C(o, {
|
|
580
|
+
type: "button",
|
|
581
|
+
tone: "secondary",
|
|
582
|
+
buttonStyle: "outline",
|
|
583
|
+
size: "sm",
|
|
584
|
+
iconOnly: !0,
|
|
585
|
+
onClick: Fe,
|
|
586
|
+
"aria-expanded": Y,
|
|
587
|
+
"aria-controls": Me,
|
|
588
|
+
"aria-label": Y ? K.collapseLabel : K.expandLabel,
|
|
589
|
+
className: a(L.expandToggleButton, a(h.frame.shell, "bg-background text-foreground shadow-sm")),
|
|
590
|
+
children: /* @__PURE__ */ C(re, {
|
|
591
|
+
"aria-hidden": "true",
|
|
592
|
+
className: a(`size-icon ${ee.chevron}`, Y && "rotate-180")
|
|
593
|
+
})
|
|
594
|
+
})
|
|
595
|
+
})
|
|
596
|
+
]
|
|
597
|
+
});
|
|
598
|
+
});
|
|
599
|
+
H.displayName = "Card";
|
|
600
|
+
var Se = H;
|
|
601
|
+
//#endregion
|
|
602
|
+
export { M as _, me as a, de as c, z as d, le as f, j as g, A as h, _e as i, ue as l, N as m, Se as n, pe as o, k as p, xe as r, he as s, H as t, fe as u, ie as v };
|
|
603
|
+
|
|
604
|
+
//# sourceMappingURL=smart-card-DiC5aac3.js.map
|