@shopify/ui-extensions 2.0.0-alpha.2 → 2022.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/checkout.esnext +1 -1
- package/checkout.js +1 -1
- package/checkout.mjs +1 -1
- package/index.esnext +1 -1
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/loom.config.ts +9 -0
- package/package.json +10 -11
- package/src/api.ts +0 -5
- package/src/extension.ts +3 -29
- package/src/index.ts +1 -1
- package/src/surfaces/checkout/api/cart-line-details/render-after.ts +7 -3
- package/src/surfaces/checkout/api/shared.ts +810 -3
- package/src/surfaces/checkout/api/standard/standard.ts +1240 -2
- 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/{components → surfaces/checkout/components}/Checkbox/Checkbox.ts +32 -1
- 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 +16 -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 +27 -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 +560 -0
- package/src/surfaces/checkout/components.ts +155 -1
- package/src/surfaces/checkout/extension-points.ts +83 -3
- package/src/surfaces/checkout/globals.ts +15 -0
- package/src/surfaces/checkout/index.ts +2 -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 +176 -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/utilities/registration.ts +9 -42
- package/LICENSE.md +0 -7
- package/admin.d.ts +0 -1
- package/admin.esnext +0 -1
- package/admin.js +0 -1
- package/admin.mjs +0 -1
- package/build/cjs/api.js +0 -1
- package/build/cjs/components/BlockStack/BlockStack.js +0 -11
- package/build/cjs/components/BlockStack/README.md +0 -1
- package/build/cjs/components/Button/Button.js +0 -11
- package/build/cjs/components/Button/README.md +0 -1
- package/build/cjs/components/Checkbox/Checkbox.js +0 -14
- package/build/cjs/components/Checkbox/README.md +0 -1
- package/build/cjs/components/Text/README.md +0 -1
- package/build/cjs/components/Text/Text.js +0 -11
- package/build/cjs/components/TextField/README.md +0 -1
- package/build/cjs/components/TextField/TextField.js +0 -11
- package/build/cjs/components/View/README.md +0 -1
- package/build/cjs/components/View/View.js +0 -11
- package/build/cjs/components.js +0 -53
- package/build/cjs/extension.js +0 -1
- package/build/cjs/index.js +0 -44
- package/build/cjs/surfaces/admin/api/checkout-editor/README.md +0 -1
- package/build/cjs/surfaces/admin/api/checkout-editor/render-settings.js +0 -1
- package/build/cjs/surfaces/admin/api/standard/README.md +0 -1
- package/build/cjs/surfaces/admin/api/standard/standard.js +0 -1
- package/build/cjs/surfaces/admin/api.js +0 -1
- package/build/cjs/surfaces/admin/components/TextField/TextField.js +0 -11
- package/build/cjs/surfaces/admin/components.js +0 -30
- package/build/cjs/surfaces/admin/extension-points.js +0 -1
- package/build/cjs/surfaces/admin/extension.js +0 -27
- package/build/cjs/surfaces/admin/index.js +0 -70
- package/build/cjs/surfaces/admin/shared.js +0 -1
- package/build/cjs/surfaces/checkout/api/cart-line-details/README.md +0 -1
- package/build/cjs/surfaces/checkout/api/cart-line-details/render-after.js +0 -1
- package/build/cjs/surfaces/checkout/api/shared.js +0 -1
- package/build/cjs/surfaces/checkout/api/standard/README.md +0 -1
- package/build/cjs/surfaces/checkout/api/standard/standard.js +0 -1
- package/build/cjs/surfaces/checkout/api.js +0 -1
- package/build/cjs/surfaces/checkout/components.js +0 -18
- package/build/cjs/surfaces/checkout/extension-points.js +0 -1
- package/build/cjs/surfaces/checkout/extension.js +0 -27
- package/build/cjs/surfaces/checkout/index.js +0 -70
- package/build/cjs/surfaces/checkout/shared.js +0 -1
- package/build/cjs/utilities/registration.js +0 -110
- package/build/esm/api.mjs +0 -0
- package/build/esm/components/BlockStack/BlockStack.mjs +0 -2
- package/build/esm/components/BlockStack/README.md +0 -1
- package/build/esm/components/Button/Button.mjs +0 -2
- package/build/esm/components/Button/README.md +0 -1
- package/build/esm/components/Checkbox/Checkbox.mjs +0 -6
- package/build/esm/components/Checkbox/README.md +0 -1
- package/build/esm/components/Text/README.md +0 -1
- package/build/esm/components/Text/Text.mjs +0 -2
- package/build/esm/components/TextField/README.md +0 -1
- package/build/esm/components/TextField/TextField.mjs +0 -2
- package/build/esm/components/View/README.md +0 -1
- package/build/esm/components/View/View.mjs +0 -2
- package/build/esm/components.mjs +0 -6
- package/build/esm/extension.mjs +0 -0
- package/build/esm/index.mjs +0 -3
- package/build/esm/surfaces/admin/api/checkout-editor/README.md +0 -1
- package/build/esm/surfaces/admin/api/checkout-editor/render-settings.mjs +0 -0
- package/build/esm/surfaces/admin/api/standard/README.md +0 -1
- package/build/esm/surfaces/admin/api/standard/standard.mjs +0 -0
- package/build/esm/surfaces/admin/api.mjs +0 -0
- package/build/esm/surfaces/admin/components/TextField/TextField.mjs +0 -2
- package/build/esm/surfaces/admin/components.mjs +0 -2
- package/build/esm/surfaces/admin/extension-points.mjs +0 -0
- package/build/esm/surfaces/admin/extension.mjs +0 -3
- package/build/esm/surfaces/admin/index.mjs +0 -5
- package/build/esm/surfaces/admin/shared.mjs +0 -0
- package/build/esm/surfaces/checkout/api/cart-line-details/README.md +0 -1
- package/build/esm/surfaces/checkout/api/cart-line-details/render-after.mjs +0 -0
- package/build/esm/surfaces/checkout/api/shared.mjs +0 -0
- package/build/esm/surfaces/checkout/api/standard/README.md +0 -1
- package/build/esm/surfaces/checkout/api/standard/standard.mjs +0 -0
- package/build/esm/surfaces/checkout/api.mjs +0 -0
- package/build/esm/surfaces/checkout/components.mjs +0 -1
- package/build/esm/surfaces/checkout/extension-points.mjs +0 -0
- package/build/esm/surfaces/checkout/extension.mjs +0 -3
- package/build/esm/surfaces/checkout/index.mjs +0 -5
- package/build/esm/surfaces/checkout/shared.mjs +0 -0
- package/build/esm/utilities/registration.mjs +0 -101
- package/build/esnext/api.esnext +0 -0
- package/build/esnext/components/BlockStack/BlockStack.esnext +0 -2
- package/build/esnext/components/BlockStack/README.md +0 -1
- package/build/esnext/components/Button/Button.esnext +0 -2
- package/build/esnext/components/Button/README.md +0 -1
- package/build/esnext/components/Checkbox/Checkbox.esnext +0 -6
- package/build/esnext/components/Checkbox/README.md +0 -1
- package/build/esnext/components/Text/README.md +0 -1
- package/build/esnext/components/Text/Text.esnext +0 -2
- package/build/esnext/components/TextField/README.md +0 -1
- package/build/esnext/components/TextField/TextField.esnext +0 -2
- package/build/esnext/components/View/README.md +0 -1
- package/build/esnext/components/View/View.esnext +0 -2
- package/build/esnext/components.esnext +0 -6
- package/build/esnext/extension.esnext +0 -0
- package/build/esnext/index.esnext +0 -3
- package/build/esnext/surfaces/admin/api/checkout-editor/README.md +0 -1
- package/build/esnext/surfaces/admin/api/checkout-editor/render-settings.esnext +0 -0
- package/build/esnext/surfaces/admin/api/standard/README.md +0 -1
- package/build/esnext/surfaces/admin/api/standard/standard.esnext +0 -0
- package/build/esnext/surfaces/admin/api.esnext +0 -0
- package/build/esnext/surfaces/admin/components/TextField/TextField.esnext +0 -2
- package/build/esnext/surfaces/admin/components.esnext +0 -2
- package/build/esnext/surfaces/admin/extension-points.esnext +0 -0
- package/build/esnext/surfaces/admin/extension.esnext +0 -3
- package/build/esnext/surfaces/admin/index.esnext +0 -5
- package/build/esnext/surfaces/admin/shared.esnext +0 -0
- package/build/esnext/surfaces/checkout/api/cart-line-details/README.md +0 -1
- package/build/esnext/surfaces/checkout/api/cart-line-details/render-after.esnext +0 -0
- package/build/esnext/surfaces/checkout/api/shared.esnext +0 -0
- package/build/esnext/surfaces/checkout/api/standard/README.md +0 -1
- package/build/esnext/surfaces/checkout/api/standard/standard.esnext +0 -0
- package/build/esnext/surfaces/checkout/api.esnext +0 -0
- package/build/esnext/surfaces/checkout/components.esnext +0 -1
- package/build/esnext/surfaces/checkout/extension-points.esnext +0 -0
- package/build/esnext/surfaces/checkout/extension.esnext +0 -3
- package/build/esnext/surfaces/checkout/index.esnext +0 -5
- package/build/esnext/surfaces/checkout/shared.esnext +0 -0
- package/build/esnext/utilities/registration.esnext +0 -37
- package/build/node/api.js +0 -1
- package/build/node/components/BlockStack/BlockStack.js +0 -11
- package/build/node/components/BlockStack/README.md +0 -1
- package/build/node/components/Button/Button.js +0 -11
- package/build/node/components/Button/README.md +0 -1
- package/build/node/components/Checkbox/Checkbox.js +0 -14
- package/build/node/components/Checkbox/README.md +0 -1
- package/build/node/components/Text/README.md +0 -1
- package/build/node/components/Text/Text.js +0 -11
- package/build/node/components/TextField/README.md +0 -1
- package/build/node/components/TextField/TextField.js +0 -11
- package/build/node/components/View/README.md +0 -1
- package/build/node/components/View/View.js +0 -11
- package/build/node/components.js +0 -53
- package/build/node/extension.js +0 -1
- package/build/node/index.js +0 -44
- package/build/node/surfaces/admin/api/checkout-editor/README.md +0 -1
- package/build/node/surfaces/admin/api/checkout-editor/render-settings.js +0 -1
- package/build/node/surfaces/admin/api/standard/README.md +0 -1
- package/build/node/surfaces/admin/api/standard/standard.js +0 -1
- package/build/node/surfaces/admin/api.js +0 -1
- package/build/node/surfaces/admin/components/TextField/TextField.js +0 -11
- package/build/node/surfaces/admin/components.js +0 -30
- package/build/node/surfaces/admin/extension-points.js +0 -1
- package/build/node/surfaces/admin/extension.js +0 -27
- package/build/node/surfaces/admin/index.js +0 -70
- package/build/node/surfaces/admin/shared.js +0 -1
- package/build/node/surfaces/checkout/api/cart-line-details/README.md +0 -1
- package/build/node/surfaces/checkout/api/cart-line-details/render-after.js +0 -1
- package/build/node/surfaces/checkout/api/shared.js +0 -1
- package/build/node/surfaces/checkout/api/standard/README.md +0 -1
- package/build/node/surfaces/checkout/api/standard/standard.js +0 -1
- package/build/node/surfaces/checkout/api.js +0 -1
- package/build/node/surfaces/checkout/components.js +0 -18
- package/build/node/surfaces/checkout/extension-points.js +0 -1
- package/build/node/surfaces/checkout/extension.js +0 -27
- package/build/node/surfaces/checkout/index.js +0 -70
- package/build/node/surfaces/checkout/shared.js +0 -1
- package/build/node/utilities/registration.js +0 -44
- package/build/ts/api.d.ts +0 -8
- package/build/ts/api.d.ts.map +0 -1
- package/build/ts/api.js +0 -2
- package/build/ts/components/BlockStack/BlockStack.d.ts +0 -8
- package/build/ts/components/BlockStack/BlockStack.d.ts.map +0 -1
- package/build/ts/components/BlockStack/BlockStack.js +0 -5
- package/build/ts/components/Button/Button.d.ts +0 -12
- package/build/ts/components/Button/Button.d.ts.map +0 -1
- package/build/ts/components/Button/Button.js +0 -5
- package/build/ts/components/Checkbox/Checkbox.d.ts +0 -30
- package/build/ts/components/Checkbox/Checkbox.d.ts.map +0 -1
- package/build/ts/components/Checkbox/Checkbox.js +0 -8
- package/build/ts/components/Text/Text.d.ts +0 -8
- package/build/ts/components/Text/Text.d.ts.map +0 -1
- package/build/ts/components/Text/Text.js +0 -5
- package/build/ts/components/TextField/TextField.d.ts +0 -53
- package/build/ts/components/TextField/TextField.d.ts.map +0 -1
- package/build/ts/components/TextField/TextField.js +0 -5
- package/build/ts/components/View/View.d.ts +0 -8
- package/build/ts/components/View/View.d.ts.map +0 -1
- package/build/ts/components/View/View.js +0 -5
- package/build/ts/components.d.ts +0 -13
- package/build/ts/components.d.ts.map +0 -1
- package/build/ts/components.js +0 -15
- package/build/ts/extension.d.ts +0 -15
- package/build/ts/extension.d.ts.map +0 -1
- package/build/ts/extension.js +0 -2
- package/build/ts/index.d.ts +0 -4
- package/build/ts/index.d.ts.map +0 -1
- package/build/ts/index.js +0 -19
- package/build/ts/surfaces/admin/api/checkout-editor/render-settings.d.ts +0 -19
- package/build/ts/surfaces/admin/api/checkout-editor/render-settings.d.ts.map +0 -1
- package/build/ts/surfaces/admin/api/checkout-editor/render-settings.js +0 -2
- package/build/ts/surfaces/admin/api/standard/standard.d.ts +0 -7
- package/build/ts/surfaces/admin/api/standard/standard.d.ts.map +0 -1
- package/build/ts/surfaces/admin/api/standard/standard.js +0 -2
- package/build/ts/surfaces/admin/api.d.ts +0 -3
- package/build/ts/surfaces/admin/api.d.ts.map +0 -1
- package/build/ts/surfaces/admin/api.js +0 -2
- package/build/ts/surfaces/admin/components/TextField/TextField.d.ts +0 -15
- package/build/ts/surfaces/admin/components/TextField/TextField.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/TextField/TextField.js +0 -5
- package/build/ts/surfaces/admin/components.d.ts +0 -4
- package/build/ts/surfaces/admin/components.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components.js +0 -20
- package/build/ts/surfaces/admin/extension-points.d.ts +0 -9
- package/build/ts/surfaces/admin/extension-points.d.ts.map +0 -1
- package/build/ts/surfaces/admin/extension-points.js +0 -2
- package/build/ts/surfaces/admin/extension.d.ts +0 -4
- package/build/ts/surfaces/admin/extension.d.ts.map +0 -1
- package/build/ts/surfaces/admin/extension.js +0 -20
- package/build/ts/surfaces/admin/index.d.ts +0 -6
- package/build/ts/surfaces/admin/index.d.ts.map +0 -1
- package/build/ts/surfaces/admin/index.js +0 -21
- package/build/ts/surfaces/admin/shared.d.ts +0 -8
- package/build/ts/surfaces/admin/shared.d.ts.map +0 -1
- package/build/ts/surfaces/admin/shared.js +0 -2
- package/build/ts/surfaces/checkout/api/cart-line-details/render-after.d.ts +0 -6
- package/build/ts/surfaces/checkout/api/cart-line-details/render-after.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/api/cart-line-details/render-after.js +0 -2
- package/build/ts/surfaces/checkout/api/shared.d.ts +0 -4
- package/build/ts/surfaces/checkout/api/shared.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/api/shared.js +0 -2
- package/build/ts/surfaces/checkout/api/standard/standard.d.ts +0 -7
- package/build/ts/surfaces/checkout/api/standard/standard.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/api/standard/standard.js +0 -2
- package/build/ts/surfaces/checkout/api.d.ts +0 -3
- package/build/ts/surfaces/checkout/api.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/api.js +0 -2
- package/build/ts/surfaces/checkout/components.d.ts +0 -2
- package/build/ts/surfaces/checkout/components.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/components.js +0 -17
- package/build/ts/surfaces/checkout/extension-points.d.ts +0 -10
- package/build/ts/surfaces/checkout/extension-points.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/extension-points.js +0 -2
- package/build/ts/surfaces/checkout/extension.d.ts +0 -4
- package/build/ts/surfaces/checkout/extension.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/extension.js +0 -20
- package/build/ts/surfaces/checkout/index.d.ts +0 -6
- package/build/ts/surfaces/checkout/index.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/index.js +0 -21
- package/build/ts/surfaces/checkout/shared.d.ts +0 -8
- package/build/ts/surfaces/checkout/shared.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/shared.js +0 -2
- package/build/ts/utilities/registration.d.ts +0 -13
- package/build/ts/utilities/registration.d.ts.map +0 -1
- package/build/ts/utilities/registration.js +0 -111
- package/build/tsconfig.tsbuildinfo +0 -1
- package/checkout.d.ts +0 -1
- package/index.d.ts +0 -1
- package/sewing-kit.config.ts +0 -9
- package/src/components/BlockStack/BlockStack.ts +0 -7
- package/src/components/BlockStack/README.md +0 -1
- package/src/components/Button/Button.ts +0 -10
- package/src/components/Button/README.md +0 -1
- package/src/components/Checkbox/README.md +0 -1
- package/src/components/Text/README.md +0 -1
- package/src/components/Text/Text.ts +0 -5
- package/src/components/TextField/README.md +0 -1
- package/src/components/TextField/TextField.ts +0 -56
- package/src/components/View/README.md +0 -1
- package/src/components/View/View.ts +0 -5
- package/src/components.ts +0 -17
- package/src/surfaces/admin/api/checkout-editor/README.md +0 -1
- package/src/surfaces/admin/api/checkout-editor/render-settings.ts +0 -26
- package/src/surfaces/admin/api/standard/README.md +0 -1
- package/src/surfaces/admin/api/standard/standard.ts +0 -8
- package/src/surfaces/admin/api.ts +0 -2
- package/src/surfaces/admin/components/TextField/TextField.ts +0 -16
- package/src/surfaces/admin/components.ts +0 -4
- package/src/surfaces/admin/extension-points.ts +0 -17
- package/src/surfaces/admin/extension.ts +0 -7
- package/src/surfaces/admin/index.ts +0 -5
- package/src/surfaces/admin/shared.ts +0 -14
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import {memoize} from './memoize';
|
|
2
|
+
import {Conditions, ConditionalStyle, BaseConditions} from './types';
|
|
3
|
+
import {isEqual} from './isEqual';
|
|
4
|
+
|
|
5
|
+
const MAX_CACHE_SIZE = 50;
|
|
6
|
+
|
|
7
|
+
const MEMOIZE_OPTIONS = {
|
|
8
|
+
equalityCheck: isEqual,
|
|
9
|
+
maxSize: MAX_CACHE_SIZE,
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
type Chainable<TConditionalStyle> = TConditionalStyle extends ConditionalStyle<
|
|
13
|
+
infer T,
|
|
14
|
+
infer TAcceptedConditions
|
|
15
|
+
>
|
|
16
|
+
? TConditionalStyle & {
|
|
17
|
+
when: <
|
|
18
|
+
U,
|
|
19
|
+
AcceptedConditions extends BaseConditions = TAcceptedConditions,
|
|
20
|
+
>(
|
|
21
|
+
this: TConditionalStyle,
|
|
22
|
+
conditions: AcceptedConditions,
|
|
23
|
+
value: U,
|
|
24
|
+
) => Chainable<
|
|
25
|
+
TConditionalStyle extends {default: T}
|
|
26
|
+
? Required<ConditionalStyle<U, AcceptedConditions>>
|
|
27
|
+
: ConditionalStyle<U, AcceptedConditions>
|
|
28
|
+
>;
|
|
29
|
+
}
|
|
30
|
+
: never;
|
|
31
|
+
|
|
32
|
+
type WhenContext<T, AcceptedConditions extends BaseConditions = Conditions> =
|
|
33
|
+
| typeof Style
|
|
34
|
+
| ConditionalStyle<T, AcceptedConditions>
|
|
35
|
+
| Required<ConditionalStyle<T, AcceptedConditions>>;
|
|
36
|
+
|
|
37
|
+
type WhenReturnType<
|
|
38
|
+
T,
|
|
39
|
+
TContext extends WhenContext<any, AcceptedConditions>,
|
|
40
|
+
AcceptedConditions extends BaseConditions = Conditions,
|
|
41
|
+
> = Chainable<
|
|
42
|
+
TContext extends typeof Style
|
|
43
|
+
? ConditionalStyle<T, AcceptedConditions>
|
|
44
|
+
: TContext extends {default: infer U}
|
|
45
|
+
? Required<ConditionalStyle<T | U, AcceptedConditions>>
|
|
46
|
+
: TContext extends {default?: infer U}
|
|
47
|
+
? ConditionalStyle<T | U, AcceptedConditions>
|
|
48
|
+
: ConditionalStyle<T, AcceptedConditions>
|
|
49
|
+
>;
|
|
50
|
+
|
|
51
|
+
interface WhenFunction {
|
|
52
|
+
<
|
|
53
|
+
T,
|
|
54
|
+
TContext extends WhenContext<any, AcceptedConditions>,
|
|
55
|
+
AcceptedConditions extends BaseConditions = Conditions,
|
|
56
|
+
>(
|
|
57
|
+
this: TContext,
|
|
58
|
+
conditions: AcceptedConditions,
|
|
59
|
+
value: T,
|
|
60
|
+
): WhenReturnType<T, TContext, AcceptedConditions>;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// eslint-disable-next-line func-style
|
|
64
|
+
const when: WhenFunction = function when<
|
|
65
|
+
T,
|
|
66
|
+
TContext extends WhenContext<any, AcceptedConditions>,
|
|
67
|
+
AcceptedConditions extends BaseConditions = Conditions,
|
|
68
|
+
>(this: TContext, conditions: AcceptedConditions, value: T) {
|
|
69
|
+
const config = isConditionalStyle<T, AcceptedConditions>(this)
|
|
70
|
+
? {
|
|
71
|
+
default: this.default,
|
|
72
|
+
conditionals: [...this.conditionals, {conditions, value}],
|
|
73
|
+
}
|
|
74
|
+
: {
|
|
75
|
+
conditionals: [{conditions, value}],
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
return createChainableConditionalStyle<T, AcceptedConditions>(
|
|
79
|
+
config,
|
|
80
|
+
) as WhenReturnType<T, TContext, AcceptedConditions>;
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Style is a helper for authoring conditional values for prop styles.
|
|
85
|
+
* Write complex conditional styles based on one or more conditions (viewport
|
|
86
|
+
* sizes and interactive states) in a concise and expressive way.
|
|
87
|
+
*/
|
|
88
|
+
export const Style = {
|
|
89
|
+
/**
|
|
90
|
+
* Sets an optional default value to use when no other condition is met.
|
|
91
|
+
*
|
|
92
|
+
* @param defaultValue The default value
|
|
93
|
+
* @returns The chainable condition style
|
|
94
|
+
*/
|
|
95
|
+
default: memoize(
|
|
96
|
+
<T, AcceptedConditions extends BaseConditions = Conditions>(
|
|
97
|
+
defaultValue: T,
|
|
98
|
+
) =>
|
|
99
|
+
createChainableConditionalStyle<
|
|
100
|
+
T,
|
|
101
|
+
AcceptedConditions,
|
|
102
|
+
Required<ConditionalStyle<T, AcceptedConditions>>
|
|
103
|
+
>({
|
|
104
|
+
default: defaultValue,
|
|
105
|
+
conditionals: [],
|
|
106
|
+
}),
|
|
107
|
+
MEMOIZE_OPTIONS,
|
|
108
|
+
),
|
|
109
|
+
/**
|
|
110
|
+
* Adjusts the style based on different conditions. All conditions, expressed
|
|
111
|
+
* as a literal object, must be met for the associated value to be applied.
|
|
112
|
+
*
|
|
113
|
+
* The `when` method can be chained together to build more complex styles.
|
|
114
|
+
*
|
|
115
|
+
* @param conditions The condition(s)
|
|
116
|
+
* @param value The conditional value that can be applied if the conditions are met
|
|
117
|
+
* @returns The chainable condition style
|
|
118
|
+
*/
|
|
119
|
+
when: memoize(when, MEMOIZE_OPTIONS),
|
|
120
|
+
} as const;
|
|
121
|
+
|
|
122
|
+
function createChainableConditionalStyle<
|
|
123
|
+
T,
|
|
124
|
+
AcceptedConditions extends BaseConditions = Conditions,
|
|
125
|
+
TConditionalStyle extends ConditionalStyle<
|
|
126
|
+
T,
|
|
127
|
+
AcceptedConditions
|
|
128
|
+
> = ConditionalStyle<T, AcceptedConditions>,
|
|
129
|
+
>(conditionalStyle: TConditionalStyle): Chainable<TConditionalStyle> {
|
|
130
|
+
const proto = {} as {
|
|
131
|
+
when: WhenFunction;
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
const returnConditionalStyle = Object.create(
|
|
135
|
+
proto,
|
|
136
|
+
) as Chainable<TConditionalStyle>;
|
|
137
|
+
|
|
138
|
+
Object.assign(returnConditionalStyle, conditionalStyle);
|
|
139
|
+
|
|
140
|
+
proto.when = memoize(when.bind(returnConditionalStyle), MEMOIZE_OPTIONS);
|
|
141
|
+
|
|
142
|
+
return returnConditionalStyle;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export function isConditionalStyle<
|
|
146
|
+
T,
|
|
147
|
+
AcceptedConditions extends BaseConditions = Conditions,
|
|
148
|
+
>(value?: any): value is ConditionalStyle<T, AcceptedConditions> {
|
|
149
|
+
return value !== null && typeof value === 'object' && 'conditionals' in value;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
export function isConditionalStyleWithDefault<
|
|
153
|
+
T,
|
|
154
|
+
AcceptedConditions extends BaseConditions = Conditions,
|
|
155
|
+
>(value?: any): value is Required<ConditionalStyle<T, AcceptedConditions>> {
|
|
156
|
+
return (
|
|
157
|
+
isConditionalStyle(value) &&
|
|
158
|
+
'default' in value &&
|
|
159
|
+
value.default !== undefined
|
|
160
|
+
);
|
|
161
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
type Resolution = 1 | 1.3 | 1.5 | 2 | 2.6 | 3 | 3.5 | 4;
|
|
2
|
+
|
|
3
|
+
export interface InteractiveConditions {
|
|
4
|
+
hover: true;
|
|
5
|
+
focus: true;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export interface ResolutionCondition {
|
|
9
|
+
resolution: Resolution;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
type ViewportInlineSize = 'small' | 'medium' | 'large';
|
|
13
|
+
|
|
14
|
+
export interface ViewportSizeCondition {
|
|
15
|
+
viewportInlineSize: {min: ViewportInlineSize};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export type AtLeastOne<T, U = {[K in keyof T]: Pick<T, K>}> = Partial<T> &
|
|
19
|
+
U[keyof U];
|
|
20
|
+
|
|
21
|
+
type DefaultConditions = InteractiveConditions & ViewportSizeCondition;
|
|
22
|
+
|
|
23
|
+
export type Conditions = AtLeastOne<DefaultConditions>;
|
|
24
|
+
|
|
25
|
+
export type BaseConditions = AtLeastOne<
|
|
26
|
+
DefaultConditions & ResolutionCondition
|
|
27
|
+
>;
|
|
28
|
+
|
|
29
|
+
export interface ConditionalValue<
|
|
30
|
+
T,
|
|
31
|
+
AcceptedConditions extends BaseConditions = Conditions,
|
|
32
|
+
> {
|
|
33
|
+
/**
|
|
34
|
+
* The conditions that must be met for the value to be applied. At least one
|
|
35
|
+
* condition must be specified.
|
|
36
|
+
*/
|
|
37
|
+
conditions: AcceptedConditions;
|
|
38
|
+
/**
|
|
39
|
+
* The value that will be applied if the conditions are met.
|
|
40
|
+
*/
|
|
41
|
+
value: T;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export interface ConditionalStyle<
|
|
45
|
+
T,
|
|
46
|
+
AcceptedConditions extends BaseConditions = Conditions,
|
|
47
|
+
> {
|
|
48
|
+
/**
|
|
49
|
+
* The default value applied when none of the conditional values
|
|
50
|
+
* specified in `conditionals` are met.
|
|
51
|
+
*/
|
|
52
|
+
default?: T;
|
|
53
|
+
/**
|
|
54
|
+
* An array of conditional values.
|
|
55
|
+
*/
|
|
56
|
+
conditionals: ConditionalValue<T, AcceptedConditions>[];
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export type MaybeConditionalStyle<
|
|
60
|
+
T,
|
|
61
|
+
AcceptedConditions extends BaseConditions = Conditions,
|
|
62
|
+
> = T | ConditionalStyle<T, AcceptedConditions>;
|
|
63
|
+
|
|
64
|
+
export type MaybeResponsiveConditionalStyle<T> = MaybeConditionalStyle<
|
|
65
|
+
T,
|
|
66
|
+
ViewportSizeCondition
|
|
67
|
+
>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export {
|
|
2
|
+
Style,
|
|
3
|
+
isConditionalStyle,
|
|
4
|
+
isConditionalStyleWithDefault,
|
|
5
|
+
} from './style/style';
|
|
6
|
+
export type {
|
|
7
|
+
AtLeastOne,
|
|
8
|
+
Conditions,
|
|
9
|
+
ConditionalStyle,
|
|
10
|
+
ConditionalValue,
|
|
11
|
+
InteractiveConditions,
|
|
12
|
+
MaybeConditionalStyle,
|
|
13
|
+
MaybeResponsiveConditionalStyle,
|
|
14
|
+
ResolutionCondition,
|
|
15
|
+
ViewportSizeCondition,
|
|
16
|
+
} from './style/types';
|
|
@@ -1,19 +1,8 @@
|
|
|
1
|
-
import {createRemoteRoot} from '@remote-ui/core';
|
|
2
|
-
import type {
|
|
3
|
-
RenderExtension,
|
|
4
|
-
RenderExtensionWithRemoteRoot,
|
|
5
|
-
} from '../extension';
|
|
6
|
-
|
|
7
1
|
export interface ExtensionRegistrationFunction<ExtensionPoints> {
|
|
8
|
-
<
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
infer AllowedComponents
|
|
13
|
-
>
|
|
14
|
-
? RenderExtensionWithRemoteRoot<Api, AllowedComponents>
|
|
15
|
-
: ExtensionPoints[Point],
|
|
16
|
-
): ExtensionPoints[Point];
|
|
2
|
+
<Target extends keyof ExtensionPoints>(
|
|
3
|
+
target: Target,
|
|
4
|
+
implementation: ExtensionPoints[Target],
|
|
5
|
+
): ExtensionPoints[Target];
|
|
17
6
|
}
|
|
18
7
|
|
|
19
8
|
/**
|
|
@@ -24,36 +13,14 @@ export interface ExtensionRegistrationFunction<ExtensionPoints> {
|
|
|
24
13
|
* provided by a version of `@remote-ui/core` that the extension controls.
|
|
25
14
|
*/
|
|
26
15
|
export function createExtensionRegistrationFunction<
|
|
27
|
-
ExtensionPoints
|
|
16
|
+
ExtensionPoints,
|
|
28
17
|
>(): ExtensionRegistrationFunction<ExtensionPoints> {
|
|
29
18
|
const extensionWrapper: ExtensionRegistrationFunction<ExtensionPoints> = (
|
|
30
|
-
|
|
31
|
-
|
|
19
|
+
target,
|
|
20
|
+
implementation,
|
|
32
21
|
) => {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
// This is true for ”non-rendering” extension points, like `Checkout::PostPurchase::ShouldRender`.
|
|
36
|
-
if (
|
|
37
|
-
args.length === 1 ||
|
|
38
|
-
typeof args[0] !== 'object' ||
|
|
39
|
-
args[0] == null ||
|
|
40
|
-
!('channel' in args[0])
|
|
41
|
-
) {
|
|
42
|
-
const result = await (extensionWithRemoteRoot as any)(...args);
|
|
43
|
-
return result;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
const [{channel, components}, ...rest] = args;
|
|
47
|
-
|
|
48
|
-
const root = createRemoteRoot(channel, {components, strict: true});
|
|
49
|
-
|
|
50
|
-
const result = await (extensionWithRemoteRoot as any)(root, ...rest);
|
|
51
|
-
await root.mount();
|
|
52
|
-
|
|
53
|
-
return result;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
return extension as any;
|
|
22
|
+
globalThis.shopify.extend(target, implementation);
|
|
23
|
+
return implementation;
|
|
57
24
|
};
|
|
58
25
|
|
|
59
26
|
return extensionWrapper;
|
package/LICENSE.md
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
Copyright 2020-present, Shopify Inc.
|
|
2
|
-
|
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
|
-
|
|
5
|
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
6
|
-
|
|
7
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/admin.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./build/ts/surfaces/admin/index";
|
package/admin.esnext
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./build/esnext/surfaces/admin/index";
|
package/admin.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./build/node/surfaces/admin/index");
|
package/admin.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./build/esm/surfaces/admin/index";
|
package/build/cjs/api.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.BlockStack = void 0;
|
|
7
|
-
|
|
8
|
-
var _core = require("@remote-ui/core");
|
|
9
|
-
|
|
10
|
-
var BlockStack = (0, _core.createRemoteComponent)('BlockStack');
|
|
11
|
-
exports.BlockStack = BlockStack;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
# BlockStack
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
# Button
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.Checkbox = void 0;
|
|
7
|
-
|
|
8
|
-
var _core = require("@remote-ui/core");
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Use checkboxes to give users a single binary option, such as signing up for marketing, or agreeing to terms and conditions.
|
|
12
|
-
*/
|
|
13
|
-
var Checkbox = (0, _core.createRemoteComponent)('Checkbox');
|
|
14
|
-
exports.Checkbox = Checkbox;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
# Checkbox
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
# Text
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
# TextField
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.TextField = void 0;
|
|
7
|
-
|
|
8
|
-
var _core = require("@remote-ui/core");
|
|
9
|
-
|
|
10
|
-
var TextField = (0, _core.createRemoteComponent)('TextField');
|
|
11
|
-
exports.TextField = TextField;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
# View
|
package/build/cjs/components.js
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "BlockStack", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function get() {
|
|
9
|
-
return _BlockStack.BlockStack;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
Object.defineProperty(exports, "Button", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function get() {
|
|
15
|
-
return _Button.Button;
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
Object.defineProperty(exports, "Checkbox", {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: function get() {
|
|
21
|
-
return _Checkbox.Checkbox;
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
Object.defineProperty(exports, "Text", {
|
|
25
|
-
enumerable: true,
|
|
26
|
-
get: function get() {
|
|
27
|
-
return _Text.Text;
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
Object.defineProperty(exports, "TextField", {
|
|
31
|
-
enumerable: true,
|
|
32
|
-
get: function get() {
|
|
33
|
-
return _TextField.TextField;
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
Object.defineProperty(exports, "View", {
|
|
37
|
-
enumerable: true,
|
|
38
|
-
get: function get() {
|
|
39
|
-
return _View.View;
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
|
|
43
|
-
var _BlockStack = require("./components/BlockStack/BlockStack");
|
|
44
|
-
|
|
45
|
-
var _Button = require("./components/Button/Button");
|
|
46
|
-
|
|
47
|
-
var _Checkbox = require("./components/Checkbox/Checkbox");
|
|
48
|
-
|
|
49
|
-
var _Text = require("./components/Text/Text");
|
|
50
|
-
|
|
51
|
-
var _TextField = require("./components/TextField/TextField");
|
|
52
|
-
|
|
53
|
-
var _View = require("./components/View/View");
|
package/build/cjs/extension.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
package/build/cjs/index.js
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
|
|
7
|
-
var _api = require("./api");
|
|
8
|
-
|
|
9
|
-
Object.keys(_api).forEach(function (key) {
|
|
10
|
-
if (key === "default" || key === "__esModule") return;
|
|
11
|
-
if (key in exports && exports[key] === _api[key]) return;
|
|
12
|
-
Object.defineProperty(exports, key, {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function get() {
|
|
15
|
-
return _api[key];
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
var _components = require("./components");
|
|
21
|
-
|
|
22
|
-
Object.keys(_components).forEach(function (key) {
|
|
23
|
-
if (key === "default" || key === "__esModule") return;
|
|
24
|
-
if (key in exports && exports[key] === _components[key]) return;
|
|
25
|
-
Object.defineProperty(exports, key, {
|
|
26
|
-
enumerable: true,
|
|
27
|
-
get: function get() {
|
|
28
|
-
return _components[key];
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
});
|
|
32
|
-
|
|
33
|
-
var _extension = require("./extension");
|
|
34
|
-
|
|
35
|
-
Object.keys(_extension).forEach(function (key) {
|
|
36
|
-
if (key === "default" || key === "__esModule") return;
|
|
37
|
-
if (key in exports && exports[key] === _extension[key]) return;
|
|
38
|
-
Object.defineProperty(exports, key, {
|
|
39
|
-
enumerable: true,
|
|
40
|
-
get: function get() {
|
|
41
|
-
return _extension[key];
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
# Checkout editor API
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
# Standard admin API
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.TextField = void 0;
|
|
7
|
-
|
|
8
|
-
var _core = require("@remote-ui/core");
|
|
9
|
-
|
|
10
|
-
var TextField = (0, _core.createRemoteComponent)('TextField');
|
|
11
|
-
exports.TextField = TextField;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
var _exportNames = {
|
|
7
|
-
TextField: true
|
|
8
|
-
};
|
|
9
|
-
Object.defineProperty(exports, "TextField", {
|
|
10
|
-
enumerable: true,
|
|
11
|
-
get: function get() {
|
|
12
|
-
return _TextField.TextField;
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
var _components = require("../../components");
|
|
17
|
-
|
|
18
|
-
Object.keys(_components).forEach(function (key) {
|
|
19
|
-
if (key === "default" || key === "__esModule") return;
|
|
20
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
21
|
-
if (key in exports && exports[key] === _components[key]) return;
|
|
22
|
-
Object.defineProperty(exports, key, {
|
|
23
|
-
enumerable: true,
|
|
24
|
-
get: function get() {
|
|
25
|
-
return _components[key];
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
});
|
|
29
|
-
|
|
30
|
-
var _TextField = require("./components/TextField/TextField");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
var _exportNames = {
|
|
7
|
-
extension: true
|
|
8
|
-
};
|
|
9
|
-
exports.extension = void 0;
|
|
10
|
-
|
|
11
|
-
var _registration = require("../../utilities/registration");
|
|
12
|
-
|
|
13
|
-
var _extension = require("../../extension");
|
|
14
|
-
|
|
15
|
-
Object.keys(_extension).forEach(function (key) {
|
|
16
|
-
if (key === "default" || key === "__esModule") return;
|
|
17
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
18
|
-
if (key in exports && exports[key] === _extension[key]) return;
|
|
19
|
-
Object.defineProperty(exports, key, {
|
|
20
|
-
enumerable: true,
|
|
21
|
-
get: function get() {
|
|
22
|
-
return _extension[key];
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
});
|
|
26
|
-
var extension = (0, _registration.createExtensionRegistrationFunction)();
|
|
27
|
-
exports.extension = extension;
|