@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,75 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { BorderProps, SizingProps, SpacingProps } from '../shared';
|
|
3
|
+
export interface ScrollViewEvent {
|
|
4
|
+
/**
|
|
5
|
+
* The current scroll position, in pixels.
|
|
6
|
+
*/
|
|
7
|
+
position: {
|
|
8
|
+
/** The current scroll horizontal position, in pixels.*/
|
|
9
|
+
inline: number;
|
|
10
|
+
/** The current scroll vertical position, in pixels.*/
|
|
11
|
+
block: number;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* A flag to indicate if the scroll is at the start or end of an axis.
|
|
15
|
+
*/
|
|
16
|
+
scrolledTo: {
|
|
17
|
+
/** A flag to indicate if the scroll is at the start or end of cross axis. */
|
|
18
|
+
inline: 'start' | 'end' | null;
|
|
19
|
+
/** A flag to indicate if the scroll is at the start or end of main axis. */
|
|
20
|
+
block: 'start' | 'end' | null;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
export interface ScrollViewProps extends BorderProps, SizingProps, SpacingProps {
|
|
24
|
+
/**
|
|
25
|
+
* Provides a hint to the user that the area is scrollable.
|
|
26
|
+
*
|
|
27
|
+
* `pill`: renders a pill with a message at the end of the the scrollable area. It disappear as soon as the user starts scrolling.
|
|
28
|
+
*
|
|
29
|
+
* `innerShadow`: renders an inner visual hint to indicate that the content is scrollable.
|
|
30
|
+
*/
|
|
31
|
+
hint?: 'innerShadow' | {
|
|
32
|
+
type: 'pill';
|
|
33
|
+
content: string;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* The direction on which the content is scrollable.
|
|
37
|
+
*
|
|
38
|
+
* `block`:
|
|
39
|
+
* Indicates that the content is scrollable on the main axis.
|
|
40
|
+
*
|
|
41
|
+
* `inline`:
|
|
42
|
+
* Indicates that the content is scrollable on the cross axis.
|
|
43
|
+
*
|
|
44
|
+
* @defaultValue block
|
|
45
|
+
*/
|
|
46
|
+
direction?: 'block' | 'inline';
|
|
47
|
+
/**
|
|
48
|
+
* Scroll to a specific position or to an element.
|
|
49
|
+
*/
|
|
50
|
+
scrollTo?: number | HTMLElement;
|
|
51
|
+
/**
|
|
52
|
+
* Callback function that is called when the scroll position changes.
|
|
53
|
+
* Allows to listen to events inside the component
|
|
54
|
+
* returning the position of the scroll.
|
|
55
|
+
*
|
|
56
|
+
* Note:
|
|
57
|
+
* On touch devices, the onScroll event is fired only when the user finishes scrolling
|
|
58
|
+
* which differs from non touch devices, where the onScroll event is fired when the user scrolls
|
|
59
|
+
*/
|
|
60
|
+
onScroll?: (args: ScrollViewEvent) => void;
|
|
61
|
+
/**
|
|
62
|
+
* Callback function that is called when the scroll position reaches one of the edges.
|
|
63
|
+
*/
|
|
64
|
+
onScrolledToEdge?: (args: ScrollViewEvent) => void;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* ScrollView is a container for long form content, such as order summary line items,
|
|
68
|
+
* that allows for scrolling so customers can expose more content as they view.
|
|
69
|
+
*/
|
|
70
|
+
export declare const ScrollView: "ScrollView" & {
|
|
71
|
+
readonly type?: "ScrollView" | undefined;
|
|
72
|
+
readonly props?: ScrollViewProps | undefined; /** The current scroll horizontal position, in pixels.*/
|
|
73
|
+
readonly children?: true | undefined;
|
|
74
|
+
};
|
|
75
|
+
//# sourceMappingURL=ScrollView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScrollView.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/checkout/components/ScrollView/ScrollView.ts"],"names":[],"mappings":";AAEA,OAAO,EAAC,WAAW,EAAE,WAAW,EAAE,YAAY,EAAC,MAAM,WAAW,CAAC;AAEjE,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,QAAQ,EAAE;QACR,wDAAwD;QACxD,MAAM,EAAE,MAAM,CAAC;QACf,sDAAsD;QACtD,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IACF;;OAEG;IACH,UAAU,EAAE;QACV,6EAA6E;QAC7E,MAAM,EAAE,OAAO,GAAG,KAAK,GAAG,IAAI,CAAC;QAC/B,4EAA4E;QAC5E,KAAK,EAAE,OAAO,GAAG,KAAK,GAAG,IAAI,CAAC;KAC/B,CAAC;CACH;AAED,MAAM,WAAW,eACf,SAAQ,WAAW,EACjB,WAAW,EACX,YAAY;IACd;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,aAAa,GAAG;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAC,CAAC;IACvD;;;;;;;;;;OAUG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;IAC/B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC;IAChC;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,eAAe,KAAK,IAAI,CAAC;IAC3C;;OAEG;IACH,gBAAgB,CAAC,EAAE,CAAC,IAAI,EAAE,eAAe,KAAK,IAAI,CAAC;CACpD;AAED;;;GAGG;AACH,eAAO,MAAM,UAAU;;kDAhEnB,wDAAwD;;CAkE3D,CAAC"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { Autocomplete } from '../shared';
|
|
2
|
+
interface Option {
|
|
3
|
+
/**
|
|
4
|
+
* The value that will be passed to the select’s `onChange` callback
|
|
5
|
+
* when this option is selected.
|
|
6
|
+
*/
|
|
7
|
+
value: string;
|
|
8
|
+
/**
|
|
9
|
+
* The buyer-facing label for this option.
|
|
10
|
+
*/
|
|
11
|
+
label: string;
|
|
12
|
+
/**
|
|
13
|
+
* Whether this option can be selected or not.
|
|
14
|
+
*/
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export interface SelectProps {
|
|
18
|
+
/**
|
|
19
|
+
* A unique identifier for the field. When no `id` is set,
|
|
20
|
+
* a globally unique value will be used instead.
|
|
21
|
+
*/
|
|
22
|
+
id?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Content to use as the field label.
|
|
25
|
+
*/
|
|
26
|
+
label: string;
|
|
27
|
+
/**
|
|
28
|
+
* An identifier for the field that is unique within the nearest
|
|
29
|
+
* containing `Form` component.
|
|
30
|
+
*/
|
|
31
|
+
name?: string;
|
|
32
|
+
/**
|
|
33
|
+
* The active option for the select. This should match to one of the
|
|
34
|
+
* `value` properties in the `options` prop. When not set,
|
|
35
|
+
* the value will default to an empty string, which will show the
|
|
36
|
+
* `placeholder` text as the "selected value".
|
|
37
|
+
*/
|
|
38
|
+
value?: string;
|
|
39
|
+
/**
|
|
40
|
+
* The options a buyer can select from.
|
|
41
|
+
*/
|
|
42
|
+
options: Option[];
|
|
43
|
+
/**
|
|
44
|
+
* Whether the field needs a value. This requirement adds semantic value
|
|
45
|
+
* to the field, but it will not cause an error to appear automatically.
|
|
46
|
+
* If you want to present an error when this field is empty, you can do
|
|
47
|
+
* so with the `error` prop.
|
|
48
|
+
*/
|
|
49
|
+
required?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Whether the select can be changed.
|
|
52
|
+
*/
|
|
53
|
+
disabled?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Whether the field is read only
|
|
56
|
+
*/
|
|
57
|
+
readonly?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Indicate an error to the user. The field will be given a specific stylistic treatment
|
|
60
|
+
* to communicate problems that have to be resolved immediately.
|
|
61
|
+
*/
|
|
62
|
+
error?: string;
|
|
63
|
+
/**
|
|
64
|
+
* A hint as to the intended content of the field.
|
|
65
|
+
*
|
|
66
|
+
* When set to `true`, this property indicates that the field should support
|
|
67
|
+
* autofill, but you do not have any more semantic information on the intended
|
|
68
|
+
* contents.
|
|
69
|
+
*
|
|
70
|
+
* When set to `false`, you are indicating that this field contains sensitive
|
|
71
|
+
* information, or contents that are never saved, like one-time codes. Note that
|
|
72
|
+
* it is impossible to prevent autocomplete in some browsers, so do not depend on
|
|
73
|
+
* its absence.
|
|
74
|
+
*
|
|
75
|
+
* Alternatively, you can provide an `Autocomplete` object, which describes the
|
|
76
|
+
* specific data you would like to be entered into this field during autocomplete.
|
|
77
|
+
*/
|
|
78
|
+
autocomplete?: Autocomplete | boolean;
|
|
79
|
+
/**
|
|
80
|
+
* A callback that is run whenever the selected option changes. This callback
|
|
81
|
+
* is called with the string `value` of the selected `option`. This component
|
|
82
|
+
* is [controlled](https://reactjs.org/docs/forms.html#controlled-components),
|
|
83
|
+
* so you must store this value in state and reflect it back in the `value`
|
|
84
|
+
* prop of the select.
|
|
85
|
+
*/
|
|
86
|
+
onChange?(value: string): void;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Selects let buyers choose one option from an options menu. Consider select
|
|
90
|
+
* when you have 4 or more options, to avoid cluttering the interface.
|
|
91
|
+
*/
|
|
92
|
+
export declare const Select: "Select" & {
|
|
93
|
+
readonly type?: "Select" | undefined;
|
|
94
|
+
readonly props?: SelectProps | undefined;
|
|
95
|
+
readonly children?: true | undefined;
|
|
96
|
+
};
|
|
97
|
+
export {};
|
|
98
|
+
//# sourceMappingURL=Select.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/checkout/components/Select/Select.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,YAAY,EAAC,MAAM,WAAW,CAAC;AAEvC,UAAU,MAAM;IACd;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,WAAW;IAC1B;;;OAGG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;;;;;;;;;;;OAcG;IACH,YAAY,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC;IACtC;;;;;;OAMG;IACH,QAAQ,CAAC,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CAChC;AAED;;;GAGG;AACH,eAAO,MAAM,MAAM;;;;CAAyD,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { MaybeResponsiveConditionalStyle } from '../../style';
|
|
2
|
+
export interface SkeletonImageProps {
|
|
3
|
+
/**
|
|
4
|
+
* Adjust the block size of the skeleton.
|
|
5
|
+
*/
|
|
6
|
+
blockSize?: MaybeResponsiveConditionalStyle<number | `${number}%` | 'fill'>;
|
|
7
|
+
/**
|
|
8
|
+
* Adjust the inline size of the skeleton.
|
|
9
|
+
*/
|
|
10
|
+
inlineSize?: MaybeResponsiveConditionalStyle<number | `${number}%` | 'fill'>;
|
|
11
|
+
/**
|
|
12
|
+
* Displays the skeleton at the specified aspect ratio (fills the width of the
|
|
13
|
+
* parent container and sets the height accordingly).
|
|
14
|
+
*/
|
|
15
|
+
aspectRatio?: number;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* SkeletonImage is used to provide a low fidelity representation of an image before it appears on the page.
|
|
19
|
+
*/
|
|
20
|
+
export declare const SkeletonImage: "SkeletonImage" & {
|
|
21
|
+
readonly type?: "SkeletonImage" | undefined;
|
|
22
|
+
readonly props?: SkeletonImageProps | undefined;
|
|
23
|
+
readonly children?: true | undefined;
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=SkeletonImage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SkeletonImage.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/checkout/components/SkeletonImage/SkeletonImage.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,+BAA+B,EAAC,MAAM,aAAa,CAAC;AAE5D,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,SAAS,CAAC,EAAE,+BAA+B,CAAC,MAAM,GAAG,GAAG,MAAM,GAAG,GAAG,MAAM,CAAC,CAAC;IAE5E;;OAEG;IACH,UAAU,CAAC,EAAE,+BAA+B,CAAC,MAAM,GAAG,GAAG,MAAM,GAAG,GAAG,MAAM,CAAC,CAAC;IAE7E;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AACD;;GAEG;AACH,eAAO,MAAM,aAAa;;;;CAGR,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Size } from '../shared';
|
|
2
|
+
import type { TextProps } from '../Text/Text';
|
|
3
|
+
export interface SkeletonTextProps extends Pick<TextProps, 'size'> {
|
|
4
|
+
/**
|
|
5
|
+
* Use to emphasize a word or a group of words.
|
|
6
|
+
*/
|
|
7
|
+
emphasis?: 'bold';
|
|
8
|
+
/**
|
|
9
|
+
* Adjust the length of the text when no children are passed.
|
|
10
|
+
*/
|
|
11
|
+
inlineSize?: Extract<Size, 'small' | 'base' | 'large'>;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* SkeletonText is used to provide a low fidelity representation of text content before it appears on the page.
|
|
15
|
+
*/
|
|
16
|
+
export declare const SkeletonText: "SkeletonText" & {
|
|
17
|
+
readonly type?: "SkeletonText" | undefined;
|
|
18
|
+
readonly props?: SkeletonTextProps | undefined;
|
|
19
|
+
readonly children?: true | undefined;
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=SkeletonText.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SkeletonText.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/checkout/components/SkeletonText/SkeletonText.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,WAAW,CAAC;AACpC,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAE5C,MAAM,WAAW,iBAAkB,SAAQ,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC;IAChE;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC;CACxD;AAED;;GAEG;AACH,eAAO,MAAM,YAAY;;;;CAGR,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { TextBlockProps } from '../TextBlock/TextBlock';
|
|
2
|
+
export interface SkeletonTextBlockProps extends Pick<TextBlockProps, 'size'> {
|
|
3
|
+
/**
|
|
4
|
+
* Use to emphasize a word or a group of words.
|
|
5
|
+
*/
|
|
6
|
+
emphasis?: 'bold';
|
|
7
|
+
/**
|
|
8
|
+
* Number of lines to display when no children are passed.
|
|
9
|
+
*
|
|
10
|
+
* @defaultValue 1
|
|
11
|
+
*/
|
|
12
|
+
lines?: number;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* SkeletonTextBlock is used to provide a low fidelity representation of a block of text before it appears on the page.
|
|
16
|
+
*/
|
|
17
|
+
export declare const SkeletonTextBlock: "SkeletonTextBlock" & {
|
|
18
|
+
readonly type?: "SkeletonTextBlock" | undefined;
|
|
19
|
+
readonly props?: SkeletonTextBlockProps | undefined;
|
|
20
|
+
readonly children?: true | undefined;
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=SkeletonTextBlock.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SkeletonTextBlock.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/checkout/components/SkeletonTextBlock/SkeletonTextBlock.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,wBAAwB,CAAC;AAE3D,MAAM,WAAW,sBAAuB,SAAQ,IAAI,CAAC,cAAc,EAAE,MAAM,CAAC;IAC1E;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;CAGR,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { Size, Appearance } from '../shared';
|
|
2
|
+
export interface SpinnerProps {
|
|
3
|
+
/**
|
|
4
|
+
* Adjusts the size of the icon.
|
|
5
|
+
*
|
|
6
|
+
* @defaultValue 'base'
|
|
7
|
+
*/
|
|
8
|
+
size?: Extract<Size, 'extraSmall' | 'small' | 'base' | 'large' | 'fill'>;
|
|
9
|
+
/**
|
|
10
|
+
* Sets the appearance (color) of the icon.
|
|
11
|
+
*
|
|
12
|
+
* @defaultValue 'accent'
|
|
13
|
+
*/
|
|
14
|
+
appearance?: Extract<Appearance, 'accent' | 'monochrome'>;
|
|
15
|
+
/**
|
|
16
|
+
* A label to use for the Spinner that will be used for buyers using
|
|
17
|
+
* assistive technologies like screen readers. If will also be used to replace
|
|
18
|
+
* the animated loading indicator when buyers prefers reduced motion. If not included,
|
|
19
|
+
* it will use the loading indicator for all buyers.
|
|
20
|
+
*/
|
|
21
|
+
accessibilityLabel?: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Spinner is used to notify buyers that their action is being processed.
|
|
25
|
+
* The Spinner is usually used when sending or receiving data from a server.
|
|
26
|
+
*/
|
|
27
|
+
export declare const Spinner: "Spinner" & {
|
|
28
|
+
readonly type?: "Spinner" | undefined;
|
|
29
|
+
readonly props?: SpinnerProps | undefined;
|
|
30
|
+
readonly children?: true | undefined;
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=Spinner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Spinner.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/checkout/components/Spinner/Spinner.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,IAAI,EAAE,UAAU,EAAC,MAAM,WAAW,CAAC;AAEhD,MAAM,WAAW,YAAY;IAC3B;;;;OAIG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC,IAAI,EAAE,YAAY,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC,CAAC;IAEzE;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC,UAAU,EAAE,QAAQ,GAAG,YAAY,CAAC,CAAC;IAE1D;;;;;OAKG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED;;;GAGG;AACH,eAAO,MAAM,OAAO;;;;CAEnB,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { TextFieldProps } from '../TextField/TextField';
|
|
2
|
+
import type { IconSource } from '../Icon/Icon';
|
|
3
|
+
export interface StepperProps extends Pick<TextFieldProps<number | undefined>, 'id' | 'name' | 'label' | 'prefix' | 'accessibilityDescription' | 'required' | 'error' | 'disabled' | 'readonly' | 'value' | 'onFocus' | 'onBlur' | 'onInput' | 'onChange'> {
|
|
4
|
+
/**
|
|
5
|
+
* An icon to render at the start of the field.
|
|
6
|
+
*/
|
|
7
|
+
icon?: IconSource;
|
|
8
|
+
/**
|
|
9
|
+
* The highest decimal or integer to be accepted for the stepper field.
|
|
10
|
+
* When used with `step` the value will round down to the max number.
|
|
11
|
+
* Note: a buyer will still be able to use the keyboard to input a number higher than
|
|
12
|
+
* the max. It is up to the developer to add appropriate validation.
|
|
13
|
+
*/
|
|
14
|
+
max?: number;
|
|
15
|
+
/**
|
|
16
|
+
* The lowest decimal or integer to be accepted for the stepper field.
|
|
17
|
+
* When used with `step` the value will round up to the min number.
|
|
18
|
+
* Note: a buyer will still be able to use the keyboard to input a number lower than
|
|
19
|
+
* the min. It is up to the developer to add appropriate validation.
|
|
20
|
+
*
|
|
21
|
+
* @defaultValue 0
|
|
22
|
+
*/
|
|
23
|
+
min?: number;
|
|
24
|
+
/**
|
|
25
|
+
* The amount the value can increase or decrease by. This can be an integer or decimal.
|
|
26
|
+
* If a `max` or `min` is specified with `step` when increasing/decreasing the value
|
|
27
|
+
* via the stepper buttons the final value will always round to the `max` or `min`
|
|
28
|
+
* rather than the closest valid amount.
|
|
29
|
+
*
|
|
30
|
+
* @defaultValue 1
|
|
31
|
+
*/
|
|
32
|
+
step?: number;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Use a stepper to increase or decrease a value, like changing the quantity from 1 to 2.
|
|
36
|
+
*/
|
|
37
|
+
export declare const Stepper: "Stepper" & {
|
|
38
|
+
readonly type?: "Stepper" | undefined;
|
|
39
|
+
readonly props?: StepperProps | undefined;
|
|
40
|
+
readonly children?: true | undefined;
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=Stepper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Stepper.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/checkout/components/Stepper/Stepper.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,wBAAwB,CAAC;AAC3D,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AAE7C,MAAM,WAAW,YACf,SAAQ,IAAI,CACV,cAAc,CAAC,MAAM,GAAG,SAAS,CAAC,EAChC,IAAI,GACJ,MAAM,GACN,OAAO,GACP,QAAQ,GACR,0BAA0B,GAC1B,UAAU,GACV,OAAO,GACP,UAAU,GACV,UAAU,GACV,OAAO,GACP,SAAS,GACT,QAAQ,GACR,SAAS,GACT,UAAU,CACb;IACD;;OAEG;IACH,IAAI,CAAC,EAAE,UAAU,CAAC;IAElB;;;;;OAKG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;;;;;;OAOG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;;;;;;OAOG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,eAAO,MAAM,OAAO;;;;CAEnB,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { IconSource } from '../Icon/Icon';
|
|
2
|
+
export interface TagProps {
|
|
3
|
+
children?: string;
|
|
4
|
+
/**
|
|
5
|
+
* Icon source
|
|
6
|
+
*/
|
|
7
|
+
icon?: IconSource;
|
|
8
|
+
/**
|
|
9
|
+
* A label used for buyers using assistive technologies. When set, any
|
|
10
|
+
* `children` supplied to this component are hidden from being seen for
|
|
11
|
+
* accessibility purposes to prevent duplicate content from being read.
|
|
12
|
+
*/
|
|
13
|
+
accessibilityLabel?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Callback when tag is removed
|
|
16
|
+
*/
|
|
17
|
+
onRemove?(): void;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* A Tag is used to help label, organize or categorize objects. It is commonly used in Checkout to display the discounts applied to a cart.
|
|
21
|
+
*/
|
|
22
|
+
export declare const Tag: "Tag" & {
|
|
23
|
+
readonly type?: "Tag" | undefined; /**
|
|
24
|
+
* A label used for buyers using assistive technologies. When set, any
|
|
25
|
+
* `children` supplied to this component are hidden from being seen for
|
|
26
|
+
* accessibility purposes to prevent duplicate content from being read.
|
|
27
|
+
*/
|
|
28
|
+
readonly props?: TagProps | undefined;
|
|
29
|
+
readonly children?: true | undefined;
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=Tag.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tag.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/checkout/components/Tag/Tag.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AAE7C,MAAM,WAAW,QAAQ;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,QAAQ,CAAC,IAAI,IAAI,CAAC;CACnB;AAED;;GAEG;AACH,eAAO,MAAM,GAAG;uCAfd;;;;OAIG;;;CAW2D,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { TextAccessibilityRole, Emphasis, Size, Appearance, VisibilityProps } from '../shared';
|
|
2
|
+
export interface TextProps extends VisibilityProps {
|
|
3
|
+
/**
|
|
4
|
+
* Size of the text
|
|
5
|
+
*/
|
|
6
|
+
size?: Extract<Size, 'extraSmall' | 'small' | 'base' | 'large' | 'extraLarge'> | 'medium';
|
|
7
|
+
/**
|
|
8
|
+
* Use to emphasize a word or a group of words.
|
|
9
|
+
*/
|
|
10
|
+
emphasis?: Emphasis;
|
|
11
|
+
/**
|
|
12
|
+
* Set the semantic of the component’s content
|
|
13
|
+
*/
|
|
14
|
+
accessibilityRole?: TextAccessibilityRole;
|
|
15
|
+
/**
|
|
16
|
+
* Unique identifier. Typically used as a target for another component’s controls
|
|
17
|
+
* to associate an accessible label with an action.
|
|
18
|
+
*/
|
|
19
|
+
id?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Changes the visual appearance
|
|
22
|
+
*/
|
|
23
|
+
appearance?: Extract<Appearance, 'accent' | 'subdued' | 'info' | 'success' | 'warning' | 'critical'>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Text is used to visually style and provide semantic value for a small piece of text
|
|
27
|
+
* content.
|
|
28
|
+
*/
|
|
29
|
+
export declare const Text: "Text" & {
|
|
30
|
+
readonly type?: "Text" | undefined;
|
|
31
|
+
readonly props?: TextProps | undefined;
|
|
32
|
+
readonly children?: true | undefined;
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=Text.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/checkout/components/Text/Text.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,qBAAqB,EACrB,QAAQ,EACR,IAAI,EACJ,UAAU,EACV,eAAe,EAChB,MAAM,WAAW,CAAC;AAEnB,MAAM,WAAW,SAAU,SAAQ,eAAe;IAChD;;OAEG;IACH,IAAI,CAAC,EACD,OAAO,CAAC,IAAI,EAAE,YAAY,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,YAAY,CAAC,GACvE,QAAQ,CAAC;IACb;;OAEG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB;;OAEG;IACH,iBAAiB,CAAC,EAAE,qBAAqB,CAAC;IAC1C;;;OAGG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAClB,UAAU,EACV,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,CACnE,CAAC;CACH;AAED;;;GAGG;AACH,eAAO,MAAM,IAAI;;;;CAAmD,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { InlineAlignment, Emphasis, Size, Appearance } from '../shared';
|
|
2
|
+
export interface TextBlockProps {
|
|
3
|
+
/**
|
|
4
|
+
* Size of the text
|
|
5
|
+
*/
|
|
6
|
+
size?: Extract<Size, 'extraSmall' | 'small' | 'base' | 'large' | 'extraLarge'> | 'medium';
|
|
7
|
+
/**
|
|
8
|
+
* Use to emphasize a word or a group of words.
|
|
9
|
+
*/
|
|
10
|
+
emphasis?: Emphasis;
|
|
11
|
+
/**
|
|
12
|
+
* Unique identifier
|
|
13
|
+
*/
|
|
14
|
+
id?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Changes the visual appearance
|
|
17
|
+
*/
|
|
18
|
+
appearance?: Extract<Appearance, 'accent' | 'subdued' | 'info' | 'success' | 'warning' | 'critical'>;
|
|
19
|
+
/**
|
|
20
|
+
* Align text along the main axis.
|
|
21
|
+
*/
|
|
22
|
+
inlineAlignment?: InlineAlignment;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Text block is used to render a block of text that occupies the full width available, like a paragraph.
|
|
26
|
+
*/
|
|
27
|
+
export declare const TextBlock: "TextBlock" & {
|
|
28
|
+
readonly type?: "TextBlock" | undefined;
|
|
29
|
+
readonly props?: TextBlockProps | undefined;
|
|
30
|
+
readonly children?: true | undefined;
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=TextBlock.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextBlock.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/checkout/components/TextBlock/TextBlock.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,UAAU,EAAC,MAAM,WAAW,CAAC;AAE3E,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,IAAI,CAAC,EACD,OAAO,CAAC,IAAI,EAAE,YAAY,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,YAAY,CAAC,GACvE,QAAQ,CAAC;IACb;;OAEG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAClB,UAAU,EACV,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,CACnE,CAAC;IACF;;OAEG;IACH,eAAe,CAAC,EAAE,eAAe,CAAC;CACnC;AAED;;GAEG;AACH,eAAO,MAAM,SAAS;;;;CAErB,CAAC"}
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import { RemoteFragment } from '@remote-ui/core';
|
|
2
|
+
import type { Autocomplete } from '../shared';
|
|
3
|
+
import type { IconSource } from '../Icon/Icon';
|
|
4
|
+
type Type = 'text' | 'email' | 'number' | 'telephone';
|
|
5
|
+
export interface TextFieldProps<T extends string | number | undefined> {
|
|
6
|
+
/**
|
|
7
|
+
* A unique identifier for the field. When no `id` is set,
|
|
8
|
+
* a globally unique value will be used instead.
|
|
9
|
+
*/
|
|
10
|
+
id?: string;
|
|
11
|
+
/**
|
|
12
|
+
* An icon to render at the start or end of the field.
|
|
13
|
+
* It will render at the start by default.
|
|
14
|
+
*/
|
|
15
|
+
icon?: IconSource | {
|
|
16
|
+
source: IconSource;
|
|
17
|
+
position?: 'start' | 'end';
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* An identifier for the field that is unique within the nearest
|
|
21
|
+
* containing `Form` component.
|
|
22
|
+
*/
|
|
23
|
+
name?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Content to use as the field label. This value is also used as the placeholder
|
|
26
|
+
* when the field is empty.
|
|
27
|
+
*/
|
|
28
|
+
label: string;
|
|
29
|
+
/**
|
|
30
|
+
* Text content to render before the value.
|
|
31
|
+
*/
|
|
32
|
+
prefix?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Text content to render at the end of the text field.
|
|
35
|
+
*/
|
|
36
|
+
suffix?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Any content to render at the end of the text field. Commonly used
|
|
39
|
+
* to display an icon that opens a tooltip providing more information about the field.
|
|
40
|
+
*/
|
|
41
|
+
accessory?: string | RemoteFragment;
|
|
42
|
+
/**
|
|
43
|
+
* A detailed description for screen readers.
|
|
44
|
+
*/
|
|
45
|
+
accessibilityDescription?: string;
|
|
46
|
+
/**
|
|
47
|
+
* The current value for the field. If omitted, the field will be empty. You should
|
|
48
|
+
* update this value in response to the `onChange` callback.
|
|
49
|
+
*/
|
|
50
|
+
value?: T;
|
|
51
|
+
/**
|
|
52
|
+
* In rare cases, like the PhoneField component, we completely control state.
|
|
53
|
+
* In those cases, there is never a difference between the `value` prop of the field
|
|
54
|
+
* and the current value in the field, and so this component never considers the
|
|
55
|
+
* field to have changed. Use the `controlledValue` prop to provide the value that
|
|
56
|
+
* should be shown to the buyer in those circumstances, but where the `value` prop
|
|
57
|
+
* will continue to be used as the comparison value to determine whether the field
|
|
58
|
+
* has changed. This value will usually be set to the last committed, unformatted value
|
|
59
|
+
* for the controlled input.
|
|
60
|
+
*/
|
|
61
|
+
controlledValue?: T;
|
|
62
|
+
/**
|
|
63
|
+
* The content type a buyer will enter into the field. This type is used to provide
|
|
64
|
+
* semantic value to the field and, where possible, will provide the buyer with
|
|
65
|
+
* a better editing experience for the content type.
|
|
66
|
+
*
|
|
67
|
+
* Note that the type property does not change the way the text field’s value will
|
|
68
|
+
* be provided in `onChange` or `onInput`; a text field with a type of `'number'`
|
|
69
|
+
* will still provide the exact user entry, as a string, to those callbacks. The
|
|
70
|
+
* type also does not perform any form of automatic validation. If you want to
|
|
71
|
+
* perform validation, use the `error` property.
|
|
72
|
+
*/
|
|
73
|
+
type?: Type;
|
|
74
|
+
/**
|
|
75
|
+
* Whether the field needs a value. This requirement adds semantic value
|
|
76
|
+
* to the field, but it will not cause an error to appear automatically.
|
|
77
|
+
* If you want to present an error when this field is empty, you can do
|
|
78
|
+
* so with the `error` prop.
|
|
79
|
+
*/
|
|
80
|
+
required?: boolean;
|
|
81
|
+
/**
|
|
82
|
+
* Indicate an error to the user. The field will be given a specific stylistic treatment
|
|
83
|
+
* to communicate problems that have to be resolved immediately.
|
|
84
|
+
*/
|
|
85
|
+
error?: string;
|
|
86
|
+
/**
|
|
87
|
+
* Whether the field supports multiple lines of input.
|
|
88
|
+
* Set a `number` to define the default lines of the input.
|
|
89
|
+
*/
|
|
90
|
+
multiline?: boolean | number;
|
|
91
|
+
/**
|
|
92
|
+
* A hint as to the intended content of the field.
|
|
93
|
+
*
|
|
94
|
+
* When set to `true`, this property indicates that the field should support
|
|
95
|
+
* autofill, but you do not have any more semantic information on the intended
|
|
96
|
+
* contents.
|
|
97
|
+
*
|
|
98
|
+
* When set to `false`, you are indicating that this field contains sensitive
|
|
99
|
+
* information, or contents that are never saved, like one-time codes.
|
|
100
|
+
*
|
|
101
|
+
* Alternatively, you can provide an `Autocomplete` object, which describes the
|
|
102
|
+
* specific data you would like to be entered into this field during autofill.
|
|
103
|
+
*/
|
|
104
|
+
autocomplete?: Autocomplete | boolean;
|
|
105
|
+
/**
|
|
106
|
+
* Whether the field can be modified.
|
|
107
|
+
*/
|
|
108
|
+
disabled?: boolean;
|
|
109
|
+
/**
|
|
110
|
+
* Whether the field is read-only.
|
|
111
|
+
*/
|
|
112
|
+
readonly?: boolean;
|
|
113
|
+
/**
|
|
114
|
+
* Specifies the maximum number of characters allowed.
|
|
115
|
+
*/
|
|
116
|
+
maxLength?: number;
|
|
117
|
+
/**
|
|
118
|
+
* Callback when input is focused.
|
|
119
|
+
*/
|
|
120
|
+
onFocus?(): void;
|
|
121
|
+
/**
|
|
122
|
+
* Callback when focus is removed.
|
|
123
|
+
*/
|
|
124
|
+
onBlur?(): void;
|
|
125
|
+
/**
|
|
126
|
+
* Callback when the buyer has **finished editing** a field. Unlike `onChange`
|
|
127
|
+
* callbacks you may be familiar with from Polaris or other React component libraries,
|
|
128
|
+
* this callback is **not** run on every change to the input. Text fields are
|
|
129
|
+
* “partially controlled” components, which means that while the buyer edits the
|
|
130
|
+
* field, its state is controlled by the component. Once the buyer has signalled that
|
|
131
|
+
* they have finished editing the field (typically, by blurring the field), `onChange`
|
|
132
|
+
* is called if the input actually changed from the most recent `value` property. At
|
|
133
|
+
* that point, you are expected to store this “committed value” in state, and reflect
|
|
134
|
+
* it in the text field’s `value` property.
|
|
135
|
+
*
|
|
136
|
+
* This state management model is important given how UI Extensions are rendered. UI Extension components
|
|
137
|
+
* run on a separate thread from the UI, so they can’t respond to input synchronously.
|
|
138
|
+
* A pattern popularized by [controlled React components](https://reactjs.org/docs/forms.html#controlled-components)
|
|
139
|
+
* is to have the component be the source of truth for the input `value`, and update
|
|
140
|
+
* the `value` on every user input. The delay in responding to events from a UI
|
|
141
|
+
* extension is only a few milliseconds, but attempting to strictly store state with
|
|
142
|
+
* this delay can cause issues if a user types quickly, or if the buyer is using a
|
|
143
|
+
* lower-powered device. Having the UI thread take ownership for “in progress” input,
|
|
144
|
+
* and only synchronizing when the user is finished with a field, avoids this risk.
|
|
145
|
+
*
|
|
146
|
+
* It can still sometimes be useful to be notified when the user makes any input in
|
|
147
|
+
* the field. If you need this capability, you can use the `onInput` prop. However,
|
|
148
|
+
* never use that property to create tightly controlled state for the `value`.
|
|
149
|
+
*
|
|
150
|
+
* This callback is called with the current value of the field. If the value of a field
|
|
151
|
+
* is the same as the current `value` prop provided to the field, the `onChange` callback
|
|
152
|
+
* will not be run.
|
|
153
|
+
*/
|
|
154
|
+
onChange?(value: T): void;
|
|
155
|
+
/**
|
|
156
|
+
* Callback when the user makes any changes in the field. As noted in the documentation
|
|
157
|
+
* for `onChange`, you **must not** use this to update `state` — use the `onChange`
|
|
158
|
+
* callback for that purpose. Use the `onInput` prop when you need to do something
|
|
159
|
+
* as soon as the buyer makes a change, like clearing validation errors that apply to
|
|
160
|
+
* the field as soon as the user begins making the necessary adjustments.
|
|
161
|
+
*
|
|
162
|
+
* This callback is called with the current value of the field.
|
|
163
|
+
*/
|
|
164
|
+
onInput?(value: T): void;
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* Use a text field to get text input from a customer.
|
|
168
|
+
*/
|
|
169
|
+
export declare const TextField: "TextField" & {
|
|
170
|
+
readonly type?: "TextField" | undefined;
|
|
171
|
+
readonly props?: TextFieldProps<string> | undefined;
|
|
172
|
+
readonly children?: true | undefined;
|
|
173
|
+
};
|
|
174
|
+
export {};
|
|
175
|
+
//# sourceMappingURL=TextField.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextField.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/checkout/components/TextField/TextField.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,cAAc,EAAC,MAAM,iBAAiB,CAAC;AAEtE,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,WAAW,CAAC;AAC5C,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AAE7C,KAAK,IAAI,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,WAAW,CAAC;AAEtD,MAAM,WAAW,cAAc,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,SAAS;IACnE;;;OAGG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;;OAGG;IACH,IAAI,CAAC,EAAE,UAAU,GAAG;QAAC,MAAM,EAAE,UAAU,CAAC;QAAC,QAAQ,CAAC,EAAE,OAAO,GAAG,KAAK,CAAA;KAAC,CAAC;IACrE;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,cAAc,CAAC;IACpC;;OAEG;IACH,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC;;;OAGG;IACH,KAAK,CAAC,EAAE,CAAC,CAAC;IACV;;;;;;;;;OASG;IACH,eAAe,CAAC,EAAE,CAAC,CAAC;IACpB;;;;;;;;;;OAUG;IACH,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC7B;;;;;;;;;;;;OAYG;IACH,YAAY,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC;IACtC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,OAAO,CAAC,IAAI,IAAI,CAAC;IACjB;;OAEG;IACH,MAAM,CAAC,IAAI,IAAI,CAAC;IAChB;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACH,QAAQ,CAAC,CAAC,KAAK,EAAE,CAAC,GAAG,IAAI,CAAC;IAC1B;;;;;;;;OAQG;IACH,OAAO,CAAC,CAAC,KAAK,EAAE,CAAC,GAAG,IAAI,CAAC;CAC1B;AAED;;GAEG;AACH,eAAO,MAAM,SAAS;;;;CAGR,CAAC"}
|