@shopify/ui-extensions 2024.4.2 → 2024.10.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/build/cjs/surfaces/admin/components/AdminPrintAction/AdminPrintAction.js +12 -0
- package/build/cjs/surfaces/admin/components/DatePicker/DatePicker.js +12 -0
- package/build/cjs/surfaces/admin/components/InternalCustomerSegmentTemplate/InternalCustomerSegmentTemplate.js +5 -0
- package/build/cjs/surfaces/admin/components/MoneyField/MoneyField.js +6 -0
- package/build/cjs/surfaces/admin.js +2 -8
- package/build/cjs/surfaces/checkout/components/Chat/Chat.js +12 -0
- package/build/cjs/surfaces/checkout/components/DatePicker/DatePicker.js +4 -10
- package/build/cjs/surfaces/checkout/components/PaymentIcon/PaymentIcon.js +1 -0
- package/build/cjs/surfaces/{point-of-sale/components/Actiontem/ActionItem.js → checkout/components/Progress/Progress.js} +2 -2
- package/build/cjs/surfaces/checkout/components/QRCode/QRCode.js +9 -0
- package/build/cjs/surfaces/checkout/components/Switch/Switch.js +9 -0
- package/build/cjs/surfaces/checkout.js +8 -0
- package/build/cjs/surfaces/customer-account/components/Avatar/Avatar.js +9 -0
- package/build/cjs/surfaces/customer-account/components/CustomerAccountAction/CustomerAccountAction.js +9 -0
- package/build/cjs/surfaces/customer-account/components/DropZone/DropZone.js +9 -0
- package/build/cjs/surfaces/customer-account/components/ImageGroup/ImageGroup.js +9 -0
- package/build/cjs/surfaces/{admin/components/Card/Card.js → customer-account/components/Menu/Menu.js} +2 -2
- package/build/cjs/surfaces/customer-account/components/Page/Page.js +9 -0
- package/build/cjs/surfaces/customer-account/components/PolicyModal/PolicyModal.js +12 -0
- package/build/cjs/surfaces/customer-account/components/ResourceItem/ResourceItem.js +9 -0
- package/build/cjs/surfaces/customer-account.js +24 -0
- package/build/cjs/surfaces/point-of-sale/components/ActionItem/ActionItem.js +16 -0
- package/build/cjs/surfaces/point-of-sale/components/Badge/Badge.js +6 -0
- package/build/cjs/surfaces/point-of-sale/components/Banner/Banner.js +9 -0
- package/build/cjs/surfaces/point-of-sale/components/Button/Button.js +8 -0
- package/build/cjs/surfaces/point-of-sale/components/CameraScanner/CameraScanner.js +6 -0
- package/build/cjs/surfaces/point-of-sale/components/DatePicker/DatePicker.js +8 -0
- package/build/cjs/surfaces/point-of-sale/components/Dialog/Dialog.js +12 -0
- package/build/cjs/surfaces/point-of-sale/components/FormattedTextField/FormattedTextField.js +10 -0
- package/build/cjs/surfaces/point-of-sale/components/Navigator/Navigator.js +1 -1
- package/build/cjs/surfaces/point-of-sale/components/NumberField/NumberField.js +6 -0
- package/build/cjs/surfaces/point-of-sale/components/POSBlock/POSBlock.js +15 -0
- package/build/cjs/surfaces/point-of-sale/components/POSBlock/POSBlockRow.js +13 -0
- package/build/cjs/surfaces/point-of-sale/components/PinPad/PinPad.js +24 -0
- package/build/cjs/surfaces/point-of-sale/components/Screen/Screen.js +18 -0
- package/build/cjs/surfaces/point-of-sale/components/Section/Section.js +10 -0
- package/build/cjs/surfaces/point-of-sale/components/TextArea/TextArea.js +6 -0
- package/build/cjs/surfaces/point-of-sale/components/TextField/TextField.js +6 -0
- package/build/cjs/surfaces/point-of-sale/components/Tile/Tile.js +9 -0
- package/build/cjs/surfaces/point-of-sale/components/TimePicker/TimePicker.js +9 -0
- package/build/cjs/surfaces/point-of-sale.js +5 -1
- package/build/esm/surfaces/admin/components/AdminPrintAction/AdminPrintAction.mjs +8 -0
- package/build/esm/surfaces/admin/components/DatePicker/DatePicker.mjs +12 -0
- package/build/esm/surfaces/admin/components/InternalCustomerSegmentTemplate/InternalCustomerSegmentTemplate.mjs +5 -0
- package/build/esm/surfaces/admin/components/MoneyField/MoneyField.mjs +6 -0
- package/build/esm/surfaces/admin.mjs +1 -4
- package/build/esm/surfaces/checkout/components/Chat/Chat.mjs +8 -0
- package/build/esm/surfaces/checkout/components/DatePicker/DatePicker.mjs +5 -11
- package/build/esm/surfaces/checkout/components/PaymentIcon/PaymentIcon.mjs +1 -0
- package/build/esm/surfaces/checkout/components/Progress/Progress.mjs +5 -0
- package/build/esm/surfaces/checkout/components/QRCode/QRCode.mjs +5 -0
- package/build/esm/surfaces/checkout/components/Switch/Switch.mjs +5 -0
- package/build/esm/surfaces/checkout.mjs +4 -0
- package/build/esm/surfaces/customer-account/components/Avatar/Avatar.mjs +5 -0
- package/build/esm/surfaces/customer-account/components/CustomerAccountAction/CustomerAccountAction.mjs +5 -0
- package/build/esm/surfaces/customer-account/components/DropZone/DropZone.mjs +5 -0
- package/build/esm/surfaces/customer-account/components/ImageGroup/ImageGroup.mjs +5 -0
- package/build/esm/surfaces/customer-account/components/Menu/Menu.mjs +5 -0
- package/build/esm/surfaces/customer-account/components/Page/Page.mjs +5 -0
- package/build/esm/surfaces/customer-account/components/PolicyModal/PolicyModal.mjs +8 -0
- package/build/esm/surfaces/customer-account/components/ResourceItem/ResourceItem.mjs +5 -0
- package/build/esm/surfaces/customer-account.mjs +12 -0
- package/build/esm/surfaces/point-of-sale/components/ActionItem/ActionItem.mjs +12 -0
- package/build/esm/surfaces/point-of-sale/components/Badge/Badge.mjs +6 -0
- package/build/esm/surfaces/point-of-sale/components/Banner/Banner.mjs +9 -0
- package/build/esm/surfaces/point-of-sale/components/Button/Button.mjs +8 -0
- package/build/esm/surfaces/point-of-sale/components/CameraScanner/CameraScanner.mjs +6 -0
- package/build/esm/surfaces/point-of-sale/components/DatePicker/DatePicker.mjs +8 -0
- package/build/esm/surfaces/point-of-sale/components/Dialog/Dialog.mjs +12 -0
- package/build/esm/surfaces/point-of-sale/components/FormattedTextField/FormattedTextField.mjs +10 -0
- package/build/esm/surfaces/point-of-sale/components/Navigator/Navigator.mjs +1 -1
- package/build/esm/surfaces/point-of-sale/components/NumberField/NumberField.mjs +6 -0
- package/build/esm/surfaces/point-of-sale/components/POSBlock/POSBlock.mjs +11 -0
- package/build/esm/surfaces/point-of-sale/components/POSBlock/POSBlockRow.mjs +9 -0
- package/build/esm/surfaces/point-of-sale/components/PinPad/PinPad.mjs +24 -0
- package/build/esm/surfaces/point-of-sale/components/Screen/Screen.mjs +18 -0
- package/build/esm/surfaces/point-of-sale/components/Section/Section.mjs +10 -0
- package/build/esm/surfaces/point-of-sale/components/TextArea/TextArea.mjs +6 -0
- package/build/esm/surfaces/point-of-sale/components/TextField/TextField.mjs +6 -0
- package/build/esm/surfaces/point-of-sale/components/Tile/Tile.mjs +9 -0
- package/build/esm/surfaces/point-of-sale/components/TimePicker/TimePicker.mjs +9 -0
- package/build/esm/surfaces/point-of-sale.mjs +3 -1
- package/build/esnext/surfaces/admin/components/AdminPrintAction/AdminPrintAction.esnext +8 -0
- package/build/esnext/surfaces/admin/components/DatePicker/DatePicker.esnext +12 -0
- package/build/esnext/surfaces/admin/components/InternalCustomerSegmentTemplate/InternalCustomerSegmentTemplate.esnext +5 -0
- package/build/esnext/surfaces/admin/components/MoneyField/MoneyField.esnext +6 -0
- package/build/esnext/surfaces/admin.esnext +1 -4
- package/build/esnext/surfaces/checkout/components/Chat/Chat.esnext +8 -0
- package/build/esnext/surfaces/checkout/components/DatePicker/DatePicker.esnext +5 -11
- package/build/esnext/surfaces/checkout/components/PaymentIcon/PaymentIcon.esnext +1 -0
- package/build/esnext/surfaces/checkout/components/Progress/Progress.esnext +5 -0
- package/build/esnext/surfaces/checkout/components/QRCode/QRCode.esnext +5 -0
- package/build/esnext/surfaces/checkout/components/Switch/Switch.esnext +5 -0
- package/build/esnext/surfaces/checkout.esnext +4 -0
- package/build/esnext/surfaces/customer-account/components/Avatar/Avatar.esnext +5 -0
- package/build/esnext/surfaces/customer-account/components/CustomerAccountAction/CustomerAccountAction.esnext +5 -0
- package/build/esnext/surfaces/customer-account/components/DropZone/DropZone.esnext +5 -0
- package/build/esnext/surfaces/customer-account/components/ImageGroup/ImageGroup.esnext +5 -0
- package/build/esnext/surfaces/customer-account/components/Menu/Menu.esnext +5 -0
- package/build/esnext/surfaces/customer-account/components/Page/Page.esnext +5 -0
- package/build/esnext/surfaces/customer-account/components/PolicyModal/PolicyModal.esnext +8 -0
- package/build/esnext/surfaces/customer-account/components/ResourceItem/ResourceItem.esnext +5 -0
- package/build/esnext/surfaces/customer-account.esnext +12 -0
- package/build/esnext/surfaces/point-of-sale/components/ActionItem/ActionItem.esnext +12 -0
- package/build/esnext/surfaces/point-of-sale/components/Badge/Badge.esnext +6 -0
- package/build/esnext/surfaces/point-of-sale/components/Banner/Banner.esnext +9 -0
- package/build/esnext/surfaces/point-of-sale/components/Button/Button.esnext +8 -0
- package/build/esnext/surfaces/point-of-sale/components/CameraScanner/CameraScanner.esnext +6 -0
- package/build/esnext/surfaces/point-of-sale/components/DatePicker/DatePicker.esnext +8 -0
- package/build/esnext/surfaces/point-of-sale/components/Dialog/Dialog.esnext +12 -0
- package/build/esnext/surfaces/point-of-sale/components/FormattedTextField/FormattedTextField.esnext +10 -0
- package/build/esnext/surfaces/point-of-sale/components/Navigator/Navigator.esnext +1 -1
- package/build/esnext/surfaces/point-of-sale/components/NumberField/NumberField.esnext +6 -0
- package/build/esnext/surfaces/point-of-sale/components/POSBlock/POSBlock.esnext +11 -0
- package/build/esnext/surfaces/point-of-sale/components/POSBlock/POSBlockRow.esnext +9 -0
- package/build/esnext/surfaces/point-of-sale/components/PinPad/PinPad.esnext +24 -0
- package/build/esnext/surfaces/point-of-sale/components/Screen/Screen.esnext +18 -0
- package/build/esnext/surfaces/point-of-sale/components/Section/Section.esnext +10 -0
- package/build/esnext/surfaces/point-of-sale/components/TextArea/TextArea.esnext +6 -0
- package/build/esnext/surfaces/point-of-sale/components/TextField/TextField.esnext +6 -0
- package/build/esnext/surfaces/point-of-sale/components/Tile/Tile.esnext +9 -0
- package/build/esnext/surfaces/point-of-sale/components/TimePicker/TimePicker.esnext +9 -0
- package/build/esnext/surfaces/point-of-sale.esnext +3 -1
- package/build/ts/shared.d.ts +18 -2
- package/build/ts/shared.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/block/block.d.ts +5 -0
- package/build/ts/surfaces/admin/api/block/block.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/checkout-rules/metafields.d.ts +1 -1
- package/build/ts/surfaces/admin/api/checkout-rules/metafields.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/order-routing-rule/metafields.d.ts +1 -1
- package/build/ts/surfaces/admin/api/order-routing-rule/metafields.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/print-action/print-action.d.ts +10 -0
- package/build/ts/surfaces/admin/api/print-action/print-action.d.ts.map +1 -0
- package/build/ts/surfaces/admin/{components/Card/Card.doc-skip.d.ts → api/print-action/print-action.doc.d.ts} +1 -1
- package/build/ts/surfaces/admin/api/print-action/print-action.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/api/resource-picker/resource-picker.d.ts +221 -0
- package/build/ts/surfaces/admin/api/resource-picker/resource-picker.d.ts.map +1 -0
- package/build/ts/surfaces/admin/api/standard/standard.d.ts +11 -0
- package/build/ts/surfaces/admin/api/standard/standard.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api.d.ts +1 -0
- package/build/ts/surfaces/admin/api.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/AdminPrintAction/AdminPrintAction.d.ts +17 -0
- package/build/ts/surfaces/admin/components/AdminPrintAction/AdminPrintAction.d.ts.map +1 -0
- package/build/ts/surfaces/admin/{api/extension-targets/extension-targets.doc.d.ts → components/AdminPrintAction/AdminPrintAction.doc.d.ts} +1 -1
- package/build/ts/surfaces/admin/components/AdminPrintAction/AdminPrintAction.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Box/Box.d.ts +2 -1
- package/build/ts/surfaces/admin/components/Box/Box.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Button/Button.d.ts +7 -0
- package/build/ts/surfaces/admin/components/Button/Button.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Image/Image.d.ts +2 -2
- package/build/ts/surfaces/admin/components/MoneyField/MoneyField.d.ts +7 -0
- package/build/ts/surfaces/admin/components/MoneyField/MoneyField.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/NumberField/NumberField.d.ts +2 -2
- package/build/ts/surfaces/admin/components/NumberField/NumberField.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/TextField/TextField.d.ts +2 -2
- package/build/ts/surfaces/admin/components/TextField/TextField.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/shared/display.d.ts +8 -0
- package/build/ts/surfaces/admin/components/shared/display.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/shared/index.d.ts +15 -0
- package/build/ts/surfaces/admin/components/shared/index.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components.d.ts +2 -8
- package/build/ts/surfaces/admin/components.d.ts.map +1 -1
- package/build/ts/surfaces/admin/extension-targets.d.ts +103 -7
- package/build/ts/surfaces/admin/extension-targets.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/address-autocomplete/shared.d.ts +20 -3
- package/build/ts/surfaces/checkout/api/address-autocomplete/shared.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/address-autocomplete/standard.d.ts +2 -0
- package/build/ts/surfaces/checkout/api/address-autocomplete/standard.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/checkout/checkout.d.ts +10 -6
- package/build/ts/surfaces/checkout/api/checkout/checkout.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/docs.d.ts +4 -0
- package/build/ts/surfaces/checkout/api/docs.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/order-status/order-status.d.ts +5 -0
- package/build/ts/surfaces/checkout/api/order-status/order-status.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/shared.d.ts +6 -0
- package/build/ts/surfaces/checkout/api/shared.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/shipping/shipping-option-item.d.ts +13 -0
- package/build/ts/surfaces/checkout/api/shipping/shipping-option-item.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/shipping/shipping-option-list.d.ts +49 -3
- package/build/ts/surfaces/checkout/api/shipping/shipping-option-list.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/standard/standard.d.ts +126 -45
- package/build/ts/surfaces/checkout/api/standard/standard.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/BlockLayout/BlockLayout.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/BlockStack/BlockStack.d.ts +14 -6
- package/build/ts/surfaces/checkout/components/BlockStack/BlockStack.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/BlockStack/BlockStack.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Chat/Chat.d.ts +78 -0
- package/build/ts/surfaces/checkout/components/Chat/Chat.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Grid/Grid.d.ts +15 -6
- package/build/ts/surfaces/checkout/components/Grid/Grid.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Grid/Grid.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/GridItem/GridItem.d.ts +15 -6
- package/build/ts/surfaces/checkout/components/GridItem/GridItem.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/GridItem/GridItem.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Heading/Heading.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/Heading/Heading.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Icon/Icon.d.ts +2 -2
- package/build/ts/surfaces/checkout/components/Icon/Icon.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/InlineLayout/InlineLayout.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/InlineStack/InlineStack.d.ts +15 -6
- package/build/ts/surfaces/checkout/components/InlineStack/InlineStack.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/InlineStack/InlineStack.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Link/Link.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/Modal/Modal.d.ts +19 -0
- package/build/ts/surfaces/checkout/components/Modal/Modal.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Modal/Modal.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/PaymentIcon/PaymentIcon.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/PaymentIcon/PaymentIcon.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Popover/Popover.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Pressable/Pressable.d.ts +12 -11
- package/build/ts/surfaces/checkout/components/Pressable/Pressable.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Pressable/Pressable.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Progress/Progress.d.ts +40 -0
- package/build/ts/surfaces/checkout/components/Progress/Progress.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Progress/Progress.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Progress/Progress.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/QRCode/QRCode.d.ts +50 -0
- package/build/ts/surfaces/checkout/components/QRCode/QRCode.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/QRCode/QRCode.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/QRCode/QRCode.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/ScrollView/ScrollView.d.ts +38 -5
- package/build/ts/surfaces/checkout/components/ScrollView/ScrollView.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/ScrollView/ScrollView.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Select/Select.d.ts +13 -1
- package/build/ts/surfaces/checkout/components/Select/Select.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Sheet/Sheet.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Spinner/Spinner.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Switch/Switch.d.ts +49 -0
- package/build/ts/surfaces/checkout/components/Switch/Switch.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Switch/Switch.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Switch/Switch.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/View/View.d.ts +61 -41
- package/build/ts/surfaces/checkout/components/View/View.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/View/View.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/shared.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/shared.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components.d.ts +9 -1
- package/build/ts/surfaces/checkout/components.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/helper.docs.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/shared.d.ts +2 -0
- package/build/ts/surfaces/checkout/shared.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/style/style.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/style/types.d.ts +10 -3
- package/build/ts/surfaces/checkout/style/types.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/targets.d.ts +17 -13
- package/build/ts/surfaces/checkout/targets.d.ts.map +1 -1
- package/build/ts/surfaces/checkout.d.ts +5 -4
- package/build/ts/surfaces/checkout.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/api/docs.d.ts +84 -0
- package/build/ts/surfaces/customer-account/api/docs.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/api/order-status/order-status.d.ts +36 -260
- package/build/ts/surfaces/customer-account/api/order-status/order-status.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/api/shared.d.ts +260 -2
- package/build/ts/surfaces/customer-account/api/shared.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/api/standard-api/standard-api.d.ts +195 -0
- package/build/ts/surfaces/customer-account/api/standard-api/standard-api.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/api.d.ts +3 -2
- package/build/ts/surfaces/customer-account/api.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/components/Avatar/Avatar.d.ts +43 -0
- package/build/ts/surfaces/customer-account/components/Avatar/Avatar.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Avatar/Avatar.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Avatar/Avatar.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Avatar/index.d.ts +2 -0
- package/build/ts/surfaces/customer-account/components/Avatar/index.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Card/Card.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Card/Card.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/CustomerAccountAction/CustomerAccountAction.d.ts +21 -0
- package/build/ts/surfaces/customer-account/components/CustomerAccountAction/CustomerAccountAction.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/CustomerAccountAction/CustomerAccountAction.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/CustomerAccountAction/CustomerAccountAction.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/CustomerAccountAction/index.d.ts +3 -0
- package/build/ts/surfaces/customer-account/components/CustomerAccountAction/index.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/DropZone/DropZone.d.ts +67 -0
- package/build/ts/surfaces/customer-account/components/DropZone/DropZone.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/DropZone/DropZone.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/DropZone/DropZone.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/DropZone/index.d.ts +3 -0
- package/build/ts/surfaces/customer-account/components/DropZone/index.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/ImageGroup/ImageGroup.d.ts +32 -0
- package/build/ts/surfaces/customer-account/components/ImageGroup/ImageGroup.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/ImageGroup/ImageGroup.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/ImageGroup/ImageGroup.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/ImageGroup/index.d.ts +3 -0
- package/build/ts/surfaces/customer-account/components/ImageGroup/index.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Menu/Menu.d.ts +21 -0
- package/build/ts/surfaces/customer-account/components/Menu/Menu.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Menu/Menu.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Menu/Menu.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Menu/index.d.ts +2 -0
- package/build/ts/surfaces/customer-account/components/Menu/index.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Page/Page.d.ts +47 -0
- package/build/ts/surfaces/customer-account/components/Page/Page.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Page/Page.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Page/Page.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Page/index.d.ts +3 -0
- package/build/ts/surfaces/customer-account/components/Page/index.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/PolicyModal/PolicyModal.d.ts +30 -0
- package/build/ts/surfaces/customer-account/components/PolicyModal/PolicyModal.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/PolicyModal/index.d.ts +3 -0
- package/build/ts/surfaces/customer-account/components/PolicyModal/index.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/ResourceItem/ResourceItem.d.ts +36 -0
- package/build/ts/surfaces/customer-account/components/ResourceItem/ResourceItem.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/ResourceItem/ResourceItem.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/ResourceItem/ResourceItem.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/ResourceItem/index.d.ts +3 -0
- package/build/ts/surfaces/customer-account/components/ResourceItem/index.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/index.d.ts +7 -0
- package/build/ts/surfaces/customer-account/components/index.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/components/shared-checkout-components.d.ts +1 -1
- package/build/ts/surfaces/customer-account/components/shared-checkout-components.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/components/shared.d.ts +7 -0
- package/build/ts/surfaces/customer-account/components/shared.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/targets.d.ts +69 -8
- package/build/ts/surfaces/customer-account/targets.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/action-target-api/action-target-api.d.ts +9 -0
- package/build/ts/surfaces/point-of-sale/api/action-target-api/action-target-api.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/api/cart-api/cart-api.d.ts +1 -1
- package/build/ts/surfaces/point-of-sale/api/customer-api/customer-api.d.ts +10 -0
- package/build/ts/surfaces/point-of-sale/api/customer-api/customer-api.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/api/draft-order-api/draft-order-api.d.ts +18 -0
- package/build/ts/surfaces/point-of-sale/api/draft-order-api/draft-order-api.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/api/navigation-api/navigation-api.d.ts +1 -1
- package/build/ts/surfaces/point-of-sale/api/navigation-api/navigation-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/order-api/order-api.d.ts +2 -2
- package/build/ts/surfaces/point-of-sale/api/product-api/product-api.d.ts +10 -0
- package/build/ts/surfaces/point-of-sale/api/product-api/product-api.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/api/scanner-api/scanner-api.d.ts +2 -2
- package/build/ts/surfaces/point-of-sale/api.d.ts +7 -1
- package/build/ts/surfaces/point-of-sale/api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/ActionItem/ActionItem.d.ts +24 -0
- package/build/ts/surfaces/point-of-sale/components/ActionItem/ActionItem.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/components/Badge/Badge.d.ts +14 -0
- package/build/ts/surfaces/point-of-sale/components/Badge/Badge.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Banner/Banner.d.ts +17 -8
- package/build/ts/surfaces/point-of-sale/components/Banner/Banner.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Button/Button.d.ts +25 -1
- package/build/ts/surfaces/point-of-sale/components/Button/Button.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/CameraScanner/CameraScanner.d.ts +20 -2
- package/build/ts/surfaces/point-of-sale/components/CameraScanner/CameraScanner.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/DatePicker/DatePicker.d.ts +21 -0
- package/build/ts/surfaces/point-of-sale/components/DatePicker/DatePicker.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Dialog/Dialog.d.ts +38 -0
- package/build/ts/surfaces/point-of-sale/components/Dialog/Dialog.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/FormattedTextField/FormattedTextField.d.ts +22 -0
- package/build/ts/surfaces/point-of-sale/components/FormattedTextField/FormattedTextField.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Icon/Icon.d.ts +7 -0
- package/build/ts/surfaces/point-of-sale/components/Icon/Icon.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Image/Image.d.ts +3 -0
- package/build/ts/surfaces/point-of-sale/components/Image/Image.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/List/List.d.ts +14 -2
- package/build/ts/surfaces/point-of-sale/components/List/List.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Navigator/Navigator.d.ts +4 -1
- package/build/ts/surfaces/point-of-sale/components/Navigator/Navigator.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/NumberField/NumberField.d.ts +0 -2
- package/build/ts/surfaces/point-of-sale/components/NumberField/NumberField.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/POSBlock/POSBlock.d.ts +31 -0
- package/build/ts/surfaces/point-of-sale/components/POSBlock/POSBlock.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/components/POSBlock/POSBlockRow.d.ts +15 -0
- package/build/ts/surfaces/point-of-sale/components/POSBlock/POSBlockRow.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/components/PinPad/PinPad.d.ts +27 -0
- package/build/ts/surfaces/point-of-sale/components/PinPad/PinPad.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/RadioButtonList/RadioButtonList.d.ts +12 -0
- package/build/ts/surfaces/point-of-sale/components/RadioButtonList/RadioButtonList.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Screen/Screen.d.ts +43 -2
- package/build/ts/surfaces/point-of-sale/components/Screen/Screen.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/SearchBar/SearchBar.d.ts +18 -0
- package/build/ts/surfaces/point-of-sale/components/SearchBar/SearchBar.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Section/Section.d.ts +20 -0
- package/build/ts/surfaces/point-of-sale/components/Section/Section.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/SegmentedControl/SegmentedControl.d.ts +18 -0
- package/build/ts/surfaces/point-of-sale/components/SegmentedControl/SegmentedControl.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Selectable/Selectable.d.ts +6 -0
- package/build/ts/surfaces/point-of-sale/components/Selectable/Selectable.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Stack/Stack.d.ts +27 -1
- package/build/ts/surfaces/point-of-sale/components/Stack/Stack.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Stepper/Stepper.d.ts +3 -3
- package/build/ts/surfaces/point-of-sale/components/Text/Text.d.ts +6 -0
- package/build/ts/surfaces/point-of-sale/components/Text/Text.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/TextArea/TextArea.d.ts +3 -0
- package/build/ts/surfaces/point-of-sale/components/TextArea/TextArea.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Tile/Tile.d.ts +26 -0
- package/build/ts/surfaces/point-of-sale/components/Tile/Tile.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/TimeField/TimeField.d.ts +4 -0
- package/build/ts/surfaces/point-of-sale/components/TimeField/TimeField.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/TimePicker/TimePicker.d.ts +27 -0
- package/build/ts/surfaces/point-of-sale/components/TimePicker/TimePicker.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/shared/BaseTextField.d.ts +26 -1
- package/build/ts/surfaces/point-of-sale/components/shared/BaseTextField.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/shared/InputField.d.ts +48 -0
- package/build/ts/surfaces/point-of-sale/components/shared/InputField.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components.d.ts +7 -3
- package/build/ts/surfaces/point-of-sale/components.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/targets.d.ts +21 -4
- package/build/ts/surfaces/point-of-sale/targets.d.ts.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +7 -5
- package/src/shared.ts +28 -0
- package/src/surfaces/admin/api/block/block.ts +6 -0
- package/src/surfaces/admin/api/checkout-rules/metafields.ts +1 -1
- package/src/surfaces/admin/api/checkout-rules/validation-settings.doc.ts +1 -1
- package/src/surfaces/admin/api/order-routing-rule/metafields.ts +1 -1
- package/src/surfaces/admin/api/print-action/print-action.doc.ts +20 -0
- package/src/surfaces/admin/api/print-action/print-action.ts +12 -0
- package/src/surfaces/admin/api/resource-picker/resource-picker.ts +240 -0
- package/src/surfaces/admin/api/standard/standard.ts +12 -0
- package/src/surfaces/admin/api.ts +1 -0
- package/src/surfaces/admin/components/AdminPrintAction/AdminPrintAction.doc.ts +52 -0
- package/src/surfaces/admin/components/AdminPrintAction/AdminPrintAction.ts +18 -0
- package/src/surfaces/admin/components/AdminPrintAction/examples/basic-adminprintaction.example.ts +14 -0
- package/src/surfaces/admin/components/Box/Box.ts +3 -1
- package/src/surfaces/admin/components/Button/Button.ts +8 -0
- package/src/surfaces/admin/components/Image/Image.ts +2 -2
- package/src/surfaces/admin/components/MoneyField/MoneyField.ts +171 -1
- package/src/surfaces/admin/components/NumberField/NumberField.ts +3 -1
- package/src/surfaces/admin/components/TextField/TextField.ts +3 -1
- package/src/surfaces/admin/components/shared/display.ts +7 -0
- package/src/surfaces/admin/components/shared/index.ts +16 -0
- package/src/surfaces/admin/components.ts +2 -8
- package/src/surfaces/admin/extension-targets.ts +170 -8
- package/src/surfaces/checkout/api/address-autocomplete/shared.ts +29 -4
- package/src/surfaces/checkout/api/address-autocomplete/standard.ts +2 -0
- package/src/surfaces/checkout/api/checkout/checkout.ts +15 -6
- package/src/surfaces/checkout/api/docs.ts +5 -0
- package/src/surfaces/checkout/api/order-status/order-status.ts +5 -0
- package/src/surfaces/checkout/api/shared.ts +7 -0
- package/src/surfaces/checkout/api/shipping/shipping-option-item.ts +15 -0
- package/src/surfaces/checkout/api/shipping/shipping-option-list.ts +58 -3
- package/src/surfaces/checkout/api/standard/standard.ts +147 -51
- package/src/surfaces/checkout/components/BlockLayout/BlockLayout.doc.ts +8 -1
- package/src/surfaces/checkout/components/BlockStack/BlockStack.doc.ts +8 -1
- package/src/surfaces/checkout/components/BlockStack/BlockStack.ts +14 -4
- package/src/surfaces/checkout/components/Chat/Chat.ts +85 -0
- package/src/surfaces/checkout/components/Disclosure/Disclosure.doc.ts +1 -1
- package/src/surfaces/checkout/components/Grid/Grid.doc.ts +6 -0
- package/src/surfaces/checkout/components/Grid/Grid.ts +15 -4
- package/src/surfaces/checkout/components/GridItem/GridItem.doc.ts +6 -0
- package/src/surfaces/checkout/components/GridItem/GridItem.ts +15 -4
- package/src/surfaces/checkout/components/Heading/Heading.ts +1 -1
- package/src/surfaces/checkout/components/Icon/Icon.ts +6 -0
- package/src/surfaces/checkout/components/InlineLayout/InlineLayout.doc.ts +8 -1
- package/src/surfaces/checkout/components/InlineStack/InlineStack.doc.ts +8 -1
- package/src/surfaces/checkout/components/InlineStack/InlineStack.ts +15 -4
- package/src/surfaces/checkout/components/Link/Link.ts +1 -1
- package/src/surfaces/checkout/components/Modal/Modal.doc.ts +8 -1
- package/src/surfaces/checkout/components/Modal/Modal.ts +19 -0
- package/src/surfaces/checkout/components/PaymentIcon/PaymentIcon.ts +400 -399
- package/src/surfaces/checkout/components/Popover/Popover.doc.ts +8 -1
- package/src/surfaces/checkout/components/Pressable/Pressable.doc.ts +8 -1
- package/src/surfaces/checkout/components/Pressable/Pressable.ts +12 -11
- package/src/surfaces/checkout/components/Progress/Progress.doc.ts +89 -0
- package/src/surfaces/checkout/components/Progress/Progress.ts +44 -0
- package/src/surfaces/checkout/components/Progress/examples/basic-progress.example.ts +9 -0
- package/src/surfaces/checkout/components/QRCode/QRCode.doc.ts +60 -0
- package/src/surfaces/checkout/components/QRCode/QRCode.ts +54 -0
- package/src/surfaces/checkout/components/QRCode/examples/basic-qrcode.example.ts +9 -0
- package/src/surfaces/checkout/components/ScrollView/ScrollView.doc.ts +8 -1
- package/src/surfaces/checkout/components/ScrollView/ScrollView.ts +37 -3
- package/src/surfaces/checkout/components/Select/Select.ts +13 -1
- package/src/surfaces/checkout/components/Sheet/Sheet.doc.ts +8 -1
- package/src/surfaces/checkout/components/Spinner/Spinner.doc.ts +8 -1
- package/src/surfaces/checkout/components/Switch/Switch.doc.ts +80 -0
- package/src/surfaces/checkout/components/Switch/Switch.ts +50 -0
- package/src/surfaces/checkout/components/Switch/examples/basic-switch.example.ts +9 -0
- package/src/surfaces/checkout/components/View/View.doc.ts +8 -1
- package/src/surfaces/checkout/components/View/View.ts +85 -45
- package/src/surfaces/checkout/components/shared.ts +1 -1
- package/src/surfaces/checkout/components.ts +13 -0
- package/src/surfaces/checkout/helper.docs.ts +36 -0
- package/src/surfaces/checkout/shared.ts +5 -0
- package/src/surfaces/checkout/style/examples/hiding.example.tsx +8 -0
- package/src/surfaces/checkout/style/style.doc.ts +14 -0
- package/src/surfaces/checkout/style/types.ts +10 -3
- package/src/surfaces/checkout/targets.ts +27 -12
- package/src/surfaces/checkout.ts +19 -2
- package/src/surfaces/customer-account/api/docs.ts +151 -0
- package/src/surfaces/customer-account/api/order-status/order-status.ts +39 -288
- package/src/surfaces/customer-account/api/shared.ts +290 -0
- package/src/surfaces/customer-account/api/standard-api/standard-api.ts +230 -0
- package/src/surfaces/customer-account/api.ts +35 -15
- package/src/surfaces/customer-account/components/Avatar/Avatar.doc.ts +68 -0
- package/src/surfaces/customer-account/components/Avatar/Avatar.ts +46 -0
- package/src/surfaces/customer-account/components/Avatar/examples/basic-Avatar-js.example.ts +26 -0
- package/src/surfaces/customer-account/components/Avatar/index.ts +1 -0
- package/src/surfaces/customer-account/components/Card/Card.doc.ts +54 -0
- package/src/surfaces/customer-account/components/Card/examples/basic-Card-js.example.ts +47 -0
- package/src/surfaces/customer-account/components/CustomerAccountAction/CustomerAccountAction.doc.ts +66 -0
- package/src/surfaces/customer-account/components/CustomerAccountAction/CustomerAccountAction.ts +22 -0
- package/src/surfaces/customer-account/components/CustomerAccountAction/examples/basic-CustomerAccountAction-js.example.ts +27 -0
- package/src/surfaces/customer-account/components/CustomerAccountAction/index.ts +2 -0
- package/src/surfaces/customer-account/components/DropZone/DropZone.doc.ts +67 -0
- package/src/surfaces/customer-account/components/DropZone/DropZone.ts +76 -0
- package/src/surfaces/customer-account/components/DropZone/examples/basic-DropZone-js.example.ts +13 -0
- package/src/surfaces/customer-account/components/DropZone/index.ts +2 -0
- package/src/surfaces/customer-account/components/ImageGroup/ImageGroup.doc.ts +53 -0
- package/src/surfaces/customer-account/components/ImageGroup/ImageGroup.ts +35 -0
- package/src/surfaces/customer-account/components/ImageGroup/examples/basic-ImageGroup-js.example.ts +38 -0
- package/src/surfaces/customer-account/components/ImageGroup/index.ts +2 -0
- package/src/surfaces/customer-account/components/Menu/Menu.doc.ts +80 -0
- package/src/surfaces/customer-account/components/Menu/Menu.ts +19 -0
- package/src/surfaces/customer-account/components/Menu/examples/basic-Menu-js.example.ts +26 -0
- package/src/surfaces/customer-account/components/Menu/index.ts +1 -0
- package/src/surfaces/customer-account/components/Page/Page.doc.ts +76 -0
- package/src/surfaces/customer-account/components/Page/Page.ts +51 -0
- package/src/surfaces/customer-account/components/Page/examples/basic-Page-js.example.ts +35 -0
- package/src/surfaces/customer-account/components/Page/index.ts +2 -0
- package/src/surfaces/customer-account/components/PolicyModal/PolicyModal.ts +33 -0
- package/src/surfaces/customer-account/components/PolicyModal/index.ts +2 -0
- package/src/surfaces/customer-account/components/ResourceItem/ResourceItem.doc.ts +62 -0
- package/src/surfaces/customer-account/components/ResourceItem/ResourceItem.ts +41 -0
- package/src/surfaces/customer-account/components/ResourceItem/examples/basic-ResourceItem-js.example.ts +59 -0
- package/src/surfaces/customer-account/components/ResourceItem/index.ts +2 -0
- package/src/surfaces/customer-account/components/index.ts +9 -0
- package/src/surfaces/customer-account/components/shared-checkout-components.ts +8 -0
- package/src/surfaces/customer-account/components/shared.ts +6 -0
- package/src/surfaces/customer-account/targets.ts +169 -8
- package/src/surfaces/point-of-sale/api/action-target-api/action-target-api.ts +9 -0
- package/src/surfaces/point-of-sale/api/cart-api/cart-api.ts +1 -1
- package/src/surfaces/point-of-sale/api/customer-api/customer-api.ts +10 -0
- package/src/surfaces/point-of-sale/api/draft-order-api/draft-order-api.ts +20 -0
- package/src/surfaces/point-of-sale/api/navigation-api/navigation-api.ts +1 -1
- package/src/surfaces/point-of-sale/api/order-api/order-api.tsx +2 -2
- package/src/surfaces/point-of-sale/api/product-api/product-api.ts +10 -0
- package/src/surfaces/point-of-sale/api/scanner-api/scanner-api.ts +2 -2
- package/src/surfaces/point-of-sale/api.ts +21 -1
- package/src/surfaces/point-of-sale/components/ActionItem/ActionItem.ts +24 -0
- package/src/surfaces/point-of-sale/components/Badge/Badge.ts +16 -0
- package/src/surfaces/point-of-sale/components/Banner/Banner.ts +17 -8
- package/src/surfaces/point-of-sale/components/Button/Button.ts +25 -1
- package/src/surfaces/point-of-sale/components/CameraScanner/CameraScanner.ts +21 -5
- package/src/surfaces/point-of-sale/components/DatePicker/DatePicker.ts +22 -0
- package/src/surfaces/point-of-sale/components/Dialog/Dialog.ts +46 -0
- package/src/surfaces/point-of-sale/components/FormattedTextField/FormattedTextField.ts +22 -1
- package/src/surfaces/point-of-sale/components/Icon/Icon.ts +7 -0
- package/src/surfaces/point-of-sale/components/Image/Image.ts +3 -0
- package/src/surfaces/point-of-sale/components/List/List.ts +16 -2
- package/src/surfaces/point-of-sale/components/Navigator/Navigator.ts +4 -1
- package/src/surfaces/point-of-sale/components/NumberField/NumberField.ts +0 -2
- package/src/surfaces/point-of-sale/components/POSBlock/POSBlock.ts +31 -0
- package/src/surfaces/point-of-sale/components/POSBlock/POSBlockRow.ts +16 -0
- package/src/surfaces/point-of-sale/components/PinPad/PinPad.ts +27 -0
- package/src/surfaces/point-of-sale/components/RadioButtonList/RadioButtonList.ts +12 -0
- package/src/surfaces/point-of-sale/components/Screen/Screen.ts +43 -2
- package/src/surfaces/point-of-sale/components/SearchBar/SearchBar.ts +18 -0
- package/src/surfaces/point-of-sale/components/Section/Section.ts +20 -0
- package/src/surfaces/point-of-sale/components/SegmentedControl/SegmentedControl.ts +18 -0
- package/src/surfaces/point-of-sale/components/Selectable/Selectable.ts +6 -0
- package/src/surfaces/point-of-sale/components/Stack/Stack.ts +27 -1
- package/src/surfaces/point-of-sale/components/Stepper/Stepper.ts +3 -3
- package/src/surfaces/point-of-sale/components/Text/Text.ts +6 -0
- package/src/surfaces/point-of-sale/components/TextArea/TextArea.ts +3 -0
- package/src/surfaces/point-of-sale/components/Tile/Tile.ts +26 -0
- package/src/surfaces/point-of-sale/components/TimeField/TimeField.ts +4 -0
- package/src/surfaces/point-of-sale/components/TimePicker/TimePicker.ts +27 -0
- package/src/surfaces/point-of-sale/components/shared/BaseTextField.ts +26 -1
- package/src/surfaces/point-of-sale/components/shared/InputField.ts +48 -0
- package/src/surfaces/point-of-sale/components.ts +11 -3
- package/src/surfaces/point-of-sale/targets.ts +107 -7
- package/build/cjs/surfaces/admin/components/ResourceItem/ResourceItem.js +0 -14
- package/build/cjs/surfaces/admin/components/ResourceList/ResourceList.js +0 -15
- package/build/cjs/surfaces/admin/components/Thumbnail/Thumbnail.js +0 -12
- package/build/esm/surfaces/admin/components/Card/Card.mjs +0 -5
- package/build/esm/surfaces/admin/components/ResourceItem/ResourceItem.mjs +0 -10
- package/build/esm/surfaces/admin/components/ResourceList/ResourceList.mjs +0 -11
- package/build/esm/surfaces/admin/components/Thumbnail/Thumbnail.mjs +0 -8
- package/build/esm/surfaces/point-of-sale/components/Actiontem/ActionItem.mjs +0 -5
- package/build/esnext/surfaces/admin/components/Card/Card.esnext +0 -5
- package/build/esnext/surfaces/admin/components/ResourceItem/ResourceItem.esnext +0 -10
- package/build/esnext/surfaces/admin/components/ResourceList/ResourceList.esnext +0 -11
- package/build/esnext/surfaces/admin/components/Thumbnail/Thumbnail.esnext +0 -8
- package/build/esnext/surfaces/point-of-sale/components/Actiontem/ActionItem.esnext +0 -5
- package/build/ts/surfaces/admin/api/extension-targets/extension-targets.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/Card/Card.d.ts +0 -15
- package/build/ts/surfaces/admin/components/Card/Card.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/Card/Card.doc-skip.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/ResourceItem/ResourceItem.d.ts +0 -22
- package/build/ts/surfaces/admin/components/ResourceItem/ResourceItem.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/ResourceList/ResourceList.d.ts +0 -26
- package/build/ts/surfaces/admin/components/ResourceList/ResourceList.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/Thumbnail/Thumbnail.d.ts +0 -19
- package/build/ts/surfaces/admin/components/Thumbnail/Thumbnail.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/api/address-autocomplete/address-autocomplete.d.ts +0 -76
- package/build/ts/surfaces/checkout/api/address-autocomplete/address-autocomplete.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/components/Actiontem/ActionItem.d.ts +0 -10
- package/build/ts/surfaces/point-of-sale/components/Actiontem/ActionItem.d.ts.map +0 -1
- package/src/surfaces/admin/api/extension-targets/extension-targets.doc.ts +0 -20
- package/src/surfaces/admin/components/Card/Card.doc-skip.ts +0 -42
- package/src/surfaces/admin/components/Card/Card.ts +0 -13
- package/src/surfaces/admin/components/Card/examples/basic-card.example.ts +0 -11
- package/src/surfaces/admin/components/ResourceItem/ResourceItem.ts +0 -19
- package/src/surfaces/admin/components/ResourceItem/examples/basic-resourceitem.example.ts +0 -22
- package/src/surfaces/admin/components/ResourceList/ResourceList.ts +0 -30
- package/src/surfaces/admin/components/ResourceList/examples/basic-resourcelist.example.ts +0 -29
- package/src/surfaces/admin/components/Thumbnail/Thumbnail.ts +0 -31
- package/src/surfaces/admin/components/Thumbnail/examples/basic-thumbnail.example.ts +0 -13
- package/src/surfaces/checkout/api/address-autocomplete/address-autocomplete.ts +0 -87
- package/src/surfaces/point-of-sale/components/Actiontem/ActionItem.ts +0 -10
|
@@ -44,7 +44,14 @@ const data: ReferenceEntityTemplateSchema = {
|
|
|
44
44
|
'Use popovers if:\n\n- The intent is to ask the customer for information.\n\n- It’s possible to use at most two rows of input fields to get the information.',
|
|
45
45
|
},
|
|
46
46
|
],
|
|
47
|
-
related: [
|
|
47
|
+
related: [
|
|
48
|
+
{
|
|
49
|
+
name: 'Ui',
|
|
50
|
+
subtitle: 'API',
|
|
51
|
+
url: 'ui',
|
|
52
|
+
type: 'API',
|
|
53
|
+
},
|
|
54
|
+
],
|
|
48
55
|
};
|
|
49
56
|
|
|
50
57
|
export default data;
|
|
@@ -35,7 +35,14 @@ const data: ReferenceEntityTemplateSchema = {
|
|
|
35
35
|
],
|
|
36
36
|
},
|
|
37
37
|
},
|
|
38
|
-
related: [
|
|
38
|
+
related: [
|
|
39
|
+
{
|
|
40
|
+
subtitle: 'Utility',
|
|
41
|
+
name: 'StyleHelper',
|
|
42
|
+
url: '/docs/api/checkout-ui-extensions/unstable/components/utilities/stylehelper',
|
|
43
|
+
type: 'utility',
|
|
44
|
+
},
|
|
45
|
+
],
|
|
39
46
|
};
|
|
40
47
|
|
|
41
48
|
export default data;
|
|
@@ -14,29 +14,35 @@ import type {
|
|
|
14
14
|
CornerProps,
|
|
15
15
|
Opacity,
|
|
16
16
|
BackgroundProps,
|
|
17
|
+
IdProps,
|
|
17
18
|
} from '../shared';
|
|
18
19
|
|
|
19
20
|
export interface PressableProps
|
|
20
21
|
extends Pick<BackgroundProps, 'background'>,
|
|
21
22
|
BorderProps,
|
|
22
23
|
CornerProps,
|
|
24
|
+
IdProps,
|
|
23
25
|
SizingProps,
|
|
24
26
|
SpacingProps,
|
|
25
27
|
OverlayActivatorProps,
|
|
26
28
|
DisclosureActivatorProps {
|
|
27
29
|
/**
|
|
28
|
-
* Changes the display of the
|
|
30
|
+
* Changes the display of the component.
|
|
29
31
|
*
|
|
30
32
|
*
|
|
31
|
-
* `inline`
|
|
33
|
+
* `inline` the component starts on the same line as preceding inline content and allows subsequent content to continue on the same line.
|
|
32
34
|
*
|
|
33
|
-
* `block`
|
|
35
|
+
* `block` the component starts on its own new line and fills its parent.
|
|
34
36
|
*
|
|
37
|
+
* `auto` resets the component to its initial value. The actual value depends on the component and context.
|
|
35
38
|
*
|
|
36
|
-
*
|
|
39
|
+
* `none` hides the component and removes it from the accessibility tree, making it invisible to screen readers.
|
|
40
|
+
*
|
|
41
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/display
|
|
42
|
+
*
|
|
43
|
+
* @defaultValue 'auto'
|
|
37
44
|
*/
|
|
38
|
-
display?: Display
|
|
39
|
-
|
|
45
|
+
display?: MaybeResponsiveConditionalStyle<Display>;
|
|
40
46
|
/**
|
|
41
47
|
* A label that describes the purpose or contents of the element. When set,
|
|
42
48
|
* it will be announced to buyers using assistive technologies and will
|
|
@@ -60,11 +66,6 @@ export interface PressableProps
|
|
|
60
66
|
*/
|
|
61
67
|
disabled?: boolean;
|
|
62
68
|
|
|
63
|
-
/**
|
|
64
|
-
* A unique identifier for the Pressable.
|
|
65
|
-
*/
|
|
66
|
-
id?: string;
|
|
67
|
-
|
|
68
69
|
/**
|
|
69
70
|
* Disables the button while loading. Unlike `Button`, no indicator is rendered while loading.
|
|
70
71
|
*/
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import type {ReferenceEntityTemplateSchema} from '@shopify/generate-docs';
|
|
2
|
+
|
|
3
|
+
import {getExample} from '../../helper.docs';
|
|
4
|
+
|
|
5
|
+
const data: ReferenceEntityTemplateSchema = {
|
|
6
|
+
name: 'Progress',
|
|
7
|
+
description: 'Use to visually represent the completion of a task or process.',
|
|
8
|
+
requires: '',
|
|
9
|
+
isVisualComponent: true,
|
|
10
|
+
thumbnail: 'progress-thumbnail.png',
|
|
11
|
+
type: '',
|
|
12
|
+
definitions: [
|
|
13
|
+
{
|
|
14
|
+
title: 'ProgressProps',
|
|
15
|
+
description: '',
|
|
16
|
+
type: 'ProgressProps',
|
|
17
|
+
},
|
|
18
|
+
],
|
|
19
|
+
category: 'Components',
|
|
20
|
+
subCategory: 'Feedback',
|
|
21
|
+
defaultExample: {
|
|
22
|
+
image: 'progress-indeterminate.gif',
|
|
23
|
+
codeblock: {
|
|
24
|
+
title: 'Indeterminate state',
|
|
25
|
+
tabs: [
|
|
26
|
+
{
|
|
27
|
+
title: 'React',
|
|
28
|
+
code: '../../../../../../ui-extensions-react/src/surfaces/checkout/components/Progress/examples/basic-progress.example.tsx',
|
|
29
|
+
language: 'tsx',
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
title: 'JS',
|
|
33
|
+
code: './examples/basic-progress.example.ts',
|
|
34
|
+
language: 'js',
|
|
35
|
+
},
|
|
36
|
+
],
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
subSections: [
|
|
40
|
+
{
|
|
41
|
+
type: 'Generic',
|
|
42
|
+
anchorLink: 'best-practices',
|
|
43
|
+
title: 'Best Practices',
|
|
44
|
+
sectionContent: `
|
|
45
|
+
Use components like [TextBlock](../titles-and-text/textblock) or [Text](../titles-and-text/text), along with the Progress component, to display text indicating the status of the progress bar.
|
|
46
|
+
|
|
47
|
+
### Loading states
|
|
48
|
+
|
|
49
|
+
For loading states, add text to reassure the user that the progress bar is not frozen.
|
|
50
|
+
|
|
51
|
+

|
|
52
|
+
|
|
53
|
+
### Error states
|
|
54
|
+
|
|
55
|
+
For error states, add text or a [Banner](./banner) to describe the error and next steps. Use the \`critical\` tone property to convey urgency.
|
|
56
|
+
|
|
57
|
+

|
|
58
|
+
|
|
59
|
+
### Visualize a goal
|
|
60
|
+
|
|
61
|
+
Use the Progress component to visualize a goal that's valuable to the customer.
|
|
62
|
+
|
|
63
|
+
Here's an example of using a progress bar to show a customer's progress toward the next rewards tier:
|
|
64
|
+
|
|
65
|
+

|
|
66
|
+
|
|
67
|
+
Here's an example of using a progress bar to show how much more a customer needs to spend to get free shipping:
|
|
68
|
+
|
|
69
|
+

|
|
70
|
+
`,
|
|
71
|
+
},
|
|
72
|
+
],
|
|
73
|
+
examples: {
|
|
74
|
+
description: '',
|
|
75
|
+
examples: [
|
|
76
|
+
getExample('ui-components/progress-determinate-state', ['jsx', 'js']),
|
|
77
|
+
],
|
|
78
|
+
},
|
|
79
|
+
related: [
|
|
80
|
+
{
|
|
81
|
+
name: 'Spinner',
|
|
82
|
+
subtitle: 'Component',
|
|
83
|
+
url: 'spinner',
|
|
84
|
+
type: 'Component',
|
|
85
|
+
},
|
|
86
|
+
],
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
export default data;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import {createRemoteComponent} from '@remote-ui/core';
|
|
2
|
+
|
|
3
|
+
import type {IdProps} from '../shared';
|
|
4
|
+
|
|
5
|
+
type Tone = 'auto' | 'critical';
|
|
6
|
+
|
|
7
|
+
export interface ProgressProps extends IdProps {
|
|
8
|
+
/**
|
|
9
|
+
* Specify how much of the task that has been completed.
|
|
10
|
+
* It must be a valid floating point number between 0 and max, or between 0 and 1 if max is omitted.
|
|
11
|
+
* When undefined, the progress bar is indeterminate;
|
|
12
|
+
* this indicates that an activity is ongoing with no indication of how long it is expected to take.
|
|
13
|
+
*
|
|
14
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/progress#value
|
|
15
|
+
*/
|
|
16
|
+
value?: number;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Define the maximum limit of the progress element.
|
|
20
|
+
* It must have a value greater than 0 and be a valid floating point number.
|
|
21
|
+
*
|
|
22
|
+
* @defaultValue 1
|
|
23
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/progress#max
|
|
24
|
+
*/
|
|
25
|
+
max?: number;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Set the color of the progress bar.
|
|
29
|
+
*
|
|
30
|
+
* @defaultValue 'auto'
|
|
31
|
+
*/
|
|
32
|
+
tone?: Tone;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* A label to use for the Progress that will be used for buyers using assistive technologies like screen readers.
|
|
36
|
+
* It will also be used to replace the animated loading indicator when buyers prefer reduced motion.
|
|
37
|
+
*
|
|
38
|
+
*/
|
|
39
|
+
accessibilityLabel?: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export const Progress = createRemoteComponent<'Progress', ProgressProps>(
|
|
43
|
+
'Progress',
|
|
44
|
+
);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import {extension, Progress} from '@shopify/ui-extensions/checkout';
|
|
2
|
+
|
|
3
|
+
export default extension('purchase.checkout.block.render', (root) => {
|
|
4
|
+
const baseProgress = root.createComponent(Progress, {
|
|
5
|
+
accessibilityLabel: 'Loading',
|
|
6
|
+
});
|
|
7
|
+
|
|
8
|
+
root.appendChild(baseProgress);
|
|
9
|
+
});
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import type {ReferenceEntityTemplateSchema} from '@shopify/generate-docs';
|
|
2
|
+
|
|
3
|
+
import {getExample} from '../../helper.docs';
|
|
4
|
+
|
|
5
|
+
const data: ReferenceEntityTemplateSchema = {
|
|
6
|
+
name: 'QRCode',
|
|
7
|
+
description: 'Used to quickly access scannable data.',
|
|
8
|
+
requires: '',
|
|
9
|
+
isVisualComponent: true,
|
|
10
|
+
thumbnail: 'qrcode-thumbnail.png',
|
|
11
|
+
type: '',
|
|
12
|
+
definitions: [
|
|
13
|
+
{
|
|
14
|
+
title: 'QRCodeProps',
|
|
15
|
+
description: '',
|
|
16
|
+
type: 'QRCodeProps',
|
|
17
|
+
},
|
|
18
|
+
],
|
|
19
|
+
category: 'Components',
|
|
20
|
+
subCategory: 'Other',
|
|
21
|
+
defaultExample: {
|
|
22
|
+
image: 'qrcode-default.png',
|
|
23
|
+
codeblock: {
|
|
24
|
+
title: 'Basic QR Code',
|
|
25
|
+
tabs: [
|
|
26
|
+
{
|
|
27
|
+
title: 'React',
|
|
28
|
+
code: '../../../../../../ui-extensions-react/src/surfaces/checkout/components/QRCode/examples/basic-qrcode.example.tsx',
|
|
29
|
+
language: 'tsx',
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
title: 'JS',
|
|
33
|
+
code: './examples/basic-qrcode.example.ts',
|
|
34
|
+
language: 'js',
|
|
35
|
+
},
|
|
36
|
+
],
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
subSections: [
|
|
40
|
+
{
|
|
41
|
+
type: 'Generic',
|
|
42
|
+
anchorLink: 'best-practices',
|
|
43
|
+
title: 'Best Practices',
|
|
44
|
+
sectionContent: `
|
|
45
|
+
- Always test that the QR code is scannable from a smartphone.
|
|
46
|
+
- Include a square logo if that’s what your customers are familiar with.
|
|
47
|
+
- Increase usability by adding a text description of what the QR code does and provide alternate methods to get to the same destination, like a text input containing the value.`,
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
examples: {
|
|
51
|
+
description: '',
|
|
52
|
+
examples: [
|
|
53
|
+
getExample('ui-components/qrcode-image', ['jsx', 'js']),
|
|
54
|
+
getExample('ui-components/qrcode-fill-size', ['jsx', 'js']),
|
|
55
|
+
],
|
|
56
|
+
},
|
|
57
|
+
related: [],
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
export default data;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import {createRemoteComponent} from '@remote-ui/core';
|
|
2
|
+
|
|
3
|
+
import type {IdProps, BorderStyle} from '../shared';
|
|
4
|
+
|
|
5
|
+
export interface QRCodeProps extends IdProps {
|
|
6
|
+
/**
|
|
7
|
+
* The content to be encoded in the QR code, which can be any string such as a URL, email address, plain text, etc.
|
|
8
|
+
* Specific string formatting can trigger actions on the user’s device when scanned, like opening geolocation
|
|
9
|
+
* coordinates on a map, opening a preferred app or app store entry, preparing an email, text message, and more.
|
|
10
|
+
*/
|
|
11
|
+
content?: string;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* URL of an image to be displayed in the center of the QR code.
|
|
15
|
+
* This is useful for branding or to indicate to the user what scanning the QR code will do.
|
|
16
|
+
* By default, no image is displayed.
|
|
17
|
+
*/
|
|
18
|
+
logo?: string;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* The displayed size of the QR code.
|
|
22
|
+
*
|
|
23
|
+
* `fill`: the QR code will takes up 100% of the available inline-size and maintain a 1:1 aspect ratio.
|
|
24
|
+
*
|
|
25
|
+
* `auto`: the QR code will be displayed at its default size.
|
|
26
|
+
*
|
|
27
|
+
* @default 'auto'
|
|
28
|
+
*/
|
|
29
|
+
size?: 'auto' | 'fill';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Adjust the border style.
|
|
33
|
+
*
|
|
34
|
+
* @default 'base'
|
|
35
|
+
*/
|
|
36
|
+
border?: Extract<BorderStyle, 'none' | 'base'>;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* A label that describes the purpose or contents of the QR code. When set,
|
|
40
|
+
* it will be announced to users using assistive technologies and will
|
|
41
|
+
* provide more context about what the QR code may do when scanned.
|
|
42
|
+
*
|
|
43
|
+
* @default 'QR code' (translated to the user’s locale)
|
|
44
|
+
*/
|
|
45
|
+
accessibilityLabel?: string;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Invoked when the conversion of `content` to a QR code fails.
|
|
49
|
+
* If an error occurs, the QR code and its child elements will not be displayed.
|
|
50
|
+
*/
|
|
51
|
+
onError?: () => void;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export const QRCode = createRemoteComponent<'QRCode', QRCodeProps>('QRCode');
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import {extension, QRCode} from '@shopify/ui-extensions/checkout';
|
|
2
|
+
|
|
3
|
+
export default extension('purchase.checkout.block.render', (root) => {
|
|
4
|
+
const qrCode = root.createComponent(QRCode, {
|
|
5
|
+
content: 'https://shopify.com',
|
|
6
|
+
});
|
|
7
|
+
|
|
8
|
+
root.appendChild(qrCode);
|
|
9
|
+
});
|
|
@@ -35,7 +35,14 @@ const data: ReferenceEntityTemplateSchema = {
|
|
|
35
35
|
],
|
|
36
36
|
},
|
|
37
37
|
},
|
|
38
|
-
related: [
|
|
38
|
+
related: [
|
|
39
|
+
{
|
|
40
|
+
subtitle: 'Utility',
|
|
41
|
+
name: 'StyleHelper',
|
|
42
|
+
url: '/docs/api/checkout-ui-extensions/unstable/components/utilities/stylehelper',
|
|
43
|
+
type: 'utility',
|
|
44
|
+
},
|
|
45
|
+
],
|
|
39
46
|
};
|
|
40
47
|
|
|
41
48
|
export default data;
|
|
@@ -4,9 +4,11 @@ import type {
|
|
|
4
4
|
BackgroundProps,
|
|
5
5
|
BorderProps,
|
|
6
6
|
CornerProps,
|
|
7
|
+
IdProps,
|
|
7
8
|
SizingProps,
|
|
8
9
|
SpacingProps,
|
|
9
10
|
} from '../shared';
|
|
11
|
+
import type {MaybeResponsiveConditionalStyle} from '../../style/types';
|
|
10
12
|
|
|
11
13
|
export interface ScrollViewEvent {
|
|
12
14
|
/**
|
|
@@ -33,8 +35,15 @@ export interface ScrollViewProps
|
|
|
33
35
|
extends Pick<BackgroundProps, 'background'>,
|
|
34
36
|
BorderProps,
|
|
35
37
|
CornerProps,
|
|
38
|
+
IdProps,
|
|
36
39
|
SizingProps,
|
|
37
40
|
SpacingProps {
|
|
41
|
+
/**
|
|
42
|
+
* A label that describes the purpose or contents of the element. When set,
|
|
43
|
+
* it will be announced to buyers using assistive technologies and will
|
|
44
|
+
* provide them with more context.
|
|
45
|
+
*/
|
|
46
|
+
accessibilityLabel?: string;
|
|
38
47
|
/**
|
|
39
48
|
* Provides a hint to the user that the area is scrollable.
|
|
40
49
|
*
|
|
@@ -56,7 +65,23 @@ export interface ScrollViewProps
|
|
|
56
65
|
*/
|
|
57
66
|
direction?: 'block' | 'inline';
|
|
58
67
|
/**
|
|
59
|
-
* Scroll to a specific position or to an element.
|
|
68
|
+
* Scroll to a specific position or to an element when the component is first rendered.
|
|
69
|
+
*
|
|
70
|
+
* This property allows you to set an initial scroll position or scroll to a specific element
|
|
71
|
+
* when the `ScrollView` component mounts. Note that this action will only be performed once,
|
|
72
|
+
* during the initial render of the component.
|
|
73
|
+
*
|
|
74
|
+
* @example
|
|
75
|
+
* // Scroll to 100 pixels from the top on initial render
|
|
76
|
+
* <ScrollView scrollTo={100} />
|
|
77
|
+
*
|
|
78
|
+
* // Scroll to a specific element on initial render
|
|
79
|
+
* const elementRef = useRef(null);
|
|
80
|
+
* <ScrollView scrollTo={elementRef.current} />
|
|
81
|
+
*
|
|
82
|
+
* @note
|
|
83
|
+
* This property will only take effect on the first render. Subsequent updates to this property
|
|
84
|
+
* will not trigger additional scroll actions.
|
|
60
85
|
*/
|
|
61
86
|
scrollTo?: number | HTMLElement;
|
|
62
87
|
/**
|
|
@@ -74,9 +99,18 @@ export interface ScrollViewProps
|
|
|
74
99
|
*/
|
|
75
100
|
onScrolledToEdge?: (args: ScrollViewEvent) => void;
|
|
76
101
|
/**
|
|
77
|
-
*
|
|
102
|
+
* Changes the display of the component.
|
|
103
|
+
*
|
|
104
|
+
*
|
|
105
|
+
* `auto` the component's initial value. The actual value depends on the component and context.
|
|
106
|
+
*
|
|
107
|
+
* `none` hides the component and removes it from the accessibility tree, making it invisible to screen readers.
|
|
108
|
+
*
|
|
109
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/display
|
|
110
|
+
*
|
|
111
|
+
* @defaultValue 'auto'
|
|
78
112
|
*/
|
|
79
|
-
|
|
113
|
+
display?: MaybeResponsiveConditionalStyle<'auto' | 'none'>;
|
|
80
114
|
}
|
|
81
115
|
|
|
82
116
|
/**
|
|
@@ -44,6 +44,10 @@ export interface SelectProps {
|
|
|
44
44
|
* The options a buyer can select from.
|
|
45
45
|
*/
|
|
46
46
|
options: SelectOptionProps[];
|
|
47
|
+
/**
|
|
48
|
+
* A short hint that describes the expected value of the field when no value is set.
|
|
49
|
+
*/
|
|
50
|
+
placeholder?: string;
|
|
47
51
|
/**
|
|
48
52
|
* Whether the field needs a value. This requirement adds semantic value
|
|
49
53
|
* to the field, but it will not cause an error to appear automatically.
|
|
@@ -56,7 +60,7 @@ export interface SelectProps {
|
|
|
56
60
|
*/
|
|
57
61
|
disabled?: boolean;
|
|
58
62
|
/**
|
|
59
|
-
* Whether the field is read only
|
|
63
|
+
* Whether the field is read only.
|
|
60
64
|
*/
|
|
61
65
|
readonly?: boolean;
|
|
62
66
|
/**
|
|
@@ -80,6 +84,14 @@ export interface SelectProps {
|
|
|
80
84
|
* specific data you would like to be entered into this field during autocomplete.
|
|
81
85
|
*/
|
|
82
86
|
autocomplete?: Autocomplete | boolean;
|
|
87
|
+
/**
|
|
88
|
+
* Callback when focus is removed.
|
|
89
|
+
*/
|
|
90
|
+
onBlur?(): void;
|
|
91
|
+
/**
|
|
92
|
+
* Callback when input is focused.
|
|
93
|
+
*/
|
|
94
|
+
onFocus?(): void;
|
|
83
95
|
/**
|
|
84
96
|
* A callback that is run whenever the selected option changes. This callback
|
|
85
97
|
* is called with the string `value` of the selected `option`. This component
|
|
@@ -63,7 +63,14 @@ const data: ReferenceEntityTemplateSchema = {
|
|
|
63
63
|
getExample('ui-components/sheet-layout-content', ['jsx', 'js']),
|
|
64
64
|
],
|
|
65
65
|
},
|
|
66
|
-
related: [
|
|
66
|
+
related: [
|
|
67
|
+
{
|
|
68
|
+
name: 'Ui',
|
|
69
|
+
subtitle: 'API',
|
|
70
|
+
url: 'ui',
|
|
71
|
+
type: 'API',
|
|
72
|
+
},
|
|
73
|
+
],
|
|
67
74
|
};
|
|
68
75
|
|
|
69
76
|
export default data;
|
|
@@ -44,7 +44,14 @@ const data: ReferenceEntityTemplateSchema = {
|
|
|
44
44
|
'| Value | Description |\n| --- | --- |\n| <code>"accent"</code> | Conveys emphasis and draws attention to the element. |\n| <code>"monochrome"</code> | Takes the color of its parent.|',
|
|
45
45
|
},
|
|
46
46
|
],
|
|
47
|
-
related: [
|
|
47
|
+
related: [
|
|
48
|
+
{
|
|
49
|
+
name: 'Progress',
|
|
50
|
+
subtitle: 'Component',
|
|
51
|
+
url: 'progress',
|
|
52
|
+
type: 'Component',
|
|
53
|
+
},
|
|
54
|
+
],
|
|
48
55
|
};
|
|
49
56
|
|
|
50
57
|
export default data;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import type {ReferenceEntityTemplateSchema} from '@shopify/generate-docs';
|
|
2
|
+
|
|
3
|
+
import {getExample} from '../../helper.docs';
|
|
4
|
+
|
|
5
|
+
const data: ReferenceEntityTemplateSchema = {
|
|
6
|
+
name: 'Switch',
|
|
7
|
+
description:
|
|
8
|
+
'Use a switch to represent an on or off state that takes effect immediately when tapped.',
|
|
9
|
+
requires: '',
|
|
10
|
+
isVisualComponent: true,
|
|
11
|
+
thumbnail: 'switch-thumbnail.png',
|
|
12
|
+
type: '',
|
|
13
|
+
definitions: [
|
|
14
|
+
{
|
|
15
|
+
title: 'SwitchProps',
|
|
16
|
+
description: '',
|
|
17
|
+
type: 'SwitchProps',
|
|
18
|
+
},
|
|
19
|
+
],
|
|
20
|
+
category: 'Components',
|
|
21
|
+
subCategory: 'Forms',
|
|
22
|
+
defaultExample: {
|
|
23
|
+
image: 'switch-default.png',
|
|
24
|
+
codeblock: {
|
|
25
|
+
title: 'Basic Switch',
|
|
26
|
+
tabs: [
|
|
27
|
+
{
|
|
28
|
+
title: 'React',
|
|
29
|
+
code: '../../../../../../ui-extensions-react/src/surfaces/checkout/components/Switch/examples/basic-switch.example.tsx',
|
|
30
|
+
language: 'tsx',
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
title: 'JS',
|
|
34
|
+
code: './examples/basic-switch.example.ts',
|
|
35
|
+
language: 'js',
|
|
36
|
+
},
|
|
37
|
+
],
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
subSections: [
|
|
41
|
+
{
|
|
42
|
+
type: 'Generic',
|
|
43
|
+
anchorLink: 'best-practices',
|
|
44
|
+
title: 'Best Practices',
|
|
45
|
+
sectionContent: `
|
|
46
|
+
- The outcome of a switch should take effect immediately when tapped.
|
|
47
|
+
- Use for independent settings, like turning on a stand-alone feature.
|
|
48
|
+
- Most of the time no call-to-action should be needed as the switch should take effect immediately, but if the experience needs one, use “done” instead of “submit” or “apply”.
|
|
49
|
+
|
|
50
|
+
### Content
|
|
51
|
+
The label should be a noun. Try explaining the setting out loud to test the name. The name should make sense when you insert it into these statements:
|
|
52
|
+
|
|
53
|
+
- You can turn [setting_label] on or off in settings.
|
|
54
|
+
- [setting_label] is on.
|
|
55
|
+
- [setting_label] is off.
|
|
56
|
+
|
|
57
|
+
### Switch vs checkbox
|
|
58
|
+
- If the experience requires multiple connected inputs, like a survey, use a checkbox instead of a switch.
|
|
59
|
+
- If the experience requires an error state, like agreeing to terms and conditions, use a checkbox instead of a switch. Both on and off options for a switch should always be valid.
|
|
60
|
+
- If you’re unsure, default to a checkbox as it’s the more familiar web pattern.
|
|
61
|
+
|
|
62
|
+
<img src="/assets/landing-pages/templated-apis/checkout-ui-extensions/ui-components/switch-checkbox-example.png" />
|
|
63
|
+
`,
|
|
64
|
+
},
|
|
65
|
+
],
|
|
66
|
+
examples: {
|
|
67
|
+
description: '',
|
|
68
|
+
examples: [getExample('ui-components/switch-custom-label', ['jsx', 'js'])],
|
|
69
|
+
},
|
|
70
|
+
related: [
|
|
71
|
+
{
|
|
72
|
+
name: 'Checkbox',
|
|
73
|
+
subtitle: 'Component',
|
|
74
|
+
url: 'checkbox',
|
|
75
|
+
type: 'Component',
|
|
76
|
+
},
|
|
77
|
+
],
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
export default data;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import {createRemoteComponent} from '@remote-ui/core';
|
|
2
|
+
|
|
3
|
+
import type {IdProps, DisclosureActivatorProps} from '../shared';
|
|
4
|
+
|
|
5
|
+
export interface SwitchProps extends IdProps, DisclosureActivatorProps {
|
|
6
|
+
/**
|
|
7
|
+
* An identifier for the field that is unique within the nearest
|
|
8
|
+
* containing `Form` component.
|
|
9
|
+
*/
|
|
10
|
+
name?: string;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Whether the switch is active.
|
|
14
|
+
*/
|
|
15
|
+
checked?: boolean;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Visual content to use as the switch label.
|
|
19
|
+
*/
|
|
20
|
+
label?: string;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Whether the switch is selected. This prop is an alias for `checked`,
|
|
24
|
+
* and can be useful in form libraries that provide a normalized API for
|
|
25
|
+
* dealing with both `boolean` and `string` values. If both `value` and
|
|
26
|
+
* `checked` are set, `checked` takes precedence.
|
|
27
|
+
*/
|
|
28
|
+
value?: boolean;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Whether the switch can be changed.
|
|
32
|
+
*/
|
|
33
|
+
disabled?: boolean;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* A label used for buyers using assistive technologies.
|
|
37
|
+
*/
|
|
38
|
+
accessibilityLabel?: string;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* A callback that is run whenever the switch is changed. This callback
|
|
42
|
+
* is called with a boolean indicating whether the switch should now be
|
|
43
|
+
* active or inactive. This component is [controlled](https://reactjs.org/docs/forms.html#controlled-components),
|
|
44
|
+
* so you must store this value in state and reflect it back in the
|
|
45
|
+
* `checked` or `value` props.
|
|
46
|
+
*/
|
|
47
|
+
onChange?(value: boolean): void;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export const Switch = createRemoteComponent<'Switch', SwitchProps>('Switch');
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import {extension, Switch} from '@shopify/ui-extensions/checkout';
|
|
2
|
+
|
|
3
|
+
export default extension('purchase.checkout.block.render', (root) => {
|
|
4
|
+
const baseSwitch = root.createComponent(Switch, {
|
|
5
|
+
accessibilityLabel: 'my-switch',
|
|
6
|
+
});
|
|
7
|
+
|
|
8
|
+
root.appendChild(baseSwitch);
|
|
9
|
+
});
|
|
@@ -44,7 +44,14 @@ const data: ReferenceEntityTemplateSchema = {
|
|
|
44
44
|
'| Value | Description |\n| --- | --- |\n| <code>"main"</code> | Used to indicate the primary content. |\n| <code>"header"</code> | Used to indicate the component is a header. |\n| <code>"footer"</code> | Used to display information such as copyright information, navigation links, and privacy statements. |\n| <code>"section"</code> | Used to indicate a generic section. |\n| <code>"complementary"</code> | Used to designate a supporting section that relates to the main content. |\n| <code>"navigation"</code> | Used to identify major groups of links used for navigating. |\n| <code>"orderedList"</code> | Used to identify a list of ordered items. |\n| <code>"listItem"</code> | Used to identify an item inside a list of items. |\n| <code>"unorderedList"</code> | Used to identify a list of unordered items. |\n| <code>"separator"</code> | Used to indicates the component acts as a divider that separates and distinguishes sections of content. |\n| <code>"status"</code> | Used to define a live region containing advisory information for the user that is not important enough to be an alert. |\n| <code>"alert"</code> | Used for important, and usually time-sensitive, information. |',
|
|
45
45
|
},
|
|
46
46
|
],
|
|
47
|
-
related: [
|
|
47
|
+
related: [
|
|
48
|
+
{
|
|
49
|
+
subtitle: 'Utility',
|
|
50
|
+
name: 'StyleHelper',
|
|
51
|
+
url: '/docs/api/checkout-ui-extensions/unstable/components/utilities/stylehelper',
|
|
52
|
+
type: 'utility',
|
|
53
|
+
},
|
|
54
|
+
],
|
|
48
55
|
};
|
|
49
56
|
|
|
50
57
|
export default data;
|