@faststore/ui 2.0.59-alpha.0 → 2.0.61-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 (41) hide show
  1. package/dist/index.d.ts +0 -2
  2. package/dist/index.js +0 -1
  3. package/dist/index.js.map +1 -1
  4. package/package.json +4 -4
  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/index.ts +0 -19
  9. package/src/styles/components.scss +1 -0
  10. package/dist/components/molecules/CartItem/CartItem.d.ts +0 -10
  11. package/dist/components/molecules/CartItem/CartItem.js +0 -6
  12. package/dist/components/molecules/CartItem/CartItem.js.map +0 -1
  13. package/dist/components/molecules/CartItem/CartItemActions.d.ts +0 -10
  14. package/dist/components/molecules/CartItem/CartItemActions.js +0 -6
  15. package/dist/components/molecules/CartItem/CartItemActions.js.map +0 -1
  16. package/dist/components/molecules/CartItem/CartItemContent.d.ts +0 -10
  17. package/dist/components/molecules/CartItem/CartItemContent.js +0 -6
  18. package/dist/components/molecules/CartItem/CartItemContent.js.map +0 -1
  19. package/dist/components/molecules/CartItem/CartItemImage.d.ts +0 -10
  20. package/dist/components/molecules/CartItem/CartItemImage.js +0 -6
  21. package/dist/components/molecules/CartItem/CartItemImage.js.map +0 -1
  22. package/dist/components/molecules/CartItem/CartItemPrices.d.ts +0 -10
  23. package/dist/components/molecules/CartItem/CartItemPrices.js +0 -6
  24. package/dist/components/molecules/CartItem/CartItemPrices.js.map +0 -1
  25. package/dist/components/molecules/CartItem/CartItemSummary.d.ts +0 -10
  26. package/dist/components/molecules/CartItem/CartItemSummary.js +0 -6
  27. package/dist/components/molecules/CartItem/CartItemSummary.js.map +0 -1
  28. package/dist/components/molecules/CartItem/CartItemTitle.d.ts +0 -10
  29. package/dist/components/molecules/CartItem/CartItemTitle.js +0 -6
  30. package/dist/components/molecules/CartItem/CartItemTitle.js.map +0 -1
  31. package/dist/components/molecules/CartItem/index.d.ts +0 -14
  32. package/dist/components/molecules/CartItem/index.js +0 -8
  33. package/dist/components/molecules/CartItem/index.js.map +0 -1
  34. package/src/components/molecules/CartItem/CartItem.tsx +0 -22
  35. package/src/components/molecules/CartItem/CartItemActions.tsx +0 -24
  36. package/src/components/molecules/CartItem/CartItemContent.tsx +0 -24
  37. package/src/components/molecules/CartItem/CartItemImage.tsx +0 -22
  38. package/src/components/molecules/CartItem/CartItemPrices.tsx +0 -24
  39. package/src/components/molecules/CartItem/CartItemSummary.tsx +0 -24
  40. package/src/components/molecules/CartItem/CartItemTitle.tsx +0 -22
  41. package/src/components/molecules/CartItem/index.tsx +0 -20
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';
package/dist/index.js CHANGED
@@ -8,7 +8,6 @@ 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';
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,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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faststore/ui",
3
- "version": "2.0.59-alpha.0",
3
+ "version": "2.0.61-alpha.0",
4
4
  "description": "A lightweight, framework agnostic component library for React",
5
5
  "author": "emersonlaurentino",
6
6
  "license": "MIT",
@@ -46,8 +46,8 @@
46
46
  "react-dom": "^18.2.0"
47
47
  },
48
48
  "devDependencies": {
49
- "@faststore/eslint-config": "^2.0.49-alpha.0",
50
- "@faststore/shared": "^2.0.49-alpha.0",
49
+ "@faststore/eslint-config": "^2.0.60-alpha.0",
50
+ "@faststore/shared": "^2.0.60-alpha.0",
51
51
  "@size-limit/preset-small-lib": "^7.0.8",
52
52
  "@types/tabbable": "^3.1.1",
53
53
  "babel-loader": "^8.2.5",
@@ -59,5 +59,5 @@
59
59
  "node": "16.18.0",
60
60
  "yarn": "1.19.1"
61
61
  },
62
- "gitHead": "c77d8db1934c7d2c6f7ae9cc8a166477edbfae01"
62
+ "gitHead": "7cb1ceba4bdfd0495b1f9226fa640d476ba15810"
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] {
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
 
@@ -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";
@@ -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,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'