@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,14 +1,5 @@
1
1
  import _merge from "lodash/merge";
2
2
  import { isDev } from '@shopgate/engage/core/helpers';
3
-
4
- /**
5
- * Round a number to a fixed precision of five decimal places.
6
- * @param {number} value The value to round.
7
- * @returns {number} The rounded value.
8
- */
9
- function round(value) {
10
- return Math.round(value * 1e5) / 1e5;
11
- }
12
3
  const caseAllCaps = {
13
4
  textTransform: 'uppercase'
14
5
  };
@@ -25,11 +16,15 @@ const defaultFontFamily = '"Roboto", "Helvetica", "Arial", sans-serif';
25
16
  export default function createTypography(palette, typography) {
26
17
  const {
27
18
  fontFamily = defaultFontFamily,
28
- fontSize = 16,
19
+ // The default font size of the Material Specification.
20
+ fontSize = 14,
29
21
  fontWeightLight = 300,
30
22
  fontWeightRegular = 400,
31
23
  fontWeightMedium = 500,
32
24
  fontWeightBold = 700,
25
+ // Tell the theme what's the font-size on the html element.
26
+ // 16px is the default font-size used by browsers.
27
+ htmlFontSize = 16,
33
28
  // Apply the CSS properties to all the variants.
34
29
  allVariants,
35
30
  pxToRem: pxToRem2,
@@ -40,13 +35,14 @@ export default function createTypography(palette, typography) {
40
35
  console.error('Shopgate Theme: `fontSize` is required to be a number.');
41
36
  }
42
37
  }
38
+ const coef = fontSize / 14;
43
39
 
44
40
  /**
45
41
  * Calculates a rem value for a passed pixel value.
46
42
  * @param {number} size The source value in pixels.
47
43
  * @returns {string} The result value in rem.
48
44
  */
49
- const pxToRem = size => `${round(size / fontSize)}rem`;
45
+ const pxToRem = size => `${size / htmlFontSize * coef}rem`;
50
46
 
51
47
  /**
52
48
  * Creates a typography variant object.
@@ -0,0 +1,10 @@
1
+ import type { BaseTheme } from '..';
2
+ import type { CssVarsParserReturnValue } from './cssVarsParser';
3
+ /**
4
+ * Augments the CSS variables for the color palette by adding light and dark variants for each color.
5
+ * @param cssParserReturn The result from the CSS variables parser.
6
+ * @param theme The base theme object, which includes the palette and the lighten/darken functions.
7
+ * @returns An object containing the augmented CSS variables.
8
+ */
9
+ export default function cssVarsColorAugmentation(cssParserReturn: CssVarsParserReturnValue<BaseTheme>, theme: BaseTheme): CssVarsParserReturnValue<BaseTheme>;
10
+ //# sourceMappingURL=cssVarsColorAugmentation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cssVarsColorAugmentation.d.ts","sourceRoot":"","sources":["../../../../../styles/theme/createTheme/helpers/cssVarsColorAugmentation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AACpC,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AA+BhE;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,wBAAwB,CAC9C,eAAe,EAAE,wBAAwB,CAAC,SAAS,CAAC,EACpD,KAAK,EAAE,SAAS,GACf,wBAAwB,CAAC,SAAS,CAAC,CAerC"}
@@ -0,0 +1,44 @@
1
+ function addAugmentationToVars(vars, theme) {
2
+ if (!vars.palette) return vars;
3
+ const augmentedPalette = {
4
+ ...vars.palette
5
+ };
6
+ Object.keys(augmentedPalette).forEach(key => {
7
+ // @ts-expect-error - We are sure about the type here
8
+ const paletteEntry = augmentedPalette[key];
9
+ if (paletteEntry && typeof paletteEntry === 'object' && paletteEntry.main) {
10
+ // @ts-expect-error - We are sure about the type here
11
+ augmentedPalette[key] = {
12
+ ...paletteEntry,
13
+ // Inject css color-mix function to create light and dark variants of the main color
14
+ light: theme.lighten(paletteEntry.main),
15
+ dark: theme.darken(paletteEntry.main)
16
+ };
17
+ }
18
+ });
19
+ return {
20
+ ...vars,
21
+ palette: augmentedPalette
22
+ };
23
+ }
24
+
25
+ /**
26
+ * Augments the CSS variables for the color palette by adding light and dark variants for each color.
27
+ * @param cssParserReturn The result from the CSS variables parser.
28
+ * @param theme The base theme object, which includes the palette and the lighten/darken functions.
29
+ * @returns An object containing the augmented CSS variables.
30
+ */
31
+ export default function cssVarsColorAugmentation(cssParserReturn, theme) {
32
+ const {
33
+ vars: varsInput,
34
+ varsWithDefaults: varsWithDefaultsInput,
35
+ ...rest
36
+ } = cssParserReturn;
37
+ const vars = addAugmentationToVars(varsInput, theme);
38
+ const varsWithDefaults = addAugmentationToVars(varsWithDefaultsInput, theme);
39
+ return {
40
+ ...rest,
41
+ vars,
42
+ varsWithDefaults
43
+ };
44
+ }
@@ -0,0 +1,58 @@
1
+ /**
2
+ * @file Helper function to parse a theme-like object to generate matching CSS variables.
3
+ * Heavily inspired by Material UI's implementation:
4
+ * @see https://github.com/mui/material-ui/blob/master/packages/mui-system/src/cssVars/cssVarsParser.ts
5
+ */
6
+ type CssVarsParserOptions = {
7
+ prefix?: string;
8
+ shouldSkipGeneratingVar?: (objectPathKeys: Array<string>, value: string | number) => boolean;
9
+ };
10
+ export type CssVarsParserReturnValue<T> = {
11
+ /**
12
+ * An object containing the CSS variables as keys and their corresponding values
13
+ * For example: { '--sg-palette-primary-main': '#000000' }
14
+ */
15
+ css: Record<string, string | number>;
16
+ /**
17
+ * An object with the same structure as the input theme, but with values replaced by CSS variable references.
18
+ * For example: { palette: { primary: { main: 'var(--sg-palette-primary-main)' } }
19
+ */
20
+ vars: T;
21
+ /**
22
+ * An object with the same structure as the input theme, but with values replaced by CSS variable references with fallback values.
23
+ * For example: { palette: { primary: { main: 'var(--sg-palette-primary-main, #000000)' } }
24
+ */
25
+ varsWithDefaults: T;
26
+ /**
27
+ * An object with the same structure as the input theme, but with values replaced by the raw CSS variable names.
28
+ * For example: { palette: { primary: { main: '--sg-palette-primary-main' } }
29
+ */
30
+ varNames: T;
31
+ };
32
+ /**
33
+ * Helper function to parse a theme-like object to generate matching CSS variables.
34
+ * It will return an object containing `css`, `vars`, and `varsWithDefaults`.
35
+ * The `css` object can be used to set CSS variables in a style tag,
36
+ * the `vars` object can be used to reference the CSS variables in the theme,
37
+ * and the `varsWithDefaults` object can be used to reference the CSS variables with fallback
38
+ * values in the theme.
39
+ *
40
+ * @param theme A theme-like object to be parsed
41
+ * @param options Options for parsing the theme
42
+ * @returns `css` is the stylesheet, `vars` is an object to get css variable (same structure as theme), `varsWithDefaults`
43
+ * is an object to get css variable with fallback values (same structure as theme), `varsRaw` is an object to get the raw css
44
+ * variable name (same structure as theme).
45
+ * @example
46
+ * const { css, vars, varsRaw } = parser({
47
+ * fontSize: 12,
48
+ * lineHeight: 1.2,
49
+ * palette: { primary: { 500: 'var(--color)' } }
50
+ * }, { prefix: 'foo' })
51
+ *
52
+ * console.log(css) // { '--foo-fontSize': '12px', '--foo-lineHeight': 1.2, '--foo-palette-primary-500': 'var(--color)' }
53
+ * console.log(vars) // { fontSize: 'var(--foo-fontSize)', lineHeight: 'var(--foo-lineHeight)', palette: { primary: { 500: 'var(--foo-palette-primary-500)' } } }
54
+ * console.log(varsRaw) // { fontSize: '--foo-fontSize', lineHeight: '--foo-lineHeight', palette: { primary: { 500: '--foo-palette-primary-500' } } }
55
+ */
56
+ export default function cssVarsParser<T extends object>(theme: object, options?: CssVarsParserOptions): CssVarsParserReturnValue<T>;
57
+ export {};
58
+ //# sourceMappingURL=cssVarsParser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cssVarsParser.d.ts","sourceRoot":"","sources":["../../../../../styles/theme/createTheme/helpers/cssVarsParser.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AA4HH,KAAK,oBAAoB,GAAG;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,uBAAuB,CAAC,EAAE,CAAC,cAAc,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,KAAK,OAAO,CAAC;CAC9F,CAAC;AAEF,MAAM,MAAM,wBAAwB,CAAC,CAAC,IAAI;IACxC;;;OAGG;IACH,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;IACrC;;;OAGG;IACH,IAAI,EAAE,CAAC,CAAC;IACR;;;OAGG;IACH,gBAAgB,EAAE,CAAC,CAAC;IACpB;;;OAGG;IACH,QAAQ,EAAE,CAAC,CAAC;CACb,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,CAAC,SAAS,MAAM,EACpD,KAAK,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,oBAAoB,GAC7B,wBAAwB,CAAC,CAAC,CAAC,CA+D7B"}
@@ -0,0 +1,173 @@
1
+ import "core-js/modules/es.array.includes.js";
2
+ /**
3
+ * @file Helper function to parse a theme-like object to generate matching CSS variables.
4
+ * Heavily inspired by Material UI's implementation:
5
+ * @see https://github.com/mui/material-ui/blob/master/packages/mui-system/src/cssVars/cssVarsParser.ts
6
+ */
7
+
8
+ /**
9
+ * This function creates an object from keys, value and then assign to target
10
+ *
11
+ * @param obj The target object to be assigned
12
+ * @param keys An array of keys to create the nested object
13
+ * @param value The value to be assigned to the deepest key
14
+ * @param arrayKeys An array of keys that are arrays, so the function will create
15
+ * array instead of object when it encounters these keys
16
+ * @example
17
+ * const source = {}
18
+ * assignNestedKeys(source, ['palette', 'primary'], 'var(--palette-primary)')
19
+ * console.log(source) // { palette: { primary: 'var(--palette-primary)' } }
20
+ * @example
21
+ * const source = { palette: { primary: 'var(--palette-primary)' } }
22
+ * assignNestedKeys(source, ['palette', 'secondary'], 'var(--palette-secondary)')
23
+ * console.log(source) // { palette: { primary: 'var(--palette-primary)', secondary: 'var(--palette-secondary)' } }
24
+ */
25
+ const assignNestedKeys = (obj, keys, value, arrayKeys = []) => {
26
+ let temp = obj;
27
+ keys.forEach((k, index) => {
28
+ if (index === keys.length - 1) {
29
+ if (Array.isArray(temp)) {
30
+ temp[Number(k)] = value;
31
+ } else if (temp && typeof temp === 'object') {
32
+ temp[k] = value;
33
+ }
34
+ } else if (temp && typeof temp === 'object') {
35
+ if (!temp[k]) {
36
+ temp[k] = arrayKeys.includes(k) ? [] : {};
37
+ }
38
+ // @ts-expect-error - We are sure about the type here
39
+ temp = temp[k];
40
+ }
41
+ });
42
+ };
43
+
44
+ /**
45
+ * Walk through an object recursively and call the callback when the deepest key is reached
46
+ * and its value is not `undefined` | `null`.
47
+ * @param obj Source object
48
+ * @param callback A function that will be called when
49
+ * - the deepest key in source object is reached
50
+ * - the value of the deepest key is NOT `undefined` | `null`
51
+ * @param shouldSkipPaths A function that will be called before traversing the object,
52
+ * if it returns true, the current path will be skipped
53
+ * @example
54
+ * walkObjectDeep({ palette: { primary: { main: '#000000' } } }, console.log)
55
+ * // ['palette', 'primary', 'main'] '#000000'
56
+ */
57
+ const walkObjectDeep = (obj, callback, shouldSkipPaths) => {
58
+ function recurse(
59
+ // @ts-expect-error - We are sure about the type here
60
+ object, parentKeys = [], arrayKeys = []) {
61
+ Object.entries(object).forEach(([key, value]) => {
62
+ if (!shouldSkipPaths || !shouldSkipPaths([].concat(parentKeys, [key]))) {
63
+ if (value !== undefined && value !== null) {
64
+ if (typeof value === 'object' && Object.keys(value).length > 0) {
65
+ recurse(value, // @ts-expect-error - We are sure about the type here
66
+ [].concat(parentKeys, [key]), Array.isArray(value) ? [].concat(arrayKeys, [key]) : arrayKeys);
67
+ } else {
68
+ // @ts-expect-error - We are sure about the type here
69
+ callback([].concat(parentKeys, [key]), value, arrayKeys);
70
+ }
71
+ }
72
+ }
73
+ });
74
+ }
75
+ recurse(obj);
76
+ };
77
+
78
+ /**
79
+ * Get CSS value with unit if needed. For example, if the value is a number and the key is not
80
+ * unitless, it will add 'px' unit to the value.
81
+ * @param keys The keys of the value, used to determine if the value is unitless or not
82
+ * @param value The value to be converted to a CSS value, if it's a number
83
+ * and not unitless, it will be converted to a string with 'px' unit
84
+ * @returns The CSS value with unit if needed
85
+ */
86
+ const getCssValue = (keys, value) => {
87
+ if (typeof value === 'number') {
88
+ if (['lineHeight', 'fontWeight', 'opacity', 'zIndex'].some(prop => keys.includes(prop))) {
89
+ // CSS property that are unitless
90
+ return value;
91
+ }
92
+ const lastKey = keys[keys.length - 1];
93
+ if (lastKey.toLowerCase().includes('opacity')) {
94
+ // opacity values are unitless
95
+ return value;
96
+ }
97
+ return `${value}px`;
98
+ }
99
+ return value;
100
+ };
101
+ /**
102
+ * Helper function to parse a theme-like object to generate matching CSS variables.
103
+ * It will return an object containing `css`, `vars`, and `varsWithDefaults`.
104
+ * The `css` object can be used to set CSS variables in a style tag,
105
+ * the `vars` object can be used to reference the CSS variables in the theme,
106
+ * and the `varsWithDefaults` object can be used to reference the CSS variables with fallback
107
+ * values in the theme.
108
+ *
109
+ * @param theme A theme-like object to be parsed
110
+ * @param options Options for parsing the theme
111
+ * @returns `css` is the stylesheet, `vars` is an object to get css variable (same structure as theme), `varsWithDefaults`
112
+ * is an object to get css variable with fallback values (same structure as theme), `varsRaw` is an object to get the raw css
113
+ * variable name (same structure as theme).
114
+ * @example
115
+ * const { css, vars, varsRaw } = parser({
116
+ * fontSize: 12,
117
+ * lineHeight: 1.2,
118
+ * palette: { primary: { 500: 'var(--color)' } }
119
+ * }, { prefix: 'foo' })
120
+ *
121
+ * console.log(css) // { '--foo-fontSize': '12px', '--foo-lineHeight': 1.2, '--foo-palette-primary-500': 'var(--color)' }
122
+ * console.log(vars) // { fontSize: 'var(--foo-fontSize)', lineHeight: 'var(--foo-lineHeight)', palette: { primary: { 500: 'var(--foo-palette-primary-500)' } } }
123
+ * console.log(varsRaw) // { fontSize: '--foo-fontSize', lineHeight: '--foo-lineHeight', palette: { primary: { 500: '--foo-palette-primary-500' } } }
124
+ */
125
+ export default function cssVarsParser(theme, options) {
126
+ const {
127
+ prefix = 'sg',
128
+ shouldSkipGeneratingVar
129
+ } = options || {};
130
+ const css = {};
131
+ const vars = {};
132
+ const varsWithDefaults = {};
133
+ const varNames = {};
134
+ walkObjectDeep(theme, (keys, value, arrayKeys) => {
135
+ if (typeof value === 'string' || typeof value === 'number') {
136
+ if (!shouldSkipGeneratingVar || !shouldSkipGeneratingVar(keys, value)) {
137
+ // only create css & var if `shouldSkipGeneratingVar` return false
138
+ const cssVar = `--${prefix ? `${prefix}-` : ''}${keys.join('-')}`;
139
+ const resolvedValue = getCssValue(keys, value);
140
+
141
+ // Add the current css variable to the `css` object (--varName: value)
142
+ Object.assign(css, {
143
+ [cssVar]: resolvedValue
144
+ });
145
+
146
+ // Add the reference to the current css variable to the `vars` object
147
+ // e.g. ({ palette: { primary: { main: 'var(--varName)' } } })
148
+ assignNestedKeys(
149
+ // @ts-expect-error - We are sure about the type here
150
+ vars, keys, `var(${cssVar})`, arrayKeys);
151
+
152
+ // Add the reference to the current css variable with fallback value to the `varsWithDefaults` object
153
+ // e.g. ({ palette: { primary: { main: 'var(--varName, fallbackValue)' } } })
154
+ assignNestedKeys(
155
+ // @ts-expect-error - We are sure about the type here
156
+ varsWithDefaults, keys, `var(${cssVar}, ${resolvedValue})`, arrayKeys);
157
+
158
+ // Add the raw css variable name to the `varNames` object
159
+ // e.g. ({ palette: { primary: { main: '--varName' } } })
160
+ assignNestedKeys(
161
+ // @ts-expect-error - We are sure about the type here
162
+ varNames, keys, cssVar, arrayKeys);
163
+ }
164
+ }
165
+ }, keys => keys[0] === 'vars' // skip 'vars/*' paths
166
+ );
167
+ return {
168
+ css,
169
+ vars,
170
+ varsWithDefaults,
171
+ varNames
172
+ };
173
+ }
@@ -0,0 +1,28 @@
1
+ import type { ColorSchemeName, ColorSchemeSelectorType } from '..';
2
+ /**
3
+ * Function that generates a CSS selector string for a given color scheme.
4
+ */
5
+ export type GetColorSchemeSelector = (colorScheme: ColorSchemeName) => string;
6
+ /**
7
+ * Function that switches the color scheme by the corresponding selector type.
8
+ */
9
+ export type ActiveColorSchemeSwitcher = (colorScheme: ColorSchemeName) => void;
10
+ /**
11
+ * Creates a function that generates a CSS selector string for a given color scheme,
12
+ * based on the specified selector type (either 'data' for data attributes or 'class' for class names).
13
+ *
14
+ * @param selectorType The type of selector to be used, either 'data' for data attributes or
15
+ * 'class' for class names.
16
+ * @returns A function that generates the corresponding selector string.
17
+ */
18
+ export declare function createGetColorSchemeSelector(selectorType: ColorSchemeSelectorType): GetColorSchemeSelector;
19
+ /**
20
+ * Creates a function that switches the color scheme, based on the specified selector type
21
+ * (either 'data' for data attributes or 'class' for class names).
22
+ *
23
+ * @param selectorType The type of selector to be used, either 'data' for data attributes or
24
+ * 'class' for class names.
25
+ * @returns A function that switches the color scheme by the corresponding selector type.
26
+ */
27
+ export declare function createSetActiveColorScheme(selectorType: ColorSchemeSelectorType): ActiveColorSchemeSwitcher;
28
+ //# sourceMappingURL=cssVarsSelector.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cssVarsSelector.d.ts","sourceRoot":"","sources":["../../../../../styles/theme/createTheme/helpers/cssVarsSelector.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,uBAAuB,EAAE,MAAM,IAAI,CAAC;AAEnE;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,WAAW,EAAE,eAAe,KAAK,MAAM,CAAC;AAE9E;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG,CAAC,WAAW,EAAE,eAAe,KAAK,IAAI,CAAC;AAE/E;;;;;;;GAOG;AACH,wBAAgB,4BAA4B,CAC1C,YAAY,EAAE,uBAAuB,GACpC,sBAAsB,CAQxB;AAED;;;;;;;GAOG;AACH,wBAAgB,0BAA0B,CACxC,YAAY,EAAE,uBAAuB,GACpC,yBAAyB,CAW3B"}
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Function that generates a CSS selector string for a given color scheme.
3
+ */
4
+
5
+ /**
6
+ * Function that switches the color scheme by the corresponding selector type.
7
+ */
8
+
9
+ /**
10
+ * Creates a function that generates a CSS selector string for a given color scheme,
11
+ * based on the specified selector type (either 'data' for data attributes or 'class' for class names).
12
+ *
13
+ * @param selectorType The type of selector to be used, either 'data' for data attributes or
14
+ * 'class' for class names.
15
+ * @returns A function that generates the corresponding selector string.
16
+ */
17
+ export function createGetColorSchemeSelector(selectorType) {
18
+ return colorScheme => {
19
+ if (selectorType === 'data') {
20
+ return `[data-sg-color-scheme="${colorScheme}"]`;
21
+ }
22
+ return `.${colorScheme}`;
23
+ };
24
+ }
25
+
26
+ /**
27
+ * Creates a function that switches the color scheme, based on the specified selector type
28
+ * (either 'data' for data attributes or 'class' for class names).
29
+ *
30
+ * @param selectorType The type of selector to be used, either 'data' for data attributes or
31
+ * 'class' for class names.
32
+ * @returns A function that switches the color scheme by the corresponding selector type.
33
+ */
34
+ export function createSetActiveColorScheme(selectorType) {
35
+ return colorScheme => {
36
+ const root = document.documentElement;
37
+ if (selectorType === 'data') {
38
+ root.setAttribute('data-sg-color-scheme', colorScheme);
39
+ } else {
40
+ root.classList.remove('light', 'dark');
41
+ root.classList.add(colorScheme);
42
+ }
43
+ };
44
+ }
@@ -0,0 +1,6 @@
1
+ export { default as cssVarsParser } from './cssVarsParser';
2
+ export type { CssVarsParserReturnValue } from './cssVarsParser';
3
+ export { createGetColorSchemeSelector, createSetActiveColorScheme } from './cssVarsSelector';
4
+ export type { ActiveColorSchemeSwitcher, GetColorSchemeSelector } from './cssVarsSelector';
5
+ export { default as cssVarsColorAugmentation } from './cssVarsColorAugmentation';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../styles/theme/createTheme/helpers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,YAAY,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAChE,OAAO,EAAE,4BAA4B,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAC;AAC7F,YAAY,EAAE,yBAAyB,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAC3F,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,4BAA4B,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { default as cssVarsParser } from "./cssVarsParser";
2
+ export { createGetColorSchemeSelector, createSetActiveColorScheme } from "./cssVarsSelector";
3
+ export { default as cssVarsColorAugmentation } from "./cssVarsColorAugmentation";
@@ -1,41 +1,9 @@
1
- import { type Palette } from './createPalette'
2
- import { type Typography, type TypographyOptions } from './createTypography';
3
- import { type Breakpoints } from './createBreakpoints';
4
- import { type Spacing } from './createSpacing';
5
- import { type Transitions } from './transitions';
6
- import { type ZIndex } from './zIndex';
7
-
8
- export { type Breakpoint } from './createBreakpoints'
9
-
10
- export interface ThemeOptions {
11
- typography?: TypographyOptions | ((palette: Palette) => TypographyOptions);
12
- }
13
-
14
- export interface Theme {
15
- /**
16
- * The palette defines the theme colors.
17
- */
18
- palette: Palette;
19
- /**
20
- * API to simplify the use of media queries.
21
- */
22
- breakpoints: Breakpoints;
23
- /**
24
- * Use the spacing function to create consistent spacing.
25
- */
26
- spacing: Spacing;
27
- /**
28
- * API to simplify the creation of transitions
29
- */
30
- transitions: Transitions;
31
- /**
32
- * Font styles for multiple typography variants.
33
- */
34
- typography: Typography;
35
- /**
36
- * Reference to z-index values for multiple components.
37
- */
38
- zIndex: ZIndex;
39
- }
40
-
41
- export function createTheme(options?: ThemeOptions): Theme;
1
+ import { type ThemeOptions, type ThemeInternal } from './types';
2
+ export type { Theme, BaseTheme, ThemeInternal, ThemeOptions, Breakpoint, ColorSchemeName, ColorSchemeSelectorType, PaletteColorsWithMain, } from './types';
3
+ /**
4
+ * Creates a theme object for the ThemeProvider.
5
+ * @param options The theme options.
6
+ * @returns The theme object
7
+ */
8
+ export declare const createTheme: (options?: ThemeOptions) => ThemeInternal;
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../styles/theme/createTheme/index.ts"],"names":[],"mappings":"AASA,OAAO,EACL,KAAK,YAAY,EAGjB,KAAK,aAAa,EACnB,MAAM,SAAS,CAAC;AAEjB,YAAY,EACV,KAAK,EACL,SAAS,EACT,aAAa,EACb,YAAY,EACZ,UAAU,EACV,eAAe,EACf,uBAAuB,EACvB,qBAAqB,GACtB,MAAM,SAAS,CAAC;AAEjB;;;;GAIG;AACH,eAAO,MAAM,WAAW,GAAI,UAAS,YAAiB,KAAG,aAkExD,CAAC"}
@@ -1,29 +1,70 @@
1
- import createPalette from "./createPalette";
1
+ import "core-js/modules/es.array.reduce.js";
2
+ import merge from 'lodash/merge';
2
3
  import createBreakpoints from "./createBreakpoints";
3
- import createTypography from "./createTypography";
4
4
  import createSpacing from "./createSpacing";
5
5
  import transitions from "./transitions";
6
6
  import zIndex from "./zIndex";
7
-
8
- // eslint-disable-next-line valid-jsdoc
7
+ import createThemeFromColorScheme from "./createThemeFromColorScheme";
8
+ import createCssVarsForColorSchemeThemes from "./createCssVarsForColorSchemeThemes";
9
+ import applyStyles from "./applyStyles";
10
+ import { createGetColorSchemeSelector, createSetActiveColorScheme } from "./helpers";
9
11
  /**
10
12
  * Creates a theme object for the ThemeProvider.
13
+ * @param options The theme options.
11
14
  * @returns The theme object
12
15
  */
13
16
  export const createTheme = (options = {}) => {
14
17
  const {
15
- typography: typographyInput = {}
18
+ defaultColorScheme = 'light',
19
+ colorSchemeSelector = 'data',
20
+ cssVarPrefix = 'sg',
21
+ palette: paletteInput = {},
22
+ typography: typographyInput = {},
23
+ colorSchemes: colorSchemesInput = {
24
+ light: {}
25
+ }
16
26
  } = options;
17
- const palette = createPalette();
27
+ const defaultScheme = merge({}, {
28
+ palette: paletteInput,
29
+ typography: typographyInput
30
+ // @ts-expect-error - Sure about the type here
31
+ }, colorSchemesInput[defaultColorScheme] ?? {});
32
+ const colorSchemes = Object.entries(colorSchemesInput).reduce((acc, [type, scheme]) => {
33
+ // @ts-expect-error - Sure about the type here
34
+ acc[type] = createThemeFromColorScheme(merge({}, {
35
+ palette: {
36
+ mode: type
37
+ }
38
+ }, defaultScheme, scheme));
39
+ return acc;
40
+ }, {});
41
+ const getColorSchemeSelector = createGetColorSchemeSelector(colorSchemeSelector);
42
+ const setActiveColorScheme = createSetActiveColorScheme(colorSchemeSelector);
43
+ const {
44
+ cssVarsTheme,
45
+ generateStyleSheets
46
+ } = createCssVarsForColorSchemeThemes(colorSchemes, {
47
+ getColorSchemeSelector,
48
+ cssVarPrefix
49
+ });
50
+ const currentTheme = colorSchemes[defaultColorScheme] ?? colorSchemes.light;
18
51
  const breakpoints = createBreakpoints();
19
52
  const spacing = createSpacing();
20
- const typography = createTypography(palette, typographyInput);
21
- return {
22
- palette,
23
- typography,
53
+
54
+ // @ts-expect-error applyStyles is added to the theme object after its creation
55
+ const theme = {
56
+ ...currentTheme,
57
+ ...cssVarsTheme,
58
+ defaultColorScheme,
24
59
  breakpoints,
25
60
  spacing,
26
61
  transitions,
27
- zIndex
62
+ zIndex,
63
+ colorSchemes,
64
+ getColorSchemeSelector,
65
+ setActiveColorScheme,
66
+ generateStyleSheets
28
67
  };
68
+ theme.applyStyles = applyStyles;
69
+ return theme;
29
70
  };
@@ -0,0 +1,4 @@
1
+ declare const shadows: readonly ["none", string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string];
2
+ export type Shadows = typeof shadows;
3
+ export default shadows;
4
+ //# sourceMappingURL=shadows.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shadows.d.ts","sourceRoot":"","sources":["../../../../styles/theme/createTheme/shadows.ts"],"names":[],"mappings":"AAaA,QAAA,MAAM,OAAO,mNA0BH,CAAC;AAEX,MAAM,MAAM,OAAO,GAAG,OAAO,OAAO,CAAA;AAEpC,eAAe,OAAO,CAAC"}
@@ -0,0 +1,10 @@
1
+ const shadowKeyUmbraOpacity = 0.2;
2
+ const shadowKeyPenumbraOpacity = 0.14;
3
+ const shadowAmbientShadowOpacity = 0.12;
4
+ function createShadow(...px) {
5
+ return [`${px[0]}px ${px[1]}px ${px[2]}px ${px[3]}px rgba(0,0,0,${shadowKeyUmbraOpacity})`, `${px[4]}px ${px[5]}px ${px[6]}px ${px[7]}px rgba(0,0,0,${shadowKeyPenumbraOpacity})`, `${px[8]}px ${px[9]}px ${px[10]}px ${px[11]}px rgba(0,0,0,${shadowAmbientShadowOpacity})`].join(',');
6
+ }
7
+
8
+ // Values from https://github.com/material-components/material-components-web/blob/be8747f94574669cb5e7add1a7c54fa41a89cec7/packages/mdc-elevation/_variables.scss
9
+ const shadows = ['none', createShadow(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), createShadow(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), createShadow(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), createShadow(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), createShadow(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), createShadow(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), createShadow(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), createShadow(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), createShadow(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), createShadow(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), createShadow(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), createShadow(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), createShadow(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), createShadow(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), createShadow(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), createShadow(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), createShadow(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), createShadow(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), createShadow(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), createShadow(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), createShadow(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), createShadow(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), createShadow(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), createShadow(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)];
10
+ export default shadows;