@faststore/ui 2.0.60-alpha.0 → 2.0.62-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/dist/index.d.ts +0 -4
  2. package/dist/index.js +0 -2
  3. package/dist/index.js.map +1 -1
  4. package/package.json +2 -2
  5. package/src/components/atoms/Price/styles.scss +0 -2
  6. package/src/components/molecules/CartItem/styles.scss +128 -0
  7. package/src/components/molecules/Gift/styles.scss +4 -1
  8. package/src/components/organisms/PaymentMethods/styles.scss +63 -0
  9. package/src/index.ts +0 -22
  10. package/src/styles/components.scss +2 -0
  11. package/dist/components/molecules/CartItem/CartItem.d.ts +0 -10
  12. package/dist/components/molecules/CartItem/CartItem.js +0 -6
  13. package/dist/components/molecules/CartItem/CartItem.js.map +0 -1
  14. package/dist/components/molecules/CartItem/CartItemActions.d.ts +0 -10
  15. package/dist/components/molecules/CartItem/CartItemActions.js +0 -6
  16. package/dist/components/molecules/CartItem/CartItemActions.js.map +0 -1
  17. package/dist/components/molecules/CartItem/CartItemContent.d.ts +0 -10
  18. package/dist/components/molecules/CartItem/CartItemContent.js +0 -6
  19. package/dist/components/molecules/CartItem/CartItemContent.js.map +0 -1
  20. package/dist/components/molecules/CartItem/CartItemImage.d.ts +0 -10
  21. package/dist/components/molecules/CartItem/CartItemImage.js +0 -6
  22. package/dist/components/molecules/CartItem/CartItemImage.js.map +0 -1
  23. package/dist/components/molecules/CartItem/CartItemPrices.d.ts +0 -10
  24. package/dist/components/molecules/CartItem/CartItemPrices.js +0 -6
  25. package/dist/components/molecules/CartItem/CartItemPrices.js.map +0 -1
  26. package/dist/components/molecules/CartItem/CartItemSummary.d.ts +0 -10
  27. package/dist/components/molecules/CartItem/CartItemSummary.js +0 -6
  28. package/dist/components/molecules/CartItem/CartItemSummary.js.map +0 -1
  29. package/dist/components/molecules/CartItem/CartItemTitle.d.ts +0 -10
  30. package/dist/components/molecules/CartItem/CartItemTitle.js +0 -6
  31. package/dist/components/molecules/CartItem/CartItemTitle.js.map +0 -1
  32. package/dist/components/molecules/CartItem/index.d.ts +0 -14
  33. package/dist/components/molecules/CartItem/index.js +0 -8
  34. package/dist/components/molecules/CartItem/index.js.map +0 -1
  35. package/dist/components/molecules/PaymentMethods/PaymentMethods.d.ts +0 -26
  36. package/dist/components/molecules/PaymentMethods/PaymentMethods.js +0 -8
  37. package/dist/components/molecules/PaymentMethods/PaymentMethods.js.map +0 -1
  38. package/dist/components/molecules/PaymentMethods/index.d.ts +0 -2
  39. package/dist/components/molecules/PaymentMethods/index.js +0 -2
  40. package/dist/components/molecules/PaymentMethods/index.js.map +0 -1
  41. package/src/components/molecules/CartItem/CartItem.tsx +0 -22
  42. package/src/components/molecules/CartItem/CartItemActions.tsx +0 -24
  43. package/src/components/molecules/CartItem/CartItemContent.tsx +0 -24
  44. package/src/components/molecules/CartItem/CartItemImage.tsx +0 -22
  45. package/src/components/molecules/CartItem/CartItemPrices.tsx +0 -24
  46. package/src/components/molecules/CartItem/CartItemSummary.tsx +0 -24
  47. package/src/components/molecules/CartItem/CartItemTitle.tsx +0 -22
  48. package/src/components/molecules/CartItem/index.tsx +0 -20
  49. package/src/components/molecules/PaymentMethods/PaymentMethods.tsx +0 -57
  50. package/src/components/molecules/PaymentMethods/index.tsx +0 -2
package/dist/index.d.ts CHANGED
@@ -13,8 +13,6 @@ export { default as ProductCard, ProductCardImage, ProductCardContent, ProductCa
13
13
  export type { ProductCardProps, ProductCardImageProps, ProductCardContentProps, ProductCardActionsProps, } from './components/molecules/ProductCard';
14
14
  export { default as Card, CardImage, CardContent, CardActions, } from './components/molecules/Card';
15
15
  export type { CardProps, CardImageProps, CardContentProps, CardActionsProps, } from './components/molecules/Card';
16
- export { default as CartItem, CartItemActions, CartItemContent, CartItemImage, CartItemPrices, CartItemSummary, CartItemTitle, } from './components/molecules/CartItem';
17
- export type { CartItemProps, CartItemActionsProps, CartItemContentProps, CartItemImageProps, CartItemPricesProps, CartItemSummaryProps, CartItemTitleProps, } from './components/molecules/CartItem';
18
16
  export { default as Bullets } from './components/molecules/Bullets';
19
17
  export type { BulletsProps } from './components/molecules/Bullets';
20
18
  export { default as SearchInput } from './components/molecules/SearchInput';
@@ -23,8 +21,6 @@ export { default as Carousel } from './components/molecules/Carousel';
23
21
  export type { CarouselProps } from './components/molecules/Carousel';
24
22
  export { default as Banner, BannerContent, BannerImage, BannerLink, } from './components/molecules/Banner';
25
23
  export type { BannerProps, BannerContentProps, BannerImageProps, BannerLinkProps, } from './components/molecules/Banner';
26
- export { default as PaymentMethods } from './components/molecules/PaymentMethods';
27
- export type { PaymentMethodsProps } from './components/molecules/PaymentMethods';
28
24
  export { default as Breadcrumb } from './components/molecules/Breadcrumb';
29
25
  export type { BreadcrumbProps } from './components/molecules/Breadcrumb';
30
26
  export { default as Form } from './components/molecules/Form';
package/dist/index.js CHANGED
@@ -8,12 +8,10 @@ export { default as SkuSelector } from './components/molecules/SkuSelector';
8
8
  export { default as OrderSummary } from './components/molecules/OrderSummary';
9
9
  export { default as ProductCard, ProductCardImage, ProductCardContent, ProductCardActions, } from './components/molecules/ProductCard';
10
10
  export { default as Card, CardImage, CardContent, CardActions, } from './components/molecules/Card';
11
- export { default as CartItem, CartItemActions, CartItemContent, CartItemImage, CartItemPrices, CartItemSummary, CartItemTitle, } from './components/molecules/CartItem';
12
11
  export { default as Bullets } from './components/molecules/Bullets';
13
12
  export { default as SearchInput } from './components/molecules/SearchInput';
14
13
  export { default as Carousel } from './components/molecules/Carousel';
15
14
  export { default as Banner, BannerContent, BannerImage, BannerLink, } from './components/molecules/Banner';
16
- export { default as PaymentMethods } from './components/molecules/PaymentMethods';
17
15
  export { default as Breadcrumb } from './components/molecules/Breadcrumb';
18
16
  export { default as Form } from './components/molecules/Form';
19
17
  // Organisms
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA;AAErC,QAAQ;AACR,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAG/D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,6BAA6B,CAAA;AAGjE,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,8BAA8B,CAAA;AAGnE,YAAY;AACZ,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,oCAAoC,CAAA;AAG3E,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,qCAAqC,CAAA;AAG7E,OAAO,EACL,OAAO,IAAI,WAAW,EACtB,gBAAgB,EAChB,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,oCAAoC,CAAA;AAQ3C,OAAO,EACL,OAAO,IAAI,IAAI,EACf,SAAS,EACT,WAAW,EACX,WAAW,GACZ,MAAM,6BAA6B,CAAA;AAQpC,OAAO,EACL,OAAO,IAAI,QAAQ,EACnB,eAAe,EACf,eAAe,EACf,aAAa,EACb,cAAc,EACd,eAAe,EACf,aAAa,GACd,MAAM,iCAAiC,CAAA;AAWxC,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,gCAAgC,CAAA;AAGnE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,oCAAoC,CAAA;AAM3E,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,iCAAiC,CAAA;AAGrE,OAAO,EACL,OAAO,IAAI,MAAM,EACjB,aAAa,EACb,WAAW,EACX,UAAU,GACX,MAAM,+BAA+B,CAAA;AAQtC,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,uCAAuC,CAAA;AAGjF,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,mCAAmC,CAAA;AAGzE,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,6BAA6B,CAAA;AAG7D,YAAY;AACZ,OAAO,EACL,OAAO,IAAI,UAAU,EACrB,eAAe,EACf,iBAAiB,GAClB,MAAM,mCAAmC,CAAA;AAO1C,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAA;AAG1D,QAAQ;AACR,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,mBAAmB,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA;AAErC,QAAQ;AACR,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAG/D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,6BAA6B,CAAA;AAGjE,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,8BAA8B,CAAA;AAGnE,YAAY;AACZ,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,oCAAoC,CAAA;AAG3E,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,qCAAqC,CAAA;AAG7E,OAAO,EACL,OAAO,IAAI,WAAW,EACtB,gBAAgB,EAChB,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,oCAAoC,CAAA;AAQ3C,OAAO,EACL,OAAO,IAAI,IAAI,EACf,SAAS,EACT,WAAW,EACX,WAAW,GACZ,MAAM,6BAA6B,CAAA;AAQpC,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,gCAAgC,CAAA;AAGnE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,oCAAoC,CAAA;AAM3E,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,iCAAiC,CAAA;AAGrE,OAAO,EACL,OAAO,IAAI,MAAM,EACjB,aAAa,EACb,WAAW,EACX,UAAU,GACX,MAAM,+BAA+B,CAAA;AAQtC,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,mCAAmC,CAAA;AAGzE,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,6BAA6B,CAAA;AAG7D,YAAY;AACZ,OAAO,EACL,OAAO,IAAI,UAAU,EACrB,eAAe,EACf,iBAAiB,GAClB,MAAM,mCAAmC,CAAA;AAO1C,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAA;AAG1D,QAAQ;AACR,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,mBAAmB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faststore/ui",
3
- "version": "2.0.60-alpha.0",
3
+ "version": "2.0.62-alpha.0",
4
4
  "description": "A lightweight, framework agnostic component library for React",
5
5
  "author": "emersonlaurentino",
6
6
  "license": "MIT",
@@ -59,5 +59,5 @@
59
59
  "node": "16.18.0",
60
60
  "yarn": "1.19.1"
61
61
  },
62
- "gitHead": "11f43052ae13416e55c3381ad6b655d0865f3bbd"
62
+ "gitHead": "62683f903ca899d767fae418db5169cadf15e0f4"
63
63
  }
@@ -8,7 +8,6 @@
8
8
  --fs-price-listing-text-decoration : line-through;
9
9
 
10
10
  // Spot
11
- --fs-price-spot-margin-left : var(--fs-spacing-1);
12
11
  --fs-price-spot-font-weight : var(--fs-text-weight-bold);
13
12
 
14
13
  // --------------------------------------------------------
@@ -21,7 +20,6 @@
21
20
  }
22
21
 
23
22
  &[data-fs-price-variant="spot"] {
24
- margin-left: var(--fs-price-spot-margin-left);
25
23
  font-weight: var(--fs-price-spot-font-weight);
26
24
  }
27
25
  }
@@ -0,0 +1,128 @@
1
+ [data-fs-cart-item] {
2
+ // --------------------------------------------------------
3
+ // Design Tokens for CartItem
4
+ // --------------------------------------------------------
5
+
6
+ // Default properties
7
+ --fs-cart-item-padding : var(--fs-spacing-2);
8
+ --fs-cart-item-bkg-color : var(--fs-control-bkg);
9
+
10
+ --fs-cart-item-border-width : var(--fs-border-width);
11
+ --fs-cart-item-border-color : var(--fs-border-color-light);
12
+ --fs-cart-item-border-radius : var(--fs-border-radius);
13
+
14
+ // Image
15
+ --fs-cart-item-image-border-radius : var(--fs-cart-item-border-radius);
16
+ --fs-cart-item-image-width : var(--fs-spacing-8);
17
+ --fs-cart-item-image-height : var(--fs-cart-item-image-width);
18
+
19
+ // Title
20
+ --fs-cart-item-title-weight : var(--fs-text-weight-bold);
21
+ --fs-cart-item-title-line-height : 1.2;
22
+ --fs-cart-item-title-color : var(--fs-color-text);
23
+
24
+ // SKUs
25
+ --fs-cart-item-skus-margin-top : var(--fs-spacing-0);
26
+ --fs-cart-item-skus-text-size : var(--fs-text-size-legend);
27
+ --fs-cart-item-skus-text-color : var(--fs-color-text-light);
28
+ --fs-cart-item-skus-line-height : var(--fs-text-size-body);
29
+ --fs-cart-item-skus-column-gap : var(--fs-spacing-1);
30
+ --fs-cart-item-skus-row-gap : var(--fs-spacing-0);
31
+
32
+ // Prices
33
+ --fs-cart-item-price-gap : var(--fs-spacing-1);
34
+ --fs-cart-item-listing-price-text-size : var(--fs-text-size-legend);
35
+
36
+
37
+ // --------------------------------------------------------
38
+ // Structural Styles
39
+ // --------------------------------------------------------
40
+
41
+ position: relative;
42
+ display: flex;
43
+ flex-wrap: wrap;
44
+ justify-content: space-between;
45
+ background-color: var(--fs-cart-item-bkg-color);
46
+ border: var(--fs-cart-item-border-width) solid var(--fs-cart-item-border-color);
47
+ border-radius: var(--fs-cart-item-border-radius);
48
+ width: 100%;
49
+
50
+ [data-fs-cart-item-content] {
51
+ padding: var(--fs-cart-item-padding) 0 var(--fs-cart-item-padding) var(--fs-cart-item-padding);
52
+ display: flex;
53
+ column-gap: var(--fs-cart-item-padding);
54
+ align-items: flex-start;
55
+ width: calc(100% - var(--fs-control-tap-size));
56
+ }
57
+
58
+ [data-fs-cart-item-image] {
59
+ border-radius: var(--fs-cart-item-image-border-radius);
60
+ overflow: hidden;
61
+ width: var(--fs-cart-item-image-width);
62
+ height: var(--fs-cart-item-image-height);
63
+ flex-shrink: 0;
64
+ [data-fs-image] {
65
+ width: 100%;
66
+ height: 100%;
67
+ object-fit: cover;
68
+ }
69
+ }
70
+
71
+ [data-fs-cart-item-title] {
72
+ font-weight: var(--fs-cart-item-title-weight);
73
+ line-height: var(--fs-cart-item-title-line-height);
74
+ color: var(--fs-cart-item-title-color);
75
+ text-decoration: none;
76
+ outline: none;
77
+
78
+ @include truncate-title;
79
+ }
80
+
81
+ [data-fs-cart-item-skus] {
82
+ display: flex;
83
+ flex-wrap: wrap;
84
+ column-gap: var(--fs-cart-item-skus-column-gap);
85
+ row-gap: var(--fs-cart-item-skus-row-gap);
86
+ font-size: var(--fs-cart-item-skus-text-size);
87
+ line-height: var(--fs-cart-item-skus-line-height);
88
+ color: var(--fs-cart-item-skus-text-color);
89
+ margin-top: var(--fs-cart-item-skus-margin-top);
90
+ span { font-weight: var(--fs-cart-item-title-weight); }
91
+ }
92
+
93
+ [data-fs-cart-item-remove-button] {
94
+ position: absolute;
95
+ right: 0;
96
+ }
97
+
98
+ [data-fs-cart-item-prices] {
99
+ display: flex;
100
+ align-items: baseline;
101
+ column-gap: var(--fs-cart-item-price-gap);
102
+ [data-fs-price-variant="listing"] { font-size: var(--fs-cart-item-listing-price-text-size); }
103
+ }
104
+
105
+ [data-fs-cart-item-actions] {
106
+ display: flex;
107
+ align-items: center;
108
+ width: 100%;
109
+ justify-content: space-between;
110
+ padding-right: var(--fs-cart-item-padding);
111
+ border-top: var(--fs-cart-item-border-width) solid var(--fs-cart-item-border-color);
112
+ [data-quantity-selector-input] {
113
+ border-color: transparent;
114
+ border-top-left-radius: 0;
115
+ border-top-right-radius: 0;
116
+ }
117
+ }
118
+
119
+ // --------------------------------------------------------
120
+ // Variants Styles
121
+ // --------------------------------------------------------
122
+
123
+ &[data-fs-cart-item="unavailable"] {
124
+ background-color: var(--fs-color-neutral-bkg);
125
+ [data-fs-cart-item-actions] { display: none; }
126
+ }
127
+
128
+ }
@@ -6,6 +6,7 @@
6
6
  // Default properties
7
7
 
8
8
  --fs-gift-height : var(--fs-spacing-12);
9
+ --fs-gift-bkg-color : var(--fs-control-bkg);
9
10
 
10
11
  --fs-gift-border-width : var(--fs-border-width);
11
12
  --fs-gift-border-color : var(--fs-border-color-light);
@@ -21,7 +22,7 @@
21
22
  --fs-gift-title-color : var(--fs-color-text);
22
23
 
23
24
  // Icon
24
- --fs-gift-icon-size : 1.75rem; // 28px
25
+ --fs-gift-icon-size : 1.5rem; // 24px
25
26
  --fs-gift-icon-padding : var(--fs-spacing-0);
26
27
  --fs-gift-icon-color : var(--fs-gift-title-color);
27
28
  --fs-gift-icon-bkg-color : var(--fs-color-body-bkg);
@@ -31,6 +32,7 @@
31
32
  // --------------------------------------------------------
32
33
 
33
34
  position: relative;
35
+ margin-top: calc(var(--fs-gift-icon-size)/2);
34
36
 
35
37
  [data-fs-gift-wrapper] {
36
38
  display: grid;
@@ -40,6 +42,7 @@
40
42
  overflow: hidden;
41
43
  border: var(--fs-gift-border-width) solid var(--fs-gift-border-color);
42
44
  border-radius: var(--fs-gift-border-radius);
45
+ background-color: var(--fs-gift-bkg-color);
43
46
  }
44
47
 
45
48
  [data-fs-gift-image] {
@@ -0,0 +1,63 @@
1
+ [data-fs-payment-methods] {
2
+ // --------------------------------------------------------
3
+ // Design Tokens for Payment Methods
4
+ // --------------------------------------------------------
5
+
6
+ // Default properties
7
+
8
+ // Title
9
+ --fs-payment-methods-title-size : var(--fs-text-size-body);
10
+ --fs-payment-methods-title-weight : var(--fs-text-weight-bold);
11
+ --fs-payment-methods-title-line-height : 1.25;
12
+
13
+ // Flag
14
+ --fs-payment-methods-flag-width : 2.125rem;
15
+ --fs-payment-methods-flag-border-width : var(--fs-border-width);
16
+ --fs-payment-methods-flag-border-color : var(--fs-color-neutral-3);
17
+ --fs-payment-methods-flag-border-radius : var(--fs-border-radius-small);
18
+
19
+ // Flags
20
+ --fs-payment-methods-flags-row-gap : var(--fs-spacing-1);
21
+ --fs-payment-methods-flags-margin-top : var(--fs-spacing-3);
22
+
23
+ // --------------------------------------------------------
24
+ // Structural Styles
25
+ // --------------------------------------------------------
26
+
27
+ [data-fs-payment-methods-title] {
28
+ & > *:first-child {
29
+ font-size: var(--fs-payment-methods-title-size);
30
+ font-weight: var(--fs-payment-methods-title-weight);
31
+ line-height: var(--fs-payment-methods-title-line-height);
32
+ }
33
+
34
+ @include media("<notebook") {
35
+ text-align: center;
36
+ }
37
+ }
38
+
39
+ [data-fs-payment-methods-flags] {
40
+ display: grid;
41
+ grid-template-columns: repeat(4, minmax(0, max-content));
42
+ row-gap: var(--fs-payment-methods-flags-row-gap);
43
+ justify-content: space-between;
44
+ margin-top: var(--fs-payment-methods-flags-margin-top);
45
+
46
+ li {
47
+ display: flex;
48
+ place-content: center;
49
+ }
50
+
51
+ @include media("<notebook") {
52
+ column-gap: var(--fs-grid-gap-2);
53
+ }
54
+ }
55
+
56
+ [data-fs-payment-methods-flag] {
57
+ width: var(--fs-payment-methods-flag-width);
58
+ height: var(--fs-payment-methods-flag-height);
59
+ overflow: hidden;
60
+ border: var(--fs-payment-methods-flag-border-width) solid var(--fs-payment-methods-flag-border-color);
61
+ border-radius: var(--fs-payment-methods-flag-border-radius);
62
+ }
63
+ }
package/src/index.ts CHANGED
@@ -43,25 +43,6 @@ export type {
43
43
  CardActionsProps,
44
44
  } from './components/molecules/Card'
45
45
 
46
- export {
47
- default as CartItem,
48
- CartItemActions,
49
- CartItemContent,
50
- CartItemImage,
51
- CartItemPrices,
52
- CartItemSummary,
53
- CartItemTitle,
54
- } from './components/molecules/CartItem'
55
- export type {
56
- CartItemProps,
57
- CartItemActionsProps,
58
- CartItemContentProps,
59
- CartItemImageProps,
60
- CartItemPricesProps,
61
- CartItemSummaryProps,
62
- CartItemTitleProps,
63
- } from './components/molecules/CartItem'
64
-
65
46
  export { default as Bullets } from './components/molecules/Bullets'
66
47
  export type { BulletsProps } from './components/molecules/Bullets'
67
48
 
@@ -87,9 +68,6 @@ export type {
87
68
  BannerLinkProps,
88
69
  } from './components/molecules/Banner'
89
70
 
90
- export { default as PaymentMethods } from './components/molecules/PaymentMethods'
91
- export type { PaymentMethodsProps } from './components/molecules/PaymentMethods'
92
-
93
71
  export { default as Breadcrumb } from './components/molecules/Breadcrumb'
94
72
  export type { BreadcrumbProps } from './components/molecules/Breadcrumb'
95
73
 
@@ -19,6 +19,7 @@
19
19
  @import "../components/molecules/Accordion/styles";
20
20
  @import "../components/molecules/Alert/styles";
21
21
  @import "../components/molecules/BuyButton/styles";
22
+ @import "../components/molecules/CartItem/styles";
22
23
  @import "../components/molecules/CheckboxField/styles";
23
24
  @import "../components/molecules/DiscountBadge/styles";
24
25
  @import "../components/molecules/Dropdown/styles";
@@ -38,4 +39,5 @@
38
39
 
39
40
  // Organisms
40
41
  @import "../components/organisms/Hero/styles";
42
+ @import "../components/organisms/PaymentMethods/styles";
41
43
  @import "../components/organisms/PriceRange/styles";
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import type { HTMLAttributes } from 'react';
3
- export interface CartItemProps extends HTMLAttributes<HTMLDivElement> {
4
- /**
5
- * ID to find this component in testing tools (e.g.: Cypress, Testing Library, and Jest).
6
- */
7
- testId?: string;
8
- }
9
- declare const CartItem: React.ForwardRefExoticComponent<CartItemProps & React.RefAttributes<HTMLDivElement>>;
10
- export default CartItem;
@@ -1,6 +0,0 @@
1
- import React, { forwardRef } from 'react';
2
- const CartItem = forwardRef(function CartItem({ testId = 'store-cart-item', children, ...otherProps }, ref) {
3
- return (React.createElement("article", { ref: ref, "data-fs-cart-item": true, "data-testid": testId, ...otherProps }, children));
4
- });
5
- export default CartItem;
6
- //# sourceMappingURL=CartItem.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CartItem.js","sourceRoot":"","sources":["../../../../src/components/molecules/CartItem/CartItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAUzC,MAAM,QAAQ,GAAG,UAAU,CAAgC,SAAS,QAAQ,CAC1E,EAAE,MAAM,GAAG,iBAAiB,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,EACvD,GAAG;IAEH,OAAO,CACL,iCAAS,GAAG,EAAE,GAAG,4CAAiC,MAAM,KAAM,UAAU,IACrE,QAAQ,CACD,CACX,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,eAAe,QAAQ,CAAA"}
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import type { HTMLAttributes } from 'react';
3
- export interface CartItemActionsProps extends HTMLAttributes<HTMLDivElement> {
4
- /**
5
- * ID to find this component in testing tools (e.g.: Cypress, Testing Library, and Jest).
6
- */
7
- testId?: string;
8
- }
9
- declare const CartItemActions: React.ForwardRefExoticComponent<CartItemActionsProps & React.RefAttributes<HTMLDivElement>>;
10
- export default CartItemActions;
@@ -1,6 +0,0 @@
1
- import React, { forwardRef } from 'react';
2
- const CartItemActions = forwardRef(function CartItemActions({ testId = 'store-cart-item-actions', children, ...otherProps }, ref) {
3
- return (React.createElement("div", { ref: ref, "data-fs-cart-item-actions": true, "data-testid": testId, ...otherProps }, children));
4
- });
5
- export default CartItemActions;
6
- //# sourceMappingURL=CartItemActions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CartItemActions.js","sourceRoot":"","sources":["../../../../src/components/molecules/CartItem/CartItemActions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAUzC,MAAM,eAAe,GAAG,UAAU,CAChC,SAAS,eAAe,CACtB,EAAE,MAAM,GAAG,yBAAyB,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,EAC/D,GAAG;IAEH,OAAO,CACL,6BAAK,GAAG,EAAE,GAAG,oDAAyC,MAAM,KAAM,UAAU,IACzE,QAAQ,CACL,CACP,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,eAAe,CAAA"}
@@ -1,10 +0,0 @@
1
- import type { HTMLAttributes } from 'react';
2
- import React from 'react';
3
- export interface CartItemContentProps extends HTMLAttributes<HTMLElement> {
4
- /**
5
- * ID to find this component in testing tools (e.g.: Cypress, Testing Library, and Jest).
6
- */
7
- testId?: string;
8
- }
9
- declare const CartItemContent: React.ForwardRefExoticComponent<CartItemContentProps & React.RefAttributes<HTMLElement>>;
10
- export default CartItemContent;
@@ -1,6 +0,0 @@
1
- import React, { forwardRef } from 'react';
2
- const CartItemContent = forwardRef(function CartItemContent({ testId = 'store-cart-item-content', children, ...otherProps }, ref) {
3
- return (React.createElement("section", { ref: ref, "data-fs-cart-item-content": true, "data-testid": testId, ...otherProps }, children));
4
- });
5
- export default CartItemContent;
6
- //# sourceMappingURL=CartItemContent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CartItemContent.js","sourceRoot":"","sources":["../../../../src/components/molecules/CartItem/CartItemContent.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AASzC,MAAM,eAAe,GAAG,UAAU,CAChC,SAAS,eAAe,CACtB,EAAE,MAAM,GAAG,yBAAyB,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,EAC/D,GAAG;IAEH,OAAO,CACL,iCAAS,GAAG,EAAE,GAAG,oDAAyC,MAAM,KAAM,UAAU,IAC7E,QAAQ,CACD,CACX,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,eAAe,CAAA"}
@@ -1,10 +0,0 @@
1
- import type { HTMLAttributes } from 'react';
2
- import React from 'react';
3
- export interface CartItemImageProps extends HTMLAttributes<HTMLDivElement> {
4
- /**
5
- * ID to find this component in testing tools (e.g.: Cypress, Testing Library, and Jest).
6
- */
7
- testId?: string;
8
- }
9
- declare const CartItemImage: React.ForwardRefExoticComponent<CartItemImageProps & React.RefAttributes<HTMLDivElement>>;
10
- export default CartItemImage;
@@ -1,6 +0,0 @@
1
- import React, { forwardRef } from 'react';
2
- const CartItemImage = forwardRef(function CartItemImage({ testId = 'store-cart-item-image', children, ...otherProps }, ref) {
3
- return (React.createElement("div", { ref: ref, "data-fs-cart-item-image": true, "data-testid": testId, ...otherProps }, children));
4
- });
5
- export default CartItemImage;
6
- //# sourceMappingURL=CartItemImage.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CartItemImage.js","sourceRoot":"","sources":["../../../../src/components/molecules/CartItem/CartItemImage.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AASzC,MAAM,aAAa,GAAG,UAAU,CAAqC,SAAS,aAAa,CACzF,EAAE,MAAM,GAAG,uBAAuB,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,EAC7D,GAAG;IAEH,OAAO,CACL,6BAAK,GAAG,EAAE,GAAG,kDAAuC,MAAM,KAAM,UAAU,IACvE,QAAQ,CACL,CACP,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,eAAe,aAAa,CAAA"}
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import type { HTMLAttributes } from 'react';
3
- export interface CartItemPricesProps extends HTMLAttributes<HTMLSpanElement> {
4
- /**
5
- * ID to find this component in testing tools (e.g.: Cypress, Testing Library, and Jest).
6
- */
7
- testId?: string;
8
- }
9
- declare const CartItemPrices: React.ForwardRefExoticComponent<CartItemPricesProps & React.RefAttributes<HTMLSpanElement>>;
10
- export default CartItemPrices;
@@ -1,6 +0,0 @@
1
- import React, { forwardRef } from 'react';
2
- const CartItemPrices = forwardRef(function CartItemPrices({ testId = 'store-cart-item-prices', children, ...otherProps }, ref) {
3
- return (React.createElement("span", { ref: ref, "data-fs-cart-item-prices": true, "data-testid": testId, ...otherProps }, children));
4
- });
5
- export default CartItemPrices;
6
- //# sourceMappingURL=CartItemPrices.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CartItemPrices.js","sourceRoot":"","sources":["../../../../src/components/molecules/CartItem/CartItemPrices.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAUzC,MAAM,cAAc,GAAG,UAAU,CAC/B,SAAS,cAAc,CACrB,EAAE,MAAM,GAAG,wBAAwB,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,EAC9D,GAAG;IAEH,OAAO,CACL,8BAAM,GAAG,EAAE,GAAG,mDAAwC,MAAM,KAAM,UAAU,IACzE,QAAQ,CACJ,CACR,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,cAAc,CAAA"}
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import type { HTMLAttributes } from 'react';
3
- export interface CartItemSummaryProps extends HTMLAttributes<HTMLDivElement> {
4
- /**
5
- * ID to find this component in testing tools (e.g.: Cypress, Testing Library, and Jest).
6
- */
7
- testId?: string;
8
- }
9
- declare const CartItemSummary: React.ForwardRefExoticComponent<CartItemSummaryProps & React.RefAttributes<HTMLDivElement>>;
10
- export default CartItemSummary;
@@ -1,6 +0,0 @@
1
- import React, { forwardRef } from 'react';
2
- const CartItemSummary = forwardRef(function CartItemSummary({ testId = 'store-cart-item-summary', children, ...otherProps }, ref) {
3
- return (React.createElement("div", { ref: ref, "data-fs-cart-item-summary": true, "data-testid": testId, ...otherProps }, children));
4
- });
5
- export default CartItemSummary;
6
- //# sourceMappingURL=CartItemSummary.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CartItemSummary.js","sourceRoot":"","sources":["../../../../src/components/molecules/CartItem/CartItemSummary.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAUzC,MAAM,eAAe,GAAG,UAAU,CAChC,SAAS,eAAe,CACtB,EAAE,MAAM,GAAG,yBAAyB,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,EAC/D,GAAG;IAEH,OAAO,CACL,6BAAK,GAAG,EAAE,GAAG,oDAAyC,MAAM,KAAM,UAAU,IACzE,QAAQ,CACL,CACP,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,eAAe,CAAA"}
@@ -1,10 +0,0 @@
1
- import type { HTMLAttributes } from 'react';
2
- import React from 'react';
3
- export interface CartItemTitleProps extends HTMLAttributes<HTMLDivElement> {
4
- /**
5
- * ID to find this component in testing tools (e.g.: Cypress, Testing Library, and Jest).
6
- */
7
- testId?: string;
8
- }
9
- declare const CartItemTitle: React.ForwardRefExoticComponent<CartItemTitleProps & React.RefAttributes<HTMLDivElement>>;
10
- export default CartItemTitle;
@@ -1,6 +0,0 @@
1
- import React, { forwardRef } from 'react';
2
- const CartItemTitle = forwardRef(function CartItemTitle({ testId = 'store-cart-item-title', children, ...otherProps }, ref) {
3
- return (React.createElement("div", { ref: ref, "data-fs-cart-item-title": true, "data-testid": testId, ...otherProps }, children));
4
- });
5
- export default CartItemTitle;
6
- //# sourceMappingURL=CartItemTitle.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CartItemTitle.js","sourceRoot":"","sources":["../../../../src/components/molecules/CartItem/CartItemTitle.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AASzC,MAAM,aAAa,GAAG,UAAU,CAAqC,SAAS,aAAa,CACzF,EAAE,MAAM,GAAG,uBAAuB,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,EAC7D,GAAG;IAEH,OAAO,CACL,6BAAK,GAAG,EAAE,GAAG,kDAAuC,MAAM,KAAM,UAAU,IACvE,QAAQ,CACL,CACP,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,eAAe,aAAa,CAAA"}
@@ -1,14 +0,0 @@
1
- export { default } from './CartItem';
2
- export type { CartItemProps } from './CartItem';
3
- export { default as CartItemActions } from './CartItemActions';
4
- export type { CartItemActionsProps } from './CartItemActions';
5
- export { default as CartItemContent } from './CartItemContent';
6
- export type { CartItemContentProps } from './CartItemContent';
7
- export { default as CartItemImage } from './CartItemImage';
8
- export type { CartItemImageProps } from './CartItemImage';
9
- export { default as CartItemPrices } from './CartItemPrices';
10
- export type { CartItemPricesProps } from './CartItemPrices';
11
- export { default as CartItemSummary } from './CartItemSummary';
12
- export type { CartItemSummaryProps } from './CartItemSummary';
13
- export { default as CartItemTitle } from './CartItemTitle';
14
- export type { CartItemTitleProps } from './CartItemTitle';
@@ -1,8 +0,0 @@
1
- export { default } from './CartItem';
2
- export { default as CartItemActions } from './CartItemActions';
3
- export { default as CartItemContent } from './CartItemContent';
4
- export { default as CartItemImage } from './CartItemImage';
5
- export { default as CartItemPrices } from './CartItemPrices';
6
- export { default as CartItemSummary } from './CartItemSummary';
7
- export { default as CartItemTitle } from './CartItemTitle';
8
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/molecules/CartItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAGpC,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAG9D,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAG9D,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAG1D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAG5D,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAG9D,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAA"}
@@ -1,26 +0,0 @@
1
- import type { ReactNode, AriaAttributes } from 'react';
2
- import React from 'react';
3
- export interface PaymentMethodsProps {
4
- /**
5
- * ID to find this component in testing tools (e.g.: cypress,
6
- * testing-library, and jest).
7
- */
8
- testId?: string;
9
- /**
10
- * Title of the payment methods section (e.g.: "Payment methods",
11
- * "Accepted Cards").
12
- */
13
- title?: ReactNode;
14
- /**
15
- * Defines a string value that labels the current element when
16
- * title is not used.
17
- */
18
- 'aria-label'?: AriaAttributes['aria-label'];
19
- /**
20
- * Children will receive the flags to be displayed in the payment
21
- * methods section (e.g.:, visa, mastercard, etc).
22
- */
23
- children: ReactNode;
24
- }
25
- declare const PaymentMethods: React.ForwardRefExoticComponent<PaymentMethodsProps & React.RefAttributes<HTMLDivElement>>;
26
- export default PaymentMethods;
@@ -1,8 +0,0 @@
1
- import React, { forwardRef } from 'react';
2
- const PaymentMethods = forwardRef(function PaymentMethods({ testId = 'store-payment-methods', title, 'aria-label': ariaLabel = 'Payment Methods', children, ...otherProps }, ref) {
3
- return (React.createElement("div", { ref: ref, "data-fs-payment-methods": true, "data-testid": testId, ...otherProps },
4
- !!title && React.createElement("div", null, title),
5
- React.createElement("div", { "data-payment-methods-flags": true, "aria-label": title ? undefined : ariaLabel }, children)));
6
- });
7
- export default PaymentMethods;
8
- //# sourceMappingURL=PaymentMethods.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PaymentMethods.js","sourceRoot":"","sources":["../../../../src/components/molecules/PaymentMethods/PaymentMethods.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAyBzC,MAAM,cAAc,GAAG,UAAU,CAC/B,SAAS,cAAc,CACrB,EACE,MAAM,GAAG,uBAAuB,EAChC,KAAK,EACL,YAAY,EAAE,SAAS,GAAG,iBAAiB,EAC3C,QAAQ,EACR,GAAG,UAAU,EACd,EACD,GAAG;IAEH,OAAO,CACL,6BACE,GAAG,EAAE,GAAG,kDAEK,MAAM,KACf,UAAU;QAEb,CAAC,CAAC,KAAK,IAAI,iCAAM,KAAK,CAAO;QAC9B,+EAEc,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,IAExC,QAAQ,CACL,CACF,CACP,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,cAAc,CAAA"}
@@ -1,2 +0,0 @@
1
- export { default } from './PaymentMethods';
2
- export type { PaymentMethodsProps } from './PaymentMethods';
@@ -1,2 +0,0 @@
1
- export { default } from './PaymentMethods';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/molecules/PaymentMethods/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA"}
@@ -1,22 +0,0 @@
1
- import React, { forwardRef } from 'react'
2
- import type { HTMLAttributes } from 'react'
3
-
4
- export interface CartItemProps extends HTMLAttributes<HTMLDivElement> {
5
- /**
6
- * ID to find this component in testing tools (e.g.: Cypress, Testing Library, and Jest).
7
- */
8
- testId?: string
9
- }
10
-
11
- const CartItem = forwardRef<HTMLDivElement, CartItemProps>(function CartItem(
12
- { testId = 'store-cart-item', children, ...otherProps },
13
- ref
14
- ) {
15
- return (
16
- <article ref={ref} data-fs-cart-item data-testid={testId} {...otherProps}>
17
- {children}
18
- </article>
19
- )
20
- })
21
-
22
- export default CartItem
@@ -1,24 +0,0 @@
1
- import React, { forwardRef } from 'react'
2
- import type { HTMLAttributes } from 'react'
3
-
4
- export interface CartItemActionsProps extends HTMLAttributes<HTMLDivElement> {
5
- /**
6
- * ID to find this component in testing tools (e.g.: Cypress, Testing Library, and Jest).
7
- */
8
- testId?: string
9
- }
10
-
11
- const CartItemActions = forwardRef<HTMLDivElement, CartItemActionsProps>(
12
- function CartItemActions(
13
- { testId = 'store-cart-item-actions', children, ...otherProps },
14
- ref
15
- ) {
16
- return (
17
- <div ref={ref} data-fs-cart-item-actions data-testid={testId} {...otherProps}>
18
- {children}
19
- </div>
20
- )
21
- }
22
- )
23
-
24
- export default CartItemActions
@@ -1,24 +0,0 @@
1
- import type { HTMLAttributes } from 'react'
2
- import React, { forwardRef } from 'react'
3
-
4
- export interface CartItemContentProps extends HTMLAttributes<HTMLElement> {
5
- /**
6
- * ID to find this component in testing tools (e.g.: Cypress, Testing Library, and Jest).
7
- */
8
- testId?: string
9
- }
10
-
11
- const CartItemContent = forwardRef<HTMLElement, CartItemContentProps>(
12
- function CartItemContent(
13
- { testId = 'store-cart-item-content', children, ...otherProps },
14
- ref
15
- ) {
16
- return (
17
- <section ref={ref} data-fs-cart-item-content data-testid={testId} {...otherProps}>
18
- {children}
19
- </section>
20
- )
21
- }
22
- )
23
-
24
- export default CartItemContent
@@ -1,22 +0,0 @@
1
- import type { HTMLAttributes } from 'react'
2
- import React, { forwardRef } from 'react'
3
-
4
- export interface CartItemImageProps extends HTMLAttributes<HTMLDivElement> {
5
- /**
6
- * ID to find this component in testing tools (e.g.: Cypress, Testing Library, and Jest).
7
- */
8
- testId?: string
9
- }
10
-
11
- const CartItemImage = forwardRef<HTMLDivElement, CartItemImageProps>(function CartItemImage(
12
- { testId = 'store-cart-item-image', children, ...otherProps },
13
- ref
14
- ) {
15
- return (
16
- <div ref={ref} data-fs-cart-item-image data-testid={testId} {...otherProps}>
17
- {children}
18
- </div>
19
- )
20
- })
21
-
22
- export default CartItemImage
@@ -1,24 +0,0 @@
1
- import React, { forwardRef } from 'react'
2
- import type { HTMLAttributes } from 'react'
3
-
4
- export interface CartItemPricesProps extends HTMLAttributes<HTMLSpanElement> {
5
- /**
6
- * ID to find this component in testing tools (e.g.: Cypress, Testing Library, and Jest).
7
- */
8
- testId?: string
9
- }
10
-
11
- const CartItemPrices = forwardRef<HTMLSpanElement, CartItemPricesProps>(
12
- function CartItemPrices(
13
- { testId = 'store-cart-item-prices', children, ...otherProps },
14
- ref
15
- ) {
16
- return (
17
- <span ref={ref} data-fs-cart-item-prices data-testid={testId} {...otherProps}>
18
- {children}
19
- </span>
20
- )
21
- }
22
- )
23
-
24
- export default CartItemPrices
@@ -1,24 +0,0 @@
1
- import React, { forwardRef } from 'react'
2
- import type { HTMLAttributes } from 'react'
3
-
4
- export interface CartItemSummaryProps extends HTMLAttributes<HTMLDivElement> {
5
- /**
6
- * ID to find this component in testing tools (e.g.: Cypress, Testing Library, and Jest).
7
- */
8
- testId?: string
9
- }
10
-
11
- const CartItemSummary = forwardRef<HTMLDivElement, CartItemSummaryProps>(
12
- function CartItemSummary(
13
- { testId = 'store-cart-item-summary', children, ...otherProps },
14
- ref
15
- ) {
16
- return (
17
- <div ref={ref} data-fs-cart-item-summary data-testid={testId} {...otherProps}>
18
- {children}
19
- </div>
20
- )
21
- }
22
- )
23
-
24
- export default CartItemSummary
@@ -1,22 +0,0 @@
1
- import type { HTMLAttributes } from 'react'
2
- import React, { forwardRef } from 'react'
3
-
4
- export interface CartItemTitleProps extends HTMLAttributes<HTMLDivElement> {
5
- /**
6
- * ID to find this component in testing tools (e.g.: Cypress, Testing Library, and Jest).
7
- */
8
- testId?: string
9
- }
10
-
11
- const CartItemTitle = forwardRef<HTMLDivElement, CartItemTitleProps>(function CartItemTitle(
12
- { testId = 'store-cart-item-title', children, ...otherProps },
13
- ref
14
- ) {
15
- return (
16
- <div ref={ref} data-fs-cart-item-title data-testid={testId} {...otherProps}>
17
- {children}
18
- </div>
19
- )
20
- })
21
-
22
- export default CartItemTitle
@@ -1,20 +0,0 @@
1
- export { default } from './CartItem'
2
- export type { CartItemProps } from './CartItem'
3
-
4
- export { default as CartItemActions } from './CartItemActions'
5
- export type { CartItemActionsProps } from './CartItemActions'
6
-
7
- export { default as CartItemContent } from './CartItemContent'
8
- export type { CartItemContentProps } from './CartItemContent'
9
-
10
- export { default as CartItemImage } from './CartItemImage'
11
- export type { CartItemImageProps } from './CartItemImage'
12
-
13
- export { default as CartItemPrices } from './CartItemPrices'
14
- export type { CartItemPricesProps } from './CartItemPrices'
15
-
16
- export { default as CartItemSummary } from './CartItemSummary'
17
- export type { CartItemSummaryProps } from './CartItemSummary'
18
-
19
- export { default as CartItemTitle } from './CartItemTitle'
20
- export type { CartItemTitleProps } from './CartItemTitle'
@@ -1,57 +0,0 @@
1
- import type { ReactNode, AriaAttributes } from 'react'
2
- import React, { forwardRef } from 'react'
3
-
4
- export interface PaymentMethodsProps {
5
- /**
6
- * ID to find this component in testing tools (e.g.: cypress,
7
- * testing-library, and jest).
8
- */
9
- testId?: string
10
- /**
11
- * Title of the payment methods section (e.g.: "Payment methods",
12
- * "Accepted Cards").
13
- */
14
- title?: ReactNode
15
- /**
16
- * Defines a string value that labels the current element when
17
- * title is not used.
18
- */
19
- 'aria-label'?: AriaAttributes['aria-label']
20
- /**
21
- * Children will receive the flags to be displayed in the payment
22
- * methods section (e.g.:, visa, mastercard, etc).
23
- */
24
- children: ReactNode
25
- }
26
-
27
- const PaymentMethods = forwardRef<HTMLDivElement, PaymentMethodsProps>(
28
- function PaymentMethods(
29
- {
30
- testId = 'store-payment-methods',
31
- title,
32
- 'aria-label': ariaLabel = 'Payment Methods',
33
- children,
34
- ...otherProps
35
- },
36
- ref
37
- ) {
38
- return (
39
- <div
40
- ref={ref}
41
- data-fs-payment-methods
42
- data-testid={testId}
43
- {...otherProps}
44
- >
45
- {!!title && <div>{title}</div>}
46
- <div
47
- data-payment-methods-flags
48
- aria-label={title ? undefined : ariaLabel}
49
- >
50
- {children}
51
- </div>
52
- </div>
53
- )
54
- }
55
- )
56
-
57
- export default PaymentMethods
@@ -1,2 +0,0 @@
1
- export { default } from './PaymentMethods'
2
- export type { PaymentMethodsProps } from './PaymentMethods'