@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,48 @@
|
|
|
1
|
+
import {ReferenceEntityTemplateSchema} from '@shopify/generate-docs';
|
|
2
|
+
|
|
3
|
+
const data: ReferenceEntityTemplateSchema = {
|
|
4
|
+
name: 'ChoiceList',
|
|
5
|
+
description:
|
|
6
|
+
'Use this component if you need to group together a related list of interactive choices as radio buttons or checkboxes.',
|
|
7
|
+
requires: '',
|
|
8
|
+
thumbnail: 'choicelist-thumbnail.png',
|
|
9
|
+
isVisualComponent: true,
|
|
10
|
+
type: '',
|
|
11
|
+
definitions: [
|
|
12
|
+
{
|
|
13
|
+
title: 'ChoiceListProps',
|
|
14
|
+
description: '',
|
|
15
|
+
type: 'ChoiceListProps',
|
|
16
|
+
},
|
|
17
|
+
],
|
|
18
|
+
category: 'Components',
|
|
19
|
+
subCategory: 'Forms',
|
|
20
|
+
defaultExample: {
|
|
21
|
+
image: 'choicelist-default.png',
|
|
22
|
+
codeblock: {
|
|
23
|
+
title: 'Simple ChoiceList example',
|
|
24
|
+
tabs: [
|
|
25
|
+
{
|
|
26
|
+
title: 'React',
|
|
27
|
+
code: '../../../../../../ui-extensions-react/src/surfaces/admin/components/ChoiceList/examples/basic-ChoiceList.example.tsx',
|
|
28
|
+
language: 'tsx',
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
title: 'JS',
|
|
32
|
+
code: './examples/basic-ChoiceList.example.ts',
|
|
33
|
+
language: 'js',
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
|
|
39
|
+
related: [
|
|
40
|
+
{
|
|
41
|
+
type: 'component',
|
|
42
|
+
name: 'Select',
|
|
43
|
+
url: '/docs/api/admin-extensions/components/forms/select',
|
|
44
|
+
},
|
|
45
|
+
],
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export default data;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import {createRemoteComponent} from '@remote-ui/core';
|
|
2
|
+
import {AccessibilityLabelProps, InputProps} from '../shared';
|
|
3
|
+
|
|
4
|
+
export interface ChoiceProps
|
|
5
|
+
extends AccessibilityLabelProps,
|
|
6
|
+
Pick<
|
|
7
|
+
InputProps<string>,
|
|
8
|
+
'disabled' | 'label' | 'id' | 'readOnly' | 'error'
|
|
9
|
+
> {
|
|
10
|
+
/**
|
|
11
|
+
* Whether the choice is checked or not
|
|
12
|
+
*/
|
|
13
|
+
checked?: boolean;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface ChoiceListProps
|
|
17
|
+
extends Pick<
|
|
18
|
+
InputProps<string | string[]>,
|
|
19
|
+
| 'value'
|
|
20
|
+
| 'name'
|
|
21
|
+
| 'onChange'
|
|
22
|
+
| 'disabled'
|
|
23
|
+
| 'error'
|
|
24
|
+
| 'readOnly'
|
|
25
|
+
| 'defaultValue'
|
|
26
|
+
> {
|
|
27
|
+
choices?: ChoiceProps[];
|
|
28
|
+
/**
|
|
29
|
+
* Whether to allow selection of multiple choices
|
|
30
|
+
*/
|
|
31
|
+
multiple?: boolean;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export const ChoiceList = createRemoteComponent<'ChoiceList', ChoiceListProps>(
|
|
35
|
+
'ChoiceList',
|
|
36
|
+
);
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import {
|
|
2
|
+
extension,
|
|
3
|
+
ChoiceList,
|
|
4
|
+
} from '@shopify/ui-extensions/admin';
|
|
5
|
+
|
|
6
|
+
export default extension(
|
|
7
|
+
'Playground',
|
|
8
|
+
(root) => {
|
|
9
|
+
const blockStack = root.createComponent(
|
|
10
|
+
ChoiceList,
|
|
11
|
+
{
|
|
12
|
+
name: 'Company name',
|
|
13
|
+
choices: [
|
|
14
|
+
{label: 'Hidden', id: '1'},
|
|
15
|
+
{label: 'Optional', id: '2'},
|
|
16
|
+
{label: 'Required', id: '3'},
|
|
17
|
+
]
|
|
18
|
+
},
|
|
19
|
+
);
|
|
20
|
+
|
|
21
|
+
root.appendChild(blockStack);
|
|
22
|
+
},
|
|
23
|
+
);
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import {ReferenceEntityTemplateSchema} from '@shopify/generate-docs';
|
|
2
|
+
|
|
3
|
+
const data: ReferenceEntityTemplateSchema = {
|
|
4
|
+
name: 'ColorPicker',
|
|
5
|
+
description: 'Use this component if you need to select a color.',
|
|
6
|
+
requires: '',
|
|
7
|
+
thumbnail: 'colorpicker-thumbnail.png',
|
|
8
|
+
isVisualComponent: true,
|
|
9
|
+
type: '',
|
|
10
|
+
definitions: [
|
|
11
|
+
{
|
|
12
|
+
title: 'ColorPickerProps',
|
|
13
|
+
description: '',
|
|
14
|
+
type: 'ColorPickerProps',
|
|
15
|
+
},
|
|
16
|
+
],
|
|
17
|
+
category: 'Components',
|
|
18
|
+
subCategory: 'Forms',
|
|
19
|
+
defaultExample: {
|
|
20
|
+
image: 'colorpicker-default.png',
|
|
21
|
+
codeblock: {
|
|
22
|
+
title: 'Simple ColorPicker example',
|
|
23
|
+
tabs: [
|
|
24
|
+
{
|
|
25
|
+
title: 'React',
|
|
26
|
+
code: '../../../../../../ui-extensions-react/src/surfaces/admin/components/ColorPicker/examples/basic-ColorPicker.example.tsx',
|
|
27
|
+
language: 'tsx',
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
title: 'JS',
|
|
31
|
+
code: './examples/basic-ColorPicker.example.ts',
|
|
32
|
+
language: 'js',
|
|
33
|
+
},
|
|
34
|
+
],
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
|
|
38
|
+
related: [
|
|
39
|
+
{
|
|
40
|
+
type: 'component',
|
|
41
|
+
name: 'Select',
|
|
42
|
+
url: '/docs/api/admin-extensions/components/forms/select',
|
|
43
|
+
},
|
|
44
|
+
],
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
export default data;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import {createRemoteComponent} from '@remote-ui/core';
|
|
2
|
+
|
|
3
|
+
export interface ColorPickerProps {
|
|
4
|
+
/** ID for the element. */
|
|
5
|
+
id?: string;
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Allow user to select an alpha value.
|
|
9
|
+
* @default false
|
|
10
|
+
*/
|
|
11
|
+
allowAlpha?: boolean;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* The `onChange` handler will emit the value in hex.
|
|
15
|
+
* If the `allowAlpha` prop is `true`, `onChange` will emit an 8-value hex (#RRGGBBAA).
|
|
16
|
+
* If the `allowAlpha` prop is `false`, `onChange` will emit a 6-value hex (#RRGGBB).
|
|
17
|
+
*/
|
|
18
|
+
onChange?(value: string): void;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* The currently selected color.
|
|
22
|
+
*
|
|
23
|
+
* Supported formats include:
|
|
24
|
+
* - RGB @see https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/rgb
|
|
25
|
+
* - RGBA @see https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/rgb
|
|
26
|
+
* - Hex (3-value, 4-value, 6-value, 8-value) @see https://developer.mozilla.org/en-US/docs/Web/CSS/hex-color
|
|
27
|
+
*
|
|
28
|
+
* For RGB and RGBA, both the legacy syntax (comma-separated) and modern syntax (space-separate) are supported.
|
|
29
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/rgb
|
|
30
|
+
*
|
|
31
|
+
* If the value is invalid, the component will select rgb(0, 0, 0).
|
|
32
|
+
*
|
|
33
|
+
* The `onChange` handler will emit the value in hex.
|
|
34
|
+
* If the `allowAlpha` prop is `true`, `onChange` will emit an 8-value hex (#RRGGBBAA).
|
|
35
|
+
* If the `allowAlpha` prop is `false`, `onChange` will emit a 6-value hex (#RRGGBB).
|
|
36
|
+
*/
|
|
37
|
+
value?: string;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export const ColorPicker = createRemoteComponent<
|
|
41
|
+
'ColorPicker',
|
|
42
|
+
ColorPickerProps
|
|
43
|
+
>('ColorPicker');
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
extension,
|
|
3
|
+
ColorPicker,
|
|
4
|
+
} from '@shopify/ui-extensions/admin';
|
|
5
|
+
|
|
6
|
+
export default extension(
|
|
7
|
+
'Playground',
|
|
8
|
+
(root) => {
|
|
9
|
+
const blockStack = root.createComponent(
|
|
10
|
+
ColorPicker,
|
|
11
|
+
{
|
|
12
|
+
value: "rgba(255 0 0 / 0.5)",
|
|
13
|
+
label: ""
|
|
14
|
+
},
|
|
15
|
+
);
|
|
16
|
+
|
|
17
|
+
root.appendChild(blockStack);
|
|
18
|
+
},
|
|
19
|
+
);
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import {ReferenceEntityTemplateSchema} from '@shopify/generate-docs';
|
|
2
|
+
|
|
3
|
+
const data: ReferenceEntityTemplateSchema = {
|
|
4
|
+
name: 'CustomerSegmentTemplate',
|
|
5
|
+
description:
|
|
6
|
+
'CustomerSegmentTemplate is used to configure a template rendered in the **Customers** section of the Shopify admin. Templates can be applied in the [customer segment editor](https://help.shopify.com/en/manual/customers/customer-segmentation/customer-segments) and used to create segments.',
|
|
7
|
+
requires:
|
|
8
|
+
'use of the [admin.customers.segmentation-templates.render](/docs/api/admin-extensions/api/extension-targets#extensiontargets-propertydetail-admincustomerssegmentationtemplatesrender) target.',
|
|
9
|
+
isVisualComponent: true,
|
|
10
|
+
thumbnail: 'customersegmenttemplate-thumbnail.png',
|
|
11
|
+
type: '',
|
|
12
|
+
definitions: [
|
|
13
|
+
{
|
|
14
|
+
title: 'CustomerSegmentTemplateProps',
|
|
15
|
+
description: '',
|
|
16
|
+
type: 'CustomerSegmentTemplateProps',
|
|
17
|
+
},
|
|
18
|
+
],
|
|
19
|
+
category: 'Components',
|
|
20
|
+
subCategory: 'Other',
|
|
21
|
+
defaultExample: {
|
|
22
|
+
image: 'customersegmenttemplate-default',
|
|
23
|
+
codeblock: {
|
|
24
|
+
title: 'Simple CustomerSegmentTemplate implementation',
|
|
25
|
+
tabs: [
|
|
26
|
+
{
|
|
27
|
+
title: 'React',
|
|
28
|
+
code: './examples/CustomerSegmentTemplate.example.tsx',
|
|
29
|
+
language: 'tsx',
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
title: 'JS',
|
|
33
|
+
code: './examples/CustomerSegmentTemplate.example.ts',
|
|
34
|
+
language: 'js',
|
|
35
|
+
},
|
|
36
|
+
],
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
related: [],
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
export default data;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import {createRemoteComponent} from '@remote-ui/core';
|
|
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
|
+
type CustomerStandardMetafieldDependency = 'facts.birth_date';
|
|
8
|
+
|
|
9
|
+
export interface CustomerSegmentTemplateProps {
|
|
10
|
+
/**
|
|
11
|
+
* The localized title of the template.
|
|
12
|
+
*/
|
|
13
|
+
title: string;
|
|
14
|
+
/**
|
|
15
|
+
* The localized description of the template. An array can be used for multiple paragraphs.
|
|
16
|
+
*/
|
|
17
|
+
description: string | string[];
|
|
18
|
+
/**
|
|
19
|
+
* The code snippet to render in the template with syntax highlighting. The `query` is not validated in the template.
|
|
20
|
+
*/
|
|
21
|
+
query: string;
|
|
22
|
+
/**
|
|
23
|
+
* The code snippet to insert in the segment editor. If missing, `query` will be used. The `queryToInsert` is not validated in the template.
|
|
24
|
+
*/
|
|
25
|
+
queryToInsert?: string;
|
|
26
|
+
/**
|
|
27
|
+
* The list of customer standard metafields or custom metafields used in the template's query.
|
|
28
|
+
*/
|
|
29
|
+
dependencies?: {
|
|
30
|
+
standardMetafields?: CustomerStandardMetafieldDependency[];
|
|
31
|
+
customMetafields?: string[];
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* ISO 8601-encoded date and time string. A "New" badge will be rendered for templates introduced in the last month.
|
|
35
|
+
*/
|
|
36
|
+
createdOn?: string;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Customer segmentation templates are used to give merchants a starting point to create segments.
|
|
41
|
+
*/
|
|
42
|
+
export const CustomerSegmentTemplate = createRemoteComponent<
|
|
43
|
+
'CustomerSegmentTemplate',
|
|
44
|
+
CustomerSegmentTemplateProps
|
|
45
|
+
>('CustomerSegmentTemplate');
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import {extension, CustomerSegmentTemplate} from '@shopify/ui-extensions/admin';
|
|
2
|
+
|
|
3
|
+
export default extension(
|
|
4
|
+
'admin.customers.segmentation-templates.render',
|
|
5
|
+
(root, {i18n}) => {
|
|
6
|
+
const template = root.createComponent(CustomerSegmentTemplate, {
|
|
7
|
+
title: i18n.translate('template.title'),
|
|
8
|
+
description: i18n.translate('template.description'),
|
|
9
|
+
query: "number_of_orders > 0'",
|
|
10
|
+
createdOn: new Date('2023-01-15').toISOString(),
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
root.appendChild(template);
|
|
14
|
+
|
|
15
|
+
root.mount();
|
|
16
|
+
},
|
|
17
|
+
);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import {reactExtension, CustomerSegmentTemplate} from '@shopify/ui-extensions/admin';
|
|
3
|
+
|
|
4
|
+
function App() {
|
|
5
|
+
return (
|
|
6
|
+
<CustomerSegmentTemplate
|
|
7
|
+
title="My Customer Segment Template"
|
|
8
|
+
description="Description of the segment"
|
|
9
|
+
query="number_of_orders > 0"
|
|
10
|
+
createdOn={new Date('2023-01-15').toISOString()}
|
|
11
|
+
/>
|
|
12
|
+
);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export default reactExtension('Playground', () => <App />);
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import {ReferenceEntityTemplateSchema} from '@shopify/generate-docs';
|
|
2
|
+
|
|
3
|
+
const data: ReferenceEntityTemplateSchema = {
|
|
4
|
+
name: 'DateField',
|
|
5
|
+
description:
|
|
6
|
+
'This is a form field that lets merchants select a date. It uses the DatePicker component to let merchants to pick the date.',
|
|
7
|
+
requires: '',
|
|
8
|
+
thumbnail: 'datefield-thumbnail.png',
|
|
9
|
+
isVisualComponent: true,
|
|
10
|
+
type: '',
|
|
11
|
+
definitions: [
|
|
12
|
+
{
|
|
13
|
+
title: 'DatePickerProps',
|
|
14
|
+
description: '',
|
|
15
|
+
type: 'DatePickerProps',
|
|
16
|
+
},
|
|
17
|
+
],
|
|
18
|
+
category: 'Components',
|
|
19
|
+
subCategory: 'Forms',
|
|
20
|
+
defaultExample: {
|
|
21
|
+
image: 'datefield-default.png',
|
|
22
|
+
codeblock: {
|
|
23
|
+
title: 'Add a single-date DateField',
|
|
24
|
+
tabs: [
|
|
25
|
+
{
|
|
26
|
+
title: 'React',
|
|
27
|
+
code: '../../../../../../ui-extensions-react/src/surfaces/admin/components/DateField/examples/basic-datefield.example.tsx',
|
|
28
|
+
language: 'tsx',
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
title: 'JS',
|
|
32
|
+
code: './examples/basic-datefield.example.ts',
|
|
33
|
+
language: 'js',
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
examples: {
|
|
39
|
+
description: '',
|
|
40
|
+
examples: [
|
|
41
|
+
{
|
|
42
|
+
description: 'Use this when merchants need to select multiple dates.',
|
|
43
|
+
codeblock: {
|
|
44
|
+
title: 'Add a multi-date DateField',
|
|
45
|
+
tabs: [
|
|
46
|
+
{
|
|
47
|
+
title: 'React',
|
|
48
|
+
code: '../../../../../../ui-extensions-react/src/surfaces/admin/components/DateField/examples/multiple-datefield.example.tsx',
|
|
49
|
+
language: 'tsx',
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
title: 'JS',
|
|
53
|
+
code: './examples/multiple-datefield.example.ts',
|
|
54
|
+
language: 'js',
|
|
55
|
+
},
|
|
56
|
+
],
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
description: 'Use this when merchants need to select a range of dates.',
|
|
61
|
+
codeblock: {
|
|
62
|
+
title: 'Add a range DateField',
|
|
63
|
+
tabs: [
|
|
64
|
+
{
|
|
65
|
+
title: 'React',
|
|
66
|
+
code: '../../../../../../ui-extensions-react/src/surfaces/admin/components/DateField/examples/range-datefield.example.tsx',
|
|
67
|
+
language: 'tsx',
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
title: 'JS',
|
|
71
|
+
code: './examples/range-datefield.example.ts',
|
|
72
|
+
language: 'js',
|
|
73
|
+
},
|
|
74
|
+
],
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
],
|
|
78
|
+
},
|
|
79
|
+
|
|
80
|
+
related: [],
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
export default data;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import {createRemoteComponent} from '@remote-ui/core';
|
|
2
|
+
import type {DatePickerProps} from '../DatePicker/DatePicker';
|
|
3
|
+
import type {TextFieldProps} from '../TextField/TextField';
|
|
4
|
+
|
|
5
|
+
export interface DateFieldProps
|
|
6
|
+
extends Pick<
|
|
7
|
+
TextFieldProps,
|
|
8
|
+
| 'label'
|
|
9
|
+
| 'name'
|
|
10
|
+
| 'id'
|
|
11
|
+
| 'readOnly'
|
|
12
|
+
| 'onFocus'
|
|
13
|
+
| 'onInput'
|
|
14
|
+
| 'onBlur'
|
|
15
|
+
| 'onChange'
|
|
16
|
+
| 'error'
|
|
17
|
+
| 'value'
|
|
18
|
+
>,
|
|
19
|
+
Pick<
|
|
20
|
+
DatePickerProps<string>,
|
|
21
|
+
'yearMonth' | 'defaultYearMonth' | 'disabled' | 'onYearMonthChange'
|
|
22
|
+
> {}
|
|
23
|
+
|
|
24
|
+
export const DateField = createRemoteComponent<'DateField', DateFieldProps>(
|
|
25
|
+
'DateField',
|
|
26
|
+
);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import {extend, DateField} from '@shopify/ui-extensions/admin';
|
|
2
|
+
|
|
3
|
+
extend('Playground', (root) => {
|
|
4
|
+
const dateField = root.createComponent(
|
|
5
|
+
DateField,
|
|
6
|
+
{ selected: {start: '2023-11-08', end: '2023-11-10' } },
|
|
7
|
+
'DateField',
|
|
8
|
+
);
|
|
9
|
+
|
|
10
|
+
root.appendChild(dateField);
|
|
11
|
+
});
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import {ReferenceEntityTemplateSchema} from '@shopify/generate-docs';
|
|
2
|
+
|
|
3
|
+
const data: ReferenceEntityTemplateSchema = {
|
|
4
|
+
name: 'DatePicker',
|
|
5
|
+
description:
|
|
6
|
+
'Date pickers let merchants choose dates from a visual calendar that’s consistently applied wherever dates need to be selected across Shopify. ',
|
|
7
|
+
requires: '',
|
|
8
|
+
thumbnail: 'datepicker-thumbnail.png',
|
|
9
|
+
isVisualComponent: true,
|
|
10
|
+
type: '',
|
|
11
|
+
definitions: [
|
|
12
|
+
{
|
|
13
|
+
title: 'DatePickerProps',
|
|
14
|
+
description: '',
|
|
15
|
+
type: 'DatePickerProps',
|
|
16
|
+
},
|
|
17
|
+
],
|
|
18
|
+
category: 'Components',
|
|
19
|
+
subCategory: 'Forms',
|
|
20
|
+
defaultExample: {
|
|
21
|
+
image: 'datepicker-default.png',
|
|
22
|
+
codeblock: {
|
|
23
|
+
title: 'Add a single-date DatePicker',
|
|
24
|
+
tabs: [
|
|
25
|
+
{
|
|
26
|
+
title: 'React',
|
|
27
|
+
code: '../../../../../../ui-extensions-react/src/surfaces/admin/components/DatePicker/examples/basic-datepicker.example.tsx',
|
|
28
|
+
language: 'tsx',
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
title: 'JS',
|
|
32
|
+
code: './examples/basic-datepicker.example.ts',
|
|
33
|
+
language: 'js',
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
examples: {
|
|
39
|
+
description: '',
|
|
40
|
+
examples: [
|
|
41
|
+
{
|
|
42
|
+
description: 'Use this when merchants need to select multiple dates.',
|
|
43
|
+
codeblock: {
|
|
44
|
+
title: 'Add a multi-date DatePicker',
|
|
45
|
+
tabs: [
|
|
46
|
+
{
|
|
47
|
+
title: 'React',
|
|
48
|
+
code: '../../../../../../ui-extensions-react/src/surfaces/admin/components/DatePicker/examples/multiple-datepicker.example.tsx',
|
|
49
|
+
language: 'tsx',
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
title: 'JS',
|
|
53
|
+
code: './examples/multiple-datepicker.example.ts',
|
|
54
|
+
language: 'js',
|
|
55
|
+
},
|
|
56
|
+
],
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
description: 'Use this when merchants need to select a range of dates.',
|
|
61
|
+
codeblock: {
|
|
62
|
+
title: 'Add a range DatePicker',
|
|
63
|
+
tabs: [
|
|
64
|
+
{
|
|
65
|
+
title: 'React',
|
|
66
|
+
code: '../../../../../../ui-extensions-react/src/surfaces/admin/components/DatePicker/examples/range-datepicker.example.tsx',
|
|
67
|
+
language: 'tsx',
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
title: 'JS',
|
|
71
|
+
code: './examples/range-datepicker.example.ts',
|
|
72
|
+
language: 'js',
|
|
73
|
+
},
|
|
74
|
+
],
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
],
|
|
78
|
+
},
|
|
79
|
+
|
|
80
|
+
related: [],
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
export default data;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import {createRemoteComponent} from '@remote-ui/core';
|
|
2
|
+
|
|
3
|
+
export interface DatePickerProps<T extends Selected> {
|
|
4
|
+
/**
|
|
5
|
+
* [Controlled](https://reactjs.org/docs/forms.html#controlled-components) year and month to display.
|
|
6
|
+
* Use in combination with `onYearMonthChange`.
|
|
7
|
+
* Makes year/month navigation [controlled](https://reactjs.org/docs/forms.html#controlled-components).
|
|
8
|
+
*/
|
|
9
|
+
yearMonth?: {year: Year; month: Month} | YearMonthString;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Default [uncontrolled](https://reactjs.org/docs/forms.html#controlled-components) year and month to display.
|
|
13
|
+
* Ignored when year/month navigation is [controlled](https://reactjs.org/docs/forms.html#controlled-components).
|
|
14
|
+
*/
|
|
15
|
+
defaultYearMonth?: {year: Year; month: Month} | YearMonthString;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Disabled dates, days, and/or ranges, or the date picker.
|
|
19
|
+
* Unbound range disables all dates either from `start` date or to `end` date.
|
|
20
|
+
* `true` disables the date picker.
|
|
21
|
+
*/
|
|
22
|
+
disabled?: Disabled | Disabled[] | boolean;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Whether the date picker is read-only.
|
|
26
|
+
*/
|
|
27
|
+
readOnly?: boolean;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* A date, an array of dates, or a range object with `start` and/or `end` keys indicating the selected dates.
|
|
31
|
+
* When a range is set, dates between the boundaries will be selected.
|
|
32
|
+
* Passed `undefined` or `string` allows user to select a single date,
|
|
33
|
+
* an empty array or an array of dates allows selecting multiple dates,
|
|
34
|
+
* an empty object or a Range object allows selecting a range of dates.
|
|
35
|
+
*/
|
|
36
|
+
selected?: T;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* A callback that is run whenever a date is selected or unselected. This callback
|
|
40
|
+
* is called with a string, an array of strings or a range object representing the selected dates.
|
|
41
|
+
* This component is [controlled](https://reactjs.org/docs/forms.html#controlled-components),
|
|
42
|
+
* so you must store these values in state and reflect it back in the
|
|
43
|
+
* `selected` props.
|
|
44
|
+
*/
|
|
45
|
+
onChange?(selected: T): void;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* A callback that is run whenever the month is changed. This callback
|
|
49
|
+
* is called with an object indicating the year/month the UI should change to.
|
|
50
|
+
* When year/month navigation is controlled you must store these values in state and
|
|
51
|
+
* reflect it back in the `yearMonth` prop.
|
|
52
|
+
*/
|
|
53
|
+
onYearMonthChange?(yearMonth: {year: Year; month: Month}): void;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* A date string using the simplified ISO 8601 format (`YYYY-MM-DD`)
|
|
58
|
+
*/
|
|
59
|
+
export type DateString = string;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* A year/month string using the simplified ISO 8601 format (`YYYY-MM`)
|
|
63
|
+
*/
|
|
64
|
+
export type YearMonthString = string;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Month in 1-12 range
|
|
68
|
+
*/
|
|
69
|
+
export type Month = number;
|
|
70
|
+
|
|
71
|
+
export type Year = number;
|
|
72
|
+
|
|
73
|
+
export type Day =
|
|
74
|
+
| 'Sunday'
|
|
75
|
+
| 'Monday'
|
|
76
|
+
| 'Tuesday'
|
|
77
|
+
| 'Wednesday'
|
|
78
|
+
| 'Thursday'
|
|
79
|
+
| 'Friday'
|
|
80
|
+
| 'Saturday';
|
|
81
|
+
|
|
82
|
+
export type Selected = DateString | DateString[] | Range;
|
|
83
|
+
export type Disabled = DateString | Range | Day;
|
|
84
|
+
|
|
85
|
+
export interface Range {
|
|
86
|
+
/**
|
|
87
|
+
* First day (inclusive) of the selected range
|
|
88
|
+
*/
|
|
89
|
+
start?: DateString;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Last day (inclusive) of the selected range
|
|
93
|
+
*/
|
|
94
|
+
end?: DateString;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export const DatePicker = createRemoteComponent<
|
|
98
|
+
'DatePicker',
|
|
99
|
+
DatePickerProps<Selected>
|
|
100
|
+
>('DatePicker');
|