@shopify/ui-extensions 2022.10.5 → 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 +21 -4
- 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,443 @@
|
|
|
1
|
+
export interface GlobalProps {
|
|
2
|
+
/**
|
|
3
|
+
* A unique identifier for the element.
|
|
4
|
+
*/
|
|
5
|
+
id?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface InputProps<T> {
|
|
8
|
+
/**
|
|
9
|
+
* Whether the field can be modified.
|
|
10
|
+
*/
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Indicate an error to the user. The field will be given a specific stylistic treatment
|
|
14
|
+
* to communicate problems that have to be resolved immediately.
|
|
15
|
+
*/
|
|
16
|
+
error?: string;
|
|
17
|
+
/**
|
|
18
|
+
* A unique identifier for the field.
|
|
19
|
+
*/
|
|
20
|
+
id?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Content to use as the field label.
|
|
23
|
+
*/
|
|
24
|
+
label: string;
|
|
25
|
+
/**
|
|
26
|
+
* An identifier for the field that is unique within the nearest
|
|
27
|
+
* containing `Form` component.
|
|
28
|
+
*/
|
|
29
|
+
name?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Callback when focus is removed.
|
|
32
|
+
*/
|
|
33
|
+
onBlur?(): void;
|
|
34
|
+
/**
|
|
35
|
+
* Callback when the user has **finished editing** a field. Unlike `onChange`
|
|
36
|
+
* callbacks you may be familiar with from React component libraries,
|
|
37
|
+
* this callback is **not** run on every change to the input. Text fields are
|
|
38
|
+
* “partially controlled” components, which means that while the user edits the
|
|
39
|
+
* field, its state is controlled by the component. Once the user has signalled that
|
|
40
|
+
* they have finished editing the field (typically, by blurring the field), `onChange`
|
|
41
|
+
* is called if the input actually changed from the most recent `value` property. At
|
|
42
|
+
* that point, you are expected to store this “committed value” in state, and reflect
|
|
43
|
+
* it in the text field’s `value` property.
|
|
44
|
+
*
|
|
45
|
+
* This state management model is important given how UI Extensions are rendered. UI Extension components
|
|
46
|
+
* run on a separate thread from the UI, so they can’t respond to input synchronously.
|
|
47
|
+
* A pattern popularized by [controlled React components](https://reactjs.org/docs/forms.html#controlled-components)
|
|
48
|
+
* is to have the component be the source of truth for the input `value`, and update
|
|
49
|
+
* the `value` on every user input. The delay in responding to events from a UI
|
|
50
|
+
* extension is only a few milliseconds, but attempting to strictly store state with
|
|
51
|
+
* this delay can cause issues if a user types quickly, or if the user is using a
|
|
52
|
+
* lower-powered device. Having the UI thread take ownership for “in progress” input,
|
|
53
|
+
* and only synchronizing when the user is finished with a field, avoids this risk.
|
|
54
|
+
*
|
|
55
|
+
* It can still sometimes be useful to be notified when the user makes any input in
|
|
56
|
+
* the field. If you need this capability, you can use the `onInput` prop. However,
|
|
57
|
+
* never use that property to create tightly controlled state for the `value`.
|
|
58
|
+
*
|
|
59
|
+
* This callback is called with the current value of the field. If the value of a field
|
|
60
|
+
* is the same as the current `value` prop provided to the field, the `onChange` callback
|
|
61
|
+
* will not be run.
|
|
62
|
+
*/
|
|
63
|
+
onChange?(value: T): void;
|
|
64
|
+
/**
|
|
65
|
+
* Callback when input is focused.
|
|
66
|
+
*/
|
|
67
|
+
onFocus?(): void;
|
|
68
|
+
/**
|
|
69
|
+
* Callback when the user makes any changes in the field. As noted in the documentation
|
|
70
|
+
* for `onChange`, you **must not** use this to update `value` — use the `onChange`
|
|
71
|
+
* callback for that purpose. Use the `onInput` prop when you need to do something
|
|
72
|
+
* as soon as the user makes a change, like clearing validation errors that apply to
|
|
73
|
+
* the field as soon as the user begins making the necessary adjustments.
|
|
74
|
+
*
|
|
75
|
+
* This callback is called with the current value of the field.
|
|
76
|
+
*/
|
|
77
|
+
onInput?(value: T): void;
|
|
78
|
+
/**
|
|
79
|
+
* A short hint that describes the expected value of the field.
|
|
80
|
+
*/
|
|
81
|
+
placeholder?: string;
|
|
82
|
+
/**
|
|
83
|
+
* Whether the field is read-only.
|
|
84
|
+
*/
|
|
85
|
+
readOnly?: boolean;
|
|
86
|
+
/**
|
|
87
|
+
* Whether the field needs a value. This requirement adds semantic value
|
|
88
|
+
* to the field, but it will not cause an error to appear automatically.
|
|
89
|
+
* If you want to present an error when this field is empty, you can do
|
|
90
|
+
* so with the `error` prop.
|
|
91
|
+
*/
|
|
92
|
+
required?: boolean;
|
|
93
|
+
/**
|
|
94
|
+
* The current value for the field. If omitted, the field will be empty. You should
|
|
95
|
+
* update this value in response to the `onChange` callback.
|
|
96
|
+
*/
|
|
97
|
+
value?: T;
|
|
98
|
+
}
|
|
99
|
+
export interface MinMaxLengthProps {
|
|
100
|
+
/**
|
|
101
|
+
* Specifies the maximum number of characters allowed.
|
|
102
|
+
*/
|
|
103
|
+
maxLength?: number;
|
|
104
|
+
/**
|
|
105
|
+
* Specifies the min number of characters allowed.
|
|
106
|
+
*/
|
|
107
|
+
minLength?: number;
|
|
108
|
+
}
|
|
109
|
+
export interface AccessibilityRoleProps {
|
|
110
|
+
/**
|
|
111
|
+
* Sets the semantic meaning of the component’s content. When set,
|
|
112
|
+
* the role will be used by assistive technologies to help users
|
|
113
|
+
* navigate the page.
|
|
114
|
+
*
|
|
115
|
+
* @defaultValue 'generic'
|
|
116
|
+
*/
|
|
117
|
+
accessibilityRole?: AccessibilityRole;
|
|
118
|
+
}
|
|
119
|
+
export type AccessibilityRole =
|
|
120
|
+
/**
|
|
121
|
+
* Used to indicate the primary content.
|
|
122
|
+
*
|
|
123
|
+
* In an HTML host, `main` will render a `<main>` element.
|
|
124
|
+
* Learn more about the [`<main>` element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/main) and its [implicit role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/main_role) in the MDN web docs.
|
|
125
|
+
*/
|
|
126
|
+
'main'
|
|
127
|
+
/**
|
|
128
|
+
* Used to indicate the component is a header.
|
|
129
|
+
*
|
|
130
|
+
* In an HTML host `header` will render a `<header>` element.
|
|
131
|
+
* Learn more about the [`<header>` element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/header) and its [implicit role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/main_role) in the MDN web docs.
|
|
132
|
+
*/
|
|
133
|
+
| 'header'
|
|
134
|
+
/**
|
|
135
|
+
* Used to display information such as copyright information, navigation links, and privacy statements.
|
|
136
|
+
*
|
|
137
|
+
* In an HTML host `footer` will render a `<footer>` element.
|
|
138
|
+
* Learn more about the [`<footer>` element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/footer) and its [implicit role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/contentinfo_role) in the MDN web docs.
|
|
139
|
+
*/
|
|
140
|
+
| 'footer'
|
|
141
|
+
/**
|
|
142
|
+
* Used to indicate a generic section.
|
|
143
|
+
* Sections should always have a `Heading` or an accessible name provided in the `accessibilityLabel` property.
|
|
144
|
+
*
|
|
145
|
+
* In an HTML host `section` will render a `<section>` element.
|
|
146
|
+
* Learn more about the [`<section>` element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/section) and its [implicit role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/region_role) in the MDN web docs.
|
|
147
|
+
*
|
|
148
|
+
*/
|
|
149
|
+
| 'section'
|
|
150
|
+
/**
|
|
151
|
+
* Used to designate a supporting section that relates to the main content.
|
|
152
|
+
*
|
|
153
|
+
* In an HTML host `aside` will render an `<aside>` element.
|
|
154
|
+
* Learn more about the [`<aside>` element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/aside) and its [implicit role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/complementary_role) in the MDN web docs.
|
|
155
|
+
*/
|
|
156
|
+
| 'aside'
|
|
157
|
+
/**
|
|
158
|
+
* Used to identify major groups of links used for navigating.
|
|
159
|
+
*
|
|
160
|
+
* In an HTML host `navigation` will render a `<nav>` element.
|
|
161
|
+
* Learn more about the [`<nav>` element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/nav) and its [implicit role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/navigation_role) in the MDN web docs.
|
|
162
|
+
*/
|
|
163
|
+
| 'navigation'
|
|
164
|
+
/**
|
|
165
|
+
* Used to identify a list of ordered items.
|
|
166
|
+
*
|
|
167
|
+
* In an HTML host `ordered-list` will render a `<ol>` element.
|
|
168
|
+
* Learn more about the [`<ol>` element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ol) and its [implicit role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/list_role) in the MDN web docs.
|
|
169
|
+
*/
|
|
170
|
+
| 'ordered-list'
|
|
171
|
+
/**
|
|
172
|
+
* Used to identify an item inside a list of items.
|
|
173
|
+
*
|
|
174
|
+
* In an HTML host `list-item` will render a `<li>` element.
|
|
175
|
+
* Learn more about the [`<li>` element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/li) and its [implicit role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/listitem_role) in the MDN web docs.
|
|
176
|
+
*/
|
|
177
|
+
| 'list-item'
|
|
178
|
+
/**
|
|
179
|
+
* Used to indicates the component acts as a divider that separates and distinguishes sections of content in a list of items.
|
|
180
|
+
*
|
|
181
|
+
* In an HTML host `list-item-separator` will render as `<li role="separator">`.
|
|
182
|
+
* Learn more about the [`<li>` element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/li) and the [`separator` role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/separator_role) in the MDN web docs.
|
|
183
|
+
*/
|
|
184
|
+
| 'list-item-separator'
|
|
185
|
+
/**
|
|
186
|
+
* Used to identify a list of unordered items.
|
|
187
|
+
*
|
|
188
|
+
* In an HTML host `unordered-list` will render a `<ul>` element.
|
|
189
|
+
* Learn more about the [`<ul>` element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ul) and its [implicit role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/list_role) in the MDN web docs.
|
|
190
|
+
*/
|
|
191
|
+
| 'unordered-list'
|
|
192
|
+
/**
|
|
193
|
+
* Used to indicates the component acts as a divider that separates and distinguishes sections of content.
|
|
194
|
+
*
|
|
195
|
+
* In an HTML host `separator` will render as `<div role="separator">`.
|
|
196
|
+
* Learn more about the [`separator` role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/separator_role) in the MDN web docs.
|
|
197
|
+
*/
|
|
198
|
+
| 'separator'
|
|
199
|
+
/**
|
|
200
|
+
* Used to define a live region containing advisory information for the user that is not important enough to be an alert.
|
|
201
|
+
*
|
|
202
|
+
* In an HTML host `status` will render as `<div role="status">`.
|
|
203
|
+
* Learn more about the [`status` role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/status_role) in the MDN web docs.
|
|
204
|
+
*/
|
|
205
|
+
| 'status'
|
|
206
|
+
/**
|
|
207
|
+
* Used for important, and usually time-sensitive, information.
|
|
208
|
+
*
|
|
209
|
+
* In an HTML host `alert` will render as `<div role="alert">`.
|
|
210
|
+
* Learn more about the [`alert` role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/alert_role) in the MDN web docs.
|
|
211
|
+
*/
|
|
212
|
+
| 'alert'
|
|
213
|
+
/**
|
|
214
|
+
* Used to create a nameless container element which has no semantic meaning on its own.
|
|
215
|
+
*
|
|
216
|
+
* In an HTML host `generic'` will render a `<div>` element.
|
|
217
|
+
* Learn more about the [`generic` role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/generic_role) in the MDN web docs.
|
|
218
|
+
*/
|
|
219
|
+
| 'generic';
|
|
220
|
+
export type SpacingKeyword = 'none' | 'small' | 'base' | 'large';
|
|
221
|
+
export interface SizingProps {
|
|
222
|
+
/**
|
|
223
|
+
* Adjust the block size.
|
|
224
|
+
*
|
|
225
|
+
* - `number`: size in pixels.
|
|
226
|
+
* - `` `${number}%` ``: size in percentages of the available space.
|
|
227
|
+
*
|
|
228
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/block-size
|
|
229
|
+
*/
|
|
230
|
+
blockSize?: number | `${number}%`;
|
|
231
|
+
/**
|
|
232
|
+
* Adjust the minimum block size.
|
|
233
|
+
*
|
|
234
|
+
* - `number`: size in pixels.
|
|
235
|
+
* - `` `${number}%` ``: size in percentages of the available space.
|
|
236
|
+
*
|
|
237
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/min-block-size
|
|
238
|
+
*/
|
|
239
|
+
minBlockSize?: number | `${number}%`;
|
|
240
|
+
/**
|
|
241
|
+
* Adjust the maximum block size.
|
|
242
|
+
*
|
|
243
|
+
* - `number`: size in pixels.
|
|
244
|
+
* - `` `${number}%` ``: size in percentages of the available space.
|
|
245
|
+
*
|
|
246
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/max-block-size
|
|
247
|
+
*/
|
|
248
|
+
maxBlockSize?: number | `${number}%`;
|
|
249
|
+
/**
|
|
250
|
+
* Adjust the inline size.
|
|
251
|
+
*
|
|
252
|
+
* - `number`: size in pixels.
|
|
253
|
+
* - `` `${number}%` ``: size in percentages of the available space.
|
|
254
|
+
*
|
|
255
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/inline-size
|
|
256
|
+
*/
|
|
257
|
+
inlineSize?: number | `${number}%`;
|
|
258
|
+
/**
|
|
259
|
+
* Adjust the minimum inline size.
|
|
260
|
+
*
|
|
261
|
+
* - `number`: size in pixels.
|
|
262
|
+
* - `` `${number}%` ``: size in percentages of the available space.
|
|
263
|
+
*
|
|
264
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/min-inline-size
|
|
265
|
+
*/
|
|
266
|
+
minInlineSize?: number | `${number}%`;
|
|
267
|
+
/**
|
|
268
|
+
* Adjust the maximum inline size.
|
|
269
|
+
*
|
|
270
|
+
* - `number`: size in pixels.
|
|
271
|
+
* - `` `${number}%` ``: size in percentages of the available space.
|
|
272
|
+
*
|
|
273
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/max-inline-size
|
|
274
|
+
*/
|
|
275
|
+
maxInlineSize?: number | `${number}%`;
|
|
276
|
+
}
|
|
277
|
+
export interface PaddingProps {
|
|
278
|
+
/**
|
|
279
|
+
* Adjust the padding.
|
|
280
|
+
*
|
|
281
|
+
* To shorten the code, it is possible to specify all the padding for all edges of the box in one property.
|
|
282
|
+
*
|
|
283
|
+
* - `base` means block-start, inline-end, block-end and inline-start paddings are `base`.
|
|
284
|
+
* - `base none` means block-start and block-end paddings are `base`, inline-start and inline-end paddings are `none`.
|
|
285
|
+
* - `base none large` means block-start padding is `base`, inline-end padding is `none`, block-end padding is `large` and inline-start padding is `none`.
|
|
286
|
+
* - `base none large small` means block-start padding is `base`, inline-end padding is `none`, block-end padding is `large` and inline-start padding is `small`.
|
|
287
|
+
* - `true` applies a default padding that is appropriate for the component.
|
|
288
|
+
*
|
|
289
|
+
* Learn more about the 1-to-4-value syntax at https://developer.mozilla.org/en-US/docs/Web/CSS/Shorthand_properties#edges_of_a_box
|
|
290
|
+
*/
|
|
291
|
+
padding?: MaybeAllBoxEdgesShorthandProperty<SpacingKeyword | boolean>;
|
|
292
|
+
/**
|
|
293
|
+
* Adjust the block-padding.
|
|
294
|
+
*
|
|
295
|
+
* - `base none` means block-start padding is `base`, block-end padding is `none`.
|
|
296
|
+
*/
|
|
297
|
+
paddingBlock?: MaybeTwoBoxEdgesShorthandProperty<SpacingKeyword | boolean>;
|
|
298
|
+
/**
|
|
299
|
+
* Adjust the block-start padding.
|
|
300
|
+
*/
|
|
301
|
+
paddingBlockStart?: SpacingKeyword | boolean;
|
|
302
|
+
/**
|
|
303
|
+
* Adjust the block-end padding.
|
|
304
|
+
*/
|
|
305
|
+
paddingBlockEnd?: SpacingKeyword | boolean;
|
|
306
|
+
/**
|
|
307
|
+
* Adjust the inline padding.
|
|
308
|
+
*
|
|
309
|
+
* - `base none` means inline-start padding is `base`, inline-end padding is `none`.
|
|
310
|
+
*/
|
|
311
|
+
paddingInline?: MaybeTwoBoxEdgesShorthandProperty<SpacingKeyword | boolean>;
|
|
312
|
+
/**
|
|
313
|
+
* Adjust the inline-start padding.
|
|
314
|
+
*/
|
|
315
|
+
paddingInlineStart?: SpacingKeyword | boolean;
|
|
316
|
+
/**
|
|
317
|
+
* Adjust the inline-end padding.
|
|
318
|
+
*/
|
|
319
|
+
paddingInlineEnd?: SpacingKeyword | boolean;
|
|
320
|
+
}
|
|
321
|
+
export type MaybeAllBoxEdgesShorthandProperty<T extends SpacingKeyword | boolean> = T | `${T} ${T}` | `${T} ${T} ${T}` | `${T} ${T} ${T} ${T}`;
|
|
322
|
+
export type MaybeTwoBoxEdgesShorthandProperty<T extends SpacingKeyword | boolean> = T | `${T} ${T}`;
|
|
323
|
+
export interface AutocompleteProps<AutocompleteField extends AnyAutocompleteField> {
|
|
324
|
+
/**
|
|
325
|
+
* A hint as to the intended content of the field.
|
|
326
|
+
*
|
|
327
|
+
* When set to `true`, this property indicates that the field should support
|
|
328
|
+
* autofill, but you do not have any more semantic information on the intended
|
|
329
|
+
* contents.
|
|
330
|
+
*
|
|
331
|
+
* When set to `false`, you are indicating that this field contains sensitive
|
|
332
|
+
* information, or contents that are never saved, like one-time codes.
|
|
333
|
+
*
|
|
334
|
+
* Alternatively, you can provide value which describes the
|
|
335
|
+
* specific data you would like to be entered into this field during autofill.
|
|
336
|
+
*
|
|
337
|
+
* @see Learn more about the set of {@link https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill-detail-tokens|autocomplete values} supported in browsers.
|
|
338
|
+
*/
|
|
339
|
+
autocomplete?: AutocompleteField | `${AutocompleteSection} ${AutocompleteField}` | `${AutocompleteGroup} ${AutocompleteField}` | `${AutocompleteSection} ${AutocompleteGroup} ${AutocompleteField}` | boolean;
|
|
340
|
+
}
|
|
341
|
+
/**
|
|
342
|
+
* The “section” scopes the autocomplete data that should be inserted
|
|
343
|
+
* to a specific area of the page.
|
|
344
|
+
*
|
|
345
|
+
* Commonly used when there are multiple fields with the same autocomplete needs
|
|
346
|
+
* in the same page. For example: 2 shipping address forms in the same page.
|
|
347
|
+
*/
|
|
348
|
+
export type AutocompleteSection = `section-${string}`;
|
|
349
|
+
/**
|
|
350
|
+
* The contact information group the autocomplete data should be sourced from.
|
|
351
|
+
*/
|
|
352
|
+
export type AutocompleteGroup = 'shipping' | 'billing';
|
|
353
|
+
/**
|
|
354
|
+
* The contact information subgroup the autocomplete data should be sourced from.
|
|
355
|
+
*/
|
|
356
|
+
export type AutocompleteAddressGroup = 'fax' | 'home' | 'mobile' | 'pager';
|
|
357
|
+
export type AutocompleteFieldTelephoneAlias = 'tel' | 'telephone';
|
|
358
|
+
export type AutocompleteFieldBirthdayAlias = 'bday' | 'birthday';
|
|
359
|
+
export type AutocompleteFieldCreditCardAlias = 'cc' | 'credit-card';
|
|
360
|
+
export type AutocompleteFieldInstantMessageAlias = 'impp' | 'instant-message';
|
|
361
|
+
export type AutocompleteFieldSecurityCodeAlias = 'csc' | 'security-code';
|
|
362
|
+
export type AnyAutocompleteField = 'additional-name' | 'address-level1' | 'address-level2' | 'address-level3' | 'address-level4' | 'address-line1' | 'address-line2' | 'address-line3' | 'country-name' | 'country' | 'current-password' | 'email' | 'family-name' | 'given-name' | 'honorific-prefix' | 'honorific-suffix' | 'language' | 'name' | 'new-password' | 'nickname' | 'one-time-code' | 'organization-title' | 'organization' | 'photo' | 'postal-code' | 'sex' | 'street-address' | 'transaction-amount' | 'transaction-currency' | 'url' | 'username' | `${AutocompleteFieldBirthdayAlias}-day` | `${AutocompleteFieldBirthdayAlias}-month` | `${AutocompleteFieldBirthdayAlias}-year` | `${AutocompleteFieldBirthdayAlias}` | `${AutocompleteFieldCreditCardAlias}-additional-name` | `${AutocompleteFieldCreditCardAlias}-expiry-month` | `${AutocompleteFieldCreditCardAlias}-expiry-year` | `${AutocompleteFieldCreditCardAlias}-expiry` | `${AutocompleteFieldCreditCardAlias}-family-name` | `${AutocompleteFieldCreditCardAlias}-given-name` | `${AutocompleteFieldCreditCardAlias}-name` | `${AutocompleteFieldCreditCardAlias}-number` | `${AutocompleteFieldCreditCardAlias}-${AutocompleteFieldSecurityCodeAlias}` | `${AutocompleteFieldCreditCardAlias}-type` | `${AutocompleteAddressGroup} email` | `${AutocompleteFieldInstantMessageAlias}` | `${AutocompleteAddressGroup} ${AutocompleteFieldInstantMessageAlias}` | `${AutocompleteFieldTelephoneAlias}` | `${AutocompleteFieldTelephoneAlias}-area-code` | `${AutocompleteFieldTelephoneAlias}-country-code` | `${AutocompleteFieldTelephoneAlias}-extension` | `${AutocompleteFieldTelephoneAlias}-local-prefix` | `${AutocompleteFieldTelephoneAlias}-local-suffix` | `${AutocompleteFieldTelephoneAlias}-local` | `${AutocompleteFieldTelephoneAlias}-national` | `${AutocompleteAddressGroup} ${AutocompleteFieldTelephoneAlias}` | `${AutocompleteAddressGroup} ${AutocompleteFieldTelephoneAlias}-area-code` | `${AutocompleteAddressGroup} ${AutocompleteFieldTelephoneAlias}-country-code` | `${AutocompleteAddressGroup} ${AutocompleteFieldTelephoneAlias}-extension` | `${AutocompleteAddressGroup} ${AutocompleteFieldTelephoneAlias}-local-prefix` | `${AutocompleteAddressGroup} ${AutocompleteFieldTelephoneAlias}-local-suffix` | `${AutocompleteAddressGroup} ${AutocompleteFieldTelephoneAlias}-local` | `${AutocompleteAddressGroup} ${AutocompleteFieldTelephoneAlias}-national`;
|
|
363
|
+
export type TextAutocompleteField = Extract<AnyAutocompleteField, 'additional-name' | 'address-level1' | 'address-level2' | 'address-level3' | 'address-level4' | 'address-line1' | 'address-line2' | 'address-line3' | 'country-name' | 'country' | 'family-name' | 'given-name' | 'honorific-prefix' | 'honorific-suffix' | 'language' | 'name' | 'nickname' | 'one-time-code' | 'organization-title' | 'organization' | 'postal-code' | 'sex' | 'street-address' | 'transaction-currency' | 'username' | `${AutocompleteFieldCreditCardAlias}-name` | `${AutocompleteFieldCreditCardAlias}-given-name` | `${AutocompleteFieldCreditCardAlias}-additional-name` | `${AutocompleteFieldCreditCardAlias}-family-name` | `${AutocompleteFieldCreditCardAlias}-type`>;
|
|
364
|
+
/**
|
|
365
|
+
* TODO:
|
|
366
|
+
* Move these to their respective fields when they are implemented.
|
|
367
|
+
*/
|
|
368
|
+
export type MoneyAutocomplete = Extract<AnyAutocompleteField, 'transaction-amount'>;
|
|
369
|
+
export type DateAutocomplete = Extract<AnyAutocompleteField, `${AutocompleteFieldBirthdayAlias}` | `${AutocompleteFieldBirthdayAlias}-day` | `${AutocompleteFieldBirthdayAlias}-month` | `${AutocompleteFieldBirthdayAlias}-year` | `${AutocompleteFieldCreditCardAlias}-expiry` | `${AutocompleteFieldCreditCardAlias}-expiry-month` | `${AutocompleteFieldCreditCardAlias}-expiry-year`>;
|
|
370
|
+
export type PhoneAutocompleteField = Extract<AnyAutocompleteField, `${AutocompleteFieldTelephoneAlias}` | `${AutocompleteFieldTelephoneAlias}-area-code` | `${AutocompleteFieldTelephoneAlias}-country-code` | `${AutocompleteFieldTelephoneAlias}-extension` | `${AutocompleteFieldTelephoneAlias}-local-prefix` | `${AutocompleteFieldTelephoneAlias}-local-suffix` | `${AutocompleteFieldTelephoneAlias}-local` | `${AutocompleteFieldTelephoneAlias}-national` | `${AutocompleteAddressGroup} ${AutocompleteFieldTelephoneAlias}` | `${AutocompleteAddressGroup} ${AutocompleteFieldTelephoneAlias}-area-code` | `${AutocompleteAddressGroup} ${AutocompleteFieldTelephoneAlias}-country-code` | `${AutocompleteAddressGroup} ${AutocompleteFieldTelephoneAlias}-extension` | `${AutocompleteAddressGroup} ${AutocompleteFieldTelephoneAlias}-local-prefix` | `${AutocompleteAddressGroup} ${AutocompleteFieldTelephoneAlias}-local-suffix` | `${AutocompleteAddressGroup} ${AutocompleteFieldTelephoneAlias}-local` | `${AutocompleteAddressGroup} ${AutocompleteFieldTelephoneAlias}-national`>;
|
|
371
|
+
export interface GapProps {
|
|
372
|
+
/**
|
|
373
|
+
* Adjust spacing between children
|
|
374
|
+
*/
|
|
375
|
+
gap?: MaybeTwoBoxEdgesShorthandProperty<SpacingKeyword | boolean>;
|
|
376
|
+
/**
|
|
377
|
+
* Adjust spacing between elements in the block axis.
|
|
378
|
+
*
|
|
379
|
+
* Alias for `rowGap`
|
|
380
|
+
*/
|
|
381
|
+
blockGap?: SpacingKeyword | boolean;
|
|
382
|
+
/**
|
|
383
|
+
* Adjust spacing between elements in the inline axis.
|
|
384
|
+
*
|
|
385
|
+
* Alias for `columnGap`
|
|
386
|
+
*/
|
|
387
|
+
inlineGap?: SpacingKeyword | boolean;
|
|
388
|
+
/**
|
|
389
|
+
* Adjust spacing between children in the block axis
|
|
390
|
+
*/
|
|
391
|
+
rowGap?: SpacingKeyword | boolean;
|
|
392
|
+
/**
|
|
393
|
+
* Adjust spacing between children in the inline axis
|
|
394
|
+
*/
|
|
395
|
+
columnGap?: SpacingKeyword | boolean;
|
|
396
|
+
}
|
|
397
|
+
export type CrossAxisAlignment =
|
|
398
|
+
/** Items are positioned at the beginning of the container's cross axis */
|
|
399
|
+
'flex-start'
|
|
400
|
+
/** Items are positioned at the center of the container’s cross axis */
|
|
401
|
+
| 'center'
|
|
402
|
+
/** Items are positioned at the end of the container's cross axis */
|
|
403
|
+
| 'flex-end'
|
|
404
|
+
/** Items are positioned at the baseline of the container's cross axis */
|
|
405
|
+
| 'baseline';
|
|
406
|
+
export type MainAxisAlignment =
|
|
407
|
+
/** Align items at the start of the container's main axis */
|
|
408
|
+
'flex-start'
|
|
409
|
+
/** Align items to the center of the container's main axis */
|
|
410
|
+
| 'flex-center'
|
|
411
|
+
/** Align items at the end of the container's main axis */
|
|
412
|
+
| 'end'
|
|
413
|
+
/** Distribute items evenly across the container's main axis, where the first item is flush with the start, the last is flush with the end */
|
|
414
|
+
| 'space-between'
|
|
415
|
+
/** Distribute items evenly across the container's main axis, with a half-size space on either end of the items */
|
|
416
|
+
| 'space-around'
|
|
417
|
+
/** Distribute items evenly across the container's main axis, with items having equal space around them */
|
|
418
|
+
| 'space-evenly';
|
|
419
|
+
export type SpaceScale = '0' | '025' | '05' | '1' | '2' | '3' | '4' | '5' | '6' | '8' | '10' | '12' | '16' | '20' | '24' | '28' | '32';
|
|
420
|
+
export interface AnchorProps {
|
|
421
|
+
/**
|
|
422
|
+
* The URL to link to.
|
|
423
|
+
* If set, it will navigate to the location specified by `href` after executing the `onClick` callback.
|
|
424
|
+
*/
|
|
425
|
+
href?: string;
|
|
426
|
+
/**
|
|
427
|
+
* Alias for `href`
|
|
428
|
+
* If set, it will navigate to the location specified by `to` after executing the `onClick` callback.
|
|
429
|
+
*/
|
|
430
|
+
to?: string;
|
|
431
|
+
/**
|
|
432
|
+
* Callback when a link is pressed. If `href` is set,
|
|
433
|
+
* it will execute the callback and then navigate to the location specified by `href`.
|
|
434
|
+
*/
|
|
435
|
+
onClick?(): void;
|
|
436
|
+
/**
|
|
437
|
+
* Alias for `onClick`
|
|
438
|
+
* Callback when a link is pressed. If `href` is set,
|
|
439
|
+
* it will execute the callback and then navigate to the location specified by `href`.
|
|
440
|
+
*/
|
|
441
|
+
onPress?(): void;
|
|
442
|
+
}
|
|
443
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/shared/index.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,UAAU,CAAC,CAAC;IAC3B;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,MAAM,CAAC,IAAI,IAAI,CAAC;IAEhB;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACH,QAAQ,CAAC,CAAC,KAAK,EAAE,CAAC,GAAG,IAAI,CAAC;IAE1B;;OAEG;IACH,OAAO,CAAC,IAAI,IAAI,CAAC;IAEjB;;;;;;;;OAQG;IACH,OAAO,CAAC,CAAC,KAAK,EAAE,CAAC,GAAG,IAAI,CAAC;IAEzB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;OAGG;IACH,KAAK,CAAC,EAAE,CAAC,CAAC;CACX;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,sBAAsB;IACrC;;;;;;OAMG;IACH,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;CACvC;AAED,MAAM,MAAM,iBAAiB;AAC3B;;;;;GAKG;AACD,MA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AAa;AACf,0DAA0D;GACxD,KAAK;AACP,6IAA6I;GAC3I,eAAe;AACjB,kHAAkH;GAChH,cAAc;AAChB,0GAA0G;GACxG,cAAc,CAAC;AAEnB,MAAM,MAAM,UAAU,GAClB,GAAG,GACH,KAAK,GACL,IAAI,GACJ,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,CAAC;AAET,MAAM,WAAW,WAAW;IAC1B;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;;OAGG;IACH,OAAO,CAAC,IAAI,IAAI,CAAC;IAEjB;;;;OAIG;IACH,OAAO,CAAC,IAAI,IAAI,CAAC;CAClB"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export { AdminAction } from './components/AdminAction/AdminAction';
|
|
2
|
+
export type { AdminActionProps } from './components/AdminAction/AdminAction';
|
|
3
|
+
export { AdminBlock } from './components/AdminBlock/AdminBlock';
|
|
4
|
+
export type { AdminBlockProps } from './components/AdminBlock/AdminBlock';
|
|
5
|
+
export { BlockStack } from './components/BlockStack/BlockStack';
|
|
6
|
+
export type { BlockStackProps } from './components/BlockStack/BlockStack';
|
|
7
|
+
export { Box } from './components/Box/Box';
|
|
8
|
+
export type { BoxProps } from './components/Box/Box';
|
|
9
|
+
export { Button } from './components/Button/Button';
|
|
10
|
+
export type { ButtonProps } from './components/Button/Button';
|
|
11
|
+
export { Checkbox } from './components/Checkbox/Checkbox';
|
|
12
|
+
export type { CheckboxProps } from './components/Checkbox/Checkbox';
|
|
13
|
+
export { CustomerSegmentationTemplate } from './components/CustomerSegmentationTemplate/CustomerSegmentationTemplate';
|
|
14
|
+
export type { CustomerSegmentationTemplateProps } from './components/CustomerSegmentationTemplate/CustomerSegmentationTemplate';
|
|
15
|
+
export { Divider } from './components/Divider/Divider';
|
|
16
|
+
export type { DividerProps } from './components/Divider/Divider';
|
|
17
|
+
export { EmailField } from './components/EmailField/EmailField';
|
|
18
|
+
export type { EmailFieldProps } from './components/EmailField/EmailField';
|
|
19
|
+
export { Form } from './components/Form/Form';
|
|
20
|
+
export type { FormProps } from './components/Form/Form';
|
|
21
|
+
export { Heading } from './components/Heading/Heading';
|
|
22
|
+
export type { HeadingProps } from './components/Heading/Heading';
|
|
23
|
+
export { HeadingGroup } from './components/HeadingGroup/HeadingGroup';
|
|
24
|
+
export type { HeadingGroupProps } from './components/HeadingGroup/HeadingGroup';
|
|
25
|
+
export { Icon } from './components/Icon/Icon';
|
|
26
|
+
export type { IconProps } from './components/Icon/Icon';
|
|
27
|
+
export { InlineStack } from './components/InlineStack/InlineStack';
|
|
28
|
+
export type { InlineStackProps } from './components/InlineStack/InlineStack';
|
|
29
|
+
export { Image } from './components/Image/Image';
|
|
30
|
+
export type { ImageProps } from './components/Image/Image';
|
|
31
|
+
export { Link } from './components/Link/Link';
|
|
32
|
+
export type { LinkProps } from './components/Link/Link';
|
|
33
|
+
export { NumberField } from './components/NumberField/NumberField';
|
|
34
|
+
export type { NumberFieldProps } from './components/NumberField/NumberField';
|
|
35
|
+
export { PasswordField } from './components/PasswordField/PasswordField';
|
|
36
|
+
export type { PasswordFieldProps } from './components/PasswordField/PasswordField';
|
|
37
|
+
export { Select } from './components/Select/Select';
|
|
38
|
+
export type { OptionDescription, OptionGroupDescription, OptionGroupProps, OptionProps, SelectProps, } from './components/Select/Select';
|
|
39
|
+
export { Text } from './components/Text/Text';
|
|
40
|
+
export type { TextProps } from './components/Text/Text';
|
|
41
|
+
export { TextArea } from './components/TextArea/TextArea';
|
|
42
|
+
export type { TextAreaProps } from './components/TextArea/TextArea';
|
|
43
|
+
export { TextField } from './components/TextField/TextField';
|
|
44
|
+
export type { TextFieldProps } from './components/TextField/TextField';
|
|
45
|
+
export { URLField } from './components/URLField/URLField';
|
|
46
|
+
export type { URLFieldProps } from './components/URLField/URLField';
|
|
47
|
+
//# sourceMappingURL=components.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../../src/surfaces/admin/components.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,sCAAsC,CAAC;AACjE,YAAY,EAAC,gBAAgB,EAAC,MAAM,sCAAsC,CAAC;AAC3E,OAAO,EAAC,UAAU,EAAC,MAAM,oCAAoC,CAAC;AAC9D,YAAY,EAAC,eAAe,EAAC,MAAM,oCAAoC,CAAC;AACxE,OAAO,EAAC,UAAU,EAAC,MAAM,oCAAoC,CAAC;AAC9D,YAAY,EAAC,eAAe,EAAC,MAAM,oCAAoC,CAAC;AACxE,OAAO,EAAC,GAAG,EAAC,MAAM,sBAAsB,CAAC;AACzC,YAAY,EAAC,QAAQ,EAAC,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAC,MAAM,EAAC,MAAM,4BAA4B,CAAC;AAClD,YAAY,EAAC,WAAW,EAAC,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAC,QAAQ,EAAC,MAAM,gCAAgC,CAAC;AACxD,YAAY,EAAC,aAAa,EAAC,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAC,4BAA4B,EAAC,MAAM,wEAAwE,CAAC;AACpH,YAAY,EAAC,iCAAiC,EAAC,MAAM,wEAAwE,CAAC;AAC9H,OAAO,EAAC,OAAO,EAAC,MAAM,8BAA8B,CAAC;AACrD,YAAY,EAAC,YAAY,EAAC,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAC,UAAU,EAAC,MAAM,oCAAoC,CAAC;AAC9D,YAAY,EAAC,eAAe,EAAC,MAAM,oCAAoC,CAAC;AACxE,OAAO,EAAC,IAAI,EAAC,MAAM,wBAAwB,CAAC;AAC5C,YAAY,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AACtD,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C3D,YAAY,EAAC,cAAc,EAAC,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAC,QAAQ,EAAC,MAAM,gCAAgC,CAAC;AACxD,YAAY,EAAC,aAAa,EAAC,MAAM,gCAAgC,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import type { RenderExtension } from '../../extension';
|
|
2
|
+
import type { AnyComponent, Components } from './shared';
|
|
3
|
+
import type { StandardApi, CustomerSegmentationTemplateApi, ActionExtensionApi } from './api';
|
|
4
|
+
import { AnyComponentBuilder } from '../../shared';
|
|
5
|
+
type CustomerSegmentationTemplateComponent = AnyComponentBuilder<Pick<Components, 'CustomerSegmentationTemplate'>>;
|
|
6
|
+
export interface ExtensionPoints {
|
|
7
|
+
Playground: RenderExtension<StandardApi<'Playground'>, AnyComponent>;
|
|
8
|
+
'admin.customers.segmentation-templates.render': RenderExtension<CustomerSegmentationTemplateApi<'admin.customers.segmentation-templates.render'>, CustomerSegmentationTemplateComponent>;
|
|
9
|
+
'admin.product-details.block.render': RenderExtension<StandardApi<'admin.product-details.block.render'>, AnyComponent>;
|
|
10
|
+
'admin.order-details.block.render': RenderExtension<StandardApi<'admin.order-details.block.render'>, AnyComponent>;
|
|
11
|
+
'admin.customer-details.block.render': RenderExtension<StandardApi<'admin.customer-details.block.render'>, AnyComponent>;
|
|
12
|
+
'admin.product-details.action.render': RenderExtension<ActionExtensionApi<'admin.product-details.action.render'>, AnyComponent>;
|
|
13
|
+
'admin.order-details.action.render': RenderExtension<ActionExtensionApi<'admin.order-details.action.render'>, AnyComponent>;
|
|
14
|
+
'admin.customer-details.action.render': RenderExtension<ActionExtensionApi<'admin.customer-details.action.render'>, AnyComponent>;
|
|
15
|
+
'admin.product-index.action.render': RenderExtension<ActionExtensionApi<'admin.product-index.action.render'>, AnyComponent>;
|
|
16
|
+
'admin.order-index.action.render': RenderExtension<ActionExtensionApi<'admin.order-index.action.render'>, AnyComponent>;
|
|
17
|
+
'admin.customer-index.action.render': RenderExtension<ActionExtensionApi<'admin.customer-index.action.render'>, AnyComponent>;
|
|
18
|
+
'admin.product-index.selection-action.render': RenderExtension<ActionExtensionApi<'admin.product-index.selection-action.render'>, AnyComponent>;
|
|
19
|
+
'admin.order-index.selection-action.render': RenderExtension<ActionExtensionApi<'admin.order-index.selection-action.render'>, AnyComponent>;
|
|
20
|
+
'admin.customer-index.selection-action.render': RenderExtension<ActionExtensionApi<'admin.customer-index.selection-action.render'>, AnyComponent>;
|
|
21
|
+
}
|
|
22
|
+
export type ExtensionPoint = keyof ExtensionPoints;
|
|
23
|
+
export type ExtensionForExtensionPoint<T extends ExtensionPoint> = ExtensionPoints[T];
|
|
24
|
+
/**
|
|
25
|
+
* For a given extension point, returns the value that is expected to be
|
|
26
|
+
* returned by that extension point’s callback type.
|
|
27
|
+
*/
|
|
28
|
+
export type ReturnTypeForExtension<ID extends keyof ExtensionPoints> = ReturnType<ExtensionPoints[ID]>;
|
|
29
|
+
/**
|
|
30
|
+
* For a given extension point, returns the tuple of arguments that would
|
|
31
|
+
* be provided to that extension point’s callback type.
|
|
32
|
+
*/
|
|
33
|
+
export type ArgumentsForExtension<ID extends keyof ExtensionPoints> = Parameters<ExtensionPoints[ID]>;
|
|
34
|
+
/**
|
|
35
|
+
* A union type containing all of the extension points that follow the pattern of
|
|
36
|
+
* accepting a [`@remote-ui/core` `RemoteRoot`](https://github.com/Shopify/remote-ui/tree/main/packages/core)
|
|
37
|
+
* and an additional `api` argument, and using those arguments to render
|
|
38
|
+
* UI.
|
|
39
|
+
*/
|
|
40
|
+
export type RenderExtensionPoint = {
|
|
41
|
+
[ID in keyof ExtensionPoints]: ExtensionPoints[ID] extends RenderExtension<any, any> ? ID : never;
|
|
42
|
+
}[keyof ExtensionPoints];
|
|
43
|
+
/**
|
|
44
|
+
* A mapping of each “render extension” name to its callback type.
|
|
45
|
+
*/
|
|
46
|
+
export type RenderExtensions = {
|
|
47
|
+
[ID in RenderExtensionPoint]: ExtensionPoints[ID];
|
|
48
|
+
};
|
|
49
|
+
type ExtractedApiFromRenderExtension<T> = T extends RenderExtension<infer Api, any> ? Api : never;
|
|
50
|
+
type ExtractedAllowedComponentsFromRenderExtension<T> = T extends RenderExtension<any, infer Components> ? Components : never;
|
|
51
|
+
/**
|
|
52
|
+
* For a given rendering extension point, returns the type of the API that the
|
|
53
|
+
* extension will receive at runtime. This API type is the second argument to
|
|
54
|
+
* the callback for that extension point. The first callback for all of the rendering
|
|
55
|
+
* extension points each receive a `RemoteRoot` object.
|
|
56
|
+
*/
|
|
57
|
+
export type ApiForRenderExtension<ID extends keyof RenderExtensions> = ExtractedApiFromRenderExtension<RenderExtensions[ID]>;
|
|
58
|
+
/**
|
|
59
|
+
* For a given rendering extension point, returns the UI components that the
|
|
60
|
+
* extension point supports.
|
|
61
|
+
*/
|
|
62
|
+
export type AllowedComponentsForRenderExtension<ID extends keyof RenderExtensions> = ExtractedAllowedComponentsFromRenderExtension<RenderExtensions[ID]>;
|
|
63
|
+
export {};
|
|
64
|
+
//# sourceMappingURL=extension-points.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extension-points.d.ts","sourceRoot":"","sources":["../../../../src/surfaces/admin/extension-points.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,iBAAiB,CAAC;AAErD,OAAO,KAAK,EAAC,YAAY,EAAE,UAAU,EAAC,MAAM,UAAU,CAAC;AACvD,OAAO,KAAK,EACV,WAAW,EACX,+BAA+B,EAC/B,kBAAkB,EACnB,MAAM,OAAO,CAAC;AACf,OAAO,EAAC,mBAAmB,EAAC,MAAM,cAAc,CAAC;AAEjD,KAAK,qCAAqC,GAAG,mBAAmB,CAC9D,IAAI,CAAC,UAAU,EAAE,8BAA8B,CAAC,CACjD,CAAC;AAEF,MAAM,WAAW,eAAe;IAC9B,UAAU,EAAE,eAAe,CAAC,WAAW,CAAC,YAAY,CAAC,EAAE,YAAY,CAAC,CAAC;IACrE,+CAA+C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ACH,MAAM,MAAM,sBAAsB,CAAC,EAAE,SAAS,MAAM,eAAe,IACjE,UAAU,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC,CAAC;AAElC;;;GAGG;AACH,MAAM,MAAM,qBAAqB,CAAC,EAAE,SAAS,MAAM,eAAe,IAChE,UAAU,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC,CAAC;AAElC;;;;;GAKG;AACH,MAAM,MAAM,oBAAoB,GAAG;KAChC,EAAE,IAAI,MAAM,eAAe,GAAG,eAAe,CAAC,EAAE,CAAC,SAAS,eAAe,CACxE,GAAG,EACH,GAAG,CACJ,GACG,EAAE,GACF,KAAK;CACV,CAAC,MAAM,eAAe,CAAC,CAAC;AAEzB;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;KAC5B,EAAE,IAAI,oBAAoB,GAAG,eAAe,CAAC,EAAE,CAAC;CAClD,CAAC;AAEF,KAAK,+BAA+B,CAAC,CAAC,IAAI,CAAC,SAAS,eAAe,CACjE,MAAM,GAAG,EACT,GAAG,CACJ,GACG,GAAG,GACH,KAAK,CAAC;AAEV,KAAK,6CAA6C,CAAC,CAAC,IAClD,CAAC,SAAS,eAAe,CAAC,GAAG,EAAE,MAAM,UAAU,CAAC,GAAG,UAAU,GAAG,KAAK,CAAC;AAExE;;;;;GAKG;AACH,MAAM,MAAM,qBAAqB,CAAC,EAAE,SAAS,MAAM,gBAAgB,IACjE,+BAA+B,CAAC,gBAAgB,CAAC,EAAE,CAAC,CAAC,CAAC;AAExD;;;GAGG;AACH,MAAM,MAAM,mCAAmC,CAC7C,EAAE,SAAS,MAAM,gBAAgB,IAC/B,6CAA6C,CAAC,gBAAgB,CAAC,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ExtensionPoints } from './extension-points';
|
|
2
|
+
export * from '../../extension';
|
|
3
|
+
export declare const extension: import("../../utilities/registration").ExtensionRegistrationFunctionWithRoot<ExtensionPoints>;
|
|
4
|
+
export declare const extend: import("../../utilities/registration").ExtensionRegistrationFunctionWithRoot<ExtensionPoints>;
|
|
5
|
+
//# sourceMappingURL=extension.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extension.d.ts","sourceRoot":"","sources":["../../../../src/surfaces/admin/extension.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,oBAAoB,CAAC;AAExD,cAAc,iBAAiB,CAAC;AAEhC,eAAO,MAAM,SAAS,+FAAyD,CAAC;AAChF,eAAO,MAAM,MAAM,+FAAY,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ExtensionPoints } from './extension-points';
|
|
2
|
+
export interface ShopifyGlobal {
|
|
3
|
+
extend<ExtensionPoint extends keyof ExtensionPoints>(extensionPoint: ExtensionPoint, extend: ExtensionPoints[ExtensionPoint]): void;
|
|
4
|
+
}
|
|
5
|
+
//# sourceMappingURL=globals.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"globals.d.ts","sourceRoot":"","sources":["../../../../src/surfaces/admin/globals.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,oBAAoB,CAAC;AAExD,MAAM,WAAW,aAAa;IAC5B,MAAM,CAAC,cAAc,SAAS,MAAM,eAAe,EACjD,cAAc,EAAE,cAAc,EAC9B,MAAM,EAAE,eAAe,CAAC,cAAc,CAAC,GACtC,IAAI,CAAC;CACT"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ComponentsBuilder, AnyComponentBuilder } from '../../shared';
|
|
2
|
+
type ComponentTypes = typeof import('./components');
|
|
3
|
+
export type Components = ComponentsBuilder<ComponentTypes>;
|
|
4
|
+
export type AnyComponent = AnyComponentBuilder<ComponentTypes>;
|
|
5
|
+
export {};
|
|
6
|
+
//# sourceMappingURL=shared.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../../src/surfaces/admin/shared.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,iBAAiB,EAAE,mBAAmB,EAAC,MAAM,cAAc,CAAC;AAEzE,KAAK,cAAc,GAAG,cAAc,cAAc,CAAC,CAAC;AAEpD,MAAM,MAAM,UAAU,GAAG,iBAAiB,CAAC,cAAc,CAAC,CAAC;AAC3D,MAAM,MAAM,YAAY,GAAG,mBAAmB,CAAC,cAAc,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin.d.ts","sourceRoot":"","sources":["../../../src/surfaces/admin.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC"}
|