yt-uikit 0.10.156 → 0.10.158

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 (184) hide show
  1. package/README.md +94 -94
  2. package/dist/esm/Cart-cee10ca3.js +5293 -0
  3. package/dist/esm/assets/confetti.d.ts +2 -2
  4. package/dist/esm/atoms/bundleBuilderProductDetailsAtom.d.ts +4 -4
  5. package/dist/esm/atoms/cartDataAtom.d.ts +3 -3
  6. package/dist/esm/atoms/cartLoadingAtom.d.ts +23 -23
  7. package/dist/esm/atoms/cartTimer.d.ts +2 -2
  8. package/dist/esm/atoms/dateAtom.d.ts +1 -1
  9. package/dist/esm/atoms/freebieClaimModalAtom.d.ts +7 -7
  10. package/dist/esm/atoms/giftWrap.d.ts +2 -2
  11. package/dist/esm/atoms/gstCompanyNameAtom.d.ts +1 -1
  12. package/dist/esm/atoms/gstInputAtom.d.ts +1 -1
  13. package/dist/esm/atoms/maxQtyErrorAtom.d.ts +3 -3
  14. package/dist/esm/atoms/multiClaimSelectionAtom.d.ts +28 -28
  15. package/dist/esm/atoms/noteInputAtom.d.ts +3 -3
  16. package/dist/esm/atoms/postalCodeAtom.d.ts +1 -1
  17. package/dist/esm/atoms/shippingAtom.d.ts +8 -8
  18. package/dist/esm/atoms/showGSTInputAtom.d.ts +1 -1
  19. package/dist/esm/atoms/variantSelectionModalAtom.d.ts +35 -35
  20. package/dist/esm/cart.d.ts +1 -0
  21. package/dist/esm/cart.js +1 -0
  22. package/dist/esm/components/BundleBlock/Bundle.d.ts +479 -479
  23. package/dist/esm/components/BundleBlock/BundleBuilder/BundleBuilder.d.ts +52 -52
  24. package/dist/esm/components/BundleBlock/BundleBuilder/ResponsiveBgImage.d.ts +9 -9
  25. package/dist/esm/components/BundleBlock/BundleBuilder/SortAndFilter.d.ts +74 -74
  26. package/dist/esm/components/BundleBlock/BundleBuilder/VariantOptionsModal.d.ts +32 -32
  27. package/dist/esm/components/BundleBlock/BundleBuilder/bundleBuilder.style.d.ts +36 -36
  28. package/dist/esm/components/BundleBlock/BundleBuilderTracker/BundleBuilderTracker.d.ts +57 -57
  29. package/dist/esm/components/BundleBlock/BundleBuilderTracker/bundleBuilderTracker.style.d.ts +80 -80
  30. package/dist/esm/components/BundleBlock/BundleLoaderModal.d.ts +7 -7
  31. package/dist/esm/components/BundleBlock/BundleProductDetailsModal/BundleProductDetailsModal.d.ts +54 -54
  32. package/dist/esm/components/BundleBlock/BundleProductDetailsModal/ImageViewer.d.ts +18 -18
  33. package/dist/esm/components/BundleBlock/BundleProductDetailsModal/bundleProductDetailsModal.style.d.ts +9 -9
  34. package/dist/esm/components/BundleBlock/CartATCLoader.d.ts +12 -12
  35. package/dist/esm/components/BundleBlock/CollectionBundle/CategoryFilter.d.ts +10 -10
  36. package/dist/esm/components/BundleBlock/CollectionBundle/ColllectionBundle.d.ts +135 -135
  37. package/dist/esm/components/BundleBlock/CollectionBundle/ProductDetailsModal.d.ts +20 -20
  38. package/dist/esm/components/BundleBlock/ComboBundle.d.ts +17 -17
  39. package/dist/esm/components/BundleBlock/ErrorToast.d.ts +10 -10
  40. package/dist/esm/components/BundleBlock/FixedBundle/FixedBundle.d.ts +4 -4
  41. package/dist/esm/components/BundleBlock/FixedBundle/SeparateVariantOptions.d.ts +52 -52
  42. package/dist/esm/components/BundleBlock/FixedBundle/VariantSelectorModal.d.ts +23 -23
  43. package/dist/esm/components/BundleBlock/FixedBundle/fixedBundle.style.d.ts +86 -86
  44. package/dist/esm/components/BundleBlock/Loader.d.ts +5 -5
  45. package/dist/esm/components/BundleBlock/MixAndMatchBundle/MixAndMatchBundle.d.ts +9 -9
  46. package/dist/esm/components/BundleBlock/MixAndMatchBundle/mixAndMatchBundle.style.d.ts +91 -91
  47. package/dist/esm/components/BundleBlock/PersonalizationForm/PersonalizationForm.d.ts +35 -35
  48. package/dist/esm/components/BundleBlock/PersonalizationForm/PersonalizationFormModal.d.ts +24 -24
  49. package/dist/esm/components/BundleBlock/VariantDropdown.d.ts +42 -42
  50. package/dist/esm/components/BundleBlock/VolumeBundle/VolumeBundle.d.ts +31 -31
  51. package/dist/esm/components/BundleBlock/VolumeBundle/volumeBundle.style.d.ts +102 -102
  52. package/dist/esm/components/BundleBlock/gokwikGuard.d.ts +22 -22
  53. package/dist/esm/components/BundleBlock/index.d.ts +1 -1
  54. package/dist/esm/components/Cart/ApplyCoupon.d.ts +13 -13
  55. package/dist/esm/components/Cart/Bundle.d.ts +6 -6
  56. package/dist/esm/components/Cart/Cart.d.ts +275 -274
  57. package/dist/esm/components/Cart/CartDrawer.d.ts +41 -41
  58. package/dist/esm/components/Cart/CartOffersCarousel.d.ts +48 -48
  59. package/dist/esm/components/Cart/CartProductsList.d.ts +55 -55
  60. package/dist/esm/components/Cart/CartTimer.d.ts +8 -8
  61. package/dist/esm/components/Cart/CheckoutSection.d.ts +55 -55
  62. package/dist/esm/components/Cart/CouponSelection.d.ts +18 -18
  63. package/dist/esm/components/Cart/CustomVariantSwatches.d.ts +15 -15
  64. package/dist/esm/components/Cart/DatePicker.d.ts +10 -10
  65. package/dist/esm/components/Cart/EmptyCart.d.ts +35 -34
  66. package/dist/esm/components/Cart/FloatingCart.d.ts +24 -24
  67. package/dist/esm/components/Cart/FooterSections.d.ts +9 -9
  68. package/dist/esm/components/Cart/FreebieClaimManager.d.ts +17 -17
  69. package/dist/esm/components/Cart/FreebieClaimOverlay.d.ts +18 -18
  70. package/dist/esm/components/Cart/FreebieClaimOverlayCard.d.ts +14 -14
  71. package/dist/esm/components/Cart/FreebieClaimSection.d.ts +16 -16
  72. package/dist/esm/components/Cart/FreebieClaimSectionCard.d.ts +23 -23
  73. package/dist/esm/components/Cart/GSTSection.d.ts +15 -15
  74. package/dist/esm/components/Cart/GiftWrap.d.ts +13 -13
  75. package/dist/esm/components/Cart/InlineCartOfferInfoText.d.ts +10 -10
  76. package/dist/esm/components/Cart/ItemSwap.d.ts +35 -35
  77. package/dist/esm/components/Cart/LoyaltyAppliedCTA.d.ts +14 -14
  78. package/dist/esm/components/Cart/LoyaltyApplyCTA.d.ts +16 -16
  79. package/dist/esm/components/Cart/LoyaltyBadge.d.ts +11 -11
  80. package/dist/esm/components/Cart/LoyaltyGuestCTA.d.ts +15 -15
  81. package/dist/esm/components/Cart/MultiStepProgressBar/CheckpointConfetti.d.ts +11 -11
  82. package/dist/esm/components/Cart/MultiStepProgressBar/CheckpointIcon.d.ts +3 -3
  83. package/dist/esm/components/Cart/MultiStepProgressBar/CheckpointTooltip.d.ts +3 -3
  84. package/dist/esm/components/Cart/MultiStepProgressBar/MultiStepIcon.d.ts +9 -9
  85. package/dist/esm/components/Cart/MultiStepProgressBar/MultiStepProgressBar.d.ts +5 -5
  86. package/dist/esm/components/Cart/MultiStepProgressBar/MultiStepProgressBar.styled.d.ts +47 -47
  87. package/dist/esm/components/Cart/MultiStepProgressBar/MultiStepUtils.d.ts +6 -6
  88. package/dist/esm/components/Cart/MultiStepProgressBar/MultiTierProgressBar.d.ts +4 -4
  89. package/dist/esm/components/Cart/MultiStepProgressBar/MutiTierNextRewardMessage.d.ts +3 -3
  90. package/dist/esm/components/Cart/MultiStepProgressBar/NextRewardMessage.d.ts +3 -3
  91. package/dist/esm/components/Cart/MultiStepProgressBar/SingleTierProgressBar.d.ts +4 -4
  92. package/dist/esm/components/Cart/MultiStepProgressBar/SingleTierProgressBar.styled.d.ts +22 -22
  93. package/dist/esm/components/Cart/MultiStepProgressBar/SingletTierNextRewardMessage.d.ts +3 -3
  94. package/dist/esm/components/Cart/MultiStepProgressBar/types.d.ts +54 -54
  95. package/dist/esm/components/Cart/NextFreebieRow.d.ts +21 -21
  96. package/dist/esm/components/Cart/NoteSection.d.ts +8 -8
  97. package/dist/esm/components/Cart/ProductCard.d.ts +37 -37
  98. package/dist/esm/components/Cart/ProductRecCard.d.ts +24 -23
  99. package/dist/esm/components/Cart/ProductRecList.d.ts +25 -24
  100. package/dist/esm/components/Cart/ProgressBarCartLoader.d.ts +7 -7
  101. package/dist/esm/components/Cart/QuantitySelector.d.ts +11 -11
  102. package/dist/esm/components/Cart/RegionSpecificDelivery.d.ts +14 -14
  103. package/dist/esm/components/Cart/RewardPointsPreview.d.ts +12 -12
  104. package/dist/esm/components/Cart/StandardDelivery.d.ts +11 -11
  105. package/dist/esm/components/Cart/StealDealSection.d.ts +18 -18
  106. package/dist/esm/components/Cart/StickyCart.d.ts +68 -68
  107. package/dist/esm/components/Cart/SubtotalSection.d.ts +13 -13
  108. package/dist/esm/components/Cart/UploadImageSection.d.ts +31 -31
  109. package/dist/esm/components/Cart/VariantDropDown.d.ts +13 -13
  110. package/dist/esm/components/Cart/VariantSelectionPopup/DesktopVariantPopup.d.ts +17 -17
  111. package/dist/esm/components/Cart/VariantSelectionPopup/DesktopVariantPopup.styled.d.ts +48 -48
  112. package/dist/esm/components/Cart/VariantSelectionPopup/MobileVariantPopover.d.ts +17 -17
  113. package/dist/esm/components/Cart/index.d.ts +1 -1
  114. package/dist/esm/components/Loyalty/AccountAddresses.d.ts +30 -30
  115. package/dist/esm/components/Loyalty/AccountBlock.d.ts +108 -108
  116. package/dist/esm/components/Loyalty/AccountBlock.types.d.ts +290 -290
  117. package/dist/esm/components/Loyalty/AccountLoginForm.d.ts +57 -57
  118. package/dist/esm/components/Loyalty/AccountOrderHistory.d.ts +61 -61
  119. package/dist/esm/components/Loyalty/AccountRewards.d.ts +25 -25
  120. package/dist/esm/components/Loyalty/AccountWaysToRedeem.d.ts +10 -10
  121. package/dist/esm/components/Loyalty/ActiveSessionOverlay.d.ts +8 -8
  122. package/dist/esm/components/Loyalty/BubbleLauncher.d.ts +14 -14
  123. package/dist/esm/components/Loyalty/GuestDesktop.d.ts +5 -5
  124. package/dist/esm/components/Loyalty/GuestDesktopWithoutImage.d.ts +7 -7
  125. package/dist/esm/components/Loyalty/GuestMobile.d.ts +6 -6
  126. package/dist/esm/components/Loyalty/Loader.d.ts +10 -10
  127. package/dist/esm/components/Loyalty/LoyaltyProductCatalog.d.ts +69 -69
  128. package/dist/esm/components/Loyalty/LoyaltyProfile.d.ts +6 -6
  129. package/dist/esm/components/Loyalty/LoyaltyWidget.d.ts +6 -6
  130. package/dist/esm/components/Loyalty/OTPComponent.d.ts +20 -20
  131. package/dist/esm/components/Loyalty/PointEarnBadge.d.ts +20 -20
  132. package/dist/esm/components/Loyalty/PointRedeemBadge.d.ts +17 -17
  133. package/dist/esm/components/Loyalty/RecentTransactions.d.ts +8 -8
  134. package/dist/esm/components/Loyalty/RewardsModal.d.ts +13 -13
  135. package/dist/esm/components/Loyalty/RibbonLauncher.d.ts +12 -12
  136. package/dist/esm/components/Loyalty/StickyLauncher.d.ts +14 -14
  137. package/dist/esm/components/Loyalty/StickyTextLauncher.d.ts +2 -2
  138. package/dist/esm/components/Loyalty/Toast.d.ts +7 -7
  139. package/dist/esm/components/Loyalty/VIPTiersScreen.d.ts +11 -11
  140. package/dist/esm/components/Loyalty/WTRCoupon.d.ts +13 -13
  141. package/dist/esm/components/Loyalty/WaysToEarn.d.ts +34 -34
  142. package/dist/esm/components/Loyalty/WaysToRedeem.d.ts +111 -111
  143. package/dist/esm/components/Loyalty/index.d.ts +16 -16
  144. package/dist/esm/components/Loyalty/loyaltyLauncher.d.ts +19 -19
  145. package/dist/esm/components/Loyalty/styles/AccountBlock.styles.d.ts +27 -27
  146. package/dist/esm/components/Loyalty/styles/ActiveSession.styles.d.ts +3 -3
  147. package/dist/esm/components/Loyalty/styles/DobPopup.styles.d.ts +3 -3
  148. package/dist/esm/components/Loyalty/styles/PointEarnBadge.styles.d.ts +3 -3
  149. package/dist/esm/components/Loyalty/styles/PointRedeemBadge.styles.d.ts +3 -3
  150. package/dist/esm/components/Loyalty/styles/RecentTransactions.styles.d.ts +6 -6
  151. package/dist/esm/components/Loyalty/styles/VIPTiers.styles.d.ts +4 -4
  152. package/dist/esm/components/Loyalty/styles/WaysToRedeem.styles.d.ts +5 -5
  153. package/dist/esm/components/Loyalty/styles/shared.styles.d.ts +3 -3
  154. package/dist/esm/components/Loyalty/styles.d.ts +23 -23
  155. package/dist/esm/components/Loyalty/types.d.ts +419 -419
  156. package/dist/esm/components/LoyaltyPageBlock/LoyaltyPageBlock.d.ts +236 -236
  157. package/dist/esm/components/Nudge/LeadGenerationNudge.d.ts +15 -15
  158. package/dist/esm/components/Nudge/Nudge.d.ts +40 -40
  159. package/dist/esm/components/Nudge/index.d.ts +1 -1
  160. package/dist/esm/components/ProductOffersBlock/ProductOffersCoupon.d.ts +12 -12
  161. package/dist/esm/components/ProductOffersBlock/ProductOffersList.d.ts +12 -12
  162. package/dist/esm/components/ProductOffersBlock/ProductOffersTermsMobilePopover.d.ts +10 -10
  163. package/dist/esm/components/ProductOffersBlock/ProductOffersTermsPopup.d.ts +10 -10
  164. package/dist/esm/components/ProductOffersBlock/ProductsOffers.d.ts +42 -42
  165. package/dist/esm/components/SpinnerWheel/SpinnerWheel.d.ts +23 -23
  166. package/dist/esm/components/SpinnerWheel/WheelSection.d.ts +9 -9
  167. package/dist/esm/components/SpinnerWheel/index.d.ts +1 -1
  168. package/dist/esm/components/index.d.ts +20 -20
  169. package/dist/esm/index.d.ts +4 -4
  170. package/dist/esm/index.js +26 -5318
  171. package/dist/esm/utils/converter.d.ts +4 -4
  172. package/dist/esm/utils/customCartConfig.d.ts +2 -2
  173. package/dist/esm/utils/customHtmlInteractions.d.ts +9 -9
  174. package/dist/esm/utils/customVariantOptions.d.ts +30 -30
  175. package/dist/esm/utils/freebieProductUtils.d.ts +40 -40
  176. package/dist/esm/utils/freebieUtils.d.ts +12 -12
  177. package/dist/esm/utils/index.d.ts +37 -37
  178. package/dist/esm/utils/safeguardDOM.d.ts +5 -5
  179. package/dist/esm/utils/shopifyAtcBridge.d.ts +43 -43
  180. package/dist/esm/utils/unclipStickyAncestors.d.ts +9 -9
  181. package/dist/esm/utils/useMediaQuery.d.ts +1 -1
  182. package/dist/esm/utils/variantAvailability.d.ts +53 -53
  183. package/package.json +98 -98
  184. /package/dist/esm/{confetti-89678a6f.js → confetti-f3502561.js} +0 -0
package/README.md CHANGED
@@ -1,94 +1,94 @@
1
- # YourToken UI Kit
2
-
3
- UI copmonents powering the YourToken ecosystem.
4
-
5
- ### Some Style Advice for Writing Code here
6
-
7
- - Prefer to use inline styling - negligible chances of store styles overriding us. if its becoming too unreadable then maybe stylesheet with all styles having a `yt` prefix or suffix appended along with `!important` for all styles, if this doesnt work then styled components
8
-
9
- ### Build the library
10
-
11
- ```bash
12
- npm run rollup
13
- ```
14
-
15
- ### Publish the library
16
-
17
- ```bash
18
- npm publish
19
- ```
20
-
21
- ### Run storybook locally
22
-
23
- ```bash
24
- npm run storybook
25
- ```
26
-
27
- ### Build storybook
28
-
29
- ```bash
30
- npm run build-storybook
31
- ```
32
-
33
- ### Working with local/testing version of UI kit
34
-
35
- 1. Commit all your changes (otherwise NPM will give this error: "Git working directory not clean.")
36
- 2. Build the version
37
-
38
- ```bash
39
- npm run rollup
40
- ```
41
-
42
- 3. Create a prerelease:
43
-
44
- ```bash
45
- npm version prerelease --preid=feature-name
46
- ```
47
-
48
- 4. Publish the version
49
-
50
- ```bash
51
- npm publish --tag feature-name
52
- ```
53
-
54
- This will create a version like: "1.0.0-feature-name.0" (you can keep running the above two commands and every time it will increase the digit at the end)
55
-
56
- 5. Update the uikit dependency in your project's `package.json` as this:
57
-
58
- ```bash
59
- "yt-uikit": "...yt-uikit@feature-name"
60
- ```
61
-
62
- Use the following to see list of releases with tags
63
-
64
- ```bash
65
- npm show yt-uikit dist-tags
66
- ```
67
-
68
- ### Reference code for state management in story files
69
-
70
- ```ts
71
- import { useArgs } from "@storybook/preview-api";
72
-
73
- import SomeComponent from "./Index";
74
-
75
- export default {
76
- component: SomeComponent,
77
- };
78
-
79
- export const Default = {
80
- render: function Component(args) {
81
- const [, setArgs] = useArgs();
82
-
83
- const onChange = (value) => {
84
- args.onChange(value);
85
- setArgs({ value: value });
86
- };
87
-
88
- return <SomeComponent {...args} onChange={onChange} />;
89
- },
90
- args: {
91
- value: null,
92
- },
93
- };
94
- ```
1
+ # YourToken UI Kit
2
+
3
+ UI copmonents powering the YourToken ecosystem.
4
+
5
+ ### Some Style Advice for Writing Code here
6
+
7
+ - Prefer to use inline styling - negligible chances of store styles overriding us. if its becoming too unreadable then maybe stylesheet with all styles having a `yt` prefix or suffix appended along with `!important` for all styles, if this doesnt work then styled components
8
+
9
+ ### Build the library
10
+
11
+ ```bash
12
+ npm run rollup
13
+ ```
14
+
15
+ ### Publish the library
16
+
17
+ ```bash
18
+ npm publish
19
+ ```
20
+
21
+ ### Run storybook locally
22
+
23
+ ```bash
24
+ npm run storybook
25
+ ```
26
+
27
+ ### Build storybook
28
+
29
+ ```bash
30
+ npm run build-storybook
31
+ ```
32
+
33
+ ### Working with local/testing version of UI kit
34
+
35
+ 1. Commit all your changes (otherwise NPM will give this error: "Git working directory not clean.")
36
+ 2. Build the version
37
+
38
+ ```bash
39
+ npm run rollup
40
+ ```
41
+
42
+ 3. Create a prerelease:
43
+
44
+ ```bash
45
+ npm version prerelease --preid=feature-name
46
+ ```
47
+
48
+ 4. Publish the version
49
+
50
+ ```bash
51
+ npm publish --tag feature-name
52
+ ```
53
+
54
+ This will create a version like: "1.0.0-feature-name.0" (you can keep running the above two commands and every time it will increase the digit at the end)
55
+
56
+ 5. Update the uikit dependency in your project's `package.json` as this:
57
+
58
+ ```bash
59
+ "yt-uikit": "...yt-uikit@feature-name"
60
+ ```
61
+
62
+ Use the following to see list of releases with tags
63
+
64
+ ```bash
65
+ npm show yt-uikit dist-tags
66
+ ```
67
+
68
+ ### Reference code for state management in story files
69
+
70
+ ```ts
71
+ import { useArgs } from "@storybook/preview-api";
72
+
73
+ import SomeComponent from "./Index";
74
+
75
+ export default {
76
+ component: SomeComponent,
77
+ };
78
+
79
+ export const Default = {
80
+ render: function Component(args) {
81
+ const [, setArgs] = useArgs();
82
+
83
+ const onChange = (value) => {
84
+ args.onChange(value);
85
+ setArgs({ value: value });
86
+ };
87
+
88
+ return <SomeComponent {...args} onChange={onChange} />;
89
+ },
90
+ args: {
91
+ value: null,
92
+ },
93
+ };
94
+ ```