@plurix/ecom-components 1.16.0-commerce.0 → 1.16.1-commerce

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 (85) hide show
  1. package/dist/assets/svgs/CheckMarkBoxIcon.d.ts +1 -0
  2. package/dist/assets/svgs/CheckMarkBoxIcon.js +30 -0
  3. package/dist/assets/svgs/CheckMarkIcon.d.ts +1 -0
  4. package/dist/assets/svgs/CheckMarkIcon.js +23 -0
  5. package/dist/assets/svgs/CouponIcon.d.ts +1 -4
  6. package/dist/assets/svgs/CouponIcon.js +50 -14
  7. package/dist/assets/svgs/ErrorIcon.d.ts +1 -5
  8. package/dist/assets/svgs/ErrorIcon.js +26 -14
  9. package/dist/assets/svgs/ErrorIconV2.d.ts +1 -0
  10. package/dist/assets/svgs/ErrorIconV2.js +33 -0
  11. package/dist/assets/svgs/SuccessIconV2.d.ts +1 -0
  12. package/dist/assets/svgs/SuccessIconV2.js +30 -0
  13. package/dist/assets/svgs/WarningIconV2.d.ts +1 -0
  14. package/dist/assets/svgs/WarningIconV2.js +40 -0
  15. package/dist/hooks/useVerticalShelfCarouselProps.d.ts +4 -0
  16. package/dist/hooks/useVerticalShelfCarouselProps.js +14 -0
  17. package/dist/hooks/useWindowDimensions.d.ts +5 -0
  18. package/dist/hooks/useWindowDimensions.js +38 -0
  19. package/dist/main.d.ts +1 -0
  20. package/dist/main.js +19 -17
  21. package/dist/packages/AdaptiveCarousel/AdaptiveCarousel.d.ts +14 -0
  22. package/dist/packages/AdaptiveCarousel/AdaptiveCarousel.js +69 -0
  23. package/dist/packages/Coupons/Coupons.d.ts +3 -17
  24. package/dist/packages/Coupons/Coupons.js +76 -114
  25. package/dist/packages/Coupons/components/Alert.d.ts +4 -2
  26. package/dist/packages/Coupons/components/Alert.js +10 -10
  27. package/dist/packages/Coupons/components/CouponCard.d.ts +5 -22
  28. package/dist/packages/Coupons/components/CouponCard.js +79 -133
  29. package/dist/packages/Coupons/components/NoCoupons.js +7 -7
  30. package/dist/packages/Coupons/hooks/useCoupons.d.ts +33 -0
  31. package/dist/packages/Coupons/hooks/useCoupons.js +108 -0
  32. package/dist/packages/Coupons/types/CouponType.d.ts +1 -1
  33. package/dist/packages/VouchersRedeemed/VouchersRedeemed.d.ts +24 -0
  34. package/dist/packages/VouchersRedeemed/VouchersRedeemed.js +145 -0
  35. package/dist/packages/VouchersRedeemed/api/getCouponsCartonistByUser.d.ts +1 -0
  36. package/dist/packages/VouchersRedeemed/api/getCouponsCartonistByUser.js +20 -0
  37. package/dist/packages/VouchersRedeemed/components/StatusMessageTryApply/StatusMessageTryApply.d.ts +12 -0
  38. package/dist/packages/VouchersRedeemed/components/StatusMessageTryApply/StatusMessageTryApply.js +27 -0
  39. package/dist/packages/VouchersRedeemed/components/StatusMessageTryApply/index.d.ts +1 -0
  40. package/dist/packages/VouchersRedeemed/components/StatusMessageTryApply/index.js +4 -0
  41. package/dist/packages/VouchersRedeemed/components/VoucherRedeemedCard/VoucherRedeemedCard.d.ts +17 -0
  42. package/dist/packages/VouchersRedeemed/components/VoucherRedeemedCard/VoucherRedeemedCard.js +37 -0
  43. package/dist/packages/VouchersRedeemed/components/VoucherRedeemedCard/index.d.ts +1 -0
  44. package/dist/packages/VouchersRedeemed/components/VoucherRedeemedCard/index.js +4 -0
  45. package/dist/packages/VouchersRedeemed/components/VouchersRedeemedSkeleton/VouchersRedeemedSkeleton.d.ts +15 -0
  46. package/dist/packages/VouchersRedeemed/components/VouchersRedeemedSkeleton/VouchersRedeemedSkeleton.js +49 -0
  47. package/dist/packages/VouchersRedeemed/components/VouchersRedeemedSkeleton/index.d.ts +1 -0
  48. package/dist/packages/VouchersRedeemed/components/VouchersRedeemedSkeleton/index.js +4 -0
  49. package/dist/packages/VouchersRedeemed/data/validVouchers.d.ts +1 -0
  50. package/dist/packages/VouchersRedeemed/data/validVouchers.js +20 -0
  51. package/dist/packages/VouchersRedeemed/utils/getCouponPrice.d.ts +1 -0
  52. package/dist/packages/VouchersRedeemed/utils/getCouponPrice.js +8 -0
  53. package/dist/styles/adaptive-carousel.global.css +1 -0
  54. package/dist/styles/coupons.global.css +1 -1
  55. package/dist/styles/regionalization.global.css +1 -1
  56. package/dist/styles/vouchers-redeemed.global.css +1 -0
  57. package/dist/utils/carousel/carouselProps.d.ts +33 -0
  58. package/dist/utils/carousel/carouselProps.js +59 -0
  59. package/dist/utils/scroll/isScrollToEnd.d.ts +1 -0
  60. package/dist/utils/scroll/isScrollToEnd.js +4 -0
  61. package/dist/utils/setBoldTextParts.d.ts +1 -0
  62. package/dist/utils/setBoldTextParts.js +7 -0
  63. package/package.json +1 -1
  64. package/dist/packages/Coupons/components/Breadcrumb.d.ts +0 -6
  65. package/dist/packages/Coupons/components/Breadcrumb.js +0 -33
  66. package/dist/packages/Coupons/components/Modal.d.ts +0 -8
  67. package/dist/packages/Coupons/components/Modal.js +0 -62
  68. package/dist/packages/Coupons/components/ModalFooter.d.ts +0 -9
  69. package/dist/packages/Coupons/components/ModalFooter.js +0 -25
  70. package/dist/packages/Coupons/components/ModalHeader.d.ts +0 -6
  71. package/dist/packages/Coupons/components/ModalHeader.js +0 -25
  72. package/dist/packages/Coupons/types/Views.d.ts +0 -1
  73. package/dist/packages/Coupons/types/Views.js +0 -1
  74. package/dist/packages/Coupons/views/CouponsView.d.ts +0 -15
  75. package/dist/packages/Coupons/views/CouponsView.js +0 -131
  76. package/dist/packages/Coupons/views/EmptyCartView.d.ts +0 -6
  77. package/dist/packages/Coupons/views/EmptyCartView.js +0 -36
  78. package/dist/packages/Coupons/views/LoadingView.d.ts +0 -7
  79. package/dist/packages/Coupons/views/LoadingView.js +0 -39
  80. package/dist/packages/Coupons/views/OverwriteView.d.ts +0 -14
  81. package/dist/packages/Coupons/views/OverwriteView.js +0 -58
  82. package/dist/packages/Coupons/views/RulesView.d.ts +0 -13
  83. package/dist/packages/Coupons/views/RulesView.js +0 -49
  84. package/dist/packages/Coupons/views/index.d.ts +0 -5
  85. package/dist/packages/Coupons/views/index.js +0 -12
@@ -0,0 +1 @@
1
+ export declare const CheckMarkBoxIcon: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,30 @@
1
+ import { jsxs as o, jsx as C } from "react/jsx-runtime";
2
+ const h = () => /* @__PURE__ */ o(
3
+ "svg",
4
+ {
5
+ width: "24",
6
+ height: "24",
7
+ viewBox: "0 0 24 24",
8
+ fill: "none",
9
+ xmlns: "http://www.w3.org/2000/svg",
10
+ children: [
11
+ /* @__PURE__ */ C(
12
+ "path",
13
+ {
14
+ d: "M21.7059 4.33404C21.3125 3.94065 20.6749 3.94078 20.2819 4.33417L11.2452 13.3724L7.08234 9.20941C6.68895 8.81615 6.05133 8.81602 5.65834 9.20927C5.26495 9.60253 5.26495 10.2401 5.65821 10.6333L10.5332 15.5085C10.7221 15.6974 10.9781 15.8035 11.2453 15.8035C11.5124 15.8035 11.7685 15.6974 11.9574 15.5085L21.7062 5.75804C22.0992 5.36491 22.0992 4.7273 21.7059 4.33404Z",
15
+ fill: "#177336"
16
+ }
17
+ ),
18
+ /* @__PURE__ */ C(
19
+ "path",
20
+ {
21
+ d: "M19.5308 10.7863C18.9746 10.7863 18.5238 11.237 18.5238 11.7932V19.2543H4.01395V4.74442H15.5029C16.0591 4.74442 16.5098 4.2937 16.5098 3.73744C16.5098 3.18132 16.0591 2.73047 15.5029 2.73047H3.00697C2.45086 2.73047 2 3.18119 2 3.73744V20.2612C2 20.8175 2.45086 21.2682 3.00697 21.2682H19.5308C20.087 21.2682 20.5377 20.8175 20.5377 20.2612V11.7932C20.5377 11.2371 20.087 10.7863 19.5308 10.7863Z",
22
+ fill: "#177336"
23
+ }
24
+ )
25
+ ]
26
+ }
27
+ );
28
+ export {
29
+ h as CheckMarkBoxIcon
30
+ };
@@ -0,0 +1 @@
1
+ export declare const CheckMarkIcon: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,23 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ const i = () => /* @__PURE__ */ e(
3
+ "svg",
4
+ {
5
+ width: "16",
6
+ height: "12",
7
+ viewBox: "0 0 16 12",
8
+ fill: "none",
9
+ xmlns: "http://www.w3.org/2000/svg",
10
+ children: /* @__PURE__ */ e(
11
+ "path",
12
+ {
13
+ fillRule: "evenodd",
14
+ clipRule: "evenodd",
15
+ d: "M15.574 0.43934C16.142 1.02513 16.142 1.97487 15.574 2.56066L6.8467 11.5607C6.27867 12.1464 5.3577 12.1464 4.78966 11.5607L0.426027 7.06066C-0.142009 6.47487 -0.142009 5.52513 0.426027 4.93934C0.994062 4.35355 1.91503 4.35355 2.48306 4.93934L5.81818 8.37868L13.5169 0.43934C14.085 -0.146447 15.0059 -0.146447 15.574 0.43934Z",
16
+ fill: "white"
17
+ }
18
+ )
19
+ }
20
+ );
21
+ export {
22
+ i as CheckMarkIcon
23
+ };
@@ -1,4 +1 @@
1
- export declare const CouponIcon: ({ width, height }: {
2
- width?: number | undefined;
3
- height?: number | undefined;
4
- }) => import("react/jsx-runtime").JSX.Element;
1
+ export declare const CouponIcon: () => import("react/jsx-runtime").JSX.Element;
@@ -1,22 +1,58 @@
1
- import { jsx as C } from "react/jsx-runtime";
2
- const r = ({ width: o = 20, height: n = 16 }) => /* @__PURE__ */ C(
1
+ import { jsxs as L, jsx as C } from "react/jsx-runtime";
2
+ const o = () => /* @__PURE__ */ L(
3
3
  "svg",
4
4
  {
5
- width: o,
6
- height: n,
7
- viewBox: "0 0 20 16",
5
+ width: "24",
6
+ height: "24",
7
+ viewBox: "0 0 24 24",
8
8
  fill: "none",
9
9
  xmlns: "http://www.w3.org/2000/svg",
10
- "data-testid": "coupon-icon",
11
- children: /* @__PURE__ */ C(
12
- "path",
13
- {
14
- d: "M1.5 16C1.1 16 0.75 15.85 0.45 15.55C0.15 15.25 0 14.9 0 14.5V10.675C0.616667 10.5417 1.12917 10.2208 1.5375 9.7125C1.94583 9.20417 2.15 8.63333 2.15 8C2.15 7.36667 1.94583 6.79167 1.5375 6.275C1.12917 5.75833 0.616667 5.44167 0 5.325V1.5C0 1.1 0.15 0.75 0.45 0.45C0.75 0.15 1.1 0 1.5 0H18.5C18.9 0 19.25 0.15 19.55 0.45C19.85 0.75 20 1.1 20 1.5V5.325C19.3833 5.44167 18.875 5.75833 18.475 6.275C18.075 6.79167 17.875 7.36667 17.875 8C17.875 8.63333 18.075 9.20417 18.475 9.7125C18.875 10.2208 19.3833 10.5417 20 10.675V14.5C20 14.9 19.85 15.25 19.55 15.55C19.25 15.85 18.9 16 18.5 16H1.5ZM1.5 14.5H18.5V11.775C17.9 11.3583 17.3958 10.8208 16.9875 10.1625C16.5792 9.50417 16.375 8.78333 16.375 8C16.375 7.21667 16.5792 6.49583 16.9875 5.8375C17.3958 5.17917 17.9 4.64167 18.5 4.225V1.5H1.5V4.225C2.1 4.64167 2.60833 5.17917 3.025 5.8375C3.44167 6.49583 3.65 7.21667 3.65 8C3.65 8.78333 3.44167 9.50417 3.025 10.1625C2.60833 10.8208 2.1 11.3583 1.5 11.775V14.5ZM7.4 12.05L10 10.025L12.6 12.05L11.6 8.85L14.05 6.8H11.05L10 3.75L8.95 6.8H5.95L8.4 8.85L7.4 12.05Z",
15
- fill: "var(--color-main)"
16
- }
17
- )
10
+ children: [
11
+ /* @__PURE__ */ C(
12
+ "path",
13
+ {
14
+ d: "M10.7042 9.88901C10.0188 9.20364 8.9037 9.20368 8.21838 9.88901C7.53141 10.576 7.53133 11.6878 8.21838 12.3748C8.56102 12.7175 9.01116 12.8888 9.4613 12.8888C9.91141 12.8888 10.3615 12.7175 10.7042 12.3748C11.3895 11.6895 11.3895 10.5743 10.7042 9.88901ZM9.87557 11.5462C9.64712 11.7747 9.27541 11.7747 9.04696 11.5462C8.81799 11.3172 8.81795 10.9466 9.04696 10.7176C9.276 10.4886 9.64653 10.4886 9.87557 10.7176C10.104 10.9461 10.104 11.3178 9.87557 11.5462Z",
15
+ fill: "var(--color-main)"
16
+ }
17
+ ),
18
+ /* @__PURE__ */ C(
19
+ "path",
20
+ {
21
+ d: "M11.5323 15.6898C10.847 15.0045 9.73188 15.0044 9.04652 15.6898C8.35951 16.3768 8.35947 17.4886 9.04652 18.1756C9.7318 18.8609 10.847 18.8609 11.5323 18.1756C12.2192 17.4887 12.2193 16.3768 11.5323 15.6898ZM10.7037 17.347C10.4753 17.5754 10.1036 17.5754 9.87513 17.347C9.64613 17.118 9.64613 16.7475 9.87513 16.5184C10.1042 16.2894 10.4747 16.2894 10.7037 16.5184C10.9327 16.7474 10.9327 17.118 10.7037 17.347Z",
22
+ fill: "var(--color-main)"
23
+ }
24
+ ),
25
+ /* @__PURE__ */ C(
26
+ "path",
27
+ {
28
+ d: "M14.1843 13.5525C14.1485 13.2309 13.8586 12.9992 13.5373 13.0349L6.07985 13.8634C5.75822 13.8992 5.52648 14.1889 5.56223 14.5105C5.59799 14.8322 5.88778 15.0638 6.20922 15.0281L13.6666 14.1995C13.9883 14.1638 14.22 13.8741 14.1843 13.5525Z",
29
+ fill: "var(--color-main)"
30
+ }
31
+ ),
32
+ /* @__PURE__ */ C(
33
+ "path",
34
+ {
35
+ d: "M15.735 6.56268L14.9064 5.7341C14.6777 5.5053 14.3067 5.5053 14.0779 5.7341C13.849 5.96291 13.849 6.33388 14.0779 6.56268L14.9064 7.39126C15.1352 7.62007 15.5062 7.62007 15.735 7.39126C15.9639 7.16245 15.9639 6.79149 15.735 6.56268Z",
36
+ fill: "var(--color-main)"
37
+ }
38
+ ),
39
+ /* @__PURE__ */ C(
40
+ "path",
41
+ {
42
+ d: "M18.2194 9.04706L17.3908 8.21848C17.162 7.98967 16.791 7.98967 16.5622 8.21848C16.3334 8.44729 16.3334 8.81825 16.5622 9.04706L17.3908 9.87563C17.6196 10.1044 17.9906 10.1044 18.2194 9.87563C18.4482 9.64687 18.4482 9.2759 18.2194 9.04706Z",
43
+ fill: "var(--color-main)"
44
+ }
45
+ ),
46
+ /* @__PURE__ */ C(
47
+ "path",
48
+ {
49
+ d: "M21.4979 9.08291L20.5404 8.12544C21.2048 6.79183 20.9571 5.15608 19.8765 4.07554C18.7959 2.99484 17.1599 2.74741 15.8262 3.41192L14.9281 2.51391C14.2427 1.82866 13.1276 1.8287 12.4424 2.51399L2.49963 12.4568C1.81266 13.1437 1.81258 14.2555 2.49963 14.9425L3.42362 15.8664C2.80957 17.2083 3.09733 18.7833 4.13316 19.819C5.17552 20.8614 6.7587 21.1426 8.09895 20.5224L9.11092 21.5058C9.79644 22.1719 10.9035 22.1634 11.5787 21.4881C12.8954 20.1714 20.6446 12.4223 20.7052 12.3617L21.498 11.5688C22.185 10.8819 22.185 9.76991 21.4979 9.08291ZM10.7501 20.6594C10.5249 20.8846 10.1559 20.8872 9.92748 20.6653L8.60773 19.383C8.60718 19.3824 8.60663 19.3819 8.60609 19.3813C8.27612 19.0607 7.8793 19.1635 7.69047 19.4183C6.79821 19.8761 5.68242 19.711 4.96173 18.9904C4.19062 18.2192 4.05558 16.9934 4.64057 16.0755C4.78824 15.8438 4.75507 15.5405 4.56076 15.3463L3.32821 14.1139C3.09924 13.8849 3.0992 13.5144 3.32821 13.2854L9.57847 7.03511L16.9765 14.4331L10.7501 20.6594ZM20.6694 10.7401L20.2909 11.1187L19.8765 10.7044C19.6478 10.4756 19.2768 10.4756 19.048 10.7044C18.8192 10.9332 18.8192 11.3042 19.048 11.533L19.4623 11.9473L17.805 13.6045L10.407 6.2065L12.0643 4.54927L12.4192 4.90411C12.6479 5.13292 13.019 5.13292 13.2477 4.90411C13.4765 4.67531 13.4765 4.30434 13.2477 4.07554L12.8928 3.72069L13.2709 3.3426C13.4994 3.11419 13.8711 3.11423 14.0994 3.3426L15.3177 4.56061C15.5175 4.76031 15.8314 4.78899 16.0641 4.62876C16.9935 3.98885 18.2484 4.10468 19.0479 4.90419C19.8474 5.70362 19.9633 6.9584 19.3235 7.88775C19.1633 8.12051 19.192 8.43447 19.3919 8.63429L20.6693 9.91153C20.8985 10.1405 20.8985 10.5111 20.6694 10.7401Z",
50
+ fill: "var(--color-main)"
51
+ }
52
+ )
53
+ ]
18
54
  }
19
55
  );
20
56
  export {
21
- r as CouponIcon
57
+ o as CouponIcon
22
58
  };
@@ -1,5 +1 @@
1
- interface ErrorIconProps {
2
- color?: string;
3
- }
4
- export declare const ErrorIcon: ({ color }: ErrorIconProps) => import("react/jsx-runtime").JSX.Element;
5
- export {};
1
+ export declare const ErrorIcon: () => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,5 @@
1
- import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
- const o = ({
3
- color: r = "var(--color-negativeFeedback-light)"
4
- }) => /* @__PURE__ */ i(
1
+ import { jsxs as i, jsx as C } from "react/jsx-runtime";
2
+ const t = () => /* @__PURE__ */ i(
5
3
  "svg",
6
4
  {
7
5
  width: "16",
@@ -9,21 +7,35 @@ const o = ({
9
7
  viewBox: "0 0 16 16",
10
8
  fill: "none",
11
9
  xmlns: "http://www.w3.org/2000/svg",
12
- "data-testid": "error-icon",
13
10
  children: [
14
- /* @__PURE__ */ e("circle", { cx: "8", cy: "8", r: "8", fill: r }),
15
- /* @__PURE__ */ e(
16
- "path",
11
+ /* @__PURE__ */ i("g", { "clip-path": "url(#clip0_396_26299)", children: [
12
+ /* @__PURE__ */ C(
13
+ "path",
14
+ {
15
+ d: "M8.02734 1C4.20206 1 1 4.09064 1 7.97266C1 11.8211 4.17212 15 8.02734 15C11.9137 15 15 11.7938 15 7.97266C15 4.11886 11.8815 1 8.02734 1ZM8.02734 14.1852C4.60478 14.1852 1.81484 11.3952 1.81484 7.97266C1.81484 4.58025 4.60478 1.81484 8.02734 1.81484C11.4197 1.81484 14.1852 4.58025 14.1852 7.97266C14.1852 11.3952 11.4197 14.1852 8.02734 14.1852Z",
16
+ fill: "#B2000B"
17
+ }
18
+ ),
19
+ /* @__PURE__ */ C(
20
+ "path",
21
+ {
22
+ d: "M11.2194 9.47927L9.7624 7.97643L11.217 6.52185C11.6967 6.04208 11.6967 5.26147 11.217 4.78172C10.7372 4.30192 9.95651 4.30197 9.4768 4.78172L8.02222 6.2363L6.51938 4.77923C6.03941 4.30192 5.26066 4.30277 4.78171 4.78172C4.30194 5.26147 4.30194 6.0421 4.78171 6.52185L6.23626 7.97643L4.77922 9.47927C4.30194 9.95923 4.30276 10.738 4.78171 11.2169C5.26066 11.6959 6.03941 11.6967 6.51938 11.2194L8.02222 9.76236L9.4768 11.2169C9.95651 11.6967 10.7372 11.6967 11.217 11.2169C11.6959 10.738 11.6967 9.95923 11.2194 9.47927ZM10.6369 10.6369C10.4766 10.7972 10.2172 10.7972 10.0568 10.6369L8.31668 8.89674C8.15825 8.73831 7.90201 8.73631 7.74115 8.89228L5.94631 10.6324C5.94478 10.6339 5.9433 10.6354 5.9418 10.6369C5.78148 10.7972 5.52204 10.7972 5.36173 10.6369C5.20141 10.4765 5.20144 10.2172 5.36173 10.0568C5.36323 10.0553 5.36471 10.0538 5.36618 10.0523L7.10634 8.25749C7.26228 8.09663 7.26031 7.84039 7.10188 7.68196L5.36173 5.94181C5.20141 5.78146 5.20141 5.52208 5.36173 5.36176C5.52204 5.20145 5.78148 5.20145 5.9418 5.36176C5.9433 5.36327 5.94478 5.36474 5.94631 5.36622L7.74115 7.10638C7.90207 7.26234 8.15831 7.26035 8.31668 7.10192L10.0568 5.36176C10.2172 5.20145 10.4766 5.20145 10.6369 5.36176C10.7972 5.52211 10.7972 5.78146 10.6369 5.94181L8.89675 7.68196C8.73832 7.84039 8.73635 8.09663 8.8923 8.25749L10.6325 10.0523C10.6339 10.0538 10.6354 10.0553 10.6369 10.0568C10.7972 10.2172 10.7972 10.4766 10.6369 10.6369Z",
23
+ fill: "#B2000B"
24
+ }
25
+ )
26
+ ] }),
27
+ /* @__PURE__ */ C("defs", { children: /* @__PURE__ */ C("clipPath", { id: "clip0_396_26299", children: /* @__PURE__ */ C(
28
+ "rect",
17
29
  {
18
- fillRule: "evenodd",
19
- clipRule: "evenodd",
20
- d: "M5.48082 6.19357C5.28406 5.99682 5.28406 5.67782 5.48082 5.48106C5.67757 5.28431 5.99657 5.28431 6.19333 5.48106L7.99995 7.28768L9.80657 5.48106C10.0033 5.28431 10.3223 5.28431 10.5191 5.48106C10.7158 5.67782 10.7158 5.99682 10.5191 6.19357L8.71246 8.00019L10.519 9.80675C10.7158 10.0035 10.7158 10.3225 10.519 10.5193C10.3223 10.716 10.0033 10.716 9.80651 10.5193L7.99995 8.7127L6.19339 10.5193C5.99663 10.716 5.67763 10.716 5.48088 10.5193C5.28412 10.3225 5.28412 10.0035 5.48088 9.80675L7.28744 8.00019L5.48082 6.19357Z",
21
- fill: "white"
30
+ width: "14",
31
+ height: "14",
32
+ fill: "white",
33
+ transform: "translate(1 1)"
22
34
  }
23
- )
35
+ ) }) })
24
36
  ]
25
37
  }
26
38
  );
27
39
  export {
28
- o as ErrorIcon
40
+ t as ErrorIcon
29
41
  };
@@ -0,0 +1 @@
1
+ export declare const ErrorIconV2: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,33 @@
1
+ import { jsxs as i, jsx as C } from "react/jsx-runtime";
2
+ const t = () => /* @__PURE__ */ i(
3
+ "svg",
4
+ {
5
+ width: "32",
6
+ height: "32",
7
+ viewBox: "0 0 32 32",
8
+ fill: "none",
9
+ xmlns: "http://www.w3.org/2000/svg",
10
+ children: [
11
+ /* @__PURE__ */ i("g", { clipPath: "url(#clip0_535_5347)", children: [
12
+ /* @__PURE__ */ C(
13
+ "path",
14
+ {
15
+ d: "M16.0547 2C8.40413 2 2 8.18127 2 15.9453C2 23.6421 8.34424 30 16.0547 30C23.8274 30 30 23.5875 30 15.9453C30 8.23771 23.7629 2 16.0547 2ZM16.0547 28.3703C9.20956 28.3703 3.62969 22.7904 3.62969 15.9453C3.62969 9.16051 9.20956 3.62969 16.0547 3.62969C22.8395 3.62969 28.3703 9.16051 28.3703 15.9453C28.3703 22.7904 22.8395 28.3703 16.0547 28.3703Z",
16
+ fill: "#B2000B"
17
+ }
18
+ ),
19
+ /* @__PURE__ */ C(
20
+ "path",
21
+ {
22
+ d: "M22.4401 18.96L19.526 15.9543L22.4351 13.0452C23.3947 12.0856 23.3947 10.5244 22.4351 9.5649C21.4756 8.6053 19.9142 8.60541 18.9548 9.5649L16.0457 12.4741L13.04 9.55993C12.08 8.6053 10.5225 8.607 9.56464 9.5649C8.60509 10.5244 8.60509 12.0857 9.56464 13.0452L12.4737 15.9543L9.55966 18.96C8.60509 19.9199 8.60673 21.4775 9.56464 22.4353C10.5225 23.3932 12.08 23.3949 13.04 22.4403L16.0457 19.5262L18.9548 22.4353C19.9142 23.3948 21.4756 23.3949 22.4351 22.4353C23.393 21.4775 23.3947 19.9199 22.4401 18.96ZM21.275 21.2752C20.9544 21.5959 20.4355 21.5959 20.1149 21.2752L16.6346 17.7949C16.3177 17.4781 15.8052 17.4741 15.4835 17.786L11.8938 21.2663C11.8908 21.2693 11.8878 21.2722 11.8848 21.2752C11.5642 21.5959 11.0453 21.5959 10.7247 21.2752C10.404 20.9546 10.4041 20.4358 10.7247 20.1152C10.7277 20.1122 10.7306 20.1091 10.7336 20.1061L14.2139 16.5164C14.5258 16.1947 14.5218 15.6822 14.205 15.3654L10.7247 11.8851C10.404 11.5644 10.404 11.0456 10.7247 10.725C11.0453 10.4044 11.5642 10.4044 11.8848 10.725C11.8878 10.728 11.8908 10.731 11.8938 10.7339L15.4835 14.2142C15.8054 14.5262 16.3178 14.5222 16.6346 14.2053L20.1149 10.725C20.4355 10.4044 20.9544 10.4044 21.275 10.725C21.5957 11.0457 21.5956 11.5644 21.275 11.8851L17.7947 15.3654C17.4779 15.6822 17.4739 16.1947 17.7858 16.5164L21.2661 20.1061C21.2691 20.1091 21.272 20.1122 21.275 20.1152C21.5957 20.4359 21.5957 20.9546 21.275 21.2752Z",
23
+ fill: "#B2000B"
24
+ }
25
+ )
26
+ ] }),
27
+ /* @__PURE__ */ C("defs", { children: /* @__PURE__ */ C("clipPath", { id: "clip0_535_5347", children: /* @__PURE__ */ C("rect", { width: "28", height: "28", fill: "white", transform: "translate(2 2)" }) }) })
28
+ ]
29
+ }
30
+ );
31
+ export {
32
+ t as ErrorIconV2
33
+ };
@@ -0,0 +1 @@
1
+ export declare const SuccessIconV2: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,30 @@
1
+ import { jsxs as s, jsx as C } from "react/jsx-runtime";
2
+ const i = () => /* @__PURE__ */ s(
3
+ "svg",
4
+ {
5
+ width: "32",
6
+ height: "32",
7
+ viewBox: "0 0 32 32",
8
+ fill: "none",
9
+ xmlns: "http://www.w3.org/2000/svg",
10
+ children: [
11
+ /* @__PURE__ */ C(
12
+ "path",
13
+ {
14
+ d: "M29.5869 5.26648C29.0362 4.71573 28.1435 4.71592 27.5933 5.26667L14.9419 17.9202L9.11396 12.092C8.56321 11.5414 7.67054 11.5413 7.12036 12.0918C6.56961 12.6424 6.56961 13.535 7.12017 14.0854L13.9451 20.9107C14.2096 21.1752 14.5681 21.3237 14.9421 21.3237C15.316 21.3237 15.6746 21.1752 15.9391 20.9107L29.5873 7.26008C30.1375 6.70971 30.1375 5.81704 29.5869 5.26648Z",
15
+ fill: "#177336"
16
+ }
17
+ ),
18
+ /* @__PURE__ */ C(
19
+ "path",
20
+ {
21
+ d: "M26.5431 14.3016C25.7645 14.3016 25.1333 14.9326 25.1333 15.7113V26.1567H4.81953V5.84297H20.904C21.6828 5.84297 22.3138 5.21196 22.3138 4.4332C22.3138 3.65464 21.6828 3.02344 20.904 3.02344H3.40976C2.6312 3.02344 2 3.65445 2 4.4332V27.5665C2 28.3453 2.6312 28.9763 3.40976 28.9763H26.5431C27.3218 28.9763 27.9528 28.3453 27.9528 27.5665V15.7113C27.9528 14.9328 27.3218 14.3016 26.5431 14.3016Z",
22
+ fill: "#177336"
23
+ }
24
+ )
25
+ ]
26
+ }
27
+ );
28
+ export {
29
+ i as SuccessIconV2
30
+ };
@@ -0,0 +1 @@
1
+ export declare const WarningIconV2: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,40 @@
1
+ import { jsxs as i, jsx as C } from "react/jsx-runtime";
2
+ const t = () => /* @__PURE__ */ i(
3
+ "svg",
4
+ {
5
+ width: "32",
6
+ height: "32",
7
+ viewBox: "0 0 32 32",
8
+ fill: "none",
9
+ xmlns: "http://www.w3.org/2000/svg",
10
+ children: [
11
+ /* @__PURE__ */ i("g", { clipPath: "url(#clip0_471_4351)", children: [
12
+ /* @__PURE__ */ C(
13
+ "path",
14
+ {
15
+ d: "M29.4265 22.6539C29.4265 22.6539 19.5314 4.469 19.5261 4.46024C17.9376 1.78483 14.064 1.78205 12.4736 4.46024C12.4684 4.469 12.4633 4.47797 12.4584 4.48694L2.57341 22.6539C0.96419 25.3874 2.93251 28.8346 6.10802 28.8346H25.8918C29.0648 28.8346 31.037 25.3897 29.4265 22.6539ZM25.8918 27.1944H6.10802C4.19994 27.1944 3.01732 25.1193 3.99208 23.4776C3.99742 23.4686 4.00255 23.4599 4.00746 23.4507L13.8914 5.28546C14.848 3.69461 17.153 3.69654 18.1083 5.28546C18.1083 5.28546 28.0024 23.4686 28.0076 23.4774C28.9817 25.118 27.8012 27.1944 25.8918 27.1944Z",
16
+ fill: "#B28100"
17
+ }
18
+ ),
19
+ /* @__PURE__ */ C(
20
+ "path",
21
+ {
22
+ d: "M15.9998 9.51758C14.6431 9.51758 13.5393 10.6216 13.5393 11.9783V16.8995C13.5393 18.2562 14.6431 19.36 15.9998 19.36C17.3567 19.36 18.4605 18.2562 18.4605 16.8995V11.9783C18.4605 10.6216 17.3567 9.51758 15.9998 9.51758ZM16.8201 16.8995C16.8201 17.3518 16.4523 17.7196 15.9998 17.7196C15.5476 17.7196 15.1797 17.3518 15.1797 16.8995V11.9783C15.1797 11.5261 15.5476 11.158 15.9998 11.158C16.4523 11.158 16.8201 11.5261 16.8201 11.9783V16.8995Z",
23
+ fill: "#B28100"
24
+ }
25
+ ),
26
+ /* @__PURE__ */ C(
27
+ "path",
28
+ {
29
+ d: "M15.9998 21.0005C14.6431 21.0005 13.5393 22.1043 13.5393 23.461C13.5393 24.8177 14.6431 25.9217 15.9998 25.9217C17.3567 25.9217 18.4605 24.8177 18.4605 23.461C18.4605 22.1043 17.3567 21.0005 15.9998 21.0005ZM15.9998 24.2813C15.5476 24.2813 15.1797 23.9132 15.1797 23.461C15.1797 23.0088 15.5476 22.6409 15.9998 22.6409C16.4523 22.6409 16.8201 23.0088 16.8201 23.461C16.8201 23.9132 16.4523 24.2813 15.9998 24.2813Z",
30
+ fill: "#B28100"
31
+ }
32
+ )
33
+ ] }),
34
+ /* @__PURE__ */ C("defs", { children: /* @__PURE__ */ C("clipPath", { id: "clip0_471_4351", children: /* @__PURE__ */ C("rect", { width: "28", height: "28", fill: "white", transform: "translate(2 2)" }) }) })
35
+ ]
36
+ }
37
+ );
38
+ export {
39
+ t as WarningIconV2
40
+ };
@@ -0,0 +1,4 @@
1
+ import { CarouselProps } from '../packages/Carousel/Carousel';
2
+
3
+ export type CarouselPropsWithoutChildren = Omit<CarouselProps, 'children'>;
4
+ export declare function useVerticalShelfCarouselProps(): CarouselPropsWithoutChildren;
@@ -0,0 +1,14 @@
1
+ import i from "./useWindowDimensions.js";
2
+ function o() {
3
+ const { isMobile: e } = i();
4
+ return {
5
+ arrow: { isVisible: !1 },
6
+ gapItems: 8,
7
+ itemWidthProp: 290,
8
+ bullet: { isVisible: !1 },
9
+ isMobile: e
10
+ };
11
+ }
12
+ export {
13
+ o as useVerticalShelfCarouselProps
14
+ };
@@ -0,0 +1,5 @@
1
+ export default function useWindowDimensions(): {
2
+ width: number | null;
3
+ height: number | null;
4
+ isMobile: boolean;
5
+ };
@@ -0,0 +1,38 @@
1
+ import { useState as u, useCallback as l, useEffect as w } from "react";
2
+ function a() {
3
+ const [o, s] = u({
4
+ width: null,
5
+ height: null,
6
+ isMobile: !1
7
+ }), n = l(() => {
8
+ var t;
9
+ if (typeof window == "undefined")
10
+ return {
11
+ width: null,
12
+ height: null,
13
+ isMobile: !1
14
+ };
15
+ const e = parseInt(
16
+ (t = getComputedStyle(document.documentElement).getPropertyValue(
17
+ "--breakpoint-notebook"
18
+ )) != null ? t : 1280,
19
+ 10
20
+ ), i = window.innerWidth, d = window.innerHeight, r = i < e;
21
+ return {
22
+ width: i,
23
+ height: d,
24
+ isMobile: r
25
+ };
26
+ }, []);
27
+ return w(() => {
28
+ if (typeof window == "undefined")
29
+ return;
30
+ function e() {
31
+ s(n());
32
+ }
33
+ return e(), window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
34
+ }, [n]), o;
35
+ }
36
+ export {
37
+ a as default
38
+ };
package/dist/main.d.ts CHANGED
@@ -17,3 +17,4 @@ export type { SearchSuggestionsProps } from './packages/SearchSugestions/types/S
17
17
  export type { SearchSuggestionsApiResponse, Searches } from './packages/SearchSugestions/types/ResponseApi';
18
18
  export { ProductCard } from './packages/ProductCard';
19
19
  export { ProductCardSeeMore } from './packages/ProductCardSeeMore/ProductCardSeeMore';
20
+ export { VouchersRedeemed } from './packages/VouchersRedeemed/VouchersRedeemed';
package/dist/main.js CHANGED
@@ -1,28 +1,30 @@
1
1
  import { CartClubAlert as e } from "./packages/CartClubAlert/CartClubAlert.js";
2
- import { Carousel as p } from "./packages/Carousel/Carousel.js";
2
+ import { Carousel as m } from "./packages/Carousel/Carousel.js";
3
3
  import { Coupons as f } from "./packages/Coupons/Coupons.js";
4
- import { Onboarding as x } from "./packages/Onboarding/Onboarding.js";
4
+ import { Onboarding as a } from "./packages/Onboarding/Onboarding.js";
5
5
  import { Tour as n } from "./packages/Tour/Tour.js";
6
- import { Regionalization as l } from "./packages/Regionalization/Regionalization.js";
7
- import { Modal as g } from "./packages/Modal/Modal.js";
8
- import { ContactCard as c } from "./packages/ContactCard/ContactCard.js";
6
+ import { Regionalization as u } from "./packages/Regionalization/Regionalization.js";
7
+ import { Modal as c } from "./packages/Modal/Modal.js";
8
+ import { ContactCard as i } from "./packages/ContactCard/ContactCard.js";
9
9
  import { ChangeOrderModal as S } from "./packages/ChangeOrderModal/ChangeOrderModal.js";
10
- import { Skeleton as b } from "./packages/Skeleton/index.js";
10
+ import { Skeleton as M } from "./packages/Skeleton/index.js";
11
11
  import { SearchSuggestions as O } from "./packages/SearchSugestions/components/SearchSuggestions/index.js";
12
- import { ProductCard as k } from "./packages/ProductCard/index.js";
13
- import { ProductCardSeeMore as A } from "./packages/ProductCardSeeMore/ProductCardSeeMore.js";
12
+ import { ProductCard as R } from "./packages/ProductCard/index.js";
13
+ import { ProductCardSeeMore as z } from "./packages/ProductCardSeeMore/ProductCardSeeMore.js";
14
+ import { VouchersRedeemed as T } from "./packages/VouchersRedeemed/VouchersRedeemed.js";
14
15
  export {
15
- p as Carousel,
16
+ m as Carousel,
16
17
  e as CartClubAlert,
17
18
  S as ChangeOrderModal,
18
- c as ContactCard,
19
+ i as ContactCard,
19
20
  f as Coupons,
20
- g as Modal,
21
- x as Onboarding,
22
- k as ProductCard,
23
- A as ProductCardSeeMore,
24
- l as Regionalization,
21
+ c as Modal,
22
+ a as Onboarding,
23
+ R as ProductCard,
24
+ z as ProductCardSeeMore,
25
+ u as Regionalization,
25
26
  O as SearchSuggestions,
26
- b as Skeleton,
27
- n as Tour
27
+ M as Skeleton,
28
+ n as Tour,
29
+ T as VouchersRedeemed
28
30
  };
@@ -0,0 +1,14 @@
1
+ import { default as React } from 'react';
2
+ import { CarouselPropsWithoutChildren } from '../../hooks/useVerticalShelfCarouselProps';
3
+
4
+ interface AdaptiveCarouselProps {
5
+ quantity: number;
6
+ children: React.ReactNode;
7
+ quantityToCarousel?: number;
8
+ propsCarousel?: CarouselPropsWithoutChildren;
9
+ activeBlur?: boolean;
10
+ forceCarousel?: boolean;
11
+ isNewDots?: boolean;
12
+ }
13
+ export declare const AdaptiveCarousel: ({ quantity, children, quantityToCarousel, propsCarousel, activeBlur, forceCarousel, isNewDots }: AdaptiveCarouselProps) => import("react/jsx-runtime").JSX.Element | null;
14
+ export {};
@@ -0,0 +1,69 @@
1
+ var D = Object.defineProperty, P = Object.defineProperties;
2
+ var T = Object.getOwnPropertyDescriptors;
3
+ var g = Object.getOwnPropertySymbols;
4
+ var $ = Object.prototype.hasOwnProperty, q = Object.prototype.propertyIsEnumerable;
5
+ var b = (o, s, r) => s in o ? D(o, s, { enumerable: !0, configurable: !0, writable: !0, value: r }) : o[s] = r, n = (o, s) => {
6
+ for (var r in s || (s = {}))
7
+ $.call(s, r) && b(o, r, s[r]);
8
+ if (g)
9
+ for (var r of g(s))
10
+ q.call(s, r) && b(o, r, s[r]);
11
+ return o;
12
+ }, h = (o, s) => P(o, T(s));
13
+ import { jsx as f, jsxs as w, Fragment as y } from "react/jsx-runtime";
14
+ /* empty css */import { useRef as z, useState as v, useEffect as E } from "react";
15
+ import { isScrollToEnd as F } from "../../utils/scroll/isScrollToEnd.js";
16
+ import I from "../../hooks/useWindowDimensions.js";
17
+ import { Carousel as R } from "../Carousel/Carousel.js";
18
+ import { carouselProps as W } from "../../utils/carousel/carouselProps.js";
19
+ const U = ({
20
+ quantity: o,
21
+ children: s,
22
+ quantityToCarousel: r = 6,
23
+ propsCarousel: N,
24
+ activeBlur: l = !0,
25
+ forceCarousel: x,
26
+ isNewDots: L
27
+ }) => {
28
+ const c = z(null), [m, S] = v(!1), [e, j] = v({
29
+ left: !1,
30
+ right: !1
31
+ }), { width: u } = I(), i = x || o >= r, k = n(n({}, W(u != null ? u : 0)), N);
32
+ return E(() => {
33
+ S(!0);
34
+ }, []), E(() => {
35
+ var p, d;
36
+ if (i && l) {
37
+ const t = (d = (p = c == null ? void 0 : c.current) == null ? void 0 : p.querySelector(".carousel-container")) != null ? d : null, a = () => {
38
+ j({
39
+ left: !!(t != null && t.scrollLeft),
40
+ right: !F(t)
41
+ });
42
+ };
43
+ return a(), t == null || t.addEventListener(
44
+ "scroll",
45
+ a,
46
+ {
47
+ passive: !1
48
+ }
49
+ ), () => t == null ? void 0 : t.removeEventListener(
50
+ "scroll",
51
+ a
52
+ );
53
+ }
54
+ }, [m, i, l]), m ? /* @__PURE__ */ f(
55
+ "div",
56
+ {
57
+ className: `adaptiveCarousel-container ${i ? "isCarousel" : "notCarousel"} ${L ? "isNewDots" : ""}`,
58
+ ref: c,
59
+ children: i ? /* @__PURE__ */ w(y, { children: [
60
+ l && (e == null ? void 0 : e.left) && /* @__PURE__ */ f("div", { className: "background-blur-left" }),
61
+ /* @__PURE__ */ f(R, h(n({}, k), { children: s })),
62
+ l && (e == null ? void 0 : e.right) && /* @__PURE__ */ f("div", { className: "background-blur-right" })
63
+ ] }) : s
64
+ }
65
+ ) : null;
66
+ };
67
+ export {
68
+ U as AdaptiveCarousel
69
+ };
@@ -1,20 +1,6 @@
1
- import { CouponType } from './types/CouponType';
1
+ import { UseCouponsParams } from './hooks/useCoupons';
2
2
 
3
- interface CouponsProps {
4
- orderFormId: string;
5
- hasItemsInCart: boolean;
6
- builder: 'faststore' | 'app';
7
- account: string;
8
- isIO?: boolean;
9
- closeIOModal?: () => void;
10
- activeOrderFormCoupon?: string;
11
- genericTaggingEvent?: (name: string, params: object) => void;
12
- disableFirstEmptyModal?: boolean;
13
- couponsList?: CouponType[];
14
- qtdCouponsView?: number;
15
- getCouponsMutation?: any;
16
- addCouponMutation?: any;
17
- removeCouponMutation?: any;
3
+ interface CouponsProps extends UseCouponsParams {
18
4
  }
19
- export declare const Coupons: ({ orderFormId, hasItemsInCart, builder, account, isIO, closeIOModal, activeOrderFormCoupon, genericTaggingEvent, disableFirstEmptyModal, couponsList, qtdCouponsView, getCouponsMutation, addCouponMutation, removeCouponMutation }: CouponsProps) => import("react/jsx-runtime").JSX.Element;
5
+ export declare const Coupons: (props: CouponsProps) => import("react/jsx-runtime").JSX.Element;
20
6
  export {};