@shopify/ui-extensions 2022.10.6 → 2023.4.0
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/README.md +1 -1
- package/build/cjs/surfaces/admin/components/AdminAction/AdminAction.js +12 -0
- package/build/cjs/surfaces/admin/components/AdminBlock/AdminBlock.js +9 -0
- package/build/cjs/surfaces/admin/components/BlockStack/BlockStack.js +9 -0
- package/build/cjs/surfaces/admin/components/Box/Box.js +9 -0
- package/build/cjs/surfaces/admin/components/Button/Button.js +9 -0
- package/build/cjs/surfaces/admin/components/Checkbox/Checkbox.js +9 -0
- package/build/cjs/surfaces/admin/components/CustomerSegmentationTemplate/CustomerSegmentationTemplate.js +12 -0
- package/build/cjs/surfaces/admin/components/Divider/Divider.js +9 -0
- package/build/cjs/surfaces/admin/components/EmailField/EmailField.js +9 -0
- package/build/cjs/surfaces/admin/components/Form/Form.js +9 -0
- package/build/cjs/surfaces/admin/components/Heading/Heading.js +9 -0
- package/build/cjs/surfaces/admin/components/HeadingGroup/HeadingGroup.js +9 -0
- package/build/cjs/surfaces/admin/components/Icon/Icon.js +9 -0
- package/build/cjs/surfaces/admin/components/Image/Image.js +9 -0
- package/build/cjs/surfaces/admin/components/InlineStack/InlineStack.js +9 -0
- package/build/cjs/surfaces/admin/components/Link/Link.js +9 -0
- package/build/cjs/surfaces/admin/components/NumberField/NumberField.js +9 -0
- package/build/cjs/surfaces/admin/components/PasswordField/PasswordField.js +9 -0
- package/build/cjs/surfaces/admin/components/Select/Select.js +9 -0
- package/build/cjs/surfaces/admin/components/Text/Text.js +9 -0
- package/build/cjs/surfaces/admin/components/TextArea/TextArea.js +9 -0
- package/build/cjs/surfaces/admin/components/TextField/TextField.js +9 -0
- package/build/cjs/surfaces/admin/components/URLField/URLField.js +9 -0
- package/build/cjs/surfaces/admin/extension.js +11 -0
- package/build/cjs/surfaces/admin.js +56 -0
- package/build/cjs/surfaces/checkout/components/DateField/DateField.js +13 -0
- package/build/cjs/surfaces/checkout/components/DatePicker/DatePicker.js +22 -0
- package/build/cjs/surfaces/checkout/components/Disclosure/Disclosure.js +20 -0
- package/build/cjs/surfaces/checkout/components/Modal/Modal.js +17 -0
- package/build/cjs/surfaces/checkout/components/Popover/Popover.js +17 -0
- package/build/cjs/surfaces/checkout/components/View/View.js +0 -3
- package/build/cjs/surfaces/checkout/extension.js +35 -2
- package/build/cjs/surfaces/checkout/style/memoize.js +2 -0
- package/build/cjs/surfaces/checkout/style/style.js +0 -1
- package/build/cjs/surfaces/checkout.js +11 -0
- package/build/cjs/utilities/registration.js +26 -2
- package/build/esm/surfaces/admin/components/AdminAction/AdminAction.mjs +8 -0
- package/build/esm/surfaces/admin/components/AdminBlock/AdminBlock.mjs +5 -0
- package/build/esm/surfaces/admin/components/BlockStack/BlockStack.mjs +5 -0
- package/build/esm/surfaces/admin/components/Box/Box.mjs +5 -0
- package/build/esm/surfaces/admin/components/Button/Button.mjs +5 -0
- package/build/esm/surfaces/admin/components/Checkbox/Checkbox.mjs +5 -0
- package/build/esm/surfaces/admin/components/CustomerSegmentationTemplate/CustomerSegmentationTemplate.mjs +8 -0
- package/build/esm/surfaces/admin/components/Divider/Divider.mjs +5 -0
- package/build/esm/surfaces/admin/components/EmailField/EmailField.mjs +5 -0
- package/build/esm/surfaces/admin/components/Form/Form.mjs +5 -0
- package/build/esm/surfaces/admin/components/Heading/Heading.mjs +5 -0
- package/build/esm/surfaces/admin/components/HeadingGroup/HeadingGroup.mjs +5 -0
- package/build/esm/surfaces/admin/components/Icon/Icon.mjs +5 -0
- package/build/esm/surfaces/admin/components/Image/Image.mjs +5 -0
- package/build/esm/surfaces/admin/components/InlineStack/InlineStack.mjs +5 -0
- package/build/esm/surfaces/admin/components/Link/Link.mjs +5 -0
- package/build/esm/surfaces/admin/components/NumberField/NumberField.mjs +5 -0
- package/build/esm/surfaces/admin/components/PasswordField/PasswordField.mjs +5 -0
- package/build/esm/surfaces/admin/components/Select/Select.mjs +5 -0
- package/build/esm/surfaces/admin/components/Text/Text.mjs +5 -0
- package/build/esm/surfaces/admin/components/TextArea/TextArea.mjs +5 -0
- package/build/esm/surfaces/admin/components/TextField/TextField.mjs +5 -0
- package/build/esm/surfaces/admin/components/URLField/URLField.mjs +5 -0
- package/build/esm/surfaces/admin/extension.mjs +6 -0
- package/build/esm/surfaces/admin.mjs +24 -0
- package/build/esm/surfaces/checkout/components/DateField/DateField.mjs +9 -0
- package/build/esm/surfaces/checkout/components/DatePicker/DatePicker.mjs +18 -0
- package/build/esm/surfaces/checkout/components/Disclosure/Disclosure.mjs +16 -0
- package/build/esm/surfaces/checkout/components/Modal/Modal.mjs +13 -0
- package/build/esm/surfaces/checkout/components/Popover/Popover.mjs +13 -0
- package/build/esm/surfaces/checkout/components/View/View.mjs +0 -3
- package/build/esm/surfaces/checkout/extension.mjs +35 -3
- package/build/esm/surfaces/checkout/style/memoize.mjs +2 -0
- package/build/esm/surfaces/checkout/style/style.mjs +0 -1
- package/build/esm/surfaces/checkout.mjs +6 -1
- package/build/esm/utilities/registration.mjs +26 -2
- package/build/esnext/surfaces/admin/components/AdminAction/AdminAction.esnext +8 -0
- package/build/esnext/surfaces/admin/components/AdminBlock/AdminBlock.esnext +5 -0
- package/build/esnext/surfaces/admin/components/BlockStack/BlockStack.esnext +5 -0
- package/build/esnext/surfaces/admin/components/Box/Box.esnext +5 -0
- package/build/esnext/surfaces/admin/components/Button/Button.esnext +5 -0
- package/build/esnext/surfaces/admin/components/Checkbox/Checkbox.esnext +5 -0
- package/build/esnext/surfaces/admin/components/CustomerSegmentationTemplate/CustomerSegmentationTemplate.esnext +8 -0
- package/build/esnext/surfaces/admin/components/Divider/Divider.esnext +5 -0
- package/build/esnext/surfaces/admin/components/EmailField/EmailField.esnext +5 -0
- package/build/esnext/surfaces/admin/components/Form/Form.esnext +5 -0
- package/build/esnext/surfaces/admin/components/Heading/Heading.esnext +5 -0
- package/build/esnext/surfaces/admin/components/HeadingGroup/HeadingGroup.esnext +5 -0
- package/build/esnext/surfaces/admin/components/Icon/Icon.esnext +5 -0
- package/build/esnext/surfaces/admin/components/Image/Image.esnext +5 -0
- package/build/esnext/surfaces/admin/components/InlineStack/InlineStack.esnext +5 -0
- package/build/esnext/surfaces/admin/components/Link/Link.esnext +5 -0
- package/build/esnext/surfaces/admin/components/NumberField/NumberField.esnext +5 -0
- package/build/esnext/surfaces/admin/components/PasswordField/PasswordField.esnext +5 -0
- package/build/esnext/surfaces/admin/components/Select/Select.esnext +5 -0
- package/build/esnext/surfaces/admin/components/Text/Text.esnext +5 -0
- package/build/esnext/surfaces/admin/components/TextArea/TextArea.esnext +5 -0
- package/build/esnext/surfaces/admin/components/TextField/TextField.esnext +5 -0
- package/build/esnext/surfaces/admin/components/URLField/URLField.esnext +5 -0
- package/build/esnext/surfaces/admin/extension.esnext +6 -0
- package/build/esnext/surfaces/admin.esnext +24 -0
- package/build/esnext/surfaces/checkout/components/DateField/DateField.esnext +9 -0
- package/build/esnext/surfaces/checkout/components/DatePicker/DatePicker.esnext +18 -0
- package/build/esnext/surfaces/checkout/components/Disclosure/Disclosure.esnext +16 -0
- package/build/esnext/surfaces/checkout/components/Modal/Modal.esnext +13 -0
- package/build/esnext/surfaces/checkout/components/Popover/Popover.esnext +13 -0
- package/build/esnext/surfaces/checkout/components/View/View.esnext +0 -3
- package/build/esnext/surfaces/checkout/extension.esnext +35 -3
- package/build/esnext/surfaces/checkout/style/memoize.esnext +2 -0
- package/build/esnext/surfaces/checkout/style/style.esnext +0 -1
- package/build/esnext/surfaces/checkout.esnext +6 -1
- package/build/esnext/utilities/registration.esnext +26 -2
- package/build/ts/api.d.ts +62 -0
- package/build/ts/api.d.ts.map +1 -1
- package/build/ts/extension.d.ts +8 -1
- package/build/ts/extension.d.ts.map +1 -1
- package/build/ts/index.d.ts +0 -1
- package/build/ts/index.d.ts.map +1 -1
- package/build/ts/shared.d.ts +6 -0
- package/build/ts/shared.d.ts.map +1 -0
- package/build/ts/surfaces/admin/api/action/action.d.ts +11 -0
- package/build/ts/surfaces/admin/api/action/action.d.ts.map +1 -0
- package/build/ts/surfaces/admin/api/action/action.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/api/action/action.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/api/customer-segmentation-template/customer-segmentation-template.d.ts +11 -0
- package/build/ts/surfaces/admin/api/customer-segmentation-template/customer-segmentation-template.d.ts.map +1 -0
- package/build/ts/surfaces/admin/api/extension-targets/extension-targets.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/api/extension-targets/extension-targets.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/api/standard/standard.d.ts +13 -0
- package/build/ts/surfaces/admin/api/standard/standard.d.ts.map +1 -0
- package/build/ts/surfaces/admin/api/standard/standard.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/api/standard/standard.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/api.d.ts +5 -0
- package/build/ts/surfaces/admin/api.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/AdminAction/AdminAction.d.ts +25 -0
- package/build/ts/surfaces/admin/components/AdminAction/AdminAction.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/AdminAction/AdminAction.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/AdminAction/AdminAction.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/AdminBlock/AdminBlock.d.ts +17 -0
- package/build/ts/surfaces/admin/components/AdminBlock/AdminBlock.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/AdminBlock/AdminBlock.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/AdminBlock/AdminBlock.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/BlockStack/BlockStack.d.ts +15 -0
- package/build/ts/surfaces/admin/components/BlockStack/BlockStack.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/BlockStack/BlockStack.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/BlockStack/BlockStack.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Box/Box.d.ts +9 -0
- package/build/ts/surfaces/admin/components/Box/Box.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Box/Box.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/Box/Box.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Button/Button.d.ts +87 -0
- package/build/ts/surfaces/admin/components/Button/Button.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Button/Button.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/Button/Button.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Checkbox/Checkbox.d.ts +55 -0
- package/build/ts/surfaces/admin/components/Checkbox/Checkbox.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Checkbox/Checkbox.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/Checkbox/Checkbox.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/CustomerSegmentationTemplate/CustomerSegmentationTemplate.d.ts +27 -0
- package/build/ts/surfaces/admin/components/CustomerSegmentationTemplate/CustomerSegmentationTemplate.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Divider/Divider.d.ts +14 -0
- package/build/ts/surfaces/admin/components/Divider/Divider.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Divider/Divider.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/Divider/Divider.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/EmailField/EmailField.d.ts +10 -0
- package/build/ts/surfaces/admin/components/EmailField/EmailField.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/EmailField/EmailField.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/EmailField/EmailField.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Form/Form.d.ts +30 -0
- package/build/ts/surfaces/admin/components/Form/Form.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Form/Form.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/Form/Form.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Heading/Heading.d.ts +14 -0
- package/build/ts/surfaces/admin/components/Heading/Heading.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Heading/Heading.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/Heading/Heading.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/HeadingGroup/HeadingGroup.d.ts +8 -0
- package/build/ts/surfaces/admin/components/HeadingGroup/HeadingGroup.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/HeadingGroup/HeadingGroup.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/HeadingGroup/HeadingGroup.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Icon/Icon.d.ts +23 -0
- package/build/ts/surfaces/admin/components/Icon/Icon.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Icon/Icon.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/Icon/Icon.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Image/Image.d.ts +114 -0
- package/build/ts/surfaces/admin/components/Image/Image.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Image/Image.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/Image/Image.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/InlineStack/InlineStack.d.ts +15 -0
- package/build/ts/surfaces/admin/components/InlineStack/InlineStack.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/InlineStack/InlineStack.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/InlineStack/InlineStack.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Link/Link.d.ts +57 -0
- package/build/ts/surfaces/admin/components/Link/Link.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Link/Link.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/Link/Link.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/NumberField/NumberField.d.ts +41 -0
- package/build/ts/surfaces/admin/components/NumberField/NumberField.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/NumberField/NumberField.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/NumberField/NumberField.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/PasswordField/PasswordField.d.ts +10 -0
- package/build/ts/surfaces/admin/components/PasswordField/PasswordField.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/PasswordField/PasswordField.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/PasswordField/PasswordField.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Select/Select.d.ts +127 -0
- package/build/ts/surfaces/admin/components/Select/Select.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Select/Select.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/Select/Select.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Text/Text.d.ts +97 -0
- package/build/ts/surfaces/admin/components/Text/Text.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Text/Text.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/Text/Text.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/TextArea/TextArea.d.ts +15 -0
- package/build/ts/surfaces/admin/components/TextArea/TextArea.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/TextArea/TextArea.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/TextArea/TextArea.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/TextField/TextField.d.ts +9 -0
- package/build/ts/surfaces/admin/components/TextField/TextField.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/TextField/TextField.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/TextField/TextField.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/URLField/URLField.d.ts +10 -0
- package/build/ts/surfaces/admin/components/URLField/URLField.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/URLField/URLField.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/URLField/URLField.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/shared/index.d.ts +443 -0
- package/build/ts/surfaces/admin/components/shared/index.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components.d.ts +47 -0
- package/build/ts/surfaces/admin/components.d.ts.map +1 -0
- package/build/ts/surfaces/admin/extension-points.d.ts +64 -0
- package/build/ts/surfaces/admin/extension-points.d.ts.map +1 -0
- package/build/ts/surfaces/admin/extension.d.ts +5 -0
- package/build/ts/surfaces/admin/extension.d.ts.map +1 -0
- package/build/ts/surfaces/admin/globals.d.ts +5 -0
- package/build/ts/surfaces/admin/globals.d.ts.map +1 -0
- package/build/ts/surfaces/admin/shared.d.ts +6 -0
- package/build/ts/surfaces/admin/shared.d.ts.map +1 -0
- package/build/ts/surfaces/admin.d.ts +7 -0
- package/build/ts/surfaces/admin.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/api/cart-line/cart-line-details.d.ts +9 -0
- package/build/ts/surfaces/checkout/api/cart-line/cart-line-details.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/api/checkout/checkout.d.ts +367 -0
- package/build/ts/surfaces/checkout/api/checkout/checkout.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/api/order-status/order-status.d.ts +27 -0
- package/build/ts/surfaces/checkout/api/order-status/order-status.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/api/payment-method/render.d.ts +44 -0
- package/build/ts/surfaces/checkout/api/payment-method/render.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/api/pickup/pickup-locations.d.ts +8 -0
- package/build/ts/surfaces/checkout/api/pickup/pickup-locations.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/api/pickup/pickup-points.d.ts +8 -0
- package/build/ts/surfaces/checkout/api/pickup/pickup-points.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/api/redeemable/render.d.ts +44 -0
- package/build/ts/surfaces/checkout/api/redeemable/render.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/api/shared.d.ts +46 -0
- package/build/ts/surfaces/checkout/api/shared.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/shipping/shipping-method-details.d.ts +13 -0
- package/build/ts/surfaces/checkout/api/shipping/shipping-method-details.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/api/standard/standard.d.ts +562 -406
- package/build/ts/surfaces/checkout/api/standard/standard.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api.d.ts +10 -3
- package/build/ts/surfaces/checkout/api.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Banner/Banner.d.ts +2 -2
- package/build/ts/surfaces/checkout/components/Banner/Banner.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Banner/Banner.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Banner/Banner.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/BlockLayout/BlockLayout.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/BlockLayout/BlockLayout.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/BlockSpacer/BlockSpacer.d.ts +2 -2
- package/build/ts/surfaces/checkout/components/BlockSpacer/BlockSpacer.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/BlockSpacer/BlockSpacer.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/BlockSpacer/BlockSpacer.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/BlockStack/BlockStack.d.ts +20 -4
- package/build/ts/surfaces/checkout/components/BlockStack/BlockStack.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/BlockStack/BlockStack.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/BlockStack/BlockStack.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Button/Button.d.ts +3 -4
- package/build/ts/surfaces/checkout/components/Button/Button.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Button/Button.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Button/Button.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Checkbox/Checkbox.d.ts +5 -9
- package/build/ts/surfaces/checkout/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Checkbox/Checkbox.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Checkbox/Checkbox.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Choice/Choice.d.ts +2 -4
- package/build/ts/surfaces/checkout/components/Choice/Choice.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Choice/Choice.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Choice/Choice.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/ChoiceList/ChoiceList.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/ChoiceList/ChoiceList.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/DateField/DateField.d.ts +32 -0
- package/build/ts/surfaces/checkout/components/DateField/DateField.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/DateField/DateField.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/DateField/DateField.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/DatePicker/DatePicker.d.ts +81 -0
- package/build/ts/surfaces/checkout/components/DatePicker/DatePicker.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/DatePicker/DatePicker.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/DatePicker/DatePicker.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Disclosure/Disclosure.d.ts +45 -0
- package/build/ts/surfaces/checkout/components/Disclosure/Disclosure.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Disclosure/Disclosure.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Disclosure/Disclosure.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Divider/Divider.d.ts +2 -2
- package/build/ts/surfaces/checkout/components/Divider/Divider.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Divider/Divider.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Divider/Divider.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Form/Form.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Form/Form.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Grid/Grid.d.ts +20 -4
- package/build/ts/surfaces/checkout/components/Grid/Grid.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Grid/Grid.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Grid/Grid.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/GridItem/GridItem.d.ts +20 -4
- package/build/ts/surfaces/checkout/components/GridItem/GridItem.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/GridItem/GridItem.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/GridItem/GridItem.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Heading/Heading.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Heading/Heading.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/HeadingGroup/HeadingGroup.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/HeadingGroup/HeadingGroup.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Icon/Icon.d.ts +7 -3
- package/build/ts/surfaces/checkout/components/Icon/Icon.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Icon/Icon.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Icon/Icon.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Image/Image.d.ts +2 -3
- package/build/ts/surfaces/checkout/components/Image/Image.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Image/Image.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Image/Image.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/InlineLayout/InlineLayout.d.ts +2 -2
- package/build/ts/surfaces/checkout/components/InlineLayout/InlineLayout.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/InlineLayout/InlineLayout.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/InlineLayout/InlineLayout.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/InlineSpacer/InlineSpacer.d.ts +2 -2
- package/build/ts/surfaces/checkout/components/InlineSpacer/InlineSpacer.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/InlineSpacer/InlineSpacer.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/InlineSpacer/InlineSpacer.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/InlineStack/InlineStack.d.ts +23 -3
- package/build/ts/surfaces/checkout/components/InlineStack/InlineStack.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/InlineStack/InlineStack.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/InlineStack/InlineStack.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Link/Link.d.ts +3 -4
- package/build/ts/surfaces/checkout/components/Link/Link.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Link/Link.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Link/Link.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/List/List.d.ts +2 -2
- package/build/ts/surfaces/checkout/components/List/List.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/List/List.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/List/List.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/ListItem/ListItem.d.ts +2 -1
- package/build/ts/surfaces/checkout/components/ListItem/ListItem.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/ListItem/ListItem.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/ListItem/ListItem.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Modal/Modal.d.ts +44 -0
- package/build/ts/surfaces/checkout/components/Modal/Modal.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Modal/Modal.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Modal/Modal.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/PhoneField/PhoneField.d.ts +87 -2
- package/build/ts/surfaces/checkout/components/PhoneField/PhoneField.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/PhoneField/PhoneField.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/PhoneField/PhoneField.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Popover/Popover.d.ts +36 -0
- package/build/ts/surfaces/checkout/components/Popover/Popover.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Popover/Popover.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Popover/Popover.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Pressable/Pressable.d.ts +20 -3
- package/build/ts/surfaces/checkout/components/Pressable/Pressable.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Pressable/Pressable.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Pressable/Pressable.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/ScrollView/ScrollView.d.ts +7 -4
- package/build/ts/surfaces/checkout/components/ScrollView/ScrollView.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/ScrollView/ScrollView.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/ScrollView/ScrollView.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Select/Select.d.ts +2 -3
- package/build/ts/surfaces/checkout/components/Select/Select.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Select/Select.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Select/Select.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/SkeletonImage/SkeletonImage.d.ts +2 -1
- package/build/ts/surfaces/checkout/components/SkeletonImage/SkeletonImage.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/SkeletonImage/SkeletonImage.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/SkeletonImage/SkeletonImage.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/SkeletonText/SkeletonText.d.ts +7 -3
- package/build/ts/surfaces/checkout/components/SkeletonText/SkeletonText.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/SkeletonText/SkeletonText.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/SkeletonText/SkeletonText.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/SkeletonTextBlock/SkeletonTextBlock.d.ts +7 -2
- package/build/ts/surfaces/checkout/components/SkeletonTextBlock/SkeletonTextBlock.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/SkeletonTextBlock/SkeletonTextBlock.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/SkeletonTextBlock/SkeletonTextBlock.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Spinner/Spinner.d.ts +2 -2
- package/build/ts/surfaces/checkout/components/Spinner/Spinner.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Spinner/Spinner.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Spinner/Spinner.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Stepper/Stepper.d.ts +98 -3
- package/build/ts/surfaces/checkout/components/Stepper/Stepper.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Stepper/Stepper.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Stepper/Stepper.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Tag/Tag.d.ts +5 -7
- package/build/ts/surfaces/checkout/components/Tag/Tag.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Tag/Tag.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Tag/Tag.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Text/Text.d.ts +2 -2
- package/build/ts/surfaces/checkout/components/Text/Text.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Text/Text.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Text/Text.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/TextBlock/TextBlock.d.ts +3 -7
- package/build/ts/surfaces/checkout/components/TextBlock/TextBlock.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/TextBlock/TextBlock.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/TextBlock/TextBlock.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/TextField/TextField.d.ts +2 -2
- package/build/ts/surfaces/checkout/components/TextField/TextField.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/TextField/TextField.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/TextField/TextField.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Tooltip/Tooltip.d.ts +2 -1
- package/build/ts/surfaces/checkout/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Tooltip/Tooltip.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Tooltip/Tooltip.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/View/View.d.ts +16 -16
- package/build/ts/surfaces/checkout/components/View/View.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/View/View.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/View/View.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/shared.d.ts +57 -18
- package/build/ts/surfaces/checkout/components/shared.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components.d.ts +13 -3
- package/build/ts/surfaces/checkout/components.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/extension-points.d.ts +136 -26
- package/build/ts/surfaces/checkout/extension-points.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/extension.d.ts +35 -3
- package/build/ts/surfaces/checkout/extension.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/globals.d.ts +1 -1
- package/build/ts/surfaces/checkout/globals.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/helper.docs.d.ts +16 -0
- package/build/ts/surfaces/checkout/helper.docs.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/shared.d.ts +3 -5
- package/build/ts/surfaces/checkout/shared.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/style/index.d.ts +3 -0
- package/build/ts/surfaces/checkout/style/index.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/style/memoize.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/style/style.d.ts +4 -0
- package/build/ts/surfaces/checkout/style/style.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/style/style.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/style/style.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/style/types.d.ts +5 -0
- package/build/ts/surfaces/checkout/style/types.d.ts.map +1 -1
- package/build/ts/utilities/registration.d.ts +5 -1
- package/build/ts/utilities/registration.d.ts.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +18 -1
- package/src/api.ts +73 -0
- package/src/extension.ts +30 -1
- package/src/index.ts +0 -1
- package/src/shared.ts +13 -0
- package/src/surfaces/admin/api/action/action.doc.ts +19 -0
- package/src/surfaces/admin/api/action/action.ts +14 -0
- package/src/surfaces/admin/api/customer-segmentation-template/customer-segmentation-template.ts +19 -0
- package/src/surfaces/admin/api/extension-targets/extension-targets.doc.ts +20 -0
- package/src/surfaces/admin/api/standard/README.md +1 -0
- package/src/surfaces/admin/api/standard/standard.doc.ts +20 -0
- package/src/surfaces/admin/api/standard/standard.ts +14 -0
- package/src/surfaces/admin/api.ts +4 -0
- package/src/surfaces/admin/components/AdminAction/AdminAction.doc.ts +41 -0
- package/src/surfaces/admin/components/AdminAction/AdminAction.ts +28 -0
- package/src/surfaces/admin/components/AdminAction/examples/basic-adminaction.example.ts +16 -0
- package/src/surfaces/admin/components/AdminBlock/AdminBlock.doc.ts +41 -0
- package/src/surfaces/admin/components/AdminBlock/AdminBlock.ts +19 -0
- package/src/surfaces/admin/components/AdminBlock/examples/basic-adminblock.example.ts +11 -0
- package/src/surfaces/admin/components/BlockStack/BlockStack.doc.ts +42 -0
- package/src/surfaces/admin/components/BlockStack/BlockStack.ts +27 -0
- package/src/surfaces/admin/components/BlockStack/examples/basic-blockstack.example.ts +24 -0
- package/src/surfaces/admin/components/Box/Box.doc.ts +42 -0
- package/src/surfaces/admin/components/Box/Box.ts +13 -0
- package/src/surfaces/admin/components/Box/examples/basic-box.example.ts +11 -0
- package/src/surfaces/admin/components/Button/Button.doc.ts +41 -0
- package/src/surfaces/admin/components/Button/Button.ts +99 -0
- package/src/surfaces/admin/components/Button/README.md +3 -0
- package/src/surfaces/admin/components/Button/examples/basic-button.example.ts +11 -0
- package/src/surfaces/admin/components/Checkbox/Checkbox.doc.ts +42 -0
- package/src/surfaces/admin/components/Checkbox/Checkbox.ts +63 -0
- package/src/surfaces/admin/components/Checkbox/examples/basic-checkbox.example.ts +11 -0
- package/src/surfaces/admin/components/CustomerSegmentationTemplate/CustomerSegmentationTemplate.ts +68 -0
- package/src/surfaces/admin/components/CustomerSegmentationTemplate/examples/CustomerSegmentationTemplate.example.ts +37 -0
- package/src/surfaces/admin/components/Divider/Divider.doc.ts +42 -0
- package/src/surfaces/admin/components/Divider/Divider.ts +14 -0
- package/src/surfaces/admin/components/Divider/README.md +7 -0
- package/src/surfaces/admin/components/Divider/examples/basic-divider.example.ts +17 -0
- package/src/surfaces/admin/components/EmailField/EmailField.doc.ts +41 -0
- package/src/surfaces/admin/components/EmailField/EmailField.ts +22 -0
- package/src/surfaces/admin/components/EmailField/README.md +7 -0
- package/src/surfaces/admin/components/EmailField/examples/basic-emailfield.example.ts +9 -0
- package/src/surfaces/admin/components/Form/Form.doc.ts +41 -0
- package/src/surfaces/admin/components/Form/Form.ts +32 -0
- package/src/surfaces/admin/components/Form/examples/basic-form.example.ts +41 -0
- package/src/surfaces/admin/components/Heading/Heading.doc.ts +42 -0
- package/src/surfaces/admin/components/Heading/Heading.ts +15 -0
- package/src/surfaces/admin/components/Heading/README.md +9 -0
- package/src/surfaces/admin/components/Heading/examples/basic-heading.example.ts +7 -0
- package/src/surfaces/admin/components/HeadingGroup/HeadingGroup.doc.ts +42 -0
- package/src/surfaces/admin/components/HeadingGroup/HeadingGroup.ts +8 -0
- package/src/surfaces/admin/components/HeadingGroup/README.md +5 -0
- package/src/surfaces/admin/components/HeadingGroup/examples/basic-headinggroup.example.ts +20 -0
- package/src/surfaces/admin/components/Icon/Icon.doc.ts +42 -0
- package/src/surfaces/admin/components/Icon/Icon.ts +42 -0
- package/src/surfaces/admin/components/Icon/README.md +3 -0
- package/src/surfaces/admin/components/Icon/examples/basic-icon.example.ts +7 -0
- package/src/surfaces/admin/components/Image/Image.doc.ts +41 -0
- package/src/surfaces/admin/components/Image/Image.ts +120 -0
- package/src/surfaces/admin/components/Image/README.md +20 -0
- package/src/surfaces/admin/components/Image/examples/basic-image.example.ts +10 -0
- package/src/surfaces/admin/components/InlineStack/InlineStack.doc.ts +41 -0
- package/src/surfaces/admin/components/InlineStack/InlineStack.ts +28 -0
- package/src/surfaces/admin/components/InlineStack/examples/basic-inlinestack.example.ts +18 -0
- package/src/surfaces/admin/components/Link/Link.doc.ts +103 -0
- package/src/surfaces/admin/components/Link/Link.ts +63 -0
- package/src/surfaces/admin/components/Link/README.md +11 -0
- package/src/surfaces/admin/components/Link/examples/app-link.example.ts +17 -0
- package/src/surfaces/admin/components/Link/examples/external-link.example.ts +17 -0
- package/src/surfaces/admin/components/Link/examples/relative-link.example.ts +17 -0
- package/src/surfaces/admin/components/Link/examples/shopify-section-link.example.ts +17 -0
- package/src/surfaces/admin/components/NumberField/NumberField.doc.ts +42 -0
- package/src/surfaces/admin/components/NumberField/NumberField.ts +59 -0
- package/src/surfaces/admin/components/NumberField/README.md +7 -0
- package/src/surfaces/admin/components/NumberField/examples/basic-numberfield.example.ts +9 -0
- package/src/surfaces/admin/components/PasswordField/PasswordField.doc.ts +42 -0
- package/src/surfaces/admin/components/PasswordField/PasswordField.ts +22 -0
- package/src/surfaces/admin/components/PasswordField/README.md +7 -0
- package/src/surfaces/admin/components/PasswordField/examples/basic-passwordfield.example.ts +13 -0
- package/src/surfaces/admin/components/Select/README.md +99 -0
- package/src/surfaces/admin/components/Select/Select.doc.ts +42 -0
- package/src/surfaces/admin/components/Select/Select.ts +147 -0
- package/src/surfaces/admin/components/Select/examples/basic-select.example.ts +47 -0
- package/src/surfaces/admin/components/Text/README.md +7 -0
- package/src/surfaces/admin/components/Text/Text.doc.ts +42 -0
- package/src/surfaces/admin/components/Text/Text.ts +124 -0
- package/src/surfaces/admin/components/Text/examples/basic-text.example.ts +14 -0
- package/src/surfaces/admin/components/TextArea/TextArea.doc.ts +42 -0
- package/src/surfaces/admin/components/TextArea/TextArea.ts +24 -0
- package/src/surfaces/admin/components/TextArea/examples/basic-textarea.example.ts +10 -0
- package/src/surfaces/admin/components/TextField/README.md +7 -0
- package/src/surfaces/admin/components/TextField/TextField.doc.ts +42 -0
- package/src/surfaces/admin/components/TextField/TextField.ts +16 -0
- package/src/surfaces/admin/components/TextField/examples/basic-textfield.example.ts +9 -0
- package/src/surfaces/admin/components/URLField/README.md +7 -0
- package/src/surfaces/admin/components/URLField/URLField.doc.ts +41 -0
- package/src/surfaces/admin/components/URLField/URLField.ts +26 -0
- package/src/surfaces/admin/components/URLField/examples/basic-urlfield.example.ts +9 -0
- package/src/surfaces/admin/components/shared/index.ts +664 -0
- package/src/surfaces/admin/components.ts +52 -0
- package/src/surfaces/admin/extension-points.ts +143 -0
- package/src/surfaces/admin/extension.ts +8 -0
- package/src/surfaces/admin/globals.ts +8 -0
- package/src/surfaces/admin/shared.ts +6 -0
- package/src/surfaces/admin.ts +6 -0
- package/src/surfaces/checkout/api/{cart-line-details/render-after.ts → cart-line/cart-line-details.ts} +2 -3
- package/src/surfaces/checkout/api/checkout/checkout.ts +454 -0
- package/src/surfaces/checkout/api/order-status/order-status.ts +28 -0
- package/src/surfaces/checkout/api/payment-method/render.ts +55 -0
- package/src/surfaces/checkout/api/pickup/pickup-locations.ts +8 -0
- package/src/surfaces/checkout/api/pickup/pickup-points.ts +8 -0
- package/src/surfaces/checkout/api/redeemable/render.ts +55 -0
- package/src/surfaces/checkout/api/shared.ts +57 -0
- package/src/surfaces/checkout/api/shipping/shipping-method-details.ts +15 -0
- package/src/surfaces/checkout/api/standard/README.md +100 -1
- package/src/surfaces/checkout/api/standard/standard.ts +644 -483
- package/src/surfaces/checkout/api.ts +93 -35
- package/src/surfaces/checkout/components/Banner/Banner.doc.ts +57 -0
- package/src/surfaces/checkout/components/Banner/Banner.ts +2 -2
- package/src/surfaces/checkout/components/Banner/examples/basic-banner.example.ts +2 -2
- package/src/surfaces/checkout/components/BlockLayout/BlockLayout.doc.ts +50 -0
- package/src/surfaces/checkout/components/BlockLayout/examples/basic-blockLayout.example.ts +2 -2
- package/src/surfaces/checkout/components/BlockLayout/examples/basic-blocklayout.example.ts +16 -0
- package/src/surfaces/checkout/components/BlockSpacer/BlockSpacer.doc.ts +47 -0
- package/src/surfaces/checkout/components/BlockSpacer/BlockSpacer.ts +2 -2
- package/src/surfaces/checkout/components/BlockSpacer/examples/basic-blockspacer.example.ts +2 -2
- package/src/surfaces/checkout/components/BlockStack/BlockStack.doc.ts +60 -0
- package/src/surfaces/checkout/components/BlockStack/BlockStack.ts +20 -2
- package/src/surfaces/checkout/components/BlockStack/examples/basic-blockstack.example.ts +2 -2
- package/src/surfaces/checkout/components/Button/Button.doc.ts +64 -0
- package/src/surfaces/checkout/components/Button/Button.ts +8 -4
- package/src/surfaces/checkout/components/Button/examples/basic-button.example.ts +2 -2
- package/src/surfaces/checkout/components/Checkbox/Checkbox.doc.ts +49 -0
- package/src/surfaces/checkout/components/Checkbox/Checkbox.ts +5 -5
- package/src/surfaces/checkout/components/Checkbox/content/guidelines.md +1 -1
- package/src/surfaces/checkout/components/Checkbox/examples/basic-checkbox.example.ts +2 -2
- package/src/surfaces/checkout/components/Choice/Choice.doc.ts +57 -0
- package/src/surfaces/checkout/components/Choice/Choice.ts +2 -4
- package/src/surfaces/checkout/components/Choice/examples/basic-choice.example.ts +2 -2
- package/src/surfaces/checkout/components/ChoiceList/ChoiceList.doc.ts +63 -0
- package/src/surfaces/checkout/components/ChoiceList/content/guidelines.md +2 -2
- package/src/surfaces/checkout/components/ChoiceList/examples/basic-choicelist.example.ts +2 -2
- package/src/surfaces/checkout/components/DateField/DateField.doc.ts +49 -0
- package/src/surfaces/checkout/components/DateField/DateField.ts +50 -0
- package/src/surfaces/checkout/components/DateField/examples/basic-datefield.example.ts +9 -0
- package/src/surfaces/checkout/components/DatePicker/DatePicker.doc.ts +50 -0
- package/src/surfaces/checkout/components/DatePicker/DatePicker.ts +81 -0
- package/src/surfaces/checkout/components/DatePicker/examples/basic-datepicker.example.ts +9 -0
- package/src/surfaces/checkout/components/Disclosure/Disclosure.doc.ts +61 -0
- package/src/surfaces/checkout/components/Disclosure/Disclosure.ts +46 -0
- package/src/surfaces/checkout/components/Disclosure/examples/basic-disclosure.example.ts +19 -0
- package/src/surfaces/checkout/components/Divider/Divider.doc.ts +41 -0
- package/src/surfaces/checkout/components/Divider/Divider.ts +2 -2
- package/src/surfaces/checkout/components/Divider/examples/basic-divider.example.ts +2 -2
- package/src/surfaces/checkout/components/Form/Form.doc.ts +50 -0
- package/src/surfaces/checkout/components/Form/examples/basic-form.example.ts +2 -2
- package/src/surfaces/checkout/components/Grid/Grid.doc.ts +57 -0
- package/src/surfaces/checkout/components/Grid/Grid.ts +24 -3
- package/src/surfaces/checkout/components/Grid/examples/basic-grid.example.ts +2 -2
- package/src/surfaces/checkout/components/GridItem/GridItem.doc.ts +57 -0
- package/src/surfaces/checkout/components/GridItem/GridItem.ts +24 -3
- package/src/surfaces/checkout/components/GridItem/examples/basic-griditem.example.ts +2 -2
- package/src/surfaces/checkout/components/Heading/Heading.doc.ts +69 -0
- package/src/surfaces/checkout/components/Heading/examples/basic-heading.example.ts +2 -2
- package/src/surfaces/checkout/components/HeadingGroup/HeadingGroup.doc.ts +63 -0
- package/src/surfaces/checkout/components/HeadingGroup/examples/basic-headinggroup.example.ts +2 -2
- package/src/surfaces/checkout/components/Icon/Icon.doc.ts +57 -0
- package/src/surfaces/checkout/components/Icon/Icon.ts +23 -11
- package/src/surfaces/checkout/components/Icon/examples/basic-icon.example.ts +2 -2
- package/src/surfaces/checkout/components/Image/Image.doc.ts +49 -0
- package/src/surfaces/checkout/components/Image/Image.ts +8 -3
- package/src/surfaces/checkout/components/Image/examples/basic-image.example.ts +2 -2
- package/src/surfaces/checkout/components/InlineLayout/InlineLayout.doc.ts +61 -0
- package/src/surfaces/checkout/components/InlineLayout/InlineLayout.ts +8 -1
- package/src/surfaces/checkout/components/InlineLayout/examples/basic-inlineLayout.example.ts +2 -2
- package/src/surfaces/checkout/components/InlineLayout/examples/basic-inlinelayout.example.ts +16 -0
- package/src/surfaces/checkout/components/InlineSpacer/InlineSpacer.doc.ts +41 -0
- package/src/surfaces/checkout/components/InlineSpacer/InlineSpacer.ts +2 -2
- package/src/surfaces/checkout/components/InlineSpacer/examples/basic-inlinespacer.example.ts +2 -2
- package/src/surfaces/checkout/components/InlineStack/InlineStack.doc.ts +50 -0
- package/src/surfaces/checkout/components/InlineStack/InlineStack.ts +23 -1
- package/src/surfaces/checkout/components/InlineStack/examples/basic-inlinestack.example.ts +2 -2
- package/src/surfaces/checkout/components/Link/Link.doc.ts +64 -0
- package/src/surfaces/checkout/components/Link/Link.ts +9 -4
- package/src/surfaces/checkout/components/Link/examples/basic-link.example.ts +2 -2
- package/src/surfaces/checkout/components/List/List.doc.ts +58 -0
- package/src/surfaces/checkout/components/List/List.ts +2 -2
- package/src/surfaces/checkout/components/List/examples/basic-list.example.ts +2 -2
- package/src/surfaces/checkout/components/ListItem/ListItem.doc.ts +42 -0
- package/src/surfaces/checkout/components/ListItem/ListItem.ts +3 -1
- package/src/surfaces/checkout/components/ListItem/examples/basic-listitem.example.ts +2 -2
- package/src/surfaces/checkout/components/Modal/Modal.doc.ts +50 -0
- package/src/surfaces/checkout/components/Modal/Modal.ts +42 -0
- package/src/surfaces/checkout/components/Modal/examples/basic-modal.example.ts +44 -0
- package/src/surfaces/checkout/components/PhoneField/PhoneField.doc.ts +41 -0
- package/src/surfaces/checkout/components/PhoneField/PhoneField.ts +99 -23
- package/src/surfaces/checkout/components/PhoneField/examples/basic-phonefield.example.ts +2 -2
- package/src/surfaces/checkout/components/Popover/Popover.doc.ts +50 -0
- package/src/surfaces/checkout/components/Popover/Popover.ts +45 -0
- package/src/surfaces/checkout/components/Popover/examples/basic-popover.example.ts +30 -0
- package/src/surfaces/checkout/components/Pressable/Pressable.doc.ts +41 -0
- package/src/surfaces/checkout/components/Pressable/Pressable.ts +25 -2
- package/src/surfaces/checkout/components/Pressable/examples/basic-pressable.example.ts +4 -4
- package/src/surfaces/checkout/components/ScrollView/ScrollView.doc.ts +41 -0
- package/src/surfaces/checkout/components/ScrollView/ScrollView.ts +6 -1
- package/src/surfaces/checkout/components/ScrollView/examples/basic-scrollview.example.ts +2 -2
- package/src/surfaces/checkout/components/Select/Select.doc.ts +50 -0
- package/src/surfaces/checkout/components/Select/Select.ts +2 -2
- package/src/surfaces/checkout/components/Select/examples/basic-select.example.ts +2 -2
- package/src/surfaces/checkout/components/SkeletonImage/SkeletonImage.doc.ts +52 -0
- package/src/surfaces/checkout/components/SkeletonImage/SkeletonImage.ts +2 -3
- package/src/surfaces/checkout/components/SkeletonImage/examples/basic-skeletonimage.example.ts +2 -2
- package/src/surfaces/checkout/components/SkeletonText/SkeletonText.doc.ts +52 -0
- package/src/surfaces/checkout/components/SkeletonText/SkeletonText.ts +7 -3
- package/src/surfaces/checkout/components/SkeletonText/examples/basic-skeletontext.example.ts +2 -2
- package/src/surfaces/checkout/components/SkeletonTextBlock/SkeletonTextBlock.doc.ts +41 -0
- package/src/surfaces/checkout/components/SkeletonTextBlock/SkeletonTextBlock.ts +7 -2
- package/src/surfaces/checkout/components/SkeletonTextBlock/examples/basic-skeletontextblock.example.ts +2 -2
- package/src/surfaces/checkout/components/Spinner/Spinner.doc.ts +50 -0
- package/src/surfaces/checkout/components/Spinner/Spinner.ts +2 -2
- package/src/surfaces/checkout/components/Spinner/examples/basic-spinner.example.ts +2 -2
- package/src/surfaces/checkout/components/Stepper/Stepper.doc.ts +50 -0
- package/src/surfaces/checkout/components/Stepper/Stepper.ts +113 -21
- package/src/surfaces/checkout/components/Stepper/examples/basic-stepper.example.ts +2 -2
- package/src/surfaces/checkout/components/Tag/Tag.doc.ts +41 -0
- package/src/surfaces/checkout/components/Tag/Tag.ts +4 -4
- package/src/surfaces/checkout/components/Tag/examples/basic-tag.example.ts +2 -2
- package/src/surfaces/checkout/components/Text/Text.doc.ts +76 -0
- package/src/surfaces/checkout/components/Text/Text.ts +2 -4
- package/src/surfaces/checkout/components/Text/content/guidelines.md +1 -1
- package/src/surfaces/checkout/components/Text/examples/basic-text.example.ts +2 -2
- package/src/surfaces/checkout/components/TextBlock/TextBlock.doc.ts +76 -0
- package/src/surfaces/checkout/components/TextBlock/TextBlock.ts +9 -9
- package/src/surfaces/checkout/components/TextBlock/content/guidelines.md +1 -1
- package/src/surfaces/checkout/components/TextBlock/examples/basic-textblock.example.ts +6 -2
- package/src/surfaces/checkout/components/TextField/TextField.doc.ts +49 -0
- package/src/surfaces/checkout/components/TextField/TextField.ts +2 -2
- package/src/surfaces/checkout/components/TextField/examples/basic-textfield.example.ts +2 -2
- package/src/surfaces/checkout/components/Tooltip/Tooltip.doc.ts +50 -0
- package/src/surfaces/checkout/components/Tooltip/Tooltip.ts +3 -1
- package/src/surfaces/checkout/components/Tooltip/examples/basic-tooltip.example.ts +2 -2
- package/src/surfaces/checkout/components/View/View.doc.ts +50 -0
- package/src/surfaces/checkout/components/View/View.ts +17 -18
- package/src/surfaces/checkout/components/View/examples/basic-view.example.ts +2 -2
- package/src/surfaces/checkout/components/shared.ts +73 -18
- package/src/surfaces/checkout/components.ts +41 -16
- package/src/surfaces/checkout/extension-points.ts +245 -52
- package/src/surfaces/checkout/extension.ts +62 -3
- package/src/surfaces/checkout/globals.ts +1 -1
- package/src/surfaces/checkout/helper.docs.ts +103 -0
- package/src/surfaces/checkout/shared.ts +3 -11
- package/src/surfaces/checkout/style/examples/.eslintrc.js +8 -0
- package/src/surfaces/checkout/style/examples/defaultstyle.example.tsx +9 -0
- package/src/surfaces/checkout/style/examples/simplecondition.example.tsx +9 -0
- package/src/surfaces/checkout/style/examples/style.example.ts +18 -0
- package/src/surfaces/checkout/style/examples/style.example.tsx +16 -0
- package/src/surfaces/checkout/style/index.ts +16 -0
- package/src/surfaces/checkout/style/memoize.ts +2 -0
- package/src/surfaces/checkout/style/style.doc.ts +166 -0
- package/src/surfaces/checkout/style/style.ts +5 -0
- package/src/surfaces/checkout/style/types.ts +5 -0
- package/src/utilities/registration.ts +59 -7
- package/build/ts/surfaces/checkout/api/cart-line-details/render-after.d.ts +0 -9
- package/build/ts/surfaces/checkout/api/cart-line-details/render-after.d.ts.map +0 -1
- package/src/surfaces/checkout/api/cart-line-details/README.md +0 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { createRemoteComponent } from '@remote-ui/core';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Modals are a special type of overlay that shift focus towards a specific action/set of information
|
|
5
|
+
* before the main flow can proceed.
|
|
6
|
+
* They must be specified inside the `overlay` prop of an activator component (`Button`, `Link` or `Pressable`).
|
|
7
|
+
*
|
|
8
|
+
* The library takes care of applying the WAI-ARIA Dialog pattern automatically for the activator
|
|
9
|
+
* and the modal content.
|
|
10
|
+
*/
|
|
11
|
+
const Modal = createRemoteComponent('Modal');
|
|
12
|
+
|
|
13
|
+
export { Modal };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { createRemoteComponent } from '@remote-ui/core';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Popovers are similar to tooltips. They are small overlays that open on demand after a user interaction.
|
|
5
|
+
* The difference is that the popover can contain more content, without cluttering the page.
|
|
6
|
+
* They must be specified inside the `overlay` prop of an activator component (`Button`, `Link` or `Pressable`).
|
|
7
|
+
*
|
|
8
|
+
* The library takes care of applying the WAI-ARIA Popover Widget pattern automatically for the activator
|
|
9
|
+
* and the popover content.
|
|
10
|
+
*/
|
|
11
|
+
const Popover = createRemoteComponent('Popover');
|
|
12
|
+
|
|
13
|
+
export { Popover };
|
|
@@ -4,9 +4,6 @@ import { createRemoteComponent } from '@remote-ui/core';
|
|
|
4
4
|
* View is a generic container component. Its contents will always be their
|
|
5
5
|
* “natural” size, so this component can be useful in layout components (like `Grid`,
|
|
6
6
|
* `BlockStack`, `InlineStack`) that would otherwise stretch their children to fit.
|
|
7
|
-
*
|
|
8
|
-
* Note: View’s box model related properties like `padding`, `border`, `borderRadius`, and `borderColor` are implemented as
|
|
9
|
-
* [CSS Logical Properties](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties/Basic_concepts).
|
|
10
7
|
*/
|
|
11
8
|
const View = createRemoteComponent('View');
|
|
12
9
|
|
|
@@ -1,6 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Registers your UI Extension to run for the selected extension point.
|
|
3
|
+
*
|
|
4
|
+
* @param target The extension point you are registering for.
|
|
5
|
+
*
|
|
6
|
+
* @param implementation The function that will be called when Checkout begins rendering
|
|
7
|
+
* your extension. This function is called with the API checkout provided to your
|
|
8
|
+
* extension.
|
|
9
|
+
*/
|
|
3
10
|
const extension = createExtensionRegistrationFunction();
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Registers your UI Extension to run for the selected extension point.
|
|
14
|
+
*
|
|
15
|
+
* @param target The extension point you are registering for.
|
|
16
|
+
*
|
|
17
|
+
* @param implementation The function that will be called when Checkout begins rendering
|
|
18
|
+
* your extension. This function is called with the API checkout provided to your
|
|
19
|
+
* extension.
|
|
20
|
+
*/
|
|
4
21
|
const extend = extension;
|
|
22
|
+
/**
|
|
23
|
+
* This function takes an extension function that is expecting a `RemoteRoot` as its
|
|
24
|
+
* first argument, and returns a new function that accepts a `RemoteChannel` instead.
|
|
25
|
+
* This is a convenience that allows the raw UI extension API to only expose the simpler
|
|
26
|
+
* `RemoteChannel` type, while allowing the extension to use the more powerful `RemoteRoot`,
|
|
27
|
+
* provided by a version of `@remote-ui/core` that the extension controls.
|
|
28
|
+
*/
|
|
29
|
+
function createExtensionRegistrationFunction() {
|
|
30
|
+
const extensionWrapper = (target, implementation) => {
|
|
31
|
+
var _shopify;
|
|
32
|
+
(_shopify = globalThis.shopify) === null || _shopify === void 0 ? void 0 : _shopify.extend(target, implementation);
|
|
33
|
+
return implementation;
|
|
34
|
+
};
|
|
35
|
+
return extensionWrapper;
|
|
36
|
+
}
|
|
5
37
|
|
|
6
|
-
export { extend, extension };
|
|
38
|
+
export { createExtensionRegistrationFunction, extend, extension };
|
|
@@ -22,7 +22,6 @@ const when = function when(conditions, value) {
|
|
|
22
22
|
};
|
|
23
23
|
return createChainableConditionalStyle(config);
|
|
24
24
|
};
|
|
25
|
-
|
|
26
25
|
/**
|
|
27
26
|
* Style is a helper for authoring conditional values for prop styles.
|
|
28
27
|
* Write complex conditional styles based on one or more conditions (viewport
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { extend, extension } from './checkout/extension.esnext';
|
|
1
|
+
export { createExtensionRegistrationFunction, extend, extension } from './checkout/extension.esnext';
|
|
2
2
|
export { Banner } from './checkout/components/Banner/Banner.esnext';
|
|
3
3
|
export { BlockLayout } from './checkout/components/BlockLayout/BlockLayout.esnext';
|
|
4
4
|
export { BlockSpacer } from './checkout/components/BlockSpacer/BlockSpacer.esnext';
|
|
@@ -7,6 +7,9 @@ export { Button } from './checkout/components/Button/Button.esnext';
|
|
|
7
7
|
export { Checkbox } from './checkout/components/Checkbox/Checkbox.esnext';
|
|
8
8
|
export { Choice } from './checkout/components/Choice/Choice.esnext';
|
|
9
9
|
export { ChoiceList } from './checkout/components/ChoiceList/ChoiceList.esnext';
|
|
10
|
+
export { DatePicker } from './checkout/components/DatePicker/DatePicker.esnext';
|
|
11
|
+
export { DateField } from './checkout/components/DateField/DateField.esnext';
|
|
12
|
+
export { Disclosure } from './checkout/components/Disclosure/Disclosure.esnext';
|
|
10
13
|
export { Divider } from './checkout/components/Divider/Divider.esnext';
|
|
11
14
|
export { Form } from './checkout/components/Form/Form.esnext';
|
|
12
15
|
export { Grid } from './checkout/components/Grid/Grid.esnext';
|
|
@@ -21,8 +24,10 @@ export { InlineSpacer } from './checkout/components/InlineSpacer/InlineSpacer.es
|
|
|
21
24
|
export { Link } from './checkout/components/Link/Link.esnext';
|
|
22
25
|
export { List } from './checkout/components/List/List.esnext';
|
|
23
26
|
export { ListItem } from './checkout/components/ListItem/ListItem.esnext';
|
|
27
|
+
export { Modal } from './checkout/components/Modal/Modal.esnext';
|
|
24
28
|
export { PhoneField } from './checkout/components/PhoneField/PhoneField.esnext';
|
|
25
29
|
export { Pressable } from './checkout/components/Pressable/Pressable.esnext';
|
|
30
|
+
export { Popover } from './checkout/components/Popover/Popover.esnext';
|
|
26
31
|
export { ScrollView } from './checkout/components/ScrollView/ScrollView.esnext';
|
|
27
32
|
export { Select } from './checkout/components/Select/Select.esnext';
|
|
28
33
|
export { SkeletonImage } from './checkout/components/SkeletonImage/SkeletonImage.esnext';
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { createRemoteRoot } from '@remote-ui/core';
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
4
|
* This function takes an extension function that is expecting a `RemoteRoot` as its
|
|
3
5
|
* first argument, and returns a new function that accepts a `RemoteChannel` instead.
|
|
@@ -8,8 +10,30 @@
|
|
|
8
10
|
function createExtensionRegistrationFunction() {
|
|
9
11
|
const extensionWrapper = (target, implementation) => {
|
|
10
12
|
var _shopify;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
+
async function extension(...args) {
|
|
14
|
+
// Rendering extensions have two arguments. Non-rendering extensions don’t have
|
|
15
|
+
// a `RemoteChannel` that needs to be normalized, so we can just pass the arguments
|
|
16
|
+
// through.
|
|
17
|
+
if (args.length === 1) {
|
|
18
|
+
return implementation(...args);
|
|
19
|
+
}
|
|
20
|
+
const [{
|
|
21
|
+
channel,
|
|
22
|
+
components
|
|
23
|
+
}, api] = args;
|
|
24
|
+
const root = createRemoteRoot(channel, {
|
|
25
|
+
components,
|
|
26
|
+
strict: true
|
|
27
|
+
});
|
|
28
|
+
let renderResult = implementation(root, api);
|
|
29
|
+
if (typeof renderResult === 'object' && renderResult != null && 'then' in renderResult) {
|
|
30
|
+
renderResult = await renderResult;
|
|
31
|
+
}
|
|
32
|
+
root.mount();
|
|
33
|
+
return renderResult;
|
|
34
|
+
}
|
|
35
|
+
(_shopify = globalThis.shopify) === null || _shopify === void 0 ? void 0 : _shopify.extend(target, extension);
|
|
36
|
+
return extension;
|
|
13
37
|
};
|
|
14
38
|
return extensionWrapper;
|
|
15
39
|
}
|
package/build/ts/api.d.ts
CHANGED
|
@@ -1,4 +1,66 @@
|
|
|
1
1
|
export interface StandardApi {
|
|
2
2
|
readonly extensionPoint: string;
|
|
3
3
|
}
|
|
4
|
+
/**
|
|
5
|
+
* This defines the i18n.translate() signature.
|
|
6
|
+
*/
|
|
7
|
+
export interface I18nTranslate {
|
|
8
|
+
/**
|
|
9
|
+
* This returns a translated string matching a key in a locale file.
|
|
10
|
+
*
|
|
11
|
+
* @example translate("banner.title")
|
|
12
|
+
*/
|
|
13
|
+
<ReplacementType = string>(key: string, options?: {
|
|
14
|
+
[placeholderKey: string]: ReplacementType | string | number;
|
|
15
|
+
}): ReplacementType extends string | number ? string : (string | ReplacementType)[];
|
|
16
|
+
}
|
|
17
|
+
export interface I18n {
|
|
18
|
+
/**
|
|
19
|
+
* Returns a localized number.
|
|
20
|
+
*
|
|
21
|
+
* This function behaves like the standard `Intl.NumberFormat()`
|
|
22
|
+
* with a style of `decimal` applied. It uses the buyer's locale by default.
|
|
23
|
+
*
|
|
24
|
+
* @param options.inExtensionLocale - if true, use the extension's locale
|
|
25
|
+
*/
|
|
26
|
+
formatNumber: (number: number | bigint, options?: {
|
|
27
|
+
inExtensionLocale?: boolean;
|
|
28
|
+
} & Intl.NumberFormatOptions) => string;
|
|
29
|
+
/**
|
|
30
|
+
* Returns a localized currency value.
|
|
31
|
+
*
|
|
32
|
+
* This function behaves like the standard `Intl.NumberFormat()`
|
|
33
|
+
* with a style of `currency` applied. It uses the buyer's locale by default.
|
|
34
|
+
*
|
|
35
|
+
* @param options.inExtensionLocale - if true, use the extension's locale
|
|
36
|
+
*/
|
|
37
|
+
formatCurrency: (number: number | bigint, options?: {
|
|
38
|
+
inExtensionLocale?: boolean;
|
|
39
|
+
} & Intl.NumberFormatOptions) => string;
|
|
40
|
+
/**
|
|
41
|
+
* Returns a localized date value.
|
|
42
|
+
*
|
|
43
|
+
* This function behaves like the standard `Intl.DateTimeFormatOptions()` and uses
|
|
44
|
+
* the buyer's locale by default. Formatting options can be passed in as
|
|
45
|
+
* options.
|
|
46
|
+
*
|
|
47
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat0
|
|
48
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat#using_options
|
|
49
|
+
*
|
|
50
|
+
* @param options.inExtensionLocale - if true, use the extension's locale
|
|
51
|
+
*/
|
|
52
|
+
formatDate: (date: Date, options?: {
|
|
53
|
+
inExtensionLocale?: boolean;
|
|
54
|
+
} & Intl.DateTimeFormatOptions) => string;
|
|
55
|
+
/**
|
|
56
|
+
* Returns translated content in the buyer's locale,
|
|
57
|
+
* as supported by the extension.
|
|
58
|
+
*
|
|
59
|
+
* - `options.count` is a special numeric value used in pluralization.
|
|
60
|
+
* - The other option keys and values are treated as replacements for interpolation.
|
|
61
|
+
* - If the replacements are all primitives, then `translate()` returns a single string.
|
|
62
|
+
* - If replacements contain UI components, then `translate()` returns an array of elements.
|
|
63
|
+
*/
|
|
64
|
+
translate: I18nTranslate;
|
|
65
|
+
}
|
|
4
66
|
//# sourceMappingURL=api.d.ts.map
|
package/build/ts/api.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/api.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;CACjC"}
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/api.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;CACjC;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;;;OAIG;IACH,CAAC,eAAe,GAAG,MAAM,EACvB,GAAG,EAAE,MAAM,EACX,OAAO,CAAC,EAAE;QAAC,CAAC,cAAc,EAAE,MAAM,GAAG,eAAe,GAAG,MAAM,GAAG,MAAM,CAAA;KAAC,GACtE,eAAe,SAAS,MAAM,GAAG,MAAM,GACtC,MAAM,GACN,CAAC,MAAM,GAAG,eAAe,CAAC,EAAE,CAAC;CAClC;AAED,MAAM,WAAW,IAAI;IACnB;;;;;;;OAOG;IACH,YAAY,EAAE,CACZ,MAAM,EAAE,MAAM,GAAG,MAAM,EACvB,OAAO,CAAC,EAAE;QAAC,iBAAiB,CAAC,EAAE,OAAO,CAAA;KAAC,GAAG,IAAI,CAAC,mBAAmB,KAC/D,MAAM,CAAC;IAEZ;;;;;;;OAOG;IACH,cAAc,EAAE,CACd,MAAM,EAAE,MAAM,GAAG,MAAM,EACvB,OAAO,CAAC,EAAE;QAAC,iBAAiB,CAAC,EAAE,OAAO,CAAA;KAAC,GAAG,IAAI,CAAC,mBAAmB,KAC/D,MAAM,CAAC;IAEZ;;;;;;;;;;;OAWG;IACH,UAAU,EAAE,CACV,IAAI,EAAE,IAAI,EACV,OAAO,CAAC,EAAE;QAAC,iBAAiB,CAAC,EAAE,OAAO,CAAA;KAAC,GAAG,IAAI,CAAC,qBAAqB,KACjE,MAAM,CAAC;IAEZ;;;;;;;;OAQG;IACH,SAAS,EAAE,aAAa,CAAC;CAC1B"}
|
package/build/ts/extension.d.ts
CHANGED
|
@@ -1,8 +1,15 @@
|
|
|
1
|
-
import type { RemoteRoot, RemoteComponentType } from '@remote-ui/core';
|
|
1
|
+
import type { RemoteRoot, RemoteChannel, RemoteComponentType } from '@remote-ui/core';
|
|
2
2
|
export interface Extension<Api, Result> {
|
|
3
3
|
(api: Api): Result;
|
|
4
4
|
}
|
|
5
|
+
export interface RenderExtensionConnection<AllowedComponents extends RemoteComponentType<string, any, any> = RemoteComponentType<any, any, any>> {
|
|
6
|
+
readonly channel: RemoteChannel;
|
|
7
|
+
readonly components: AllowedComponents;
|
|
8
|
+
}
|
|
5
9
|
export interface RenderExtension<Api, AllowedComponents extends RemoteComponentType<string, any, any> = RemoteComponentType<any, any, any>> {
|
|
10
|
+
(connection: RenderExtensionConnection<AllowedComponents>, api: Api): void | Promise<void>;
|
|
11
|
+
}
|
|
12
|
+
export interface RenderExtensionWithRemoteRoot<Api, AllowedComponents extends RemoteComponentType<string, any, any> = RemoteComponentType<any, any, any>> {
|
|
6
13
|
(root: RemoteRoot<AllowedComponents, AllowedComponents>, api: Api): void | Promise<void>;
|
|
7
14
|
}
|
|
8
15
|
//# sourceMappingURL=extension.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extension.d.ts","sourceRoot":"","sources":["../../src/extension.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"extension.d.ts","sourceRoot":"","sources":["../../src/extension.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,aAAa,EACb,mBAAmB,EACpB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,WAAW,SAAS,CAAC,GAAG,EAAE,MAAM;IACpC,CAAC,GAAG,EAAE,GAAG,GAAG,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,yBAAyB,CACxC,iBAAiB,SAAS,mBAAmB,CAC3C,MAAM,EACN,GAAG,EACH,GAAG,CACJ,GAAG,mBAAmB,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;IAEtC,QAAQ,CAAC,OAAO,EAAE,aAAa,CAAC;IAChC,QAAQ,CAAC,UAAU,EAAE,iBAAiB,CAAC;CACxC;AAED,MAAM,WAAW,eAAe,CAC9B,GAAG,EACH,iBAAiB,SAAS,mBAAmB,CAC3C,MAAM,EACN,GAAG,EACH,GAAG,CACJ,GAAG,mBAAmB,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;IAEtC,CACE,UAAU,EAAE,yBAAyB,CAAC,iBAAiB,CAAC,EACxD,GAAG,EAAE,GAAG,GACP,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACzB;AAED,MAAM,WAAW,6BAA6B,CAC5C,GAAG,EACH,iBAAiB,SAAS,mBAAmB,CAC3C,MAAM,EACN,GAAG,EACH,GAAG,CACJ,GAAG,mBAAmB,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;IAEtC,CACE,IAAI,EAAE,UAAU,CAAC,iBAAiB,EAAE,iBAAiB,CAAC,EACtD,GAAG,EAAE,GAAG,GACP,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACzB"}
|
package/build/ts/index.d.ts
CHANGED
package/build/ts/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,aAAa,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { RemoteComponentType } from '@remote-ui/core';
|
|
2
|
+
export type ComponentsBuilder<ComponentTypes> = {
|
|
3
|
+
[K in keyof ComponentTypes]: ComponentTypes[K] extends RemoteComponentType<any, any> ? ComponentTypes[K] : never;
|
|
4
|
+
};
|
|
5
|
+
export type AnyComponentBuilder<ComponentTypes> = ComponentsBuilder<ComponentTypes>[keyof ComponentsBuilder<ComponentTypes>];
|
|
6
|
+
//# sourceMappingURL=shared.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../src/shared.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,iBAAiB,CAAC;AAEzD,MAAM,MAAM,iBAAiB,CAAC,cAAc,IAAI;KAC7C,CAAC,IAAI,MAAM,cAAc,GAAG,cAAc,CAAC,CAAC,CAAC,SAAS,mBAAmB,CACxE,GAAG,EACH,GAAG,CACJ,GACG,cAAc,CAAC,CAAC,CAAC,GACjB,KAAK;CACV,CAAC;AAEF,MAAM,MAAM,mBAAmB,CAAC,cAAc,IAC5C,iBAAiB,CAAC,cAAc,CAAC,CAAC,MAAM,iBAAiB,CAAC,cAAc,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { StandardApi } from '../standard/standard';
|
|
2
|
+
import type { I18n } from '../../../../api';
|
|
3
|
+
import type { ExtensionPoint as AnyExtensionPoint } from '../../extension-points';
|
|
4
|
+
export interface ActionExtensionApi<ExtensionPoint extends AnyExtensionPoint> extends StandardApi<ExtensionPoint> {
|
|
5
|
+
i18n: I18n;
|
|
6
|
+
/**
|
|
7
|
+
* Closes the extension. This is only available for action extensions.
|
|
8
|
+
*/
|
|
9
|
+
close: () => void;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=action.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/api/action/action.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,sBAAsB,CAAC;AACtD,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,iBAAiB,CAAC;AAC1C,OAAO,KAAK,EAAC,cAAc,IAAI,iBAAiB,EAAC,MAAM,wBAAwB,CAAC;AAEhF,MAAM,WAAW,kBAAkB,CAAC,cAAc,SAAS,iBAAiB,CAC1E,SAAQ,WAAW,CAAC,cAAc,CAAC;IAEnC,IAAI,EAAE,IAAI,CAAC;IAEX;;OAEG;IACH,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/api/action/action.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,6BAcX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { StandardApi } from '../standard/standard';
|
|
2
|
+
import type { I18n } from '../../../../api';
|
|
3
|
+
import type { ExtensionPoint as AnyExtensionPoint } from '../../extension-points';
|
|
4
|
+
type CustomerSegmentationFeature = 'productsPurchasedByTags' | 'aggregateFilters';
|
|
5
|
+
export interface CustomerSegmentationTemplateApi<ExtensionPoint extends AnyExtensionPoint> extends StandardApi<ExtensionPoint> {
|
|
6
|
+
i18n: I18n;
|
|
7
|
+
/** @private */
|
|
8
|
+
__enabledFeatures: CustomerSegmentationFeature[];
|
|
9
|
+
}
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=customer-segmentation-template.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customer-segmentation-template.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/api/customer-segmentation-template/customer-segmentation-template.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,sBAAsB,CAAC;AACtD,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,iBAAiB,CAAC;AAC1C,OAAO,KAAK,EAAC,cAAc,IAAI,iBAAiB,EAAC,MAAM,wBAAwB,CAAC;AAGhF,KAAK,2BAA2B,GAE5B,yBAAyB,GAEzB,kBAAkB,CAAC;AAEvB,MAAM,WAAW,+BAA+B,CAC9C,cAAc,SAAS,iBAAiB,CACxC,SAAQ,WAAW,CAAC,cAAc,CAAC;IAEnC,IAAI,EAAE,IAAI,CAAC;IACX,eAAe;IACf,iBAAiB,EAAE,2BAA2B,EAAE,CAAC;CAClD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extension-targets.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/api/extension-targets/extension-targets.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,6BAeX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { StandardApi as BaseStandardApi, I18n } from '../../../../api';
|
|
2
|
+
import type { ExtensionPoint as AnyExtensionPoint } from '../../extension-points';
|
|
3
|
+
/**
|
|
4
|
+
* The following APIs are provided to all extension points.
|
|
5
|
+
*/
|
|
6
|
+
export interface StandardApi<ExtensionPoint extends AnyExtensionPoint> extends BaseStandardApi {
|
|
7
|
+
/**
|
|
8
|
+
* The identifier of the running extension point.
|
|
9
|
+
*/
|
|
10
|
+
extensionPoint: ExtensionPoint;
|
|
11
|
+
i18n: I18n;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=standard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"standard.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/api/standard/standard.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,IAAI,eAAe,EAAE,IAAI,EAAC,MAAM,iBAAiB,CAAC;AAC1E,OAAO,KAAK,EAAC,cAAc,IAAI,iBAAiB,EAAC,MAAM,wBAAwB,CAAC;AAEhF;;GAEG;AACH,MAAM,WAAW,WAAW,CAAC,cAAc,SAAS,iBAAiB,CACnE,SAAQ,eAAe;IACvB;;OAEG;IACH,cAAc,EAAE,cAAc,CAAC;IAC/B,IAAI,EAAE,IAAI,CAAC;CACZ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"standard.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/api/standard/standard.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,6BAeX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type { I18n, I18nTranslate } from '../../api';
|
|
2
|
+
export type { StandardApi } from './api/standard/standard';
|
|
3
|
+
export type { CustomerSegmentationTemplateApi } from './api/customer-segmentation-template/customer-segmentation-template';
|
|
4
|
+
export type { ActionExtensionApi } from './api/action/action';
|
|
5
|
+
//# sourceMappingURL=api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../src/surfaces/admin/api.ts"],"names":[],"mappings":"AAAA,YAAY,EAAC,IAAI,EAAE,aAAa,EAAC,MAAM,WAAW,CAAC;AACnD,YAAY,EAAC,WAAW,EAAC,MAAM,yBAAyB,CAAC;AACzD,YAAY,EAAC,+BAA+B,EAAC,MAAM,qEAAqE,CAAC;AACzH,YAAY,EAAC,kBAAkB,EAAC,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { RemoteFragment } from '@remote-ui/core';
|
|
2
|
+
export interface AdminActionProps {
|
|
3
|
+
/**
|
|
4
|
+
* Sets the title of the Action container.
|
|
5
|
+
*/
|
|
6
|
+
title?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Sets the Primary action button of the container. This component must a button component.
|
|
9
|
+
*/
|
|
10
|
+
primaryAction?: RemoteFragment;
|
|
11
|
+
/**
|
|
12
|
+
* Sets the Secondary action button of the container. This component must a button component.
|
|
13
|
+
*/
|
|
14
|
+
secondaryAction?: RemoteFragment;
|
|
15
|
+
children: any;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* AdminAction is a component used by Admin Action extensions to configure a primary and secondary action and title.
|
|
19
|
+
*/
|
|
20
|
+
export declare const AdminAction: "AdminAction" & {
|
|
21
|
+
readonly type?: "AdminAction" | undefined;
|
|
22
|
+
readonly props?: AdminActionProps | undefined;
|
|
23
|
+
readonly children?: true | undefined;
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=AdminAction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AdminAction.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/AdminAction/AdminAction.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,iBAAiB,CAAC;AAEpD,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,aAAa,CAAC,EAAE,cAAc,CAAC;IAE/B;;OAEG;IACH,eAAe,CAAC,EAAE,cAAc,CAAC;IAEjC,QAAQ,EAAE,GAAG,CAAC;CACf;AACD;;GAEG;AACH,eAAO,MAAM,WAAW;;;;CAGR,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AdminAction.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/AdminAction/AdminAction.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,6BAoCX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface AdminBlockProps {
|
|
2
|
+
/**
|
|
3
|
+
* The title to display at the top of the app block. If not provided, the name of the extension will be used.
|
|
4
|
+
*/
|
|
5
|
+
title?: string;
|
|
6
|
+
/**
|
|
7
|
+
* The summary to display when the app block is collapsed. If not provided, no summary will be displayed. No summary is shown when the app block is expanded.
|
|
8
|
+
*/
|
|
9
|
+
summary?: string;
|
|
10
|
+
children: any;
|
|
11
|
+
}
|
|
12
|
+
export declare const AdminBlock: "AdminBlock" & {
|
|
13
|
+
readonly type?: "AdminBlock" | undefined;
|
|
14
|
+
readonly props?: AdminBlockProps | undefined;
|
|
15
|
+
readonly children?: true | undefined;
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=AdminBlock.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AdminBlock.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/AdminBlock/AdminBlock.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,QAAQ,EAAE,GAAG,CAAC;CACf;AAED,eAAO,MAAM,UAAU;;;;CAEtB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AdminBlock.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/AdminBlock/AdminBlock.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,6BAoCX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AccessibilityRoleProps, GlobalProps, SizingProps, PaddingProps, GapProps } from '../shared';
|
|
2
|
+
export interface BlockStackProps extends AccessibilityRoleProps, Pick<GapProps, 'gap' | 'blockGap' | 'rowGap'>, GlobalProps, SizingProps, PaddingProps {
|
|
3
|
+
/**
|
|
4
|
+
* A label that describes the purpose or contents of the element. When set,
|
|
5
|
+
* it will be announced to buyers using assistive technologies and will
|
|
6
|
+
* provide them with more context.
|
|
7
|
+
*/
|
|
8
|
+
accessibilityLabel?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const BlockStack: "BlockStack" & {
|
|
11
|
+
readonly type?: "BlockStack" | undefined;
|
|
12
|
+
readonly props?: BlockStackProps | undefined;
|
|
13
|
+
readonly children?: true | undefined;
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=BlockStack.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BlockStack.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/BlockStack/BlockStack.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,sBAAsB,EACtB,WAAW,EACX,WAAW,EACX,YAAY,EACZ,QAAQ,EACT,MAAM,WAAW,CAAC;AAEnB,MAAM,WAAW,eACf,SAAQ,sBAAsB,EAC5B,IAAI,CAAC,QAAQ,EAAE,KAAK,GAAG,UAAU,GAAG,QAAQ,CAAC,EAC7C,WAAW,EACX,WAAW,EACX,YAAY;IACd;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,eAAO,MAAM,UAAU;;;;CAEtB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BlockStack.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/BlockStack/BlockStack.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,6BAqCX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { AccessibilityRoleProps, PaddingProps, SizingProps } from '../shared';
|
|
2
|
+
export interface BoxProps extends AccessibilityRoleProps, SizingProps, PaddingProps {
|
|
3
|
+
}
|
|
4
|
+
export declare const Box: "Box" & {
|
|
5
|
+
readonly type?: "Box" | undefined;
|
|
6
|
+
readonly props?: BoxProps | undefined;
|
|
7
|
+
readonly children?: true | undefined;
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=Box.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/Box/Box.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,sBAAsB,EACtB,YAAY,EACZ,WAAW,EACZ,MAAM,WAAW,CAAC;AAEnB,MAAM,WAAW,QACf,SAAQ,sBAAsB,EAC5B,WAAW,EACX,YAAY;CAAG;AAEnB,eAAO,MAAM,GAAG;;;;CAAgD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Box.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/Box/Box.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,6BAqCX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import type { AccessibilityRole, AnchorProps } from '../shared';
|
|
2
|
+
export type ButtonProps = ButtonBaseProps | ButtonAnchorProps;
|
|
3
|
+
interface CommonProps {
|
|
4
|
+
/**
|
|
5
|
+
* A unique identifier for the button.
|
|
6
|
+
*/
|
|
7
|
+
id?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Disables the button, disallowing any interaction.
|
|
10
|
+
*/
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Changes the visual appearance of the Button.
|
|
14
|
+
*/
|
|
15
|
+
variant?: 'primary' | 'secondary' | 'tertiary';
|
|
16
|
+
/**
|
|
17
|
+
* Sets the color treatment of the Button.
|
|
18
|
+
*/
|
|
19
|
+
tone?: 'default' | 'critical';
|
|
20
|
+
/**
|
|
21
|
+
* Indicate the text language. Useful when the text is in a different language than the rest of the page.
|
|
22
|
+
* It will allow assistive technologies such as screen readers to invoke the correct pronunciation.
|
|
23
|
+
* [Reference of values](https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry) ("subtag" label)
|
|
24
|
+
*/
|
|
25
|
+
language?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Alias for `language`
|
|
28
|
+
*/
|
|
29
|
+
lang?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Callback when a link is pressed. If `href` is set,
|
|
32
|
+
* it will execute the callback and then navigate to the location specified by `href`.
|
|
33
|
+
*/
|
|
34
|
+
onClick?(): void;
|
|
35
|
+
/**
|
|
36
|
+
* Alias for `onClick`
|
|
37
|
+
* Callback when a button is pressed. If `href` is set,
|
|
38
|
+
* it will execute the callback and then navigate to the location specified by `href`.
|
|
39
|
+
*/
|
|
40
|
+
onPress?(): void;
|
|
41
|
+
/**
|
|
42
|
+
* Callback when focus is removed.
|
|
43
|
+
*/
|
|
44
|
+
onBlur?(): void;
|
|
45
|
+
/**
|
|
46
|
+
* Callback when input is focused.
|
|
47
|
+
*/
|
|
48
|
+
onFocus?(): void;
|
|
49
|
+
}
|
|
50
|
+
interface ButtonBaseProps extends CommonProps {
|
|
51
|
+
/**
|
|
52
|
+
* Sets the semantic meaning of the component’s content. When set,
|
|
53
|
+
* the role will be used by assistive technologies to help users
|
|
54
|
+
* navigate the page.
|
|
55
|
+
*/
|
|
56
|
+
accessibilityRole?: Extract<AccessibilityRole, 'submit' | 'button' | 'reset'>;
|
|
57
|
+
}
|
|
58
|
+
interface ButtonAnchorProps extends CommonProps {
|
|
59
|
+
/**
|
|
60
|
+
* The URL to link to.
|
|
61
|
+
* If set, it will navigate to the location specified by `href` after executing the `onClick` callback.
|
|
62
|
+
*/
|
|
63
|
+
href: AnchorProps['href'];
|
|
64
|
+
/**
|
|
65
|
+
* Alias for `href`
|
|
66
|
+
* If set, it will navigate to the location specified by `to` after executing the `onClick` callback.
|
|
67
|
+
*/
|
|
68
|
+
to?: AnchorProps['href'];
|
|
69
|
+
/**
|
|
70
|
+
* Callback when a link is pressed. If `href` is set,
|
|
71
|
+
* it will execute the callback and then navigate to the location specified by `href`.
|
|
72
|
+
*/
|
|
73
|
+
onClick?: AnchorProps['onClick'];
|
|
74
|
+
/**
|
|
75
|
+
* Alias for `onClick`
|
|
76
|
+
* Callback when a link is pressed. If `href` is set,
|
|
77
|
+
* it will execute the callback and then navigate to the location specified by `href`.
|
|
78
|
+
*/
|
|
79
|
+
onPress?: AnchorProps['onClick'];
|
|
80
|
+
}
|
|
81
|
+
export declare const Button: "Button" & {
|
|
82
|
+
readonly type?: "Button" | undefined;
|
|
83
|
+
readonly props?: ButtonProps | undefined;
|
|
84
|
+
readonly children?: true | undefined;
|
|
85
|
+
};
|
|
86
|
+
export {};
|
|
87
|
+
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/Button/Button.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,iBAAiB,EAAE,WAAW,EAAC,MAAM,WAAW,CAAC;AAE9D,MAAM,MAAM,WAAW,GAAG,eAAe,GAAG,iBAAiB,CAAC;AAE9D,UAAU,WAAW;IACnB;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,UAAU,CAAC;IAE/C;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,GAAG,UAAU,CAAC;IAE9B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,OAAO,CAAC,IAAI,IAAI,CAAC;IAEjB;;;;OAIG;IACH,OAAO,CAAC,IAAI,IAAI,CAAC;IAEjB;;OAEG;IACH,MAAM,CAAC,IAAI,IAAI,CAAC;IAEhB;;OAEG;IACH,OAAO,CAAC,IAAI,IAAI,CAAC;CAClB;AAED,UAAU,eAAgB,SAAQ,WAAW;IAC3C;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC,iBAAiB,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC,CAAC;CAC/E;AAED,UAAU,iBAAkB,SAAQ,WAAW;IAC7C;;;OAGG;IACH,IAAI,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAE1B;;;OAGG;IACH,EAAE,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAEzB;;;OAGG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IAEjC;;;;OAIG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;CAClC;AAED,eAAO,MAAM,MAAM;;;;CAAyD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/Button/Button.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,6BAoCX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|