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
|
@@ -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, surfaceStyle, 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 {};
|
|
@@ -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';
|
|
@@ -14,17 +14,17 @@ export declare const overlayToneGlyphs: {
|
|
|
14
14
|
readonly warning: {
|
|
15
15
|
readonly Glyph: import("lucide-react").LucideIcon;
|
|
16
16
|
readonly color: "text-warning-accent";
|
|
17
|
-
readonly surface: "bg-warning/
|
|
17
|
+
readonly surface: "bg-warning/20";
|
|
18
18
|
};
|
|
19
19
|
readonly info: {
|
|
20
20
|
readonly Glyph: import("lucide-react").LucideIcon;
|
|
21
21
|
readonly color: "text-info";
|
|
22
|
-
readonly surface: "bg-info/
|
|
22
|
+
readonly surface: "bg-info/20";
|
|
23
23
|
};
|
|
24
24
|
readonly success: {
|
|
25
25
|
readonly Glyph: import("lucide-react").LucideIcon;
|
|
26
26
|
readonly color: "text-success";
|
|
27
|
-
readonly surface: "bg-success/
|
|
27
|
+
readonly surface: "bg-success/20";
|
|
28
28
|
};
|
|
29
29
|
};
|
|
30
30
|
/**
|
|
@@ -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`. */
|
|
@@ -129,6 +137,12 @@ export interface OverlayEmphasisProps {
|
|
|
129
137
|
}
|
|
130
138
|
/** A modal dialog with a title, body, and generated action footer. */
|
|
131
139
|
export interface ActionDialogProps extends OverlayBaseProps, OverlayActionProps, OverlayEmphasisProps {
|
|
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;
|
|
132
146
|
/** Maximum dialog width from the `sm` breakpoint; below it the dialog keeps a 1rem viewport margin. Default: `lg`. */
|
|
133
147
|
size?: OverlaySize;
|
|
134
148
|
/** Element that opens the dialog. Supply it for uncontrolled use instead of `open`; a string renders a secondary button. */
|
|
@@ -173,6 +187,12 @@ export interface ActionDrawerProps extends OverlayBaseProps, OverlayActionProps,
|
|
|
173
187
|
* body needs real content — this one is sized for a question and two answers.
|
|
174
188
|
*/
|
|
175
189
|
export interface ConfirmDialogProps extends OverlayBaseProps, OverlayActionProps {
|
|
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;
|
|
176
196
|
/** Semantic tone, driving the confirm button, the `showIcon` glyph and the notice. Default: `'neutral'`. */
|
|
177
197
|
tone?: OverlayTone;
|
|
178
198
|
/** Shows the tone's glyph above the title. Default: `false`; the confirm button and copy carry the tone. */
|
|
@@ -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 {};
|
|
@@ -2,7 +2,7 @@ import type { ReactNode } from 'react';
|
|
|
2
2
|
import type { CardProps } from '../../base/cards';
|
|
3
3
|
import type { BadgeTone } from '../../base/badge';
|
|
4
4
|
import type { ActionMenuAction } from '../../base/action-menu';
|
|
5
|
-
import type { MetadataListItem } from '../../
|
|
5
|
+
import type { MetadataListItem } from '../../base/metadata-list';
|
|
6
6
|
import type { StringsProp } from '../../../lib/strings';
|
|
7
7
|
import type { SemanticTone } from '../../../lib/component-vocabulary';
|
|
8
8
|
import type { ProductContractOverviewStrings, ProductDetailsCardStrings, ProductOperationsCardStrings, ProductOptionActionMenuStrings, ProductOptionsMatrixStrings, ProductOptionsSummaryStrings, ProductOverviewStrings, ProductPoliciesCardStrings, ProductQuotePreviewCardStrings, ProductReadinessCardStrings, ProductStructureCardStrings, ProductVariantActionMenuStrings, ProductVariantBulkTableStrings, ProductVariantDetailsStrings, ProductVariantEditorStrings, ProductVariantsManagerStrings, ProductVariantsTableStrings } from './products.strings';
|
|
@@ -720,12 +720,19 @@ export interface ProductVariantsBulkTableProps {
|
|
|
720
720
|
onDuplicateVariant?: (variant: ProductVariantRow) => void;
|
|
721
721
|
/** Fired when a variant is removed. */
|
|
722
722
|
onDeleteVariant?: (variant: ProductVariantRow) => void;
|
|
723
|
+
/** Fired with the selected variants from the bulk bar's edit command. */
|
|
723
724
|
onBulkEdit?: (variants: ProductVariantRow[]) => void;
|
|
725
|
+
/** Fired with the selected variants from the bulk bar's apply command, ordered before delete. */
|
|
724
726
|
onBulkApply?: (variants: ProductVariantRow[]) => void;
|
|
727
|
+
/** Fired with the selected variants from the bulk bar's delete command, always last. */
|
|
725
728
|
onBulkDelete?: (variants: ProductVariantRow[]) => void;
|
|
726
729
|
/** Replaces the per-variant action controls. */
|
|
727
730
|
renderVariantActions?: (variant: ProductVariantRow, context: ProductVariantActionContext) => ReactNode;
|
|
728
|
-
/**
|
|
731
|
+
/**
|
|
732
|
+
* Replaces the default bulk commands (edit, apply, delete) in the inline
|
|
733
|
+
* BatchActionBar, which shows only while variants are selected and keeps its
|
|
734
|
+
* own count and Clear. Returning `null` or `undefined` keeps the defaults.
|
|
735
|
+
*/
|
|
729
736
|
renderBulkActions?: (context: ProductVariantBulkActionContext) => ReactNode;
|
|
730
737
|
/** Overflow menu for the surface as a whole. */
|
|
731
738
|
actions?: ActionMenuAction[];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { ResourceActionBar, ResourceDetailsSection, ResourceEmptyState, ResourceHeader, ResourceIndexShell, ResourceShowShell, TabbedResourceShell, } from './resource';
|
|
2
|
-
export type { ResourceActionBarProps, ResourceDetailsSectionProps, ResourceEmptyStateProps, ResourceHeaderProps, ResourceIndexShellProps, ResourceShellSlots, ResourceShowShellProps, TabbedResourceShellProps, } from './resource.types';
|
|
2
|
+
export type { ResourceActionBarProps, ResourceDetailsSectionProps, ResourceEmptyStateProps, ResourceHeaderCommandProps, ResourceHeaderProps, ResourceIndexShellProps, ResourceShellSlots, ResourceShowShellProps, TabbedResourceShellProps, } from './resource.types';
|
|
3
3
|
export { defaultResourceStrings, type ResourceStrings, } from './resource.strings';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ResourceActionBarProps, ResourceDetailsSectionProps, ResourceEmptyStateProps, ResourceHeaderProps, ResourceIndexShellProps, ResourceShowShellProps, TabbedResourceShellProps } from './resource.types';
|
|
2
|
-
export declare function ResourceHeader({ title, description, eyebrow, media, avatarUrl, avatarAlt, avatarFallback, icon, iconTone, badges, metadata, actions, className, contentClassName, mediaClassName, }: ResourceHeaderProps): import("react").JSX.Element;
|
|
2
|
+
export declare function ResourceHeader({ title, description, eyebrow, media, avatarUrl, avatarAlt, avatarFallback, icon, iconTone, badges, metadata, actions, primaryAction, secondaryActions, moreActionsLabel, renderLink, className, contentClassName, mediaClassName, }: ResourceHeaderProps): import("react").JSX.Element;
|
|
3
3
|
export declare function ResourceActionBar({ children, leading, trailing, sticky, className }: ResourceActionBarProps): import("react").JSX.Element;
|
|
4
4
|
export declare function ResourceEmptyState(props: ResourceEmptyStateProps): import("react").JSX.Element;
|
|
5
5
|
export declare function ResourceIndexShell(props: ResourceIndexShellProps): import("react").JSX.Element;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { ComponentType, ReactNode } from 'react';
|
|
2
2
|
import type { IconBadgeTone } from '../../base/display';
|
|
3
|
-
import type {
|
|
3
|
+
import type { MetadataListItem } from '../../base/metadata-list';
|
|
4
|
+
import type { EmptyStateProps } from '../../blocks/data-display';
|
|
4
5
|
import type { ActionMenuAction } from '../../base/action-menu';
|
|
5
|
-
import type { OverflowTabItem } from '../../base/navigation';
|
|
6
|
+
import type { OverflowTabItem, PageHeaderAction, PageHeaderLinkRenderer } from '../../base/navigation';
|
|
6
7
|
import type { StringsProp } from '../../../lib/strings';
|
|
7
8
|
import type { CardSurface, ComponentScale } from '../../../lib/component-vocabulary';
|
|
8
9
|
import type { ResourceStrings } from './resource.strings';
|
|
@@ -26,14 +27,37 @@ export interface ResourceShellSlots {
|
|
|
26
27
|
/** Replaces the default error state. */
|
|
27
28
|
error?: ReactNode;
|
|
28
29
|
}
|
|
29
|
-
|
|
30
|
+
/**
|
|
31
|
+
* Role-based header commands, placed and styled exactly as in Page headers:
|
|
32
|
+
* outline secondary commands, the solid primary command, then the More actions
|
|
33
|
+
* menu.
|
|
34
|
+
*/
|
|
35
|
+
export interface ResourceHeaderCommandProps {
|
|
36
|
+
/** The resource's one main command: a solid primary button, visible at every width. */
|
|
37
|
+
primaryAction?: PageHeaderAction;
|
|
38
|
+
/**
|
|
39
|
+
* Supporting commands in priority order. The first two render as outline
|
|
40
|
+
* buttons before the primary command; the rest, and every destructive
|
|
41
|
+
* command, move into the More actions menu, which always closes the row.
|
|
42
|
+
*/
|
|
43
|
+
secondaryActions?: readonly PageHeaderAction[];
|
|
44
|
+
/** Accessible name of the More actions menu trigger. Default: `'More actions'`. */
|
|
45
|
+
moreActionsLabel?: string;
|
|
46
|
+
/** Renders `href` commands as framework links. Defaults to a native anchor. */
|
|
47
|
+
renderLink?: PageHeaderLinkRenderer;
|
|
48
|
+
}
|
|
49
|
+
export interface ResourceIndexShellProps extends ResourceHeaderCommandProps {
|
|
30
50
|
/** Primary workspace content. Replaced by loading, error, or empty state when active. */
|
|
31
51
|
children?: ReactNode;
|
|
32
52
|
/** Generated header title. Omit when supplying `slots.header`. */
|
|
33
53
|
title?: ReactNode;
|
|
34
54
|
/** Generated header description. */
|
|
35
55
|
description?: ReactNode;
|
|
36
|
-
/**
|
|
56
|
+
/**
|
|
57
|
+
* Non-command controls in the generated header, such as a period select.
|
|
58
|
+
* They render before the role-based commands; pass commands as
|
|
59
|
+
* `primaryAction` and `secondaryActions`.
|
|
60
|
+
*/
|
|
37
61
|
actions?: ReactNode;
|
|
38
62
|
/** Content between the header and primary workspace body. */
|
|
39
63
|
toolbar?: ReactNode;
|
|
@@ -62,7 +86,7 @@ export interface ResourceShowShellProps extends ResourceIndexShellProps {
|
|
|
62
86
|
/** Class name for `slots.aside`. */
|
|
63
87
|
asideClassName?: string;
|
|
64
88
|
}
|
|
65
|
-
export interface ResourceHeaderProps {
|
|
89
|
+
export interface ResourceHeaderProps extends ResourceHeaderCommandProps {
|
|
66
90
|
/** Primary resource identity. */
|
|
67
91
|
title: ReactNode;
|
|
68
92
|
/** Supporting resource summary. */
|
|
@@ -87,7 +111,11 @@ export interface ResourceHeaderProps {
|
|
|
87
111
|
badges?: ReactNode;
|
|
88
112
|
/** Compact resource facts rendered below the description. */
|
|
89
113
|
metadata?: ReactNode;
|
|
90
|
-
/**
|
|
114
|
+
/**
|
|
115
|
+
* Non-command controls, such as a period select. They render before the
|
|
116
|
+
* role-based commands; pass commands as `primaryAction` and
|
|
117
|
+
* `secondaryActions`.
|
|
118
|
+
*/
|
|
91
119
|
actions?: ReactNode;
|
|
92
120
|
/** Class name for the page-header root. */
|
|
93
121
|
className?: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { RichTextEditor } from './rich-text-editor';
|
|
2
2
|
export { FormRichTextEditor, type FormRichTextEditorProps } from './form-rich-text-editor';
|
|
3
|
-
export type { RichTextEditorProps, RichTextEditorHandle, RichTextEditorToolbarItem, RichTextCaretContext, ToolbarButtonConfig, } from './rich-text-editor.types';
|
|
3
|
+
export type { RichTextEditorProps, RichTextEditorBodyHeight, RichTextEditorHandle, RichTextEditorToolbarItem, RichTextCaretContext, ToolbarButtonConfig, RichTextEditorImages, RichTextImage, RichTextImageUploadContext, } from './rich-text-editor.types';
|
|
4
|
+
export { useRichTextImages } from './use-rich-text-images';
|
|
4
5
|
export { defaultRichTextEditorStrings, type RichTextEditorStrings, } from './rich-text-editor.strings';
|
|
5
6
|
export { RichTextEditorToolbar, type RichTextEditorToolbarProps, CountsFooterText, type CountsFooterTextProps, } from './partials';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as TiptapReact from '@tiptap/react';
|
|
2
|
+
/**
|
|
3
|
+
* An inline image whose source passes the package image policy; any other
|
|
4
|
+
* `<img>` in loaded or pasted content is dropped. Serializes as a plain
|
|
5
|
+
* `<img src alt width height>`, matching the contenteditable engine.
|
|
6
|
+
*/
|
|
7
|
+
export declare function getImageNode(): TiptapReact.Node;
|
|
8
|
+
/**
|
|
9
|
+
* The placeholder an image occupies while it uploads. It is never parsed from
|
|
10
|
+
* HTML and the editor strips it from its value; the editor renders the
|
|
11
|
+
* upload status into its node view.
|
|
12
|
+
*/
|
|
13
|
+
export declare function getImageUploadNode(): TiptapReact.Node;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { type RefObject } from 'react';
|
|
2
|
+
import type { RichTextEditorStrings } from '../rich-text-editor.strings';
|
|
3
|
+
import type { RichTextEditorImages, RichTextEditorToolbarItem, RichTextImage } from '../rich-text-editor.types';
|
|
4
|
+
export declare const DEFAULT_IMAGE_ACCEPT = "image/png,image/jpeg,image/gif,image/webp";
|
|
5
|
+
/** Marks an upload placeholder in the editing surface; never part of the value. */
|
|
6
|
+
export declare const UPLOAD_ATTRIBUTE = "data-rte-upload";
|
|
7
|
+
/** The placeholder occupies a line of its own while its image uploads. */
|
|
8
|
+
export declare const UPLOAD_PLACEHOLDER_CLASS = "rich-text-editor--upload my-space-xs flex min-h-control items-center rounded-inner border border-dashed border-input bg-muted/30 px-row-x py-row-y";
|
|
9
|
+
/** Removes upload placeholders from serialized editor HTML. */
|
|
10
|
+
export declare function stripUploadPlaceholders(html: string): string;
|
|
11
|
+
export declare function acceptsImageFile(file: File, accept: string): boolean;
|
|
12
|
+
/** A readable default description from the file name: `team-offsite_2026.jpg` → `team offsite 2026`. */
|
|
13
|
+
export declare function altFromFileName(name: string): string;
|
|
14
|
+
/** Image files carried by a paste or drop. */
|
|
15
|
+
export declare function imageFilesFrom(data: DataTransfer | null | undefined): File[];
|
|
16
|
+
/** How each editor engine puts placeholders and images into its document. */
|
|
17
|
+
export interface ImageUploadAdapter {
|
|
18
|
+
/** Inserts an empty placeholder for `id` at the selection (or the drop point). */
|
|
19
|
+
insertPlaceholder: (id: string) => void;
|
|
20
|
+
/** Swaps the placeholder for the uploaded image and reports the change. */
|
|
21
|
+
resolvePlaceholder: (id: string, image: RichTextImage) => void;
|
|
22
|
+
/** Removes the placeholder and reports the change. */
|
|
23
|
+
removePlaceholder: (id: string) => void;
|
|
24
|
+
/** The placeholder's element, or null once the user has deleted it. */
|
|
25
|
+
findPlaceholder: (id: string) => HTMLElement | null;
|
|
26
|
+
}
|
|
27
|
+
export interface PendingImageUpload {
|
|
28
|
+
id: string;
|
|
29
|
+
name: string;
|
|
30
|
+
status: 'uploading' | 'error';
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* The engine-agnostic upload lifecycle: validate, insert a placeholder, call
|
|
34
|
+
* the consumer's `upload` with an abort signal, then swap in the image or keep
|
|
35
|
+
* the placeholder in its error state for Retry or Remove.
|
|
36
|
+
*/
|
|
37
|
+
export declare function useImageUploadQueue(images: RichTextEditorImages | undefined, adapterRef: RefObject<ImageUploadAdapter | null>, strings: RichTextEditorStrings['images']): {
|
|
38
|
+
uploads: PendingImageUpload[];
|
|
39
|
+
notice: string | null;
|
|
40
|
+
dismissNotice: () => void;
|
|
41
|
+
addFiles: (files: readonly File[]) => void;
|
|
42
|
+
retry: (id: string) => void;
|
|
43
|
+
remove: (id: string) => void;
|
|
44
|
+
prune: () => void;
|
|
45
|
+
};
|
|
46
|
+
export type ImageUploadQueue = ReturnType<typeof useImageUploadQueue>;
|
|
47
|
+
/** Renders each pending upload's status into its placeholder in the editing surface. */
|
|
48
|
+
export declare function ImageUploadPortals({ queue, adapterRef, strings }: {
|
|
49
|
+
queue: ImageUploadQueue;
|
|
50
|
+
adapterRef: RefObject<ImageUploadAdapter | null>;
|
|
51
|
+
strings: RichTextEditorStrings['images'];
|
|
52
|
+
}): import("react").JSX.Element;
|
|
53
|
+
/** The Insert image toolbar control and its hidden file input. */
|
|
54
|
+
export declare function useImageInsertControl(images: RichTextEditorImages | undefined, strings: RichTextEditorStrings['images'], onFiles: (files: File[]) => void, beforeOpen?: () => void): {
|
|
55
|
+
item: RichTextEditorToolbarItem | null;
|
|
56
|
+
input: import("react").JSX.Element | null;
|
|
57
|
+
};
|
|
58
|
+
/** The description field for the image at the caret, and refused-file notices. */
|
|
59
|
+
export declare function ImageDetailsBar({ alt, onAltChange, onRemove, notice, onDismissNotice, strings }: {
|
|
60
|
+
alt: string | null;
|
|
61
|
+
onAltChange: (alt: string) => void;
|
|
62
|
+
onRemove: () => void;
|
|
63
|
+
notice: string | null;
|
|
64
|
+
onDismissNotice: () => void;
|
|
65
|
+
strings: RichTextEditorStrings['images'];
|
|
66
|
+
}): import("react").JSX.Element | null;
|