@clickaroo/checkout-ui 0.1.4-beta → 0.1.6-beta

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 (251) hide show
  1. package/dist/index.js +1 -1
  2. package/dist/index.mjs +1 -1
  3. package/package.json +2 -5
  4. package/dist/storybook/assets/APIs.en-BZprb8nz.js +0 -372
  5. package/dist/storybook/assets/CheckoutPage-_q0L2I48.js +0 -3
  6. package/dist/storybook/assets/CheckoutPage.en-Cqm7U6Ao.js +0 -147
  7. package/dist/storybook/assets/CheckoutPage.stories-Biq4hwU7.js +0 -44
  8. package/dist/storybook/assets/Color-YHDXOIA2-CTze9lKG.js +0 -1
  9. package/dist/storybook/assets/CustomCheckout.en-B1POrtIr.js +0 -211
  10. package/dist/storybook/assets/CustomCheckout.stories-D-tPjvHt.js +0 -6
  11. package/dist/storybook/assets/CustomerInfo-BABvZLYn.js +0 -1
  12. package/dist/storybook/assets/CustomerInfo.stories-QbQKWp1d.js +0 -9
  13. package/dist/storybook/assets/DeliveryAddress-DwuRB6NF.js +0 -2
  14. package/dist/storybook/assets/DeliveryAddress.stories-DZnkYsnJ.js +0 -9
  15. package/dist/storybook/assets/DocsRenderer-CFRXHY34-C1sXuUXn.js +0 -2
  16. package/dist/storybook/assets/Guide.en-m6hCgVJU.js +0 -107
  17. package/dist/storybook/assets/PaymentMethods-B6OrSp4J.js +0 -2
  18. package/dist/storybook/assets/PaymentMethods.stories-DNO6rqG3.js +0 -9
  19. package/dist/storybook/assets/QuickStart.en-Dra_JcyZ.js +0 -136
  20. package/dist/storybook/assets/ValidateInput-Bw6PO7kr.js +0 -2
  21. package/dist/storybook/assets/chunk-XP5HYGXS-BpfKkqn7.js +0 -1
  22. package/dist/storybook/assets/entry-preview-D5W1SR96.js +0 -2
  23. package/dist/storybook/assets/entry-preview-docs-CS87rPOt.js +0 -46
  24. package/dist/storybook/assets/iframe-BBMn-SiC.js +0 -211
  25. package/dist/storybook/assets/index-2r-d8gn2.js +0 -575
  26. package/dist/storybook/assets/index-B7ki2Uzk.js +0 -24
  27. package/dist/storybook/assets/index-CFngt2ij.css +0 -1
  28. package/dist/storybook/assets/index-ChEI-nsM.js +0 -1
  29. package/dist/storybook/assets/index-D-Mha1DF.js +0 -11
  30. package/dist/storybook/assets/index-DRjF_FHU.js +0 -9
  31. package/dist/storybook/assets/index-DqxVLU6x.js +0 -240
  32. package/dist/storybook/assets/index-DrFu-skq.js +0 -6
  33. package/dist/storybook/assets/jsx-runtime-DiklIkkE.js +0 -9
  34. package/dist/storybook/assets/preview-B8lJiyuQ.js +0 -34
  35. package/dist/storybook/assets/preview-BBWR9nbA.js +0 -1
  36. package/dist/storybook/assets/preview-BCWRKXw7.js +0 -2
  37. package/dist/storybook/assets/preview-BWzBA1C2.js +0 -396
  38. package/dist/storybook/assets/preview-CvbIS5ZJ.js +0 -1
  39. package/dist/storybook/assets/preview-DD_OYowb.js +0 -1
  40. package/dist/storybook/assets/preview-DGUiP6tS.js +0 -7
  41. package/dist/storybook/assets/preview-DHQbi4pV.js +0 -1
  42. package/dist/storybook/assets/preview-DHrw3ha3.js +0 -1
  43. package/dist/storybook/assets/preview-NEoZ8N1F.js +0 -1
  44. package/dist/storybook/assets/react-18-2zMCfgG4.js +0 -1
  45. package/dist/storybook/assets/test-utils-Cz8Y21vI.js +0 -9
  46. package/dist/storybook/assets/useCheckoutContext-C6NRdjfK.js +0 -27
  47. package/dist/storybook/favicon.svg +0 -1
  48. package/dist/storybook/iframe.html +0 -666
  49. package/dist/storybook/index.html +0 -177
  50. package/dist/storybook/index.json +0 -1
  51. package/dist/storybook/nunito-sans-bold-italic.woff2 +0 -0
  52. package/dist/storybook/nunito-sans-bold.woff2 +0 -0
  53. package/dist/storybook/nunito-sans-italic.woff2 +0 -0
  54. package/dist/storybook/nunito-sans-regular.woff2 +0 -0
  55. package/dist/storybook/project.json +0 -1
  56. package/dist/storybook/sb-addons/essentials-actions-2/manager-bundle.js +0 -3
  57. package/dist/storybook/sb-addons/essentials-backgrounds-4/manager-bundle.js +0 -12
  58. package/dist/storybook/sb-addons/essentials-controls-1/manager-bundle.js +0 -405
  59. package/dist/storybook/sb-addons/essentials-docs-3/manager-bundle.js +0 -245
  60. package/dist/storybook/sb-addons/essentials-measure-7/manager-bundle.js +0 -3
  61. package/dist/storybook/sb-addons/essentials-outline-8/manager-bundle.js +0 -3
  62. package/dist/storybook/sb-addons/essentials-toolbars-6/manager-bundle.js +0 -3
  63. package/dist/storybook/sb-addons/essentials-viewport-5/manager-bundle.js +0 -3
  64. package/dist/storybook/sb-addons/interactions-9/manager-bundle.js +0 -222
  65. package/dist/storybook/sb-addons/links-10/manager-bundle.js +0 -3
  66. package/dist/storybook/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js +0 -3
  67. package/dist/storybook/sb-common-assets/favicon.svg +0 -1
  68. package/dist/storybook/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
  69. package/dist/storybook/sb-common-assets/nunito-sans-bold.woff2 +0 -0
  70. package/dist/storybook/sb-common-assets/nunito-sans-italic.woff2 +0 -0
  71. package/dist/storybook/sb-common-assets/nunito-sans-regular.woff2 +0 -0
  72. package/dist/storybook/sb-manager/globals-module-info.js +0 -1052
  73. package/dist/storybook/sb-manager/globals-runtime.js +0 -42127
  74. package/dist/storybook/sb-manager/globals.js +0 -48
  75. package/dist/storybook/sb-manager/runtime.js +0 -12048
  76. package/dist/storybook/storybook-static/assets/APIs.en-Bf5J1Ifk.js +0 -372
  77. package/dist/storybook/storybook-static/assets/APIs.en-CVdvOQs6.js +0 -372
  78. package/dist/storybook/storybook-static/assets/APIs.en-CW0wl9xW.js +0 -372
  79. package/dist/storybook/storybook-static/assets/APIs.en-Ci2xcqKC.js +0 -372
  80. package/dist/storybook/storybook-static/assets/APIs.en-DSVQkUt3.js +0 -372
  81. package/dist/storybook/storybook-static/assets/APIs.en-m6cq4XTv.js +0 -372
  82. package/dist/storybook/storybook-static/assets/CheckoutPage-B959BwZO.js +0 -3
  83. package/dist/storybook/storybook-static/assets/CheckoutPage-BsnzMxJk.js +0 -3
  84. package/dist/storybook/storybook-static/assets/CheckoutPage-C21Znq4d.js +0 -3
  85. package/dist/storybook/storybook-static/assets/CheckoutPage-CrHN6Fcv.js +0 -3
  86. package/dist/storybook/storybook-static/assets/CheckoutPage-DYMMhAMX.js +0 -3
  87. package/dist/storybook/storybook-static/assets/CheckoutPage-Dbzt3i55.js +0 -3
  88. package/dist/storybook/storybook-static/assets/CheckoutPage.en-BeknEgWZ.js +0 -147
  89. package/dist/storybook/storybook-static/assets/CheckoutPage.en-C5I1UUQc.js +0 -147
  90. package/dist/storybook/storybook-static/assets/CheckoutPage.en-C5WqMErV.js +0 -147
  91. package/dist/storybook/storybook-static/assets/CheckoutPage.en-DiHMI_iH.js +0 -147
  92. package/dist/storybook/storybook-static/assets/CheckoutPage.en-omEUF-3W.js +0 -147
  93. package/dist/storybook/storybook-static/assets/CheckoutPage.en-wyirg_zl.js +0 -147
  94. package/dist/storybook/storybook-static/assets/CheckoutPage.stories-BFpky7Cv.js +0 -44
  95. package/dist/storybook/storybook-static/assets/CheckoutPage.stories-DAo0u2QI.js +0 -44
  96. package/dist/storybook/storybook-static/assets/CheckoutPage.stories-DLD3oWo_.js +0 -44
  97. package/dist/storybook/storybook-static/assets/CheckoutPage.stories-DeC6lyzr.js +0 -44
  98. package/dist/storybook/storybook-static/assets/CheckoutPage.stories-G0sHl94m.js +0 -44
  99. package/dist/storybook/storybook-static/assets/CheckoutPage.stories-qqNMphqC.js +0 -44
  100. package/dist/storybook/storybook-static/assets/Color-YHDXOIA2-1Ar-cfOi.js +0 -1
  101. package/dist/storybook/storybook-static/assets/Color-YHDXOIA2-B_hoSOu5.js +0 -1
  102. package/dist/storybook/storybook-static/assets/Color-YHDXOIA2-Bly_OAJP.js +0 -1
  103. package/dist/storybook/storybook-static/assets/Color-YHDXOIA2-CECFFm6s.js +0 -1
  104. package/dist/storybook/storybook-static/assets/Color-YHDXOIA2-DI94E3AI.js +0 -1
  105. package/dist/storybook/storybook-static/assets/Color-YHDXOIA2-DSQioqvs.js +0 -1
  106. package/dist/storybook/storybook-static/assets/CustomCheckout.en-2QJPlCmg.js +0 -211
  107. package/dist/storybook/storybook-static/assets/CustomCheckout.en-Bg4oz9hS.js +0 -211
  108. package/dist/storybook/storybook-static/assets/CustomCheckout.en-BrabumCC.js +0 -211
  109. package/dist/storybook/storybook-static/assets/CustomCheckout.en-CckpRGsp.js +0 -211
  110. package/dist/storybook/storybook-static/assets/CustomCheckout.en-D80ZpldF.js +0 -211
  111. package/dist/storybook/storybook-static/assets/CustomCheckout.en-adeOUUPd.js +0 -211
  112. package/dist/storybook/storybook-static/assets/CustomCheckout.stories-BdACubjk.js +0 -6
  113. package/dist/storybook/storybook-static/assets/CustomCheckout.stories-CKQKzMq0.js +0 -6
  114. package/dist/storybook/storybook-static/assets/CustomCheckout.stories-Cmt6r_Qb.js +0 -6
  115. package/dist/storybook/storybook-static/assets/CustomCheckout.stories-F2GZKkIG.js +0 -6
  116. package/dist/storybook/storybook-static/assets/CustomCheckout.stories-OyfGgjnr.js +0 -6
  117. package/dist/storybook/storybook-static/assets/CustomCheckout.stories-V2NHLbZo.js +0 -6
  118. package/dist/storybook/storybook-static/assets/CustomerInfo-CTx1dFS3.js +0 -1
  119. package/dist/storybook/storybook-static/assets/CustomerInfo-CYLNdAoo.js +0 -1
  120. package/dist/storybook/storybook-static/assets/CustomerInfo-CdeZHMcz.js +0 -1
  121. package/dist/storybook/storybook-static/assets/CustomerInfo-Cp0u57C5.js +0 -1
  122. package/dist/storybook/storybook-static/assets/CustomerInfo-D3WHpN32.js +0 -1
  123. package/dist/storybook/storybook-static/assets/CustomerInfo.stories-BBWobZ5V.js +0 -9
  124. package/dist/storybook/storybook-static/assets/CustomerInfo.stories-BeF8Yh1A.js +0 -9
  125. package/dist/storybook/storybook-static/assets/CustomerInfo.stories-CYx1hKNg.js +0 -9
  126. package/dist/storybook/storybook-static/assets/CustomerInfo.stories-DB2C3zqQ.js +0 -9
  127. package/dist/storybook/storybook-static/assets/CustomerInfo.stories-DJEbX7ej.js +0 -9
  128. package/dist/storybook/storybook-static/assets/DeliveryAddress-BBT_-q56.js +0 -2
  129. package/dist/storybook/storybook-static/assets/DeliveryAddress-CD42v0od.js +0 -2
  130. package/dist/storybook/storybook-static/assets/DeliveryAddress-Lfanl1PO.js +0 -2
  131. package/dist/storybook/storybook-static/assets/DeliveryAddress-X81XGbKD.js +0 -2
  132. package/dist/storybook/storybook-static/assets/DeliveryAddress-zAvEPauR.js +0 -2
  133. package/dist/storybook/storybook-static/assets/DeliveryAddress.stories-B-CLgnl5.js +0 -9
  134. package/dist/storybook/storybook-static/assets/DeliveryAddress.stories-BvAXTiNm.js +0 -9
  135. package/dist/storybook/storybook-static/assets/DeliveryAddress.stories-CTyS3zFt.js +0 -9
  136. package/dist/storybook/storybook-static/assets/DeliveryAddress.stories-DHyw5QNl.js +0 -9
  137. package/dist/storybook/storybook-static/assets/DeliveryAddress.stories-ex4l-pod.js +0 -9
  138. package/dist/storybook/storybook-static/assets/DocsRenderer-CFRXHY34-4VFo0TRH.js +0 -2
  139. package/dist/storybook/storybook-static/assets/DocsRenderer-CFRXHY34-BIza5p8d.js +0 -2
  140. package/dist/storybook/storybook-static/assets/DocsRenderer-CFRXHY34-BKek9MhZ.js +0 -2
  141. package/dist/storybook/storybook-static/assets/DocsRenderer-CFRXHY34-Bb5akATV.js +0 -2
  142. package/dist/storybook/storybook-static/assets/DocsRenderer-CFRXHY34-C9sW_L8N.js +0 -2
  143. package/dist/storybook/storybook-static/assets/DocsRenderer-CFRXHY34-sE6BxCwu.js +0 -2
  144. package/dist/storybook/storybook-static/assets/Guide.en-BJ4qiYIc.js +0 -107
  145. package/dist/storybook/storybook-static/assets/Guide.en-C21zCMX7.js +0 -107
  146. package/dist/storybook/storybook-static/assets/Guide.en-CNP2Y7P4.js +0 -107
  147. package/dist/storybook/storybook-static/assets/Guide.en-CiR7CrYZ.js +0 -107
  148. package/dist/storybook/storybook-static/assets/Guide.en-DPJzC5RR.js +0 -107
  149. package/dist/storybook/storybook-static/assets/Guide.en-VxmWTbu0.js +0 -107
  150. package/dist/storybook/storybook-static/assets/PaymentMethods-B1IKDQ7d.js +0 -2
  151. package/dist/storybook/storybook-static/assets/PaymentMethods-BNEEARzu.js +0 -2
  152. package/dist/storybook/storybook-static/assets/PaymentMethods-BnPZRrAs.js +0 -2
  153. package/dist/storybook/storybook-static/assets/PaymentMethods-DOuQM2jZ.js +0 -2
  154. package/dist/storybook/storybook-static/assets/PaymentMethods-e9HqQtxN.js +0 -2
  155. package/dist/storybook/storybook-static/assets/PaymentMethods-ro6Dfmcf.js +0 -2
  156. package/dist/storybook/storybook-static/assets/PaymentMethods.stories-BSqcqZV0.js +0 -9
  157. package/dist/storybook/storybook-static/assets/PaymentMethods.stories-Bc4jYrum.js +0 -9
  158. package/dist/storybook/storybook-static/assets/PaymentMethods.stories-CELadurr.js +0 -9
  159. package/dist/storybook/storybook-static/assets/PaymentMethods.stories-ChiL9TJn.js +0 -9
  160. package/dist/storybook/storybook-static/assets/PaymentMethods.stories-oiT2EQiz.js +0 -9
  161. package/dist/storybook/storybook-static/assets/PaymentMethods.stories-pOuLDPwE.js +0 -9
  162. package/dist/storybook/storybook-static/assets/QuickStart.en-B2goyY4Q.js +0 -136
  163. package/dist/storybook/storybook-static/assets/QuickStart.en-Bj-7Slt2.js +0 -136
  164. package/dist/storybook/storybook-static/assets/QuickStart.en-C_8MTb_6.js +0 -136
  165. package/dist/storybook/storybook-static/assets/QuickStart.en-Ct2dMZNT.js +0 -136
  166. package/dist/storybook/storybook-static/assets/QuickStart.en-D6K1vnx2.js +0 -136
  167. package/dist/storybook/storybook-static/assets/QuickStart.en-DEcB3LF7.js +0 -136
  168. package/dist/storybook/storybook-static/assets/ValidateInput-C6pnsZFe.js +0 -2
  169. package/dist/storybook/storybook-static/assets/ValidateInput-C71ymd_w.js +0 -2
  170. package/dist/storybook/storybook-static/assets/ValidateInput-Cl2O4HCX.js +0 -2
  171. package/dist/storybook/storybook-static/assets/ValidateInput-DcnOO9py.js +0 -2
  172. package/dist/storybook/storybook-static/assets/ValidateInput-sZgX3GCF.js +0 -2
  173. package/dist/storybook/storybook-static/assets/chunk-XP5HYGXS-BpfKkqn7.js +0 -1
  174. package/dist/storybook/storybook-static/assets/entry-preview-BM0J-x_7.js +0 -2
  175. package/dist/storybook/storybook-static/assets/entry-preview-Bnn64O7J.js +0 -2
  176. package/dist/storybook/storybook-static/assets/entry-preview-Dbi49YCK.js +0 -2
  177. package/dist/storybook/storybook-static/assets/entry-preview-DuGj42Nq.js +0 -2
  178. package/dist/storybook/storybook-static/assets/entry-preview-DxIUzVUA.js +0 -2
  179. package/dist/storybook/storybook-static/assets/entry-preview-docs-CS87rPOt.js +0 -46
  180. package/dist/storybook/storybook-static/assets/entry-preview-hHv11-z5.js +0 -2
  181. package/dist/storybook/storybook-static/assets/iframe-BZKEX9PA.js +0 -211
  182. package/dist/storybook/storybook-static/assets/iframe-CEK4S1D5.js +0 -211
  183. package/dist/storybook/storybook-static/assets/iframe-Ce3kgeV4.js +0 -211
  184. package/dist/storybook/storybook-static/assets/iframe-Ckasx_Sg.js +0 -211
  185. package/dist/storybook/storybook-static/assets/iframe-DsSsblW_.js +0 -211
  186. package/dist/storybook/storybook-static/assets/iframe-PThBYPHV.js +0 -211
  187. package/dist/storybook/storybook-static/assets/index-B7ki2Uzk.js +0 -24
  188. package/dist/storybook/storybook-static/assets/index-CFngt2ij.css +0 -1
  189. package/dist/storybook/storybook-static/assets/index-CZFGp9Su.js +0 -575
  190. package/dist/storybook/storybook-static/assets/index-ChEI-nsM.js +0 -1
  191. package/dist/storybook/storybook-static/assets/index-CkNSuRJg.js +0 -575
  192. package/dist/storybook/storybook-static/assets/index-Cx4362C8.js +0 -575
  193. package/dist/storybook/storybook-static/assets/index-Cyd9I05m.js +0 -575
  194. package/dist/storybook/storybook-static/assets/index-D-Mha1DF.js +0 -11
  195. package/dist/storybook/storybook-static/assets/index-DRjF_FHU.js +0 -9
  196. package/dist/storybook/storybook-static/assets/index-DqxVLU6x.js +0 -240
  197. package/dist/storybook/storybook-static/assets/index-DrFu-skq.js +0 -6
  198. package/dist/storybook/storybook-static/assets/index-LRKEu_dQ.js +0 -575
  199. package/dist/storybook/storybook-static/assets/index-j2F2pkp4.js +0 -575
  200. package/dist/storybook/storybook-static/assets/jsx-runtime-DiklIkkE.js +0 -9
  201. package/dist/storybook/storybook-static/assets/preview-4XW-YDzX.js +0 -2
  202. package/dist/storybook/storybook-static/assets/preview-884UjfA3.js +0 -2
  203. package/dist/storybook/storybook-static/assets/preview-B8lJiyuQ.js +0 -34
  204. package/dist/storybook/storybook-static/assets/preview-BBWR9nbA.js +0 -1
  205. package/dist/storybook/storybook-static/assets/preview-BWzBA1C2.js +0 -396
  206. package/dist/storybook/storybook-static/assets/preview-CvbIS5ZJ.js +0 -1
  207. package/dist/storybook/storybook-static/assets/preview-D2t1J3cT.js +0 -2
  208. package/dist/storybook/storybook-static/assets/preview-DD_OYowb.js +0 -1
  209. package/dist/storybook/storybook-static/assets/preview-DGUiP6tS.js +0 -7
  210. package/dist/storybook/storybook-static/assets/preview-DHQbi4pV.js +0 -1
  211. package/dist/storybook/storybook-static/assets/preview-DHrw3ha3.js +0 -1
  212. package/dist/storybook/storybook-static/assets/preview-DNROAajq.js +0 -2
  213. package/dist/storybook/storybook-static/assets/preview-EmPtksy2.js +0 -2
  214. package/dist/storybook/storybook-static/assets/preview-NEoZ8N1F.js +0 -1
  215. package/dist/storybook/storybook-static/assets/preview-PsKPgAxG.js +0 -2
  216. package/dist/storybook/storybook-static/assets/react-18-2zMCfgG4.js +0 -1
  217. package/dist/storybook/storybook-static/assets/test-utils-Cz8Y21vI.js +0 -9
  218. package/dist/storybook/storybook-static/assets/useCheckoutContext-B8tsk5b5.js +0 -27
  219. package/dist/storybook/storybook-static/assets/useCheckoutContext-C6u4Rp5U.js +0 -27
  220. package/dist/storybook/storybook-static/assets/useCheckoutContext-Cyg-MLQs.js +0 -27
  221. package/dist/storybook/storybook-static/assets/useCheckoutContext-DuJ1Ep0-.js +0 -27
  222. package/dist/storybook/storybook-static/assets/useCheckoutContext-w0N5TNgR.js +0 -27
  223. package/dist/storybook/storybook-static/favicon.svg +0 -1
  224. package/dist/storybook/storybook-static/iframe.html +0 -666
  225. package/dist/storybook/storybook-static/index.html +0 -177
  226. package/dist/storybook/storybook-static/index.json +0 -1
  227. package/dist/storybook/storybook-static/nunito-sans-bold-italic.woff2 +0 -0
  228. package/dist/storybook/storybook-static/nunito-sans-bold.woff2 +0 -0
  229. package/dist/storybook/storybook-static/nunito-sans-italic.woff2 +0 -0
  230. package/dist/storybook/storybook-static/nunito-sans-regular.woff2 +0 -0
  231. package/dist/storybook/storybook-static/project.json +0 -1
  232. package/dist/storybook/storybook-static/sb-addons/essentials-actions-2/manager-bundle.js +0 -3
  233. package/dist/storybook/storybook-static/sb-addons/essentials-backgrounds-4/manager-bundle.js +0 -12
  234. package/dist/storybook/storybook-static/sb-addons/essentials-controls-1/manager-bundle.js +0 -405
  235. package/dist/storybook/storybook-static/sb-addons/essentials-docs-3/manager-bundle.js +0 -245
  236. package/dist/storybook/storybook-static/sb-addons/essentials-measure-7/manager-bundle.js +0 -3
  237. package/dist/storybook/storybook-static/sb-addons/essentials-outline-8/manager-bundle.js +0 -3
  238. package/dist/storybook/storybook-static/sb-addons/essentials-toolbars-6/manager-bundle.js +0 -3
  239. package/dist/storybook/storybook-static/sb-addons/essentials-viewport-5/manager-bundle.js +0 -3
  240. package/dist/storybook/storybook-static/sb-addons/interactions-9/manager-bundle.js +0 -222
  241. package/dist/storybook/storybook-static/sb-addons/links-10/manager-bundle.js +0 -3
  242. package/dist/storybook/storybook-static/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js +0 -3
  243. package/dist/storybook/storybook-static/sb-common-assets/favicon.svg +0 -1
  244. package/dist/storybook/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
  245. package/dist/storybook/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
  246. package/dist/storybook/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
  247. package/dist/storybook/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
  248. package/dist/storybook/storybook-static/sb-manager/globals-module-info.js +0 -1052
  249. package/dist/storybook/storybook-static/sb-manager/globals-runtime.js +0 -42127
  250. package/dist/storybook/storybook-static/sb-manager/globals.js +0 -48
  251. package/dist/storybook/storybook-static/sb-manager/runtime.js +0 -12048
@@ -1,136 +0,0 @@
1
- import{j as e}from"./jsx-runtime-DiklIkkE.js";import{useMDXComponents as t}from"./index-ChEI-nsM.js";import{M as i,C as s}from"./index-j2F2pkp4.js";import{D as c}from"./CheckoutPage.stories-qqNMphqC.js";import"./index-DRjF_FHU.js";import"./iframe-CEK4S1D5.js";import"./index-B7ki2Uzk.js";import"./index-D-Mha1DF.js";import"./index-DrFu-skq.js";import"./useCheckoutContext-w0N5TNgR.js";import"./CheckoutPage-Dbzt3i55.js";import"./CustomerInfo-CYLNdAoo.js";import"./ValidateInput-C71ymd_w.js";import"./DeliveryAddress-BBT_-q56.js";import"./PaymentMethods-ro6Dfmcf.js";function r(o){const n={a:"a",blockquote:"blockquote",code:"code",h1:"h1",h3:"h3",h4:"h4",li:"li",ol:"ol",p:"p",pre:"pre",strong:"strong",ul:"ul",...t(),...o.components};return e.jsxs(e.Fragment,{children:[e.jsx(i,{title:"Documentation/QuickStart"}),`
2
- `,e.jsx(n.h1,{id:"overview",children:"Overview"}),`
3
- `,e.jsxs(n.p,{children:["This component library is designed for the ",e.jsx(n.strong,{children:"checkout page"})," in your e-commerce flow. Here's how it fits into a typical purchase journey:"]}),`
4
- `,e.jsxs(n.ol,{children:[`
5
- `,e.jsxs(n.li,{children:[e.jsx(n.strong,{children:"Product/Landing Page"}),": Users browse products on your product or landing page. You should provide a button or link that navigates users to the checkout page when they're ready to purchase."]}),`
6
- `,e.jsxs(n.li,{children:[e.jsx(n.strong,{children:"Checkout Page"}),": This is where you integrate this component library. Users can submit their purchase information here."]}),`
7
- `,e.jsxs(n.li,{children:[e.jsx(n.strong,{children:"Finish Page"}),": After successful payment, redirect users to a finish page to confirm their order completion."]}),`
8
- `]}),`
9
- `,e.jsx(n.h1,{id:"quick-start",children:"Quick Start"}),`
10
- `,e.jsx(n.p,{children:"The checkout component handles the entire checkout process including customer information collection, delivery address management, and payment processing."}),`
11
- `,e.jsx(n.p,{children:"In this guide, you will learn how to quickly integrate the checkout components into your React application. For more detailed information and advanced usage, check out the Guide section."}),`
12
- `,e.jsx(n.h3,{id:"installation",children:"Installation"}),`
13
- `,e.jsx(n.p,{children:"Install using your preferred package manager:"}),`
14
- `,e.jsx(n.pre,{children:e.jsx(n.code,{className:"language-bash",children:`# pnpm (recommended)
15
- pnpm add @clickaroo/checkout-ui
16
-
17
- # or npm
18
- npm install @clickaroo/checkout-ui
19
-
20
- # or yarn
21
- yarn add @clickaroo/checkout-ui
22
- `})}),`
23
- `,e.jsx(n.h4,{id:"peer-dependencies",children:"Peer Dependencies"}),`
24
- `,e.jsxs(n.p,{children:["This library requires ",e.jsx(n.code,{children:"react"})," (>= 16.8.0) as peer dependencies."]}),`
25
- `,e.jsxs(n.ul,{children:[`
26
- `,e.jsxs(n.li,{children:[e.jsx(n.strong,{children:"npm 7+"}),": Will automatically install them"]}),`
27
- `,e.jsxs(n.li,{children:[e.jsx(n.strong,{children:"npm 6 / pnpm"}),": You may need to install them manually if you see warnings"]}),`
28
- `,e.jsxs(n.li,{children:[e.jsx(n.strong,{children:"yarn v2+"}),": Will error if they are missing"]}),`
29
- `]}),`
30
- `,e.jsx(n.p,{children:"Most React projects already have these installed, so you typically don't need to do anything extra."}),`
31
- `,e.jsx(n.h3,{id:"token-parameter",children:"Token Parameter"}),`
32
- `,e.jsxs(n.p,{children:["The component library requires a ",e.jsx(n.code,{children:"clro_token"})," parameter to identify the checkout session. This token should be provided in the URL query parameter when users navigate to the checkout page:"]}),`
33
- `,e.jsx(n.pre,{children:e.jsx(n.code,{children:`https://your-checkout-page.com?clro_token=YOUR_TOKEN_HERE
34
- `})}),`
35
- `,e.jsx(n.p,{children:"The token will be automatically extracted from the URL and stored in localStorage for subsequent requests."}),`
36
- `,e.jsx(n.h3,{id:"use-checkout-all-in-one",children:"Use Checkout All in One"}),`
37
- `,e.jsxs(n.p,{children:["The simplest way is to use the ",e.jsx(n.code,{children:"CheckoutPage"})," component directly, which includes the complete checkout flow."]}),`
38
- `,e.jsx(s,{of:c}),`
39
- `,e.jsxs(n.blockquote,{children:[`
40
- `,e.jsxs(n.p,{children:[e.jsx(n.strong,{children:"Note"}),": If you need Google address suggestions for the address field, you must provide a ",e.jsx(n.code,{children:"googleApiKey"})," that meets the ",e.jsx(n.a,{href:"https://developers.google.com/maps/documentation/places/web-service/get-api-key?hl=en&setupProd=prerequisites",rel:"nofollow",children:"google places api requirements"}),"."]}),`
41
- `]}),`
42
- `,e.jsx(n.pre,{children:e.jsx(n.code,{className:"language-tsx",children:`import { CheckoutPage } from '@clickaroo/checkout-ui';
43
-
44
- function MyCheckout() {
45
- const cart = [
46
- {
47
- sku: "TEST001",
48
- offerPricePoint: "OPP-TEST001",
49
- },
50
- {
51
- sku: "TEST002",
52
- offerPricePoint: "OPP-TEST002",
53
- },
54
- ];
55
-
56
- return <CheckoutPage cart={cart} googleApiKey={YOUR_GOOGLE_API_KEY} />;
57
- }
58
- `})}),`
59
- `,e.jsxs(n.blockquote,{children:[`
60
- `,e.jsxs(n.p,{children:[e.jsx(n.strong,{children:"Tips"}),`:
61
- Each object in the `,e.jsx(n.code,{children:"cart"})," array only needs to contain the two required fields: ",e.jsx(n.code,{children:"sku"})," and ",e.jsx(n.code,{children:"offerPricePoint"}),". However, you can also pass other optional product information fields (such as ",e.jsx(n.code,{children:"title"}),", ",e.jsx(n.code,{children:"price"}),", ",e.jsx(n.code,{children:"image"}),", etc.), which will be saved to the order's metadata."]}),`
62
- `]}),`
63
- `,e.jsxs(n.p,{children:["You can read more about all the possible configuration options in ",e.jsx(n.a,{href:"./?path=/docs/components-checkoutpage--checkoutpage-english",children:"CheckoutPage Documentation"}),"."]}),`
64
- `,e.jsx(n.h3,{id:"event-callbacks",children:"Event Callbacks"}),`
65
- `,e.jsxs(n.p,{children:["The ",e.jsx(n.code,{children:"CheckoutPage"})," component provides several event callbacks that allow you to monitor and respond to different stages of the checkout process. These callbacks enable you to track user behavior, handle loading states, and implement custom logic."]}),`
66
- `,e.jsx(n.p,{children:"Here's a complete example that includes all event callbacks:"}),`
67
- `,e.jsx(n.pre,{children:e.jsx(n.code,{className:"language-tsx",children:`import { CheckoutPage } from '@clickaroo/checkout-ui';
68
- import { useNavigate } from 'react-router-dom'; // or your routing library
69
-
70
- function MyCheckout() {
71
- const navigate = useNavigate();
72
-
73
- const cart = [
74
- {
75
- sku: "TEST001",
76
- offerPricePoint: "OPP-TEST001",
77
- title: "Product 1",
78
- price: 99.99,
79
- },
80
- ];
81
-
82
- return (
83
- <CheckoutPage
84
- cart={cart}
85
- googleApiKey={YOUR_GOOGLE_API_KEY}
86
- onCheckoutInit={() => {
87
- console.log('Checkout initialized');
88
- }}
89
- onPaymentInfoComplete={(cart, totalAmount) => {
90
- console.log('Payment info complete');
91
- }}
92
- onOrderSubmit={(cart, totalAmount) => {
93
- console.log('Order submitted');
94
- }}
95
- onOrderSuccess={(orderCode, tradeCode) => {
96
- console.log('Order successful:', orderCode);
97
- // Redirect to finish page
98
- navigate(\`/finish/\${orderCode}\`);
99
- }}
100
- />
101
- );
102
- }
103
- `})}),`
104
- `,e.jsx(n.p,{children:e.jsx(n.strong,{children:"Key Points:"})}),`
105
- `,e.jsxs(n.ul,{children:[`
106
- `,e.jsxs(n.li,{children:[e.jsx(n.code,{children:"onCheckoutInit"}),": Triggered when the checkout page loads"]}),`
107
- `,e.jsxs(n.li,{children:[e.jsx(n.code,{children:"onPaymentInfoComplete"}),": Triggered when the payment form is valid"]}),`
108
- `,e.jsxs(n.li,{children:[e.jsx(n.code,{children:"onOrderSubmit"}),": Triggered when user clicks submit"]}),`
109
- `,e.jsxs(n.li,{children:[e.jsx(n.code,{children:"onOrderSuccess"}),": Triggered when order is successfully created"]}),`
110
- `]}),`
111
- `,e.jsx(n.h3,{id:"display-order-details-on-finish-page",children:"Display Order Details on Finish Page"}),`
112
- `,e.jsxs(n.p,{children:["After the user successfully completes the payment and is redirected to the finish page, you can use the ",e.jsx(n.code,{children:"useOrderDetail"})," hook to display order information:"]}),`
113
- `,e.jsx(n.pre,{children:e.jsx(n.code,{className:"language-tsx",children:`import { useOrderDetail } from '@clickaroo/checkout-ui';
114
- import { useParams } from 'react-router-dom';
115
-
116
- function OrderCompletePage() {
117
- const { orderCode } = useParams();
118
- const { orderDetail, loading, error } = useOrderDetail(orderCode || '');
119
-
120
- if (loading) return <div>Loading order details...</div>;
121
- if (error) return <div>Error: {error}</div>;
122
- if (!orderDetail) return <div>Order not found</div>;
123
-
124
- return (
125
- <div>
126
- <h1>Order Complete!</h1>
127
- <p>Order Code: {orderDetail.order_code}</p>
128
- <p>Customer Information: {orderDetail.customer.email} {orderDetail.customer.phone}</p>
129
- <p>Total: {orderDetail.total_amount}</p>
130
- <p>Product Detail: {orderDetail.metadata}</p>
131
- {/* Display more order details as needed */}
132
- </div>
133
- );
134
- }
135
- `})}),`
136
- `,e.jsxs(n.p,{children:["For more advanced usage, check out the ",e.jsx(n.a,{href:"./?path=/docs/documentation-apis--docs",children:"APIs documentation"}),"."]})]})}function b(o={}){const{wrapper:n}={...t(),...o.components};return n?e.jsx(n,{...o,children:e.jsx(r,{...o})}):r(o)}export{b as default};
@@ -1,136 +0,0 @@
1
- import{j as e}from"./jsx-runtime-DiklIkkE.js";import{useMDXComponents as t}from"./index-ChEI-nsM.js";import{M as i,C as s}from"./index-CZFGp9Su.js";import{D as c}from"./CheckoutPage.stories-DeC6lyzr.js";import"./index-DRjF_FHU.js";import"./iframe-PThBYPHV.js";import"./index-B7ki2Uzk.js";import"./index-D-Mha1DF.js";import"./index-DrFu-skq.js";import"./useCheckoutContext-DuJ1Ep0-.js";import"./CheckoutPage-CrHN6Fcv.js";import"./CustomerInfo-D3WHpN32.js";import"./ValidateInput-DcnOO9py.js";import"./DeliveryAddress-Lfanl1PO.js";import"./PaymentMethods-e9HqQtxN.js";function r(o){const n={a:"a",blockquote:"blockquote",code:"code",h1:"h1",h3:"h3",h4:"h4",li:"li",ol:"ol",p:"p",pre:"pre",strong:"strong",ul:"ul",...t(),...o.components};return e.jsxs(e.Fragment,{children:[e.jsx(i,{title:"Documentation/QuickStart"}),`
2
- `,e.jsx(n.h1,{id:"overview",children:"Overview"}),`
3
- `,e.jsxs(n.p,{children:["This component library is designed for the ",e.jsx(n.strong,{children:"checkout page"})," in your e-commerce flow. Here's how it fits into a typical purchase journey:"]}),`
4
- `,e.jsxs(n.ol,{children:[`
5
- `,e.jsxs(n.li,{children:[e.jsx(n.strong,{children:"Product/Landing Page"}),": Users browse products on your product or landing page. You should provide a button or link that navigates users to the checkout page when they're ready to purchase."]}),`
6
- `,e.jsxs(n.li,{children:[e.jsx(n.strong,{children:"Checkout Page"}),": This is where you integrate this component library. Users can submit their purchase information here."]}),`
7
- `,e.jsxs(n.li,{children:[e.jsx(n.strong,{children:"Finish Page"}),": After successful payment, redirect users to a finish page to confirm their order completion."]}),`
8
- `]}),`
9
- `,e.jsx(n.h1,{id:"quick-start",children:"Quick Start"}),`
10
- `,e.jsx(n.p,{children:"The checkout component handles the entire checkout process including customer information collection, delivery address management, and payment processing."}),`
11
- `,e.jsx(n.p,{children:"In this guide, you will learn how to quickly integrate the checkout components into your React application. For more detailed information and advanced usage, check out the Guide section."}),`
12
- `,e.jsx(n.h3,{id:"installation",children:"Installation"}),`
13
- `,e.jsx(n.p,{children:"Install using your preferred package manager:"}),`
14
- `,e.jsx(n.pre,{children:e.jsx(n.code,{className:"language-bash",children:`# pnpm (recommended)
15
- pnpm add @clickaroo/checkout-ui
16
-
17
- # or npm
18
- npm install @clickaroo/checkout-ui
19
-
20
- # or yarn
21
- yarn add @clickaroo/checkout-ui
22
- `})}),`
23
- `,e.jsx(n.h4,{id:"peer-dependencies",children:"Peer Dependencies"}),`
24
- `,e.jsxs(n.p,{children:["This library requires ",e.jsx(n.code,{children:"react"})," (>= 16.8.0) as peer dependencies."]}),`
25
- `,e.jsxs(n.ul,{children:[`
26
- `,e.jsxs(n.li,{children:[e.jsx(n.strong,{children:"npm 7+"}),": Will automatically install them"]}),`
27
- `,e.jsxs(n.li,{children:[e.jsx(n.strong,{children:"npm 6 / pnpm"}),": You may need to install them manually if you see warnings"]}),`
28
- `,e.jsxs(n.li,{children:[e.jsx(n.strong,{children:"yarn v2+"}),": Will error if they are missing"]}),`
29
- `]}),`
30
- `,e.jsx(n.p,{children:"Most React projects already have these installed, so you typically don't need to do anything extra."}),`
31
- `,e.jsx(n.h3,{id:"token-parameter",children:"Token Parameter"}),`
32
- `,e.jsxs(n.p,{children:["The component library requires a ",e.jsx(n.code,{children:"clro_token"})," parameter to identify the checkout session. This token should be provided in the URL query parameter when users navigate to the checkout page:"]}),`
33
- `,e.jsx(n.pre,{children:e.jsx(n.code,{children:`https://your-checkout-page.com?clro_token=YOUR_TOKEN_HERE
34
- `})}),`
35
- `,e.jsx(n.p,{children:"The token will be automatically extracted from the URL and stored in localStorage for subsequent requests."}),`
36
- `,e.jsx(n.h3,{id:"use-checkout-all-in-one",children:"Use Checkout All in One"}),`
37
- `,e.jsxs(n.p,{children:["The simplest way is to use the ",e.jsx(n.code,{children:"CheckoutPage"})," component directly, which includes the complete checkout flow."]}),`
38
- `,e.jsx(s,{of:c}),`
39
- `,e.jsxs(n.blockquote,{children:[`
40
- `,e.jsxs(n.p,{children:[e.jsx(n.strong,{children:"Note"}),": If you need Google address suggestions for the address field, you must provide a ",e.jsx(n.code,{children:"googleApiKey"})," that meets the ",e.jsx(n.a,{href:"https://developers.google.com/maps/documentation/places/web-service/get-api-key?hl=en&setupProd=prerequisites",rel:"nofollow",children:"google places api requirements"}),"."]}),`
41
- `]}),`
42
- `,e.jsx(n.pre,{children:e.jsx(n.code,{className:"language-tsx",children:`import { CheckoutPage } from '@clickaroo/checkout-ui';
43
-
44
- function MyCheckout() {
45
- const cart = [
46
- {
47
- sku: "TEST001",
48
- offerPricePoint: "OPP-TEST001",
49
- },
50
- {
51
- sku: "TEST002",
52
- offerPricePoint: "OPP-TEST002",
53
- },
54
- ];
55
-
56
- return <CheckoutPage cart={cart} googleApiKey={YOUR_GOOGLE_API_KEY} />;
57
- }
58
- `})}),`
59
- `,e.jsxs(n.blockquote,{children:[`
60
- `,e.jsxs(n.p,{children:[e.jsx(n.strong,{children:"Tips"}),`:
61
- Each object in the `,e.jsx(n.code,{children:"cart"})," array only needs to contain the two required fields: ",e.jsx(n.code,{children:"sku"})," and ",e.jsx(n.code,{children:"offerPricePoint"}),". However, you can also pass other optional product information fields (such as ",e.jsx(n.code,{children:"title"}),", ",e.jsx(n.code,{children:"price"}),", ",e.jsx(n.code,{children:"image"}),", etc.), which will be saved to the order's metadata."]}),`
62
- `]}),`
63
- `,e.jsxs(n.p,{children:["You can read more about all the possible configuration options in ",e.jsx(n.a,{href:"./?path=/docs/components-checkoutpage--checkoutpage-english",children:"CheckoutPage Documentation"}),"."]}),`
64
- `,e.jsx(n.h3,{id:"event-callbacks",children:"Event Callbacks"}),`
65
- `,e.jsxs(n.p,{children:["The ",e.jsx(n.code,{children:"CheckoutPage"})," component provides several event callbacks that allow you to monitor and respond to different stages of the checkout process. These callbacks enable you to track user behavior, handle loading states, and implement custom logic."]}),`
66
- `,e.jsx(n.p,{children:"Here's a complete example that includes all event callbacks:"}),`
67
- `,e.jsx(n.pre,{children:e.jsx(n.code,{className:"language-tsx",children:`import { CheckoutPage } from '@clickaroo/checkout-ui';
68
- import { useNavigate } from 'react-router-dom'; // or your routing library
69
-
70
- function MyCheckout() {
71
- const navigate = useNavigate();
72
-
73
- const cart = [
74
- {
75
- sku: "TEST001",
76
- offerPricePoint: "OPP-TEST001",
77
- title: "Product 1",
78
- price: 99.99,
79
- },
80
- ];
81
-
82
- return (
83
- <CheckoutPage
84
- cart={cart}
85
- googleApiKey={YOUR_GOOGLE_API_KEY}
86
- onCheckoutInit={() => {
87
- console.log('Checkout initialized');
88
- }}
89
- onPaymentInfoComplete={(cart, totalAmount) => {
90
- console.log('Payment info complete');
91
- }}
92
- onOrderSubmit={(cart, totalAmount) => {
93
- console.log('Order submitted');
94
- }}
95
- onOrderSuccess={(orderCode, tradeCode) => {
96
- console.log('Order successful:', orderCode);
97
- // Redirect to finish page
98
- navigate(\`/finish/\${orderCode}\`);
99
- }}
100
- />
101
- );
102
- }
103
- `})}),`
104
- `,e.jsx(n.p,{children:e.jsx(n.strong,{children:"Key Points:"})}),`
105
- `,e.jsxs(n.ul,{children:[`
106
- `,e.jsxs(n.li,{children:[e.jsx(n.code,{children:"onCheckoutInit"}),": Triggered when the checkout page loads"]}),`
107
- `,e.jsxs(n.li,{children:[e.jsx(n.code,{children:"onPaymentInfoComplete"}),": Triggered when the payment form is valid"]}),`
108
- `,e.jsxs(n.li,{children:[e.jsx(n.code,{children:"onOrderSubmit"}),": Triggered when user clicks submit"]}),`
109
- `,e.jsxs(n.li,{children:[e.jsx(n.code,{children:"onOrderSuccess"}),": Triggered when order is successfully created"]}),`
110
- `]}),`
111
- `,e.jsx(n.h3,{id:"display-order-details-on-finish-page",children:"Display Order Details on Finish Page"}),`
112
- `,e.jsxs(n.p,{children:["After the user successfully completes the payment and is redirected to the finish page, you can use the ",e.jsx(n.code,{children:"useOrderDetail"})," hook to display order information:"]}),`
113
- `,e.jsx(n.pre,{children:e.jsx(n.code,{className:"language-tsx",children:`import { useOrderDetail } from '@clickaroo/checkout-ui';
114
- import { useParams } from 'react-router-dom';
115
-
116
- function OrderCompletePage() {
117
- const { orderCode } = useParams();
118
- const { orderDetail, loading, error } = useOrderDetail(orderCode || '');
119
-
120
- if (loading) return <div>Loading order details...</div>;
121
- if (error) return <div>Error: {error}</div>;
122
- if (!orderDetail) return <div>Order not found</div>;
123
-
124
- return (
125
- <div>
126
- <h1>Order Complete!</h1>
127
- <p>Order Code: {orderDetail.order_code}</p>
128
- <p>Customer Information: {orderDetail.customer.email} {orderDetail.customer.phone}</p>
129
- <p>Total: {orderDetail.total_amount}</p>
130
- <p>Product Detail: {orderDetail.metadata}</p>
131
- {/* Display more order details as needed */}
132
- </div>
133
- );
134
- }
135
- `})}),`
136
- `,e.jsxs(n.p,{children:["For more advanced usage, check out the ",e.jsx(n.a,{href:"./?path=/docs/documentation-apis--docs",children:"APIs documentation"}),"."]})]})}function b(o={}){const{wrapper:n}={...t(),...o.components};return n?e.jsx(n,{...o,children:e.jsx(r,{...o})}):r(o)}export{b as default};
@@ -1,136 +0,0 @@
1
- import{j as e}from"./jsx-runtime-DiklIkkE.js";import{useMDXComponents as t}from"./index-ChEI-nsM.js";import{M as i,C as s}from"./index-LRKEu_dQ.js";import{D as c}from"./CheckoutPage.stories-DLD3oWo_.js";import"./index-DRjF_FHU.js";import"./iframe-Ce3kgeV4.js";import"./index-B7ki2Uzk.js";import"./index-D-Mha1DF.js";import"./index-DrFu-skq.js";import"./useCheckoutContext-B8tsk5b5.js";import"./CheckoutPage-BsnzMxJk.js";import"./CustomerInfo-CTx1dFS3.js";import"./ValidateInput-Cl2O4HCX.js";import"./DeliveryAddress-X81XGbKD.js";import"./PaymentMethods-BNEEARzu.js";function r(o){const n={a:"a",blockquote:"blockquote",code:"code",h1:"h1",h3:"h3",h4:"h4",li:"li",ol:"ol",p:"p",pre:"pre",strong:"strong",ul:"ul",...t(),...o.components};return e.jsxs(e.Fragment,{children:[e.jsx(i,{title:"Documentation/QuickStart"}),`
2
- `,e.jsx(n.h1,{id:"overview",children:"Overview"}),`
3
- `,e.jsxs(n.p,{children:["This component library is designed for the ",e.jsx(n.strong,{children:"checkout page"})," in your e-commerce flow. Here's how it fits into a typical purchase journey:"]}),`
4
- `,e.jsxs(n.ol,{children:[`
5
- `,e.jsxs(n.li,{children:[e.jsx(n.strong,{children:"Product/Landing Page"}),": Users browse products on your product or landing page. You should provide a button or link that navigates users to the checkout page when they're ready to purchase."]}),`
6
- `,e.jsxs(n.li,{children:[e.jsx(n.strong,{children:"Checkout Page"}),": This is where you integrate this component library. Users can submit their purchase information here."]}),`
7
- `,e.jsxs(n.li,{children:[e.jsx(n.strong,{children:"Finish Page"}),": After successful payment, redirect users to a finish page to confirm their order completion."]}),`
8
- `]}),`
9
- `,e.jsx(n.h1,{id:"quick-start",children:"Quick Start"}),`
10
- `,e.jsx(n.p,{children:"The checkout component handles the entire checkout process including customer information collection, delivery address management, and payment processing."}),`
11
- `,e.jsx(n.p,{children:"In this guide, you will learn how to quickly integrate the checkout components into your React application. For more detailed information and advanced usage, check out the Guide section."}),`
12
- `,e.jsx(n.h3,{id:"installation",children:"Installation"}),`
13
- `,e.jsx(n.p,{children:"Install using your preferred package manager:"}),`
14
- `,e.jsx(n.pre,{children:e.jsx(n.code,{className:"language-bash",children:`# pnpm (recommended)
15
- pnpm add @clickaroo/checkout-ui
16
-
17
- # or npm
18
- npm install @clickaroo/checkout-ui
19
-
20
- # or yarn
21
- yarn add @clickaroo/checkout-ui
22
- `})}),`
23
- `,e.jsx(n.h4,{id:"peer-dependencies",children:"Peer Dependencies"}),`
24
- `,e.jsxs(n.p,{children:["This library requires ",e.jsx(n.code,{children:"react"})," (>= 16.8.0) as peer dependencies."]}),`
25
- `,e.jsxs(n.ul,{children:[`
26
- `,e.jsxs(n.li,{children:[e.jsx(n.strong,{children:"npm 7+"}),": Will automatically install them"]}),`
27
- `,e.jsxs(n.li,{children:[e.jsx(n.strong,{children:"npm 6 / pnpm"}),": You may need to install them manually if you see warnings"]}),`
28
- `,e.jsxs(n.li,{children:[e.jsx(n.strong,{children:"yarn v2+"}),": Will error if they are missing"]}),`
29
- `]}),`
30
- `,e.jsx(n.p,{children:"Most React projects already have these installed, so you typically don't need to do anything extra."}),`
31
- `,e.jsx(n.h3,{id:"token-parameter",children:"Token Parameter"}),`
32
- `,e.jsxs(n.p,{children:["The component library requires a ",e.jsx(n.code,{children:"clro_token"})," parameter to identify the checkout session. This token should be provided in the URL query parameter when users navigate to the checkout page:"]}),`
33
- `,e.jsx(n.pre,{children:e.jsx(n.code,{children:`https://your-checkout-page.com?clro_token=YOUR_TOKEN_HERE
34
- `})}),`
35
- `,e.jsx(n.p,{children:"The token will be automatically extracted from the URL and stored in localStorage for subsequent requests."}),`
36
- `,e.jsx(n.h3,{id:"use-checkout-all-in-one",children:"Use Checkout All in One"}),`
37
- `,e.jsxs(n.p,{children:["The simplest way is to use the ",e.jsx(n.code,{children:"CheckoutPage"})," component directly, which includes the complete checkout flow."]}),`
38
- `,e.jsx(s,{of:c}),`
39
- `,e.jsxs(n.blockquote,{children:[`
40
- `,e.jsxs(n.p,{children:[e.jsx(n.strong,{children:"Note"}),": If you need Google address suggestions for the address field, you must provide a ",e.jsx(n.code,{children:"googleApiKey"})," that meets the ",e.jsx(n.a,{href:"https://developers.google.com/maps/documentation/places/web-service/get-api-key?hl=en&setupProd=prerequisites",rel:"nofollow",children:"google places api requirements"}),"."]}),`
41
- `]}),`
42
- `,e.jsx(n.pre,{children:e.jsx(n.code,{className:"language-tsx",children:`import { CheckoutPage } from '@clickaroo/checkout-ui';
43
-
44
- function MyCheckout() {
45
- const cart = [
46
- {
47
- sku: "TEST001",
48
- offerPricePoint: "OPP-TEST001",
49
- },
50
- {
51
- sku: "TEST002",
52
- offerPricePoint: "OPP-TEST002",
53
- },
54
- ];
55
-
56
- return <CheckoutPage cart={cart} googleApiKey={YOUR_GOOGLE_API_KEY} />;
57
- }
58
- `})}),`
59
- `,e.jsxs(n.blockquote,{children:[`
60
- `,e.jsxs(n.p,{children:[e.jsx(n.strong,{children:"Tips"}),`:
61
- Each object in the `,e.jsx(n.code,{children:"cart"})," array only needs to contain the two required fields: ",e.jsx(n.code,{children:"sku"})," and ",e.jsx(n.code,{children:"offerPricePoint"}),". However, you can also pass other optional product information fields (such as ",e.jsx(n.code,{children:"title"}),", ",e.jsx(n.code,{children:"price"}),", ",e.jsx(n.code,{children:"image"}),", etc.), which will be saved to the order's metadata."]}),`
62
- `]}),`
63
- `,e.jsxs(n.p,{children:["You can read more about all the possible configuration options in ",e.jsx(n.a,{href:"./?path=/docs/components-checkoutpage--checkoutpage-english",children:"CheckoutPage Documentation"}),"."]}),`
64
- `,e.jsx(n.h3,{id:"event-callbacks",children:"Event Callbacks"}),`
65
- `,e.jsxs(n.p,{children:["The ",e.jsx(n.code,{children:"CheckoutPage"})," component provides several event callbacks that allow you to monitor and respond to different stages of the checkout process. These callbacks enable you to track user behavior, handle loading states, and implement custom logic."]}),`
66
- `,e.jsx(n.p,{children:"Here's a complete example that includes all event callbacks:"}),`
67
- `,e.jsx(n.pre,{children:e.jsx(n.code,{className:"language-tsx",children:`import { CheckoutPage } from '@clickaroo/checkout-ui';
68
- import { useNavigate } from 'react-router-dom'; // or your routing library
69
-
70
- function MyCheckout() {
71
- const navigate = useNavigate();
72
-
73
- const cart = [
74
- {
75
- sku: "TEST001",
76
- offerPricePoint: "OPP-TEST001",
77
- title: "Product 1",
78
- price: 99.99,
79
- },
80
- ];
81
-
82
- return (
83
- <CheckoutPage
84
- cart={cart}
85
- googleApiKey={YOUR_GOOGLE_API_KEY}
86
- onCheckoutInit={() => {
87
- console.log('Checkout initialized');
88
- }}
89
- onPaymentInfoComplete={(cart, totalAmount) => {
90
- console.log('Payment info complete');
91
- }}
92
- onOrderSubmit={(cart, totalAmount) => {
93
- console.log('Order submitted');
94
- }}
95
- onOrderSuccess={(orderCode, tradeCode) => {
96
- console.log('Order successful:', orderCode);
97
- // Redirect to finish page
98
- navigate(\`/finish/\${orderCode}\`);
99
- }}
100
- />
101
- );
102
- }
103
- `})}),`
104
- `,e.jsx(n.p,{children:e.jsx(n.strong,{children:"Key Points:"})}),`
105
- `,e.jsxs(n.ul,{children:[`
106
- `,e.jsxs(n.li,{children:[e.jsx(n.code,{children:"onCheckoutInit"}),": Triggered when the checkout page loads"]}),`
107
- `,e.jsxs(n.li,{children:[e.jsx(n.code,{children:"onPaymentInfoComplete"}),": Triggered when the payment form is valid"]}),`
108
- `,e.jsxs(n.li,{children:[e.jsx(n.code,{children:"onOrderSubmit"}),": Triggered when user clicks submit"]}),`
109
- `,e.jsxs(n.li,{children:[e.jsx(n.code,{children:"onOrderSuccess"}),": Triggered when order is successfully created"]}),`
110
- `]}),`
111
- `,e.jsx(n.h3,{id:"display-order-details-on-finish-page",children:"Display Order Details on Finish Page"}),`
112
- `,e.jsxs(n.p,{children:["After the user successfully completes the payment and is redirected to the finish page, you can use the ",e.jsx(n.code,{children:"useOrderDetail"})," hook to display order information:"]}),`
113
- `,e.jsx(n.pre,{children:e.jsx(n.code,{className:"language-tsx",children:`import { useOrderDetail } from '@clickaroo/checkout-ui';
114
- import { useParams } from 'react-router-dom';
115
-
116
- function OrderCompletePage() {
117
- const { orderCode } = useParams();
118
- const { orderDetail, loading, error } = useOrderDetail(orderCode || '');
119
-
120
- if (loading) return <div>Loading order details...</div>;
121
- if (error) return <div>Error: {error}</div>;
122
- if (!orderDetail) return <div>Order not found</div>;
123
-
124
- return (
125
- <div>
126
- <h1>Order Complete!</h1>
127
- <p>Order Code: {orderDetail.order_code}</p>
128
- <p>Customer Information: {orderDetail.customer.email} {orderDetail.customer.phone}</p>
129
- <p>Total: {orderDetail.total_amount}</p>
130
- <p>Product Detail: {orderDetail.metadata}</p>
131
- {/* Display more order details as needed */}
132
- </div>
133
- );
134
- }
135
- `})}),`
136
- `,e.jsxs(n.p,{children:["For more advanced usage, check out the ",e.jsx(n.a,{href:"./?path=/docs/documentation-apis--docs",children:"APIs documentation"}),"."]})]})}function b(o={}){const{wrapper:n}={...t(),...o.components};return n?e.jsx(n,{...o,children:e.jsx(r,{...o})}):r(o)}export{b as default};
@@ -1,136 +0,0 @@
1
- import{j as e}from"./jsx-runtime-DiklIkkE.js";import{useMDXComponents as t}from"./index-ChEI-nsM.js";import{M as i,C as s}from"./index-Cyd9I05m.js";import{D as c}from"./CheckoutPage.stories-BFpky7Cv.js";import"./index-DRjF_FHU.js";import"./iframe-Ckasx_Sg.js";import"./index-B7ki2Uzk.js";import"./index-D-Mha1DF.js";import"./index-DrFu-skq.js";import"./useCheckoutContext-Cyg-MLQs.js";import"./CheckoutPage-B959BwZO.js";import"./CustomerInfo-CdeZHMcz.js";import"./ValidateInput-C6pnsZFe.js";import"./DeliveryAddress-zAvEPauR.js";import"./PaymentMethods-DOuQM2jZ.js";function r(o){const n={a:"a",blockquote:"blockquote",code:"code",h1:"h1",h3:"h3",h4:"h4",li:"li",ol:"ol",p:"p",pre:"pre",strong:"strong",ul:"ul",...t(),...o.components};return e.jsxs(e.Fragment,{children:[e.jsx(i,{title:"Documentation/QuickStart"}),`
2
- `,e.jsx(n.h1,{id:"overview",children:"Overview"}),`
3
- `,e.jsxs(n.p,{children:["This component library is designed for the ",e.jsx(n.strong,{children:"checkout page"})," in your e-commerce flow. Here's how it fits into a typical purchase journey:"]}),`
4
- `,e.jsxs(n.ol,{children:[`
5
- `,e.jsxs(n.li,{children:[e.jsx(n.strong,{children:"Product/Landing Page"}),": Users browse products on your product or landing page. You should provide a button or link that navigates users to the checkout page when they're ready to purchase."]}),`
6
- `,e.jsxs(n.li,{children:[e.jsx(n.strong,{children:"Checkout Page"}),": This is where you integrate this component library. Users can submit their purchase information here."]}),`
7
- `,e.jsxs(n.li,{children:[e.jsx(n.strong,{children:"Finish Page"}),": After successful payment, redirect users to a finish page to confirm their order completion."]}),`
8
- `]}),`
9
- `,e.jsx(n.h1,{id:"quick-start",children:"Quick Start"}),`
10
- `,e.jsx(n.p,{children:"The checkout component handles the entire checkout process including customer information collection, delivery address management, and payment processing."}),`
11
- `,e.jsx(n.p,{children:"In this guide, you will learn how to quickly integrate the checkout components into your React application. For more detailed information and advanced usage, check out the Guide section."}),`
12
- `,e.jsx(n.h3,{id:"installation",children:"Installation"}),`
13
- `,e.jsx(n.p,{children:"Install using your preferred package manager:"}),`
14
- `,e.jsx(n.pre,{children:e.jsx(n.code,{className:"language-bash",children:`# pnpm (recommended)
15
- pnpm add @clickaroo/checkout-ui
16
-
17
- # or npm
18
- npm install @clickaroo/checkout-ui
19
-
20
- # or yarn
21
- yarn add @clickaroo/checkout-ui
22
- `})}),`
23
- `,e.jsx(n.h4,{id:"peer-dependencies",children:"Peer Dependencies"}),`
24
- `,e.jsxs(n.p,{children:["This library requires ",e.jsx(n.code,{children:"react"})," (>= 16.8.0) as peer dependencies."]}),`
25
- `,e.jsxs(n.ul,{children:[`
26
- `,e.jsxs(n.li,{children:[e.jsx(n.strong,{children:"npm 7+"}),": Will automatically install them"]}),`
27
- `,e.jsxs(n.li,{children:[e.jsx(n.strong,{children:"npm 6 / pnpm"}),": You may need to install them manually if you see warnings"]}),`
28
- `,e.jsxs(n.li,{children:[e.jsx(n.strong,{children:"yarn v2+"}),": Will error if they are missing"]}),`
29
- `]}),`
30
- `,e.jsx(n.p,{children:"Most React projects already have these installed, so you typically don't need to do anything extra."}),`
31
- `,e.jsx(n.h3,{id:"token-parameter",children:"Token Parameter"}),`
32
- `,e.jsxs(n.p,{children:["The component library requires a ",e.jsx(n.code,{children:"clro_token"})," parameter to identify the checkout session. This token should be provided in the URL query parameter when users navigate to the checkout page:"]}),`
33
- `,e.jsx(n.pre,{children:e.jsx(n.code,{children:`https://your-checkout-page.com?clro_token=YOUR_TOKEN_HERE
34
- `})}),`
35
- `,e.jsx(n.p,{children:"The token will be automatically extracted from the URL and stored in localStorage for subsequent requests."}),`
36
- `,e.jsx(n.h3,{id:"use-checkout-all-in-one",children:"Use Checkout All in One"}),`
37
- `,e.jsxs(n.p,{children:["The simplest way is to use the ",e.jsx(n.code,{children:"CheckoutPage"})," component directly, which includes the complete checkout flow."]}),`
38
- `,e.jsx(s,{of:c}),`
39
- `,e.jsxs(n.blockquote,{children:[`
40
- `,e.jsxs(n.p,{children:[e.jsx(n.strong,{children:"Note"}),": If you need Google address suggestions for the address field, you must provide a ",e.jsx(n.code,{children:"googleApiKey"})," that meets the ",e.jsx(n.a,{href:"https://developers.google.com/maps/documentation/places/web-service/get-api-key?hl=en&setupProd=prerequisites",rel:"nofollow",children:"google places api requirements"}),"."]}),`
41
- `]}),`
42
- `,e.jsx(n.pre,{children:e.jsx(n.code,{className:"language-tsx",children:`import { CheckoutPage } from '@clickaroo/checkout-ui';
43
-
44
- function MyCheckout() {
45
- const cart = [
46
- {
47
- sku: "TEST001",
48
- offerPricePoint: "OPP-TEST001",
49
- },
50
- {
51
- sku: "TEST002",
52
- offerPricePoint: "OPP-TEST002",
53
- },
54
- ];
55
-
56
- return <CheckoutPage cart={cart} googleApiKey={YOUR_GOOGLE_API_KEY} />;
57
- }
58
- `})}),`
59
- `,e.jsxs(n.blockquote,{children:[`
60
- `,e.jsxs(n.p,{children:[e.jsx(n.strong,{children:"Tips"}),`:
61
- Each object in the `,e.jsx(n.code,{children:"cart"})," array only needs to contain the two required fields: ",e.jsx(n.code,{children:"sku"})," and ",e.jsx(n.code,{children:"offerPricePoint"}),". However, you can also pass other optional product information fields (such as ",e.jsx(n.code,{children:"title"}),", ",e.jsx(n.code,{children:"price"}),", ",e.jsx(n.code,{children:"image"}),", etc.), which will be saved to the order's metadata."]}),`
62
- `]}),`
63
- `,e.jsxs(n.p,{children:["You can read more about all the possible configuration options in ",e.jsx(n.a,{href:"./?path=/docs/components-checkoutpage--checkoutpage-english",children:"CheckoutPage Documentation"}),"."]}),`
64
- `,e.jsx(n.h3,{id:"event-callbacks",children:"Event Callbacks"}),`
65
- `,e.jsxs(n.p,{children:["The ",e.jsx(n.code,{children:"CheckoutPage"})," component provides several event callbacks that allow you to monitor and respond to different stages of the checkout process. These callbacks enable you to track user behavior, handle loading states, and implement custom logic."]}),`
66
- `,e.jsx(n.p,{children:"Here's a complete example that includes all event callbacks:"}),`
67
- `,e.jsx(n.pre,{children:e.jsx(n.code,{className:"language-tsx",children:`import { CheckoutPage } from '@clickaroo/checkout-ui';
68
- import { useNavigate } from 'react-router-dom'; // or your routing library
69
-
70
- function MyCheckout() {
71
- const navigate = useNavigate();
72
-
73
- const cart = [
74
- {
75
- sku: "TEST001",
76
- offerPricePoint: "OPP-TEST001",
77
- title: "Product 1",
78
- price: 99.99,
79
- },
80
- ];
81
-
82
- return (
83
- <CheckoutPage
84
- cart={cart}
85
- googleApiKey={YOUR_GOOGLE_API_KEY}
86
- onCheckoutInit={() => {
87
- console.log('Checkout initialized');
88
- }}
89
- onPaymentInfoComplete={(cart, totalAmount) => {
90
- console.log('Payment info complete');
91
- }}
92
- onOrderSubmit={(cart, totalAmount) => {
93
- console.log('Order submitted');
94
- }}
95
- onOrderSuccess={(orderCode, tradeCode) => {
96
- console.log('Order successful:', orderCode);
97
- // Redirect to finish page
98
- navigate(\`/finish/\${orderCode}\`);
99
- }}
100
- />
101
- );
102
- }
103
- `})}),`
104
- `,e.jsx(n.p,{children:e.jsx(n.strong,{children:"Key Points:"})}),`
105
- `,e.jsxs(n.ul,{children:[`
106
- `,e.jsxs(n.li,{children:[e.jsx(n.code,{children:"onCheckoutInit"}),": Triggered when the checkout page loads"]}),`
107
- `,e.jsxs(n.li,{children:[e.jsx(n.code,{children:"onPaymentInfoComplete"}),": Triggered when the payment form is valid"]}),`
108
- `,e.jsxs(n.li,{children:[e.jsx(n.code,{children:"onOrderSubmit"}),": Triggered when user clicks submit"]}),`
109
- `,e.jsxs(n.li,{children:[e.jsx(n.code,{children:"onOrderSuccess"}),": Triggered when order is successfully created"]}),`
110
- `]}),`
111
- `,e.jsx(n.h3,{id:"display-order-details-on-finish-page",children:"Display Order Details on Finish Page"}),`
112
- `,e.jsxs(n.p,{children:["After the user successfully completes the payment and is redirected to the finish page, you can use the ",e.jsx(n.code,{children:"useOrderDetail"})," hook to display order information:"]}),`
113
- `,e.jsx(n.pre,{children:e.jsx(n.code,{className:"language-tsx",children:`import { useOrderDetail } from '@clickaroo/checkout-ui';
114
- import { useParams } from 'react-router-dom';
115
-
116
- function OrderCompletePage() {
117
- const { orderCode } = useParams();
118
- const { orderDetail, loading, error } = useOrderDetail(orderCode || '');
119
-
120
- if (loading) return <div>Loading order details...</div>;
121
- if (error) return <div>Error: {error}</div>;
122
- if (!orderDetail) return <div>Order not found</div>;
123
-
124
- return (
125
- <div>
126
- <h1>Order Complete!</h1>
127
- <p>Order Code: {orderDetail.order_code}</p>
128
- <p>Customer Information: {orderDetail.customer.email} {orderDetail.customer.phone}</p>
129
- <p>Total: {orderDetail.total_amount}</p>
130
- <p>Product Detail: {orderDetail.metadata}</p>
131
- {/* Display more order details as needed */}
132
- </div>
133
- );
134
- }
135
- `})}),`
136
- `,e.jsxs(n.p,{children:["For more advanced usage, check out the ",e.jsx(n.a,{href:"./?path=/docs/documentation-apis--docs",children:"APIs documentation"}),"."]})]})}function b(o={}){const{wrapper:n}={...t(),...o.components};return n?e.jsx(n,{...o,children:e.jsx(r,{...o})}):r(o)}export{b as default};
@@ -1,2 +0,0 @@
1
- import{j as r}from"./jsx-runtime-DiklIkkE.js";import{r as o,R}from"./index-DRjF_FHU.js";import{Z as j}from"./useCheckoutContext-Cyg-MLQs.js";const H=({label:d,value:t,onChange:T,onBlur:p,onFocus:m,type:v="text",placeholder:h,icon:f,prefix:u,inputClass:w="",error:q,schema:n,validateOnChange:g=!1,validateOnBlur:I=!0,onValidationChange:l,...M})=>{const[F,b]=o.useState(!1),[N,L]=o.useState(null),c=q||N,s=o.useCallback(e=>{var i;if(!n)return null;try{return n.parse(e),null}catch(x){return x instanceof j&&((i=x.issues[0])==null?void 0:i.message)||"Validation failed"}},[n]),a=o.useCallback(e=>{L(e),l&&l(e)},[l]),y=R.useRef(t),E=R.useRef(!1);return o.useEffect(()=>{if(n){if(g){const e=s(t);a(e);return}if(E.current){if(t!==y.current&&t){const e=s(t);a(e)}}else{if(t){const e=s(t);a(e)}E.current=!0}y.current=t}},[t,n,g,s,a]),r.jsxs("div",{className:"relative w-full",children:[r.jsx("label",{className:`text-sm text-[#2A2B35] bg-white px-1 pointer-events-none
2
- transition-all duration-200 z-10`,children:d}),r.jsxs("div",{className:"relative flex items-center",children:[u&&r.jsx("div",{className:"absolute left-0 top-0 bottom-0 z-10 flex items-center",children:u}),r.jsx("input",{type:v,value:t,onFocus:e=>{b(!0),m&&m(e)},onBlur:e=>{if(b(!1),n&&I){const i=s(t);a(i)}p&&p(e)},onChange:T,placeholder:F?"":h||d,className:`w-full border border-solid border-[#e6e6e6] shadow-sm rounded-md p-[0.64rem] ${u?"pl-20":"pl-3"} text-base bg-white placeholder-custom transition pr-12 appearance-none outline-none font-[inherit] ${c?"!border-2 !border-[#df1b41] focus:!border-[#df1b41] !text-[#df1b41] focus:!ring-0 focus:!outline-none":"border-[#e6e6e6] focus:border-[#8AA3D4] focus:shadow-focus focus:!outline-none"} ${w}`,...M}),f&&r.jsx("span",{className:"absolute right-3 top-0 bottom-0 flex items-center text-black",children:f})]}),c&&r.jsx("p",{className:"mt-1 text-sm text-[#df1b41] px-2",children:c})]})};H.__docgenInfo={description:"",methods:[],displayName:"FloatingLabelInput",props:{label:{required:!0,tsType:{name:"string"},description:""},value:{required:!0,tsType:{name:"string"},description:""},onChange:{required:!0,tsType:{name:"signature",type:"function",raw:"(e: React.ChangeEvent<HTMLInputElement>) => void",signature:{arguments:[{type:{name:"ReactChangeEvent",raw:"React.ChangeEvent<HTMLInputElement>",elements:[{name:"HTMLInputElement"}]},name:"e"}],return:{name:"void"}}},description:""},onBlur:{required:!1,tsType:{name:"signature",type:"function",raw:"(e: React.FocusEvent<HTMLInputElement>) => void",signature:{arguments:[{type:{name:"ReactFocusEvent",raw:"React.FocusEvent<HTMLInputElement>",elements:[{name:"HTMLInputElement"}]},name:"e"}],return:{name:"void"}}},description:""},onFocus:{required:!1,tsType:{name:"signature",type:"function",raw:"(e: React.FocusEvent<HTMLInputElement>) => void",signature:{arguments:[{type:{name:"ReactFocusEvent",raw:"React.FocusEvent<HTMLInputElement>",elements:[{name:"HTMLInputElement"}]},name:"e"}],return:{name:"void"}}},description:""},type:{required:!1,tsType:{name:"string"},description:"",defaultValue:{value:'"text"',computed:!1}},placeholder:{required:!1,tsType:{name:"string"},description:""},icon:{required:!1,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""},prefix:{required:!1,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""},inputClass:{required:!1,tsType:{name:"string"},description:"",defaultValue:{value:'""',computed:!1}},error:{required:!1,tsType:{name:"string"},description:""},schema:{required:!1,tsType:{name:"z.ZodSchema",elements:[{name:"string"}],raw:"z.ZodSchema<string>"},description:""},validateOnChange:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},validateOnBlur:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"true",computed:!1}},onValidationChange:{required:!1,tsType:{name:"signature",type:"function",raw:"(error: string | null) => void",signature:{arguments:[{type:{name:"union",raw:"string | null",elements:[{name:"string"},{name:"null"}]},name:"error"}],return:{name:"void"}}},description:""}},composes:["Omit"]};export{H as F};
@@ -1,2 +0,0 @@
1
- import{j as r}from"./jsx-runtime-DiklIkkE.js";import{r as o,R}from"./index-DRjF_FHU.js";import{Z as j}from"./useCheckoutContext-w0N5TNgR.js";const H=({label:d,value:t,onChange:T,onBlur:p,onFocus:m,type:v="text",placeholder:h,icon:f,prefix:u,inputClass:w="",error:q,schema:n,validateOnChange:g=!1,validateOnBlur:I=!0,onValidationChange:l,...M})=>{const[F,b]=o.useState(!1),[N,L]=o.useState(null),c=q||N,s=o.useCallback(e=>{var i;if(!n)return null;try{return n.parse(e),null}catch(x){return x instanceof j&&((i=x.issues[0])==null?void 0:i.message)||"Validation failed"}},[n]),a=o.useCallback(e=>{L(e),l&&l(e)},[l]),y=R.useRef(t),E=R.useRef(!1);return o.useEffect(()=>{if(n){if(g){const e=s(t);a(e);return}if(E.current){if(t!==y.current&&t){const e=s(t);a(e)}}else{if(t){const e=s(t);a(e)}E.current=!0}y.current=t}},[t,n,g,s,a]),r.jsxs("div",{className:"relative w-full",children:[r.jsx("label",{className:`text-sm text-[#2A2B35] bg-white px-1 pointer-events-none
2
- transition-all duration-200 z-10`,children:d}),r.jsxs("div",{className:"relative flex items-center",children:[u&&r.jsx("div",{className:"absolute left-0 top-0 bottom-0 z-10 flex items-center",children:u}),r.jsx("input",{type:v,value:t,onFocus:e=>{b(!0),m&&m(e)},onBlur:e=>{if(b(!1),n&&I){const i=s(t);a(i)}p&&p(e)},onChange:T,placeholder:F?"":h||d,className:`w-full border border-solid border-[#e6e6e6] shadow-sm rounded-md p-[0.64rem] ${u?"pl-20":"pl-3"} text-base bg-white placeholder-custom transition pr-12 appearance-none outline-none font-[inherit] ${c?"!border-2 !border-[#df1b41] focus:!border-[#df1b41] !text-[#df1b41] focus:!ring-0 focus:!outline-none":"border-[#e6e6e6] focus:border-[#8AA3D4] focus:shadow-focus focus:!outline-none"} ${w}`,...M}),f&&r.jsx("span",{className:"absolute right-3 top-0 bottom-0 flex items-center text-black",children:f})]}),c&&r.jsx("p",{className:"mt-1 text-sm text-[#df1b41] px-2",children:c})]})};H.__docgenInfo={description:"",methods:[],displayName:"FloatingLabelInput",props:{label:{required:!0,tsType:{name:"string"},description:""},value:{required:!0,tsType:{name:"string"},description:""},onChange:{required:!0,tsType:{name:"signature",type:"function",raw:"(e: React.ChangeEvent<HTMLInputElement>) => void",signature:{arguments:[{type:{name:"ReactChangeEvent",raw:"React.ChangeEvent<HTMLInputElement>",elements:[{name:"HTMLInputElement"}]},name:"e"}],return:{name:"void"}}},description:""},onBlur:{required:!1,tsType:{name:"signature",type:"function",raw:"(e: React.FocusEvent<HTMLInputElement>) => void",signature:{arguments:[{type:{name:"ReactFocusEvent",raw:"React.FocusEvent<HTMLInputElement>",elements:[{name:"HTMLInputElement"}]},name:"e"}],return:{name:"void"}}},description:""},onFocus:{required:!1,tsType:{name:"signature",type:"function",raw:"(e: React.FocusEvent<HTMLInputElement>) => void",signature:{arguments:[{type:{name:"ReactFocusEvent",raw:"React.FocusEvent<HTMLInputElement>",elements:[{name:"HTMLInputElement"}]},name:"e"}],return:{name:"void"}}},description:""},type:{required:!1,tsType:{name:"string"},description:"",defaultValue:{value:'"text"',computed:!1}},placeholder:{required:!1,tsType:{name:"string"},description:""},icon:{required:!1,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""},prefix:{required:!1,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""},inputClass:{required:!1,tsType:{name:"string"},description:"",defaultValue:{value:'""',computed:!1}},error:{required:!1,tsType:{name:"string"},description:""},schema:{required:!1,tsType:{name:"z.ZodSchema",elements:[{name:"string"}],raw:"z.ZodSchema<string>"},description:""},validateOnChange:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},validateOnBlur:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"true",computed:!1}},onValidationChange:{required:!1,tsType:{name:"signature",type:"function",raw:"(error: string | null) => void",signature:{arguments:[{type:{name:"union",raw:"string | null",elements:[{name:"string"},{name:"null"}]},name:"error"}],return:{name:"void"}}},description:""}},composes:["Omit"]};export{H as F};
@@ -1,2 +0,0 @@
1
- import{j as r}from"./jsx-runtime-DiklIkkE.js";import{r as o,R}from"./index-DRjF_FHU.js";import{Z as j}from"./useCheckoutContext-B8tsk5b5.js";const H=({label:d,value:t,onChange:T,onBlur:p,onFocus:m,type:v="text",placeholder:h,icon:f,prefix:u,inputClass:w="",error:q,schema:n,validateOnChange:g=!1,validateOnBlur:I=!0,onValidationChange:l,...M})=>{const[F,b]=o.useState(!1),[N,L]=o.useState(null),c=q||N,s=o.useCallback(e=>{var i;if(!n)return null;try{return n.parse(e),null}catch(x){return x instanceof j&&((i=x.issues[0])==null?void 0:i.message)||"Validation failed"}},[n]),a=o.useCallback(e=>{L(e),l&&l(e)},[l]),y=R.useRef(t),E=R.useRef(!1);return o.useEffect(()=>{if(n){if(g){const e=s(t);a(e);return}if(E.current){if(t!==y.current&&t){const e=s(t);a(e)}}else{if(t){const e=s(t);a(e)}E.current=!0}y.current=t}},[t,n,g,s,a]),r.jsxs("div",{className:"relative w-full",children:[r.jsx("label",{className:`text-sm text-[#2A2B35] bg-white px-1 pointer-events-none
2
- transition-all duration-200 z-10`,children:d}),r.jsxs("div",{className:"relative flex items-center",children:[u&&r.jsx("div",{className:"absolute left-0 top-0 bottom-0 z-10 flex items-center",children:u}),r.jsx("input",{type:v,value:t,onFocus:e=>{b(!0),m&&m(e)},onBlur:e=>{if(b(!1),n&&I){const i=s(t);a(i)}p&&p(e)},onChange:T,placeholder:F?"":h||d,className:`w-full border border-solid border-[#e6e6e6] shadow-sm rounded-md p-[0.64rem] ${u?"pl-20":"pl-3"} text-base bg-white placeholder-custom transition pr-12 appearance-none outline-none font-[inherit] ${c?"!border-2 !border-[#df1b41] focus:!border-[#df1b41] !text-[#df1b41] focus:!ring-0 focus:!outline-none":"border-[#e6e6e6] focus:border-[#8AA3D4] focus:shadow-focus focus:!outline-none"} ${w}`,...M}),f&&r.jsx("span",{className:"absolute right-3 top-0 bottom-0 flex items-center text-black",children:f})]}),c&&r.jsx("p",{className:"mt-1 text-sm text-[#df1b41] px-2",children:c})]})};H.__docgenInfo={description:"",methods:[],displayName:"FloatingLabelInput",props:{label:{required:!0,tsType:{name:"string"},description:""},value:{required:!0,tsType:{name:"string"},description:""},onChange:{required:!0,tsType:{name:"signature",type:"function",raw:"(e: React.ChangeEvent<HTMLInputElement>) => void",signature:{arguments:[{type:{name:"ReactChangeEvent",raw:"React.ChangeEvent<HTMLInputElement>",elements:[{name:"HTMLInputElement"}]},name:"e"}],return:{name:"void"}}},description:""},onBlur:{required:!1,tsType:{name:"signature",type:"function",raw:"(e: React.FocusEvent<HTMLInputElement>) => void",signature:{arguments:[{type:{name:"ReactFocusEvent",raw:"React.FocusEvent<HTMLInputElement>",elements:[{name:"HTMLInputElement"}]},name:"e"}],return:{name:"void"}}},description:""},onFocus:{required:!1,tsType:{name:"signature",type:"function",raw:"(e: React.FocusEvent<HTMLInputElement>) => void",signature:{arguments:[{type:{name:"ReactFocusEvent",raw:"React.FocusEvent<HTMLInputElement>",elements:[{name:"HTMLInputElement"}]},name:"e"}],return:{name:"void"}}},description:""},type:{required:!1,tsType:{name:"string"},description:"",defaultValue:{value:'"text"',computed:!1}},placeholder:{required:!1,tsType:{name:"string"},description:""},icon:{required:!1,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""},prefix:{required:!1,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""},inputClass:{required:!1,tsType:{name:"string"},description:"",defaultValue:{value:'""',computed:!1}},error:{required:!1,tsType:{name:"string"},description:""},schema:{required:!1,tsType:{name:"z.ZodSchema",elements:[{name:"string"}],raw:"z.ZodSchema<string>"},description:""},validateOnChange:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},validateOnBlur:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"true",computed:!1}},onValidationChange:{required:!1,tsType:{name:"signature",type:"function",raw:"(error: string | null) => void",signature:{arguments:[{type:{name:"union",raw:"string | null",elements:[{name:"string"},{name:"null"}]},name:"error"}],return:{name:"void"}}},description:""}},composes:["Omit"]};export{H as F};
@@ -1,2 +0,0 @@
1
- import{j as r}from"./jsx-runtime-DiklIkkE.js";import{r as o,R}from"./index-DRjF_FHU.js";import{Z as j}from"./useCheckoutContext-DuJ1Ep0-.js";const H=({label:d,value:t,onChange:T,onBlur:p,onFocus:m,type:v="text",placeholder:h,icon:f,prefix:u,inputClass:w="",error:q,schema:n,validateOnChange:g=!1,validateOnBlur:I=!0,onValidationChange:l,...M})=>{const[F,b]=o.useState(!1),[N,L]=o.useState(null),c=q||N,s=o.useCallback(e=>{var i;if(!n)return null;try{return n.parse(e),null}catch(x){return x instanceof j&&((i=x.issues[0])==null?void 0:i.message)||"Validation failed"}},[n]),a=o.useCallback(e=>{L(e),l&&l(e)},[l]),y=R.useRef(t),E=R.useRef(!1);return o.useEffect(()=>{if(n){if(g){const e=s(t);a(e);return}if(E.current){if(t!==y.current&&t){const e=s(t);a(e)}}else{if(t){const e=s(t);a(e)}E.current=!0}y.current=t}},[t,n,g,s,a]),r.jsxs("div",{className:"relative w-full",children:[r.jsx("label",{className:`text-sm text-[#2A2B35] bg-white px-1 pointer-events-none
2
- transition-all duration-200 z-10`,children:d}),r.jsxs("div",{className:"relative flex items-center",children:[u&&r.jsx("div",{className:"absolute left-0 top-0 bottom-0 z-10 flex items-center",children:u}),r.jsx("input",{type:v,value:t,onFocus:e=>{b(!0),m&&m(e)},onBlur:e=>{if(b(!1),n&&I){const i=s(t);a(i)}p&&p(e)},onChange:T,placeholder:F?"":h||d,className:`w-full border border-solid border-[#e6e6e6] shadow-sm rounded-md p-[0.64rem] ${u?"pl-20":"pl-3"} text-base bg-white placeholder-custom transition pr-12 appearance-none outline-none font-[inherit] ${c?"!border-2 !border-[#df1b41] focus:!border-[#df1b41] !text-[#df1b41] focus:!ring-0 focus:!outline-none":"border-[#e6e6e6] focus:border-[#8AA3D4] focus:shadow-focus focus:!outline-none"} ${w}`,...M}),f&&r.jsx("span",{className:"absolute right-3 top-0 bottom-0 flex items-center text-black",children:f})]}),c&&r.jsx("p",{className:"mt-1 text-sm text-[#df1b41] px-2",children:c})]})};H.__docgenInfo={description:"",methods:[],displayName:"FloatingLabelInput",props:{label:{required:!0,tsType:{name:"string"},description:""},value:{required:!0,tsType:{name:"string"},description:""},onChange:{required:!0,tsType:{name:"signature",type:"function",raw:"(e: React.ChangeEvent<HTMLInputElement>) => void",signature:{arguments:[{type:{name:"ReactChangeEvent",raw:"React.ChangeEvent<HTMLInputElement>",elements:[{name:"HTMLInputElement"}]},name:"e"}],return:{name:"void"}}},description:""},onBlur:{required:!1,tsType:{name:"signature",type:"function",raw:"(e: React.FocusEvent<HTMLInputElement>) => void",signature:{arguments:[{type:{name:"ReactFocusEvent",raw:"React.FocusEvent<HTMLInputElement>",elements:[{name:"HTMLInputElement"}]},name:"e"}],return:{name:"void"}}},description:""},onFocus:{required:!1,tsType:{name:"signature",type:"function",raw:"(e: React.FocusEvent<HTMLInputElement>) => void",signature:{arguments:[{type:{name:"ReactFocusEvent",raw:"React.FocusEvent<HTMLInputElement>",elements:[{name:"HTMLInputElement"}]},name:"e"}],return:{name:"void"}}},description:""},type:{required:!1,tsType:{name:"string"},description:"",defaultValue:{value:'"text"',computed:!1}},placeholder:{required:!1,tsType:{name:"string"},description:""},icon:{required:!1,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""},prefix:{required:!1,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""},inputClass:{required:!1,tsType:{name:"string"},description:"",defaultValue:{value:'""',computed:!1}},error:{required:!1,tsType:{name:"string"},description:""},schema:{required:!1,tsType:{name:"z.ZodSchema",elements:[{name:"string"}],raw:"z.ZodSchema<string>"},description:""},validateOnChange:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},validateOnBlur:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"true",computed:!1}},onValidationChange:{required:!1,tsType:{name:"signature",type:"function",raw:"(error: string | null) => void",signature:{arguments:[{type:{name:"union",raw:"string | null",elements:[{name:"string"},{name:"null"}]},name:"error"}],return:{name:"void"}}},description:""}},composes:["Omit"]};export{H as F};
@@ -1,2 +0,0 @@
1
- import{j as r}from"./jsx-runtime-DiklIkkE.js";import{r as o,R}from"./index-DRjF_FHU.js";import{Z as j}from"./useCheckoutContext-C6u4Rp5U.js";const H=({label:d,value:t,onChange:T,onBlur:p,onFocus:m,type:v="text",placeholder:h,icon:f,prefix:u,inputClass:w="",error:q,schema:n,validateOnChange:g=!1,validateOnBlur:I=!0,onValidationChange:l,...M})=>{const[F,b]=o.useState(!1),[N,L]=o.useState(null),c=q||N,s=o.useCallback(e=>{var i;if(!n)return null;try{return n.parse(e),null}catch(x){return x instanceof j&&((i=x.issues[0])==null?void 0:i.message)||"Validation failed"}},[n]),a=o.useCallback(e=>{L(e),l&&l(e)},[l]),y=R.useRef(t),E=R.useRef(!1);return o.useEffect(()=>{if(n){if(g){const e=s(t);a(e);return}if(E.current){if(t!==y.current&&t){const e=s(t);a(e)}}else{if(t){const e=s(t);a(e)}E.current=!0}y.current=t}},[t,n,g,s,a]),r.jsxs("div",{className:"relative w-full",children:[r.jsx("label",{className:`text-sm text-[#2A2B35] bg-white px-1 pointer-events-none
2
- transition-all duration-200 z-10`,children:d}),r.jsxs("div",{className:"relative flex items-center",children:[u&&r.jsx("div",{className:"absolute left-0 top-0 bottom-0 z-10 flex items-center",children:u}),r.jsx("input",{type:v,value:t,onFocus:e=>{b(!0),m&&m(e)},onBlur:e=>{if(b(!1),n&&I){const i=s(t);a(i)}p&&p(e)},onChange:T,placeholder:F?"":h||d,className:`w-full border border-solid border-[#e6e6e6] shadow-sm rounded-md p-[0.64rem] ${u?"pl-20":"pl-3"} text-base bg-white placeholder-custom transition pr-12 appearance-none outline-none font-[inherit] ${c?"!border-2 !border-[#df1b41] focus:!border-[#df1b41] !text-[#df1b41] focus:!ring-0 focus:!outline-none":"border-[#e6e6e6] focus:border-[#8AA3D4] focus:shadow-focus focus:!outline-none"} ${w}`,...M}),f&&r.jsx("span",{className:"absolute right-3 top-0 bottom-0 flex items-center text-black",children:f})]}),c&&r.jsx("p",{className:"mt-1 text-sm text-[#df1b41] px-2",children:c})]})};H.__docgenInfo={description:"",methods:[],displayName:"FloatingLabelInput",props:{label:{required:!0,tsType:{name:"string"},description:""},value:{required:!0,tsType:{name:"string"},description:""},onChange:{required:!0,tsType:{name:"signature",type:"function",raw:"(e: React.ChangeEvent<HTMLInputElement>) => void",signature:{arguments:[{type:{name:"ReactChangeEvent",raw:"React.ChangeEvent<HTMLInputElement>",elements:[{name:"HTMLInputElement"}]},name:"e"}],return:{name:"void"}}},description:""},onBlur:{required:!1,tsType:{name:"signature",type:"function",raw:"(e: React.FocusEvent<HTMLInputElement>) => void",signature:{arguments:[{type:{name:"ReactFocusEvent",raw:"React.FocusEvent<HTMLInputElement>",elements:[{name:"HTMLInputElement"}]},name:"e"}],return:{name:"void"}}},description:""},onFocus:{required:!1,tsType:{name:"signature",type:"function",raw:"(e: React.FocusEvent<HTMLInputElement>) => void",signature:{arguments:[{type:{name:"ReactFocusEvent",raw:"React.FocusEvent<HTMLInputElement>",elements:[{name:"HTMLInputElement"}]},name:"e"}],return:{name:"void"}}},description:""},type:{required:!1,tsType:{name:"string"},description:"",defaultValue:{value:'"text"',computed:!1}},placeholder:{required:!1,tsType:{name:"string"},description:""},icon:{required:!1,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""},prefix:{required:!1,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""},inputClass:{required:!1,tsType:{name:"string"},description:"",defaultValue:{value:'""',computed:!1}},error:{required:!1,tsType:{name:"string"},description:""},schema:{required:!1,tsType:{name:"z.ZodSchema",elements:[{name:"string"}],raw:"z.ZodSchema<string>"},description:""},validateOnChange:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},validateOnBlur:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"true",computed:!1}},onValidationChange:{required:!1,tsType:{name:"signature",type:"function",raw:"(error: string | null) => void",signature:{arguments:[{type:{name:"union",raw:"string | null",elements:[{name:"string"},{name:"null"}]},name:"error"}],return:{name:"void"}}},description:""}},composes:["Omit"]};export{H as F};