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
package/dist/features/kanban.js
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { useStrings as e } from "../lib/strings.js";
|
|
3
|
-
import { t } from "../utils-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
3
|
+
import { t } from "../utils-BRhFDwuU.js";
|
|
4
|
+
import { n } from "../buttons-DPZekJFu.js";
|
|
5
|
+
import { c as r } from "../typography-UTnveOEy.js";
|
|
6
|
+
import { i } from "../tone-recipes-BPsRAvhu.js";
|
|
7
|
+
import { i as a } from "../popover.recipes-D3j8R8Yp.js";
|
|
8
|
+
import { n as o } from "../action-menu-CllU52Mm.js";
|
|
9
|
+
import { createContext as s, forwardRef as c, useCallback as l, useContext as u, useEffect as d, useLayoutEffect as f, useMemo as p, useRef as m, useState as h } from "react";
|
|
10
|
+
import { jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
11
|
+
import { DndContext as v, DragOverlay as y, KeyboardSensor as b, PointerSensor as x, useDroppable as S, useSensor as C, useSensors as w } from "@dnd-kit/core";
|
|
12
|
+
import { SortableContext as T, useSortable as E, verticalListSortingStrategy as D } from "@dnd-kit/sortable";
|
|
13
|
+
import { CSS as O } from "@dnd-kit/utilities";
|
|
13
14
|
//#region src/components/features/kanban/kanban-keyboard.ts
|
|
14
|
-
function
|
|
15
|
+
function k(e, t, n) {
|
|
15
16
|
let r = Object.keys(e), i = r.indexOf(t.columnId);
|
|
16
17
|
if (n === "ArrowLeft" || n === "ArrowRight") {
|
|
17
18
|
let a = r[i + (n === "ArrowRight" ? 1 : -1)];
|
|
@@ -25,7 +26,7 @@ function O(e, t, n) {
|
|
|
25
26
|
index: Math.max(0, Math.min(e[t.columnId].length - 1, t.index + (n === "ArrowDown" ? 1 : -1)))
|
|
26
27
|
} : t;
|
|
27
28
|
}
|
|
28
|
-
function
|
|
29
|
+
function A(e, t, n, r, i) {
|
|
29
30
|
return (a, { currentCoordinates: o, context: s }) => {
|
|
30
31
|
if (![
|
|
31
32
|
"ArrowUp",
|
|
@@ -38,7 +39,7 @@ function k(e, t, n, r, i) {
|
|
|
38
39
|
let l = r.current ?? n(String(c.id));
|
|
39
40
|
if (!l) return;
|
|
40
41
|
a.preventDefault();
|
|
41
|
-
let u =
|
|
42
|
+
let u = k(e, l, a.code);
|
|
42
43
|
r.current = u, i?.(u);
|
|
43
44
|
let d = e[u.columnId][u.index], f = d === void 0 ? u.columnId : t(d), p = s.droppableRects.get(f), m = s.collisionRect;
|
|
44
45
|
return !p || !m ? o : {
|
|
@@ -49,8 +50,8 @@ function k(e, t, n, r, i) {
|
|
|
49
50
|
}
|
|
50
51
|
//#endregion
|
|
51
52
|
//#region src/components/features/kanban/hooks/use-kanban.ts
|
|
52
|
-
function
|
|
53
|
-
let i =
|
|
53
|
+
function j({ value: e, onValueChange: t, getItemValue: n, onItemMove: r }) {
|
|
54
|
+
let i = l((t) => {
|
|
54
55
|
for (let [r, i] of Object.entries(e)) {
|
|
55
56
|
let e = i.findIndex((e) => n(e) === t);
|
|
56
57
|
if (e >= 0) return {
|
|
@@ -59,7 +60,7 @@ function A({ value: e, onValueChange: t, getItemValue: n, onItemMove: r }) {
|
|
|
59
60
|
item: i[e]
|
|
60
61
|
};
|
|
61
62
|
}
|
|
62
|
-
}, [e, n]), a =
|
|
63
|
+
}, [e, n]), a = l(({ itemId: n, toColumnId: a, toIndex: o }) => {
|
|
63
64
|
let s = i(n);
|
|
64
65
|
if (!s || !Object.prototype.hasOwnProperty.call(e, a)) return;
|
|
65
66
|
let { columnId: c, index: l, item: u } = s, d = e[a], f = o === void 0 ? d.length : Math.max(0, Math.min(o, d.length));
|
|
@@ -85,28 +86,28 @@ function A({ value: e, onValueChange: t, getItemValue: n, onItemMove: r }) {
|
|
|
85
86
|
t,
|
|
86
87
|
r
|
|
87
88
|
]);
|
|
88
|
-
return
|
|
89
|
+
return p(() => ({
|
|
89
90
|
findItem: i,
|
|
90
91
|
move: a
|
|
91
92
|
}), [i, a]);
|
|
92
93
|
}
|
|
93
94
|
//#endregion
|
|
94
95
|
//#region src/components/features/kanban/kanban-context.tsx
|
|
95
|
-
var
|
|
96
|
-
function
|
|
97
|
-
let e =
|
|
96
|
+
var M = s(null), N = M.Provider;
|
|
97
|
+
function P() {
|
|
98
|
+
let e = u(M);
|
|
98
99
|
if (!e) throw Error("Kanban subcomponents must be rendered inside a <Kanban> root.");
|
|
99
100
|
return e;
|
|
100
101
|
}
|
|
101
|
-
var
|
|
102
|
-
function
|
|
103
|
-
let e =
|
|
102
|
+
var F = s(null), I = F.Provider;
|
|
103
|
+
function L() {
|
|
104
|
+
let e = u(F);
|
|
104
105
|
if (!e) throw Error("<KanbanItemHandle> / <KanbanItemActions> must be rendered inside a <KanbanItem>.");
|
|
105
106
|
return e;
|
|
106
107
|
}
|
|
107
108
|
//#endregion
|
|
108
109
|
//#region src/components/features/kanban/kanban.strings.ts
|
|
109
|
-
var
|
|
110
|
+
var R = {
|
|
110
111
|
announceDragStart: "Picked up item {name}.",
|
|
111
112
|
announceDragMove: "Moving {name} from {from} to {to}, position {position}.",
|
|
112
113
|
announceDragEnd: "Dropped {name} into {to}, position {position}.",
|
|
@@ -115,38 +116,38 @@ var L = {
|
|
|
115
116
|
boardAria: "Kanban board",
|
|
116
117
|
itemActionsAria: "Item actions"
|
|
117
118
|
};
|
|
118
|
-
function
|
|
119
|
+
function z(e, t) {
|
|
119
120
|
return Object.entries(t).reduce((e, [t, n]) => e.replace(RegExp(`\\{${t}\\}`, "g"), n), e);
|
|
120
121
|
}
|
|
121
122
|
//#endregion
|
|
122
123
|
//#region src/components/features/kanban/kanban.tsx
|
|
123
|
-
function
|
|
124
|
-
let E = e(
|
|
125
|
-
value:
|
|
124
|
+
function B({ value: n, onValueChange: i, getItemValue: a, getItemLabel: o, getColumnLabel: s, onItemMove: c, itemActions: u, onItemClick: d, strings: y, className: S, children: T }) {
|
|
125
|
+
let E = e(R, y), { findItem: D, move: O } = j({
|
|
126
|
+
value: n,
|
|
126
127
|
onValueChange: i,
|
|
127
128
|
getItemValue: a,
|
|
128
|
-
onItemMove:
|
|
129
|
-
}), [
|
|
130
|
-
|
|
131
|
-
if (
|
|
129
|
+
onItemMove: c
|
|
130
|
+
}), [k, M] = h(null), P = m(null), F = m(null);
|
|
131
|
+
f(() => {
|
|
132
|
+
if (k || !F.current) return;
|
|
132
133
|
let e = Array.from(P.current?.querySelectorAll("[data-kanban-item-id]") ?? []).find((e) => e.dataset.kanbanItemId === F.current), t = e?.querySelector("[data-slot=\"kanban-item-handle\"]") ?? e;
|
|
133
134
|
t && (t.focus(), F.current = null);
|
|
134
|
-
}, [
|
|
135
|
-
let I =
|
|
136
|
-
|
|
135
|
+
}, [k, n]);
|
|
136
|
+
let I = m(null), L = m(null), [B, V] = h(null), H = m(null), U = p(() => A(n, a, D, H, V), [
|
|
137
|
+
n,
|
|
137
138
|
a,
|
|
138
139
|
D
|
|
139
|
-
]), W = C(
|
|
140
|
+
]), W = w(C(x, { activationConstraint: { distance: 6 } }), C(b, { coordinateGetter: U })), G = p(() => k ? D(k)?.item ?? null : null, [k, D]), K = l((e) => {
|
|
140
141
|
let t = D(String(e.active.id));
|
|
141
142
|
I.current = t ? {
|
|
142
143
|
columnId: t.columnId,
|
|
143
144
|
index: t.index,
|
|
144
145
|
name: o?.(t.item) ?? String(e.active.id)
|
|
145
|
-
} : null,
|
|
146
|
-
}, [D, o]), q =
|
|
147
|
-
|
|
148
|
-
let { active: t, over:
|
|
149
|
-
if (
|
|
146
|
+
} : null, L.current = null, V(null), H.current = null, F.current = e.activatorEvent instanceof KeyboardEvent ? String(e.active.id) : null, M(String(e.active.id));
|
|
147
|
+
}, [D, o]), q = l((e) => {
|
|
148
|
+
M(null), V(null);
|
|
149
|
+
let { active: t, over: r } = e, i = H.current;
|
|
150
|
+
if (L.current = i, H.current = null, i) {
|
|
150
151
|
let e = D(String(t.id)), n = e?.columnId === i.columnId && e.index < i.index ? i.index + 1 : i.index;
|
|
151
152
|
O({
|
|
152
153
|
itemId: String(t.id),
|
|
@@ -155,11 +156,11 @@ function z({ value: r, onValueChange: i, getItemValue: a, getItemLabel: o, getCo
|
|
|
155
156
|
});
|
|
156
157
|
return;
|
|
157
158
|
}
|
|
158
|
-
if (!
|
|
159
|
+
if (!r) return;
|
|
159
160
|
t.data.current;
|
|
160
|
-
let a =
|
|
161
|
+
let a = r.data.current, o = String(r.id), s = a?.columnId ?? (Object.prototype.hasOwnProperty.call(n, o) ? o : void 0);
|
|
161
162
|
if (!s) return;
|
|
162
|
-
let c = a?.columnId === void 0 ?
|
|
163
|
+
let c = a?.columnId === void 0 ? n[s].length : a.index;
|
|
163
164
|
O({
|
|
164
165
|
itemId: String(t.id),
|
|
165
166
|
toColumnId: s,
|
|
@@ -167,95 +168,95 @@ function z({ value: r, onValueChange: i, getItemValue: a, getItemLabel: o, getCo
|
|
|
167
168
|
});
|
|
168
169
|
}, [
|
|
169
170
|
O,
|
|
170
|
-
|
|
171
|
+
n,
|
|
171
172
|
D
|
|
172
|
-
]), J =
|
|
173
|
-
value:
|
|
173
|
+
]), J = p(() => ({
|
|
174
|
+
value: n,
|
|
174
175
|
onValueChange: i,
|
|
175
176
|
getItemValue: a,
|
|
176
|
-
activeId:
|
|
177
|
+
activeId: k,
|
|
177
178
|
activeItem: G,
|
|
178
179
|
findItem: D,
|
|
179
|
-
itemActions:
|
|
180
|
-
onItemClick:
|
|
180
|
+
itemActions: u,
|
|
181
|
+
onItemClick: d
|
|
181
182
|
}), [
|
|
182
|
-
|
|
183
|
+
n,
|
|
183
184
|
i,
|
|
184
185
|
a,
|
|
185
|
-
|
|
186
|
+
k,
|
|
186
187
|
G,
|
|
187
188
|
D,
|
|
188
|
-
|
|
189
|
-
|
|
189
|
+
u,
|
|
190
|
+
d
|
|
190
191
|
]), Y = (e, t) => {
|
|
191
|
-
let
|
|
192
|
+
let r = D(e), i = I.current, a = t ? D(t) : void 0, c = H.current ?? L.current ?? a ?? (t && n[t] ? {
|
|
192
193
|
columnId: t,
|
|
193
|
-
index:
|
|
194
|
-
} : i), l = (e) => e ?
|
|
194
|
+
index: n[t].length
|
|
195
|
+
} : i), l = (e) => e ? s?.(e) ?? e : "";
|
|
195
196
|
return {
|
|
196
|
-
name: i?.name ?? (
|
|
197
|
+
name: i?.name ?? (r ? o?.(r.item) ?? e : e),
|
|
197
198
|
from: l(i?.columnId),
|
|
198
|
-
to: l(
|
|
199
|
-
position: String((
|
|
199
|
+
to: l(c?.columnId),
|
|
200
|
+
position: String((c?.index ?? 0) + 1)
|
|
200
201
|
};
|
|
201
202
|
};
|
|
202
|
-
return /* @__PURE__ */
|
|
203
|
+
return /* @__PURE__ */ g(N, {
|
|
203
204
|
value: J,
|
|
204
|
-
children: /* @__PURE__ */
|
|
205
|
+
children: /* @__PURE__ */ g(v, {
|
|
205
206
|
sensors: W,
|
|
206
207
|
onDragStart: K,
|
|
207
208
|
onDragEnd: q,
|
|
208
209
|
onDragCancel: () => {
|
|
209
|
-
H.current = null, V(null),
|
|
210
|
+
H.current = null, V(null), M(null);
|
|
210
211
|
},
|
|
211
212
|
accessibility: { announcements: {
|
|
212
213
|
onDragStart({ active: e }) {
|
|
213
|
-
return
|
|
214
|
+
return z(E.announceDragStart, Y(String(e.id)));
|
|
214
215
|
},
|
|
215
216
|
onDragMove({ active: e, over: t }) {
|
|
216
|
-
if (!F.current) return
|
|
217
|
+
if (!F.current) return z(E.announceDragMove, Y(String(e.id), t ? String(t.id) : void 0));
|
|
217
218
|
},
|
|
218
219
|
onDragOver({ active: e, over: t }) {
|
|
219
|
-
if (!F.current) return
|
|
220
|
+
if (!F.current) return z(E.announceDragMove, Y(String(e.id), t ? String(t.id) : void 0));
|
|
220
221
|
},
|
|
221
222
|
onDragEnd({ active: e, over: t }) {
|
|
222
|
-
return
|
|
223
|
+
return z(E.announceDragEnd, Y(String(e.id), t ? String(t.id) : void 0));
|
|
223
224
|
},
|
|
224
225
|
onDragCancel({ active: e }) {
|
|
225
|
-
return
|
|
226
|
+
return z(E.announceDragCancel, Y(String(e.id)));
|
|
226
227
|
}
|
|
227
228
|
} },
|
|
228
|
-
children: /* @__PURE__ */
|
|
229
|
+
children: /* @__PURE__ */ _("div", {
|
|
229
230
|
ref: P,
|
|
230
231
|
role: "application",
|
|
231
232
|
"aria-label": E.boardAria,
|
|
232
|
-
className: t("kanban--component", "w-full",
|
|
233
|
-
children: [T, /* @__PURE__ */
|
|
233
|
+
className: t("kanban--component", "w-full", S),
|
|
234
|
+
children: [T, /* @__PURE__ */ g("div", {
|
|
234
235
|
className: "kanban--keyboard-announcement sr-only",
|
|
235
236
|
role: "status",
|
|
236
237
|
"aria-live": "assertive",
|
|
237
238
|
"aria-atomic": "true",
|
|
238
|
-
children: /* @__PURE__ */
|
|
239
|
+
children: /* @__PURE__ */ g(r, {
|
|
239
240
|
tag: "span",
|
|
240
|
-
children:
|
|
241
|
+
children: k && B ? z(E.announceDragMove, Y(k)) : ""
|
|
241
242
|
})
|
|
242
243
|
})]
|
|
243
244
|
})
|
|
244
245
|
})
|
|
245
246
|
});
|
|
246
247
|
}
|
|
247
|
-
|
|
248
|
-
function
|
|
249
|
-
return /* @__PURE__ */
|
|
248
|
+
B.displayName = "Kanban";
|
|
249
|
+
function V({ className: e, style: n, children: r }) {
|
|
250
|
+
return /* @__PURE__ */ g("div", {
|
|
250
251
|
className: t("grid w-full gap-space-lg", e),
|
|
251
252
|
style: n,
|
|
252
253
|
children: r
|
|
253
254
|
});
|
|
254
255
|
}
|
|
255
|
-
|
|
256
|
-
function
|
|
257
|
-
let { setNodeRef: i, isOver: a } =
|
|
258
|
-
return /* @__PURE__ */
|
|
256
|
+
V.displayName = "KanbanBoard";
|
|
257
|
+
function H({ value: e, className: n, children: r }) {
|
|
258
|
+
let { setNodeRef: i, isOver: a } = S({ id: e });
|
|
259
|
+
return /* @__PURE__ */ g("div", {
|
|
259
260
|
ref: i,
|
|
260
261
|
"data-slot": "kanban-column",
|
|
261
262
|
"data-column-id": e,
|
|
@@ -264,101 +265,101 @@ function V({ value: e, className: n, children: r }) {
|
|
|
264
265
|
children: r
|
|
265
266
|
});
|
|
266
267
|
}
|
|
267
|
-
|
|
268
|
-
function
|
|
269
|
-
let i =
|
|
270
|
-
return /* @__PURE__ */
|
|
268
|
+
H.displayName = "KanbanColumn";
|
|
269
|
+
function U({ value: e, className: n, children: r }) {
|
|
270
|
+
let i = P(), a = (i.value[e] ?? []).map((e) => i.getItemValue(e));
|
|
271
|
+
return /* @__PURE__ */ g(T, {
|
|
271
272
|
items: a,
|
|
272
|
-
strategy:
|
|
273
|
-
children: /* @__PURE__ */
|
|
273
|
+
strategy: D,
|
|
274
|
+
children: /* @__PURE__ */ g("div", {
|
|
274
275
|
"data-slot": "kanban-column-content",
|
|
275
276
|
className: t("flex flex-col gap-space-md", n),
|
|
276
277
|
children: r
|
|
277
278
|
})
|
|
278
279
|
});
|
|
279
280
|
}
|
|
280
|
-
|
|
281
|
-
function
|
|
282
|
-
let o =
|
|
281
|
+
U.displayName = "KanbanColumnContent";
|
|
282
|
+
function W({ value: e, className: n, disabled: r = !1, onClick: i, children: a }) {
|
|
283
|
+
let o = P(), s = o.findItem(e), { attributes: c, listeners: u, setNodeRef: d, setActivatorNodeRef: f, transform: m, transition: _, isDragging: v } = E({
|
|
283
284
|
id: e,
|
|
284
285
|
disabled: r,
|
|
285
286
|
data: {
|
|
286
|
-
columnId:
|
|
287
|
-
index:
|
|
287
|
+
columnId: s?.columnId,
|
|
288
|
+
index: s?.index
|
|
288
289
|
}
|
|
289
290
|
}), y = {
|
|
290
|
-
transform:
|
|
291
|
+
transform: O.Transform.toString(m),
|
|
291
292
|
transition: _,
|
|
292
293
|
opacity: v ? .4 : void 0
|
|
293
|
-
}, [b, x] =
|
|
294
|
+
}, [b, x] = h(0), S = b > 0, C = l(() => (x((e) => e + 1), () => x((e) => Math.max(0, e - 1))), []), w = p(() => ({
|
|
294
295
|
listeners: u,
|
|
295
|
-
attributes:
|
|
296
|
-
setActivatorNodeRef:
|
|
296
|
+
attributes: c,
|
|
297
|
+
setActivatorNodeRef: f,
|
|
297
298
|
registerHandle: C,
|
|
298
299
|
itemId: e,
|
|
299
|
-
item:
|
|
300
|
+
item: s?.item ?? null
|
|
300
301
|
}), [
|
|
301
302
|
u,
|
|
302
|
-
|
|
303
|
-
|
|
303
|
+
c,
|
|
304
|
+
f,
|
|
304
305
|
C,
|
|
305
306
|
e,
|
|
306
|
-
|
|
307
|
-
]),
|
|
307
|
+
s?.item
|
|
308
|
+
]), T = o.onItemClick, D = l((e) => {
|
|
308
309
|
if (!e.target?.closest("[data-stop-item-click]")) {
|
|
309
310
|
if (i) {
|
|
310
311
|
i();
|
|
311
312
|
return;
|
|
312
313
|
}
|
|
313
|
-
|
|
314
|
+
T && s?.item !== void 0 && T(s.item);
|
|
314
315
|
}
|
|
315
316
|
}, [
|
|
316
317
|
i,
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
]), k = !!(i ||
|
|
320
|
-
return /* @__PURE__ */
|
|
318
|
+
T,
|
|
319
|
+
s?.item
|
|
320
|
+
]), k = !!(i || T);
|
|
321
|
+
return /* @__PURE__ */ g(I, {
|
|
321
322
|
value: w,
|
|
322
|
-
children: /* @__PURE__ */
|
|
323
|
-
ref:
|
|
323
|
+
children: /* @__PURE__ */ g("div", {
|
|
324
|
+
ref: d,
|
|
324
325
|
style: y,
|
|
325
326
|
"data-slot": "kanban-item",
|
|
326
327
|
"data-kanban-item-id": e,
|
|
327
328
|
"data-dragging": v ? "true" : void 0,
|
|
328
329
|
className: t("touch-none select-none", k && "cursor-pointer", n),
|
|
329
|
-
onClick: k ?
|
|
330
|
-
...S ? {} :
|
|
330
|
+
onClick: k ? D : void 0,
|
|
331
|
+
...S ? {} : c,
|
|
331
332
|
...S ? {} : u,
|
|
332
333
|
children: a
|
|
333
334
|
})
|
|
334
335
|
});
|
|
335
336
|
}
|
|
336
|
-
|
|
337
|
-
var
|
|
338
|
-
let { setActivatorNodeRef: a, listeners: o, attributes:
|
|
339
|
-
|
|
340
|
-
let
|
|
337
|
+
W.displayName = "KanbanItem";
|
|
338
|
+
var G = c(function({ className: e, children: r }, i) {
|
|
339
|
+
let { setActivatorNodeRef: a, listeners: o, attributes: s, registerHandle: c } = L();
|
|
340
|
+
d(() => c(), [c]);
|
|
341
|
+
let u = l((e) => {
|
|
341
342
|
a(e), typeof i == "function" ? i(e) : i && (i.current = e);
|
|
342
343
|
}, [a, i]);
|
|
343
|
-
return /* @__PURE__ */
|
|
344
|
+
return /* @__PURE__ */ g(n, {
|
|
344
345
|
type: "button",
|
|
345
346
|
tone: "secondary",
|
|
346
347
|
buttonStyle: "ghost",
|
|
347
348
|
size: "sm",
|
|
348
349
|
iconOnly: !0,
|
|
349
|
-
ref:
|
|
350
|
+
ref: u,
|
|
350
351
|
"data-slot": "kanban-item-handle",
|
|
351
352
|
"data-stop-item-click": !0,
|
|
352
353
|
onClick: (e) => e.stopPropagation(),
|
|
353
|
-
className: t("cursor-grab shadow-none
|
|
354
|
-
...
|
|
354
|
+
className: t("cursor-grab shadow-none active:cursor-grabbing", e),
|
|
355
|
+
...s,
|
|
355
356
|
...o,
|
|
356
|
-
children:
|
|
357
|
+
children: r
|
|
357
358
|
});
|
|
358
359
|
});
|
|
359
|
-
|
|
360
|
-
function
|
|
361
|
-
let
|
|
360
|
+
G.displayName = "KanbanItemHandle";
|
|
361
|
+
function K({ className: t, icon: n, ariaLabel: r }) {
|
|
362
|
+
let i = P(), s = L(), c = e(R, void 0), l = s.item, u = i.itemActions, d = p(() => !u || l == null ? [] : (typeof u == "function" ? u(l) : u).flatMap((e) => {
|
|
362
363
|
let t = typeof e.visible == "function" ? e.visible(l) : e.visible ?? !0;
|
|
363
364
|
if (!t) return [];
|
|
364
365
|
let n = typeof e.disabled == "function" ? e.disabled(l) : e.disabled ?? !1;
|
|
@@ -368,8 +369,8 @@ function G({ className: n, icon: r, ariaLabel: a }) {
|
|
|
368
369
|
disabled: n
|
|
369
370
|
}];
|
|
370
371
|
}), [u, l]);
|
|
371
|
-
if (l === null ||
|
|
372
|
-
let
|
|
372
|
+
if (l === null || d.length === 0) return null;
|
|
373
|
+
let f = d.map((e) => ({
|
|
373
374
|
id: e.id,
|
|
374
375
|
label: e.label,
|
|
375
376
|
icon: e.icon,
|
|
@@ -378,48 +379,46 @@ function G({ className: n, icon: r, ariaLabel: a }) {
|
|
|
378
379
|
buttonStyle: e.buttonStyle,
|
|
379
380
|
onClick: () => e.onClick(l)
|
|
380
381
|
}));
|
|
381
|
-
return /* @__PURE__ */
|
|
382
|
+
return /* @__PURE__ */ g("span", {
|
|
382
383
|
className: "kanban-item-actions--component inline-flex",
|
|
383
384
|
"data-stop-item-click": !0,
|
|
384
385
|
onClick: (e) => e.stopPropagation(),
|
|
385
386
|
onPointerDown: (e) => e.stopPropagation(),
|
|
386
|
-
children: /* @__PURE__ */
|
|
387
|
-
actions:
|
|
388
|
-
icon:
|
|
389
|
-
srText:
|
|
390
|
-
width:
|
|
387
|
+
children: /* @__PURE__ */ g(o, {
|
|
388
|
+
actions: f,
|
|
389
|
+
icon: n ?? void 0,
|
|
390
|
+
srText: r ?? c.itemActionsAria,
|
|
391
|
+
width: a.xs,
|
|
391
392
|
align: "end",
|
|
392
393
|
density: "table",
|
|
393
394
|
buttonProps: {
|
|
394
|
-
|
|
395
|
-
iconOnly: !0,
|
|
396
|
-
className: t("text-muted-foreground/70 hover:bg-muted hover:text-foreground", "transition-colors", n),
|
|
395
|
+
className: t,
|
|
397
396
|
"data-slot": "kanban-item-actions-trigger",
|
|
398
397
|
"data-stop-item-click": !0,
|
|
399
|
-
"aria-label":
|
|
398
|
+
"aria-label": r ?? c.itemActionsAria
|
|
400
399
|
}
|
|
401
400
|
})
|
|
402
401
|
});
|
|
403
402
|
}
|
|
404
|
-
|
|
405
|
-
function
|
|
406
|
-
let { activeItem:
|
|
407
|
-
return /* @__PURE__ */
|
|
408
|
-
item:
|
|
409
|
-
columnId: o
|
|
410
|
-
}) : /* @__PURE__ */
|
|
411
|
-
className: t("kanban-overlay--component pointer-events-none rounded-radius border-2 border-dashed
|
|
412
|
-
children: /* @__PURE__ */
|
|
403
|
+
K.displayName = "KanbanItemActions";
|
|
404
|
+
function q({ className: e, render: n }) {
|
|
405
|
+
let { activeItem: a, activeId: o, findItem: s } = P();
|
|
406
|
+
return /* @__PURE__ */ g(y, { children: o ? n ? n({
|
|
407
|
+
item: a,
|
|
408
|
+
columnId: s(o)?.columnId ?? null
|
|
409
|
+
}) : /* @__PURE__ */ g("div", {
|
|
410
|
+
className: t("kanban-overlay--component pointer-events-none rounded-radius border-2 border-dashed p-surface shadow-lg", i.primary.edge, i.primary.wash, e),
|
|
411
|
+
children: /* @__PURE__ */ g(r, {
|
|
413
412
|
tag: "span",
|
|
414
413
|
size: "xs",
|
|
415
414
|
weight: "medium",
|
|
416
|
-
className: "text-primary-accent
|
|
417
|
-
children:
|
|
415
|
+
className: "text-primary-accent",
|
|
416
|
+
children: o
|
|
418
417
|
})
|
|
419
418
|
}) : null });
|
|
420
419
|
}
|
|
421
|
-
|
|
420
|
+
q.displayName = "KanbanOverlay";
|
|
422
421
|
//#endregion
|
|
423
|
-
export {
|
|
422
|
+
export { B as Kanban, V as KanbanBoard, H as KanbanColumn, U as KanbanColumnContent, W as KanbanItem, K as KanbanItemActions, G as KanbanItemHandle, q as KanbanOverlay, R as defaultKanbanStrings, z as interpolateKanbanString, j as useKanban };
|
|
424
423
|
|
|
425
424
|
//# sourceMappingURL=kanban.js.map
|