themelia-react-ui 2.0.5 → 2.0.6
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 +76 -0
- package/MIGRATION.md +119 -0
- package/README.md +13 -6
- package/dist/{accordion-B9MHG0cT.js → accordion-0tQUZ20r.js} +7 -7
- package/dist/accordion-0tQUZ20r.js.map +1 -0
- package/dist/{action-menu-Dr8K-ghE.js → action-menu-C0gjzLyE.js} +7 -7
- package/dist/{action-menu-Dr8K-ghE.js.map → action-menu-C0gjzLyE.js.map} +1 -1
- package/dist/{ai-artifact-C58tQcBy.js → ai-artifact-CGGpQryR.js} +172 -157
- package/dist/ai-artifact-CGGpQryR.js.map +1 -0
- package/dist/{app-shell-B_IuNWOo.js → app-shell-EHuuRDGy.js} +5 -5
- package/dist/{app-shell-B_IuNWOo.js.map → app-shell-EHuuRDGy.js.map} +1 -1
- package/dist/{attachment-Dg_69lPS.js → attachment-BCpA4e7i.js} +8 -8
- package/dist/{attachment-Dg_69lPS.js.map → attachment-BCpA4e7i.js.map} +1 -1
- package/dist/{auth-DTkkshS8.js → auth-B0girIk_.js} +15 -15
- package/dist/auth-B0girIk_.js.map +1 -0
- package/dist/{avatar-CeZaFmNH.js → avatar-B9Jnp-T-.js} +3 -3
- package/dist/{avatar-CeZaFmNH.js.map → avatar-B9Jnp-T-.js.map} +1 -1
- package/dist/{badge-xIiV_E7f.js → badge-wWauMgAt.js} +3 -3
- package/dist/{badge-xIiV_E7f.js.map → badge-wWauMgAt.js.map} +1 -1
- 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 +1 -1
- package/dist/base/buttons.js +1 -1
- package/dist/base/cards.js +2 -2
- package/dist/base/carousel.js +3 -3
- package/dist/base/cascader.js +1 -1
- package/dist/base/chart.js +1 -1
- package/dist/base/choice-inputs.js +2 -2
- 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 +6 -6
- package/dist/base/feedback.js +4 -4
- package/dist/base/forms-numeric.js +1 -1
- package/dist/base/forms.js +2 -2
- package/dist/base/inline-edit.js +8 -8
- package/dist/base/item.js +1 -1
- package/dist/base/media-gallery.js +1 -1
- package/dist/base/metadata-list.js +1 -1
- package/dist/base/navigation.js +6 -6
- 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 +195 -188
- package/dist/base/repeaters.js.map +1 -1
- package/dist/base/sheet.js +1 -1
- package/dist/base/sidebar.js +2 -2
- package/dist/base/signature-pad.js +7 -7
- package/dist/base/skeleton.js +1 -1
- package/dist/base/spinner.js +5 -5
- package/dist/base/spinner.js.map +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 +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 +1 -1
- package/dist/{batch-action-bar-Cb8cuvyy.js → batch-action-bar-BoqWIIpV.js} +5 -5
- package/dist/{batch-action-bar-Cb8cuvyy.js.map → batch-action-bar-BoqWIIpV.js.map} +1 -1
- package/dist/blocks/admin.js +17 -17
- package/dist/blocks/ai.js +227 -221
- package/dist/blocks/ai.js.map +1 -1
- package/dist/blocks/analytics/usage-card.js +1 -1
- package/dist/blocks/analytics.js +424 -449
- 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 +225 -220
- package/dist/blocks/commerce.js.map +1 -1
- package/dist/blocks/data-display.js +2 -2
- package/dist/blocks/onboarding.js +5 -5
- package/dist/blocks/planning.js +11 -11
- package/dist/blocks/timelines.js +1 -1
- package/dist/{breadcrumbs-J-K2kl4c.js → breadcrumbs-Bp9Ke7kd.js} +4 -4
- package/dist/breadcrumbs-Bp9Ke7kd.js.map +1 -0
- package/dist/{button-S2Cubiiz.js → button-ChBovTx0.js} +2 -2
- package/dist/{button-S2Cubiiz.js.map → button-ChBovTx0.js.map} +1 -1
- package/dist/{buttons-BedGfygC.js → buttons-DeW0bQeK.js} +6 -6
- package/dist/{buttons-BedGfygC.js.map → buttons-DeW0bQeK.js.map} +1 -1
- package/dist/{cards-rNX1M4Xn.js → cards-CNXnmvV5.js} +8 -8
- package/dist/{cards-rNX1M4Xn.js.map → cards-CNXnmvV5.js.map} +1 -1
- package/dist/{cascader-B1MiqkBq.js → cascader-CrAl9zD5.js} +15 -15
- package/dist/{cascader-B1MiqkBq.js.map → cascader-CrAl9zD5.js.map} +1 -1
- package/dist/{chart-Darg_0Kv.js → chart-I7ROnsl8.js} +5 -5
- package/dist/{chart-Darg_0Kv.js.map → chart-I7ROnsl8.js.map} +1 -1
- package/dist/{checkbox-fflqmODR.js → checkbox-MoyHIAPs.js} +3 -3
- package/dist/{checkbox-fflqmODR.js.map → checkbox-MoyHIAPs.js.map} +1 -1
- package/dist/{choice-inputs-zUgBZfE4.js → choice-inputs-DHGtx0QV.js} +122 -110
- package/dist/choice-inputs-DHGtx0QV.js.map +1 -0
- package/dist/{code-block-BzmM9Eig.js → code-block-BSJyq9e-.js} +7 -7
- package/dist/{code-block-BzmM9Eig.js.map → code-block-BSJyq9e-.js.map} +1 -1
- package/dist/{collapsible-BkAI_XD4.js → collapsible-BzJ91LUG.js} +3 -3
- package/dist/{collapsible-BkAI_XD4.js.map → collapsible-BzJ91LUG.js.map} +1 -1
- package/dist/{collection-content-gDh1v6O4.js → collection-content-CSnwtOTH.js} +3 -3
- package/dist/{collection-content-gDh1v6O4.js.map → collection-content-CSnwtOTH.js.map} +1 -1
- package/dist/{combobox-BEx0vJgF.js → combobox-Bcvu5J8O.js} +11 -10
- package/dist/{combobox-BEx0vJgF.js.map → combobox-Bcvu5J8O.js.map} +1 -1
- package/dist/combobox-C2JiSQPc.js +915 -0
- package/dist/combobox-C2JiSQPc.js.map +1 -0
- package/dist/{command-CrlPIL6m.js → command-9e52NPgK.js} +6 -6
- package/dist/{command-CrlPIL6m.js.map → command-9e52NPgK.js.map} +1 -1
- package/dist/{comments-Dmpp0YIc.js → comments-BsgErEqd.js} +33 -28
- package/dist/comments-BsgErEqd.js.map +1 -0
- package/dist/components/base/choice-inputs/choice-types.d.ts +4 -0
- package/dist/components/base/choice-inputs/pill-radio-group.d.ts +7 -6
- package/dist/components/base/combobox/combobox-field.d.ts +2 -2
- package/dist/components/base/date-pickers/date-picker-internals.d.ts +3 -1
- package/dist/components/base/date-pickers/datepicker.types.d.ts +10 -4
- package/dist/components/base/date-pickers/time-picker.d.ts +17 -3
- package/dist/components/base/feedback/state-display.d.ts +5 -1
- package/dist/components/base/feedback/state-display.strings.d.ts +9 -0
- package/dist/components/base/forms/form-field.d.ts +7 -2
- package/dist/components/base/forms-numeric/coordinates-input.d.ts +4 -1
- package/dist/components/base/forms-numeric/decimal-input.d.ts +2 -2
- package/dist/components/base/forms-numeric/dimensions-input.d.ts +4 -1
- package/dist/components/base/forms-numeric/numeric-composite-field.d.ts +12 -0
- package/dist/components/base/forms-numeric/weight-input.d.ts +6 -1
- package/dist/components/base/navigation/language-switcher.d.ts +12 -4
- package/dist/components/base/repeaters/key-value-editor.d.ts +2 -1
- package/dist/components/base/sidebar/sidebar.d.ts +2 -0
- package/dist/components/base/upload/avatar-upload.d.ts +2 -1
- package/dist/components/base/upload/image-upload.d.ts +2 -1
- package/dist/components/blocks/ai/ai-citation/types.d.ts +2 -0
- package/dist/components/blocks/ai/ai-reasoning/types.d.ts +2 -0
- package/dist/components/blocks/ai/ai-sources/types.d.ts +2 -0
- package/dist/components/blocks/ai/ai-tool-call/types.d.ts +2 -0
- package/dist/components/blocks/analytics/metric/metric.d.ts +4 -0
- package/dist/components/blocks/analytics/metric-comparison/metric-comparison.d.ts +2 -0
- package/dist/components/blocks/analytics/metric-grid/metric-grid.d.ts +4 -5
- package/dist/components/blocks/analytics/types.d.ts +2 -2
- package/dist/components/blocks/commerce/order-status/types.d.ts +4 -0
- package/dist/components/blocks/data-display/empty-state/empty-state.types.d.ts +4 -3
- package/dist/components/features/activities/activities.types.d.ts +18 -11
- package/dist/components/features/activities/hooks/use-activity-resources.d.ts +2 -1
- package/dist/components/features/ai-chat/hooks/use-ai-chat-scroll.d.ts +1 -1
- package/dist/components/features/appointment-calendar/appointment-calendar.d.ts +1 -1
- package/dist/components/features/appointment-calendar/appointment-calendar.types.d.ts +4 -2
- package/dist/components/features/combobox/async-resource-combobox.d.ts +2 -2
- package/dist/components/features/combobox/combobox.d.ts +2 -2
- package/dist/components/features/combobox/hooks/use-combobox-core.d.ts +2 -1
- package/dist/components/features/combobox/hooks/use-combobox-state.d.ts +1 -0
- package/dist/components/features/combobox/hooks/use-load-more.d.ts +1 -0
- package/dist/components/features/combobox/types.d.ts +37 -8
- package/dist/components/features/email-composer/types.d.ts +3 -1
- package/dist/components/features/filters/facets/date-facet.d.ts +4 -2
- package/dist/components/features/filters/facets/range-facet.d.ts +12 -0
- package/dist/components/features/filters/filters.types.d.ts +3 -3
- package/dist/components/features/filters/partials/date-filter-content.d.ts +3 -2
- package/dist/components/features/filters/partials/filter-popover-content.d.ts +4 -2
- package/dist/components/features/filters/partials/range-filter-content.d.ts +12 -0
- package/dist/components/features/filters/utils/filter-utils.d.ts +5 -1
- package/dist/components/features/media-library/hooks/use-media-library.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 +36 -8
- package/dist/components/features/media-library/partials/media-library-partials.d.ts +3 -3
- package/dist/components/features/mentions/hooks/use-mentions.d.ts +16 -1
- package/dist/components/features/mentions/partials/mention-inline-suggestions.d.ts +5 -1
- package/dist/components/features/mentions/utils/split-html-by-mentions.d.ts +1 -7
- package/dist/components/features/overlays/hooks/use-overlay-visibility.d.ts +2 -2
- package/dist/components/features/products/products.types.d.ts +2 -2
- package/dist/components/features/questionnaire/questionnaire.types.d.ts +3 -0
- package/dist/components/features/resource/resource.d.ts +1 -1
- package/dist/components/features/resource/resource.types.d.ts +2 -0
- package/dist/components/features/rich-text-editor/form-rich-text-editor.d.ts +1 -1
- package/dist/components/features/rich-text-editor/partials/caret-helpers.d.ts +1 -1
- package/dist/components/features/rich-text-editor/partials/editor-field-aria.d.ts +14 -0
- package/dist/components/features/rich-text-editor/partials/rich-text-editor-toolbar.d.ts +3 -1
- 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.types.d.ts +17 -3
- package/dist/components/features/schema-form/hooks/use-schema-form.d.ts +5 -1
- package/dist/components/features/schema-form/partials/schema-form-field.d.ts +3 -1
- package/dist/components/features/schema-form/schema-form.utils.d.ts +1 -1
- package/dist/components/features/suggestions/suggestions.types.d.ts +1 -1
- package/dist/components/features/table/data-table.d.ts +1 -1
- package/dist/components/features/table/index.d.ts +1 -0
- package/dist/components/features/table/table-body.d.ts +1 -1
- package/dist/components/features/table/table-helpers.d.ts +6 -3
- package/dist/components/features/table/table.strings.d.ts +3 -0
- package/dist/components/features/table/table.types.d.ts +17 -1
- package/dist/components/layout/header/header.types.d.ts +3 -2
- package/dist/components/layout/layout.types.d.ts +5 -3
- package/dist/components/layout/navigation/side-nav.d.ts +3 -2
- package/dist/components/layout/normalize-layout-path.d.ts +1 -0
- package/dist/components/layout/settings/settings.d.ts +1 -1
- package/dist/components/layout/sidebar/app-sidebar.d.ts +1 -1
- package/dist/components/layout/sidebar/sidebar-navigation-rail.d.ts +3 -1
- package/dist/components/layout/sidebar/sidebar.context.d.ts +1 -0
- package/dist/components/layout/sidebar/sidebar.types.d.ts +2 -0
- package/dist/components/primitives/link.d.ts +3 -2
- package/dist/components/primitives/money.d.ts +1 -1
- package/dist/components/primitives/number.d.ts +1 -1
- package/dist/components/typography/rich-text/rich-text-tree.d.ts +7 -5
- package/dist/{containers-CIxwbZt5.js → containers-CSdc32h9.js} +2 -2
- package/dist/{containers-CIxwbZt5.js.map → containers-CSdc32h9.js.map} +1 -1
- package/dist/{copyable-DIznBqiT.js → copyable-3fdHfMR3.js} +4 -4
- package/dist/{copyable-DIznBqiT.js.map → copyable-3fdHfMR3.js.map} +1 -1
- package/dist/{data-display-BdgCAw8T.js → data-display-Cmj-xZYl.js} +16 -15
- package/dist/data-display-Cmj-xZYl.js.map +1 -0
- package/dist/{date-Cq8ioE4o.js → date-Br0FicVv.js} +4 -4
- package/dist/{date-Cq8ioE4o.js.map → date-Br0FicVv.js.map} +1 -1
- package/dist/date-picker-CyQlFYsP.js +1617 -0
- package/dist/date-picker-CyQlFYsP.js.map +1 -0
- package/dist/date-pickers-tj2MXmXd.js +185 -0
- package/dist/date-pickers-tj2MXmXd.js.map +1 -0
- package/dist/{display-KsZLw9Ov.js → display-CT_N2a3w.js} +7 -7
- package/dist/{display-KsZLw9Ov.js.map → display-CT_N2a3w.js.map} +1 -1
- package/dist/{dropdown-menu-CLs8Lihj.js → dropdown-menu-C08iIugv.js} +6 -6
- package/dist/{dropdown-menu-CLs8Lihj.js.map → dropdown-menu-C08iIugv.js.map} +1 -1
- package/dist/features/activities.js +283 -270
- package/dist/features/activities.js.map +1 -1
- package/dist/features/ai-chat.js +40 -27
- package/dist/features/ai-chat.js.map +1 -1
- package/dist/features/appointment-calendar.js +126 -126
- package/dist/features/appointment-calendar.js.map +1 -1
- package/dist/features/async-preview.js +9 -9
- package/dist/features/combobox.js +1 -1
- package/dist/features/comments.js +1 -1
- package/dist/features/data-view.js +10 -10
- package/dist/features/email-composer.js +24 -19
- package/dist/features/email-composer.js.map +1 -1
- package/dist/features/event-calendar.js +129 -125
- package/dist/features/event-calendar.js.map +1 -1
- package/dist/features/filters.js +2 -2
- package/dist/features/global-search.js +16 -20
- package/dist/features/global-search.js.map +1 -1
- package/dist/features/kanban.js +18 -28
- package/dist/features/kanban.js.map +1 -1
- package/dist/features/map/style.css +15 -0
- package/dist/features/map.js +331 -314
- package/dist/features/map.js.map +1 -1
- package/dist/features/media-library.js +1044 -866
- package/dist/features/media-library.js.map +1 -1
- package/dist/features/mentions.js +2 -2
- package/dist/features/overlays.js +1 -1
- package/dist/features/products.js +978 -964
- package/dist/features/products.js.map +1 -1
- package/dist/features/questionnaire.js +159 -152
- package/dist/features/questionnaire.js.map +1 -1
- package/dist/features/resource-assignment.js +8 -8
- package/dist/features/resource.js +74 -71
- package/dist/features/resource.js.map +1 -1
- package/dist/features/rich-text-editor.js +28 -19
- package/dist/features/rich-text-editor.js.map +1 -1
- package/dist/features/schema-form.js +297 -256
- package/dist/features/schema-form.js.map +1 -1
- package/dist/features/suggestions.js +57 -50
- package/dist/features/suggestions.js.map +1 -1
- package/dist/features/sync.js +3 -3
- package/dist/features/table.js +1 -1
- package/dist/features/theme-tweaker.js +400 -399
- package/dist/features/theme-tweaker.js.map +1 -1
- package/dist/feedback-Dzo1xtAU.js +246 -0
- package/dist/feedback-Dzo1xtAU.js.map +1 -0
- package/dist/{field-affordance-recipes-DWcNcOjh.js → field-affordance-recipes-D6H7tVJi.js} +2 -2
- package/dist/{field-affordance-recipes-DWcNcOjh.js.map → field-affordance-recipes-D6H7tVJi.js.map} +1 -1
- package/dist/field-control-attributes-B6i335wr.js +18 -0
- package/dist/field-control-attributes-B6i335wr.js.map +1 -0
- package/dist/{field-state-recipes-BVA2CWHo.js → field-state-recipes-7sza8QbC.js} +4 -2
- package/dist/{field-state-recipes-BVA2CWHo.js.map → field-state-recipes-7sza8QbC.js.map} +1 -1
- package/dist/{filters-DzgSJpMK.js → filters-Dl80yYtN.js} +763 -605
- package/dist/filters-Dl80yYtN.js.map +1 -0
- package/dist/form-field-CAPdwdnZ.js +74 -0
- package/dist/form-field-CAPdwdnZ.js.map +1 -0
- package/dist/{form-sizing-Bs2qFUeE.js → form-sizing-CgcrUbLU.js} +2 -2
- package/dist/{form-sizing-Bs2qFUeE.js.map → form-sizing-CgcrUbLU.js.map} +1 -1
- package/dist/{forms-C0RGnJTe.js → forms-B3W8CH7-.js} +8 -8
- package/dist/{forms-C0RGnJTe.js.map → forms-B3W8CH7-.js.map} +1 -1
- package/dist/forms-numeric-CwjQJe-O.js +991 -0
- package/dist/forms-numeric-CwjQJe-O.js.map +1 -0
- package/dist/{header-DMMxG__r.js → header-ZIIsRKxP.js} +113 -113
- package/dist/header-ZIIsRKxP.js.map +1 -0
- package/dist/hooks/use-files.d.ts +2 -0
- package/dist/{hooks-DB6CJ4MR.js → hooks-BitHSh-Y.js} +3 -3
- package/dist/{hooks-DB6CJ4MR.js.map → hooks-BitHSh-Y.js.map} +1 -1
- package/dist/{icon-badge-DZF-YjQp.js → icon-badge-npxF1SLX.js} +2 -2
- package/dist/{icon-badge-DZF-YjQp.js.map → icon-badge-npxF1SLX.js.map} +1 -1
- package/dist/index.js +1 -1
- package/dist/{input-CvyDQlY7.js → input-7KAc7XQL.js} +6 -6
- package/dist/{input-CvyDQlY7.js.map → input-7KAc7XQL.js.map} +1 -1
- package/dist/{input-DMBwAZmr.js → input-DIREVYHs.js} +3 -3
- package/dist/{input-DMBwAZmr.js.map → input-DIREVYHs.js.map} +1 -1
- package/dist/{interaction-recipes-XR9ZpVYL.js → interaction-recipes-4wZ2tvfb.js} +2 -2
- package/dist/{interaction-recipes-XR9ZpVYL.js.map → interaction-recipes-4wZ2tvfb.js.map} +1 -1
- package/dist/{item-DjCcM18E.js → item-FfWnaYST.js} +99 -98
- package/dist/item-FfWnaYST.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 +11 -11
- package/dist/layout.types-E_GAApzO.js +30 -0
- package/dist/layout.types-E_GAApzO.js.map +1 -0
- package/dist/lib/field-control-attributes.d.ts +11 -0
- package/dist/lib/field-state-recipes.d.ts +2 -0
- package/dist/lib/format.d.ts +1 -0
- package/dist/lib/surface-recipes.d.ts +1 -1
- package/dist/lib/token-merge.generated.d.ts +6 -6
- package/dist/lib/utils.js +1 -1
- package/dist/{media-gallery-C-vChPmE.js → media-gallery-C81DAnKI.js} +6 -6
- package/dist/{media-gallery-C-vChPmE.js.map → media-gallery-C81DAnKI.js.map} +1 -1
- package/dist/{mentions-0_4nWuI-.js → mentions-qOnedSt4.js} +236 -167
- package/dist/mentions-qOnedSt4.js.map +1 -0
- package/dist/message-BJHnn43M.js +135 -0
- package/dist/message-BJHnn43M.js.map +1 -0
- package/dist/{metadata-list-C3MkU-Om.js → metadata-list-XkqZ_UXH.js} +11 -11
- package/dist/{metadata-list-C3MkU-Om.js.map → metadata-list-XkqZ_UXH.js.map} +1 -1
- package/dist/{navigation-DaRjthVk.js → navigation-BgtPJAhi.js} +119 -119
- package/dist/navigation-BgtPJAhi.js.map +1 -0
- package/dist/{navigation-C90-oQFq.js → navigation-Bt-v7rWP.js} +52 -46
- package/dist/navigation-Bt-v7rWP.js.map +1 -0
- package/dist/normalize-layout-path-BmEgg6fu.js +14 -0
- package/dist/normalize-layout-path-BmEgg6fu.js.map +1 -0
- package/dist/{number-CRU3kGuk.js → number-CYqBcrSj.js} +78 -86
- package/dist/number-CYqBcrSj.js.map +1 -0
- package/dist/{overflow-tab-bar-IVFVQFV6.js → overflow-tab-bar-BQCA2Zn2.js} +7 -7
- package/dist/{overflow-tab-bar-IVFVQFV6.js.map → overflow-tab-bar-BQCA2Zn2.js.map} +1 -1
- package/dist/{overlays-BSgCtM2v.js → overlays-CC8zI3Du.js} +264 -260
- package/dist/overlays-CC8zI3Du.js.map +1 -0
- package/dist/{page-DUUKDAjo.js → page-BoQ1VaFJ.js} +13 -13
- package/dist/{page-DUUKDAjo.js.map → page-BoQ1VaFJ.js.map} +1 -1
- package/dist/{page-header-commands-7P3sfE9u.js → page-header-commands-DIKspJfx.js} +4 -4
- package/dist/{page-header-commands-7P3sfE9u.js.map → page-header-commands-DIKspJfx.js.map} +1 -1
- package/dist/{pagination-CgCjElfu.js → pagination-Br8TdV9A.js} +4 -4
- package/dist/{pagination-CgCjElfu.js.map → pagination-Br8TdV9A.js.map} +1 -1
- package/dist/{popover-B85RenIl.js → popover-k8TdUcAt.js} +10 -10
- package/dist/popover-k8TdUcAt.js.map +1 -0
- package/dist/{popover-menu-DlnQ2zlR.js → popover-menu-yn-o0kyA.js} +7 -7
- package/dist/{popover-menu-DlnQ2zlR.js.map → popover-menu-yn-o0kyA.js.map} +1 -1
- package/dist/{popover.recipes-DdiEp0rd.js → popover.recipes-DJ0AkUan.js} +2 -2
- package/dist/{popover.recipes-DdiEp0rd.js.map → popover.recipes-DJ0AkUan.js.map} +1 -1
- package/dist/{portal-recipes-BpsV_iRw.js → portal-recipes-DyUXqUtD.js} +2 -2
- package/dist/{portal-recipes-BpsV_iRw.js.map → portal-recipes-DyUXqUtD.js.map} +1 -1
- package/dist/{primitives-ByWgGUgt.js → primitives-BkkQjYl7.js} +22 -17
- package/dist/primitives-BkkQjYl7.js.map +1 -0
- package/dist/primitives.js +4 -4
- package/dist/{progress-BJhQP9WX.js → progress-DZFXXzPs.js} +4 -4
- package/dist/{progress-BJhQP9WX.js.map → progress-DZFXXzPs.js.map} +1 -1
- package/dist/{receipt-tOc7B3hw.js → receipt-C7LhOg7Q.js} +6 -6
- package/dist/{receipt-tOc7B3hw.js.map → receipt-C7LhOg7Q.js.map} +1 -1
- package/dist/rich-text-BnTzZjIo.js +45 -0
- package/dist/rich-text-BnTzZjIo.js.map +1 -0
- package/dist/rich-text-editor-CAurDwT5.js +1273 -0
- package/dist/rich-text-editor-CAurDwT5.js.map +1 -0
- package/dist/{rich-text-editor-toolbar-laT3tpBT.js → rich-text-editor-toolbar-DbXig7Jk.js} +36 -35
- package/dist/rich-text-editor-toolbar-DbXig7Jk.js.map +1 -0
- package/dist/rich-text-tree-BqyQ_7-R.js +66 -0
- package/dist/rich-text-tree-BqyQ_7-R.js.map +1 -0
- package/dist/{sanitize-html-DsQmI48u.js → sanitize-html-BWkH4dLM.js} +29 -16
- package/dist/sanitize-html-BWkH4dLM.js.map +1 -0
- package/dist/{scroll-area-B0dB2cBi.js → scroll-area-Bj6CRUif.js} +2 -2
- package/dist/{scroll-area-B0dB2cBi.js.map → scroll-area-Bj6CRUif.js.map} +1 -1
- package/dist/{separator-Bb17I4pu.js → separator-B9ewiCGO.js} +2 -2
- package/dist/{separator-Bb17I4pu.js.map → separator-B9ewiCGO.js.map} +1 -1
- package/dist/{separator-Ct_WSWTJ.js → separator-DM6gs2vu.js} +3 -3
- package/dist/{separator-Ct_WSWTJ.js.map → separator-DM6gs2vu.js.map} +1 -1
- package/dist/services/actions.js +1 -1
- package/dist/settings-DZPHgpx4.js +155 -0
- package/dist/settings-DZPHgpx4.js.map +1 -0
- package/dist/{sheet-BGPERY55.js → sheet-C4DHsgLk.js} +6 -6
- package/dist/{sheet-BGPERY55.js.map → sheet-C4DHsgLk.js.map} +1 -1
- package/dist/sidebar-C8BnDwTH.js +709 -0
- package/dist/sidebar-C8BnDwTH.js.map +1 -0
- package/dist/{sidebar-f9gRWXIR.js → sidebar-CmD6a-HK.js} +16 -13
- package/dist/sidebar-CmD6a-HK.js.map +1 -0
- package/dist/{skeleton-BapcJd9C.js → skeleton-DDgdhmu9.js} +5 -5
- package/dist/{skeleton-BapcJd9C.js.map → skeleton-DDgdhmu9.js.map} +1 -1
- package/dist/{smart-card-CW0hjetE.js → smart-card-B6vLxqa_.js} +8 -8
- package/dist/{smart-card-CW0hjetE.js.map → smart-card-B6vLxqa_.js.map} +1 -1
- package/dist/{structure-DuxKl954.js → structure-DZJ2wbAU.js} +2 -2
- package/dist/{structure-DuxKl954.js.map → structure-DZJ2wbAU.js.map} +1 -1
- package/dist/style.css +1 -1
- package/dist/{surface-recipes-BKRVW8Os.js → surface-recipes-C8mNycaY.js} +2 -2
- package/dist/{surface-recipes-BKRVW8Os.js.map → surface-recipes-C8mNycaY.js.map} +1 -1
- package/dist/{table-CFOWY9pQ.js → table-CBonSdTp.js} +534 -486
- package/dist/table-CBonSdTp.js.map +1 -0
- package/dist/{table-B4TE7iOV.js → table-CXSPHH25.js} +75 -71
- package/dist/table-CXSPHH25.js.map +1 -0
- package/dist/{tabs-e7ko9S2o.js → tabs-C4Kr_hCr.js} +50 -49
- package/dist/tabs-C4Kr_hCr.js.map +1 -0
- package/dist/{text-inputs-B1culiSK.js → text-inputs-jdkS3ReG.js} +9 -9
- package/dist/{text-inputs-B1culiSK.js.map → text-inputs-jdkS3ReG.js.map} +1 -1
- package/dist/{timelines-D3Sl9ueq.js → timelines-CoPwdJP0.js} +10 -10
- package/dist/{timelines-D3Sl9ueq.js.map → timelines-CoPwdJP0.js.map} +1 -1
- package/dist/{tooltip-8wz5S_Zr.js → tooltip-31NwIpTo.js} +4 -4
- package/dist/{tooltip-8wz5S_Zr.js.map → tooltip-31NwIpTo.js.map} +1 -1
- package/dist/{tree-CzUJHnFs.js → tree-CeYVzdFE.js} +6 -6
- package/dist/{tree-CzUJHnFs.js.map → tree-CeYVzdFE.js.map} +1 -1
- package/dist/typography/rich-text.js +1 -1
- package/dist/{typography-BQnine1k.js → typography-C7-YMW1S.js} +2 -2
- package/dist/{typography-BQnine1k.js.map → typography-C7-YMW1S.js.map} +1 -1
- package/dist/typography.js +1 -1
- package/dist/{upload-BOW6U2tI.js → upload-Hdm5gObf.js} +303 -291
- package/dist/upload-Hdm5gObf.js.map +1 -0
- package/dist/{upload-queue-qUXn1ykN.js → upload-queue-D0sYPuqo.js} +8 -8
- package/dist/{upload-queue-qUXn1ykN.js.map → upload-queue-D0sYPuqo.js.map} +1 -1
- package/dist/{usage-card-BeSLY0i0.js → usage-card-9s8hLDfn.js} +9 -9
- package/dist/{usage-card-BeSLY0i0.js.map → usage-card-9s8hLDfn.js.map} +1 -1
- package/dist/{utils-B6kKb8jB.js → utils-DhuoqFy4.js} +31 -37
- package/dist/utils-DhuoqFy4.js.map +1 -0
- package/dist/{value-inputs-skdVB2zh.js → value-inputs-D3aPgq9H.js} +15 -15
- package/dist/{value-inputs-skdVB2zh.js.map → value-inputs-D3aPgq9H.js.map} +1 -1
- package/dist/{value-typography-uAmWUAL1.js → value-typography-uSzzG9Gf.js} +32 -26
- package/dist/value-typography-uSzzG9Gf.js.map +1 -0
- package/dist/{workspace-DHeHv0qw.js → workspace-CC8Vchiu.js} +12 -12
- package/dist/{workspace-DHeHv0qw.js.map → workspace-CC8Vchiu.js.map} +1 -1
- package/docs/consumer-skill/examples/edit.tsx +3 -3
- package/docs/consumer-skill/references/agents-md.md +19 -19
- package/docs/consumer-skill/references/analytics.md +15 -0
- package/docs/consumer-skill/references/component-contracts.json +14724 -13057
- package/docs/consumer-skill/references/composition.md +21 -4
- package/docs/consumer-skill/references/design-contract.md +1 -0
- package/docs/consumer-skill/references/installation.md +51 -8
- package/docs/consumer-skill/references/integration.md +24 -1
- package/docs/consumer-skill/references/public-api.json +172 -34
- package/docs/consumer-skill/references/review.md +51 -11
- package/docs/consumer-skill/references/rhf-workflows.md +72 -0
- package/docs/consumer-skill/references/theming.md +7 -2
- package/docs/consumer-skill/references/tokens.json +1 -1
- package/docs/consumer-skill/scripts/composition-policy.mjs +144 -30
- package/docs/consumer-skill/scripts/setup-skills.mjs +46 -9
- package/package.json +4 -2
- package/templates/admin-shell-template.tsx +1 -2
- package/templates/customers-template.tsx +18 -16
- package/dist/accordion-B9MHG0cT.js.map +0 -1
- package/dist/ai-artifact-C58tQcBy.js.map +0 -1
- package/dist/auth-DTkkshS8.js.map +0 -1
- package/dist/breadcrumbs-J-K2kl4c.js.map +0 -1
- package/dist/choice-inputs-zUgBZfE4.js.map +0 -1
- package/dist/combobox-BwzoXFSG.js +0 -884
- package/dist/combobox-BwzoXFSG.js.map +0 -1
- package/dist/comments-Dmpp0YIc.js.map +0 -1
- package/dist/data-display-BdgCAw8T.js.map +0 -1
- package/dist/date-picker-RlIzKom_.js +0 -1551
- package/dist/date-picker-RlIzKom_.js.map +0 -1
- package/dist/date-pickers-DY-CpXS1.js +0 -179
- package/dist/date-pickers-DY-CpXS1.js.map +0 -1
- package/dist/feedback-Dm4izqFn.js +0 -240
- package/dist/feedback-Dm4izqFn.js.map +0 -1
- package/dist/filters-DzgSJpMK.js.map +0 -1
- package/dist/form-field-BriWAXyg.js +0 -63
- package/dist/form-field-BriWAXyg.js.map +0 -1
- package/dist/forms-numeric-DIhghX1Q.js +0 -910
- package/dist/forms-numeric-DIhghX1Q.js.map +0 -1
- package/dist/header-DMMxG__r.js.map +0 -1
- package/dist/item-DjCcM18E.js.map +0 -1
- package/dist/layout.types-Cn7aUzJp.js +0 -20
- package/dist/layout.types-Cn7aUzJp.js.map +0 -1
- package/dist/mentions-0_4nWuI-.js.map +0 -1
- package/dist/message-g8p7eVtN.js +0 -128
- package/dist/message-g8p7eVtN.js.map +0 -1
- package/dist/navigation-C90-oQFq.js.map +0 -1
- package/dist/navigation-DaRjthVk.js.map +0 -1
- package/dist/number-CRU3kGuk.js.map +0 -1
- package/dist/overlays-BSgCtM2v.js.map +0 -1
- package/dist/popover-B85RenIl.js.map +0 -1
- package/dist/primitives-ByWgGUgt.js.map +0 -1
- package/dist/rich-text-Dth5E882.js +0 -78
- package/dist/rich-text-Dth5E882.js.map +0 -1
- package/dist/rich-text-editor-C1fOjBTd.js +0 -1195
- package/dist/rich-text-editor-C1fOjBTd.js.map +0 -1
- package/dist/rich-text-editor-toolbar-laT3tpBT.js.map +0 -1
- package/dist/safe-image-src-C6kQSMBZ.js +0 -17
- package/dist/safe-image-src-C6kQSMBZ.js.map +0 -1
- package/dist/sanitize-html-DsQmI48u.js.map +0 -1
- package/dist/settings-Bar5wiSo.js +0 -167
- package/dist/settings-Bar5wiSo.js.map +0 -1
- package/dist/sidebar-D-JYMMbY.js +0 -686
- package/dist/sidebar-D-JYMMbY.js.map +0 -1
- package/dist/sidebar-f9gRWXIR.js.map +0 -1
- package/dist/table-B4TE7iOV.js.map +0 -1
- package/dist/table-CFOWY9pQ.js.map +0 -1
- package/dist/tabs-e7ko9S2o.js.map +0 -1
- package/dist/upload-BOW6U2tI.js.map +0 -1
- package/dist/utils-B6kKb8jB.js.map +0 -1
- package/dist/value-typography-uAmWUAL1.js.map +0 -1
package/dist/blocks/commerce.js
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { m as e } from "../ui-provider-C-74NVLc.js";
|
|
3
3
|
import { mergeStrings as t, useStrings as n } from "../lib/strings.js";
|
|
4
|
-
import { t as r } from "../utils-
|
|
5
|
-
import { n as i, t as a } from "../buttons-
|
|
6
|
-
import { c as o, o as s, s as c, t as l } from "../typography-
|
|
7
|
-
import { i as u, r as d, t as f } from "../structure-
|
|
4
|
+
import { t as r } from "../utils-DhuoqFy4.js";
|
|
5
|
+
import { n as i, t as a } from "../buttons-DeW0bQeK.js";
|
|
6
|
+
import { c as o, o as s, s as c, t as l } from "../typography-C7-YMW1S.js";
|
|
7
|
+
import { i as u, r as d, t as f } from "../structure-DZJ2wbAU.js";
|
|
8
8
|
import { i as p } from "../tone-recipes-BPsRAvhu.js";
|
|
9
|
-
import { d as m, h, p as g, t as _ } from "../smart-card-
|
|
10
|
-
import { t as v } from "../progress-
|
|
11
|
-
import { i as y, t as b } from "../surface-recipes-
|
|
9
|
+
import { d as m, h, p as g, t as _ } from "../smart-card-B6vLxqa_.js";
|
|
10
|
+
import { t as v } from "../progress-DZFXXzPs.js";
|
|
11
|
+
import { i as y, t as b } from "../surface-recipes-C8mNycaY.js";
|
|
12
12
|
import { n as x, t as S } from "../composition.recipes-COdiFhxB.js";
|
|
13
|
-
import { n as C, t as w } from "../action-menu-
|
|
14
|
-
import { n as T } from "../cards-
|
|
15
|
-
import { t as E } from "../interaction-recipes-
|
|
16
|
-
import { _ as D, c as O, g as k, m as A, o as j, u as M } from "../primitives-
|
|
13
|
+
import { n as C, t as w } from "../action-menu-C0gjzLyE.js";
|
|
14
|
+
import { n as T } from "../cards-CNXnmvV5.js";
|
|
15
|
+
import { t as E } from "../interaction-recipes-4wZ2tvfb.js";
|
|
16
|
+
import { _ as D, c as O, g as k, m as A, o as j, u as M } from "../primitives-BkkQjYl7.js";
|
|
17
17
|
import { t as N } from "../initials-format-CDoQEOd_.js";
|
|
18
|
-
import { n as ee, r as te, t as P } from "../number-
|
|
19
|
-
import { t as F } from "../icon-badge-
|
|
20
|
-
import { i as ne, n as re, s as ie } from "../avatar-
|
|
21
|
-
import { t as I } from "../badge-
|
|
22
|
-
import { t as ae } from "../separator-
|
|
23
|
-
import { t as L } from "../input-
|
|
24
|
-
import { t as oe } from "../copyable-
|
|
25
|
-
import { t as R } from "../form-field-
|
|
26
|
-
import { a as se, l as ce, r as le } from "../choice-inputs-
|
|
27
|
-
import { i as ue, n as z, o as de } from "../display-
|
|
28
|
-
import { u as fe } from "../value-inputs-
|
|
29
|
-
import { d as pe, n as me } from "../forms-numeric-
|
|
30
|
-
import { c as B, i as V, n as he, o as ge, r as H, t as U, u as W } from "../item-
|
|
31
|
-
import { t as G } from "../metadata-list-
|
|
32
|
-
import { i as _e, n as ve, r as ye, t as be } from "../tabs-
|
|
33
|
-
import { m as K } from "../data-display-
|
|
34
|
-
import { n as xe, t as Se } from "../receipt-
|
|
35
|
-
import { s as Ce } from "../timelines-
|
|
18
|
+
import { n as ee, r as te, t as P } from "../number-CYqBcrSj.js";
|
|
19
|
+
import { t as F } from "../icon-badge-npxF1SLX.js";
|
|
20
|
+
import { i as ne, n as re, s as ie } from "../avatar-B9Jnp-T-.js";
|
|
21
|
+
import { t as I } from "../badge-wWauMgAt.js";
|
|
22
|
+
import { t as ae } from "../separator-DM6gs2vu.js";
|
|
23
|
+
import { t as L } from "../input-7KAc7XQL.js";
|
|
24
|
+
import { t as oe } from "../copyable-3fdHfMR3.js";
|
|
25
|
+
import { t as R } from "../form-field-CAPdwdnZ.js";
|
|
26
|
+
import { a as se, l as ce, r as le } from "../choice-inputs-DHGtx0QV.js";
|
|
27
|
+
import { i as ue, n as z, o as de } from "../display-CT_N2a3w.js";
|
|
28
|
+
import { u as fe } from "../value-inputs-D3aPgq9H.js";
|
|
29
|
+
import { d as pe, n as me } from "../forms-numeric-CwjQJe-O.js";
|
|
30
|
+
import { c as B, i as V, n as he, o as ge, r as H, t as U, u as W } from "../item-FfWnaYST.js";
|
|
31
|
+
import { t as G } from "../metadata-list-XkqZ_UXH.js";
|
|
32
|
+
import { i as _e, n as ve, r as ye, t as be } from "../tabs-C4Kr_hCr.js";
|
|
33
|
+
import { m as K } from "../data-display-Cmj-xZYl.js";
|
|
34
|
+
import { n as xe, t as Se } from "../receipt-C7LhOg7Q.js";
|
|
35
|
+
import { s as Ce } from "../timelines-CoPwdJP0.js";
|
|
36
36
|
import { forwardRef as we, useEffect as Te, useId as Ee, useMemo as De, useRef as Oe, useState as ke } from "react";
|
|
37
37
|
import { Fragment as Ae, jsx as q, jsxs as J } from "react/jsx-runtime";
|
|
38
38
|
import { ArrowRight as je, CalendarClock as Me, Check as Ne, CheckCircle2 as Pe, ChevronRight as Fe, Circle as Ie, CircleAlert as Le, Copy as Re, Edit2 as ze, ExternalLink as Be, Loader2 as Ve, Pencil as He, Star as Ue, Trash2 as We, TriangleAlert as Ge, X as Ke } from "lucide-react";
|
|
@@ -1986,14 +1986,67 @@ function Qt({ appliedCode: e, appliedDiscount: t, error: a, onApply: c, onRemove
|
|
|
1986
1986
|
}
|
|
1987
1987
|
Qt.displayName = "CouponInputCard";
|
|
1988
1988
|
//#endregion
|
|
1989
|
-
//#region src/components/blocks/commerce/order-status
|
|
1989
|
+
//#region src/components/blocks/commerce/shared/order-status.ts
|
|
1990
1990
|
var $t = {
|
|
1991
|
+
unfulfilled: "warning",
|
|
1992
|
+
partiallyFulfilled: "warning",
|
|
1993
|
+
fulfilled: "success",
|
|
1994
|
+
scheduled: "info",
|
|
1995
|
+
onHold: "neutral",
|
|
1996
|
+
cancelled: "destructive"
|
|
1997
|
+
}, en = {
|
|
1998
|
+
pending: "warning",
|
|
1999
|
+
authorized: "info",
|
|
2000
|
+
paid: "success",
|
|
2001
|
+
partiallyRefunded: "neutral",
|
|
2002
|
+
refunded: "neutral",
|
|
2003
|
+
voided: "neutral"
|
|
2004
|
+
}, tn = {
|
|
2005
|
+
success: "success",
|
|
2006
|
+
pending: "warning",
|
|
2007
|
+
failure: "destructive"
|
|
2008
|
+
}, nn = /* @__PURE__ */ new Set([
|
|
2009
|
+
"refund",
|
|
2010
|
+
"void",
|
|
2011
|
+
"chargeback"
|
|
2012
|
+
]), rn = {
|
|
2013
|
+
fulfillment: {
|
|
2014
|
+
unfulfilled: "Unfulfilled",
|
|
2015
|
+
partiallyFulfilled: "Partially fulfilled",
|
|
2016
|
+
fulfilled: "Fulfilled",
|
|
2017
|
+
scheduled: "Scheduled",
|
|
2018
|
+
onHold: "On hold",
|
|
2019
|
+
cancelled: "Cancelled"
|
|
2020
|
+
},
|
|
2021
|
+
payment: {
|
|
2022
|
+
pending: "Pending",
|
|
2023
|
+
authorized: "Authorized",
|
|
2024
|
+
paid: "Paid",
|
|
2025
|
+
partiallyRefunded: "Partially refunded",
|
|
2026
|
+
refunded: "Refunded",
|
|
2027
|
+
voided: "Voided"
|
|
2028
|
+
}
|
|
2029
|
+
}, an = {
|
|
2030
|
+
...rn,
|
|
2031
|
+
formatOrderNumber: (e) => `#${e}`,
|
|
2032
|
+
formatOrigin: (e, t) => `${e} from ${t}`,
|
|
2033
|
+
moreActions: "More actions"
|
|
2034
|
+
}, on = {
|
|
1991
2035
|
title: "Order status",
|
|
2036
|
+
status: {
|
|
2037
|
+
pending: "Pending",
|
|
2038
|
+
paid: "Paid",
|
|
2039
|
+
fulfilled: "Fulfilled",
|
|
2040
|
+
shipped: "Shipped",
|
|
2041
|
+
delivered: "Delivered",
|
|
2042
|
+
cancelled: "Cancelled"
|
|
2043
|
+
},
|
|
2044
|
+
formatOrderNumber: an.formatOrderNumber,
|
|
1992
2045
|
statusLabel: "Current status",
|
|
1993
2046
|
eta: "ETA",
|
|
1994
2047
|
latestEvent: "Latest event",
|
|
1995
2048
|
currentStep: "Current step"
|
|
1996
|
-
},
|
|
2049
|
+
}, sn = {
|
|
1997
2050
|
pending: "warning",
|
|
1998
2051
|
paid: "info",
|
|
1999
2052
|
fulfilled: "info",
|
|
@@ -2001,16 +2054,15 @@ var $t = {
|
|
|
2001
2054
|
delivered: "success",
|
|
2002
2055
|
cancelled: "destructive"
|
|
2003
2056
|
};
|
|
2004
|
-
function
|
|
2005
|
-
let u = n(
|
|
2057
|
+
function cn({ orderNumber: e, status: t, statusTone: i, events: a, currentEta: s, className: c, strings: l }) {
|
|
2058
|
+
let u = n(on, l), d = i ?? sn[t], f = a.reduce((e, t, n) => t.complete ? n : e, -1), m = a.find((e) => !e.complete);
|
|
2006
2059
|
return /* @__PURE__ */ J(z, {
|
|
2007
2060
|
title: u.title,
|
|
2008
2061
|
titleSuffix: /* @__PURE__ */ q(I, {
|
|
2009
2062
|
tone: d,
|
|
2010
|
-
|
|
2011
|
-
children: t
|
|
2063
|
+
children: u.status?.[t]
|
|
2012
2064
|
}),
|
|
2013
|
-
description:
|
|
2065
|
+
description: u.formatOrderNumber?.(e),
|
|
2014
2066
|
contentGap: "xl",
|
|
2015
2067
|
className: r("order-status--component w-full", c),
|
|
2016
2068
|
children: [!!s && /* @__PURE__ */ q(K, {
|
|
@@ -2054,10 +2106,10 @@ function tn({ orderNumber: e, status: t, statusTone: i, events: a, currentEta: s
|
|
|
2054
2106
|
})]
|
|
2055
2107
|
});
|
|
2056
2108
|
}
|
|
2057
|
-
|
|
2109
|
+
cn.displayName = "OrderStatusCard";
|
|
2058
2110
|
//#endregion
|
|
2059
2111
|
//#region src/components/blocks/commerce/payment-method/types.ts
|
|
2060
|
-
var
|
|
2112
|
+
var ln = {
|
|
2061
2113
|
title: "Payment method",
|
|
2062
2114
|
default: "Default",
|
|
2063
2115
|
cardHolder: "Card holder",
|
|
@@ -2073,7 +2125,7 @@ var nn = {
|
|
|
2073
2125
|
unknown: "Card"
|
|
2074
2126
|
},
|
|
2075
2127
|
formatCard: (e, t) => `${e} ending ${t}`
|
|
2076
|
-
},
|
|
2128
|
+
}, un = {
|
|
2077
2129
|
visa: "VISA",
|
|
2078
2130
|
mastercard: "MasterCard",
|
|
2079
2131
|
amex: "AMEX",
|
|
@@ -2081,9 +2133,9 @@ var nn = {
|
|
|
2081
2133
|
applepay: "Apple Pay",
|
|
2082
2134
|
googlepay: "Google Pay",
|
|
2083
2135
|
unknown: "Card"
|
|
2084
|
-
},
|
|
2085
|
-
function
|
|
2086
|
-
let b = n(
|
|
2136
|
+
}, dn = "bg-inverse-background from-inverse-background via-inverse-surface-strong to-inverse-background";
|
|
2137
|
+
function fn({ brand: e, last4: t, expiry: a, holderName: c, default: l = !1, onChange: u, variant: d = "card", surface: p = "flat", padding: m = p === "flat" ? "none" : "md", headerDivider: h, className: g, strings: v, ...y }) {
|
|
2138
|
+
let b = n(ln, v), x = b.formatCard(b.brands[e], t);
|
|
2087
2139
|
return /* @__PURE__ */ q(_, {
|
|
2088
2140
|
...y,
|
|
2089
2141
|
surface: p,
|
|
@@ -2134,7 +2186,7 @@ function on({ brand: e, last4: t, expiry: a, holderName: c, default: l = !1, onC
|
|
|
2134
2186
|
})
|
|
2135
2187
|
]
|
|
2136
2188
|
}) : /* @__PURE__ */ J("div", {
|
|
2137
|
-
className: r("payment-method--face relative flex aspect-[85.6/53.98] w-full max-w-[22rem] flex-col justify-between overflow-hidden rounded-surface bg-linear-to-br p-surface text-inverse-foreground shadow-sm ring-1 ring-inverse-border",
|
|
2189
|
+
className: r("payment-method--face relative flex aspect-[85.6/53.98] w-full max-w-[22rem] flex-col justify-between overflow-hidden rounded-surface bg-linear-to-br p-surface text-inverse-foreground shadow-sm ring-1 ring-inverse-border", dn),
|
|
2138
2190
|
children: [
|
|
2139
2191
|
/* @__PURE__ */ q(de, { children: x }),
|
|
2140
2192
|
/* @__PURE__ */ J("div", {
|
|
@@ -2147,7 +2199,7 @@ function on({ brand: e, last4: t, expiry: a, holderName: c, default: l = !1, onC
|
|
|
2147
2199
|
tag: "span",
|
|
2148
2200
|
weight: "bold",
|
|
2149
2201
|
className: "rounded-radius-xs bg-inverse-surface px-space-md py-space-2xs tracking-[0.15em] text-inverse-foreground",
|
|
2150
|
-
children:
|
|
2202
|
+
children: un[e]
|
|
2151
2203
|
})]
|
|
2152
2204
|
}),
|
|
2153
2205
|
/* @__PURE__ */ q("div", {
|
|
@@ -2195,49 +2247,49 @@ function on({ brand: e, last4: t, expiry: a, holderName: c, default: l = !1, onC
|
|
|
2195
2247
|
})
|
|
2196
2248
|
});
|
|
2197
2249
|
}
|
|
2198
|
-
|
|
2199
|
-
function
|
|
2200
|
-
return /* @__PURE__ */ q(
|
|
2250
|
+
fn.displayName = "PaymentMethod";
|
|
2251
|
+
function pn({ variant: e = "row", ...t }) {
|
|
2252
|
+
return /* @__PURE__ */ q(fn, {
|
|
2201
2253
|
variant: e,
|
|
2202
2254
|
...t
|
|
2203
2255
|
});
|
|
2204
2256
|
}
|
|
2205
|
-
|
|
2257
|
+
pn.displayName = "PaymentMethodCard";
|
|
2206
2258
|
//#endregion
|
|
2207
2259
|
//#region src/components/blocks/commerce/seo-listing/seo-listing-score.ts
|
|
2208
|
-
var
|
|
2260
|
+
var mn = {
|
|
2209
2261
|
titleMin: 35,
|
|
2210
2262
|
titleMax: 60,
|
|
2211
2263
|
descriptionMin: 120,
|
|
2212
2264
|
descriptionMax: 160,
|
|
2213
2265
|
permalinkMax: 75
|
|
2214
2266
|
};
|
|
2215
|
-
function
|
|
2267
|
+
function hn(e) {
|
|
2216
2268
|
return {
|
|
2217
|
-
...
|
|
2269
|
+
...mn,
|
|
2218
2270
|
...e
|
|
2219
2271
|
};
|
|
2220
2272
|
}
|
|
2221
|
-
function
|
|
2273
|
+
function gn(e) {
|
|
2222
2274
|
return Number.isFinite(e) ? Math.max(0, Math.min(1, e)) : 0;
|
|
2223
2275
|
}
|
|
2224
|
-
function
|
|
2276
|
+
function _n(e, t) {
|
|
2225
2277
|
if (t <= 0) return "missing";
|
|
2226
2278
|
let n = e / t;
|
|
2227
2279
|
return n >= .9 ? "good" : n >= .5 ? "review" : "missing";
|
|
2228
2280
|
}
|
|
2229
|
-
function
|
|
2230
|
-
let a = Math.round(
|
|
2281
|
+
function vn(e, t, n, r, i) {
|
|
2282
|
+
let a = Math.round(gn(t) * n);
|
|
2231
2283
|
return {
|
|
2232
2284
|
id: e,
|
|
2233
2285
|
score: a,
|
|
2234
2286
|
maxScore: n,
|
|
2235
2287
|
actual: r,
|
|
2236
|
-
status:
|
|
2288
|
+
status: _n(a, n),
|
|
2237
2289
|
...i
|
|
2238
2290
|
};
|
|
2239
2291
|
}
|
|
2240
|
-
function
|
|
2292
|
+
function yn(e, t, n) {
|
|
2241
2293
|
let r = e.trim().length;
|
|
2242
2294
|
if (r === 0) return 0;
|
|
2243
2295
|
if (r >= t && r <= n) return 1;
|
|
@@ -2250,22 +2302,22 @@ function $(e) {
|
|
|
2250
2302
|
let t = e?.trim() ?? "";
|
|
2251
2303
|
return t ? ((t.split("#")[0] ?? "").split("?")[0] ?? "").replace(/^https?:\/\/[^/]+/i, "").replace(/^\/+|\/+$/g, "") : "";
|
|
2252
2304
|
}
|
|
2253
|
-
function
|
|
2305
|
+
function bn(e) {
|
|
2254
2306
|
return $(e).split("/").filter(Boolean).at(-1) ?? "";
|
|
2255
2307
|
}
|
|
2256
|
-
function
|
|
2308
|
+
function xn(e, t = mn.permalinkMax) {
|
|
2257
2309
|
let n = $(e);
|
|
2258
2310
|
return n ? n.length <= t ? 1 : n.length > t * 2 ? .35 : Math.max(.55, 1 - (n.length - t) / t) : 0;
|
|
2259
2311
|
}
|
|
2260
|
-
function
|
|
2261
|
-
let t =
|
|
2312
|
+
function Sn(e) {
|
|
2313
|
+
let t = bn(e);
|
|
2262
2314
|
return t ? /^[\p{L}\p{N}]+(?:-[\p{L}\p{N}]+)*$/u.test(t) && t === t.toLowerCase() ? 1 : !/\s/.test(t) && !/[?#]/.test(t) ? .65 : .25 : 0;
|
|
2263
2315
|
}
|
|
2264
|
-
function
|
|
2316
|
+
function Cn(e) {
|
|
2265
2317
|
let t = e?.trim() ?? "";
|
|
2266
2318
|
return t ? /^https:\/\//i.test(t) ? 1 : /^http:\/\//i.test(t) ? .6 : .45 : 0;
|
|
2267
2319
|
}
|
|
2268
|
-
function
|
|
2320
|
+
function wn(e) {
|
|
2269
2321
|
let t = e.keyword?.trim().toLowerCase();
|
|
2270
2322
|
if (!t) return null;
|
|
2271
2323
|
let n = [
|
|
@@ -2275,32 +2327,32 @@ function vn(e) {
|
|
|
2275
2327
|
].filter(Boolean).join(" ").toLowerCase();
|
|
2276
2328
|
return n ? n.includes(t) ? 1 : .35 : 0;
|
|
2277
2329
|
}
|
|
2278
|
-
function
|
|
2279
|
-
let t =
|
|
2280
|
-
|
|
2330
|
+
function Tn(e) {
|
|
2331
|
+
let t = hn(e.limits), n = e.title?.trim() ?? "", r = e.description?.trim() ?? "", i = $(e.permalink), a = bn(e.permalink), o = [
|
|
2332
|
+
vn("title", yn(n, t.titleMin, t.titleMax), 30, n.length, {
|
|
2281
2333
|
min: t.titleMin,
|
|
2282
2334
|
max: t.titleMax
|
|
2283
2335
|
}),
|
|
2284
|
-
|
|
2336
|
+
vn("description", yn(r, t.descriptionMin, t.descriptionMax), 30, r.length, {
|
|
2285
2337
|
min: t.descriptionMin,
|
|
2286
2338
|
max: t.descriptionMax
|
|
2287
2339
|
}),
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
], s =
|
|
2292
|
-
s !== null && o.push(
|
|
2340
|
+
vn("permalink", xn(e.permalink, t.permalinkMax), 15, i.length, { max: t.permalinkMax }),
|
|
2341
|
+
vn("slug", Sn(e.permalink), 10, a.length),
|
|
2342
|
+
vn("url", Cn(e.baseUrl), 10, e.baseUrl?.trim().length ?? 0)
|
|
2343
|
+
], s = wn(e);
|
|
2344
|
+
s !== null && o.push(vn("keyword", s, 5, e.keyword?.trim().length ?? 0));
|
|
2293
2345
|
let c = Math.round(o.reduce((e, t) => e + t.score, 0) / o.reduce((e, t) => e + t.maxScore, 0) * 100);
|
|
2294
2346
|
return {
|
|
2295
2347
|
score: c,
|
|
2296
|
-
status:
|
|
2348
|
+
status: _n(c, 100),
|
|
2297
2349
|
checks: o,
|
|
2298
2350
|
limits: t
|
|
2299
2351
|
};
|
|
2300
2352
|
}
|
|
2301
2353
|
//#endregion
|
|
2302
2354
|
//#region src/components/blocks/commerce/seo-listing/types.ts
|
|
2303
|
-
var
|
|
2355
|
+
var En = {
|
|
2304
2356
|
title: "Search engine listing",
|
|
2305
2357
|
editLabel: "Edit search listing",
|
|
2306
2358
|
scoreLabel: "SEO score",
|
|
@@ -2333,44 +2385,44 @@ var bn = {
|
|
|
2333
2385
|
url: "Prefer a secure canonical URL.",
|
|
2334
2386
|
keyword: "Use the focus keyword in the title, description, or permalink."
|
|
2335
2387
|
}
|
|
2336
|
-
},
|
|
2388
|
+
}, Dn = {
|
|
2337
2389
|
good: "success",
|
|
2338
2390
|
review: "warning",
|
|
2339
2391
|
missing: "destructive"
|
|
2340
|
-
},
|
|
2392
|
+
}, On = {
|
|
2341
2393
|
good: "[&_[data-slot=progress-indicator]]:bg-success",
|
|
2342
2394
|
review: "[&_[data-slot=progress-indicator]]:bg-warning",
|
|
2343
2395
|
missing: "[&_[data-slot=progress-indicator]]:bg-destructive"
|
|
2344
|
-
},
|
|
2396
|
+
}, kn = {
|
|
2345
2397
|
good: Pe,
|
|
2346
2398
|
review: Ge,
|
|
2347
2399
|
missing: Le
|
|
2348
|
-
},
|
|
2400
|
+
}, An = {
|
|
2349
2401
|
good: "text-success",
|
|
2350
2402
|
review: "text-warning-accent",
|
|
2351
2403
|
missing: "text-destructive"
|
|
2352
2404
|
};
|
|
2353
|
-
function
|
|
2405
|
+
function jn(e) {
|
|
2354
2406
|
return e.replace(/^\/+|\/+$/g, "");
|
|
2355
2407
|
}
|
|
2356
|
-
function
|
|
2408
|
+
function Mn(e, t, n) {
|
|
2357
2409
|
let r = $(n).split("/").filter(Boolean);
|
|
2358
2410
|
return [
|
|
2359
2411
|
e,
|
|
2360
|
-
...t.map(
|
|
2412
|
+
...t.map(jn).filter(Boolean),
|
|
2361
2413
|
...r
|
|
2362
2414
|
].filter(Boolean);
|
|
2363
2415
|
}
|
|
2364
|
-
function
|
|
2416
|
+
function Nn(e, t, n) {
|
|
2365
2417
|
if (!e.trim()) return;
|
|
2366
|
-
let r = e.replace(/\/+$/g, ""), i = [...t.map(
|
|
2418
|
+
let r = e.replace(/\/+$/g, ""), i = [...t.map(jn).filter(Boolean), ...$(n).split("/").filter(Boolean)].join("/");
|
|
2367
2419
|
return i ? `${r}/${i}` : r;
|
|
2368
2420
|
}
|
|
2369
|
-
function
|
|
2421
|
+
function Pn(e, t) {
|
|
2370
2422
|
return e.id === "title" || e.id === "description" ? `${e.actual}/${e.max} ${t.characters} · ${t.targetLabel} ${e.min}-${e.max}` : e.id === "permalink" ? `${e.actual}/${e.max} ${t.characters} ${t.maxLabel}` : t.checkHints[e.id];
|
|
2371
2423
|
}
|
|
2372
|
-
function
|
|
2373
|
-
let i =
|
|
2424
|
+
function Fn({ check: e, detail: t, strings: n }) {
|
|
2425
|
+
let i = kn[e.status];
|
|
2374
2426
|
return /* @__PURE__ */ q("div", {
|
|
2375
2427
|
className: "seo-listing-card--check min-w-0",
|
|
2376
2428
|
children: /* @__PURE__ */ J(f, {
|
|
@@ -2379,7 +2431,7 @@ function kn({ check: e, detail: t, strings: n }) {
|
|
|
2379
2431
|
align: "start",
|
|
2380
2432
|
wrap: !1,
|
|
2381
2433
|
children: [/* @__PURE__ */ q(i, {
|
|
2382
|
-
className: r("seo-listing-card--check-icon size-icon shrink-0 translate-y-0.5",
|
|
2434
|
+
className: r("seo-listing-card--check-icon size-icon shrink-0 translate-y-0.5", An[e.status]),
|
|
2383
2435
|
"aria-hidden": "true"
|
|
2384
2436
|
}), /* @__PURE__ */ J(f, {
|
|
2385
2437
|
gap: "dense",
|
|
@@ -2396,7 +2448,7 @@ function kn({ check: e, detail: t, strings: n }) {
|
|
|
2396
2448
|
className: "truncate",
|
|
2397
2449
|
children: n.checkLabels[e.id]
|
|
2398
2450
|
}), /* @__PURE__ */ q(I, {
|
|
2399
|
-
tone:
|
|
2451
|
+
tone: Dn[e.status],
|
|
2400
2452
|
size: "sm",
|
|
2401
2453
|
inline: !0,
|
|
2402
2454
|
className: "shrink-0",
|
|
@@ -2412,15 +2464,15 @@ function kn({ check: e, detail: t, strings: n }) {
|
|
|
2412
2464
|
})
|
|
2413
2465
|
});
|
|
2414
2466
|
}
|
|
2415
|
-
function
|
|
2416
|
-
let T = n(
|
|
2467
|
+
function In({ siteName: e, baseUrl: t, pathSegments: a = [], permalink: s, title: c, description: u, price: d, keyword: p, score: m, limits: h, showChecks: g = !0, onEdit: y, surface: b = "flat", padding: x = b === "flat" ? "none" : "md", headerDivider: S, className: C, strings: w }) {
|
|
2468
|
+
let T = n(En, w), E = t?.trim() || T.urlFallback, O = e?.trim() || T.siteFallback, A = c?.trim() || T.titleFallback, j = u?.trim() || T.descriptionFallback, M = m ?? Tn({
|
|
2417
2469
|
title: c,
|
|
2418
2470
|
description: u,
|
|
2419
2471
|
permalink: s,
|
|
2420
2472
|
baseUrl: t,
|
|
2421
2473
|
keyword: p,
|
|
2422
2474
|
limits: h
|
|
2423
|
-
}), N =
|
|
2475
|
+
}), N = Nn(E, a, s), ee = Mn(E, a, s), te = Dn[M.status];
|
|
2424
2476
|
return /* @__PURE__ */ J(_, {
|
|
2425
2477
|
surface: b,
|
|
2426
2478
|
padding: x,
|
|
@@ -2557,13 +2609,13 @@ function An({ siteName: e, baseUrl: t, pathSegments: a = [], permalink: s, title
|
|
|
2557
2609
|
/* @__PURE__ */ q(v, {
|
|
2558
2610
|
value: M.score,
|
|
2559
2611
|
"aria-label": T.scoreLabel,
|
|
2560
|
-
className: r("seo-listing-card--score-progress", "[&_[data-slot=progress-track]]:h-space-md",
|
|
2612
|
+
className: r("seo-listing-card--score-progress", "[&_[data-slot=progress-track]]:h-space-md", On[M.status])
|
|
2561
2613
|
}),
|
|
2562
2614
|
!!g && /* @__PURE__ */ q("div", {
|
|
2563
2615
|
className: "seo-listing-card--checks grid gap-x-space-2xl gap-y-space-lg @xl/seo-listing-card:grid-cols-2",
|
|
2564
|
-
children: M.checks.map((e) => /* @__PURE__ */ q(
|
|
2616
|
+
children: M.checks.map((e) => /* @__PURE__ */ q(Fn, {
|
|
2565
2617
|
check: e,
|
|
2566
|
-
detail:
|
|
2618
|
+
detail: Pn(e, T),
|
|
2567
2619
|
strings: T
|
|
2568
2620
|
}, e.id))
|
|
2569
2621
|
})
|
|
@@ -2571,10 +2623,10 @@ function An({ siteName: e, baseUrl: t, pathSegments: a = [], permalink: s, title
|
|
|
2571
2623
|
})]
|
|
2572
2624
|
});
|
|
2573
2625
|
}
|
|
2574
|
-
|
|
2626
|
+
In.displayName = "SeoListingCard";
|
|
2575
2627
|
//#endregion
|
|
2576
2628
|
//#region src/components/blocks/commerce/invoice-mini/types.ts
|
|
2577
|
-
var
|
|
2629
|
+
var Ln = {
|
|
2578
2630
|
draft: "Draft",
|
|
2579
2631
|
paid: "Paid",
|
|
2580
2632
|
pending: "Pending",
|
|
@@ -2582,7 +2634,7 @@ var jn = {
|
|
|
2582
2634
|
disputed: "Disputed",
|
|
2583
2635
|
items: (e) => e === 1 ? "1 line item" : `${e} line items`,
|
|
2584
2636
|
due: "Due"
|
|
2585
|
-
},
|
|
2637
|
+
}, Rn = {
|
|
2586
2638
|
draft: "secondary",
|
|
2587
2639
|
paid: "success",
|
|
2588
2640
|
pending: "warning",
|
|
@@ -2591,8 +2643,8 @@ var jn = {
|
|
|
2591
2643
|
};
|
|
2592
2644
|
//#endregion
|
|
2593
2645
|
//#region src/components/blocks/commerce/invoice-mini/invoice-mini.tsx
|
|
2594
|
-
function
|
|
2595
|
-
let s = t(
|
|
2646
|
+
function zn({ invoice: e, className: n, strings: i, ...a }) {
|
|
2647
|
+
let s = t(Ln, i), c = {
|
|
2596
2648
|
draft: s.draft,
|
|
2597
2649
|
paid: s.paid,
|
|
2598
2650
|
pending: s.pending,
|
|
@@ -2615,7 +2667,7 @@ function Nn({ invoice: e, className: n, strings: i, ...a }) {
|
|
|
2615
2667
|
className: "min-w-0 truncate tracking-wide",
|
|
2616
2668
|
children: e.invoiceNumber
|
|
2617
2669
|
}), /* @__PURE__ */ q(I, {
|
|
2618
|
-
tone:
|
|
2670
|
+
tone: Rn[e.status],
|
|
2619
2671
|
size: "sm",
|
|
2620
2672
|
className: "shrink-0",
|
|
2621
2673
|
children: c[e.status]
|
|
@@ -2660,10 +2712,10 @@ function Nn({ invoice: e, className: n, strings: i, ...a }) {
|
|
|
2660
2712
|
]
|
|
2661
2713
|
});
|
|
2662
2714
|
}
|
|
2663
|
-
|
|
2715
|
+
zn.displayName = "InvoiceMini";
|
|
2664
2716
|
//#endregion
|
|
2665
2717
|
//#region src/components/blocks/commerce/invoice-header/types.ts
|
|
2666
|
-
var
|
|
2718
|
+
var Bn = {
|
|
2667
2719
|
title: "Invoice",
|
|
2668
2720
|
billFrom: "Bill from",
|
|
2669
2721
|
billTo: "Bill to",
|
|
@@ -2678,7 +2730,7 @@ var Pn = {
|
|
|
2678
2730
|
};
|
|
2679
2731
|
//#endregion
|
|
2680
2732
|
//#region src/components/blocks/commerce/invoice-header/invoice-header.tsx
|
|
2681
|
-
function
|
|
2733
|
+
function Vn({ eyebrow: e, name: t, location: n, details: r }) {
|
|
2682
2734
|
return /* @__PURE__ */ J(f, {
|
|
2683
2735
|
gap: "xs",
|
|
2684
2736
|
className: "invoice-header--party",
|
|
@@ -2711,14 +2763,14 @@ function Fn({ eyebrow: e, name: t, location: n, details: r }) {
|
|
|
2711
2763
|
]
|
|
2712
2764
|
});
|
|
2713
2765
|
}
|
|
2714
|
-
function
|
|
2715
|
-
let y = n(
|
|
2766
|
+
function Hn({ invoiceNumber: e, status: t, statusTone: i, from: a, to: o, issuedDate: s, dueDate: c, amount: l, className: d, strings: p, surface: m = "flat", padding: h = m === "flat" ? "none" : "md", headerDivider: g, ...v }) {
|
|
2767
|
+
let y = n(Bn, p), b = {
|
|
2716
2768
|
draft: y.draft,
|
|
2717
2769
|
paid: y.paid,
|
|
2718
2770
|
pending: y.pending,
|
|
2719
2771
|
overdue: y.overdue,
|
|
2720
2772
|
disputed: y.disputed
|
|
2721
|
-
}, x = i ?? (t ?
|
|
2773
|
+
}, x = i ?? (t ? Rn[t] : void 0);
|
|
2722
2774
|
return /* @__PURE__ */ J(_, {
|
|
2723
2775
|
...v,
|
|
2724
2776
|
surface: m,
|
|
@@ -2742,12 +2794,12 @@ function In({ invoiceNumber: e, status: t, statusTone: i, from: a, to: o, issued
|
|
|
2742
2794
|
minColumnWidth: "sm",
|
|
2743
2795
|
gap: "xl",
|
|
2744
2796
|
className: "invoice-header--parties",
|
|
2745
|
-
children: [/* @__PURE__ */ q(
|
|
2797
|
+
children: [/* @__PURE__ */ q(Vn, {
|
|
2746
2798
|
eyebrow: y.billFrom,
|
|
2747
2799
|
name: a.name,
|
|
2748
2800
|
location: a.location,
|
|
2749
2801
|
details: a.details
|
|
2750
|
-
}), /* @__PURE__ */ q(
|
|
2802
|
+
}), /* @__PURE__ */ q(Vn, {
|
|
2751
2803
|
eyebrow: y.billTo,
|
|
2752
2804
|
name: o.name,
|
|
2753
2805
|
location: o.location,
|
|
@@ -2778,25 +2830,25 @@ function In({ invoiceNumber: e, status: t, statusTone: i, from: a, to: o, issued
|
|
|
2778
2830
|
})]
|
|
2779
2831
|
});
|
|
2780
2832
|
}
|
|
2781
|
-
|
|
2833
|
+
Hn.displayName = "InvoiceHeader";
|
|
2782
2834
|
//#endregion
|
|
2783
2835
|
//#region src/components/blocks/commerce/invoice-line-items/types.ts
|
|
2784
|
-
var
|
|
2836
|
+
var Un = {
|
|
2785
2837
|
item: "Item",
|
|
2786
2838
|
quantity: "Qty",
|
|
2787
2839
|
price: "Price",
|
|
2788
2840
|
subtotal: "Subtotal",
|
|
2789
2841
|
tax: "Tax",
|
|
2790
2842
|
total: "Total"
|
|
2791
|
-
},
|
|
2843
|
+
}, Wn = {
|
|
2792
2844
|
card: r("overflow-hidden rounded-surface border border-border bg-card text-card-foreground", b.card),
|
|
2793
2845
|
flat: ""
|
|
2794
|
-
},
|
|
2846
|
+
}, Gn = {
|
|
2795
2847
|
left: "text-left justify-start",
|
|
2796
2848
|
right: "text-right justify-end",
|
|
2797
2849
|
center: "text-center justify-center"
|
|
2798
|
-
},
|
|
2799
|
-
function
|
|
2850
|
+
}, Kn = "minmax(3rem,auto)", qn = "minmax(6.5rem,auto)", Jn = "minmax(7rem,auto)", Yn = "grid-cols-[minmax(0,1fr)_auto] @lg/invoice-line-items:grid-cols-[minmax(0,1fr)_minmax(3rem,auto)_minmax(6.5rem,auto)_minmax(7rem,auto)]", Xn = "hidden @lg/invoice-line-items:flex", Zn = "grid-cols-(--invoice-line-items-columns) @lg/invoice-line-items:grid-cols-(--invoice-line-items-wide-columns)", Qn = "@lg/invoice-line-items:hidden", $n = "whitespace-nowrap tabular-nums";
|
|
2851
|
+
function er({ amount: e, currency: t, weight: n = "regular" }) {
|
|
2800
2852
|
return /* @__PURE__ */ q(te, {
|
|
2801
2853
|
type: "inherit",
|
|
2802
2854
|
amount: e,
|
|
@@ -2806,7 +2858,7 @@ function Jn({ amount: e, currency: t, weight: n = "regular" }) {
|
|
|
2806
2858
|
weight: n
|
|
2807
2859
|
});
|
|
2808
2860
|
}
|
|
2809
|
-
function
|
|
2861
|
+
function tr(e, t) {
|
|
2810
2862
|
return [
|
|
2811
2863
|
{
|
|
2812
2864
|
id: "description",
|
|
@@ -2823,14 +2875,14 @@ function Yn(e, t) {
|
|
|
2823
2875
|
tag: "div",
|
|
2824
2876
|
size: "xs",
|
|
2825
2877
|
type: "secondary",
|
|
2826
|
-
className: r("invoice-line-items--calculation tabular-nums",
|
|
2878
|
+
className: r("invoice-line-items--calculation tabular-nums", Qn),
|
|
2827
2879
|
children: [
|
|
2828
2880
|
/* @__PURE__ */ q(P, {
|
|
2829
2881
|
type: "inherit",
|
|
2830
2882
|
value: t.qty
|
|
2831
2883
|
}),
|
|
2832
2884
|
" × ",
|
|
2833
|
-
/* @__PURE__ */ q(
|
|
2885
|
+
/* @__PURE__ */ q(er, {
|
|
2834
2886
|
amount: t.price,
|
|
2835
2887
|
currency: e
|
|
2836
2888
|
})
|
|
@@ -2841,10 +2893,10 @@ function Yn(e, t) {
|
|
|
2841
2893
|
{
|
|
2842
2894
|
id: "qty",
|
|
2843
2895
|
header: t.quantity,
|
|
2844
|
-
width:
|
|
2896
|
+
width: Kn,
|
|
2845
2897
|
align: "right",
|
|
2846
|
-
headerClassName:
|
|
2847
|
-
cellClassName: r(
|
|
2898
|
+
headerClassName: Xn,
|
|
2899
|
+
cellClassName: r($n, Xn),
|
|
2848
2900
|
cell: (e) => /* @__PURE__ */ q(P, {
|
|
2849
2901
|
type: "inherit",
|
|
2850
2902
|
value: e.qty
|
|
@@ -2853,11 +2905,11 @@ function Yn(e, t) {
|
|
|
2853
2905
|
{
|
|
2854
2906
|
id: "price",
|
|
2855
2907
|
header: t.price,
|
|
2856
|
-
width:
|
|
2908
|
+
width: qn,
|
|
2857
2909
|
align: "right",
|
|
2858
|
-
headerClassName:
|
|
2859
|
-
cellClassName: r(
|
|
2860
|
-
cell: (t) => /* @__PURE__ */ q(
|
|
2910
|
+
headerClassName: Xn,
|
|
2911
|
+
cellClassName: r($n, Xn),
|
|
2912
|
+
cell: (t) => /* @__PURE__ */ q(er, {
|
|
2861
2913
|
amount: t.price,
|
|
2862
2914
|
currency: e
|
|
2863
2915
|
})
|
|
@@ -2865,22 +2917,22 @@ function Yn(e, t) {
|
|
|
2865
2917
|
{
|
|
2866
2918
|
id: "total",
|
|
2867
2919
|
header: t.total,
|
|
2868
|
-
width:
|
|
2920
|
+
width: Jn,
|
|
2869
2921
|
align: "right",
|
|
2870
|
-
cellClassName:
|
|
2871
|
-
cell: (t) => /* @__PURE__ */ q(
|
|
2922
|
+
cellClassName: $n,
|
|
2923
|
+
cell: (t) => /* @__PURE__ */ q(er, {
|
|
2872
2924
|
amount: t.total,
|
|
2873
2925
|
currency: e
|
|
2874
2926
|
})
|
|
2875
2927
|
}
|
|
2876
2928
|
];
|
|
2877
2929
|
}
|
|
2878
|
-
function
|
|
2930
|
+
function nr(e, t, n, r) {
|
|
2879
2931
|
let i = e.reduce((e, t) => e + t.total, 0), a = Math.round(i * t * 100) / 100, o = i + a;
|
|
2880
2932
|
return [
|
|
2881
2933
|
{
|
|
2882
2934
|
label: r.subtotal,
|
|
2883
|
-
value: /* @__PURE__ */ q(
|
|
2935
|
+
value: /* @__PURE__ */ q(er, {
|
|
2884
2936
|
amount: i,
|
|
2885
2937
|
currency: n
|
|
2886
2938
|
})
|
|
@@ -2895,14 +2947,14 @@ function Xn(e, t, n, r) {
|
|
|
2895
2947
|
}),
|
|
2896
2948
|
")"
|
|
2897
2949
|
] }),
|
|
2898
|
-
value: /* @__PURE__ */ q(
|
|
2950
|
+
value: /* @__PURE__ */ q(er, {
|
|
2899
2951
|
amount: a,
|
|
2900
2952
|
currency: n
|
|
2901
2953
|
})
|
|
2902
2954
|
},
|
|
2903
2955
|
{
|
|
2904
2956
|
label: r.total,
|
|
2905
|
-
value: /* @__PURE__ */ q(
|
|
2957
|
+
value: /* @__PURE__ */ q(er, {
|
|
2906
2958
|
amount: o,
|
|
2907
2959
|
currency: n,
|
|
2908
2960
|
weight: "bold"
|
|
@@ -2911,23 +2963,23 @@ function Xn(e, t, n, r) {
|
|
|
2911
2963
|
}
|
|
2912
2964
|
];
|
|
2913
2965
|
}
|
|
2914
|
-
function
|
|
2915
|
-
let m = n(
|
|
2966
|
+
function rr({ items: t, columns: i, footerRows: a, taxRate: c = .2, currency: l, surface: u = "card", className: d, strings: p }) {
|
|
2967
|
+
let m = n(Un, p), { defaultCurrency: h } = e(), g = l ?? h ?? "€", _ = u === "flat", v = i ?? tr(g, m), b = a ?? (i ? [] : nr(t, c, g, m)), x = (e) => e.map((e) => e.width ?? "1fr").join(" "), S = !!i && v.some((e) => e.wideOnly), C = i ? S ? {
|
|
2916
2968
|
"--invoice-line-items-columns": x(v.filter((e) => !e.wideOnly)),
|
|
2917
2969
|
"--invoice-line-items-wide-columns": x(v)
|
|
2918
2970
|
} : { gridTemplateColumns: x(v) } : void 0, w = _ ? "py-row-y" : "px-row-x py-row-y", T = "col-span-full grid min-w-0 grid-cols-subgrid";
|
|
2919
2971
|
return /* @__PURE__ */ J("div", {
|
|
2920
2972
|
"data-surface": u,
|
|
2921
|
-
className: r("invoice-line-items--component", "@container/invoice-line-items box-border w-full min-w-0 max-w-full",
|
|
2973
|
+
className: r("invoice-line-items--component", "@container/invoice-line-items box-border w-full min-w-0 max-w-full", Wn[u], d),
|
|
2922
2974
|
children: [/* @__PURE__ */ q("div", {
|
|
2923
2975
|
className: r("invoice-line-items--scroller w-full min-w-0", i && "overflow-x-auto", i && _ && "-mx-space-xs w-auto px-space-xs"),
|
|
2924
2976
|
children: /* @__PURE__ */ J("div", {
|
|
2925
|
-
className: r("invoice-line-items--body grid min-w-min gap-x-space-md", !i &&
|
|
2977
|
+
className: r("invoice-line-items--body grid min-w-min gap-x-space-md", !i && Yn, S && Zn),
|
|
2926
2978
|
style: C,
|
|
2927
2979
|
children: [/* @__PURE__ */ q("div", {
|
|
2928
2980
|
className: r("invoice-line-items--header", T, w, _ ? "border-b border-border/60" : y.band, !i && "hidden @lg/invoice-line-items:grid"),
|
|
2929
2981
|
children: v.map((e) => /* @__PURE__ */ q("div", {
|
|
2930
|
-
className: r("flex min-w-0",
|
|
2982
|
+
className: r("flex min-w-0", Gn[e.align ?? "left"], i && e.wideOnly && Xn, e.headerClassName),
|
|
2931
2983
|
children: /* @__PURE__ */ q(s, {
|
|
2932
2984
|
className: "min-w-0 truncate",
|
|
2933
2985
|
children: e.header
|
|
@@ -2937,7 +2989,7 @@ function Zn({ items: t, columns: i, footerRows: a, taxRate: c = .2, currency: l,
|
|
|
2937
2989
|
className: r("invoice-line-items--row", T, w, _ ? t > 0 && "border-t border-border/60" : t % 2 == 1 && y.wash),
|
|
2938
2990
|
children: v.map((n) => /* @__PURE__ */ q("div", {
|
|
2939
2991
|
"data-column": n.id,
|
|
2940
|
-
className: r("flex min-w-0 items-start",
|
|
2992
|
+
className: r("flex min-w-0 items-start", Gn[n.align ?? "left"], i && n.wideOnly && Xn, n.cellClassName),
|
|
2941
2993
|
children: n.cell(e, t)
|
|
2942
2994
|
}, n.id))
|
|
2943
2995
|
}, t))]
|
|
@@ -2956,7 +3008,7 @@ function Zn({ items: t, columns: i, footerRows: a, taxRate: c = .2, currency: l,
|
|
|
2956
3008
|
type: e.emphasis === "total" ? "inherit" : "secondary",
|
|
2957
3009
|
weight: e.emphasis === "total" ? "bold" : "regular",
|
|
2958
3010
|
children: e.label
|
|
2959
|
-
}),
|
|
3011
|
+
}), ir(e.value) ? /* @__PURE__ */ q(D, {
|
|
2960
3012
|
type: "inherit",
|
|
2961
3013
|
weight: e.emphasis === "total" ? "bold" : "regular",
|
|
2962
3014
|
children: e.value
|
|
@@ -2969,13 +3021,13 @@ function Zn({ items: t, columns: i, footerRows: a, taxRate: c = .2, currency: l,
|
|
|
2969
3021
|
})] })]
|
|
2970
3022
|
});
|
|
2971
3023
|
}
|
|
2972
|
-
|
|
2973
|
-
function
|
|
3024
|
+
rr.displayName = "InvoiceLineItems";
|
|
3025
|
+
function ir(e) {
|
|
2974
3026
|
return typeof e == "string" || typeof e == "number" || typeof e == "bigint";
|
|
2975
3027
|
}
|
|
2976
3028
|
//#endregion
|
|
2977
3029
|
//#region src/components/blocks/commerce/order-timeline/order-timeline.tsx
|
|
2978
|
-
function
|
|
3030
|
+
function ar({ title: e, description: t, events: n, footerText: i, className: a }) {
|
|
2979
3031
|
let o = n.map((e) => ({
|
|
2980
3032
|
id: e.id,
|
|
2981
3033
|
title: e.title,
|
|
@@ -2993,10 +3045,10 @@ function $n({ title: e, description: t, events: n, footerText: i, className: a }
|
|
|
2993
3045
|
children: /* @__PURE__ */ q(Ce, { items: o })
|
|
2994
3046
|
});
|
|
2995
3047
|
}
|
|
2996
|
-
|
|
3048
|
+
ar.displayName = "OrderTimeline";
|
|
2997
3049
|
//#endregion
|
|
2998
3050
|
//#region src/components/blocks/commerce/payment-timeline/payment-timeline.tsx
|
|
2999
|
-
function
|
|
3051
|
+
function or({ events: e, className: t }) {
|
|
3000
3052
|
let n = e.map((e, t) => ({
|
|
3001
3053
|
id: `${e.label}-${String(t)}`,
|
|
3002
3054
|
title: e.label,
|
|
@@ -3020,10 +3072,10 @@ function er({ events: e, className: t }) {
|
|
|
3020
3072
|
})
|
|
3021
3073
|
});
|
|
3022
3074
|
}
|
|
3023
|
-
|
|
3075
|
+
or.displayName = "PaymentTimeline";
|
|
3024
3076
|
//#endregion
|
|
3025
3077
|
//#region src/components/blocks/commerce/inventory-section/types.ts
|
|
3026
|
-
var
|
|
3078
|
+
var sr = {
|
|
3027
3079
|
title: "Inventory",
|
|
3028
3080
|
description: "Manage stock tracking, availability, fulfillment, and compliance details.",
|
|
3029
3081
|
status: {
|
|
@@ -3114,25 +3166,25 @@ var tr = {
|
|
|
3114
3166
|
clearAll: "Clear tags",
|
|
3115
3167
|
summary: (e, t) => `${e} / ${t} tags`
|
|
3116
3168
|
}
|
|
3117
|
-
},
|
|
3169
|
+
}, cr = {
|
|
3118
3170
|
in_stock: "success",
|
|
3119
3171
|
low_stock: "warning",
|
|
3120
3172
|
out_of_stock: "destructive",
|
|
3121
3173
|
untracked: "secondary"
|
|
3122
3174
|
};
|
|
3123
|
-
function
|
|
3175
|
+
function lr(e) {
|
|
3124
3176
|
if (e === void 0 || e.trim() === "") return;
|
|
3125
3177
|
let t = Number(e);
|
|
3126
3178
|
return Number.isFinite(t) ? t : void 0;
|
|
3127
3179
|
}
|
|
3128
|
-
function
|
|
3180
|
+
function ur(e) {
|
|
3129
3181
|
if (!(e.trackQuantity ?? !0)) return "untracked";
|
|
3130
|
-
let t =
|
|
3182
|
+
let t = lr(e.available) ?? 0;
|
|
3131
3183
|
if (t <= 0) return "out_of_stock";
|
|
3132
|
-
let n =
|
|
3184
|
+
let n = lr(e.lowStockThreshold);
|
|
3133
3185
|
return n !== void 0 && t <= n ? "low_stock" : "in_stock";
|
|
3134
3186
|
}
|
|
3135
|
-
function
|
|
3187
|
+
function dr({ children: e, className: t }) {
|
|
3136
3188
|
return /* @__PURE__ */ q(o, {
|
|
3137
3189
|
type: "inherit",
|
|
3138
3190
|
weight: "semibold",
|
|
@@ -3140,7 +3192,7 @@ function ar({ children: e, className: t }) {
|
|
|
3140
3192
|
children: e
|
|
3141
3193
|
});
|
|
3142
3194
|
}
|
|
3143
|
-
function
|
|
3195
|
+
function fr({ metric: e }) {
|
|
3144
3196
|
return /* @__PURE__ */ J("div", {
|
|
3145
3197
|
className: "inventory-section-card--metric min-w-0",
|
|
3146
3198
|
children: [
|
|
@@ -3164,8 +3216,8 @@ function or({ metric: e }) {
|
|
|
3164
3216
|
]
|
|
3165
3217
|
});
|
|
3166
3218
|
}
|
|
3167
|
-
function
|
|
3168
|
-
let w = n(
|
|
3219
|
+
function pr({ value: e, onValueChange: t, errors: a, disabled: o = !1, readOnly: s = !1, visibleSections: c, visibleFields: l, locationOptions: u = [], countryOptions: p = [], tagRecommendations: m, maxTags: h, onGenerateSku: g, onRestock: v, surface: y = "flat", padding: b = y === "flat" ? "none" : "md", headerDivider: x, className: S, strings: C }) {
|
|
3220
|
+
let w = n(sr, C), T = ur(e), E = o || s, D = e.trackQuantity ?? !0, O = e.requiresShipping ?? !0, k = E || !O, A = (e) => c?.[e] !== !1, j = (e) => l?.[e] !== !1, M = (n, r) => {
|
|
3169
3221
|
let i = e[n], a = {
|
|
3170
3222
|
...e,
|
|
3171
3223
|
[n]: r
|
|
@@ -3210,7 +3262,7 @@ function sr({ value: e, onValueChange: t, errors: a, disabled: o = !1, readOnly:
|
|
|
3210
3262
|
title: w.title,
|
|
3211
3263
|
description: w.description,
|
|
3212
3264
|
titleSuffix: /* @__PURE__ */ q(I, {
|
|
3213
|
-
tone:
|
|
3265
|
+
tone: cr[T],
|
|
3214
3266
|
children: w.status[T]
|
|
3215
3267
|
}),
|
|
3216
3268
|
headerAction: /* @__PURE__ */ J(f, {
|
|
@@ -3240,13 +3292,13 @@ function sr({ value: e, onValueChange: t, errors: a, disabled: o = !1, readOnly:
|
|
|
3240
3292
|
children: [
|
|
3241
3293
|
!!A("summary") && /* @__PURE__ */ q("div", {
|
|
3242
3294
|
className: "inventory-section-card--summary grid min-w-0 grid-cols-1 gap-space-xl @md/inventory-section-card:grid-cols-2 @3xl/inventory-section-card:grid-cols-4",
|
|
3243
|
-
children: ee.map((e) => /* @__PURE__ */ q(
|
|
3295
|
+
children: ee.map((e) => /* @__PURE__ */ q(fr, { metric: e }, e.id))
|
|
3244
3296
|
}),
|
|
3245
3297
|
!!A("identity") && /* @__PURE__ */ J(f, {
|
|
3246
3298
|
render: /* @__PURE__ */ q("section", {}),
|
|
3247
3299
|
gap: "md",
|
|
3248
3300
|
className: "inventory-section-card--identity",
|
|
3249
|
-
children: [/* @__PURE__ */ q(
|
|
3301
|
+
children: [/* @__PURE__ */ q(dr, { children: w.sections.identity }), /* @__PURE__ */ J(d, { children: [!!j("sku") && /* @__PURE__ */ q(R, {
|
|
3250
3302
|
label: w.fields.sku,
|
|
3251
3303
|
error: a?.sku,
|
|
3252
3304
|
hint: w.hints.sku,
|
|
@@ -3275,7 +3327,7 @@ function sr({ value: e, onValueChange: t, errors: a, disabled: o = !1, readOnly:
|
|
|
3275
3327
|
gap: "md",
|
|
3276
3328
|
className: "inventory-section-card--tracking",
|
|
3277
3329
|
children: [
|
|
3278
|
-
/* @__PURE__ */ q(
|
|
3330
|
+
/* @__PURE__ */ q(dr, { children: w.sections.tracking }),
|
|
3279
3331
|
!!j("trackQuantity") && /* @__PURE__ */ q(se, {
|
|
3280
3332
|
label: w.fields.trackQuantity,
|
|
3281
3333
|
description: w.hints.available,
|
|
@@ -3375,7 +3427,7 @@ function sr({ value: e, onValueChange: t, errors: a, disabled: o = !1, readOnly:
|
|
|
3375
3427
|
render: /* @__PURE__ */ q("section", {}),
|
|
3376
3428
|
gap: "md",
|
|
3377
3429
|
className: "inventory-section-card--location",
|
|
3378
|
-
children: [/* @__PURE__ */ q(
|
|
3430
|
+
children: [/* @__PURE__ */ q(dr, { children: w.sections.location }), /* @__PURE__ */ J(d, { children: [!!j("locationId") && /* @__PURE__ */ q(R, {
|
|
3379
3431
|
label: w.fields.locationId,
|
|
3380
3432
|
error: a?.locationId,
|
|
3381
3433
|
hint: w.hints.locationId,
|
|
@@ -3412,7 +3464,7 @@ function sr({ value: e, onValueChange: t, errors: a, disabled: o = !1, readOnly:
|
|
|
3412
3464
|
gap: "md",
|
|
3413
3465
|
className: "inventory-section-card--shipping",
|
|
3414
3466
|
children: [
|
|
3415
|
-
/* @__PURE__ */ q(
|
|
3467
|
+
/* @__PURE__ */ q(dr, { children: w.sections.shipping }),
|
|
3416
3468
|
!!j("requiresShipping") && /* @__PURE__ */ q(se, {
|
|
3417
3469
|
label: w.fields.requiresShipping,
|
|
3418
3470
|
description: w.hints.weight,
|
|
@@ -3441,7 +3493,7 @@ function sr({ value: e, onValueChange: t, errors: a, disabled: o = !1, readOnly:
|
|
|
3441
3493
|
render: /* @__PURE__ */ q("section", {}),
|
|
3442
3494
|
gap: "md",
|
|
3443
3495
|
className: "inventory-section-card--customs",
|
|
3444
|
-
children: [/* @__PURE__ */ q(
|
|
3496
|
+
children: [/* @__PURE__ */ q(dr, { children: w.sections.customs }), /* @__PURE__ */ J(d, { children: [!!j("countryOfOrigin") && /* @__PURE__ */ q(R, {
|
|
3445
3497
|
label: w.fields.countryOfOrigin,
|
|
3446
3498
|
error: a?.countryOfOrigin,
|
|
3447
3499
|
hint: w.hints.countryOfOrigin,
|
|
@@ -3477,7 +3529,7 @@ function sr({ value: e, onValueChange: t, errors: a, disabled: o = !1, readOnly:
|
|
|
3477
3529
|
render: /* @__PURE__ */ q("section", {}),
|
|
3478
3530
|
gap: "md",
|
|
3479
3531
|
className: "inventory-section-card--tags",
|
|
3480
|
-
children: [/* @__PURE__ */ q(
|
|
3532
|
+
children: [/* @__PURE__ */ q(dr, { children: w.sections.tags }), /* @__PURE__ */ q(R, {
|
|
3481
3533
|
label: w.fields.tags,
|
|
3482
3534
|
error: a?.tags,
|
|
3483
3535
|
hint: w.hints.tags,
|
|
@@ -3496,58 +3548,11 @@ function sr({ value: e, onValueChange: t, errors: a, disabled: o = !1, readOnly:
|
|
|
3496
3548
|
]
|
|
3497
3549
|
});
|
|
3498
3550
|
}
|
|
3499
|
-
|
|
3500
|
-
//#endregion
|
|
3501
|
-
//#region src/components/blocks/commerce/shared/order-status.ts
|
|
3502
|
-
var cr = {
|
|
3503
|
-
unfulfilled: "warning",
|
|
3504
|
-
partiallyFulfilled: "warning",
|
|
3505
|
-
fulfilled: "success",
|
|
3506
|
-
scheduled: "info",
|
|
3507
|
-
onHold: "neutral",
|
|
3508
|
-
cancelled: "destructive"
|
|
3509
|
-
}, lr = {
|
|
3510
|
-
pending: "warning",
|
|
3511
|
-
authorized: "info",
|
|
3512
|
-
paid: "success",
|
|
3513
|
-
partiallyRefunded: "neutral",
|
|
3514
|
-
refunded: "neutral",
|
|
3515
|
-
voided: "neutral"
|
|
3516
|
-
}, ur = {
|
|
3517
|
-
success: "success",
|
|
3518
|
-
pending: "warning",
|
|
3519
|
-
failure: "destructive"
|
|
3520
|
-
}, dr = /* @__PURE__ */ new Set([
|
|
3521
|
-
"refund",
|
|
3522
|
-
"void",
|
|
3523
|
-
"chargeback"
|
|
3524
|
-
]), fr = {
|
|
3525
|
-
fulfillment: {
|
|
3526
|
-
unfulfilled: "Unfulfilled",
|
|
3527
|
-
partiallyFulfilled: "Partially fulfilled",
|
|
3528
|
-
fulfilled: "Fulfilled",
|
|
3529
|
-
scheduled: "Scheduled",
|
|
3530
|
-
onHold: "On hold",
|
|
3531
|
-
cancelled: "Cancelled"
|
|
3532
|
-
},
|
|
3533
|
-
payment: {
|
|
3534
|
-
pending: "Pending",
|
|
3535
|
-
authorized: "Authorized",
|
|
3536
|
-
paid: "Paid",
|
|
3537
|
-
partiallyRefunded: "Partially refunded",
|
|
3538
|
-
refunded: "Refunded",
|
|
3539
|
-
voided: "Voided"
|
|
3540
|
-
}
|
|
3541
|
-
}, pr = {
|
|
3542
|
-
...fr,
|
|
3543
|
-
formatOrderNumber: (e) => `#${e}`,
|
|
3544
|
-
formatOrigin: (e, t) => `${e} from ${t}`,
|
|
3545
|
-
moreActions: "More actions"
|
|
3546
|
-
};
|
|
3551
|
+
pr.displayName = "InventorySectionCard";
|
|
3547
3552
|
//#endregion
|
|
3548
3553
|
//#region src/components/blocks/commerce/order-header/order-header.tsx
|
|
3549
3554
|
function mr({ orderNumber: e, fulfillmentStatus: t, paymentStatus: i, placedAt: a, source: s, actions: l, renderLink: u, headingTag: d = "h1", className: p, strings: m, ...h }) {
|
|
3550
|
-
let g = n(
|
|
3555
|
+
let g = n(an, m), _ = a && s ? g.formatOrigin(a, s) : a || s || void 0;
|
|
3551
3556
|
return /* @__PURE__ */ J(f, {
|
|
3552
3557
|
...h,
|
|
3553
3558
|
gap: "xs",
|
|
@@ -3573,13 +3578,13 @@ function mr({ orderNumber: e, fulfillmentStatus: t, paymentStatus: i, placedAt:
|
|
|
3573
3578
|
children: g.formatOrderNumber(e)
|
|
3574
3579
|
}),
|
|
3575
3580
|
!!i && /* @__PURE__ */ q(I, {
|
|
3576
|
-
tone:
|
|
3581
|
+
tone: en[i],
|
|
3577
3582
|
"data-axis": "payment",
|
|
3578
3583
|
className: "order-header--payment",
|
|
3579
3584
|
children: g.payment[i]
|
|
3580
3585
|
}),
|
|
3581
3586
|
!!t && /* @__PURE__ */ q(I, {
|
|
3582
|
-
tone:
|
|
3587
|
+
tone: $t[t],
|
|
3583
3588
|
"data-axis": "fulfillment",
|
|
3584
3589
|
className: "order-header--fulfillment",
|
|
3585
3590
|
children: g.fulfillment[t]
|
|
@@ -3709,7 +3714,7 @@ gr.displayName = "OrderLineItem";
|
|
|
3709
3714
|
//#region src/components/blocks/commerce/fulfillment-group/types.ts
|
|
3710
3715
|
var _r = {
|
|
3711
3716
|
...hr,
|
|
3712
|
-
fulfillment:
|
|
3717
|
+
fulfillment: rn.fulfillment,
|
|
3713
3718
|
formatHeading: (e, t) => `${e} (${t})`,
|
|
3714
3719
|
moreActions: "More actions"
|
|
3715
3720
|
};
|
|
@@ -3727,7 +3732,7 @@ function vr({ status: e, location: t, notice: i, noticeIcon: a, items: s, count:
|
|
|
3727
3732
|
"aria-level": 2,
|
|
3728
3733
|
className: "fulfillment-group--heading inline-flex max-w-full",
|
|
3729
3734
|
children: /* @__PURE__ */ q(I, {
|
|
3730
|
-
tone:
|
|
3735
|
+
tone: $t[e],
|
|
3731
3736
|
children: D
|
|
3732
3737
|
})
|
|
3733
3738
|
}),
|
|
@@ -3792,7 +3797,7 @@ vr.displayName = "FulfillmentGroup";
|
|
|
3792
3797
|
//#region src/components/blocks/commerce/order-summary/types.ts
|
|
3793
3798
|
var yr = {
|
|
3794
3799
|
title: "Payment",
|
|
3795
|
-
payment:
|
|
3800
|
+
payment: rn.payment
|
|
3796
3801
|
};
|
|
3797
3802
|
//#endregion
|
|
3798
3803
|
//#region src/components/blocks/commerce/order-summary/order-summary.tsx
|
|
@@ -3815,7 +3820,7 @@ function xr({ goods: e, total: t, payments: i, paymentStatus: a, alert: o, surfa
|
|
|
3815
3820
|
headerDivider: l,
|
|
3816
3821
|
title: p.title,
|
|
3817
3822
|
titleSuffix: a ? /* @__PURE__ */ q(I, {
|
|
3818
|
-
tone:
|
|
3823
|
+
tone: en[a],
|
|
3819
3824
|
className: "order-summary--status",
|
|
3820
3825
|
children: p.payment[a]
|
|
3821
3826
|
}) : void 0,
|
|
@@ -3883,7 +3888,7 @@ function Cr({ transactions: e, surface: t = "flat", padding: i = t === "flat" ?
|
|
|
3883
3888
|
}) : /* @__PURE__ */ q("ol", {
|
|
3884
3889
|
className: "order-transactions--list m-0 list-none p-0",
|
|
3885
3890
|
children: e.map((e) => {
|
|
3886
|
-
let t =
|
|
3891
|
+
let t = nn.has(e.kind), n = e.status === "failure", r = Qe(e.amount), i = t && !n ? `−${r}` : r, a = [
|
|
3887
3892
|
e.processedAt,
|
|
3888
3893
|
e.method,
|
|
3889
3894
|
e.gateway
|
|
@@ -3909,7 +3914,7 @@ function Cr({ transactions: e, surface: t = "flat", padding: i = t === "flat" ?
|
|
|
3909
3914
|
weight: "medium",
|
|
3910
3915
|
children: u.kind[e.kind]
|
|
3911
3916
|
}), e.status !== "success" && /* @__PURE__ */ q(I, {
|
|
3912
|
-
tone:
|
|
3917
|
+
tone: tn[e.status],
|
|
3913
3918
|
size: "sm",
|
|
3914
3919
|
className: "order-transactions--status",
|
|
3915
3920
|
children: u.status[e.status]
|
|
@@ -4074,6 +4079,6 @@ function Er({ name: e, email: t, phone: i, orderCount: a, shippingAddress: o, sh
|
|
|
4074
4079
|
}
|
|
4075
4080
|
Er.displayName = "OrderCustomer";
|
|
4076
4081
|
//#endregion
|
|
4077
|
-
export { zt as AddressCard, Y as AmountRow, Ye as BookingCalendarEventCard, Yt as CartSummary, Jt as CartSummaryCard, Qt as CouponInputCard,
|
|
4082
|
+
export { zt as AddressCard, Y as AmountRow, Ye as BookingCalendarEventCard, Yt as CartSummary, Jt as CartSummaryCard, Qt as CouponInputCard, mn as DEFAULT_SEO_LISTING_LIMITS, it as DiscountStack, rt as DiscountStackPreview, vr as FulfillmentGroup, xt as GiftcardCard, Dt as InventoryLevel, pr as InventorySectionCard, Hn as InvoiceHeader, rr as InvoiceLineItems, zn as InvoiceMini, Ze as LoyaltyPoints, Er as OrderCustomer, mr as OrderHeader, gr as OrderLineItem, cn as OrderStatusCard, xr as OrderSummary, ar as OrderTimeline, Cr as OrderTransactions, fn as PaymentMethod, pn as PaymentMethodCard, or as PaymentTimeline, xe as Receipt, Se as ReceiptItems, It as RefundStatus, Ft as RefundStatusCard, In as SeoListingCard, ct as ShipmentTracking, jt as SubscriptionSummaryCard, X as SummaryPanel, kt as TaxBreakdownCard, qe as UpcomingBookingRow, Tt as VendorProfileCard, Ht as VoucherEntry, Tn as calculateSeoListingScore, Rt as defaultAddressCardStrings, Gt as defaultCartSummaryStrings, Xt as defaultCouponInputStrings, tt as defaultDiscountStackStrings, _r as defaultFulfillmentGroupStrings, Et as defaultInventoryLevelStrings, sr as defaultInventorySectionStrings, Bn as defaultInvoiceHeaderStrings, Un as defaultInvoiceLineItemsStrings, Ln as defaultInvoiceMiniStrings, Xe as defaultLoyaltyPointsStrings, wr as defaultOrderCustomerStrings, an as defaultOrderHeaderStrings, hr as defaultOrderLineItemStrings, on as defaultOrderStatusStrings, yr as defaultOrderSummaryStrings, Sr as defaultOrderTransactionsStrings, ln as defaultPaymentMethodStrings, Mt as defaultRefundStatusStrings, En as defaultSeoListingCardStrings, ot as defaultShipmentTrackingStrings, At as defaultSubscriptionSummaryStrings, Ot as defaultTaxBreakdownStrings, St as defaultVendorProfileStrings, Bt as defaultVoucherEntryStrings, $t as fulfillmentStatusTone, $ as getSeoPermalinkPath, bn as getSeoPermalinkSlug, Rn as invoiceStatusTone, en as paymentStatusTone, tn as transactionStatusTone };
|
|
4078
4083
|
|
|
4079
4084
|
//# sourceMappingURL=commerce.js.map
|