@faststore/components 2.0.108-alpha.0 → 2.0.111-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.
- package/dist/index.d.ts +4 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/organisms/ProductGrid/ProductGrid.d.ts +10 -0
- package/dist/organisms/ProductGrid/ProductGrid.js +6 -0
- package/dist/organisms/ProductGrid/ProductGrid.js.map +1 -0
- package/dist/organisms/ProductGrid/ProductGridItem.d.ts +10 -0
- package/dist/organisms/ProductGrid/ProductGridItem.js +6 -0
- package/dist/organisms/ProductGrid/ProductGridItem.js.map +1 -0
- package/dist/organisms/ProductGrid/index.d.ts +4 -0
- package/dist/organisms/ProductGrid/index.js +3 -0
- package/dist/organisms/ProductGrid/index.js.map +1 -0
- package/dist/organisms/ProductShelf/ProductShelf.d.ts +10 -0
- package/dist/organisms/ProductShelf/ProductShelf.js +6 -0
- package/dist/organisms/ProductShelf/ProductShelf.js.map +1 -0
- package/dist/organisms/ProductShelf/ProductShelfItem.d.ts +10 -0
- package/dist/organisms/ProductShelf/ProductShelfItem.js +6 -0
- package/dist/organisms/ProductShelf/ProductShelfItem.js.map +1 -0
- package/dist/organisms/ProductShelf/ProductShelfItems.d.ts +10 -0
- package/dist/organisms/ProductShelf/ProductShelfItems.js +6 -0
- package/dist/organisms/ProductShelf/ProductShelfItems.js.map +1 -0
- package/dist/organisms/ProductShelf/index.d.ts +6 -0
- package/dist/organisms/ProductShelf/index.js +4 -0
- package/dist/organisms/ProductShelf/index.js.map +1 -0
- package/package.json +2 -2
- package/src/index.ts +20 -0
- package/src/organisms/ProductGrid/ProductGrid.tsx +24 -0
- package/src/organisms/ProductGrid/ProductGridItem.tsx +24 -0
- package/src/organisms/ProductGrid/index.ts +5 -0
- package/src/organisms/ProductShelf/ProductShelf.tsx +24 -0
- package/src/organisms/ProductShelf/ProductShelfItem.tsx +24 -0
- package/src/organisms/ProductShelf/ProductShelfItems.tsx +24 -0
- package/src/organisms/ProductShelf/index.ts +8 -0
package/dist/index.d.ts
CHANGED
|
@@ -113,6 +113,10 @@ export { default as PaymentMethods } from './organisms/PaymentMethods';
|
|
|
113
113
|
export type { PaymentMethodsProps } from './organisms/PaymentMethods';
|
|
114
114
|
export { default as PriceRange } from './organisms/PriceRange';
|
|
115
115
|
export type { PriceRangeProps } from './organisms/PriceRange';
|
|
116
|
+
export { default as ProductGrid, ProductGridItem, } from './organisms/ProductGrid';
|
|
117
|
+
export type { ProductGridProps, ProductGridItemProps, } from './organisms/ProductGrid';
|
|
118
|
+
export { default as ProductShelf, ProductShelfItems, ProductShelfItem, } from './organisms/ProductShelf';
|
|
119
|
+
export type { ProductShelfProps, ProductShelfItemsProps, ProductShelfItemProps, } from './organisms/ProductShelf';
|
|
116
120
|
export { default as RegionModal } from './organisms/RegionModal';
|
|
117
121
|
export type { RegionModalProps } from './organisms/RegionModal';
|
|
118
122
|
export { default as SearchInput } from './organisms/SearchInput';
|
package/dist/index.js
CHANGED
|
@@ -62,6 +62,8 @@ export { default as ImageGallery, ImageGallerySelector, ImageZoom, } from './org
|
|
|
62
62
|
export { default as OutOfStock } from './organisms/OutOfStock';
|
|
63
63
|
export { default as PaymentMethods } from './organisms/PaymentMethods';
|
|
64
64
|
export { default as PriceRange } from './organisms/PriceRange';
|
|
65
|
+
export { default as ProductGrid, ProductGridItem, } from './organisms/ProductGrid';
|
|
66
|
+
export { default as ProductShelf, ProductShelfItems, ProductShelfItem, } from './organisms/ProductShelf';
|
|
65
67
|
export { default as RegionModal } from './organisms/RegionModal';
|
|
66
68
|
export { default as SearchInput } from './organisms/SearchInput';
|
|
67
69
|
export { default as ShippingSimulation } from './organisms/ShippingSimulation';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,QAAQ;AACR,cAAc,SAAS,CAAA;AAEvB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,OAAO,IAAI,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAG9D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,4BAA4B,CAAA;AAGtE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAG9D,OAAO,EACL,OAAO,IAAI,WAAW,EACtB,eAAe,GAChB,MAAM,yBAAyB,CAAA;AAMhC,OAAO,EACL,OAAO,IAAI,YAAY,EACvB,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,0BAA0B,CAAA;AAOjC,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAGhE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAGhE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,gCAAgC,CAAA;AAG9E,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { HTMLAttributes } from 'react';
|
|
3
|
+
export interface ProductGridProps extends HTMLAttributes<HTMLUListElement> {
|
|
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 ProductGrid: React.ForwardRefExoticComponent<ProductGridProps & React.RefAttributes<HTMLUListElement>>;
|
|
10
|
+
export default ProductGrid;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React, { forwardRef } from 'react';
|
|
2
|
+
const ProductGrid = forwardRef(function ProductGridItem({ testId = 'fs-product-grid', children, ...otherProps }, ref) {
|
|
3
|
+
return (React.createElement("ul", { ref: ref, "data-fs-product-grid": true, ...otherProps }, children));
|
|
4
|
+
});
|
|
5
|
+
export default ProductGrid;
|
|
6
|
+
//# sourceMappingURL=ProductGrid.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductGrid.js","sourceRoot":"","sources":["../../../src/organisms/ProductGrid/ProductGrid.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAUzC,MAAM,WAAW,GAAG,UAAU,CAC5B,SAAS,eAAe,CACtB,EAAE,MAAM,GAAG,iBAAiB,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,EACvD,GAAG;IAEH,OAAO,CACL,4BAAI,GAAG,EAAE,GAAG,mCAA2B,UAAU,IAC9C,QAAQ,CACN,CACN,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,WAAW,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { HTMLAttributes } from 'react';
|
|
3
|
+
export interface ProductGridItemProps extends HTMLAttributes<HTMLLIElement> {
|
|
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 ProductGridItem: React.ForwardRefExoticComponent<ProductGridItemProps & React.RefAttributes<HTMLLIElement>>;
|
|
10
|
+
export default ProductGridItem;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React, { forwardRef } from 'react';
|
|
2
|
+
const ProductGridItem = forwardRef(function ProductGridItem({ testId = 'fs-product-grid-item', children, ...otherProps }, ref) {
|
|
3
|
+
return (React.createElement("li", { ref: ref, "data-fs-product-grid-item": true, ...otherProps }, children));
|
|
4
|
+
});
|
|
5
|
+
export default ProductGridItem;
|
|
6
|
+
//# sourceMappingURL=ProductGridItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductGridItem.js","sourceRoot":"","sources":["../../../src/organisms/ProductGrid/ProductGridItem.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,sBAAsB,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,EAC5D,GAAG;IAEH,OAAO,CACL,4BAAI,GAAG,EAAE,GAAG,wCAAgC,UAAU,IACnD,QAAQ,CACN,CACN,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,eAAe,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/organisms/ProductGrid/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AAGvC,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export interface ProductShelfProps 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 ProductShelf: React.ForwardRefExoticComponent<ProductShelfProps & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
export default ProductShelf;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React, { forwardRef } from 'react';
|
|
2
|
+
const ProductShelf = forwardRef(function ProductShelf({ testId = 'fs-product-shelf', children, ...otherProps }, ref) {
|
|
3
|
+
return (React.createElement("div", { ref: ref, "data-fs-product-shelf": true, "data-testid": testId, ...otherProps }, children));
|
|
4
|
+
});
|
|
5
|
+
export default ProductShelf;
|
|
6
|
+
//# sourceMappingURL=ProductShelf.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductShelf.js","sourceRoot":"","sources":["../../../src/organisms/ProductShelf/ProductShelf.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AASzC,MAAM,YAAY,GAAG,UAAU,CAC7B,SAAS,YAAY,CACnB,EAAE,MAAM,GAAG,kBAAkB,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,EACxD,GAAG;IAEH,OAAO,CACL,6BAAK,GAAG,EAAE,GAAG,gDAAqC,MAAM,KAAM,UAAU,IACrE,QAAQ,CACL,CACP,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,YAAY,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export interface ProductShelfItemProps extends HTMLAttributes<HTMLLIElement> {
|
|
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 ProductShelfItem: React.ForwardRefExoticComponent<ProductShelfItemProps & React.RefAttributes<HTMLLIElement>>;
|
|
10
|
+
export default ProductShelfItem;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React, { forwardRef } from 'react';
|
|
2
|
+
const ProductShelfItem = forwardRef(function ProductShelfItem({ testId = 'fs-product-shelf-item', children, ...otherProps }, ref) {
|
|
3
|
+
return (React.createElement("li", { ref: ref, "data-fs-product-shelf-item": true, "data-testid": testId, ...otherProps }, children));
|
|
4
|
+
});
|
|
5
|
+
export default ProductShelfItem;
|
|
6
|
+
//# sourceMappingURL=ProductShelfItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductShelfItem.js","sourceRoot":"","sources":["../../../src/organisms/ProductShelf/ProductShelfItem.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AASzC,MAAM,gBAAgB,GAAG,UAAU,CACjC,SAAS,gBAAgB,CACvB,EAAE,MAAM,GAAG,uBAAuB,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,EAC7D,GAAG;IAEH,OAAO,CACL,4BAAI,GAAG,EAAE,GAAG,qDAA0C,MAAM,KAAM,UAAU,IACzE,QAAQ,CACN,CACN,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,gBAAgB,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export interface ProductShelfItemsProps extends HTMLAttributes<HTMLUListElement> {
|
|
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 ProductShelfItems: React.ForwardRefExoticComponent<ProductShelfItemsProps & React.RefAttributes<HTMLUListElement>>;
|
|
10
|
+
export default ProductShelfItems;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React, { forwardRef } from 'react';
|
|
2
|
+
const ProductShelfItems = forwardRef(function ProductShelfItems({ testId = 'fs-product-shelf-items', children, ...otherProps }, ref) {
|
|
3
|
+
return (React.createElement("ul", { ref: ref, "data-fs-product-shelf-items": true, "data-testid": testId, ...otherProps }, children));
|
|
4
|
+
});
|
|
5
|
+
export default ProductShelfItems;
|
|
6
|
+
//# sourceMappingURL=ProductShelfItems.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductShelfItems.js","sourceRoot":"","sources":["../../../src/organisms/ProductShelf/ProductShelfItems.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AASzC,MAAM,iBAAiB,GAAG,UAAU,CAClC,SAAS,iBAAiB,CACxB,EAAE,MAAM,GAAG,wBAAwB,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,EAC9D,GAAG;IAEH,OAAO,CACL,4BAAI,GAAG,EAAE,GAAG,sDAA2C,MAAM,KAAM,UAAU,IAC1E,QAAQ,CACN,CACN,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,iBAAiB,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { default } from './ProductShelf';
|
|
2
|
+
export type { ProductShelfProps } from './ProductShelf';
|
|
3
|
+
export { default as ProductShelfItems } from './ProductShelfItems';
|
|
4
|
+
export type { ProductShelfItemsProps } from './ProductShelfItems';
|
|
5
|
+
export { default as ProductShelfItem } from './ProductShelfItem';
|
|
6
|
+
export type { ProductShelfItemProps } from './ProductShelfItem';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/organisms/ProductShelf/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAGxC,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAGlE,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faststore/components",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.111-alpha.0",
|
|
4
4
|
"module": "dist/index.js",
|
|
5
5
|
"typings": "dist/index.d.ts",
|
|
6
6
|
"author": "Emerson Laurentino @emersonlaurentino",
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"node": "16.18.0",
|
|
31
31
|
"yarn": "1.19.1"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "72a97c7507e65fa0cc5d1fb50e090cf8cd248416"
|
|
34
34
|
}
|
package/src/index.ts
CHANGED
|
@@ -245,6 +245,26 @@ export type { PaymentMethodsProps } from './organisms/PaymentMethods'
|
|
|
245
245
|
export { default as PriceRange } from './organisms/PriceRange'
|
|
246
246
|
export type { PriceRangeProps } from './organisms/PriceRange'
|
|
247
247
|
|
|
248
|
+
export {
|
|
249
|
+
default as ProductGrid,
|
|
250
|
+
ProductGridItem,
|
|
251
|
+
} from './organisms/ProductGrid'
|
|
252
|
+
export type {
|
|
253
|
+
ProductGridProps,
|
|
254
|
+
ProductGridItemProps,
|
|
255
|
+
} from './organisms/ProductGrid'
|
|
256
|
+
|
|
257
|
+
export {
|
|
258
|
+
default as ProductShelf,
|
|
259
|
+
ProductShelfItems,
|
|
260
|
+
ProductShelfItem,
|
|
261
|
+
} from './organisms/ProductShelf'
|
|
262
|
+
export type {
|
|
263
|
+
ProductShelfProps,
|
|
264
|
+
ProductShelfItemsProps,
|
|
265
|
+
ProductShelfItemProps,
|
|
266
|
+
} from './organisms/ProductShelf'
|
|
267
|
+
|
|
248
268
|
export { default as RegionModal } from './organisms/RegionModal'
|
|
249
269
|
export type { RegionModalProps } from './organisms/RegionModal'
|
|
250
270
|
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React, { forwardRef } from 'react'
|
|
2
|
+
import type { HTMLAttributes } from 'react'
|
|
3
|
+
|
|
4
|
+
export interface ProductGridProps extends HTMLAttributes<HTMLUListElement> {
|
|
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 ProductGrid = forwardRef<HTMLUListElement, ProductGridProps>(
|
|
12
|
+
function ProductGridItem(
|
|
13
|
+
{ testId = 'fs-product-grid', children, ...otherProps },
|
|
14
|
+
ref
|
|
15
|
+
) {
|
|
16
|
+
return (
|
|
17
|
+
<ul ref={ref} data-fs-product-grid {...otherProps}>
|
|
18
|
+
{children}
|
|
19
|
+
</ul>
|
|
20
|
+
)
|
|
21
|
+
}
|
|
22
|
+
)
|
|
23
|
+
|
|
24
|
+
export default ProductGrid
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React, { forwardRef } from 'react'
|
|
2
|
+
import type { HTMLAttributes } from 'react'
|
|
3
|
+
|
|
4
|
+
export interface ProductGridItemProps extends HTMLAttributes<HTMLLIElement> {
|
|
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 ProductGridItem = forwardRef<HTMLLIElement, ProductGridItemProps>(
|
|
12
|
+
function ProductGridItem(
|
|
13
|
+
{ testId = 'fs-product-grid-item', children, ...otherProps },
|
|
14
|
+
ref
|
|
15
|
+
) {
|
|
16
|
+
return (
|
|
17
|
+
<li ref={ref} data-fs-product-grid-item {...otherProps}>
|
|
18
|
+
{children}
|
|
19
|
+
</li>
|
|
20
|
+
)
|
|
21
|
+
}
|
|
22
|
+
)
|
|
23
|
+
|
|
24
|
+
export default ProductGridItem
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'react'
|
|
2
|
+
import React, { forwardRef } from 'react'
|
|
3
|
+
|
|
4
|
+
export interface ProductShelfProps 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 ProductShelf = forwardRef<HTMLDivElement, ProductShelfProps>(
|
|
12
|
+
function ProductShelf(
|
|
13
|
+
{ testId = 'fs-product-shelf', children, ...otherProps },
|
|
14
|
+
ref
|
|
15
|
+
) {
|
|
16
|
+
return (
|
|
17
|
+
<div ref={ref} data-fs-product-shelf data-testid={testId} {...otherProps}>
|
|
18
|
+
{children}
|
|
19
|
+
</div>
|
|
20
|
+
)
|
|
21
|
+
}
|
|
22
|
+
)
|
|
23
|
+
|
|
24
|
+
export default ProductShelf
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'react'
|
|
2
|
+
import React, { forwardRef } from 'react'
|
|
3
|
+
|
|
4
|
+
export interface ProductShelfItemProps extends HTMLAttributes<HTMLLIElement> {
|
|
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 ProductShelfItem = forwardRef<HTMLLIElement, ProductShelfItemProps>(
|
|
12
|
+
function ProductShelfItem(
|
|
13
|
+
{ testId = 'fs-product-shelf-item', children, ...otherProps },
|
|
14
|
+
ref
|
|
15
|
+
) {
|
|
16
|
+
return (
|
|
17
|
+
<li ref={ref} data-fs-product-shelf-item data-testid={testId} {...otherProps}>
|
|
18
|
+
{children}
|
|
19
|
+
</li>
|
|
20
|
+
)
|
|
21
|
+
}
|
|
22
|
+
)
|
|
23
|
+
|
|
24
|
+
export default ProductShelfItem
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'react'
|
|
2
|
+
import React, { forwardRef } from 'react'
|
|
3
|
+
|
|
4
|
+
export interface ProductShelfItemsProps extends HTMLAttributes<HTMLUListElement> {
|
|
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 ProductShelfItems = forwardRef<HTMLUListElement, ProductShelfItemsProps>(
|
|
12
|
+
function ProductShelfItems(
|
|
13
|
+
{ testId = 'fs-product-shelf-items', children, ...otherProps },
|
|
14
|
+
ref
|
|
15
|
+
) {
|
|
16
|
+
return (
|
|
17
|
+
<ul ref={ref} data-fs-product-shelf-items data-testid={testId} {...otherProps}>
|
|
18
|
+
{children}
|
|
19
|
+
</ul>
|
|
20
|
+
)
|
|
21
|
+
}
|
|
22
|
+
)
|
|
23
|
+
|
|
24
|
+
export default ProductShelfItems
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { default } from './ProductShelf'
|
|
2
|
+
export type { ProductShelfProps } from './ProductShelf'
|
|
3
|
+
|
|
4
|
+
export { default as ProductShelfItems } from './ProductShelfItems'
|
|
5
|
+
export type { ProductShelfItemsProps } from './ProductShelfItems'
|
|
6
|
+
|
|
7
|
+
export { default as ProductShelfItem } from './ProductShelfItem'
|
|
8
|
+
export type { ProductShelfItemProps } from './ProductShelfItem'
|