themelia-react-ui 2.0.0 → 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 +351 -0
- package/README.md +26 -13
- package/dist/{accordion-CQXVcd7Q.js → accordion-B6a3vVgA.js} +84 -82
- 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-CCIXb2A1.js → affordance-geometry.generated-B5iu-Mkr.js} +3 -2
- package/dist/affordance-geometry.generated-B5iu-Mkr.js.map +1 -0
- package/dist/{ai-artifact-2PQ2fItc.js → ai-artifact-BMJdv-6q.js} +379 -376
- package/dist/ai-artifact-BMJdv-6q.js.map +1 -0
- package/dist/{app-shell-BE_j8-AT.js → app-shell-ZK5RWdo6.js} +4 -4
- package/dist/{app-shell-BE_j8-AT.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-M3vGMgDR.js → auth-CYxKfo69.js} +237 -235
- package/dist/auth-CYxKfo69.js.map +1 -0
- package/dist/{avatar-djdaaQ_s.js → avatar-BBnEJIx8.js} +66 -65
- 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 +13 -13
- package/dist/base/carousel.js.map +1 -1
- package/dist/base/cascader.js +103 -115
- 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 +17 -17
- 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 +171 -170
- 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 +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 +2 -2
- 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 +173 -171
- package/dist/blocks/admin.js.map +1 -1
- package/dist/blocks/ai.js +266 -263
- package/dist/blocks/ai.js.map +1 -1
- package/dist/blocks/analytics/usage-card.js +1 -1
- package/dist/blocks/analytics.js +440 -438
- 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 +1945 -1266
- 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 +25 -25
- 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-R9CCoH7A.js → button-QYwiyhD2.js} +15 -14
- package/dist/button-QYwiyhD2.js.map +1 -0
- package/dist/{button-BS3KDg00.js → buttons-SbIcm1HJ.js} +200 -213
- package/dist/buttons-SbIcm1HJ.js.map +1 -0
- package/dist/{cards-QoJ4syG9.js → cards-CiiHpKYd.js} +8 -8
- package/dist/cards-CiiHpKYd.js.map +1 -0
- package/dist/{chart-DwYRKKc-.js → chart-QfrARkXl.js} +5 -5
- package/dist/{chart-DwYRKKc-.js.map → chart-QfrARkXl.js.map} +1 -1
- 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-oMUGM4tr.js → collapsible-D8AEGU1-.js} +4 -4
- package/dist/{collapsible-oMUGM4tr.js.map → collapsible-D8AEGU1-.js.map} +1 -1
- package/dist/{collection-content-Ys-OZOkY.js → collection-content-uK16Grv0.js} +3 -3
- package/dist/{collection-content-Ys-OZOkY.js.map → collection-content-uK16Grv0.js.map} +1 -1
- package/dist/{combobox-6dvVny2q.js → combobox-2Ic8N9bL.js} +74 -68
- package/dist/combobox-2Ic8N9bL.js.map +1 -0
- package/dist/{combobox-CB7039j7.js → combobox-DLl0bfiq.js} +307 -305
- package/dist/combobox-DLl0bfiq.js.map +1 -0
- package/dist/{command-kPMPjIxJ.js → command-kNR20o7x.js} +7 -7
- package/dist/{command-kPMPjIxJ.js.map → command-kNR20o7x.js.map} +1 -1
- package/dist/{comments-You0Bzbr.js → comments-BpDuCUUu.js} +341 -339
- package/dist/comments-BpDuCUUu.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 +4 -4
- 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/choice-inputs/checkbox.d.ts +2 -2
- package/dist/components/base/choice-inputs/choice-types.d.ts +18 -6
- 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 +15 -12
- 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/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/text-inputs/field-clear-button.d.ts +6 -0
- 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/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 +43 -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/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/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/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 +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/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 +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/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 +4 -3
- package/dist/components/ui/checkbox.d.ts +4 -3
- package/dist/components/ui/overlay.recipes.d.ts +0 -9
- package/dist/components/ui/switch.d.ts +2 -2
- package/dist/{containers-D_L4mTVb.js → containers-DmWiJa2I.js} +36 -35
- package/dist/containers-DmWiJa2I.js.map +1 -0
- package/dist/{copyable-DDjTeW_j.js → copyable-B3Gwgdqc.js} +6 -6
- package/dist/{copyable-DDjTeW_j.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-uf3z37Nm.js → date-BgK3bTdo.js} +5 -5
- package/dist/{date-uf3z37Nm.js.map → date-BgK3bTdo.js.map} +1 -1
- package/dist/date-picker-CF-DtUpF.js +1529 -0
- package/dist/date-picker-CF-DtUpF.js.map +1 -0
- package/dist/{date-pickers-CnFCb0n2.js → date-pickers-BmzxJl5l.js} +19 -19
- package/dist/{date-pickers-CnFCb0n2.js.map → date-pickers-BmzxJl5l.js.map} +1 -1
- package/dist/{display-DrdvPwF0.js → display-DsQTVzMz.js} +88 -87
- package/dist/display-DsQTVzMz.js.map +1 -0
- package/dist/{dropdown-menu-CURh59jb.js → dropdown-menu-E2qmdC7o.js} +7 -7
- package/dist/{dropdown-menu-CURh59jb.js.map → dropdown-menu-E2qmdC7o.js.map} +1 -1
- package/dist/features/activities.js +414 -501
- package/dist/features/activities.js.map +1 -1
- package/dist/features/ai-chat.js +170 -169
- 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 +73 -71
- package/dist/features/email-composer.js.map +1 -1
- package/dist/features/event-calendar.js +278 -275
- 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 +918 -825
- 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 +1115 -1122
- package/dist/features/products.js.map +1 -1
- package/dist/features/questionnaire.js +202 -194
- package/dist/features/questionnaire.js.map +1 -1
- package/dist/features/resource-assignment.js +25 -25
- 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 +33 -33
- package/dist/features/schema-form.js.map +1 -1
- package/dist/features/suggestions.js +3 -3
- package/dist/features/sync.js +3 -3
- package/dist/features/table.js +1 -1
- package/dist/features/theme-tweaker.js +397 -396
- package/dist/features/theme-tweaker.js.map +1 -1
- package/dist/{feedback-C7nR0UtT.js → feedback-qNuMBtRH.js} +84 -83
- package/dist/feedback-qNuMBtRH.js.map +1 -0
- package/dist/{field-affordance-recipes-CkOCdE2y.js → field-affordance-recipes-qQeIf4lG.js} +8 -6
- 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-Da-gNPsE.js → filters-BkHH53uv.js} +565 -563
- 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-VZRULhUK.js → form-field-DUt4UxSV.js} +4 -4
- package/dist/{form-field-VZRULhUK.js.map → form-field-DUt4UxSV.js.map} +1 -1
- package/dist/{form-sizing-uWP4lzVh.js → form-sizing-By94KzXE.js} +19 -15
- package/dist/form-sizing-By94KzXE.js.map +1 -0
- package/dist/{forms-DDeEnXSY.js → forms-Bzha-Y3B.js} +22 -22
- package/dist/{forms-DDeEnXSY.js.map → forms-Bzha-Y3B.js.map} +1 -1
- package/dist/{forms-numeric-D3CO60IF.js → forms-numeric-C0bvjRPZ.js} +265 -264
- package/dist/forms-numeric-C0bvjRPZ.js.map +1 -0
- package/dist/{header-2ycNqGOR.js → header-BOefOKd1.js} +47 -51
- package/dist/header-BOefOKd1.js.map +1 -0
- package/dist/{hooks-DQ5SPwZw.js → hooks-9k_TtmKh.js} +2 -2
- package/dist/{hooks-DQ5SPwZw.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-BoLm9Hks.js → input-Ddi_LSYv.js} +3 -3
- package/dist/{input-BoLm9Hks.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-xzh8Df65.js → item-DEmDiTlD.js} +98 -97
- 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 +1 -0
- package/dist/lib/field-affordance-recipes.d.ts +6 -1
- 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 +35 -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/token-merge.generated.d.ts +9 -6
- package/dist/lib/tone-recipes.d.ts +79 -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 +9 -0
- 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-YfFmbXNP.js → message-CdHgIWKf.js} +5 -5
- package/dist/{message-YfFmbXNP.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-DlU-4QYO.js → navigation-row-recipes-BVowojQw.js} +2 -2
- package/dist/{navigation-row-recipes-DlU-4QYO.js.map → navigation-row-recipes-BVowojQw.js.map} +1 -1
- package/dist/{number-CKRBYmZK.js → number-DMhe-Vsk.js} +5 -5
- package/dist/{number-CKRBYmZK.js.map → number-DMhe-Vsk.js.map} +1 -1
- 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-B5dTH9gE.js +224 -0
- 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-Cm0jqa3I.js → pagination-3bPA_a6K.js} +15 -15
- package/dist/{pagination-Cm0jqa3I.js.map → pagination-3bPA_a6K.js.map} +1 -1
- package/dist/{popover-Dcv_9jxr.js → popover-Di55PyAI.js} +8 -8
- package/dist/popover-Di55PyAI.js.map +1 -0
- package/dist/{popover-menu-DnRFKnHP.js → popover-menu-B71Tn2Qz.js} +6 -6
- package/dist/{popover-menu-DnRFKnHP.js.map → popover-menu-B71Tn2Qz.js.map} +1 -1
- package/dist/{popover.recipes-wmbvL8Ah.js → popover.recipes-Bdyhj2db.js} +2 -2
- package/dist/{popover.recipes-wmbvL8Ah.js.map → popover.recipes-Bdyhj2db.js.map} +1 -1
- package/dist/{primitives-BHrwQXFC.js → primitives-B-CkiEMU.js} +5 -5
- package/dist/{primitives-BHrwQXFC.js.map → primitives-B-CkiEMU.js.map} +1 -1
- package/dist/primitives.js +4 -4
- package/dist/{progress-Br9WTFya.js → progress-rnS8-uAW.js} +9 -9
- package/dist/{progress-Br9WTFya.js.map → progress-rnS8-uAW.js.map} +1 -1
- package/dist/{receipt-CV89q1fs.js → receipt-D0oswZ0p.js} +6 -6
- package/dist/{receipt-CV89q1fs.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-Do5GWDYi.js → separator-C8DlRGwF.js} +3 -3
- package/dist/{separator-Do5GWDYi.js.map → separator-C8DlRGwF.js.map} +1 -1
- package/dist/{separator-BMEvwnSX.js → separator-CYHnjsAb.js} +2 -2
- package/dist/{separator-BMEvwnSX.js.map → separator-CYHnjsAb.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-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-Crc9M9JV.js → sidebar-C7WWR29L.js} +180 -179
- package/dist/sidebar-C7WWR29L.js.map +1 -0
- package/dist/{sidebar-Cb8WzOvE.js → sidebar-d7Dg80ln.js} +16 -16
- package/dist/sidebar-d7Dg80ln.js.map +1 -0
- package/dist/{skeleton-DVMXr15h.js → skeleton-Cz890JZF.js} +9 -9
- package/dist/{skeleton-DVMXr15h.js.map → skeleton-Cz890JZF.js.map} +1 -1
- package/dist/smart-card-lFKxn5Hu.js +595 -0
- package/dist/smart-card-lFKxn5Hu.js.map +1 -0
- package/dist/{spinner-CmTAbEp0.js → spinner-fa3h1Aif.js} +7 -7
- package/dist/{spinner-CmTAbEp0.js.map → spinner-fa3h1Aif.js.map} +1 -1
- package/dist/{structure-hzCW-XsV.js → structure-DC2dygdA.js} +2 -2
- package/dist/{structure-hzCW-XsV.js.map → structure-DC2dygdA.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-D6zKeYQX.js → table-CIKyLUsy.js} +59 -58
- package/dist/table-CIKyLUsy.js.map +1 -0
- package/dist/table-CrcLN9Io.js +1458 -0
- package/dist/table-CrcLN9Io.js.map +1 -0
- package/dist/{tabs-Dk8E_knt.js → tabs-DwBJfjxX.js} +58 -57
- package/dist/tabs-DwBJfjxX.js.map +1 -0
- package/dist/{text-inputs-BFpku0Qd.js → text-inputs-aaK9wcDT.js} +74 -79
- package/dist/text-inputs-aaK9wcDT.js.map +1 -0
- package/dist/theme.css +3 -3
- package/dist/{timelines-CxuAFIc2.js → timelines-C_SBwHNP.js} +153 -150
- 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/{tree-BotPlyiD.js → tree-BiKhg8AY.js} +68 -66
- 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 +1 -1
- package/dist/{ui-provider-D2_TeLqw.js → ui-provider-1D_NSYzO.js} +11 -3
- package/dist/ui-provider-1D_NSYzO.js.map +1 -0
- package/dist/ui-provider.js +3 -3
- package/dist/{upload-B0WHW7ak.js → upload-BO8-CLN6.js} +209 -209
- package/dist/upload-BO8-CLN6.js.map +1 -0
- package/dist/{upload-queue-BHZ_wBfd.js → upload-queue-EOC8g1gf.js} +109 -111
- 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-U0YBLTNT.js → usage-card-obRaBskq.js} +46 -46
- package/dist/{usage-card-U0YBLTNT.js.map → usage-card-obRaBskq.js.map} +1 -1
- package/dist/{utils-Cospvlj1.js → utils-l5LpDw2z.js} +56 -24
- 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-Deb3yQZg.js → value-typography-b8wpz1eX.js} +2 -2
- package/dist/{value-typography-Deb3yQZg.js.map → value-typography-b8wpz1eX.js.map} +1 -1
- package/dist/workspace-DH0v0KcB.js +407 -0
- package/dist/workspace-DH0v0KcB.js.map +1 -0
- package/docs/consumer-skill/SKILL.md +19 -20
- 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 +51 -8
- package/docs/consumer-skill/references/design-contract.md +12 -3
- package/docs/consumer-skill/references/installation.md +11 -1
- package/docs/consumer-skill/references/public-api.json +847 -447
- package/docs/consumer-skill/references/review.md +25 -5
- package/docs/consumer-skill/references/theming.md +8 -4
- package/docs/consumer-skill/references/tokens.json +1 -1
- package/docs/consumer-skill/references/workflows.md +29 -10
- package/docs/consumer-skill/scripts/composition-policy.mjs +41 -11
- package/docs/consumer-skill/scripts/surface-policy.mjs +139 -5
- package/package.json +10 -2
- 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.map +0 -1
- 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.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.map +0 -1
- 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/display-DrdvPwF0.js.map +0 -1
- package/dist/feedback-C7nR0UtT.js.map +0 -1
- 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-sizing-uWP4lzVh.js.map +0 -1
- 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-DhQdBnV3.js +0 -255
- package/dist/input-DhQdBnV3.js.map +0 -1
- 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/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/popover-Dcv_9jxr.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/surface-recipes-DOdoBXGm.js +0 -28
- package/dist/surface-recipes-DOdoBXGm.js.map +0 -1
- 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.map +0 -1
- package/dist/text-inputs-BFpku0Qd.js.map +0 -1
- 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/use-file-drop-target-BX7GnhoQ.js +0 -39
- package/dist/use-file-drop-target-BX7GnhoQ.js.map +0 -1
- package/dist/utils-Cospvlj1.js.map +0 -1
- package/dist/value-inputs-CjfzGMsN.js +0 -854
- package/dist/value-inputs-CjfzGMsN.js.map +0 -1
- package/dist/workspace-YoFjXi6i.js +0 -394
- package/dist/workspace-YoFjXi6i.js.map +0 -1
- /package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-list.strings.d.ts +0 -0
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { type DiscountStackPreviewProps } from './types';
|
|
2
|
-
export declare function DiscountStackPreview({ discounts, totalSavings, className, strings: stringsProp, }: DiscountStackPreviewProps): import("react").JSX.Element;
|
|
2
|
+
export declare function DiscountStackPreview({ discounts, totalSavings, className, strings: stringsProp, ...props }: DiscountStackPreviewProps): import("react").JSX.Element;
|
|
3
3
|
export declare namespace DiscountStackPreview {
|
|
4
4
|
var displayName: string;
|
|
5
5
|
}
|
|
6
|
+
/** The source kit's name for `DiscountStackPreview`; the same component. */
|
|
7
|
+
export declare const DiscountStack: typeof DiscountStackPreview;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { DiscountStackPreview } from './discount-stack';
|
|
2
|
-
export { defaultDiscountStackStrings, type Discount, type DiscountStackPreviewProps, type DiscountStackStrings, } from './types';
|
|
1
|
+
export { DiscountStack, DiscountStackPreview } from './discount-stack';
|
|
2
|
+
export { defaultDiscountStackStrings, type Discount, type DiscountStackPreviewProps, type DiscountStackProps, type DiscountStackStrings, } from './types';
|
|
@@ -1,12 +1,22 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
1
2
|
import type { BadgeTone } from '../../../base/badge';
|
|
2
3
|
import type { StringsProp } from '../../../../lib/strings';
|
|
3
4
|
export interface Discount {
|
|
4
|
-
|
|
5
|
+
/** Stable identity for this entry. Falls back to the kind, label and position. */
|
|
6
|
+
id?: string;
|
|
5
7
|
/** Display label. */
|
|
6
8
|
label: string;
|
|
9
|
+
/** Already formatted. Rendered as a deduction whatever sign it carries. */
|
|
7
10
|
amount: string;
|
|
8
|
-
/**
|
|
9
|
-
|
|
11
|
+
/** What kind of discount it is ("Code", "Automatic"), shown quietly beside the amount. */
|
|
12
|
+
kind?: ReactNode;
|
|
13
|
+
/** The kind as plain text. Kept for existing callers; `kind` wins when both are set. */
|
|
14
|
+
type?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Draws the kind as a chip in this tone. Discount kinds are categories, so
|
|
17
|
+
* pass `neutral` unless the chip states a status. Omit it for the quiet note.
|
|
18
|
+
*/
|
|
19
|
+
badge?: BadgeTone;
|
|
10
20
|
}
|
|
11
21
|
export interface DiscountStackStrings {
|
|
12
22
|
/** Surface title. */
|
|
@@ -15,7 +25,7 @@ export interface DiscountStackStrings {
|
|
|
15
25
|
totalSavings: string;
|
|
16
26
|
}
|
|
17
27
|
export declare const defaultDiscountStackStrings: DiscountStackStrings;
|
|
18
|
-
export interface DiscountStackPreviewProps {
|
|
28
|
+
export interface DiscountStackPreviewProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children' | 'title'> {
|
|
19
29
|
/** Discounts applied, in the order they stack. */
|
|
20
30
|
discounts: Discount[];
|
|
21
31
|
/** Formatted sum of every discount. */
|
|
@@ -25,3 +35,5 @@ export interface DiscountStackPreviewProps {
|
|
|
25
35
|
/** Overrides this surface's own copy. */
|
|
26
36
|
strings?: StringsProp<DiscountStackStrings>;
|
|
27
37
|
}
|
|
38
|
+
/** The source kit's name for `DiscountStackPreviewProps`. */
|
|
39
|
+
export type DiscountStackProps = DiscountStackPreviewProps;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type FulfillmentGroupProps } from './types';
|
|
2
|
+
export declare function FulfillmentGroup({ status, location, notice, noticeIcon: NoticeIcon, items, children, actions, renderLink, className, strings: stringsProp, ...props }: FulfillmentGroupProps): import("react").JSX.Element;
|
|
3
|
+
export declare namespace FulfillmentGroup {
|
|
4
|
+
var displayName: string;
|
|
5
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef, ComponentType, ReactNode } from 'react';
|
|
2
|
+
import type { ActionMenuAction, ActionMenuProps } from '../../../base/action-menu';
|
|
3
|
+
import type { StringsProp } from '../../../../lib/strings';
|
|
4
|
+
import type { OrderLine, OrderLineItemStrings } from '../order-line-item/types';
|
|
5
|
+
import { type FulfillmentStatus } from '../shared/order-status';
|
|
6
|
+
export interface FulfillmentGroupStrings extends OrderLineItemStrings {
|
|
7
|
+
/** Label for each `FulfillmentStatus`. The tone stays derived from the status. */
|
|
8
|
+
fulfillment: Record<FulfillmentStatus, string>;
|
|
9
|
+
/** Names the group by state and size: "Unfulfilled (3)". */
|
|
10
|
+
formatHeading: (status: string, count: number) => string;
|
|
11
|
+
/** Accessible name of the overflow menu holding every action after the first. */
|
|
12
|
+
moreActions: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const defaultFulfillmentGroupStrings: FulfillmentGroupStrings;
|
|
15
|
+
export interface FulfillmentGroupProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children' | 'title'> {
|
|
16
|
+
/** Where these goods are. Drives the heading chip's label and tone. */
|
|
17
|
+
status: FulfillmentStatus;
|
|
18
|
+
/** Where the group ships from. */
|
|
19
|
+
location?: ReactNode;
|
|
20
|
+
/** A standing fact about the group: "Shipping not required". */
|
|
21
|
+
notice?: ReactNode;
|
|
22
|
+
/**
|
|
23
|
+
* Glyph beside the notice, sized by the group. A component rather than a
|
|
24
|
+
* node, so it arrives at the icon size of the text it annotates.
|
|
25
|
+
*/
|
|
26
|
+
noticeIcon?: ComponentType<{
|
|
27
|
+
className?: string;
|
|
28
|
+
}>;
|
|
29
|
+
/** The rows, as data. The heading counts them. */
|
|
30
|
+
items?: OrderLine[];
|
|
31
|
+
/** Replaces `items` wholesale, for a caller who needs control of a row. The heading then carries no count. */
|
|
32
|
+
children?: ReactNode;
|
|
33
|
+
/**
|
|
34
|
+
* The group's commands. The first renders as a button and the rest collapse
|
|
35
|
+
* into an overflow menu: one array, so the menu never repeats the button.
|
|
36
|
+
* Mark the main command `tone: 'primary'`.
|
|
37
|
+
*/
|
|
38
|
+
actions?: readonly ActionMenuAction[];
|
|
39
|
+
/** Renders `href` actions through the consumer's router. */
|
|
40
|
+
renderLink?: ActionMenuProps['renderLink'];
|
|
41
|
+
/** Overrides this surface's own copy, including the status words. */
|
|
42
|
+
strings?: StringsProp<FulfillmentGroupStrings>;
|
|
43
|
+
}
|
|
@@ -4,8 +4,8 @@ export { Receipt, ReceiptItems, type ReceiptProps, type ReceiptItemsProps, type
|
|
|
4
4
|
export { BookingCalendarEventCard, type BookingCalendarEventCardItem, type BookingCalendarEventCardProps, } from './booking-calendar-event-card';
|
|
5
5
|
export type { LoyaltyHistoryEntry, LoyaltyPointsProps, LoyaltyPointsStrings } from './loyalty-points';
|
|
6
6
|
export { LoyaltyPoints, defaultLoyaltyPointsStrings } from './loyalty-points';
|
|
7
|
-
export type { Discount, DiscountStackPreviewProps, DiscountStackStrings } from './discount-stack';
|
|
8
|
-
export { DiscountStackPreview, defaultDiscountStackStrings } from './discount-stack';
|
|
7
|
+
export type { Discount, DiscountStackPreviewProps, DiscountStackProps, DiscountStackStrings } from './discount-stack';
|
|
8
|
+
export { DiscountStack, DiscountStackPreview, defaultDiscountStackStrings } from './discount-stack';
|
|
9
9
|
export type { ShipmentDetail, ShipmentStatus, ShipmentTrackingProps, ShipmentTrackingStrings, TrackingStep, } from './shipment-tracking';
|
|
10
10
|
export { ShipmentTracking, defaultShipmentTrackingStrings } from './shipment-tracking';
|
|
11
11
|
export { GiftcardCard, type GiftcardCardProps, type GiftcardCardVariant, type GiftcardData, type GradientVariant, type PatternVariant, type AccentColor, type HeaderColor, } from './giftcard-card';
|
|
@@ -13,13 +13,13 @@ export { defaultVendorProfileStrings, VendorProfileCard, type VendorProfileCardP
|
|
|
13
13
|
export { InventoryLevel, defaultInventoryLevelStrings, type InventoryLevelProps, type InventoryLevelStrings, } from './inventory-level';
|
|
14
14
|
export { TaxBreakdownCard, defaultTaxBreakdownStrings, type TaxBreakdownCardProps, type TaxBreakdownStrings, type TaxLineItem, } from './tax-breakdown';
|
|
15
15
|
export { SubscriptionSummaryCard, defaultSubscriptionSummaryStrings, type SubscriptionSummaryCardProps, type SubscriptionSummaryStrings, type SubscriptionPerk, } from './subscription-summary';
|
|
16
|
-
export { RefundStatusCard, defaultRefundStatusStrings, type RefundStatusCardProps, type RefundStatusStrings, type RefundStage, } from './refund-status';
|
|
16
|
+
export { RefundStatus, RefundStatusCard, defaultRefundStatusStrings, type RefundStatusProps, type RefundStatusCardProps, type RefundStatusStrings, type RefundStage, } from './refund-status';
|
|
17
17
|
export { AddressCard, defaultAddressCardStrings, type AddressCardProps, type AddressCardStrings, type AddressKind, } from './address-card';
|
|
18
18
|
export { VoucherEntry, defaultVoucherEntryStrings, type VoucherEntryProps, type VoucherEntryStrings, } from './voucher-entry';
|
|
19
|
-
export { CartSummaryCard, defaultCartSummaryStrings, type CartSummaryCardProps, type CartSummaryStrings, type CartLineItem, } from './cart-summary';
|
|
19
|
+
export { CartSummary, CartSummaryCard, defaultCartSummaryStrings, type CartSummaryProps, type CartSummaryCardProps, type CartSummaryStrings, type CartLineItem, } from './cart-summary';
|
|
20
20
|
export { CouponInputCard, defaultCouponInputStrings, type CouponInputCardProps, type CouponInputStrings, } from './coupon-input';
|
|
21
21
|
export { OrderStatusCard, defaultOrderStatusStrings, type OrderStatusCardProps, type OrderStatusStrings, type OrderStatusEvent, type OrderStatusKind, } from './order-status';
|
|
22
|
-
export { PaymentMethod, defaultPaymentMethodStrings, type PaymentMethodProps, type PaymentMethodStrings, type PaymentBrand, } from './payment-method';
|
|
22
|
+
export { PaymentMethod, PaymentMethodCard, defaultPaymentMethodStrings, type PaymentMethodCardProps, type PaymentMethodProps, type PaymentMethodStrings, type PaymentMethodVariant, type PaymentBrand, } from './payment-method';
|
|
23
23
|
export { SeoListingCard, DEFAULT_SEO_LISTING_LIMITS, calculateSeoListingScore, defaultSeoListingCardStrings, getSeoPermalinkPath, getSeoPermalinkSlug, type SeoListingCardProps, type SeoListingCardStrings, type SeoListingCheckId, type SeoListingCheckResult, type SeoListingCheckStatus, type SeoListingScoreInput, type SeoListingScoreLimits, type SeoListingScoreResult, } from './seo-listing';
|
|
24
24
|
export type { InvoiceStatus, InvoiceMiniData, InvoiceMiniProps } from './invoice-mini';
|
|
25
25
|
export { InvoiceMini } from './invoice-mini';
|
|
@@ -32,3 +32,11 @@ export { OrderTimeline } from './order-timeline';
|
|
|
32
32
|
export type { PaymentEvent, PaymentTimelineProps } from './payment-timeline';
|
|
33
33
|
export { PaymentTimeline } from './payment-timeline';
|
|
34
34
|
export { InventorySectionCard, defaultInventorySectionStrings, type InventoryPolicy, type InventorySectionCardProps, type InventorySectionChange, type InventorySectionField, type InventorySectionMetric, type InventorySectionName, type InventorySectionStrings, type InventorySectionValue, type InventoryStatus, } from './inventory-section';
|
|
35
|
+
export { AmountRow, SummaryPanel, type AmountRowProps, type SummaryPanelProps } from './summary-panel';
|
|
36
|
+
export type { FulfillmentStatus, OrderAddress, PaymentStatus, TransactionKind, TransactionStatus, } from './shared/order-status';
|
|
37
|
+
export { OrderHeader, defaultOrderHeaderStrings, type OrderHeaderProps, type OrderHeaderStrings, } from './order-header';
|
|
38
|
+
export { FulfillmentGroup, defaultFulfillmentGroupStrings, type FulfillmentGroupProps, type FulfillmentGroupStrings, } from './fulfillment-group';
|
|
39
|
+
export { OrderLineItem, defaultOrderLineItemStrings, type OrderLine, type OrderLineItemProps, type OrderLineItemStrings, type OrderLineProperty, } from './order-line-item';
|
|
40
|
+
export { OrderSummary, defaultOrderSummaryStrings, type OrderSummaryProps, type OrderSummaryStrings, type SummaryLine, } from './order-summary';
|
|
41
|
+
export { OrderTransactions, defaultOrderTransactionsStrings, type OrderTransactionsProps, type OrderTransactionsStrings, type Transaction, } from './order-transactions';
|
|
42
|
+
export { OrderCustomer, defaultOrderCustomerStrings, type OrderCustomerProps, type OrderCustomerStrings, } from './order-customer';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type InvoiceHeaderProps } from './types';
|
|
2
|
-
export declare function InvoiceHeader({ invoiceNumber, status, statusTone, from, to, issuedDate, dueDate, amount, className, strings: stringsProp, }: InvoiceHeaderProps): import("react").JSX.Element;
|
|
2
|
+
export declare function InvoiceHeader({ invoiceNumber, status, statusTone, from, to, issuedDate, dueDate, amount, className, strings: stringsProp, ...props }: InvoiceHeaderProps): import("react").JSX.Element;
|
|
3
3
|
export declare namespace InvoiceHeader {
|
|
4
4
|
var displayName: string;
|
|
5
5
|
}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
1
2
|
import type { BadgeTone } from '../../../base/badge';
|
|
2
3
|
import type { StringsProp } from '../../../../lib/strings';
|
|
3
4
|
import type { InvoiceStatus } from '../invoice-mini/types';
|
|
4
5
|
export interface InvoiceParty {
|
|
5
6
|
/** Display name. */
|
|
6
7
|
name: string;
|
|
7
|
-
|
|
8
|
+
/** Where the party is: a city line, or a node such as a full address. */
|
|
9
|
+
location?: ReactNode;
|
|
8
10
|
}
|
|
9
11
|
export interface InvoiceHeaderStrings {
|
|
10
12
|
/** Surface title. */
|
|
@@ -20,7 +22,7 @@ export interface InvoiceHeaderStrings {
|
|
|
20
22
|
overdue: string;
|
|
21
23
|
}
|
|
22
24
|
export declare const defaultInvoiceHeaderStrings: InvoiceHeaderStrings;
|
|
23
|
-
export interface InvoiceHeaderProps {
|
|
25
|
+
export interface InvoiceHeaderProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children' | 'title'> {
|
|
24
26
|
/** Human-facing invoice reference. */
|
|
25
27
|
invoiceNumber: string;
|
|
26
28
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type InvoiceMiniProps } from './types';
|
|
2
|
-
export declare function InvoiceMini({ invoice, className, strings: stringsProp, }: InvoiceMiniProps): import("react").JSX.Element;
|
|
2
|
+
export declare function InvoiceMini({ invoice, className, strings: stringsProp, ...props }: InvoiceMiniProps): import("react").JSX.Element;
|
|
3
3
|
export declare namespace InvoiceMini {
|
|
4
4
|
var displayName: string;
|
|
5
5
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef } from 'react';
|
|
1
2
|
import type { BadgeTone } from '../../../base/badge';
|
|
2
3
|
import type { StringsProp } from '../../../../lib/strings';
|
|
3
4
|
export type InvoiceStatus = 'paid' | 'pending' | 'overdue';
|
|
@@ -17,7 +18,7 @@ export interface InvoiceMiniStrings {
|
|
|
17
18
|
due: string;
|
|
18
19
|
}
|
|
19
20
|
export declare const defaultInvoiceMiniStrings: InvoiceMiniStrings;
|
|
20
|
-
export interface InvoiceMiniProps {
|
|
21
|
+
export interface InvoiceMiniProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children'> {
|
|
21
22
|
/** The invoice to summarise. */
|
|
22
23
|
invoice: InvoiceMiniData;
|
|
23
24
|
/** Merged onto the outermost node. */
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type OrderCustomerProps } from './types';
|
|
2
|
+
export declare function OrderCustomer({ name, email, phone, orderCount, shippingAddress, billingAddress, billingSameAsShipping, onOpenCustomer, onEditShipping, onEditBilling, surface, padding, headerDivider, className, strings: stringsProp, ...props }: OrderCustomerProps): import("react").JSX.Element;
|
|
3
|
+
export declare namespace OrderCustomer {
|
|
4
|
+
var displayName: string;
|
|
5
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import type { CardProps } from '../../../base/cards';
|
|
3
|
+
import type { StringsProp } from '../../../../lib/strings';
|
|
4
|
+
import type { OrderAddress } from '../shared/order-status';
|
|
5
|
+
export interface OrderCustomerStrings {
|
|
6
|
+
/** Surface title. */
|
|
7
|
+
title: string;
|
|
8
|
+
shippingAddress: string;
|
|
9
|
+
billingAddress: string;
|
|
10
|
+
/**
|
|
11
|
+
* One name per edit button: each is the accessible name of a glyph with no
|
|
12
|
+
* text beside it, and a single "Edit" would announce two controls alike.
|
|
13
|
+
*/
|
|
14
|
+
editShipping: string;
|
|
15
|
+
editBilling: string;
|
|
16
|
+
/** Shown in place of a repeated billing address. */
|
|
17
|
+
sameAsShipping: string;
|
|
18
|
+
/** Shown when an address is missing. */
|
|
19
|
+
noAddress: string;
|
|
20
|
+
/** How many orders the customer has placed, this one included. */
|
|
21
|
+
formatOrderCount: (count: number) => string;
|
|
22
|
+
}
|
|
23
|
+
export declare const defaultOrderCustomerStrings: OrderCustomerStrings;
|
|
24
|
+
/** Unframed by default. Set surface="card" to let this owner frame its heading and body. */
|
|
25
|
+
export interface OrderCustomerProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children' | 'title'>, Pick<CardProps, 'surface' | 'padding' | 'headerDivider'> {
|
|
26
|
+
/** The customer's display name. */
|
|
27
|
+
name: string;
|
|
28
|
+
/** Contact email, rendered as a mail link. */
|
|
29
|
+
email?: string;
|
|
30
|
+
/** Contact number, rendered as a call link. */
|
|
31
|
+
phone?: string;
|
|
32
|
+
/** How many orders this customer has placed, this one included. */
|
|
33
|
+
orderCount?: number;
|
|
34
|
+
/** Where the order ships. */
|
|
35
|
+
shippingAddress?: OrderAddress;
|
|
36
|
+
/** Where the order is billed. */
|
|
37
|
+
billingAddress?: OrderAddress;
|
|
38
|
+
/** Renders one line in place of a repeated billing address. */
|
|
39
|
+
billingSameAsShipping?: boolean;
|
|
40
|
+
/** Turns the identity row into a button. The app decides whether it navigates or opens a panel. */
|
|
41
|
+
onOpenCustomer?: () => void;
|
|
42
|
+
/** Shows an edit button on the shipping address. */
|
|
43
|
+
onEditShipping?: () => void;
|
|
44
|
+
/** Shows an edit button on the billing address. */
|
|
45
|
+
onEditBilling?: () => void;
|
|
46
|
+
/** Overrides this surface's own copy. */
|
|
47
|
+
strings?: StringsProp<OrderCustomerStrings>;
|
|
48
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type OrderHeaderProps } from './types';
|
|
2
|
+
export declare function OrderHeader({ orderNumber, fulfillmentStatus, paymentStatus, placedAt, source, actions, renderLink, headingTag, className, strings: stringsProp, ...props }: OrderHeaderProps): import("react").JSX.Element;
|
|
3
|
+
export declare namespace OrderHeader {
|
|
4
|
+
var displayName: string;
|
|
5
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import type { ActionMenuAction, ActionMenuProps } from '../../../base/action-menu';
|
|
3
|
+
import type { HeadingTag } from '../../../typography';
|
|
4
|
+
import type { StringsProp } from '../../../../lib/strings';
|
|
5
|
+
import { type FulfillmentStatus, type OrderStatusVocabulary, type PaymentStatus } from '../shared/order-status';
|
|
6
|
+
export interface OrderHeaderStrings extends OrderStatusVocabulary {
|
|
7
|
+
/** Writes the order's own reference: "#1036". */
|
|
8
|
+
formatOrderNumber: (orderNumber: string) => string;
|
|
9
|
+
/** Joins when the order was placed to where it came from. */
|
|
10
|
+
formatOrigin: (placedAt: string, source: string) => string;
|
|
11
|
+
/** Accessible name of the actions menu trigger. */
|
|
12
|
+
moreActions: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const defaultOrderHeaderStrings: OrderHeaderStrings;
|
|
15
|
+
export interface OrderHeaderProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children'> {
|
|
16
|
+
/** The order's reference, without the leading sign `formatOrderNumber` adds. */
|
|
17
|
+
orderNumber: string;
|
|
18
|
+
/** Where the goods are. Independent of payment. */
|
|
19
|
+
fulfillmentStatus?: FulfillmentStatus;
|
|
20
|
+
/**
|
|
21
|
+
* Where the money is. Both statuses, one, or neither read correctly: an
|
|
22
|
+
* order with nothing to ship has no fulfillment state to state.
|
|
23
|
+
*/
|
|
24
|
+
paymentStatus?: PaymentStatus;
|
|
25
|
+
/** Already formatted. */
|
|
26
|
+
placedAt?: string;
|
|
27
|
+
/** Where the order came from: a channel, an app, an import. */
|
|
28
|
+
source?: string;
|
|
29
|
+
/** Order commands, offered from one actions menu at the end of the title row. */
|
|
30
|
+
actions?: readonly ActionMenuAction[];
|
|
31
|
+
/** Renders `href` actions through the consumer's router. */
|
|
32
|
+
renderLink?: ActionMenuProps['renderLink'];
|
|
33
|
+
/** Heading level of the order number. Defaults to `h1`: the order is the page's subject. */
|
|
34
|
+
headingTag?: HeadingTag;
|
|
35
|
+
/** Overrides this header's own copy, including the status words. */
|
|
36
|
+
strings?: StringsProp<OrderHeaderStrings>;
|
|
37
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type OrderLineItemProps } from './types';
|
|
2
|
+
export declare function OrderLineItem({ id, title, variantTitle, sku, imageSrc, imageAlt, unitPrice, quantity, total, properties, children, className, strings: stringsProp, ...props }: OrderLineItemProps): import("react").JSX.Element;
|
|
3
|
+
export declare namespace OrderLineItem {
|
|
4
|
+
var displayName: string;
|
|
5
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
import type { StringsProp } from '../../../../lib/strings';
|
|
3
|
+
/** A per-line fact the kit did not anticipate: a gift message, an engraving, an interval. */
|
|
4
|
+
export interface OrderLineProperty {
|
|
5
|
+
/** What the fact is. */
|
|
6
|
+
label: ReactNode;
|
|
7
|
+
/** The fact itself. */
|
|
8
|
+
value: ReactNode;
|
|
9
|
+
}
|
|
10
|
+
/** One line of ordered goods, as data. */
|
|
11
|
+
export interface OrderLine {
|
|
12
|
+
/** Stable identity for this line. */
|
|
13
|
+
id: string;
|
|
14
|
+
/** Product name. */
|
|
15
|
+
title: string;
|
|
16
|
+
/** The chosen option: "OS / blue". */
|
|
17
|
+
variantTitle?: string;
|
|
18
|
+
/** Stock-keeping unit, shown as an identifier. */
|
|
19
|
+
sku?: string;
|
|
20
|
+
/** Product image. Without one, or when it fails to load, the line's initials show. */
|
|
21
|
+
imageSrc?: string;
|
|
22
|
+
/** Alternative text for the image. Defaults to the title. */
|
|
23
|
+
imageAlt?: string;
|
|
24
|
+
/** Already formatted, including its currency. */
|
|
25
|
+
unitPrice: string;
|
|
26
|
+
/** Units ordered. */
|
|
27
|
+
quantity: number;
|
|
28
|
+
/**
|
|
29
|
+
* Already formatted. Passed, never multiplied: discounts, tax and proration
|
|
30
|
+
* break `unitPrice × quantity`.
|
|
31
|
+
*/
|
|
32
|
+
total: string;
|
|
33
|
+
/** Per-line custom data, rendered as label/value pairs under the title. */
|
|
34
|
+
properties?: OrderLineProperty[];
|
|
35
|
+
/** Whatever `properties` cannot express, under them. */
|
|
36
|
+
children?: ReactNode;
|
|
37
|
+
}
|
|
38
|
+
export interface OrderLineItemStrings {
|
|
39
|
+
/** Reads the price column aloud: "€50.00 × 1". */
|
|
40
|
+
formatUnitPrice: (unitPrice: string, quantity: number) => string;
|
|
41
|
+
}
|
|
42
|
+
export declare const defaultOrderLineItemStrings: OrderLineItemStrings;
|
|
43
|
+
export interface OrderLineItemProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children' | 'id' | 'title'>, OrderLine {
|
|
44
|
+
/** Overrides this row's own copy. */
|
|
45
|
+
strings?: StringsProp<OrderLineItemStrings>;
|
|
46
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type OrderSummaryProps } from './types';
|
|
2
|
+
export declare function OrderSummary({ goods, total, payments, paymentStatus, alert, surface, padding, headerDivider, className, strings: stringsProp, ...props }: OrderSummaryProps): import("react").JSX.Element;
|
|
3
|
+
export declare namespace OrderSummary {
|
|
4
|
+
var displayName: string;
|
|
5
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
import type { CardProps } from '../../../base/cards';
|
|
3
|
+
import type { StringsProp } from '../../../../lib/strings';
|
|
4
|
+
import { type PaymentStatus } from '../shared/order-status';
|
|
5
|
+
/** One row of an order's money ledger. */
|
|
6
|
+
export interface SummaryLine {
|
|
7
|
+
/** Stable identity. Falls back to the row's position. */
|
|
8
|
+
id?: string;
|
|
9
|
+
/** What the amount is: "Subtotal", "Paid". */
|
|
10
|
+
label: ReactNode;
|
|
11
|
+
/** A count or rate beside the amount: "3 items", "20%". */
|
|
12
|
+
note?: ReactNode;
|
|
13
|
+
/** Already formatted, including its currency. */
|
|
14
|
+
amount: string;
|
|
15
|
+
/** Money off the customer's total, shown with one U+2212 in success ink. */
|
|
16
|
+
deduction?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export interface OrderSummaryStrings {
|
|
19
|
+
/** Surface title. */
|
|
20
|
+
title: string;
|
|
21
|
+
/** Label for each `PaymentStatus`. The tone stays derived from the status. */
|
|
22
|
+
payment: Record<PaymentStatus, string>;
|
|
23
|
+
}
|
|
24
|
+
export declare const defaultOrderSummaryStrings: OrderSummaryStrings;
|
|
25
|
+
/** Unframed by default. Set surface="card" to let this owner frame its heading and body. */
|
|
26
|
+
export interface OrderSummaryProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children' | 'title'>, Pick<CardProps, 'surface' | 'padding' | 'headerDivider'> {
|
|
27
|
+
/** What was ordered: subtotal, discount, shipping, tax. */
|
|
28
|
+
goods: SummaryLine[];
|
|
29
|
+
/** The line the eye should land on, closing the goods ledger. */
|
|
30
|
+
total: SummaryLine;
|
|
31
|
+
/** What has actually moved: paid, refunded, balance. A separate ledger from the goods. */
|
|
32
|
+
payments?: SummaryLine[];
|
|
33
|
+
/** Where the money is, as a chip beside the title. */
|
|
34
|
+
paymentStatus?: PaymentStatus;
|
|
35
|
+
/**
|
|
36
|
+
* Standing information about the balance, below the ledgers as a warning
|
|
37
|
+
* note (`role="note"`): a caveat, not an error.
|
|
38
|
+
*/
|
|
39
|
+
alert?: ReactNode;
|
|
40
|
+
/** Overrides this surface's own copy, including the status words. */
|
|
41
|
+
strings?: StringsProp<OrderSummaryStrings>;
|
|
42
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type OrderTransactionsProps } from './types';
|
|
2
|
+
export declare function OrderTransactions({ transactions, surface, padding, headerDivider, className, strings: stringsProp, ...props }: OrderTransactionsProps): import("react").JSX.Element;
|
|
3
|
+
export declare namespace OrderTransactions {
|
|
4
|
+
var displayName: string;
|
|
5
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import type { CardProps } from '../../../base/cards';
|
|
3
|
+
import type { StringsProp } from '../../../../lib/strings';
|
|
4
|
+
import type { TransactionKind, TransactionStatus } from '../shared/order-status';
|
|
5
|
+
/** One attempt against a payment method. */
|
|
6
|
+
export interface Transaction {
|
|
7
|
+
/** Stable identity for this entry. */
|
|
8
|
+
id: string;
|
|
9
|
+
/** What was attempted. Sets the sign: refunds, voids and chargebacks take money out. */
|
|
10
|
+
kind: TransactionKind;
|
|
11
|
+
/** Whether it worked. */
|
|
12
|
+
status: TransactionStatus;
|
|
13
|
+
/** The magnitude, already formatted. The sign comes from `kind`. */
|
|
14
|
+
amount: string;
|
|
15
|
+
/** Already formatted. */
|
|
16
|
+
processedAt: string;
|
|
17
|
+
/** How it was taken: "Visa ending 4417", "PayPal". */
|
|
18
|
+
method?: string;
|
|
19
|
+
/** The gateway's own identifier. Monospace: it is compared and copied, not read. */
|
|
20
|
+
reference?: string;
|
|
21
|
+
/** Which gateway processed it. */
|
|
22
|
+
gateway?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface OrderTransactionsStrings {
|
|
25
|
+
/** Surface title. */
|
|
26
|
+
title: string;
|
|
27
|
+
/** Label for each `TransactionKind`. */
|
|
28
|
+
kind: Record<TransactionKind, string>;
|
|
29
|
+
/** Chip label for each `TransactionStatus`. A successful attempt shows none. */
|
|
30
|
+
status: Record<TransactionStatus, string>;
|
|
31
|
+
/** Spoken before a gateway reference. */
|
|
32
|
+
reference: string;
|
|
33
|
+
/** Shown, and announced, when there is nothing in the ledger. */
|
|
34
|
+
empty: string;
|
|
35
|
+
}
|
|
36
|
+
export declare const defaultOrderTransactionsStrings: OrderTransactionsStrings;
|
|
37
|
+
/** Unframed by default. Set surface="card" to let this owner frame its heading and body. */
|
|
38
|
+
export interface OrderTransactionsProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children' | 'title'>, Pick<CardProps, 'surface' | 'padding' | 'headerDivider'> {
|
|
39
|
+
/**
|
|
40
|
+
* Every attempt, oldest first. A failed attempt stays listed: an order that
|
|
41
|
+
* shows only what worked cannot answer why it was never captured.
|
|
42
|
+
*/
|
|
43
|
+
transactions: Transaction[];
|
|
44
|
+
/** Overrides this surface's own copy. */
|
|
45
|
+
strings?: StringsProp<OrderTransactionsStrings>;
|
|
46
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { PaymentMethod } from './payment-method';
|
|
2
|
-
export { defaultPaymentMethodStrings, type PaymentMethodProps, type PaymentMethodStrings, type PaymentBrand, } from './types';
|
|
1
|
+
export { PaymentMethod, PaymentMethodCard } from './payment-method';
|
|
2
|
+
export { defaultPaymentMethodStrings, type PaymentMethodCardProps, type PaymentMethodProps, type PaymentMethodStrings, type PaymentMethodVariant, type PaymentBrand, } from './types';
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import { type PaymentMethodProps } from './types';
|
|
2
|
-
export declare function PaymentMethod({ brand, last4, expiry, holderName, default: defaultMethod, onChange, surface, padding, headerDivider, className, strings: stringsProp, }: PaymentMethodProps): import("react").JSX.Element;
|
|
2
|
+
export declare function PaymentMethod({ brand, last4, expiry, holderName, default: defaultMethod, onChange, variant, surface, padding, headerDivider, className, strings: stringsProp, ...props }: PaymentMethodProps): import("react").JSX.Element;
|
|
3
3
|
export declare namespace PaymentMethod {
|
|
4
4
|
var displayName: string;
|
|
5
5
|
}
|
|
6
|
+
/**
|
|
7
|
+
* The source kit's `PaymentMethodCard`: `PaymentMethod` defaulting to the
|
|
8
|
+
* compact `row` identity form. Pass `variant="card"` for the card face.
|
|
9
|
+
*/
|
|
10
|
+
export declare function PaymentMethodCard({ variant, ...props }: PaymentMethodProps): import("react").JSX.Element;
|
|
11
|
+
export declare namespace PaymentMethodCard {
|
|
12
|
+
var displayName: string;
|
|
13
|
+
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef } from 'react';
|
|
1
2
|
import type { CardProps } from '../../../base/cards';
|
|
2
3
|
import type { StringsProp } from '../../../../lib/strings';
|
|
3
4
|
export type PaymentBrand = 'visa' | 'mastercard' | 'amex' | 'paypal' | 'applepay' | 'googlepay' | 'unknown';
|
|
5
|
+
/** `card` draws the card face; `row` the compact identity row. */
|
|
6
|
+
export type PaymentMethodVariant = 'card' | 'row';
|
|
4
7
|
export interface PaymentMethodStrings {
|
|
5
8
|
/** Surface title. */
|
|
6
9
|
title: string;
|
|
@@ -8,10 +11,14 @@ export interface PaymentMethodStrings {
|
|
|
8
11
|
cardHolder: string;
|
|
9
12
|
expires: string;
|
|
10
13
|
change: string;
|
|
14
|
+
/** Each brand's name as it is read aloud and shown in the `row` form. */
|
|
15
|
+
brands: Record<PaymentBrand, string>;
|
|
16
|
+
/** Names the method without reading the number aloud: "Visa ending 4242". */
|
|
17
|
+
formatCard: (brand: string, last4: string) => string;
|
|
11
18
|
}
|
|
12
19
|
export declare const defaultPaymentMethodStrings: PaymentMethodStrings;
|
|
13
20
|
/** Unframed by default. Set surface="card" to let this owner frame its heading and body. */
|
|
14
|
-
export interface PaymentMethodProps extends Pick<CardProps, 'surface' | 'padding' | 'headerDivider'> {
|
|
21
|
+
export interface PaymentMethodProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children' | 'title' | 'onChange'>, Pick<CardProps, 'surface' | 'padding' | 'headerDivider'> {
|
|
15
22
|
/** Card network or wallet. */
|
|
16
23
|
brand: PaymentBrand;
|
|
17
24
|
/** Last four digits, the only card number this component accepts. */
|
|
@@ -28,8 +35,12 @@ export interface PaymentMethodProps extends Pick<CardProps, 'surface' | 'padding
|
|
|
28
35
|
* request to open your own method picker.
|
|
29
36
|
*/
|
|
30
37
|
onChange?: () => void;
|
|
38
|
+
/** `card` (default) draws the card face; `row` the compact identity row. */
|
|
39
|
+
variant?: PaymentMethodVariant;
|
|
31
40
|
/** Merged onto the outermost node. */
|
|
32
41
|
className?: string;
|
|
33
42
|
/** Overrides this surface's own copy. */
|
|
34
43
|
strings?: StringsProp<PaymentMethodStrings>;
|
|
35
44
|
}
|
|
45
|
+
/** Props of `PaymentMethodCard`: `PaymentMethod` with `variant` defaulting to `row`. */
|
|
46
|
+
export type PaymentMethodCardProps = PaymentMethodProps;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { RefundStatusCard } from './refund-status';
|
|
2
|
-
export { defaultRefundStatusStrings, type RefundStatusCardProps, type RefundStatusStrings, type RefundStage, } from './types';
|
|
1
|
+
export { RefundStatus, RefundStatusCard } from './refund-status';
|
|
2
|
+
export { defaultRefundStatusStrings, type RefundStatusCardProps, type RefundStatusProps, type RefundStatusStrings, type RefundStage, } from './types';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { type RefundStatusCardProps } from './types';
|
|
2
|
-
export declare function RefundStatusCard({ stage, amount, reason, method, eta, requestedAt, className, strings: stringsProp, }: RefundStatusCardProps): import("react").JSX.Element;
|
|
2
|
+
export declare function RefundStatusCard({ stage, amount, reason, method, eta, requestedAt, className, strings: stringsProp, ...props }: RefundStatusCardProps): import("react").JSX.Element;
|
|
3
3
|
export declare namespace RefundStatusCard {
|
|
4
4
|
var displayName: string;
|
|
5
5
|
}
|
|
6
|
+
/** The source kit's name for `RefundStatusCard`; the same component. */
|
|
7
|
+
export declare const RefundStatus: typeof RefundStatusCard;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
1
2
|
import type { StringsProp } from '../../../../lib/strings';
|
|
2
3
|
export type RefundStage = 'requested' | 'approved' | 'processing' | 'completed';
|
|
3
4
|
export interface RefundStatusStrings {
|
|
@@ -17,15 +18,15 @@ export interface RefundStatusStrings {
|
|
|
17
18
|
method: string;
|
|
18
19
|
}
|
|
19
20
|
export declare const defaultRefundStatusStrings: RefundStatusStrings;
|
|
20
|
-
export interface RefundStatusCardProps {
|
|
21
|
+
export interface RefundStatusCardProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children' | 'title'> {
|
|
21
22
|
/** How far the refund has progressed. */
|
|
22
23
|
stage: RefundStage;
|
|
23
24
|
/** Formatted refund amount. */
|
|
24
25
|
amount: string;
|
|
25
26
|
/** Why the refund was requested. */
|
|
26
|
-
reason?:
|
|
27
|
+
reason?: ReactNode;
|
|
27
28
|
/** Where the money is being returned to. */
|
|
28
|
-
method?:
|
|
29
|
+
method?: ReactNode;
|
|
29
30
|
/** Formatted estimate for the funds landing. */
|
|
30
31
|
eta?: string;
|
|
31
32
|
/** Formatted date the refund was raised. */
|
|
@@ -35,3 +36,5 @@ export interface RefundStatusCardProps {
|
|
|
35
36
|
/** Overrides this surface's own copy. */
|
|
36
37
|
strings?: StringsProp<RefundStatusStrings>;
|
|
37
38
|
}
|
|
39
|
+
/** The source kit's name for `RefundStatusCardProps`. */
|
|
40
|
+
export type RefundStatusProps = RefundStatusCardProps;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AddressLines — the postal block shared by `AddressCard` and `OrderCustomer`.
|
|
3
|
+
*
|
|
4
|
+
* A real `<address>` (with the browser's italic reset), so assistive technology
|
|
5
|
+
* hears contact information rather than loose lines. The recipient leads, the
|
|
6
|
+
* street lines and the city line follow in the main role, and the country
|
|
7
|
+
* recedes; the city line joins only the parts that exist. A phone number, when
|
|
8
|
+
* the address carries one, closes the block as a `Phone` link.
|
|
9
|
+
*
|
|
10
|
+
* Internal to the commerce family: it is the address anatomy, not a public
|
|
11
|
+
* component.
|
|
12
|
+
*/
|
|
13
|
+
import type { ComponentPropsWithoutRef } from 'react';
|
|
14
|
+
import type { OrderAddress } from './order-status';
|
|
15
|
+
export interface AddressLinesProps extends Omit<ComponentPropsWithoutRef<'address'>, 'children'> {
|
|
16
|
+
/** The address to render. */
|
|
17
|
+
address: OrderAddress;
|
|
18
|
+
/** Sets the recipient in semibold, for a surface that leads on the name. */
|
|
19
|
+
prominent?: boolean;
|
|
20
|
+
}
|
|
21
|
+
export declare function AddressLines({ address, prominent, className, ...props }: AddressLinesProps): import("react").JSX.Element;
|