themelia-react-ui 1.0.2 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +632 -1
- package/README.md +31 -13
- package/dist/accordion-B6a3vVgA.js +207 -0
- package/dist/accordion-B6a3vVgA.js.map +1 -0
- package/dist/action-menu-TzCoSlwL.js +280 -0
- package/dist/action-menu-TzCoSlwL.js.map +1 -0
- package/dist/{affordance-geometry.generated-CL84ZN9A.js → affordance-geometry.generated-B5iu-Mkr.js} +9 -3
- package/dist/affordance-geometry.generated-B5iu-Mkr.js.map +1 -0
- package/dist/{ai-artifact-DLVdK0Py.js → ai-artifact-BMJdv-6q.js} +389 -391
- package/dist/ai-artifact-BMJdv-6q.js.map +1 -0
- package/dist/{app-shell-C_fKpljx.js → app-shell-ZK5RWdo6.js} +4 -4
- package/dist/{app-shell-C_fKpljx.js.map → app-shell-ZK5RWdo6.js.map} +1 -1
- package/dist/attachment-BtfhGm8i.js +245 -0
- package/dist/attachment-BtfhGm8i.js.map +1 -0
- package/dist/{auth-CAQcasMV.js → auth-CYxKfo69.js} +239 -237
- package/dist/auth-CYxKfo69.js.map +1 -0
- package/dist/{avatar-Bu2HhitA.js → avatar-BBnEJIx8.js} +71 -68
- package/dist/avatar-BBnEJIx8.js.map +1 -0
- package/dist/badge-MrKVNzW9.js +93 -0
- package/dist/badge-MrKVNzW9.js.map +1 -0
- package/dist/base/accordion.js +1 -1
- package/dist/base/action-menu.js +1 -1
- package/dist/base/attachment.js +1 -1
- package/dist/base/avatar.js +1 -1
- package/dist/base/badge.js +1 -1
- package/dist/base/batch-action-bar.js +3 -0
- package/dist/base/buttons.js +2 -3
- package/dist/base/cards.js +2 -2
- package/dist/base/carousel.js +19 -19
- package/dist/base/carousel.js.map +1 -1
- package/dist/base/cascader.js +234 -224
- package/dist/base/cascader.js.map +1 -1
- package/dist/base/chart.js +1 -1
- package/dist/base/choice-inputs.js +3 -3
- package/dist/base/code-block.js +1 -1
- package/dist/base/combobox.js +1 -1
- package/dist/base/command.js +1 -1
- package/dist/base/copyable.js +1 -1
- package/dist/base/date-pickers.js +2 -2
- package/dist/base/display.js +7 -7
- package/dist/base/feedback.js +3 -3
- package/dist/base/forms-numeric.js +1 -1
- package/dist/base/forms.js +2 -2
- package/dist/base/inline-edit.js +81 -76
- 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 +7 -4
- package/dist/base/qr-code.js.map +1 -1
- package/dist/base/repeaters.js +175 -174
- 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 +148 -138
- package/dist/base/signature-pad.js.map +1 -1
- package/dist/base/skeleton.js +1 -1
- package/dist/base/spinner.js +1 -1
- package/dist/base/structure.js +1 -1
- package/dist/base/table.js +1 -1
- package/dist/base/text-inputs.js +2 -2
- package/dist/base/toaster.js +4 -4
- 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-BZGDG-Si.js +104 -0
- package/dist/batch-action-bar-BZGDG-Si.js.map +1 -0
- package/dist/blocks/admin.js +264 -253
- package/dist/blocks/admin.js.map +1 -1
- package/dist/blocks/ai.js +293 -323
- package/dist/blocks/ai.js.map +1 -1
- package/dist/blocks/analytics/usage-card.js +1 -1
- package/dist/blocks/analytics.js +596 -587
- 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 +2246 -1693
- package/dist/blocks/commerce.js.map +1 -1
- package/dist/blocks/data-display.js +3 -2
- package/dist/blocks/onboarding.js +50 -49
- package/dist/blocks/onboarding.js.map +1 -1
- package/dist/blocks/planning.js +82 -91
- package/dist/blocks/planning.js.map +1 -1
- package/dist/blocks/timelines.js +1 -1
- package/dist/breadcrumbs-D5t7I023.js +129 -0
- package/dist/breadcrumbs-D5t7I023.js.map +1 -0
- package/dist/{button-BZyfTvwm.js → button-QYwiyhD2.js} +15 -14
- package/dist/button-QYwiyhD2.js.map +1 -0
- package/dist/buttons-SbIcm1HJ.js +661 -0
- package/dist/buttons-SbIcm1HJ.js.map +1 -0
- package/dist/{cards-qGSErLw_.js → cards-CiiHpKYd.js} +8 -8
- package/dist/cards-CiiHpKYd.js.map +1 -0
- package/dist/{chart-Bsc5BICK.js → chart-QfrARkXl.js} +17 -15
- package/dist/chart-QfrARkXl.js.map +1 -0
- package/dist/checkbox-DhB6K0bK.js +36 -0
- package/dist/checkbox-DhB6K0bK.js.map +1 -0
- package/dist/choice-inputs-t6w3ATNz.js +766 -0
- package/dist/choice-inputs-t6w3ATNz.js.map +1 -0
- package/dist/code-block-Dgbu-CU3.js +185 -0
- package/dist/code-block-Dgbu-CU3.js.map +1 -0
- package/dist/{collapsible-ClvC7Bj3.js → collapsible-D8AEGU1-.js} +4 -4
- package/dist/{collapsible-ClvC7Bj3.js.map → collapsible-D8AEGU1-.js.map} +1 -1
- package/dist/{collection-content-D6S8cv_n.js → collection-content-uK16Grv0.js} +3 -3
- package/dist/{collection-content-D6S8cv_n.js.map → collection-content-uK16Grv0.js.map} +1 -1
- package/dist/{combobox-BFnbJJp3.js → combobox-2Ic8N9bL.js} +103 -98
- package/dist/combobox-2Ic8N9bL.js.map +1 -0
- package/dist/combobox-DLl0bfiq.js +867 -0
- package/dist/combobox-DLl0bfiq.js.map +1 -0
- package/dist/{command-BnmSchli.js → command-kNR20o7x.js} +34 -30
- package/dist/command-kNR20o7x.js.map +1 -0
- package/dist/{comments-u5L0OGip.js → comments-BpDuCUUu.js} +304 -301
- package/dist/comments-BpDuCUUu.js.map +1 -0
- package/dist/components/base/accordion/accordion-variants.d.ts +3 -3
- package/dist/components/base/action-menu/action-menu.d.ts +27 -5
- 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/avatar/stacked-avatars.d.ts +5 -4
- package/dist/components/base/badge/badge.d.ts +1 -1
- package/dist/components/base/badge/badge.recipes.d.ts +6 -6
- 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/base-button.d.ts +7 -0
- package/dist/components/base/buttons/button-group.recipes.d.ts +2 -2
- package/dist/components/base/buttons/button.recipes.d.ts +2 -2
- package/dist/components/base/buttons/button.variants.d.ts +1 -0
- package/dist/components/base/buttons/loader-button.d.ts +3 -1
- package/dist/components/base/buttons/text-button.d.ts +2 -2
- package/dist/components/base/carousel/carousel.d.ts +3 -1
- package/dist/components/base/chart/chart.d.ts +7 -7
- package/dist/components/base/choice-inputs/checkbox.d.ts +6 -7
- package/dist/components/base/choice-inputs/choice-types.d.ts +24 -3
- package/dist/components/base/choice-inputs/pill-radio-group.d.ts +9 -0
- package/dist/components/base/choice-inputs/select-popup.d.ts +9 -1
- package/dist/components/base/choice-inputs/switch-card.d.ts +1 -1
- package/dist/components/base/date-pickers/date-picker-field.d.ts +23 -0
- package/dist/components/base/date-pickers/datepicker.types.d.ts +13 -3
- package/dist/components/base/display/alert-dialog.d.ts +10 -3
- package/dist/components/base/display/content-block.d.ts +4 -2
- package/dist/components/base/display/date-block.d.ts +1 -1
- package/dist/components/base/display/dialog.d.ts +8 -5
- package/dist/components/base/display/icon-badge/icon-badge.d.ts +1 -1
- package/dist/components/base/display/surface-title.d.ts +6 -1
- package/dist/components/base/feedback/alert.d.ts +1 -1
- package/dist/components/base/feedback/state-display.d.ts +5 -4
- package/dist/components/base/forms/form-sizing.d.ts +43 -8
- package/dist/components/base/forms/workflow.d.ts +2 -0
- package/dist/components/base/forms-numeric/coordinates-input.d.ts +3 -0
- package/dist/components/base/forms-numeric/rounding-mode-select.d.ts +4 -1
- package/dist/components/base/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/dropdown-menu.d.ts +2 -2
- package/dist/components/base/navigation/index.d.ts +1 -1
- package/dist/components/base/navigation/language-switcher.d.ts +4 -1
- package/dist/components/base/navigation/overflow-tab-bar.d.ts +7 -0
- package/dist/components/base/navigation/page-header/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 +30 -4
- package/dist/components/base/qr-code/qr-code.d.ts +2 -0
- package/dist/components/base/sheet/index.d.ts +29 -1
- package/dist/components/base/sheet/sheet.d.ts +10 -5
- 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/spinner/spinner.d.ts +3 -2
- package/dist/components/base/structure/structure.types.d.ts +1 -1
- 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 +33 -0
- package/dist/components/base/value-inputs/date-time-input.d.ts +4 -2
- package/dist/components/base/value-inputs/index.d.ts +5 -5
- package/dist/components/base/value-inputs/tags-input.d.ts +38 -12
- package/dist/components/blocks/admin/api-key-list/api-key-list.types.d.ts +1 -1
- package/dist/components/blocks/analytics/format-metric-value.d.ts +11 -1
- package/dist/components/blocks/analytics/index.d.ts +1 -1
- package/dist/components/blocks/analytics/use-metric-format-options.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 +4 -1
- package/dist/components/blocks/commerce/booking-calendar-event-card/booking-calendar-event-card.d.ts +4 -0
- package/dist/components/blocks/commerce/booking-calendar-event-card/booking-calendar-event-card.types.d.ts +2 -2
- package/dist/components/blocks/commerce/cart-summary/cart-summary.d.ts +3 -1
- package/dist/components/blocks/commerce/cart-summary/index.d.ts +2 -2
- package/dist/components/blocks/commerce/cart-summary/types.d.ts +6 -1
- package/dist/components/blocks/commerce/discount-stack/discount-stack.d.ts +3 -1
- package/dist/components/blocks/commerce/discount-stack/index.d.ts +2 -2
- package/dist/components/blocks/commerce/discount-stack/types.d.ts +16 -4
- package/dist/components/blocks/commerce/fulfillment-group/fulfillment-group.d.ts +5 -0
- package/dist/components/blocks/commerce/fulfillment-group/index.d.ts +2 -0
- package/dist/components/blocks/commerce/fulfillment-group/types.d.ts +43 -0
- package/dist/components/blocks/commerce/index.d.ts +13 -5
- package/dist/components/blocks/commerce/inventory-section/types.d.ts +4 -1
- 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/loyalty-points/types.d.ts +1 -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-status/types.d.ts +4 -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 +14 -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/seo-listing/seo-listing-card.d.ts +1 -1
- package/dist/components/blocks/commerce/seo-listing/types.d.ts +3 -1
- package/dist/components/blocks/commerce/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/commerce/vendor-profile/types.d.ts +4 -1
- package/dist/components/blocks/data-display/dense-info-card/dense-info.strings.d.ts +4 -1
- package/dist/components/blocks/data-display/inline-stat/inline-stat.d.ts +4 -1
- package/dist/components/blocks/data-display/metadata/index.d.ts +30 -4
- package/dist/components/features/activities/partials/activity-row.d.ts +6 -2
- package/dist/components/features/activities/partials/tone-tokens.d.ts +0 -6
- package/dist/components/features/global-search/partials/global-search-group-heading.d.ts +15 -0
- package/dist/components/features/global-search/partials/global-search-idle-state.d.ts +1 -1
- package/dist/components/features/global-search/partials/tone-palettes.d.ts +0 -5
- package/dist/components/features/kanban/kanban.d.ts +1 -1
- package/dist/components/features/kanban/kanban.strings.d.ts +1 -1
- package/dist/components/features/kanban/kanban.types.d.ts +2 -2
- package/dist/components/features/media-library/hooks/use-media-library.d.ts +1 -1
- package/dist/components/features/media-library/index.d.ts +1 -1
- package/dist/components/features/media-library/media-library.d.ts +1 -1
- package/dist/components/features/media-library/media-library.strings.d.ts +4 -0
- package/dist/components/features/media-library/media-library.types.d.ts +74 -1
- package/dist/components/features/media-library/partials/media-library-partials.d.ts +3 -3
- package/dist/components/features/mentions/partials/mention-kind-toggles.d.ts +16 -0
- package/dist/components/features/overlays/alert-dialog.d.ts +1 -1
- package/dist/components/features/overlays/dialog.d.ts +1 -1
- package/dist/components/features/overlays/drawer.d.ts +1 -1
- package/dist/components/features/overlays/hooks/use-overlay-actions.d.ts +2 -2
- package/dist/components/features/overlays/hooks/use-overlay-visibility.d.ts +11 -4
- package/dist/components/features/overlays/index.d.ts +1 -1
- package/dist/components/features/overlays/overlay-tone-icon.d.ts +37 -0
- package/dist/components/features/overlays/overlays.types.d.ts +62 -19
- 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/components/product-variants-manager.d.ts +1 -1
- package/dist/components/features/products/partials/index.d.ts +1 -1
- package/dist/components/features/products/partials/product-metric-tile.d.ts +6 -0
- package/dist/components/features/products/partials/product-tone.d.ts +11 -1
- package/dist/components/features/products/products.types.d.ts +11 -3
- package/dist/components/features/resource/index.d.ts +1 -1
- package/dist/components/features/resource/resource.d.ts +1 -1
- package/dist/components/features/resource/resource.types.d.ts +34 -6
- package/dist/components/features/rich-text-editor/index.d.ts +2 -1
- package/dist/components/features/rich-text-editor/partials/image-nodes.d.ts +13 -0
- package/dist/components/features/rich-text-editor/partials/image-uploads.d.ts +66 -0
- package/dist/components/features/rich-text-editor/partials/inline-reference-node.d.ts +19 -0
- package/dist/components/features/rich-text-editor/rich-text-editor.recipes.d.ts +1 -1
- package/dist/components/features/rich-text-editor/rich-text-editor.strings.d.ts +14 -0
- package/dist/components/features/rich-text-editor/rich-text-editor.types.d.ts +45 -0
- package/dist/components/features/rich-text-editor/use-rich-text-images.d.ts +18 -0
- package/dist/components/features/sync/index.d.ts +26 -3
- package/dist/components/features/table/data-table.d.ts +1 -1
- package/dist/components/features/table/partials/cell-renderers.d.ts +1 -1
- package/dist/components/features/table/table.types.d.ts +32 -7
- package/dist/components/layout/page/index.d.ts +1 -1
- package/dist/components/layout/page/page.types.d.ts +51 -4
- 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/date.d.ts +16 -3
- package/dist/components/primitives/dimensions.d.ts +6 -0
- package/dist/components/primitives/duration.d.ts +6 -0
- package/dist/components/primitives/file-size.d.ts +6 -0
- package/dist/components/primitives/index.d.ts +1 -1
- package/dist/components/primitives/initials.d.ts +11 -2
- package/dist/components/primitives/link.d.ts +7 -0
- package/dist/components/primitives/money.d.ts +29 -7
- package/dist/components/primitives/number.d.ts +17 -0
- package/dist/components/primitives/value-typography.d.ts +54 -0
- package/dist/components/primitives/value.d.ts +31 -6
- package/dist/components/typography/heading.d.ts +9 -1
- package/dist/components/typography/label.d.ts +3 -0
- 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/running-text.d.ts +12 -0
- package/dist/components/typography/text-link.d.ts +24 -1
- package/dist/components/typography/text.d.ts +12 -0
- package/dist/components/typography/text.styles.d.ts +35 -13
- package/dist/components/ui/button.d.ts +1 -1
- package/dist/components/ui/checkbox.d.ts +6 -0
- package/dist/components/ui/overlay.recipes.d.ts +6 -2
- package/dist/components/ui/select.d.ts +3 -1
- package/dist/components/ui/switch.d.ts +5 -0
- package/dist/{containers-DqB-bSYE.js → containers-DmWiJa2I.js} +36 -35
- package/dist/containers-DmWiJa2I.js.map +1 -0
- package/dist/{copyable-BTSByfmq.js → copyable-B3Gwgdqc.js} +6 -6
- package/dist/{copyable-BTSByfmq.js.map → copyable-B3Gwgdqc.js.map} +1 -1
- package/dist/data-display-DafIvCl5.js +960 -0
- package/dist/data-display-DafIvCl5.js.map +1 -0
- package/dist/date-BgK3bTdo.js +144 -0
- package/dist/date-BgK3bTdo.js.map +1 -0
- package/dist/date-picker-CF-DtUpF.js +1529 -0
- package/dist/date-picker-CF-DtUpF.js.map +1 -0
- package/dist/date-pickers-BmzxJl5l.js +174 -0
- package/dist/date-pickers-BmzxJl5l.js.map +1 -0
- package/dist/{display-CS6Hbk18.js → display-DsQTVzMz.js} +88 -87
- package/dist/display-DsQTVzMz.js.map +1 -0
- package/dist/{dropdown-menu-D-boNgGO.js → dropdown-menu-E2qmdC7o.js} +23 -16
- package/dist/dropdown-menu-E2qmdC7o.js.map +1 -0
- package/dist/features/activities.js +437 -521
- package/dist/features/activities.js.map +1 -1
- package/dist/features/ai-chat.js +174 -172
- package/dist/features/ai-chat.js.map +1 -1
- package/dist/features/async-preview.js +8 -8
- package/dist/features/async-preview.js.map +1 -1
- package/dist/features/combobox.js +1 -1
- package/dist/features/comments.js +1 -1
- package/dist/features/data-view.js +139 -138
- package/dist/features/data-view.js.map +1 -1
- package/dist/features/email-composer/engine.js +1 -1
- package/dist/features/email-composer.js +353 -352
- package/dist/features/email-composer.js.map +1 -1
- package/dist/features/event-calendar.js +262 -269
- package/dist/features/event-calendar.js.map +1 -1
- package/dist/features/filters.js +1 -1
- package/dist/features/global-search.js +307 -310
- package/dist/features/global-search.js.map +1 -1
- package/dist/features/kanban.js +95 -97
- package/dist/features/kanban.js.map +1 -1
- package/dist/features/map.js +56 -57
- package/dist/features/map.js.map +1 -1
- package/dist/features/media-library.js +914 -824
- 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 +1272 -1311
- package/dist/features/products.js.map +1 -1
- package/dist/features/questionnaire.js +204 -194
- package/dist/features/questionnaire.js.map +1 -1
- package/dist/features/resource-assignment.js +103 -95
- 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 +193 -189
- package/dist/features/schema-form.js.map +1 -1
- package/dist/features/suggestions.js +3 -3
- package/dist/features/sync.js +7 -7
- package/dist/features/sync.js.map +1 -1
- package/dist/features/table.js +1 -1
- package/dist/features/theme-tweaker.js +455 -455
- package/dist/features/theme-tweaker.js.map +1 -1
- package/dist/feedback-qNuMBtRH.js +233 -0
- package/dist/feedback-qNuMBtRH.js.map +1 -0
- package/dist/field-affordance-recipes-qQeIf4lG.js +48 -0
- package/dist/field-affordance-recipes-qQeIf4lG.js.map +1 -0
- package/dist/field-state-recipes-BVA2CWHo.js +12 -0
- package/dist/field-state-recipes-BVA2CWHo.js.map +1 -0
- package/dist/{filters-D6FF8L6s.js → filters-BkHH53uv.js} +414 -412
- package/dist/filters-BkHH53uv.js.map +1 -0
- package/dist/focus-recipes-B653VaLq.js +12 -0
- package/dist/focus-recipes-B653VaLq.js.map +1 -0
- package/dist/{form-field-CZwrkP7m.js → form-field-DUt4UxSV.js} +7 -7
- package/dist/{form-field-CZwrkP7m.js.map → form-field-DUt4UxSV.js.map} +1 -1
- package/dist/form-sizing-By94KzXE.js +130 -0
- package/dist/form-sizing-By94KzXE.js.map +1 -0
- package/dist/{forms-B5NCbkSC.js → forms-Bzha-Y3B.js} +25 -25
- package/dist/forms-Bzha-Y3B.js.map +1 -0
- package/dist/forms-numeric-C0bvjRPZ.js +906 -0
- package/dist/forms-numeric-C0bvjRPZ.js.map +1 -0
- package/dist/{header-kxruN3RM.js → header-BOefOKd1.js} +38 -41
- package/dist/header-BOefOKd1.js.map +1 -0
- package/dist/{hooks-BrlnCwQd.js → hooks-9k_TtmKh.js} +2 -2
- package/dist/{hooks-BrlnCwQd.js.map → hooks-9k_TtmKh.js.map} +1 -1
- package/dist/{http-CdEIHyQf.js → http-D_6rOnzU.js} +2 -2
- package/dist/{http-CdEIHyQf.js.map → http-D_6rOnzU.js.map} +1 -1
- package/dist/icon-badge-CAuKupo9.js +55 -0
- package/dist/icon-badge-CAuKupo9.js.map +1 -0
- package/dist/index.js +7 -7
- package/dist/input-DWhBBBww.js +262 -0
- package/dist/input-DWhBBBww.js.map +1 -0
- package/dist/{input-vxcaNCYC.js → input-Ddi_LSYv.js} +3 -3
- package/dist/{input-vxcaNCYC.js.map → input-Ddi_LSYv.js.map} +1 -1
- package/dist/interaction-recipes-CHr0dJUs.js +24 -0
- package/dist/interaction-recipes-CHr0dJUs.js.map +1 -0
- package/dist/item-DEmDiTlD.js +265 -0
- package/dist/item-DEmDiTlD.js.map +1 -0
- package/dist/layer-recipes-CCpklYME.js +13 -0
- package/dist/layer-recipes-CCpklYME.js.map +1 -0
- package/dist/layout/app-shell.js +1 -1
- package/dist/layout/auth.js +1 -1
- package/dist/layout/containers.js +1 -1
- package/dist/layout/header.js +1 -1
- package/dist/layout/hooks.js +1 -1
- package/dist/layout/navigation.js +1 -1
- package/dist/layout/page.js +1 -1
- package/dist/layout/settings.js +1 -1
- package/dist/layout/sidebar.js +2 -2
- package/dist/layout/workspace.js +1 -1
- package/dist/layout.js +10 -10
- package/dist/lib/affordance-geometry.generated.d.ts +7 -1
- package/dist/lib/field-affordance-recipes.d.ts +41 -1
- package/dist/lib/field-state-recipes.d.ts +9 -6
- package/dist/lib/focus-recipes.d.ts +24 -0
- package/dist/lib/format.d.ts +9 -0
- package/dist/lib/interaction-recipes.d.ts +35 -0
- package/dist/lib/layer-recipes.d.ts +19 -0
- package/dist/lib/money-format.d.ts +30 -0
- package/dist/lib/motion-recipes.d.ts +1 -0
- package/dist/lib/overlay-anatomy-recipes.d.ts +2 -1
- 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 +48 -6
- package/dist/lib/token-merge.generated.d.ts +17 -14
- package/dist/lib/tone-recipes.d.ts +79 -0
- package/dist/lib/track-recipes.d.ts +1 -1
- 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/provider.d.ts +7 -2
- package/dist/lib/ui-provider/store.d.ts +6 -2
- package/dist/lib/ui-provider/types.d.ts +14 -2
- package/dist/lib/utils.js +1 -1
- package/dist/media-gallery-DcTtAaeC.js +203 -0
- package/dist/media-gallery-DcTtAaeC.js.map +1 -0
- package/dist/mentions-D-uyCh01.js +568 -0
- package/dist/mentions-D-uyCh01.js.map +1 -0
- package/dist/{message-SZUNB1eX.js → message-CdHgIWKf.js} +5 -5
- package/dist/{message-SZUNB1eX.js.map → message-CdHgIWKf.js.map} +1 -1
- package/dist/metadata-list-X5rYAKSB.js +394 -0
- package/dist/metadata-list-X5rYAKSB.js.map +1 -0
- package/dist/{motion-recipes-B6jKXEcN.js → motion-recipes-ChBg4HBq.js} +3 -2
- package/dist/{motion-recipes-B6jKXEcN.js.map → motion-recipes-ChBg4HBq.js.map} +1 -1
- package/dist/navigation-D3KwXmaq.js +145 -0
- package/dist/navigation-D3KwXmaq.js.map +1 -0
- package/dist/navigation-HJf5zxlH.js +268 -0
- package/dist/navigation-HJf5zxlH.js.map +1 -0
- package/dist/{navigation-row-recipes-DQEXQcqY.js → navigation-row-recipes-BVowojQw.js} +2 -2
- package/dist/{navigation-row-recipes-DQEXQcqY.js.map → navigation-row-recipes-BVowojQw.js.map} +1 -1
- package/dist/number-DMhe-Vsk.js +352 -0
- package/dist/number-DMhe-Vsk.js.map +1 -0
- package/dist/overflow-tab-bar-sQHXLlwQ.js +280 -0
- package/dist/overflow-tab-bar-sQHXLlwQ.js.map +1 -0
- package/dist/overlay.recipes-8GHqmlb4.js +6 -0
- package/dist/overlay.recipes-8GHqmlb4.js.map +1 -0
- package/dist/overlays-I0axtYA6.js +999 -0
- package/dist/overlays-I0axtYA6.js.map +1 -0
- package/dist/{page-hGmT4nWK.js → page-B5dTH9gE.js} +79 -68
- package/dist/page-B5dTH9gE.js.map +1 -0
- package/dist/page-header-commands-DjzFEq3E.js +126 -0
- package/dist/page-header-commands-DjzFEq3E.js.map +1 -0
- package/dist/{pagination-NLGqRirf.js → pagination-3bPA_a6K.js} +19 -19
- package/dist/{pagination-NLGqRirf.js.map → pagination-3bPA_a6K.js.map} +1 -1
- package/dist/{popover-CghIYdQf.js → popover-Di55PyAI.js} +8 -8
- package/dist/popover-Di55PyAI.js.map +1 -0
- package/dist/{popover-menu-B4PoWhRl.js → popover-menu-B71Tn2Qz.js} +6 -6
- package/dist/{popover-menu-B4PoWhRl.js.map → popover-menu-B71Tn2Qz.js.map} +1 -1
- package/dist/{popover.recipes-QlD4JenO.js → popover.recipes-Bdyhj2db.js} +2 -2
- package/dist/{popover.recipes-QlD4JenO.js.map → popover.recipes-Bdyhj2db.js.map} +1 -1
- package/dist/primitives-B-CkiEMU.js +379 -0
- package/dist/primitives-B-CkiEMU.js.map +1 -0
- package/dist/primitives.js +5 -5
- package/dist/{progress-BroqrAyV.js → progress-rnS8-uAW.js} +11 -11
- package/dist/progress-rnS8-uAW.js.map +1 -0
- package/dist/{receipt-BuJynLgf.js → receipt-D0oswZ0p.js} +6 -6
- package/dist/{receipt-BuJynLgf.js.map → receipt-D0oswZ0p.js.map} +1 -1
- package/dist/rich-text-DvGulsNJ.js +78 -0
- package/dist/rich-text-DvGulsNJ.js.map +1 -0
- package/dist/rich-text-editor-sMU_Scqm.js +1204 -0
- package/dist/rich-text-editor-sMU_Scqm.js.map +1 -0
- package/dist/rich-text-editor.recipes-CadiF_Uu.js +88 -0
- package/dist/rich-text-editor.recipes-CadiF_Uu.js.map +1 -0
- package/dist/rich-text-editor.strings-CB59ekH2.js +38 -0
- package/dist/rich-text-editor.strings-CB59ekH2.js.map +1 -0
- package/dist/safe-image-src-C6kQSMBZ.js +17 -0
- package/dist/safe-image-src-C6kQSMBZ.js.map +1 -0
- package/dist/sanitize-html-DsQmI48u.js +92 -0
- package/dist/sanitize-html-DsQmI48u.js.map +1 -0
- package/dist/scroll-area-Bt_vXY2b.js +48 -0
- package/dist/scroll-area-Bt_vXY2b.js.map +1 -0
- package/dist/{separator-BNIgG3au.js → separator-C8DlRGwF.js} +4 -4
- package/dist/separator-C8DlRGwF.js.map +1 -0
- package/dist/{separator-BhtFyo4x.js → separator-CYHnjsAb.js} +2 -2
- package/dist/{separator-BhtFyo4x.js.map → separator-CYHnjsAb.js.map} +1 -1
- package/dist/services/actions/action-adapters.d.ts +22 -0
- package/dist/services/actions/index.d.ts +1 -1
- package/dist/services/actions.js +23 -6
- package/dist/services/actions.js.map +1 -1
- package/dist/settings-CQW3b-Cu.js +170 -0
- package/dist/settings-CQW3b-Cu.js.map +1 -0
- package/dist/sheet-4SEvVYzA.js +210 -0
- package/dist/sheet-4SEvVYzA.js.map +1 -0
- package/dist/{sidebar-CyR4XKwR.js → sidebar-C7WWR29L.js} +181 -180
- package/dist/sidebar-C7WWR29L.js.map +1 -0
- package/dist/sidebar-d7Dg80ln.js +511 -0
- package/dist/sidebar-d7Dg80ln.js.map +1 -0
- package/dist/{skeleton-3F0uhYn3.js → skeleton-Cz890JZF.js} +10 -10
- package/dist/skeleton-Cz890JZF.js.map +1 -0
- package/dist/smart-card-lFKxn5Hu.js +595 -0
- package/dist/smart-card-lFKxn5Hu.js.map +1 -0
- package/dist/{spinner-Cpf7oRkF.js → spinner-fa3h1Aif.js} +10 -8
- package/dist/spinner-fa3h1Aif.js.map +1 -0
- package/dist/{structure-CRdqVawd.js → structure-DC2dygdA.js} +3 -3
- package/dist/{structure-CRdqVawd.js.map → structure-DC2dygdA.js.map} +1 -1
- package/dist/{structure.recipes-Bqhf9oIh.js → structure.recipes-EPz60cU8.js} +37 -19
- package/dist/structure.recipes-EPz60cU8.js.map +1 -0
- package/dist/style.css +1 -1
- package/dist/surface-recipes-BKRVW8Os.js +43 -0
- package/dist/surface-recipes-BKRVW8Os.js.map +1 -0
- package/dist/table-CIKyLUsy.js +163 -0
- package/dist/table-CIKyLUsy.js.map +1 -0
- package/dist/{table-CcRDZiLP.js → table-CrcLN9Io.js} +544 -530
- package/dist/table-CrcLN9Io.js.map +1 -0
- package/dist/tabs-DwBJfjxX.js +190 -0
- package/dist/tabs-DwBJfjxX.js.map +1 -0
- package/dist/{text-inputs-DsR56TR-.js → text-inputs-aaK9wcDT.js} +151 -155
- package/dist/text-inputs-aaK9wcDT.js.map +1 -0
- package/dist/{text.styles-Q4sGAIgA.js → text.styles-g4He6UIW.js} +17 -14
- package/dist/text.styles-g4He6UIW.js.map +1 -0
- package/dist/theme.css +16 -12
- package/dist/themes/green.css +24 -0
- package/dist/{timelines-D1pkt3se.js → timelines-C_SBwHNP.js} +154 -164
- package/dist/timelines-C_SBwHNP.js.map +1 -0
- package/dist/tone-recipes-CPoExcTE.js +70 -0
- package/dist/tone-recipes-CPoExcTE.js.map +1 -0
- package/dist/tooltip-CsfgrfS7.js +111 -0
- package/dist/tooltip-CsfgrfS7.js.map +1 -0
- package/dist/track-recipes-CDcKmndW.js +10 -0
- package/dist/track-recipes-CDcKmndW.js.map +1 -0
- package/dist/{tree-BtmYyMZV.js → tree-BiKhg8AY.js} +72 -70
- package/dist/tree-BiKhg8AY.js.map +1 -0
- package/dist/typography/rich-text.js +1 -1
- package/dist/typography-DTRkE9zL.js +117 -0
- package/dist/typography-DTRkE9zL.js.map +1 -0
- package/dist/typography.js +2 -2
- package/dist/{ui-provider-DRPn3qNl.js → ui-provider-1D_NSYzO.js} +30 -23
- package/dist/ui-provider-1D_NSYzO.js.map +1 -0
- package/dist/ui-provider.js +3 -3
- package/dist/{upload-CDbYw1WN.js → upload-BO8-CLN6.js} +294 -293
- package/dist/upload-BO8-CLN6.js.map +1 -0
- package/dist/{upload-queue-CNd_hH_a.js → upload-queue-EOC8g1gf.js} +133 -138
- package/dist/upload-queue-EOC8g1gf.js.map +1 -0
- package/dist/upload.recipes-BbxTqrCT.js +61 -0
- package/dist/upload.recipes-BbxTqrCT.js.map +1 -0
- package/dist/{usage-card-VyJLUwRr.js → usage-card-obRaBskq.js} +42 -43
- package/dist/{usage-card-VyJLUwRr.js.map → usage-card-obRaBskq.js.map} +1 -1
- package/dist/{utils-BvH9PSmq.js → utils-l5LpDw2z.js} +264 -62
- package/dist/utils-l5LpDw2z.js.map +1 -0
- package/dist/value-inputs-TAYMX111.js +947 -0
- package/dist/value-inputs-TAYMX111.js.map +1 -0
- package/dist/value-typography-b8wpz1eX.js +116 -0
- package/dist/value-typography-b8wpz1eX.js.map +1 -0
- package/dist/workspace-DH0v0KcB.js +407 -0
- package/dist/workspace-DH0v0KcB.js.map +1 -0
- package/docs/consumer-skill/SKILL.md +62 -50
- package/docs/consumer-skill/examples/app-layout.tsx +3 -5
- package/docs/consumer-skill/examples/composition.tsx +3 -3
- package/docs/consumer-skill/examples/detail.tsx +59 -13
- package/docs/consumer-skill/examples/edit.tsx +2 -2
- package/docs/consumer-skill/examples/layout-blocks.tsx +20 -0
- package/docs/consumer-skill/examples/manifest.json +28 -6
- package/docs/consumer-skill/examples/receipt.tsx +2 -2
- package/docs/consumer-skill/examples/scoped-directory.tsx +3 -3
- 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 +139 -24
- package/docs/consumer-skill/references/design-contract.md +12 -3
- package/docs/consumer-skill/references/discovery.md +4 -0
- package/docs/consumer-skill/references/installation.md +33 -1
- package/docs/consumer-skill/references/integration.md +32 -1
- package/docs/consumer-skill/references/public-api.json +1051 -610
- package/docs/consumer-skill/references/review.md +44 -8
- package/docs/consumer-skill/references/theming.md +14 -4
- package/docs/consumer-skill/references/tokens.json +5 -2
- package/docs/consumer-skill/references/workflows.md +30 -9
- package/docs/consumer-skill/scripts/composition-policy.mjs +127 -6
- package/docs/consumer-skill/scripts/discovery.mjs +11 -3
- package/docs/consumer-skill/scripts/pin-button-defaults.mjs +95 -0
- package/docs/consumer-skill/scripts/surface-policy.mjs +139 -5
- package/package.json +13 -3
- package/dist/accordion-BRTcsp8J.js +0 -205
- package/dist/accordion-BRTcsp8J.js.map +0 -1
- package/dist/action-menu-Drxw_vJk.js +0 -265
- package/dist/action-menu-Drxw_vJk.js.map +0 -1
- package/dist/affordance-geometry.generated-CL84ZN9A.js.map +0 -1
- package/dist/ai-artifact-DLVdK0Py.js.map +0 -1
- package/dist/attachment-DbjUWsP0.js +0 -244
- package/dist/attachment-DbjUWsP0.js.map +0 -1
- package/dist/auth-CAQcasMV.js.map +0 -1
- package/dist/avatar-Bu2HhitA.js.map +0 -1
- package/dist/badge-CzId1Wlm.js +0 -92
- package/dist/badge-CzId1Wlm.js.map +0 -1
- package/dist/breadcrumbs-BuYz5SDU.js +0 -128
- package/dist/breadcrumbs-BuYz5SDU.js.map +0 -1
- package/dist/button-BZDasD04.js +0 -651
- package/dist/button-BZDasD04.js.map +0 -1
- package/dist/button-BZyfTvwm.js.map +0 -1
- package/dist/buttons-D_6KJvEE.js +0 -99
- package/dist/buttons-D_6KJvEE.js.map +0 -1
- package/dist/cards-qGSErLw_.js.map +0 -1
- package/dist/chart-Bsc5BICK.js.map +0 -1
- package/dist/checkbox-BQNDjUCh.js +0 -34
- package/dist/checkbox-BQNDjUCh.js.map +0 -1
- package/dist/choice-inputs-Mk3iWbhr.js +0 -725
- package/dist/choice-inputs-Mk3iWbhr.js.map +0 -1
- package/dist/code-block-DzHKRybS.js +0 -183
- package/dist/code-block-DzHKRybS.js.map +0 -1
- package/dist/combobox-BFnbJJp3.js.map +0 -1
- package/dist/combobox-hozNwUcc.js +0 -847
- package/dist/combobox-hozNwUcc.js.map +0 -1
- package/dist/command-BnmSchli.js.map +0 -1
- package/dist/comments-u5L0OGip.js.map +0 -1
- package/dist/containers-DqB-bSYE.js.map +0 -1
- package/dist/data-display-Bihs9Ven.js +0 -1342
- package/dist/data-display-Bihs9Ven.js.map +0 -1
- package/dist/date-DOKhJPu7.js +0 -140
- package/dist/date-DOKhJPu7.js.map +0 -1
- package/dist/date-picker-DzP5HQq7.js +0 -1541
- package/dist/date-picker-DzP5HQq7.js.map +0 -1
- package/dist/date-pickers-BpgGz7S-.js +0 -196
- package/dist/date-pickers-BpgGz7S-.js.map +0 -1
- package/dist/display-CS6Hbk18.js.map +0 -1
- package/dist/dropdown-menu-D-boNgGO.js.map +0 -1
- package/dist/feedback-CJkUAapr.js +0 -233
- package/dist/feedback-CJkUAapr.js.map +0 -1
- package/dist/field-affordance-recipes-uKY4MsZ_.js +0 -25
- package/dist/field-affordance-recipes-uKY4MsZ_.js.map +0 -1
- package/dist/field-state-recipes-DQQpiLWC.js +0 -11
- package/dist/field-state-recipes-DQQpiLWC.js.map +0 -1
- package/dist/filters-D6FF8L6s.js.map +0 -1
- package/dist/form-sizing-QP8aIRaW.js +0 -103
- package/dist/form-sizing-QP8aIRaW.js.map +0 -1
- package/dist/format-iamDSqs2.js +0 -110
- package/dist/format-iamDSqs2.js.map +0 -1
- package/dist/forms-B5NCbkSC.js.map +0 -1
- package/dist/forms-numeric-Crrm80Lm.js +0 -867
- package/dist/forms-numeric-Crrm80Lm.js.map +0 -1
- package/dist/header-kxruN3RM.js.map +0 -1
- package/dist/icon-badge-Btc6pQrp.js +0 -53
- package/dist/icon-badge-Btc6pQrp.js.map +0 -1
- package/dist/input-SX9V0AL3.js +0 -255
- package/dist/input-SX9V0AL3.js.map +0 -1
- package/dist/item-DE4YnuJx.js +0 -258
- package/dist/item-DE4YnuJx.js.map +0 -1
- package/dist/media-gallery-DLp3HAz0.js +0 -201
- package/dist/media-gallery-DLp3HAz0.js.map +0 -1
- package/dist/mentions-Cl0Kt_Pd.js +0 -565
- package/dist/mentions-Cl0Kt_Pd.js.map +0 -1
- package/dist/navigation-DnQSNMT0.js +0 -276
- package/dist/navigation-DnQSNMT0.js.map +0 -1
- package/dist/navigation-DyytsLRB.js +0 -265
- package/dist/navigation-DyytsLRB.js.map +0 -1
- package/dist/number-DasMFWEG.js +0 -269
- package/dist/number-DasMFWEG.js.map +0 -1
- package/dist/overlay.recipes-BxW5FIfK.js +0 -6
- package/dist/overlay.recipes-BxW5FIfK.js.map +0 -1
- package/dist/overlays-DUbs1KEi.js +0 -1011
- package/dist/overlays-DUbs1KEi.js.map +0 -1
- package/dist/page-hGmT4nWK.js.map +0 -1
- package/dist/page-header-D8nERkn5.js +0 -112
- package/dist/page-header-D8nERkn5.js.map +0 -1
- package/dist/popover-CghIYdQf.js.map +0 -1
- package/dist/primitives-C7ff0QaI.js +0 -337
- package/dist/primitives-C7ff0QaI.js.map +0 -1
- package/dist/progress-BroqrAyV.js.map +0 -1
- package/dist/rich-text-DlxDOtf4.js +0 -32
- package/dist/rich-text-DlxDOtf4.js.map +0 -1
- package/dist/rich-text-editor-BKyG7rWz.js +0 -574
- package/dist/rich-text-editor-BKyG7rWz.js.map +0 -1
- package/dist/rich-text-editor.recipes-B72Nfuze.js +0 -81
- package/dist/rich-text-editor.recipes-B72Nfuze.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/sanitize-html-BG9FGe-j.js +0 -64
- package/dist/sanitize-html-BG9FGe-j.js.map +0 -1
- package/dist/scroll-area-D-pIhEKl.js +0 -47
- package/dist/scroll-area-D-pIhEKl.js.map +0 -1
- package/dist/separator-BNIgG3au.js.map +0 -1
- package/dist/settings-DOTOzeZ2.js +0 -161
- package/dist/settings-DOTOzeZ2.js.map +0 -1
- package/dist/sheet-BFhrNehm.js +0 -205
- package/dist/sheet-BFhrNehm.js.map +0 -1
- package/dist/sidebar-CyR4XKwR.js.map +0 -1
- package/dist/sidebar-SvGJ0Zwi.js +0 -506
- package/dist/sidebar-SvGJ0Zwi.js.map +0 -1
- package/dist/skeleton-3F0uhYn3.js.map +0 -1
- package/dist/smart-card-DjGVV2xr.js +0 -584
- package/dist/smart-card-DjGVV2xr.js.map +0 -1
- package/dist/spinner-Cpf7oRkF.js.map +0 -1
- package/dist/structure.recipes-Bqhf9oIh.js.map +0 -1
- package/dist/surface-recipes-Dd__PD-w.js +0 -28
- package/dist/surface-recipes-Dd__PD-w.js.map +0 -1
- package/dist/table-CLtJTxoR.js +0 -147
- package/dist/table-CLtJTxoR.js.map +0 -1
- package/dist/table-CcRDZiLP.js.map +0 -1
- package/dist/tabs-BNgu7g0u.js +0 -188
- package/dist/tabs-BNgu7g0u.js.map +0 -1
- package/dist/text-inputs-DsR56TR-.js.map +0 -1
- package/dist/text.styles-Q4sGAIgA.js.map +0 -1
- package/dist/timelines-D1pkt3se.js.map +0 -1
- package/dist/track-recipes-LLPNVwFg.js +0 -10
- package/dist/track-recipes-LLPNVwFg.js.map +0 -1
- package/dist/tree-BtmYyMZV.js.map +0 -1
- package/dist/typography-BxQgiZyw.js +0 -96
- package/dist/typography-BxQgiZyw.js.map +0 -1
- package/dist/ui-provider-DRPn3qNl.js.map +0 -1
- package/dist/upload-CDbYw1WN.js.map +0 -1
- package/dist/upload-queue-CNd_hH_a.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-BvH9PSmq.js.map +0 -1
- package/dist/value-inputs-D0KCrfVC.js +0 -840
- package/dist/value-inputs-D0KCrfVC.js.map +0 -1
- package/dist/workspace-CcR8r-Nt.js +0 -395
- package/dist/workspace-CcR8r-Nt.js.map +0 -1
- /package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-list.strings.d.ts +0 -0
|
@@ -141,10 +141,14 @@ export interface MediaLibraryItemRenderContext<TItem = MediaLibraryItem> {
|
|
|
141
141
|
selected: boolean;
|
|
142
142
|
/** Whether one asset or several can be selected at a time. */
|
|
143
143
|
selectionMode: MediaLibrarySelectionMode;
|
|
144
|
+
/** Whether the library is in selection mode, where activating an asset toggles it. */
|
|
145
|
+
selecting: boolean;
|
|
144
146
|
/** Reads id, name, URL, type, and size off your own asset shape. */
|
|
145
147
|
accessors: ResolvedMediaLibraryAccessors<TItem>;
|
|
146
148
|
toggle: () => void;
|
|
147
149
|
openDetails: () => void;
|
|
150
|
+
/** Opens the asset: `onItemOpen` when supplied, otherwise the detail panel. */
|
|
151
|
+
open: () => void;
|
|
148
152
|
}
|
|
149
153
|
export interface MediaLibraryDetailRenderContext<TItem = MediaLibraryItem> {
|
|
150
154
|
/** Reads id, name, URL, type, and size off your own asset shape. */
|
|
@@ -187,6 +191,13 @@ export interface MediaLibraryState<TItem = MediaLibraryItem> {
|
|
|
187
191
|
selectedSet: Set<string>;
|
|
188
192
|
toggleSelection: (id: string) => void;
|
|
189
193
|
clearSelection: () => void;
|
|
194
|
+
/**
|
|
195
|
+
* Whether selection mode is on: requested explicitly (`setSelecting(true)`,
|
|
196
|
+
* a picker) or implied because at least one asset is selected.
|
|
197
|
+
*/
|
|
198
|
+
selecting: boolean;
|
|
199
|
+
/** Turns selection mode on or off. Turning it off also clears the selection. */
|
|
200
|
+
setSelecting: (selecting: boolean) => void;
|
|
190
201
|
clearFilters: () => void;
|
|
191
202
|
loading: boolean;
|
|
192
203
|
error: unknown;
|
|
@@ -298,6 +309,20 @@ export interface UseMediaLibraryOptions<TItem = MediaLibraryItem> {
|
|
|
298
309
|
defaultUploadOptions?: Partial<MediaLibraryUploadOptions>;
|
|
299
310
|
/** Fired with the fully resolved upload options whenever they change. */
|
|
300
311
|
onUploadOptionsChange?: (options: MediaLibraryUploadOptions) => void;
|
|
312
|
+
/**
|
|
313
|
+
* Explicit selection mode, for controlled use. Selection mode is also on
|
|
314
|
+
* whenever an asset is selected; turning it off clears the selection.
|
|
315
|
+
*/
|
|
316
|
+
selecting?: boolean;
|
|
317
|
+
/**
|
|
318
|
+
* Explicit selection mode on first render for uncontrolled use. Default:
|
|
319
|
+
* `false`, so activating an asset opens it. `MediaLibrary` starts selecting
|
|
320
|
+
* when `confirmOnSelect` is set and `MediaLibraryDialog` always starts
|
|
321
|
+
* selecting, because both are pickers.
|
|
322
|
+
*/
|
|
323
|
+
defaultSelecting?: boolean;
|
|
324
|
+
/** Fired when explicit selection mode is turned on or off. */
|
|
325
|
+
onSelectingChange?: (selecting: boolean) => void;
|
|
301
326
|
}
|
|
302
327
|
export interface MediaLibraryProps<TItem = MediaLibraryItem> extends Omit<ComponentPropsWithoutRef<'section'>, 'children' | 'defaultValue' | 'onError' | 'onSelect' | 'title'>, UseMediaLibraryOptions<TItem> {
|
|
303
328
|
/** Heading above the browser. */
|
|
@@ -306,6 +331,12 @@ export interface MediaLibraryProps<TItem = MediaLibraryItem> extends Omit<Compon
|
|
|
306
331
|
titleSuffix?: ReactNode;
|
|
307
332
|
/** Requests replacement of the inspected asset. The consumer owns file selection, persistence, identity, and refreshed `items`; omitted callbacks hide Replace file. */
|
|
308
333
|
onItemReplace?: (item: TItem) => void;
|
|
334
|
+
/**
|
|
335
|
+
* Fired when an asset is activated outside selection mode (click, Enter or
|
|
336
|
+
* Space) — for a preview, a lightbox or navigation. Without it the asset's
|
|
337
|
+
* detail panel opens. In selection mode activation toggles the asset instead.
|
|
338
|
+
*/
|
|
339
|
+
onItemOpen?: (item: TItem) => void;
|
|
309
340
|
/** Supporting line under the title. */
|
|
310
341
|
description?: ReactNode;
|
|
311
342
|
/** Copy for the confirm action. */
|
|
@@ -333,6 +364,15 @@ export interface MediaLibraryProps<TItem = MediaLibraryItem> extends Omit<Compon
|
|
|
333
364
|
onCancel?: () => void;
|
|
334
365
|
/** Fired after the surface closes, however it was dismissed. */
|
|
335
366
|
onClose?: () => void;
|
|
367
|
+
/**
|
|
368
|
+
* Bulk actions for the selected assets, rendered in a floating
|
|
369
|
+
* `BatchActionBar` (count, these actions, Clear) while assets are selected.
|
|
370
|
+
* Browsing only: a picker (`onConfirm` without `confirmOnSelect`, or
|
|
371
|
+
* `MediaLibraryDialog`) reports its selection in the footer instead, so the
|
|
372
|
+
* bar is not rendered there. While the bar is in use the library tab drops
|
|
373
|
+
* the picker footer; the upload tab keeps its own.
|
|
374
|
+
*/
|
|
375
|
+
bulkActions?: (context: MediaLibraryBulkActionContext<TItem>) => ReactNode;
|
|
336
376
|
/** Overrides the library's own copy. */
|
|
337
377
|
strings?: StringsProp<MediaLibraryStrings>;
|
|
338
378
|
/** Replaces individual regions — the toolbar, cards, detail panel, or footer. */
|
|
@@ -340,8 +380,21 @@ export interface MediaLibraryProps<TItem = MediaLibraryItem> extends Omit<Compon
|
|
|
340
380
|
/** Height utility for the scrollable browse region. */
|
|
341
381
|
heightClassName?: string;
|
|
342
382
|
}
|
|
383
|
+
/** What a media library bulk action receives; mirrors the product variants' bulk context. */
|
|
384
|
+
export interface MediaLibraryBulkActionContext<TItem = MediaLibraryItem> {
|
|
385
|
+
/** The selected assets that are loaded. */
|
|
386
|
+
selectedItems: TItem[];
|
|
387
|
+
/** Every selected id, including any not currently loaded. */
|
|
388
|
+
selectedIds: string[];
|
|
389
|
+
selectedCount: number;
|
|
390
|
+
/** Assets passing the current query and filters, not the whole library. */
|
|
391
|
+
visibleCount: number;
|
|
392
|
+
/** Assets in the whole library. */
|
|
393
|
+
totalCount: number;
|
|
394
|
+
clearSelection: () => void;
|
|
395
|
+
}
|
|
343
396
|
/** The media library in a modal, for picking assets from elsewhere in a page. */
|
|
344
|
-
export interface MediaLibraryDialogProps<TItem = MediaLibraryItem> extends Omit<MediaLibraryProps<TItem>, 'title' | 'description'> {
|
|
397
|
+
export interface MediaLibraryDialogProps<TItem = MediaLibraryItem> extends Omit<MediaLibraryProps<TItem>, 'title' | 'description' | 'bulkActions'> {
|
|
345
398
|
/** Visibility, for controlled use. Omit to let `trigger` own it. */
|
|
346
399
|
open?: boolean;
|
|
347
400
|
/** Fired whenever the dialog wants to open or close. */
|
|
@@ -430,6 +483,14 @@ export interface MediaLibraryCardProps<TItem = MediaLibraryItem> {
|
|
|
430
483
|
/** Fired when an entry is toggled. */
|
|
431
484
|
onToggle?: () => void;
|
|
432
485
|
onDetails?: () => void;
|
|
486
|
+
/**
|
|
487
|
+
* Opens the asset. When set and the card is not `selecting`, activating the
|
|
488
|
+
* card opens it and a separate check control selects it. Without it,
|
|
489
|
+
* activating the card toggles its selection.
|
|
490
|
+
*/
|
|
491
|
+
onOpen?: () => void;
|
|
492
|
+
/** Selection mode: activating the card toggles it and the check shows on every card. */
|
|
493
|
+
selecting?: boolean;
|
|
433
494
|
/** Merged onto the outermost node. */
|
|
434
495
|
className?: string;
|
|
435
496
|
}
|
|
@@ -447,6 +508,14 @@ export interface MediaLibraryListProps<TItem = MediaLibraryItem> {
|
|
|
447
508
|
/** Fired when an entry is toggled. */
|
|
448
509
|
onToggle: (id: string) => void;
|
|
449
510
|
onDetails: (id: string) => void;
|
|
511
|
+
/**
|
|
512
|
+
* Opens an asset. When set and the list is not `selecting`, activating a row
|
|
513
|
+
* opens it and a separate check control selects it. Without it, activating a
|
|
514
|
+
* row toggles its selection.
|
|
515
|
+
*/
|
|
516
|
+
onOpen?: (id: string) => void;
|
|
517
|
+
/** Selection mode: activating a row toggles it. */
|
|
518
|
+
selecting?: boolean;
|
|
450
519
|
}
|
|
451
520
|
export interface MediaLibraryDetailPanelProps<TItem = MediaLibraryItem> {
|
|
452
521
|
/** The asset this row or card represents. */
|
|
@@ -510,6 +579,10 @@ export interface MediaLibraryToolbarProps {
|
|
|
510
579
|
onClearFilters: () => void;
|
|
511
580
|
/** Content at the end of the toolbar row. */
|
|
512
581
|
toolbarEnd?: ReactNode;
|
|
582
|
+
/** Whether selection mode is on; drives the pressed state of the Select toggle. */
|
|
583
|
+
selecting?: boolean;
|
|
584
|
+
/** Renders the Select toggle, which turns selection mode on or off. */
|
|
585
|
+
onSelectingChange?: (selecting: boolean) => void;
|
|
513
586
|
}
|
|
514
587
|
export interface MediaLibraryFooterSummaryProps {
|
|
515
588
|
/** Which tab is showing — browse or upload. */
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { MediaLibraryCardProps, MediaLibraryDetailPanelProps, MediaLibraryEmptyStateProps, MediaLibraryFooterActionsProps, MediaLibraryFooterProps, MediaLibraryFooterSummaryProps, MediaLibraryListProps, MediaLibraryToolbarProps, MediaLibraryUploadPanelProps } from '../media-library.types';
|
|
2
2
|
export declare function MediaLibraryEmptyState({ icon, title, description, action, className, }: MediaLibraryEmptyStateProps): import("react").JSX.Element;
|
|
3
|
-
export declare function MediaLibraryToolbar({ query, type, typeFilters, collection, sort, view, collections, strings, onQueryChange, onTypeChange, onCollectionChange, onSortChange, onViewChange, onClearFilters, toolbarEnd, }: MediaLibraryToolbarProps): import("react").JSX.Element;
|
|
4
|
-
export declare function MediaLibraryCard<TItem>({ item, selected, density, showMeta, accessors, strings, onToggle, onDetails, className, }: MediaLibraryCardProps<TItem>): import("react").JSX.Element;
|
|
5
|
-
export declare function MediaLibraryList<TItem>({ items, selectedSet, accessors, strings, onToggle, onDetails, }: MediaLibraryListProps<TItem>): import("react").JSX.Element;
|
|
3
|
+
export declare function MediaLibraryToolbar({ query, type, typeFilters, collection, sort, view, collections, strings, onQueryChange, onTypeChange, onCollectionChange, onSortChange, onViewChange, onClearFilters, toolbarEnd, selecting, onSelectingChange, }: MediaLibraryToolbarProps): import("react").JSX.Element;
|
|
4
|
+
export declare function MediaLibraryCard<TItem>({ item, selected, density, showMeta, accessors, strings, onToggle, onDetails, onOpen, selecting, className, }: MediaLibraryCardProps<TItem>): import("react").JSX.Element;
|
|
5
|
+
export declare function MediaLibraryList<TItem>({ items, selectedSet, accessors, strings, onToggle, onDetails, onOpen, selecting, }: MediaLibraryListProps<TItem>): import("react").JSX.Element;
|
|
6
6
|
export declare function MediaLibraryDetailPanel<TItem>({ item, collections, accessors, strings, onClose, onUpdate, onRemove, onReplace, renderDetail, }: MediaLibraryDetailPanelProps<TItem>): import("react").JSX.Element | null;
|
|
7
7
|
export declare function MediaLibraryUploadPanel({ stagedFiles, uploadOptions, collections, uploading, strings, onFiles, onRemoveFile, onOptionsChange, empty, }: MediaLibraryUploadPanelProps): import("react").JSX.Element;
|
|
8
8
|
export declare function MediaLibraryFooterSummary({ tab, selectedIds, selectionMode, stagedFiles, strings, onClearSelection, className, }: MediaLibraryFooterSummaryProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { MentionResource, MentionSuggestion } from '../mentions.types';
|
|
2
|
+
interface MentionKindTogglesProps<TResource extends string> {
|
|
3
|
+
kinds: ReadonlyArray<TResource>;
|
|
4
|
+
activeKind: TResource | null;
|
|
5
|
+
resources?: Partial<Record<TResource, MentionResource<TResource>>>;
|
|
6
|
+
/** Per-kind results; a count follows the label when present. */
|
|
7
|
+
counts?: Readonly<Record<string, ReadonlyArray<MentionSuggestion<TResource>>>>;
|
|
8
|
+
onKindChange: (kind: TResource) => void;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* The resource-kind filter shared by the inline suggestions and the picker:
|
|
12
|
+
* compact toggles that press with the accent fill and hover with muted, like
|
|
13
|
+
* every other toggle, rather than a primary command fill.
|
|
14
|
+
*/
|
|
15
|
+
export declare function MentionKindToggles<TResource extends string>({ kinds, activeKind, resources, counts, onKindChange, }: MentionKindTogglesProps<TResource>): import("react").JSX.Element;
|
|
16
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ConfirmDialogProps } from './overlays.types';
|
|
2
|
-
declare function ConfirmDialogImpl({ open, onOpenChange, onClose, children, title, description, visuallyHideHeader, className, contentClassName, initialFocusRef, closeOnEscape, strings: customStrings, showCancel, showConfirm, onCancel, onConfirm, onAsyncConfirm, onError, closeOnAsyncComplete, confirmTone, confirmStyle, loading, formId, footer, tone, showIcon, alertMessage, trigger, destructive, }: ConfirmDialogProps): import("react").JSX.Element;
|
|
2
|
+
declare function ConfirmDialogImpl({ open, onOpenChange, onClose, children, title, description, visuallyHideHeader, className, contentClassName, surfaceStyle, initialFocusRef, closeOnEscape, strings: customStrings, showCancel, showConfirm, onCancel, onConfirm, onAsyncConfirm, onError, closeOnAsyncComplete, confirmTone, confirmStyle, loading, formId, footer, tone, showIcon, alertMessage, trigger, destructive, align, }: ConfirmDialogProps): import("react").JSX.Element;
|
|
3
3
|
export declare const ConfirmDialog: import("react").MemoExoticComponent<typeof ConfirmDialogImpl>;
|
|
4
4
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ActionDialogProps } from './overlays.types';
|
|
2
|
-
declare function ActionDialogImpl({ open, onOpenChange, onClose, children, title, description, visuallyHideHeader, className, contentClassName, showCloseButton, surfaceStyle, initialFocusRef, closeOnEscape, closeOnBackdropClick, strings: customStrings, showCancel, showConfirm, onCancel, onConfirm, onAsyncConfirm, onError, closeOnAsyncComplete, confirmTone, confirmStyle, loading, formId, footer, emphasis, tone, showIcon, alertMessage, size, trigger, }: ActionDialogProps): import("react").JSX.Element;
|
|
2
|
+
declare function ActionDialogImpl({ open, onOpenChange, onClose, children, title, description, visuallyHideHeader, className, contentClassName, showCloseButton, surfaceStyle, initialFocusRef, closeOnEscape, closeOnBackdropClick, strings: customStrings, showCancel, showConfirm, onCancel, onConfirm, onAsyncConfirm, onError, closeOnAsyncComplete, confirmTone, confirmStyle, loading, formId, footer, emphasis, tone, showIcon, alertMessage, size, trigger, align, }: ActionDialogProps): import("react").JSX.Element;
|
|
3
3
|
export declare const ActionDialog: import("react").MemoExoticComponent<typeof ActionDialogImpl>;
|
|
4
4
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ActionDrawerProps } from './overlays.types';
|
|
2
|
-
declare function ActionDrawerImpl({ open, onOpenChange, onClose, children, title, description, visuallyHideHeader, showCloseButton, className, contentClassName, initialFocusRef, closeOnEscape, closeOnBackdropClick, strings: customStrings, showCancel, showConfirm, onCancel, onConfirm, onAsyncConfirm, onError, closeOnAsyncComplete, confirmTone, confirmStyle, loading, formId, footer, emphasis, tone, showIcon, alertMessage, direction, width, showFooter, modal, trigger, }: ActionDrawerProps): import("react").JSX.Element;
|
|
2
|
+
declare function ActionDrawerImpl({ open, onOpenChange, onClose, children, title, description, visuallyHideHeader, showCloseButton, className, contentClassName, surfaceStyle, initialFocusRef, closeOnEscape, closeOnBackdropClick, strings: customStrings, showCancel, showConfirm, onCancel, onConfirm, onAsyncConfirm, onError, closeOnAsyncComplete, confirmTone, confirmStyle, loading, formId, footer, emphasis, tone, showIcon, alertMessage, direction, width, showFooter, modal, trigger, }: ActionDrawerProps): import("react").JSX.Element;
|
|
3
3
|
export declare const ActionDrawer: import("react").MemoExoticComponent<typeof ActionDrawerImpl>;
|
|
4
4
|
export {};
|
|
@@ -7,8 +7,8 @@ export interface UseOverlayActionsOptions extends Pick<OverlayActionProps, 'onCo
|
|
|
7
7
|
customStrings?: StringsProp<OverlayStrings>;
|
|
8
8
|
emphasis?: boolean;
|
|
9
9
|
tone?: OverlayTone;
|
|
10
|
-
/** Called when `onAsyncConfirm` throws
|
|
11
|
-
*
|
|
10
|
+
/** Called when `onAsyncConfirm` throws; the consumer reports or retries.
|
|
11
|
+
* Without it the library logs the rejection in development only. */
|
|
12
12
|
onError?: (error: unknown) => void;
|
|
13
13
|
}
|
|
14
14
|
export interface UseOverlayActionsReturn {
|
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
import { type Dispatch, type SetStateAction } from 'react';
|
|
2
2
|
export type OverlayOpenSetter = Dispatch<SetStateAction<boolean>>;
|
|
3
3
|
export interface OverlayVisibilityProps {
|
|
4
|
+
/** Current visibility. */
|
|
4
5
|
open: boolean;
|
|
5
|
-
/**
|
|
6
|
+
/** Requests a visibility change; spread both onto an overlay. */
|
|
6
7
|
onOpenChange: (open: boolean) => void;
|
|
7
8
|
}
|
|
8
9
|
export interface UseOverlayVisibilityOptions {
|
|
10
|
+
/** Initial visibility when uncontrolled. Default: `false`. */
|
|
9
11
|
defaultOpen?: boolean;
|
|
12
|
+
/** Controlled visibility. Omit to let the hook own it. */
|
|
10
13
|
open?: boolean;
|
|
11
|
-
/** Fired
|
|
14
|
+
/** Fired once for every actual visibility change. */
|
|
12
15
|
onOpenChange?: (open: boolean) => void;
|
|
13
|
-
/** Fired
|
|
16
|
+
/** Fired after a change to open. */
|
|
14
17
|
onOpen?: () => void;
|
|
18
|
+
/** Fired after a change to closed, whatever dismissed the overlay. */
|
|
15
19
|
onClose?: () => void;
|
|
16
20
|
}
|
|
17
21
|
export interface UseOverlayVisibilityReturn {
|
|
@@ -25,10 +29,13 @@ export interface UseOverlayVisibilityReturn {
|
|
|
25
29
|
}
|
|
26
30
|
export type OverlayVisibilityGroupState<TKey extends string = string> = Record<TKey, boolean>;
|
|
27
31
|
export interface UseOverlayVisibilityGroupOptions<TKey extends string = string> {
|
|
32
|
+
/** Initial visibility per key when uncontrolled. */
|
|
28
33
|
defaultOpen?: Partial<Record<TKey, boolean>>;
|
|
34
|
+
/** Controlled visibility per key. */
|
|
29
35
|
open?: Partial<Record<TKey, boolean>>;
|
|
30
|
-
/** Fired
|
|
36
|
+
/** Fired once for every actual change, with the key, its visibility and the next group state. */
|
|
31
37
|
onOpenChange?: (key: TKey, open: boolean, state: OverlayVisibilityGroupState<TKey>) => void;
|
|
38
|
+
/** Opening one key closes the others, for one-at-a-time overlays. Default: `false`. */
|
|
32
39
|
closeOthersOnOpen?: boolean;
|
|
33
40
|
}
|
|
34
41
|
export type UseOverlayVisibilityGroupReturn<TKey extends string = string> = Record<TKey, UseOverlayVisibilityReturn>;
|
|
@@ -2,5 +2,5 @@ export { ActionDialog } from './dialog';
|
|
|
2
2
|
export { ActionDrawer } from './drawer';
|
|
3
3
|
export { ConfirmDialog } from './alert-dialog';
|
|
4
4
|
export { useOverlayActions, type UseOverlayActionsOptions, type UseOverlayActionsReturn, useOverlayVisibility, useOverlayVisibilityGroup, type OverlayOpenSetter, type OverlayVisibilityGroupState, type OverlayVisibilityProps, type UseOverlayVisibilityGroupOptions, type UseOverlayVisibilityGroupReturn, type UseOverlayVisibilityOptions, type UseOverlayVisibilityReturn, } from './hooks';
|
|
5
|
-
export type { OverlayTone, OverlaySize, DrawerDirection, OverlayButtonTone, OverlayButtonStyle, OverlayBaseProps, OverlayActionProps, OverlayEmphasisProps, ActionDialogProps, ActionDrawerProps, ConfirmDialogProps, } from './overlays.types';
|
|
5
|
+
export type { OverlayTone, OverlaySize, DrawerDirection, OverlayAlign, OverlayButtonTone, OverlayButtonStyle, OverlayBaseProps, OverlayActionProps, OverlayEmphasisProps, ActionDialogProps, ActionDrawerProps, ConfirmDialogProps, } from './overlays.types';
|
|
6
6
|
export { defaultOverlayStrings, defaultAlertDialogStrings, type OverlayStrings, } from './overlays.strings';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { OverlayTone } from './overlays.types';
|
|
2
|
+
/** One glyph and colour per tone, shared by every overlay's opt-in `showIcon`. */
|
|
3
|
+
export declare const overlayToneGlyphs: {
|
|
4
|
+
readonly neutral: {
|
|
5
|
+
readonly Glyph: import("lucide-react").LucideIcon;
|
|
6
|
+
readonly color: "text-muted-foreground";
|
|
7
|
+
readonly surface: "bg-muted";
|
|
8
|
+
};
|
|
9
|
+
readonly destructive: {
|
|
10
|
+
readonly Glyph: import("lucide-react").LucideIcon;
|
|
11
|
+
readonly color: "text-destructive";
|
|
12
|
+
readonly surface: "bg-destructive/10";
|
|
13
|
+
};
|
|
14
|
+
readonly warning: {
|
|
15
|
+
readonly Glyph: import("lucide-react").LucideIcon;
|
|
16
|
+
readonly color: "text-warning-accent";
|
|
17
|
+
readonly surface: "bg-warning/20";
|
|
18
|
+
};
|
|
19
|
+
readonly info: {
|
|
20
|
+
readonly Glyph: import("lucide-react").LucideIcon;
|
|
21
|
+
readonly color: "text-info";
|
|
22
|
+
readonly surface: "bg-info/20";
|
|
23
|
+
};
|
|
24
|
+
readonly success: {
|
|
25
|
+
readonly Glyph: import("lucide-react").LucideIcon;
|
|
26
|
+
readonly color: "text-success";
|
|
27
|
+
readonly surface: "bg-success/20";
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Inline tone glyph for a heading row. The wrapper takes the title's own line
|
|
32
|
+
* box (base size, snug leading, `h-lh`), so the glyph centres on the first title
|
|
33
|
+
* line at any density instead of relying on an optical offset.
|
|
34
|
+
*/
|
|
35
|
+
export declare function OverlayToneIcon({ tone }: {
|
|
36
|
+
tone: OverlayTone;
|
|
37
|
+
}): import("react").JSX.Element;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ReactNode, RefObject, CSSProperties } from 'react';
|
|
2
2
|
import type { ButtonStyle } from '../../base/buttons';
|
|
3
3
|
import type { SemanticTone } from '../../../lib/component-vocabulary';
|
|
4
|
+
import type { OverlayAlign } from '../../../lib/ui-provider/types';
|
|
4
5
|
import type { StringsProp } from '../../../lib/strings';
|
|
5
6
|
import type { OverlayStrings } from './overlays.strings';
|
|
6
7
|
export type OverlayTone = Extract<SemanticTone, 'neutral' | 'destructive' | 'warning' | 'info' | 'success'>;
|
|
@@ -8,6 +9,13 @@ export type OverlayButtonTone = SemanticTone;
|
|
|
8
9
|
export type OverlayButtonStyle = Exclude<ButtonStyle, 'ghost'>;
|
|
9
10
|
export type OverlaySize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | 'full';
|
|
10
11
|
export type DrawerDirection = 'left' | 'right' | 'top' | 'bottom';
|
|
12
|
+
/**
|
|
13
|
+
* Where the heading (tone icon, title, description) and the actions sit:
|
|
14
|
+
* `'start'` on the reading edge, `'center'` stacked on the dialog's centre line.
|
|
15
|
+
* Resolved from the explicit prop, then the provider's `overlay` slice, then the
|
|
16
|
+
* component's fallback.
|
|
17
|
+
*/
|
|
18
|
+
export type { OverlayAlign };
|
|
11
19
|
/** Presentation and lifecycle shared by every overlay in this family. */
|
|
12
20
|
export interface OverlayBaseProps {
|
|
13
21
|
/** Visibility, for controlled use. Omit to let the overlay own it via `trigger`. */
|
|
@@ -34,7 +42,9 @@ export interface OverlayBaseProps {
|
|
|
34
42
|
/**
|
|
35
43
|
* Renders the corner dismiss control. Default: `true`. Set `false` for
|
|
36
44
|
* overlays whose body is the whole surface — a command palette has nowhere
|
|
37
|
-
* to put a floating X without it landing on the content.
|
|
45
|
+
* to put a floating X without it landing on the content. Keep another
|
|
46
|
+
* visible way to dismiss (a cancel action) so touch screen-reader users can
|
|
47
|
+
* leave the overlay.
|
|
38
48
|
*/
|
|
39
49
|
showCloseButton?: boolean;
|
|
40
50
|
/**
|
|
@@ -43,11 +53,15 @@ export interface OverlayBaseProps {
|
|
|
43
53
|
* on the dialog itself, which no className can express.
|
|
44
54
|
*/
|
|
45
55
|
surfaceStyle?: CSSProperties;
|
|
46
|
-
/**
|
|
47
|
-
|
|
48
|
-
|
|
56
|
+
/**
|
|
57
|
+
* Element to focus on open, instead of the first tabbable node (the first
|
|
58
|
+
* field or action; the corner dismiss control comes last). Accepts a
|
|
59
|
+
* `useRef<HTMLInputElement>(null)` ref directly.
|
|
60
|
+
*/
|
|
61
|
+
initialFocusRef?: RefObject<HTMLElement | null>;
|
|
62
|
+
/** Allows Escape to dismiss. Default: `true`. Set `false` for destructive or in-progress work. */
|
|
49
63
|
closeOnEscape?: boolean;
|
|
50
|
-
/** Allows a backdrop click to dismiss. */
|
|
64
|
+
/** Allows a backdrop click to dismiss. Default: `true`. */
|
|
51
65
|
closeOnBackdropClick?: boolean;
|
|
52
66
|
/** Overrides the overlay's own copy (confirm/cancel labels). */
|
|
53
67
|
strings?: StringsProp<OverlayStrings>;
|
|
@@ -100,37 +114,52 @@ export interface OverlayActionProps {
|
|
|
100
114
|
* `onSubmit` owns the outcome — `onConfirm` and `onAsyncConfirm` do not fire.
|
|
101
115
|
*/
|
|
102
116
|
formId?: string;
|
|
103
|
-
/**
|
|
117
|
+
/**
|
|
118
|
+
* Replaces the generated footer; the consumer owns its action states.
|
|
119
|
+
* Pending dismissal protection still applies. Custom actions that close the
|
|
120
|
+
* overlay use controlled visibility (`useOverlayVisibility`).
|
|
121
|
+
*/
|
|
104
122
|
footer?: ReactNode;
|
|
105
123
|
}
|
|
106
124
|
/** Semantic weight — the header icon and the confirm button's tone. */
|
|
107
125
|
export interface OverlayEmphasisProps {
|
|
108
126
|
/**
|
|
109
|
-
* Lets `tone`
|
|
110
|
-
*
|
|
127
|
+
* Lets `tone` decide the confirm button colour (destructive, warning or
|
|
128
|
+
* success). Without it `confirmTone` decides the button. Default: `false`.
|
|
111
129
|
*/
|
|
112
130
|
emphasis?: boolean;
|
|
113
|
-
/** Semantic tone of the overlay. Default: `'neutral'`. */
|
|
131
|
+
/** Semantic tone of the overlay: the `showIcon` glyph and the `alertMessage` notice. Default: `'neutral'`. */
|
|
114
132
|
tone?: OverlayTone;
|
|
115
|
-
/** Shows the tone's
|
|
133
|
+
/** Shows the tone's glyph beside the title, centred on its first line. Default: `false`. */
|
|
116
134
|
showIcon?: boolean;
|
|
117
135
|
/** Inline notice between the header and the body — a warning or consequence. */
|
|
118
136
|
alertMessage?: string;
|
|
119
137
|
}
|
|
120
138
|
/** A modal dialog with a title, body, and generated action footer. */
|
|
121
139
|
export interface ActionDialogProps extends OverlayBaseProps, OverlayActionProps, OverlayEmphasisProps {
|
|
122
|
-
/**
|
|
140
|
+
/**
|
|
141
|
+
* Aligns the heading and the actions. `'center'` stacks the `showIcon` glyph
|
|
142
|
+
* above the title. Default: the provider's `overlay.defaultDialogAlign`, else
|
|
143
|
+
* `'start'`.
|
|
144
|
+
*/
|
|
145
|
+
align?: OverlayAlign;
|
|
146
|
+
/** Maximum dialog width from the `sm` breakpoint; below it the dialog keeps a 1rem viewport margin. Default: `lg`. */
|
|
123
147
|
size?: OverlaySize;
|
|
124
|
-
/** Element that opens the dialog. Supply it for uncontrolled use instead of `open
|
|
148
|
+
/** Element that opens the dialog. Supply it for uncontrolled use instead of `open`; a string renders a secondary button. */
|
|
125
149
|
trigger?: ReactNode;
|
|
126
150
|
}
|
|
127
151
|
/** An edge-anchored panel for longer work than a dialog comfortably holds. */
|
|
128
152
|
export interface ActionDrawerProps extends OverlayBaseProps, OverlayActionProps, OverlayEmphasisProps {
|
|
129
153
|
/** Edge the drawer enters from. Default: `right`. */
|
|
130
154
|
direction?: DrawerDirection;
|
|
131
|
-
/**
|
|
155
|
+
/**
|
|
156
|
+
* Maximum panel width for left and right drawers from the `sm` breakpoint;
|
|
157
|
+
* below it the panel spans the viewport. Top and bottom drawers span the
|
|
158
|
+
* width and size to their content up to 85% of the viewport height.
|
|
159
|
+
* Default: `lg`.
|
|
160
|
+
*/
|
|
132
161
|
width?: OverlaySize;
|
|
133
|
-
/** Renders the action footer. Set `false` when the body owns its own actions. */
|
|
162
|
+
/** Renders the action footer. Default: `true`. Set `false` when the body owns its own actions. */
|
|
134
163
|
showFooter?: boolean;
|
|
135
164
|
/**
|
|
136
165
|
* Whether the drawer takes the page hostage while it is open. Default: `true`.
|
|
@@ -140,7 +169,8 @@ export interface ActionDrawerProps extends OverlayBaseProps, OverlayActionProps,
|
|
|
140
169
|
* Some side panels are the opposite: a theme editor, an inspector, a live
|
|
141
170
|
* filter rail, anything whose whole purpose is to sit beside the app while
|
|
142
171
|
* you keep working in it. Those need `false`, which drops the scrim and the
|
|
143
|
-
* inerting and leaves the page interactive
|
|
172
|
+
* inerting and leaves the page interactive; pressing the page no longer
|
|
173
|
+
* dismisses the panel, which closes from its own controls or Escape.
|
|
144
174
|
*
|
|
145
175
|
* `'trap-focus'` is the middle setting — focus stays inside, but the page
|
|
146
176
|
* neither locks its scroll nor stops taking pointer events.
|
|
@@ -149,7 +179,7 @@ export interface ActionDrawerProps extends OverlayBaseProps, OverlayActionProps,
|
|
|
149
179
|
* confirmation or anything the user must answer before continuing.
|
|
150
180
|
*/
|
|
151
181
|
modal?: boolean | 'trap-focus';
|
|
152
|
-
/** Element that opens the drawer. Supply it for uncontrolled use instead of `open
|
|
182
|
+
/** Element that opens the drawer. Supply it for uncontrolled use instead of `open`; a string renders a secondary button. */
|
|
153
183
|
trigger?: ReactNode;
|
|
154
184
|
}
|
|
155
185
|
/**
|
|
@@ -157,14 +187,27 @@ export interface ActionDrawerProps extends OverlayBaseProps, OverlayActionProps,
|
|
|
157
187
|
* body needs real content — this one is sized for a question and two answers.
|
|
158
188
|
*/
|
|
159
189
|
export interface ConfirmDialogProps extends OverlayBaseProps, OverlayActionProps {
|
|
160
|
-
/**
|
|
190
|
+
/**
|
|
191
|
+
* Aligns the icon, title, description and actions together. Below the `sm`
|
|
192
|
+
* breakpoint the actions stack full width either way. Default: the
|
|
193
|
+
* provider's `overlay.defaultConfirmAlign`, else `'center'`.
|
|
194
|
+
*/
|
|
195
|
+
align?: OverlayAlign;
|
|
196
|
+
/** Semantic tone, driving the confirm button, the `showIcon` glyph and the notice. Default: `'neutral'`. */
|
|
161
197
|
tone?: OverlayTone;
|
|
162
|
-
/** Shows the tone's
|
|
198
|
+
/** Shows the tone's glyph above the title. Default: `false`; the confirm button and copy carry the tone. */
|
|
163
199
|
showIcon?: boolean;
|
|
164
200
|
/** Inline notice explaining the consequence before the user commits. */
|
|
165
201
|
alertMessage?: string;
|
|
166
|
-
/** Element that opens the dialog. Supply it for uncontrolled use instead of `open
|
|
202
|
+
/** Element that opens the dialog. Supply it for uncontrolled use instead of `open`; a string renders a secondary button. */
|
|
167
203
|
trigger?: ReactNode;
|
|
168
204
|
/** Shorthand for the destructive presentation. */
|
|
169
205
|
destructive?: boolean;
|
|
206
|
+
/**
|
|
207
|
+
* Not used: a confirmation needs an explicit answer, so an outside press
|
|
208
|
+
* never dismisses it. Escape still cancels unless `closeOnEscape` is `false`.
|
|
209
|
+
*/
|
|
210
|
+
closeOnBackdropClick?: boolean;
|
|
211
|
+
/** Not used: a confirmation has no corner dismiss control; Cancel or Escape declines. */
|
|
212
|
+
showCloseButton?: boolean;
|
|
170
213
|
}
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import type { ProductContractOverviewProps } from '../products.types';
|
|
2
|
+
/**
|
|
3
|
+
* One main column region of the product editor.
|
|
4
|
+
*
|
|
5
|
+
* @deprecated An internal region of `ProductOverview`, which renders it from its `contract` prop (still typed `ProductContractOverviewProps`). Pass the same props there and add custom content through the overview's slots. Kept exported for compatibility.
|
|
6
|
+
*/
|
|
2
7
|
export declare function ProductContractOverview({ metrics, terms, rules, onOpenContract, onEditContract, onCreateRule, onSelectRule, onEditRule, onDeleteRule, renderRuleActions, actions, footerSlot, empty, className, strings: stringsProp, }: ProductContractOverviewProps): import("react").JSX.Element;
|
|
3
8
|
export declare namespace ProductContractOverview {
|
|
4
9
|
var displayName: string;
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import type { ProductDetailsCardProps } from '../products.types';
|
|
2
|
+
/**
|
|
3
|
+
* One main column region of the product editor.
|
|
4
|
+
*
|
|
5
|
+
* @deprecated An internal region of `ProductOverview`, which renders it from its `details` prop (still typed `ProductDetailsCardProps`). Pass the same props there and add custom content through the overview's slots. Kept exported for compatibility.
|
|
6
|
+
*/
|
|
2
7
|
export declare function ProductDetailsCard({ title, description, metadata, media, onEditDetails, actions, headerEnd, footerSlot, empty, className, strings: stringsProp, }: ProductDetailsCardProps): import("react").JSX.Element;
|
|
3
8
|
export declare namespace ProductDetailsCard {
|
|
4
9
|
var displayName: string;
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import type { ProductOperationsCardProps } from '../products.types';
|
|
2
|
+
/**
|
|
3
|
+
* One support rail region of the product editor.
|
|
4
|
+
*
|
|
5
|
+
* @deprecated An internal region of `ProductOverview`, which renders it from its `operations` prop (still typed `ProductOperationsCardProps`). Pass the same props there and add custom content through the overview's slots. Kept exported for compatibility.
|
|
6
|
+
*/
|
|
2
7
|
export declare function ProductOperationsCard({ items, onCreateOperation, onSelectOperation, onEditOperation, onDeleteOperation, renderOperationActions, actions, footerSlot, renderItem, empty, className, strings: stringsProp, }: ProductOperationsCardProps): import("react").JSX.Element;
|
|
3
8
|
export declare namespace ProductOperationsCard {
|
|
4
9
|
var displayName: string;
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import type { ProductOptionActionMenuProps } from '../products.types';
|
|
2
|
+
/**
|
|
3
|
+
* Row menu for one product option.
|
|
4
|
+
*
|
|
5
|
+
* @deprecated An internal part of `ProductOptionsSummary` (and so of `ProductOverview`), which renders it for every option. Replace it there with `renderOptionActions`, composing the base `ActionMenu` if needed. Kept exported for compatibility.
|
|
6
|
+
*/
|
|
2
7
|
export declare function ProductOptionActionMenu({ option, index, onSelectOption, onEditOption, onDeleteOption, renderOptionActions, menuLabel, className, strings: stringsProp, }: ProductOptionActionMenuProps): import("react").JSX.Element | null;
|
|
3
8
|
export declare namespace ProductOptionActionMenu {
|
|
4
9
|
var displayName: string;
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import type { ProductOptionsSummaryProps } from '../products.types';
|
|
2
|
+
/**
|
|
3
|
+
* One main column region of the product editor.
|
|
4
|
+
*
|
|
5
|
+
* @deprecated An internal region of `ProductOverview`, which renders it from its `options` prop (still typed `ProductOptionsSummaryProps`). Pass the same props there and add custom content through the overview's slots. Kept exported for compatibility.
|
|
6
|
+
*/
|
|
2
7
|
export declare function ProductOptionsSummary({ options, onManageOptions, onCreateOption, onSelectOption, onEditOption, onDeleteOption, renderOptionActions, actions, footerSlot, renderOption, empty, className, strings: stringsProp, }: ProductOptionsSummaryProps): import("react").JSX.Element;
|
|
3
8
|
export declare namespace ProductOptionsSummary {
|
|
4
9
|
var displayName: string;
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import type { ProductPoliciesCardProps } from '../products.types';
|
|
2
|
+
/**
|
|
3
|
+
* One support rail region of the product editor.
|
|
4
|
+
*
|
|
5
|
+
* @deprecated An internal region of `ProductOverview`, which renders it from its `policies` prop (still typed `ProductPoliciesCardProps`). Pass the same props there and add custom content through the overview's slots. Kept exported for compatibility.
|
|
6
|
+
*/
|
|
2
7
|
export declare function ProductPoliciesCard({ policies, onCreatePolicy, onSelectPolicy, onEditPolicy, onDeletePolicy, renderPolicyActions, actions, footerSlot, renderPolicy, empty, className, strings: stringsProp, }: ProductPoliciesCardProps): import("react").JSX.Element;
|
|
3
8
|
export declare namespace ProductPoliciesCard {
|
|
4
9
|
var displayName: string;
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import type { ProductQuotePreviewCardProps } from '../products.types';
|
|
2
|
+
/**
|
|
3
|
+
* One support rail region of the product editor.
|
|
4
|
+
*
|
|
5
|
+
* @deprecated An internal region of `ProductOverview`, which renders it from its `quote` prop (still typed `ProductQuotePreviewCardProps`). Pass the same props there and add custom content through the overview's slots. Kept exported for compatibility.
|
|
6
|
+
*/
|
|
2
7
|
export declare function ProductQuotePreviewCard({ lines, subtotal, tax, discount, total, onOpenQuote, onCreateLine, onSelectLine, onEditLine, onDeleteLine, renderLineActions, actions, footerSlot, empty, className, strings: stringsProp, }: ProductQuotePreviewCardProps): import("react").JSX.Element;
|
|
3
8
|
export declare namespace ProductQuotePreviewCard {
|
|
4
9
|
var displayName: string;
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import type { ProductReadinessCardProps } from '../products.types';
|
|
2
|
+
/**
|
|
3
|
+
* One support rail region of the product editor.
|
|
4
|
+
*
|
|
5
|
+
* @deprecated An internal region of `ProductOverview`, which renders it from its `readiness` prop (still typed `ProductReadinessCardProps`). Pass the same props there and add custom content through the overview's slots. Kept exported for compatibility.
|
|
6
|
+
*/
|
|
2
7
|
export declare function ProductReadinessCard({ items, score, scoreLabel, summary, onCreateReadinessItem, onSelectReadinessItem, onEditReadinessItem, onDeleteReadinessItem, renderReadinessItemActions, actions, footerSlot, renderItem, empty, className, strings: stringsProp, }: ProductReadinessCardProps): import("react").JSX.Element;
|
|
3
8
|
export declare namespace ProductReadinessCard {
|
|
4
9
|
var displayName: string;
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import type { ProductStructureCardProps } from '../products.types';
|
|
2
|
+
/**
|
|
3
|
+
* One support rail region of the product editor.
|
|
4
|
+
*
|
|
5
|
+
* @deprecated An internal region of `ProductOverview`, which renders it from its `structure` prop (still typed `ProductStructureCardProps`). Pass the same props there and add custom content through the overview's slots. Kept exported for compatibility.
|
|
6
|
+
*/
|
|
2
7
|
export declare function ProductStructureCard({ metrics, onCreateMetric, onSelectMetric, onEditMetric, onDeleteMetric, renderMetricActions, actions, footerSlot, empty, className, strings: stringsProp, }: ProductStructureCardProps): import("react").JSX.Element;
|
|
3
8
|
export declare namespace ProductStructureCard {
|
|
4
9
|
var displayName: string;
|
|
@@ -1,5 +1,27 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import { type ProductVariantActionMenuStrings } from '../products.strings';
|
|
3
|
+
import type { ProductVariantActionMenuProps, ProductVariantSummary } from '../products.types';
|
|
4
|
+
type VariantCommandHandlers = Pick<ProductVariantActionMenuProps, 'onSelectVariant' | 'onEditVariant' | 'onDuplicateVariant' | 'onDeleteVariant'>;
|
|
5
|
+
interface VariantCommand {
|
|
6
|
+
id: string;
|
|
7
|
+
label: string;
|
|
8
|
+
icon: ReactNode;
|
|
9
|
+
onClick: () => void;
|
|
10
|
+
tone: 'secondary' | 'destructive';
|
|
11
|
+
buttonStyle?: 'ghost';
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* The default variant commands, in order, with the destructive one last. The
|
|
15
|
+
* row menu and the details card's single overflow menu both build on these.
|
|
16
|
+
*/
|
|
17
|
+
export declare function productVariantMenuActions(variant: ProductVariantSummary, { onSelectVariant, onEditVariant, onDuplicateVariant, onDeleteVariant }: VariantCommandHandlers, strings: ProductVariantActionMenuStrings): VariantCommand[];
|
|
18
|
+
/**
|
|
19
|
+
* Row menu for one product variant.
|
|
20
|
+
*
|
|
21
|
+
* @deprecated An internal part of the variant tables and `ProductVariantDetails`, which render it for every variant. Replace it there with `renderVariantActions`, composing the base `ActionMenu` if needed. Kept exported for compatibility.
|
|
22
|
+
*/
|
|
2
23
|
export declare function ProductVariantActionMenu({ variant, index, onSelectVariant, onEditVariant, onDuplicateVariant, onDeleteVariant, renderVariantActions, menuLabel, className, strings: stringsProp, }: ProductVariantActionMenuProps): import("react").JSX.Element | null;
|
|
3
24
|
export declare namespace ProductVariantActionMenu {
|
|
4
25
|
var displayName: string;
|
|
5
26
|
}
|
|
27
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ProductVariantsManagerProps } from '../products.types';
|
|
2
|
-
export declare function ProductVariantsManager({ optionGroups, variants, visibleColumns, optionCombinationDisplay, cellDisplay, selectionMode, renderOptionCombination, renderCell, selectedVariantIds, defaultSelectedVariantIds, onSelectedVariantIdsChange, onVariantFieldChange, onVariantFieldBlur, collapsedOptionIds, defaultCollapsedOptionIds, onCollapsedOptionIdsChange, editingOptionId, defaultEditingOptionId, onEditingOptionIdChange, onCreateOption, onEditOption, onDeleteOption, onAddValue, onDeleteValue, onOptionNameChange, onValueLabelChange, onDoneEditingOption, onSaveEditingOption, onCancelEditingOption, onToggleUsedForVariants, renderOptionActions, renderValue, onCreateVariant, onGenerateVariants, onSelectVariant, onEditVariant, onDuplicateVariant, onDeleteVariant, onBulkEdit, onBulkApply, onBulkDelete, renderVariantActions, renderBulkActions, groupByOptionId, defaultGroupByOptionId, onGroupByOptionIdChange, onSearchVariants, onFilterVariants, controlsEnd, actions, headerEnd, footerSlot, className, strings: stringsProp, optionsStrings, variantsStrings, }: ProductVariantsManagerProps): import("react").JSX.Element;
|
|
2
|
+
export declare function ProductVariantsManager({ optionGroups, variants, visibleColumns, optionCombinationDisplay, cellDisplay, selectionMode, renderOptionCombination, renderCell, selectedVariantIds, defaultSelectedVariantIds, onSelectedVariantIdsChange, onVariantFieldChange, onVariantFieldBlur, collapsedOptionIds, defaultCollapsedOptionIds, onCollapsedOptionIdsChange, editingOptionId, defaultEditingOptionId, onEditingOptionIdChange, onCreateOption, onEditOption, onDeleteOption, onAddValue, onDeleteValue, onOptionNameChange, onValueLabelChange, onDoneEditingOption, onSaveEditingOption, onCancelEditingOption, onToggleUsedForVariants, renderOptionActions, renderValue, onCreateVariant, onGenerateVariants, onSelectVariant, onEditVariant, onDuplicateVariant, onDeleteVariant, onBulkEdit, onBulkApply, onBulkDelete, renderVariantActions, renderBulkActions, groupByOptionId, defaultGroupByOptionId, onGroupByOptionIdChange, onSearchVariants, onFilterVariants, controlsEnd, actions, headerEnd, footerSlot, surface, padding, headerDivider, footerDivider, className, strings: stringsProp, optionsStrings, variantsStrings, }: ProductVariantsManagerProps): import("react").JSX.Element;
|
|
3
3
|
export declare namespace ProductVariantsManager {
|
|
4
4
|
var displayName: string;
|
|
5
5
|
}
|
|
@@ -2,6 +2,6 @@ export { ProductRowActions } from './product-actions';
|
|
|
2
2
|
export { ProductEmptyState } from './product-empty-state';
|
|
3
3
|
export { ProductMetricTile } from './product-metric-tile';
|
|
4
4
|
export { ProductOperationRow, ProductReadinessRow, ProductStructureMetricRow, ProductSummaryRow, } from './product-rows';
|
|
5
|
-
export { PRODUCT_TONE_BADGE,
|
|
5
|
+
export { PRODUCT_TONE_BADGE, PRODUCT_TONE_TEXT, ProductToneDot, clampProductPercent, isProductStatusTone, } from './product-tone';
|
|
6
6
|
export { ProductVariantActions, ProductVariantCell, } from './product-variant-table-parts';
|
|
7
7
|
export { PRODUCT_EMPTY_VALUE } from './product-values';
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import type { ProductMetricSummary, ProductStructureMetric } from '../products.types';
|
|
2
|
+
/**
|
|
3
|
+
* A headline fact: label above an emphasised value, in the same label-over-value
|
|
4
|
+
* anatomy as the metadata lists beside it. No tile chrome — the parent grid's
|
|
5
|
+
* gap separates metrics — and colour appears only as a status dot when the
|
|
6
|
+
* metric's tone states a status.
|
|
7
|
+
*/
|
|
2
8
|
export declare function ProductMetricTile({ metric }: {
|
|
3
9
|
metric: ProductStructureMetric | ProductMetricSummary;
|
|
4
10
|
}): import("react").JSX.Element;
|