@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.
Files changed (652) hide show
  1. package/README.md +42 -0
  2. package/build/cjs/index.js +2 -0
  3. package/build/cjs/surfaces/admin/components/Badge/Badge.js +12 -0
  4. package/build/cjs/surfaces/admin/components/Banner/Banner.js +14 -0
  5. package/build/cjs/surfaces/admin/components/BlockStack/BlockStack.js +15 -0
  6. package/build/cjs/surfaces/admin/components/Button/Button.js +12 -0
  7. package/build/cjs/surfaces/admin/components/Card/Card.js +15 -0
  8. package/build/cjs/surfaces/admin/components/CardSection/CardSection.js +12 -0
  9. package/build/cjs/surfaces/admin/components/Checkbox/Checkbox.js +12 -0
  10. package/build/cjs/surfaces/admin/components/CustomerSegmentationTemplate/CustomerSegmentationTemplate.js +12 -0
  11. package/build/cjs/surfaces/admin/components/Heading/Heading.js +12 -0
  12. package/build/cjs/surfaces/admin/components/Icon/Icon.js +12 -0
  13. package/build/cjs/surfaces/admin/components/InlineStack/InlineStack.js +15 -0
  14. package/build/cjs/surfaces/admin/components/Link/Link.js +12 -0
  15. package/build/cjs/surfaces/admin/components/Modal/Modal.js +14 -0
  16. package/build/cjs/surfaces/admin/components/OptionList/OptionList.js +15 -0
  17. package/build/cjs/surfaces/admin/components/Pressable/Pressable.js +13 -0
  18. package/build/cjs/surfaces/admin/components/Radio/Radio.js +12 -0
  19. package/build/cjs/surfaces/admin/components/ResourceItem/ResourceItem.js +14 -0
  20. package/build/cjs/surfaces/admin/components/ResourceList/ResourceList.js +15 -0
  21. package/build/cjs/surfaces/admin/components/Select/Select.js +14 -0
  22. package/build/cjs/surfaces/admin/components/Spinner/Spinner.js +12 -0
  23. package/build/cjs/surfaces/admin/components/StackItem/StackItem.js +14 -0
  24. package/build/cjs/surfaces/admin/components/Text/Text.js +12 -0
  25. package/build/cjs/surfaces/admin/components/TextBlock/TextBlock.js +13 -0
  26. package/build/cjs/surfaces/admin/components/TextField/TextField.js +14 -0
  27. package/build/cjs/surfaces/admin/components/Thumbnail/Thumbnail.js +12 -0
  28. package/build/cjs/surfaces/admin/extension.js +11 -0
  29. package/build/cjs/surfaces/admin.js +60 -0
  30. package/build/cjs/surfaces/checkout/components/Banner/Banner.js +12 -0
  31. package/build/cjs/surfaces/checkout/components/BlockLayout/BlockLayout.js +14 -0
  32. package/build/cjs/surfaces/checkout/components/BlockSpacer/BlockSpacer.js +15 -0
  33. package/build/cjs/surfaces/checkout/components/BlockStack/BlockStack.js +12 -0
  34. package/build/cjs/surfaces/checkout/components/Button/Button.js +12 -0
  35. package/build/cjs/surfaces/checkout/components/Checkbox/Checkbox.js +12 -0
  36. package/build/cjs/surfaces/checkout/components/Choice/Choice.js +13 -0
  37. package/build/cjs/surfaces/checkout/components/ChoiceList/ChoiceList.js +13 -0
  38. package/build/cjs/surfaces/checkout/components/Divider/Divider.js +12 -0
  39. package/build/cjs/surfaces/checkout/components/Form/Form.js +20 -0
  40. package/build/cjs/surfaces/checkout/components/Grid/Grid.js +12 -0
  41. package/build/cjs/surfaces/checkout/components/GridItem/GridItem.js +14 -0
  42. package/build/cjs/surfaces/checkout/components/Heading/Heading.js +17 -0
  43. package/build/cjs/surfaces/checkout/components/HeadingGroup/HeadingGroup.js +16 -0
  44. package/build/cjs/surfaces/checkout/components/Icon/Icon.js +13 -0
  45. package/build/cjs/surfaces/checkout/components/Image/Image.js +12 -0
  46. package/build/cjs/surfaces/checkout/components/InlineLayout/InlineLayout.js +16 -0
  47. package/build/cjs/surfaces/checkout/components/InlineSpacer/InlineSpacer.js +15 -0
  48. package/build/cjs/surfaces/checkout/components/InlineStack/InlineStack.js +12 -0
  49. package/build/cjs/surfaces/checkout/components/Link/Link.js +12 -0
  50. package/build/cjs/surfaces/checkout/components/List/List.js +12 -0
  51. package/build/cjs/surfaces/checkout/components/ListItem/ListItem.js +14 -0
  52. package/build/cjs/surfaces/checkout/components/PhoneField/PhoneField.js +17 -0
  53. package/build/cjs/surfaces/checkout/components/Pressable/Pressable.js +14 -0
  54. package/build/cjs/surfaces/checkout/components/ScrollView/ScrollView.js +13 -0
  55. package/build/cjs/surfaces/checkout/components/Select/Select.js +13 -0
  56. package/build/cjs/surfaces/checkout/components/SkeletonImage/SkeletonImage.js +12 -0
  57. package/build/cjs/surfaces/checkout/components/SkeletonText/SkeletonText.js +12 -0
  58. package/build/cjs/surfaces/checkout/components/SkeletonTextBlock/SkeletonTextBlock.js +12 -0
  59. package/build/cjs/surfaces/checkout/components/Spinner/Spinner.js +13 -0
  60. package/build/cjs/surfaces/checkout/components/Stepper/Stepper.js +12 -0
  61. package/build/cjs/surfaces/checkout/components/Tag/Tag.js +12 -0
  62. package/build/cjs/surfaces/checkout/components/Text/Text.js +13 -0
  63. package/build/cjs/surfaces/checkout/components/TextBlock/TextBlock.js +12 -0
  64. package/build/cjs/surfaces/checkout/components/TextField/TextField.js +12 -0
  65. package/build/cjs/surfaces/checkout/components/Tooltip/Tooltip.js +17 -0
  66. package/build/cjs/surfaces/checkout/components/View/View.js +17 -0
  67. package/build/cjs/surfaces/checkout/extension.js +11 -0
  68. package/build/cjs/surfaces/checkout/style/isEqual.js +29 -0
  69. package/build/cjs/surfaces/checkout/style/memoize.js +139 -0
  70. package/build/cjs/surfaces/checkout/style/style.js +74 -0
  71. package/build/cjs/surfaces/checkout.js +88 -0
  72. package/build/cjs/utilities/registration.js +45 -0
  73. package/build/esm/index.mjs +1 -0
  74. package/build/esm/surfaces/admin/components/Badge/Badge.mjs +8 -0
  75. package/build/esm/surfaces/admin/components/Banner/Banner.mjs +10 -0
  76. package/build/esm/surfaces/admin/components/BlockStack/BlockStack.mjs +11 -0
  77. package/build/esm/surfaces/admin/components/Button/Button.mjs +8 -0
  78. package/build/esm/surfaces/admin/components/Card/Card.mjs +11 -0
  79. package/build/esm/surfaces/admin/components/CardSection/CardSection.mjs +8 -0
  80. package/build/esm/surfaces/admin/components/Checkbox/Checkbox.mjs +8 -0
  81. package/build/esm/surfaces/admin/components/CustomerSegmentationTemplate/CustomerSegmentationTemplate.mjs +8 -0
  82. package/build/esm/surfaces/admin/components/Heading/Heading.mjs +8 -0
  83. package/build/esm/surfaces/admin/components/Icon/Icon.mjs +8 -0
  84. package/build/esm/surfaces/admin/components/InlineStack/InlineStack.mjs +11 -0
  85. package/build/esm/surfaces/admin/components/Link/Link.mjs +8 -0
  86. package/build/esm/surfaces/admin/components/Modal/Modal.mjs +10 -0
  87. package/build/esm/surfaces/admin/components/OptionList/OptionList.mjs +11 -0
  88. package/build/esm/surfaces/admin/components/Pressable/Pressable.mjs +9 -0
  89. package/build/esm/surfaces/admin/components/Radio/Radio.mjs +8 -0
  90. package/build/esm/surfaces/admin/components/ResourceItem/ResourceItem.mjs +10 -0
  91. package/build/esm/surfaces/admin/components/ResourceList/ResourceList.mjs +11 -0
  92. package/build/esm/surfaces/admin/components/Select/Select.mjs +10 -0
  93. package/build/esm/surfaces/admin/components/Spinner/Spinner.mjs +8 -0
  94. package/build/esm/surfaces/admin/components/StackItem/StackItem.mjs +10 -0
  95. package/build/esm/surfaces/admin/components/Text/Text.mjs +8 -0
  96. package/build/esm/surfaces/admin/components/TextBlock/TextBlock.mjs +9 -0
  97. package/build/esm/surfaces/admin/components/TextField/TextField.mjs +10 -0
  98. package/build/esm/surfaces/admin/components/Thumbnail/Thumbnail.mjs +8 -0
  99. package/build/esm/surfaces/admin/extension.mjs +6 -0
  100. package/build/esm/surfaces/admin.mjs +26 -0
  101. package/build/esm/surfaces/checkout/components/Banner/Banner.mjs +8 -0
  102. package/build/esm/surfaces/checkout/components/BlockLayout/BlockLayout.mjs +10 -0
  103. package/build/esm/surfaces/checkout/components/BlockSpacer/BlockSpacer.mjs +11 -0
  104. package/build/esm/surfaces/checkout/components/BlockStack/BlockStack.mjs +8 -0
  105. package/build/esm/surfaces/checkout/components/Button/Button.mjs +8 -0
  106. package/build/esm/surfaces/checkout/components/Checkbox/Checkbox.mjs +8 -0
  107. package/build/esm/surfaces/checkout/components/Choice/Choice.mjs +9 -0
  108. package/build/esm/surfaces/checkout/components/ChoiceList/ChoiceList.mjs +9 -0
  109. package/build/esm/surfaces/checkout/components/Divider/Divider.mjs +8 -0
  110. package/build/esm/surfaces/checkout/components/Form/Form.mjs +16 -0
  111. package/build/esm/surfaces/checkout/components/Grid/Grid.mjs +8 -0
  112. package/build/esm/surfaces/checkout/components/GridItem/GridItem.mjs +10 -0
  113. package/build/esm/surfaces/checkout/components/Heading/Heading.mjs +13 -0
  114. package/build/esm/surfaces/checkout/components/HeadingGroup/HeadingGroup.mjs +12 -0
  115. package/build/esm/surfaces/checkout/components/Icon/Icon.mjs +9 -0
  116. package/build/esm/surfaces/checkout/components/Image/Image.mjs +8 -0
  117. package/build/esm/surfaces/checkout/components/InlineLayout/InlineLayout.mjs +12 -0
  118. package/build/esm/surfaces/checkout/components/InlineSpacer/InlineSpacer.mjs +11 -0
  119. package/build/esm/surfaces/checkout/components/InlineStack/InlineStack.mjs +8 -0
  120. package/build/esm/surfaces/checkout/components/Link/Link.mjs +8 -0
  121. package/build/esm/surfaces/checkout/components/List/List.mjs +8 -0
  122. package/build/esm/surfaces/checkout/components/ListItem/ListItem.mjs +10 -0
  123. package/build/esm/surfaces/checkout/components/PhoneField/PhoneField.mjs +13 -0
  124. package/build/esm/surfaces/checkout/components/Pressable/Pressable.mjs +10 -0
  125. package/build/esm/surfaces/checkout/components/ScrollView/ScrollView.mjs +9 -0
  126. package/build/esm/surfaces/checkout/components/Select/Select.mjs +9 -0
  127. package/build/esm/surfaces/checkout/components/SkeletonImage/SkeletonImage.mjs +8 -0
  128. package/build/esm/surfaces/checkout/components/SkeletonText/SkeletonText.mjs +8 -0
  129. package/build/esm/surfaces/checkout/components/SkeletonTextBlock/SkeletonTextBlock.mjs +8 -0
  130. package/build/esm/surfaces/checkout/components/Spinner/Spinner.mjs +9 -0
  131. package/build/esm/surfaces/checkout/components/Stepper/Stepper.mjs +8 -0
  132. package/build/esm/surfaces/checkout/components/Tag/Tag.mjs +8 -0
  133. package/build/esm/surfaces/checkout/components/Text/Text.mjs +9 -0
  134. package/build/esm/surfaces/checkout/components/TextBlock/TextBlock.mjs +8 -0
  135. package/build/esm/surfaces/checkout/components/TextField/TextField.mjs +8 -0
  136. package/build/esm/surfaces/checkout/components/Tooltip/Tooltip.mjs +13 -0
  137. package/build/esm/surfaces/checkout/components/View/View.mjs +13 -0
  138. package/build/esm/surfaces/checkout/extension.mjs +6 -0
  139. package/build/esm/surfaces/checkout/style/isEqual.mjs +25 -0
  140. package/build/esm/surfaces/checkout/style/memoize.mjs +133 -0
  141. package/build/esm/surfaces/checkout/style/style.mjs +68 -0
  142. package/build/esm/surfaces/checkout.mjs +39 -0
  143. package/build/esm/utilities/registration.mjs +41 -0
  144. package/build/esnext/index.esnext +1 -0
  145. package/build/esnext/surfaces/admin/components/Badge/Badge.esnext +8 -0
  146. package/build/esnext/surfaces/admin/components/Banner/Banner.esnext +10 -0
  147. package/build/esnext/surfaces/admin/components/BlockStack/BlockStack.esnext +11 -0
  148. package/build/esnext/surfaces/admin/components/Button/Button.esnext +8 -0
  149. package/build/esnext/surfaces/admin/components/Card/Card.esnext +11 -0
  150. package/build/esnext/surfaces/admin/components/CardSection/CardSection.esnext +8 -0
  151. package/build/esnext/surfaces/admin/components/Checkbox/Checkbox.esnext +8 -0
  152. package/build/esnext/surfaces/admin/components/CustomerSegmentationTemplate/CustomerSegmentationTemplate.esnext +8 -0
  153. package/build/esnext/surfaces/admin/components/Heading/Heading.esnext +8 -0
  154. package/build/esnext/surfaces/admin/components/Icon/Icon.esnext +8 -0
  155. package/build/esnext/surfaces/admin/components/InlineStack/InlineStack.esnext +11 -0
  156. package/build/esnext/surfaces/admin/components/Link/Link.esnext +8 -0
  157. package/build/esnext/surfaces/admin/components/Modal/Modal.esnext +10 -0
  158. package/build/esnext/surfaces/admin/components/OptionList/OptionList.esnext +11 -0
  159. package/build/esnext/surfaces/admin/components/Pressable/Pressable.esnext +9 -0
  160. package/build/esnext/surfaces/admin/components/Radio/Radio.esnext +8 -0
  161. package/build/esnext/surfaces/admin/components/ResourceItem/ResourceItem.esnext +10 -0
  162. package/build/esnext/surfaces/admin/components/ResourceList/ResourceList.esnext +11 -0
  163. package/build/esnext/surfaces/admin/components/Select/Select.esnext +10 -0
  164. package/build/esnext/surfaces/admin/components/Spinner/Spinner.esnext +8 -0
  165. package/build/esnext/surfaces/admin/components/StackItem/StackItem.esnext +10 -0
  166. package/build/esnext/surfaces/admin/components/Text/Text.esnext +8 -0
  167. package/build/esnext/surfaces/admin/components/TextBlock/TextBlock.esnext +9 -0
  168. package/build/esnext/surfaces/admin/components/TextField/TextField.esnext +10 -0
  169. package/build/esnext/surfaces/admin/components/Thumbnail/Thumbnail.esnext +8 -0
  170. package/build/esnext/surfaces/admin/extension.esnext +6 -0
  171. package/build/esnext/surfaces/admin.esnext +26 -0
  172. package/build/esnext/surfaces/checkout/components/Banner/Banner.esnext +8 -0
  173. package/build/esnext/surfaces/checkout/components/BlockLayout/BlockLayout.esnext +10 -0
  174. package/build/esnext/surfaces/checkout/components/BlockSpacer/BlockSpacer.esnext +11 -0
  175. package/build/esnext/surfaces/checkout/components/BlockStack/BlockStack.esnext +8 -0
  176. package/build/esnext/surfaces/checkout/components/Button/Button.esnext +8 -0
  177. package/build/esnext/surfaces/checkout/components/Checkbox/Checkbox.esnext +8 -0
  178. package/build/esnext/surfaces/checkout/components/Choice/Choice.esnext +9 -0
  179. package/build/esnext/surfaces/checkout/components/ChoiceList/ChoiceList.esnext +9 -0
  180. package/build/esnext/surfaces/checkout/components/Divider/Divider.esnext +8 -0
  181. package/build/esnext/surfaces/checkout/components/Form/Form.esnext +16 -0
  182. package/build/esnext/surfaces/checkout/components/Grid/Grid.esnext +8 -0
  183. package/build/esnext/surfaces/checkout/components/GridItem/GridItem.esnext +10 -0
  184. package/build/esnext/surfaces/checkout/components/Heading/Heading.esnext +13 -0
  185. package/build/esnext/surfaces/checkout/components/HeadingGroup/HeadingGroup.esnext +12 -0
  186. package/build/esnext/surfaces/checkout/components/Icon/Icon.esnext +9 -0
  187. package/build/esnext/surfaces/checkout/components/Image/Image.esnext +8 -0
  188. package/build/esnext/surfaces/checkout/components/InlineLayout/InlineLayout.esnext +12 -0
  189. package/build/esnext/surfaces/checkout/components/InlineSpacer/InlineSpacer.esnext +11 -0
  190. package/build/esnext/surfaces/checkout/components/InlineStack/InlineStack.esnext +8 -0
  191. package/build/esnext/surfaces/checkout/components/Link/Link.esnext +8 -0
  192. package/build/esnext/surfaces/checkout/components/List/List.esnext +8 -0
  193. package/build/esnext/surfaces/checkout/components/ListItem/ListItem.esnext +10 -0
  194. package/build/esnext/surfaces/checkout/components/PhoneField/PhoneField.esnext +13 -0
  195. package/build/esnext/surfaces/checkout/components/Pressable/Pressable.esnext +10 -0
  196. package/build/esnext/surfaces/checkout/components/ScrollView/ScrollView.esnext +9 -0
  197. package/build/esnext/surfaces/checkout/components/Select/Select.esnext +9 -0
  198. package/build/esnext/surfaces/checkout/components/SkeletonImage/SkeletonImage.esnext +8 -0
  199. package/build/esnext/surfaces/checkout/components/SkeletonText/SkeletonText.esnext +8 -0
  200. package/build/esnext/surfaces/checkout/components/SkeletonTextBlock/SkeletonTextBlock.esnext +8 -0
  201. package/build/esnext/surfaces/checkout/components/Spinner/Spinner.esnext +9 -0
  202. package/build/esnext/surfaces/checkout/components/Stepper/Stepper.esnext +8 -0
  203. package/build/esnext/surfaces/checkout/components/Tag/Tag.esnext +8 -0
  204. package/build/esnext/surfaces/checkout/components/Text/Text.esnext +9 -0
  205. package/build/esnext/surfaces/checkout/components/TextBlock/TextBlock.esnext +8 -0
  206. package/build/esnext/surfaces/checkout/components/TextField/TextField.esnext +8 -0
  207. package/build/esnext/surfaces/checkout/components/Tooltip/Tooltip.esnext +13 -0
  208. package/build/esnext/surfaces/checkout/components/View/View.esnext +13 -0
  209. package/build/esnext/surfaces/checkout/extension.esnext +6 -0
  210. package/build/esnext/surfaces/checkout/style/isEqual.esnext +25 -0
  211. package/build/esnext/surfaces/checkout/style/memoize.esnext +133 -0
  212. package/build/esnext/surfaces/checkout/style/style.esnext +68 -0
  213. package/build/esnext/surfaces/checkout.esnext +39 -0
  214. package/build/esnext/utilities/registration.esnext +41 -0
  215. package/build/ts/api.d.ts +66 -0
  216. package/build/ts/api.d.ts.map +1 -0
  217. package/build/ts/extension.d.ts +15 -0
  218. package/build/ts/extension.d.ts.map +1 -0
  219. package/build/ts/index.d.ts +3 -0
  220. package/build/ts/index.d.ts.map +1 -0
  221. package/build/ts/shared.d.ts +6 -0
  222. package/build/ts/shared.d.ts.map +1 -0
  223. package/build/ts/surfaces/admin/api/customer-segmentation-template/customer-segmentation-template.d.ts +11 -0
  224. package/build/ts/surfaces/admin/api/customer-segmentation-template/customer-segmentation-template.d.ts.map +1 -0
  225. package/build/ts/surfaces/admin/api/standard/standard.d.ts +12 -0
  226. package/build/ts/surfaces/admin/api/standard/standard.d.ts.map +1 -0
  227. package/build/ts/surfaces/admin/api.d.ts +4 -0
  228. package/build/ts/surfaces/admin/api.d.ts.map +1 -0
  229. package/build/ts/surfaces/admin/components/Badge/Badge.d.ts +20 -0
  230. package/build/ts/surfaces/admin/components/Badge/Badge.d.ts.map +1 -0
  231. package/build/ts/surfaces/admin/components/Banner/Banner.d.ts +28 -0
  232. package/build/ts/surfaces/admin/components/Banner/Banner.d.ts.map +1 -0
  233. package/build/ts/surfaces/admin/components/BlockStack/BlockStack.d.ts +25 -0
  234. package/build/ts/surfaces/admin/components/BlockStack/BlockStack.d.ts.map +1 -0
  235. package/build/ts/surfaces/admin/components/Button/Button.d.ts +66 -0
  236. package/build/ts/surfaces/admin/components/Button/Button.d.ts.map +1 -0
  237. package/build/ts/surfaces/admin/components/Card/Card.d.ts +25 -0
  238. package/build/ts/surfaces/admin/components/Card/Card.d.ts.map +1 -0
  239. package/build/ts/surfaces/admin/components/CardSection/CardSection.d.ts +12 -0
  240. package/build/ts/surfaces/admin/components/CardSection/CardSection.d.ts.map +1 -0
  241. package/build/ts/surfaces/admin/components/Checkbox/Checkbox.d.ts +22 -0
  242. package/build/ts/surfaces/admin/components/Checkbox/Checkbox.d.ts.map +1 -0
  243. package/build/ts/surfaces/admin/components/CustomerSegmentationTemplate/CustomerSegmentationTemplate.d.ts +27 -0
  244. package/build/ts/surfaces/admin/components/CustomerSegmentationTemplate/CustomerSegmentationTemplate.d.ts.map +1 -0
  245. package/build/ts/surfaces/admin/components/Heading/Heading.d.ts +24 -0
  246. package/build/ts/surfaces/admin/components/Heading/Heading.d.ts.map +1 -0
  247. package/build/ts/surfaces/admin/components/Icon/Icon.d.ts +17 -0
  248. package/build/ts/surfaces/admin/components/Icon/Icon.d.ts.map +1 -0
  249. package/build/ts/surfaces/admin/components/InlineStack/InlineStack.d.ts +30 -0
  250. package/build/ts/surfaces/admin/components/InlineStack/InlineStack.d.ts.map +1 -0
  251. package/build/ts/surfaces/admin/components/Link/Link.d.ts +23 -0
  252. package/build/ts/surfaces/admin/components/Link/Link.d.ts.map +1 -0
  253. package/build/ts/surfaces/admin/components/Modal/Modal.d.ts +36 -0
  254. package/build/ts/surfaces/admin/components/Modal/Modal.d.ts.map +1 -0
  255. package/build/ts/surfaces/admin/components/OptionList/OptionList.d.ts +36 -0
  256. package/build/ts/surfaces/admin/components/OptionList/OptionList.d.ts.map +1 -0
  257. package/build/ts/surfaces/admin/components/Pressable/Pressable.d.ts +14 -0
  258. package/build/ts/surfaces/admin/components/Pressable/Pressable.d.ts.map +1 -0
  259. package/build/ts/surfaces/admin/components/Radio/Radio.d.ts +26 -0
  260. package/build/ts/surfaces/admin/components/Radio/Radio.d.ts.map +1 -0
  261. package/build/ts/surfaces/admin/components/ResourceItem/ResourceItem.d.ts +17 -0
  262. package/build/ts/surfaces/admin/components/ResourceItem/ResourceItem.d.ts.map +1 -0
  263. package/build/ts/surfaces/admin/components/ResourceList/ResourceList.d.ts +26 -0
  264. package/build/ts/surfaces/admin/components/ResourceList/ResourceList.d.ts.map +1 -0
  265. package/build/ts/surfaces/admin/components/Select/Select.d.ts +34 -0
  266. package/build/ts/surfaces/admin/components/Select/Select.d.ts.map +1 -0
  267. package/build/ts/surfaces/admin/components/Spinner/Spinner.d.ts +11 -0
  268. package/build/ts/surfaces/admin/components/Spinner/Spinner.d.ts.map +1 -0
  269. package/build/ts/surfaces/admin/components/StackItem/StackItem.d.ts +15 -0
  270. package/build/ts/surfaces/admin/components/StackItem/StackItem.d.ts.map +1 -0
  271. package/build/ts/surfaces/admin/components/Text/Text.d.ts +20 -0
  272. package/build/ts/surfaces/admin/components/Text/Text.d.ts.map +1 -0
  273. package/build/ts/surfaces/admin/components/TextBlock/TextBlock.d.ts +20 -0
  274. package/build/ts/surfaces/admin/components/TextBlock/TextBlock.d.ts.map +1 -0
  275. package/build/ts/surfaces/admin/components/TextField/TextField.d.ts +41 -0
  276. package/build/ts/surfaces/admin/components/TextField/TextField.d.ts.map +1 -0
  277. package/build/ts/surfaces/admin/components/Thumbnail/Thumbnail.d.ts +19 -0
  278. package/build/ts/surfaces/admin/components/Thumbnail/Thumbnail.d.ts.map +1 -0
  279. package/build/ts/surfaces/admin/components/shared.d.ts +22 -0
  280. package/build/ts/surfaces/admin/components/shared.d.ts.map +1 -0
  281. package/build/ts/surfaces/admin/components.d.ts +52 -0
  282. package/build/ts/surfaces/admin/components.d.ts.map +1 -0
  283. package/build/ts/surfaces/admin/extension-points.d.ts +52 -0
  284. package/build/ts/surfaces/admin/extension-points.d.ts.map +1 -0
  285. package/build/ts/surfaces/admin/extension.d.ts +5 -0
  286. package/build/ts/surfaces/admin/extension.d.ts.map +1 -0
  287. package/build/ts/surfaces/admin/globals.d.ts +5 -0
  288. package/build/ts/surfaces/admin/globals.d.ts.map +1 -0
  289. package/build/ts/surfaces/admin/shared.d.ts +6 -0
  290. package/build/ts/surfaces/admin/shared.d.ts.map +1 -0
  291. package/build/ts/surfaces/admin.d.ts +7 -0
  292. package/build/ts/surfaces/admin.d.ts.map +1 -0
  293. package/build/ts/surfaces/checkout/api/cart-line-details/render-after.d.ts +9 -0
  294. package/build/ts/surfaces/checkout/api/cart-line-details/render-after.d.ts.map +1 -0
  295. package/build/ts/surfaces/checkout/api/shared.d.ts +5 -0
  296. package/build/ts/surfaces/checkout/api/shared.d.ts.map +1 -0
  297. package/build/ts/surfaces/checkout/api/standard/standard.d.ts +1060 -0
  298. package/build/ts/surfaces/checkout/api/standard/standard.d.ts.map +1 -0
  299. package/build/ts/surfaces/checkout/api.d.ts +5 -0
  300. package/build/ts/surfaces/checkout/api.d.ts.map +1 -0
  301. package/build/ts/surfaces/checkout/components/Banner/Banner.d.ts +38 -0
  302. package/build/ts/surfaces/checkout/components/Banner/Banner.d.ts.map +1 -0
  303. package/build/ts/surfaces/checkout/components/BlockLayout/BlockLayout.d.ts +41 -0
  304. package/build/ts/surfaces/checkout/components/BlockLayout/BlockLayout.d.ts.map +1 -0
  305. package/build/ts/surfaces/checkout/components/BlockSpacer/BlockSpacer.d.ts +22 -0
  306. package/build/ts/surfaces/checkout/components/BlockSpacer/BlockSpacer.d.ts.map +1 -0
  307. package/build/ts/surfaces/checkout/components/BlockStack/BlockStack.d.ts +42 -0
  308. package/build/ts/surfaces/checkout/components/BlockStack/BlockStack.d.ts.map +1 -0
  309. package/build/ts/surfaces/checkout/components/Button/Button.d.ts +83 -0
  310. package/build/ts/surfaces/checkout/components/Button/Button.d.ts.map +1 -0
  311. package/build/ts/surfaces/checkout/components/Checkbox/Checkbox.d.ts +59 -0
  312. package/build/ts/surfaces/checkout/components/Checkbox/Checkbox.d.ts.map +1 -0
  313. package/build/ts/surfaces/checkout/components/Choice/Choice.d.ts +27 -0
  314. package/build/ts/surfaces/checkout/components/Choice/Choice.d.ts.map +1 -0
  315. package/build/ts/surfaces/checkout/components/ChoiceList/ChoiceList.d.ts +32 -0
  316. package/build/ts/surfaces/checkout/components/ChoiceList/ChoiceList.d.ts.map +1 -0
  317. package/build/ts/surfaces/checkout/components/Divider/Divider.d.ts +30 -0
  318. package/build/ts/surfaces/checkout/components/Divider/Divider.d.ts.map +1 -0
  319. package/build/ts/surfaces/checkout/components/Form/Form.d.ts +32 -0
  320. package/build/ts/surfaces/checkout/components/Form/Form.d.ts.map +1 -0
  321. package/build/ts/surfaces/checkout/components/Grid/Grid.d.ts +95 -0
  322. package/build/ts/surfaces/checkout/components/Grid/Grid.d.ts.map +1 -0
  323. package/build/ts/surfaces/checkout/components/GridItem/GridItem.d.ts +36 -0
  324. package/build/ts/surfaces/checkout/components/GridItem/GridItem.d.ts.map +1 -0
  325. package/build/ts/surfaces/checkout/components/Heading/Heading.d.ts +43 -0
  326. package/build/ts/surfaces/checkout/components/Heading/Heading.d.ts.map +1 -0
  327. package/build/ts/surfaces/checkout/components/HeadingGroup/HeadingGroup.d.ts +15 -0
  328. package/build/ts/surfaces/checkout/components/HeadingGroup/HeadingGroup.d.ts.map +1 -0
  329. package/build/ts/surfaces/checkout/components/Icon/Icon.d.ts +38 -0
  330. package/build/ts/surfaces/checkout/components/Icon/Icon.d.ts.map +1 -0
  331. package/build/ts/surfaces/checkout/components/Image/Image.d.ts +73 -0
  332. package/build/ts/surfaces/checkout/components/Image/Image.d.ts.map +1 -0
  333. package/build/ts/surfaces/checkout/components/InlineLayout/InlineLayout.d.ts +43 -0
  334. package/build/ts/surfaces/checkout/components/InlineLayout/InlineLayout.d.ts.map +1 -0
  335. package/build/ts/surfaces/checkout/components/InlineSpacer/InlineSpacer.d.ts +22 -0
  336. package/build/ts/surfaces/checkout/components/InlineSpacer/InlineSpacer.d.ts.map +1 -0
  337. package/build/ts/surfaces/checkout/components/InlineStack/InlineStack.d.ts +50 -0
  338. package/build/ts/surfaces/checkout/components/InlineStack/InlineStack.d.ts.map +1 -0
  339. package/build/ts/surfaces/checkout/components/Link/Link.d.ts +50 -0
  340. package/build/ts/surfaces/checkout/components/Link/Link.d.ts.map +1 -0
  341. package/build/ts/surfaces/checkout/components/List/List.d.ts +32 -0
  342. package/build/ts/surfaces/checkout/components/List/List.d.ts.map +1 -0
  343. package/build/ts/surfaces/checkout/components/ListItem/ListItem.d.ts +13 -0
  344. package/build/ts/surfaces/checkout/components/ListItem/ListItem.d.ts.map +1 -0
  345. package/build/ts/surfaces/checkout/components/PhoneField/PhoneField.d.ts +58 -0
  346. package/build/ts/surfaces/checkout/components/PhoneField/PhoneField.d.ts.map +1 -0
  347. package/build/ts/surfaces/checkout/components/Pressable/Pressable.d.ts +96 -0
  348. package/build/ts/surfaces/checkout/components/Pressable/Pressable.d.ts.map +1 -0
  349. package/build/ts/surfaces/checkout/components/ScrollView/ScrollView.d.ts +75 -0
  350. package/build/ts/surfaces/checkout/components/ScrollView/ScrollView.d.ts.map +1 -0
  351. package/build/ts/surfaces/checkout/components/Select/Select.d.ts +98 -0
  352. package/build/ts/surfaces/checkout/components/Select/Select.d.ts.map +1 -0
  353. package/build/ts/surfaces/checkout/components/SkeletonImage/SkeletonImage.d.ts +25 -0
  354. package/build/ts/surfaces/checkout/components/SkeletonImage/SkeletonImage.d.ts.map +1 -0
  355. package/build/ts/surfaces/checkout/components/SkeletonText/SkeletonText.d.ts +21 -0
  356. package/build/ts/surfaces/checkout/components/SkeletonText/SkeletonText.d.ts.map +1 -0
  357. package/build/ts/surfaces/checkout/components/SkeletonTextBlock/SkeletonTextBlock.d.ts +22 -0
  358. package/build/ts/surfaces/checkout/components/SkeletonTextBlock/SkeletonTextBlock.d.ts.map +1 -0
  359. package/build/ts/surfaces/checkout/components/Spinner/Spinner.d.ts +32 -0
  360. package/build/ts/surfaces/checkout/components/Spinner/Spinner.d.ts.map +1 -0
  361. package/build/ts/surfaces/checkout/components/Stepper/Stepper.d.ts +42 -0
  362. package/build/ts/surfaces/checkout/components/Stepper/Stepper.d.ts.map +1 -0
  363. package/build/ts/surfaces/checkout/components/Tag/Tag.d.ts +31 -0
  364. package/build/ts/surfaces/checkout/components/Tag/Tag.d.ts.map +1 -0
  365. package/build/ts/surfaces/checkout/components/Text/Text.d.ts +34 -0
  366. package/build/ts/surfaces/checkout/components/Text/Text.d.ts.map +1 -0
  367. package/build/ts/surfaces/checkout/components/TextBlock/TextBlock.d.ts +32 -0
  368. package/build/ts/surfaces/checkout/components/TextBlock/TextBlock.d.ts.map +1 -0
  369. package/build/ts/surfaces/checkout/components/TextField/TextField.d.ts +175 -0
  370. package/build/ts/surfaces/checkout/components/TextField/TextField.d.ts.map +1 -0
  371. package/build/ts/surfaces/checkout/components/Tooltip/Tooltip.d.ts +16 -0
  372. package/build/ts/surfaces/checkout/components/Tooltip/Tooltip.d.ts.map +1 -0
  373. package/build/ts/surfaces/checkout/components/View/View.d.ts +169 -0
  374. package/build/ts/surfaces/checkout/components/View/View.d.ts.map +1 -0
  375. package/build/ts/surfaces/checkout/components/shared.d.ts +407 -0
  376. package/build/ts/surfaces/checkout/components/shared.d.ts.map +1 -0
  377. package/build/ts/surfaces/checkout/components.d.ts +76 -0
  378. package/build/ts/surfaces/checkout/components.d.ts.map +1 -0
  379. package/build/ts/surfaces/checkout/extension-points.d.ts +98 -0
  380. package/build/ts/surfaces/checkout/extension-points.d.ts.map +1 -0
  381. package/build/ts/surfaces/checkout/extension.d.ts +5 -0
  382. package/build/ts/surfaces/checkout/extension.d.ts.map +1 -0
  383. package/build/ts/surfaces/checkout/globals.d.ts +6 -0
  384. package/build/ts/surfaces/checkout/globals.d.ts.map +1 -0
  385. package/build/ts/surfaces/checkout/shared.d.ts +6 -0
  386. package/build/ts/surfaces/checkout/shared.d.ts.map +1 -0
  387. package/build/ts/surfaces/checkout/style/isEqual.d.ts +8 -0
  388. package/build/ts/surfaces/checkout/style/isEqual.d.ts.map +1 -0
  389. package/build/ts/surfaces/checkout/style/isEqual.test.d.ts +2 -0
  390. package/build/ts/surfaces/checkout/style/isEqual.test.d.ts.map +1 -0
  391. package/build/ts/surfaces/checkout/style/memoize.d.ts +13 -0
  392. package/build/ts/surfaces/checkout/style/memoize.d.ts.map +1 -0
  393. package/build/ts/surfaces/checkout/style/style.d.ts +70 -0
  394. package/build/ts/surfaces/checkout/style/style.d.ts.map +1 -0
  395. package/build/ts/surfaces/checkout/style/style.test.d.ts +2 -0
  396. package/build/ts/surfaces/checkout/style/style.test.d.ts.map +1 -0
  397. package/build/ts/surfaces/checkout/style/types.d.ts +46 -0
  398. package/build/ts/surfaces/checkout/style/types.d.ts.map +1 -0
  399. package/build/ts/surfaces/checkout/style.d.ts +3 -0
  400. package/build/ts/surfaces/checkout/style.d.ts.map +1 -0
  401. package/build/ts/surfaces/checkout.d.ts +8 -0
  402. package/build/ts/surfaces/checkout.d.ts.map +1 -0
  403. package/build/ts/utilities/registration.d.ts +16 -0
  404. package/build/ts/utilities/registration.d.ts.map +1 -0
  405. package/build/tsconfig.tsbuildinfo +1 -0
  406. package/checkout.esnext +1 -0
  407. package/checkout.js +1 -0
  408. package/checkout.mjs +1 -0
  409. package/index.esnext +1 -0
  410. package/index.js +1 -0
  411. package/index.mjs +1 -0
  412. package/package.json +60 -0
  413. package/src/api.ts +76 -0
  414. package/src/extension.ts +48 -0
  415. package/src/index.ts +2 -0
  416. package/src/shared.ts +13 -0
  417. package/src/surfaces/admin/api/customer-segmentation-template/customer-segmentation-template.ts +19 -0
  418. package/src/surfaces/admin/api/standard/README.md +1 -0
  419. package/src/surfaces/admin/api/standard/standard.ts +13 -0
  420. package/src/surfaces/admin/api.ts +3 -0
  421. package/src/surfaces/admin/components/Badge/Badge.ts +18 -0
  422. package/src/surfaces/admin/components/Badge/content/guidelines.md +10 -0
  423. package/src/surfaces/admin/components/Badge/examples/badge.example.ts +11 -0
  424. package/src/surfaces/admin/components/Banner/Banner.ts +32 -0
  425. package/src/surfaces/admin/components/Banner/content/guidelines.md +11 -0
  426. package/src/surfaces/admin/components/Banner/examples/Banner.example.ts +20 -0
  427. package/src/surfaces/admin/components/BlockStack/BlockStack.ts +27 -0
  428. package/src/surfaces/admin/components/BlockStack/content/guidelines.md +10 -0
  429. package/src/surfaces/admin/components/BlockStack/examples/BlockStack.example.ts +22 -0
  430. package/src/surfaces/admin/components/Button/Button.ts +68 -0
  431. package/src/surfaces/admin/components/Button/content/guidelines.md +14 -0
  432. package/src/surfaces/admin/components/Button/examples/Button.example.ts +17 -0
  433. package/src/surfaces/admin/components/Card/Card.ts +28 -0
  434. package/src/surfaces/admin/components/Card/content/guidelines.md +9 -0
  435. package/src/surfaces/admin/components/Card/examples/Card.example.ts +10 -0
  436. package/src/surfaces/admin/components/CardSection/CardSection.ts +13 -0
  437. package/src/surfaces/admin/components/CardSection/content/guidelines.md +5 -0
  438. package/src/surfaces/admin/components/CardSection/examples/CardSection.example.ts +20 -0
  439. package/src/surfaces/admin/components/Checkbox/Checkbox.ts +25 -0
  440. package/src/surfaces/admin/components/Checkbox/content/guidelines.md +8 -0
  441. package/src/surfaces/admin/components/Checkbox/examples/Checkbox.example.ts +13 -0
  442. package/src/surfaces/admin/components/CustomerSegmentationTemplate/CustomerSegmentationTemplate.ts +66 -0
  443. package/src/surfaces/admin/components/CustomerSegmentationTemplate/examples/CustomerSegmentationTemplate.example.ts +37 -0
  444. package/src/surfaces/admin/components/Heading/Heading.ts +25 -0
  445. package/src/surfaces/admin/components/Heading/content/guidelines.md +11 -0
  446. package/src/surfaces/admin/components/Heading/examples/Heading.example.ts +14 -0
  447. package/src/surfaces/admin/components/Icon/Icon.ts +21 -0
  448. package/src/surfaces/admin/components/Icon/content/guidelines.md +8 -0
  449. package/src/surfaces/admin/components/Icon/examples/Icon.example.ts +12 -0
  450. package/src/surfaces/admin/components/InlineStack/InlineStack.ts +34 -0
  451. package/src/surfaces/admin/components/InlineStack/content/guidelines.md +10 -0
  452. package/src/surfaces/admin/components/InlineStack/examples/InlineStack.example.ts +16 -0
  453. package/src/surfaces/admin/components/Link/Link.ts +23 -0
  454. package/src/surfaces/admin/components/Link/content/guidelines.md +10 -0
  455. package/src/surfaces/admin/components/Link/examples/AbsoluteLink.example.ts +13 -0
  456. package/src/surfaces/admin/components/Link/examples/LogLink.example.ts +12 -0
  457. package/src/surfaces/admin/components/Link/examples/RelativeLink.example.ts +12 -0
  458. package/src/surfaces/admin/components/Modal/Modal.ts +33 -0
  459. package/src/surfaces/admin/components/Modal/content/guidelines.md +8 -0
  460. package/src/surfaces/admin/components/Modal/examples/Modal.example.ts +14 -0
  461. package/src/surfaces/admin/components/OptionList/OptionList.ts +42 -0
  462. package/src/surfaces/admin/components/OptionList/content/guidelines.md +7 -0
  463. package/src/surfaces/admin/components/OptionList/examples/OptionList.example.ts +24 -0
  464. package/src/surfaces/admin/components/Pressable/Pressable.ts +14 -0
  465. package/src/surfaces/admin/components/Pressable/content/guidelines.md +12 -0
  466. package/src/surfaces/admin/components/Pressable/examples/Pressable.example.ts +15 -0
  467. package/src/surfaces/admin/components/Radio/Radio.ts +29 -0
  468. package/src/surfaces/admin/components/Radio/content/guidelines.md +6 -0
  469. package/src/surfaces/admin/components/Radio/examples/Radio.example.ts +25 -0
  470. package/src/surfaces/admin/components/ResourceItem/ResourceItem.ts +19 -0
  471. package/src/surfaces/admin/components/ResourceItem/content/guidelines.md +8 -0
  472. package/src/surfaces/admin/components/ResourceItem/examples/ResourceItem.example.ts +22 -0
  473. package/src/surfaces/admin/components/ResourceList/ResourceList.ts +30 -0
  474. package/src/surfaces/admin/components/ResourceList/content/guidelines.md +9 -0
  475. package/src/surfaces/admin/components/ResourceList/examples/ResourceList.example.ts +29 -0
  476. package/src/surfaces/admin/components/Select/Select.ts +39 -0
  477. package/src/surfaces/admin/components/Select/content/guidelines.md +7 -0
  478. package/src/surfaces/admin/components/Select/examples/Select.example.ts +30 -0
  479. package/src/surfaces/admin/components/Spinner/Spinner.ts +10 -0
  480. package/src/surfaces/admin/components/Spinner/content/guidelines.md +5 -0
  481. package/src/surfaces/admin/components/Spinner/examples/Spinner.example.ts +12 -0
  482. package/src/surfaces/admin/components/StackItem/StackItem.ts +15 -0
  483. package/src/surfaces/admin/components/StackItem/content/guidelines.md +8 -0
  484. package/src/surfaces/admin/components/StackItem/examples/StackItem.example.ts +25 -0
  485. package/src/surfaces/admin/components/Text/Text.ts +26 -0
  486. package/src/surfaces/admin/components/Text/content/guidelines.md +8 -0
  487. package/src/surfaces/admin/components/Text/examples/Text.example.ts +20 -0
  488. package/src/surfaces/admin/components/TextBlock/TextBlock.ts +20 -0
  489. package/src/surfaces/admin/components/TextBlock/content/guidelines.md +11 -0
  490. package/src/surfaces/admin/components/TextBlock/examples/TextBlock.example.ts +8 -0
  491. package/src/surfaces/admin/components/TextField/TextField.ts +54 -0
  492. package/src/surfaces/admin/components/TextField/content/guidelines.md +10 -0
  493. package/src/surfaces/admin/components/TextField/examples/TextField.example.ts +23 -0
  494. package/src/surfaces/admin/components/Thumbnail/Thumbnail.ts +31 -0
  495. package/src/surfaces/admin/components/Thumbnail/examples/Thumbnail.example.ts +13 -0
  496. package/src/surfaces/admin/components/shared.ts +30 -0
  497. package/src/surfaces/admin/components.ts +51 -0
  498. package/src/surfaces/admin/extension-points.ts +85 -0
  499. package/src/surfaces/admin/extension.ts +8 -0
  500. package/src/surfaces/admin/globals.ts +8 -0
  501. package/src/surfaces/admin/shared.ts +6 -0
  502. package/src/surfaces/admin.ts +6 -0
  503. package/src/surfaces/checkout/api/cart-line-details/README.md +1 -0
  504. package/src/surfaces/checkout/api/cart-line-details/render-after.ts +11 -0
  505. package/src/surfaces/checkout/api/shared.ts +810 -0
  506. package/src/surfaces/checkout/api/standard/README.md +1 -0
  507. package/src/surfaces/checkout/api/standard/standard.ts +1266 -0
  508. package/src/surfaces/checkout/api.ts +66 -0
  509. package/src/surfaces/checkout/components/Banner/Banner.ts +37 -0
  510. package/src/surfaces/checkout/components/Banner/README.md +14 -0
  511. package/src/surfaces/checkout/components/Banner/content/guidelines.md +9 -0
  512. package/src/surfaces/checkout/components/Banner/examples/basic-banner.example.ts +11 -0
  513. package/src/surfaces/checkout/components/BlockLayout/BlockLayout.ts +43 -0
  514. package/src/surfaces/checkout/components/BlockLayout/README.md +101 -0
  515. package/src/surfaces/checkout/components/BlockLayout/examples/basic-blockLayout.example.ts +16 -0
  516. package/src/surfaces/checkout/components/BlockSpacer/BlockSpacer.ts +25 -0
  517. package/src/surfaces/checkout/components/BlockSpacer/README.md +14 -0
  518. package/src/surfaces/checkout/components/BlockSpacer/examples/basic-blockspacer.example.ts +11 -0
  519. package/src/surfaces/checkout/components/BlockStack/BlockStack.ts +53 -0
  520. package/src/surfaces/checkout/components/BlockStack/README.md +77 -0
  521. package/src/surfaces/checkout/components/BlockStack/examples/basic-blockstack.example.ts +11 -0
  522. package/src/surfaces/checkout/components/Button/Button.ts +87 -0
  523. package/src/surfaces/checkout/components/Button/README.md +22 -0
  524. package/src/surfaces/checkout/components/Button/content/guidelines.md +10 -0
  525. package/src/surfaces/checkout/components/Button/examples/basic-button.example.ts +11 -0
  526. package/src/surfaces/checkout/components/Checkbox/Checkbox.ts +63 -0
  527. package/src/surfaces/checkout/components/Checkbox/README.md +18 -0
  528. package/src/surfaces/checkout/components/Checkbox/content/guidelines.md +9 -0
  529. package/src/surfaces/checkout/components/Checkbox/examples/basic-checkbox.example.ts +11 -0
  530. package/src/surfaces/checkout/components/Choice/Choice.ts +25 -0
  531. package/src/surfaces/checkout/components/Choice/README.md +14 -0
  532. package/src/surfaces/checkout/components/Choice/content/guidelines.md +9 -0
  533. package/src/surfaces/checkout/components/Choice/examples/basic-choice.example.ts +50 -0
  534. package/src/surfaces/checkout/components/ChoiceList/ChoiceList.ts +33 -0
  535. package/src/surfaces/checkout/components/ChoiceList/README.md +14 -0
  536. package/src/surfaces/checkout/components/ChoiceList/content/guidelines.md +10 -0
  537. package/src/surfaces/checkout/components/ChoiceList/examples/basic-choicelist.example.ts +50 -0
  538. package/src/surfaces/checkout/components/Divider/Divider.ts +33 -0
  539. package/src/surfaces/checkout/components/Divider/README.md +13 -0
  540. package/src/surfaces/checkout/components/Divider/examples/basic-divider.example.ts +7 -0
  541. package/src/surfaces/checkout/components/Form/Form.ts +30 -0
  542. package/src/surfaces/checkout/components/Form/README.md +21 -0
  543. package/src/surfaces/checkout/components/Form/content/guidelines.md +4 -0
  544. package/src/surfaces/checkout/components/Form/examples/basic-form.example.ts +48 -0
  545. package/src/surfaces/checkout/components/Grid/Grid.ts +104 -0
  546. package/src/surfaces/checkout/components/Grid/README.md +105 -0
  547. package/src/surfaces/checkout/components/Grid/content/guidelines.md +3 -0
  548. package/src/surfaces/checkout/components/Grid/examples/basic-grid.example.ts +45 -0
  549. package/src/surfaces/checkout/components/GridItem/GridItem.ts +42 -0
  550. package/src/surfaces/checkout/components/GridItem/README.md +72 -0
  551. package/src/surfaces/checkout/components/GridItem/content/guidelines.md +3 -0
  552. package/src/surfaces/checkout/components/GridItem/examples/basic-griditem.example.ts +42 -0
  553. package/src/surfaces/checkout/components/Heading/Heading.ts +44 -0
  554. package/src/surfaces/checkout/components/Heading/README.md +19 -0
  555. package/src/surfaces/checkout/components/Heading/content/guidelines.md +10 -0
  556. package/src/surfaces/checkout/components/Heading/examples/basic-heading.example.ts +7 -0
  557. package/src/surfaces/checkout/components/HeadingGroup/HeadingGroup.ts +15 -0
  558. package/src/surfaces/checkout/components/HeadingGroup/README.md +7 -0
  559. package/src/surfaces/checkout/components/HeadingGroup/content/guidelines.md +9 -0
  560. package/src/surfaces/checkout/components/HeadingGroup/examples/basic-headinggroup.example.ts +20 -0
  561. package/src/surfaces/checkout/components/Icon/Icon.ts +91 -0
  562. package/src/surfaces/checkout/components/Icon/README.md +15 -0
  563. package/src/surfaces/checkout/components/Icon/examples/basic-icon.example.ts +7 -0
  564. package/src/surfaces/checkout/components/Image/Image.ts +83 -0
  565. package/src/surfaces/checkout/components/Image/README.md +53 -0
  566. package/src/surfaces/checkout/components/Image/examples/basic-image.example.ts +10 -0
  567. package/src/surfaces/checkout/components/InlineLayout/InlineLayout.ts +49 -0
  568. package/src/surfaces/checkout/components/InlineLayout/README.md +103 -0
  569. package/src/surfaces/checkout/components/InlineLayout/examples/basic-inlineLayout.example.ts +16 -0
  570. package/src/surfaces/checkout/components/InlineSpacer/InlineSpacer.ts +24 -0
  571. package/src/surfaces/checkout/components/InlineSpacer/README.md +14 -0
  572. package/src/surfaces/checkout/components/InlineSpacer/examples/basic-inlinespacer.example.ts +20 -0
  573. package/src/surfaces/checkout/components/InlineStack/InlineStack.ts +63 -0
  574. package/src/surfaces/checkout/components/InlineStack/README.md +87 -0
  575. package/src/surfaces/checkout/components/InlineStack/examples/basic-inlinestack.example.ts +18 -0
  576. package/src/surfaces/checkout/components/Link/Link.ts +49 -0
  577. package/src/surfaces/checkout/components/Link/README.md +18 -0
  578. package/src/surfaces/checkout/components/Link/content/guidelines.md +9 -0
  579. package/src/surfaces/checkout/components/Link/examples/basic-link.example.ts +11 -0
  580. package/src/surfaces/checkout/components/List/List.ts +32 -0
  581. package/src/surfaces/checkout/components/List/README.md +19 -0
  582. package/src/surfaces/checkout/components/List/content/guidelines.md +11 -0
  583. package/src/surfaces/checkout/components/List/examples/basic-list.example.ts +11 -0
  584. package/src/surfaces/checkout/components/ListItem/ListItem.ts +12 -0
  585. package/src/surfaces/checkout/components/ListItem/README.md +5 -0
  586. package/src/surfaces/checkout/components/ListItem/content/guidelines.md +3 -0
  587. package/src/surfaces/checkout/components/ListItem/examples/basic-listitem.example.ts +9 -0
  588. package/src/surfaces/checkout/components/PhoneField/PhoneField.ts +77 -0
  589. package/src/surfaces/checkout/components/PhoneField/README.md +49 -0
  590. package/src/surfaces/checkout/components/PhoneField/examples/basic-phonefield.example.ts +10 -0
  591. package/src/surfaces/checkout/components/Pressable/Pressable.ts +128 -0
  592. package/src/surfaces/checkout/components/Pressable/README.md +74 -0
  593. package/src/surfaces/checkout/components/Pressable/examples/basic-pressable.example.ts +27 -0
  594. package/src/surfaces/checkout/components/ScrollView/README.md +62 -0
  595. package/src/surfaces/checkout/components/ScrollView/ScrollView.ts +76 -0
  596. package/src/surfaces/checkout/components/ScrollView/examples/basic-scrollview.example.ts +38 -0
  597. package/src/surfaces/checkout/components/Select/README.md +41 -0
  598. package/src/surfaces/checkout/components/Select/Select.ts +97 -0
  599. package/src/surfaces/checkout/components/Select/content/guidelines.md +4 -0
  600. package/src/surfaces/checkout/components/Select/examples/basic-select.example.ts +36 -0
  601. package/src/surfaces/checkout/components/SkeletonImage/README.md +13 -0
  602. package/src/surfaces/checkout/components/SkeletonImage/SkeletonImage.ts +28 -0
  603. package/src/surfaces/checkout/components/SkeletonImage/examples/basic-skeletonimage.example.ts +10 -0
  604. package/src/surfaces/checkout/components/SkeletonText/README.md +13 -0
  605. package/src/surfaces/checkout/components/SkeletonText/SkeletonText.ts +23 -0
  606. package/src/surfaces/checkout/components/SkeletonText/examples/basic-skeletontext.example.ts +7 -0
  607. package/src/surfaces/checkout/components/SkeletonTextBlock/README.md +13 -0
  608. package/src/surfaces/checkout/components/SkeletonTextBlock/SkeletonTextBlock.ts +24 -0
  609. package/src/surfaces/checkout/components/SkeletonTextBlock/examples/basic-skeletontextblock.example.ts +7 -0
  610. package/src/surfaces/checkout/components/Spinner/README.md +14 -0
  611. package/src/surfaces/checkout/components/Spinner/Spinner.ts +35 -0
  612. package/src/surfaces/checkout/components/Spinner/examples/basic-spinner.example.ts +7 -0
  613. package/src/surfaces/checkout/components/Stepper/README.md +28 -0
  614. package/src/surfaces/checkout/components/Stepper/Stepper.ts +63 -0
  615. package/src/surfaces/checkout/components/Stepper/content/guidelines.md +4 -0
  616. package/src/surfaces/checkout/components/Stepper/examples/basic-stepper.example.ts +10 -0
  617. package/src/surfaces/checkout/components/Tag/README.md +14 -0
  618. package/src/surfaces/checkout/components/Tag/Tag.ts +26 -0
  619. package/src/surfaces/checkout/components/Tag/examples/basic-tag.example.ts +7 -0
  620. package/src/surfaces/checkout/components/Text/README.md +17 -0
  621. package/src/surfaces/checkout/components/Text/Text.ts +44 -0
  622. package/src/surfaces/checkout/components/Text/content/guidelines.md +10 -0
  623. package/src/surfaces/checkout/components/Text/examples/basic-text.example.ts +14 -0
  624. package/src/surfaces/checkout/components/TextBlock/README.md +15 -0
  625. package/src/surfaces/checkout/components/TextBlock/TextBlock.ts +38 -0
  626. package/src/surfaces/checkout/components/TextBlock/content/guidelines.md +9 -0
  627. package/src/surfaces/checkout/components/TextBlock/examples/basic-textblock.example.ts +18 -0
  628. package/src/surfaces/checkout/components/TextField/README.md +49 -0
  629. package/src/surfaces/checkout/components/TextField/TextField.ts +173 -0
  630. package/src/surfaces/checkout/components/TextField/content/guidelines.md +5 -0
  631. package/src/surfaces/checkout/components/TextField/examples/basic-textfield.example.ts +9 -0
  632. package/src/surfaces/checkout/components/Tooltip/README.md +8 -0
  633. package/src/surfaces/checkout/components/Tooltip/Tooltip.ts +15 -0
  634. package/src/surfaces/checkout/components/Tooltip/examples/basic-tooltip.example.ts +23 -0
  635. package/src/surfaces/checkout/components/View/README.md +97 -0
  636. package/src/surfaces/checkout/components/View/View.ts +196 -0
  637. package/src/surfaces/checkout/components/View/examples/basic-view.example.ts +11 -0
  638. package/src/surfaces/checkout/components/shared.ts +581 -0
  639. package/src/surfaces/checkout/components.ts +157 -0
  640. package/src/surfaces/checkout/extension-points.ts +164 -0
  641. package/src/surfaces/checkout/extension.ts +8 -0
  642. package/src/surfaces/checkout/globals.ts +9 -0
  643. package/src/surfaces/checkout/shared.ts +6 -0
  644. package/src/surfaces/checkout/style/isEqual.test.ts +67 -0
  645. package/src/surfaces/checkout/style/isEqual.ts +41 -0
  646. package/src/surfaces/checkout/style/memoize.ts +177 -0
  647. package/src/surfaces/checkout/style/style.test.ts +131 -0
  648. package/src/surfaces/checkout/style/style.ts +161 -0
  649. package/src/surfaces/checkout/style/types.ts +67 -0
  650. package/src/surfaces/checkout/style.ts +16 -0
  651. package/src/surfaces/checkout.ts +7 -0
  652. package/src/utilities/registration.ts +79 -0
@@ -0,0 +1,6 @@
1
+ import { createExtensionRegistrationFunction } from '../../utilities/registration.esnext';
2
+
3
+ const extension = createExtensionRegistrationFunction();
4
+ const extend = extension;
5
+
6
+ export { extend, extension };
@@ -0,0 +1,25 @@
1
+ /**
2
+ * A simple isEqual function that can be used to compare two style objects that's
3
+ * good enough for our use case on the style builder.
4
+ */
5
+ function isEqual(first, second) {
6
+ if (Object.is(first, second)) {
7
+ return true;
8
+ }
9
+ if (typeof first === 'object' && typeof second === 'object') {
10
+ if (Array.isArray(first) && Array.isArray(second)) {
11
+ if (first.length === second.length) {
12
+ return first.every((value, index) => isEqual(value, second[index]));
13
+ }
14
+ } else {
15
+ const firstEntries = Object.entries(first);
16
+ const secondEntries = Object.entries(second);
17
+ if (firstEntries.length === secondEntries.length) {
18
+ return firstEntries.every(([key]) => isEqual(first[key], second[key]));
19
+ }
20
+ }
21
+ }
22
+ return false;
23
+ }
24
+
25
+ export { isEqual };
@@ -0,0 +1,133 @@
1
+ /* eslint-disable prefer-rest-params */
2
+ /* eslint-disable prefer-spread */
3
+
4
+ // This memoize function is heavily inspired by reselect's defaultMemoize
5
+ // https://github.com/reduxjs/reselect
6
+
7
+ // Cache implementation based on Erik Rasmussen's `lru-memoize`:
8
+ // https://github.com/erikras/lru-memoize
9
+
10
+ const NOT_FOUND = 'NOT_FOUND';
11
+ function createSingletonCache(equals) {
12
+ let entry;
13
+ return {
14
+ get(key) {
15
+ if (entry && equals(entry.key, key)) {
16
+ return entry.value;
17
+ }
18
+ return NOT_FOUND;
19
+ },
20
+ put(key, value) {
21
+ entry = {
22
+ key,
23
+ value
24
+ };
25
+ },
26
+ getEntries() {
27
+ return entry ? [entry] : [];
28
+ },
29
+ clear() {
30
+ entry = undefined;
31
+ }
32
+ };
33
+ }
34
+ function createLruCache(maxSize, equals) {
35
+ let entries = [];
36
+ function get(key) {
37
+ const cacheIndex = entries.findIndex(entry => equals(key, entry.key));
38
+
39
+ // We found a cached entry
40
+ if (cacheIndex > -1) {
41
+ const entry = entries[cacheIndex];
42
+
43
+ // Cached entry not at top of cache, move it to the top
44
+ if (cacheIndex > 0) {
45
+ entries.splice(cacheIndex, 1);
46
+ entries.unshift(entry);
47
+ }
48
+ return entry.value;
49
+ }
50
+
51
+ // No entry found in cache, return sentinel
52
+ return NOT_FOUND;
53
+ }
54
+ function put(key, value) {
55
+ if (get(key) === NOT_FOUND) {
56
+ entries.unshift({
57
+ key,
58
+ value
59
+ });
60
+ if (entries.length > maxSize) {
61
+ entries.pop();
62
+ }
63
+ }
64
+ }
65
+ function getEntries() {
66
+ return entries;
67
+ }
68
+ function clear() {
69
+ entries = [];
70
+ }
71
+ return {
72
+ get,
73
+ put,
74
+ getEntries,
75
+ clear
76
+ };
77
+ }
78
+ const defaultEqualityCheck = (first, second) => {
79
+ return first === second;
80
+ };
81
+ function createCacheKeyComparator(equalityCheck) {
82
+ return function areArgumentsShallowlyEqual(prev, next) {
83
+ if (prev === null || next === null || prev.length !== next.length) {
84
+ return false;
85
+ }
86
+
87
+ // Do this in a for loop (and not a `forEach` or an `every`) so we can determine equality as fast as possible.
88
+ const length = prev.length;
89
+ for (let i = 0; i < length; i++) {
90
+ if (!equalityCheck(prev[i], next[i])) {
91
+ return false;
92
+ }
93
+ }
94
+ return true;
95
+ };
96
+ }
97
+ // defaultMemoize now supports a configurable cache size with LRU behavior,
98
+ // and optional comparison of the result value with existing values
99
+ function memoize(func, equalityCheckOrOptions) {
100
+ const providedOptions = typeof equalityCheckOrOptions === 'object' ? equalityCheckOrOptions : {
101
+ equalityCheck: equalityCheckOrOptions
102
+ };
103
+ const {
104
+ equalityCheck = defaultEqualityCheck,
105
+ maxSize = 1,
106
+ resultEqualityCheck
107
+ } = providedOptions;
108
+ const comparator = createCacheKeyComparator(equalityCheck);
109
+ const cache = maxSize === 1 ? createSingletonCache(comparator) : createLruCache(maxSize, comparator);
110
+
111
+ // we reference arguments instead of spreading them for performance reasons
112
+ function memoized() {
113
+ let value = cache.get(arguments);
114
+ if (value === NOT_FOUND) {
115
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
116
+ // @ts-ignore
117
+ value = func.apply(null, arguments);
118
+ if (resultEqualityCheck) {
119
+ const entries = cache.getEntries();
120
+ const matchingEntry = entries.find(entry => resultEqualityCheck(entry.value, value));
121
+ if (matchingEntry) {
122
+ value = matchingEntry.value;
123
+ }
124
+ }
125
+ cache.put(arguments, value);
126
+ }
127
+ return value;
128
+ }
129
+ memoized.clearCache = () => cache.clear();
130
+ return memoized;
131
+ }
132
+
133
+ export { createCacheKeyComparator, defaultEqualityCheck, memoize };
@@ -0,0 +1,68 @@
1
+ import { memoize } from './memoize.esnext';
2
+ import { isEqual } from './isEqual.esnext';
3
+
4
+ const MAX_CACHE_SIZE = 50;
5
+ const MEMOIZE_OPTIONS = {
6
+ equalityCheck: isEqual,
7
+ maxSize: MAX_CACHE_SIZE
8
+ };
9
+ // eslint-disable-next-line func-style
10
+ const when = function when(conditions, value) {
11
+ const config = isConditionalStyle(this) ? {
12
+ default: this.default,
13
+ conditionals: [...this.conditionals, {
14
+ conditions,
15
+ value
16
+ }]
17
+ } : {
18
+ conditionals: [{
19
+ conditions,
20
+ value
21
+ }]
22
+ };
23
+ return createChainableConditionalStyle(config);
24
+ };
25
+
26
+ /**
27
+ * Style is a helper for authoring conditional values for prop styles.
28
+ * Write complex conditional styles based on one or more conditions (viewport
29
+ * sizes and interactive states) in a concise and expressive way.
30
+ */
31
+ const Style = {
32
+ /**
33
+ * Sets an optional default value to use when no other condition is met.
34
+ *
35
+ * @param defaultValue The default value
36
+ * @returns The chainable condition style
37
+ */
38
+ default: memoize(defaultValue => createChainableConditionalStyle({
39
+ default: defaultValue,
40
+ conditionals: []
41
+ }), MEMOIZE_OPTIONS),
42
+ /**
43
+ * Adjusts the style based on different conditions. All conditions, expressed
44
+ * as a literal object, must be met for the associated value to be applied.
45
+ *
46
+ * The `when` method can be chained together to build more complex styles.
47
+ *
48
+ * @param conditions The condition(s)
49
+ * @param value The conditional value that can be applied if the conditions are met
50
+ * @returns The chainable condition style
51
+ */
52
+ when: memoize(when, MEMOIZE_OPTIONS)
53
+ };
54
+ function createChainableConditionalStyle(conditionalStyle) {
55
+ const proto = {};
56
+ const returnConditionalStyle = Object.create(proto);
57
+ Object.assign(returnConditionalStyle, conditionalStyle);
58
+ proto.when = memoize(when.bind(returnConditionalStyle), MEMOIZE_OPTIONS);
59
+ return returnConditionalStyle;
60
+ }
61
+ function isConditionalStyle(value) {
62
+ return value !== null && typeof value === 'object' && 'conditionals' in value;
63
+ }
64
+ function isConditionalStyleWithDefault(value) {
65
+ return isConditionalStyle(value) && 'default' in value && value.default !== undefined;
66
+ }
67
+
68
+ export { Style, isConditionalStyle, isConditionalStyleWithDefault };
@@ -0,0 +1,39 @@
1
+ export { extend, extension } from './checkout/extension.esnext';
2
+ export { Banner } from './checkout/components/Banner/Banner.esnext';
3
+ export { BlockLayout } from './checkout/components/BlockLayout/BlockLayout.esnext';
4
+ export { BlockSpacer } from './checkout/components/BlockSpacer/BlockSpacer.esnext';
5
+ export { BlockStack } from './checkout/components/BlockStack/BlockStack.esnext';
6
+ export { Button } from './checkout/components/Button/Button.esnext';
7
+ export { Checkbox } from './checkout/components/Checkbox/Checkbox.esnext';
8
+ export { Choice } from './checkout/components/Choice/Choice.esnext';
9
+ export { ChoiceList } from './checkout/components/ChoiceList/ChoiceList.esnext';
10
+ export { Divider } from './checkout/components/Divider/Divider.esnext';
11
+ export { Form } from './checkout/components/Form/Form.esnext';
12
+ export { Grid } from './checkout/components/Grid/Grid.esnext';
13
+ export { GridItem } from './checkout/components/GridItem/GridItem.esnext';
14
+ export { Heading } from './checkout/components/Heading/Heading.esnext';
15
+ export { HeadingGroup } from './checkout/components/HeadingGroup/HeadingGroup.esnext';
16
+ export { Icon } from './checkout/components/Icon/Icon.esnext';
17
+ export { Image } from './checkout/components/Image/Image.esnext';
18
+ export { InlineLayout } from './checkout/components/InlineLayout/InlineLayout.esnext';
19
+ export { InlineStack } from './checkout/components/InlineStack/InlineStack.esnext';
20
+ export { InlineSpacer } from './checkout/components/InlineSpacer/InlineSpacer.esnext';
21
+ export { Link } from './checkout/components/Link/Link.esnext';
22
+ export { List } from './checkout/components/List/List.esnext';
23
+ export { ListItem } from './checkout/components/ListItem/ListItem.esnext';
24
+ export { PhoneField } from './checkout/components/PhoneField/PhoneField.esnext';
25
+ export { Pressable } from './checkout/components/Pressable/Pressable.esnext';
26
+ export { ScrollView } from './checkout/components/ScrollView/ScrollView.esnext';
27
+ export { Select } from './checkout/components/Select/Select.esnext';
28
+ export { SkeletonImage } from './checkout/components/SkeletonImage/SkeletonImage.esnext';
29
+ export { SkeletonText } from './checkout/components/SkeletonText/SkeletonText.esnext';
30
+ export { SkeletonTextBlock } from './checkout/components/SkeletonTextBlock/SkeletonTextBlock.esnext';
31
+ export { Spinner } from './checkout/components/Spinner/Spinner.esnext';
32
+ export { Stepper } from './checkout/components/Stepper/Stepper.esnext';
33
+ export { Tag } from './checkout/components/Tag/Tag.esnext';
34
+ export { Text } from './checkout/components/Text/Text.esnext';
35
+ export { TextBlock } from './checkout/components/TextBlock/TextBlock.esnext';
36
+ export { TextField } from './checkout/components/TextField/TextField.esnext';
37
+ export { Tooltip } from './checkout/components/Tooltip/Tooltip.esnext';
38
+ export { View } from './checkout/components/View/View.esnext';
39
+ export { Style, isConditionalStyle, isConditionalStyleWithDefault } from './checkout/style/style.esnext';
@@ -0,0 +1,41 @@
1
+ import { createRemoteRoot } from '@remote-ui/core';
2
+
3
+ /**
4
+ * This function takes an extension function that is expecting a `RemoteRoot` as its
5
+ * first argument, and returns a new function that accepts a `RemoteChannel` instead.
6
+ * This is a convenience that allows the raw UI extension API to only expose the simpler
7
+ * `RemoteChannel` type, while allowing the extension to use the more powerful `RemoteRoot`,
8
+ * provided by a version of `@remote-ui/core` that the extension controls.
9
+ */
10
+ function createExtensionRegistrationFunction() {
11
+ const extensionWrapper = (target, implementation) => {
12
+ var _shopify;
13
+ async function extension(...args) {
14
+ // Rendering extensions have two arguments. Non-rendering extensions don’t have
15
+ // a `RemoteChannel` that needs to be normalized, so we can just pass the arguments
16
+ // through.
17
+ if (args.length === 1) {
18
+ return implementation(...args);
19
+ }
20
+ const [{
21
+ channel,
22
+ components
23
+ }, api] = args;
24
+ const root = createRemoteRoot(channel, {
25
+ components,
26
+ strict: true
27
+ });
28
+ let renderResult = implementation(root, api);
29
+ if (typeof renderResult === 'object' && renderResult != null && 'then' in renderResult) {
30
+ renderResult = await renderResult;
31
+ }
32
+ root.mount();
33
+ return renderResult;
34
+ }
35
+ (_shopify = globalThis.shopify) === null || _shopify === void 0 ? void 0 : _shopify.extend(target, extension);
36
+ return extension;
37
+ };
38
+ return extensionWrapper;
39
+ }
40
+
41
+ export { createExtensionRegistrationFunction };
@@ -0,0 +1,66 @@
1
+ export interface StandardApi {
2
+ readonly extensionPoint: string;
3
+ }
4
+ /**
5
+ * This defines the i18n.translate() signature.
6
+ */
7
+ export interface I18nTranslate {
8
+ /**
9
+ * This returns a translated string matching a key in a locale file.
10
+ *
11
+ * @example translate("banner.title")
12
+ */
13
+ <ReplacementType = string>(key: string, options?: {
14
+ [placeholderKey: string]: ReplacementType | string | number;
15
+ }): ReplacementType extends string | number ? string : (string | ReplacementType)[];
16
+ }
17
+ export interface I18n {
18
+ /**
19
+ * Returns a localized number.
20
+ *
21
+ * This function behaves like the standard `Intl.NumberFormat()`
22
+ * with a style of `decimal` applied. It uses the buyer's locale by default.
23
+ *
24
+ * @param options.inExtensionLocale - if true, use the extension's locale
25
+ */
26
+ formatNumber: (number: number | bigint, options?: {
27
+ inExtensionLocale?: boolean;
28
+ } & Intl.NumberFormatOptions) => string;
29
+ /**
30
+ * Returns a localized currency value.
31
+ *
32
+ * This function behaves like the standard `Intl.NumberFormat()`
33
+ * with a style of `currency` applied. It uses the buyer's locale by default.
34
+ *
35
+ * @param options.inExtensionLocale - if true, use the extension's locale
36
+ */
37
+ formatCurrency: (number: number | bigint, options?: {
38
+ inExtensionLocale?: boolean;
39
+ } & Intl.NumberFormatOptions) => string;
40
+ /**
41
+ * Returns a localized date value.
42
+ *
43
+ * This function behaves like the standard `Intl.DateTimeFormatOptions()` and uses
44
+ * the buyer's locale by default. Formatting options can be passed in as
45
+ * options.
46
+ *
47
+ * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat0
48
+ * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat#using_options
49
+ *
50
+ * @param options.inExtensionLocale - if true, use the extension's locale
51
+ */
52
+ formatDate: (date: Date, options?: {
53
+ inExtensionLocale?: boolean;
54
+ } & Intl.DateTimeFormatOptions) => string;
55
+ /**
56
+ * Returns translated content in the buyer's locale,
57
+ * as supported by the extension.
58
+ *
59
+ * - `options.count` is a special numeric value used in pluralization.
60
+ * - The other option keys and values are treated as replacements for interpolation.
61
+ * - If the replacements are all primitives, then `translate()` returns a single string.
62
+ * - If replacements contain UI components, then `translate()` returns an array of elements.
63
+ */
64
+ translate: I18nTranslate;
65
+ }
66
+ //# sourceMappingURL=api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/api.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;CACjC;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;;;OAIG;IACH,CAAC,eAAe,GAAG,MAAM,EACvB,GAAG,EAAE,MAAM,EACX,OAAO,CAAC,EAAE;QAAC,CAAC,cAAc,EAAE,MAAM,GAAG,eAAe,GAAG,MAAM,GAAG,MAAM,CAAA;KAAC,GACtE,eAAe,SAAS,MAAM,GAAG,MAAM,GACtC,MAAM,GACN,CAAC,MAAM,GAAG,eAAe,CAAC,EAAE,CAAC;CAClC;AAED,MAAM,WAAW,IAAI;IACnB;;;;;;;OAOG;IACH,YAAY,EAAE,CACZ,MAAM,EAAE,MAAM,GAAG,MAAM,EACvB,OAAO,CAAC,EAAE;QAAC,iBAAiB,CAAC,EAAE,OAAO,CAAA;KAAC,GAAG,IAAI,CAAC,mBAAmB,KAC/D,MAAM,CAAC;IAEZ;;;;;;;OAOG;IACH,cAAc,EAAE,CACd,MAAM,EAAE,MAAM,GAAG,MAAM,EACvB,OAAO,CAAC,EAAE;QAAC,iBAAiB,CAAC,EAAE,OAAO,CAAA;KAAC,GAAG,IAAI,CAAC,mBAAmB,KAC/D,MAAM,CAAC;IAEZ;;;;;;;;;;;OAWG;IACH,UAAU,EAAE,CACV,IAAI,EAAE,IAAI,EACV,OAAO,CAAC,EAAE;QAAC,iBAAiB,CAAC,EAAE,OAAO,CAAA;KAAC,GAAG,IAAI,CAAC,qBAAqB,KACjE,MAAM,CAAC;IAEZ;;;;;;;;OAQG;IACH,SAAS,EAAE,aAAa,CAAC;CAC1B"}
@@ -0,0 +1,15 @@
1
+ import type { RemoteRoot, RemoteChannel, RemoteComponentType } from '@remote-ui/core';
2
+ export interface Extension<Api, Result> {
3
+ (api: Api): Result;
4
+ }
5
+ export interface RenderExtensionConnection<AllowedComponents extends RemoteComponentType<string, any, any> = RemoteComponentType<any, any, any>> {
6
+ readonly channel: RemoteChannel;
7
+ readonly components: AllowedComponents;
8
+ }
9
+ export interface RenderExtension<Api, AllowedComponents extends RemoteComponentType<string, any, any> = RemoteComponentType<any, any, any>> {
10
+ (connection: RenderExtensionConnection<AllowedComponents>, api: Api): void | Promise<void>;
11
+ }
12
+ export interface RenderExtensionWithRemoteRoot<Api, AllowedComponents extends RemoteComponentType<string, any, any> = RemoteComponentType<any, any, any>> {
13
+ (root: RemoteRoot<AllowedComponents, AllowedComponents>, api: Api): void | Promise<void>;
14
+ }
15
+ //# sourceMappingURL=extension.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extension.d.ts","sourceRoot":"","sources":["../../src/extension.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,aAAa,EACb,mBAAmB,EACpB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,WAAW,SAAS,CAAC,GAAG,EAAE,MAAM;IACpC,CAAC,GAAG,EAAE,GAAG,GAAG,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,yBAAyB,CACxC,iBAAiB,SAAS,mBAAmB,CAC3C,MAAM,EACN,GAAG,EACH,GAAG,CACJ,GAAG,mBAAmB,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;IAEtC,QAAQ,CAAC,OAAO,EAAE,aAAa,CAAC;IAChC,QAAQ,CAAC,UAAU,EAAE,iBAAiB,CAAC;CACxC;AAED,MAAM,WAAW,eAAe,CAC9B,GAAG,EACH,iBAAiB,SAAS,mBAAmB,CAC3C,MAAM,EACN,GAAG,EACH,GAAG,CACJ,GAAG,mBAAmB,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;IAEtC,CACE,UAAU,EAAE,yBAAyB,CAAC,iBAAiB,CAAC,EACxD,GAAG,EAAE,GAAG,GACP,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACzB;AAED,MAAM,WAAW,6BAA6B,CAC5C,GAAG,EACH,iBAAiB,SAAS,mBAAmB,CAC3C,MAAM,EACN,GAAG,EACH,GAAG,CACJ,GAAG,mBAAmB,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;IAEtC,CACE,IAAI,EAAE,UAAU,CAAC,iBAAiB,EAAE,iBAAiB,CAAC,EACtD,GAAG,EAAE,GAAG,GACP,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACzB"}
@@ -0,0 +1,3 @@
1
+ export * from './api';
2
+ export * from './extension';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,aAAa,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { RemoteComponentType } from '@remote-ui/core';
2
+ export type ComponentsBuilder<ComponentTypes> = {
3
+ [K in keyof ComponentTypes]: ComponentTypes[K] extends RemoteComponentType<any, any> ? ComponentTypes[K] : never;
4
+ };
5
+ export type AnyComponentBuilder<ComponentTypes> = ComponentsBuilder<ComponentTypes>[keyof ComponentsBuilder<ComponentTypes>];
6
+ //# sourceMappingURL=shared.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../src/shared.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,iBAAiB,CAAC;AAEzD,MAAM,MAAM,iBAAiB,CAAC,cAAc,IAAI;KAC7C,CAAC,IAAI,MAAM,cAAc,GAAG,cAAc,CAAC,CAAC,CAAC,SAAS,mBAAmB,CACxE,GAAG,EACH,GAAG,CACJ,GACG,cAAc,CAAC,CAAC,CAAC,GACjB,KAAK;CACV,CAAC;AAEF,MAAM,MAAM,mBAAmB,CAAC,cAAc,IAC5C,iBAAiB,CAAC,cAAc,CAAC,CAAC,MAAM,iBAAiB,CAAC,cAAc,CAAC,CAAC,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { StandardApi } from '../standard/standard';
2
+ import type { I18n } from '../../../../api';
3
+ import type { ExtensionPoint as AnyExtensionPoint } from '../../extension-points';
4
+ type CustomerSegmentationFeature = 'productsPurchasedByTags' | 'aggregateFilters';
5
+ export interface CustomerSegmentationTemplateApi<ExtensionPoint extends AnyExtensionPoint> extends StandardApi<ExtensionPoint> {
6
+ i18n: I18n;
7
+ /** @private */
8
+ __enabledFeatures: CustomerSegmentationFeature[];
9
+ }
10
+ export {};
11
+ //# sourceMappingURL=customer-segmentation-template.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customer-segmentation-template.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/api/customer-segmentation-template/customer-segmentation-template.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,sBAAsB,CAAC;AACtD,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,iBAAiB,CAAC;AAC1C,OAAO,KAAK,EAAC,cAAc,IAAI,iBAAiB,EAAC,MAAM,wBAAwB,CAAC;AAGhF,KAAK,2BAA2B,GAE5B,yBAAyB,GAEzB,kBAAkB,CAAC;AAEvB,MAAM,WAAW,+BAA+B,CAC9C,cAAc,SAAS,iBAAiB,CACxC,SAAQ,WAAW,CAAC,cAAc,CAAC;IAEnC,IAAI,EAAE,IAAI,CAAC;IACX,eAAe;IACf,iBAAiB,EAAE,2BAA2B,EAAE,CAAC;CAClD"}
@@ -0,0 +1,12 @@
1
+ import type { StandardApi as BaseStandardApi } from '../../../../api';
2
+ import type { ExtensionPoint as AnyExtensionPoint } from '../../extension-points';
3
+ /**
4
+ * The following APIs are provided to all extension points.
5
+ */
6
+ export interface StandardApi<ExtensionPoint extends AnyExtensionPoint> extends BaseStandardApi {
7
+ /**
8
+ * The identifier of the running extension point.
9
+ */
10
+ extensionPoint: ExtensionPoint;
11
+ }
12
+ //# sourceMappingURL=standard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"standard.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/api/standard/standard.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,IAAI,eAAe,EAAC,MAAM,iBAAiB,CAAC;AACpE,OAAO,KAAK,EAAC,cAAc,IAAI,iBAAiB,EAAC,MAAM,wBAAwB,CAAC;AAEhF;;GAEG;AACH,MAAM,WAAW,WAAW,CAAC,cAAc,SAAS,iBAAiB,CACnE,SAAQ,eAAe;IACvB;;OAEG;IACH,cAAc,EAAE,cAAc,CAAC;CAChC"}
@@ -0,0 +1,4 @@
1
+ export type { I18n, I18nTranslate } from '../../api';
2
+ export type { StandardApi } from './api/standard/standard';
3
+ export type { CustomerSegmentationTemplateApi } from './api/customer-segmentation-template/customer-segmentation-template';
4
+ //# sourceMappingURL=api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../src/surfaces/admin/api.ts"],"names":[],"mappings":"AAAA,YAAY,EAAC,IAAI,EAAE,aAAa,EAAC,MAAM,WAAW,CAAC;AACnD,YAAY,EAAC,WAAW,EAAC,MAAM,yBAAyB,CAAC;AACzD,YAAY,EAAC,+BAA+B,EAAC,MAAM,qEAAqE,CAAC"}
@@ -0,0 +1,20 @@
1
+ type Status = 'success' | 'info' | 'attention' | 'warning' | 'new';
2
+ export interface BadgeProps {
3
+ /** The content to display inside the badge. */
4
+ message: string;
5
+ /**
6
+ * Set the colour of the badge for the given status.
7
+ * @defaultValue none
8
+ */
9
+ status?: Status;
10
+ }
11
+ /**
12
+ * Badges are used to inform merchants of the status of an object, or the status of an action that’s been taken.
13
+ */
14
+ export declare const Badge: "Badge" & {
15
+ readonly type?: "Badge" | undefined;
16
+ readonly props?: BadgeProps | undefined;
17
+ readonly children?: true | undefined;
18
+ };
19
+ export {};
20
+ //# sourceMappingURL=Badge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/Badge/Badge.ts"],"names":[],"mappings":"AAEA,KAAK,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,WAAW,GAAG,SAAS,GAAG,KAAK,CAAC;AAEnE,MAAM,WAAW,UAAU;IACzB,+CAA+C;IAC/C,OAAO,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,eAAO,MAAM,KAAK;;;;CAAsD,CAAC"}
@@ -0,0 +1,28 @@
1
+ export type BannerStatus = 'critical' | 'info' | 'success' | 'warning';
2
+ export interface BannerAction {
3
+ /** Callback when the Banner action button is pressed. */
4
+ onAction: () => void;
5
+ /** Button label text. */
6
+ content: string;
7
+ }
8
+ export interface BannerProps {
9
+ /** Button to display at bottom of banner. */
10
+ action?: BannerAction;
11
+ /** Callback fired when banner is dismissed. */
12
+ onDismiss?: () => void;
13
+ /** Visual treatment of the banner based on message purpose. */
14
+ status?: BannerStatus;
15
+ /** Title of the banner. */
16
+ title?: string;
17
+ }
18
+ /**
19
+ * Banners inform merchants about important changes or persistent conditions. Use this component if you need to communicate to merchants in a prominent way.
20
+ *
21
+ * [Learn more about best practices and guidelines on using Banners](https://polaris.shopify.com/components/feedback-indicators/banner#section-best-practices).
22
+ */
23
+ export declare const Banner: "Banner" & {
24
+ readonly type?: "Banner" | undefined;
25
+ readonly props?: BannerProps | undefined;
26
+ readonly children?: true | undefined;
27
+ };
28
+ //# sourceMappingURL=Banner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Banner.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/Banner/Banner.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,YAAY,GAAG,UAAU,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,CAAC;AAEvE,MAAM,WAAW,YAAY;IAC3B,yDAAyD;IACzD,QAAQ,EAAE,MAAM,IAAI,CAAC;IAErB,yBAAyB;IACzB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,WAAW;IAC1B,6CAA6C;IAC7C,MAAM,CAAC,EAAE,YAAY,CAAC;IAEtB,+CAA+C;IAC/C,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IAEvB,+DAA+D;IAC/D,MAAM,CAAC,EAAE,YAAY,CAAC;IAEtB,2BAA2B;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;GAIG;AACH,eAAO,MAAM,MAAM;;;;CAAyD,CAAC"}
@@ -0,0 +1,25 @@
1
+ import type { Spacing } from '../shared';
2
+ export interface BlockStackProps {
3
+ /**
4
+ * Specifies the inline alignment. This affects the horizontal flow of elements.
5
+ * @defaultValue `leading`
6
+ */
7
+ inlineAlignment?: 'leading' | 'center' | 'trailing';
8
+ /**
9
+ * Adjusts spacing between children.
10
+ * @defaultValue 'base'
11
+ **/
12
+ spacing?: Spacing;
13
+ }
14
+ /**
15
+ * Use to achieve no-fuss vertical centering.
16
+ *
17
+ * A stack is made of flexible items that wrap each of the stack’s children. Options provide control of the alignment and spacing of the items in the stack.
18
+ * Use `StackItem` to group multiple elements inside a `BlockStack` together.
19
+ */
20
+ export declare const BlockStack: "BlockStack" & {
21
+ readonly type?: "BlockStack" | undefined;
22
+ readonly props?: BlockStackProps | undefined;
23
+ readonly children?: true | undefined;
24
+ };
25
+ //# sourceMappingURL=BlockStack.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BlockStack.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/BlockStack/BlockStack.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAEvC,MAAM,WAAW,eAAe;IAC9B;;;OAGG;IACH,eAAe,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,UAAU,CAAC;IAEpD;;;QAGI;IACJ,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;;;;GAKG;AACH,eAAO,MAAM,UAAU;;;;CAEtB,CAAC"}
@@ -0,0 +1,66 @@
1
+ import { IconProps } from '../Icon/Icon';
2
+ type RequiredTitleOrIcon = {
3
+ /** Button label text */
4
+ title: string;
5
+ icon?: IconProps;
6
+ } | {
7
+ /** Button label text */
8
+ title?: string;
9
+ icon: IconProps;
10
+ };
11
+ export interface BaseButtonProps {
12
+ /**
13
+ * The type of button that will be rendered.
14
+ *
15
+ * `primary`: button used for main actions or green-path. Ex: Continue to next step, Discount field
16
+ * `secondary`: button used for secondary actions not blocking user progress. Ex: Download Shop app
17
+ * `plain`: Renders a button that visually looks like a Link
18
+ * @default 'secondary'
19
+ */
20
+ kind?: 'primary' | 'secondary' | 'plain';
21
+ /**
22
+ * Specifies the color of the Button. The button will keep the style of the chosen `kind`,
23
+ * but replace its color according to the appearance.
24
+ *
25
+ * `monochrome`: button will inherit the color of its parent
26
+ * `critical`: button will take inherit the color of the Critical color group (in Checkout)
27
+ * and map to 'destructive' (in Admin/Polaris). Typically used for destructive actions.
28
+ *
29
+ */
30
+ appearance?: 'critical';
31
+ /** Changes the size of the button
32
+ * @default 'base'
33
+ */
34
+ size?: 'base' | 'large';
35
+ /**
36
+ * Whether the button should fill all available inline space.
37
+ * */
38
+ inlineSize?: 'fill';
39
+ /**
40
+ * Replaces content with a loading indicator
41
+ */
42
+ loading?: boolean;
43
+ /**
44
+ * A label that will be announced to buyers using assistive technologies
45
+ */
46
+ accessibilityLabel?: string;
47
+ /**
48
+ * Disables the button, disallowing any interaction
49
+ */
50
+ disabled?: boolean;
51
+ /**
52
+ * Callback when pressed
53
+ */
54
+ onPress?(): void;
55
+ }
56
+ export type ButtonProps = RequiredTitleOrIcon & BaseButtonProps;
57
+ /**
58
+ * Buttons are used primarily for actions, such as “Add”, “Close”, “Cancel”, or “Save”.
59
+ */
60
+ export declare const Button: "Button" & {
61
+ readonly type?: "Button" | undefined;
62
+ readonly props?: ButtonProps | undefined;
63
+ readonly children?: true | undefined;
64
+ };
65
+ export {};
66
+ //# sourceMappingURL=Button.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/Button/Button.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAEvC,KAAK,mBAAmB,GACpB;IACE,wBAAwB;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB,GACD;IACE,wBAAwB;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,SAAS,CAAC;CACjB,CAAC;AAEN,MAAM,WAAW,eAAe;IAC9B;;;;;;;OAOG;IACH,IAAI,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,OAAO,CAAC;IACzC;;;;;;;;OAQG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IACxB;;SAEK;IACL,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,OAAO,CAAC,IAAI,IAAI,CAAC;CAClB;AAED,MAAM,MAAM,WAAW,GAAG,mBAAmB,GAAG,eAAe,CAAC;AAEhE;;GAEG;AACH,eAAO,MAAM,MAAM;;;;CAAyD,CAAC"}