@shopgate/engage 7.30.4-beta.1 → 7.31.0-alpha.2

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 (1351) hide show
  1. package/a11y/components/LiveMessage/index.js +29 -11
  2. package/a11y/components/Navigation/index.js +21 -11
  3. package/a11y/components/VisuallyHidden/index.js +13 -8
  4. package/a11y/styles.js +15 -13
  5. package/account/actions/deleteContact.d.ts +2 -0
  6. package/account/actions/deleteContact.d.ts.map +1 -0
  7. package/account/actions/deleteCustomer.d.ts +2 -0
  8. package/account/actions/deleteCustomer.d.ts.map +1 -0
  9. package/account/actions/fetchContacts.d.ts +2 -0
  10. package/account/actions/fetchContacts.d.ts.map +1 -0
  11. package/account/actions/fetchCustomer.d.ts +2 -0
  12. package/account/actions/fetchCustomer.d.ts.map +1 -0
  13. package/account/actions/updateCustomer.d.ts +2 -0
  14. package/account/actions/updateCustomer.d.ts.map +1 -0
  15. package/account/components/Account/Account.connector.d.ts +5 -0
  16. package/account/components/Account/Account.connector.d.ts.map +1 -0
  17. package/account/components/Account/Account.d.ts +14 -0
  18. package/account/components/Account/Account.d.ts.map +1 -0
  19. package/account/components/Account/Account.js +38 -9
  20. package/account/components/Account/index.d.ts +2 -0
  21. package/account/components/Account/index.d.ts.map +1 -0
  22. package/account/components/Profile/Profile.config.d.ts +20 -0
  23. package/account/components/Profile/Profile.config.d.ts.map +1 -0
  24. package/account/components/Profile/Profile.constraints.d.ts +32 -0
  25. package/account/components/Profile/Profile.constraints.d.ts.map +1 -0
  26. package/account/components/Profile/Profile.d.ts +4 -0
  27. package/account/components/Profile/Profile.d.ts.map +1 -0
  28. package/account/components/Profile/Profile.js +9 -6
  29. package/account/components/Profile/Profile.provider.d.ts +59 -0
  30. package/account/components/Profile/Profile.provider.d.ts.map +1 -0
  31. package/account/components/Profile/ProfileAddressBook.d.ts +15 -0
  32. package/account/components/Profile/ProfileAddressBook.d.ts.map +1 -0
  33. package/account/components/Profile/ProfileAddressBook.js +22 -20
  34. package/account/components/Profile/ProfileAddressCard.d.ts +28 -0
  35. package/account/components/Profile/ProfileAddressCard.d.ts.map +1 -0
  36. package/account/components/Profile/ProfileAddressCard.js +50 -54
  37. package/account/components/Profile/ProfileForm.d.ts +7 -0
  38. package/account/components/Profile/ProfileForm.d.ts.map +1 -0
  39. package/account/components/Profile/ProfileForm.js +29 -27
  40. package/account/components/Profile/ProfileHeader.d.ts +6 -0
  41. package/account/components/Profile/ProfileHeader.d.ts.map +1 -0
  42. package/account/components/Profile/ProfileHeader.js +14 -12
  43. package/account/components/Profile/index.d.ts +2 -0
  44. package/account/components/Profile/index.d.ts.map +1 -0
  45. package/account/components/ProfileContact/ProfileContact.js +23 -20
  46. package/account/components/index.d.ts +2 -0
  47. package/account/components/index.d.ts.map +1 -0
  48. package/account/constants/actions.d.ts +25 -0
  49. package/account/constants/actions.d.ts.map +1 -0
  50. package/account/constants/index.d.ts +4 -0
  51. package/account/constants/index.d.ts.map +1 -0
  52. package/account/constants/pipelines.d.ts +2 -0
  53. package/account/constants/pipelines.d.ts.map +1 -0
  54. package/account/constants/routes.d.ts +7 -0
  55. package/account/constants/routes.d.ts.map +1 -0
  56. package/account/helper/form.d.ts +12 -0
  57. package/account/helper/form.d.ts.map +1 -0
  58. package/account/helper/form.js +2 -1
  59. package/account/index.d.ts +3 -0
  60. package/account/index.d.ts.map +1 -0
  61. package/account/selectors/contacts.d.ts +2 -0
  62. package/account/selectors/contacts.d.ts.map +1 -0
  63. package/account/selectors/customer.d.ts +2 -0
  64. package/account/selectors/customer.d.ts.map +1 -0
  65. package/back-in-stock/components/BackInStockButton/index.js +53 -13
  66. package/back-in-stock/components/Subscriptions/components/List/index.js +17 -14
  67. package/back-in-stock/components/Subscriptions/components/Subscription/index.js +46 -51
  68. package/cart/cart.helpers.js +1 -0
  69. package/cart/components/CartHeaderWide/CartHeaderWide.js +19 -7
  70. package/cart/components/CartItem/CartItemCoupon.js +122 -135
  71. package/cart/components/CartItem/CartItemCouponDelete.js +24 -11
  72. package/cart/components/CartItem/CartItemCouponFreeShipping.js +1 -1
  73. package/cart/components/CartItem/CartItemCouponLayout.js +44 -18
  74. package/cart/components/CartItem/CartItemCouponPrice.js +14 -4
  75. package/cart/components/CartItem/CartItemCouponTitle.js +15 -4
  76. package/cart/components/CartItem/CartItemProduct.js +41 -12
  77. package/cart/components/CartItem/CartItemProductLayout.js +97 -17
  78. package/cart/components/CartItem/CartItemProductLayoutWide.js +144 -26
  79. package/cart/components/CartItem/CartItemProductLayoutWideFulfillmentLabel.js +14 -4
  80. package/cart/components/CartItem/CartItemProductLayoutWideOrderDetails.js +66 -9
  81. package/cart/components/CartItem/CartItemProductLayoutWideRemoveItem.js +20 -4
  82. package/cart/components/CartItem/CartItemProductOrderDetails.js +43 -15
  83. package/cart/components/CartItem/CartItemProductPriceCaption.js +15 -4
  84. package/cart/components/CartItem/CartItemProductPriceList.js +18 -15
  85. package/cart/components/CartItem/CartItemProductPriceListPromotion.js +29 -27
  86. package/cart/components/CartItem/CartItemProductTitle.js +34 -8
  87. package/cart/components/CartItem/CartItemQuantityPicker.js +99 -133
  88. package/cart/components/CartItem/CartItemSubstitution.js +15 -4
  89. package/cart/components/CartItems/CartItemCard.js +12 -3
  90. package/cart/components/CartItems/CartItemCardReservation.js +11 -3
  91. package/cart/components/CartItems/CartItemCardReservationAccordion.js +47 -27
  92. package/cart/components/CartItems/CartItemCardReservationLabel.js +43 -8
  93. package/cart/components/CartItems/CartItemCardReservationLabelChangeStore.js +20 -4
  94. package/cart/components/CartItems/CartItemGroupReservation.js +21 -5
  95. package/cart/components/CartItems/CartItemGroupReservationLabel.js +24 -6
  96. package/cart/components/CartItems/CartItemGroupShipping.js +37 -16
  97. package/cart/components/CartItems/CartItems.js +28 -6
  98. package/cart/components/CartItems/CartItemsHeaderWide.js +140 -42
  99. package/cart/components/CartItems/CartItemsSubstitution.js +1 -1
  100. package/cart/components/CartSummaryWide/CartSummaryWide.js +79 -37
  101. package/cart/components/CartSummaryWide/CartSummaryWideCheckoutButton.js +31 -7
  102. package/cart/components/PaymentBar/PaymentBarAppliedPromotions.js +14 -4
  103. package/cart/components/PaymentBar/PaymentBarCheckoutButton.js +22 -3
  104. package/cart/components/PaymentBar/PaymentBarContent.js +45 -7
  105. package/cart/components/PaymentBar/PaymentBarDiscounts.js +14 -3
  106. package/cart/components/PaymentBar/PaymentBarGrandTotal.js +14 -3
  107. package/cart/components/PaymentBar/PaymentBarPromotionCouponMessages.js +36 -30
  108. package/cart/components/PaymentBar/PaymentBarPromotionCoupons.js +21 -15
  109. package/cart/components/PaymentBar/PaymentBarPromotionalText.js +36 -35
  110. package/cart/components/PaymentBar/PaymentBarReserveButton.js +22 -3
  111. package/cart/components/PaymentBar/PaymentBarShippingCost.js +14 -3
  112. package/cart/components/PaymentBar/PaymentBarSubTotal.js +14 -3
  113. package/cart/components/PaymentBar/PaymentBarTax.js +14 -3
  114. package/cart/components/Substitution/index.js +55 -22
  115. package/cart/components/SupplementalContent/SupplementalContent.js +33 -4
  116. package/category/components/CategoryList/index.js +28 -9
  117. package/checkout/actions/errorCheckout.js +1 -0
  118. package/checkout/components/AddressBook/AddressList.js +22 -25
  119. package/checkout/components/AddressBookContact/AddressBookContact.js +10 -8
  120. package/checkout/components/Checkout/Checkout.js +15 -13
  121. package/checkout/components/Checkout/CheckoutActions.js +10 -7
  122. package/checkout/components/Checkout/CheckoutAddress.js +18 -19
  123. package/checkout/components/Checkout/CheckoutHeader.js +31 -26
  124. package/checkout/components/Checkout/CheckoutPickupContactForm.js +17 -26
  125. package/checkout/components/Checkout/CheckoutSection.js +103 -102
  126. package/checkout/components/Checkout/CheckoutSectionInfo.js +23 -21
  127. package/checkout/components/Checkout/CheckoutSectionMessages.js +26 -27
  128. package/checkout/components/Checkout/CheckoutSummary.js +19 -16
  129. package/checkout/components/CheckoutConfirmation/CheckoutConfirmation.js +56 -63
  130. package/checkout/components/CheckoutConfirmation/CheckoutConfirmationOrderSummary.js +12 -9
  131. package/checkout/components/CheckoutConfirmation/CheckoutConfirmationSection.js +55 -48
  132. package/checkout/components/GuestCheckout/GuestCheckout.js +44 -40
  133. package/checkout/components/GuestCheckout/GuestCheckoutOptIn.config.js +1 -1
  134. package/checkout/components/GuestCheckout/GuestCheckoutOptIn.js +15 -19
  135. package/checkout/components/GuestCheckout/GuestCheckoutPickup.js +13 -14
  136. package/checkout/components/GuestCheckout/GuestCheckoutPickupNotes.config.js +1 -1
  137. package/checkout/components/GuestCheckout/GuestCheckoutPickupNotes.js +13 -10
  138. package/checkout/components/PaymentMethodButton/PaymentMethodButton.js +16 -11
  139. package/checkout/components/ResponsiveBackButton/ResponsiveBackButton.js +30 -5
  140. package/checkout/components/ShippingMethods/ShippingMethod.js +23 -24
  141. package/checkout/components/ShippingMethods/ShippingMethods.js +57 -55
  142. package/checkout/components/SupplementalContent/SupplementalContent.js +33 -4
  143. package/checkout/helpers/index.js +2 -1
  144. package/checkout/paymentMethods/index.js +17 -18
  145. package/checkout/paymentMethods/paypal/PaypalButtonApp.js +9 -6
  146. package/checkout/paymentMethods/paypal/PaypalButtonWeb.js +9 -6
  147. package/checkout/paymentMethods/paypal/PaypalPayButton.js +10 -7
  148. package/checkout/paymentMethods/stripe/StripeButton.js +10 -7
  149. package/checkout/paymentMethods/stripe/StripeCreditCard.js +21 -19
  150. package/checkout/selectors/order.js +1 -0
  151. package/components/BrandingColorBanner/BrandingColorBanner.d.ts +7 -0
  152. package/components/BrandingColorBanner/BrandingColorBanner.d.ts.map +1 -0
  153. package/components/BrandingColorBanner/BrandingColorBanner.js +21 -15
  154. package/components/BrandingColorBanner/index.d.ts +2 -0
  155. package/components/BrandingColorBanner/index.d.ts.map +1 -0
  156. package/components/ChipLayout/index.d.ts +33 -0
  157. package/components/ChipLayout/index.d.ts.map +1 -0
  158. package/components/ChipLayout/index.js +109 -124
  159. package/components/ConditionalWrapper/ConditionalWrapper.d.ts +25 -0
  160. package/components/ConditionalWrapper/ConditionalWrapper.d.ts.map +1 -0
  161. package/components/ConditionalWrapper/index.d.ts +2 -0
  162. package/components/ConditionalWrapper/index.d.ts.map +1 -0
  163. package/components/ConnectedReactPortal/index.d.ts +27 -0
  164. package/components/ConnectedReactPortal/index.d.ts.map +1 -0
  165. package/components/Footer/Footer.d.ts +18 -0
  166. package/components/Footer/Footer.d.ts.map +1 -0
  167. package/components/Footer/Footer.js +16 -5
  168. package/components/Footer/constants.d.ts +3 -0
  169. package/components/Footer/constants.d.ts.map +1 -0
  170. package/components/Footer/helpers.d.ts +5 -0
  171. package/components/Footer/helpers.d.ts.map +1 -0
  172. package/components/Footer/helpers.js +1 -0
  173. package/components/Footer/index.d.ts +2 -0
  174. package/components/Footer/index.d.ts.map +1 -0
  175. package/components/Form/Builder/Builder.constants.d.ts +14 -0
  176. package/components/Form/Builder/Builder.constants.d.ts.map +1 -0
  177. package/components/Form/Builder/Builder.d.ts +562 -0
  178. package/components/Form/Builder/Builder.d.ts.map +1 -0
  179. package/components/Form/Builder/ElementCheckbox.d.ts +21 -0
  180. package/components/Form/Builder/ElementCheckbox.d.ts.map +1 -0
  181. package/components/Form/Builder/ElementMultiSelect.d.ts +21 -0
  182. package/components/Form/Builder/ElementMultiSelect.d.ts.map +1 -0
  183. package/components/Form/Builder/ElementPhoneNumber.d.ts +9 -0
  184. package/components/Form/Builder/ElementPhoneNumber.d.ts.map +1 -0
  185. package/components/Form/Builder/ElementPhoneNumber.js +23 -36
  186. package/components/Form/Builder/ElementRadio.d.ts +21 -0
  187. package/components/Form/Builder/ElementRadio.d.ts.map +1 -0
  188. package/components/Form/Builder/ElementSelect.d.ts +21 -0
  189. package/components/Form/Builder/ElementSelect.d.ts.map +1 -0
  190. package/components/Form/Builder/ElementText.d.ts +21 -0
  191. package/components/Form/Builder/ElementText.d.ts.map +1 -0
  192. package/components/Form/Builder/FormHelper.d.ts +23 -0
  193. package/components/Form/Builder/FormHelper.d.ts.map +1 -0
  194. package/components/Form/Builder/classes/ActionListener.constants.d.ts +21 -0
  195. package/components/Form/Builder/classes/ActionListener.constants.d.ts.map +1 -0
  196. package/components/Form/Builder/classes/ActionListener.d.ts +99 -0
  197. package/components/Form/Builder/classes/ActionListener.d.ts.map +1 -0
  198. package/components/Form/Builder/classes/ActionListener.js +1 -0
  199. package/components/Form/Builder/helpers/buildCountryList.d.ts +3 -0
  200. package/components/Form/Builder/helpers/buildCountryList.d.ts.map +1 -0
  201. package/components/Form/Builder/helpers/buildFormDefaults.d.ts +3 -0
  202. package/components/Form/Builder/helpers/buildFormDefaults.d.ts.map +1 -0
  203. package/components/Form/Builder/helpers/buildFormElements.d.ts +16 -0
  204. package/components/Form/Builder/helpers/buildFormElements.d.ts.map +1 -0
  205. package/components/Form/Builder/helpers/buildProvinceList.d.ts +3 -0
  206. package/components/Form/Builder/helpers/buildProvinceList.d.ts.map +1 -0
  207. package/components/Form/Builder/helpers/buildValidationErrorList.d.ts +6 -0
  208. package/components/Form/Builder/helpers/buildValidationErrorList.d.ts.map +1 -0
  209. package/components/Form/Builder/helpers/common.d.ts +2 -0
  210. package/components/Form/Builder/helpers/common.d.ts.map +1 -0
  211. package/components/Form/Builder/helpers/iso-3166-2.d.ts +6803 -0
  212. package/components/Form/Builder/helpers/iso-3166-2.d.ts.map +1 -0
  213. package/components/Form/Builder/index.d.ts +2 -0
  214. package/components/Form/Builder/index.d.ts.map +1 -0
  215. package/components/Form/Builder/stylePresets.d.ts +22 -0
  216. package/components/Form/Builder/stylePresets.d.ts.map +1 -0
  217. package/components/Form/Builder/stylePresets.js +12 -6
  218. package/components/Form/Form.d.ts +39 -0
  219. package/components/Form/Form.d.ts.map +1 -0
  220. package/components/Form/index.d.ts +4 -0
  221. package/components/Form/index.d.ts.map +1 -0
  222. package/components/IntersectionVisibility/index.d.ts +61 -0
  223. package/components/IntersectionVisibility/index.d.ts.map +1 -0
  224. package/components/Logo/connector.d.ts +3 -0
  225. package/components/Logo/connector.d.ts.map +1 -0
  226. package/components/Logo/index.d.ts +26 -0
  227. package/components/Logo/index.d.ts.map +1 -0
  228. package/components/Logo/index.js +27 -6
  229. package/components/Menu/components/Item/index.d.ts +24 -0
  230. package/components/Menu/components/Item/index.d.ts.map +1 -0
  231. package/components/Menu/components/Item/index.js +30 -3
  232. package/components/Menu/components/Position/index.d.ts +27 -0
  233. package/components/Menu/components/Position/index.d.ts.map +1 -0
  234. package/components/Menu/components/Position/index.js +41 -56
  235. package/components/Menu/index.d.ts +29 -0
  236. package/components/Menu/index.d.ts.map +1 -0
  237. package/components/Menu/index.js +76 -70
  238. package/components/MessageBar/MessageBar.d.ts +31 -0
  239. package/components/MessageBar/MessageBar.d.ts.map +1 -0
  240. package/components/MessageBar/MessageBar.js +147 -8
  241. package/components/MessageBar/index.d.ts +2 -0
  242. package/components/MessageBar/index.d.ts.map +1 -0
  243. package/components/NavigationHandler/connector.d.ts +3 -0
  244. package/components/NavigationHandler/connector.d.ts.map +1 -0
  245. package/components/NavigationHandler/index.d.ts +50 -0
  246. package/components/NavigationHandler/index.d.ts.map +1 -0
  247. package/components/NullComponent/index.d.ts +9 -0
  248. package/components/NullComponent/index.d.ts.map +1 -0
  249. package/components/Picker/components/Button/index.d.ts +20 -0
  250. package/components/Picker/components/Button/index.d.ts.map +1 -0
  251. package/components/Picker/components/Button/index.js +35 -14
  252. package/components/Picker/components/List/index.d.ts +26 -0
  253. package/components/Picker/components/List/index.d.ts.map +1 -0
  254. package/components/Picker/components/List/index.js +25 -7
  255. package/components/Picker/components/Modal/index.d.ts +16 -0
  256. package/components/Picker/components/Modal/index.d.ts.map +1 -0
  257. package/components/Picker/components/Modal/index.js +122 -71
  258. package/components/Picker/index.d.ts +3 -0
  259. package/components/Picker/index.d.ts.map +1 -0
  260. package/components/Picker/index.js +2 -1
  261. package/components/PickerUtilize/components/Button/index.d.ts +23 -0
  262. package/components/PickerUtilize/components/Button/index.d.ts.map +1 -0
  263. package/components/PickerUtilize/components/Button/index.js +58 -14
  264. package/components/PickerUtilize/index.d.ts +3 -0
  265. package/components/PickerUtilize/index.d.ts.map +1 -0
  266. package/components/PickerUtilize/index.js +73 -85
  267. package/components/PickerUtilize/spec.js +0 -1
  268. package/components/QuantityInput/QuantityInput.d.ts +8 -0
  269. package/components/QuantityInput/QuantityInput.d.ts.map +1 -0
  270. package/components/QuantityInput/helper.d.ts +3 -0
  271. package/components/QuantityInput/helper.d.ts.map +1 -0
  272. package/components/QuantityInput/helper.js +1 -1
  273. package/components/QuantityInput/index.d.ts +2 -0
  274. package/components/QuantityInput/index.d.ts.map +1 -0
  275. package/components/QuantityLabel/QuantityLabel.d.ts +24 -0
  276. package/components/QuantityLabel/QuantityLabel.d.ts.map +1 -0
  277. package/components/QuantityLabel/index.d.ts +2 -0
  278. package/components/QuantityLabel/index.d.ts.map +1 -0
  279. package/components/Radio/Radio.d.ts +36 -0
  280. package/components/Radio/Radio.d.ts.map +1 -0
  281. package/components/Radio/Radio.js +30 -27
  282. package/components/Radio/index.d.ts +2 -0
  283. package/components/Radio/index.d.ts.map +1 -0
  284. package/components/RadioCard/RadioCard.d.ts +62 -0
  285. package/components/RadioCard/RadioCard.d.ts.map +1 -0
  286. package/components/RadioCard/RadioCard.js +32 -27
  287. package/components/RadioCard/index.d.ts +2 -0
  288. package/components/RadioCard/index.d.ts.map +1 -0
  289. package/components/RadioGroup/RadioGroup.context.d.ts +4 -0
  290. package/components/RadioGroup/RadioGroup.context.d.ts.map +1 -0
  291. package/components/RadioGroup/RadioGroup.d.ts +36 -0
  292. package/components/RadioGroup/RadioGroup.d.ts.map +1 -0
  293. package/components/RadioGroup/RadioGroup.js +11 -8
  294. package/components/RadioGroup/index.d.ts +3 -0
  295. package/components/RadioGroup/index.d.ts.map +1 -0
  296. package/components/RadioGroup/useRadioGroup.d.ts +6 -0
  297. package/components/RadioGroup/useRadioGroup.d.ts.map +1 -0
  298. package/components/RangeSlider/components/Handle/index.d.ts +39 -0
  299. package/components/RangeSlider/components/Handle/index.d.ts.map +1 -0
  300. package/components/RangeSlider/components/Handle/index.js +23 -4
  301. package/components/RangeSlider/helper.d.ts +7 -0
  302. package/components/RangeSlider/helper.d.ts.map +1 -0
  303. package/components/RangeSlider/index.d.ts +35 -0
  304. package/components/RangeSlider/index.d.ts.map +1 -0
  305. package/components/RangeSlider/index.js +243 -242
  306. package/components/RangeSlider/spec.js +2 -5
  307. package/components/ResponsiveContainer/ResponsiveContainer.d.ts +33 -0
  308. package/components/ResponsiveContainer/ResponsiveContainer.d.ts.map +1 -0
  309. package/components/ResponsiveContainer/breakpoints.d.ts +8 -0
  310. package/components/ResponsiveContainer/breakpoints.d.ts.map +1 -0
  311. package/components/ResponsiveContainer/condition.d.ts +2 -0
  312. package/components/ResponsiveContainer/condition.d.ts.map +1 -0
  313. package/components/ResponsiveContainer/hooks.d.ts +9 -0
  314. package/components/ResponsiveContainer/hooks.d.ts.map +1 -0
  315. package/components/ResponsiveContainer/index.d.ts +2 -0
  316. package/components/ResponsiveContainer/index.d.ts.map +1 -0
  317. package/components/ResponsiveContainer/listener.d.ts +2 -0
  318. package/components/ResponsiveContainer/listener.d.ts.map +1 -0
  319. package/components/ResponsiveContainer/mediaQuery.d.ts +2 -0
  320. package/components/ResponsiveContainer/mediaQuery.d.ts.map +1 -0
  321. package/components/ScrollHeader/index.d.ts +16 -0
  322. package/components/ScrollHeader/index.d.ts.map +1 -0
  323. package/components/ScrollHeader/index.js +35 -7
  324. package/components/SheetDrawer/index.d.ts +7 -0
  325. package/components/SheetDrawer/index.d.ts.map +1 -0
  326. package/components/SheetList/components/Item/index.d.ts +3 -0
  327. package/components/SheetList/components/Item/index.d.ts.map +1 -0
  328. package/components/SheetList/components/Item/index.js +138 -104
  329. package/components/SheetList/components/Item/spec.js +5 -19
  330. package/components/SheetList/index.d.ts +30 -0
  331. package/components/SheetList/index.d.ts.map +1 -0
  332. package/components/SheetList/index.js +77 -59
  333. package/components/SheetList/spec.js +1 -2
  334. package/components/SideNavigation/SideNavigation.d.ts +31 -0
  335. package/components/SideNavigation/SideNavigation.d.ts.map +1 -0
  336. package/components/SideNavigation/SideNavigation.hooks.d.ts +2 -0
  337. package/components/SideNavigation/SideNavigation.hooks.d.ts.map +1 -0
  338. package/components/SideNavigation/SideNavigationCategories.connector.d.ts +3 -0
  339. package/components/SideNavigation/SideNavigationCategories.connector.d.ts.map +1 -0
  340. package/components/SideNavigation/SideNavigationCategories.d.ts +4 -0
  341. package/components/SideNavigation/SideNavigationCategories.d.ts.map +1 -0
  342. package/components/SideNavigation/SideNavigationCategories.js +31 -6
  343. package/components/SideNavigation/SideNavigationCategoriesItem.connector.d.ts +3 -0
  344. package/components/SideNavigation/SideNavigationCategoriesItem.connector.d.ts.map +1 -0
  345. package/components/SideNavigation/SideNavigationCategoriesItem.d.ts +4 -0
  346. package/components/SideNavigation/SideNavigationCategoriesItem.d.ts.map +1 -0
  347. package/components/SideNavigation/SideNavigationCategoriesItem.js +38 -7
  348. package/components/SideNavigation/SideNavigationCategoriesItemChildren.d.ts +22 -0
  349. package/components/SideNavigation/SideNavigationCategoriesItemChildren.d.ts.map +1 -0
  350. package/components/SideNavigation/SideNavigationContent.d.ts +24 -0
  351. package/components/SideNavigation/SideNavigationContent.d.ts.map +1 -0
  352. package/components/SideNavigation/SideNavigationContent.js +11 -3
  353. package/components/SideNavigation/SideNavigationItem.d.ts +38 -0
  354. package/components/SideNavigation/SideNavigationItem.d.ts.map +1 -0
  355. package/components/SideNavigation/SideNavigationItem.js +58 -11
  356. package/components/SideNavigation/SideNavigationLinks.d.ts +7 -0
  357. package/components/SideNavigation/SideNavigationLinks.d.ts.map +1 -0
  358. package/components/SideNavigation/SideNavigationLinks.js +1 -1
  359. package/components/SideNavigation/SideNavigationLinksLegal.connector.d.ts +3 -0
  360. package/components/SideNavigation/SideNavigationLinksLegal.connector.d.ts.map +1 -0
  361. package/components/SideNavigation/SideNavigationLinksLegal.d.ts +4 -0
  362. package/components/SideNavigation/SideNavigationLinksLegal.d.ts.map +1 -0
  363. package/components/SideNavigation/SideNavigationLinksQuicklinks.connector.d.ts +3 -0
  364. package/components/SideNavigation/SideNavigationLinksQuicklinks.connector.d.ts.map +1 -0
  365. package/components/SideNavigation/SideNavigationLinksQuicklinks.d.ts +4 -0
  366. package/components/SideNavigation/SideNavigationLinksQuicklinks.d.ts.map +1 -0
  367. package/components/SideNavigation/SideNavigationNestedItem.d.ts +35 -0
  368. package/components/SideNavigation/SideNavigationNestedItem.d.ts.map +1 -0
  369. package/components/SideNavigation/SideNavigationNestedItem.js +30 -6
  370. package/components/SideNavigation/SideNavigationProvider.connector.d.ts +3 -0
  371. package/components/SideNavigation/SideNavigationProvider.connector.d.ts.map +1 -0
  372. package/components/SideNavigation/SideNavigationProvider.context.d.ts +3 -0
  373. package/components/SideNavigation/SideNavigationProvider.context.d.ts.map +1 -0
  374. package/components/SideNavigation/SideNavigationProvider.d.ts +4 -0
  375. package/components/SideNavigation/SideNavigationProvider.d.ts.map +1 -0
  376. package/components/SideNavigation/SideNavigationProvider.js +1 -0
  377. package/components/SideNavigation/index.d.ts +2 -0
  378. package/components/SideNavigation/index.d.ts.map +1 -0
  379. package/components/SideNavigation/selectors.d.ts +4 -0
  380. package/components/SideNavigation/selectors.d.ts.map +1 -0
  381. package/components/SnackBarContainer/index.d.ts +18 -0
  382. package/components/SnackBarContainer/index.d.ts.map +1 -0
  383. package/components/Switch/index.d.ts +40 -0
  384. package/components/Switch/index.d.ts.map +1 -0
  385. package/components/Switch/index.js +50 -4
  386. package/components/Tabs/TabContext.d.ts +15 -0
  387. package/components/Tabs/TabContext.d.ts.map +1 -0
  388. package/components/Tabs/components/Tab.d.ts +31 -0
  389. package/components/Tabs/components/Tab.d.ts.map +1 -0
  390. package/components/Tabs/components/Tab.js +40 -5
  391. package/components/Tabs/components/TabIndicator.d.ts +18 -0
  392. package/components/Tabs/components/TabIndicator.d.ts.map +1 -0
  393. package/components/Tabs/components/TabIndicator.js +22 -7
  394. package/components/Tabs/components/TabPanel.d.ts +22 -0
  395. package/components/Tabs/components/TabPanel.d.ts.map +1 -0
  396. package/components/Tabs/components/Tabs.d.ts +20 -0
  397. package/components/Tabs/components/Tabs.d.ts.map +1 -0
  398. package/components/Tabs/components/Tabs.js +25 -6
  399. package/components/Tabs/debounce.d.ts +9 -0
  400. package/components/Tabs/debounce.d.ts.map +1 -0
  401. package/components/Tabs/index.d.ts +4 -0
  402. package/components/Tabs/index.d.ts.map +1 -0
  403. package/components/Tabs/ownerDocument.d.ts +6 -0
  404. package/components/Tabs/ownerDocument.d.ts.map +1 -0
  405. package/components/Tabs/ownerWindow.d.ts +6 -0
  406. package/components/Tabs/ownerWindow.d.ts.map +1 -0
  407. package/components/Tabs/useEventCallback.d.ts +8 -0
  408. package/components/Tabs/useEventCallback.d.ts.map +1 -0
  409. package/components/TextLink/TextLink.d.ts +18 -0
  410. package/components/TextLink/TextLink.d.ts.map +1 -0
  411. package/components/TextLink/TextLink.js +26 -10
  412. package/components/TimeBoundary/index.d.ts +55 -0
  413. package/components/TimeBoundary/index.d.ts.map +1 -0
  414. package/components/TimeBoundary/index.js +1 -1
  415. package/components/Toggle/index.d.ts +28 -0
  416. package/components/Toggle/index.d.ts.map +1 -0
  417. package/components/Toggle/index.js +86 -24
  418. package/components/Typography/Typography.js +16 -8
  419. package/components/VideoPlayer/index.d.ts +52 -0
  420. package/components/VideoPlayer/index.d.ts.map +1 -0
  421. package/components/View/components/Above/index.d.ts +6 -0
  422. package/components/View/components/Above/index.d.ts.map +1 -0
  423. package/components/View/components/Below/index.d.ts +6 -0
  424. package/components/View/components/Below/index.d.ts.map +1 -0
  425. package/components/View/components/Content/components/ParallaxProvider/index.d.ts +21 -0
  426. package/components/View/components/Content/components/ParallaxProvider/index.d.ts.map +1 -0
  427. package/components/View/components/Content/components/ParallaxProvider/index.js +2 -2
  428. package/components/View/components/Content/index.d.ts +3 -0
  429. package/components/View/components/Content/index.d.ts.map +1 -0
  430. package/components/View/components/Content/index.js +171 -173
  431. package/components/View/context.d.ts +16 -0
  432. package/components/View/context.d.ts.map +1 -0
  433. package/components/View/index.d.ts +8 -0
  434. package/components/View/index.d.ts.map +1 -0
  435. package/components/View/index.js +19 -2
  436. package/components/View/provider.d.ts +82 -0
  437. package/components/View/provider.d.ts.map +1 -0
  438. package/components/index.d.ts +186 -0
  439. package/components/index.d.ts.map +1 -0
  440. package/components/v2/Button/Button.d.ts +74 -0
  441. package/components/v2/Button/Button.d.ts.map +1 -0
  442. package/components/v2/Button/Button.js +314 -0
  443. package/components/v2/Button/index.d.ts +3 -0
  444. package/components/v2/Button/index.d.ts.map +1 -0
  445. package/components/v2/Button/index.js +1 -0
  446. package/components/v2/ButtonBase/ButtonBase.d.ts +40 -0
  447. package/components/v2/ButtonBase/ButtonBase.d.ts.map +1 -0
  448. package/components/v2/ButtonBase/ButtonBase.js +117 -0
  449. package/components/v2/ButtonBase/Ripple.d.ts +10 -0
  450. package/components/v2/ButtonBase/Ripple.d.ts.map +1 -0
  451. package/components/v2/ButtonBase/Ripple.js +118 -0
  452. package/components/v2/ButtonBase/constants.d.ts +4 -0
  453. package/components/v2/ButtonBase/constants.d.ts.map +1 -0
  454. package/components/v2/ButtonBase/constants.js +3 -0
  455. package/components/v2/ButtonBase/hooks.d.ts +23 -0
  456. package/components/v2/ButtonBase/hooks.d.ts.map +1 -0
  457. package/components/v2/ButtonBase/hooks.js +56 -0
  458. package/components/v2/ButtonBase/index.d.ts +3 -0
  459. package/components/v2/ButtonBase/index.d.ts.map +1 -0
  460. package/components/v2/ButtonBase/index.js +1 -0
  461. package/components/v2/ButtonGroup/ButtonGroup.d.ts +66 -0
  462. package/components/v2/ButtonGroup/ButtonGroup.d.ts.map +1 -0
  463. package/components/v2/ButtonGroup/ButtonGroup.js +195 -0
  464. package/components/v2/ButtonGroup/index.d.ts +3 -0
  465. package/components/v2/ButtonGroup/index.d.ts.map +1 -0
  466. package/components/v2/ButtonGroup/index.js +1 -0
  467. package/components/v2/CircularProgress/CircularProgress.d.ts +61 -0
  468. package/components/v2/CircularProgress/CircularProgress.d.ts.map +1 -0
  469. package/components/v2/CircularProgress/CircularProgress.js +139 -0
  470. package/components/v2/CircularProgress/index.d.ts +3 -0
  471. package/components/v2/CircularProgress/index.d.ts.map +1 -0
  472. package/components/v2/CircularProgress/index.js +1 -0
  473. package/components/v2/index.d.ts +5 -0
  474. package/components/v2/index.d.ts.map +1 -0
  475. package/components/v2/index.js +4 -0
  476. package/core/action-creators/app.d.ts +2 -0
  477. package/core/action-creators/app.d.ts.map +1 -0
  478. package/core/action-creators/appPermissions.d.ts +6 -0
  479. package/core/action-creators/appPermissions.d.ts.map +1 -0
  480. package/core/action-creators/index.d.ts +6 -0
  481. package/core/action-creators/index.d.ts.map +1 -0
  482. package/core/action-creators/merchantSettings.d.ts +2 -0
  483. package/core/action-creators/merchantSettings.d.ts.map +1 -0
  484. package/core/action-creators/optIns.d.ts +23 -0
  485. package/core/action-creators/optIns.d.ts.map +1 -0
  486. package/core/action-creators/shopSettings.d.ts +3 -0
  487. package/core/action-creators/shopSettings.d.ts.map +1 -0
  488. package/core/actions/grantPermissions.js +1 -0
  489. package/core/actions/index.d.ts +29 -0
  490. package/core/actions/index.d.ts.map +1 -0
  491. package/core/actions/requestAppPermission.d.ts +19 -0
  492. package/core/actions/requestAppPermission.d.ts.map +1 -0
  493. package/core/actions/requestAppPermissionStatus.d.ts +16 -0
  494. package/core/actions/requestAppPermissionStatus.d.ts.map +1 -0
  495. package/core/actions/updateStatusBarBackground.d.ts +8 -0
  496. package/core/actions/updateStatusBarBackground.d.ts.map +1 -0
  497. package/core/classes/GeolocationRequest.d.ts +29 -0
  498. package/core/classes/GeolocationRequest.d.ts.map +1 -0
  499. package/core/classes/GeolocationRequestApp.d.ts +25 -0
  500. package/core/classes/GeolocationRequestApp.d.ts.map +1 -0
  501. package/core/classes/GeolocationRequestBrowser.d.ts +15 -0
  502. package/core/classes/GeolocationRequestBrowser.d.ts.map +1 -0
  503. package/core/classes/index.d.ts +16 -0
  504. package/core/classes/index.d.ts.map +1 -0
  505. package/core/collections/AppInitialization.d.ts +67 -0
  506. package/core/collections/AppInitialization.d.ts.map +1 -0
  507. package/core/collections/index.d.ts +10 -0
  508. package/core/collections/index.d.ts.map +1 -0
  509. package/core/commands/analyticsSetConsent.d.ts +28 -0
  510. package/core/commands/analyticsSetConsent.d.ts.map +1 -0
  511. package/core/commands/index.d.ts +29 -0
  512. package/core/commands/index.d.ts.map +1 -0
  513. package/core/config/ThemeConfigResolver.d.ts +57 -0
  514. package/core/config/ThemeConfigResolver.d.ts.map +1 -0
  515. package/core/config/config.action-creators.d.ts +4 -0
  516. package/core/config/config.action-creators.d.ts.map +1 -0
  517. package/core/config/config.actions.d.ts +2 -0
  518. package/core/config/config.actions.d.ts.map +1 -0
  519. package/core/config/config.constants.d.ts +6 -0
  520. package/core/config/config.constants.d.ts.map +1 -0
  521. package/core/config/config.reducers.d.ts +8 -0
  522. package/core/config/config.reducers.d.ts.map +1 -0
  523. package/core/config/config.selectors.d.ts +30 -0
  524. package/core/config/config.selectors.d.ts.map +1 -0
  525. package/core/config/config.streams.d.ts +7 -0
  526. package/core/config/config.streams.d.ts.map +1 -0
  527. package/core/config/config.subscriptions.d.ts +7 -0
  528. package/core/config/config.subscriptions.d.ts.map +1 -0
  529. package/core/config/getPageConfig.d.ts +9 -0
  530. package/core/config/getPageConfig.d.ts.map +1 -0
  531. package/core/config/getPageSettings.d.ts +15 -0
  532. package/core/config/getPageSettings.d.ts.map +1 -0
  533. package/core/config/getThemeAssets.d.ts +8 -0
  534. package/core/config/getThemeAssets.d.ts.map +1 -0
  535. package/core/config/getThemeColors.d.ts +8 -0
  536. package/core/config/getThemeColors.d.ts.map +1 -0
  537. package/core/config/getThemeConfig.d.ts +7 -0
  538. package/core/config/getThemeConfig.d.ts.map +1 -0
  539. package/core/config/getThemeSettings.d.ts +8 -0
  540. package/core/config/getThemeSettings.d.ts.map +1 -0
  541. package/core/config/getThemeStyles.d.ts +8 -0
  542. package/core/config/getThemeStyles.d.ts.map +1 -0
  543. package/core/config/getWidgetConfig.d.ts +14 -0
  544. package/core/config/getWidgetConfig.d.ts.map +1 -0
  545. package/core/config/getWidgetSettings.d.ts +16 -0
  546. package/core/config/getWidgetSettings.d.ts.map +1 -0
  547. package/core/config/index.d.ts +17 -0
  548. package/core/config/index.d.ts.map +1 -0
  549. package/core/config/isBeta.d.ts +6 -0
  550. package/core/config/isBeta.d.ts.map +1 -0
  551. package/core/constants/actionTypes.d.ts +3 -0
  552. package/core/constants/actionTypes.d.ts.map +1 -0
  553. package/core/constants/appFeatures.d.ts +4 -0
  554. package/core/constants/appFeatures.d.ts.map +1 -0
  555. package/core/constants/deviceTypes.d.ts +3 -0
  556. package/core/constants/deviceTypes.d.ts.map +1 -0
  557. package/core/constants/geolocationRequest.d.ts +6 -0
  558. package/core/constants/geolocationRequest.d.ts.map +1 -0
  559. package/core/constants/index.d.ts +61 -0
  560. package/core/constants/index.d.ts.map +1 -0
  561. package/core/constants/merchantSettings.d.ts +12 -0
  562. package/core/constants/merchantSettings.d.ts.map +1 -0
  563. package/core/constants/optIns.d.ts +5 -0
  564. package/core/constants/optIns.d.ts.map +1 -0
  565. package/core/constants/pipelines.d.ts +4 -0
  566. package/core/constants/pipelines.d.ts.map +1 -0
  567. package/core/constants/shopSettings.d.ts +28 -0
  568. package/core/constants/shopSettings.d.ts.map +1 -0
  569. package/core/contexts/AppContext.d.ts +4 -0
  570. package/core/contexts/AppContext.d.ts.map +1 -0
  571. package/core/contexts/index.d.ts +4 -0
  572. package/core/contexts/index.d.ts.map +1 -0
  573. package/core/events/index.d.ts +2 -0
  574. package/core/events/index.d.ts.map +1 -0
  575. package/core/helpers/androidNavigationBar.d.ts +9 -0
  576. package/core/helpers/androidNavigationBar.d.ts.map +1 -0
  577. package/core/helpers/appFeatures.d.ts +4 -0
  578. package/core/helpers/appFeatures.d.ts.map +1 -0
  579. package/core/helpers/appFeatures.js +1 -0
  580. package/core/helpers/appPermissions.d.ts +2 -0
  581. package/core/helpers/appPermissions.d.ts.map +1 -0
  582. package/core/helpers/appPermissions.js +1 -0
  583. package/core/helpers/baseUrl.d.ts +2 -0
  584. package/core/helpers/baseUrl.d.ts.map +1 -0
  585. package/core/helpers/bridge.d.ts +6 -0
  586. package/core/helpers/bridge.d.ts.map +1 -0
  587. package/core/helpers/bridge.js +1 -0
  588. package/core/helpers/deviceType.d.ts +2 -0
  589. package/core/helpers/deviceType.d.ts.map +1 -0
  590. package/core/helpers/environment.d.ts +2 -0
  591. package/core/helpers/environment.d.ts.map +1 -0
  592. package/core/helpers/errorBehavior.d.ts +43 -0
  593. package/core/helpers/errorBehavior.d.ts.map +1 -0
  594. package/core/helpers/featureFlag.d.ts +16 -0
  595. package/core/helpers/featureFlag.d.ts.map +1 -0
  596. package/core/helpers/getFullImageSource.d.ts +5 -0
  597. package/core/helpers/getFullImageSource.d.ts.map +1 -0
  598. package/core/helpers/getFullImageSource.js +1 -0
  599. package/core/helpers/getImageFormat.d.ts +2 -0
  600. package/core/helpers/getImageFormat.d.ts.map +1 -0
  601. package/core/helpers/googleMaps.d.ts +6 -0
  602. package/core/helpers/googleMaps.d.ts.map +1 -0
  603. package/core/helpers/i18n.d.ts +48 -0
  604. package/core/helpers/i18n.d.ts.map +1 -0
  605. package/core/helpers/index.d.ts +49 -0
  606. package/core/helpers/index.d.ts.map +1 -0
  607. package/core/helpers/index.js +1 -1
  608. package/core/helpers/isIOSTheme.d.ts +6 -0
  609. package/core/helpers/isIOSTheme.d.ts.map +1 -0
  610. package/core/helpers/isIOSTheme.js +1 -0
  611. package/core/helpers/isTouchDevice.d.ts +2 -0
  612. package/core/helpers/isTouchDevice.d.ts.map +1 -0
  613. package/core/helpers/nl2br.d.ts +3 -0
  614. package/core/helpers/nl2br.d.ts.map +1 -0
  615. package/core/helpers/scrollContainer.d.ts +3 -0
  616. package/core/helpers/scrollContainer.d.ts.map +1 -0
  617. package/core/helpers/scrollContainer.js +8 -1
  618. package/core/helpers/string.d.ts +3 -0
  619. package/core/helpers/string.d.ts.map +1 -0
  620. package/core/helpers/svgToDataUrl.d.ts +2 -0
  621. package/core/helpers/svgToDataUrl.d.ts.map +1 -0
  622. package/core/helpers/updateLegacyNavigationBar.d.ts +2 -0
  623. package/core/helpers/updateLegacyNavigationBar.d.ts.map +1 -0
  624. package/core/hocs/index.d.ts +11 -0
  625. package/core/hocs/index.d.ts.map +1 -0
  626. package/core/hocs/withApp.d.ts +7 -0
  627. package/core/hocs/withApp.d.ts.map +1 -0
  628. package/core/hocs/withCurrentProduct.d.ts +11 -0
  629. package/core/hocs/withCurrentProduct.d.ts.map +1 -0
  630. package/core/hocs/withForwardedRef.d.ts +12 -0
  631. package/core/hocs/withForwardedRef.d.ts.map +1 -0
  632. package/core/hocs/withNavigation.d.ts +11 -0
  633. package/core/hocs/withNavigation.d.ts.map +1 -0
  634. package/core/hocs/withRoute.d.ts +11 -0
  635. package/core/hocs/withRoute.d.ts.map +1 -0
  636. package/core/hocs/withTheme.d.ts +50 -0
  637. package/core/hocs/withTheme.d.ts.map +1 -0
  638. package/core/hocs/withThemeResources.d.ts +7 -0
  639. package/core/hocs/withThemeResources.d.ts.map +1 -0
  640. package/core/hocs/withWidgetSettings.d.ts +11 -0
  641. package/core/hocs/withWidgetSettings.d.ts.map +1 -0
  642. package/core/hocs/withWidgetStyles.d.ts +9 -0
  643. package/core/hocs/withWidgetStyles.d.ts.map +1 -0
  644. package/core/hooks/events/index.d.ts +5 -0
  645. package/core/hooks/events/index.d.ts.map +1 -0
  646. package/core/hooks/events/usePressHandler.d.ts +53 -0
  647. package/core/hooks/events/usePressHandler.d.ts.map +1 -0
  648. package/core/hooks/html/index.d.ts +2 -0
  649. package/core/hooks/html/index.d.ts.map +1 -0
  650. package/core/hooks/html/useLoadImage.d.ts +7 -0
  651. package/core/hooks/html/useLoadImage.d.ts.map +1 -0
  652. package/core/hooks/index.d.ts +19 -0
  653. package/core/hooks/index.d.ts.map +1 -0
  654. package/core/hooks/layout/index.d.ts +2 -0
  655. package/core/hooks/layout/index.d.ts.map +1 -0
  656. package/core/hooks/useApp.d.ts +6 -0
  657. package/core/hooks/useApp.d.ts.map +1 -0
  658. package/core/hooks/useAsyncMemo.d.ts +12 -0
  659. package/core/hooks/useAsyncMemo.d.ts.map +1 -0
  660. package/core/hooks/useCurrentProduct.d.ts +6 -0
  661. package/core/hooks/useCurrentProduct.d.ts.map +1 -0
  662. package/core/hooks/useLocalStorage.d.ts +24 -8
  663. package/core/hooks/useLocalStorage.d.ts.map +1 -0
  664. package/core/hooks/useLocalStorage.js +58 -13
  665. package/core/hooks/useNavigation.d.ts +6 -0
  666. package/core/hooks/useNavigation.d.ts.map +1 -0
  667. package/core/hooks/usePageConfig.d.ts +8 -0
  668. package/core/hooks/usePageConfig.d.ts.map +1 -0
  669. package/core/hooks/usePageSettings.d.ts +9 -0
  670. package/core/hooks/usePageSettings.d.ts.map +1 -0
  671. package/core/hooks/usePrevious.d.ts +2 -0
  672. package/core/hooks/usePrevious.d.ts.map +1 -0
  673. package/core/hooks/useRoute.d.ts +6 -0
  674. package/core/hooks/useRoute.d.ts.map +1 -0
  675. package/core/hooks/useTheme.d.ts +52 -0
  676. package/core/hooks/useTheme.d.ts.map +1 -0
  677. package/core/hooks/useThemeResources.d.ts +43 -0
  678. package/core/hooks/useThemeResources.d.ts.map +1 -0
  679. package/core/hooks/useWidgetConfig.d.ts +10 -0
  680. package/core/hooks/useWidgetConfig.d.ts.map +1 -0
  681. package/core/hooks/useWidgetSettings.d.ts +10 -0
  682. package/core/hooks/useWidgetSettings.d.ts.map +1 -0
  683. package/core/hooks/useWidgetStyles.d.ts +10 -0
  684. package/core/hooks/useWidgetStyles.d.ts.map +1 -0
  685. package/core/index.d.ts +27 -0
  686. package/core/index.d.ts.map +1 -0
  687. package/core/initialization/index.d.ts +4 -0
  688. package/core/initialization/index.d.ts.map +1 -0
  689. package/core/initialization/index.js +4 -3
  690. package/core/providers/AppProvider.d.ts +46 -0
  691. package/core/providers/AppProvider.d.ts.map +1 -0
  692. package/core/providers/ThemeResourcesProvider.d.ts +56 -0
  693. package/core/providers/ThemeResourcesProvider.d.ts.map +1 -0
  694. package/core/providers/index.d.ts +7 -0
  695. package/core/providers/index.d.ts.map +1 -0
  696. package/core/router/helpers.d.ts +30 -0
  697. package/core/router/helpers.d.ts.map +1 -0
  698. package/core/selectors/app.d.ts +11 -0
  699. package/core/selectors/app.d.ts.map +1 -0
  700. package/core/selectors/index.d.ts +11 -0
  701. package/core/selectors/index.d.ts.map +1 -0
  702. package/core/selectors/merchantSettings.d.ts +21 -0
  703. package/core/selectors/merchantSettings.d.ts.map +1 -0
  704. package/core/selectors/shopSettings.d.ts +54 -0
  705. package/core/selectors/shopSettings.d.ts.map +1 -0
  706. package/core/selectors/shopSettings.js +1 -0
  707. package/core/streams/app.d.ts +7 -0
  708. package/core/streams/app.d.ts.map +1 -0
  709. package/core/streams/appPermissions.d.ts +31 -0
  710. package/core/streams/appPermissions.d.ts.map +1 -0
  711. package/core/streams/index.d.ts +10 -0
  712. package/core/streams/index.d.ts.map +1 -0
  713. package/core/streams/optIns.d.ts +21 -0
  714. package/core/streams/optIns.d.ts.map +1 -0
  715. package/core/validation/index.d.ts +3 -0
  716. package/core/validation/index.d.ts.map +1 -0
  717. package/core/validation/validation.d.ts +10 -0
  718. package/core/validation/validation.d.ts.map +1 -0
  719. package/core/validation/validation.hooks.d.ts +10 -0
  720. package/core/validation/validation.hooks.d.ts.map +1 -0
  721. package/development/components/DevelopmentTools/hooks.js +1 -0
  722. package/development/components/SimulatedInsets/SimulatedInsetBottom.js +15 -12
  723. package/development/components/SimulatedInsets/SimulatedInsetTop.js +24 -21
  724. package/favorites/components/CommentDialog/CommentDialog.d.ts +4 -0
  725. package/favorites/components/CommentDialog/CommentDialog.d.ts.map +1 -0
  726. package/favorites/components/CommentDialog/CommentDialog.js +17 -14
  727. package/favorites/components/CommentDialog/index.d.ts +2 -0
  728. package/favorites/components/CommentDialog/index.d.ts.map +1 -0
  729. package/favorites/components/FavoriteButtonWide/FavoriteButtonWide.js +13 -11
  730. package/favorites/components/Item/Item.d.ts +62 -0
  731. package/favorites/components/Item/Item.d.ts.map +1 -0
  732. package/favorites/components/Item/Item.js +53 -54
  733. package/favorites/components/Item/ItemCharacteristics.d.ts +17 -0
  734. package/favorites/components/Item/ItemCharacteristics.d.ts.map +1 -0
  735. package/favorites/components/Item/ItemCharacteristics.js +9 -6
  736. package/favorites/components/Item/ItemNotes.d.ts +4 -0
  737. package/favorites/components/Item/ItemNotes.d.ts.map +1 -0
  738. package/favorites/components/Item/ItemNotes.js +23 -20
  739. package/favorites/components/Item/ItemQuantity.d.ts +4 -0
  740. package/favorites/components/Item/ItemQuantity.d.ts.map +1 -0
  741. package/favorites/components/Item/ItemQuantity.js +9 -6
  742. package/favorites/components/Item/index.d.ts +2 -0
  743. package/favorites/components/Item/index.d.ts.map +1 -0
  744. package/favorites/components/ItemFulfillmentMethod/ItemFulfillmentMethod.d.ts +16 -0
  745. package/favorites/components/ItemFulfillmentMethod/ItemFulfillmentMethod.d.ts.map +1 -0
  746. package/favorites/components/ItemFulfillmentMethod/ItemFulfillmentMethod.js +2 -1
  747. package/favorites/components/ItemFulfillmentMethod/index.d.ts +2 -0
  748. package/favorites/components/ItemFulfillmentMethod/index.d.ts.map +1 -0
  749. package/favorites/components/List/List.d.ts +50 -0
  750. package/favorites/components/List/List.d.ts.map +1 -0
  751. package/favorites/components/List/List.js +23 -4
  752. package/favorites/components/List/ListAccordionHeader.d.ts +23 -0
  753. package/favorites/components/List/ListAccordionHeader.d.ts.map +1 -0
  754. package/favorites/components/List/ListAccordionLabel.d.ts +14 -0
  755. package/favorites/components/List/ListAccordionLabel.d.ts.map +1 -0
  756. package/favorites/components/List/ListAccordionLabel.js +16 -6
  757. package/favorites/components/List/ListContent.d.ts +4 -0
  758. package/favorites/components/List/ListContent.d.ts.map +1 -0
  759. package/favorites/components/List/ListContent.js +59 -39
  760. package/favorites/components/List/ListItemWrapper.d.ts +28 -0
  761. package/favorites/components/List/ListItemWrapper.d.ts.map +1 -0
  762. package/favorites/components/List/ListItemWrapper.js +38 -23
  763. package/favorites/components/List/index.d.ts +2 -0
  764. package/favorites/components/List/index.d.ts.map +1 -0
  765. package/favorites/components/ListChooser/ListChooser.js +1 -1
  766. package/favorites/components/ListChooser/ListChooserItem.js +16 -13
  767. package/favorites/components/Lists/Lists.d.ts +4 -0
  768. package/favorites/components/Lists/Lists.d.ts.map +1 -0
  769. package/favorites/components/Lists/Lists.js +13 -15
  770. package/favorites/components/Lists/ListsModal.d.ts +26 -0
  771. package/favorites/components/Lists/ListsModal.d.ts.map +1 -0
  772. package/favorites/components/Lists/ListsModal.js +14 -11
  773. package/favorites/components/Lists/index.d.ts +2 -0
  774. package/favorites/components/Lists/index.d.ts.map +1 -0
  775. package/favorites/components/RemoveButton/RemoveButton.d.ts +15 -0
  776. package/favorites/components/RemoveButton/RemoveButton.d.ts.map +1 -0
  777. package/favorites/components/RemoveButton/RemoveButton.js +24 -19
  778. package/favorites/components/RemoveButton/index.d.ts +2 -0
  779. package/favorites/components/RemoveButton/index.d.ts.map +1 -0
  780. package/favorites/constants/Portals.d.ts +7 -0
  781. package/favorites/constants/Portals.d.ts.map +1 -0
  782. package/favorites/constants/index.d.ts +3 -0
  783. package/favorites/constants/index.d.ts.map +1 -0
  784. package/filter/components/FilterItem/index.js +21 -6
  785. package/filter/components/FilterPageContent/components/ApplyButton/index.js +15 -4
  786. package/filter/components/FilterPageContent/components/ResetButton/index.js +32 -20
  787. package/filter/components/FilterPageContent/components/Selector/components/Selected/index.js +47 -42
  788. package/filter/components/FilterPageContent/components/Selector/components/Toggle/index.js +62 -50
  789. package/filter/components/FilterPageContent/components/Selector/components/ValueButton/index.js +59 -51
  790. package/filter/components/FilterPageContent/components/Selector/index.js +88 -139
  791. package/filter/components/PriceSlider/components/Label/index.js +67 -9
  792. package/filter/components/PriceSlider/index.js +99 -91
  793. package/filter/constants/sort.js +1 -0
  794. package/i18n/countries.helpers.d.ts +2 -0
  795. package/i18n/countries.helpers.d.ts.map +1 -0
  796. package/locations/components/Cart/CartContextMenuChangeFulfillmentContent.js +27 -5
  797. package/locations/components/ChangeLocationButton/ChangeLocationButton.js +37 -19
  798. package/locations/components/FulfillmentPath/FulfillmentPath.js +18 -3
  799. package/locations/components/FulfillmentPath/FulfillmentPathItem.js +45 -13
  800. package/locations/components/FulfillmentPathSelector/FulfillmentPathSelector.js +21 -13
  801. package/locations/components/FulfillmentSelector/FulfillmentSelector.js +12 -4
  802. package/locations/components/FulfillmentSelector/FulfillmentSelectorAddToCart.js +1 -0
  803. package/locations/components/FulfillmentSelector/FulfillmentSelectorAlternativeLocation.js +33 -9
  804. package/locations/components/FulfillmentSelector/FulfillmentSelectorBOPIS.js +14 -6
  805. package/locations/components/FulfillmentSelector/FulfillmentSelectorDirectShip.js +30 -8
  806. package/locations/components/FulfillmentSelector/FulfillmentSelectorHeader.js +22 -10
  807. package/locations/components/FulfillmentSelector/FulfillmentSelectorImpossibleError.js +12 -3
  808. package/locations/components/FulfillmentSelector/FulfillmentSelectorItem.js +63 -9
  809. package/locations/components/FulfillmentSelector/FulfillmentSelectorLocation.js +53 -14
  810. package/locations/components/FulfillmentSelector/FulfillmentSelectorLocationMethodNotAvailable.js +11 -6
  811. package/locations/components/FulfillmentSelector/FulfillmentSelectorROPIS.js +14 -6
  812. package/locations/components/FulfillmentSheet/FulfillmentSheetContent.js +20 -3
  813. package/locations/components/FulfillmentSlotSwitcher/FulfillmentSlotDialog.js +49 -46
  814. package/locations/components/FulfillmentSlotSwitcher/FulfillmentSlotSwitcher.js +9 -6
  815. package/locations/components/FulfillmentSlotSwitcher/FulfillmentSlotSwitcherBar.js +56 -10
  816. package/locations/components/FulfillmentSlotSwitcher/FulfillmentSlotSwitcherDefault.js +34 -7
  817. package/locations/components/GlobalLocationSelector/GlobalLocationSelector.js +1 -0
  818. package/locations/components/GlobalLocationSwitcher/GlobalLocationSwitcherBar.js +75 -30
  819. package/locations/components/GlobalLocationSwitcher/GlobalLocationSwitcherDefault.js +52 -23
  820. package/locations/components/ReservationResponses/ReservationError.js +25 -5
  821. package/locations/components/ReservationResponses/ReservationSuccess.js +34 -7
  822. package/locations/components/ReserveForm/ReserveForm.js +59 -19
  823. package/locations/components/ReserveForm/ReserveFormPhone.js +59 -9
  824. package/locations/components/StockInfo/StockInfo.defaultSettings.js +13 -8
  825. package/locations/components/StockInfo/StockInfo.js +24 -14
  826. package/locations/components/StockInfoLists/index.js +15 -12
  827. package/locations/components/StoreDetails/components/FindMoreStores.js +58 -54
  828. package/locations/components/StoreDetails/components/GetDirectionsButton.js +11 -8
  829. package/locations/components/StoreDetails/components/StoreDetails.js +60 -57
  830. package/locations/components/StoreDetails/components/StoreFinderMap.js +22 -5
  831. package/locations/components/StoreDetails/components/StoreLocationMap.js +9 -6
  832. package/locations/components/StoreDetails/components/StoresNearby.js +12 -9
  833. package/locations/components/StoreDetails/components/StoresNearbyListItem.js +41 -38
  834. package/locations/components/StoreDetails/index.js +18 -14
  835. package/locations/components/StoreFinder/StoreFinder.js +30 -5
  836. package/locations/components/StoreFinder/StoreFinderGetDirectionsButton.js +17 -5
  837. package/locations/components/StoreFinder/StoreFinderLocation.js +12 -5
  838. package/locations/components/StoreFinder/StoreFinderLocationDetails.js +23 -4
  839. package/locations/components/StoreFinder/StoreFinderLocationHeader.js +85 -11
  840. package/locations/components/StoreFinder/StoreFinderLocations.js +33 -5
  841. package/locations/components/StoreFinder/StoreFinderSearch.js +18 -8
  842. package/locations/components/StoreFinder/StoreFinderSelectLocationButton.js +21 -5
  843. package/locations/components/StoreFinder/StoreFinderStoreInfoButton.js +15 -17
  844. package/locations/components/StoreList/StoreAddress.js +28 -6
  845. package/locations/components/StoreList/StoreAddressShort.js +23 -9
  846. package/locations/components/StoreList/StoreCard.js +1 -1
  847. package/locations/components/StoreList/StoreDetails.js +17 -4
  848. package/locations/components/StoreList/StoreDetailsLine.js +26 -7
  849. package/locations/components/StoreList/StoreDistance.js +16 -2
  850. package/locations/components/StoreList/StoreHeader.js +22 -6
  851. package/locations/components/StoreList/StoreHoursToday.js +10 -2
  852. package/locations/components/StoreList/StoreListLocations.js +32 -5
  853. package/locations/components/StoreList/StoreListProduct.js +31 -6
  854. package/locations/components/StoreList/StoreListProductInfo.js +28 -5
  855. package/locations/components/StoreList/StoreListProductName.js +13 -3
  856. package/locations/components/StoreList/StoreListSearch.js +103 -14
  857. package/locations/components/StoreList/StoreListSearchRadius.js +42 -7
  858. package/locations/components/StoreList/StoreOpeningHours.js +17 -4
  859. package/locations/components/StoreList/StoreOpeningHoursLine.js +17 -5
  860. package/locations/components/StoreList/StorePhoneNumber.js +19 -5
  861. package/locations/components/StoreList/StoreSelectLocationButton.js +20 -4
  862. package/locations/helpers/formatDistance.js +2 -1
  863. package/locations/providers/FulfillmentProvider.js +1 -0
  864. package/locations/selectors/index.js +1 -0
  865. package/login/components/ForgotPassword/ForgotPassword.js +101 -15
  866. package/orders/action-creators/index.d.ts +3 -0
  867. package/orders/action-creators/index.d.ts.map +1 -0
  868. package/orders/action-creators/orderDetails.d.ts +26 -0
  869. package/orders/action-creators/orderDetails.d.ts.map +1 -0
  870. package/orders/action-creators/orders.d.ts +6 -0
  871. package/orders/action-creators/orders.d.ts.map +1 -0
  872. package/orders/actions/cancelOrder.d.ts +15 -0
  873. package/orders/actions/cancelOrder.d.ts.map +1 -0
  874. package/orders/actions/cancelOrder.js +1 -0
  875. package/orders/actions/fetchOrderDetails.d.ts +19 -0
  876. package/orders/actions/fetchOrderDetails.d.ts.map +1 -0
  877. package/orders/actions/fetchOrderHistory.d.ts +13 -0
  878. package/orders/actions/fetchOrderHistory.d.ts.map +1 -0
  879. package/orders/actions/index.d.ts +4 -0
  880. package/orders/actions/index.d.ts.map +1 -0
  881. package/orders/components/OrderDetails/OrderDetailsAuthenticate.js +41 -9
  882. package/orders/components/OrderDetails/OrderDetailsContent.js +21 -4
  883. package/orders/components/OrderDetails/OrderDetailsOrder.js +74 -13
  884. package/orders/components/OrderDetails/OrderDetailsOrderHeader.js +54 -12
  885. package/orders/components/OrderDetails/OrderDetailsOrderPickupLocation.js +15 -4
  886. package/orders/components/OrderHistory/OrderHistory.d.ts +7 -0
  887. package/orders/components/OrderHistory/OrderHistory.d.ts.map +1 -0
  888. package/orders/components/OrderHistory/OrderHistory.js +15 -4
  889. package/orders/components/OrderHistory/OrderHistoryList.d.ts +21 -0
  890. package/orders/components/OrderHistory/OrderHistoryList.d.ts.map +1 -0
  891. package/orders/components/OrderHistory/OrderHistoryList.js +92 -48
  892. package/orders/components/OrderHistory/OrderHistoryLoader.d.ts +17 -0
  893. package/orders/components/OrderHistory/OrderHistoryLoader.d.ts.map +1 -0
  894. package/orders/components/OrderHistory/OrderHistoryTable.d.ts +21 -0
  895. package/orders/components/OrderHistory/OrderHistoryTable.d.ts.map +1 -0
  896. package/orders/components/OrderHistory/OrderHistoryTable.js +91 -60
  897. package/orders/components/OrderHistory/index.d.ts +2 -0
  898. package/orders/components/OrderHistory/index.d.ts.map +1 -0
  899. package/orders/constants/actionTypes.d.ts +9 -0
  900. package/orders/constants/actionTypes.d.ts.map +1 -0
  901. package/orders/constants/index.d.ts +5 -0
  902. package/orders/constants/index.d.ts.map +1 -0
  903. package/orders/constants/pipelines.d.ts +4 -0
  904. package/orders/constants/pipelines.d.ts.map +1 -0
  905. package/orders/constants/routes.d.ts +4 -0
  906. package/orders/constants/routes.d.ts.map +1 -0
  907. package/orders/constants/status.d.ts +21 -0
  908. package/orders/constants/status.d.ts.map +1 -0
  909. package/orders/helpers/index.d.ts +2 -0
  910. package/orders/helpers/index.d.ts.map +1 -0
  911. package/orders/helpers/orderDetails.d.ts +2 -0
  912. package/orders/helpers/orderDetails.d.ts.map +1 -0
  913. package/orders/helpers/orderStatus.d.ts +4 -0
  914. package/orders/helpers/orderStatus.d.ts.map +1 -0
  915. package/orders/helpers/orderStatus.js +1 -1
  916. package/orders/hooks/index.d.ts +3 -0
  917. package/orders/hooks/index.d.ts.map +1 -0
  918. package/orders/providers/OrderDetailsProvider.context.d.ts +4 -0
  919. package/orders/providers/OrderDetailsProvider.context.d.ts.map +1 -0
  920. package/orders/providers/OrderHistoryProvider.connector.d.ts +9 -0
  921. package/orders/providers/OrderHistoryProvider.connector.d.ts.map +1 -0
  922. package/orders/providers/OrderHistoryProvider.context.d.ts +4 -0
  923. package/orders/providers/OrderHistoryProvider.context.d.ts.map +1 -0
  924. package/orders/providers/OrderHistoryProvider.d.ts +4 -0
  925. package/orders/providers/OrderHistoryProvider.d.ts.map +1 -0
  926. package/orders/selectors/index.d.ts +14 -0
  927. package/orders/selectors/index.d.ts.map +1 -0
  928. package/package.json +13 -9
  929. package/page/components/NotFound.js +23 -24
  930. package/page/components/ResponsiveWidgetImage/ResponsiveWidgetImage.js +2 -2
  931. package/page/components/Widgets/Tooltip.js +3 -1
  932. package/page/components/Widgets/hooks.js +1 -0
  933. package/page/selectors/index.js +1 -0
  934. package/page/widgets/ImageSlider/ImageSlider.js +1 -0
  935. package/page/widgets/NestedCategoryFilter/NestedCategoryFilter.js +5 -6
  936. package/page/widgets/NestedCategoryFilter/components/Picker/components/Sheet/index.js +3 -2
  937. package/page/widgets/NestedCategoryFilter/components/Picker/components/SheetItem/index.js +5 -12
  938. package/page/widgets/NestedCategoryFilter/components/Picker/index.js +4 -4
  939. package/product/components/Availability/Availability.js +20 -6
  940. package/product/components/Characteristics/Characteristic/components/Sheet/index.js +1 -1
  941. package/product/components/Characteristics/Characteristic/components/SheetItem/index.js +125 -83
  942. package/product/components/Characteristics/Characteristic/index.js +47 -11
  943. package/product/components/Characteristics/Swatch/index.js +90 -93
  944. package/product/components/Characteristics/index.js +1 -1
  945. package/product/components/Characteristics/transition.js +4 -8
  946. package/product/components/Description/index.js +48 -7
  947. package/product/components/EffectivityDates/constants.d.ts +3 -0
  948. package/product/components/EffectivityDates/constants.d.ts.map +1 -0
  949. package/product/components/EffectivityDates/helpers.d.ts +6 -0
  950. package/product/components/EffectivityDates/helpers.d.ts.map +1 -0
  951. package/product/components/EffectivityDates/index.js +24 -8
  952. package/product/components/FilterBar/components/Content/components/FilterButton/index.js +47 -6
  953. package/product/components/FilterBar/components/Content/components/FilterChips/index.js +23 -7
  954. package/product/components/FilterBar/components/Content/components/Sort/components/Item/index.js +20 -7
  955. package/product/components/FilterBar/components/Content/components/Sort/index.js +81 -4
  956. package/product/components/FilterBar/components/Content/index.js +12 -4
  957. package/product/components/FilterBar/components/FilterModal/FilterModal.js +9 -6
  958. package/product/components/FilterBar/components/FilterModal/FilterModalContent.js +12 -10
  959. package/product/components/FilterBar/components/FilterModal/FilterModalTitle.js +40 -35
  960. package/product/components/FilterBar/index.js +17 -7
  961. package/product/components/Header/PriceStriked/index.js +31 -7
  962. package/product/components/Header/Shipping/components/Label/index.js +31 -19
  963. package/product/components/Header/Shipping/index.js +37 -20
  964. package/product/components/Header/Shipping/spec.js +1 -0
  965. package/product/components/Header/Tiers/components/Tier/index.js +18 -5
  966. package/product/components/Header/Tiers/index.js +14 -4
  967. package/product/components/MapPriceHint/index.js +16 -6
  968. package/product/components/Media/MediaImage.js +26 -8
  969. package/product/components/Media/MediaPlaceholder.js +46 -12
  970. package/product/components/Media/helpers.d.ts +2 -0
  971. package/product/components/Media/helpers.d.ts.map +1 -0
  972. package/product/components/MediaSlider/components/MediaImage/index.js +26 -14
  973. package/product/components/MediaSlider/components/MediaVideo/index.js +28 -5
  974. package/product/components/MediaSlider/index.js +15 -2
  975. package/product/components/Options/components/TextOption/components/OptionInfo/index.js +22 -5
  976. package/product/components/Options/components/TextOption/index.js +143 -144
  977. package/product/components/OrderQuantityHint/index.js +13 -4
  978. package/product/components/PriceDifference/index.js +24 -6
  979. package/product/components/PriceInfo/PriceInfo.js +17 -12
  980. package/product/components/ProductBadges/index.js +10 -7
  981. package/product/components/ProductCard/index.js +22 -4
  982. package/product/components/ProductDiscountBadge/index.js +38 -6
  983. package/product/components/ProductFilters/index.js +28 -2
  984. package/product/components/ProductGridPrice/index.js +29 -7
  985. package/product/components/ProductImage/ProductImagePlaceholder.js +42 -6
  986. package/product/components/ProductImage/index.js +154 -130
  987. package/product/components/ProductImage/spec.js +14 -10
  988. package/product/components/ProductList/components/Item/index.js +205 -152
  989. package/product/components/ProductList/components/Iterator/index.js +49 -31
  990. package/product/components/ProductList/components/Layout/index.js +20 -9
  991. package/product/components/ProductName/ProductName.d.ts +18 -0
  992. package/product/components/ProductName/ProductName.d.ts.map +1 -0
  993. package/product/components/ProductName/ProductName.js +30 -39
  994. package/product/components/ProductName/ProductNameContent.d.ts +12 -0
  995. package/product/components/ProductName/ProductNameContent.d.ts.map +1 -0
  996. package/product/components/ProductName/ProductNameContent.js +7 -14
  997. package/product/components/ProductProperties/Content.js +13 -3
  998. package/product/components/ProductProperties/Group.js +25 -12
  999. package/product/components/ProductProperties/GroupedProperties.js +27 -17
  1000. package/product/components/ProductProperties/Row.js +45 -27
  1001. package/product/components/ProductProperties/Rows.js +26 -6
  1002. package/product/components/ProductProperties/Wrapper.js +31 -15
  1003. package/product/components/ProductProperties/helpers/getSubgroupsFromProperties.js +1 -0
  1004. package/product/components/ProductSlider/index.js +16 -3
  1005. package/product/components/ProductSlider/spec.js +1 -3
  1006. package/product/components/ProductVariants/VariantAvailability.js +12 -3
  1007. package/product/components/QuantityPicker/index.js +2 -2
  1008. package/product/components/Rating/index.js +13 -2
  1009. package/product/components/RelationsSlider/RelationsSheet.js +23 -5
  1010. package/product/components/RelationsSlider/RelationsSliderContent.js +34 -7
  1011. package/product/components/Swatch/Swatch.js +4 -4
  1012. package/product/components/Swatch/SwatchContent.js +37 -9
  1013. package/product/components/Swatch/VariantSwatch.js +4 -4
  1014. package/product/components/Swatches/Swatches.js +16 -2
  1015. package/product/components/UnitQuantityPicker/CartUnitQuantityPicker.js +16 -8
  1016. package/product/components/UnitQuantityPicker/ProductUnitQuantityPicker.js +23 -21
  1017. package/product/components/UnitQuantityPicker/UnitQuantityPicker.d.ts +75 -0
  1018. package/product/components/UnitQuantityPicker/UnitQuantityPicker.d.ts.map +1 -0
  1019. package/product/components/UnitQuantityPicker/UnitQuantityPicker.js +94 -108
  1020. package/product/components/UnitQuantityPicker/UnitQuantityPickerWithSection.js +15 -12
  1021. package/product/components/UnitQuantityPicker/helper.js +1 -1
  1022. package/product/helpers/index.d.ts +13 -0
  1023. package/product/helpers/index.d.ts.map +1 -0
  1024. package/product/helpers/redirects.d.ts +2 -0
  1025. package/product/helpers/redirects.d.ts.map +1 -0
  1026. package/product/selectors/helpers/filterProperties.d.ts +8 -0
  1027. package/product/selectors/helpers/filterProperties.d.ts.map +1 -0
  1028. package/product/selectors/helpers/index.d.ts +3 -0
  1029. package/product/selectors/helpers/index.d.ts.map +1 -0
  1030. package/product/selectors/helpers/wrapMemoizedSelector.d.ts +2 -0
  1031. package/product/selectors/helpers/wrapMemoizedSelector.d.ts.map +1 -0
  1032. package/product/selectors/media.js +1 -0
  1033. package/product/selectors/product.d.ts +112 -0
  1034. package/product/selectors/product.d.ts.map +1 -0
  1035. package/push-opt-in/components/PushOptInModal/index.js +57 -14
  1036. package/registration/components/GuestRegistration/GuestRegistrationContent.js +11 -12
  1037. package/registration/components/GuestRegistration/GuestRegistrationFormPickup.js +17 -18
  1038. package/registration/components/Registration/RegistrationContent.js +34 -6
  1039. package/registration/components/Registration/RegistrationFormActions.js +22 -5
  1040. package/registration/components/Registration/RegistrationFormBase.js +18 -4
  1041. package/registration/components/Registration/RegistrationFormBilling.js +18 -4
  1042. package/registration/components/Registration/RegistrationFormExtra.config.js +1 -1
  1043. package/registration/components/Registration/RegistrationFormExtra.js +18 -4
  1044. package/registration/components/Registration/RegistrationFormShipping.config.js +1 -1
  1045. package/registration/components/Registration/RegistrationFormShipping.js +22 -5
  1046. package/registration/components/Registration/RegistrationFormToggle.js +13 -10
  1047. package/registration/providers/GuestRegistrationProvider.js +1 -0
  1048. package/registration/providers/RegistrationProvider.js +4 -3
  1049. package/reviews/components/Reviews/components/AllReviewsLink/index.js +17 -4
  1050. package/reviews/components/Reviews/components/Header/components/AverageRating/index.js +21 -3
  1051. package/reviews/components/Reviews/components/Header/components/NoReviews/index.js +38 -18
  1052. package/reviews/components/Reviews/components/Header/components/ReviewsExcerpt/index.js +57 -28
  1053. package/reviews/components/Reviews/components/Header/components/WriteReviewLink/index.js +1 -1
  1054. package/reviews/components/Reviews/components/List/components/Info/components/Author/index.js +1 -1
  1055. package/reviews/components/Reviews/components/List/components/Info/components/ReviewDate/index.js +1 -1
  1056. package/reviews/components/Reviews/components/List/components/Info/index.js +26 -14
  1057. package/reviews/components/Reviews/components/List/components/Rating/index.js +25 -9
  1058. package/reviews/components/Reviews/components/List/components/Text/index.js +13 -3
  1059. package/reviews/components/Reviews/components/List/components/Title/index.js +17 -6
  1060. package/reviews/components/Reviews/components/List/index.js +48 -45
  1061. package/reviews/components/Reviews/components/RatingCount/index.js +28 -7
  1062. package/reviews/components/Reviews/components/ReviewsInfo/index.js +13 -10
  1063. package/reviews/components/Reviews/index.js +12 -3
  1064. package/styles/helpers/color.d.ts +18 -0
  1065. package/styles/helpers/color.d.ts.map +1 -0
  1066. package/styles/helpers/cssCustomProperties.d.ts +3 -0
  1067. package/styles/helpers/cssCustomProperties.d.ts.map +1 -0
  1068. package/styles/helpers/index.d.ts +12 -0
  1069. package/styles/helpers/index.d.ts.map +1 -0
  1070. package/styles/helpers/initCSSCustomProperties.d.ts +3 -0
  1071. package/styles/helpers/initCSSCustomProperties.d.ts.map +1 -0
  1072. package/styles/helpers/loadCustomStyles.d.ts +2 -0
  1073. package/styles/helpers/loadCustomStyles.d.ts.map +1 -0
  1074. package/styles/helpers/loadCustomStyles.js +41 -16
  1075. package/styles/helpers/setPageBackgroundColor.d.ts +2 -0
  1076. package/styles/helpers/setPageBackgroundColor.d.ts.map +1 -0
  1077. package/styles/helpers/setPageContentWidth.d.ts +2 -0
  1078. package/styles/helpers/setPageContentWidth.d.ts.map +1 -0
  1079. package/styles/helpers/setViewportHeight.d.ts +2 -0
  1080. package/styles/helpers/setViewportHeight.d.ts.map +1 -0
  1081. package/styles/helpers/toggleBodyScroll.d.ts +2 -0
  1082. package/styles/helpers/toggleBodyScroll.d.ts.map +1 -0
  1083. package/styles/helpers/updatePageInsets.d.ts +2 -0
  1084. package/styles/helpers/updatePageInsets.d.ts.map +1 -0
  1085. package/styles/index.d.ts +3 -16
  1086. package/styles/index.d.ts.map +1 -0
  1087. package/styles/index.js +2 -2
  1088. package/styles/reset/form.js +52 -53
  1089. package/styles/reset/media.js +21 -19
  1090. package/styles/reset/root.js +50 -52
  1091. package/styles/reset/table.js +9 -7
  1092. package/styles/reset/typography.js +24 -22
  1093. package/styles/theme/createDefaultThemeOptions/index.d.ts +7 -0
  1094. package/styles/theme/createDefaultThemeOptions/index.d.ts.map +1 -0
  1095. package/styles/theme/createDefaultThemeOptions/index.js +51 -0
  1096. package/styles/theme/createTheme/applyStyles.d.ts +15 -0
  1097. package/styles/theme/createTheme/applyStyles.d.ts.map +1 -0
  1098. package/styles/theme/createTheme/applyStyles.js +24 -0
  1099. package/styles/theme/createTheme/createComponents.d.ts +35 -0
  1100. package/styles/theme/createTheme/createComponents.d.ts.map +1 -0
  1101. package/styles/theme/createTheme/createComponents.js +67 -0
  1102. package/styles/theme/createTheme/createComponents.types.d.ts +132 -0
  1103. package/styles/theme/createTheme/createComponents.types.d.ts.map +1 -0
  1104. package/styles/theme/createTheme/createComponents.types.js +120 -0
  1105. package/styles/theme/createTheme/createCssVarsForColorSchemeThemes.d.ts +31 -0
  1106. package/styles/theme/createTheme/createCssVarsForColorSchemeThemes.d.ts.map +1 -0
  1107. package/styles/theme/createTheme/createCssVarsForColorSchemeThemes.js +73 -0
  1108. package/styles/theme/createTheme/createPalette.d.ts +33 -36
  1109. package/styles/theme/createTheme/createPalette.d.ts.map +1 -0
  1110. package/styles/theme/createTheme/createPalette.js +170 -49
  1111. package/styles/theme/createTheme/createPalette.types.d.ts +165 -0
  1112. package/styles/theme/createTheme/createPalette.types.d.ts.map +1 -0
  1113. package/styles/theme/createTheme/createPalette.types.js +123 -0
  1114. package/styles/theme/createTheme/createShape.d.ts +11 -0
  1115. package/styles/theme/createTheme/createShape.d.ts.map +1 -0
  1116. package/styles/theme/createTheme/createShape.js +15 -0
  1117. package/styles/theme/createTheme/createThemeFromColorScheme.d.ts +30 -0
  1118. package/styles/theme/createTheme/createThemeFromColorScheme.d.ts.map +1 -0
  1119. package/styles/theme/createTheme/createThemeFromColorScheme.js +70 -0
  1120. package/styles/theme/createTheme/createTypography.js +7 -11
  1121. package/styles/theme/createTheme/helpers/cssVarsColorAugmentation.d.ts +10 -0
  1122. package/styles/theme/createTheme/helpers/cssVarsColorAugmentation.d.ts.map +1 -0
  1123. package/styles/theme/createTheme/helpers/cssVarsColorAugmentation.js +44 -0
  1124. package/styles/theme/createTheme/helpers/cssVarsParser.d.ts +58 -0
  1125. package/styles/theme/createTheme/helpers/cssVarsParser.d.ts.map +1 -0
  1126. package/styles/theme/createTheme/helpers/cssVarsParser.js +173 -0
  1127. package/styles/theme/createTheme/helpers/cssVarsSelector.d.ts +28 -0
  1128. package/styles/theme/createTheme/helpers/cssVarsSelector.d.ts.map +1 -0
  1129. package/styles/theme/createTheme/helpers/cssVarsSelector.js +44 -0
  1130. package/styles/theme/createTheme/helpers/index.d.ts +6 -0
  1131. package/styles/theme/createTheme/helpers/index.d.ts.map +1 -0
  1132. package/styles/theme/createTheme/helpers/index.js +3 -0
  1133. package/styles/theme/createTheme/index.d.ts +9 -41
  1134. package/styles/theme/createTheme/index.d.ts.map +1 -0
  1135. package/styles/theme/createTheme/index.js +52 -11
  1136. package/styles/theme/createTheme/shadows.d.ts +4 -0
  1137. package/styles/theme/createTheme/shadows.d.ts.map +1 -0
  1138. package/styles/theme/createTheme/shadows.js +10 -0
  1139. package/styles/theme/createTheme/types.d.ts +183 -0
  1140. package/styles/theme/createTheme/types.d.ts.map +1 -0
  1141. package/styles/theme/createTheme/types.js +14 -0
  1142. package/styles/theme/hooks/index.d.ts +2 -0
  1143. package/styles/theme/hooks/index.d.ts.map +1 -0
  1144. package/styles/theme/hooks/index.js +2 -1
  1145. package/styles/theme/hooks/useActiveBreakpoint.d.ts +4 -4
  1146. package/styles/theme/hooks/useActiveBreakpoint.d.ts.map +1 -0
  1147. package/styles/theme/hooks/useActiveBreakpoint.js +12 -1
  1148. package/styles/theme/hooks/useColorScheme.d.ts +7 -0
  1149. package/styles/theme/hooks/useColorScheme.d.ts.map +1 -0
  1150. package/styles/theme/hooks/useColorScheme.js +9 -0
  1151. package/styles/theme/hooks/useMediaQuery.d.ts +10 -8
  1152. package/styles/theme/hooks/useMediaQuery.d.ts.map +1 -0
  1153. package/styles/theme/hooks/useMediaQuery.js +24 -9
  1154. package/styles/theme/hooks/useResponsiveValue.d.ts +6 -6
  1155. package/styles/theme/hooks/useResponsiveValue.d.ts.map +1 -0
  1156. package/styles/theme/hooks/useResponsiveValue.js +22 -2
  1157. package/styles/theme/hooks/useTheme.d.ts +4 -5
  1158. package/styles/theme/hooks/useTheme.d.ts.map +1 -0
  1159. package/styles/theme/hooks/useTheme.js +1 -1
  1160. package/styles/theme/index.d.ts +4 -7
  1161. package/styles/theme/index.d.ts.map +1 -0
  1162. package/styles/theme/index.js +1 -1
  1163. package/styles/theme/providers/ActiveBreakpointProvider.d.ts +9 -21
  1164. package/styles/theme/providers/ActiveBreakpointProvider.d.ts.map +1 -0
  1165. package/styles/theme/providers/ActiveBreakpointProvider.js +6 -17
  1166. package/styles/theme/providers/ThemeProvider.d.ts +22 -17
  1167. package/styles/theme/providers/ThemeProvider.d.ts.map +1 -0
  1168. package/styles/theme/providers/ThemeProvider.js +38 -18
  1169. package/styles/theme/providers/index.d.ts +3 -0
  1170. package/styles/theme/providers/index.d.ts.map +1 -0
  1171. package/styles/theme/providers/index.js +2 -0
  1172. package/styles/theme/utils/color.d.ts +211 -0
  1173. package/styles/theme/utils/color.d.ts.map +1 -0
  1174. package/styles/theme/utils/color.js +112 -0
  1175. package/styles/theme/utils/index.d.ts +2 -0
  1176. package/styles/theme/utils/index.d.ts.map +1 -0
  1177. package/styles/theme/utils/index.js +1 -0
  1178. package/styles/tss/index.d.ts +64 -0
  1179. package/styles/tss/index.d.ts.map +1 -0
  1180. package/styles/tss/index.js +63 -4
  1181. package/tracking/components/CookieConsentModal/index.js +66 -16
  1182. package/tracking/components/PrivacySettings/index.js +55 -16
  1183. package/tracking/streams/cookieConsent.js +1 -0
  1184. package/tsconfig.build.json +26 -0
  1185. package/tsconfig.json +18 -0
  1186. package/types/react.d.ts +16 -0
  1187. package/types/react.d.ts.map +1 -0
  1188. package/types/react.js +1 -0
  1189. package/a11y/components/LiveMessage/styles.js +0 -12
  1190. package/a11y/components/Navigation/style.js +0 -12
  1191. package/account/components/Account/Account.style.js +0 -31
  1192. package/back-in-stock/components/BackInStockButton/style.js +0 -43
  1193. package/cart/components/CartHeaderWide/CartHeaderWide.style.js +0 -10
  1194. package/cart/components/CartItem/CartItem.style.js +0 -23
  1195. package/cart/components/CartItem/CartItemCoupon.style.js +0 -33
  1196. package/cart/components/CartItem/CartItemCouponDelete.style.js +0 -7
  1197. package/cart/components/CartItem/CartItemCouponLayout.style.js +0 -29
  1198. package/cart/components/CartItem/CartItemCouponPrice.style.js +0 -10
  1199. package/cart/components/CartItem/CartItemCouponTitle.style.js +0 -7
  1200. package/cart/components/CartItem/CartItemProduct.style.js +0 -5
  1201. package/cart/components/CartItem/CartItemProductLayout.style.js +0 -94
  1202. package/cart/components/CartItem/CartItemProductLayoutWide.style.js +0 -113
  1203. package/cart/components/CartItem/CartItemProductLayoutWideFulfillmentLabel.style.js +0 -10
  1204. package/cart/components/CartItem/CartItemProductLayoutWideRemoveItem.style.js +0 -16
  1205. package/cart/components/CartItem/CartItemProductOrderDetails.style.js +0 -28
  1206. package/cart/components/CartItem/CartItemProductPriceCaption.style.js +0 -11
  1207. package/cart/components/CartItem/CartItemProductTitle.style.js +0 -28
  1208. package/cart/components/CartItem/CartItemQuantityPicker.style.js +0 -18
  1209. package/cart/components/CartItem/CartItemSubstitution.style.js +0 -9
  1210. package/cart/components/CartItems/CartItemCard.style.js +0 -52
  1211. package/cart/components/CartItems/CartItemCardReservationLabelChangeStore.style.js +0 -12
  1212. package/cart/components/CartItems/CartItemGroup.style.js +0 -39
  1213. package/cart/components/CartItems/CartItems.style.js +0 -21
  1214. package/cart/components/CartItems/CartItemsHeaderWide.style.js +0 -60
  1215. package/cart/components/CartSummaryWide/CartSummaryWide.style.js +0 -37
  1216. package/cart/components/CartSummaryWide/CartSummaryWideCheckoutButton.style.js +0 -21
  1217. package/cart/components/PaymentBar/PaymentBarCheckoutButton.style.js +0 -15
  1218. package/cart/components/PaymentBar/PaymentBarContent.style.js +0 -40
  1219. package/cart/components/Substitution/style.js +0 -32
  1220. package/cart/components/SupplementalContent/SupplementalContent.styles.js +0 -29
  1221. package/category/components/CategoryList/style.js +0 -20
  1222. package/checkout/components/ResponsiveBackButton/ResponsiveBackButton.style.js +0 -25
  1223. package/checkout/components/SupplementalContent/SupplementalContent.styles.js +0 -29
  1224. package/components/ChipLayout/style.js +0 -51
  1225. package/components/Footer/Footer.style.js +0 -11
  1226. package/components/Logo/style.js +0 -22
  1227. package/components/Menu/components/Item/style.js +0 -27
  1228. package/components/Menu/components/Position/style.js +0 -11
  1229. package/components/Menu/style.js +0 -39
  1230. package/components/MessageBar/MessageBar.style.js +0 -127
  1231. package/components/Picker/components/Button/style.js +0 -19
  1232. package/components/Picker/components/List/style.js +0 -17
  1233. package/components/Picker/components/Modal/style.js +0 -78
  1234. package/components/PickerUtilize/components/Button/style.js +0 -42
  1235. package/components/PickerUtilize/style.js +0 -10
  1236. package/components/RangeSlider/components/Handle/style.js +0 -15
  1237. package/components/RangeSlider/style.js +0 -18
  1238. package/components/ScrollHeader/style.js +0 -25
  1239. package/components/SheetList/components/Item/style.js +0 -76
  1240. package/components/SheetList/style.js +0 -36
  1241. package/components/SideNavigation/SideNavigationCategories.style.js +0 -12
  1242. package/components/SideNavigation/SideNavigationCategoriesItem.style.js +0 -41
  1243. package/components/SideNavigation/SideNavigationContent.style.js +0 -8
  1244. package/components/SideNavigation/SideNavigationItem.style.js +0 -41
  1245. package/components/Switch/style.js +0 -46
  1246. package/components/Tabs/components/Tab.style.js +0 -32
  1247. package/components/Tabs/components/TabIndicator.style.js +0 -13
  1248. package/components/Tabs/components/Tabs.style.js +0 -19
  1249. package/components/TextLink/TextLink.style.js +0 -10
  1250. package/components/Toggle/style.js +0 -63
  1251. package/components/View/components/Content/style.js +0 -41
  1252. package/components/View/style.js +0 -12
  1253. package/favorites/components/List/styles.js +0 -35
  1254. package/filter/components/FilterItem/style.js +0 -9
  1255. package/filter/components/FilterPageContent/components/ApplyButton/style.js +0 -11
  1256. package/filter/components/FilterPageContent/components/ResetButton/style.js +0 -6
  1257. package/filter/components/FilterPageContent/components/Selector/components/Selected/style.js +0 -19
  1258. package/filter/components/FilterPageContent/components/Selector/components/Toggle/style.js +0 -30
  1259. package/filter/components/FilterPageContent/components/Selector/components/ValueButton/style.js +0 -23
  1260. package/filter/components/FilterPageContent/components/Selector/style.js +0 -8
  1261. package/filter/components/PriceSlider/style.js +0 -95
  1262. package/locations/components/Cart/CartContextMenuChangeFulfillmentContent.style.js +0 -24
  1263. package/locations/components/ChangeLocationButton/ChangeLocationButton.style.js +0 -17
  1264. package/locations/components/FulfillmentPath/FulfillmentPath.style.js +0 -35
  1265. package/locations/components/FulfillmentPathSelector/FulfillmentPathSelector.style.js +0 -4
  1266. package/locations/components/FulfillmentSelector/FulfillmentSelector.style.js +0 -8
  1267. package/locations/components/FulfillmentSelector/FulfillmentSelectorHeader.style.js +0 -9
  1268. package/locations/components/FulfillmentSelector/FulfillmentSelectorImpossibleError.style.js +0 -4
  1269. package/locations/components/FulfillmentSelector/FulfillmentSelectorItem.style.js +0 -60
  1270. package/locations/components/FulfillmentSelector/FulfillmentSelectorLocation.style.js +0 -22
  1271. package/locations/components/FulfillmentSheet/FulfillmentSheet.style.js +0 -14
  1272. package/locations/components/FulfillmentSlotSwitcher/FulfillmentSlotSwitcherBar.style.js +0 -42
  1273. package/locations/components/FulfillmentSlotSwitcher/FulfillmentSlotSwitcherDefault.style.js +0 -27
  1274. package/locations/components/GlobalLocationSwitcher/GlobalLocationSwitcherBar.style.js +0 -39
  1275. package/locations/components/GlobalLocationSwitcher/GlobalLocationSwitcherDefault.style.js +0 -27
  1276. package/locations/components/ReservationResponses/ReservationResponse.style.js +0 -28
  1277. package/locations/components/ReserveForm/ReserveForm.style.js +0 -77
  1278. package/locations/components/StoreDetails/components/StoreFinderMap.style.js +0 -14
  1279. package/locations/components/StoreFinder/StoreFinder.style.js +0 -25
  1280. package/locations/components/StoreFinder/StoreFinderGetDirectionsButton.style.js +0 -12
  1281. package/locations/components/StoreFinder/StoreFinderLocation.style.js +0 -10
  1282. package/locations/components/StoreFinder/StoreFinderLocationDetails.style.js +0 -15
  1283. package/locations/components/StoreFinder/StoreFinderLocationHeader.style.js +0 -74
  1284. package/locations/components/StoreFinder/StoreFinderLocations.style.js +0 -26
  1285. package/locations/components/StoreFinder/StoreFinderSearch.style.js +0 -5
  1286. package/locations/components/StoreList/Store.style.js +0 -121
  1287. package/locations/components/StoreList/StoreListProduct.style.js +0 -43
  1288. package/locations/components/StoreList/StoreListSearch.style.js +0 -84
  1289. package/locations/components/StoreList/StoreListSearchRadius.style.js +0 -3
  1290. package/login/components/ForgotPassword/ForgotPassword.style.js +0 -88
  1291. package/orders/components/OrderDetails/OrderDetailsAuthenticate.style.js +0 -33
  1292. package/orders/components/OrderDetails/OrderDetailsContent.style.js +0 -18
  1293. package/orders/components/OrderDetails/OrderDetailsOrder.style.js +0 -62
  1294. package/orders/components/OrderDetails/OrderDetailsOrderHeader.style.js +0 -42
  1295. package/orders/components/OrderDetails/OrderDetailsOrderPickupLocation.style.js +0 -7
  1296. package/orders/components/OrderHistory/OrderHistory.style.js +0 -7
  1297. package/orders/components/OrderHistory/OrderHistoryList.style.js +0 -36
  1298. package/orders/components/OrderHistory/OrderHistoryTable.style.js +0 -25
  1299. package/product/components/Availability/Availability.style.js +0 -10
  1300. package/product/components/Characteristics/Characteristic/components/SheetItem/style.js +0 -69
  1301. package/product/components/Characteristics/Characteristic/style.js +0 -40
  1302. package/product/components/Characteristics/Swatch/style.js +0 -28
  1303. package/product/components/Description/style.js +0 -41
  1304. package/product/components/EffectivityDates/style.js +0 -10
  1305. package/product/components/FilterBar/components/Content/components/FilterButton/style.js +0 -42
  1306. package/product/components/FilterBar/components/Content/components/FilterChips/style.js +0 -14
  1307. package/product/components/FilterBar/components/Content/components/Sort/components/Item/style.js +0 -7
  1308. package/product/components/FilterBar/components/Content/components/Sort/style.js +0 -76
  1309. package/product/components/FilterBar/components/Content/style.js +0 -4
  1310. package/product/components/FilterBar/style.js +0 -4
  1311. package/product/components/Header/PriceStriked/style.js +0 -26
  1312. package/product/components/Header/Shipping/components/Label/style.js +0 -11
  1313. package/product/components/Header/Shipping/style.js +0 -14
  1314. package/product/components/Header/Tiers/style.js +0 -17
  1315. package/product/components/Media/style.js +0 -41
  1316. package/product/components/MediaSlider/style.js +0 -32
  1317. package/product/components/Options/components/TextOption/components/OptionInfo/style.js +0 -23
  1318. package/product/components/Options/components/TextOption/style.js +0 -37
  1319. package/product/components/OrderQuantityHint/style.js +0 -6
  1320. package/product/components/PriceDifference/style.js +0 -18
  1321. package/product/components/ProductCard/style.js +0 -18
  1322. package/product/components/ProductDiscountBadge/style.js +0 -31
  1323. package/product/components/ProductFilters/style.js +0 -23
  1324. package/product/components/ProductGridPrice/style.js +0 -21
  1325. package/product/components/ProductImage/style.js +0 -55
  1326. package/product/components/ProductList/components/Item/style.js +0 -66
  1327. package/product/components/ProductList/components/Iterator/style.js +0 -15
  1328. package/product/components/ProductList/components/Layout/style.js +0 -11
  1329. package/product/components/ProductProperties/style.js +0 -44
  1330. package/product/components/ProductSlider/style.js +0 -8
  1331. package/product/components/ProductVariants/VariantAvailability.style.js +0 -5
  1332. package/product/components/Rating/style.js +0 -12
  1333. package/product/components/RelationsSlider/style.js +0 -56
  1334. package/product/components/Swatch/style.js +0 -27
  1335. package/product/components/Swatches/style.js +0 -9
  1336. package/product/components/UnitQuantityPicker/styles.js +0 -7
  1337. package/push-opt-in/components/PushOptInModal/style.js +0 -53
  1338. package/registration/components/Registration/RegistrationContent.style.js +0 -58
  1339. package/reviews/components/Reviews/components/AllReviewsLink/style.js +0 -17
  1340. package/reviews/components/Reviews/components/Header/components/AverageRating/style.js +0 -9
  1341. package/reviews/components/Reviews/components/Header/components/NoReviews/style.js +0 -18
  1342. package/reviews/components/Reviews/components/Header/components/ReviewsExcerpt/style.js +0 -27
  1343. package/reviews/components/Reviews/components/List/components/Info/style.js +0 -9
  1344. package/reviews/components/Reviews/components/List/components/Rating/style.js +0 -14
  1345. package/reviews/components/Reviews/components/List/components/Text/style.js +0 -6
  1346. package/reviews/components/Reviews/components/List/components/Title/style.js +0 -5
  1347. package/reviews/components/Reviews/components/List/style.js +0 -11
  1348. package/reviews/components/Reviews/components/RatingCount/style.js +0 -20
  1349. package/reviews/components/Reviews/style.js +0 -11
  1350. package/tracking/components/CookieConsentModal/style.js +0 -59
  1351. package/tracking/components/PrivacySettings/style.js +0 -45
@@ -1,56 +1,177 @@
1
- const grey = {
2
- 50: '#fafafa',
3
- 100: '#f5f5f5',
4
- 200: '#eeeeee',
5
- 300: '#e0e0e0',
6
- 400: '#bdbdbd',
7
- 500: '#9e9e9e',
8
- 600: '#757575',
9
- 700: '#616161',
10
- 800: '#424242',
11
- 900: '#212121',
12
- A100: '#f5f5f5',
13
- A200: '#eeeeee',
14
- A400: '#bdbdbd',
15
- A700: '#616161'
1
+ import "core-js/modules/es.array.reduce.js";
2
+ import merge from 'lodash/merge';
3
+ import isPlainObject from 'lodash/isPlainObject';
4
+ import { isColor, toHsl, lighten, darken, getContrastRatio } from "../utils";
5
+ import { paletteSchema } from "./createPalette.types";
6
+ const defaultTextLight = {
7
+ primary: '#202020',
8
+ secondary: '#575757',
9
+ disabled: '#ACACAC'
10
+ };
11
+ const defaultTextDark = {
12
+ primary: '#fff',
13
+ secondary: '#a8a8a8',
14
+ disabled: '#535353'
16
15
  };
17
-
18
16
  /**
19
- * Creates a palette object for the theme.
20
- * @returns {Object} The palette object.
17
+ * Retrieves a text color that matches a passed background color.
18
+ * @param options The options for getting the contrast text color.
19
+ * @returns The matching contrast text color
21
20
  */
22
- const createPalette = () => {
23
- const palette = {
24
- primary: {
25
- main: 'var(--color-primary)',
26
- contrast: 'var(--color-primary-contrast)'
27
- },
28
- secondary: {
29
- main: 'var(--color-secondary)',
30
- contrast: 'var(--color-secondary-contrast)'
31
- },
32
- error: {
33
- main: 'var(--color-state-alert)'
34
- },
35
- warning: {
36
- main: 'var(--color-state-warning)'
37
- },
38
- success: {
39
- main: 'var(--color-state-ok)'
40
- },
41
- cta: {
42
- main: 'var(--color-button-cta)',
43
- contrast: 'var(--color-button-cta-contrast)'
44
- },
45
- text: {
46
- primary: 'var(--color-text-high-emphasis)',
47
- secondary: 'var(--color-text-medium-emphasis)',
48
- tertiary: 'var(--color-text-low-emphasis)'
49
- }
21
+ const getContrastText = options => {
22
+ const {
23
+ background,
24
+ threshold,
25
+ textContrastColorLight = defaultTextLight.primary,
26
+ textContrastColorDark = defaultTextDark.primary
27
+ } = options ?? {};
28
+ if (!isColor(background)) {
29
+ return textContrastColorLight;
30
+ }
31
+ const contrastValue = getContrastRatio(background, textContrastColorDark, '#fff');
32
+ return contrastValue >= threshold ? textContrastColorDark : textContrastColorLight;
33
+ };
34
+ /**
35
+ * Adds a light or dark variant to a color intent if not already provided.
36
+ * @param options The options for adding the sub color.
37
+ * @returns The augmented color intent with the new variant added if it was
38
+ * missing.
39
+ */
40
+ const addSubColor = options => {
41
+ const {
42
+ intent,
43
+ direction,
44
+ tonalOffset
45
+ } = options ?? {};
46
+ const tonalOffsetLight = tonalOffset;
47
+ const tonalOffsetDark = tonalOffset * 1.5;
48
+ const result = {
49
+ ...intent
50
50
  };
51
- return {
52
- ...palette,
53
- grey
51
+ if (!intent[direction]) {
52
+ if (direction === 'light') {
53
+ // @ts-expect-error - We are sure about the type here
54
+ result.light = lighten(intent.main, tonalOffsetLight);
55
+ } else if (direction === 'dark') {
56
+ // @ts-expect-error - We are sure about the type here
57
+ result.dark = darken(intent.main, tonalOffsetDark);
58
+ }
59
+ }
60
+ return result;
61
+ };
62
+ /**
63
+ * Creates an augmented color object with "main", "dark" and "light" color + contrast text helper
64
+ * @param options The options for augmenting the color.
65
+ * @returns The augmented color object.
66
+ */
67
+ const augmentColor = options => {
68
+ const {
69
+ color,
70
+ tonalOffset = 0.2,
71
+ contrastThreshold = 3,
72
+ textContrastColorLight,
73
+ textContrastColorDark
74
+ } = options ?? {};
75
+ if (!color?.main || !isColor(color.main)) {
76
+ return color;
77
+ }
78
+ let result = {
79
+ ...color
54
80
  };
81
+ result = addSubColor({
82
+ intent: result,
83
+ direction: 'dark',
84
+ tonalOffset
85
+ });
86
+ result = addSubColor({
87
+ intent: result,
88
+ direction: 'light',
89
+ tonalOffset
90
+ });
91
+ if (!result.contrastText) {
92
+ result.contrastText = getContrastText({
93
+ background: result.main,
94
+ threshold: contrastThreshold,
95
+ textContrastColorLight,
96
+ textContrastColorDark
97
+ });
98
+ }
99
+ return result;
100
+ };
101
+
102
+ /**
103
+ * Recursively transforms all color values in the palette using the provided transform function.
104
+ * @param palette The palette to transform.
105
+ * @param transformFn The function to apply to each color value in the palette.
106
+ * @returns The transformed palette
107
+ */
108
+ const transformPalette = (palette, transformFn) => {
109
+ // @ts-expect-error - We are sure about the type here
110
+ function recurse(obj) {
111
+ return Object.fromEntries(
112
+ // @ts-expect-error - Object.entries is hard to type
113
+ Object.entries(obj).map(([key, value]) => {
114
+ if (isPlainObject(value)) {
115
+ return [key, recurse(value)];
116
+ }
117
+ if (isColor(value)) {
118
+ // @ts-expect-error - We are sure about the type here
119
+ return [key, transformFn(value)];
120
+ }
121
+ return [key, value];
122
+ }));
123
+ }
124
+ return recurse(palette);
125
+ };
126
+ /**
127
+ * Unifies color values in the palette to HSL and adds light/dark variants and contrast text
128
+ * where missing.
129
+ * @param options The options for extending the palette.
130
+ * @returns The extended palette.
131
+ */
132
+ export const extendPalette = options => {
133
+ const {
134
+ palette,
135
+ tonalOffset,
136
+ contrastThreshold
137
+ } = options ?? {};
138
+ if (!isPlainObject(palette)) {
139
+ return palette;
140
+ }
141
+
142
+ // Convert all colors to HSL first to ensure consistent color manipulation
143
+ const hslPalette = transformPalette(palette, toHsl);
144
+
145
+ // Augment the palette with light/dark variants and contrast text
146
+ const augmentedPalette = Object.entries(hslPalette).reduce((acc, [key, value]) => {
147
+ // @ts-expect-error - We are sure about the type here
148
+ acc[key] = augmentColor({
149
+ // @ts-expect-error - We are sure about the type here
150
+ color: value,
151
+ tonalOffset,
152
+ contrastThreshold
153
+ });
154
+ return acc;
155
+ }, {});
156
+ return augmentedPalette;
157
+ };
158
+
159
+ /**
160
+ * Creates a palette object for the theme.
161
+ * @param inputPalette The input palette options.
162
+ * @returns The palette object.
163
+ */
164
+ const createPalette = inputPalette => {
165
+ const {
166
+ tonalOffset = 0.2,
167
+ contrastThreshold = 3,
168
+ ...paletteOptions
169
+ } = inputPalette ?? {};
170
+ const mergedPalette = extendPalette({
171
+ palette: merge({}, paletteSchema, paletteOptions),
172
+ tonalOffset,
173
+ contrastThreshold
174
+ });
175
+ return mergedPalette;
55
176
  };
56
177
  export default createPalette;
@@ -0,0 +1,165 @@
1
+ type ColorPartialKeys = 50 | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 'A100' | 'A200' | 'A400' | 'A700';
2
+ export type ColorPartial = Record<ColorPartialKeys, string>;
3
+ /**
4
+ * Represents a color with variants that are derived from the main color. Also includes a contrast
5
+ * text color that can be used for text on top of the main color.
6
+ */
7
+ export type AugmentedPaletteColor = {
8
+ /**
9
+ * The main shade of the color
10
+ */
11
+ main: string;
12
+ /**
13
+ * A lighter shade of `main`
14
+ */
15
+ light?: string;
16
+ /**
17
+ * A darker shade of `main`
18
+ */
19
+ dark?: string;
20
+ /**
21
+ * Text color, intended to contrast with `main`
22
+ */
23
+ contrastText?: string;
24
+ };
25
+ /**
26
+ * Variant of the augmented palette color type where all properties are required.
27
+ * Used for the final theme palette that can be used via `const { palette } = useTheme();`
28
+ */
29
+ type AugmentedPaletteColorForTheme = Required<AugmentedPaletteColor>;
30
+ type Leaf = string | number | boolean | null | undefined;
31
+ /**
32
+ * Derives the **resolved** palette type from `paletteSchema`.
33
+ *
34
+ * Represents the palette after theme creation, where all color variants
35
+ * are guaranteed to exist.
36
+ *
37
+ * Rules:
38
+ * - Leaf values become `string`.
39
+ * - Objects containing `main` become `AugmentedPaletteColorForTheme`
40
+ * (all variants required).
41
+ * - Other objects are recursively mapped.
42
+ *
43
+ */
44
+ type PaletteFromSchema<T> = T extends Leaf ? string : T extends readonly (infer U)[] ? readonly PaletteFromSchema<U>[] : T extends object ? ('main' extends keyof T ? AugmentedPaletteColorForTheme : {
45
+ [K in keyof T]: PaletteFromSchema<T[K]>;
46
+ }) : string;
47
+ /**
48
+ * Derives the **input** palette type from `paletteSchema`.
49
+ *
50
+ * Represents what needs to be provided to `createTheme`.
51
+ *
52
+ * Rules:
53
+ * - Leaf values become `string`.
54
+ * - Objects containing `main` require `main` and allow optional
55
+ * `light`, `dark`, and `contrastText`.
56
+ * - Other objects are recursively mapped.
57
+ */
58
+ type PaletteInputFromSchema<T> = T extends Leaf ? string : T extends readonly (infer U)[] ? readonly PaletteInputFromSchema<U>[] : T extends object ? ('main' extends keyof T ? {
59
+ main: string;
60
+ light?: string;
61
+ dark?: string;
62
+ contrastText?: string;
63
+ } : {
64
+ [K in keyof T]: PaletteInputFromSchema<T[K]>;
65
+ }) : string;
66
+ type PaletteKeysWithMain<T> = {
67
+ [K in keyof T]-?: T[K] extends {
68
+ main: unknown;
69
+ } ? K : never;
70
+ }[keyof T];
71
+ export type PaletteColorsWithMain = PaletteKeysWithMain<PaletteFromSchema<typeof paletteSchema>>;
72
+ /**
73
+ * Schema that defines the shape of the palette object.
74
+ *
75
+ * Every new color added to the palette should be added here to get proper typings for the
76
+ * theme palette.
77
+ */
78
+ export declare const paletteSchema: {
79
+ /**
80
+ * Color scheme for primary interface elements
81
+ */
82
+ readonly primary: {
83
+ readonly main: "";
84
+ };
85
+ /**
86
+ * Color scheme for secondary interface elements
87
+ */
88
+ readonly secondary: {
89
+ readonly main: "";
90
+ };
91
+ /**
92
+ * Color scheme for elements that the user should be made aware of
93
+ */
94
+ readonly error: {
95
+ readonly main: "";
96
+ };
97
+ /**
98
+ * Color scheme for potentially dangerous actions or important messages
99
+ */
100
+ readonly warning: {
101
+ readonly main: "";
102
+ };
103
+ /**
104
+ * Color scheme for the successful completion of an action that the user triggered
105
+ */
106
+ readonly success: {
107
+ readonly main: "";
108
+ };
109
+ /**
110
+ * Colors to be used for the background of various elements
111
+ */
112
+ readonly background: {
113
+ /**
114
+ * The color used for the background of the application
115
+ */
116
+ readonly default: "";
117
+ };
118
+ readonly text: {
119
+ readonly primary: "";
120
+ readonly secondary: "";
121
+ };
122
+ /**
123
+ * Palette with grey colors, intended for backgrounds, borders, and dividers.
124
+ * The numbers represent the lightness of the color,
125
+ */
126
+ readonly grey: {
127
+ readonly 50: "#fafafa";
128
+ readonly 100: "#f5f5f5";
129
+ readonly 200: "#eeeeee";
130
+ readonly 300: "#e0e0e0";
131
+ readonly 400: "#bdbdbd";
132
+ readonly 500: "#9e9e9e";
133
+ readonly 600: "#757575";
134
+ readonly 700: "#616161";
135
+ readonly 800: "#424242";
136
+ readonly 900: "#212121";
137
+ readonly A100: "#f5f5f5";
138
+ readonly A200: "#eeeeee";
139
+ readonly A400: "#bdbdbd";
140
+ readonly A700: "#616161";
141
+ };
142
+ readonly action: {
143
+ readonly disabled: "#808080";
144
+ readonly disabledBackground: "#CCCCCC";
145
+ };
146
+ };
147
+ /**
148
+ * Additional settings for the palette
149
+ */
150
+ interface PaletteOptionsExtensions {
151
+ /**
152
+ * The tonal offset is used to calculate the light and dark variants of a color if they are not provided.
153
+ * @default 0.2
154
+ */
155
+ tonalOffset?: number;
156
+ /**
157
+ * The contrast threshold is used to determine which contrast text color to use for a given background
158
+ * @default 3
159
+ */
160
+ contrastThreshold?: number;
161
+ }
162
+ export type PaletteOptions = PaletteInputFromSchema<typeof paletteSchema> & PaletteOptionsExtensions;
163
+ export type Palette = PaletteFromSchema<typeof paletteSchema>;
164
+ export {};
165
+ //# sourceMappingURL=createPalette.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createPalette.types.d.ts","sourceRoot":"","sources":["../../../../styles/theme/createTheme/createPalette.types.ts"],"names":[],"mappings":"AAAA,KAAK,gBAAgB,GACjB,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GACxD,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;AAEtC,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAC;AAE5D;;;GAGG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;GAGG;AACH,KAAK,6BAA6B,GAAG,QAAQ,CAAC,qBAAqB,CAAC,CAAA;AAEpE,KAAK,IAAI,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC;AAEzD;;;;;;;;;;;;GAYG;AACH,KAAK,iBAAiB,CAAC,CAAC,IACtB,CAAC,SAAS,IAAI,GAAG,MAAM,GACrB,CAAC,SAAS,SAAS,CAAC,MAAM,CAAC,CAAC,EAAE,GAAG,SAAS,iBAAiB,CAAC,CAAC,CAAC,EAAE,GAChE,CAAC,SAAS,MAAM,GACd,CAAC,MAAM,SAAS,MAAM,CAAC,GACnB,6BAA6B,GAC7B;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAAE,CAAC,GAChD,MAAM,CAAC;AAEb;;;;;;;;;;GAUG;AACH,KAAK,sBAAsB,CAAC,CAAC,IAC3B,CAAC,SAAS,IAAI,GAAG,MAAM,GACrB,CAAC,SAAS,SAAS,CAAC,MAAM,CAAC,CAAC,EAAE,GAAG,SAAS,sBAAsB,CAAC,CAAC,CAAC,EAAE,GACrE,CAAC,SAAS,MAAM,GACd,CAAC,MAAM,SAAS,MAAM,CAAC,GACnB;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,CAAA;CAAE,GACtE;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAAE,CAAC,GACrD,MAAM,CAAC;AAEb,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAC3B,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS;QAAE,IAAI,EAAE,OAAO,CAAA;KAAE,GAAG,CAAC,GAAG,KAAK;CAC7D,CAAC,MAAM,CAAC,CAAC,CAAC;AAGX,MAAM,MAAM,qBAAqB,GAAG,mBAAmB,CAAC,iBAAiB,CAAC,OAAO,aAAa,CAAC,CAAC,CAAC;AAmBjG;;;;;GAKG;AACH,eAAO,MAAM,aAAa;IACxB;;OAEG;;;;IAEH;;OAEG;;;;IAEH;;OAEG;;;;IAEH;;OAEG;;;;IAEH;;OAEG;;;;IAEH;;OAEG;;QAED;;WAEG;;;;;;;IAOL;;;OAGG;;;;;;;;;;;;;;;;;;;;;CAMK,CAAC;AAEX;;GAEG;AACH,UAAU,wBAAwB;IAChC;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAGD,MAAM,MAAM,cAAc,GAAG,sBAAsB,CAAC,OAAO,aAAa,CAAC,GACrE,wBAAwB,CAAC;AAG7B,MAAM,MAAM,OAAO,GAAG,iBAAiB,CAAC,OAAO,aAAa,CAAC,CAAA"}
@@ -0,0 +1,123 @@
1
+ /**
2
+ * Represents a color with variants that are derived from the main color. Also includes a contrast
3
+ * text color that can be used for text on top of the main color.
4
+ */
5
+
6
+ /**
7
+ * Variant of the augmented palette color type where all properties are required.
8
+ * Used for the final theme palette that can be used via `const { palette } = useTheme();`
9
+ */
10
+
11
+ /**
12
+ * Derives the **resolved** palette type from `paletteSchema`.
13
+ *
14
+ * Represents the palette after theme creation, where all color variants
15
+ * are guaranteed to exist.
16
+ *
17
+ * Rules:
18
+ * - Leaf values become `string`.
19
+ * - Objects containing `main` become `AugmentedPaletteColorForTheme`
20
+ * (all variants required).
21
+ * - Other objects are recursively mapped.
22
+ *
23
+ */
24
+
25
+ /**
26
+ * Derives the **input** palette type from `paletteSchema`.
27
+ *
28
+ * Represents what needs to be provided to `createTheme`.
29
+ *
30
+ * Rules:
31
+ * - Leaf values become `string`.
32
+ * - Objects containing `main` require `main` and allow optional
33
+ * `light`, `dark`, and `contrastText`.
34
+ * - Other objects are recursively mapped.
35
+ */
36
+
37
+ // Creates a type with only the keys of the palette that have a "main" color
38
+
39
+ const grey = {
40
+ 50: '#fafafa',
41
+ 100: '#f5f5f5',
42
+ 200: '#eeeeee',
43
+ 300: '#e0e0e0',
44
+ 400: '#bdbdbd',
45
+ 500: '#9e9e9e',
46
+ 600: '#757575',
47
+ 700: '#616161',
48
+ 800: '#424242',
49
+ 900: '#212121',
50
+ A100: '#f5f5f5',
51
+ A200: '#eeeeee',
52
+ A400: '#bdbdbd',
53
+ A700: '#616161'
54
+ };
55
+
56
+ /**
57
+ * Schema that defines the shape of the palette object.
58
+ *
59
+ * Every new color added to the palette should be added here to get proper typings for the
60
+ * theme palette.
61
+ */
62
+ export const paletteSchema = {
63
+ /**
64
+ * Color scheme for primary interface elements
65
+ */
66
+ primary: {
67
+ main: ''
68
+ },
69
+ /**
70
+ * Color scheme for secondary interface elements
71
+ */
72
+ secondary: {
73
+ main: ''
74
+ },
75
+ /**
76
+ * Color scheme for elements that the user should be made aware of
77
+ */
78
+ error: {
79
+ main: ''
80
+ },
81
+ /**
82
+ * Color scheme for potentially dangerous actions or important messages
83
+ */
84
+ warning: {
85
+ main: ''
86
+ },
87
+ /**
88
+ * Color scheme for the successful completion of an action that the user triggered
89
+ */
90
+ success: {
91
+ main: ''
92
+ },
93
+ /**
94
+ * Colors to be used for the background of various elements
95
+ */
96
+ background: {
97
+ /**
98
+ * The color used for the background of the application
99
+ */
100
+ default: ''
101
+ },
102
+ text: {
103
+ primary: '',
104
+ secondary: ''
105
+ },
106
+ /**
107
+ * Palette with grey colors, intended for backgrounds, borders, and dividers.
108
+ * The numbers represent the lightness of the color,
109
+ */
110
+ grey,
111
+ action: {
112
+ disabled: '#808080',
113
+ disabledBackground: '#CCCCCC'
114
+ }
115
+ };
116
+
117
+ /**
118
+ * Additional settings for the palette
119
+ */
120
+
121
+ // The palette options type represents the palette input that can be provided to createTheme
122
+
123
+ // The final palette type represents the palette after theme creation
@@ -0,0 +1,11 @@
1
+ export interface Shape {
2
+ borderRadius: number | string;
3
+ }
4
+ export type ShapeOptions = Partial<Shape>;
5
+ /**
6
+ * Creates a shape object based on the provided options, with defaults for any missing values.
7
+ * @param options The shape options to customize the shape object.
8
+ * @returns A shape object with the specified options and defaults for any missing values.
9
+ */
10
+ export default function createShape(options?: ShapeOptions): Shape;
11
+ //# sourceMappingURL=createShape.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createShape.d.ts","sourceRoot":"","sources":["../../../../styles/theme/createTheme/createShape.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,KAAK;IACpB,YAAY,EAAE,MAAM,GAAG,MAAM,CAAC;CAC/B;AAED,MAAM,MAAM,YAAY,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;AAM1C;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,OAAO,GAAE,YAAiB,GAAG,KAAK,CAKrE"}
@@ -0,0 +1,15 @@
1
+ const shape = {
2
+ borderRadius: 4
3
+ };
4
+
5
+ /**
6
+ * Creates a shape object based on the provided options, with defaults for any missing values.
7
+ * @param options The shape options to customize the shape object.
8
+ * @returns A shape object with the specified options and defaults for any missing values.
9
+ */
10
+ export default function createShape(options = {}) {
11
+ return {
12
+ ...shape,
13
+ ...options
14
+ };
15
+ }
@@ -0,0 +1,30 @@
1
+ import type { ColorSchemeOptions, BaseTheme } from './types';
2
+ /**
3
+ * Helper function to add an alpha value to a color.
4
+ * @param color The color to modify.
5
+ * @param coefficient The alpha coefficient to apply, either a number or a string representing a CSS calculation.
6
+ * @returns A string representing the color with the applied alpha value.
7
+ */
8
+ export declare const alpha: (color: string, coefficient: number | string) => string;
9
+ /**
10
+ * Helper function to lighten a color by a given coefficient.
11
+ * @param color The color to modify.
12
+ * @param coefficient The coefficient to apply, either a number or a string representing a CSS calculation.
13
+ * @returns A string representing the lightened color.
14
+ */
15
+ export declare const lighten: (color: string, coefficient?: number | string) => string;
16
+ /**
17
+ * Helper function to darken a color by a given coefficient.
18
+ * @param color The color to modify.
19
+ * @param coefficient The coefficient to apply, either a number or a string representing a CSS calculation.
20
+ * @returns A string representing the darkened color.
21
+ */
22
+ export declare const darken: (color: string, coefficient?: number | string) => string;
23
+ /**
24
+ * Creates a theme object for a given color scheme (light or dark).
25
+ * @param colorScheme The color scheme options.
26
+ * @returns A theme object for the given color scheme.
27
+ */
28
+ declare const createThemeFromColorScheme: (colorScheme: ColorSchemeOptions) => BaseTheme;
29
+ export default createThemeFromColorScheme;
30
+ //# sourceMappingURL=createThemeFromColorScheme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createThemeFromColorScheme.d.ts","sourceRoot":"","sources":["../../../../styles/theme/createTheme/createThemeFromColorScheme.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAc7D;;;;;GAKG;AACH,eAAO,MAAM,KAAK,GAChB,OAAO,MAAM,EACb,aAAa,MAAM,GAAG,MAAM,KAC3B,MAAkH,CAAC;AAEtH;;;;;GAKG;AACH,eAAO,MAAM,OAAO,GAClB,OAAO,MAAM,EACb,cAAa,MAAM,GAAG,MAAY,KACjC,MAAuF,CAAC;AAE3F;;;;;GAKG;AACH,eAAO,MAAM,MAAM,GACjB,OAAO,MAAM,EACb,cAAa,MAAM,GAAG,MAAY,KACjC,MAAuF,CAAC;AAE3F;;;;GAIG;AACH,QAAA,MAAM,0BAA0B,GAAI,aAAa,kBAAkB,KAAG,SA0BrE,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
@@ -0,0 +1,70 @@
1
+ import createPalette from "./createPalette";
2
+ import createTypography from "./createTypography";
3
+ import createComponents from "./createComponents";
4
+ import createShape from "./createShape";
5
+ import shadows from "./shadows";
6
+ /**
7
+ * Calculates the percentage value for a given coefficient, which can be a number or a string representing a CSS calculation.
8
+ * @param coefficient The coefficient to convert, either a number or a string.
9
+ * @returns A string representing the percentage value of the coefficient.
10
+ */
11
+ const coefficientToPercentage = coefficient => {
12
+ if (typeof coefficient === 'number') {
13
+ return `${(coefficient * 100).toFixed(0)}%`;
14
+ }
15
+ return `calc((${coefficient}) * 100%)`;
16
+ };
17
+
18
+ /**
19
+ * Helper function to add an alpha value to a color.
20
+ * @param color The color to modify.
21
+ * @param coefficient The alpha coefficient to apply, either a number or a string representing a CSS calculation.
22
+ * @returns A string representing the color with the applied alpha value.
23
+ */
24
+ export const alpha = (color, coefficient) => `oklch(from ${color} l c h / ${typeof coefficient === 'string' ? `calc(${coefficient})` : coefficient})`;
25
+
26
+ /**
27
+ * Helper function to lighten a color by a given coefficient.
28
+ * @param color The color to modify.
29
+ * @param coefficient The coefficient to apply, either a number or a string representing a CSS calculation.
30
+ * @returns A string representing the lightened color.
31
+ */
32
+ export const lighten = (color, coefficient = 0.2) => `color-mix(in oklch, ${color}, #fff ${coefficientToPercentage(coefficient)})`;
33
+
34
+ /**
35
+ * Helper function to darken a color by a given coefficient.
36
+ * @param color The color to modify.
37
+ * @param coefficient The coefficient to apply, either a number or a string representing a CSS calculation.
38
+ * @returns A string representing the darkened color.
39
+ */
40
+ export const darken = (color, coefficient = 0.2) => `color-mix(in oklch, ${color}, #000 ${coefficientToPercentage(coefficient)})`;
41
+
42
+ /**
43
+ * Creates a theme object for a given color scheme (light or dark).
44
+ * @param colorScheme The color scheme options.
45
+ * @returns A theme object for the given color scheme.
46
+ */
47
+ const createThemeFromColorScheme = colorScheme => {
48
+ const {
49
+ palette: paletteInput = {},
50
+ typography: typographyInput = {},
51
+ components: componentsInput = {},
52
+ shape: shapeInput = {}
53
+ } = colorScheme;
54
+ const palette = createPalette(paletteInput);
55
+ const typography = createTypography(palette, typographyInput);
56
+ const components = createComponents(componentsInput);
57
+ const shape = createShape(shapeInput);
58
+ const theme = {
59
+ palette,
60
+ typography,
61
+ components,
62
+ shape,
63
+ shadows,
64
+ alpha,
65
+ lighten,
66
+ darken
67
+ };
68
+ return theme;
69
+ };
70
+ export default createThemeFromColorScheme;