@commercelayer/react-components 3.0.0-beta.8 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (418) hide show
  1. package/README.md +1 -1
  2. package/{dist → lib}/components/AddToCartButton.d.ts +20 -17
  3. package/lib/components/AddToCartButton.js +1 -0
  4. package/{dist → lib}/components/Address.d.ts +13 -12
  5. package/lib/components/Address.js +1 -0
  6. package/{dist → lib}/components/AddressCountrySelector.d.ts +9 -9
  7. package/lib/components/AddressCountrySelector.js +1 -0
  8. package/{dist → lib}/components/AddressField.d.ts +15 -15
  9. package/lib/components/AddressField.js +1 -0
  10. package/{dist → lib}/components/AddressInput.d.ts +7 -7
  11. package/lib/components/AddressInput.js +1 -0
  12. package/{dist → lib}/components/AddressStateSelector.d.ts +11 -9
  13. package/lib/components/AddressStateSelector.js +1 -0
  14. package/{dist → lib}/components/AddressesContainer.d.ts +8 -7
  15. package/lib/components/AddressesContainer.js +1 -0
  16. package/lib/components/AdjustmentAmount.d.ts +4 -0
  17. package/lib/components/AdjustmentAmount.js +1 -0
  18. package/lib/components/AdyenPayment.d.ts +25 -0
  19. package/lib/components/AdyenPayment.js +1 -0
  20. package/{dist → lib}/components/AvailabilityContainer.d.ts +7 -7
  21. package/lib/components/AvailabilityContainer.js +1 -0
  22. package/{dist → lib}/components/AvailabilityTemplate.d.ts +15 -16
  23. package/lib/components/AvailabilityTemplate.js +1 -0
  24. package/{dist → lib}/components/BillingAddressContainer.d.ts +6 -6
  25. package/lib/components/BillingAddressContainer.js +1 -0
  26. package/{dist → lib}/components/BillingAddressForm.d.ts +8 -8
  27. package/lib/components/BillingAddressForm.js +1 -0
  28. package/{dist → lib}/components/BraintreePayment.d.ts +30 -30
  29. package/lib/components/BraintreePayment.js +1 -0
  30. package/{dist → lib}/components/CheckoutLink.d.ts +11 -11
  31. package/lib/components/CheckoutLink.js +1 -0
  32. package/{dist → lib}/components/CommerceLayer.d.ts +8 -9
  33. package/lib/components/CommerceLayer.js +1 -0
  34. package/{dist → lib}/components/CustomerContainer.d.ts +7 -7
  35. package/lib/components/CustomerContainer.js +1 -0
  36. package/{dist → lib}/components/CustomerInput.d.ts +11 -11
  37. package/lib/components/CustomerInput.js +1 -0
  38. package/{dist → lib}/components/DeliveryLeadTime.d.ts +10 -10
  39. package/lib/components/DeliveryLeadTime.js +1 -0
  40. package/{dist → lib}/components/DiscountAmount.d.ts +4 -4
  41. package/lib/components/DiscountAmount.js +1 -0
  42. package/{dist → lib}/components/Errors.d.ts +5 -5
  43. package/lib/components/Errors.js +1 -0
  44. package/{dist → lib}/components/ExternalFunction.d.ts +7 -7
  45. package/lib/components/ExternalFunction.js +1 -0
  46. package/{dist → lib}/components/GiftCard.d.ts +8 -8
  47. package/lib/components/GiftCard.js +1 -0
  48. package/{dist → lib}/components/GiftCardAmount.d.ts +4 -4
  49. package/lib/components/GiftCardAmount.js +1 -0
  50. package/{dist → lib}/components/GiftCardContainer.d.ts +6 -6
  51. package/lib/components/GiftCardContainer.js +1 -0
  52. package/{dist → lib}/components/GiftCardCurrencySelector.d.ts +7 -7
  53. package/lib/components/GiftCardCurrencySelector.js +1 -0
  54. package/{dist → lib}/components/GiftCardInput.d.ts +7 -7
  55. package/lib/components/GiftCardInput.js +1 -0
  56. package/{dist → lib}/components/GiftCardOrCouponCode.d.ts +13 -13
  57. package/lib/components/GiftCardOrCouponCode.js +1 -0
  58. package/{dist → lib}/components/GiftCardOrCouponForm.d.ts +10 -10
  59. package/lib/components/GiftCardOrCouponForm.js +1 -0
  60. package/{dist → lib}/components/GiftCardOrCouponInput.d.ts +8 -8
  61. package/lib/components/GiftCardOrCouponInput.js +1 -0
  62. package/{dist → lib}/components/GiftCardOrCouponRemoveButton.d.ts +16 -16
  63. package/lib/components/GiftCardOrCouponRemoveButton.js +1 -0
  64. package/{dist → lib}/components/GiftCardOrCouponSubmit.d.ts +9 -9
  65. package/lib/components/GiftCardOrCouponSubmit.js +1 -0
  66. package/{dist → lib}/components/GiftCardRecipient.d.ts +0 -0
  67. package/lib/components/GiftCardRecipient.js +1 -0
  68. package/{dist → lib}/components/GiftCardRecipientInput.d.ts +0 -0
  69. package/lib/components/GiftCardRecipientInput.js +1 -0
  70. package/{dist → lib}/components/ItemContainer.d.ts +11 -11
  71. package/lib/components/ItemContainer.js +1 -0
  72. package/{dist → lib}/components/LineItem.d.ts +8 -8
  73. package/lib/components/LineItem.js +1 -0
  74. package/{dist → lib}/components/LineItemAmount.d.ts +7 -7
  75. package/lib/components/LineItemAmount.js +1 -0
  76. package/lib/components/LineItemCode.d.ts +12 -0
  77. package/lib/components/LineItemCode.js +1 -0
  78. package/lib/components/LineItemImage.d.ts +16 -0
  79. package/lib/components/LineItemImage.js +1 -0
  80. package/lib/components/LineItemName.d.ts +11 -0
  81. package/lib/components/LineItemName.js +1 -0
  82. package/{dist → lib}/components/LineItemOption.d.ts +19 -19
  83. package/lib/components/LineItemOption.js +1 -0
  84. package/{dist → lib}/components/LineItemOptions.d.ts +14 -14
  85. package/lib/components/LineItemOptions.js +1 -0
  86. package/{dist → lib}/components/LineItemQuantity.d.ts +14 -14
  87. package/lib/components/LineItemQuantity.js +1 -0
  88. package/{dist → lib}/components/LineItemRemoveLink.d.ts +12 -12
  89. package/lib/components/LineItemRemoveLink.js +1 -0
  90. package/{dist → lib}/components/LineItemsContainer.d.ts +8 -8
  91. package/lib/components/LineItemsContainer.js +1 -0
  92. package/{dist → lib}/components/LineItemsCount.d.ts +12 -10
  93. package/lib/components/LineItemsCount.js +1 -0
  94. package/lib/components/LineItemsEmpty.d.ts +12 -0
  95. package/lib/components/LineItemsEmpty.js +1 -0
  96. package/{dist → lib}/components/MetadataInput.d.ts +5 -5
  97. package/lib/components/MetadataInput.js +1 -0
  98. package/{dist → lib}/components/OrderContainer.d.ts +11 -10
  99. package/lib/components/OrderContainer.js +1 -0
  100. package/{dist → lib}/components/OrderNumber.d.ts +5 -5
  101. package/lib/components/OrderNumber.js +1 -0
  102. package/{dist → lib}/components/OrderStorage.d.ts +8 -8
  103. package/lib/components/OrderStorage.js +1 -0
  104. package/lib/components/PaymentGateway.d.ts +16 -0
  105. package/lib/components/PaymentGateway.js +1 -0
  106. package/{dist → lib}/components/PaymentMethod.d.ts +16 -16
  107. package/lib/components/PaymentMethod.js +1 -0
  108. package/{dist → lib}/components/PaymentMethodAmount.d.ts +4 -4
  109. package/lib/components/PaymentMethodAmount.js +1 -0
  110. package/{dist → lib}/components/PaymentMethodName.d.ts +9 -9
  111. package/lib/components/PaymentMethodName.js +1 -0
  112. package/{dist → lib}/components/PaymentMethodPrice.d.ts +9 -9
  113. package/lib/components/PaymentMethodPrice.js +1 -0
  114. package/{dist → lib}/components/PaymentMethodRadioButton.d.ts +11 -11
  115. package/lib/components/PaymentMethodRadioButton.js +1 -0
  116. package/{dist → lib}/components/PaymentMethodsContainer.d.ts +8 -8
  117. package/lib/components/PaymentMethodsContainer.js +1 -0
  118. package/{dist → lib}/components/PaymentSource.d.ts +19 -18
  119. package/lib/components/PaymentSource.js +1 -0
  120. package/{dist → lib}/components/PaymentSourceBrandIcon.d.ts +15 -15
  121. package/lib/components/PaymentSourceBrandIcon.js +1 -0
  122. package/{dist → lib}/components/PaymentSourceBrandName.d.ts +12 -12
  123. package/lib/components/PaymentSourceBrandName.js +1 -0
  124. package/{dist → lib}/components/PaymentSourceDetail.d.ts +12 -12
  125. package/lib/components/PaymentSourceDetail.js +1 -0
  126. package/{dist → lib}/components/PaymentSourceEditButton.d.ts +9 -9
  127. package/lib/components/PaymentSourceEditButton.js +1 -0
  128. package/{dist → lib}/components/PaypalPayment.d.ts +12 -12
  129. package/lib/components/PaypalPayment.js +1 -0
  130. package/{dist → lib}/components/PlaceOrderButton.d.ts +12 -12
  131. package/lib/components/PlaceOrderButton.js +1 -0
  132. package/{dist → lib}/components/PlaceOrderContainer.d.ts +8 -8
  133. package/lib/components/PlaceOrderContainer.js +1 -0
  134. package/{dist → lib}/components/Price.d.ts +16 -14
  135. package/lib/components/Price.js +1 -0
  136. package/{dist → lib}/components/PricesContainer.d.ts +11 -11
  137. package/lib/components/PricesContainer.js +1 -0
  138. package/{dist → lib}/components/PrivacyAndTermsCheckbox.d.ts +4 -4
  139. package/lib/components/PrivacyAndTermsCheckbox.js +1 -0
  140. package/{dist → lib}/components/QuantitySelector.d.ts +17 -17
  141. package/lib/components/QuantitySelector.js +1 -0
  142. package/{dist → lib}/components/SaveAddressesButton.d.ts +10 -10
  143. package/lib/components/SaveAddressesButton.js +1 -0
  144. package/{dist → lib}/components/SaveCustomerButton.d.ts +13 -13
  145. package/lib/components/SaveCustomerButton.js +1 -0
  146. package/{dist → lib}/components/Shipment.d.ts +8 -8
  147. package/lib/components/Shipment.js +1 -0
  148. package/{dist → lib}/components/ShipmentField.d.ts +12 -12
  149. package/lib/components/ShipmentField.js +1 -0
  150. package/{dist → lib}/components/ShipmentsContainer.d.ts +6 -6
  151. package/lib/components/ShipmentsContainer.js +1 -0
  152. package/{dist → lib}/components/ShippingAddressContainer.d.ts +6 -6
  153. package/lib/components/ShippingAddressContainer.js +1 -0
  154. package/{dist → lib}/components/ShippingAddressForm.d.ts +8 -8
  155. package/lib/components/ShippingAddressForm.js +1 -0
  156. package/{dist → lib}/components/ShippingAmount.d.ts +4 -4
  157. package/lib/components/ShippingAmount.js +1 -0
  158. package/{dist → lib}/components/ShippingMethod.d.ts +8 -8
  159. package/lib/components/ShippingMethod.js +1 -0
  160. package/{dist → lib}/components/ShippingMethodName.d.ts +11 -7
  161. package/lib/components/ShippingMethodName.js +1 -0
  162. package/{dist → lib}/components/ShippingMethodPrice.d.ts +13 -13
  163. package/lib/components/ShippingMethodPrice.js +1 -0
  164. package/lib/components/ShippingMethodRadioButton.d.ts +13 -0
  165. package/lib/components/ShippingMethodRadioButton.js +1 -0
  166. package/{dist → lib}/components/SkuList.d.ts +7 -7
  167. package/lib/components/SkuList.js +1 -0
  168. package/{dist → lib}/components/SkuListsContainer.d.ts +6 -6
  169. package/lib/components/SkuListsContainer.js +1 -0
  170. package/{dist → lib}/components/SkuOption.d.ts +7 -7
  171. package/lib/components/SkuOption.js +1 -0
  172. package/{dist → lib}/components/SkuOptionInput.d.ts +5 -5
  173. package/lib/components/SkuOptionInput.js +1 -0
  174. package/{dist → lib}/components/SkuOptionsContainer.d.ts +7 -7
  175. package/lib/components/SkuOptionsContainer.js +1 -0
  176. package/{dist → lib}/components/StockTransfer.d.ts +6 -6
  177. package/lib/components/StockTransfer.js +1 -0
  178. package/{dist → lib}/components/StockTransferField.d.ts +9 -9
  179. package/lib/components/StockTransferField.js +1 -0
  180. package/{dist → lib}/components/StripePayment.d.ts +18 -18
  181. package/lib/components/StripePayment.js +1 -0
  182. package/{dist → lib}/components/SubTotalAmount.d.ts +4 -4
  183. package/lib/components/SubTotalAmount.js +1 -0
  184. package/{dist → lib}/components/SubmitButton.d.ts +9 -9
  185. package/lib/components/SubmitButton.js +1 -0
  186. package/{dist → lib}/components/TaxesAmount.d.ts +4 -4
  187. package/lib/components/TaxesAmount.js +1 -0
  188. package/{dist → lib}/components/TotalAmount.d.ts +4 -4
  189. package/lib/components/TotalAmount.js +1 -0
  190. package/{dist → lib}/components/VariantSelector.d.ts +29 -27
  191. package/lib/components/VariantSelector.js +1 -0
  192. package/{dist → lib}/components/VariantsContainer.d.ts +8 -8
  193. package/lib/components/VariantsContainer.js +1 -0
  194. package/{dist → lib}/components/WireTransferPayment.d.ts +10 -10
  195. package/lib/components/WireTransferPayment.js +1 -0
  196. package/lib/components/gateways/AdyenGateway.d.ts +5 -0
  197. package/lib/components/gateways/AdyenGateway.js +1 -0
  198. package/lib/components/gateways/BraintreeGateway.d.ts +5 -0
  199. package/lib/components/gateways/BraintreeGateway.js +1 -0
  200. package/lib/components/gateways/PaypalGateway.d.ts +5 -0
  201. package/lib/components/gateways/PaypalGateway.js +1 -0
  202. package/lib/components/gateways/StripeGateway.d.ts +5 -0
  203. package/lib/components/gateways/StripeGateway.js +1 -0
  204. package/lib/components/gateways/WireTransferGateway.d.ts +5 -0
  205. package/lib/components/gateways/WireTransferGateway.js +1 -0
  206. package/lib/components/utils/AddressCardsTemplate.d.ts +27 -0
  207. package/lib/components/utils/AddressCardsTemplate.js +1 -0
  208. package/{dist → lib}/components/utils/BaseField.d.ts +8 -8
  209. package/lib/components/utils/BaseField.js +1 -0
  210. package/lib/components/utils/BaseInput.d.ts +5 -0
  211. package/lib/components/utils/BaseInput.js +1 -0
  212. package/{dist → lib}/components/utils/BaseOrderPrice.d.ts +6 -6
  213. package/lib/components/utils/BaseOrderPrice.js +1 -0
  214. package/{dist → lib}/components/utils/BaseSelect.d.ts +5 -5
  215. package/lib/components/utils/BaseSelect.js +1 -0
  216. package/{dist → lib}/components/utils/Parent.d.ts +8 -8
  217. package/lib/components/utils/Parent.js +1 -0
  218. package/lib/components/utils/PaymentCardsTemplate.d.ts +23 -0
  219. package/lib/components/utils/PaymentCardsTemplate.js +1 -0
  220. package/{dist → lib}/components/utils/PriceTemplate.d.ts +8 -8
  221. package/lib/components/utils/PriceTemplate.js +1 -0
  222. package/{dist → lib}/components/utils/VariantTemplate.d.ts +36 -34
  223. package/lib/components/utils/VariantTemplate.js +1 -0
  224. package/{dist → lib}/components/utils/getAllErrors.d.ts +17 -17
  225. package/lib/components/utils/getAllErrors.js +1 -0
  226. package/{dist → lib}/config/components.d.ts +892 -881
  227. package/lib/config/components.js +1 -0
  228. package/lib/config/currency.d.ts +5 -0
  229. package/lib/config/currency.js +1 -0
  230. package/{dist → lib}/context/AddressChildrenContext.d.ts +7 -7
  231. package/lib/context/AddressChildrenContext.js +1 -0
  232. package/{dist → lib}/context/AddressContext.d.ts +17 -17
  233. package/lib/context/AddressContext.js +1 -0
  234. package/{dist → lib}/context/AvailabilityContext.d.ts +3 -3
  235. package/lib/context/AvailabilityContext.js +1 -0
  236. package/{dist → lib}/context/BillingAddressContext.d.ts +12 -12
  237. package/lib/context/BillingAddressContext.js +1 -0
  238. package/{dist → lib}/context/BillingAddressFormContext.d.ts +19 -18
  239. package/lib/context/BillingAddressFormContext.js +1 -0
  240. package/{dist → lib}/context/CommerceLayerContext.d.ts +7 -8
  241. package/lib/context/CommerceLayerContext.js +1 -0
  242. package/{dist → lib}/context/CouponAndGiftCardFormContext.d.ts +7 -7
  243. package/lib/context/CouponAndGiftCardFormContext.js +1 -0
  244. package/{dist → lib}/context/CustomerContext.d.ts +16 -14
  245. package/lib/context/CustomerContext.js +1 -0
  246. package/{dist → lib}/context/ExternalFunctionContext.d.ts +12 -12
  247. package/lib/context/ExternalFunctionContext.js +1 -0
  248. package/{dist → lib}/context/GiftCardContext.d.ts +11 -11
  249. package/lib/context/GiftCardContext.js +1 -0
  250. package/{dist → lib}/context/ItemContext.d.ts +13 -13
  251. package/lib/context/ItemContext.js +1 -0
  252. package/lib/context/LineItemChildrenContext.d.ts +9 -0
  253. package/lib/context/LineItemChildrenContext.js +1 -0
  254. package/{dist → lib}/context/LineItemContext.d.ts +8 -8
  255. package/lib/context/LineItemContext.js +1 -0
  256. package/{dist → lib}/context/LineItemOptionChildrenContext.d.ts +8 -8
  257. package/lib/context/LineItemOptionChildrenContext.js +1 -0
  258. package/lib/context/OrderContext.d.ts +26 -0
  259. package/lib/context/OrderContext.js +1 -0
  260. package/{dist → lib}/context/OrderStorageContext.d.ts +11 -11
  261. package/lib/context/OrderStorageContext.js +1 -0
  262. package/{dist → lib}/context/PaymentMethodChildrenContext.d.ts +10 -10
  263. package/lib/context/PaymentMethodChildrenContext.js +1 -0
  264. package/{dist → lib}/context/PaymentMethodContext.d.ts +23 -20
  265. package/lib/context/PaymentMethodContext.js +1 -0
  266. package/{dist → lib}/context/PaymentSourceContext.d.ts +14 -14
  267. package/lib/context/PaymentSourceContext.js +1 -0
  268. package/{dist → lib}/context/PlaceOrderContext.d.ts +16 -16
  269. package/lib/context/PlaceOrderContext.js +1 -0
  270. package/{dist → lib}/context/PricesContext.d.ts +7 -7
  271. package/lib/context/PricesContext.js +1 -0
  272. package/lib/context/ShipmentChildrenContext.d.ts +13 -0
  273. package/lib/context/ShipmentChildrenContext.js +1 -0
  274. package/{dist → lib}/context/ShipmentContext.d.ts +12 -12
  275. package/lib/context/ShipmentContext.js +1 -0
  276. package/{dist → lib}/context/ShippingAddressContext.d.ts +10 -10
  277. package/lib/context/ShippingAddressContext.js +1 -0
  278. package/{dist → lib}/context/ShippingAddressFormContext.d.ts +4 -4
  279. package/lib/context/ShippingAddressFormContext.js +1 -0
  280. package/lib/context/ShippingMethodChildrenContext.d.ts +10 -0
  281. package/lib/context/ShippingMethodChildrenContext.js +1 -0
  282. package/lib/context/SkuListsContext.d.ts +6 -0
  283. package/lib/context/SkuListsContext.js +1 -0
  284. package/{dist → lib}/context/SkuOptionChildrenContext.d.ts +8 -8
  285. package/lib/context/SkuOptionChildrenContext.js +1 -0
  286. package/{dist → lib}/context/SkuOptionsContext.d.ts +3 -3
  287. package/lib/context/SkuOptionsContext.js +1 -0
  288. package/{dist → lib}/context/StockTransferChildrenContext.d.ts +7 -7
  289. package/lib/context/StockTransferChildrenContext.js +1 -0
  290. package/{dist → lib}/context/VariantsContext.d.ts +3 -3
  291. package/lib/context/VariantsContext.js +1 -0
  292. package/lib/index.d.ts +99 -0
  293. package/lib/index.js +1 -0
  294. package/{dist → lib}/reducers/AddressReducer.d.ts +59 -57
  295. package/lib/reducers/AddressReducer.js +1 -0
  296. package/lib/reducers/AvailabilityReducer.d.ts +53 -0
  297. package/lib/reducers/AvailabilityReducer.js +1 -0
  298. package/{dist → lib}/reducers/BillingAddressReducer.d.ts +31 -32
  299. package/lib/reducers/BillingAddressReducer.js +1 -0
  300. package/{dist → lib}/reducers/CustomerReducer.d.ts +50 -60
  301. package/lib/reducers/CustomerReducer.js +1 -0
  302. package/{dist → lib}/reducers/GiftCardReducer.d.ts +76 -75
  303. package/lib/reducers/GiftCardReducer.js +1 -0
  304. package/{dist → lib}/reducers/ItemReducer.d.ts +69 -68
  305. package/lib/reducers/ItemReducer.js +1 -0
  306. package/{dist → lib}/reducers/LineItemReducer.d.ts +52 -52
  307. package/lib/reducers/LineItemReducer.js +1 -0
  308. package/lib/reducers/OrderReducer.d.ts +133 -0
  309. package/lib/reducers/OrderReducer.js +1 -0
  310. package/{dist → lib}/reducers/PaymentMethodReducer.d.ts +105 -95
  311. package/lib/reducers/PaymentMethodReducer.js +1 -0
  312. package/{dist → lib}/reducers/PlaceOrderReducer.d.ts +52 -50
  313. package/lib/reducers/PlaceOrderReducer.js +1 -0
  314. package/{dist → lib}/reducers/PriceReducer.d.ts +44 -45
  315. package/lib/reducers/PriceReducer.js +1 -0
  316. package/{dist → lib}/reducers/ShipmentReducer.d.ts +40 -37
  317. package/lib/reducers/ShipmentReducer.js +1 -0
  318. package/{dist → lib}/reducers/ShippingAddressReducer.d.ts +32 -31
  319. package/lib/reducers/ShippingAddressReducer.js +1 -0
  320. package/{dist → lib}/reducers/SkuListsReducer.d.ts +21 -22
  321. package/lib/reducers/SkuListsReducer.js +1 -0
  322. package/{dist → lib}/reducers/SkuOptionsReducer.d.ts +26 -26
  323. package/lib/reducers/SkuOptionsReducer.js +1 -0
  324. package/{dist → lib}/reducers/VariantReducer.d.ts +71 -71
  325. package/lib/reducers/VariantReducer.js +1 -0
  326. package/{dist → lib}/typings/errors.d.ts +42 -40
  327. package/lib/typings/errors.js +1 -0
  328. package/{dist → lib}/typings/index.d.ts +126 -151
  329. package/lib/typings/index.js +1 -0
  330. package/{dist → lib}/utils/PropsType.d.ts +33 -33
  331. package/lib/utils/PropsType.js +1 -0
  332. package/{dist → lib}/utils/addressesManager.d.ts +28 -27
  333. package/lib/utils/addressesManager.js +1 -0
  334. package/{dist → lib}/utils/baseReducer.d.ts +3 -3
  335. package/lib/utils/baseReducer.js +1 -0
  336. package/lib/utils/browserInfo.d.ts +9 -0
  337. package/lib/utils/browserInfo.js +1 -0
  338. package/{dist → lib}/utils/childrenTypes.d.ts +9 -9
  339. package/lib/utils/childrenTypes.js +1 -0
  340. package/lib/utils/countryStateCity.d.ts +9 -0
  341. package/lib/utils/countryStateCity.js +1 -0
  342. package/{dist → lib}/utils/customMessages.d.ts +8 -8
  343. package/lib/utils/customMessages.js +1 -0
  344. package/lib/utils/customerOrderOptions.d.ts +3 -0
  345. package/lib/utils/customerOrderOptions.js +1 -0
  346. package/{dist → lib}/utils/getAmount.d.ts +9 -9
  347. package/lib/utils/getAmount.js +1 -0
  348. package/{dist → lib}/utils/getCurrentItemKey.d.ts +6 -6
  349. package/lib/utils/getCurrentItemKey.js +1 -0
  350. package/lib/utils/getErrors.d.ts +11 -0
  351. package/lib/utils/getErrors.js +1 -0
  352. package/lib/utils/getLineItemsCount.d.ts +12 -0
  353. package/lib/utils/getLineItemsCount.js +1 -0
  354. package/{dist → lib}/utils/getLoaderComponent.d.ts +3 -3
  355. package/lib/utils/getLoaderComponent.js +1 -0
  356. package/lib/utils/getPrices.d.ts +17 -0
  357. package/lib/utils/getPrices.js +1 -0
  358. package/lib/utils/getSdk.d.ts +3 -0
  359. package/lib/utils/getSdk.js +1 -0
  360. package/lib/utils/getSkus.d.ts +3 -0
  361. package/lib/utils/getSkus.js +1 -0
  362. package/{dist → lib}/utils/isEmptyStates.d.ts +1 -1
  363. package/lib/utils/isEmptyStates.js +1 -0
  364. package/{dist → lib}/utils/isJSON.d.ts +1 -1
  365. package/lib/utils/isJSON.js +1 -0
  366. package/lib/utils/jwt.d.ts +27 -0
  367. package/lib/utils/jwt.js +1 -0
  368. package/{dist → lib}/utils/localStorage.d.ts +17 -18
  369. package/lib/utils/localStorage.js +1 -0
  370. package/lib/utils/organization.d.ts +6 -0
  371. package/lib/utils/organization.js +1 -0
  372. package/lib/utils/paypalPayment.d.ts +3 -0
  373. package/lib/utils/paypalPayment.js +1 -0
  374. package/{dist → lib}/utils/promisify.d.ts +1 -1
  375. package/lib/utils/promisify.js +1 -0
  376. package/lib/utils/shipments.d.ts +2 -0
  377. package/lib/utils/shipments.js +1 -0
  378. package/{dist → lib}/utils/validateFormFields.d.ts +22 -19
  379. package/lib/utils/validateFormFields.js +1 -0
  380. package/package.json +98 -84
  381. package/dist/components/CustomerField.d.ts +0 -10
  382. package/dist/components/LineItemImage.d.ts +0 -10
  383. package/dist/components/LineItemName.d.ts +0 -7
  384. package/dist/components/LineItemSkuCode.d.ts +0 -7
  385. package/dist/components/OrderList.d.ts +0 -28
  386. package/dist/components/OrderListRow.d.ts +0 -14
  387. package/dist/components/PaymentGateway.d.ts +0 -11
  388. package/dist/components/ShippingMethodRadioButton.d.ts +0 -9
  389. package/dist/components/utils/BaseInput.d.ts +0 -5
  390. package/dist/context/LineItemChildrenContext.d.ts +0 -7
  391. package/dist/context/OrderContext.d.ts +0 -4
  392. package/dist/context/OrderListChildrenContext.d.ts +0 -14
  393. package/dist/context/ShipmentChildrenContext.d.ts +0 -13
  394. package/dist/context/ShippingMethodChildrenContext.d.ts +0 -9
  395. package/dist/context/SkuListsContext.d.ts +0 -3
  396. package/dist/index.d.ts +0 -90
  397. package/dist/index.js +0 -8
  398. package/dist/react-components.cjs.development.js +0 -12429
  399. package/dist/react-components.cjs.development.js.map +0 -1
  400. package/dist/react-components.cjs.production.min.js +0 -2
  401. package/dist/react-components.cjs.production.min.js.map +0 -1
  402. package/dist/react-components.esm.js +0 -12332
  403. package/dist/react-components.esm.js.map +0 -1
  404. package/dist/reducers/AvailabilityReducer.d.ts +0 -40
  405. package/dist/reducers/OrderReducer.d.ts +0 -131
  406. package/dist/typings/order.d.ts +0 -120
  407. package/dist/utils/countryStateCity.d.ts +0 -9
  408. package/dist/utils/customerOrderOptions.d.ts +0 -4
  409. package/dist/utils/dynamicNaming.d.ts +0 -5
  410. package/dist/utils/getErrorsByCollection.d.ts +0 -11
  411. package/dist/utils/getLineItemsCount.d.ts +0 -6
  412. package/dist/utils/getPrices.d.ts +0 -18
  413. package/dist/utils/getSkus.d.ts +0 -3
  414. package/dist/utils/icons.d.ts +0 -3
  415. package/dist/utils/isDate.d.ts +0 -1
  416. package/dist/utils/paypalPayment.d.ts +0 -3
  417. package/dist/utils/scrollbarWidth.d.ts +0 -1
  418. package/dist/utils/shipments.d.ts +0 -5
@@ -1,881 +1,892 @@
1
- /// <reference types="react" />
2
- import PropTypes from 'prop-types';
3
- import { TimeFormat, BaseInputType, GiftCardInputName, LineItemType, BasePriceType, BaseFormatPrice, BaseSelectorType, AddressInputName, AddressCountrySelectName, AddressStateSelectName } from "../typings/index";
4
- import { DeliveryLeadTimeField } from '../components/DeliveryLeadTime';
5
- import { StockTransferFieldType } from "../components/StockTransferField";
6
- import { PaymentSourceDetailType } from "../components/PaymentSourceDetail";
7
- import { CodeType } from "../reducers/OrderReducer";
8
- import { ShipmentAttribute } from "../components/ShipmentField";
9
- declare const components: {
10
- Address: {
11
- permittedChildren: string[];
12
- displayName: string;
13
- propTypes: {
14
- children: PropTypes.Validator<boolean | import("react").ReactChild | import("react").ReactFragment | import("react").ReactPortal>;
15
- };
16
- };
17
- AddressCountrySelector: {
18
- displayName: string;
19
- propTypes: {
20
- children: PropTypes.Requireable<(...args: any[]) => any>;
21
- placeholder: PropTypes.Requireable<PropTypes.InferProps<{
22
- label: PropTypes.Validator<string>;
23
- value: PropTypes.Validator<string | number>;
24
- }>>;
25
- value: PropTypes.Requireable<string>;
26
- name: PropTypes.Validator<AddressCountrySelectName>;
27
- required: PropTypes.Requireable<boolean>;
28
- };
29
- defaultProps: {
30
- required: boolean;
31
- };
32
- };
33
- AddressStateSelector: {
34
- displayName: string;
35
- propTypes: {
36
- children: PropTypes.Requireable<(...args: any[]) => any>;
37
- placeholder: PropTypes.Requireable<PropTypes.InferProps<{
38
- label: PropTypes.Validator<string>;
39
- value: PropTypes.Validator<string | number>;
40
- }>>;
41
- value: PropTypes.Requireable<string>;
42
- name: PropTypes.Validator<AddressStateSelectName>;
43
- required: PropTypes.Requireable<boolean>;
44
- };
45
- defaultProps: {
46
- required: boolean;
47
- };
48
- };
49
- AddressField: {
50
- displayName: string;
51
- propTypes: {
52
- children: PropTypes.Requireable<(...args: any[]) => any>;
53
- };
54
- };
55
- AddressInput: {
56
- displayName: string;
57
- propTypes: {
58
- children: PropTypes.Requireable<(...args: any[]) => any>;
59
- name: PropTypes.Validator<AddressInputName>;
60
- type: PropTypes.Validator<BaseInputType>;
61
- placeholder: PropTypes.Requireable<string>;
62
- disabled: PropTypes.Requireable<boolean>;
63
- required: PropTypes.Requireable<boolean>;
64
- };
65
- defaultProps: {
66
- required: boolean;
67
- };
68
- };
69
- AddToCartButton: {
70
- displayName: string;
71
- propTypes: {
72
- children: PropTypes.Requireable<(...args: any[]) => any>;
73
- label: PropTypes.Requireable<string | PropTypes.ReactElementLike>;
74
- skuCode: PropTypes.Requireable<string>;
75
- disabled: PropTypes.Requireable<boolean>;
76
- lineItem: PropTypes.Requireable<PropTypes.InferProps<{
77
- name: PropTypes.Validator<string>;
78
- imageUrl: PropTypes.Requireable<string>;
79
- }>>;
80
- };
81
- defaultProps: {
82
- label: string;
83
- };
84
- };
85
- AddressesContainer: {
86
- displayName: string;
87
- permittedChildren: string[];
88
- propTypes: {
89
- children: PropTypes.Validator<boolean | import("react").ReactChild | import("react").ReactFragment | import("react").ReactPortal>;
90
- shipToDifferentAddress: PropTypes.Requireable<boolean>;
91
- };
92
- };
93
- AvailabilityContainer: {
94
- displayName: string;
95
- permittedChildren: string[];
96
- propTypes: {
97
- children: PropTypes.Validator<boolean | import("react").ReactChild | import("react").ReactFragment | import("react").ReactPortal>;
98
- skuCode: PropTypes.Requireable<string>;
99
- };
100
- };
101
- AvailabilityTemplate: {
102
- displayName: string;
103
- propTypes: {
104
- timeFormat: PropTypes.Requireable<TimeFormat>;
105
- showShippingMethodName: PropTypes.Requireable<boolean>;
106
- children: PropTypes.Requireable<(...args: any[]) => any>;
107
- };
108
- defaultProps: {
109
- timeFormat: string;
110
- showShippingMethodName: boolean;
111
- };
112
- };
113
- BillingAddressContainer: {
114
- permittedChildren: string[];
115
- propTypes: {
116
- children: PropTypes.Validator<boolean | import("react").ReactChild | import("react").ReactFragment | import("react").ReactPortal>;
117
- };
118
- };
119
- BillingAddressForm: {
120
- permittedChildren: string[];
121
- propTypes: {
122
- children: PropTypes.Validator<boolean | import("react").ReactChild | import("react").ReactFragment | import("react").ReactPortal>;
123
- };
124
- };
125
- CheckoutLink: {
126
- displayName: string;
127
- propTypes: {
128
- children: PropTypes.Requireable<(...args: any[]) => any>;
129
- label: PropTypes.Requireable<string>;
130
- };
131
- defaultProps: {
132
- label: string;
133
- };
134
- };
135
- CommerceLayer: {
136
- permittedChildren: string[];
137
- propTypes: {
138
- children: PropTypes.Validator<boolean | import("react").ReactChild | import("react").ReactFragment | import("react").ReactPortal>;
139
- accessToken: PropTypes.Validator<string>;
140
- endpoint: PropTypes.Validator<string>;
141
- };
142
- };
143
- CustomerContainer: {
144
- displayName: string;
145
- permittedChildren: string[];
146
- propTypes: {
147
- children: PropTypes.Validator<boolean | import("react").ReactChild | import("react").ReactFragment | import("react").ReactPortal>;
148
- isGuest: PropTypes.Requireable<boolean>;
149
- };
150
- };
151
- CustomerField: {
152
- displayName: string;
153
- propTypes: {
154
- children: PropTypes.Requireable<(...args: any[]) => any>;
155
- name: PropTypes.Validator<"email">;
156
- };
157
- };
158
- CustomerInput: {
159
- displayName: string;
160
- propTypes: {
161
- children: PropTypes.Requireable<(...args: any[]) => any>;
162
- name: PropTypes.Requireable<string>;
163
- type: PropTypes.Requireable<string>;
164
- placeholder: PropTypes.Requireable<string>;
165
- disabled: PropTypes.Requireable<boolean>;
166
- required: PropTypes.Requireable<boolean>;
167
- saveOnBlur: PropTypes.Requireable<boolean>;
168
- };
169
- defaultProps: {
170
- required: boolean;
171
- };
172
- };
173
- DeliveryLeadTime: {
174
- displayName: string;
175
- propTypes: {
176
- type: PropTypes.Validator<DeliveryLeadTimeField>;
177
- children: PropTypes.Requireable<(...args: any[]) => any>;
178
- };
179
- };
180
- DiscountAmount: {
181
- displayName: string;
182
- propTypes: {
183
- id: PropTypes.Requireable<string>;
184
- className: PropTypes.Requireable<string>;
185
- style: PropTypes.Requireable<object>;
186
- name: PropTypes.Requireable<string>;
187
- children: PropTypes.Requireable<(...args: any[]) => any>;
188
- format: PropTypes.Requireable<BaseFormatPrice>;
189
- };
190
- defaultProps: {
191
- format: BaseFormatPrice;
192
- };
193
- };
194
- Errors: {
195
- displayName: string;
196
- propTypes: {
197
- resource: PropTypes.Validator<import("../typings/errors").ResourceErrorType>;
198
- children: PropTypes.Requireable<(...args: any[]) => any>;
199
- field: PropTypes.Requireable<string>;
200
- };
201
- defaultProps: {
202
- messages: never[];
203
- field: string;
204
- };
205
- };
206
- ExternalFunction: {
207
- displayName: string;
208
- permittedChildren: string[];
209
- propTypes: {
210
- children: PropTypes.Validator<boolean | import("react").ReactChild | import("react").ReactFragment | import("react").ReactPortal>;
211
- url: PropTypes.Validator<string>;
212
- };
213
- };
214
- GiftCard: {
215
- permittedChildren: string[];
216
- displayName: string;
217
- propTypes: {
218
- children: PropTypes.Validator<boolean | import("react").ReactChild | import("react").ReactFragment | import("react").ReactPortal>;
219
- onSubmit: PropTypes.Requireable<(...args: any[]) => any>;
220
- };
221
- defaultProps: {
222
- onSubmit: undefined;
223
- };
224
- };
225
- GiftCardAmount: {
226
- displayName: string;
227
- propTypes: {
228
- id: PropTypes.Requireable<string>;
229
- className: PropTypes.Requireable<string>;
230
- style: PropTypes.Requireable<object>;
231
- name: PropTypes.Requireable<string>;
232
- children: PropTypes.Requireable<(...args: any[]) => any>;
233
- format: PropTypes.Requireable<BaseFormatPrice>;
234
- };
235
- };
236
- GiftCardContainer: {
237
- permittedChildren: string[];
238
- displayName: string;
239
- propTypes: {
240
- children: PropTypes.Validator<boolean | import("react").ReactChild | import("react").ReactFragment | import("react").ReactPortal>;
241
- };
242
- };
243
- GiftCardCurrencySelector: {
244
- displayName: string;
245
- propTypes: {
246
- children: PropTypes.Requireable<(...args: any[]) => any>;
247
- placeholder: PropTypes.Requireable<PropTypes.InferProps<{
248
- value: PropTypes.Validator<string | number>;
249
- label: PropTypes.Validator<string>;
250
- }>>;
251
- value: PropTypes.Requireable<string>;
252
- required: PropTypes.Requireable<boolean>;
253
- };
254
- defaultProps: {
255
- required: boolean;
256
- };
257
- };
258
- GiftCardInput: {
259
- displayName: string;
260
- propTypes: {
261
- type: PropTypes.Validator<BaseInputType>;
262
- name: PropTypes.Validator<GiftCardInputName>;
263
- children: PropTypes.Requireable<(...args: any[]) => any>;
264
- placeholder: PropTypes.Requireable<string>;
265
- };
266
- };
267
- GiftCardOrCouponForm: {
268
- permittedChildren: string[];
269
- propTypes: {
270
- children: PropTypes.Validator<boolean | import("react").ReactChild | import("react").ReactFragment | import("react").ReactPortal>;
271
- };
272
- };
273
- GiftCardOrCouponInput: {
274
- displayName: string;
275
- propTypes: {
276
- children: PropTypes.Requireable<(...args: any[]) => any>;
277
- placeholder: PropTypes.Requireable<string>;
278
- disabled: PropTypes.Requireable<boolean>;
279
- required: PropTypes.Requireable<boolean>;
280
- };
281
- };
282
- GiftCardOrCouponSubmit: {
283
- displayName: string;
284
- propTypes: {
285
- children: PropTypes.Requireable<(...args: any[]) => any>;
286
- label: PropTypes.Requireable<string | object>;
287
- };
288
- };
289
- GiftCardOrCouponCode: {
290
- displayName: string;
291
- propTypes: {
292
- children: PropTypes.Requireable<(...args: any[]) => any>;
293
- type: PropTypes.Requireable<CodeType>;
294
- };
295
- };
296
- GiftCardOrCouponRemoveButton: {
297
- displayName: string;
298
- propTypes: {
299
- children: PropTypes.Requireable<(...args: any[]) => any>;
300
- type: PropTypes.Requireable<CodeType>;
301
- label: PropTypes.Requireable<string | object>;
302
- };
303
- };
304
- ItemContainer: {
305
- permittedChildren: string[];
306
- displayName: string;
307
- propTypes: {
308
- children: PropTypes.Validator<boolean | import("react").ReactChild | import("react").ReactFragment | import("react").ReactPortal>;
309
- skuCode: PropTypes.Requireable<string>;
310
- lineItem: PropTypes.Requireable<PropTypes.InferProps<{
311
- name: PropTypes.Validator<string>;
312
- imageUrl: PropTypes.Requireable<string>;
313
- }>>;
314
- };
315
- };
316
- LineItem: {
317
- permittedChildren: string[];
318
- displayName: string;
319
- propTypes: {
320
- children: PropTypes.Validator<boolean | import("react").ReactChild | import("react").ReactFragment | import("react").ReactPortal>;
321
- type: PropTypes.Requireable<LineItemType>;
322
- };
323
- defaultProps: {
324
- type: string;
325
- };
326
- };
327
- LineItemAmount: {
328
- displayName: string;
329
- propTypes: {
330
- type: PropTypes.Requireable<BasePriceType>;
331
- id: PropTypes.Requireable<string>;
332
- className: PropTypes.Requireable<string>;
333
- style: PropTypes.Requireable<object>;
334
- name: PropTypes.Requireable<string>;
335
- children: PropTypes.Requireable<(...args: any[]) => any>;
336
- format: PropTypes.Requireable<BaseFormatPrice>;
337
- };
338
- defaultProps: {
339
- format: string;
340
- type: string;
341
- };
342
- };
343
- LineItemImage: {
344
- displayName: string;
345
- propTypes: {
346
- width: PropTypes.Requireable<number>;
347
- children: PropTypes.Requireable<(...args: any[]) => any>;
348
- };
349
- };
350
- LineItemName: {
351
- displayName: string;
352
- propTypes: {
353
- children: PropTypes.Requireable<(...args: any[]) => any>;
354
- };
355
- };
356
- LineItemSkuCode: {
357
- displayName: string;
358
- propTypes: {
359
- children: PropTypes.Requireable<(...args: any[]) => any>;
360
- };
361
- };
362
- LineItemOption: {
363
- displayName: string;
364
- propTypes: {
365
- name: PropTypes.Requireable<string>;
366
- children: PropTypes.Requireable<(...args: any[]) => any>;
367
- valueClassName: PropTypes.Requireable<string>;
368
- className: PropTypes.Requireable<string>;
369
- id: PropTypes.Requireable<string>;
370
- style: PropTypes.Requireable<object>;
371
- };
372
- };
373
- LineItemOptions: {
374
- permittedChildren: string[];
375
- displayName: string;
376
- propTypes: {
377
- children: PropTypes.Validator<boolean | import("react").ReactChild | import("react").ReactFragment | import("react").ReactPortal>;
378
- title: PropTypes.Requireable<string>;
379
- showName: PropTypes.Requireable<boolean>;
380
- skuOptionId: PropTypes.Requireable<string>;
381
- };
382
- };
383
- LineItemQuantity: {
384
- displayName: string;
385
- propTypes: {
386
- children: PropTypes.Requireable<(...args: any[]) => any>;
387
- max: PropTypes.Requireable<number>;
388
- disabled: PropTypes.Requireable<boolean>;
389
- readonly: PropTypes.Requireable<boolean>;
390
- };
391
- defaultProps: {
392
- max: number;
393
- };
394
- };
395
- LineItemRemoveLink: {
396
- displayName: string;
397
- propTypes: {
398
- children: PropTypes.Requireable<(...args: any[]) => any>;
399
- label: PropTypes.Requireable<string>;
400
- };
401
- defaultProps: {
402
- label: string;
403
- };
404
- };
405
- LineItemsContainer: {
406
- permittedChildren: string[];
407
- displayName: string;
408
- propTypes: {
409
- children: PropTypes.Validator<boolean | import("react").ReactChild | import("react").ReactFragment | import("react").ReactPortal>;
410
- filters: PropTypes.Requireable<object>;
411
- loader: PropTypes.Requireable<string | PropTypes.ReactElementLike>;
412
- };
413
- defaultProps: {
414
- filters: {};
415
- loader: string;
416
- };
417
- };
418
- LineItemsCount: {
419
- displayName: string;
420
- propTypes: {
421
- children: PropTypes.Requireable<(...args: any[]) => any>;
422
- id: PropTypes.Requireable<string>;
423
- className: PropTypes.Requireable<string>;
424
- name: PropTypes.Requireable<string>;
425
- style: PropTypes.Requireable<object>;
426
- };
427
- };
428
- MetadataInput: {
429
- displayName: string;
430
- propTypes: {
431
- children: PropTypes.Requireable<(...args: any[]) => any>;
432
- name: PropTypes.Validator<string>;
433
- type: PropTypes.Validator<BaseInputType>;
434
- onChange: PropTypes.Requireable<(...args: any[]) => any>;
435
- placeholder: PropTypes.Requireable<string>;
436
- };
437
- };
438
- OrderContainer: {
439
- permittedChildren: string[];
440
- displayName: string;
441
- propTypes: {
442
- children: PropTypes.Validator<boolean | import("react").ReactChild | import("react").ReactFragment | import("react").ReactPortal>;
443
- orderId: PropTypes.Requireable<string>;
444
- metadata: PropTypes.Requireable<{
445
- [x: string]: string | null | undefined;
446
- }>;
447
- attributes: PropTypes.Requireable<object>;
448
- };
449
- defaultProps: {
450
- metadata: {};
451
- };
452
- };
453
- OrderList: {
454
- permittedChildren: string[];
455
- displayName: string;
456
- propTypes: {
457
- children: PropTypes.Validator<boolean | import("react").ReactChild | import("react").ReactFragment | import("react").ReactPortal>;
458
- };
459
- };
460
- OrderNumber: {
461
- displayName: string;
462
- propTypes: {
463
- className: PropTypes.Requireable<string>;
464
- };
465
- defaultProps: {
466
- format: BaseFormatPrice;
467
- };
468
- };
469
- OrderStorage: {
470
- permittedChildren: string[];
471
- displayName: string;
472
- propTypes: {
473
- children: PropTypes.Validator<boolean | import("react").ReactChild | import("react").ReactFragment | import("react").ReactPortal>;
474
- clearWhenPlaced: PropTypes.Requireable<boolean>;
475
- persistKey: PropTypes.Validator<string>;
476
- };
477
- };
478
- PaymentMethod: {
479
- permittedChildren: string[];
480
- displayName: string;
481
- propTypes: {
482
- children: PropTypes.Validator<boolean | import("react").ReactChild | import("react").ReactFragment | import("react").ReactPortal>;
483
- };
484
- };
485
- PaymentMethodAmount: {
486
- displayName: string;
487
- propTypes: {
488
- id: PropTypes.Requireable<string>;
489
- className: PropTypes.Requireable<string>;
490
- style: PropTypes.Requireable<object>;
491
- name: PropTypes.Requireable<string>;
492
- children: PropTypes.Requireable<(...args: any[]) => any>;
493
- format: PropTypes.Requireable<BaseFormatPrice>;
494
- };
495
- defaultProps: {
496
- format: BaseFormatPrice;
497
- };
498
- };
499
- PaymentMethodName: {
500
- displayName: string;
501
- propTypes: {
502
- children: PropTypes.Requireable<(...args: any[]) => any>;
503
- };
504
- };
505
- PaymentMethodPrice: {
506
- displayName: string;
507
- propTypes: {
508
- type: PropTypes.Requireable<"amount">;
509
- id: PropTypes.Requireable<string>;
510
- className: PropTypes.Requireable<string>;
511
- style: PropTypes.Requireable<object>;
512
- name: PropTypes.Requireable<string>;
513
- children: PropTypes.Requireable<(...args: any[]) => any>;
514
- format: PropTypes.Requireable<BaseFormatPrice>;
515
- };
516
- };
517
- PaymentMethodRadioButton: {
518
- displayName: string;
519
- propTypes: {
520
- children: PropTypes.Requireable<(...args: any[]) => any>;
521
- };
522
- };
523
- PaymentMethodsContainer: {
524
- displayName: string;
525
- permittedChildren: string[];
526
- propTypes: {
527
- children: PropTypes.Validator<boolean | import("react").ReactChild | import("react").ReactFragment | import("react").ReactPortal>;
528
- };
529
- };
530
- PaymentSource: {
531
- displayName: string;
532
- permittedChildren: string[];
533
- propTypes: {
534
- children: PropTypes.Requireable<import("react").ReactNode>;
535
- readonly: PropTypes.Requireable<boolean>;
536
- };
537
- };
538
- PaymentSourceBrandIcon: {
539
- displayName: string;
540
- propTypes: {
541
- children: PropTypes.Requireable<(...args: any[]) => any>;
542
- width: PropTypes.Requireable<number>;
543
- height: PropTypes.Requireable<number>;
544
- src: PropTypes.Requireable<string>;
545
- className: PropTypes.Requireable<string>;
546
- };
547
- };
548
- PaymentSourceBrandName: {
549
- displayName: string;
550
- propTypes: {
551
- children: PropTypes.Requireable<(...args: any[]) => any>;
552
- label: PropTypes.Requireable<string>;
553
- };
554
- };
555
- PaymentSourceEditButton: {
556
- displayName: string;
557
- propTypes: {
558
- children: PropTypes.Requireable<(...args: any[]) => any>;
559
- label: PropTypes.Requireable<string | PropTypes.ReactElementLike>;
560
- };
561
- };
562
- PaymentSourceDetail: {
563
- displayName: string;
564
- propTypes: {
565
- type: PropTypes.Validator<PaymentSourceDetailType>;
566
- };
567
- };
568
- PlaceOrderButton: {
569
- displayName: string;
570
- propTypes: {
571
- children: PropTypes.Requireable<(...args: any[]) => any>;
572
- label: PropTypes.Requireable<string | PropTypes.ReactElementLike>;
573
- };
574
- defaultProps: {
575
- label: string;
576
- };
577
- };
578
- PlaceOrderContainer: {
579
- displayName: string;
580
- permittedChildren: string[];
581
- propTypes: {
582
- children: PropTypes.Validator<boolean | import("react").ReactChild | import("react").ReactFragment | import("react").ReactPortal>;
583
- };
584
- };
585
- Price: {
586
- displayName: string;
587
- propTypes: {
588
- children: PropTypes.Requireable<(...args: any[]) => any>;
589
- compareClassName: PropTypes.Requireable<string>;
590
- skuCode: PropTypes.Requireable<string>;
591
- showCompare: PropTypes.Requireable<boolean>;
592
- };
593
- defaultProps: {
594
- skuCode: string;
595
- };
596
- };
597
- PricesContainer: {
598
- permittedChildren: string[];
599
- displayName: string;
600
- propTypes: {
601
- children: PropTypes.Validator<boolean | import("react").ReactChild | import("react").ReactFragment | import("react").ReactPortal>;
602
- skuCode: PropTypes.Requireable<string>;
603
- loader: PropTypes.Requireable<string | PropTypes.ReactElementLike>;
604
- perPage: PropTypes.Requireable<number>;
605
- filters: PropTypes.Requireable<object>;
606
- };
607
- defaultProps: {
608
- perPage: number;
609
- filters: {};
610
- loader: string;
611
- skuCode: string;
612
- };
613
- };
614
- PrivacyAndTermsCheckbox: {
615
- displayName: string;
616
- propTypes: {
617
- children: PropTypes.Requireable<(...args: any[]) => any>;
618
- };
619
- };
620
- QuantitySelector: {
621
- displayName: string;
622
- propTypes: {
623
- children: PropTypes.Requireable<(...args: any[]) => any>;
624
- min: PropTypes.Requireable<number>;
625
- max: PropTypes.Requireable<number>;
626
- value: PropTypes.Requireable<string>;
627
- skuCode: PropTypes.Requireable<string>;
628
- disabled: PropTypes.Requireable<boolean>;
629
- };
630
- defaultProps: {
631
- min: number;
632
- };
633
- };
634
- SaveAddressesButton: {
635
- displayName: string;
636
- propTypes: {
637
- children: PropTypes.Requireable<(...args: any[]) => any>;
638
- label: PropTypes.Requireable<string | PropTypes.ReactElementLike>;
639
- onClick: PropTypes.Requireable<(...args: any[]) => any>;
640
- disabled: PropTypes.Requireable<boolean>;
641
- };
642
- defaultProps: {
643
- label: string;
644
- };
645
- };
646
- Shipment: {
647
- permittedChildren: string[];
648
- displayName: string;
649
- propTypes: {
650
- children: PropTypes.Validator<boolean | import("react").ReactChild | import("react").ReactFragment | import("react").ReactPortal>;
651
- };
652
- };
653
- ShipmentField: {
654
- displayName: string;
655
- propTypes: {
656
- children: PropTypes.Requireable<(...args: any[]) => any>;
657
- name: PropTypes.Validator<ShipmentAttribute>;
658
- };
659
- };
660
- ShipmentsContainer: {
661
- displayName: string;
662
- permittedChildren: string[];
663
- propTypes: {
664
- children: PropTypes.Validator<boolean | import("react").ReactChild | import("react").ReactFragment | import("react").ReactPortal>;
665
- };
666
- };
667
- ShippingAddressContainer: {
668
- permittedChildren: string[];
669
- propTypes: {
670
- children: PropTypes.Validator<boolean | import("react").ReactChild | import("react").ReactFragment | import("react").ReactPortal>;
671
- };
672
- };
673
- SaveCustomerButton: {
674
- displayName: string;
675
- propTypes: {
676
- children: PropTypes.Requireable<(...args: any[]) => any>;
677
- label: PropTypes.Requireable<string | PropTypes.ReactElementLike>;
678
- onClick: PropTypes.Requireable<(...args: any[]) => any>;
679
- };
680
- defaultProps: {
681
- label: string;
682
- };
683
- };
684
- ShippingAddressForm: {
685
- permittedChildren: string[];
686
- propTypes: {
687
- children: PropTypes.Validator<boolean | import("react").ReactChild | import("react").ReactFragment | import("react").ReactPortal>;
688
- };
689
- };
690
- ShippingAmount: {
691
- displayName: string;
692
- propTypes: {
693
- id: PropTypes.Requireable<string>;
694
- className: PropTypes.Requireable<string>;
695
- style: PropTypes.Requireable<object>;
696
- name: PropTypes.Requireable<string>;
697
- children: PropTypes.Requireable<(...args: any[]) => any>;
698
- format: PropTypes.Requireable<BaseFormatPrice>;
699
- };
700
- };
701
- ShippingMethod: {
702
- permittedChildren: string[];
703
- displayName: string;
704
- propTypes: {
705
- children: PropTypes.Validator<boolean | import("react").ReactChild | import("react").ReactFragment | import("react").ReactPortal>;
706
- readonly: PropTypes.Requireable<boolean>;
707
- };
708
- };
709
- ShippingMethodName: {
710
- displayName: string;
711
- propTypes: {
712
- children: PropTypes.Requireable<(...args: any[]) => any>;
713
- };
714
- };
715
- ShippingMethodRadioButton: {
716
- displayName: string;
717
- propTypes: {
718
- children: PropTypes.Requireable<(...args: any[]) => any>;
719
- };
720
- };
721
- ShippingMethodPrice: {
722
- displayName: string;
723
- propTypes: {
724
- type: PropTypes.Requireable<"amount">;
725
- id: PropTypes.Requireable<string>;
726
- className: PropTypes.Requireable<string>;
727
- style: PropTypes.Requireable<object>;
728
- name: PropTypes.Requireable<string>;
729
- children: PropTypes.Requireable<(...args: any[]) => any>;
730
- format: PropTypes.Requireable<BaseFormatPrice>;
731
- };
732
- defaultProps: {
733
- format: string;
734
- type: string;
735
- };
736
- };
737
- SkuList: {
738
- permittedChildren: string[];
739
- displayName: string;
740
- propTypes: {
741
- children: PropTypes.Validator<boolean | import("react").ReactChild | import("react").ReactFragment | import("react").ReactPortal>;
742
- id: PropTypes.Validator<string>;
743
- };
744
- };
745
- SkuListsContainer: {
746
- permittedChildren: string[];
747
- displayName: string;
748
- propTypes: {
749
- children: PropTypes.Validator<boolean | import("react").ReactChild | import("react").ReactFragment | import("react").ReactPortal>;
750
- };
751
- };
752
- SkuOption: {
753
- permittedChildren: string[];
754
- displayName: string;
755
- propTypes: {
756
- children: PropTypes.Validator<boolean | import("react").ReactChild | import("react").ReactFragment | import("react").ReactPortal>;
757
- id: PropTypes.Validator<string>;
758
- };
759
- };
760
- SkuOptionInput: {
761
- displayName: string;
762
- propTypes: {
763
- children: PropTypes.Requireable<(...args: any[]) => any>;
764
- name: PropTypes.Validator<string>;
765
- type: PropTypes.Validator<BaseInputType>;
766
- onChange: PropTypes.Requireable<(...args: any[]) => any>;
767
- placeholder: PropTypes.Requireable<string>;
768
- };
769
- };
770
- SkuOptionsContainer: {
771
- permittedChildren: string[];
772
- displayName: string;
773
- propTypes: {
774
- children: PropTypes.Validator<boolean | import("react").ReactChild | import("react").ReactFragment | import("react").ReactPortal>;
775
- skuCode: PropTypes.Requireable<string>;
776
- };
777
- };
778
- StockTransfer: {
779
- permittedChildren: string[];
780
- displayName: string;
781
- propTypes: {
782
- children: PropTypes.Validator<boolean | import("react").ReactChild | import("react").ReactFragment | import("react").ReactPortal>;
783
- };
784
- };
785
- StockTransferField: {
786
- displayName: string;
787
- propTypes: {
788
- children: PropTypes.Requireable<(...args: any[]) => any>;
789
- type: PropTypes.Validator<StockTransferFieldType>;
790
- };
791
- };
792
- SubmitButton: {
793
- displayName: string;
794
- propTypes: {
795
- children: PropTypes.Requireable<(...args: any[]) => any>;
796
- label: PropTypes.Requireable<string | PropTypes.ReactElementLike>;
797
- };
798
- defaultProps: {
799
- label: string;
800
- };
801
- };
802
- SubTotalAmount: {
803
- displayName: string;
804
- propTypes: {
805
- id: PropTypes.Requireable<string>;
806
- className: PropTypes.Requireable<string>;
807
- style: PropTypes.Requireable<object>;
808
- name: PropTypes.Requireable<string>;
809
- children: PropTypes.Requireable<(...args: any[]) => any>;
810
- format: PropTypes.Requireable<BaseFormatPrice>;
811
- };
812
- defaultProps: {
813
- format: BaseFormatPrice;
814
- };
815
- };
816
- TaxesAmount: {
817
- displayName: string;
818
- propTypes: {
819
- id: PropTypes.Requireable<string>;
820
- className: PropTypes.Requireable<string>;
821
- style: PropTypes.Requireable<object>;
822
- name: PropTypes.Requireable<string>;
823
- children: PropTypes.Requireable<(...args: any[]) => any>;
824
- format: PropTypes.Requireable<BaseFormatPrice>;
825
- };
826
- defaultProps: {
827
- format: BaseFormatPrice;
828
- };
829
- };
830
- TotalAmount: {
831
- displayName: string;
832
- propTypes: {
833
- id: PropTypes.Requireable<string>;
834
- className: PropTypes.Requireable<string>;
835
- style: PropTypes.Requireable<object>;
836
- name: PropTypes.Requireable<string>;
837
- children: PropTypes.Requireable<(...args: any[]) => any>;
838
- format: PropTypes.Requireable<BaseFormatPrice>;
839
- };
840
- defaultProps: {
841
- format: BaseFormatPrice;
842
- };
843
- };
844
- VariantsContainer: {
845
- permittedChildren: string[];
846
- displayName: string;
847
- propTypes: {
848
- children: PropTypes.Validator<boolean | import("react").ReactChild | import("react").ReactFragment | import("react").ReactPortal>;
849
- skuCode: PropTypes.Requireable<string>;
850
- filters: PropTypes.Requireable<object>;
851
- };
852
- defaultProps: {
853
- skuCode: string;
854
- filters: {};
855
- };
856
- };
857
- VariantSelector: {
858
- displayName: string;
859
- propTypes: {
860
- options: PropTypes.Validator<PropTypes.InferProps<{
861
- label: PropTypes.Validator<string>;
862
- code: PropTypes.Validator<string>;
863
- lineItem: PropTypes.Requireable<PropTypes.InferProps<{
864
- name: PropTypes.Validator<string>;
865
- imageUrl: PropTypes.Requireable<string>;
866
- }>>;
867
- }>[]>;
868
- name: PropTypes.Requireable<string>;
869
- children: PropTypes.Requireable<(...args: any[]) => any>;
870
- type: PropTypes.Requireable<BaseSelectorType>;
871
- loader: PropTypes.Requireable<PropTypes.ReactElementLike>;
872
- placeholder: PropTypes.Requireable<string>;
873
- skuCode: PropTypes.Requireable<string>;
874
- };
875
- defaultProps: {
876
- placeholder: string;
877
- type: BaseSelectorType;
878
- };
879
- };
880
- };
881
- export default components;
1
+ /// <reference types="react" />
2
+ import PropTypes from 'prop-types';
3
+ import { TimeFormat, BaseInputType, GiftCardInputName, LineItemType, BasePriceType, BaseFormatPrice, BaseSelectorType, AddressInputName, AddressCountrySelectName, AddressStateSelectName } from '../typings/index';
4
+ import { DeliveryLeadTimeField } from '../components/DeliveryLeadTime';
5
+ import { StockTransferFieldType } from '../components/StockTransferField';
6
+ import { PaymentSourceDetailType } from '../components/PaymentSourceDetail';
7
+ import { CodeType } from '../reducers/OrderReducer';
8
+ import { ShipmentAttribute } from '../components/ShipmentField';
9
+ declare const components: {
10
+ Address: {
11
+ permittedChildren: string[];
12
+ displayName: string;
13
+ propTypes: {
14
+ children: PropTypes.Validator<boolean | import("react").ReactChild | import("react").ReactFragment | import("react").ReactPortal>;
15
+ };
16
+ };
17
+ AddressCountrySelector: {
18
+ displayName: string;
19
+ propTypes: {
20
+ children: PropTypes.Requireable<(...args: any[]) => any>;
21
+ placeholder: PropTypes.Requireable<PropTypes.InferProps<{
22
+ label: PropTypes.Validator<string>;
23
+ value: PropTypes.Validator<string | number>;
24
+ }>>;
25
+ value: PropTypes.Requireable<string>;
26
+ name: PropTypes.Validator<AddressCountrySelectName>;
27
+ required: PropTypes.Requireable<boolean>;
28
+ };
29
+ defaultProps: {
30
+ required: boolean;
31
+ };
32
+ };
33
+ AddressStateSelector: {
34
+ displayName: string;
35
+ propTypes: {
36
+ children: PropTypes.Requireable<(...args: any[]) => any>;
37
+ placeholder: PropTypes.Requireable<PropTypes.InferProps<{
38
+ label: PropTypes.Validator<string>;
39
+ value: PropTypes.Validator<string | number>;
40
+ }>>;
41
+ value: PropTypes.Requireable<string>;
42
+ name: PropTypes.Validator<AddressStateSelectName>;
43
+ required: PropTypes.Requireable<boolean>;
44
+ };
45
+ defaultProps: {
46
+ required: boolean;
47
+ };
48
+ };
49
+ AddressField: {
50
+ displayName: string;
51
+ propTypes: {
52
+ children: PropTypes.Requireable<(...args: any[]) => any>;
53
+ };
54
+ };
55
+ AddressInput: {
56
+ displayName: string;
57
+ propTypes: {
58
+ children: PropTypes.Requireable<(...args: any[]) => any>;
59
+ name: PropTypes.Validator<AddressInputName>;
60
+ type: PropTypes.Validator<BaseInputType>;
61
+ placeholder: PropTypes.Requireable<string>;
62
+ disabled: PropTypes.Requireable<boolean>;
63
+ required: PropTypes.Requireable<boolean>;
64
+ };
65
+ defaultProps: {
66
+ required: boolean;
67
+ };
68
+ };
69
+ AdjustmentAmount: {
70
+ displayName: string;
71
+ propTypes: {
72
+ id: PropTypes.Requireable<string>;
73
+ className: PropTypes.Requireable<string>;
74
+ style: PropTypes.Requireable<object>;
75
+ name: PropTypes.Requireable<string>;
76
+ children: PropTypes.Requireable<(...args: any[]) => any>;
77
+ format: PropTypes.Requireable<BaseFormatPrice>;
78
+ };
79
+ defaultProps: {
80
+ format: BaseFormatPrice;
81
+ };
82
+ };
83
+ AddToCartButton: {
84
+ displayName: string;
85
+ propTypes: {
86
+ children: PropTypes.Requireable<(...args: any[]) => any>;
87
+ label: PropTypes.Requireable<string | PropTypes.ReactElementLike>;
88
+ skuCode: PropTypes.Requireable<string>;
89
+ disabled: PropTypes.Requireable<boolean>;
90
+ lineItem: PropTypes.Requireable<PropTypes.InferProps<{
91
+ name: PropTypes.Validator<string>;
92
+ imageUrl: PropTypes.Requireable<string>;
93
+ }>>;
94
+ };
95
+ defaultProps: {
96
+ label: string;
97
+ };
98
+ };
99
+ AddressesContainer: {
100
+ displayName: string;
101
+ permittedChildren: string[];
102
+ propTypes: {
103
+ children: PropTypes.Validator<boolean | import("react").ReactChild | import("react").ReactFragment | import("react").ReactPortal>;
104
+ shipToDifferentAddress: PropTypes.Requireable<boolean>;
105
+ };
106
+ };
107
+ AvailabilityContainer: {
108
+ displayName: string;
109
+ permittedChildren: string[];
110
+ propTypes: {
111
+ children: PropTypes.Validator<boolean | import("react").ReactChild | import("react").ReactFragment | import("react").ReactPortal>;
112
+ skuCode: PropTypes.Requireable<string>;
113
+ };
114
+ };
115
+ AvailabilityTemplate: {
116
+ displayName: string;
117
+ propTypes: {
118
+ timeFormat: PropTypes.Requireable<TimeFormat>;
119
+ showShippingMethodName: PropTypes.Requireable<boolean>;
120
+ children: PropTypes.Requireable<(...args: any[]) => any>;
121
+ };
122
+ defaultProps: {
123
+ timeFormat: string;
124
+ showShippingMethodName: boolean;
125
+ };
126
+ };
127
+ BillingAddressContainer: {
128
+ permittedChildren: string[];
129
+ propTypes: {
130
+ children: PropTypes.Validator<boolean | import("react").ReactChild | import("react").ReactFragment | import("react").ReactPortal>;
131
+ };
132
+ };
133
+ BillingAddressForm: {
134
+ permittedChildren: string[];
135
+ propTypes: {
136
+ children: PropTypes.Validator<boolean | import("react").ReactChild | import("react").ReactFragment | import("react").ReactPortal>;
137
+ };
138
+ };
139
+ CheckoutLink: {
140
+ displayName: string;
141
+ propTypes: {
142
+ children: PropTypes.Requireable<(...args: any[]) => any>;
143
+ label: PropTypes.Requireable<string>;
144
+ };
145
+ defaultProps: {
146
+ label: string;
147
+ };
148
+ };
149
+ CommerceLayer: {
150
+ permittedChildren: string[];
151
+ propTypes: {
152
+ children: PropTypes.Validator<boolean | import("react").ReactChild | import("react").ReactFragment | import("react").ReactPortal>;
153
+ accessToken: PropTypes.Validator<string>;
154
+ endpoint: PropTypes.Validator<string>;
155
+ };
156
+ };
157
+ CustomerContainer: {
158
+ displayName: string;
159
+ permittedChildren: string[];
160
+ propTypes: {
161
+ children: PropTypes.Validator<boolean | import("react").ReactChild | import("react").ReactFragment | import("react").ReactPortal>;
162
+ isGuest: PropTypes.Requireable<boolean>;
163
+ };
164
+ };
165
+ CustomerInput: {
166
+ displayName: string;
167
+ propTypes: {
168
+ children: PropTypes.Requireable<(...args: any[]) => any>;
169
+ name: PropTypes.Requireable<string>;
170
+ type: PropTypes.Requireable<string>;
171
+ placeholder: PropTypes.Requireable<string>;
172
+ disabled: PropTypes.Requireable<boolean>;
173
+ required: PropTypes.Requireable<boolean>;
174
+ saveOnBlur: PropTypes.Requireable<boolean>;
175
+ };
176
+ defaultProps: {
177
+ required: boolean;
178
+ };
179
+ };
180
+ DeliveryLeadTime: {
181
+ displayName: string;
182
+ propTypes: {
183
+ type: PropTypes.Validator<DeliveryLeadTimeField>;
184
+ children: PropTypes.Requireable<(...args: any[]) => any>;
185
+ };
186
+ };
187
+ DiscountAmount: {
188
+ displayName: string;
189
+ propTypes: {
190
+ id: PropTypes.Requireable<string>;
191
+ className: PropTypes.Requireable<string>;
192
+ style: PropTypes.Requireable<object>;
193
+ name: PropTypes.Requireable<string>;
194
+ children: PropTypes.Requireable<(...args: any[]) => any>;
195
+ format: PropTypes.Requireable<BaseFormatPrice>;
196
+ };
197
+ defaultProps: {
198
+ format: BaseFormatPrice;
199
+ };
200
+ };
201
+ Errors: {
202
+ displayName: string;
203
+ propTypes: {
204
+ resource: PropTypes.Validator<import("../typings/errors").ResourceErrorType>;
205
+ children: PropTypes.Requireable<(...args: any[]) => any>;
206
+ field: PropTypes.Requireable<string>;
207
+ };
208
+ defaultProps: {
209
+ messages: never[];
210
+ field: string;
211
+ };
212
+ };
213
+ ExternalFunction: {
214
+ displayName: string;
215
+ permittedChildren: string[];
216
+ propTypes: {
217
+ children: PropTypes.Validator<boolean | import("react").ReactChild | import("react").ReactFragment | import("react").ReactPortal>;
218
+ url: PropTypes.Validator<string>;
219
+ };
220
+ };
221
+ GiftCard: {
222
+ permittedChildren: string[];
223
+ displayName: string;
224
+ propTypes: {
225
+ children: PropTypes.Validator<boolean | import("react").ReactChild | import("react").ReactFragment | import("react").ReactPortal>;
226
+ onSubmit: PropTypes.Requireable<(...args: any[]) => any>;
227
+ };
228
+ defaultProps: {
229
+ onSubmit: undefined;
230
+ };
231
+ };
232
+ GiftCardAmount: {
233
+ displayName: string;
234
+ propTypes: {
235
+ id: PropTypes.Requireable<string>;
236
+ className: PropTypes.Requireable<string>;
237
+ style: PropTypes.Requireable<object>;
238
+ name: PropTypes.Requireable<string>;
239
+ children: PropTypes.Requireable<(...args: any[]) => any>;
240
+ format: PropTypes.Requireable<BaseFormatPrice>;
241
+ };
242
+ };
243
+ GiftCardContainer: {
244
+ permittedChildren: string[];
245
+ displayName: string;
246
+ propTypes: {
247
+ children: PropTypes.Validator<boolean | import("react").ReactChild | import("react").ReactFragment | import("react").ReactPortal>;
248
+ };
249
+ };
250
+ GiftCardCurrencySelector: {
251
+ displayName: string;
252
+ propTypes: {
253
+ children: PropTypes.Requireable<(...args: any[]) => any>;
254
+ placeholder: PropTypes.Requireable<PropTypes.InferProps<{
255
+ value: PropTypes.Validator<string | number>;
256
+ label: PropTypes.Validator<string>;
257
+ }>>;
258
+ value: PropTypes.Requireable<string>;
259
+ required: PropTypes.Requireable<boolean>;
260
+ };
261
+ defaultProps: {
262
+ required: boolean;
263
+ };
264
+ };
265
+ GiftCardInput: {
266
+ displayName: string;
267
+ propTypes: {
268
+ type: PropTypes.Validator<BaseInputType>;
269
+ name: PropTypes.Validator<GiftCardInputName>;
270
+ children: PropTypes.Requireable<(...args: any[]) => any>;
271
+ placeholder: PropTypes.Requireable<string>;
272
+ };
273
+ };
274
+ GiftCardOrCouponForm: {
275
+ permittedChildren: string[];
276
+ propTypes: {
277
+ children: PropTypes.Validator<boolean | import("react").ReactChild | import("react").ReactFragment | import("react").ReactPortal>;
278
+ };
279
+ };
280
+ GiftCardOrCouponInput: {
281
+ displayName: string;
282
+ propTypes: {
283
+ children: PropTypes.Requireable<(...args: any[]) => any>;
284
+ placeholder: PropTypes.Requireable<string>;
285
+ disabled: PropTypes.Requireable<boolean>;
286
+ required: PropTypes.Requireable<boolean>;
287
+ };
288
+ };
289
+ GiftCardOrCouponSubmit: {
290
+ displayName: string;
291
+ propTypes: {
292
+ children: PropTypes.Requireable<(...args: any[]) => any>;
293
+ label: PropTypes.Requireable<string | object>;
294
+ };
295
+ };
296
+ GiftCardOrCouponCode: {
297
+ displayName: string;
298
+ propTypes: {
299
+ children: PropTypes.Requireable<(...args: any[]) => any>;
300
+ type: PropTypes.Requireable<CodeType>;
301
+ };
302
+ };
303
+ GiftCardOrCouponRemoveButton: {
304
+ displayName: string;
305
+ propTypes: {
306
+ children: PropTypes.Requireable<(...args: any[]) => any>;
307
+ type: PropTypes.Requireable<CodeType>;
308
+ label: PropTypes.Requireable<string | object>;
309
+ };
310
+ };
311
+ ItemContainer: {
312
+ permittedChildren: string[];
313
+ displayName: string;
314
+ propTypes: {
315
+ children: PropTypes.Validator<boolean | import("react").ReactChild | import("react").ReactFragment | import("react").ReactPortal>;
316
+ skuCode: PropTypes.Requireable<string>;
317
+ lineItem: PropTypes.Requireable<PropTypes.InferProps<{
318
+ name: PropTypes.Validator<string>;
319
+ imageUrl: PropTypes.Requireable<string>;
320
+ }>>;
321
+ };
322
+ };
323
+ LineItem: {
324
+ permittedChildren: string[];
325
+ displayName: string;
326
+ propTypes: {
327
+ children: PropTypes.Validator<boolean | import("react").ReactChild | import("react").ReactFragment | import("react").ReactPortal>;
328
+ type: PropTypes.Requireable<LineItemType>;
329
+ };
330
+ defaultProps: {
331
+ type: string;
332
+ };
333
+ };
334
+ LineItemAmount: {
335
+ displayName: string;
336
+ propTypes: {
337
+ type: PropTypes.Requireable<BasePriceType>;
338
+ id: PropTypes.Requireable<string>;
339
+ className: PropTypes.Requireable<string>;
340
+ style: PropTypes.Requireable<object>;
341
+ name: PropTypes.Requireable<string>;
342
+ children: PropTypes.Requireable<(...args: any[]) => any>;
343
+ format: PropTypes.Requireable<BaseFormatPrice>;
344
+ };
345
+ defaultProps: {
346
+ format: string;
347
+ type: string;
348
+ };
349
+ };
350
+ LineItemImage: {
351
+ displayName: string;
352
+ propTypes: {
353
+ width: PropTypes.Requireable<number>;
354
+ children: PropTypes.Requireable<(...args: any[]) => any>;
355
+ };
356
+ };
357
+ LineItemName: {
358
+ displayName: string;
359
+ propTypes: {
360
+ children: PropTypes.Requireable<(...args: any[]) => any>;
361
+ };
362
+ };
363
+ LineItemCode: {
364
+ displayName: string;
365
+ propTypes: {
366
+ children: PropTypes.Requireable<(...args: any[]) => any>;
367
+ };
368
+ };
369
+ LineItemOption: {
370
+ displayName: string;
371
+ propTypes: {
372
+ name: PropTypes.Requireable<string>;
373
+ children: PropTypes.Requireable<(...args: any[]) => any>;
374
+ valueClassName: PropTypes.Requireable<string>;
375
+ className: PropTypes.Requireable<string>;
376
+ id: PropTypes.Requireable<string>;
377
+ style: PropTypes.Requireable<object>;
378
+ };
379
+ };
380
+ LineItemOptions: {
381
+ permittedChildren: string[];
382
+ displayName: string;
383
+ propTypes: {
384
+ children: PropTypes.Validator<boolean | import("react").ReactChild | import("react").ReactFragment | import("react").ReactPortal>;
385
+ title: PropTypes.Requireable<string>;
386
+ showName: PropTypes.Requireable<boolean>;
387
+ skuOptionId: PropTypes.Requireable<string>;
388
+ };
389
+ };
390
+ LineItemQuantity: {
391
+ displayName: string;
392
+ propTypes: {
393
+ children: PropTypes.Requireable<(...args: any[]) => any>;
394
+ max: PropTypes.Requireable<number>;
395
+ disabled: PropTypes.Requireable<boolean>;
396
+ readonly: PropTypes.Requireable<boolean>;
397
+ };
398
+ defaultProps: {
399
+ max: number;
400
+ };
401
+ };
402
+ LineItemRemoveLink: {
403
+ displayName: string;
404
+ propTypes: {
405
+ children: PropTypes.Requireable<(...args: any[]) => any>;
406
+ label: PropTypes.Requireable<string>;
407
+ };
408
+ defaultProps: {
409
+ label: string;
410
+ };
411
+ };
412
+ LineItemsContainer: {
413
+ permittedChildren: string[];
414
+ displayName: string;
415
+ propTypes: {
416
+ children: PropTypes.Validator<boolean | import("react").ReactChild | import("react").ReactFragment | import("react").ReactPortal>;
417
+ filters: PropTypes.Requireable<object>;
418
+ loader: PropTypes.Requireable<string | PropTypes.ReactElementLike>;
419
+ };
420
+ defaultProps: {
421
+ filters: {};
422
+ loader: string;
423
+ };
424
+ };
425
+ LineItemsCount: {
426
+ displayName: string;
427
+ propTypes: {
428
+ children: PropTypes.Requireable<(...args: any[]) => any>;
429
+ id: PropTypes.Requireable<string>;
430
+ className: PropTypes.Requireable<string>;
431
+ name: PropTypes.Requireable<string>;
432
+ style: PropTypes.Requireable<object>;
433
+ };
434
+ };
435
+ LineItemsEmpty: {
436
+ displayName: string;
437
+ propTypes: {
438
+ children: PropTypes.Requireable<(...args: any[]) => any>;
439
+ id: PropTypes.Requireable<string>;
440
+ className: PropTypes.Requireable<string>;
441
+ name: PropTypes.Requireable<string>;
442
+ style: PropTypes.Requireable<object>;
443
+ text: PropTypes.Requireable<string>;
444
+ };
445
+ };
446
+ MetadataInput: {
447
+ displayName: string;
448
+ propTypes: {
449
+ children: PropTypes.Requireable<(...args: any[]) => any>;
450
+ name: PropTypes.Validator<string>;
451
+ type: PropTypes.Validator<BaseInputType>;
452
+ onChange: PropTypes.Requireable<(...args: any[]) => any>;
453
+ placeholder: PropTypes.Requireable<string>;
454
+ };
455
+ };
456
+ OrderContainer: {
457
+ permittedChildren: string[];
458
+ displayName: string;
459
+ propTypes: {
460
+ children: PropTypes.Validator<boolean | import("react").ReactChild | import("react").ReactFragment | import("react").ReactPortal>;
461
+ orderId: PropTypes.Requireable<string>;
462
+ metadata: PropTypes.Requireable<{
463
+ [x: string]: string | null | undefined;
464
+ }>;
465
+ attributes: PropTypes.Requireable<object>;
466
+ };
467
+ defaultProps: {
468
+ metadata: {};
469
+ };
470
+ };
471
+ OrderNumber: {
472
+ displayName: string;
473
+ propTypes: {
474
+ className: PropTypes.Requireable<string>;
475
+ };
476
+ defaultProps: {
477
+ format: BaseFormatPrice;
478
+ };
479
+ };
480
+ OrderStorage: {
481
+ permittedChildren: string[];
482
+ displayName: string;
483
+ propTypes: {
484
+ children: PropTypes.Validator<boolean | import("react").ReactChild | import("react").ReactFragment | import("react").ReactPortal>;
485
+ clearWhenPlaced: PropTypes.Requireable<boolean>;
486
+ persistKey: PropTypes.Validator<string>;
487
+ };
488
+ };
489
+ PaymentMethod: {
490
+ permittedChildren: string[];
491
+ displayName: string;
492
+ propTypes: {
493
+ children: PropTypes.Validator<boolean | import("react").ReactChild | import("react").ReactFragment | import("react").ReactPortal>;
494
+ };
495
+ };
496
+ PaymentMethodAmount: {
497
+ displayName: string;
498
+ propTypes: {
499
+ id: PropTypes.Requireable<string>;
500
+ className: PropTypes.Requireable<string>;
501
+ style: PropTypes.Requireable<object>;
502
+ name: PropTypes.Requireable<string>;
503
+ children: PropTypes.Requireable<(...args: any[]) => any>;
504
+ format: PropTypes.Requireable<BaseFormatPrice>;
505
+ };
506
+ defaultProps: {
507
+ format: BaseFormatPrice;
508
+ };
509
+ };
510
+ PaymentMethodName: {
511
+ displayName: string;
512
+ propTypes: {
513
+ children: PropTypes.Requireable<(...args: any[]) => any>;
514
+ };
515
+ };
516
+ PaymentMethodPrice: {
517
+ displayName: string;
518
+ propTypes: {
519
+ type: PropTypes.Requireable<"amount">;
520
+ id: PropTypes.Requireable<string>;
521
+ className: PropTypes.Requireable<string>;
522
+ style: PropTypes.Requireable<object>;
523
+ name: PropTypes.Requireable<string>;
524
+ children: PropTypes.Requireable<(...args: any[]) => any>;
525
+ format: PropTypes.Requireable<BaseFormatPrice>;
526
+ };
527
+ };
528
+ PaymentMethodRadioButton: {
529
+ displayName: string;
530
+ propTypes: {
531
+ children: PropTypes.Requireable<(...args: any[]) => any>;
532
+ };
533
+ };
534
+ PaymentMethodsContainer: {
535
+ displayName: string;
536
+ permittedChildren: string[];
537
+ propTypes: {
538
+ children: PropTypes.Validator<boolean | import("react").ReactChild | import("react").ReactFragment | import("react").ReactPortal>;
539
+ };
540
+ };
541
+ PaymentSource: {
542
+ displayName: string;
543
+ permittedChildren: string[];
544
+ propTypes: {
545
+ children: PropTypes.Requireable<import("react").ReactNode>;
546
+ readonly: PropTypes.Requireable<boolean>;
547
+ };
548
+ };
549
+ PaymentSourceBrandIcon: {
550
+ displayName: string;
551
+ propTypes: {
552
+ children: PropTypes.Requireable<(...args: any[]) => any>;
553
+ width: PropTypes.Requireable<number>;
554
+ height: PropTypes.Requireable<number>;
555
+ src: PropTypes.Requireable<string>;
556
+ className: PropTypes.Requireable<string>;
557
+ };
558
+ };
559
+ PaymentSourceBrandName: {
560
+ displayName: string;
561
+ propTypes: {
562
+ children: PropTypes.Requireable<(...args: any[]) => any>;
563
+ label: PropTypes.Requireable<string>;
564
+ };
565
+ };
566
+ PaymentSourceEditButton: {
567
+ displayName: string;
568
+ propTypes: {
569
+ children: PropTypes.Requireable<(...args: any[]) => any>;
570
+ label: PropTypes.Requireable<string | PropTypes.ReactElementLike>;
571
+ };
572
+ };
573
+ PaymentSourceDetail: {
574
+ displayName: string;
575
+ propTypes: {
576
+ type: PropTypes.Validator<PaymentSourceDetailType>;
577
+ };
578
+ };
579
+ PlaceOrderButton: {
580
+ displayName: string;
581
+ propTypes: {
582
+ children: PropTypes.Requireable<(...args: any[]) => any>;
583
+ label: PropTypes.Requireable<string | PropTypes.ReactElementLike>;
584
+ };
585
+ defaultProps: {
586
+ label: string;
587
+ };
588
+ };
589
+ PlaceOrderContainer: {
590
+ displayName: string;
591
+ permittedChildren: string[];
592
+ propTypes: {
593
+ children: PropTypes.Validator<boolean | import("react").ReactChild | import("react").ReactFragment | import("react").ReactPortal>;
594
+ };
595
+ };
596
+ Price: {
597
+ displayName: string;
598
+ propTypes: {
599
+ children: PropTypes.Requireable<(...args: any[]) => any>;
600
+ compareClassName: PropTypes.Requireable<string>;
601
+ skuCode: PropTypes.Requireable<string>;
602
+ showCompare: PropTypes.Requireable<boolean>;
603
+ };
604
+ defaultProps: {
605
+ skuCode: string;
606
+ };
607
+ };
608
+ PricesContainer: {
609
+ permittedChildren: string[];
610
+ displayName: string;
611
+ propTypes: {
612
+ children: PropTypes.Validator<boolean | import("react").ReactChild | import("react").ReactFragment | import("react").ReactPortal>;
613
+ skuCode: PropTypes.Requireable<string>;
614
+ loader: PropTypes.Requireable<string | PropTypes.ReactElementLike>;
615
+ perPage: PropTypes.Requireable<number>;
616
+ filters: PropTypes.Requireable<object>;
617
+ };
618
+ defaultProps: {
619
+ perPage: number;
620
+ filters: {};
621
+ loader: string;
622
+ skuCode: string;
623
+ };
624
+ };
625
+ PrivacyAndTermsCheckbox: {
626
+ displayName: string;
627
+ propTypes: {
628
+ children: PropTypes.Requireable<(...args: any[]) => any>;
629
+ };
630
+ };
631
+ QuantitySelector: {
632
+ displayName: string;
633
+ propTypes: {
634
+ children: PropTypes.Requireable<(...args: any[]) => any>;
635
+ min: PropTypes.Requireable<number>;
636
+ max: PropTypes.Requireable<number>;
637
+ value: PropTypes.Requireable<string>;
638
+ skuCode: PropTypes.Requireable<string>;
639
+ disabled: PropTypes.Requireable<boolean>;
640
+ };
641
+ defaultProps: {
642
+ min: number;
643
+ };
644
+ };
645
+ SaveAddressesButton: {
646
+ displayName: string;
647
+ propTypes: {
648
+ children: PropTypes.Requireable<(...args: any[]) => any>;
649
+ label: PropTypes.Requireable<string | PropTypes.ReactElementLike>;
650
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
651
+ disabled: PropTypes.Requireable<boolean>;
652
+ };
653
+ defaultProps: {
654
+ label: string;
655
+ };
656
+ };
657
+ Shipment: {
658
+ permittedChildren: string[];
659
+ displayName: string;
660
+ propTypes: {
661
+ children: PropTypes.Validator<boolean | import("react").ReactChild | import("react").ReactFragment | import("react").ReactPortal>;
662
+ };
663
+ };
664
+ ShipmentField: {
665
+ displayName: string;
666
+ propTypes: {
667
+ children: PropTypes.Requireable<(...args: any[]) => any>;
668
+ name: PropTypes.Validator<ShipmentAttribute>;
669
+ };
670
+ };
671
+ ShipmentsContainer: {
672
+ displayName: string;
673
+ permittedChildren: string[];
674
+ propTypes: {
675
+ children: PropTypes.Validator<boolean | import("react").ReactChild | import("react").ReactFragment | import("react").ReactPortal>;
676
+ };
677
+ };
678
+ ShippingAddressContainer: {
679
+ permittedChildren: string[];
680
+ propTypes: {
681
+ children: PropTypes.Validator<boolean | import("react").ReactChild | import("react").ReactFragment | import("react").ReactPortal>;
682
+ };
683
+ };
684
+ SaveCustomerButton: {
685
+ displayName: string;
686
+ propTypes: {
687
+ children: PropTypes.Requireable<(...args: any[]) => any>;
688
+ label: PropTypes.Requireable<string | PropTypes.ReactElementLike>;
689
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
690
+ };
691
+ defaultProps: {
692
+ label: string;
693
+ };
694
+ };
695
+ ShippingAddressForm: {
696
+ permittedChildren: string[];
697
+ propTypes: {
698
+ children: PropTypes.Validator<boolean | import("react").ReactChild | import("react").ReactFragment | import("react").ReactPortal>;
699
+ };
700
+ };
701
+ ShippingAmount: {
702
+ displayName: string;
703
+ propTypes: {
704
+ id: PropTypes.Requireable<string>;
705
+ className: PropTypes.Requireable<string>;
706
+ style: PropTypes.Requireable<object>;
707
+ name: PropTypes.Requireable<string>;
708
+ children: PropTypes.Requireable<(...args: any[]) => any>;
709
+ format: PropTypes.Requireable<BaseFormatPrice>;
710
+ };
711
+ };
712
+ ShippingMethod: {
713
+ permittedChildren: string[];
714
+ displayName: string;
715
+ propTypes: {
716
+ children: PropTypes.Validator<boolean | import("react").ReactChild | import("react").ReactFragment | import("react").ReactPortal>;
717
+ readonly: PropTypes.Requireable<boolean>;
718
+ };
719
+ };
720
+ ShippingMethodName: {
721
+ displayName: string;
722
+ propTypes: {
723
+ children: PropTypes.Requireable<(...args: any[]) => any>;
724
+ };
725
+ };
726
+ ShippingMethodRadioButton: {
727
+ displayName: string;
728
+ propTypes: {
729
+ children: PropTypes.Requireable<(...args: any[]) => any>;
730
+ };
731
+ };
732
+ ShippingMethodPrice: {
733
+ displayName: string;
734
+ propTypes: {
735
+ type: PropTypes.Requireable<"amount">;
736
+ id: PropTypes.Requireable<string>;
737
+ className: PropTypes.Requireable<string>;
738
+ style: PropTypes.Requireable<object>;
739
+ name: PropTypes.Requireable<string>;
740
+ children: PropTypes.Requireable<(...args: any[]) => any>;
741
+ format: PropTypes.Requireable<BaseFormatPrice>;
742
+ };
743
+ defaultProps: {
744
+ format: string;
745
+ type: string;
746
+ };
747
+ };
748
+ SkuList: {
749
+ permittedChildren: string[];
750
+ displayName: string;
751
+ propTypes: {
752
+ children: PropTypes.Validator<boolean | import("react").ReactChild | import("react").ReactFragment | import("react").ReactPortal>;
753
+ id: PropTypes.Validator<string>;
754
+ };
755
+ };
756
+ SkuListsContainer: {
757
+ permittedChildren: string[];
758
+ displayName: string;
759
+ propTypes: {
760
+ children: PropTypes.Validator<boolean | import("react").ReactChild | import("react").ReactFragment | import("react").ReactPortal>;
761
+ };
762
+ };
763
+ SkuOption: {
764
+ permittedChildren: string[];
765
+ displayName: string;
766
+ propTypes: {
767
+ children: PropTypes.Validator<boolean | import("react").ReactChild | import("react").ReactFragment | import("react").ReactPortal>;
768
+ id: PropTypes.Validator<string>;
769
+ };
770
+ };
771
+ SkuOptionInput: {
772
+ displayName: string;
773
+ propTypes: {
774
+ children: PropTypes.Requireable<(...args: any[]) => any>;
775
+ name: PropTypes.Validator<string>;
776
+ type: PropTypes.Validator<BaseInputType>;
777
+ onChange: PropTypes.Requireable<(...args: any[]) => any>;
778
+ placeholder: PropTypes.Requireable<string>;
779
+ };
780
+ };
781
+ SkuOptionsContainer: {
782
+ permittedChildren: string[];
783
+ displayName: string;
784
+ propTypes: {
785
+ children: PropTypes.Validator<boolean | import("react").ReactChild | import("react").ReactFragment | import("react").ReactPortal>;
786
+ skuCode: PropTypes.Requireable<string>;
787
+ };
788
+ };
789
+ StockTransfer: {
790
+ permittedChildren: string[];
791
+ displayName: string;
792
+ propTypes: {
793
+ children: PropTypes.Validator<boolean | import("react").ReactChild | import("react").ReactFragment | import("react").ReactPortal>;
794
+ };
795
+ };
796
+ StockTransferField: {
797
+ displayName: string;
798
+ propTypes: {
799
+ children: PropTypes.Requireable<(...args: any[]) => any>;
800
+ type: PropTypes.Validator<StockTransferFieldType>;
801
+ };
802
+ };
803
+ SubmitButton: {
804
+ displayName: string;
805
+ propTypes: {
806
+ children: PropTypes.Requireable<(...args: any[]) => any>;
807
+ label: PropTypes.Requireable<string | PropTypes.ReactElementLike>;
808
+ };
809
+ defaultProps: {
810
+ label: string;
811
+ };
812
+ };
813
+ SubTotalAmount: {
814
+ displayName: string;
815
+ propTypes: {
816
+ id: PropTypes.Requireable<string>;
817
+ className: PropTypes.Requireable<string>;
818
+ style: PropTypes.Requireable<object>;
819
+ name: PropTypes.Requireable<string>;
820
+ children: PropTypes.Requireable<(...args: any[]) => any>;
821
+ format: PropTypes.Requireable<BaseFormatPrice>;
822
+ };
823
+ defaultProps: {
824
+ format: BaseFormatPrice;
825
+ };
826
+ };
827
+ TaxesAmount: {
828
+ displayName: string;
829
+ propTypes: {
830
+ id: PropTypes.Requireable<string>;
831
+ className: PropTypes.Requireable<string>;
832
+ style: PropTypes.Requireable<object>;
833
+ name: PropTypes.Requireable<string>;
834
+ children: PropTypes.Requireable<(...args: any[]) => any>;
835
+ format: PropTypes.Requireable<BaseFormatPrice>;
836
+ };
837
+ defaultProps: {
838
+ format: BaseFormatPrice;
839
+ };
840
+ };
841
+ TotalAmount: {
842
+ displayName: string;
843
+ propTypes: {
844
+ id: PropTypes.Requireable<string>;
845
+ className: PropTypes.Requireable<string>;
846
+ style: PropTypes.Requireable<object>;
847
+ name: PropTypes.Requireable<string>;
848
+ children: PropTypes.Requireable<(...args: any[]) => any>;
849
+ format: PropTypes.Requireable<BaseFormatPrice>;
850
+ };
851
+ defaultProps: {
852
+ format: BaseFormatPrice;
853
+ };
854
+ };
855
+ VariantsContainer: {
856
+ permittedChildren: string[];
857
+ displayName: string;
858
+ propTypes: {
859
+ children: PropTypes.Validator<boolean | import("react").ReactChild | import("react").ReactFragment | import("react").ReactPortal>;
860
+ skuCode: PropTypes.Requireable<string>;
861
+ filters: PropTypes.Requireable<object>;
862
+ };
863
+ defaultProps: {
864
+ skuCode: string;
865
+ filters: {};
866
+ };
867
+ };
868
+ VariantSelector: {
869
+ displayName: string;
870
+ propTypes: {
871
+ options: PropTypes.Validator<PropTypes.InferProps<{
872
+ label: PropTypes.Validator<string>;
873
+ code: PropTypes.Validator<string>;
874
+ lineItem: PropTypes.Requireable<PropTypes.InferProps<{
875
+ name: PropTypes.Validator<string>;
876
+ imageUrl: PropTypes.Requireable<string>;
877
+ }>>;
878
+ }>[]>;
879
+ name: PropTypes.Requireable<string>;
880
+ children: PropTypes.Requireable<(...args: any[]) => any>;
881
+ type: PropTypes.Requireable<BaseSelectorType>;
882
+ loader: PropTypes.Requireable<PropTypes.ReactElementLike>;
883
+ placeholder: PropTypes.Requireable<string>;
884
+ skuCode: PropTypes.Requireable<string>;
885
+ };
886
+ defaultProps: {
887
+ placeholder: string;
888
+ type: BaseSelectorType;
889
+ };
890
+ };
891
+ };
892
+ export default components;