@faststore/core 2.1.56 → 2.1.59
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/.next/BUILD_ID +1 -1
- package/.next/build-manifest.json +58 -58
- package/.next/cache/config.json +3 -3
- package/.next/cache/eslint/.cache_1gneedd +1 -1
- package/.next/cache/next-server.js.nft.json +1 -1
- package/.next/cache/webpack/client-production/0.pack +0 -0
- package/.next/cache/webpack/client-production/index.pack +0 -0
- package/.next/cache/webpack/server-production/0.pack +0 -0
- package/.next/cache/webpack/server-production/index.pack +0 -0
- package/.next/next-server.js.nft.json +1 -1
- package/.next/prerender-manifest.json +1 -1
- package/.next/react-loadable-manifest.json +9 -9
- package/.next/routes-manifest.json +1 -1
- package/.next/server/chunks/{90.js → 123.js} +12 -11
- package/.next/server/chunks/186.js +23 -22
- package/.next/server/chunks/{744.js → 247.js} +24 -23
- package/.next/server/chunks/{934.js → 253.js} +38 -37
- package/.next/server/chunks/{581.js → 269.js} +136 -132
- package/.next/server/chunks/287.js +58 -0
- package/.next/server/chunks/289.js +5 -4
- package/.next/server/chunks/312.js +231 -222
- package/.next/server/chunks/{309.js → 502.js} +78 -76
- package/.next/server/chunks/{751.js → 597.js} +20 -19
- package/.next/server/chunks/{430.js → 721.js} +25 -23
- package/.next/server/chunks/74.js +3090 -3061
- package/.next/server/chunks/{953.js → 81.js} +59 -55
- package/.next/server/chunks/{188.js → 886.js} +33 -32
- package/.next/server/chunks/907.js +342 -334
- package/.next/server/middleware-build-manifest.js +1 -1
- package/.next/server/middleware-react-loadable-manifest.js +1 -1
- package/.next/server/pages/404.js +2 -2
- package/.next/server/pages/404.js.nft.json +1 -1
- package/.next/server/pages/500.js +2 -2
- package/.next/server/pages/500.js.nft.json +1 -1
- package/.next/server/pages/[...slug].js +7 -7
- package/.next/server/pages/[...slug].js.nft.json +1 -1
- package/.next/server/pages/[slug]/p.js +86 -84
- package/.next/server/pages/[slug]/p.js.nft.json +1 -1
- package/.next/server/pages/_app.js +2 -2
- package/.next/server/pages/_app.js.nft.json +1 -1
- package/.next/server/pages/account.js +1 -1
- package/.next/server/pages/account.js.nft.json +1 -1
- package/.next/server/pages/checkout.js +1 -1
- package/.next/server/pages/checkout.js.nft.json +1 -1
- package/.next/server/pages/en-US/404.html +2 -2
- package/.next/server/pages/en-US/500.html +2 -2
- package/.next/server/pages/en-US/account.html +2 -2
- package/.next/server/pages/en-US/checkout.html +2 -2
- package/.next/server/pages/en-US/login.html +2 -2
- package/.next/server/pages/en-US/s.html +2 -2
- package/.next/server/pages/en-US.html +2 -2
- package/.next/server/pages/index.js +3 -3
- package/.next/server/pages/index.js.nft.json +1 -1
- package/.next/server/pages/login.js +2 -2
- package/.next/server/pages/login.js.nft.json +1 -1
- package/.next/server/pages/s.js +3 -3
- package/.next/server/pages/s.js.nft.json +1 -1
- package/.next/server/pages-manifest.json +4 -4
- package/.next/static/LRckpLQyS5Ij0gHWJjzOY/_buildManifest.js +1 -0
- package/.next/static/chunks/209-d1d2eeaeefbc68f7.js +1 -0
- package/.next/static/chunks/495.0ecd099878b2a36d.js +1 -0
- package/.next/static/chunks/502.b14533723651e5a1.js +1 -0
- package/.next/static/chunks/548-6b23e7ad82cd22b9.js +1 -0
- package/.next/static/chunks/597.f8d0595b113c70af.js +1 -0
- package/.next/static/chunks/{27.37e4942c9236a071.js → 64.2f385ef39cd5877d.js} +1 -1
- package/.next/static/chunks/706-b3046536d4b7dd3f.js +1 -0
- package/.next/static/chunks/{738-67a288ca3569cdbb.js → 738-a5ff304828f20cbf.js} +1 -1
- package/.next/static/chunks/791-5b3d23f5b6100959.js +1 -0
- package/.next/static/chunks/pages/404-14d27e3706f3d2c3.js +1 -0
- package/.next/static/chunks/pages/500-250ccf5c9626e451.js +1 -0
- package/.next/static/chunks/pages/{[...slug]-fd9cc16734d8f161.js → [...slug]-bcfaf0c5d60b57a0.js} +1 -1
- package/.next/static/chunks/pages/[slug]/p-44e66d729b2413fb.js +1 -0
- package/.next/static/chunks/pages/_app-b1b6e1a62892c937.js +1 -0
- package/.next/static/chunks/pages/account-d248acc931146694.js +1 -0
- package/.next/static/chunks/pages/checkout-97f6d6f36f041a6f.js +1 -0
- package/.next/static/chunks/pages/{index-e8b556e0a22cf818.js → index-bdbfb082027ed2b7.js} +1 -1
- package/.next/static/chunks/pages/login-b1bdf30c951bb60d.js +1 -0
- package/.next/static/chunks/pages/s-aabfa5c08338974a.js +1 -0
- package/.next/static/chunks/webpack-c4f0c1961bd5ae7d.js +1 -0
- package/.next/static/css/{e3d648c53f88c1b9.css → e3b039e8f5daf95f.css} +1 -1
- package/.next/trace +80 -80
- package/.turbo/turbo-build.log +6 -6
- package/package.json +4 -4
- package/.next/server/chunks/107.js +0 -56
- package/.next/static/chunks/309.548249b3b3588d3b.js +0 -1
- package/.next/static/chunks/33-7f26ec3a5ae7a227.js +0 -1
- package/.next/static/chunks/548-ab84e9e8b49413ab.js +0 -1
- package/.next/static/chunks/676.b7bc42f3e37ff88f.js +0 -1
- package/.next/static/chunks/686-78f207384adb0d83.js +0 -1
- package/.next/static/chunks/751.f9415d15cb5be269.js +0 -1
- package/.next/static/chunks/917-bf452887bdb70e03.js +0 -1
- package/.next/static/chunks/pages/404-7812758b206af5cc.js +0 -1
- package/.next/static/chunks/pages/500-0c1b954316d40621.js +0 -1
- package/.next/static/chunks/pages/[slug]/p-5a83993d8ff855a6.js +0 -1
- package/.next/static/chunks/pages/_app-9c56c687b77a9a09.js +0 -1
- package/.next/static/chunks/pages/account-ac4fa43a2d996db5.js +0 -1
- package/.next/static/chunks/pages/checkout-fa13dc49318df859.js +0 -1
- package/.next/static/chunks/pages/login-5759fba9bb7ae351.js +0 -1
- package/.next/static/chunks/pages/s-a63dd94090d398be.js +0 -1
- package/.next/static/chunks/webpack-4864821bd2886d75.js +0 -1
- package/.next/static/dpPpHRcwG_9npTM76o66F/_buildManifest.js +0 -1
- /package/.next/static/{dpPpHRcwG_9npTM76o66F → LRckpLQyS5Ij0gHWJjzOY}/_ssgManifest.js +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
exports.id =
|
|
2
|
-
exports.ids = [
|
|
1
|
+
exports.id = 253;
|
|
2
|
+
exports.ids = [253];
|
|
3
3
|
exports.modules = {
|
|
4
4
|
|
|
5
|
-
/***/
|
|
5
|
+
/***/ 49253:
|
|
6
6
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
7
7
|
|
|
8
8
|
"use strict";
|
|
@@ -14,12 +14,13 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
14
14
|
|
|
15
15
|
// EXTERNAL MODULE: external "react"
|
|
16
16
|
var external_react_ = __webpack_require__(16689);
|
|
17
|
+
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
|
|
17
18
|
// EXTERNAL MODULE: ./src/components/ui/Link/index.ts + 1 modules
|
|
18
19
|
var Link = __webpack_require__(51093);
|
|
19
20
|
// EXTERNAL MODULE: ../components/dist/atoms/Icon/Icon.js
|
|
20
|
-
var Icon = __webpack_require__(
|
|
21
|
+
var Icon = __webpack_require__(25045);
|
|
21
22
|
// EXTERNAL MODULE: ../components/dist/atoms/Link/Link.js
|
|
22
|
-
var Link_Link = __webpack_require__(
|
|
23
|
+
var Link_Link = __webpack_require__(87865);
|
|
23
24
|
;// CONCATENATED MODULE: ../components/dist/molecules/Dropdown/contexts/DropdownContext.js
|
|
24
25
|
|
|
25
26
|
const defaultState = {
|
|
@@ -95,12 +96,12 @@ const Dropdown = ({ children, isOpen: isOpenDefault = false, onDismiss, id = 'fs
|
|
|
95
96
|
id,
|
|
96
97
|
};
|
|
97
98
|
}, [close, id, isOpen, onDismiss, toggle]);
|
|
98
|
-
return (
|
|
99
|
+
return (external_react_default().createElement(contexts_DropdownContext.Provider, { value: value }, children));
|
|
99
100
|
};
|
|
100
101
|
/* harmony default export */ const Dropdown_Dropdown = (Dropdown);
|
|
101
102
|
//# sourceMappingURL=Dropdown.js.map
|
|
102
103
|
// EXTERNAL MODULE: ../components/dist/atoms/Button/Button.js
|
|
103
|
-
var Button = __webpack_require__(
|
|
104
|
+
var Button = __webpack_require__(57578);
|
|
104
105
|
;// CONCATENATED MODULE: ../components/dist/molecules/Dropdown/hooks/useDropdown.js
|
|
105
106
|
|
|
106
107
|
|
|
@@ -125,7 +126,7 @@ const DropdownButton = (0,external_react_.forwardRef)(function DropdownButton({
|
|
|
125
126
|
(0,external_react_.useImperativeHandle)(ref, () => dropdownButtonRef.current, [
|
|
126
127
|
dropdownButtonRef,
|
|
127
128
|
]);
|
|
128
|
-
return (
|
|
129
|
+
return (external_react_default().createElement(Button/* default */.Z, { "data-fs-dropdown-button": true, onClick: toggle, "data-testid": testId, ref: dropdownButtonRef, "aria-expanded": isOpen, "aria-haspopup": "menu", "aria-controls": id, variant: 'tertiary', ...otherProps }, children));
|
|
129
130
|
});
|
|
130
131
|
/* harmony default export */ const Dropdown_DropdownButton = (DropdownButton);
|
|
131
132
|
//# sourceMappingURL=DropdownButton.js.map
|
|
@@ -170,7 +171,7 @@ const useDropdownPosition = () => {
|
|
|
170
171
|
const DropdownMenu = ({ children, testId = 'fs-dropdown-menu', size = 'regular', style, ...otherProps }) => {
|
|
171
172
|
const { isOpen, close, dropdownItemsRef, selectedDropdownItemIndexRef, dropdownButtonRef, id } = useDropdown();
|
|
172
173
|
const dropdownPosition = useDropdownPosition();
|
|
173
|
-
const childrenLength =
|
|
174
|
+
const childrenLength = external_react_default().Children.toArray(children).length;
|
|
174
175
|
const handleDownPress = () => {
|
|
175
176
|
if (selectedDropdownItemIndexRef.current < childrenLength - 1) {
|
|
176
177
|
selectedDropdownItemIndexRef.current++;
|
|
@@ -218,8 +219,8 @@ const DropdownMenu = ({ children, testId = 'fs-dropdown-menu', size = 'regular',
|
|
|
218
219
|
return null;
|
|
219
220
|
};
|
|
220
221
|
return isOpen
|
|
221
|
-
? (0,external_react_dom_.createPortal)(
|
|
222
|
-
|
|
222
|
+
? (0,external_react_dom_.createPortal)(external_react_default().createElement("div", { role: "presentation", "data-fs-dropdown-overlay": true, onKeyDown: handleBackdropKeyDown, "data-testid": `${testId}-overlay` },
|
|
223
|
+
external_react_default().createElement("div", { role: "menu", "aria-orientation": "vertical", "data-fs-dropdown-menu": true, "data-fs-dropdown-menu-size": size, "data-testid": testId, style: { ...dropdownPosition, ...style }, id: id, ...otherProps }, children)), document.body)
|
|
223
224
|
: clearChildrenReferences();
|
|
224
225
|
};
|
|
225
226
|
/* harmony default export */ const Dropdown_DropdownMenu = (DropdownMenu);
|
|
@@ -247,14 +248,14 @@ const DropdownItem = (0,external_react_.forwardRef)(function Button({ children,
|
|
|
247
248
|
close?.();
|
|
248
249
|
};
|
|
249
250
|
(0,external_react_.useImperativeHandle)(ref, () => dropdownItemRef.current, []);
|
|
250
|
-
return (
|
|
251
|
+
return (external_react_default().createElement("button", { "data-fs-dropdown-item": true, "data-testid": testId, ref: addToRefs, onFocus: onFocusItem, onMouseEnter: onFocusItem, onClick: handleOnClickItem, role: "menuitem", tabIndex: -1, "data-index": dropdownItemIndex, ...otherProps },
|
|
251
252
|
!!icon && icon,
|
|
252
253
|
children));
|
|
253
254
|
});
|
|
254
255
|
/* harmony default export */ const Dropdown_DropdownItem = (DropdownItem);
|
|
255
256
|
//# sourceMappingURL=DropdownItem.js.map
|
|
256
257
|
// EXTERNAL MODULE: ../components/dist/atoms/List/List.js
|
|
257
|
-
var List = __webpack_require__(
|
|
258
|
+
var List = __webpack_require__(41329);
|
|
258
259
|
;// CONCATENATED MODULE: ../components/dist/molecules/Breadcrumb/Divider.js
|
|
259
260
|
|
|
260
261
|
const Divider = ({ divider, testId }) => {
|
|
@@ -263,10 +264,10 @@ const Divider = ({ divider, testId }) => {
|
|
|
263
264
|
'aria-hidden': true,
|
|
264
265
|
'data-testid': `${testId}-divider`,
|
|
265
266
|
};
|
|
266
|
-
if (
|
|
267
|
-
return
|
|
267
|
+
if (external_react_default().isValidElement(divider)) {
|
|
268
|
+
return external_react_default().cloneElement(divider, props);
|
|
268
269
|
}
|
|
269
|
-
return
|
|
270
|
+
return external_react_default().createElement("span", { ...props }, divider ?? '/');
|
|
270
271
|
};
|
|
271
272
|
/* harmony default export */ const Breadcrumb_Divider = (Divider);
|
|
272
273
|
//# sourceMappingURL=Divider.js.map
|
|
@@ -279,15 +280,15 @@ const ListItem = ({ children, isLastItem, divider, testId }) => {
|
|
|
279
280
|
'data-fs-breadcrumb-item': isLastItem ? 'current' : true,
|
|
280
281
|
'aria-current': isLastItem ? 'page' : undefined,
|
|
281
282
|
};
|
|
282
|
-
if (!
|
|
283
|
-
return (
|
|
284
|
-
|
|
283
|
+
if (!external_react_default().isValidElement(children)) {
|
|
284
|
+
return (external_react_default().createElement("li", { "data-fs-breadcrumb-list-item": true },
|
|
285
|
+
external_react_default().createElement("span", { ...props },
|
|
285
286
|
children,
|
|
286
|
-
isLastItem ? null :
|
|
287
|
+
isLastItem ? null : external_react_default().createElement(Breadcrumb_Divider, { divider: divider, testId: testId }))));
|
|
287
288
|
}
|
|
288
|
-
return (
|
|
289
|
-
|
|
290
|
-
isLastItem ? null :
|
|
289
|
+
return (external_react_default().createElement("li", { "data-fs-breadcrumb-list-item": true },
|
|
290
|
+
external_react_default().cloneElement(children, props),
|
|
291
|
+
isLastItem ? null : external_react_default().createElement(Breadcrumb_Divider, { divider: divider, testId: testId })));
|
|
291
292
|
};
|
|
292
293
|
/* harmony default export */ const Breadcrumb_ListItem = (ListItem);
|
|
293
294
|
//# sourceMappingURL=ListItem.js.map
|
|
@@ -296,10 +297,10 @@ const ListItem = ({ children, isLastItem, divider, testId }) => {
|
|
|
296
297
|
|
|
297
298
|
|
|
298
299
|
const BreadcrumbPure = (0,external_react_.forwardRef)(function BreadcrumbPure({ children, divider: rawDivider = '', testId = 'fs-breadcrumb', ...otherProps }, ref) {
|
|
299
|
-
return (
|
|
300
|
-
|
|
300
|
+
return (external_react_default().createElement("nav", { "aria-label": "Breadcrumb", role: "navigation", ref: ref, "data-fs-breadcrumb": true, "data-testid": testId, ...otherProps },
|
|
301
|
+
external_react_default().createElement(List/* default */.Z, { as: "ol", "data-fs-breadcrumb-list": true, "data-fs-content": "breadcrumb" }, external_react_default().Children.toArray(children).map((child, index, childrenArray) => {
|
|
301
302
|
const isLastItem = index === childrenArray.length - 1;
|
|
302
|
-
return (
|
|
303
|
+
return (external_react_default().createElement(Breadcrumb_ListItem, { isLastItem: isLastItem, divider: rawDivider, key: `breadcrumb-${index}`, testId: testId }, child));
|
|
303
304
|
}))));
|
|
304
305
|
});
|
|
305
306
|
/* harmony default export */ const Breadcrumb_BreadcrumbPure = (BreadcrumbPure);
|
|
@@ -310,7 +311,7 @@ const BreadcrumbPure = (0,external_react_.forwardRef)(function BreadcrumbPure({
|
|
|
310
311
|
|
|
311
312
|
|
|
312
313
|
|
|
313
|
-
const BreadcrumbBase = (0,external_react_.forwardRef)(function BreadcrumbBase({ children, divider: rawDivider = '', testId = 'fs-breadcrumb', breadcrumbList, isDesktop = false, renderLink, homeLink, dropdownButtonIcon =
|
|
314
|
+
const BreadcrumbBase = (0,external_react_.forwardRef)(function BreadcrumbBase({ children, divider: rawDivider = '', testId = 'fs-breadcrumb', breadcrumbList, isDesktop = false, renderLink, homeLink, dropdownButtonIcon = external_react_default().createElement(Icon/* default */.Z, { name: "DotsThree" }), collapsedItemsIcon = (external_react_default().createElement(Icon/* default */.Z, { "data-fs-dropdown-item-icon": true, name: "ArrowElbowDownRight" })), ...otherProps }, ref) {
|
|
314
315
|
const firstItem = isDesktop ? breadcrumbList[0] : null;
|
|
315
316
|
const mediumItems = isDesktop
|
|
316
317
|
? breadcrumbList.slice(1, -2)
|
|
@@ -329,23 +330,23 @@ const BreadcrumbBase = (0,external_react_.forwardRef)(function BreadcrumbBase({
|
|
|
329
330
|
return breadcrumbItem ? ((0,external_react_.cloneElement)(breadcrumbItem, {
|
|
330
331
|
...itemProps,
|
|
331
332
|
key: renderLinkProps.itemProps.position,
|
|
332
|
-
})) : (
|
|
333
|
+
})) : (external_react_default().createElement(Link_Link/* default */.Z, { ...itemProps, href: renderLinkProps.itemProps.item, key: renderLinkProps.itemProps.position }, renderLinkProps.itemProps.name));
|
|
333
334
|
}, [renderLink]);
|
|
334
|
-
return (
|
|
335
|
+
return (external_react_default().createElement(Breadcrumb_BreadcrumbPure, { ref: ref, "data-fs-breadcrumb-is-desktop": isDesktop, ...otherProps },
|
|
335
336
|
homeLink,
|
|
336
337
|
!collapseBreadcrumb &&
|
|
337
338
|
breadcrumbList.map((item, index) => {
|
|
338
|
-
return breadcrumbList.length === index + 1 ? (
|
|
339
|
+
return breadcrumbList.length === index + 1 ? (external_react_default().createElement("span", { key: String(item.position) }, item.name)) : (breadcrumbLink({ itemProps: item, collapsed: false }));
|
|
339
340
|
}),
|
|
340
341
|
collapseBreadcrumb &&
|
|
341
342
|
firstItem &&
|
|
342
343
|
breadcrumbLink({ itemProps: firstItem, collapsed: false }),
|
|
343
|
-
collapseBreadcrumb && (
|
|
344
|
-
|
|
345
|
-
|
|
344
|
+
collapseBreadcrumb && (external_react_default().createElement(Dropdown_Dropdown, null,
|
|
345
|
+
external_react_default().createElement(Dropdown_DropdownButton, { "data-fs-breadcrumb-dropdown-button": true, size: "small" }, dropdownButtonIcon),
|
|
346
|
+
external_react_default().createElement(Dropdown_DropdownMenu, { "data-fs-breadcrumb-dropdown-menu": true }, mediumItems.map((item) => (external_react_default().createElement(Dropdown_DropdownItem, { "data-fs-breadcrumb-dropdown-item": true, key: String(item.position), icon: collapsedItemsIcon }, breadcrumbLink({ itemProps: item, collapsed: true }))))))),
|
|
346
347
|
collapseBreadcrumb &&
|
|
347
348
|
lastItems.map((item, index) => {
|
|
348
|
-
return lastItems.length === index + 1 ? (
|
|
349
|
+
return lastItems.length === index + 1 ? (external_react_default().createElement("span", { key: String(item.position) }, item.name)) : (breadcrumbLink({ itemProps: item, collapsed: false }));
|
|
349
350
|
})));
|
|
350
351
|
});
|
|
351
352
|
/* harmony default export */ const Breadcrumb_BreadcrumbBase = (BreadcrumbBase);
|
|
@@ -353,9 +354,9 @@ const BreadcrumbBase = (0,external_react_.forwardRef)(function BreadcrumbBase({
|
|
|
353
354
|
;// CONCATENATED MODULE: ../components/dist/molecules/Breadcrumb/Breadcrumb.js
|
|
354
355
|
|
|
355
356
|
|
|
356
|
-
const Breadcrumb = ({ breadcrumbList, ...otherProps }) => (
|
|
357
|
-
|
|
358
|
-
|
|
357
|
+
const Breadcrumb = ({ breadcrumbList, ...otherProps }) => (external_react_default().createElement((external_react_default()).Fragment, null,
|
|
358
|
+
external_react_default().createElement(Breadcrumb_BreadcrumbBase, { breadcrumbList: breadcrumbList, ...otherProps }),
|
|
359
|
+
external_react_default().createElement(Breadcrumb_BreadcrumbBase, { breadcrumbList: breadcrumbList, isDesktop: true, ...otherProps })));
|
|
359
360
|
/* harmony default export */ const Breadcrumb_Breadcrumb = (Breadcrumb);
|
|
360
361
|
//# sourceMappingURL=Breadcrumb.js.map
|
|
361
362
|
// EXTERNAL MODULE: ./src/utils/overrides.ts
|
|
@@ -1,9 +1,118 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
exports.id =
|
|
3
|
-
exports.ids = [
|
|
2
|
+
exports.id = 269;
|
|
3
|
+
exports.ids = [269];
|
|
4
4
|
exports.modules = {
|
|
5
5
|
|
|
6
|
-
/***/
|
|
6
|
+
/***/ 2928:
|
|
7
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
8
|
+
|
|
9
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10
|
+
/* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
11
|
+
/* harmony export */ });
|
|
12
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16689);
|
|
13
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
14
|
+
|
|
15
|
+
const Skeleton = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function Skeleton({ testId = 'fs-skeleton', loading = true, shimmer = true, children, size, border, borderRadius, ...otherProps }, ref) {
|
|
16
|
+
const styles = {
|
|
17
|
+
width: size.width,
|
|
18
|
+
height: size.height,
|
|
19
|
+
};
|
|
20
|
+
return loading ? (react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { ref: ref, "data-fs-skeleton": true, "data-testid": testId, "data-fs-skeleton-border": border ? border : null, style: borderRadius ? { ...styles, borderRadius: borderRadius } : styles, ...otherProps }, shimmer && react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { "data-fs-skeleton-shimmer": true }))) : (react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, children));
|
|
21
|
+
});
|
|
22
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Skeleton);
|
|
23
|
+
//# sourceMappingURL=Skeleton.js.map
|
|
24
|
+
|
|
25
|
+
/***/ }),
|
|
26
|
+
|
|
27
|
+
/***/ 89875:
|
|
28
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
// EXPORTS
|
|
32
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
33
|
+
"Z": () => (/* binding */ DiscountBadge_DiscountBadge)
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
// EXTERNAL MODULE: external "react"
|
|
37
|
+
var external_react_ = __webpack_require__(16689);
|
|
38
|
+
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
|
|
39
|
+
// EXTERNAL MODULE: ../components/dist/atoms/Badge/Badge.js
|
|
40
|
+
var Badge = __webpack_require__(10044);
|
|
41
|
+
;// CONCATENATED MODULE: ../components/dist/molecules/DiscountBadge/useDiscountPercent.js
|
|
42
|
+
|
|
43
|
+
const useDiscountPercent = (listPrice, spotPrice) => {
|
|
44
|
+
return (0,external_react_.useMemo)(() => {
|
|
45
|
+
const diff = listPrice - spotPrice;
|
|
46
|
+
const discount = (diff * 100) / listPrice;
|
|
47
|
+
return Math.round(discount);
|
|
48
|
+
}, [spotPrice, listPrice]);
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=useDiscountPercent.js.map
|
|
51
|
+
;// CONCATENATED MODULE: ../components/dist/molecules/DiscountBadge/DiscountBadge.js
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
const DiscountBadge = ({ listPrice, spotPrice, thresholdLow = 15, thresholdHigh = 40, size, testId = 'fs-discount-badge', }) => {
|
|
56
|
+
const discountPercent = useDiscountPercent(listPrice, spotPrice);
|
|
57
|
+
if (discountPercent === 0) {
|
|
58
|
+
return external_react_default().createElement((external_react_default()).Fragment, null);
|
|
59
|
+
}
|
|
60
|
+
const discountVariant = discountPercent <= thresholdLow
|
|
61
|
+
? 'low'
|
|
62
|
+
: discountPercent <= thresholdHigh
|
|
63
|
+
? 'medium'
|
|
64
|
+
: 'high';
|
|
65
|
+
return (external_react_default().createElement(Badge/* default */.Z, { "data-fs-discount-badge": true, "data-fs-discount-badge-variant": discountVariant, size: size, "data-testid": testId },
|
|
66
|
+
discountPercent,
|
|
67
|
+
"% off"));
|
|
68
|
+
};
|
|
69
|
+
/* harmony default export */ const DiscountBadge_DiscountBadge = (DiscountBadge);
|
|
70
|
+
//# sourceMappingURL=DiscountBadge.js.map
|
|
71
|
+
|
|
72
|
+
/***/ }),
|
|
73
|
+
|
|
74
|
+
/***/ 40783:
|
|
75
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
76
|
+
|
|
77
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
78
|
+
/* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
79
|
+
/* harmony export */ });
|
|
80
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16689);
|
|
81
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
82
|
+
/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(25045);
|
|
83
|
+
/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(82765);
|
|
84
|
+
/* harmony import */ var _atoms_List__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(41329);
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
const Rating = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function Rating({ children, testId = 'fs-rating', length = 5, value = 0, icon, onChange, ...otherProps }, ref) {
|
|
89
|
+
const [hover, setHover] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(0);
|
|
90
|
+
const outlineProps = { 'data-fs-rating-icon-outline': true };
|
|
91
|
+
const ratingIcon = react__WEBPACK_IMPORTED_MODULE_0___default().isValidElement(icon) ? icon : react__WEBPACK_IMPORTED_MODULE_0___default().createElement(___WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, { name: "Star" });
|
|
92
|
+
return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_atoms_List__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, { ref: ref, "data-fs-rating": true, "data-fs-rating-actionable": typeof onChange === 'function', "data-testid": testId, ...otherProps }, Array.from({ length }).map((_, index) => {
|
|
93
|
+
const tempIndex = index + 1;
|
|
94
|
+
const fillCheck = () => {
|
|
95
|
+
if (tempIndex <= (hover || value)) {
|
|
96
|
+
return 'full';
|
|
97
|
+
}
|
|
98
|
+
if (tempIndex - value > 0 && tempIndex - value < 1) {
|
|
99
|
+
return 'partial';
|
|
100
|
+
}
|
|
101
|
+
return 'empty';
|
|
102
|
+
};
|
|
103
|
+
return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement("li", { key: `rating-${index}`, "data-fs-rating-item": fillCheck(), "data-testid": `${testId}-item` }, onChange ? (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(___WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, { "data-fs-rating-button": true, icon: ratingIcon, size: "small", "aria-label": "rate", onClick: () => {
|
|
104
|
+
onChange(tempIndex);
|
|
105
|
+
}, onMouseEnter: () => setHover(tempIndex), onMouseLeave: () => setHover(value) })) : (react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null,
|
|
106
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { "data-fs-rating-icon-wrapper": true }, ratingIcon),
|
|
107
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().isValidElement(icon) ? (react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(icon, outlineProps)) : (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(___WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, { name: "Star", "data-fs-rating-icon-outline": true }))))));
|
|
108
|
+
})));
|
|
109
|
+
});
|
|
110
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Rating);
|
|
111
|
+
//# sourceMappingURL=Rating.js.map
|
|
112
|
+
|
|
113
|
+
/***/ }),
|
|
114
|
+
|
|
115
|
+
/***/ 56475:
|
|
7
116
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
8
117
|
|
|
9
118
|
|
|
@@ -14,53 +123,54 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
14
123
|
|
|
15
124
|
// EXTERNAL MODULE: external "react"
|
|
16
125
|
var external_react_ = __webpack_require__(16689);
|
|
126
|
+
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
|
|
17
127
|
;// CONCATENATED MODULE: ../components/dist/molecules/ProductCard/ProductCard.js
|
|
18
128
|
|
|
19
129
|
const ProductCard = (0,external_react_.forwardRef)(function ProductCard({ testId = 'fs-product-card', variant = 'default', bordered = false, outOfStock, children, ...otherProps }, ref) {
|
|
20
|
-
return (
|
|
130
|
+
return (external_react_default().createElement("article", { ref: ref, "data-fs-product-card": outOfStock ? 'out-of-stock' : '', "data-fs-product-card-variant": variant, "data-fs-product-card-bordered": bordered, "data-testid": testId, ...otherProps }, children));
|
|
21
131
|
});
|
|
22
132
|
/* harmony default export */ const ProductCard_ProductCard = (ProductCard);
|
|
23
133
|
//# sourceMappingURL=ProductCard.js.map
|
|
24
134
|
;// CONCATENATED MODULE: ../components/dist/molecules/ProductCard/ProductCardImage.js
|
|
25
135
|
|
|
26
136
|
const ProductCardImage = (0,external_react_.forwardRef)(function ProductCardImage({ testId = 'fs-product-card-image', aspectRatio = 1, children, ...otherProps }, ref) {
|
|
27
|
-
return (
|
|
137
|
+
return (external_react_default().createElement("div", { ref: ref, "data-fs-product-card-image": true, "data-testid": testId, style: {
|
|
28
138
|
'--fs-product-card-image-aspect-ratio': aspectRatio
|
|
29
139
|
}, ...otherProps }, children));
|
|
30
140
|
});
|
|
31
141
|
/* harmony default export */ const ProductCard_ProductCardImage = (ProductCardImage);
|
|
32
142
|
//# sourceMappingURL=ProductCardImage.js.map
|
|
33
143
|
// EXTERNAL MODULE: ../components/dist/atoms/Link/Link.js
|
|
34
|
-
var Link = __webpack_require__(
|
|
144
|
+
var Link = __webpack_require__(87865);
|
|
35
145
|
// EXTERNAL MODULE: ../components/dist/atoms/Price/Price.js
|
|
36
|
-
var Price = __webpack_require__(
|
|
146
|
+
var Price = __webpack_require__(57549);
|
|
37
147
|
// EXTERNAL MODULE: ../components/dist/molecules/Rating/Rating.js
|
|
38
|
-
var Rating = __webpack_require__(
|
|
148
|
+
var Rating = __webpack_require__(40783);
|
|
39
149
|
// EXTERNAL MODULE: ../components/dist/atoms/Icon/Icon.js
|
|
40
|
-
var Icon = __webpack_require__(
|
|
150
|
+
var Icon = __webpack_require__(25045);
|
|
41
151
|
// EXTERNAL MODULE: ../components/dist/molecules/DiscountBadge/DiscountBadge.js + 1 modules
|
|
42
|
-
var DiscountBadge = __webpack_require__(
|
|
152
|
+
var DiscountBadge = __webpack_require__(89875);
|
|
43
153
|
// EXTERNAL MODULE: ../components/dist/atoms/Badge/Badge.js
|
|
44
|
-
var Badge = __webpack_require__(
|
|
154
|
+
var Badge = __webpack_require__(10044);
|
|
45
155
|
// EXTERNAL MODULE: ../components/dist/atoms/Button/Button.js
|
|
46
|
-
var Button = __webpack_require__(
|
|
156
|
+
var Button = __webpack_require__(57578);
|
|
47
157
|
;// CONCATENATED MODULE: ../components/dist/molecules/ProductCard/ProductCardContent.js
|
|
48
158
|
|
|
49
159
|
|
|
50
160
|
const ProductCardContent = (0,external_react_.forwardRef)(function CardContent({ testId = 'fs-product-card-content', title, linkProps, price, outOfStock, outOfStockLabel = 'Out of stock', ratingValue, showDiscountBadge, buttonLabel = 'Add', onButtonClick, children, ...otherProps }, ref) {
|
|
51
|
-
return (
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
ratingValue && (
|
|
60
|
-
showDiscountBadge && !outOfStock && (
|
|
61
|
-
outOfStock &&
|
|
62
|
-
onButtonClick && !outOfStock && (
|
|
63
|
-
|
|
161
|
+
return (external_react_default().createElement("section", { ref: ref, "data-fs-product-card-content": true, "data-fs-product-card-badge": showDiscountBadge, "data-testid": testId, ...otherProps },
|
|
162
|
+
external_react_default().createElement("div", { "data-fs-product-card-heading": true },
|
|
163
|
+
external_react_default().createElement("h3", { "data-fs-product-card-title": true },
|
|
164
|
+
external_react_default().createElement(Link/* default */.Z, { ...linkProps, title: title },
|
|
165
|
+
external_react_default().createElement("span", null, title))),
|
|
166
|
+
external_react_default().createElement("div", { "data-fs-product-card-prices": true },
|
|
167
|
+
external_react_default().createElement(Price/* default */.Z, { value: price?.listPrice ? price.listPrice : 0, formatter: price?.formatter, testId: "list-price", "data-value": price?.listPrice, variant: "listing", SRText: "Original price:" }),
|
|
168
|
+
external_react_default().createElement(Price/* default */.Z, { value: price?.value ? price.value : 0, formatter: price?.formatter, testId: "price", "data-value": price?.value, variant: "spot", SRText: "Sale Price:" })),
|
|
169
|
+
ratingValue && (external_react_default().createElement(Rating/* default */.Z, { value: ratingValue, icon: external_react_default().createElement(Icon/* default */.Z, { name: "Star" }) }))),
|
|
170
|
+
showDiscountBadge && !outOfStock && (external_react_default().createElement(DiscountBadge/* default */.Z, { listPrice: price?.listPrice ? price.listPrice : 0, spotPrice: price?.value ? price.value : 0 })),
|
|
171
|
+
outOfStock && external_react_default().createElement(Badge/* default */.Z, null, outOfStockLabel),
|
|
172
|
+
onButtonClick && !outOfStock && (external_react_default().createElement("div", { "data-fs-product-card-actions": true },
|
|
173
|
+
external_react_default().createElement(Button/* default */.Z, { variant: "primary", icon: external_react_default().createElement(Icon/* default */.Z, { name: "ShoppingCart" }), iconPosition: "left", size: "small", onClick: onButtonClick }, buttonLabel)))));
|
|
64
174
|
});
|
|
65
175
|
/* harmony default export */ const ProductCard_ProductCardContent = (ProductCardContent);
|
|
66
176
|
//# sourceMappingURL=ProductCardContent.js.map
|
|
@@ -188,7 +298,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
188
298
|
});
|
|
189
299
|
|
|
190
300
|
// EXTERNAL MODULE: ../components/dist/atoms/Skeleton/Skeleton.js
|
|
191
|
-
var Skeleton = __webpack_require__(
|
|
301
|
+
var Skeleton = __webpack_require__(2928);
|
|
192
302
|
// EXTERNAL MODULE: external "react/jsx-runtime"
|
|
193
303
|
var jsx_runtime_ = __webpack_require__(20997);
|
|
194
304
|
;// CONCATENATED MODULE: ./src/components/skeletons/ProductCardSkeleton/ProductCardSkeleton.tsx
|
|
@@ -401,112 +511,6 @@ const useProductsQueryPrefetch = (variables, options) => {
|
|
|
401
511
|
__webpack_async_result__();
|
|
402
512
|
} catch(e) { __webpack_async_result__(e); } });
|
|
403
513
|
|
|
404
|
-
/***/ }),
|
|
405
|
-
|
|
406
|
-
/***/ 78416:
|
|
407
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
408
|
-
|
|
409
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
410
|
-
/* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
411
|
-
/* harmony export */ });
|
|
412
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16689);
|
|
413
|
-
|
|
414
|
-
const Skeleton = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function Skeleton({ testId = 'fs-skeleton', loading = true, shimmer = true, children, size, border, borderRadius, ...otherProps }, ref) {
|
|
415
|
-
const styles = {
|
|
416
|
-
width: size.width,
|
|
417
|
-
height: size.height,
|
|
418
|
-
};
|
|
419
|
-
return loading ? (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { ref: ref, "data-fs-skeleton": true, "data-testid": testId, "data-fs-skeleton-border": border ? border : null, style: borderRadius ? { ...styles, borderRadius: borderRadius } : styles, ...otherProps }, shimmer && react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { "data-fs-skeleton-shimmer": true }))) : (react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, children));
|
|
420
|
-
});
|
|
421
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Skeleton);
|
|
422
|
-
//# sourceMappingURL=Skeleton.js.map
|
|
423
|
-
|
|
424
|
-
/***/ }),
|
|
425
|
-
|
|
426
|
-
/***/ 5316:
|
|
427
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
// EXPORTS
|
|
431
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
432
|
-
"Z": () => (/* binding */ DiscountBadge_DiscountBadge)
|
|
433
|
-
});
|
|
434
|
-
|
|
435
|
-
// EXTERNAL MODULE: external "react"
|
|
436
|
-
var external_react_ = __webpack_require__(16689);
|
|
437
|
-
// EXTERNAL MODULE: ../components/dist/atoms/Badge/Badge.js
|
|
438
|
-
var Badge = __webpack_require__(87197);
|
|
439
|
-
;// CONCATENATED MODULE: ../components/dist/molecules/DiscountBadge/useDiscountPercent.js
|
|
440
|
-
|
|
441
|
-
const useDiscountPercent = (listPrice, spotPrice) => {
|
|
442
|
-
return (0,external_react_.useMemo)(() => {
|
|
443
|
-
const diff = listPrice - spotPrice;
|
|
444
|
-
const discount = (diff * 100) / listPrice;
|
|
445
|
-
return Math.round(discount);
|
|
446
|
-
}, [spotPrice, listPrice]);
|
|
447
|
-
};
|
|
448
|
-
//# sourceMappingURL=useDiscountPercent.js.map
|
|
449
|
-
;// CONCATENATED MODULE: ../components/dist/molecules/DiscountBadge/DiscountBadge.js
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
const DiscountBadge = ({ listPrice, spotPrice, thresholdLow = 15, thresholdHigh = 40, size, testId = 'fs-discount-badge', }) => {
|
|
454
|
-
const discountPercent = useDiscountPercent(listPrice, spotPrice);
|
|
455
|
-
if (discountPercent === 0) {
|
|
456
|
-
return external_react_.createElement(external_react_.Fragment, null);
|
|
457
|
-
}
|
|
458
|
-
const discountVariant = discountPercent <= thresholdLow
|
|
459
|
-
? 'low'
|
|
460
|
-
: discountPercent <= thresholdHigh
|
|
461
|
-
? 'medium'
|
|
462
|
-
: 'high';
|
|
463
|
-
return (external_react_.createElement(Badge/* default */.Z, { "data-fs-discount-badge": true, "data-fs-discount-badge-variant": discountVariant, size: size, "data-testid": testId },
|
|
464
|
-
discountPercent,
|
|
465
|
-
"% off"));
|
|
466
|
-
};
|
|
467
|
-
/* harmony default export */ const DiscountBadge_DiscountBadge = (DiscountBadge);
|
|
468
|
-
//# sourceMappingURL=DiscountBadge.js.map
|
|
469
|
-
|
|
470
|
-
/***/ }),
|
|
471
|
-
|
|
472
|
-
/***/ 57092:
|
|
473
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
474
|
-
|
|
475
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
476
|
-
/* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
477
|
-
/* harmony export */ });
|
|
478
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16689);
|
|
479
|
-
/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(82185);
|
|
480
|
-
/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(90518);
|
|
481
|
-
/* harmony import */ var _atoms_List__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(58823);
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
const Rating = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function Rating({ children, testId = 'fs-rating', length = 5, value = 0, icon, onChange, ...otherProps }, ref) {
|
|
486
|
-
const [hover, setHover] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(0);
|
|
487
|
-
const outlineProps = { 'data-fs-rating-icon-outline': true };
|
|
488
|
-
const ratingIcon = react__WEBPACK_IMPORTED_MODULE_0__.isValidElement(icon) ? icon : react__WEBPACK_IMPORTED_MODULE_0__.createElement(___WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, { name: "Star" });
|
|
489
|
-
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_atoms_List__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, { ref: ref, "data-fs-rating": true, "data-fs-rating-actionable": typeof onChange === 'function', "data-testid": testId, ...otherProps }, Array.from({ length }).map((_, index) => {
|
|
490
|
-
const tempIndex = index + 1;
|
|
491
|
-
const fillCheck = () => {
|
|
492
|
-
if (tempIndex <= (hover || value)) {
|
|
493
|
-
return 'full';
|
|
494
|
-
}
|
|
495
|
-
if (tempIndex - value > 0 && tempIndex - value < 1) {
|
|
496
|
-
return 'partial';
|
|
497
|
-
}
|
|
498
|
-
return 'empty';
|
|
499
|
-
};
|
|
500
|
-
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("li", { key: `rating-${index}`, "data-fs-rating-item": fillCheck(), "data-testid": `${testId}-item` }, onChange ? (react__WEBPACK_IMPORTED_MODULE_0__.createElement(___WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, { "data-fs-rating-button": true, icon: ratingIcon, size: "small", "aria-label": "rate", onClick: () => {
|
|
501
|
-
onChange(tempIndex);
|
|
502
|
-
}, onMouseEnter: () => setHover(tempIndex), onMouseLeave: () => setHover(value) })) : (react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null,
|
|
503
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { "data-fs-rating-icon-wrapper": true }, ratingIcon),
|
|
504
|
-
react__WEBPACK_IMPORTED_MODULE_0__.isValidElement(icon) ? (react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(icon, outlineProps)) : (react__WEBPACK_IMPORTED_MODULE_0__.createElement(___WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, { name: "Star", "data-fs-rating-icon-outline": true }))))));
|
|
505
|
-
})));
|
|
506
|
-
});
|
|
507
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Rating);
|
|
508
|
-
//# sourceMappingURL=Rating.js.map
|
|
509
|
-
|
|
510
514
|
/***/ })
|
|
511
515
|
|
|
512
516
|
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
exports.id = 287;
|
|
3
|
+
exports.ids = [287];
|
|
4
|
+
exports.modules = {
|
|
5
|
+
|
|
6
|
+
/***/ 57216:
|
|
7
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
8
|
+
|
|
9
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10
|
+
/* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
11
|
+
/* harmony export */ });
|
|
12
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16689);
|
|
13
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
14
|
+
|
|
15
|
+
const Label = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function Label({ testId = 'fs-label', children, ...otherProps }, ref) {
|
|
16
|
+
return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement("label", { ref: ref, "data-fs-label": true, "data-testid": testId, ...otherProps }, children));
|
|
17
|
+
});
|
|
18
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Label);
|
|
19
|
+
//# sourceMappingURL=Label.js.map
|
|
20
|
+
|
|
21
|
+
/***/ }),
|
|
22
|
+
|
|
23
|
+
/***/ 28287:
|
|
24
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
25
|
+
|
|
26
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
27
|
+
/* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
28
|
+
/* harmony export */ });
|
|
29
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16689);
|
|
30
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
31
|
+
/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(875);
|
|
32
|
+
/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(57216);
|
|
33
|
+
/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(82765);
|
|
34
|
+
/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(25045);
|
|
35
|
+
/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(57578);
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
const InputField = ({ id, label, type = 'text', error, displayClearButton, actionable, buttonActionText = 'Apply', onSubmit, onClear, placeholder = ' ', // initializes with an empty space to style float label using `placeholder-shown`
|
|
39
|
+
inputRef, disabled, value, testId = 'fs-input-field', ...otherProps }) => {
|
|
40
|
+
const shouldDisplayError = !disabled && error && error !== '';
|
|
41
|
+
const shouldDisplayButton = actionable && !disabled && value !== '';
|
|
42
|
+
return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { "data-fs-input-field": true, "data-fs-input-field-actionable": actionable, "data-fs-input-field-error": error && error !== '', "data-testid": testId },
|
|
43
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement(___WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, { id: id, type: type, value: value, ref: inputRef, disabled: disabled, placeholder: placeholder, ...otherProps }),
|
|
44
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement(___WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, { htmlFor: id }, label),
|
|
45
|
+
shouldDisplayButton &&
|
|
46
|
+
(displayClearButton || error ? (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(___WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, { size: "small", "aria-label": "Clear Field", icon: react__WEBPACK_IMPORTED_MODULE_0___default().createElement(___WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z, { name: "XCircle" }), onClick: () => {
|
|
47
|
+
onClear?.();
|
|
48
|
+
inputRef?.current?.focus();
|
|
49
|
+
} })) : (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(___WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z, { variant: "tertiary", size: "small", onClick: onSubmit }, buttonActionText))),
|
|
50
|
+
shouldDisplayError && (react__WEBPACK_IMPORTED_MODULE_0___default().createElement("span", { "data-fs-input-field-error-message": true }, error))));
|
|
51
|
+
};
|
|
52
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (InputField);
|
|
53
|
+
//# sourceMappingURL=InputField.js.map
|
|
54
|
+
|
|
55
|
+
/***/ })
|
|
56
|
+
|
|
57
|
+
};
|
|
58
|
+
;
|
|
@@ -3,7 +3,7 @@ exports.id = 289;
|
|
|
3
3
|
exports.ids = [289];
|
|
4
4
|
exports.modules = {
|
|
5
5
|
|
|
6
|
-
/***/
|
|
6
|
+
/***/ 84436:
|
|
7
7
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
8
8
|
|
|
9
9
|
|
|
@@ -14,17 +14,18 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
14
14
|
|
|
15
15
|
// EXTERNAL MODULE: external "react"
|
|
16
16
|
var external_react_ = __webpack_require__(16689);
|
|
17
|
+
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
|
|
17
18
|
;// CONCATENATED MODULE: ../components/dist/organisms/ProductGrid/ProductGrid.js
|
|
18
19
|
|
|
19
20
|
const ProductGrid = (0,external_react_.forwardRef)(function ProductGridItem({ testId = 'fs-product-grid', children, ...otherProps }, ref) {
|
|
20
|
-
return (
|
|
21
|
+
return (external_react_default().createElement("ul", { ref: ref, "data-fs-product-grid": true, ...otherProps }, children));
|
|
21
22
|
});
|
|
22
23
|
/* harmony default export */ const ProductGrid_ProductGrid = (ProductGrid);
|
|
23
24
|
//# sourceMappingURL=ProductGrid.js.map
|
|
24
25
|
;// CONCATENATED MODULE: ../components/dist/organisms/ProductGrid/ProductGridItem.js
|
|
25
26
|
|
|
26
27
|
const ProductGridItem = (0,external_react_.forwardRef)(function ProductGridItem({ testId = 'fs-product-grid-item', children, ...otherProps }, ref) {
|
|
27
|
-
return (
|
|
28
|
+
return (external_react_default().createElement("li", { ref: ref, "data-fs-product-grid-item": true, ...otherProps }, children));
|
|
28
29
|
});
|
|
29
30
|
/* harmony default export */ const ProductGrid_ProductGridItem = (ProductGridItem);
|
|
30
31
|
//# sourceMappingURL=ProductGridItem.js.map
|
|
@@ -96,7 +97,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
96
97
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
97
98
|
/* harmony export */ });
|
|
98
99
|
/* harmony import */ var _faststore_sdk__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(73221);
|
|
99
|
-
/* harmony import */ var src_components_product_ProductGrid__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
100
|
+
/* harmony import */ var src_components_product_ProductGrid__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(84436);
|
|
100
101
|
/* harmony import */ var src_sdk_search_Sentinel__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1566);
|
|
101
102
|
/* harmony import */ var _usePageProducts__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(49521);
|
|
102
103
|
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(20997);
|