@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,76 @@
1
+ export { Banner } from './components/Banner/Banner';
2
+ export type { BannerProps } from './components/Banner/Banner';
3
+ export { BlockLayout } from './components/BlockLayout/BlockLayout';
4
+ export type { BlockLayoutProps } from './components/BlockLayout/BlockLayout';
5
+ export { BlockSpacer } from './components/BlockSpacer/BlockSpacer';
6
+ export type { BlockSpacerProps } from './components/BlockSpacer/BlockSpacer';
7
+ export { BlockStack } from './components/BlockStack/BlockStack';
8
+ export type { BlockStackProps } from './components/BlockStack/BlockStack';
9
+ export { Button } from './components/Button/Button';
10
+ export type { ButtonProps } from './components/Button/Button';
11
+ export { Checkbox } from './components/Checkbox/Checkbox';
12
+ export type { CheckboxProps } from './components/Checkbox/Checkbox';
13
+ export { Choice } from './components/Choice/Choice';
14
+ export type { ChoiceProps } from './components/Choice/Choice';
15
+ export { ChoiceList } from './components/ChoiceList/ChoiceList';
16
+ export type { ChoiceListProps } from './components/ChoiceList/ChoiceList';
17
+ export { Divider } from './components/Divider/Divider';
18
+ export type { DividerProps } from './components/Divider/Divider';
19
+ export { Form } from './components/Form/Form';
20
+ export type { FormProps } from './components/Form/Form';
21
+ export { Grid } from './components/Grid/Grid';
22
+ export type { GridProps } from './components/Grid/Grid';
23
+ export { GridItem } from './components/GridItem/GridItem';
24
+ export type { GridItemProps } from './components/GridItem/GridItem';
25
+ export { Heading } from './components/Heading/Heading';
26
+ export type { HeadingProps } from './components/Heading/Heading';
27
+ export { HeadingGroup } from './components/HeadingGroup/HeadingGroup';
28
+ export type { HeadingGroupProps } from './components/HeadingGroup/HeadingGroup';
29
+ export { Icon } from './components/Icon/Icon';
30
+ export type { IconProps } from './components/Icon/Icon';
31
+ export { Image } from './components/Image/Image';
32
+ export type { ImageProps } from './components/Image/Image';
33
+ export { InlineLayout } from './components/InlineLayout/InlineLayout';
34
+ export type { InlineLayoutProps } from './components/InlineLayout/InlineLayout';
35
+ export { InlineStack } from './components/InlineStack/InlineStack';
36
+ export type { InlineStackProps } from './components/InlineStack/InlineStack';
37
+ export { InlineSpacer } from './components/InlineSpacer/InlineSpacer';
38
+ export type { InlineSpacerProps } from './components/InlineSpacer/InlineSpacer';
39
+ export { Link } from './components/Link/Link';
40
+ export type { LinkProps } from './components/Link/Link';
41
+ export { List } from './components/List/List';
42
+ export type { ListProps } from './components/List/List';
43
+ export { ListItem } from './components/ListItem/ListItem';
44
+ export type { ListItemProps } from './components/ListItem/ListItem';
45
+ export { PhoneField } from './components/PhoneField/PhoneField';
46
+ export type { PhoneFieldProps } from './components/PhoneField/PhoneField';
47
+ export { Pressable } from './components/Pressable/Pressable';
48
+ export type { PressableProps } from './components/Pressable/Pressable';
49
+ export { ScrollView } from './components/ScrollView/ScrollView';
50
+ export type { ScrollViewProps, ScrollViewEvent, } from './components/ScrollView/ScrollView';
51
+ export { Select } from './components/Select/Select';
52
+ export type { SelectProps } from './components/Select/Select';
53
+ export { SkeletonImage } from './components/SkeletonImage/SkeletonImage';
54
+ export type { SkeletonImageProps } from './components/SkeletonImage/SkeletonImage';
55
+ export { SkeletonText } from './components/SkeletonText/SkeletonText';
56
+ export type { SkeletonTextProps } from './components/SkeletonText/SkeletonText';
57
+ export { SkeletonTextBlock } from './components/SkeletonTextBlock/SkeletonTextBlock';
58
+ export type { SkeletonTextBlockProps } from './components/SkeletonTextBlock/SkeletonTextBlock';
59
+ export { Spinner } from './components/Spinner/Spinner';
60
+ export type { SpinnerProps } from './components/Spinner/Spinner';
61
+ export { Stepper } from './components/Stepper/Stepper';
62
+ export type { StepperProps } from './components/Stepper/Stepper';
63
+ export { Tag } from './components/Tag/Tag';
64
+ export type { TagProps } from './components/Tag/Tag';
65
+ export { Text } from './components/Text/Text';
66
+ export type { TextProps } from './components/Text/Text';
67
+ export { TextBlock } from './components/TextBlock/TextBlock';
68
+ export type { TextBlockProps } from './components/TextBlock/TextBlock';
69
+ export { TextField } from './components/TextField/TextField';
70
+ export type { TextFieldProps } from './components/TextField/TextField';
71
+ export { Tooltip } from './components/Tooltip/Tooltip';
72
+ export type { TooltipProps } from './components/Tooltip/Tooltip';
73
+ export { View } from './components/View/View';
74
+ export type { ViewProps, Coordinate as ViewCoordinate, Position as ViewPosition, PositionType as ViewPositionType, Translate as ViewTranslate, } from './components/View/View';
75
+ export type { AccessibilityRole, ViewLikeAccessibilityRole, NonPresentationalAccessibilityRole, Autocomplete, AutocompleteField, AutocompleteGroup, Background, BackgroundFit, BackgroundPosition, BackgroundRepeat, BlockAlignment, InlineAlignment, BorderRadius, BorderStyle, BorderWidth, Breakpoint, CornerRadius, ShorthandProperty, MaybeShorthandProperty, Fit, Status, Size, Spacing, Alignment, Appearance, GridItemSize, Columns, Rows, BackgroundProps, BorderProps, CornerProps, SizingProps, SpacingProps, VisibilityProps, OverlayActivatorProps, } from './components/shared';
76
+ //# sourceMappingURL=components.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../../src/surfaces/checkout/components.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,98 @@
1
+ import type { RenderExtension } from '../../extension';
2
+ import type { AnyComponent } from './shared';
3
+ import type { StandardApi, CartLineDetailsRenderAfterApi } from './api';
4
+ export interface ExtensionPoints {
5
+ /**
6
+ * A [dynamic extension point](https://shopify.dev/api/checkout-extensions/checkout#extension-points) that isn't tied to a specific checkout section or feature.
7
+ * Unlike static extension points, dynamic extension points render where the merchant
8
+ * sets them using the [checkout editor](https://shopify.dev/apps/checkout/test-ui-extensions#test-the-extension-in-the-checkout-editor).
9
+ *`
10
+ * The [supported locations](https://shopify.dev/api/checkout-extensions/checkout#supported-locations) for dynamic extension points can be previewed during development
11
+ * by [using a URL parameter](https://shopify.dev/apps/checkout/test-ui-extensions#dynamic-extension-points).
12
+ */
13
+ 'Checkout::Dynamic::Render': RenderExtension<StandardApi<'Checkout::Dynamic::Render'>, AnyComponent>;
14
+ /**
15
+ * A static extension point that renders on every line item, inside the details
16
+ * under the line item properties element.
17
+ */
18
+ 'Checkout::CartLineDetails::RenderAfter': RenderExtension<CartLineDetailsRenderAfterApi, AnyComponent>;
19
+ /**
20
+ * A static extension point that is rendered after all line items.
21
+ */
22
+ 'Checkout::CartLines::RenderAfter': RenderExtension<StandardApi<'Checkout::CartLines::RenderAfter'>, AnyComponent>;
23
+ /**
24
+ * A static extension point that is rendered between the shipping address header
25
+ * and shipping address form elements.
26
+ */
27
+ 'Checkout::DeliveryAddress::RenderBefore': RenderExtension<StandardApi<'Checkout::DeliveryAddress::RenderBefore'>, AnyComponent>;
28
+ /**
29
+ * A static extension point that is rendered between the shipping method
30
+ * header and shipping method options.
31
+ */
32
+ 'Checkout::ShippingMethods::RenderBefore': RenderExtension<StandardApi<'Checkout::ShippingMethods::RenderBefore'>, AnyComponent>;
33
+ /**
34
+ * A static extension point that is rendered after the shipping method
35
+ * options.
36
+ */
37
+ 'Checkout::ShippingMethods::RenderAfter': RenderExtension<StandardApi<'Checkout::ShippingMethods::RenderAfter'>, AnyComponent>;
38
+ /**
39
+ * A static extension point that is rendered in the order summary, before the discount form element.
40
+ */
41
+ 'Checkout::Reductions::RenderBefore': RenderExtension<StandardApi<'Checkout::Reductions::RenderBefore'>, AnyComponent>;
42
+ /**
43
+ * A static extension point that is rendered in the order summary, after the discount form
44
+ * and discount tag elements.
45
+ */
46
+ 'Checkout::Reductions::RenderAfter': RenderExtension<StandardApi<'Checkout::Reductions::RenderAfter'>, AnyComponent>;
47
+ /**
48
+ * A static extension point that is rendered immediately before any actions within each step.
49
+ */
50
+ 'Checkout::Actions::RenderBefore': RenderExtension<StandardApi<'Checkout::Actions::RenderBefore'>, AnyComponent>;
51
+ /**
52
+ * A static extension point that is rendered immediately after the contact form element.
53
+ */
54
+ 'Checkout::Contact::RenderAfter': RenderExtension<StandardApi<'Checkout::Contact::RenderAfter'>, AnyComponent>;
55
+ }
56
+ export type ExtensionPoint = keyof ExtensionPoints;
57
+ export type ExtensionForExtensionPoint<T extends ExtensionPoint> = ExtensionPoints[T];
58
+ /**
59
+ * For a given extension point, returns the value that is expected to be
60
+ * returned by that extension point’s callback type.
61
+ */
62
+ export type ReturnTypeForExtension<ID extends keyof ExtensionPoints> = ReturnType<ExtensionPoints[ID]>;
63
+ /**
64
+ * For a given extension point, returns the tuple of arguments that would
65
+ * be provided to that extension point’s callback type.
66
+ */
67
+ export type ArgumentsForExtension<ID extends keyof ExtensionPoints> = Parameters<ExtensionPoints[ID]>;
68
+ /**
69
+ * A union type containing all of the extension points that follow the pattern of
70
+ * accepting a [`@remote-ui/core` `RemoteRoot`](https://github.com/Shopify/remote-ui/tree/main/packages/core)
71
+ * and an additional `api` argument, and using those arguments to render
72
+ * UI.
73
+ */
74
+ export type RenderExtensionPoint = {
75
+ [ID in keyof ExtensionPoints]: ExtensionPoints[ID] extends RenderExtension<any, any> ? ID : never;
76
+ }[keyof ExtensionPoints];
77
+ /**
78
+ * A mapping of each “render extension” name to its callback type.
79
+ */
80
+ export type RenderExtensions = {
81
+ [ID in RenderExtensionPoint]: ExtensionPoints[ID];
82
+ };
83
+ type ExtractedApiFromRenderExtension<T> = T extends RenderExtension<infer Api, any> ? Api : never;
84
+ type ExtractedAllowedComponentsFromRenderExtension<T> = T extends RenderExtension<any, infer Components> ? Components : never;
85
+ /**
86
+ * For a given rendering extension point, returns the type of the API that the
87
+ * extension will receive at runtime. This API type is the second argument to
88
+ * the callback for that extension point. The first callback for all of the rendering
89
+ * extension points each receive a `RemoteRoot` object.
90
+ */
91
+ export type ApiForRenderExtension<ID extends keyof RenderExtensions> = ExtractedApiFromRenderExtension<RenderExtensions[ID]>;
92
+ /**
93
+ * For a given rendering extension point, returns the UI components that the
94
+ * extension point supports.
95
+ */
96
+ export type AllowedComponentsForRenderExtension<ID extends keyof RenderExtensions> = ExtractedAllowedComponentsFromRenderExtension<RenderExtensions[ID]>;
97
+ export {};
98
+ //# sourceMappingURL=extension-points.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extension-points.d.ts","sourceRoot":"","sources":["../../../../src/surfaces/checkout/extension-points.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,5 @@
1
+ import type { ExtensionPoints } from './extension-points';
2
+ export * from '../../extension';
3
+ export declare const extension: import("../../utilities/registration").ExtensionRegistrationFunctionWithRoot<ExtensionPoints>;
4
+ export declare const extend: import("../../utilities/registration").ExtensionRegistrationFunctionWithRoot<ExtensionPoints>;
5
+ //# sourceMappingURL=extension.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extension.d.ts","sourceRoot":"","sources":["../../../../src/surfaces/checkout/extension.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,oBAAoB,CAAC;AAExD,cAAc,iBAAiB,CAAC;AAEhC,eAAO,MAAM,SAAS,+FAAyD,CAAC;AAChF,eAAO,MAAM,MAAM,+FAAY,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { ExtensionPoints } from './extension-points';
2
+ export interface ShopifyGlobal {
3
+ extend<ExtensionPoint extends keyof ExtensionPoints>(extensionPoint: ExtensionPoint, extend: ExtensionPoints[ExtensionPoint]): void;
4
+ reload(): void;
5
+ }
6
+ //# sourceMappingURL=globals.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"globals.d.ts","sourceRoot":"","sources":["../../../../src/surfaces/checkout/globals.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,oBAAoB,CAAC;AAExD,MAAM,WAAW,aAAa;IAC5B,MAAM,CAAC,cAAc,SAAS,MAAM,eAAe,EACjD,cAAc,EAAE,cAAc,EAC9B,MAAM,EAAE,eAAe,CAAC,cAAc,CAAC,GACtC,IAAI,CAAC;IACR,MAAM,IAAI,IAAI,CAAC;CAChB"}
@@ -0,0 +1,6 @@
1
+ import type { ComponentsBuilder, AnyComponentBuilder } from '../../shared';
2
+ type ComponentTypes = typeof import('./components');
3
+ export type Components = ComponentsBuilder<ComponentTypes>;
4
+ export type AnyComponent = AnyComponentBuilder<ComponentTypes>;
5
+ export {};
6
+ //# sourceMappingURL=shared.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../../src/surfaces/checkout/shared.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,iBAAiB,EAAE,mBAAmB,EAAC,MAAM,cAAc,CAAC;AAEzE,KAAK,cAAc,GAAG,cAAc,cAAc,CAAC,CAAC;AAEpD,MAAM,MAAM,UAAU,GAAG,iBAAiB,CAAC,cAAc,CAAC,CAAC;AAC3D,MAAM,MAAM,YAAY,GAAG,mBAAmB,CAAC,cAAc,CAAC,CAAC"}
@@ -0,0 +1,8 @@
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
+ export declare function isEqual<T = {
6
+ [key: string]: any;
7
+ } | any[] | number | boolean | string | null | undefined>(first: T, second: T): boolean;
8
+ //# sourceMappingURL=isEqual.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isEqual.d.ts","sourceRoot":"","sources":["../../../../../src/surfaces/checkout/style/isEqual.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,OAAO,CACrB,CAAC,GACG;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAC,GACpB,GAAG,EAAE,GACL,MAAM,GACN,OAAO,GACP,MAAM,GACN,IAAI,GACJ,SAAS,EACb,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,OAAO,CA2B9B"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=isEqual.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isEqual.test.d.ts","sourceRoot":"","sources":["../../../../../src/surfaces/checkout/style/isEqual.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,13 @@
1
+ type EqualityFn = (a: any, b: any) => boolean;
2
+ export declare const defaultEqualityCheck: EqualityFn;
3
+ export declare function createCacheKeyComparator(equalityCheck: EqualityFn): (prev: unknown[] | IArguments | null, next: unknown[] | IArguments | null) => boolean;
4
+ export interface DefaultMemoizeOptions {
5
+ equalityCheck?: EqualityFn;
6
+ resultEqualityCheck?: EqualityFn;
7
+ maxSize?: number;
8
+ }
9
+ export declare function memoize<F extends (...args: any[]) => any>(func: F, equalityCheckOrOptions?: EqualityFn | DefaultMemoizeOptions): F & {
10
+ clearCache: () => void;
11
+ };
12
+ export {};
13
+ //# sourceMappingURL=memoize.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"memoize.d.ts","sourceRoot":"","sources":["../../../../../src/surfaces/checkout/style/memoize.ts"],"names":[],"mappings":"AAMA,KAAK,UAAU,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,KAAK,OAAO,CAAC;AAwF9C,eAAO,MAAM,oBAAoB,EAAE,UAElC,CAAC;AAEF,wBAAgB,wBAAwB,CAAC,aAAa,EAAE,UAAU,UAExD,OAAO,EAAE,GAAG,UAAU,GAAG,IAAI,QAC7B,OAAO,EAAE,GAAG,UAAU,GAAG,IAAI,KAClC,OAAO,CAeX;AAED,MAAM,WAAW,qBAAqB;IACpC,aAAa,CAAC,EAAE,UAAU,CAAC;IAC3B,mBAAmB,CAAC,EAAE,UAAU,CAAC;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAID,wBAAgB,OAAO,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EACvD,IAAI,EAAE,CAAC,EACP,sBAAsB,CAAC,EAAE,UAAU,GAAG,qBAAqB;gBA8CvB,MAAM,IAAI;EAC/C"}
@@ -0,0 +1,70 @@
1
+ import { Conditions, ConditionalStyle, BaseConditions } from './types';
2
+ type Chainable<TConditionalStyle> = TConditionalStyle extends ConditionalStyle<infer T, infer TAcceptedConditions> ? TConditionalStyle & {
3
+ when: <U, AcceptedConditions extends BaseConditions = TAcceptedConditions>(this: TConditionalStyle, conditions: AcceptedConditions, value: U) => Chainable<TConditionalStyle extends {
4
+ default: T;
5
+ } ? Required<ConditionalStyle<U, AcceptedConditions>> : ConditionalStyle<U, AcceptedConditions>>;
6
+ } : never;
7
+ type WhenContext<T, AcceptedConditions extends BaseConditions = Conditions> = typeof Style | ConditionalStyle<T, AcceptedConditions> | Required<ConditionalStyle<T, AcceptedConditions>>;
8
+ type WhenReturnType<T, TContext extends WhenContext<any, AcceptedConditions>, AcceptedConditions extends BaseConditions = Conditions> = Chainable<TContext extends typeof Style ? ConditionalStyle<T, AcceptedConditions> : TContext extends {
9
+ default: infer U;
10
+ } ? Required<ConditionalStyle<T | U, AcceptedConditions>> : TContext extends {
11
+ default?: infer U;
12
+ } ? ConditionalStyle<T | U, AcceptedConditions> : ConditionalStyle<T, AcceptedConditions>>;
13
+ interface WhenFunction {
14
+ <T, TContext extends WhenContext<any, AcceptedConditions>, AcceptedConditions extends BaseConditions = Conditions>(this: TContext, conditions: AcceptedConditions, value: T): WhenReturnType<T, TContext, AcceptedConditions>;
15
+ }
16
+ /**
17
+ * Style is a helper for authoring conditional values for prop styles.
18
+ * Write complex conditional styles based on one or more conditions (viewport
19
+ * sizes and interactive states) in a concise and expressive way.
20
+ */
21
+ export declare const Style: {
22
+ /**
23
+ * Sets an optional default value to use when no other condition is met.
24
+ *
25
+ * @param defaultValue The default value
26
+ * @returns The chainable condition style
27
+ */
28
+ readonly default: (<T, AcceptedConditions extends BaseConditions = Conditions>(defaultValue: T) => Required<ConditionalStyle<T, AcceptedConditions>> & {
29
+ when: <U, AcceptedConditions_1 extends BaseConditions = AcceptedConditions>(this: Required<ConditionalStyle<T, AcceptedConditions>>, conditions: AcceptedConditions_1, value: U) => Required<ConditionalStyle<U, AcceptedConditions_1>> & {
30
+ when: <U_1, AcceptedConditions_2 extends BaseConditions = AcceptedConditions_1>(this: Required<ConditionalStyle<U, AcceptedConditions_1>>, conditions: AcceptedConditions_2, value: U_1) => Required<ConditionalStyle<U_1, AcceptedConditions_2>> & {
31
+ when: <U_2, AcceptedConditions_3 extends BaseConditions = AcceptedConditions_2>(this: Required<ConditionalStyle<U_1, AcceptedConditions_2>>, conditions: AcceptedConditions_3, value: U_2) => Required<ConditionalStyle<U_2, AcceptedConditions_3>> & {
32
+ when: <U_3, AcceptedConditions_4 extends BaseConditions = AcceptedConditions_3>(this: Required<ConditionalStyle<U_2, AcceptedConditions_3>>, conditions: AcceptedConditions_4, value: U_3) => Required<ConditionalStyle<U_3, AcceptedConditions_4>> & {
33
+ when: <U_4, AcceptedConditions_5 extends BaseConditions = AcceptedConditions_4>(this: Required<ConditionalStyle<U_3, AcceptedConditions_4>>, conditions: AcceptedConditions_5, value: U_4) => Required<ConditionalStyle<U_4, AcceptedConditions_5>> & {
34
+ when: <U_5, AcceptedConditions_6 extends BaseConditions = AcceptedConditions_5>(this: Required<ConditionalStyle<U_4, AcceptedConditions_5>>, conditions: AcceptedConditions_6, value: U_5) => Required<ConditionalStyle<U_5, AcceptedConditions_6>> & {
35
+ when: <U_6, AcceptedConditions_7 extends BaseConditions = AcceptedConditions_6>(this: Required<ConditionalStyle<U_5, AcceptedConditions_6>>, conditions: AcceptedConditions_7, value: U_6) => Required<ConditionalStyle<U_6, AcceptedConditions_7>> & {
36
+ when: <U_7, AcceptedConditions_8 extends BaseConditions = AcceptedConditions_7>(this: Required<ConditionalStyle<U_6, AcceptedConditions_7>>, conditions: AcceptedConditions_8, value: U_7) => Required<ConditionalStyle<U_7, AcceptedConditions_8>> & {
37
+ when: <U_8, AcceptedConditions_9 extends BaseConditions = AcceptedConditions_8>(this: Required<ConditionalStyle<U_7, AcceptedConditions_8>>, conditions: AcceptedConditions_9, value: U_8) => Required<ConditionalStyle<U_8, AcceptedConditions_9>> & {
38
+ when: <U_9, AcceptedConditions_10 extends BaseConditions = AcceptedConditions_9>(this: Required<ConditionalStyle<U_8, AcceptedConditions_9>>, conditions: AcceptedConditions_10, value: U_9) => Required<ConditionalStyle<U_9, AcceptedConditions_10>> & {
39
+ when: <U_10, AcceptedConditions_11 extends BaseConditions = AcceptedConditions_10>(this: Required<ConditionalStyle<U_9, AcceptedConditions_10>>, conditions: AcceptedConditions_11, value: U_10) => Required<ConditionalStyle<U_10, AcceptedConditions_11>> & any;
40
+ };
41
+ };
42
+ };
43
+ };
44
+ };
45
+ };
46
+ };
47
+ };
48
+ };
49
+ };
50
+ }) & {
51
+ clearCache: () => void;
52
+ };
53
+ /**
54
+ * Adjusts the style based on different conditions. All conditions, expressed
55
+ * as a literal object, must be met for the associated value to be applied.
56
+ *
57
+ * The `when` method can be chained together to build more complex styles.
58
+ *
59
+ * @param conditions The condition(s)
60
+ * @param value The conditional value that can be applied if the conditions are met
61
+ * @returns The chainable condition style
62
+ */
63
+ readonly when: WhenFunction & {
64
+ clearCache: () => void;
65
+ };
66
+ };
67
+ export declare function isConditionalStyle<T, AcceptedConditions extends BaseConditions = Conditions>(value?: any): value is ConditionalStyle<T, AcceptedConditions>;
68
+ export declare function isConditionalStyleWithDefault<T, AcceptedConditions extends BaseConditions = Conditions>(value?: any): value is Required<ConditionalStyle<T, AcceptedConditions>>;
69
+ export {};
70
+ //# sourceMappingURL=style.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../../../src/surfaces/checkout/style/style.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,UAAU,EAAE,gBAAgB,EAAE,cAAc,EAAC,MAAM,SAAS,CAAC;AAUrE,KAAK,SAAS,CAAC,iBAAiB,IAAI,iBAAiB,SAAS,gBAAgB,CAC5E,MAAM,CAAC,EACP,MAAM,mBAAmB,CAC1B,GACG,iBAAiB,GAAG;IAClB,IAAI,EAAE,CACJ,CAAC,EACD,kBAAkB,SAAS,cAAc,GAAG,mBAAmB,EAE/D,IAAI,EAAE,iBAAiB,EACvB,UAAU,EAAE,kBAAkB,EAC9B,KAAK,EAAE,CAAC,KACL,SAAS,CACZ,iBAAiB,SAAS;QAAC,OAAO,EAAE,CAAC,CAAA;KAAC,GAClC,QAAQ,CAAC,gBAAgB,CAAC,CAAC,EAAE,kBAAkB,CAAC,CAAC,GACjD,gBAAgB,CAAC,CAAC,EAAE,kBAAkB,CAAC,CAC5C,CAAC;CACH,GACD,KAAK,CAAC;AAEV,KAAK,WAAW,CAAC,CAAC,EAAE,kBAAkB,SAAS,cAAc,GAAG,UAAU,IACtE,OAAO,KAAK,GACZ,gBAAgB,CAAC,CAAC,EAAE,kBAAkB,CAAC,GACvC,QAAQ,CAAC,gBAAgB,CAAC,CAAC,EAAE,kBAAkB,CAAC,CAAC,CAAC;AAEtD,KAAK,cAAc,CACjB,CAAC,EACD,QAAQ,SAAS,WAAW,CAAC,GAAG,EAAE,kBAAkB,CAAC,EACrD,kBAAkB,SAAS,cAAc,GAAG,UAAU,IACpD,SAAS,CACX,QAAQ,SAAS,OAAO,KAAK,GACzB,gBAAgB,CAAC,CAAC,EAAE,kBAAkB,CAAC,GACvC,QAAQ,SAAS;IAAC,OAAO,EAAE,MAAM,CAAC,CAAA;CAAC,GACnC,QAAQ,CAAC,gBAAgB,CAAC,CAAC,GAAG,CAAC,EAAE,kBAAkB,CAAC,CAAC,GACrD,QAAQ,SAAS;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC,CAAA;CAAC,GACpC,gBAAgB,CAAC,CAAC,GAAG,CAAC,EAAE,kBAAkB,CAAC,GAC3C,gBAAgB,CAAC,CAAC,EAAE,kBAAkB,CAAC,CAC5C,CAAC;AAEF,UAAU,YAAY;IACpB,CACE,CAAC,EACD,QAAQ,SAAS,WAAW,CAAC,GAAG,EAAE,kBAAkB,CAAC,EACrD,kBAAkB,SAAS,cAAc,GAAG,UAAU,EAEtD,IAAI,EAAE,QAAQ,EACd,UAAU,EAAE,kBAAkB,EAC9B,KAAK,EAAE,CAAC,GACP,cAAc,CAAC,CAAC,EAAE,QAAQ,EAAE,kBAAkB,CAAC,CAAC;CACpD;AAsBD;;;;GAIG;AACH,eAAO,MAAM,KAAK;IAChB;;;;;OAKG;;;;;;;;;;;;;;;;;;;;;;;;;;IAeH;;;;;;;;;OASG;;;;CAEK,CAAC;AAyBX,wBAAgB,kBAAkB,CAChC,CAAC,EACD,kBAAkB,SAAS,cAAc,GAAG,UAAU,EACtD,KAAK,CAAC,EAAE,GAAG,GAAG,KAAK,IAAI,gBAAgB,CAAC,CAAC,EAAE,kBAAkB,CAAC,CAE/D;AAED,wBAAgB,6BAA6B,CAC3C,CAAC,EACD,kBAAkB,SAAS,cAAc,GAAG,UAAU,EACtD,KAAK,CAAC,EAAE,GAAG,GAAG,KAAK,IAAI,QAAQ,CAAC,gBAAgB,CAAC,CAAC,EAAE,kBAAkB,CAAC,CAAC,CAMzE"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=style.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"style.test.d.ts","sourceRoot":"","sources":["../../../../../src/surfaces/checkout/style/style.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,46 @@
1
+ type Resolution = 1 | 1.3 | 1.5 | 2 | 2.6 | 3 | 3.5 | 4;
2
+ export interface InteractiveConditions {
3
+ hover: true;
4
+ focus: true;
5
+ }
6
+ export interface ResolutionCondition {
7
+ resolution: Resolution;
8
+ }
9
+ type ViewportInlineSize = 'small' | 'medium' | 'large';
10
+ export interface ViewportSizeCondition {
11
+ viewportInlineSize: {
12
+ min: ViewportInlineSize;
13
+ };
14
+ }
15
+ export type AtLeastOne<T, U = {
16
+ [K in keyof T]: Pick<T, K>;
17
+ }> = Partial<T> & U[keyof U];
18
+ type DefaultConditions = InteractiveConditions & ViewportSizeCondition;
19
+ export type Conditions = AtLeastOne<DefaultConditions>;
20
+ export type BaseConditions = AtLeastOne<DefaultConditions & ResolutionCondition>;
21
+ export interface ConditionalValue<T, AcceptedConditions extends BaseConditions = Conditions> {
22
+ /**
23
+ * The conditions that must be met for the value to be applied. At least one
24
+ * condition must be specified.
25
+ */
26
+ conditions: AcceptedConditions;
27
+ /**
28
+ * The value that will be applied if the conditions are met.
29
+ */
30
+ value: T;
31
+ }
32
+ export interface ConditionalStyle<T, AcceptedConditions extends BaseConditions = Conditions> {
33
+ /**
34
+ * The default value applied when none of the conditional values
35
+ * specified in `conditionals` are met.
36
+ */
37
+ default?: T;
38
+ /**
39
+ * An array of conditional values.
40
+ */
41
+ conditionals: ConditionalValue<T, AcceptedConditions>[];
42
+ }
43
+ export type MaybeConditionalStyle<T, AcceptedConditions extends BaseConditions = Conditions> = T | ConditionalStyle<T, AcceptedConditions>;
44
+ export type MaybeResponsiveConditionalStyle<T> = MaybeConditionalStyle<T, ViewportSizeCondition>;
45
+ export {};
46
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/surfaces/checkout/style/types.ts"],"names":[],"mappings":"AAAA,KAAK,UAAU,GAAG,CAAC,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC,GAAG,GAAG,GAAG,CAAC,GAAG,GAAG,GAAG,CAAC,CAAC;AAExD,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,IAAI,CAAC;IACZ,KAAK,EAAE,IAAI,CAAC;CACb;AAED,MAAM,WAAW,mBAAmB;IAClC,UAAU,EAAE,UAAU,CAAC;CACxB;AAED,KAAK,kBAAkB,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEvD,MAAM,WAAW,qBAAqB;IACpC,kBAAkB,EAAE;QAAC,GAAG,EAAE,kBAAkB,CAAA;KAAC,CAAC;CAC/C;AAED,MAAM,MAAM,UAAU,CAAC,CAAC,EAAE,CAAC,GAAG;KAAE,CAAC,IAAI,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC;CAAC,IAAI,OAAO,CAAC,CAAC,CAAC,GACtE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAEb,KAAK,iBAAiB,GAAG,qBAAqB,GAAG,qBAAqB,CAAC;AAEvE,MAAM,MAAM,UAAU,GAAG,UAAU,CAAC,iBAAiB,CAAC,CAAC;AAEvD,MAAM,MAAM,cAAc,GAAG,UAAU,CACrC,iBAAiB,GAAG,mBAAmB,CACxC,CAAC;AAEF,MAAM,WAAW,gBAAgB,CAC/B,CAAC,EACD,kBAAkB,SAAS,cAAc,GAAG,UAAU;IAEtD;;;OAGG;IACH,UAAU,EAAE,kBAAkB,CAAC;IAC/B;;OAEG;IACH,KAAK,EAAE,CAAC,CAAC;CACV;AAED,MAAM,WAAW,gBAAgB,CAC/B,CAAC,EACD,kBAAkB,SAAS,cAAc,GAAG,UAAU;IAEtD;;;OAGG;IACH,OAAO,CAAC,EAAE,CAAC,CAAC;IACZ;;OAEG;IACH,YAAY,EAAE,gBAAgB,CAAC,CAAC,EAAE,kBAAkB,CAAC,EAAE,CAAC;CACzD;AAED,MAAM,MAAM,qBAAqB,CAC/B,CAAC,EACD,kBAAkB,SAAS,cAAc,GAAG,UAAU,IACpD,CAAC,GAAG,gBAAgB,CAAC,CAAC,EAAE,kBAAkB,CAAC,CAAC;AAEhD,MAAM,MAAM,+BAA+B,CAAC,CAAC,IAAI,qBAAqB,CACpE,CAAC,EACD,qBAAqB,CACtB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { Style, isConditionalStyle, isConditionalStyleWithDefault, } from './style/style';
2
+ export type { AtLeastOne, Conditions, ConditionalStyle, ConditionalValue, InteractiveConditions, MaybeConditionalStyle, MaybeResponsiveConditionalStyle, ResolutionCondition, ViewportSizeCondition, } from './style/types';
3
+ //# sourceMappingURL=style.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../../src/surfaces/checkout/style.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,kBAAkB,EAClB,6BAA6B,GAC9B,MAAM,eAAe,CAAC;AACvB,YAAY,EACV,UAAU,EACV,UAAU,EACV,gBAAgB,EAChB,gBAAgB,EAChB,qBAAqB,EACrB,qBAAqB,EACrB,+BAA+B,EAC/B,mBAAmB,EACnB,qBAAqB,GACtB,MAAM,eAAe,CAAC"}
@@ -0,0 +1,8 @@
1
+ export * from './checkout/api';
2
+ export * from './checkout/components';
3
+ export * from './checkout/extension-points';
4
+ export * from './checkout/extension';
5
+ export * from './checkout/shared';
6
+ export * from './checkout/style';
7
+ export * from './checkout/globals';
8
+ //# sourceMappingURL=checkout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkout.d.ts","sourceRoot":"","sources":["../../../src/surfaces/checkout.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC"}
@@ -0,0 +1,16 @@
1
+ import type { RenderExtension, RenderExtensionWithRemoteRoot } from '../extension';
2
+ export interface ExtensionRegistrationFunction<ExtensionPoints> {
3
+ <Target extends keyof ExtensionPoints>(target: Target, implementation: ExtensionPoints[Target]): ExtensionPoints[Target];
4
+ }
5
+ export interface ExtensionRegistrationFunctionWithRoot<ExtensionPoints> {
6
+ <Target extends keyof ExtensionPoints>(target: Target, implementation: ExtensionPoints[Target] extends RenderExtension<infer Api, infer Components> ? RenderExtensionWithRemoteRoot<Api, Components> : ExtensionPoints[Target]): ExtensionPoints[Target];
7
+ }
8
+ /**
9
+ * This function takes an extension function that is expecting a `RemoteRoot` as its
10
+ * first argument, and returns a new function that accepts a `RemoteChannel` instead.
11
+ * This is a convenience that allows the raw UI extension API to only expose the simpler
12
+ * `RemoteChannel` type, while allowing the extension to use the more powerful `RemoteRoot`,
13
+ * provided by a version of `@remote-ui/core` that the extension controls.
14
+ */
15
+ export declare function createExtensionRegistrationFunction<ExtensionPoints>(): ExtensionRegistrationFunctionWithRoot<ExtensionPoints>;
16
+ //# sourceMappingURL=registration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registration.d.ts","sourceRoot":"","sources":["../../../src/utilities/registration.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEV,eAAe,EACf,6BAA6B,EAC9B,MAAM,cAAc,CAAC;AAEtB,MAAM,WAAW,6BAA6B,CAAC,eAAe;IAC5D,CAAC,MAAM,SAAS,MAAM,eAAe,EACnC,MAAM,EAAE,MAAM,EACd,cAAc,EAAE,eAAe,CAAC,MAAM,CAAC,GACtC,eAAe,CAAC,MAAM,CAAC,CAAC;CAC5B;AAED,MAAM,WAAW,qCAAqC,CAAC,eAAe;IACpE,CAAC,MAAM,SAAS,MAAM,eAAe,EACnC,MAAM,EAAE,MAAM,EACd,cAAc,EAAE,eAAe,CAAC,MAAM,CAAC,SAAS,eAAe,CAC7D,MAAM,GAAG,EACT,MAAM,UAAU,CACjB,GACG,6BAA6B,CAAC,GAAG,EAAE,UAAU,CAAC,GAC9C,eAAe,CAAC,MAAM,CAAC,GAC1B,eAAe,CAAC,MAAM,CAAC,CAAC;CAC5B;AAED;;;;;;GAMG;AACH,wBAAgB,mCAAmC,CACjD,eAAe,KACZ,qCAAqC,CAAC,eAAe,CAAC,CA2C1D"}