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
|
@@ -1,752 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { _ as e, p as t, s as n } from "./ui-provider-D2_TeLqw.js";
|
|
3
|
-
import { r } from "./theme-scope-kStaAer0.js";
|
|
4
|
-
import { useStrings as i } from "./lib/strings.js";
|
|
5
|
-
import { t as a } from "./utils-Cospvlj1.js";
|
|
6
|
-
import { i as o, s } from "./typography-CAr3dQhX.js";
|
|
7
|
-
import { a as c } from "./text.styles-g4He6UIW.js";
|
|
8
|
-
import { t as l } from "./anchored-positioning-DPnKTvNs.js";
|
|
9
|
-
import { t as u } from "./motion-recipes-B6jKXEcN.js";
|
|
10
|
-
import { t as d } from "./structure-hzCW-XsV.js";
|
|
11
|
-
import { n as f } from "./surface-recipes-DOdoBXGm.js";
|
|
12
|
-
import { n as p, r as m, t as h } from "./popover.recipes-wmbvL8Ah.js";
|
|
13
|
-
import { n as g, t as _ } from "./collection-content-Ys-OZOkY.js";
|
|
14
|
-
import { t as v } from "./field-state-recipes-C-MFBX_8.js";
|
|
15
|
-
import { n as y } from "./field-affordance-recipes-CkOCdE2y.js";
|
|
16
|
-
import { d as b, f as x, g as S, o as C, u as w } from "./form-sizing-uWP4lzVh.js";
|
|
17
|
-
import { t as T } from "./checkbox-B7ygNTYp.js";
|
|
18
|
-
import * as E from "react";
|
|
19
|
-
import { forwardRef as D, memo as O, useCallback as k, useId as A, useMemo as j, useState as M } from "react";
|
|
20
|
-
import { jsx as N, jsxs as P } from "react/jsx-runtime";
|
|
21
|
-
import { CheckIcon as F, ChevronDownIcon as I, ChevronUpIcon as L, CircleCheck as R } from "lucide-react";
|
|
22
|
-
import { Select as z } from "@base-ui/react/select";
|
|
23
|
-
import { Switch as B } from "@base-ui/react/switch";
|
|
24
|
-
import { Radio as V } from "@base-ui/react/radio";
|
|
25
|
-
import { RadioGroup as H } from "@base-ui/react/radio-group";
|
|
26
|
-
//#region src/components/ui/select.tsx
|
|
27
|
-
var ee = z.Root;
|
|
28
|
-
function te({ className: e, ...t }) {
|
|
29
|
-
return /* @__PURE__ */ N(z.Group, {
|
|
30
|
-
"data-slot": "select-group",
|
|
31
|
-
className: a("scroll-my-1", e),
|
|
32
|
-
...t
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
function ne({ className: e, ...t }) {
|
|
36
|
-
return /* @__PURE__ */ N(z.Value, {
|
|
37
|
-
"data-slot": "select-value",
|
|
38
|
-
className: a("flex flex-1 text-start", e),
|
|
39
|
-
...t
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
function U({ className: e, size: t = "default", iconClassName: n, children: r, ...i }) {
|
|
43
|
-
return /* @__PURE__ */ P(z.Trigger, {
|
|
44
|
-
"data-slot": "select-trigger",
|
|
45
|
-
"data-size": t,
|
|
46
|
-
className: a("box-border flex w-fit items-center justify-between gap-space-sm whitespace-nowrap rounded-inner border border-input bg-transparent px-control py-space-xs font-sans text-sm text-foreground shadow-none outline-none transition-[color,box-shadow]", "data-[placeholder]:text-muted-foreground data-[size=default]:h-control data-[size=sm]:h-control-sm", v.focus, v.invalid, "disabled:cursor-not-allowed disabled:opacity-50 data-disabled:cursor-not-allowed data-disabled:opacity-50", "*:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-space-sm [&_svg:not([class*='size-'])]:size-icon [&_svg]:pointer-events-none [&_svg]:shrink-0", e),
|
|
47
|
-
...i,
|
|
48
|
-
children: [r, /* @__PURE__ */ N(z.Icon, { render: /* @__PURE__ */ N(I, {
|
|
49
|
-
"aria-hidden": "true",
|
|
50
|
-
className: a("pointer-events-none shrink-0 text-muted-foreground", y.icon[t === "sm" ? "sm" : "md"], n)
|
|
51
|
-
}) })]
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
function W({ className: e, container: t, children: n, side: i = "bottom", sideOffset: o = 4, align: s = "center", alignOffset: c = 0, alignItemWithTrigger: d = !0, positionMethod: p = l, ...m }) {
|
|
55
|
-
let h = r(t);
|
|
56
|
-
return /* @__PURE__ */ N(z.Portal, {
|
|
57
|
-
container: h,
|
|
58
|
-
children: /* @__PURE__ */ N(z.Positioner, {
|
|
59
|
-
positionMethod: p,
|
|
60
|
-
side: i,
|
|
61
|
-
sideOffset: o,
|
|
62
|
-
align: s,
|
|
63
|
-
alignOffset: c,
|
|
64
|
-
alignItemWithTrigger: d,
|
|
65
|
-
className: "isolate z-50",
|
|
66
|
-
children: /* @__PURE__ */ P(z.Popup, {
|
|
67
|
-
"data-slot": "select-content",
|
|
68
|
-
"data-align-trigger": d,
|
|
69
|
-
className: a(u.popup, "data-[align-trigger=true]:transition-none data-[align-trigger=true]:duration-0 data-[align-trigger=true]:scale-100 data-[align-trigger=true]:translate-none data-[align-trigger=true]:opacity-100", "relative isolate z-50 max-h-(--available-height) min-w-(--anchor-width) origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-radius bg-popover text-popover-foreground shadow-md", f.anchored.shell, e),
|
|
70
|
-
...m,
|
|
71
|
-
children: [
|
|
72
|
-
/* @__PURE__ */ N(ie, {}),
|
|
73
|
-
/* @__PURE__ */ N(z.List, { children: n }),
|
|
74
|
-
/* @__PURE__ */ N(ae, {})
|
|
75
|
-
]
|
|
76
|
-
})
|
|
77
|
-
})
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
function G({ className: e, ...t }) {
|
|
81
|
-
return /* @__PURE__ */ N(z.GroupLabel, {
|
|
82
|
-
"data-slot": "select-label",
|
|
83
|
-
className: a("px-row-x py-row-y-sm text-xs font-medium text-muted-foreground", e),
|
|
84
|
-
...t
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
function K({ className: e, children: t, ...n }) {
|
|
88
|
-
return /* @__PURE__ */ P(z.Item, {
|
|
89
|
-
"data-slot": "select-item",
|
|
90
|
-
className: a("relative flex w-full cursor-default items-center outline-hidden select-none [&_svg]:pointer-events-none [&_svg]:shrink-0", e),
|
|
91
|
-
...n,
|
|
92
|
-
children: [/* @__PURE__ */ N(z.ItemText, {
|
|
93
|
-
className: "flex min-w-0 flex-1 gap-space-sm",
|
|
94
|
-
children: t
|
|
95
|
-
}), /* @__PURE__ */ N(z.ItemIndicator, {
|
|
96
|
-
render: /* @__PURE__ */ N("span", { className: "pointer-events-none flex shrink-0 items-center justify-center" }),
|
|
97
|
-
children: /* @__PURE__ */ N(F, { className: "pointer-events-none" })
|
|
98
|
-
})]
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
function re({ className: e, ...t }) {
|
|
102
|
-
return /* @__PURE__ */ N(z.Separator, {
|
|
103
|
-
"data-slot": "select-separator",
|
|
104
|
-
className: a("pointer-events-none my-space-xs h-px", f.anchored.separator, e),
|
|
105
|
-
...t
|
|
106
|
-
});
|
|
107
|
-
}
|
|
108
|
-
function ie({ className: e, ...t }) {
|
|
109
|
-
return /* @__PURE__ */ N(z.ScrollUpArrow, {
|
|
110
|
-
"data-slot": "select-scroll-up-button",
|
|
111
|
-
className: a("bg-popover z-10 flex cursor-default items-center justify-center py-space-xs [&_svg:not([class*='size-'])]:size-icon top-0 w-full", e),
|
|
112
|
-
...t,
|
|
113
|
-
children: /* @__PURE__ */ N(L, {})
|
|
114
|
-
});
|
|
115
|
-
}
|
|
116
|
-
function ae({ className: e, ...t }) {
|
|
117
|
-
return /* @__PURE__ */ N(z.ScrollDownArrow, {
|
|
118
|
-
"data-slot": "select-scroll-down-button",
|
|
119
|
-
className: a("bg-popover z-10 flex cursor-default items-center justify-center py-space-xs [&_svg:not([class*='size-'])]:size-icon bottom-0 w-full", e),
|
|
120
|
-
...t,
|
|
121
|
-
children: /* @__PURE__ */ N(I, {})
|
|
122
|
-
});
|
|
123
|
-
}
|
|
124
|
-
//#endregion
|
|
125
|
-
//#region src/components/base/choice-inputs/select-popup.tsx
|
|
126
|
-
var q = {
|
|
127
|
-
content: "select-popup--component",
|
|
128
|
-
group: "select-popup--group",
|
|
129
|
-
item: "select-popup--item",
|
|
130
|
-
label: "select-popup--label",
|
|
131
|
-
separator: "select-popup--separator"
|
|
132
|
-
}, J = {
|
|
133
|
-
sm: "[&_svg:not([class*='size-'])]:size-icon-sm",
|
|
134
|
-
md: "[&_svg:not([class*='size-'])]:size-icon",
|
|
135
|
-
lg: "[&_svg:not([class*='size-'])]:size-icon-lg"
|
|
136
|
-
};
|
|
137
|
-
function Y(e) {
|
|
138
|
-
return typeof e == "string" || typeof e == "number" || typeof e == "bigint";
|
|
139
|
-
}
|
|
140
|
-
function oe({ className: e, align: t = "start", alignItemWithTrigger: n = !1, ...r }) {
|
|
141
|
-
return /* @__PURE__ */ N(W, {
|
|
142
|
-
align: t,
|
|
143
|
-
alignItemWithTrigger: n,
|
|
144
|
-
className: a(q.content, m.surface, m.menu, "w-max min-w-(--anchor-width) max-w-(--available-width)", e),
|
|
145
|
-
...r
|
|
146
|
-
});
|
|
147
|
-
}
|
|
148
|
-
function se({ className: e, ...t }) {
|
|
149
|
-
return /* @__PURE__ */ N(te, {
|
|
150
|
-
className: a(q.group, "p-0", e),
|
|
151
|
-
...t
|
|
152
|
-
});
|
|
153
|
-
}
|
|
154
|
-
function ce({ children: e, className: n, size: r = "md", density: i = "default", ...o }) {
|
|
155
|
-
let { defaultTextSize: s } = t();
|
|
156
|
-
return /* @__PURE__ */ N(K, {
|
|
157
|
-
className: a(q.item, p(i), h.highlighted, h.disabled, J[r], c[s ?? "sm"], n),
|
|
158
|
-
...o,
|
|
159
|
-
children: Y(e) ? /* @__PURE__ */ N(g, { children: e }) : e
|
|
160
|
-
});
|
|
161
|
-
}
|
|
162
|
-
var le = {
|
|
163
|
-
sm: "text-xs",
|
|
164
|
-
md: "text-xs",
|
|
165
|
-
lg: "text-sm"
|
|
166
|
-
};
|
|
167
|
-
function ue({ children: e, className: t, size: n = "md", ...r }) {
|
|
168
|
-
return /* @__PURE__ */ N(G, {
|
|
169
|
-
className: a(q.label, "px-row-x py-row-y-sm font-medium text-muted-foreground", le[n], t),
|
|
170
|
-
...r,
|
|
171
|
-
children: Y(e) ? /* @__PURE__ */ N(s, {
|
|
172
|
-
tag: "span",
|
|
173
|
-
size: "inherit",
|
|
174
|
-
type: "inherit",
|
|
175
|
-
weight: "inherit",
|
|
176
|
-
lineHeight: "tight",
|
|
177
|
-
children: e
|
|
178
|
-
}) : e
|
|
179
|
-
});
|
|
180
|
-
}
|
|
181
|
-
function de({ className: e, ...t }) {
|
|
182
|
-
return /* @__PURE__ */ N(re, {
|
|
183
|
-
className: a(q.separator, m.separator, e),
|
|
184
|
-
...t
|
|
185
|
-
});
|
|
186
|
-
}
|
|
187
|
-
//#endregion
|
|
188
|
-
//#region src/components/base/choice-inputs/select.tsx
|
|
189
|
-
var fe = { placeholder: "Select an option" }, X = "__admin_ui_select_clear__", Z = "__admin_ui_select_option__:";
|
|
190
|
-
function pe(e) {
|
|
191
|
-
return e === "" ? X : `${Z}${e}`;
|
|
192
|
-
}
|
|
193
|
-
function me(e) {
|
|
194
|
-
return e === "" || e == null ? null : `${Z}${e}`;
|
|
195
|
-
}
|
|
196
|
-
function he(e) {
|
|
197
|
-
if (e !== null && e !== X && e.startsWith(Z)) return e.slice(27);
|
|
198
|
-
}
|
|
199
|
-
function ge(e) {
|
|
200
|
-
return typeof e == "string" || typeof e == "number" || typeof e == "bigint";
|
|
201
|
-
}
|
|
202
|
-
function _e(e, t) {
|
|
203
|
-
return ge(e) ? /* @__PURE__ */ N(s, {
|
|
204
|
-
tag: "span",
|
|
205
|
-
size: "inherit",
|
|
206
|
-
lineHeight: "tight",
|
|
207
|
-
className: a("text-inherit", t),
|
|
208
|
-
children: e
|
|
209
|
-
}) : e;
|
|
210
|
-
}
|
|
211
|
-
function ve({ option: e, size: t }) {
|
|
212
|
-
return /* @__PURE__ */ N(_, {
|
|
213
|
-
label: e.label,
|
|
214
|
-
description: e.description,
|
|
215
|
-
leading: e.icon,
|
|
216
|
-
leadingDecorative: !0,
|
|
217
|
-
wrap: !0,
|
|
218
|
-
className: "select--option-content",
|
|
219
|
-
leadingClassName: a("select--option-icon", C[t]),
|
|
220
|
-
bodyClassName: "select--option-text text-start",
|
|
221
|
-
labelClassName: "select--option-label block",
|
|
222
|
-
descriptionClassName: "select--option-description line-clamp-2"
|
|
223
|
-
});
|
|
224
|
-
}
|
|
225
|
-
var ye = O(D(function(e, t) {
|
|
226
|
-
let r = Object.prototype.hasOwnProperty.call(e, "value"), { options: o, density: s, placeholder: c, strings: l, allowClear: u = !1, invalid: d, size: f, className: p, contentClassName: m, onValueChange: h, disabled: g, readOnly: _, defaultOpen: v, open: x, onOpenChange: C, onOpenChangeComplete: w, modal: T, highlightItemOnHover: E, name: D, form: O, autoComplete: A, inputRef: M, id: F, required: I, "aria-label": L, "aria-labelledby": R, "aria-describedby": z, "aria-invalid": B, onFocus: V, onBlur: H, value: te, defaultValue: W, renderOption: G, renderValue: K, ...re } = e, ie = i(fe, l), { defaultScale: ae } = n(), q = S(f, ae), J = c ?? ie.placeholder, Y = j(() => {
|
|
227
|
-
let e = o.map((e) => ({
|
|
228
|
-
option: e,
|
|
229
|
-
internalValue: pe(e.value)
|
|
230
|
-
}));
|
|
231
|
-
return u && !e.some(({ internalValue: e }) => e === X) && e.unshift({
|
|
232
|
-
internalValue: X,
|
|
233
|
-
option: {
|
|
234
|
-
value: "",
|
|
235
|
-
label: J
|
|
236
|
-
}
|
|
237
|
-
}), e;
|
|
238
|
-
}, [
|
|
239
|
-
u,
|
|
240
|
-
o,
|
|
241
|
-
J
|
|
242
|
-
]), le = j(() => new Map(Y.map((e) => [e.internalValue, e.option])), [Y]), ue = me(te), de = me(W), Z = k((e) => {
|
|
243
|
-
let t = he(e);
|
|
244
|
-
h?.(t);
|
|
245
|
-
}, [h]), ge = k((e) => he(e) ?? "", []);
|
|
246
|
-
return /* @__PURE__ */ P(ee, {
|
|
247
|
-
onValueChange: Z,
|
|
248
|
-
disabled: g,
|
|
249
|
-
readOnly: _,
|
|
250
|
-
defaultOpen: v,
|
|
251
|
-
open: x,
|
|
252
|
-
onOpenChange: C,
|
|
253
|
-
onOpenChangeComplete: w,
|
|
254
|
-
modal: T,
|
|
255
|
-
highlightItemOnHover: E,
|
|
256
|
-
name: D,
|
|
257
|
-
form: O,
|
|
258
|
-
autoComplete: A,
|
|
259
|
-
inputRef: M,
|
|
260
|
-
id: F,
|
|
261
|
-
required: I,
|
|
262
|
-
defaultValue: de,
|
|
263
|
-
itemToStringValue: ge,
|
|
264
|
-
...r ? { value: ue } : {},
|
|
265
|
-
children: [/* @__PURE__ */ N(U, {
|
|
266
|
-
ref: t,
|
|
267
|
-
"aria-label": L,
|
|
268
|
-
"aria-labelledby": R,
|
|
269
|
-
"aria-describedby": z,
|
|
270
|
-
"aria-invalid": d ? !0 : B,
|
|
271
|
-
onFocus: V,
|
|
272
|
-
onBlur: H,
|
|
273
|
-
iconClassName: y.icon[q],
|
|
274
|
-
className: a("select--component select--trigger", b(q), "data-[placeholder]:text-muted-foreground", p),
|
|
275
|
-
...re,
|
|
276
|
-
children: /* @__PURE__ */ N(ne, {
|
|
277
|
-
className: "select--value min-w-0",
|
|
278
|
-
children: (e) => {
|
|
279
|
-
let t = e && e !== X ? le.get(e) : void 0;
|
|
280
|
-
return _e(K ? K(t) : t?.label ?? J, "min-w-0 truncate");
|
|
281
|
-
}
|
|
282
|
-
})
|
|
283
|
-
}), /* @__PURE__ */ N(oe, {
|
|
284
|
-
className: a("select--content", m),
|
|
285
|
-
children: /* @__PURE__ */ N(se, {
|
|
286
|
-
className: "select--group",
|
|
287
|
-
children: Y.map(({ internalValue: e, option: t }) => {
|
|
288
|
-
let n = G?.(t);
|
|
289
|
-
return /* @__PURE__ */ N(ce, {
|
|
290
|
-
value: e,
|
|
291
|
-
label: t.label,
|
|
292
|
-
"aria-label": t.label,
|
|
293
|
-
disabled: t.disabled,
|
|
294
|
-
size: q,
|
|
295
|
-
density: s,
|
|
296
|
-
className: "select--item",
|
|
297
|
-
children: G ? _e(n, "select--option-custom") : /* @__PURE__ */ N(ve, {
|
|
298
|
-
option: t,
|
|
299
|
-
size: q
|
|
300
|
-
})
|
|
301
|
-
}, e);
|
|
302
|
-
})
|
|
303
|
-
})
|
|
304
|
-
})]
|
|
305
|
-
});
|
|
306
|
-
}));
|
|
307
|
-
ye.displayName = "Select";
|
|
308
|
-
//#endregion
|
|
309
|
-
//#region src/components/ui/switch.tsx
|
|
310
|
-
function be({ className: e, size: t = "default", ...n }) {
|
|
311
|
-
return /* @__PURE__ */ N(B.Root, {
|
|
312
|
-
"data-slot": "switch",
|
|
313
|
-
"data-size": t,
|
|
314
|
-
className: a("peer group/switch relative box-border inline-flex shrink-0 items-center rounded-full border border-transparent outline-none transition-[background-color,border-color,box-shadow]", "data-checked:bg-primary data-unchecked:bg-input", "data-[size=default]:h-5 data-[size=default]:w-9 data-[size=sm]:h-4 data-[size=sm]:w-7", "focus-visible:ring-2 focus-visible:ring-ring", "aria-invalid:ring-2 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:focus-visible:ring-destructive", "after:absolute after:-inset-x-3 after:-inset-y-2 data-disabled:cursor-not-allowed data-disabled:opacity-50", e),
|
|
315
|
-
...n,
|
|
316
|
-
children: /* @__PURE__ */ N(B.Thumb, {
|
|
317
|
-
"data-slot": "switch-thumb",
|
|
318
|
-
className: "bg-background rounded-full shadow-sm group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 group-data-[size=default]/switch:data-checked:translate-x-[16px] group-data-[size=sm]/switch:data-checked:translate-x-[12px] group-data-[size=default]/switch:data-unchecked:translate-x-0.5 group-data-[size=sm]/switch:data-unchecked:translate-x-0.5 pointer-events-none block ring-0 transition-transform motion-reduce:transition-none"
|
|
319
|
-
})
|
|
320
|
-
});
|
|
321
|
-
}
|
|
322
|
-
//#endregion
|
|
323
|
-
//#region src/components/base/choice-inputs/switch.tsx
|
|
324
|
-
var Q = D(function({ onValueChange: t, size: r, invalid: i, className: o, id: s, name: c, "aria-invalid": l, ...u }, d) {
|
|
325
|
-
let { defaultScale: f } = n(), p = e(r, f), m = i ? !0 : l, h = m !== void 0 && m !== !1 && m !== "false";
|
|
326
|
-
return /* @__PURE__ */ N(be, {
|
|
327
|
-
ref: d,
|
|
328
|
-
...u,
|
|
329
|
-
id: s,
|
|
330
|
-
name: c,
|
|
331
|
-
onCheckedChange: (e) => t?.(e),
|
|
332
|
-
size: p === "sm" ? "sm" : "default",
|
|
333
|
-
"aria-invalid": m,
|
|
334
|
-
className: a("switch--component", p === "lg" && "h-6! w-11! [&_[data-slot=switch-thumb]]:size-5! [&[data-checked]_[data-slot=switch-thumb]]:translate-x-[20px]!", h && "data-unchecked:border-destructive", o)
|
|
335
|
-
});
|
|
336
|
-
});
|
|
337
|
-
Q.displayName = "Switch";
|
|
338
|
-
//#endregion
|
|
339
|
-
//#region src/components/base/choice-inputs/choice-types.ts
|
|
340
|
-
var xe = {
|
|
341
|
-
sm: {
|
|
342
|
-
padding: "p-surface-xs",
|
|
343
|
-
iconBox: "size-avatar-sm",
|
|
344
|
-
iconSize: "size-icon-sm",
|
|
345
|
-
gap: "gap-space-sm"
|
|
346
|
-
},
|
|
347
|
-
md: {
|
|
348
|
-
padding: "p-surface",
|
|
349
|
-
iconBox: "size-avatar",
|
|
350
|
-
iconSize: "size-icon",
|
|
351
|
-
gap: "gap-space-md"
|
|
352
|
-
},
|
|
353
|
-
lg: {
|
|
354
|
-
padding: "p-surface-lg",
|
|
355
|
-
iconBox: "size-avatar-lg",
|
|
356
|
-
iconSize: "size-icon-lg",
|
|
357
|
-
gap: "gap-space-lg"
|
|
358
|
-
}
|
|
359
|
-
}, Se = {
|
|
360
|
-
sm: "h-control-sm px-control-sm text-pxs",
|
|
361
|
-
md: "h-control px-control text-sm",
|
|
362
|
-
lg: "h-control-lg px-control text-sm"
|
|
363
|
-
}, Ce = {
|
|
364
|
-
sm: "px-row-x py-row-y-sm",
|
|
365
|
-
md: "px-row-x py-row-y",
|
|
366
|
-
lg: "px-row-x py-row-y-lg"
|
|
367
|
-
}, $ = "hover:border-input focus-visible:ring-2 focus-visible:ring-ring", we = "absolute top-space-sm end-space-sm size-action-sm text-primary-foreground fill-primary stroke-primary-foreground", Te = "[&>*:not(svg)]:max-w-[calc(100%_-_var(--height-action)*8/9*var(--density-scale))]", Ee = E.forwardRef(function({ "aria-describedby": t, label: r, description: i, hint: c, icon: l, name: u, value: f, defaultValue: p, onValueChange: m, disabled: h = !1, invalid: g, className: _ }, y) {
|
|
368
|
-
let b = f !== void 0, [S, C] = M(p ?? !1), w = b ? f ?? !1 : S, { defaultScale: T } = n(), E = x[e(void 0, T)], D = A(), O = j(() => u ?? D, [u, D]), F = typeof i == "string" && i.trim() !== "", I = F ? `${O}-description` : void 0, L = k((e) => {
|
|
369
|
-
h || (b || C(e), m?.(e));
|
|
370
|
-
}, [
|
|
371
|
-
h,
|
|
372
|
-
b,
|
|
373
|
-
m
|
|
374
|
-
]), R = k((e) => {
|
|
375
|
-
e.target.closest("[role=\"switch\"]") || L(!w);
|
|
376
|
-
}, [w, L]);
|
|
377
|
-
return /* @__PURE__ */ P("div", {
|
|
378
|
-
ref: y,
|
|
379
|
-
"aria-invalid": g || void 0,
|
|
380
|
-
onClick: R,
|
|
381
|
-
className: a("switch-card--component", "group relative flex items-start gap-space-lg rounded-radius border bg-card p-surface transition-[background,border-color,box-shadow] duration-150", "border-border", w && "border-primary", v.invalid, !h && "cursor-pointer hover:border-input", h && "cursor-not-allowed opacity-50", _),
|
|
382
|
-
children: [
|
|
383
|
-
!!u && /* @__PURE__ */ N("input", {
|
|
384
|
-
type: "hidden",
|
|
385
|
-
name: u,
|
|
386
|
-
value: w ? "1" : "0",
|
|
387
|
-
"aria-hidden": "true"
|
|
388
|
-
}),
|
|
389
|
-
!!l && /* @__PURE__ */ N("span", {
|
|
390
|
-
className: a("switch-card--icon size-control", "inline-flex shrink-0 items-center justify-center rounded-inner bg-muted text-muted-foreground"),
|
|
391
|
-
children: /* @__PURE__ */ N(l, { className: "size-icon" })
|
|
392
|
-
}),
|
|
393
|
-
/* @__PURE__ */ P(d, {
|
|
394
|
-
gap: "dense",
|
|
395
|
-
className: "min-w-0 flex-1",
|
|
396
|
-
children: [
|
|
397
|
-
/* @__PURE__ */ N(o, {
|
|
398
|
-
htmlFor: O,
|
|
399
|
-
className: a("block", h ? "cursor-not-allowed" : "cursor-pointer"),
|
|
400
|
-
children: r
|
|
401
|
-
}),
|
|
402
|
-
!!F && /* @__PURE__ */ N(s, {
|
|
403
|
-
id: I,
|
|
404
|
-
size: "xs",
|
|
405
|
-
type: "secondary",
|
|
406
|
-
children: i
|
|
407
|
-
}),
|
|
408
|
-
!!c && /* @__PURE__ */ N(s, {
|
|
409
|
-
size: "xs",
|
|
410
|
-
type: "discrete",
|
|
411
|
-
children: c
|
|
412
|
-
})
|
|
413
|
-
]
|
|
414
|
-
}),
|
|
415
|
-
/* @__PURE__ */ N("div", {
|
|
416
|
-
className: a("switch-card--control flex h-lh shrink-0 items-center", E),
|
|
417
|
-
children: /* @__PURE__ */ N(Q, {
|
|
418
|
-
id: O,
|
|
419
|
-
checked: w,
|
|
420
|
-
onValueChange: L,
|
|
421
|
-
disabled: h,
|
|
422
|
-
invalid: g,
|
|
423
|
-
"aria-label": r,
|
|
424
|
-
"aria-describedby": [t, I].filter(Boolean).join(" ") || void 0
|
|
425
|
-
})
|
|
426
|
-
})
|
|
427
|
-
]
|
|
428
|
-
});
|
|
429
|
-
});
|
|
430
|
-
Ee.displayName = "SwitchCard";
|
|
431
|
-
//#endregion
|
|
432
|
-
//#region src/components/base/choice-inputs/toggle-field.tsx
|
|
433
|
-
function De(e) {
|
|
434
|
-
return typeof e == "string" || typeof e == "number" || typeof e == "bigint";
|
|
435
|
-
}
|
|
436
|
-
var Oe = D(function({ "aria-describedby": t, label: r, description: i, kind: c = "switch", value: l, defaultValue: u, onValueChange: f, disabled: p = !1, invalid: m = !1, name: h, className: g, controlPosition: _ = "trailing" }, v) {
|
|
437
|
-
let y = l !== void 0, [b, S] = M(u ?? !1), C = y ? l ?? !1 : b, { defaultScale: w } = n(), E = a("toggle-field--control flex h-lh shrink-0 items-center", x[e(void 0, w)]), D = A(), O = `${D}-label`, j = i != null && i !== !1, F = j ? `${D}-description` : void 0, I = k((e) => {
|
|
438
|
-
p || (y || S(e), f?.(e));
|
|
439
|
-
}, [
|
|
440
|
-
p,
|
|
441
|
-
y,
|
|
442
|
-
f
|
|
443
|
-
]), L = (e) => {
|
|
444
|
-
e.target.closest("[role=\"switch\"], [role=\"checkbox\"], input[type=\"checkbox\"]") || I(!C);
|
|
445
|
-
}, R = c === "switch" ? /* @__PURE__ */ N(Q, {
|
|
446
|
-
className: "after:inset-x-0",
|
|
447
|
-
id: D,
|
|
448
|
-
name: h,
|
|
449
|
-
checked: C,
|
|
450
|
-
onValueChange: I,
|
|
451
|
-
disabled: p,
|
|
452
|
-
invalid: m,
|
|
453
|
-
"aria-labelledby": O,
|
|
454
|
-
"aria-describedby": [t, F].filter(Boolean).join(" ") || void 0
|
|
455
|
-
}) : /* @__PURE__ */ N(T, {
|
|
456
|
-
id: D,
|
|
457
|
-
name: h,
|
|
458
|
-
checked: C,
|
|
459
|
-
onCheckedChange: (e) => I(e === !0),
|
|
460
|
-
disabled: p,
|
|
461
|
-
"aria-invalid": m || void 0,
|
|
462
|
-
"aria-labelledby": O,
|
|
463
|
-
"aria-describedby": [t, F].filter(Boolean).join(" ") || void 0
|
|
464
|
-
}), z = /* @__PURE__ */ P(d, {
|
|
465
|
-
gap: "dense",
|
|
466
|
-
className: "min-w-0 flex-1",
|
|
467
|
-
children: [/* @__PURE__ */ N("div", {
|
|
468
|
-
id: O,
|
|
469
|
-
children: De(r) ? /* @__PURE__ */ N(o, {
|
|
470
|
-
htmlFor: D,
|
|
471
|
-
className: a("block", p ? "cursor-not-allowed opacity-50" : "cursor-pointer"),
|
|
472
|
-
children: r
|
|
473
|
-
}) : r
|
|
474
|
-
}), j && /* @__PURE__ */ N("div", {
|
|
475
|
-
id: F,
|
|
476
|
-
children: De(i) ? /* @__PURE__ */ N(s, {
|
|
477
|
-
size: "xs",
|
|
478
|
-
type: "secondary",
|
|
479
|
-
children: i
|
|
480
|
-
}) : i
|
|
481
|
-
})]
|
|
482
|
-
});
|
|
483
|
-
return /* @__PURE__ */ P(d, {
|
|
484
|
-
ref: v,
|
|
485
|
-
direction: "horizontal",
|
|
486
|
-
align: "start",
|
|
487
|
-
wrap: !1,
|
|
488
|
-
gap: "md",
|
|
489
|
-
role: "group",
|
|
490
|
-
onClick: L,
|
|
491
|
-
className: a("toggle-field--component rounded-radius py-row-y", p && "pointer-events-none", g),
|
|
492
|
-
children: [
|
|
493
|
-
_ === "leading" && /* @__PURE__ */ N("div", {
|
|
494
|
-
className: E,
|
|
495
|
-
children: R
|
|
496
|
-
}),
|
|
497
|
-
z,
|
|
498
|
-
_ === "trailing" && /* @__PURE__ */ N("div", {
|
|
499
|
-
className: E,
|
|
500
|
-
children: R
|
|
501
|
-
})
|
|
502
|
-
]
|
|
503
|
-
});
|
|
504
|
-
});
|
|
505
|
-
Oe.displayName = "ToggleField";
|
|
506
|
-
//#endregion
|
|
507
|
-
//#region src/components/base/choice-inputs/card-checkbox-group.tsx
|
|
508
|
-
function ke(e) {
|
|
509
|
-
return typeof e == "string" || typeof e == "number" || typeof e == "bigint";
|
|
510
|
-
}
|
|
511
|
-
var Ae = {
|
|
512
|
-
1: "grid grid-cols-1 gap-space-md",
|
|
513
|
-
2: "grid grid-cols-1 gap-space-md @sm/card-checkbox-group:grid-cols-2",
|
|
514
|
-
3: "grid grid-cols-1 gap-space-md @sm/card-checkbox-group:grid-cols-2 @xl/card-checkbox-group:grid-cols-3",
|
|
515
|
-
4: "grid grid-cols-1 gap-space-md @sm/card-checkbox-group:grid-cols-2 @2xl/card-checkbox-group:grid-cols-4"
|
|
516
|
-
}, je = D(function({ "aria-describedby": e, options: t, value: r, defaultValue: i, onValueChange: o, name: c, columns: l = 3, invalid: u, disabled: f, size: p, className: m }, h) {
|
|
517
|
-
let { defaultScale: g } = n(), _ = S(p, g), y = r !== void 0, [b, x] = M(i ?? []), C = j(() => y ? r ?? [] : b, [
|
|
518
|
-
b,
|
|
519
|
-
y,
|
|
520
|
-
r
|
|
521
|
-
]), w = xe[_], T = k((e) => {
|
|
522
|
-
if (f || t.find((t) => t.value === e)?.disabled) return;
|
|
523
|
-
let n = C.includes(e) ? C.filter((t) => t !== e) : [...C, e];
|
|
524
|
-
y || x(n), o?.(n);
|
|
525
|
-
}, [
|
|
526
|
-
f,
|
|
527
|
-
t,
|
|
528
|
-
C,
|
|
529
|
-
y,
|
|
530
|
-
o
|
|
531
|
-
]);
|
|
532
|
-
return /* @__PURE__ */ N("div", {
|
|
533
|
-
ref: h,
|
|
534
|
-
className: a("card-checkbox-group--component @container/card-checkbox-group", m),
|
|
535
|
-
children: /* @__PURE__ */ N("div", {
|
|
536
|
-
className: a("card-checkbox-group--grid", Ae[l]),
|
|
537
|
-
role: "group",
|
|
538
|
-
"aria-describedby": e,
|
|
539
|
-
"aria-invalid": u || void 0,
|
|
540
|
-
"aria-disabled": f || void 0,
|
|
541
|
-
children: t.map((e) => {
|
|
542
|
-
let t = e.icon, n = e.label, r = C.includes(e.value), i = f || e.disabled, o = !!c && r, l = c ? `${c}[]` : void 0;
|
|
543
|
-
return /* @__PURE__ */ P("div", {
|
|
544
|
-
className: "relative",
|
|
545
|
-
children: [/* @__PURE__ */ N("input", {
|
|
546
|
-
type: "hidden",
|
|
547
|
-
name: l,
|
|
548
|
-
value: e.value,
|
|
549
|
-
"aria-hidden": "true",
|
|
550
|
-
hidden: !0,
|
|
551
|
-
disabled: !o
|
|
552
|
-
}), /* @__PURE__ */ P("button", {
|
|
553
|
-
type: "button",
|
|
554
|
-
"aria-pressed": r,
|
|
555
|
-
"aria-invalid": u || void 0,
|
|
556
|
-
onClick: () => T(e.value),
|
|
557
|
-
disabled: i,
|
|
558
|
-
"data-selected": r,
|
|
559
|
-
className: a("box-border group relative flex w-full flex-col items-start text-start outline-none cursor-pointer", "rounded-radius border border-border bg-card transition-[color,box-shadow,background,border-color] duration-150", $, "data-[selected=true]:border-primary", w.padding, w.gap, Te, v.invalid, "disabled:cursor-not-allowed disabled:opacity-50"),
|
|
560
|
-
children: [
|
|
561
|
-
/* @__PURE__ */ N(R, { className: a(we, !r && "hidden") }),
|
|
562
|
-
!!t && /* @__PURE__ */ N("span", {
|
|
563
|
-
className: a("inline-flex shrink-0 items-center justify-center rounded-inner bg-muted text-muted-foreground", w.iconBox),
|
|
564
|
-
children: /* @__PURE__ */ N(t, { className: w.iconSize })
|
|
565
|
-
}),
|
|
566
|
-
/* @__PURE__ */ P(d, {
|
|
567
|
-
gap: "dense",
|
|
568
|
-
className: "min-w-0",
|
|
569
|
-
children: [ke(n) ? /* @__PURE__ */ N(s, {
|
|
570
|
-
tag: "span",
|
|
571
|
-
weight: "medium",
|
|
572
|
-
children: n
|
|
573
|
-
}) : n, !!e.description && (ke(e.description) ? /* @__PURE__ */ N(s, {
|
|
574
|
-
size: "xs",
|
|
575
|
-
type: "secondary",
|
|
576
|
-
children: e.description
|
|
577
|
-
}) : e.description)]
|
|
578
|
-
})
|
|
579
|
-
]
|
|
580
|
-
})]
|
|
581
|
-
}, e.value);
|
|
582
|
-
})
|
|
583
|
-
})
|
|
584
|
-
});
|
|
585
|
-
});
|
|
586
|
-
je.displayName = "CardCheckboxGroup";
|
|
587
|
-
//#endregion
|
|
588
|
-
//#region src/components/base/choice-inputs/card-radio-group.tsx
|
|
589
|
-
function Me(e) {
|
|
590
|
-
return typeof e == "string" || typeof e == "number" || typeof e == "bigint";
|
|
591
|
-
}
|
|
592
|
-
var Ne = {
|
|
593
|
-
1: "grid grid-cols-1 gap-space-md",
|
|
594
|
-
2: "grid grid-cols-1 gap-space-md @sm/card-radio-group:grid-cols-2",
|
|
595
|
-
3: "grid grid-cols-1 gap-space-md @sm/card-radio-group:grid-cols-2 @xl/card-radio-group:grid-cols-3",
|
|
596
|
-
4: "grid grid-cols-1 gap-space-md @sm/card-radio-group:grid-cols-2 @2xl/card-radio-group:grid-cols-4"
|
|
597
|
-
};
|
|
598
|
-
function Pe({ "aria-describedby": e, options: t, value: r, defaultValue: i, onValueChange: o, name: c, columns: l = 3, invalid: u, disabled: f, size: p, className: m }, h) {
|
|
599
|
-
let { defaultScale: g } = n(), _ = xe[S(p, g)], y = j(() => a("card-radio-group--grid", Ne[l]), [l]);
|
|
600
|
-
return /* @__PURE__ */ N("div", {
|
|
601
|
-
ref: h,
|
|
602
|
-
className: a("card-radio-group--component @container/card-radio-group", m),
|
|
603
|
-
children: /* @__PURE__ */ N(H, {
|
|
604
|
-
value: r,
|
|
605
|
-
defaultValue: i,
|
|
606
|
-
onValueChange: (e) => e && o?.(e),
|
|
607
|
-
name: c,
|
|
608
|
-
disabled: f,
|
|
609
|
-
"aria-describedby": e,
|
|
610
|
-
"aria-invalid": u || void 0,
|
|
611
|
-
className: y,
|
|
612
|
-
children: t.map((e) => {
|
|
613
|
-
let t = e.icon, n = e.label;
|
|
614
|
-
return /* @__PURE__ */ P(V.Root, {
|
|
615
|
-
value: e.value,
|
|
616
|
-
disabled: f || e.disabled,
|
|
617
|
-
"aria-invalid": u || void 0,
|
|
618
|
-
className: a("box-border relative group flex flex-col text-start outline-none cursor-pointer", "rounded-radius border border-border bg-card transition-[color,box-shadow,background,border-color] duration-150", $, "data-[checked]:border-primary", _.padding, _.gap, Te, v.invalid, "data-disabled:cursor-not-allowed data-disabled:opacity-50"),
|
|
619
|
-
children: [
|
|
620
|
-
/* @__PURE__ */ N(V.Indicator, { render: /* @__PURE__ */ N(R, { className: we }) }),
|
|
621
|
-
!!t && /* @__PURE__ */ N("span", {
|
|
622
|
-
className: a("inline-flex shrink-0 items-center justify-center rounded-inner bg-muted text-muted-foreground", _.iconBox),
|
|
623
|
-
children: /* @__PURE__ */ N(t, { className: _.iconSize })
|
|
624
|
-
}),
|
|
625
|
-
/* @__PURE__ */ P(d, {
|
|
626
|
-
gap: "dense",
|
|
627
|
-
className: "min-w-0",
|
|
628
|
-
children: [Me(n) ? /* @__PURE__ */ N(s, {
|
|
629
|
-
tag: "span",
|
|
630
|
-
weight: "medium",
|
|
631
|
-
children: n
|
|
632
|
-
}) : n, !!e.description && (Me(e.description) ? /* @__PURE__ */ N(s, {
|
|
633
|
-
size: "xs",
|
|
634
|
-
type: "secondary",
|
|
635
|
-
children: e.description
|
|
636
|
-
}) : e.description)]
|
|
637
|
-
})
|
|
638
|
-
]
|
|
639
|
-
}, e.value);
|
|
640
|
-
})
|
|
641
|
-
})
|
|
642
|
-
});
|
|
643
|
-
}
|
|
644
|
-
var Fe = O(E.forwardRef(Pe));
|
|
645
|
-
Fe.displayName = "CardRadioGroup";
|
|
646
|
-
//#endregion
|
|
647
|
-
//#region src/components/base/choice-inputs/list-radio-group.tsx
|
|
648
|
-
function Ie(e) {
|
|
649
|
-
return typeof e == "string" || typeof e == "number" || typeof e == "bigint";
|
|
650
|
-
}
|
|
651
|
-
var Le = D(function({ options: e, value: r, defaultValue: i, onValueChange: o, name: l, invalid: u, disabled: f, size: p, className: m }, h) {
|
|
652
|
-
let { defaultScale: g } = n(), { defaultTextSize: _ } = t(), y = Ce[S(p, g)], b = a(c[_ ?? "sm"], "leading-tight");
|
|
653
|
-
return /* @__PURE__ */ N(H, {
|
|
654
|
-
ref: h,
|
|
655
|
-
value: r,
|
|
656
|
-
defaultValue: i,
|
|
657
|
-
onValueChange: (e) => e && o?.(e),
|
|
658
|
-
name: l,
|
|
659
|
-
disabled: f,
|
|
660
|
-
"aria-invalid": u || void 0,
|
|
661
|
-
className: a("list-radio-group--component", "overflow-hidden rounded-radius border border-border [&>[role=radio]~[role=radio]]:border-t [&>[role=radio]~[role=radio]]:border-border", v.invalid, "aria-invalid:has-[:focus-visible]:ring-destructive", f && "pointer-events-none opacity-50", m),
|
|
662
|
-
children: e.map((e) => /* @__PURE__ */ P(V.Root, {
|
|
663
|
-
value: e.value,
|
|
664
|
-
disabled: f || e.disabled,
|
|
665
|
-
className: a("box-border group flex w-full items-start gap-space-lg text-start outline-none cursor-pointer", "transition-colors hover:bg-muted", "data-disabled:cursor-not-allowed", !f && "data-disabled:opacity-50", y),
|
|
666
|
-
children: [/* @__PURE__ */ N("span", {
|
|
667
|
-
"aria-hidden": "true",
|
|
668
|
-
className: a("list-radio-group--track flex h-lh shrink-0 items-center", b),
|
|
669
|
-
children: /* @__PURE__ */ N("span", {
|
|
670
|
-
className: a("list-radio-group--radio box-border flex size-4 items-center justify-center rounded-full border border-input transition-[border-color,box-shadow]", "group-data-[checked]:border-primary group-focus-visible:ring-2 group-focus-visible:ring-ring"),
|
|
671
|
-
children: /* @__PURE__ */ N(V.Indicator, { className: "list-radio-group--dot size-2 rounded-full bg-primary" })
|
|
672
|
-
})
|
|
673
|
-
}), /* @__PURE__ */ P(d, {
|
|
674
|
-
gap: "dense",
|
|
675
|
-
className: "flex-1 min-w-0",
|
|
676
|
-
children: [Ie(e.label) ? /* @__PURE__ */ N(s, {
|
|
677
|
-
tag: "span",
|
|
678
|
-
weight: "medium",
|
|
679
|
-
lineHeight: "tight",
|
|
680
|
-
className: "block",
|
|
681
|
-
children: e.label
|
|
682
|
-
}) : e.label, !!e.description && (Ie(e.description) ? /* @__PURE__ */ N(s, {
|
|
683
|
-
tag: "span",
|
|
684
|
-
size: "xs",
|
|
685
|
-
type: "secondary",
|
|
686
|
-
className: "block",
|
|
687
|
-
children: e.description
|
|
688
|
-
}) : e.description)]
|
|
689
|
-
})]
|
|
690
|
-
}, e.value))
|
|
691
|
-
});
|
|
692
|
-
});
|
|
693
|
-
Le.displayName = "ListRadioGroup";
|
|
694
|
-
//#endregion
|
|
695
|
-
//#region src/components/base/choice-inputs/pill-radio-group.tsx
|
|
696
|
-
var Re = /* @__PURE__ */ new Set(["ArrowRight", "ArrowDown"]), ze = /* @__PURE__ */ new Set(["ArrowLeft", "ArrowUp"]), Be = E.forwardRef(function({ name: e, value: t, options: r, onValueChange: i, allowClear: o = !1, size: c, fullWidth: l = !1, disabled: u = !1, invalid: d = !1, className: f, "aria-label": p, "aria-labelledby": m, "aria-describedby": h }, g) {
|
|
697
|
-
let { defaultScale: _ } = n(), y = S(c, _), b = E.useRef([]), x = E.useCallback((e) => !u && !e.disabled, [u]), C = r.findIndex((e) => e.value === t), T = C >= 0 && x(r[C]) ? C : r.findIndex(x), D = E.useCallback((e) => {
|
|
698
|
-
e === t ? o && i(null) : i(e);
|
|
699
|
-
}, [
|
|
700
|
-
o,
|
|
701
|
-
i,
|
|
702
|
-
t
|
|
703
|
-
]);
|
|
704
|
-
return /* @__PURE__ */ N("div", {
|
|
705
|
-
ref: g,
|
|
706
|
-
"data-name": e,
|
|
707
|
-
role: "radiogroup",
|
|
708
|
-
"aria-label": p,
|
|
709
|
-
"aria-labelledby": m,
|
|
710
|
-
"aria-describedby": h,
|
|
711
|
-
"aria-invalid": d || void 0,
|
|
712
|
-
"aria-disabled": u || void 0,
|
|
713
|
-
onKeyDown: (e) => {
|
|
714
|
-
let n = r.map((e, t) => x(e) ? t : -1).filter((e) => e >= 0);
|
|
715
|
-
if (!n.length) return;
|
|
716
|
-
let a = b.current.findIndex((t) => t === e.target);
|
|
717
|
-
if (a < 0) return;
|
|
718
|
-
let o = getComputedStyle(e.currentTarget).direction === "rtl", s = o ? /* @__PURE__ */ new Set(["ArrowLeft", "ArrowDown"]) : Re, c = o ? /* @__PURE__ */ new Set(["ArrowRight", "ArrowUp"]) : ze, l = n.indexOf(a), u;
|
|
719
|
-
s.has(e.key) ? u = n[(l + 1) % n.length] : c.has(e.key) ? u = n[(l - 1 + n.length) % n.length] : e.key === "Home" ? u = n[0] : e.key === "End" && (u = n[n.length - 1]), u !== void 0 && (e.preventDefault(), b.current[u]?.focus(), r[u].value !== t && i(r[u].value));
|
|
720
|
-
},
|
|
721
|
-
className: a("pill-radio-group--component", "border-input inline-flex items-center overflow-hidden rounded-inner border", w[y], l ? "w-full" : "w-fit self-start", v.invalid, "aria-invalid:has-[:focus-visible]:ring-destructive", u && "pointer-events-none opacity-50", f),
|
|
722
|
-
children: r.map((e, n) => {
|
|
723
|
-
let r = e.value === t, i = e.icon, o = typeof e.label == "string" ? e.label : void 0;
|
|
724
|
-
return /* @__PURE__ */ P("button", {
|
|
725
|
-
ref: (e) => {
|
|
726
|
-
b.current[n] = e;
|
|
727
|
-
},
|
|
728
|
-
type: "button",
|
|
729
|
-
role: "radio",
|
|
730
|
-
"aria-checked": r,
|
|
731
|
-
"aria-label": o || e.value,
|
|
732
|
-
disabled: u || e.disabled,
|
|
733
|
-
tabIndex: n === T ? 0 : -1,
|
|
734
|
-
onClick: () => D(e.value),
|
|
735
|
-
className: a("box-border inline-flex select-none items-center justify-center border-0 p-0 font-sans font-medium transition-colors", "outline-none focus-visible:z-10 focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring", "disabled:pointer-events-none", !u && "disabled:opacity-50", Se[y], "h-full min-h-0", l && "flex-1", n > 0 && "border-input border-s", r ? "bg-primary text-primary-foreground focus-visible:ring-primary-foreground" : "bg-background text-foreground hover:bg-muted"),
|
|
736
|
-
children: [!!i && /* @__PURE__ */ N(i, { className: a(y === "sm" ? "size-icon-sm" : "size-icon", e.label && "me-space-sm") }), typeof e.label == "string" || typeof e.label == "number" || typeof e.label == "bigint" ? /* @__PURE__ */ N(s, {
|
|
737
|
-
tag: "span",
|
|
738
|
-
size: "inherit",
|
|
739
|
-
weight: "medium",
|
|
740
|
-
lineHeight: "tight",
|
|
741
|
-
className: "text-inherit",
|
|
742
|
-
children: e.label
|
|
743
|
-
}) : e.label]
|
|
744
|
-
}, e.value);
|
|
745
|
-
})
|
|
746
|
-
});
|
|
747
|
-
});
|
|
748
|
-
Be.displayName = "PillRadioGroup";
|
|
749
|
-
//#endregion
|
|
750
|
-
export { ne as _, Oe as a, ye as c, se as d, ce as f, U as g, ee as h, je as i, fe as l, de as m, Le as n, Ee as o, ue as p, Fe as r, Q as s, Be as t, oe as u };
|
|
751
|
-
|
|
752
|
-
//# sourceMappingURL=choice-inputs-DrJ17tpL.js.map
|