@shopify/ui-extensions 2023.7.2 → 2024.1.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/Badge/Badge.js +9 -0
- package/build/cjs/surfaces/admin/components/Banner/Banner.js +9 -0
- package/build/cjs/surfaces/admin/components/Card/Card.js +9 -0
- package/build/cjs/surfaces/admin/components/ChoiceList/ChoiceList.js +9 -0
- package/build/cjs/surfaces/admin/components/ColorPicker/ColorPicker.js +9 -0
- package/build/cjs/surfaces/admin/components/CustomerSegmentTemplate/CustomerSegmentTemplate.js +17 -0
- package/build/cjs/surfaces/admin/components/DateField/DateField.js +9 -0
- package/build/cjs/surfaces/admin/components/DatePicker/DatePicker.js +9 -0
- package/build/cjs/surfaces/admin/components/InternalCustomerSegmentTemplate/InternalCustomerSegmentTemplate.js +12 -0
- package/build/cjs/surfaces/admin/components/InternalLocationList/InternalLocationList.js +9 -0
- package/build/cjs/surfaces/admin/components/MoneyField/MoneyField.js +9 -0
- package/build/cjs/surfaces/admin/components/Paragraph/Paragraph.js +9 -0
- package/build/cjs/surfaces/admin/components/ProgressIndicator/ProgressIndicator.js +9 -0
- package/build/cjs/surfaces/admin.js +26 -2
- package/build/cjs/surfaces/checkout/components/Choice/Choice.js +1 -0
- package/build/cjs/surfaces/checkout/components/ConsentCheckbox/ConsentCheckbox.js +9 -0
- package/build/cjs/surfaces/checkout/components/ConsentPhoneField/ConsentPhoneField.js +9 -0
- package/build/cjs/surfaces/checkout/components/LoginWithShop/LoginWithShop.js +9 -0
- package/build/cjs/surfaces/checkout/components/Map/Map.js +13 -0
- package/build/cjs/surfaces/checkout/components/MapMarker/MapMarker.js +12 -0
- package/build/cjs/surfaces/checkout/components/MapPopover/MapPopover.js +12 -0
- package/build/cjs/surfaces/checkout/components/PaymentIcon/PaymentIcon.js +11 -0
- package/build/cjs/surfaces/checkout/components/ProductThumbnail/ProductThumbnail.js +9 -0
- package/build/cjs/surfaces/checkout/components/ToggleButton/ToggleButton.js +12 -0
- package/build/cjs/surfaces/checkout/components/ToggleButtonGroup/ToggleButtonGroup.js +14 -0
- package/build/cjs/surfaces/checkout.js +20 -0
- package/build/cjs/surfaces/customer-account/components/Card/Card.js +9 -0
- package/build/cjs/surfaces/customer-account.js +12 -0
- package/build/cjs/surfaces/point-of-sale/components/Badge/Badge.js +9 -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 +9 -0
- package/build/cjs/surfaces/point-of-sale/components/CameraScanner/CameraScanner.js +9 -0
- package/build/cjs/surfaces/point-of-sale/components/DateField/DateField.js +9 -0
- package/build/cjs/surfaces/point-of-sale/components/DatePicker/DatePicker.js +9 -0
- package/build/cjs/surfaces/point-of-sale/components/Dialog/Dialog.js +9 -0
- package/build/cjs/surfaces/point-of-sale/components/EmailField/EmailField.js +9 -0
- package/build/cjs/surfaces/point-of-sale/components/FormattedTextField/FormattedTextField.js +9 -0
- package/build/cjs/surfaces/point-of-sale/components/Icon/Icon.js +9 -0
- package/build/cjs/surfaces/point-of-sale/components/Image/Image.js +9 -0
- package/build/cjs/surfaces/point-of-sale/components/List/List.js +9 -0
- package/build/cjs/surfaces/point-of-sale/components/Navigator/Navigator.js +13 -0
- package/build/cjs/surfaces/point-of-sale/components/NumberField/NumberField.js +9 -0
- package/build/cjs/surfaces/point-of-sale/components/PinPad/PinPad.js +14 -0
- package/build/cjs/surfaces/point-of-sale/components/RadioButtonList/RadioButtonList.js +9 -0
- package/build/cjs/surfaces/point-of-sale/components/Screen/Screen.js +13 -0
- package/build/cjs/surfaces/point-of-sale/components/ScrollView/ScrollView.js +9 -0
- package/build/cjs/surfaces/point-of-sale/components/SearchBar/SearchBar.js +9 -0
- package/build/cjs/surfaces/point-of-sale/components/Section/Section.js +9 -0
- package/build/cjs/surfaces/point-of-sale/components/SegmentedControl/SegmentedControl.js +9 -0
- package/build/cjs/surfaces/point-of-sale/components/Selectable/Selectable.js +9 -0
- package/build/cjs/surfaces/point-of-sale/components/Stack/Stack.js +9 -0
- package/build/cjs/surfaces/point-of-sale/components/Stepper/Stepper.js +9 -0
- package/build/cjs/surfaces/point-of-sale/components/Text/Text.js +9 -0
- package/build/cjs/surfaces/point-of-sale/components/TextArea/TextArea.js +9 -0
- package/build/cjs/surfaces/point-of-sale/components/TextField/TextField.js +9 -0
- package/build/cjs/surfaces/point-of-sale/components/Tile/Tile.js +9 -0
- package/build/cjs/surfaces/point-of-sale/components/TimeField/TimeField.js +9 -0
- package/build/cjs/surfaces/point-of-sale/components/TimePicker/TimePicker.js +9 -0
- package/build/cjs/surfaces/point-of-sale/extension.js +23 -0
- package/build/cjs/surfaces/point-of-sale.js +70 -0
- package/build/esm/surfaces/admin/components/Badge/Badge.mjs +5 -0
- package/build/esm/surfaces/admin/components/Banner/Banner.mjs +5 -0
- package/build/esm/surfaces/admin/components/Card/Card.mjs +5 -0
- package/build/esm/surfaces/admin/components/ChoiceList/ChoiceList.mjs +5 -0
- package/build/esm/surfaces/admin/components/ColorPicker/ColorPicker.mjs +5 -0
- package/build/esm/surfaces/admin/components/CustomerSegmentTemplate/CustomerSegmentTemplate.mjs +13 -0
- package/build/esm/surfaces/admin/components/DateField/DateField.mjs +5 -0
- package/build/esm/surfaces/admin/components/DatePicker/DatePicker.mjs +5 -0
- package/build/esm/surfaces/admin/components/InternalCustomerSegmentTemplate/InternalCustomerSegmentTemplate.mjs +8 -0
- package/build/esm/surfaces/admin/components/InternalLocationList/InternalLocationList.mjs +5 -0
- package/build/esm/surfaces/admin/components/MoneyField/MoneyField.mjs +5 -0
- package/build/esm/surfaces/admin/components/Paragraph/Paragraph.mjs +5 -0
- package/build/esm/surfaces/admin/components/ProgressIndicator/ProgressIndicator.mjs +5 -0
- package/build/esm/surfaces/admin.mjs +13 -1
- package/build/esm/surfaces/checkout/components/Choice/Choice.mjs +1 -0
- package/build/esm/surfaces/checkout/components/ConsentCheckbox/ConsentCheckbox.mjs +5 -0
- package/build/esm/surfaces/checkout/components/ConsentPhoneField/ConsentPhoneField.mjs +5 -0
- package/build/esm/surfaces/checkout/components/LoginWithShop/LoginWithShop.mjs +5 -0
- package/build/esm/surfaces/checkout/components/Map/Map.mjs +9 -0
- package/build/esm/surfaces/checkout/components/MapMarker/MapMarker.mjs +8 -0
- package/build/esm/surfaces/checkout/components/MapPopover/MapPopover.mjs +8 -0
- package/build/esm/surfaces/checkout/components/PaymentIcon/PaymentIcon.mjs +7 -0
- package/build/esm/surfaces/checkout/components/ProductThumbnail/ProductThumbnail.mjs +5 -0
- package/build/esm/surfaces/checkout/components/ToggleButton/ToggleButton.mjs +8 -0
- package/build/esm/surfaces/checkout/components/ToggleButtonGroup/ToggleButtonGroup.mjs +10 -0
- package/build/esm/surfaces/checkout.mjs +10 -0
- package/build/esm/surfaces/customer-account/components/Card/Card.mjs +5 -0
- package/build/esm/surfaces/customer-account.mjs +6 -0
- package/build/esm/surfaces/point-of-sale/components/Badge/Badge.mjs +5 -0
- package/build/esm/surfaces/point-of-sale/components/Banner/Banner.mjs +5 -0
- package/build/esm/surfaces/point-of-sale/components/Button/Button.mjs +5 -0
- package/build/esm/surfaces/point-of-sale/components/CameraScanner/CameraScanner.mjs +5 -0
- package/build/esm/surfaces/point-of-sale/components/DateField/DateField.mjs +5 -0
- package/build/esm/surfaces/point-of-sale/components/DatePicker/DatePicker.mjs +5 -0
- package/build/esm/surfaces/point-of-sale/components/Dialog/Dialog.mjs +5 -0
- package/build/esm/surfaces/point-of-sale/components/EmailField/EmailField.mjs +5 -0
- package/build/esm/surfaces/point-of-sale/components/FormattedTextField/FormattedTextField.mjs +5 -0
- package/build/esm/surfaces/point-of-sale/components/Icon/Icon.mjs +5 -0
- package/build/esm/surfaces/point-of-sale/components/Image/Image.mjs +5 -0
- package/build/esm/surfaces/point-of-sale/components/List/List.mjs +5 -0
- package/build/esm/surfaces/point-of-sale/components/Navigator/Navigator.mjs +9 -0
- package/build/esm/surfaces/point-of-sale/components/NumberField/NumberField.mjs +5 -0
- package/build/esm/surfaces/point-of-sale/components/PinPad/PinPad.mjs +10 -0
- package/build/esm/surfaces/point-of-sale/components/RadioButtonList/RadioButtonList.mjs +5 -0
- package/build/esm/surfaces/point-of-sale/components/Screen/Screen.mjs +9 -0
- package/build/esm/surfaces/point-of-sale/components/ScrollView/ScrollView.mjs +5 -0
- package/build/esm/surfaces/point-of-sale/components/SearchBar/SearchBar.mjs +5 -0
- package/build/esm/surfaces/point-of-sale/components/Section/Section.mjs +5 -0
- package/build/esm/surfaces/point-of-sale/components/SegmentedControl/SegmentedControl.mjs +5 -0
- package/build/esm/surfaces/point-of-sale/components/Selectable/Selectable.mjs +5 -0
- package/build/esm/surfaces/point-of-sale/components/Stack/Stack.mjs +5 -0
- package/build/esm/surfaces/point-of-sale/components/Stepper/Stepper.mjs +5 -0
- package/build/esm/surfaces/point-of-sale/components/Text/Text.mjs +5 -0
- package/build/esm/surfaces/point-of-sale/components/TextArea/TextArea.mjs +5 -0
- package/build/esm/surfaces/point-of-sale/components/TextField/TextField.mjs +5 -0
- package/build/esm/surfaces/point-of-sale/components/Tile/Tile.mjs +5 -0
- package/build/esm/surfaces/point-of-sale/components/TimeField/TimeField.mjs +5 -0
- package/build/esm/surfaces/point-of-sale/components/TimePicker/TimePicker.mjs +5 -0
- package/build/esm/surfaces/point-of-sale/extension.mjs +18 -0
- package/build/esm/surfaces/point-of-sale.mjs +31 -0
- package/build/esnext/surfaces/admin/components/Badge/Badge.esnext +5 -0
- package/build/esnext/surfaces/admin/components/Banner/Banner.esnext +5 -0
- package/build/esnext/surfaces/admin/components/Card/Card.esnext +5 -0
- package/build/esnext/surfaces/admin/components/ChoiceList/ChoiceList.esnext +5 -0
- package/build/esnext/surfaces/admin/components/ColorPicker/ColorPicker.esnext +5 -0
- package/build/esnext/surfaces/admin/components/CustomerSegmentTemplate/CustomerSegmentTemplate.esnext +13 -0
- package/build/esnext/surfaces/admin/components/DateField/DateField.esnext +5 -0
- package/build/esnext/surfaces/admin/components/DatePicker/DatePicker.esnext +5 -0
- package/build/esnext/surfaces/admin/components/InternalCustomerSegmentTemplate/InternalCustomerSegmentTemplate.esnext +8 -0
- package/build/esnext/surfaces/admin/components/InternalLocationList/InternalLocationList.esnext +5 -0
- package/build/esnext/surfaces/admin/components/MoneyField/MoneyField.esnext +5 -0
- package/build/esnext/surfaces/admin/components/Paragraph/Paragraph.esnext +5 -0
- package/build/esnext/surfaces/admin/components/ProgressIndicator/ProgressIndicator.esnext +5 -0
- package/build/esnext/surfaces/admin.esnext +13 -1
- package/build/esnext/surfaces/checkout/components/Choice/Choice.esnext +1 -0
- package/build/esnext/surfaces/checkout/components/ConsentCheckbox/ConsentCheckbox.esnext +5 -0
- package/build/esnext/surfaces/checkout/components/ConsentPhoneField/ConsentPhoneField.esnext +5 -0
- package/build/esnext/surfaces/checkout/components/LoginWithShop/LoginWithShop.esnext +5 -0
- package/build/esnext/surfaces/checkout/components/Map/Map.esnext +9 -0
- package/build/esnext/surfaces/checkout/components/MapMarker/MapMarker.esnext +8 -0
- package/build/esnext/surfaces/checkout/components/MapPopover/MapPopover.esnext +8 -0
- package/build/esnext/surfaces/checkout/components/PaymentIcon/PaymentIcon.esnext +7 -0
- package/build/esnext/surfaces/checkout/components/ProductThumbnail/ProductThumbnail.esnext +5 -0
- package/build/esnext/surfaces/checkout/components/ToggleButton/ToggleButton.esnext +8 -0
- package/build/esnext/surfaces/checkout/components/ToggleButtonGroup/ToggleButtonGroup.esnext +10 -0
- package/build/esnext/surfaces/checkout.esnext +10 -0
- package/build/esnext/surfaces/customer-account/components/Card/Card.esnext +5 -0
- package/build/esnext/surfaces/customer-account.esnext +6 -0
- package/build/esnext/surfaces/point-of-sale/components/Badge/Badge.esnext +5 -0
- package/build/esnext/surfaces/point-of-sale/components/Banner/Banner.esnext +5 -0
- package/build/esnext/surfaces/point-of-sale/components/Button/Button.esnext +5 -0
- package/build/esnext/surfaces/point-of-sale/components/CameraScanner/CameraScanner.esnext +5 -0
- package/build/esnext/surfaces/point-of-sale/components/DateField/DateField.esnext +5 -0
- package/build/esnext/surfaces/point-of-sale/components/DatePicker/DatePicker.esnext +5 -0
- package/build/esnext/surfaces/point-of-sale/components/Dialog/Dialog.esnext +5 -0
- package/build/esnext/surfaces/point-of-sale/components/EmailField/EmailField.esnext +5 -0
- package/build/esnext/surfaces/point-of-sale/components/FormattedTextField/FormattedTextField.esnext +5 -0
- package/build/esnext/surfaces/point-of-sale/components/Icon/Icon.esnext +5 -0
- package/build/esnext/surfaces/point-of-sale/components/Image/Image.esnext +5 -0
- package/build/esnext/surfaces/point-of-sale/components/List/List.esnext +5 -0
- package/build/esnext/surfaces/point-of-sale/components/Navigator/Navigator.esnext +9 -0
- package/build/esnext/surfaces/point-of-sale/components/NumberField/NumberField.esnext +5 -0
- package/build/esnext/surfaces/point-of-sale/components/PinPad/PinPad.esnext +10 -0
- package/build/esnext/surfaces/point-of-sale/components/RadioButtonList/RadioButtonList.esnext +5 -0
- package/build/esnext/surfaces/point-of-sale/components/Screen/Screen.esnext +9 -0
- package/build/esnext/surfaces/point-of-sale/components/ScrollView/ScrollView.esnext +5 -0
- package/build/esnext/surfaces/point-of-sale/components/SearchBar/SearchBar.esnext +5 -0
- package/build/esnext/surfaces/point-of-sale/components/Section/Section.esnext +5 -0
- package/build/esnext/surfaces/point-of-sale/components/SegmentedControl/SegmentedControl.esnext +5 -0
- package/build/esnext/surfaces/point-of-sale/components/Selectable/Selectable.esnext +5 -0
- package/build/esnext/surfaces/point-of-sale/components/Stack/Stack.esnext +5 -0
- package/build/esnext/surfaces/point-of-sale/components/Stepper/Stepper.esnext +5 -0
- package/build/esnext/surfaces/point-of-sale/components/Text/Text.esnext +5 -0
- package/build/esnext/surfaces/point-of-sale/components/TextArea/TextArea.esnext +5 -0
- package/build/esnext/surfaces/point-of-sale/components/TextField/TextField.esnext +5 -0
- package/build/esnext/surfaces/point-of-sale/components/Tile/Tile.esnext +5 -0
- package/build/esnext/surfaces/point-of-sale/components/TimeField/TimeField.esnext +5 -0
- package/build/esnext/surfaces/point-of-sale/components/TimePicker/TimePicker.esnext +5 -0
- package/build/esnext/surfaces/point-of-sale/extension.esnext +18 -0
- package/build/esnext/surfaces/point-of-sale.esnext +31 -0
- package/build/ts/shared.d.ts +1 -1
- package/build/ts/shared.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/{customer-segmentation-template/customer-segmentation-template.d.ts → customer-segment-template/customer-segment-template.d.ts} +3 -3
- package/build/ts/surfaces/admin/api/customer-segment-template/customer-segment-template.d.ts.map +1 -0
- package/build/ts/surfaces/admin/api/customer-segment-template/customer-segment-template.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/api/customer-segment-template/customer-segment-template.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/api/extension-targets/extension-targets.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/order-routing-rule/data.d.ts +20 -0
- package/build/ts/surfaces/admin/api/order-routing-rule/data.d.ts.map +1 -0
- package/build/ts/surfaces/admin/api/order-routing-rule/metafields.d.ts +18 -0
- package/build/ts/surfaces/admin/api/order-routing-rule/metafields.d.ts.map +1 -0
- package/build/ts/surfaces/admin/api/order-routing-rule/order-routing-rule.d.ts +9 -0
- package/build/ts/surfaces/admin/api/order-routing-rule/order-routing-rule.d.ts.map +1 -0
- package/build/ts/surfaces/admin/api/standard/standard.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api.d.ts +2 -1
- package/build/ts/surfaces/admin/api.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/AdminAction/AdminAction.d.ts +7 -3
- package/build/ts/surfaces/admin/components/AdminAction/AdminAction.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/AdminAction/AdminAction.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/AdminBlock/AdminBlock.d.ts +4 -2
- package/build/ts/surfaces/admin/components/AdminBlock/AdminBlock.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/AdminBlock/AdminBlock.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Badge/Badge.d.ts +36 -0
- package/build/ts/surfaces/admin/components/Badge/Badge.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Badge/Badge.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/Badge/Badge.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Banner/Banner.d.ts +34 -0
- package/build/ts/surfaces/admin/components/Banner/Banner.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Banner/Banner.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/Banner/Banner.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/BlockStack/BlockStack.d.ts +3 -7
- package/build/ts/surfaces/admin/components/BlockStack/BlockStack.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/BlockStack/BlockStack.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Box/Box.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Button/Button.d.ts +10 -0
- package/build/ts/surfaces/admin/components/Button/Button.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Button/Button.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Card/Card.d.ts +15 -0
- package/build/ts/surfaces/admin/components/Card/Card.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Card/Card.doc-skip.d.ts +4 -0
- package/build/ts/surfaces/admin/components/Card/Card.doc-skip.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Checkbox/Checkbox.d.ts +2 -6
- package/build/ts/surfaces/admin/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Checkbox/Checkbox.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/ChoiceList/ChoiceList.d.ts +20 -0
- package/build/ts/surfaces/admin/components/ChoiceList/ChoiceList.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/ChoiceList/ChoiceList.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/ChoiceList/ChoiceList.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/ColorPicker/ColorPicker.d.ts +39 -0
- package/build/ts/surfaces/admin/components/ColorPicker/ColorPicker.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/ColorPicker/ColorPicker.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/ColorPicker/ColorPicker.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/CustomerSegmentTemplate/CustomerSegmentTemplate.d.ts +44 -0
- package/build/ts/surfaces/admin/components/CustomerSegmentTemplate/CustomerSegmentTemplate.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/CustomerSegmentTemplate/CustomerSegmentTemplate.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/CustomerSegmentTemplate/CustomerSegmentTemplate.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/DateField/DateField.d.ts +10 -0
- package/build/ts/surfaces/admin/components/DateField/DateField.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/DateField/DateField.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/DateField/DateField.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/DatePicker/DatePicker.d.ts +87 -0
- package/build/ts/surfaces/admin/components/DatePicker/DatePicker.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/DatePicker/DatePicker.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/DatePicker/DatePicker.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Divider/Divider.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/EmailField/EmailField.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Form/Form.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Heading/Heading.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/HeadingGroup/HeadingGroup.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Icon/Icon.d.ts +13 -2
- package/build/ts/surfaces/admin/components/Icon/Icon.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Icon/Icon.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Image/Image.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/InlineStack/InlineStack.d.ts +2 -8
- package/build/ts/surfaces/admin/components/InlineStack/InlineStack.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/InlineStack/InlineStack.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/InternalCustomerSegmentTemplate/InternalCustomerSegmentTemplate.d.ts +30 -0
- package/build/ts/surfaces/admin/components/InternalCustomerSegmentTemplate/InternalCustomerSegmentTemplate.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/InternalLocationList/InternalLocationList.d.ts +61 -0
- package/build/ts/surfaces/admin/components/InternalLocationList/InternalLocationList.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Link/Link.d.ts +2 -6
- package/build/ts/surfaces/admin/components/Link/Link.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Link/Link.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/MoneyField/MoneyField.d.ts +10 -0
- package/build/ts/surfaces/admin/components/MoneyField/MoneyField.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/MoneyField/MoneyField.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/MoneyField/MoneyField.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/NumberField/NumberField.d.ts +2 -27
- package/build/ts/surfaces/admin/components/NumberField/NumberField.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/NumberField/NumberField.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Paragraph/Paragraph.d.ts +10 -0
- package/build/ts/surfaces/admin/components/Paragraph/Paragraph.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Paragraph/Paragraph.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/Paragraph/Paragraph.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/PasswordField/PasswordField.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Pressable/Pressable.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/ProgressIndicator/ProgressIndicator.d.ts +30 -0
- package/build/ts/surfaces/admin/components/ProgressIndicator/ProgressIndicator.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/ProgressIndicator/ProgressIndicator.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/ProgressIndicator/ProgressIndicator.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/ResourceItem/ResourceItem.d.ts +5 -0
- package/build/ts/surfaces/admin/components/ResourceItem/ResourceItem.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Select/Select.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Text/Text.d.ts +1 -62
- package/build/ts/surfaces/admin/components/Text/Text.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Text/Text.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/TextArea/TextArea.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/TextField/TextField.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/URLField/URLField.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/shared/index.d.ts +143 -0
- package/build/ts/surfaces/admin/components/shared/index.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components.d.ts +26 -2
- package/build/ts/surfaces/admin/components.d.ts.map +1 -1
- package/build/ts/surfaces/admin/extension-targets.d.ts +67 -18
- package/build/ts/surfaces/admin/extension-targets.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/checkout/checkout.d.ts +6 -6
- package/build/ts/surfaces/checkout/api/docs.d.ts +70 -0
- package/build/ts/surfaces/checkout/api/docs.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/api/payment/payment-option-item.d.ts +3 -0
- package/build/ts/surfaces/checkout/api/payment/payment-option-item.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/redeemable/redeemable.d.ts +5 -1
- package/build/ts/surfaces/checkout/api/redeemable/redeemable.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/shipping/shipping-option-list.d.ts +9 -0
- package/build/ts/surfaces/checkout/api/shipping/shipping-option-list.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/api/standard/standard.d.ts +125 -21
- package/build/ts/surfaces/checkout/api/standard/standard.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api.d.ts +2 -1
- package/build/ts/surfaces/checkout/api.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/BlockSpacer/BlockSpacer.d.ts +5 -0
- package/build/ts/surfaces/checkout/components/BlockSpacer/BlockSpacer.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/BlockStack/BlockStack.d.ts +2 -2
- package/build/ts/surfaces/checkout/components/BlockStack/BlockStack.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Choice/Choice.d.ts +26 -0
- package/build/ts/surfaces/checkout/components/Choice/Choice.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/ChoiceList/ChoiceList.d.ts +12 -4
- package/build/ts/surfaces/checkout/components/ChoiceList/ChoiceList.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/ChoiceList/ChoiceList.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/ConsentCheckbox/ConsentCheckbox.d.ts +15 -0
- package/build/ts/surfaces/checkout/components/ConsentCheckbox/ConsentCheckbox.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/ConsentCheckbox/ConsentCheckbox.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/ConsentCheckbox/ConsentCheckbox.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/ConsentPhoneField/ConsentPhoneField.d.ts +16 -0
- package/build/ts/surfaces/checkout/components/ConsentPhoneField/ConsentPhoneField.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/ConsentPhoneField/ConsentPhoneField.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/ConsentPhoneField/ConsentPhoneField.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Grid/Grid.d.ts +2 -2
- package/build/ts/surfaces/checkout/components/Grid/Grid.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/GridItem/GridItem.d.ts +2 -2
- package/build/ts/surfaces/checkout/components/GridItem/GridItem.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Icon/Icon.d.ts +2 -4
- package/build/ts/surfaces/checkout/components/Icon/Icon.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/InlineStack/InlineStack.d.ts +2 -2
- package/build/ts/surfaces/checkout/components/InlineStack/InlineStack.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/LoginWithShop/LoginWithShop.d.ts +19 -0
- package/build/ts/surfaces/checkout/components/LoginWithShop/LoginWithShop.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Map/Map.d.ts +76 -0
- package/build/ts/surfaces/checkout/components/Map/Map.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Map/Map.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Map/Map.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/MapMarker/MapMarker.d.ts +46 -0
- package/build/ts/surfaces/checkout/components/MapMarker/MapMarker.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/MapMarker/MapMarker.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/MapMarker/MapMarker.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/MapPopover/MapPopover.d.ts +23 -0
- package/build/ts/surfaces/checkout/components/MapPopover/MapPopover.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/MapPopover/MapPopover.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/MapPopover/MapPopover.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/PaymentIcon/PaymentIcon.d.ts +32 -0
- package/build/ts/surfaces/checkout/components/PaymentIcon/PaymentIcon.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/PaymentIcon/PaymentIcon.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/PaymentIcon/PaymentIcon.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Pressable/Pressable.d.ts +2 -2
- package/build/ts/surfaces/checkout/components/Pressable/Pressable.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/ProductThumbnail/ProductThumbnail.d.ts +79 -0
- package/build/ts/surfaces/checkout/components/ProductThumbnail/ProductThumbnail.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/ProductThumbnail/ProductThumbnail.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/ProductThumbnail/ProductThumbnail.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/ScrollView/ScrollView.d.ts +2 -2
- package/build/ts/surfaces/checkout/components/ScrollView/ScrollView.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Select/Select.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/SkeletonText/SkeletonText.d.ts +3 -1
- package/build/ts/surfaces/checkout/components/SkeletonText/SkeletonText.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/SkeletonTextBlock/SkeletonTextBlock.d.ts +5 -1
- package/build/ts/surfaces/checkout/components/SkeletonTextBlock/SkeletonTextBlock.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Tag/Tag.d.ts +1 -3
- package/build/ts/surfaces/checkout/components/Tag/Tag.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Text/Text.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/Text/Text.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/TextBlock/TextBlock.d.ts +4 -2
- package/build/ts/surfaces/checkout/components/TextBlock/TextBlock.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/ToggleButton/ToggleButton.d.ts +28 -0
- package/build/ts/surfaces/checkout/components/ToggleButton/ToggleButton.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/ToggleButton/ToggleButton.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/ToggleButton/ToggleButton.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +29 -0
- package/build/ts/surfaces/checkout/components/ToggleButtonGroup/ToggleButtonGroup.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/ToggleButtonGroup/ToggleButtonGroup.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/ToggleButtonGroup/ToggleButtonGroup.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/View/View.d.ts +2 -2
- package/build/ts/surfaces/checkout/components/View/View.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/shared.d.ts +23 -15
- package/build/ts/surfaces/checkout/components/shared.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components.d.ts +20 -0
- 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/targets.d.ts +105 -50
- package/build/ts/surfaces/checkout/targets.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/api/order-status/order-status.d.ts +15 -4
- package/build/ts/surfaces/customer-account/api/order-status/order-status.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/api.d.ts +1 -1
- package/build/ts/surfaces/customer-account/api.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/components/Card/Card.d.ts +14 -0
- package/build/ts/surfaces/customer-account/components/Card/Card.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Card/index.d.ts +3 -0
- package/build/ts/surfaces/customer-account/components/Card/index.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/index.d.ts +3 -0
- package/build/ts/surfaces/customer-account/components/index.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/shared-checkout-components.d.ts +3 -0
- package/build/ts/surfaces/customer-account/components/shared-checkout-components.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/targets.d.ts +4 -4
- package/build/ts/surfaces/customer-account.d.ts +1 -1
- package/build/ts/surfaces/customer-account.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/cart-api/cart-api.d.ts +113 -0
- package/build/ts/surfaces/point-of-sale/api/cart-api/cart-api.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/api/connectivity-api/connectivity-api.d.ts +22 -0
- package/build/ts/surfaces/point-of-sale/api/connectivity-api/connectivity-api.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/api/device-api/device-api.d.ts +21 -0
- package/build/ts/surfaces/point-of-sale/api/device-api/device-api.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/api/locale-api/locale-api.d.ts +15 -0
- package/build/ts/surfaces/point-of-sale/api/locale-api/locale-api.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/api/navigation-api/navigation-api.d.ts +19 -0
- package/build/ts/surfaces/point-of-sale/api/navigation-api/navigation-api.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/api/product-search-api/product-search-api.d.ts +58 -0
- package/build/ts/surfaces/point-of-sale/api/product-search-api/product-search-api.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/api/scanner-api/scanner-api.d.ts +27 -0
- package/build/ts/surfaces/point-of-sale/api/scanner-api/scanner-api.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/api/session-api/session-api.d.ts +19 -0
- package/build/ts/surfaces/point-of-sale/api/session-api/session-api.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/api/smartgrid-api/smartgrid-api.d.ts +12 -0
- package/build/ts/surfaces/point-of-sale/api/smartgrid-api/smartgrid-api.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/api/standard/standard-api.d.ts +13 -0
- package/build/ts/surfaces/point-of-sale/api/standard/standard-api.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/api/toast-api/toast-api.d.ts +15 -0
- package/build/ts/surfaces/point-of-sale/api/toast-api/toast-api.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/api/types/cart.d.ts +101 -0
- package/build/ts/surfaces/point-of-sale/api/types/cart.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/api/types/country-code.d.ts +248 -0
- package/build/ts/surfaces/point-of-sale/api/types/country-code.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/api/types/multiple-resource-result.d.ts +15 -0
- package/build/ts/surfaces/point-of-sale/api/types/multiple-resource-result.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/api/types/paginated-result.d.ts +19 -0
- package/build/ts/surfaces/point-of-sale/api/types/paginated-result.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/api/types/product.d.ts +59 -0
- package/build/ts/surfaces/point-of-sale/api/types/product.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/api/types/session.d.ts +24 -0
- package/build/ts/surfaces/point-of-sale/api/types/session.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/api.d.ts +16 -0
- package/build/ts/surfaces/point-of-sale/api.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/components/Badge/Badge.d.ts +13 -0
- package/build/ts/surfaces/point-of-sale/components/Badge/Badge.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/components/Banner/Banner.d.ts +35 -0
- package/build/ts/surfaces/point-of-sale/components/Banner/Banner.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/components/Button/Button.d.ts +14 -0
- package/build/ts/surfaces/point-of-sale/components/Button/Button.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/components/CameraScanner/CameraScanner.d.ts +8 -0
- package/build/ts/surfaces/point-of-sale/components/CameraScanner/CameraScanner.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/components/DateField/DateField.d.ts +9 -0
- package/build/ts/surfaces/point-of-sale/components/DateField/DateField.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/components/DatePicker/DatePicker.d.ts +12 -0
- package/build/ts/surfaces/point-of-sale/components/DatePicker/DatePicker.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/components/Dialog/Dialog.d.ts +18 -0
- package/build/ts/surfaces/point-of-sale/components/Dialog/Dialog.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/components/EmailField/EmailField.d.ts +9 -0
- package/build/ts/surfaces/point-of-sale/components/EmailField/EmailField.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/components/FormattedTextField/FormattedTextField.d.ts +14 -0
- package/build/ts/surfaces/point-of-sale/components/FormattedTextField/FormattedTextField.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/components/Icon/Icon.d.ts +12 -0
- package/build/ts/surfaces/point-of-sale/components/Icon/Icon.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/components/Image/Image.d.ts +9 -0
- package/build/ts/surfaces/point-of-sale/components/Image/Image.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/components/List/List.d.ts +106 -0
- package/build/ts/surfaces/point-of-sale/components/List/List.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/components/Navigator/Navigator.d.ts +12 -0
- package/build/ts/surfaces/point-of-sale/components/Navigator/Navigator.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/components/NumberField/NumberField.d.ts +19 -0
- package/build/ts/surfaces/point-of-sale/components/NumberField/NumberField.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/components/PinPad/PinPad.d.ts +46 -0
- package/build/ts/surfaces/point-of-sale/components/PinPad/PinPad.d.ts.map +1 -0
- 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 -0
- package/build/ts/surfaces/point-of-sale/components/Screen/Screen.d.ts +43 -0
- package/build/ts/surfaces/point-of-sale/components/Screen/Screen.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/components/ScrollView/ScrollView.d.ts +6 -0
- package/build/ts/surfaces/point-of-sale/components/ScrollView/ScrollView.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/components/SearchBar/SearchBar.d.ts +14 -0
- package/build/ts/surfaces/point-of-sale/components/SearchBar/SearchBar.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/components/Section/Section.d.ts +14 -0
- package/build/ts/surfaces/point-of-sale/components/Section/Section.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/components/SegmentedControl/SegmentedControl.d.ts +16 -0
- package/build/ts/surfaces/point-of-sale/components/SegmentedControl/SegmentedControl.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/components/Selectable/Selectable.d.ts +10 -0
- package/build/ts/surfaces/point-of-sale/components/Selectable/Selectable.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/components/Spacing/Spacing.d.ts +3 -0
- package/build/ts/surfaces/point-of-sale/components/Spacing/Spacing.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/components/Stack/Stack.d.ts +18 -0
- package/build/ts/surfaces/point-of-sale/components/Stack/Stack.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/components/Stepper/Stepper.d.ts +34 -0
- package/build/ts/surfaces/point-of-sale/components/Stepper/Stepper.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/components/Text/Text.d.ts +12 -0
- package/build/ts/surfaces/point-of-sale/components/Text/Text.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/components/TextArea/TextArea.d.ts +15 -0
- package/build/ts/surfaces/point-of-sale/components/TextArea/TextArea.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/components/TextField/TextField.d.ts +37 -0
- package/build/ts/surfaces/point-of-sale/components/TextField/TextField.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/components/Tile/Tile.d.ts +14 -0
- package/build/ts/surfaces/point-of-sale/components/Tile/Tile.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/components/TimeField/TimeField.d.ts +10 -0
- package/build/ts/surfaces/point-of-sale/components/TimeField/TimeField.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/components/TimePicker/TimePicker.d.ts +13 -0
- package/build/ts/surfaces/point-of-sale/components/TimePicker/TimePicker.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/components/shared/BaseTextField.d.ts +10 -0
- package/build/ts/surfaces/point-of-sale/components/shared/BaseTextField.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/components/shared/InputField.d.ts +59 -0
- package/build/ts/surfaces/point-of-sale/components/shared/InputField.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/components/shared/auto-capitalization-type.d.ts +2 -0
- package/build/ts/surfaces/point-of-sale/components/shared/auto-capitalization-type.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/components.d.ts +64 -0
- package/build/ts/surfaces/point-of-sale/components.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/extension.d.ts +16 -0
- package/build/ts/surfaces/point-of-sale/extension.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/globals.d.ts +11 -0
- package/build/ts/surfaces/point-of-sale/globals.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/shared.d.ts +6 -0
- package/build/ts/surfaces/point-of-sale/shared.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/targets.d.ts +54 -0
- package/build/ts/surfaces/point-of-sale/targets.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale.d.ts +7 -0
- package/build/ts/surfaces/point-of-sale.d.ts.map +1 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +12 -3
- package/src/shared.ts +1 -1
- package/src/surfaces/admin/api/action/action.doc.ts +2 -2
- package/src/surfaces/admin/api/block/block.doc.ts +2 -2
- package/src/surfaces/admin/api/customer-segment-template/customer-segment-template.doc.ts +20 -0
- package/src/surfaces/admin/api/{customer-segmentation-template/customer-segmentation-template.ts → customer-segment-template/customer-segment-template.ts} +3 -5
- package/src/surfaces/admin/api/extension-targets/extension-targets.doc.ts +0 -1
- package/src/surfaces/admin/api/order-routing-rule/data.ts +21 -0
- package/src/surfaces/admin/api/order-routing-rule/metafields.ts +67 -0
- package/src/surfaces/admin/api/order-routing-rule/order-routing-rule.ts +11 -0
- package/src/surfaces/admin/api/standard/standard.doc.ts +0 -1
- package/src/surfaces/admin/api.ts +2 -1
- package/src/surfaces/admin/components/AdminAction/AdminAction.doc.ts +0 -1
- package/src/surfaces/admin/components/AdminAction/AdminAction.ts +8 -3
- package/src/surfaces/admin/components/AdminBlock/AdminBlock.doc.ts +0 -1
- package/src/surfaces/admin/components/AdminBlock/AdminBlock.ts +4 -2
- package/src/surfaces/admin/components/AdminBlock/examples/basic-adminblock.example.ts +0 -1
- package/src/surfaces/admin/components/Badge/Badge.doc.ts +42 -0
- package/src/surfaces/admin/components/Badge/Badge.ts +36 -0
- package/src/surfaces/admin/components/Badge/examples/basic-Badge.example.ts +11 -0
- package/src/surfaces/admin/components/Banner/Banner.doc.ts +42 -0
- package/src/surfaces/admin/components/Banner/Banner.ts +33 -0
- package/src/surfaces/admin/components/Banner/examples/basic-Banner.example.ts +11 -0
- package/src/surfaces/admin/components/BlockStack/BlockStack.doc.ts +0 -1
- package/src/surfaces/admin/components/BlockStack/BlockStack.ts +2 -5
- package/src/surfaces/admin/components/Box/Box.doc.ts +0 -1
- package/src/surfaces/admin/components/Button/Button.doc.ts +0 -1
- package/src/surfaces/admin/components/Button/Button.ts +12 -0
- package/src/surfaces/admin/components/Card/Card.doc-skip.ts +42 -0
- package/src/surfaces/admin/components/Card/Card.ts +13 -0
- package/src/surfaces/admin/components/Card/examples/basic-card.example.ts +11 -0
- package/src/surfaces/admin/components/Checkbox/Checkbox.doc.ts +0 -1
- package/src/surfaces/admin/components/Checkbox/Checkbox.ts +2 -7
- package/src/surfaces/admin/components/ChoiceList/ChoiceList.doc.ts +48 -0
- package/src/surfaces/admin/components/ChoiceList/ChoiceList.ts +36 -0
- package/src/surfaces/admin/components/ChoiceList/examples/basic-ChoiceList.example.ts +23 -0
- package/src/surfaces/admin/components/ColorPicker/ColorPicker.doc.ts +47 -0
- package/src/surfaces/admin/components/ColorPicker/ColorPicker.ts +43 -0
- package/src/surfaces/admin/components/ColorPicker/examples/basic-ColorPicker.example.ts +19 -0
- package/src/surfaces/admin/components/CustomerSegmentTemplate/CustomerSegmentTemplate.doc.ts +42 -0
- package/src/surfaces/admin/components/CustomerSegmentTemplate/CustomerSegmentTemplate.ts +45 -0
- package/src/surfaces/admin/components/CustomerSegmentTemplate/examples/CustomerSegmentTemplate.example.ts +17 -0
- package/src/surfaces/admin/components/CustomerSegmentTemplate/examples/CustomerSegmentTemplate.example.tsx +15 -0
- package/src/surfaces/admin/components/DateField/DateField.doc.ts +83 -0
- package/src/surfaces/admin/components/DateField/DateField.ts +26 -0
- package/src/surfaces/admin/components/DateField/examples/basic-datefield.example.ts +11 -0
- package/src/surfaces/admin/components/DateField/examples/multiple-datefield.example.ts +11 -0
- package/src/surfaces/admin/components/DateField/examples/range-datefield.example.ts +11 -0
- package/src/surfaces/admin/components/DatePicker/DatePicker.doc.ts +83 -0
- package/src/surfaces/admin/components/DatePicker/DatePicker.ts +100 -0
- package/src/surfaces/admin/components/DatePicker/examples/basic-datepicker.example.ts +11 -0
- package/src/surfaces/admin/components/DatePicker/examples/multiple-datepicker.example.ts +11 -0
- package/src/surfaces/admin/components/DatePicker/examples/range-datepicker.example.ts +11 -0
- package/src/surfaces/admin/components/Divider/Divider.doc.ts +0 -1
- package/src/surfaces/admin/components/EmailField/EmailField.doc.ts +0 -1
- package/src/surfaces/admin/components/Form/Form.doc.ts +1 -2
- package/src/surfaces/admin/components/Heading/Heading.doc.ts +0 -1
- package/src/surfaces/admin/components/HeadingGroup/HeadingGroup.doc.ts +0 -1
- package/src/surfaces/admin/components/Icon/Icon.doc.ts +0 -6
- package/src/surfaces/admin/components/Icon/Icon.ts +4 -10
- package/src/surfaces/admin/components/Image/Image.doc.ts +0 -1
- package/src/surfaces/admin/components/InlineStack/InlineStack.doc.ts +0 -1
- package/src/surfaces/admin/components/InlineStack/InlineStack.ts +2 -7
- package/src/surfaces/admin/components/InternalCustomerSegmentTemplate/InternalCustomerSegmentTemplate.ts +68 -0
- package/src/surfaces/admin/components/InternalCustomerSegmentTemplate/examples/InternalCustomerSegmentTemplate.example.ts +45 -0
- package/src/surfaces/admin/components/InternalLocationList/InternalLocationList.ts +76 -0
- package/src/surfaces/admin/components/Link/Link.doc.ts +0 -1
- package/src/surfaces/admin/components/Link/Link.ts +2 -7
- package/src/surfaces/admin/components/MoneyField/MoneyField.doc.ts +47 -0
- package/src/surfaces/admin/components/MoneyField/MoneyField.ts +22 -0
- package/src/surfaces/admin/components/MoneyField/README.md +3 -0
- package/src/surfaces/admin/components/MoneyField/examples/basic-moneyfield.example.ts +9 -0
- package/src/surfaces/admin/components/NumberField/NumberField.doc.ts +0 -1
- package/src/surfaces/admin/components/NumberField/NumberField.ts +2 -28
- package/src/surfaces/admin/components/Paragraph/Paragraph.doc.ts +48 -0
- package/src/surfaces/admin/components/Paragraph/Paragraph.ts +10 -0
- package/src/surfaces/admin/components/Paragraph/README.md +7 -0
- package/src/surfaces/admin/components/Paragraph/examples/basic-paragraph.example.ts +10 -0
- package/src/surfaces/admin/components/PasswordField/PasswordField.doc.ts +0 -1
- package/src/surfaces/admin/components/Pressable/Pressable.doc.ts +0 -1
- package/src/surfaces/admin/components/ProgressIndicator/ProgressIndicator.doc.ts +48 -0
- package/src/surfaces/admin/components/ProgressIndicator/ProgressIndicator.ts +32 -0
- package/src/surfaces/admin/components/ProgressIndicator/examples/basic-ProgressIndicator.example.ts +18 -0
- package/src/surfaces/admin/components/Select/Select.doc.ts +0 -1
- package/src/surfaces/admin/components/Text/Text.doc.ts +0 -1
- package/src/surfaces/admin/components/Text/Text.ts +7 -84
- package/src/surfaces/admin/components/TextArea/TextArea.doc.ts +0 -1
- package/src/surfaces/admin/components/TextField/TextField.doc.ts +0 -1
- package/src/surfaces/admin/components/URLField/URLField.doc.ts +0 -1
- package/src/surfaces/admin/components/shared/index.ts +349 -0
- package/src/surfaces/admin/components.ts +30 -2
- package/src/surfaces/admin/extension-targets.ts +96 -21
- package/src/surfaces/checkout/api/checkout/checkout.ts +6 -6
- package/src/surfaces/checkout/api/docs.ts +99 -0
- package/src/surfaces/checkout/api/payment/payment-option-item.ts +6 -0
- package/src/surfaces/checkout/api/redeemable/redeemable.ts +6 -1
- package/src/surfaces/checkout/api/shipping/shipping-option-list.ts +10 -0
- package/src/surfaces/checkout/api/standard/standard.ts +141 -20
- package/src/surfaces/checkout/api.ts +2 -0
- package/src/surfaces/checkout/components/BlockStack/BlockStack.ts +3 -1
- package/src/surfaces/checkout/components/Choice/Choice.ts +23 -1
- package/src/surfaces/checkout/components/Choice/examples/basic-choice.example.ts +6 -17
- package/src/surfaces/checkout/components/ChoiceList/ChoiceList.doc.ts +48 -8
- package/src/surfaces/checkout/components/ChoiceList/ChoiceList.ts +12 -4
- package/src/surfaces/checkout/components/ChoiceList/examples/basic-choicelist.example.ts +68 -37
- package/src/surfaces/checkout/components/ConsentCheckbox/ConsentCheckbox.doc.ts +72 -0
- package/src/surfaces/checkout/components/ConsentCheckbox/ConsentCheckbox.ts +17 -0
- package/src/surfaces/checkout/components/ConsentCheckbox/examples/basic-consent-checkbox.example.ts +11 -0
- package/src/surfaces/checkout/components/ConsentCheckbox/examples/with-consent-phone-field-consent-checkbox.example.ts +43 -0
- package/src/surfaces/checkout/components/ConsentPhoneField/ConsentPhoneField.doc.ts +72 -0
- package/src/surfaces/checkout/components/ConsentPhoneField/ConsentPhoneField.ts +19 -0
- package/src/surfaces/checkout/components/ConsentPhoneField/examples/basic-consent-phone-field.example.ts +10 -0
- package/src/surfaces/checkout/components/ConsentPhoneField/examples/with-consent-checkbox-consent-phone-field.example.ts +43 -0
- package/src/surfaces/checkout/components/Grid/Grid.ts +3 -1
- package/src/surfaces/checkout/components/GridItem/GridItem.ts +3 -1
- package/src/surfaces/checkout/components/Icon/Icon.ts +3 -3
- package/src/surfaces/checkout/components/InlineStack/InlineStack.ts +3 -1
- package/src/surfaces/checkout/components/LoginWithShop/LoginWithShop.ts +22 -0
- package/src/surfaces/checkout/components/Map/Map.doc.ts +54 -0
- package/src/surfaces/checkout/components/Map/Map.ts +99 -0
- package/src/surfaces/checkout/components/Map/examples/basic-map.example.ts +13 -0
- package/src/surfaces/checkout/components/MapMarker/MapMarker.doc.ts +62 -0
- package/src/surfaces/checkout/components/MapMarker/MapMarker.ts +47 -0
- package/src/surfaces/checkout/components/MapMarker/examples/basic-mapmarker.example.ts +23 -0
- package/src/surfaces/checkout/components/MapPopover/MapPopover.doc.ts +62 -0
- package/src/surfaces/checkout/components/MapPopover/MapPopover.ts +21 -0
- package/src/surfaces/checkout/components/MapPopover/examples/basic-mappopover.example.ts +36 -0
- package/src/surfaces/checkout/components/PaymentIcon/PaymentIcon.doc.ts +55 -0
- package/src/surfaces/checkout/components/PaymentIcon/PaymentIcon.ts +481 -0
- package/src/surfaces/checkout/components/PaymentIcon/examples/basic-paymenticon.example.ts +7 -0
- package/src/surfaces/checkout/components/Pressable/Pressable.ts +3 -1
- package/src/surfaces/checkout/components/ProductThumbnail/ProductThumbnail.doc.ts +50 -0
- package/src/surfaces/checkout/components/ProductThumbnail/ProductThumbnail.ts +86 -0
- package/src/surfaces/checkout/components/ProductThumbnail/examples/basic-productthumbnail.example.ts +11 -0
- package/src/surfaces/checkout/components/ScrollView/ScrollView.ts +9 -2
- package/src/surfaces/checkout/components/Select/Select.doc.ts +26 -0
- package/src/surfaces/checkout/components/Select/examples/time-picking-select.example.ts +36 -0
- package/src/surfaces/checkout/components/Text/Text.ts +7 -1
- package/src/surfaces/checkout/components/TextBlock/TextBlock.ts +7 -1
- package/src/surfaces/checkout/components/ToggleButton/ToggleButton.doc.ts +48 -0
- package/src/surfaces/checkout/components/ToggleButton/ToggleButton.ts +29 -0
- package/src/surfaces/checkout/components/ToggleButton/examples/basic-togglebutton.example.ts +20 -0
- package/src/surfaces/checkout/components/ToggleButtonGroup/ToggleButtonGroup.doc.ts +80 -0
- package/src/surfaces/checkout/components/ToggleButtonGroup/ToggleButtonGroup.ts +30 -0
- package/src/surfaces/checkout/components/ToggleButtonGroup/examples/basic-togglebuttongroup.example.ts +76 -0
- package/src/surfaces/checkout/components/View/View.ts +3 -1
- package/src/surfaces/checkout/components/shared.ts +26 -25
- package/src/surfaces/checkout/components.ts +41 -0
- package/src/surfaces/checkout/helper.docs.ts +34 -0
- package/src/surfaces/checkout/targets.ts +149 -51
- package/src/surfaces/customer-account/api/order-status/order-status.ts +18 -4
- package/src/surfaces/customer-account/api.ts +1 -0
- package/src/surfaces/customer-account/components/Card/Card.ts +12 -0
- package/src/surfaces/customer-account/components/Card/index.ts +2 -0
- package/src/surfaces/customer-account/components/index.ts +2 -0
- package/src/surfaces/customer-account/components/shared-checkout-components.ts +154 -0
- package/src/surfaces/customer-account/targets.ts +4 -4
- package/src/surfaces/customer-account.ts +1 -1
- package/src/surfaces/point-of-sale/api/cart-api/cart-api.ts +168 -0
- package/src/surfaces/point-of-sale/api/connectivity-api/connectivity-api.ts +25 -0
- package/src/surfaces/point-of-sale/api/device-api/device-api.ts +21 -0
- package/src/surfaces/point-of-sale/api/locale-api/locale-api.ts +16 -0
- package/src/surfaces/point-of-sale/api/navigation-api/navigation-api.ts +21 -0
- package/src/surfaces/point-of-sale/api/product-search-api/product-search-api.ts +80 -0
- package/src/surfaces/point-of-sale/api/scanner-api/scanner-api.ts +30 -0
- package/src/surfaces/point-of-sale/api/session-api/session-api.ts +20 -0
- package/src/surfaces/point-of-sale/api/smartgrid-api/smartgrid-api.ts +12 -0
- package/src/surfaces/point-of-sale/api/standard/standard-api.ts +17 -0
- package/src/surfaces/point-of-sale/api/toast-api/toast-api.ts +16 -0
- package/src/surfaces/point-of-sale/api/types/cart.ts +107 -0
- package/src/surfaces/point-of-sale/api/types/country-code.ts +249 -0
- package/src/surfaces/point-of-sale/api/types/multiple-resource-result.ts +14 -0
- package/src/surfaces/point-of-sale/api/types/paginated-result.ts +20 -0
- package/src/surfaces/point-of-sale/api/types/product.ts +62 -0
- package/src/surfaces/point-of-sale/api/types/session.ts +27 -0
- package/src/surfaces/point-of-sale/api.ts +79 -0
- package/src/surfaces/point-of-sale/components/Badge/Badge.ts +18 -0
- package/src/surfaces/point-of-sale/components/Banner/Banner.ts +39 -0
- package/src/surfaces/point-of-sale/components/Button/Button.ts +13 -0
- package/src/surfaces/point-of-sale/components/CameraScanner/CameraScanner.ts +8 -0
- package/src/surfaces/point-of-sale/components/DateField/DateField.ts +20 -0
- package/src/surfaces/point-of-sale/components/DatePicker/DatePicker.ts +12 -0
- package/src/surfaces/point-of-sale/components/Dialog/Dialog.ts +17 -0
- package/src/surfaces/point-of-sale/components/EmailField/EmailField.ts +8 -0
- package/src/surfaces/point-of-sale/components/FormattedTextField/FormattedTextField.ts +16 -0
- package/src/surfaces/point-of-sale/components/Icon/Icon.ts +93 -0
- package/src/surfaces/point-of-sale/components/Image/Image.ts +7 -0
- package/src/surfaces/point-of-sale/components/List/List.ts +110 -0
- package/src/surfaces/point-of-sale/components/Navigator/Navigator.ts +12 -0
- package/src/surfaces/point-of-sale/components/NumberField/NumberField.ts +20 -0
- package/src/surfaces/point-of-sale/components/PinPad/PinPad.ts +47 -0
- package/src/surfaces/point-of-sale/components/RadioButtonList/RadioButtonList.ts +13 -0
- package/src/surfaces/point-of-sale/components/Screen/Screen.ts +43 -0
- package/src/surfaces/point-of-sale/components/ScrollView/ScrollView.ts +3 -0
- package/src/surfaces/point-of-sale/components/SearchBar/SearchBar.ts +14 -0
- package/src/surfaces/point-of-sale/components/Section/Section.ts +15 -0
- package/src/surfaces/point-of-sale/components/SegmentedControl/SegmentedControl.ts +18 -0
- package/src/surfaces/point-of-sale/components/Selectable/Selectable.ts +10 -0
- package/src/surfaces/point-of-sale/components/Spacing/Spacing.ts +16 -0
- package/src/surfaces/point-of-sale/components/Stack/Stack.ts +37 -0
- package/src/surfaces/point-of-sale/components/Stepper/Stepper.ts +39 -0
- package/src/surfaces/point-of-sale/components/Text/Text.ts +28 -0
- package/src/surfaces/point-of-sale/components/TextArea/TextArea.ts +15 -0
- package/src/surfaces/point-of-sale/components/TextField/TextField.ts +47 -0
- package/src/surfaces/point-of-sale/components/Tile/Tile.ts +12 -0
- package/src/surfaces/point-of-sale/components/TimeField/TimeField.ts +22 -0
- package/src/surfaces/point-of-sale/components/TimePicker/TimePicker.ts +13 -0
- package/src/surfaces/point-of-sale/components/shared/BaseTextField.ts +9 -0
- package/src/surfaces/point-of-sale/components/shared/InputField.ts +61 -0
- package/src/surfaces/point-of-sale/components/shared/auto-capitalization-type.ts +5 -0
- package/src/surfaces/point-of-sale/components.ts +104 -0
- package/src/surfaces/point-of-sale/extension.ts +21 -0
- package/src/surfaces/point-of-sale/globals.ts +18 -0
- package/src/surfaces/point-of-sale/shared.ts +6 -0
- package/src/surfaces/point-of-sale/targets.ts +87 -0
- package/src/surfaces/point-of-sale.ts +6 -0
- package/build/cjs/surfaces/admin/components/CustomerSegmentationTemplate/CustomerSegmentationTemplate.js +0 -12
- package/build/esm/surfaces/admin/components/CustomerSegmentationTemplate/CustomerSegmentationTemplate.mjs +0 -8
- package/build/esnext/surfaces/admin/components/CustomerSegmentationTemplate/CustomerSegmentationTemplate.esnext +0 -8
- package/build/ts/surfaces/admin/api/customer-segmentation-template/customer-segmentation-template.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/CustomerSegmentationTemplate/CustomerSegmentationTemplate.d.ts +0 -27
- package/build/ts/surfaces/admin/components/CustomerSegmentationTemplate/CustomerSegmentationTemplate.d.ts.map +0 -1
- package/src/surfaces/admin/components/CustomerSegmentationTemplate/CustomerSegmentationTemplate.ts +0 -68
- package/src/surfaces/admin/components/CustomerSegmentationTemplate/examples/CustomerSegmentationTemplate.example.ts +0 -37
- package/src/surfaces/checkout/style/examples/.eslintrc.js +0 -8
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import {extension, Select} from '@shopify/ui-extensions/checkout';
|
|
2
|
+
|
|
3
|
+
export default extension('purchase.checkout.block.render', (root) => {
|
|
4
|
+
const select = root.createComponent(Select, {
|
|
5
|
+
label: 'Pickup time',
|
|
6
|
+
value: '1',
|
|
7
|
+
options: [
|
|
8
|
+
{
|
|
9
|
+
value: '1',
|
|
10
|
+
label: '9:00 AM',
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
value: '2',
|
|
14
|
+
label: '9:30 AM',
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
value: '3',
|
|
18
|
+
label: '10:00 AM',
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
value: '4',
|
|
22
|
+
label: '10:30 AM',
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
value: '5',
|
|
26
|
+
label: '11:00 AM',
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
value: '6',
|
|
30
|
+
label: '11:30 AM',
|
|
31
|
+
},
|
|
32
|
+
],
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
root.appendChild(select);
|
|
36
|
+
});
|
|
@@ -31,7 +31,13 @@ export interface TextProps extends VisibilityProps {
|
|
|
31
31
|
*/
|
|
32
32
|
appearance?: Extract<
|
|
33
33
|
Appearance,
|
|
34
|
-
|
|
34
|
+
| 'accent'
|
|
35
|
+
| 'subdued'
|
|
36
|
+
| 'info'
|
|
37
|
+
| 'success'
|
|
38
|
+
| 'warning'
|
|
39
|
+
| 'critical'
|
|
40
|
+
| 'decorative'
|
|
35
41
|
>;
|
|
36
42
|
}
|
|
37
43
|
|
|
@@ -22,7 +22,13 @@ export interface TextBlockProps extends IdProps {
|
|
|
22
22
|
*/
|
|
23
23
|
appearance?: Extract<
|
|
24
24
|
Appearance,
|
|
25
|
-
|
|
25
|
+
| 'accent'
|
|
26
|
+
| 'subdued'
|
|
27
|
+
| 'info'
|
|
28
|
+
| 'success'
|
|
29
|
+
| 'warning'
|
|
30
|
+
| 'critical'
|
|
31
|
+
| 'decorative'
|
|
26
32
|
>;
|
|
27
33
|
/**
|
|
28
34
|
* Align text along the main axis.
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import {ReferenceEntityTemplateSchema} from '@shopify/generate-docs';
|
|
2
|
+
|
|
3
|
+
const data: ReferenceEntityTemplateSchema = {
|
|
4
|
+
name: 'ToggleButton',
|
|
5
|
+
description:
|
|
6
|
+
'Options inside a [ToggleButtonGroup](/docs/api/checkout-ui-extensions/components/forms/togglebuttongroup).',
|
|
7
|
+
thumbnail: 'togglebutton-thumbnail.png',
|
|
8
|
+
requires: '',
|
|
9
|
+
isVisualComponent: true,
|
|
10
|
+
type: '',
|
|
11
|
+
definitions: [
|
|
12
|
+
{
|
|
13
|
+
title: 'ToggleButtonProps',
|
|
14
|
+
description: '',
|
|
15
|
+
type: 'ToggleButtonProps',
|
|
16
|
+
},
|
|
17
|
+
],
|
|
18
|
+
category: 'Components',
|
|
19
|
+
subCategory: 'Forms',
|
|
20
|
+
defaultExample: {
|
|
21
|
+
image: 'togglebutton-default.png',
|
|
22
|
+
codeblock: {
|
|
23
|
+
title: 'Basic ToggleButton',
|
|
24
|
+
tabs: [
|
|
25
|
+
{
|
|
26
|
+
title: 'React',
|
|
27
|
+
code: '../../../../../../ui-extensions-react/src/surfaces/checkout/components/ToggleButton/examples/basic-togglebutton.example.tsx',
|
|
28
|
+
language: 'tsx',
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
title: 'JS',
|
|
32
|
+
code: './examples/basic-togglebutton.example.ts',
|
|
33
|
+
language: 'js',
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
related: [
|
|
39
|
+
{
|
|
40
|
+
name: 'ToggleButtonGroup',
|
|
41
|
+
subtitle: 'Component',
|
|
42
|
+
url: 'togglebuttongroup',
|
|
43
|
+
type: 'Component',
|
|
44
|
+
},
|
|
45
|
+
],
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export default data;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import {createRemoteComponent} from '@remote-ui/core';
|
|
2
|
+
|
|
3
|
+
export interface ToggleButtonProps {
|
|
4
|
+
/**
|
|
5
|
+
* A unique identifier for the toggle button.
|
|
6
|
+
*/
|
|
7
|
+
id: string;
|
|
8
|
+
/**
|
|
9
|
+
* A label used for buyers using assistive technologies. When set, any
|
|
10
|
+
* `children` supplied to this component will not be announced to screen reader users.
|
|
11
|
+
*/
|
|
12
|
+
accessibilityLabel?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Disables the button, disallowing any interaction.
|
|
15
|
+
*/
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Callback when button is pressed.
|
|
19
|
+
*/
|
|
20
|
+
onPress?(): void;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Options inside a `ToggleButtonGroup`.
|
|
25
|
+
*/
|
|
26
|
+
export const ToggleButton = createRemoteComponent<
|
|
27
|
+
'ToggleButton',
|
|
28
|
+
ToggleButtonProps
|
|
29
|
+
>('ToggleButton');
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import {
|
|
2
|
+
extension,
|
|
3
|
+
ToggleButtonGroup,
|
|
4
|
+
ToggleButton,
|
|
5
|
+
} from '@shopify/ui-extensions/checkout';
|
|
6
|
+
|
|
7
|
+
export default extension('purchase.checkout.block.render', (root) => {
|
|
8
|
+
const toggleButtonGroup = root.createComponent(
|
|
9
|
+
ToggleButtonGroup,
|
|
10
|
+
{
|
|
11
|
+
value: 'none',
|
|
12
|
+
onChange: (value) => {
|
|
13
|
+
console.log(`onChange event with value: ${value}`);
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
[root.createComponent(ToggleButton, {id: 'none'}, 'None')],
|
|
17
|
+
);
|
|
18
|
+
|
|
19
|
+
root.appendChild(toggleButtonGroup);
|
|
20
|
+
});
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import {ReferenceEntityTemplateSchema} from '@shopify/generate-docs';
|
|
2
|
+
|
|
3
|
+
import {getExample} from '../../helper.docs';
|
|
4
|
+
|
|
5
|
+
const togglebuttongroupTimePicking = getExample(
|
|
6
|
+
'ui-components/togglebuttongroup-time-picking',
|
|
7
|
+
['jsx', 'js'],
|
|
8
|
+
);
|
|
9
|
+
|
|
10
|
+
const data: ReferenceEntityTemplateSchema = {
|
|
11
|
+
name: 'ToggleButtonGroup',
|
|
12
|
+
description:
|
|
13
|
+
'`ToggleButtonGroup` allows you to make a single choice out of the number of options provided. This is similar to the [ChoiceList](/docs/api/checkout-ui-extensions/components/forms/choicelist) component, but without controls such as checkbox or radio button.\n\nYou can utilize our layout components to arrange `ToggleButtonGroup`.',
|
|
14
|
+
thumbnail: 'togglebuttongroup-thumbnail.png',
|
|
15
|
+
requires: '',
|
|
16
|
+
isVisualComponent: true,
|
|
17
|
+
type: '',
|
|
18
|
+
definitions: [
|
|
19
|
+
{
|
|
20
|
+
title: 'ToggleButtonGroupProps',
|
|
21
|
+
description: '',
|
|
22
|
+
type: 'ToggleButtonGroupProps',
|
|
23
|
+
},
|
|
24
|
+
],
|
|
25
|
+
category: 'Components',
|
|
26
|
+
subCategory: 'Forms',
|
|
27
|
+
defaultExample: {
|
|
28
|
+
image: 'togglebuttongroup-default.png',
|
|
29
|
+
codeblock: {
|
|
30
|
+
title: 'Basic ToggleButtonGroup',
|
|
31
|
+
tabs: [
|
|
32
|
+
{
|
|
33
|
+
title: 'React',
|
|
34
|
+
code: '../../../../../../ui-extensions-react/src/surfaces/checkout/components/ToggleButtonGroup/examples/basic-togglebuttongroup.example.tsx',
|
|
35
|
+
language: 'tsx',
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
title: 'JS',
|
|
39
|
+
code: './examples/basic-togglebuttongroup.example.ts',
|
|
40
|
+
language: 'js',
|
|
41
|
+
},
|
|
42
|
+
],
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
subSections: [
|
|
46
|
+
{
|
|
47
|
+
type: 'Generic',
|
|
48
|
+
anchorLink: 'best-practices',
|
|
49
|
+
title: 'Best Practices',
|
|
50
|
+
sectionContent:
|
|
51
|
+
'ToggleButtonGroup is a component designed for streamlined single-choice selection, without any additional details associated with the selection. If you need to allow multiple selections or present associated details, it is recommended to use [ChoiceList](/docs/api/checkout-ui-extensions/components/forms/choicelist) instead.',
|
|
52
|
+
sectionSubContent: [
|
|
53
|
+
{
|
|
54
|
+
title: 'Label and order',
|
|
55
|
+
sectionContent:
|
|
56
|
+
'Use descriptive and concise labels for each Toggle button, and maintain consistency in the terminology used across options. Arrange the Toggle buttons in a logical order that makes sense to users. Consider factors such as alphabetical order, chronological order, or order of importance, depending on the context.',
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
title: 'Number of Toggle buttons',
|
|
60
|
+
sectionContent:
|
|
61
|
+
'Avoid overwhelming users with too many Toggle buttons. Ideally, limit the number of choices to a manageable amount, typically between 2 and 7, to prevent decision fatigue and maintain clarity.',
|
|
62
|
+
},
|
|
63
|
+
],
|
|
64
|
+
},
|
|
65
|
+
],
|
|
66
|
+
examples: {
|
|
67
|
+
description: '',
|
|
68
|
+
examples: [togglebuttongroupTimePicking],
|
|
69
|
+
},
|
|
70
|
+
related: [
|
|
71
|
+
{
|
|
72
|
+
name: 'ToggleButton',
|
|
73
|
+
subtitle: 'Component',
|
|
74
|
+
url: 'togglebutton',
|
|
75
|
+
type: 'Component',
|
|
76
|
+
},
|
|
77
|
+
],
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
export default data;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import {createRemoteComponent} from '@remote-ui/core';
|
|
2
|
+
|
|
3
|
+
export interface ToggleButtonGroupProps<T extends string> {
|
|
4
|
+
/**
|
|
5
|
+
* An id of the selected button.
|
|
6
|
+
*/
|
|
7
|
+
value: T;
|
|
8
|
+
/**
|
|
9
|
+
* Whether the button group is disabled.
|
|
10
|
+
*/
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* A callback that is run whenever one of the buttons is pressed. This callback
|
|
14
|
+
* is called with a string or array of strings indicating the ids of buttons
|
|
15
|
+
* that should now be selected. When this component is
|
|
16
|
+
* [controlled](https://reactjs.org/docs/forms.html#controlled-components),
|
|
17
|
+
* you must store this value in state and reflect it back in the `value` prop.
|
|
18
|
+
*/
|
|
19
|
+
onChange(value: T): void;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* `ToggleButtonGroup` allows you to make a single choice out of the number of options provided.
|
|
24
|
+
* This is similar to the `ChoiceList` component, but without controls such as checkbox or radio button.
|
|
25
|
+
* You can utilize our layout components to arrange `ToggleButtonGroup`.
|
|
26
|
+
*/
|
|
27
|
+
export const ToggleButtonGroup = createRemoteComponent<
|
|
28
|
+
'ToggleButtonGroup',
|
|
29
|
+
ToggleButtonGroupProps<string>
|
|
30
|
+
>('ToggleButtonGroup');
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import {
|
|
2
|
+
extension,
|
|
3
|
+
ToggleButtonGroup,
|
|
4
|
+
ToggleButton,
|
|
5
|
+
InlineLayout,
|
|
6
|
+
View,
|
|
7
|
+
BlockStack,
|
|
8
|
+
Text,
|
|
9
|
+
} from '@shopify/ui-extensions/checkout';
|
|
10
|
+
|
|
11
|
+
export default extension('purchase.checkout.block.render', (root) => {
|
|
12
|
+
const toggleButtonGroup = root.createComponent(
|
|
13
|
+
ToggleButtonGroup,
|
|
14
|
+
{
|
|
15
|
+
value: 'none',
|
|
16
|
+
onChange: (value) => {
|
|
17
|
+
console.log(`onChange event with value: ${value}`);
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
[
|
|
21
|
+
root.createComponent(InlineLayout, {spacing: 'base'}, [
|
|
22
|
+
root.createComponent(
|
|
23
|
+
ToggleButton,
|
|
24
|
+
{id: 'none'},
|
|
25
|
+
root.createComponent(
|
|
26
|
+
View,
|
|
27
|
+
{
|
|
28
|
+
blockAlignment: 'center',
|
|
29
|
+
inlineAlignment: 'center',
|
|
30
|
+
minBlockSize: 'fill',
|
|
31
|
+
},
|
|
32
|
+
'None',
|
|
33
|
+
),
|
|
34
|
+
),
|
|
35
|
+
root.createComponent(
|
|
36
|
+
ToggleButton,
|
|
37
|
+
{id: 'points-100'},
|
|
38
|
+
root.createComponent(
|
|
39
|
+
BlockStack,
|
|
40
|
+
{inlineAlignment: 'center', spacing: 'none'},
|
|
41
|
+
[
|
|
42
|
+
root.createComponent(Text, undefined, '100'),
|
|
43
|
+
root.createComponent(Text, {appearance: 'subdued'}, 'points'),
|
|
44
|
+
],
|
|
45
|
+
),
|
|
46
|
+
),
|
|
47
|
+
root.createComponent(
|
|
48
|
+
ToggleButton,
|
|
49
|
+
{id: 'points-200'},
|
|
50
|
+
root.createComponent(
|
|
51
|
+
BlockStack,
|
|
52
|
+
{inlineAlignment: 'center', spacing: 'none'},
|
|
53
|
+
[
|
|
54
|
+
root.createComponent(Text, undefined, '200'),
|
|
55
|
+
root.createComponent(Text, {appearance: 'subdued'}, 'points'),
|
|
56
|
+
],
|
|
57
|
+
),
|
|
58
|
+
),
|
|
59
|
+
root.createComponent(
|
|
60
|
+
ToggleButton,
|
|
61
|
+
{id: 'points-300'},
|
|
62
|
+
root.createComponent(
|
|
63
|
+
BlockStack,
|
|
64
|
+
{inlineAlignment: 'center', spacing: 'none'},
|
|
65
|
+
[
|
|
66
|
+
root.createComponent(Text, undefined, '300'),
|
|
67
|
+
root.createComponent(Text, {appearance: 'subdued'}, 'points'),
|
|
68
|
+
],
|
|
69
|
+
),
|
|
70
|
+
),
|
|
71
|
+
]),
|
|
72
|
+
],
|
|
73
|
+
);
|
|
74
|
+
|
|
75
|
+
root.appendChild(toggleButtonGroup);
|
|
76
|
+
});
|
|
@@ -2,6 +2,7 @@ import {createRemoteComponent} from '@remote-ui/core';
|
|
|
2
2
|
|
|
3
3
|
import {MaybeResponsiveConditionalStyle} from '../../style';
|
|
4
4
|
import type {
|
|
5
|
+
BackgroundProps,
|
|
5
6
|
BlockAlignment,
|
|
6
7
|
BorderProps,
|
|
7
8
|
InlineAlignment,
|
|
@@ -101,7 +102,8 @@ export interface Translate {
|
|
|
101
102
|
}
|
|
102
103
|
|
|
103
104
|
export interface ViewProps
|
|
104
|
-
extends
|
|
105
|
+
extends Pick<BackgroundProps, 'background'>,
|
|
106
|
+
BorderProps,
|
|
105
107
|
CornerProps,
|
|
106
108
|
SizingProps,
|
|
107
109
|
SpacingProps,
|
|
@@ -162,8 +162,11 @@ export type CornerRadiusDeprecated = 'tight' | 'loose';
|
|
|
162
162
|
export interface BackgroundProps {
|
|
163
163
|
/**
|
|
164
164
|
* Adjust the background.
|
|
165
|
+
*
|
|
166
|
+
* @defaultValue 'transparent'
|
|
165
167
|
*/
|
|
166
168
|
background?: MaybeConditionalStyle<Background>;
|
|
169
|
+
|
|
167
170
|
/**
|
|
168
171
|
* Sets one or multiple responsive background images.
|
|
169
172
|
*/
|
|
@@ -277,6 +280,8 @@ export interface SizingProps {
|
|
|
277
280
|
* `` `${number}%` ``: size in percentages.
|
|
278
281
|
*
|
|
279
282
|
* `fill`: takes all the available space.
|
|
283
|
+
*
|
|
284
|
+
* See [MDN explanation of maxBlockSize](https://developer.mozilla.org/en-US/docs/Web/CSS/max-block-size).
|
|
280
285
|
*/
|
|
281
286
|
maxBlockSize?: MaybeResponsiveConditionalStyle<
|
|
282
287
|
number | `${number}%` | 'fill'
|
|
@@ -290,6 +295,8 @@ export interface SizingProps {
|
|
|
290
295
|
* `` `${number}%` ``: size in percentages.
|
|
291
296
|
*
|
|
292
297
|
* `fill`: takes all the available space.
|
|
298
|
+
*
|
|
299
|
+
* See [MDN explanation of maxInlineSize](https://developer.mozilla.org/en-US/docs/Web/CSS/max-inline-size).
|
|
293
300
|
*/
|
|
294
301
|
maxInlineSize?: MaybeResponsiveConditionalStyle<
|
|
295
302
|
number | `${number}%` | 'fill'
|
|
@@ -302,7 +309,9 @@ export interface SizingProps {
|
|
|
302
309
|
*
|
|
303
310
|
* `` `${number}%` ``: size in percentages.
|
|
304
311
|
*
|
|
305
|
-
* `fill`: takes all the available space
|
|
312
|
+
* `fill`: takes all the available space.\
|
|
313
|
+
*
|
|
314
|
+
* See [MDN explanation of minInlineSize](https://developer.mozilla.org/en-US/docs/Web/CSS/min-inline-size).
|
|
306
315
|
*/
|
|
307
316
|
minInlineSize?: MaybeResponsiveConditionalStyle<
|
|
308
317
|
number | `${number}%` | 'fill'
|
|
@@ -316,6 +325,8 @@ export interface SizingProps {
|
|
|
316
325
|
* `` `${number}%` ``: size in percentages.
|
|
317
326
|
*
|
|
318
327
|
* `fill`: takes all the available space.
|
|
328
|
+
*
|
|
329
|
+
* See [MDN explanation of minBlockSize](https://developer.mozilla.org/en-US/docs/Web/CSS/min-block-size).
|
|
319
330
|
*/
|
|
320
331
|
minBlockSize?: MaybeResponsiveConditionalStyle<
|
|
321
332
|
number | `${number}%` | 'fill'
|
|
@@ -335,7 +346,7 @@ export interface SpacingProps {
|
|
|
335
346
|
*
|
|
336
347
|
* - [`base`, `none`] means blockStart and blockEnd paddings are `base`, inlineStart and inlineEnd paddings are `none`
|
|
337
348
|
*
|
|
338
|
-
* - [`base`, `none`, `
|
|
349
|
+
* - [`base`, `none`, `loose`, `tight`] means blockStart padding is `base`, inlineEnd padding is `none`, blockEnd padding is `loose` and blockStart padding is `tight`
|
|
339
350
|
*/
|
|
340
351
|
padding?: MaybeResponsiveConditionalStyle<MaybeShorthandProperty<Spacing>>;
|
|
341
352
|
}
|
|
@@ -467,42 +478,32 @@ export type Size =
|
|
|
467
478
|
|
|
468
479
|
export type Spacing =
|
|
469
480
|
| 'none'
|
|
470
|
-
| '
|
|
471
|
-
| '
|
|
472
|
-
| 'small300'
|
|
473
|
-
| 'small200'
|
|
474
|
-
| 'small100'
|
|
481
|
+
| 'extraTight'
|
|
482
|
+
| 'tight'
|
|
475
483
|
| 'base'
|
|
476
|
-
| '
|
|
477
|
-
| '
|
|
478
|
-
| 'large300'
|
|
479
|
-
| 'large400'
|
|
480
|
-
| 'large500'
|
|
481
|
-
| SpacingDeprecated;
|
|
482
|
-
|
|
483
|
-
/** @deprecated These values are deprecated and will eventually be removed.
|
|
484
|
-
* Use the new values.
|
|
485
|
-
*
|
|
486
|
-
* `extraTight`: `small400`
|
|
487
|
-
* `tight`: `small200`
|
|
488
|
-
* `loose`: `large200`
|
|
489
|
-
* `extraLoose`: `large500`
|
|
490
|
-
*/
|
|
491
|
-
export type SpacingDeprecated = 'extraTight' | 'tight' | 'loose' | 'extraLoose';
|
|
484
|
+
| 'loose'
|
|
485
|
+
| 'extraLoose';
|
|
492
486
|
|
|
493
487
|
export type Alignment = 'start' | 'center' | 'end';
|
|
494
488
|
export type InlineAlignment = 'start' | 'center' | 'end';
|
|
495
489
|
export type BlockAlignment = Alignment | 'baseline';
|
|
496
490
|
|
|
497
|
-
export type Background = 'transparent' | '
|
|
491
|
+
export type Background = 'transparent' | 'base' | 'subdued';
|
|
498
492
|
export type BackgroundFit = 'cover' | 'contain';
|
|
499
493
|
export type BackgroundPosition = 'top' | 'bottom' | 'left' | 'right' | 'center';
|
|
500
494
|
export type BackgroundRepeat = 'repeat' | 'noRepeat';
|
|
501
495
|
|
|
502
496
|
export type Appearance =
|
|
497
|
+
/** Takes the default color for the element set within the theme*/
|
|
498
|
+
| 'base'
|
|
503
499
|
/** Conveys emphasis and draws attention to the element.*/
|
|
504
500
|
| 'accent'
|
|
505
|
-
/** Conveys that the element is
|
|
501
|
+
/** Conveys that the element is decorative. It takes the `decorative` color set within the theme.*/
|
|
502
|
+
| 'decorative'
|
|
503
|
+
/**
|
|
504
|
+
* Conveys that the element is pressable, hoverable or otherwise interactive.
|
|
505
|
+
* @deprecated Use `accent` instead.
|
|
506
|
+
*/
|
|
506
507
|
| 'interactive'
|
|
507
508
|
/** Conveys a subdued or disabled state for the element.*/
|
|
508
509
|
| 'subdued'
|
|
@@ -13,6 +13,15 @@ export type {BlockStackProps} from './components/BlockStack/BlockStack';
|
|
|
13
13
|
export {Button} from './components/Button/Button';
|
|
14
14
|
export type {ButtonProps} from './components/Button/Button';
|
|
15
15
|
|
|
16
|
+
export {ConsentCheckbox} from './components/ConsentCheckbox/ConsentCheckbox';
|
|
17
|
+
export type {ConsentCheckboxProps} from './components/ConsentCheckbox/ConsentCheckbox';
|
|
18
|
+
|
|
19
|
+
export {ConsentPhoneField} from './components/ConsentPhoneField/ConsentPhoneField';
|
|
20
|
+
export type {
|
|
21
|
+
ConsentPhoneFieldProps,
|
|
22
|
+
ConsentPolicy,
|
|
23
|
+
} from './components/ConsentPhoneField/ConsentPhoneField';
|
|
24
|
+
|
|
16
25
|
export {Checkbox} from './components/Checkbox/Checkbox';
|
|
17
26
|
export type {CheckboxProps} from './components/Checkbox/Checkbox';
|
|
18
27
|
|
|
@@ -81,15 +90,41 @@ export type {ListProps} from './components/List/List';
|
|
|
81
90
|
export {ListItem} from './components/ListItem/ListItem';
|
|
82
91
|
export type {ListItemProps} from './components/ListItem/ListItem';
|
|
83
92
|
|
|
93
|
+
export {LoginWithShop} from './components/LoginWithShop/LoginWithShop';
|
|
94
|
+
export type {LoginWithShopProps} from './components/LoginWithShop/LoginWithShop';
|
|
95
|
+
|
|
96
|
+
export {Map} from './components/Map/Map';
|
|
97
|
+
export type {
|
|
98
|
+
MapProps,
|
|
99
|
+
MapLocation,
|
|
100
|
+
MapBounds,
|
|
101
|
+
MapZoom,
|
|
102
|
+
} from './components/Map/Map';
|
|
103
|
+
|
|
104
|
+
export {MapMarker} from './components/MapMarker/MapMarker';
|
|
105
|
+
export type {MapMarkerProps} from './components/MapMarker/MapMarker';
|
|
106
|
+
|
|
107
|
+
export {MapPopover} from './components/MapPopover/MapPopover';
|
|
108
|
+
export type {MapPopoverProps} from './components/MapPopover/MapPopover';
|
|
109
|
+
|
|
84
110
|
export {Modal} from './components/Modal/Modal';
|
|
85
111
|
export type {ModalProps} from './components/Modal/Modal';
|
|
86
112
|
|
|
113
|
+
export {PaymentIcon} from './components/PaymentIcon/PaymentIcon';
|
|
114
|
+
export type {
|
|
115
|
+
PaymentIconProps,
|
|
116
|
+
PaymentMethod,
|
|
117
|
+
} from './components/PaymentIcon/PaymentIcon';
|
|
118
|
+
|
|
87
119
|
export {PhoneField} from './components/PhoneField/PhoneField';
|
|
88
120
|
export type {PhoneFieldProps} from './components/PhoneField/PhoneField';
|
|
89
121
|
|
|
90
122
|
export {Pressable} from './components/Pressable/Pressable';
|
|
91
123
|
export type {PressableProps} from './components/Pressable/Pressable';
|
|
92
124
|
|
|
125
|
+
export {ProductThumbnail} from './components/ProductThumbnail/ProductThumbnail';
|
|
126
|
+
export type {ProductThumbnailProps} from './components/ProductThumbnail/ProductThumbnail';
|
|
127
|
+
|
|
93
128
|
export {Popover} from './components/Popover/Popover';
|
|
94
129
|
export type {PopoverProps, PopoverPosition} from './components/Popover/Popover';
|
|
95
130
|
|
|
@@ -132,6 +167,12 @@ export type {TextFieldProps} from './components/TextField/TextField';
|
|
|
132
167
|
export {Tooltip} from './components/Tooltip/Tooltip';
|
|
133
168
|
export type {TooltipProps} from './components/Tooltip/Tooltip';
|
|
134
169
|
|
|
170
|
+
export {ToggleButton} from './components/ToggleButton/ToggleButton';
|
|
171
|
+
export type {ToggleButtonProps} from './components/ToggleButton/ToggleButton';
|
|
172
|
+
|
|
173
|
+
export {ToggleButtonGroup} from './components/ToggleButtonGroup/ToggleButtonGroup';
|
|
174
|
+
export type {ToggleButtonGroupProps} from './components/ToggleButtonGroup/ToggleButtonGroup';
|
|
175
|
+
|
|
135
176
|
export {View} from './components/View/View';
|
|
136
177
|
export type {
|
|
137
178
|
ViewProps,
|
|
@@ -78,6 +78,40 @@ export function getExamples(
|
|
|
78
78
|
tabs: getExtensionCodeTabs('ui-components/loading-skeletons'),
|
|
79
79
|
},
|
|
80
80
|
},
|
|
81
|
+
'ui-components/togglebuttongroup-time-picking': {
|
|
82
|
+
image: 'togglebuttongroup-time-picking.png',
|
|
83
|
+
description: `The ToggleButtonGroup component is ideal for a small set of options. It allows for easy scanning of available choices. Also the component’s big tap target makes it a good choice for enhanced mobile experience. However, in a grid layout, having more than 6 ToggleButtons can get overwhelming and take up too much vertical space. When there are more than 6 choices, consider using the [Select](/docs/api/checkout-ui-extensions/components/forms/select) component instead. `,
|
|
84
|
+
codeblock: {
|
|
85
|
+
title: 'Displaying a small set of time choices',
|
|
86
|
+
tabs: getExtensionCodeTabs(
|
|
87
|
+
'ui-components/togglebuttongroup-time-picking',
|
|
88
|
+
),
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
'ui-components/choicelist-survey': {
|
|
92
|
+
description: `The base variant’s flexibility allows for the creation of Likert scales using the ChoiceList component. By utilizing layout components, you can easily structure rows and columns for this purpose.`,
|
|
93
|
+
image: 'choicelist-survey.png',
|
|
94
|
+
codeblock: {
|
|
95
|
+
title: 'Custom survey using the base variant',
|
|
96
|
+
tabs: getExtensionCodeTabs('ui-components/choicelist-survey'),
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
'ui-components/choicelist-details': {
|
|
100
|
+
description: `The ChoiceList’s group variant, combined with the details property, allows for the conditional display of information when needed.`,
|
|
101
|
+
image: 'choicelist-details.png',
|
|
102
|
+
codeblock: {
|
|
103
|
+
title: 'Collecting additional information',
|
|
104
|
+
tabs: getExtensionCodeTabs('ui-components/choicelist-details'),
|
|
105
|
+
},
|
|
106
|
+
},
|
|
107
|
+
'ui-components/choicelist-time-picking': {
|
|
108
|
+
description: `The ChoiceList component is great for presenting a concise list of options, particularly when showcasing time ranges due to its ample horizontal space. However, if there’s more than 5 choices, use the [Select](/docs/api/checkout-ui-extensions/components/forms/select) component instead.`,
|
|
109
|
+
image: 'choicelist-time-picking.png',
|
|
110
|
+
codeblock: {
|
|
111
|
+
title: 'Displaying a short list of time choices',
|
|
112
|
+
tabs: getExtensionCodeTabs('ui-components/choicelist-time-picking'),
|
|
113
|
+
},
|
|
114
|
+
},
|
|
81
115
|
};
|
|
82
116
|
}
|
|
83
117
|
|