@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,43 @@
|
|
|
1
|
+
import type { InlineAlignment, AccessibilityRole } from '../shared';
|
|
2
|
+
type Level = 1 | 2 | 3;
|
|
3
|
+
export interface HeadingProps {
|
|
4
|
+
/**
|
|
5
|
+
* Unique identifier.
|
|
6
|
+
* Typically used to make the heading a target that another component
|
|
7
|
+
* can refer to in order to provide an alternative accessibility label.
|
|
8
|
+
*/
|
|
9
|
+
id?: string;
|
|
10
|
+
/**
|
|
11
|
+
* The visual level of the heading. When not set, the heading will use
|
|
12
|
+
* its “automatic” heading level, which is determined by the level of nesting
|
|
13
|
+
* within ancestor `HeadingGroup`s. No matter what value you provide here,
|
|
14
|
+
* the semantic level (e.g., how the heading contributes to the document outline)
|
|
15
|
+
* is determined exclusively by the “automatic” heading level.
|
|
16
|
+
*/
|
|
17
|
+
level?: Level;
|
|
18
|
+
/**
|
|
19
|
+
* Sets the semantic meaning of the component’s content. When set,
|
|
20
|
+
* the role will be used by assistive technologies to help buyers
|
|
21
|
+
* navigate the page.
|
|
22
|
+
*/
|
|
23
|
+
accessibilityRole?: Extract<AccessibilityRole, 'presentation'>;
|
|
24
|
+
/**
|
|
25
|
+
* Align text along the main axis.
|
|
26
|
+
*/
|
|
27
|
+
inlineAlignment?: InlineAlignment;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Headings control the visual style of headings. Use headings to introduce major
|
|
31
|
+
* sections, like Contact information, Shipping address, or Shipping method.
|
|
32
|
+
*
|
|
33
|
+
* Unlike HTML headings, you don’t explicitly specify the position of the heading in the
|
|
34
|
+
* document outline. Nest headings within the heading group component to control
|
|
35
|
+
* the document outline structure used by assistive technologies.
|
|
36
|
+
*/
|
|
37
|
+
export declare const Heading: "Heading" & {
|
|
38
|
+
readonly type?: "Heading" | undefined;
|
|
39
|
+
readonly props?: HeadingProps | undefined;
|
|
40
|
+
readonly children?: true | undefined;
|
|
41
|
+
};
|
|
42
|
+
export {};
|
|
43
|
+
//# sourceMappingURL=Heading.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Heading.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/checkout/components/Heading/Heading.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,eAAe,EAAE,iBAAiB,EAAC,MAAM,WAAW,CAAC;AAElE,KAAK,KAAK,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAEvB,MAAM,WAAW,YAAY;IAC3B;;;;OAIG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC;IACd;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC,iBAAiB,EAAE,cAAc,CAAC,CAAC;IAC/D;;OAEG;IACH,eAAe,CAAC,EAAE,eAAe,CAAC;CACnC;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,OAAO;;;;CAEnB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface HeadingGroupProps {
|
|
2
|
+
}
|
|
3
|
+
/**
|
|
4
|
+
* Heading group controls the heading level of headings nested within it, like H1, H2, H3.
|
|
5
|
+
*
|
|
6
|
+
* Use a heading group whenever you use a heading to ensure the experience is the same
|
|
7
|
+
* for screen reader users. When using a heading, any children related to that
|
|
8
|
+
* heading should be nested within the same heading group.
|
|
9
|
+
*/
|
|
10
|
+
export declare const HeadingGroup: "HeadingGroup" & {
|
|
11
|
+
readonly type?: "HeadingGroup" | undefined;
|
|
12
|
+
readonly props?: HeadingGroupProps | undefined;
|
|
13
|
+
readonly children?: true | undefined;
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=HeadingGroup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HeadingGroup.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/checkout/components/HeadingGroup/HeadingGroup.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,iBAAiB;CAAG;AAErC;;;;;;GAMG;AACH,eAAO,MAAM,YAAY;;;;CAGR,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { Appearance, Size } from '../shared';
|
|
2
|
+
export type IconSource = 'arrowLeft' | 'arrowRight' | 'arrowUp' | 'arrowUpRight' | 'arrowDown' | 'bag' | 'calendar' | 'camera' | 'caretDown' | 'cart' | 'checkmark' | 'chevronDown' | 'chevronUp' | 'chevronRight' | 'chevronLeft' | 'close' | 'critical' | 'discount' | 'delivered' | 'delivery' | 'disabled' | 'email' | 'errorFill' | 'geolocation' | 'grid' | 'hamburger' | 'horizontalDots' | 'info' | 'infoFill' | 'list' | 'lock' | 'magnify' | 'map' | 'marker' | 'minus' | 'mobile' | 'note' | 'pen' | 'verticalDots' | 'plus' | 'questionFill' | 'reorder' | 'store' | 'success' | 'truck' | 'warning' | 'warningFill' | 'giftFill' | 'external' | 'profile';
|
|
3
|
+
export interface IconProps {
|
|
4
|
+
/**
|
|
5
|
+
* A label that describes the purpose or contents of the icon. When set,
|
|
6
|
+
* it will be announced to buyers using assistive technologies and will
|
|
7
|
+
* provide them with more context.
|
|
8
|
+
*/
|
|
9
|
+
accessibilityLabel?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Sets the appearance (color) of the icon.
|
|
12
|
+
*
|
|
13
|
+
* By default the icon will inherit the color of its parent.
|
|
14
|
+
*
|
|
15
|
+
* @defaultValue 'monochrome'
|
|
16
|
+
*/
|
|
17
|
+
appearance?: Appearance;
|
|
18
|
+
/**
|
|
19
|
+
* Adjusts the size of the icon.
|
|
20
|
+
*
|
|
21
|
+
* @defaultValue 'base'
|
|
22
|
+
*/
|
|
23
|
+
size?: Extract<Size, 'extraSmall' | 'small' | 'base' | 'large' | 'fill'>;
|
|
24
|
+
/**
|
|
25
|
+
* Specifies which icon to display
|
|
26
|
+
*/
|
|
27
|
+
source: IconSource;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Icons are pictograms or graphic symbols.
|
|
31
|
+
* They can act as wayfinding tools or as a means of communicating functionality.
|
|
32
|
+
*/
|
|
33
|
+
export declare const Icon: "Icon" & {
|
|
34
|
+
readonly type?: "Icon" | undefined;
|
|
35
|
+
readonly props?: IconProps | undefined;
|
|
36
|
+
readonly children?: true | undefined;
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=Icon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/checkout/components/Icon/Icon.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,UAAU,EAAE,IAAI,EAAC,MAAM,WAAW,CAAC;AAEhD,MAAM,MAAM,UAAU,GAClB,WAAW,GACX,YAAY,GACZ,SAAS,GACT,cAAc,GACd,WAAW,GACX,KAAK,GACL,UAAU,GACV,QAAQ,GACR,WAAW,GACX,MAAM,GACN,WAAW,GACX,aAAa,GACb,WAAW,GACX,cAAc,GACd,aAAa,GACb,OAAO,GACP,UAAU,GACV,UAAU,GACV,WAAW,GACX,UAAU,GACV,UAAU,GACV,OAAO,GACP,WAAW,GACX,aAAa,GACb,MAAM,GACN,WAAW,GACX,gBAAgB,GAChB,MAAM,GACN,UAAU,GACV,MAAM,GACN,MAAM,GACN,SAAS,GACT,KAAK,GACL,QAAQ,GACR,OAAO,GACP,QAAQ,GACR,MAAM,GACN,KAAK,GACL,cAAc,GACd,MAAM,GACN,cAAc,GACd,SAAS,GACT,OAAO,GACP,SAAS,GACT,OAAO,GACP,SAAS,GACT,aAAa,GACb,UAAU,GACV,UAAU,GACV,SAAS,CAAC;AAEd,MAAM,WAAW,SAAS;IACxB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IAExB;;;;OAIG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC,IAAI,EAAE,YAAY,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC,CAAC;IAEzE;;OAEG;IACH,MAAM,EAAE,UAAU,CAAC;CACpB;AAED;;;GAGG;AACH,eAAO,MAAM,IAAI;;;;CAAmD,CAAC"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import type { MaybeConditionalStyle, MaybeResponsiveConditionalStyle, ResolutionCondition, ViewportSizeCondition, AtLeastOne } from '../../style';
|
|
2
|
+
import { BorderProps } from '../shared';
|
|
3
|
+
import type { Fit, AccessibilityRole } from '../shared';
|
|
4
|
+
export interface ImageProps extends BorderProps {
|
|
5
|
+
/**
|
|
6
|
+
* The URL or path to the image. Supports the `resolution` and `viewportInlineSize` conditional styles only.
|
|
7
|
+
*/
|
|
8
|
+
source: Required<MaybeConditionalStyle<string, AtLeastOne<ViewportSizeCondition & ResolutionCondition>>>;
|
|
9
|
+
/**
|
|
10
|
+
* An alternative text description that describe the image for the reader to
|
|
11
|
+
* understand what it is about. It is extremely useful for both buyers using
|
|
12
|
+
* assistive technology and sighted buyers. A well written `description`
|
|
13
|
+
* provides people with visual impairments the ability to participate in
|
|
14
|
+
* consuming non-text content. When a screen readers encounters an `Image`,
|
|
15
|
+
* the description is read and announced aloud. If an image fails to load,
|
|
16
|
+
* potentially due to a poor connection, the `description` is displayed on
|
|
17
|
+
* screen instead. This has the benefit of letting a sighted buyer know an
|
|
18
|
+
* image was meant to load here, but as an alternative, they’re still able to
|
|
19
|
+
* consume the text content. Read
|
|
20
|
+
* [considerations when writing alternative text](https://ux.shopify.com/considerations-when-writing-alt-text-a9c1985a8204)
|
|
21
|
+
* to learn more.
|
|
22
|
+
*
|
|
23
|
+
* @defaultValue ''
|
|
24
|
+
*/
|
|
25
|
+
accessibilityDescription?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Indicates how the browser should load the image, either eager or lazy.
|
|
28
|
+
*
|
|
29
|
+
* Uses native browser behavior and is not supported by all browsers.
|
|
30
|
+
* If no value is provided then the image is loaded immediately, regardless of
|
|
31
|
+
* whether or not the image is currently within the visible viewport.
|
|
32
|
+
*/
|
|
33
|
+
loading?: Loading;
|
|
34
|
+
/**
|
|
35
|
+
* Displays the image at the specified aspect ratio (fills the width of the
|
|
36
|
+
* parent container and sets the height accordingly) and creates an invisible
|
|
37
|
+
* placeholder to prevent content jumping when the image loads. Use along
|
|
38
|
+
* with `fit` if the specified aspect ratio does not match the intrinsic
|
|
39
|
+
* aspect ratio to prevent the image from stretching.
|
|
40
|
+
*/
|
|
41
|
+
aspectRatio?: number;
|
|
42
|
+
/**
|
|
43
|
+
* Indicates how the image fits in its frame.
|
|
44
|
+
* Use if the image is not displayed at its intrinsic size to maintain
|
|
45
|
+
* the aspect ratio.
|
|
46
|
+
*/
|
|
47
|
+
fit?: MaybeResponsiveConditionalStyle<Fit>;
|
|
48
|
+
/**
|
|
49
|
+
* Sets the semantic meaning of the component’s content. When set,
|
|
50
|
+
* the role will be used by assistive technologies to help buyers
|
|
51
|
+
* navigate the page.
|
|
52
|
+
*/
|
|
53
|
+
accessibilityRole?: Extract<AccessibilityRole, 'decorative'>;
|
|
54
|
+
}
|
|
55
|
+
type Loading =
|
|
56
|
+
/**
|
|
57
|
+
* Image is loaded immediately, regardless of whether or not the image is currently within the visible viewport.
|
|
58
|
+
*/
|
|
59
|
+
'eager'
|
|
60
|
+
/**
|
|
61
|
+
* Image is loaded when it’s within the visible viewport.
|
|
62
|
+
*/
|
|
63
|
+
| 'lazy';
|
|
64
|
+
/**
|
|
65
|
+
* Image is used for large format, responsive images.
|
|
66
|
+
*/
|
|
67
|
+
export declare const Image: "Image" & {
|
|
68
|
+
readonly type?: "Image" | undefined;
|
|
69
|
+
readonly props?: ImageProps | undefined;
|
|
70
|
+
readonly children?: true | undefined;
|
|
71
|
+
};
|
|
72
|
+
export {};
|
|
73
|
+
//# sourceMappingURL=Image.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Image.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/checkout/components/Image/Image.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,qBAAqB,EACrB,+BAA+B,EAC/B,mBAAmB,EACnB,qBAAqB,EACrB,UAAU,EACX,MAAM,aAAa,CAAC;AACrB,OAAO,EAAC,WAAW,EAAC,MAAM,WAAW,CAAC;AACtC,OAAO,KAAK,EAAC,GAAG,EAAE,iBAAiB,EAAC,MAAM,WAAW,CAAC;AAEtD,MAAM,WAAW,UAAW,SAAQ,WAAW;IAC7C;;OAEG;IACH,MAAM,EAAE,QAAQ,CACd,qBAAqB,CACnB,MAAM,EACN,UAAU,CAAC,qBAAqB,GAAG,mBAAmB,CAAC,CACxD,CACF,CAAC;IACF;;;;;;;;;;;;;;;OAeG;IACH,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,GAAG,CAAC,EAAE,+BAA+B,CAAC,GAAG,CAAC,CAAC;IAC3C;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC,iBAAiB,EAAE,YAAY,CAAC,CAAC;CAC9D;AAED,KAAK,OAAO;AACV;;GAEG;AACD,OAAO;AACT;;GAEG;GACD,MAAM,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,KAAK;;;;CAAsD,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { MaybeResponsiveConditionalStyle } from '../../style';
|
|
2
|
+
import type { BorderProps, Columns, SizingProps, SpacingProps } from '../shared';
|
|
3
|
+
import type { GridProps } from '../Grid/Grid';
|
|
4
|
+
export interface InlineLayoutProps extends Omit<GridProps, 'columns' | 'rows'>, BorderProps, SizingProps, SpacingProps {
|
|
5
|
+
/**
|
|
6
|
+
* Sizes for each column of the layout.
|
|
7
|
+
*
|
|
8
|
+
*
|
|
9
|
+
* `auto`: intrinsic size of the element.
|
|
10
|
+
*
|
|
11
|
+
* `fill`: fills the remaining available space. When multiple elements are set to `fill`, the remaining space is shared equally.
|
|
12
|
+
*
|
|
13
|
+
* `` `${number}%` ``: size in percentages.
|
|
14
|
+
*
|
|
15
|
+
* `` `${number}fr` ``: size in fractions.
|
|
16
|
+
*
|
|
17
|
+
* `number`: size in pixels.
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
* - When the sum of the defined sizes is larger than the available space, elements will shrink to avoid overflow.
|
|
21
|
+
*
|
|
22
|
+
* - When the size of an element is not explicitly set, it will fill the remaining space available.
|
|
23
|
+
*
|
|
24
|
+
* - When only one size is set and outside of an array, all elements of the layout will take that size.
|
|
25
|
+
*
|
|
26
|
+
*
|
|
27
|
+
* @defaultValue 'fill'
|
|
28
|
+
*/
|
|
29
|
+
columns?: MaybeResponsiveConditionalStyle<Columns>;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* InlineLayout is used to lay out content over multiple columns.
|
|
33
|
+
*
|
|
34
|
+
* By default, all columns are of equal size and fill the available inline space.
|
|
35
|
+
* Content does not wrap on new rows when not enough columns have been explicitly set,
|
|
36
|
+
* instead they are added as new column and fill the remaining inline space.
|
|
37
|
+
*/
|
|
38
|
+
export declare const InlineLayout: "InlineLayout" & {
|
|
39
|
+
readonly type?: "InlineLayout" | undefined;
|
|
40
|
+
readonly props?: InlineLayoutProps | undefined;
|
|
41
|
+
readonly children?: true | undefined;
|
|
42
|
+
};
|
|
43
|
+
//# sourceMappingURL=InlineLayout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InlineLayout.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/checkout/components/InlineLayout/InlineLayout.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,+BAA+B,EAAC,MAAM,aAAa,CAAC;AACjE,OAAO,KAAK,EAAC,WAAW,EAAE,OAAO,EAAE,WAAW,EAAE,YAAY,EAAC,MAAM,WAAW,CAAC;AAC/E,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAE5C,MAAM,WAAW,iBACf,SAAQ,IAAI,CAAC,SAAS,EAAE,SAAS,GAAG,MAAM,CAAC,EACzC,WAAW,EACX,WAAW,EACX,YAAY;IACd;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,OAAO,CAAC,EAAE,+BAA+B,CAAC,OAAO,CAAC,CAAC;CACpD;AAED;;;;;;GAMG;AACH,eAAO,MAAM,YAAY;;;;CAGR,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { MaybeResponsiveConditionalStyle } from '../../style';
|
|
2
|
+
import type { Spacing } from '../shared';
|
|
3
|
+
export interface InlineSpacerProps {
|
|
4
|
+
/**
|
|
5
|
+
* Adjust size of the spacer
|
|
6
|
+
*
|
|
7
|
+
* @defaultValue 'base'
|
|
8
|
+
**/
|
|
9
|
+
spacing?: MaybeResponsiveConditionalStyle<Exclude<Spacing, 'none'>>;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* InlineSpacer is used to create empty inline space, typically when variable spacing
|
|
13
|
+
* is needed between multiple elements.
|
|
14
|
+
*
|
|
15
|
+
* Note that you should favor InlineStack when spacing between all elements is the same.
|
|
16
|
+
*/
|
|
17
|
+
export declare const InlineSpacer: "InlineSpacer" & {
|
|
18
|
+
readonly type?: "InlineSpacer" | undefined;
|
|
19
|
+
readonly props?: InlineSpacerProps | undefined;
|
|
20
|
+
readonly children?: true | undefined;
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=InlineSpacer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InlineSpacer.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/checkout/components/InlineSpacer/InlineSpacer.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,+BAA+B,EAAC,MAAM,aAAa,CAAC;AACjE,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAEvC,MAAM,WAAW,iBAAiB;IAChC;;;;QAII;IACJ,OAAO,CAAC,EAAE,+BAA+B,CAAC,OAAO,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC;CACrE;AAED;;;;;GAKG;AACH,eAAO,MAAM,YAAY;;;;CAGR,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { MaybeResponsiveConditionalStyle } from '../../style';
|
|
2
|
+
import type { BlockAlignment, BorderProps, InlineAlignment, SizingProps, Spacing, SpacingProps, ViewLikeAccessibilityRole } from '../shared';
|
|
3
|
+
export interface InlineStackProps extends BorderProps, SizingProps, SpacingProps {
|
|
4
|
+
/**
|
|
5
|
+
* Sets the semantic meaning of the component’s content. When set,
|
|
6
|
+
* the role will be used by assistive technologies to help buyers
|
|
7
|
+
* navigate the page.
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* For example:
|
|
11
|
+
*
|
|
12
|
+
* - In an HTML host a `'listItem'` string will render: `<li>`
|
|
13
|
+
*
|
|
14
|
+
* - In an HTML host a `['listItem', 'separator']` tuple will render: `<li role='separator'>`
|
|
15
|
+
*/
|
|
16
|
+
accessibilityRole?: ViewLikeAccessibilityRole;
|
|
17
|
+
/**
|
|
18
|
+
* A label that describes the purpose or contents of the element. When set,
|
|
19
|
+
* it will be announced to buyers using assistive technologies and will
|
|
20
|
+
* provide them with more context.
|
|
21
|
+
*/
|
|
22
|
+
accessibilityLabel?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Position children along the cross axis
|
|
25
|
+
*
|
|
26
|
+
* @defaultValue 'start'
|
|
27
|
+
*/
|
|
28
|
+
blockAlignment?: MaybeResponsiveConditionalStyle<BlockAlignment>;
|
|
29
|
+
/**
|
|
30
|
+
* Position children along the main axis
|
|
31
|
+
*
|
|
32
|
+
* @defaultValue 'start'
|
|
33
|
+
*/
|
|
34
|
+
inlineAlignment?: MaybeResponsiveConditionalStyle<InlineAlignment>;
|
|
35
|
+
/**
|
|
36
|
+
* Adjust spacing between children
|
|
37
|
+
*
|
|
38
|
+
* @defaultValue 'base'
|
|
39
|
+
**/
|
|
40
|
+
spacing?: MaybeResponsiveConditionalStyle<Spacing>;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* InlineStack is used to lay out a horizontal row of elements. Elements always wrap.
|
|
44
|
+
*/
|
|
45
|
+
export declare const InlineStack: "InlineStack" & {
|
|
46
|
+
readonly type?: "InlineStack" | undefined;
|
|
47
|
+
readonly props?: InlineStackProps | undefined;
|
|
48
|
+
readonly children?: true | undefined;
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=InlineStack.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InlineStack.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/checkout/components/InlineStack/InlineStack.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,+BAA+B,EAAC,MAAM,aAAa,CAAC;AACjE,OAAO,KAAK,EACV,cAAc,EACd,WAAW,EACX,eAAe,EACf,WAAW,EACX,OAAO,EACP,YAAY,EACZ,yBAAyB,EAC1B,MAAM,WAAW,CAAC;AAEnB,MAAM,WAAW,gBACf,SAAQ,WAAW,EACjB,WAAW,EACX,YAAY;IACd;;;;;;;;;;;OAWG;IACH,iBAAiB,CAAC,EAAE,yBAAyB,CAAC;IAC9C;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;;OAIG;IACH,cAAc,CAAC,EAAE,+BAA+B,CAAC,cAAc,CAAC,CAAC;IACjE;;;;OAIG;IACH,eAAe,CAAC,EAAE,+BAA+B,CAAC,eAAe,CAAC,CAAC;IACnE;;;;QAII;IACJ,OAAO,CAAC,EAAE,+BAA+B,CAAC,OAAO,CAAC,CAAC;CACpD;AAED;;GAEG;AACH,eAAO,MAAM,WAAW;;;;CAGR,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { Appearance, OverlayActivatorProps } from '../shared';
|
|
2
|
+
export interface LinkProps extends OverlayActivatorProps {
|
|
3
|
+
/**
|
|
4
|
+
* Destination to navigate to. You must provide either this property, `onPress`,
|
|
5
|
+
* or both.
|
|
6
|
+
*/
|
|
7
|
+
to?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Open the link in a new window or tab
|
|
10
|
+
*/
|
|
11
|
+
external?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Unique identifier.
|
|
14
|
+
*
|
|
15
|
+
* Typically used as a target for another component’s controls
|
|
16
|
+
* to associate an accessible label with an action.
|
|
17
|
+
*/
|
|
18
|
+
id?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Indicate the text language. Useful when the text is in a different language than the rest of the page.
|
|
21
|
+
* It will allow assistive technologies such as screen readers to invoke the correct pronunciation.
|
|
22
|
+
* [Reference of values](https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry) ("subtag" label)
|
|
23
|
+
*/
|
|
24
|
+
language?: string;
|
|
25
|
+
/**
|
|
26
|
+
* A label used for buyers using assistive technologies. When set, any
|
|
27
|
+
* 'children' supplied to this component are hidden from being seen for
|
|
28
|
+
* accessibility purposes to prevent duplicate content from being read.
|
|
29
|
+
*/
|
|
30
|
+
accessibilityLabel?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Specify the color of the link.
|
|
33
|
+
* `monochrome` will take the color of its parent.
|
|
34
|
+
*/
|
|
35
|
+
appearance?: Extract<Appearance, 'monochrome'>;
|
|
36
|
+
/**
|
|
37
|
+
* Callback when pressed. If `to` is set, it will execute the callback and
|
|
38
|
+
* then navigate to the location specified by `to`.
|
|
39
|
+
*/
|
|
40
|
+
onPress?(): void;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Link makes text interactive so customers can perform an action, such as navigating to another location.
|
|
44
|
+
*/
|
|
45
|
+
export declare const Link: "Link" & {
|
|
46
|
+
readonly type?: "Link" | undefined;
|
|
47
|
+
readonly props?: LinkProps | undefined;
|
|
48
|
+
readonly children?: true | undefined;
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=Link.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/checkout/components/Link/Link.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,UAAU,EAAE,qBAAqB,EAAC,MAAM,WAAW,CAAC;AAEjE,MAAM,WAAW,SAAU,SAAQ,qBAAqB;IACtD;;;OAGG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;;OAKG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC;IAC/C;;;OAGG;IACH,OAAO,CAAC,IAAI,IAAI,CAAC;CAClB;AAED;;GAEG;AACH,eAAO,MAAM,IAAI;;;;CAAmD,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { Spacing } from '../shared';
|
|
2
|
+
import type { MaybeResponsiveConditionalStyle } from '../../style';
|
|
3
|
+
export type Marker = 'none' | 'bullet' | 'number';
|
|
4
|
+
export interface ListProps {
|
|
5
|
+
/**
|
|
6
|
+
* Adjust spacing between list items
|
|
7
|
+
*
|
|
8
|
+
* @defaultValue 'base'
|
|
9
|
+
*/
|
|
10
|
+
spacing?: MaybeResponsiveConditionalStyle<Spacing>;
|
|
11
|
+
/**
|
|
12
|
+
* Type of marker to display
|
|
13
|
+
*
|
|
14
|
+
* @defaultValue 'bullet'
|
|
15
|
+
*/
|
|
16
|
+
marker?: Marker;
|
|
17
|
+
/**
|
|
18
|
+
* A label that describes the purpose or contents of the list. When set,
|
|
19
|
+
* it will be announced to buyers using assistive technologies and will
|
|
20
|
+
* provide them with more context.
|
|
21
|
+
*/
|
|
22
|
+
accessibilityLabel?: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Lists display a set of related content. Each list item usually begins with a bullet or a number.
|
|
26
|
+
*/
|
|
27
|
+
export declare const List: "List" & {
|
|
28
|
+
readonly type?: "List" | undefined;
|
|
29
|
+
readonly props?: ListProps | undefined;
|
|
30
|
+
readonly children?: true | undefined;
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=List.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"List.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/checkout/components/List/List.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AACvC,OAAO,KAAK,EAAC,+BAA+B,EAAC,MAAM,aAAa,CAAC;AAEjE,MAAM,MAAM,MAAM,GAAG,MAAM,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAElD,MAAM,WAAW,SAAS;IACxB;;;;OAIG;IACH,OAAO,CAAC,EAAE,+BAA+B,CAAC,OAAO,CAAC,CAAC;IACnD;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED;;GAEG;AACH,eAAO,MAAM,IAAI;;;;CAAmD,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface ListItemProps {
|
|
2
|
+
}
|
|
3
|
+
/**
|
|
4
|
+
* List items are used as children of the `List` component.
|
|
5
|
+
*
|
|
6
|
+
* They usually begins with a bullet or a number.
|
|
7
|
+
*/
|
|
8
|
+
export declare const ListItem: "ListItem" & {
|
|
9
|
+
readonly type?: "ListItem" | undefined;
|
|
10
|
+
readonly props?: ListItemProps | undefined;
|
|
11
|
+
readonly children?: true | undefined;
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=ListItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListItem.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/checkout/components/ListItem/ListItem.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,aAAa;CAAG;AAEjC;;;;GAIG;AACH,eAAO,MAAM,QAAQ;;;;CAEpB,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { TextFieldProps } from '../TextField/TextField';
|
|
2
|
+
export interface PhoneFieldProps extends Pick<TextFieldProps<string>, 'autocomplete' | 'id' | 'icon' | 'accessory' | 'name' | 'label' | 'accessibilityDescription' | 'value' | 'required' | 'error' | 'disabled' | 'readonly' | 'onFocus' | 'onBlur' | 'maxLength'> {
|
|
3
|
+
/**
|
|
4
|
+
* Callback when the buyer has **finished editing** a field or pressed the country dropdown.
|
|
5
|
+
* Unlike `onChange` callbacks you may be familiar with from Polaris or other React component libraries,
|
|
6
|
+
* this callback is **not** run on every change to the input. Phone fields are
|
|
7
|
+
* “partially controlled” components, which means that while the buyer edits the
|
|
8
|
+
* field, its state is controlled by the component. Once the buyer has signalled that
|
|
9
|
+
* they have finished editing the field (typically, by blurring the field), `onChange`
|
|
10
|
+
* is called if the input actually changed from the most recent `value` property. At
|
|
11
|
+
* that point, you are expected to store this “committed value” in state, and reflect
|
|
12
|
+
* it in the phone field’s `value` property.
|
|
13
|
+
*
|
|
14
|
+
* This state management model is important given how UI Extensions are rendered. UI Extension components
|
|
15
|
+
* run on a separate thread from the UI, so they can’t respond to input synchronously.
|
|
16
|
+
* A pattern popularized by [controlled React components](https://reactjs.org/docs/forms.html#controlled-components)
|
|
17
|
+
* is to have the component be the source of truth for the input `value`, and update
|
|
18
|
+
* the `value` on every user input. The delay in responding to events from a UI
|
|
19
|
+
* extension is only a few milliseconds, but attempting to strictly store state with
|
|
20
|
+
* this delay can cause issues if a user types quickly, or if the buyer is using a
|
|
21
|
+
* lower-powered device. Having the UI thread take ownership for “in progress” input,
|
|
22
|
+
* and only synchronizing when the user is finished with a field, avoids this risk.
|
|
23
|
+
*
|
|
24
|
+
* It can still sometimes be useful to be notified when the user makes any input in
|
|
25
|
+
* the field. If you need this capability, you can use the `onInput` prop. However,
|
|
26
|
+
* never use that property to create tightly controlled state for the `value`.
|
|
27
|
+
*
|
|
28
|
+
* This callback is called with the current formatted value of the field. If the value
|
|
29
|
+
* of a field is the same as the current `value` prop provided to the field,
|
|
30
|
+
* the `onChange` callback will not be run.
|
|
31
|
+
*/
|
|
32
|
+
onChange?(value: string): void;
|
|
33
|
+
/**
|
|
34
|
+
* Callback when the user makes any changes in the field including selecting a country
|
|
35
|
+
* in the dropdown. As noted in the documentation for `onChange`, you **must not** use
|
|
36
|
+
* this to update `state` — use the `onChange` callback for that purpose.
|
|
37
|
+
* Use the `onInput` prop when you need to do something as soon as the buyer makes a change,
|
|
38
|
+
* like clearing validation errors that apply to the field as soon as the user begins
|
|
39
|
+
* making the necessary adjustments.
|
|
40
|
+
*
|
|
41
|
+
* This callback is called with the current formatted value.
|
|
42
|
+
*/
|
|
43
|
+
onInput?(value: string): void;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* A PhoneField is an input field that merchants can type into optimized
|
|
47
|
+
* for phone numbers with a country code base auto-formatting.
|
|
48
|
+
* The country code is required for the initial render of the field but
|
|
49
|
+
* it can be overriden later by the user either by selecting a country
|
|
50
|
+
* in the country selection dropdown or by manually editing the country phone code
|
|
51
|
+
* directly in the text field.
|
|
52
|
+
*/
|
|
53
|
+
export declare const PhoneField: "PhoneField" & {
|
|
54
|
+
readonly type?: "PhoneField" | undefined;
|
|
55
|
+
readonly props?: PhoneFieldProps | undefined;
|
|
56
|
+
readonly children?: true | undefined;
|
|
57
|
+
};
|
|
58
|
+
//# sourceMappingURL=PhoneField.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PhoneField.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/checkout/components/PhoneField/PhoneField.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,wBAAwB,CAAC;AAE3D,MAAM,WAAW,eACf,SAAQ,IAAI,CACV,cAAc,CAAC,MAAM,CAAC,EACpB,cAAc,GACd,IAAI,GACJ,MAAM,GACN,WAAW,GACX,MAAM,GACN,OAAO,GACP,0BAA0B,GAC1B,OAAO,GACP,UAAU,GACV,OAAO,GACP,UAAU,GACV,UAAU,GACV,SAAS,GACT,QAAQ,GACR,WAAW,CACd;IACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACH,QAAQ,CAAC,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B;;;;;;;;;OASG;IACH,OAAO,CAAC,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,UAAU;;;;CAEtB,CAAC"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { MaybeResponsiveConditionalStyle } from '../../style';
|
|
2
|
+
import type { BlockAlignment, BorderProps, InlineAlignment, SizingProps, SpacingProps, Display, ButtonAccessibilityRole, OverlayActivatorProps } from '../shared';
|
|
3
|
+
import type { ViewProps } from '../View/View';
|
|
4
|
+
export interface PressableProps extends BorderProps, SizingProps, SpacingProps, OverlayActivatorProps, Pick<ViewProps, 'opacity'> {
|
|
5
|
+
/**
|
|
6
|
+
* Changes the display of the Pressable.
|
|
7
|
+
*
|
|
8
|
+
*
|
|
9
|
+
* `inline` follows the direction of words in a sentence based on the document’s writing mode.
|
|
10
|
+
*
|
|
11
|
+
* `block` follows the direction of paragraphs based on the document’s writing mode.
|
|
12
|
+
*
|
|
13
|
+
*
|
|
14
|
+
* @defaultValue 'block'
|
|
15
|
+
*/
|
|
16
|
+
display?: Display;
|
|
17
|
+
/**
|
|
18
|
+
* A label that describes the purpose or contents of the element. When set,
|
|
19
|
+
* it will be announced to buyers using assistive technologies and will
|
|
20
|
+
* provide them with more context.
|
|
21
|
+
*/
|
|
22
|
+
accessibilityLabel?: string;
|
|
23
|
+
/**
|
|
24
|
+
* The role of the button that will be rendered.
|
|
25
|
+
*
|
|
26
|
+
* `button`: renders a regular button.
|
|
27
|
+
*
|
|
28
|
+
* `submit`: renders a button that submits a form.
|
|
29
|
+
*
|
|
30
|
+
* @defaultValue 'button'
|
|
31
|
+
*/
|
|
32
|
+
accessibilityRole?: ButtonAccessibilityRole;
|
|
33
|
+
/**
|
|
34
|
+
* Disables the button, disallowing any interaction
|
|
35
|
+
*/
|
|
36
|
+
disabled?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* A unique identifier for the Pressable.
|
|
39
|
+
*/
|
|
40
|
+
id?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Disables the button while loading. Unlike `Button`, no indicator is rendered while loading.
|
|
43
|
+
*/
|
|
44
|
+
loading?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Callback that is run when the button or link is pressed.
|
|
47
|
+
*/
|
|
48
|
+
onPress?: () => void;
|
|
49
|
+
/**
|
|
50
|
+
* Callback that is run when the button or link focus is removed.
|
|
51
|
+
*/
|
|
52
|
+
onBlur?: () => void;
|
|
53
|
+
/**
|
|
54
|
+
* Callback that is run when the button or link is focused.
|
|
55
|
+
*/
|
|
56
|
+
onFocus?: () => void;
|
|
57
|
+
/**
|
|
58
|
+
* Callback that is run when a pointing device button is pressed while the pointer is inside the button or link.
|
|
59
|
+
*/
|
|
60
|
+
onPointerDown?: () => void;
|
|
61
|
+
/**
|
|
62
|
+
* Callback that is run when the pointing device is over (enters) the button or link.
|
|
63
|
+
*/
|
|
64
|
+
onPointerEnter?: () => void;
|
|
65
|
+
/**
|
|
66
|
+
* Callback that is run when the pointing device has left the button or link.
|
|
67
|
+
*/
|
|
68
|
+
onPointerLeave?: () => void;
|
|
69
|
+
/**
|
|
70
|
+
* Callback that is run when a pointing device button is released while the pointer is inside the element button or link.
|
|
71
|
+
*/
|
|
72
|
+
onPointerUp?: () => void;
|
|
73
|
+
/**
|
|
74
|
+
* Destination URL to link to. If this value is set, If this value is set, the component will render an `<a>` tag.
|
|
75
|
+
*/
|
|
76
|
+
to?: string;
|
|
77
|
+
/**
|
|
78
|
+
* Position children along the cross axis
|
|
79
|
+
*/
|
|
80
|
+
blockAlignment?: MaybeResponsiveConditionalStyle<Extract<BlockAlignment, 'start' | 'center' | 'end'>>;
|
|
81
|
+
/**
|
|
82
|
+
* Position children along the main axis
|
|
83
|
+
*/
|
|
84
|
+
inlineAlignment?: MaybeResponsiveConditionalStyle<InlineAlignment>;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Pressable is a generic interactive component. It shares the same styling properties as View but also adds
|
|
88
|
+
* pressable behavior, meaning that you can execute some logic in response to user interaction.
|
|
89
|
+
* Use this component for creating interactive elements without the default styling that comes with `Button` and `Link`.
|
|
90
|
+
*/
|
|
91
|
+
export declare const Pressable: "Pressable" & {
|
|
92
|
+
readonly type?: "Pressable" | undefined;
|
|
93
|
+
readonly props?: PressableProps | undefined;
|
|
94
|
+
readonly children?: true | undefined;
|
|
95
|
+
};
|
|
96
|
+
//# sourceMappingURL=Pressable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Pressable.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/checkout/components/Pressable/Pressable.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,+BAA+B,EAAC,MAAM,aAAa,CAAC;AAC5D,OAAO,KAAK,EACV,cAAc,EACd,WAAW,EACX,eAAe,EACf,WAAW,EACX,YAAY,EACZ,OAAO,EACP,uBAAuB,EACvB,qBAAqB,EACtB,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAE5C,MAAM,WAAW,cACf,SAAQ,WAAW,EACjB,WAAW,EACX,YAAY,EACZ,qBAAqB,EACrB,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC;IAC5B;;;;;;;;;;OAUG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B;;;;;;;;OAQG;IACH,iBAAiB,CAAC,EAAE,uBAAuB,CAAC;IAE5C;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAErB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IAEpB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAErB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAE3B;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAE5B;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAE5B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IAEzB;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,cAAc,CAAC,EAAE,+BAA+B,CAC9C,OAAO,CAAC,cAAc,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC,CACpD,CAAC;IAEF;;OAEG;IACH,eAAe,CAAC,EAAE,+BAA+B,CAAC,eAAe,CAAC,CAAC;CACpE;AAED;;;;GAIG;AACH,eAAO,MAAM,SAAS;;;;CAErB,CAAC"}
|