@shopify/ui-extensions 0.0.0-internal-20230622171951
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +42 -0
- package/build/cjs/index.js +2 -0
- package/build/cjs/surfaces/admin/components/Badge/Badge.js +12 -0
- package/build/cjs/surfaces/admin/components/Banner/Banner.js +14 -0
- package/build/cjs/surfaces/admin/components/BlockStack/BlockStack.js +15 -0
- package/build/cjs/surfaces/admin/components/Button/Button.js +12 -0
- package/build/cjs/surfaces/admin/components/Card/Card.js +15 -0
- package/build/cjs/surfaces/admin/components/CardSection/CardSection.js +12 -0
- package/build/cjs/surfaces/admin/components/Checkbox/Checkbox.js +12 -0
- package/build/cjs/surfaces/admin/components/CustomerSegmentationTemplate/CustomerSegmentationTemplate.js +12 -0
- package/build/cjs/surfaces/admin/components/Heading/Heading.js +12 -0
- package/build/cjs/surfaces/admin/components/Icon/Icon.js +12 -0
- package/build/cjs/surfaces/admin/components/InlineStack/InlineStack.js +15 -0
- package/build/cjs/surfaces/admin/components/Link/Link.js +12 -0
- package/build/cjs/surfaces/admin/components/Modal/Modal.js +14 -0
- package/build/cjs/surfaces/admin/components/OptionList/OptionList.js +15 -0
- package/build/cjs/surfaces/admin/components/Pressable/Pressable.js +13 -0
- package/build/cjs/surfaces/admin/components/Radio/Radio.js +12 -0
- package/build/cjs/surfaces/admin/components/ResourceItem/ResourceItem.js +14 -0
- package/build/cjs/surfaces/admin/components/ResourceList/ResourceList.js +15 -0
- package/build/cjs/surfaces/admin/components/Select/Select.js +14 -0
- package/build/cjs/surfaces/admin/components/Spinner/Spinner.js +12 -0
- package/build/cjs/surfaces/admin/components/StackItem/StackItem.js +14 -0
- package/build/cjs/surfaces/admin/components/Text/Text.js +12 -0
- package/build/cjs/surfaces/admin/components/TextBlock/TextBlock.js +13 -0
- package/build/cjs/surfaces/admin/components/TextField/TextField.js +14 -0
- package/build/cjs/surfaces/admin/components/Thumbnail/Thumbnail.js +12 -0
- package/build/cjs/surfaces/admin/extension.js +11 -0
- package/build/cjs/surfaces/admin.js +60 -0
- package/build/cjs/surfaces/checkout/components/Banner/Banner.js +12 -0
- package/build/cjs/surfaces/checkout/components/BlockLayout/BlockLayout.js +14 -0
- package/build/cjs/surfaces/checkout/components/BlockSpacer/BlockSpacer.js +15 -0
- package/build/cjs/surfaces/checkout/components/BlockStack/BlockStack.js +12 -0
- package/build/cjs/surfaces/checkout/components/Button/Button.js +12 -0
- package/build/cjs/surfaces/checkout/components/Checkbox/Checkbox.js +12 -0
- package/build/cjs/surfaces/checkout/components/Choice/Choice.js +13 -0
- package/build/cjs/surfaces/checkout/components/ChoiceList/ChoiceList.js +13 -0
- package/build/cjs/surfaces/checkout/components/Divider/Divider.js +12 -0
- package/build/cjs/surfaces/checkout/components/Form/Form.js +20 -0
- package/build/cjs/surfaces/checkout/components/Grid/Grid.js +12 -0
- package/build/cjs/surfaces/checkout/components/GridItem/GridItem.js +14 -0
- package/build/cjs/surfaces/checkout/components/Heading/Heading.js +17 -0
- package/build/cjs/surfaces/checkout/components/HeadingGroup/HeadingGroup.js +16 -0
- package/build/cjs/surfaces/checkout/components/Icon/Icon.js +13 -0
- package/build/cjs/surfaces/checkout/components/Image/Image.js +12 -0
- package/build/cjs/surfaces/checkout/components/InlineLayout/InlineLayout.js +16 -0
- package/build/cjs/surfaces/checkout/components/InlineSpacer/InlineSpacer.js +15 -0
- package/build/cjs/surfaces/checkout/components/InlineStack/InlineStack.js +12 -0
- package/build/cjs/surfaces/checkout/components/Link/Link.js +12 -0
- package/build/cjs/surfaces/checkout/components/List/List.js +12 -0
- package/build/cjs/surfaces/checkout/components/ListItem/ListItem.js +14 -0
- package/build/cjs/surfaces/checkout/components/PhoneField/PhoneField.js +17 -0
- package/build/cjs/surfaces/checkout/components/Pressable/Pressable.js +14 -0
- package/build/cjs/surfaces/checkout/components/ScrollView/ScrollView.js +13 -0
- package/build/cjs/surfaces/checkout/components/Select/Select.js +13 -0
- package/build/cjs/surfaces/checkout/components/SkeletonImage/SkeletonImage.js +12 -0
- package/build/cjs/surfaces/checkout/components/SkeletonText/SkeletonText.js +12 -0
- package/build/cjs/surfaces/checkout/components/SkeletonTextBlock/SkeletonTextBlock.js +12 -0
- package/build/cjs/surfaces/checkout/components/Spinner/Spinner.js +13 -0
- package/build/cjs/surfaces/checkout/components/Stepper/Stepper.js +12 -0
- package/build/cjs/surfaces/checkout/components/Tag/Tag.js +12 -0
- package/build/cjs/surfaces/checkout/components/Text/Text.js +13 -0
- package/build/cjs/surfaces/checkout/components/TextBlock/TextBlock.js +12 -0
- package/build/cjs/surfaces/checkout/components/TextField/TextField.js +12 -0
- package/build/cjs/surfaces/checkout/components/Tooltip/Tooltip.js +17 -0
- package/build/cjs/surfaces/checkout/components/View/View.js +17 -0
- package/build/cjs/surfaces/checkout/extension.js +11 -0
- package/build/cjs/surfaces/checkout/style/isEqual.js +29 -0
- package/build/cjs/surfaces/checkout/style/memoize.js +139 -0
- package/build/cjs/surfaces/checkout/style/style.js +74 -0
- package/build/cjs/surfaces/checkout.js +88 -0
- package/build/cjs/utilities/registration.js +45 -0
- package/build/esm/index.mjs +1 -0
- package/build/esm/surfaces/admin/components/Badge/Badge.mjs +8 -0
- package/build/esm/surfaces/admin/components/Banner/Banner.mjs +10 -0
- package/build/esm/surfaces/admin/components/BlockStack/BlockStack.mjs +11 -0
- package/build/esm/surfaces/admin/components/Button/Button.mjs +8 -0
- package/build/esm/surfaces/admin/components/Card/Card.mjs +11 -0
- package/build/esm/surfaces/admin/components/CardSection/CardSection.mjs +8 -0
- package/build/esm/surfaces/admin/components/Checkbox/Checkbox.mjs +8 -0
- package/build/esm/surfaces/admin/components/CustomerSegmentationTemplate/CustomerSegmentationTemplate.mjs +8 -0
- package/build/esm/surfaces/admin/components/Heading/Heading.mjs +8 -0
- package/build/esm/surfaces/admin/components/Icon/Icon.mjs +8 -0
- package/build/esm/surfaces/admin/components/InlineStack/InlineStack.mjs +11 -0
- package/build/esm/surfaces/admin/components/Link/Link.mjs +8 -0
- package/build/esm/surfaces/admin/components/Modal/Modal.mjs +10 -0
- package/build/esm/surfaces/admin/components/OptionList/OptionList.mjs +11 -0
- package/build/esm/surfaces/admin/components/Pressable/Pressable.mjs +9 -0
- package/build/esm/surfaces/admin/components/Radio/Radio.mjs +8 -0
- package/build/esm/surfaces/admin/components/ResourceItem/ResourceItem.mjs +10 -0
- package/build/esm/surfaces/admin/components/ResourceList/ResourceList.mjs +11 -0
- package/build/esm/surfaces/admin/components/Select/Select.mjs +10 -0
- package/build/esm/surfaces/admin/components/Spinner/Spinner.mjs +8 -0
- package/build/esm/surfaces/admin/components/StackItem/StackItem.mjs +10 -0
- package/build/esm/surfaces/admin/components/Text/Text.mjs +8 -0
- package/build/esm/surfaces/admin/components/TextBlock/TextBlock.mjs +9 -0
- package/build/esm/surfaces/admin/components/TextField/TextField.mjs +10 -0
- package/build/esm/surfaces/admin/components/Thumbnail/Thumbnail.mjs +8 -0
- package/build/esm/surfaces/admin/extension.mjs +6 -0
- package/build/esm/surfaces/admin.mjs +26 -0
- package/build/esm/surfaces/checkout/components/Banner/Banner.mjs +8 -0
- package/build/esm/surfaces/checkout/components/BlockLayout/BlockLayout.mjs +10 -0
- package/build/esm/surfaces/checkout/components/BlockSpacer/BlockSpacer.mjs +11 -0
- package/build/esm/surfaces/checkout/components/BlockStack/BlockStack.mjs +8 -0
- package/build/esm/surfaces/checkout/components/Button/Button.mjs +8 -0
- package/build/esm/surfaces/checkout/components/Checkbox/Checkbox.mjs +8 -0
- package/build/esm/surfaces/checkout/components/Choice/Choice.mjs +9 -0
- package/build/esm/surfaces/checkout/components/ChoiceList/ChoiceList.mjs +9 -0
- package/build/esm/surfaces/checkout/components/Divider/Divider.mjs +8 -0
- package/build/esm/surfaces/checkout/components/Form/Form.mjs +16 -0
- package/build/esm/surfaces/checkout/components/Grid/Grid.mjs +8 -0
- package/build/esm/surfaces/checkout/components/GridItem/GridItem.mjs +10 -0
- package/build/esm/surfaces/checkout/components/Heading/Heading.mjs +13 -0
- package/build/esm/surfaces/checkout/components/HeadingGroup/HeadingGroup.mjs +12 -0
- package/build/esm/surfaces/checkout/components/Icon/Icon.mjs +9 -0
- package/build/esm/surfaces/checkout/components/Image/Image.mjs +8 -0
- package/build/esm/surfaces/checkout/components/InlineLayout/InlineLayout.mjs +12 -0
- package/build/esm/surfaces/checkout/components/InlineSpacer/InlineSpacer.mjs +11 -0
- package/build/esm/surfaces/checkout/components/InlineStack/InlineStack.mjs +8 -0
- package/build/esm/surfaces/checkout/components/Link/Link.mjs +8 -0
- package/build/esm/surfaces/checkout/components/List/List.mjs +8 -0
- package/build/esm/surfaces/checkout/components/ListItem/ListItem.mjs +10 -0
- package/build/esm/surfaces/checkout/components/PhoneField/PhoneField.mjs +13 -0
- package/build/esm/surfaces/checkout/components/Pressable/Pressable.mjs +10 -0
- package/build/esm/surfaces/checkout/components/ScrollView/ScrollView.mjs +9 -0
- package/build/esm/surfaces/checkout/components/Select/Select.mjs +9 -0
- package/build/esm/surfaces/checkout/components/SkeletonImage/SkeletonImage.mjs +8 -0
- package/build/esm/surfaces/checkout/components/SkeletonText/SkeletonText.mjs +8 -0
- package/build/esm/surfaces/checkout/components/SkeletonTextBlock/SkeletonTextBlock.mjs +8 -0
- package/build/esm/surfaces/checkout/components/Spinner/Spinner.mjs +9 -0
- package/build/esm/surfaces/checkout/components/Stepper/Stepper.mjs +8 -0
- package/build/esm/surfaces/checkout/components/Tag/Tag.mjs +8 -0
- package/build/esm/surfaces/checkout/components/Text/Text.mjs +9 -0
- package/build/esm/surfaces/checkout/components/TextBlock/TextBlock.mjs +8 -0
- package/build/esm/surfaces/checkout/components/TextField/TextField.mjs +8 -0
- package/build/esm/surfaces/checkout/components/Tooltip/Tooltip.mjs +13 -0
- package/build/esm/surfaces/checkout/components/View/View.mjs +13 -0
- package/build/esm/surfaces/checkout/extension.mjs +6 -0
- package/build/esm/surfaces/checkout/style/isEqual.mjs +25 -0
- package/build/esm/surfaces/checkout/style/memoize.mjs +133 -0
- package/build/esm/surfaces/checkout/style/style.mjs +68 -0
- package/build/esm/surfaces/checkout.mjs +39 -0
- package/build/esm/utilities/registration.mjs +41 -0
- package/build/esnext/index.esnext +1 -0
- package/build/esnext/surfaces/admin/components/Badge/Badge.esnext +8 -0
- package/build/esnext/surfaces/admin/components/Banner/Banner.esnext +10 -0
- package/build/esnext/surfaces/admin/components/BlockStack/BlockStack.esnext +11 -0
- package/build/esnext/surfaces/admin/components/Button/Button.esnext +8 -0
- package/build/esnext/surfaces/admin/components/Card/Card.esnext +11 -0
- package/build/esnext/surfaces/admin/components/CardSection/CardSection.esnext +8 -0
- package/build/esnext/surfaces/admin/components/Checkbox/Checkbox.esnext +8 -0
- package/build/esnext/surfaces/admin/components/CustomerSegmentationTemplate/CustomerSegmentationTemplate.esnext +8 -0
- package/build/esnext/surfaces/admin/components/Heading/Heading.esnext +8 -0
- package/build/esnext/surfaces/admin/components/Icon/Icon.esnext +8 -0
- package/build/esnext/surfaces/admin/components/InlineStack/InlineStack.esnext +11 -0
- package/build/esnext/surfaces/admin/components/Link/Link.esnext +8 -0
- package/build/esnext/surfaces/admin/components/Modal/Modal.esnext +10 -0
- package/build/esnext/surfaces/admin/components/OptionList/OptionList.esnext +11 -0
- package/build/esnext/surfaces/admin/components/Pressable/Pressable.esnext +9 -0
- package/build/esnext/surfaces/admin/components/Radio/Radio.esnext +8 -0
- package/build/esnext/surfaces/admin/components/ResourceItem/ResourceItem.esnext +10 -0
- package/build/esnext/surfaces/admin/components/ResourceList/ResourceList.esnext +11 -0
- package/build/esnext/surfaces/admin/components/Select/Select.esnext +10 -0
- package/build/esnext/surfaces/admin/components/Spinner/Spinner.esnext +8 -0
- package/build/esnext/surfaces/admin/components/StackItem/StackItem.esnext +10 -0
- package/build/esnext/surfaces/admin/components/Text/Text.esnext +8 -0
- package/build/esnext/surfaces/admin/components/TextBlock/TextBlock.esnext +9 -0
- package/build/esnext/surfaces/admin/components/TextField/TextField.esnext +10 -0
- package/build/esnext/surfaces/admin/components/Thumbnail/Thumbnail.esnext +8 -0
- package/build/esnext/surfaces/admin/extension.esnext +6 -0
- package/build/esnext/surfaces/admin.esnext +26 -0
- package/build/esnext/surfaces/checkout/components/Banner/Banner.esnext +8 -0
- package/build/esnext/surfaces/checkout/components/BlockLayout/BlockLayout.esnext +10 -0
- package/build/esnext/surfaces/checkout/components/BlockSpacer/BlockSpacer.esnext +11 -0
- package/build/esnext/surfaces/checkout/components/BlockStack/BlockStack.esnext +8 -0
- package/build/esnext/surfaces/checkout/components/Button/Button.esnext +8 -0
- package/build/esnext/surfaces/checkout/components/Checkbox/Checkbox.esnext +8 -0
- package/build/esnext/surfaces/checkout/components/Choice/Choice.esnext +9 -0
- package/build/esnext/surfaces/checkout/components/ChoiceList/ChoiceList.esnext +9 -0
- package/build/esnext/surfaces/checkout/components/Divider/Divider.esnext +8 -0
- package/build/esnext/surfaces/checkout/components/Form/Form.esnext +16 -0
- package/build/esnext/surfaces/checkout/components/Grid/Grid.esnext +8 -0
- package/build/esnext/surfaces/checkout/components/GridItem/GridItem.esnext +10 -0
- package/build/esnext/surfaces/checkout/components/Heading/Heading.esnext +13 -0
- package/build/esnext/surfaces/checkout/components/HeadingGroup/HeadingGroup.esnext +12 -0
- package/build/esnext/surfaces/checkout/components/Icon/Icon.esnext +9 -0
- package/build/esnext/surfaces/checkout/components/Image/Image.esnext +8 -0
- package/build/esnext/surfaces/checkout/components/InlineLayout/InlineLayout.esnext +12 -0
- package/build/esnext/surfaces/checkout/components/InlineSpacer/InlineSpacer.esnext +11 -0
- package/build/esnext/surfaces/checkout/components/InlineStack/InlineStack.esnext +8 -0
- package/build/esnext/surfaces/checkout/components/Link/Link.esnext +8 -0
- package/build/esnext/surfaces/checkout/components/List/List.esnext +8 -0
- package/build/esnext/surfaces/checkout/components/ListItem/ListItem.esnext +10 -0
- package/build/esnext/surfaces/checkout/components/PhoneField/PhoneField.esnext +13 -0
- package/build/esnext/surfaces/checkout/components/Pressable/Pressable.esnext +10 -0
- package/build/esnext/surfaces/checkout/components/ScrollView/ScrollView.esnext +9 -0
- package/build/esnext/surfaces/checkout/components/Select/Select.esnext +9 -0
- package/build/esnext/surfaces/checkout/components/SkeletonImage/SkeletonImage.esnext +8 -0
- package/build/esnext/surfaces/checkout/components/SkeletonText/SkeletonText.esnext +8 -0
- package/build/esnext/surfaces/checkout/components/SkeletonTextBlock/SkeletonTextBlock.esnext +8 -0
- package/build/esnext/surfaces/checkout/components/Spinner/Spinner.esnext +9 -0
- package/build/esnext/surfaces/checkout/components/Stepper/Stepper.esnext +8 -0
- package/build/esnext/surfaces/checkout/components/Tag/Tag.esnext +8 -0
- package/build/esnext/surfaces/checkout/components/Text/Text.esnext +9 -0
- package/build/esnext/surfaces/checkout/components/TextBlock/TextBlock.esnext +8 -0
- package/build/esnext/surfaces/checkout/components/TextField/TextField.esnext +8 -0
- package/build/esnext/surfaces/checkout/components/Tooltip/Tooltip.esnext +13 -0
- package/build/esnext/surfaces/checkout/components/View/View.esnext +13 -0
- package/build/esnext/surfaces/checkout/extension.esnext +6 -0
- package/build/esnext/surfaces/checkout/style/isEqual.esnext +25 -0
- package/build/esnext/surfaces/checkout/style/memoize.esnext +133 -0
- package/build/esnext/surfaces/checkout/style/style.esnext +68 -0
- package/build/esnext/surfaces/checkout.esnext +39 -0
- package/build/esnext/utilities/registration.esnext +41 -0
- package/build/ts/api.d.ts +66 -0
- package/build/ts/api.d.ts.map +1 -0
- package/build/ts/extension.d.ts +15 -0
- package/build/ts/extension.d.ts.map +1 -0
- package/build/ts/index.d.ts +3 -0
- package/build/ts/index.d.ts.map +1 -0
- package/build/ts/shared.d.ts +6 -0
- package/build/ts/shared.d.ts.map +1 -0
- package/build/ts/surfaces/admin/api/customer-segmentation-template/customer-segmentation-template.d.ts +11 -0
- package/build/ts/surfaces/admin/api/customer-segmentation-template/customer-segmentation-template.d.ts.map +1 -0
- package/build/ts/surfaces/admin/api/standard/standard.d.ts +12 -0
- package/build/ts/surfaces/admin/api/standard/standard.d.ts.map +1 -0
- package/build/ts/surfaces/admin/api.d.ts +4 -0
- package/build/ts/surfaces/admin/api.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Badge/Badge.d.ts +20 -0
- package/build/ts/surfaces/admin/components/Badge/Badge.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Banner/Banner.d.ts +28 -0
- package/build/ts/surfaces/admin/components/Banner/Banner.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/BlockStack/BlockStack.d.ts +25 -0
- package/build/ts/surfaces/admin/components/BlockStack/BlockStack.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Button/Button.d.ts +66 -0
- package/build/ts/surfaces/admin/components/Button/Button.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Card/Card.d.ts +25 -0
- package/build/ts/surfaces/admin/components/Card/Card.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/CardSection/CardSection.d.ts +12 -0
- package/build/ts/surfaces/admin/components/CardSection/CardSection.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Checkbox/Checkbox.d.ts +22 -0
- package/build/ts/surfaces/admin/components/Checkbox/Checkbox.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/CustomerSegmentationTemplate/CustomerSegmentationTemplate.d.ts +27 -0
- package/build/ts/surfaces/admin/components/CustomerSegmentationTemplate/CustomerSegmentationTemplate.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Heading/Heading.d.ts +24 -0
- package/build/ts/surfaces/admin/components/Heading/Heading.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Icon/Icon.d.ts +17 -0
- package/build/ts/surfaces/admin/components/Icon/Icon.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/InlineStack/InlineStack.d.ts +30 -0
- package/build/ts/surfaces/admin/components/InlineStack/InlineStack.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Link/Link.d.ts +23 -0
- package/build/ts/surfaces/admin/components/Link/Link.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Modal/Modal.d.ts +36 -0
- package/build/ts/surfaces/admin/components/Modal/Modal.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/OptionList/OptionList.d.ts +36 -0
- package/build/ts/surfaces/admin/components/OptionList/OptionList.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Pressable/Pressable.d.ts +14 -0
- package/build/ts/surfaces/admin/components/Pressable/Pressable.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Radio/Radio.d.ts +26 -0
- package/build/ts/surfaces/admin/components/Radio/Radio.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/ResourceItem/ResourceItem.d.ts +17 -0
- package/build/ts/surfaces/admin/components/ResourceItem/ResourceItem.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/ResourceList/ResourceList.d.ts +26 -0
- package/build/ts/surfaces/admin/components/ResourceList/ResourceList.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Select/Select.d.ts +34 -0
- package/build/ts/surfaces/admin/components/Select/Select.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Spinner/Spinner.d.ts +11 -0
- package/build/ts/surfaces/admin/components/Spinner/Spinner.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/StackItem/StackItem.d.ts +15 -0
- package/build/ts/surfaces/admin/components/StackItem/StackItem.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Text/Text.d.ts +20 -0
- package/build/ts/surfaces/admin/components/Text/Text.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/TextBlock/TextBlock.d.ts +20 -0
- package/build/ts/surfaces/admin/components/TextBlock/TextBlock.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/TextField/TextField.d.ts +41 -0
- package/build/ts/surfaces/admin/components/TextField/TextField.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Thumbnail/Thumbnail.d.ts +19 -0
- package/build/ts/surfaces/admin/components/Thumbnail/Thumbnail.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/shared.d.ts +22 -0
- package/build/ts/surfaces/admin/components/shared.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components.d.ts +52 -0
- package/build/ts/surfaces/admin/components.d.ts.map +1 -0
- package/build/ts/surfaces/admin/extension-points.d.ts +52 -0
- package/build/ts/surfaces/admin/extension-points.d.ts.map +1 -0
- package/build/ts/surfaces/admin/extension.d.ts +5 -0
- package/build/ts/surfaces/admin/extension.d.ts.map +1 -0
- package/build/ts/surfaces/admin/globals.d.ts +5 -0
- package/build/ts/surfaces/admin/globals.d.ts.map +1 -0
- package/build/ts/surfaces/admin/shared.d.ts +6 -0
- package/build/ts/surfaces/admin/shared.d.ts.map +1 -0
- package/build/ts/surfaces/admin.d.ts +7 -0
- package/build/ts/surfaces/admin.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/api/cart-line-details/render-after.d.ts +9 -0
- package/build/ts/surfaces/checkout/api/cart-line-details/render-after.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/api/shared.d.ts +5 -0
- package/build/ts/surfaces/checkout/api/shared.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/api/standard/standard.d.ts +1060 -0
- package/build/ts/surfaces/checkout/api/standard/standard.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/api.d.ts +5 -0
- package/build/ts/surfaces/checkout/api.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Banner/Banner.d.ts +38 -0
- package/build/ts/surfaces/checkout/components/Banner/Banner.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/BlockLayout/BlockLayout.d.ts +41 -0
- package/build/ts/surfaces/checkout/components/BlockLayout/BlockLayout.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/BlockSpacer/BlockSpacer.d.ts +22 -0
- package/build/ts/surfaces/checkout/components/BlockSpacer/BlockSpacer.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/BlockStack/BlockStack.d.ts +42 -0
- package/build/ts/surfaces/checkout/components/BlockStack/BlockStack.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Button/Button.d.ts +83 -0
- package/build/ts/surfaces/checkout/components/Button/Button.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Checkbox/Checkbox.d.ts +59 -0
- package/build/ts/surfaces/checkout/components/Checkbox/Checkbox.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Choice/Choice.d.ts +27 -0
- package/build/ts/surfaces/checkout/components/Choice/Choice.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/ChoiceList/ChoiceList.d.ts +32 -0
- package/build/ts/surfaces/checkout/components/ChoiceList/ChoiceList.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Divider/Divider.d.ts +30 -0
- package/build/ts/surfaces/checkout/components/Divider/Divider.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Form/Form.d.ts +32 -0
- package/build/ts/surfaces/checkout/components/Form/Form.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Grid/Grid.d.ts +95 -0
- package/build/ts/surfaces/checkout/components/Grid/Grid.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/GridItem/GridItem.d.ts +36 -0
- package/build/ts/surfaces/checkout/components/GridItem/GridItem.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Heading/Heading.d.ts +43 -0
- package/build/ts/surfaces/checkout/components/Heading/Heading.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/HeadingGroup/HeadingGroup.d.ts +15 -0
- package/build/ts/surfaces/checkout/components/HeadingGroup/HeadingGroup.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Icon/Icon.d.ts +38 -0
- package/build/ts/surfaces/checkout/components/Icon/Icon.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Image/Image.d.ts +73 -0
- package/build/ts/surfaces/checkout/components/Image/Image.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/InlineLayout/InlineLayout.d.ts +43 -0
- package/build/ts/surfaces/checkout/components/InlineLayout/InlineLayout.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/InlineSpacer/InlineSpacer.d.ts +22 -0
- package/build/ts/surfaces/checkout/components/InlineSpacer/InlineSpacer.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/InlineStack/InlineStack.d.ts +50 -0
- package/build/ts/surfaces/checkout/components/InlineStack/InlineStack.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Link/Link.d.ts +50 -0
- package/build/ts/surfaces/checkout/components/Link/Link.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/List/List.d.ts +32 -0
- package/build/ts/surfaces/checkout/components/List/List.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/ListItem/ListItem.d.ts +13 -0
- package/build/ts/surfaces/checkout/components/ListItem/ListItem.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/PhoneField/PhoneField.d.ts +58 -0
- package/build/ts/surfaces/checkout/components/PhoneField/PhoneField.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Pressable/Pressable.d.ts +96 -0
- package/build/ts/surfaces/checkout/components/Pressable/Pressable.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/ScrollView/ScrollView.d.ts +75 -0
- package/build/ts/surfaces/checkout/components/ScrollView/ScrollView.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Select/Select.d.ts +98 -0
- package/build/ts/surfaces/checkout/components/Select/Select.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/SkeletonImage/SkeletonImage.d.ts +25 -0
- package/build/ts/surfaces/checkout/components/SkeletonImage/SkeletonImage.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/SkeletonText/SkeletonText.d.ts +21 -0
- package/build/ts/surfaces/checkout/components/SkeletonText/SkeletonText.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/SkeletonTextBlock/SkeletonTextBlock.d.ts +22 -0
- package/build/ts/surfaces/checkout/components/SkeletonTextBlock/SkeletonTextBlock.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Spinner/Spinner.d.ts +32 -0
- package/build/ts/surfaces/checkout/components/Spinner/Spinner.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Stepper/Stepper.d.ts +42 -0
- package/build/ts/surfaces/checkout/components/Stepper/Stepper.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Tag/Tag.d.ts +31 -0
- package/build/ts/surfaces/checkout/components/Tag/Tag.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Text/Text.d.ts +34 -0
- package/build/ts/surfaces/checkout/components/Text/Text.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/TextBlock/TextBlock.d.ts +32 -0
- package/build/ts/surfaces/checkout/components/TextBlock/TextBlock.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/TextField/TextField.d.ts +175 -0
- package/build/ts/surfaces/checkout/components/TextField/TextField.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Tooltip/Tooltip.d.ts +16 -0
- package/build/ts/surfaces/checkout/components/Tooltip/Tooltip.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/View/View.d.ts +169 -0
- package/build/ts/surfaces/checkout/components/View/View.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/shared.d.ts +407 -0
- package/build/ts/surfaces/checkout/components/shared.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components.d.ts +76 -0
- package/build/ts/surfaces/checkout/components.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/extension-points.d.ts +98 -0
- package/build/ts/surfaces/checkout/extension-points.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/extension.d.ts +5 -0
- package/build/ts/surfaces/checkout/extension.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/globals.d.ts +6 -0
- package/build/ts/surfaces/checkout/globals.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/shared.d.ts +6 -0
- package/build/ts/surfaces/checkout/shared.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/style/isEqual.d.ts +8 -0
- package/build/ts/surfaces/checkout/style/isEqual.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/style/isEqual.test.d.ts +2 -0
- package/build/ts/surfaces/checkout/style/isEqual.test.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/style/memoize.d.ts +13 -0
- package/build/ts/surfaces/checkout/style/memoize.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/style/style.d.ts +70 -0
- package/build/ts/surfaces/checkout/style/style.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/style/style.test.d.ts +2 -0
- package/build/ts/surfaces/checkout/style/style.test.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/style/types.d.ts +46 -0
- package/build/ts/surfaces/checkout/style/types.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/style.d.ts +3 -0
- package/build/ts/surfaces/checkout/style.d.ts.map +1 -0
- package/build/ts/surfaces/checkout.d.ts +8 -0
- package/build/ts/surfaces/checkout.d.ts.map +1 -0
- package/build/ts/utilities/registration.d.ts +16 -0
- package/build/ts/utilities/registration.d.ts.map +1 -0
- package/build/tsconfig.tsbuildinfo +1 -0
- package/checkout.esnext +1 -0
- package/checkout.js +1 -0
- package/checkout.mjs +1 -0
- package/index.esnext +1 -0
- package/index.js +1 -0
- package/index.mjs +1 -0
- package/package.json +60 -0
- package/src/api.ts +76 -0
- package/src/extension.ts +48 -0
- package/src/index.ts +2 -0
- package/src/shared.ts +13 -0
- package/src/surfaces/admin/api/customer-segmentation-template/customer-segmentation-template.ts +19 -0
- package/src/surfaces/admin/api/standard/README.md +1 -0
- package/src/surfaces/admin/api/standard/standard.ts +13 -0
- package/src/surfaces/admin/api.ts +3 -0
- package/src/surfaces/admin/components/Badge/Badge.ts +18 -0
- package/src/surfaces/admin/components/Badge/content/guidelines.md +10 -0
- package/src/surfaces/admin/components/Badge/examples/badge.example.ts +11 -0
- package/src/surfaces/admin/components/Banner/Banner.ts +32 -0
- package/src/surfaces/admin/components/Banner/content/guidelines.md +11 -0
- package/src/surfaces/admin/components/Banner/examples/Banner.example.ts +20 -0
- package/src/surfaces/admin/components/BlockStack/BlockStack.ts +27 -0
- package/src/surfaces/admin/components/BlockStack/content/guidelines.md +10 -0
- package/src/surfaces/admin/components/BlockStack/examples/BlockStack.example.ts +22 -0
- package/src/surfaces/admin/components/Button/Button.ts +68 -0
- package/src/surfaces/admin/components/Button/content/guidelines.md +14 -0
- package/src/surfaces/admin/components/Button/examples/Button.example.ts +17 -0
- package/src/surfaces/admin/components/Card/Card.ts +28 -0
- package/src/surfaces/admin/components/Card/content/guidelines.md +9 -0
- package/src/surfaces/admin/components/Card/examples/Card.example.ts +10 -0
- package/src/surfaces/admin/components/CardSection/CardSection.ts +13 -0
- package/src/surfaces/admin/components/CardSection/content/guidelines.md +5 -0
- package/src/surfaces/admin/components/CardSection/examples/CardSection.example.ts +20 -0
- package/src/surfaces/admin/components/Checkbox/Checkbox.ts +25 -0
- package/src/surfaces/admin/components/Checkbox/content/guidelines.md +8 -0
- package/src/surfaces/admin/components/Checkbox/examples/Checkbox.example.ts +13 -0
- package/src/surfaces/admin/components/CustomerSegmentationTemplate/CustomerSegmentationTemplate.ts +66 -0
- package/src/surfaces/admin/components/CustomerSegmentationTemplate/examples/CustomerSegmentationTemplate.example.ts +37 -0
- package/src/surfaces/admin/components/Heading/Heading.ts +25 -0
- package/src/surfaces/admin/components/Heading/content/guidelines.md +11 -0
- package/src/surfaces/admin/components/Heading/examples/Heading.example.ts +14 -0
- package/src/surfaces/admin/components/Icon/Icon.ts +21 -0
- package/src/surfaces/admin/components/Icon/content/guidelines.md +8 -0
- package/src/surfaces/admin/components/Icon/examples/Icon.example.ts +12 -0
- package/src/surfaces/admin/components/InlineStack/InlineStack.ts +34 -0
- package/src/surfaces/admin/components/InlineStack/content/guidelines.md +10 -0
- package/src/surfaces/admin/components/InlineStack/examples/InlineStack.example.ts +16 -0
- package/src/surfaces/admin/components/Link/Link.ts +23 -0
- package/src/surfaces/admin/components/Link/content/guidelines.md +10 -0
- package/src/surfaces/admin/components/Link/examples/AbsoluteLink.example.ts +13 -0
- package/src/surfaces/admin/components/Link/examples/LogLink.example.ts +12 -0
- package/src/surfaces/admin/components/Link/examples/RelativeLink.example.ts +12 -0
- package/src/surfaces/admin/components/Modal/Modal.ts +33 -0
- package/src/surfaces/admin/components/Modal/content/guidelines.md +8 -0
- package/src/surfaces/admin/components/Modal/examples/Modal.example.ts +14 -0
- package/src/surfaces/admin/components/OptionList/OptionList.ts +42 -0
- package/src/surfaces/admin/components/OptionList/content/guidelines.md +7 -0
- package/src/surfaces/admin/components/OptionList/examples/OptionList.example.ts +24 -0
- package/src/surfaces/admin/components/Pressable/Pressable.ts +14 -0
- package/src/surfaces/admin/components/Pressable/content/guidelines.md +12 -0
- package/src/surfaces/admin/components/Pressable/examples/Pressable.example.ts +15 -0
- package/src/surfaces/admin/components/Radio/Radio.ts +29 -0
- package/src/surfaces/admin/components/Radio/content/guidelines.md +6 -0
- package/src/surfaces/admin/components/Radio/examples/Radio.example.ts +25 -0
- package/src/surfaces/admin/components/ResourceItem/ResourceItem.ts +19 -0
- package/src/surfaces/admin/components/ResourceItem/content/guidelines.md +8 -0
- package/src/surfaces/admin/components/ResourceItem/examples/ResourceItem.example.ts +22 -0
- package/src/surfaces/admin/components/ResourceList/ResourceList.ts +30 -0
- package/src/surfaces/admin/components/ResourceList/content/guidelines.md +9 -0
- package/src/surfaces/admin/components/ResourceList/examples/ResourceList.example.ts +29 -0
- package/src/surfaces/admin/components/Select/Select.ts +39 -0
- package/src/surfaces/admin/components/Select/content/guidelines.md +7 -0
- package/src/surfaces/admin/components/Select/examples/Select.example.ts +30 -0
- package/src/surfaces/admin/components/Spinner/Spinner.ts +10 -0
- package/src/surfaces/admin/components/Spinner/content/guidelines.md +5 -0
- package/src/surfaces/admin/components/Spinner/examples/Spinner.example.ts +12 -0
- package/src/surfaces/admin/components/StackItem/StackItem.ts +15 -0
- package/src/surfaces/admin/components/StackItem/content/guidelines.md +8 -0
- package/src/surfaces/admin/components/StackItem/examples/StackItem.example.ts +25 -0
- package/src/surfaces/admin/components/Text/Text.ts +26 -0
- package/src/surfaces/admin/components/Text/content/guidelines.md +8 -0
- package/src/surfaces/admin/components/Text/examples/Text.example.ts +20 -0
- package/src/surfaces/admin/components/TextBlock/TextBlock.ts +20 -0
- package/src/surfaces/admin/components/TextBlock/content/guidelines.md +11 -0
- package/src/surfaces/admin/components/TextBlock/examples/TextBlock.example.ts +8 -0
- package/src/surfaces/admin/components/TextField/TextField.ts +54 -0
- package/src/surfaces/admin/components/TextField/content/guidelines.md +10 -0
- package/src/surfaces/admin/components/TextField/examples/TextField.example.ts +23 -0
- package/src/surfaces/admin/components/Thumbnail/Thumbnail.ts +31 -0
- package/src/surfaces/admin/components/Thumbnail/examples/Thumbnail.example.ts +13 -0
- package/src/surfaces/admin/components/shared.ts +30 -0
- package/src/surfaces/admin/components.ts +51 -0
- package/src/surfaces/admin/extension-points.ts +85 -0
- package/src/surfaces/admin/extension.ts +8 -0
- package/src/surfaces/admin/globals.ts +8 -0
- package/src/surfaces/admin/shared.ts +6 -0
- package/src/surfaces/admin.ts +6 -0
- package/src/surfaces/checkout/api/cart-line-details/README.md +1 -0
- package/src/surfaces/checkout/api/cart-line-details/render-after.ts +11 -0
- package/src/surfaces/checkout/api/shared.ts +810 -0
- package/src/surfaces/checkout/api/standard/README.md +1 -0
- package/src/surfaces/checkout/api/standard/standard.ts +1266 -0
- package/src/surfaces/checkout/api.ts +66 -0
- package/src/surfaces/checkout/components/Banner/Banner.ts +37 -0
- package/src/surfaces/checkout/components/Banner/README.md +14 -0
- package/src/surfaces/checkout/components/Banner/content/guidelines.md +9 -0
- package/src/surfaces/checkout/components/Banner/examples/basic-banner.example.ts +11 -0
- package/src/surfaces/checkout/components/BlockLayout/BlockLayout.ts +43 -0
- package/src/surfaces/checkout/components/BlockLayout/README.md +101 -0
- package/src/surfaces/checkout/components/BlockLayout/examples/basic-blockLayout.example.ts +16 -0
- package/src/surfaces/checkout/components/BlockSpacer/BlockSpacer.ts +25 -0
- package/src/surfaces/checkout/components/BlockSpacer/README.md +14 -0
- package/src/surfaces/checkout/components/BlockSpacer/examples/basic-blockspacer.example.ts +11 -0
- package/src/surfaces/checkout/components/BlockStack/BlockStack.ts +53 -0
- package/src/surfaces/checkout/components/BlockStack/README.md +77 -0
- package/src/surfaces/checkout/components/BlockStack/examples/basic-blockstack.example.ts +11 -0
- package/src/surfaces/checkout/components/Button/Button.ts +87 -0
- package/src/surfaces/checkout/components/Button/README.md +22 -0
- package/src/surfaces/checkout/components/Button/content/guidelines.md +10 -0
- package/src/surfaces/checkout/components/Button/examples/basic-button.example.ts +11 -0
- package/src/surfaces/checkout/components/Checkbox/Checkbox.ts +63 -0
- package/src/surfaces/checkout/components/Checkbox/README.md +18 -0
- package/src/surfaces/checkout/components/Checkbox/content/guidelines.md +9 -0
- package/src/surfaces/checkout/components/Checkbox/examples/basic-checkbox.example.ts +11 -0
- package/src/surfaces/checkout/components/Choice/Choice.ts +25 -0
- package/src/surfaces/checkout/components/Choice/README.md +14 -0
- package/src/surfaces/checkout/components/Choice/content/guidelines.md +9 -0
- package/src/surfaces/checkout/components/Choice/examples/basic-choice.example.ts +50 -0
- package/src/surfaces/checkout/components/ChoiceList/ChoiceList.ts +33 -0
- package/src/surfaces/checkout/components/ChoiceList/README.md +14 -0
- package/src/surfaces/checkout/components/ChoiceList/content/guidelines.md +10 -0
- package/src/surfaces/checkout/components/ChoiceList/examples/basic-choicelist.example.ts +50 -0
- package/src/surfaces/checkout/components/Divider/Divider.ts +33 -0
- package/src/surfaces/checkout/components/Divider/README.md +13 -0
- package/src/surfaces/checkout/components/Divider/examples/basic-divider.example.ts +7 -0
- package/src/surfaces/checkout/components/Form/Form.ts +30 -0
- package/src/surfaces/checkout/components/Form/README.md +21 -0
- package/src/surfaces/checkout/components/Form/content/guidelines.md +4 -0
- package/src/surfaces/checkout/components/Form/examples/basic-form.example.ts +48 -0
- package/src/surfaces/checkout/components/Grid/Grid.ts +104 -0
- package/src/surfaces/checkout/components/Grid/README.md +105 -0
- package/src/surfaces/checkout/components/Grid/content/guidelines.md +3 -0
- package/src/surfaces/checkout/components/Grid/examples/basic-grid.example.ts +45 -0
- package/src/surfaces/checkout/components/GridItem/GridItem.ts +42 -0
- package/src/surfaces/checkout/components/GridItem/README.md +72 -0
- package/src/surfaces/checkout/components/GridItem/content/guidelines.md +3 -0
- package/src/surfaces/checkout/components/GridItem/examples/basic-griditem.example.ts +42 -0
- package/src/surfaces/checkout/components/Heading/Heading.ts +44 -0
- package/src/surfaces/checkout/components/Heading/README.md +19 -0
- package/src/surfaces/checkout/components/Heading/content/guidelines.md +10 -0
- package/src/surfaces/checkout/components/Heading/examples/basic-heading.example.ts +7 -0
- package/src/surfaces/checkout/components/HeadingGroup/HeadingGroup.ts +15 -0
- package/src/surfaces/checkout/components/HeadingGroup/README.md +7 -0
- package/src/surfaces/checkout/components/HeadingGroup/content/guidelines.md +9 -0
- package/src/surfaces/checkout/components/HeadingGroup/examples/basic-headinggroup.example.ts +20 -0
- package/src/surfaces/checkout/components/Icon/Icon.ts +91 -0
- package/src/surfaces/checkout/components/Icon/README.md +15 -0
- package/src/surfaces/checkout/components/Icon/examples/basic-icon.example.ts +7 -0
- package/src/surfaces/checkout/components/Image/Image.ts +83 -0
- package/src/surfaces/checkout/components/Image/README.md +53 -0
- package/src/surfaces/checkout/components/Image/examples/basic-image.example.ts +10 -0
- package/src/surfaces/checkout/components/InlineLayout/InlineLayout.ts +49 -0
- package/src/surfaces/checkout/components/InlineLayout/README.md +103 -0
- package/src/surfaces/checkout/components/InlineLayout/examples/basic-inlineLayout.example.ts +16 -0
- package/src/surfaces/checkout/components/InlineSpacer/InlineSpacer.ts +24 -0
- package/src/surfaces/checkout/components/InlineSpacer/README.md +14 -0
- package/src/surfaces/checkout/components/InlineSpacer/examples/basic-inlinespacer.example.ts +20 -0
- package/src/surfaces/checkout/components/InlineStack/InlineStack.ts +63 -0
- package/src/surfaces/checkout/components/InlineStack/README.md +87 -0
- package/src/surfaces/checkout/components/InlineStack/examples/basic-inlinestack.example.ts +18 -0
- package/src/surfaces/checkout/components/Link/Link.ts +49 -0
- package/src/surfaces/checkout/components/Link/README.md +18 -0
- package/src/surfaces/checkout/components/Link/content/guidelines.md +9 -0
- package/src/surfaces/checkout/components/Link/examples/basic-link.example.ts +11 -0
- package/src/surfaces/checkout/components/List/List.ts +32 -0
- package/src/surfaces/checkout/components/List/README.md +19 -0
- package/src/surfaces/checkout/components/List/content/guidelines.md +11 -0
- package/src/surfaces/checkout/components/List/examples/basic-list.example.ts +11 -0
- package/src/surfaces/checkout/components/ListItem/ListItem.ts +12 -0
- package/src/surfaces/checkout/components/ListItem/README.md +5 -0
- package/src/surfaces/checkout/components/ListItem/content/guidelines.md +3 -0
- package/src/surfaces/checkout/components/ListItem/examples/basic-listitem.example.ts +9 -0
- package/src/surfaces/checkout/components/PhoneField/PhoneField.ts +77 -0
- package/src/surfaces/checkout/components/PhoneField/README.md +49 -0
- package/src/surfaces/checkout/components/PhoneField/examples/basic-phonefield.example.ts +10 -0
- package/src/surfaces/checkout/components/Pressable/Pressable.ts +128 -0
- package/src/surfaces/checkout/components/Pressable/README.md +74 -0
- package/src/surfaces/checkout/components/Pressable/examples/basic-pressable.example.ts +27 -0
- package/src/surfaces/checkout/components/ScrollView/README.md +62 -0
- package/src/surfaces/checkout/components/ScrollView/ScrollView.ts +76 -0
- package/src/surfaces/checkout/components/ScrollView/examples/basic-scrollview.example.ts +38 -0
- package/src/surfaces/checkout/components/Select/README.md +41 -0
- package/src/surfaces/checkout/components/Select/Select.ts +97 -0
- package/src/surfaces/checkout/components/Select/content/guidelines.md +4 -0
- package/src/surfaces/checkout/components/Select/examples/basic-select.example.ts +36 -0
- package/src/surfaces/checkout/components/SkeletonImage/README.md +13 -0
- package/src/surfaces/checkout/components/SkeletonImage/SkeletonImage.ts +28 -0
- package/src/surfaces/checkout/components/SkeletonImage/examples/basic-skeletonimage.example.ts +10 -0
- package/src/surfaces/checkout/components/SkeletonText/README.md +13 -0
- package/src/surfaces/checkout/components/SkeletonText/SkeletonText.ts +23 -0
- package/src/surfaces/checkout/components/SkeletonText/examples/basic-skeletontext.example.ts +7 -0
- package/src/surfaces/checkout/components/SkeletonTextBlock/README.md +13 -0
- package/src/surfaces/checkout/components/SkeletonTextBlock/SkeletonTextBlock.ts +24 -0
- package/src/surfaces/checkout/components/SkeletonTextBlock/examples/basic-skeletontextblock.example.ts +7 -0
- package/src/surfaces/checkout/components/Spinner/README.md +14 -0
- package/src/surfaces/checkout/components/Spinner/Spinner.ts +35 -0
- package/src/surfaces/checkout/components/Spinner/examples/basic-spinner.example.ts +7 -0
- package/src/surfaces/checkout/components/Stepper/README.md +28 -0
- package/src/surfaces/checkout/components/Stepper/Stepper.ts +63 -0
- package/src/surfaces/checkout/components/Stepper/content/guidelines.md +4 -0
- package/src/surfaces/checkout/components/Stepper/examples/basic-stepper.example.ts +10 -0
- package/src/surfaces/checkout/components/Tag/README.md +14 -0
- package/src/surfaces/checkout/components/Tag/Tag.ts +26 -0
- package/src/surfaces/checkout/components/Tag/examples/basic-tag.example.ts +7 -0
- package/src/surfaces/checkout/components/Text/README.md +17 -0
- package/src/surfaces/checkout/components/Text/Text.ts +44 -0
- package/src/surfaces/checkout/components/Text/content/guidelines.md +10 -0
- package/src/surfaces/checkout/components/Text/examples/basic-text.example.ts +14 -0
- package/src/surfaces/checkout/components/TextBlock/README.md +15 -0
- package/src/surfaces/checkout/components/TextBlock/TextBlock.ts +38 -0
- package/src/surfaces/checkout/components/TextBlock/content/guidelines.md +9 -0
- package/src/surfaces/checkout/components/TextBlock/examples/basic-textblock.example.ts +18 -0
- package/src/surfaces/checkout/components/TextField/README.md +49 -0
- package/src/surfaces/checkout/components/TextField/TextField.ts +173 -0
- package/src/surfaces/checkout/components/TextField/content/guidelines.md +5 -0
- package/src/surfaces/checkout/components/TextField/examples/basic-textfield.example.ts +9 -0
- package/src/surfaces/checkout/components/Tooltip/README.md +8 -0
- package/src/surfaces/checkout/components/Tooltip/Tooltip.ts +15 -0
- package/src/surfaces/checkout/components/Tooltip/examples/basic-tooltip.example.ts +23 -0
- package/src/surfaces/checkout/components/View/README.md +97 -0
- package/src/surfaces/checkout/components/View/View.ts +196 -0
- package/src/surfaces/checkout/components/View/examples/basic-view.example.ts +11 -0
- package/src/surfaces/checkout/components/shared.ts +581 -0
- package/src/surfaces/checkout/components.ts +157 -0
- package/src/surfaces/checkout/extension-points.ts +164 -0
- package/src/surfaces/checkout/extension.ts +8 -0
- package/src/surfaces/checkout/globals.ts +9 -0
- package/src/surfaces/checkout/shared.ts +6 -0
- package/src/surfaces/checkout/style/isEqual.test.ts +67 -0
- package/src/surfaces/checkout/style/isEqual.ts +41 -0
- package/src/surfaces/checkout/style/memoize.ts +177 -0
- package/src/surfaces/checkout/style/style.test.ts +131 -0
- package/src/surfaces/checkout/style/style.ts +161 -0
- package/src/surfaces/checkout/style/types.ts +67 -0
- package/src/surfaces/checkout/style.ts +16 -0
- package/src/surfaces/checkout.ts +7 -0
- package/src/utilities/registration.ts +79 -0
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import {createRemoteComponent} from '@remote-ui/core';
|
|
2
|
+
|
|
3
|
+
import {IconProps} from '../Icon/Icon';
|
|
4
|
+
|
|
5
|
+
type RequiredTitleOrIcon =
|
|
6
|
+
| {
|
|
7
|
+
/** Button label text */
|
|
8
|
+
title: string;
|
|
9
|
+
icon?: IconProps;
|
|
10
|
+
}
|
|
11
|
+
| {
|
|
12
|
+
/** Button label text */
|
|
13
|
+
title?: string;
|
|
14
|
+
icon: IconProps;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export interface BaseButtonProps {
|
|
18
|
+
/**
|
|
19
|
+
* The type of button that will be rendered.
|
|
20
|
+
*
|
|
21
|
+
* `primary`: button used for main actions or green-path. Ex: Continue to next step, Discount field
|
|
22
|
+
* `secondary`: button used for secondary actions not blocking user progress. Ex: Download Shop app
|
|
23
|
+
* `plain`: Renders a button that visually looks like a Link
|
|
24
|
+
* @default 'secondary'
|
|
25
|
+
*/
|
|
26
|
+
kind?: 'primary' | 'secondary' | 'plain';
|
|
27
|
+
/**
|
|
28
|
+
* Specifies the color of the Button. The button will keep the style of the chosen `kind`,
|
|
29
|
+
* but replace its color according to the appearance.
|
|
30
|
+
*
|
|
31
|
+
* `monochrome`: button will inherit the color of its parent
|
|
32
|
+
* `critical`: button will take inherit the color of the Critical color group (in Checkout)
|
|
33
|
+
* and map to 'destructive' (in Admin/Polaris). Typically used for destructive actions.
|
|
34
|
+
*
|
|
35
|
+
*/
|
|
36
|
+
appearance?: 'critical';
|
|
37
|
+
/** Changes the size of the button
|
|
38
|
+
* @default 'base'
|
|
39
|
+
*/
|
|
40
|
+
size?: 'base' | 'large';
|
|
41
|
+
/**
|
|
42
|
+
* Whether the button should fill all available inline space.
|
|
43
|
+
* */
|
|
44
|
+
inlineSize?: 'fill';
|
|
45
|
+
/**
|
|
46
|
+
* Replaces content with a loading indicator
|
|
47
|
+
*/
|
|
48
|
+
loading?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* A label that will be announced to buyers using assistive technologies
|
|
51
|
+
*/
|
|
52
|
+
accessibilityLabel?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Disables the button, disallowing any interaction
|
|
55
|
+
*/
|
|
56
|
+
disabled?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Callback when pressed
|
|
59
|
+
*/
|
|
60
|
+
onPress?(): void;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export type ButtonProps = RequiredTitleOrIcon & BaseButtonProps;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Buttons are used primarily for actions, such as βAddβ, βCloseβ, βCancelβ, or βSaveβ.
|
|
67
|
+
*/
|
|
68
|
+
export const Button = createRemoteComponent<'Button', ButtonProps>('Button');
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
## Guidelines
|
|
2
|
+
|
|
3
|
+
- π± Buttons will wrap their content if placed inside a `Stack` component, otherwise they will expand to the width of the container
|
|
4
|
+
- π₯ Buttons wrap their content, regardless of the container they are placed in
|
|
5
|
+
|
|
6
|
+
| β
Do | π Don't |
|
|
7
|
+
| -------------------------------------------------- | -------------------------------------------- | --- |
|
|
8
|
+
| π± Align buttons vertically | π±Buttons should not be stacked horizontally |
|
|
9
|
+
| Use short, succinct titles that describe an action | |
|
|
10
|
+
| Use an icon to supplement the title of the button | |
|
|
11
|
+
| Use only a single primary Button per section | |
|
|
12
|
+
| Primary buttons should be before secondary buttons | | |
|
|
13
|
+
|
|
14
|
+
For more guidelines, refer to Polaris' [Button best practices](https://polaris.shopify.com/components/actions/button#section-best-practices).
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import {extension, Button} from '@shopify/ui-extensions/admin';
|
|
2
|
+
|
|
3
|
+
export default extension('Playground', (root) => {
|
|
4
|
+
const button = root.createComponent(Button, {
|
|
5
|
+
title: 'Settings',
|
|
6
|
+
kind: 'primary',
|
|
7
|
+
appearance: 'critical',
|
|
8
|
+
size: 'large',
|
|
9
|
+
inlineSize: 'fill',
|
|
10
|
+
accessibilityLabel: 'open settings',
|
|
11
|
+
disabled: false,
|
|
12
|
+
onPress: () => console.log('Pressed'),
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
root.appendChild(button);
|
|
16
|
+
root.mount();
|
|
17
|
+
});
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import {createRemoteComponent} from '@remote-ui/core';
|
|
2
|
+
|
|
3
|
+
import {DestructableAction, DisableableAction} from '../shared';
|
|
4
|
+
|
|
5
|
+
export interface CardProps {
|
|
6
|
+
/** Title content for the card */
|
|
7
|
+
title?: string;
|
|
8
|
+
|
|
9
|
+
/** Automatically wrap each child component in a `Card.Section` */
|
|
10
|
+
sectioned?: boolean;
|
|
11
|
+
|
|
12
|
+
/** Primary action for the card footer */
|
|
13
|
+
primaryFooterAction?: DestructableAction;
|
|
14
|
+
|
|
15
|
+
/** Secondary actions for the card footer */
|
|
16
|
+
secondaryFooterActions?: DestructableAction[];
|
|
17
|
+
|
|
18
|
+
/** Card header action */
|
|
19
|
+
actions?: DisableableAction[];
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Cards are used to group similar concepts and tasks together to make Shopify easier for merchants to scan, read, and get things done.
|
|
24
|
+
*
|
|
25
|
+
* The action API should be used to create actionable components for the card.
|
|
26
|
+
* Cards should be contained, independent, and individual.
|
|
27
|
+
*/
|
|
28
|
+
export const Card = createRemoteComponent<'Card', CardProps>('Card');
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
## Guidelines
|
|
2
|
+
|
|
3
|
+
- π± Do not nest Cards within another component. This will result in unintended behavior, and will not render correctly
|
|
4
|
+
|
|
5
|
+
| β
Do | π Don't |
|
|
6
|
+
| ----------------------------------------------------------- | ------------------------------ |
|
|
7
|
+
| Cards should be at the top level of the component hierarchy | Use too many secondary actions |
|
|
8
|
+
|
|
9
|
+
For more guidelines, refer to Polaris' [Card best practices](https://polaris.shopify.com/components/structure/card#section-best-practices).
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {extension, Card} from '@shopify/ui-extensions/admin';
|
|
2
|
+
|
|
3
|
+
export default extension('Playground', (root) => {
|
|
4
|
+
const card = root.createComponent(Card, {});
|
|
5
|
+
|
|
6
|
+
card.appendChild('This is the best extension.');
|
|
7
|
+
root.appendChild(card);
|
|
8
|
+
|
|
9
|
+
root.mount();
|
|
10
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import {createRemoteComponent} from '@remote-ui/core';
|
|
2
|
+
|
|
3
|
+
export interface CardSectionProps {
|
|
4
|
+
title?: string;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* CardSections are used to group similar concepts within a Card. CardSections add dividers, which visually separate regions within cards.
|
|
9
|
+
*/
|
|
10
|
+
export const CardSection = createRemoteComponent<
|
|
11
|
+
'CardSection',
|
|
12
|
+
CardSectionProps
|
|
13
|
+
>('CardSection');
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import {extension, Card, CardSection} from '@shopify/ui-extensions/admin';
|
|
2
|
+
|
|
3
|
+
export default extension('Playground', (root) => {
|
|
4
|
+
const card = root.createComponent(Card, {});
|
|
5
|
+
root.appendChild(card);
|
|
6
|
+
|
|
7
|
+
const cardSection = root.createComponent(CardSection, {
|
|
8
|
+
title: 'Sectional',
|
|
9
|
+
});
|
|
10
|
+
cardSection.appendChild('This is the best section.');
|
|
11
|
+
card.appendChild(cardSection);
|
|
12
|
+
|
|
13
|
+
const cardSection2 = root.createComponent(CardSection, {
|
|
14
|
+
title: 'Loveseat',
|
|
15
|
+
});
|
|
16
|
+
cardSection.appendChild('No, this is the best section.');
|
|
17
|
+
card.appendChild(cardSection2);
|
|
18
|
+
|
|
19
|
+
root.mount();
|
|
20
|
+
});
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import {createRemoteComponent} from '@remote-ui/core';
|
|
2
|
+
|
|
3
|
+
export interface CheckboxProps {
|
|
4
|
+
/** Label for the checkbox. */
|
|
5
|
+
label?: string;
|
|
6
|
+
|
|
7
|
+
/** Checkbox is selected. */
|
|
8
|
+
checked?: boolean;
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Alias for `checked`, to support iterating over multiple types of form fields.
|
|
12
|
+
* If both `checked` and `value` are used, `checked` is the source of truth.
|
|
13
|
+
*/
|
|
14
|
+
value?: boolean;
|
|
15
|
+
|
|
16
|
+
/** Callback when checkbox is toggled. */
|
|
17
|
+
onChange?(value: boolean): void | Promise<void>;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Checkboxes are most commonly used to give merchants a way to make a range of selections (zero, one, or multiple).
|
|
22
|
+
*/
|
|
23
|
+
export const Checkbox = createRemoteComponent<'Checkbox', CheckboxProps>(
|
|
24
|
+
'Checkbox',
|
|
25
|
+
);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
## Guidelines
|
|
2
|
+
|
|
3
|
+
| β
Do | π Don't |
|
|
4
|
+
| ------------------------------------------------------ | ----------------------------- |
|
|
5
|
+
| Use Checkboxes to give merchants a multi select choice | Horizontally stack Checkboxes |
|
|
6
|
+
| Vertically align Checkboxes | |
|
|
7
|
+
|
|
8
|
+
For more guidelines, refer to Polaris' [Checkbox best practices](https://polaris.shopify.com/components/forms/checkbox#section-best-practices).
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import {extension, ExtensionPoint, Checkbox} from '@shopify/ui-extensions/admin';
|
|
2
|
+
|
|
3
|
+
export default extension('Playground', (root) => {
|
|
4
|
+
const checkbox = root.createComponent(Checkbox, {
|
|
5
|
+
label: 'Opt in to something cool',
|
|
6
|
+
checked: true,
|
|
7
|
+
onChange: () => console.log('Checked'),
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
root.appendChild(checkbox);
|
|
11
|
+
|
|
12
|
+
root.mount();
|
|
13
|
+
});
|
package/src/surfaces/admin/components/CustomerSegmentationTemplate/CustomerSegmentationTemplate.ts
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import {createRemoteComponent} from '@remote-ui/core';
|
|
2
|
+
|
|
3
|
+
type Source =
|
|
4
|
+
| 'categoriesMajor'
|
|
5
|
+
| 'firstVisitMajor'
|
|
6
|
+
| 'heartMajor'
|
|
7
|
+
| 'marketingMajor'
|
|
8
|
+
| 'checkoutMajor'
|
|
9
|
+
| 'ordersMajor'
|
|
10
|
+
| 'locationMajor'
|
|
11
|
+
| 'emailNewsletterMajor'
|
|
12
|
+
| 'firstOrderMajor'
|
|
13
|
+
| 'billingStatementDollarMajor'
|
|
14
|
+
| 'diamondAlertMajor'
|
|
15
|
+
| 'abandonedCartMajor'
|
|
16
|
+
| 'calendarMajor'
|
|
17
|
+
| 'productsMajor'
|
|
18
|
+
| 'globeMajor'
|
|
19
|
+
| 'flagMajor'
|
|
20
|
+
| 'uploadMajor'
|
|
21
|
+
| 'buyButtonMajor'
|
|
22
|
+
| 'followUpEmailMajor'
|
|
23
|
+
| 'confettiMajor';
|
|
24
|
+
|
|
25
|
+
type TemplateCategory =
|
|
26
|
+
| 'firstTimeBuyers'
|
|
27
|
+
| 'highValueCustomers'
|
|
28
|
+
| 'reEngageCustomers'
|
|
29
|
+
| 'abandonedCheckout'
|
|
30
|
+
| 'purchaseBehaviour'
|
|
31
|
+
| 'location';
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Reserved namespace and key for the customer standard metafield used in the template's query.
|
|
35
|
+
* More info - https://shopify.dev/docs/apps/custom-data/metafields/definitions/standard
|
|
36
|
+
*/
|
|
37
|
+
type CustomerStandardMetafieldDependency = 'facts.birth_date';
|
|
38
|
+
|
|
39
|
+
export interface CustomerSegmentationTemplateProps {
|
|
40
|
+
/* Localized title of the template. */
|
|
41
|
+
title: string;
|
|
42
|
+
/* Localized description(s) of the template. */
|
|
43
|
+
description: string | string[];
|
|
44
|
+
/* Icon identifier for the template. This property is ignored for non-1P Segmentation templates as we fallback to the app icon */
|
|
45
|
+
icon?: Source;
|
|
46
|
+
/* ShopifyQL code snippet to render in the template with syntax highlighting. */
|
|
47
|
+
templateQuery: string;
|
|
48
|
+
/* ShopifyQL code snippet to insert in the segment editor. If missing, `templateQuery` will be used. */
|
|
49
|
+
templateQueryToInsert?: string;
|
|
50
|
+
/* List of customer standard metafield used in the template's query. */
|
|
51
|
+
standardMetafieldDependencies?: CustomerStandardMetafieldDependency[];
|
|
52
|
+
/* ISO 8601-encoded date and time string. A "New" badge will be rendered for recently introduced templates. */
|
|
53
|
+
dateAdded?: string;
|
|
54
|
+
/* The category in which the template will be visible.
|
|
55
|
+
When provided, the template will show in its respective category and aggregate sections.
|
|
56
|
+
When missing, the template will show in the aggregate sections only */
|
|
57
|
+
category?: TemplateCategory;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Customer segmentation templates are used to give merchants a starting point to create segments.
|
|
62
|
+
*/
|
|
63
|
+
export const CustomerSegmentationTemplate = createRemoteComponent<
|
|
64
|
+
'CustomerSegmentationTemplate',
|
|
65
|
+
CustomerSegmentationTemplateProps
|
|
66
|
+
>('CustomerSegmentationTemplate');
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import {
|
|
2
|
+
extension,
|
|
3
|
+
CustomerSegmentationTemplate,
|
|
4
|
+
} from '@shopify/ui-extensions/admin';
|
|
5
|
+
|
|
6
|
+
export default extension(
|
|
7
|
+
'admin.customers.segmentation-templates.render',
|
|
8
|
+
(root, {i18n, __enabledFeatures}) => {
|
|
9
|
+
const productsPurchasedOnTagsEnabled = __enabledFeatures.includes('productsPurchasedByTags');
|
|
10
|
+
const productTemplate = root.createComponent(CustomerSegmentationTemplate, {
|
|
11
|
+
title: i18n.translate('product.title'),
|
|
12
|
+
description: i18n.translate('product.description'),
|
|
13
|
+
icon: 'productsMajor',
|
|
14
|
+
templateQuery: productsPurchasedOnTagsEnabled
|
|
15
|
+
? 'products_purchased(tag: (product_tag)) = true'
|
|
16
|
+
: 'products_purchased(id: (product_id)) = true',
|
|
17
|
+
templateQueryToInsert: productsPurchasedOnTagsEnabled
|
|
18
|
+
? 'products_purchased(tag:'
|
|
19
|
+
: 'products_purchased(id:',
|
|
20
|
+
dateAdded: new Date('2023-01-15').toISOString(),
|
|
21
|
+
category: 'reEngageCustomers'
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
const locationTemplate = root.createComponent(CustomerSegmentationTemplate, {
|
|
25
|
+
title: i18n.translate('location.title'),
|
|
26
|
+
description: [i18n.translate('location.firstParagraph'), i18n.translate('location.secondParagraph')],
|
|
27
|
+
icon: 'locationMajor',
|
|
28
|
+
templateQuery: "customer_cities CONTAINS 'US-NY-NewYorkCity'",
|
|
29
|
+
category: 'location'
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
root.appendChild(productTemplate);
|
|
33
|
+
root.appendChild(locationTemplate);
|
|
34
|
+
|
|
35
|
+
root.mount();
|
|
36
|
+
},
|
|
37
|
+
);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import {createRemoteComponent} from '@remote-ui/core';
|
|
2
|
+
|
|
3
|
+
type Level = 1 | 2 | 3 | 4 | 5 | 6;
|
|
4
|
+
|
|
5
|
+
export interface HeadingProps {
|
|
6
|
+
/**
|
|
7
|
+
* Unique identifier. Typically used to make the heading a target
|
|
8
|
+
* that another component can refer to in order to provide an alternative
|
|
9
|
+
* accessibility label.
|
|
10
|
+
*/
|
|
11
|
+
id?: string;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* The visual level of the heading.
|
|
15
|
+
* @default 2
|
|
16
|
+
*/
|
|
17
|
+
level?: Level;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Headings are used as the titles of each major section of an extension.
|
|
22
|
+
*/
|
|
23
|
+
export const Heading = createRemoteComponent<'Heading', HeadingProps>(
|
|
24
|
+
'Heading',
|
|
25
|
+
);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
## Guidelines
|
|
2
|
+
|
|
3
|
+
- π± Headings should clearly describe the section of interface they refer to
|
|
4
|
+
- π± Use Headings to highlight the most important concept or piece of information merchants need to know
|
|
5
|
+
|
|
6
|
+
| β
Do | π Don't |
|
|
7
|
+
| --------------------------------------------------------------- | ---------------------------------- |
|
|
8
|
+
| Use headings to support the hierarchy and structure of the page | Nest too many Headings in one area |
|
|
9
|
+
| Place Headings at the top of a page or section they refer to | |
|
|
10
|
+
|
|
11
|
+
For more guidelines, refer to Polaris' [Heading best practices](https://polaris.shopify.com/components/titles-and-text/heading#section-best-practices).
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {extension, Heading} from '@shopify/ui-extensions/admin';
|
|
2
|
+
|
|
3
|
+
export default extension('Playground', (root) => {
|
|
4
|
+
const heading = root.createComponent(Heading, {
|
|
5
|
+
id: 'profile_heading',
|
|
6
|
+
level: 3,
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
const headingText = root.createText('This is a Title');
|
|
10
|
+
heading.appendChild(headingText);
|
|
11
|
+
root.appendChild(heading);
|
|
12
|
+
|
|
13
|
+
root.mount();
|
|
14
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import {createRemoteComponent} from '@remote-ui/core';
|
|
2
|
+
|
|
3
|
+
type Source =
|
|
4
|
+
| 'cancelSmallMinor'
|
|
5
|
+
| 'searchMinor'
|
|
6
|
+
| 'starHollow'
|
|
7
|
+
| 'starFilled'
|
|
8
|
+
| 'sortMinor';
|
|
9
|
+
|
|
10
|
+
export interface IconProps {
|
|
11
|
+
/** Pre-defined glyph content to display. */
|
|
12
|
+
source: Source;
|
|
13
|
+
|
|
14
|
+
/** Text describing the icon, to be read to screenreaders. */
|
|
15
|
+
accessibilityLabel?: string;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Icons are small visual indicators from a set of pre-defined glyphs.
|
|
20
|
+
*/
|
|
21
|
+
export const Icon = createRemoteComponent<'Icon', IconProps>('Icon');
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
## Guidelines
|
|
2
|
+
|
|
3
|
+
| β
Do | π Don't |
|
|
4
|
+
| ------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------- |
|
|
5
|
+
| Use Icons to provide visual indicators to your actions, such as sorting and searching | Use the same accessibility label for every Icon |
|
|
6
|
+
| Use a unique accessibility label that describes the Icon, so that the merchants deviceβs screen reader can announce the content | |
|
|
7
|
+
|
|
8
|
+
For more guidelines, refer to Polaris' [Icon related guidelines](https://polaris.shopify.com/components/images-and-icons/icon#section-related-guidelines).
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {extension, Icon} from '@shopify/ui-extensions/admin';
|
|
2
|
+
|
|
3
|
+
export default extension('Playground', (root) => {
|
|
4
|
+
const icon = root.createComponent(Icon, {
|
|
5
|
+
source: 'cancelSmallMinor',
|
|
6
|
+
});
|
|
7
|
+
|
|
8
|
+
icon.appendChild('This is the best extension.');
|
|
9
|
+
root.appendChild(icon);
|
|
10
|
+
|
|
11
|
+
root.mount();
|
|
12
|
+
});
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import {createRemoteComponent} from '@remote-ui/core';
|
|
2
|
+
|
|
3
|
+
import type {Spacing} from '../shared';
|
|
4
|
+
|
|
5
|
+
export interface InlineStackProps {
|
|
6
|
+
/**
|
|
7
|
+
* Specifies the block alignment. This affects the vertical flow of elements.
|
|
8
|
+
* @defaultValue `leading`
|
|
9
|
+
*/
|
|
10
|
+
blockAlignment?: 'leading' | 'center' | 'trailing' | 'baseline';
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Specifies the inline alignment. This affects the horizontal flow of elements.
|
|
14
|
+
* @defaultValue `leading`
|
|
15
|
+
*/
|
|
16
|
+
inlineAlignment?: 'leading' | 'center' | 'trailing';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Adjust spacing between children.
|
|
20
|
+
* @defaultValue 'base'
|
|
21
|
+
**/
|
|
22
|
+
spacing?: Spacing;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Use to lay out a horizontal row of components.
|
|
27
|
+
*
|
|
28
|
+
* A stack is made of flexible items that wrap each of the stackβs children. Options provide control of the alignment and spacing of the items in the stack.
|
|
29
|
+
* Use `StackItem` to group multiple elements inside a `InlineStack` together.
|
|
30
|
+
*/
|
|
31
|
+
export const InlineStack = createRemoteComponent<
|
|
32
|
+
'InlineStack',
|
|
33
|
+
InlineStackProps
|
|
34
|
+
>('InlineStack');
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
## Guidelines
|
|
2
|
+
|
|
3
|
+
- π± All children of `InlineStack` are placed in a single view object, which makes recycling the views expensive and results in poorer performance when scrolling. Consider keeping your Stacks simple.
|
|
4
|
+
- By default, `InlineStack` alignment is `'leadingβ`.
|
|
5
|
+
|
|
6
|
+
| β
Do | π Don't |
|
|
7
|
+
| ----------------------------------------------------------------------------- | ------------------------------------- |
|
|
8
|
+
| π± Keep Inline Stacks shallow. Complex hierarchies have performance penalties | π± Use complex and deep Stack layouts |
|
|
9
|
+
|
|
10
|
+
For more guidelines, refer to Polaris' [Stack best practices](https://polaris.shopify.com/components/structure/stack#section-best-practices).
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {extension, InlineStack, Text} from '@shopify/ui-extensions/admin';
|
|
2
|
+
|
|
3
|
+
export default extension('Playground', (root) => {
|
|
4
|
+
const inlineStack = root.createComponent(InlineStack, {
|
|
5
|
+
inlineAlignment: 'center',
|
|
6
|
+
spacing: 'loose',
|
|
7
|
+
}, [
|
|
8
|
+
root.createComponent(Text, undefined, 'Items to stack'),
|
|
9
|
+
root.createComponent(Text, undefined, 'Items to stack'),
|
|
10
|
+
root.createComponent(Text, undefined, 'Items to stack'),
|
|
11
|
+
]);
|
|
12
|
+
|
|
13
|
+
root.appendChild(inlineStack);
|
|
14
|
+
|
|
15
|
+
root.mount();
|
|
16
|
+
});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import {createRemoteComponent} from '@remote-ui/core';
|
|
2
|
+
|
|
3
|
+
export interface LinkProps {
|
|
4
|
+
/**
|
|
5
|
+
* Callback when the link is pressed.
|
|
6
|
+
*/
|
|
7
|
+
onPress?: () => void;
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Open the link in a new tab on desktop, or in the device browser on mobile.
|
|
11
|
+
*/
|
|
12
|
+
external?: boolean;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* A relative path or absolute URL to link to.
|
|
16
|
+
*/
|
|
17
|
+
url?: string;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Links take users to another place, and usually appear within or directly following a sentence.
|
|
22
|
+
*/
|
|
23
|
+
export const Link = createRemoteComponent<'Link', LinkProps>('Link');
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
## Guidelines
|
|
2
|
+
|
|
3
|
+
- π± Only nest Text within Link. Other components will be ignored. Nested Text components can be used to render the content of the Link
|
|
4
|
+
|
|
5
|
+
| β
Do | π Don't |
|
|
6
|
+
| ------------------------------------------------------------------------- | ----------------------------------------------------- |
|
|
7
|
+
| π± Use `external` to launch URLs with the device browser | Inject Javascript into the URL. This will be blocked. |
|
|
8
|
+
| π₯ Use `external` to launch URLs in a new browser tab. Use HTTPS for URLs. | |
|
|
9
|
+
|
|
10
|
+
For more guidelines, refer to Polaris' [Link best practices](https://polaris.shopify.com/components/navigation/link#section-best-practices).
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import {extension, Link} from '@shopify/ui-extensions/admin';
|
|
2
|
+
|
|
3
|
+
export default extension('Playground', (root) => {
|
|
4
|
+
const link = root.createComponent(Link, {
|
|
5
|
+
url: 'https://shopify.com',
|
|
6
|
+
external: true,
|
|
7
|
+
});
|
|
8
|
+
link.appendChild('The best product ever!');
|
|
9
|
+
|
|
10
|
+
root.appendChild(link);
|
|
11
|
+
|
|
12
|
+
root.mount();
|
|
13
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {extension, Link} from '@shopify/ui-extensions/admin';
|
|
2
|
+
|
|
3
|
+
export default extension('Playground', (root) => {
|
|
4
|
+
const logLink = root.createComponent(Link, {
|
|
5
|
+
onPress: () => console.log('I was pressed'),
|
|
6
|
+
});
|
|
7
|
+
logLink.appendChild('I donβt do much.');
|
|
8
|
+
|
|
9
|
+
root.appendChild(logLink);
|
|
10
|
+
|
|
11
|
+
root.mount();
|
|
12
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {extension, Link} from '@shopify/ui-extensions/admin';
|
|
2
|
+
|
|
3
|
+
export default extension('Playground', (root) => {
|
|
4
|
+
const productLink = root.createComponent(Link, {
|
|
5
|
+
url: '/admin/products/12345',
|
|
6
|
+
});
|
|
7
|
+
productLink.appendChild('View product');
|
|
8
|
+
|
|
9
|
+
root.appendChild(productLink);
|
|
10
|
+
|
|
11
|
+
root.mount();
|
|
12
|
+
});
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import {createRemoteComponent} from '@remote-ui/core';
|
|
2
|
+
|
|
3
|
+
import {DestructableAction} from '../shared';
|
|
4
|
+
|
|
5
|
+
export interface ModalProps {
|
|
6
|
+
/**
|
|
7
|
+
* Whether the modal is open.
|
|
8
|
+
*/
|
|
9
|
+
open: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Title content for the modal, when rendered.
|
|
12
|
+
*/
|
|
13
|
+
title: string;
|
|
14
|
+
/**
|
|
15
|
+
* Modal's primary action, ie 'Save' or 'Accept'.
|
|
16
|
+
*/
|
|
17
|
+
primaryAction?: DestructableAction;
|
|
18
|
+
/**
|
|
19
|
+
* Modal's secondary action(s), ie 'Cancel'.
|
|
20
|
+
*/
|
|
21
|
+
secondaryActions?: DestructableAction[];
|
|
22
|
+
/**
|
|
23
|
+
* Callback when the modal is closed.
|
|
24
|
+
*/
|
|
25
|
+
onClose: () => void;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Modals are overlays that prevent merchants from interacting with the rest of the application until a specific action is taken.
|
|
30
|
+
*
|
|
31
|
+
* Modals are disruptive by design, requiring merchants to take an action before they can continue, so use them thoughtfully and sparingly.
|
|
32
|
+
*/
|
|
33
|
+
export const Modal = createRemoteComponent<'Modal', ModalProps>('Modal');
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
## Guidelines
|
|
2
|
+
|
|
3
|
+
| β
Do | π Don't |
|
|
4
|
+
| ------------------------------------------------------------- | ------------------------------------------ |
|
|
5
|
+
| Use modals thoughtfully and sparingly | Avoid overly complex or multi-step content |
|
|
6
|
+
| Use modals with a small and simple set of actions to complete | |
|
|
7
|
+
|
|
8
|
+
For more guidelines, refer to Polaris' [Modal best practices](https://polaris.shopify.com/components/overlays/modal#section-best-practices).
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {extension, Modal} from '@shopify/ui-extensions/admin';
|
|
2
|
+
|
|
3
|
+
export default extension('Playground', (root) => {
|
|
4
|
+
const modal = root.createComponent(Modal, {
|
|
5
|
+
title: 'The best modal',
|
|
6
|
+
onClose: () => console.log('modal closed!'),
|
|
7
|
+
open: true,
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
modal.appendChild('This is the content of the modal.');
|
|
11
|
+
root.appendChild(modal);
|
|
12
|
+
|
|
13
|
+
root.mount();
|
|
14
|
+
});
|