@shopify/ui-extensions 2024.4.2 → 2024.7.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.js +2 -0
- package/build/cjs/surfaces/checkout/components/DatePicker/DatePicker.js +4 -10
- package/build/cjs/surfaces/checkout/components/Progress/Progress.js +9 -0
- package/build/cjs/surfaces/checkout/components/Switch/Switch.js +9 -0
- package/build/cjs/surfaces/checkout.js +4 -0
- package/build/cjs/surfaces/customer-account.js +4 -0
- package/build/cjs/surfaces/point-of-sale/components/Actiontem/ActionItem.js +7 -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/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/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.mjs +1 -0
- package/build/esm/surfaces/checkout/components/DatePicker/DatePicker.mjs +5 -11
- package/build/esm/surfaces/checkout/components/Progress/Progress.mjs +5 -0
- package/build/esm/surfaces/checkout/components/Switch/Switch.mjs +5 -0
- package/build/esm/surfaces/checkout.mjs +2 -0
- package/build/esm/surfaces/customer-account.mjs +2 -0
- package/build/esm/surfaces/point-of-sale/components/Actiontem/ActionItem.mjs +7 -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/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/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.esnext +1 -0
- package/build/esnext/surfaces/checkout/components/DatePicker/DatePicker.esnext +5 -11
- package/build/esnext/surfaces/checkout/components/Progress/Progress.esnext +5 -0
- package/build/esnext/surfaces/checkout/components/Switch/Switch.esnext +5 -0
- package/build/esnext/surfaces/checkout.esnext +2 -0
- package/build/esnext/surfaces/customer-account.esnext +2 -0
- package/build/esnext/surfaces/point-of-sale/components/Actiontem/ActionItem.esnext +7 -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/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/ts/shared.d.ts +16 -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/api/{extension-targets/extension-targets.doc.d.ts → 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.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 +16 -0
- package/build/ts/surfaces/admin/components/AdminPrintAction/AdminPrintAction.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/AdminPrintAction/AdminPrintAction.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/AdminPrintAction/AdminPrintAction.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Image/Image.d.ts +2 -2
- package/build/ts/surfaces/admin/components.d.ts +2 -0
- package/build/ts/surfaces/admin/components.d.ts.map +1 -1
- package/build/ts/surfaces/admin/extension-targets.d.ts +60 -6
- package/build/ts/surfaces/admin/extension-targets.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/address-autocomplete/shared.d.ts +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 +2 -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 +102 -19
- 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/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/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/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/ScrollView/ScrollView.d.ts +32 -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/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 +12 -11
- 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 +5 -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/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 +1 -7
- 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/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/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/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 +6 -1
- package/build/ts/surfaces/point-of-sale/api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Actiontem/ActionItem.d.ts +12 -0
- package/build/ts/surfaces/point-of-sale/components/Actiontem/ActionItem.d.ts.map +1 -1
- 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 +22 -0
- 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 +17 -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/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/targets.d.ts +14 -3
- package/build/ts/surfaces/point-of-sale/targets.d.ts.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -3
- package/src/shared.ts +23 -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.ts +1 -0
- package/src/surfaces/admin/components/AdminPrintAction/AdminPrintAction.doc.ts +52 -0
- package/src/surfaces/admin/components/AdminPrintAction/AdminPrintAction.ts +17 -0
- package/src/surfaces/admin/components/AdminPrintAction/examples/basic-adminprintaction.example.ts +14 -0
- package/src/surfaces/admin/components/Image/Image.ts +2 -2
- package/src/surfaces/admin/components.ts +2 -0
- package/src/surfaces/admin/extension-targets.ts +100 -5
- package/src/surfaces/checkout/api/address-autocomplete/shared.ts +1 -1
- package/src/surfaces/checkout/api/checkout/checkout.ts +15 -6
- package/src/surfaces/checkout/api/docs.ts +3 -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 +121 -25
- 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/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/Icon/Icon.ts +3 -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/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/ScrollView/ScrollView.doc.ts +8 -1
- package/src/surfaces/checkout/components/ScrollView/ScrollView.ts +31 -3
- 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 +12 -11
- package/src/surfaces/checkout/components/shared.ts +1 -1
- package/src/surfaces/checkout/components.ts +7 -0
- package/src/surfaces/checkout/helper.docs.ts +18 -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 +1 -6
- package/src/surfaces/checkout.ts +19 -2
- package/src/surfaces/customer-account/components/shared-checkout-components.ts +4 -0
- 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/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 +19 -1
- package/src/surfaces/point-of-sale/components/Actiontem/ActionItem.ts +12 -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 +22 -0
- 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 +17 -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/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/targets.ts +56 -6
- package/build/ts/surfaces/admin/api/extension-targets/extension-targets.doc.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/src/surfaces/admin/api/extension-targets/extension-targets.doc.ts +0 -20
- package/src/surfaces/checkout/api/address-autocomplete/address-autocomplete.ts +0 -87
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var core = require('@remote-ui/core');
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* AdminPrintAction is a component used by Admin Print Action extensions to configure a src document to preview and print.
|
|
9
|
+
*/
|
|
10
|
+
const AdminPrintAction = core.createRemoteComponent('AdminPrintAction');
|
|
11
|
+
|
|
12
|
+
exports.AdminPrintAction = AdminPrintAction;
|
|
@@ -4,6 +4,18 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var core = require('@remote-ui/core');
|
|
6
6
|
|
|
7
|
+
/**
|
|
8
|
+
* A date string using the simplified ISO 8601 format (`YYYY-MM-DD`)
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* A year/month string using the simplified ISO 8601 format (`YYYY-MM`)
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Month in 1-12 range
|
|
17
|
+
*/
|
|
18
|
+
|
|
7
19
|
const DatePicker = core.createRemoteComponent('DatePicker');
|
|
8
20
|
|
|
9
21
|
exports.DatePicker = DatePicker;
|
|
@@ -4,6 +4,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var core = require('@remote-ui/core');
|
|
6
6
|
|
|
7
|
+
/**
|
|
8
|
+
* Reserved namespace and key for the customer standard metafield used in the template's query.
|
|
9
|
+
* More info - https://shopify.dev/docs/apps/custom-data/metafields/definitions/standard
|
|
10
|
+
*/
|
|
11
|
+
|
|
7
12
|
/**
|
|
8
13
|
* Customer segment templates are used to give merchants a starting point to create segments.
|
|
9
14
|
*/
|
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var extension = require('./admin/extension.js');
|
|
6
6
|
var AdminAction = require('./admin/components/AdminAction/AdminAction.js');
|
|
7
|
+
var AdminPrintAction = require('./admin/components/AdminPrintAction/AdminPrintAction.js');
|
|
7
8
|
var AdminBlock = require('./admin/components/AdminBlock/AdminBlock.js');
|
|
8
9
|
var Badge = require('./admin/components/Badge/Badge.js');
|
|
9
10
|
var Banner = require('./admin/components/Banner/Banner.js');
|
|
@@ -50,6 +51,7 @@ var InternalLocationList = require('./admin/components/InternalLocationList/Inte
|
|
|
50
51
|
exports.extend = extension.extend;
|
|
51
52
|
exports.extension = extension.extension;
|
|
52
53
|
exports.AdminAction = AdminAction.AdminAction;
|
|
54
|
+
exports.AdminPrintAction = AdminPrintAction.AdminPrintAction;
|
|
53
55
|
exports.AdminBlock = AdminBlock.AdminBlock;
|
|
54
56
|
exports.Badge = Badge.Badge;
|
|
55
57
|
exports.Banner = Banner.Banner;
|
|
@@ -4,16 +4,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var core = require('@remote-ui/core');
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
Day[Day["Tuesday"] = 2] = "Tuesday";
|
|
12
|
-
Day[Day["Wednesday"] = 3] = "Wednesday";
|
|
13
|
-
Day[Day["Thursday"] = 4] = "Thursday";
|
|
14
|
-
Day[Day["Friday"] = 5] = "Friday";
|
|
15
|
-
Day[Day["Saturday"] = 6] = "Saturday";
|
|
16
|
-
})(exports.Day || (exports.Day = {}));
|
|
7
|
+
/* A date string using the simplified ISO 8601 format (`YYYY-MM-DD`) */
|
|
8
|
+
|
|
9
|
+
/** A year/month string using the simplified ISO 8601 format (`YYYY-MM`) */
|
|
10
|
+
|
|
17
11
|
/**
|
|
18
12
|
* The DatePicker component is a calendar picker UI that allows users to select a single date or a date range.
|
|
19
13
|
*/
|
|
@@ -41,6 +41,7 @@ var PaymentIcon = require('./checkout/components/PaymentIcon/PaymentIcon.js');
|
|
|
41
41
|
var PhoneField = require('./checkout/components/PhoneField/PhoneField.js');
|
|
42
42
|
var Pressable = require('./checkout/components/Pressable/Pressable.js');
|
|
43
43
|
var ProductThumbnail = require('./checkout/components/ProductThumbnail/ProductThumbnail.js');
|
|
44
|
+
var Progress = require('./checkout/components/Progress/Progress.js');
|
|
44
45
|
var Popover = require('./checkout/components/Popover/Popover.js');
|
|
45
46
|
var ScrollView = require('./checkout/components/ScrollView/ScrollView.js');
|
|
46
47
|
var Select = require('./checkout/components/Select/Select.js');
|
|
@@ -50,6 +51,7 @@ var SkeletonText = require('./checkout/components/SkeletonText/SkeletonText.js')
|
|
|
50
51
|
var SkeletonTextBlock = require('./checkout/components/SkeletonTextBlock/SkeletonTextBlock.js');
|
|
51
52
|
var Spinner = require('./checkout/components/Spinner/Spinner.js');
|
|
52
53
|
var Stepper = require('./checkout/components/Stepper/Stepper.js');
|
|
54
|
+
var Switch = require('./checkout/components/Switch/Switch.js');
|
|
53
55
|
var Tag = require('./checkout/components/Tag/Tag.js');
|
|
54
56
|
var Text = require('./checkout/components/Text/Text.js');
|
|
55
57
|
var TextBlock = require('./checkout/components/TextBlock/TextBlock.js');
|
|
@@ -103,6 +105,7 @@ exports.PaymentIcon = PaymentIcon.PaymentIcon;
|
|
|
103
105
|
exports.PhoneField = PhoneField.PhoneField;
|
|
104
106
|
exports.Pressable = Pressable.Pressable;
|
|
105
107
|
exports.ProductThumbnail = ProductThumbnail.ProductThumbnail;
|
|
108
|
+
exports.Progress = Progress.Progress;
|
|
106
109
|
exports.Popover = Popover.Popover;
|
|
107
110
|
exports.ScrollView = ScrollView.ScrollView;
|
|
108
111
|
exports.Select = Select.Select;
|
|
@@ -112,6 +115,7 @@ exports.SkeletonText = SkeletonText.SkeletonText;
|
|
|
112
115
|
exports.SkeletonTextBlock = SkeletonTextBlock.SkeletonTextBlock;
|
|
113
116
|
exports.Spinner = Spinner.Spinner;
|
|
114
117
|
exports.Stepper = Stepper.Stepper;
|
|
118
|
+
exports.Switch = Switch.Switch;
|
|
115
119
|
exports.Tag = Tag.Tag;
|
|
116
120
|
exports.Text = Text.Text;
|
|
117
121
|
exports.TextBlock = TextBlock.TextBlock;
|
|
@@ -39,9 +39,11 @@ var PaymentIcon = require('./checkout/components/PaymentIcon/PaymentIcon.js');
|
|
|
39
39
|
var PhoneField = require('./checkout/components/PhoneField/PhoneField.js');
|
|
40
40
|
var Pressable = require('./checkout/components/Pressable/Pressable.js');
|
|
41
41
|
var ProductThumbnail = require('./checkout/components/ProductThumbnail/ProductThumbnail.js');
|
|
42
|
+
var Progress = require('./checkout/components/Progress/Progress.js');
|
|
42
43
|
var Popover = require('./checkout/components/Popover/Popover.js');
|
|
43
44
|
var ScrollView = require('./checkout/components/ScrollView/ScrollView.js');
|
|
44
45
|
var Select = require('./checkout/components/Select/Select.js');
|
|
46
|
+
var Sheet = require('./checkout/components/Sheet/Sheet.js');
|
|
45
47
|
var SkeletonImage = require('./checkout/components/SkeletonImage/SkeletonImage.js');
|
|
46
48
|
var SkeletonText = require('./checkout/components/SkeletonText/SkeletonText.js');
|
|
47
49
|
var SkeletonTextBlock = require('./checkout/components/SkeletonTextBlock/SkeletonTextBlock.js');
|
|
@@ -98,9 +100,11 @@ exports.PaymentIcon = PaymentIcon.PaymentIcon;
|
|
|
98
100
|
exports.PhoneField = PhoneField.PhoneField;
|
|
99
101
|
exports.Pressable = Pressable.Pressable;
|
|
100
102
|
exports.ProductThumbnail = ProductThumbnail.ProductThumbnail;
|
|
103
|
+
exports.Progress = Progress.Progress;
|
|
101
104
|
exports.Popover = Popover.Popover;
|
|
102
105
|
exports.ScrollView = ScrollView.ScrollView;
|
|
103
106
|
exports.Select = Select.Select;
|
|
107
|
+
exports.Sheet = Sheet.Sheet;
|
|
104
108
|
exports.SkeletonImage = SkeletonImage.SkeletonImage;
|
|
105
109
|
exports.SkeletonText = SkeletonText.SkeletonText;
|
|
106
110
|
exports.SkeletonTextBlock = SkeletonTextBlock.SkeletonTextBlock;
|
|
@@ -4,6 +4,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var core = require('@remote-ui/core');
|
|
6
6
|
|
|
7
|
+
/**
|
|
8
|
+
* Renders an `ActionItem` on action targets. Note that the text displayed on this `ActionItem`
|
|
9
|
+
* is dependent on the description of the extension.
|
|
10
|
+
* @property `enabled` sets whether or not the `ActionItem` can be tapped.
|
|
11
|
+
* @property `onPress` the callback that is executed when the user taps the `ActionItem`.
|
|
12
|
+
*/
|
|
13
|
+
|
|
7
14
|
const ActionItem = core.createRemoteComponent('ActionItem');
|
|
8
15
|
|
|
9
16
|
exports.ActionItem = ActionItem;
|
|
@@ -4,6 +4,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var core = require('@remote-ui/core');
|
|
6
6
|
|
|
7
|
+
/**
|
|
8
|
+
* @property text - The text displayed inside the badge.
|
|
9
|
+
* @property variant - The appearance and function of the badge.
|
|
10
|
+
* @property status - A circle icon displaying the status of the badge.
|
|
11
|
+
*/
|
|
12
|
+
|
|
7
13
|
const Badge = core.createRemoteComponent('Badge');
|
|
8
14
|
|
|
9
15
|
exports.Badge = Badge;
|
|
@@ -4,6 +4,15 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var core = require('@remote-ui/core');
|
|
6
6
|
|
|
7
|
+
/**
|
|
8
|
+
* @property title - The title text displayed on the banner.
|
|
9
|
+
* @property variant - The variant type of the banner.
|
|
10
|
+
* @property action - The text for the action button.
|
|
11
|
+
* @property onPress - The callback function executed when the banner is pressed.
|
|
12
|
+
* @property hideAction - Whether to hide the action button.
|
|
13
|
+
* @property visible - The visibility state of the banner.
|
|
14
|
+
*/
|
|
15
|
+
|
|
7
16
|
const Banner = core.createRemoteComponent('Banner');
|
|
8
17
|
|
|
9
18
|
exports.Banner = Banner;
|
|
@@ -4,6 +4,14 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var core = require('@remote-ui/core');
|
|
6
6
|
|
|
7
|
+
/**
|
|
8
|
+
* @property `title` the text set on the `Button`.
|
|
9
|
+
* @property `type` the type of `Button` to render. Determines the appearance of the button.
|
|
10
|
+
* @property `onPress` the callback that is executed when the user taps the button.
|
|
11
|
+
* @property `isDisabled` sets whether the `Button` can be tapped.
|
|
12
|
+
* @property `isLoading` sets whether the `Button` is displaying an animated loading state.
|
|
13
|
+
*/
|
|
14
|
+
|
|
7
15
|
const Button = core.createRemoteComponent('Button');
|
|
8
16
|
|
|
9
17
|
exports.Button = Button;
|
|
@@ -4,6 +4,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var core = require('@remote-ui/core');
|
|
6
6
|
|
|
7
|
+
/**
|
|
8
|
+
* @property title - The title of the banner.
|
|
9
|
+
* @property variant - The appearance of the banner.
|
|
10
|
+
* @property visible - The visibility state of the banner.
|
|
11
|
+
*/
|
|
12
|
+
|
|
7
13
|
const CameraScanner = core.createRemoteComponent('CameraScanner');
|
|
8
14
|
|
|
9
15
|
exports.CameraScanner = CameraScanner;
|
|
@@ -4,6 +4,14 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var core = require('@remote-ui/core');
|
|
6
6
|
|
|
7
|
+
/**
|
|
8
|
+
* Represents the properties for the DatePicker component.
|
|
9
|
+
* @property selected - The selected time.
|
|
10
|
+
* @property onChange - A callback for changes.
|
|
11
|
+
* @property visibleState - Control the visible state, and a callback to set the visible state as false when the dialog closes.
|
|
12
|
+
* @property inputMode - Whether to display the picker in inline (clock) mode or spinner mode.
|
|
13
|
+
*/
|
|
14
|
+
|
|
7
15
|
const DatePicker = core.createRemoteComponent('DatePicker');
|
|
8
16
|
|
|
9
17
|
exports.DatePicker = DatePicker;
|
|
@@ -4,6 +4,18 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var core = require('@remote-ui/core');
|
|
6
6
|
|
|
7
|
+
/**
|
|
8
|
+
* @property title - The text displayed in the title of the dialog.
|
|
9
|
+
* @property content - The text displayed in the body of the dialog.
|
|
10
|
+
* @property actionText - The text displayed in the primary action button of the dialog.
|
|
11
|
+
* @property secondaryActionText - The text displayed in the secondary action section of the dialog.
|
|
12
|
+
* @property showSecondaryAction - Whether a secondary action displays.
|
|
13
|
+
* @property type - Determines the dialog’s appearance and function.
|
|
14
|
+
* @property onAction - A callback that performs when the action is triggered.
|
|
15
|
+
* @property onSecondaryAction - A callback that is executed when the secondary action is triggered.
|
|
16
|
+
* @property isVisible - Whether the dialog should be presented.
|
|
17
|
+
*/
|
|
18
|
+
|
|
7
19
|
const Dialog = core.createRemoteComponent('Dialog');
|
|
8
20
|
|
|
9
21
|
exports.Dialog = Dialog;
|
package/build/cjs/surfaces/point-of-sale/components/FormattedTextField/FormattedTextField.js
CHANGED
|
@@ -4,6 +4,16 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var core = require('@remote-ui/core');
|
|
6
6
|
|
|
7
|
+
/**
|
|
8
|
+
* Dictates what type of values can be used in a `TextField`.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* @property `inputType` the `InputType` of the `TextField`. This will select the appropriate keyboard.
|
|
13
|
+
* @property `autoCapitalize` dictates when the text should be auto-capitalized.
|
|
14
|
+
* @property `customValidator` applies a custom validator that can dictate whether or not an entered value is valid.
|
|
15
|
+
*/
|
|
16
|
+
|
|
7
17
|
const FormattedTextField = core.createRemoteComponent('FormattedTextField');
|
|
8
18
|
|
|
9
19
|
exports.FormattedTextField = FormattedTextField;
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var core = require('@remote-ui/core');
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
* @property `initialScreenName` sets the initial Screen
|
|
8
|
+
* @property `initialScreenName` sets the initial `Screen` whose `name` matches.
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
const Navigator = core.createRemoteComponent('Navigator');
|
|
@@ -4,6 +4,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var core = require('@remote-ui/core');
|
|
6
6
|
|
|
7
|
+
/**
|
|
8
|
+
* Represents the properties for the NumberField component.
|
|
9
|
+
* @typedef {Object} NumberFieldProps
|
|
10
|
+
* @property {'decimal' | 'numeric'} [inputMode] - The mode of input, can be either 'decimal' or 'numeric'.
|
|
11
|
+
*/
|
|
12
|
+
|
|
7
13
|
const NumberField = core.createRemoteComponent('NumberField');
|
|
8
14
|
|
|
9
15
|
exports.NumberField = NumberField;
|
|
@@ -9,6 +9,30 @@ var core = require('@remote-ui/core');
|
|
|
9
9
|
* @typedef {('accept'|'reject')} PinValidationResult
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
+
/**
|
|
13
|
+
* Represents the allowed lengths of a PIN.
|
|
14
|
+
* @typedef {(4|5|6|7|8|9|10)} PinLength
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Represents an action type for the PinPad component.
|
|
19
|
+
* @typedef {Object} PinPadActionType
|
|
20
|
+
* @property {string} label - The label for the action button.
|
|
21
|
+
* @property {function(): number[]} onPress - The function to be called when the action button is pressed.
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Represents the properties for the PinPad component.
|
|
26
|
+
* @typedef {Object} PinPadProps
|
|
27
|
+
* @property {boolean} [masked] - Whether the entered PIN should be masked.
|
|
28
|
+
* @property {PinLength} [minPinLength] - The minimum length of the PIN.
|
|
29
|
+
* @property {PinLength} [maxPinLength] - The maximum length of the PIN.
|
|
30
|
+
* @property {string} [label] - The content for the prompt on the pin pad.
|
|
31
|
+
* @property {PinPadActionType} [pinPadAction] - The call to action between the entry view and the keypad, consisting of a label and function that returns the pin.
|
|
32
|
+
* @property {function(pin: number[]): Promise<PinValidationResult>} onSubmit - The function to be called when the PIN is submitted.
|
|
33
|
+
* @property {function(pin: number[]): void} [onPinEntry] - The function to be called when a PIN is entered.
|
|
34
|
+
*/
|
|
35
|
+
|
|
12
36
|
const PinPad = core.createRemoteComponent('PinPad');
|
|
13
37
|
|
|
14
38
|
exports.PinPad = PinPad;
|
|
@@ -8,6 +8,24 @@ var core = require('@remote-ui/core');
|
|
|
8
8
|
* @property `sheet` displays the screen from the bottom on `navigate` when `true`.
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
+
/** Represents the secondary action button of a screen in the navigation stack.
|
|
12
|
+
* @property `text` displays the name of the secondary action in the action bar.
|
|
13
|
+
* @property `onPress` triggered when the secondary action button is pressed.
|
|
14
|
+
* @property `isEnabled` sets whether the action can be tapped.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/** Represents a screen in the navigation stack.
|
|
18
|
+
* @property `name` used to identify this screen as a destination in the navigation stack.
|
|
19
|
+
* @property `title` the title of the screen which will be displayed on the UI.
|
|
20
|
+
* @property `isLoading` displays a loading indicator when `true`. Set this to `true` when performing an asynchronous task, and then to false when the data becomes available to the UI.
|
|
21
|
+
* @property `presentation` dictates how the `Screen` will be presented when navigated to.
|
|
22
|
+
* @property `secondaryAction` displays a secondary action button on the screen.
|
|
23
|
+
* @property `onNavigate` triggered when the screen is navigated to.
|
|
24
|
+
* @property `onNavigateBack` triggered when the user navigates back from this screen. Runs after screen is unmounted.
|
|
25
|
+
* @property `overrideNavigateBack` a callback that allows you to override the secondary navigation action. Runs when screen is mounted.
|
|
26
|
+
* @property `onReceiveParams` a callback that gets triggered when the navigation event completes and the screen receives the parameters.
|
|
27
|
+
*/
|
|
28
|
+
|
|
11
29
|
const Screen = core.createRemoteComponent('Screen');
|
|
12
30
|
|
|
13
31
|
exports.Screen = Screen;
|
|
@@ -4,6 +4,16 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var core = require('@remote-ui/core');
|
|
6
6
|
|
|
7
|
+
/** Allows the implementation of an action at the top right of a `Section`.
|
|
8
|
+
* @property `title` the title describing the action.
|
|
9
|
+
* @property `onPress` the callback when the action is tapped by the user.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
/** Renders content that is bound by a border, with a title and a call to action at the top.
|
|
13
|
+
* @property `title` the title of the section.
|
|
14
|
+
* @property `action` the action in the top right of the section that can be triggered by a tap.
|
|
15
|
+
*/
|
|
16
|
+
|
|
7
17
|
const Section = core.createRemoteComponent('Section');
|
|
8
18
|
|
|
9
19
|
exports.Section = Section;
|
|
@@ -4,6 +4,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var core = require('@remote-ui/core');
|
|
6
6
|
|
|
7
|
+
/**
|
|
8
|
+
* Represents the properties for the TextField component.
|
|
9
|
+
* @typedef {Object} TextAreaProps
|
|
10
|
+
* @property {number} [rows] - The initial number of lines to be displayed. Maximum of 8 lines.
|
|
11
|
+
*/
|
|
12
|
+
|
|
7
13
|
const TextArea = core.createRemoteComponent('TextArea');
|
|
8
14
|
|
|
9
15
|
exports.TextArea = TextArea;
|
|
@@ -4,6 +4,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var core = require('@remote-ui/core');
|
|
6
6
|
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated
|
|
9
|
+
* This TextField component will only support NewTextFieldProps in version 2.0.0.
|
|
10
|
+
* Please migrate to using NewTextFieldProps as soon as possible.
|
|
11
|
+
*/
|
|
12
|
+
|
|
7
13
|
const TextField = core.createRemoteComponent('TextField');
|
|
8
14
|
|
|
9
15
|
exports.TextField = TextField;
|
|
@@ -4,6 +4,15 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var core = require('@remote-ui/core');
|
|
6
6
|
|
|
7
|
+
/**
|
|
8
|
+
* @property `title` the text set on the main label of the tile.
|
|
9
|
+
* @property `subtitle` the text set on the secondary label of the tile.
|
|
10
|
+
* @property `enabled` sets whether or not the tile can be tapped.
|
|
11
|
+
* @property `destructive` sets whether or not the tile is in a red destructive appearance.
|
|
12
|
+
* @property `badgeValue` the number value displayed in the top right corner of the tile.
|
|
13
|
+
* @property `onPress` the callback that is executed when the tile is tapped.
|
|
14
|
+
*/
|
|
15
|
+
|
|
7
16
|
const Tile = core.createRemoteComponent('Tile');
|
|
8
17
|
|
|
9
18
|
exports.Tile = Tile;
|
|
@@ -4,6 +4,15 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var core = require('@remote-ui/core');
|
|
6
6
|
|
|
7
|
+
/**
|
|
8
|
+
* Represents the properties for the TimePicker component.
|
|
9
|
+
* @property selected - The selected time.
|
|
10
|
+
* @property onChange - A callback for changes.
|
|
11
|
+
* @property visibleState - Controls the visible state, and a callback to set the visible state as false when the dialog closes.
|
|
12
|
+
* @property is24Hour - (Android only) Whether the clock displays in 24 hour time instead of 12 hour time.
|
|
13
|
+
* @property inputMode - Whether to display the picker in inline (clock) mode or spinner mode.
|
|
14
|
+
*/
|
|
15
|
+
|
|
7
16
|
const TimePicker = core.createRemoteComponent('TimePicker');
|
|
8
17
|
|
|
9
18
|
exports.TimePicker = TimePicker;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { createRemoteComponent } from '@remote-ui/core';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* AdminPrintAction is a component used by Admin Print Action extensions to configure a src document to preview and print.
|
|
5
|
+
*/
|
|
6
|
+
const AdminPrintAction = createRemoteComponent('AdminPrintAction');
|
|
7
|
+
|
|
8
|
+
export { AdminPrintAction };
|
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
import { createRemoteComponent } from '@remote-ui/core';
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* A date string using the simplified ISO 8601 format (`YYYY-MM-DD`)
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* A year/month string using the simplified ISO 8601 format (`YYYY-MM`)
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Month in 1-12 range
|
|
13
|
+
*/
|
|
14
|
+
|
|
3
15
|
const DatePicker = createRemoteComponent('DatePicker');
|
|
4
16
|
|
|
5
17
|
export { DatePicker };
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { createRemoteComponent } from '@remote-ui/core';
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* Reserved namespace and key for the customer standard metafield used in the template's query.
|
|
5
|
+
* More info - https://shopify.dev/docs/apps/custom-data/metafields/definitions/standard
|
|
6
|
+
*/
|
|
7
|
+
|
|
3
8
|
/**
|
|
4
9
|
* Customer segment templates are used to give merchants a starting point to create segments.
|
|
5
10
|
*/
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { extend, extension } from './admin/extension.mjs';
|
|
2
2
|
export { AdminAction } from './admin/components/AdminAction/AdminAction.mjs';
|
|
3
|
+
export { AdminPrintAction } from './admin/components/AdminPrintAction/AdminPrintAction.mjs';
|
|
3
4
|
export { AdminBlock } from './admin/components/AdminBlock/AdminBlock.mjs';
|
|
4
5
|
export { Badge } from './admin/components/Badge/Badge.mjs';
|
|
5
6
|
export { Banner } from './admin/components/Banner/Banner.mjs';
|
|
@@ -1,18 +1,12 @@
|
|
|
1
1
|
import { createRemoteComponent } from '@remote-ui/core';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Day[Day["Tuesday"] = 2] = "Tuesday";
|
|
8
|
-
Day[Day["Wednesday"] = 3] = "Wednesday";
|
|
9
|
-
Day[Day["Thursday"] = 4] = "Thursday";
|
|
10
|
-
Day[Day["Friday"] = 5] = "Friday";
|
|
11
|
-
Day[Day["Saturday"] = 6] = "Saturday";
|
|
12
|
-
})(Day || (Day = {}));
|
|
3
|
+
/* A date string using the simplified ISO 8601 format (`YYYY-MM-DD`) */
|
|
4
|
+
|
|
5
|
+
/** A year/month string using the simplified ISO 8601 format (`YYYY-MM`) */
|
|
6
|
+
|
|
13
7
|
/**
|
|
14
8
|
* The DatePicker component is a calendar picker UI that allows users to select a single date or a date range.
|
|
15
9
|
*/
|
|
16
10
|
const DatePicker = createRemoteComponent('DatePicker');
|
|
17
11
|
|
|
18
|
-
export { DatePicker
|
|
12
|
+
export { DatePicker };
|
|
@@ -37,6 +37,7 @@ export { PaymentIcon } from './checkout/components/PaymentIcon/PaymentIcon.mjs';
|
|
|
37
37
|
export { PhoneField } from './checkout/components/PhoneField/PhoneField.mjs';
|
|
38
38
|
export { Pressable } from './checkout/components/Pressable/Pressable.mjs';
|
|
39
39
|
export { ProductThumbnail } from './checkout/components/ProductThumbnail/ProductThumbnail.mjs';
|
|
40
|
+
export { Progress } from './checkout/components/Progress/Progress.mjs';
|
|
40
41
|
export { Popover } from './checkout/components/Popover/Popover.mjs';
|
|
41
42
|
export { ScrollView } from './checkout/components/ScrollView/ScrollView.mjs';
|
|
42
43
|
export { Select } from './checkout/components/Select/Select.mjs';
|
|
@@ -46,6 +47,7 @@ export { SkeletonText } from './checkout/components/SkeletonText/SkeletonText.mj
|
|
|
46
47
|
export { SkeletonTextBlock } from './checkout/components/SkeletonTextBlock/SkeletonTextBlock.mjs';
|
|
47
48
|
export { Spinner } from './checkout/components/Spinner/Spinner.mjs';
|
|
48
49
|
export { Stepper } from './checkout/components/Stepper/Stepper.mjs';
|
|
50
|
+
export { Switch } from './checkout/components/Switch/Switch.mjs';
|
|
49
51
|
export { Tag } from './checkout/components/Tag/Tag.mjs';
|
|
50
52
|
export { Text } from './checkout/components/Text/Text.mjs';
|
|
51
53
|
export { TextBlock } from './checkout/components/TextBlock/TextBlock.mjs';
|
|
@@ -35,9 +35,11 @@ export { PaymentIcon } from './checkout/components/PaymentIcon/PaymentIcon.mjs';
|
|
|
35
35
|
export { PhoneField } from './checkout/components/PhoneField/PhoneField.mjs';
|
|
36
36
|
export { Pressable } from './checkout/components/Pressable/Pressable.mjs';
|
|
37
37
|
export { ProductThumbnail } from './checkout/components/ProductThumbnail/ProductThumbnail.mjs';
|
|
38
|
+
export { Progress } from './checkout/components/Progress/Progress.mjs';
|
|
38
39
|
export { Popover } from './checkout/components/Popover/Popover.mjs';
|
|
39
40
|
export { ScrollView } from './checkout/components/ScrollView/ScrollView.mjs';
|
|
40
41
|
export { Select } from './checkout/components/Select/Select.mjs';
|
|
42
|
+
export { Sheet } from './checkout/components/Sheet/Sheet.mjs';
|
|
41
43
|
export { SkeletonImage } from './checkout/components/SkeletonImage/SkeletonImage.mjs';
|
|
42
44
|
export { SkeletonText } from './checkout/components/SkeletonText/SkeletonText.mjs';
|
|
43
45
|
export { SkeletonTextBlock } from './checkout/components/SkeletonTextBlock/SkeletonTextBlock.mjs';
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { createRemoteComponent } from '@remote-ui/core';
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* Renders an `ActionItem` on action targets. Note that the text displayed on this `ActionItem`
|
|
5
|
+
* is dependent on the description of the extension.
|
|
6
|
+
* @property `enabled` sets whether or not the `ActionItem` can be tapped.
|
|
7
|
+
* @property `onPress` the callback that is executed when the user taps the `ActionItem`.
|
|
8
|
+
*/
|
|
9
|
+
|
|
3
10
|
const ActionItem = createRemoteComponent('ActionItem');
|
|
4
11
|
|
|
5
12
|
export { ActionItem };
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { createRemoteComponent } from '@remote-ui/core';
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* @property text - The text displayed inside the badge.
|
|
5
|
+
* @property variant - The appearance and function of the badge.
|
|
6
|
+
* @property status - A circle icon displaying the status of the badge.
|
|
7
|
+
*/
|
|
8
|
+
|
|
3
9
|
const Badge = createRemoteComponent('Badge');
|
|
4
10
|
|
|
5
11
|
export { Badge };
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
import { createRemoteComponent } from '@remote-ui/core';
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* @property title - The title text displayed on the banner.
|
|
5
|
+
* @property variant - The variant type of the banner.
|
|
6
|
+
* @property action - The text for the action button.
|
|
7
|
+
* @property onPress - The callback function executed when the banner is pressed.
|
|
8
|
+
* @property hideAction - Whether to hide the action button.
|
|
9
|
+
* @property visible - The visibility state of the banner.
|
|
10
|
+
*/
|
|
11
|
+
|
|
3
12
|
const Banner = createRemoteComponent('Banner');
|
|
4
13
|
|
|
5
14
|
export { Banner };
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import { createRemoteComponent } from '@remote-ui/core';
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* @property `title` the text set on the `Button`.
|
|
5
|
+
* @property `type` the type of `Button` to render. Determines the appearance of the button.
|
|
6
|
+
* @property `onPress` the callback that is executed when the user taps the button.
|
|
7
|
+
* @property `isDisabled` sets whether the `Button` can be tapped.
|
|
8
|
+
* @property `isLoading` sets whether the `Button` is displaying an animated loading state.
|
|
9
|
+
*/
|
|
10
|
+
|
|
3
11
|
const Button = createRemoteComponent('Button');
|
|
4
12
|
|
|
5
13
|
export { Button };
|