@dmsi/wedgekit-react 0.0.440 → 0.0.442
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/{chunk-IMOIZFJZ.js → chunk-DNYGKNQM.js} +1 -1
- package/dist/chunk-ETAEB3TA.js +19 -0
- package/dist/{chunk-G5DEC7H3.js → chunk-YCDDBSVU.js} +16 -23
- package/dist/components/CalendarRange.cjs +38 -40
- package/dist/components/CalendarRange.css +23 -11
- package/dist/components/CalendarRange.js +3 -3
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.cjs +38 -40
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.css +23 -11
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +3 -3
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +38 -40
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.css +23 -11
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +3 -3
- package/dist/components/DataGrid/PinnedColumns.cjs +38 -40
- package/dist/components/DataGrid/PinnedColumns.css +23 -11
- package/dist/components/DataGrid/PinnedColumns.js +3 -3
- package/dist/components/DataGrid/TableBody/LoadingCell.cjs +38 -40
- package/dist/components/DataGrid/TableBody/LoadingCell.css +23 -11
- package/dist/components/DataGrid/TableBody/LoadingCell.js +3 -3
- package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +38 -40
- package/dist/components/DataGrid/TableBody/TableBodyRow.css +23 -11
- package/dist/components/DataGrid/TableBody/TableBodyRow.js +3 -3
- package/dist/components/DataGrid/TableBody/index.cjs +38 -40
- package/dist/components/DataGrid/TableBody/index.css +23 -11
- package/dist/components/DataGrid/TableBody/index.js +3 -3
- package/dist/components/DataGrid/index.cjs +38 -40
- package/dist/components/DataGrid/index.css +23 -11
- package/dist/components/DataGrid/index.js +3 -3
- package/dist/components/DataGrid/utils.cjs +38 -40
- package/dist/components/DataGrid/utils.css +23 -11
- package/dist/components/DataGrid/utils.js +3 -3
- package/dist/components/DateInput.cjs +38 -40
- package/dist/components/DateInput.css +23 -11
- package/dist/components/DateInput.js +3 -3
- package/dist/components/DateRangeInput.cjs +38 -40
- package/dist/components/DateRangeInput.css +23 -11
- package/dist/components/DateRangeInput.js +3 -3
- package/dist/components/MobileDataGrid/ColumnSelector/index.cjs +38 -40
- package/dist/components/MobileDataGrid/ColumnSelector/index.css +23 -11
- package/dist/components/MobileDataGrid/ColumnSelector/index.js +3 -3
- package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +38 -40
- package/dist/components/MobileDataGrid/MobileDataGridHeader.css +23 -11
- package/dist/components/MobileDataGrid/MobileDataGridHeader.js +3 -3
- package/dist/components/MobileDataGrid/index.cjs +61 -63
- package/dist/components/MobileDataGrid/index.css +23 -11
- package/dist/components/MobileDataGrid/index.js +3 -3
- package/dist/components/ProductImagePreview/ProductPrimaryImage.cjs +29 -83
- package/dist/components/ProductImagePreview/ProductPrimaryImage.js +1 -3
- package/dist/components/ProductImagePreview/index.cjs +44 -77
- package/dist/components/ProductImagePreview/index.js +2 -3
- package/dist/components/SkeletonParagraph.cjs +12 -2
- package/dist/components/SkeletonParagraph.js +1 -1
- package/dist/components/index.cjs +105 -98
- package/dist/components/index.css +23 -11
- package/dist/components/index.js +3 -3
- package/dist/index.css +23 -11
- package/package.json +1 -1
- package/src/components/ProductImagePreview/ProductPrimaryImage.tsx +24 -34
- package/src/components/SkeletonParagraph.tsx +20 -2
- package/src/index.css +27 -0
- package/dist/chunk-ESCNCQGI.js +0 -9
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// src/components/SkeletonParagraph.tsx
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
function SkeletonParagraph({
|
|
4
|
+
className = "",
|
|
5
|
+
heightClassName = "h-6"
|
|
6
|
+
}) {
|
|
7
|
+
return /* @__PURE__ */ jsx(
|
|
8
|
+
"div",
|
|
9
|
+
{
|
|
10
|
+
"aria-label": "Loading content",
|
|
11
|
+
role: "status",
|
|
12
|
+
className: `skeleton-paragraph ${heightClassName} w-full min-w-32 rounded-xs ${className}`
|
|
13
|
+
}
|
|
14
|
+
);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export {
|
|
18
|
+
SkeletonParagraph
|
|
19
|
+
};
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Spinner
|
|
3
|
-
} from "./chunk-SBRRNFOP.js";
|
|
4
|
-
import {
|
|
5
|
-
ImagePlaceholder
|
|
6
|
-
} from "./chunk-QVWYTQKL.js";
|
|
7
1
|
import {
|
|
8
2
|
__spreadProps,
|
|
9
3
|
__spreadValues
|
|
@@ -12,6 +6,7 @@ import {
|
|
|
12
6
|
// src/components/ProductImagePreview/ProductPrimaryImage.tsx
|
|
13
7
|
import { useRef, useState, useCallback, useMemo, useEffect } from "react";
|
|
14
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
var placeholderImageUri = "/placeholder.svg";
|
|
15
10
|
function ProductPrimaryImage({
|
|
16
11
|
image,
|
|
17
12
|
width,
|
|
@@ -29,8 +24,6 @@ function ProductPrimaryImage({
|
|
|
29
24
|
const rafRef = useRef(null);
|
|
30
25
|
const [active, setActive] = useState(false);
|
|
31
26
|
const [, forceRerender] = useState(0);
|
|
32
|
-
const [imageLoading, setImageLoading] = useState(true);
|
|
33
|
-
const [imageError, setImageError] = useState(false);
|
|
34
27
|
const imageSrc = useMemo(() => image == null ? void 0 : image.src, [image == null ? void 0 : image.src]);
|
|
35
28
|
const schedule = () => {
|
|
36
29
|
if (rafRef.current != null) return;
|
|
@@ -60,7 +53,8 @@ function ProductPrimaryImage({
|
|
|
60
53
|
}, [zoomEnabled, onZoomPositionChange]);
|
|
61
54
|
const handlePointerMove = useCallback(
|
|
62
55
|
(e) => {
|
|
63
|
-
if (
|
|
56
|
+
if (isPlaceholder) return;
|
|
57
|
+
if (!zoomEnabled || !active) return;
|
|
64
58
|
if (e.pointerType === "touch") return;
|
|
65
59
|
const el = containerRef.current;
|
|
66
60
|
if (!el) return;
|
|
@@ -92,7 +86,7 @@ function ProductPrimaryImage({
|
|
|
92
86
|
true
|
|
93
87
|
);
|
|
94
88
|
},
|
|
95
|
-
[zoomEnabled, active,
|
|
89
|
+
[isPlaceholder, zoomEnabled, active, zoomLensSize, onZoomPositionChange]
|
|
96
90
|
);
|
|
97
91
|
useEffect(() => {
|
|
98
92
|
const container = containerRef.current;
|
|
@@ -109,11 +103,15 @@ function ProductPrimaryImage({
|
|
|
109
103
|
container.removeEventListener("wheel", handleNativeWheel);
|
|
110
104
|
};
|
|
111
105
|
}, [scrollToZoomEnabled, zoomEnabled, active, onScrollZoom]);
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
106
|
+
const handleImgError = useCallback(
|
|
107
|
+
(e) => {
|
|
108
|
+
if (!placeholderImageUri) return;
|
|
109
|
+
const img = e.currentTarget;
|
|
110
|
+
if (img.src === placeholderImageUri) return;
|
|
111
|
+
img.src = placeholderImageUri;
|
|
112
|
+
},
|
|
113
|
+
[]
|
|
114
|
+
);
|
|
117
115
|
const pt = lastPointRef.current;
|
|
118
116
|
let lensStyle;
|
|
119
117
|
if (pt && active && zoomEnabled) {
|
|
@@ -147,20 +145,15 @@ function ProductPrimaryImage({
|
|
|
147
145
|
onPointerLeave: handlePointerLeave,
|
|
148
146
|
onPointerMove: handlePointerMove,
|
|
149
147
|
children: [
|
|
150
|
-
|
|
151
|
-
isPlaceholder ? /* @__PURE__ */ jsx(ImagePlaceholder, { width, height }) : /* @__PURE__ */ jsx(
|
|
148
|
+
/* @__PURE__ */ jsx(
|
|
152
149
|
"img",
|
|
153
150
|
{
|
|
154
|
-
src:
|
|
151
|
+
src: imageSrc != null ? imageSrc : placeholderImageUri,
|
|
155
152
|
alt: (image == null ? void 0 : image.alt) || "Product image",
|
|
156
153
|
className: "object-cover min-w-full min-h-full select-none",
|
|
157
154
|
draggable: false,
|
|
158
155
|
loading: "lazy",
|
|
159
|
-
|
|
160
|
-
onError: () => {
|
|
161
|
-
setImageLoading(false);
|
|
162
|
-
setImageError(true);
|
|
163
|
-
}
|
|
156
|
+
onError: handleImgError
|
|
164
157
|
},
|
|
165
158
|
imageSrc
|
|
166
159
|
),
|
|
@@ -4574,46 +4574,14 @@ var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
|
4574
4574
|
|
|
4575
4575
|
// src/components/ProductImagePreview/ProductPrimaryImage.tsx
|
|
4576
4576
|
var import_react27 = require("react");
|
|
4577
|
-
|
|
4578
|
-
// src/components/Spinner.tsx
|
|
4579
4577
|
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
4580
|
-
var Spinner = ({ size = "small", testid }) => {
|
|
4581
|
-
const dimension = size === "large" ? 48 : 24;
|
|
4582
|
-
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
|
|
4583
|
-
"svg",
|
|
4584
|
-
{
|
|
4585
|
-
"data-testid": testid,
|
|
4586
|
-
width: dimension,
|
|
4587
|
-
height: dimension,
|
|
4588
|
-
viewBox: "0 0 24 24",
|
|
4589
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
4590
|
-
fill: "#1D1E1E",
|
|
4591
|
-
className: "spinner",
|
|
4592
|
-
"aria-label": "Loading",
|
|
4593
|
-
children: [
|
|
4594
|
-
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("circle", { cx: "12", cy: "4", r: "2", opacity: "1" }),
|
|
4595
|
-
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("circle", { cx: "17.666", cy: "6.334", r: "2", opacity: "0.125" }),
|
|
4596
|
-
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("circle", { cx: "20", cy: "12", r: "2", opacity: "0.25" }),
|
|
4597
|
-
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("circle", { cx: "17.666", cy: "17.666", r: "2", opacity: "0.375" }),
|
|
4598
|
-
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("circle", { cx: "12", cy: "20", r: "2", opacity: "0.5" }),
|
|
4599
|
-
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("circle", { cx: "6.334", cy: "17.666", r: "2", opacity: "0.625" }),
|
|
4600
|
-
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("circle", { cx: "4", cy: "12", r: "2", opacity: "0.75" }),
|
|
4601
|
-
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("circle", { cx: "6.334", cy: "6.334", r: "2", opacity: "0.875" })
|
|
4602
|
-
]
|
|
4603
|
-
}
|
|
4604
|
-
);
|
|
4605
|
-
};
|
|
4606
|
-
Spinner.displayName = "Spinner";
|
|
4607
|
-
|
|
4608
|
-
// src/components/ProductImagePreview/ProductPrimaryImage.tsx
|
|
4609
|
-
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
4610
4578
|
|
|
4611
4579
|
// src/components/ProductImagePreview/ZoomWindow.tsx
|
|
4612
4580
|
var import_react28 = require("react");
|
|
4613
4581
|
|
|
4614
4582
|
// src/components/Surface.tsx
|
|
4615
4583
|
var import_clsx31 = __toESM(require("clsx"), 1);
|
|
4616
|
-
var
|
|
4584
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
4617
4585
|
var Surface = (_a) => {
|
|
4618
4586
|
var _b = _a, {
|
|
4619
4587
|
children,
|
|
@@ -4626,7 +4594,7 @@ var Surface = (_a) => {
|
|
|
4626
4594
|
"elevation",
|
|
4627
4595
|
"id"
|
|
4628
4596
|
]);
|
|
4629
|
-
return /* @__PURE__ */ (0,
|
|
4597
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
4630
4598
|
"div",
|
|
4631
4599
|
__spreadProps(__spreadValues({
|
|
4632
4600
|
id,
|
|
@@ -4647,30 +4615,30 @@ var Surface = (_a) => {
|
|
|
4647
4615
|
Surface.displayName = "Surface";
|
|
4648
4616
|
|
|
4649
4617
|
// src/components/ProductImagePreview/ZoomWindow.tsx
|
|
4650
|
-
var
|
|
4618
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
4651
4619
|
|
|
4652
4620
|
// src/components/ProductImagePreview/CarouselPagination.tsx
|
|
4653
4621
|
var import_clsx32 = require("clsx");
|
|
4654
|
-
var
|
|
4622
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
4655
4623
|
|
|
4656
4624
|
// src/components/ProductImagePreview/MobileImageCarousel.tsx
|
|
4657
4625
|
var import_react29 = require("react");
|
|
4658
|
-
var
|
|
4626
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
4659
4627
|
|
|
4660
4628
|
// src/components/ProductImagePreview/useProductImagePreview.ts
|
|
4661
4629
|
var import_react30 = require("react");
|
|
4662
4630
|
|
|
4663
4631
|
// src/components/ProductImagePreview/index.tsx
|
|
4664
|
-
var
|
|
4632
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
4665
4633
|
|
|
4666
4634
|
// src/components/CompactImagesPreview.tsx
|
|
4667
4635
|
var import_react31 = require("react");
|
|
4668
4636
|
var import_clsx33 = __toESM(require("clsx"), 1);
|
|
4669
|
-
var
|
|
4637
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
4670
4638
|
|
|
4671
4639
|
// src/components/SimpleTable.tsx
|
|
4672
4640
|
var import_clsx34 = __toESM(require("clsx"), 1);
|
|
4673
|
-
var
|
|
4641
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
4674
4642
|
|
|
4675
4643
|
// src/components/PDFViewer/index.tsx
|
|
4676
4644
|
var import_react34 = require("react");
|
|
@@ -4679,6 +4647,36 @@ var import_react34 = require("react");
|
|
|
4679
4647
|
var import_react_pdf2 = require("@mikecousins/react-pdf");
|
|
4680
4648
|
var import_react33 = require("react");
|
|
4681
4649
|
|
|
4650
|
+
// src/components/Spinner.tsx
|
|
4651
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
4652
|
+
var Spinner = ({ size = "small", testid }) => {
|
|
4653
|
+
const dimension = size === "large" ? 48 : 24;
|
|
4654
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
|
|
4655
|
+
"svg",
|
|
4656
|
+
{
|
|
4657
|
+
"data-testid": testid,
|
|
4658
|
+
width: dimension,
|
|
4659
|
+
height: dimension,
|
|
4660
|
+
viewBox: "0 0 24 24",
|
|
4661
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4662
|
+
fill: "#1D1E1E",
|
|
4663
|
+
className: "spinner",
|
|
4664
|
+
"aria-label": "Loading",
|
|
4665
|
+
children: [
|
|
4666
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)("circle", { cx: "12", cy: "4", r: "2", opacity: "1" }),
|
|
4667
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)("circle", { cx: "17.666", cy: "6.334", r: "2", opacity: "0.125" }),
|
|
4668
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)("circle", { cx: "20", cy: "12", r: "2", opacity: "0.25" }),
|
|
4669
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)("circle", { cx: "17.666", cy: "17.666", r: "2", opacity: "0.375" }),
|
|
4670
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)("circle", { cx: "12", cy: "20", r: "2", opacity: "0.5" }),
|
|
4671
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)("circle", { cx: "6.334", cy: "17.666", r: "2", opacity: "0.625" }),
|
|
4672
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)("circle", { cx: "4", cy: "12", r: "2", opacity: "0.75" }),
|
|
4673
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)("circle", { cx: "6.334", cy: "6.334", r: "2", opacity: "0.875" })
|
|
4674
|
+
]
|
|
4675
|
+
}
|
|
4676
|
+
);
|
|
4677
|
+
};
|
|
4678
|
+
Spinner.displayName = "Spinner";
|
|
4679
|
+
|
|
4682
4680
|
// src/components/PDFViewer/PDFPage.tsx
|
|
4683
4681
|
var import_react_pdf = require("@mikecousins/react-pdf");
|
|
4684
4682
|
var import_react32 = require("react");
|
|
@@ -778,9 +778,6 @@
|
|
|
778
778
|
.h-60 {
|
|
779
779
|
height: calc(var(--spacing) * 60);
|
|
780
780
|
}
|
|
781
|
-
.h-\[24px\] {
|
|
782
|
-
height: 24px;
|
|
783
|
-
}
|
|
784
781
|
.h-\[166px\] {
|
|
785
782
|
height: 166px;
|
|
786
783
|
}
|
|
@@ -1870,10 +1867,6 @@
|
|
|
1870
1867
|
--tw-gradient-position: to right in oklab;
|
|
1871
1868
|
background-image: linear-gradient(var(--tw-gradient-stops));
|
|
1872
1869
|
}
|
|
1873
|
-
.from-neutral-100 {
|
|
1874
|
-
--tw-gradient-from: var(--color-neutral-100);
|
|
1875
|
-
--tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
|
|
1876
|
-
}
|
|
1877
1870
|
.from-neutral-300\/\[12\%\] {
|
|
1878
1871
|
--tw-gradient-from: color-mix(in srgb, #c1c1c1 12%, transparent);
|
|
1879
1872
|
@supports (color: color-mix(in lab, red, red)) {
|
|
@@ -1885,10 +1878,6 @@
|
|
|
1885
1878
|
--tw-gradient-from: var(--color-white);
|
|
1886
1879
|
--tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
|
|
1887
1880
|
}
|
|
1888
|
-
.to-\[\#f7f7f7\] {
|
|
1889
|
-
--tw-gradient-to: #f7f7f7;
|
|
1890
|
-
--tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
|
|
1891
|
-
}
|
|
1892
1881
|
.to-neutral-300\/\[24\%\] {
|
|
1893
1882
|
--tw-gradient-to: color-mix(in srgb, #c1c1c1 24%, transparent);
|
|
1894
1883
|
@supports (color: color-mix(in lab, red, red)) {
|
|
@@ -4674,6 +4663,29 @@
|
|
|
4674
4663
|
--color-background-action-critical-secondary-disabled: var( --color-neutral-200 );
|
|
4675
4664
|
--color-background-brand-normal: var( --color-brand-400 );
|
|
4676
4665
|
}
|
|
4666
|
+
.skeleton-paragraph {
|
|
4667
|
+
position: relative;
|
|
4668
|
+
overflow: hidden;
|
|
4669
|
+
background-color: #f7f7f7;
|
|
4670
|
+
}
|
|
4671
|
+
.skeleton-paragraph::after {
|
|
4672
|
+
content: "";
|
|
4673
|
+
position: absolute;
|
|
4674
|
+
inset: 0;
|
|
4675
|
+
transform: translateX(-100%);
|
|
4676
|
+
background-image:
|
|
4677
|
+
linear-gradient(
|
|
4678
|
+
90deg,
|
|
4679
|
+
rgba(255, 255, 255, 0) 0%,
|
|
4680
|
+
rgba(255, 255, 255, 0.6) 50%,
|
|
4681
|
+
rgba(255, 255, 255, 0) 100%);
|
|
4682
|
+
animation: skeleton-shimmer 1.4s ease-in-out infinite;
|
|
4683
|
+
}
|
|
4684
|
+
@keyframes skeleton-shimmer {
|
|
4685
|
+
100% {
|
|
4686
|
+
transform: translateX(100%);
|
|
4687
|
+
}
|
|
4688
|
+
}
|
|
4677
4689
|
@media (prefers-color-scheme: dark) {
|
|
4678
4690
|
:root {
|
|
4679
4691
|
--color-text-primary-normal: var(--color-neutral-000);
|
|
@@ -8,10 +8,10 @@ import "../chunk-7AXHAWJX.js";
|
|
|
8
8
|
import "../chunk-P3MIP2FD.js";
|
|
9
9
|
import "../chunk-M7INAUAJ.js";
|
|
10
10
|
import "../chunk-3HBYDOYE.js";
|
|
11
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-DNYGKNQM.js";
|
|
12
12
|
import "../chunk-MBZ55T2D.js";
|
|
13
13
|
import "../chunk-2IKT6IHB.js";
|
|
14
|
-
import "../chunk-
|
|
14
|
+
import "../chunk-YCDDBSVU.js";
|
|
15
15
|
import "../chunk-3X3Y4TMS.js";
|
|
16
16
|
import "../chunk-BQNPOGD5.js";
|
|
17
17
|
import "../chunk-LUPHOXAQ.js";
|
|
@@ -26,7 +26,7 @@ import "../chunk-VJVY6NPF.js";
|
|
|
26
26
|
import "../chunk-EWGHVZL5.js";
|
|
27
27
|
import "../chunk-DCLNAUC4.js";
|
|
28
28
|
import "../chunk-PQWWVBSR.js";
|
|
29
|
-
import "../chunk-
|
|
29
|
+
import "../chunk-ETAEB3TA.js";
|
|
30
30
|
import "../chunk-AT4AWD6B.js";
|
|
31
31
|
import "../chunk-J5V2JRIK.js";
|
|
32
32
|
import "../chunk-TYAQWVIM.js";
|
|
@@ -4540,46 +4540,14 @@ var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
|
4540
4540
|
|
|
4541
4541
|
// src/components/ProductImagePreview/ProductPrimaryImage.tsx
|
|
4542
4542
|
var import_react26 = require("react");
|
|
4543
|
-
|
|
4544
|
-
// src/components/Spinner.tsx
|
|
4545
4543
|
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
4546
|
-
var Spinner = ({ size = "small", testid }) => {
|
|
4547
|
-
const dimension = size === "large" ? 48 : 24;
|
|
4548
|
-
return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
|
|
4549
|
-
"svg",
|
|
4550
|
-
{
|
|
4551
|
-
"data-testid": testid,
|
|
4552
|
-
width: dimension,
|
|
4553
|
-
height: dimension,
|
|
4554
|
-
viewBox: "0 0 24 24",
|
|
4555
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
4556
|
-
fill: "#1D1E1E",
|
|
4557
|
-
className: "spinner",
|
|
4558
|
-
"aria-label": "Loading",
|
|
4559
|
-
children: [
|
|
4560
|
-
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)("circle", { cx: "12", cy: "4", r: "2", opacity: "1" }),
|
|
4561
|
-
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)("circle", { cx: "17.666", cy: "6.334", r: "2", opacity: "0.125" }),
|
|
4562
|
-
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)("circle", { cx: "20", cy: "12", r: "2", opacity: "0.25" }),
|
|
4563
|
-
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)("circle", { cx: "17.666", cy: "17.666", r: "2", opacity: "0.375" }),
|
|
4564
|
-
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)("circle", { cx: "12", cy: "20", r: "2", opacity: "0.5" }),
|
|
4565
|
-
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)("circle", { cx: "6.334", cy: "17.666", r: "2", opacity: "0.625" }),
|
|
4566
|
-
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)("circle", { cx: "4", cy: "12", r: "2", opacity: "0.75" }),
|
|
4567
|
-
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)("circle", { cx: "6.334", cy: "6.334", r: "2", opacity: "0.875" })
|
|
4568
|
-
]
|
|
4569
|
-
}
|
|
4570
|
-
);
|
|
4571
|
-
};
|
|
4572
|
-
Spinner.displayName = "Spinner";
|
|
4573
|
-
|
|
4574
|
-
// src/components/ProductImagePreview/ProductPrimaryImage.tsx
|
|
4575
|
-
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
4576
4544
|
|
|
4577
4545
|
// src/components/ProductImagePreview/ZoomWindow.tsx
|
|
4578
4546
|
var import_react27 = require("react");
|
|
4579
4547
|
|
|
4580
4548
|
// src/components/Surface.tsx
|
|
4581
4549
|
var import_clsx31 = __toESM(require("clsx"), 1);
|
|
4582
|
-
var
|
|
4550
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
4583
4551
|
var Surface = (_a) => {
|
|
4584
4552
|
var _b = _a, {
|
|
4585
4553
|
children,
|
|
@@ -4592,7 +4560,7 @@ var Surface = (_a) => {
|
|
|
4592
4560
|
"elevation",
|
|
4593
4561
|
"id"
|
|
4594
4562
|
]);
|
|
4595
|
-
return /* @__PURE__ */ (0,
|
|
4563
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
4596
4564
|
"div",
|
|
4597
4565
|
__spreadProps(__spreadValues({
|
|
4598
4566
|
id,
|
|
@@ -4613,30 +4581,30 @@ var Surface = (_a) => {
|
|
|
4613
4581
|
Surface.displayName = "Surface";
|
|
4614
4582
|
|
|
4615
4583
|
// src/components/ProductImagePreview/ZoomWindow.tsx
|
|
4616
|
-
var
|
|
4584
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
4617
4585
|
|
|
4618
4586
|
// src/components/ProductImagePreview/CarouselPagination.tsx
|
|
4619
4587
|
var import_clsx32 = require("clsx");
|
|
4620
|
-
var
|
|
4588
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
4621
4589
|
|
|
4622
4590
|
// src/components/ProductImagePreview/MobileImageCarousel.tsx
|
|
4623
4591
|
var import_react28 = require("react");
|
|
4624
|
-
var
|
|
4592
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
4625
4593
|
|
|
4626
4594
|
// src/components/ProductImagePreview/useProductImagePreview.ts
|
|
4627
4595
|
var import_react29 = require("react");
|
|
4628
4596
|
|
|
4629
4597
|
// src/components/ProductImagePreview/index.tsx
|
|
4630
|
-
var
|
|
4598
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
4631
4599
|
|
|
4632
4600
|
// src/components/CompactImagesPreview.tsx
|
|
4633
4601
|
var import_react30 = require("react");
|
|
4634
4602
|
var import_clsx33 = __toESM(require("clsx"), 1);
|
|
4635
|
-
var
|
|
4603
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
4636
4604
|
|
|
4637
4605
|
// src/components/SimpleTable.tsx
|
|
4638
4606
|
var import_clsx34 = __toESM(require("clsx"), 1);
|
|
4639
|
-
var
|
|
4607
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
4640
4608
|
|
|
4641
4609
|
// src/components/PDFViewer/index.tsx
|
|
4642
4610
|
var import_react33 = require("react");
|
|
@@ -4645,6 +4613,36 @@ var import_react33 = require("react");
|
|
|
4645
4613
|
var import_react_pdf2 = require("@mikecousins/react-pdf");
|
|
4646
4614
|
var import_react32 = require("react");
|
|
4647
4615
|
|
|
4616
|
+
// src/components/Spinner.tsx
|
|
4617
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
4618
|
+
var Spinner = ({ size = "small", testid }) => {
|
|
4619
|
+
const dimension = size === "large" ? 48 : 24;
|
|
4620
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
|
|
4621
|
+
"svg",
|
|
4622
|
+
{
|
|
4623
|
+
"data-testid": testid,
|
|
4624
|
+
width: dimension,
|
|
4625
|
+
height: dimension,
|
|
4626
|
+
viewBox: "0 0 24 24",
|
|
4627
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4628
|
+
fill: "#1D1E1E",
|
|
4629
|
+
className: "spinner",
|
|
4630
|
+
"aria-label": "Loading",
|
|
4631
|
+
children: [
|
|
4632
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("circle", { cx: "12", cy: "4", r: "2", opacity: "1" }),
|
|
4633
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("circle", { cx: "17.666", cy: "6.334", r: "2", opacity: "0.125" }),
|
|
4634
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("circle", { cx: "20", cy: "12", r: "2", opacity: "0.25" }),
|
|
4635
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("circle", { cx: "17.666", cy: "17.666", r: "2", opacity: "0.375" }),
|
|
4636
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("circle", { cx: "12", cy: "20", r: "2", opacity: "0.5" }),
|
|
4637
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("circle", { cx: "6.334", cy: "17.666", r: "2", opacity: "0.625" }),
|
|
4638
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("circle", { cx: "4", cy: "12", r: "2", opacity: "0.75" }),
|
|
4639
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("circle", { cx: "6.334", cy: "6.334", r: "2", opacity: "0.875" })
|
|
4640
|
+
]
|
|
4641
|
+
}
|
|
4642
|
+
);
|
|
4643
|
+
};
|
|
4644
|
+
Spinner.displayName = "Spinner";
|
|
4645
|
+
|
|
4648
4646
|
// src/components/PDFViewer/PDFPage.tsx
|
|
4649
4647
|
var import_react_pdf = require("@mikecousins/react-pdf");
|
|
4650
4648
|
var import_react31 = require("react");
|
|
@@ -778,9 +778,6 @@
|
|
|
778
778
|
.h-60 {
|
|
779
779
|
height: calc(var(--spacing) * 60);
|
|
780
780
|
}
|
|
781
|
-
.h-\[24px\] {
|
|
782
|
-
height: 24px;
|
|
783
|
-
}
|
|
784
781
|
.h-\[166px\] {
|
|
785
782
|
height: 166px;
|
|
786
783
|
}
|
|
@@ -1870,10 +1867,6 @@
|
|
|
1870
1867
|
--tw-gradient-position: to right in oklab;
|
|
1871
1868
|
background-image: linear-gradient(var(--tw-gradient-stops));
|
|
1872
1869
|
}
|
|
1873
|
-
.from-neutral-100 {
|
|
1874
|
-
--tw-gradient-from: var(--color-neutral-100);
|
|
1875
|
-
--tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
|
|
1876
|
-
}
|
|
1877
1870
|
.from-neutral-300\/\[12\%\] {
|
|
1878
1871
|
--tw-gradient-from: color-mix(in srgb, #c1c1c1 12%, transparent);
|
|
1879
1872
|
@supports (color: color-mix(in lab, red, red)) {
|
|
@@ -1885,10 +1878,6 @@
|
|
|
1885
1878
|
--tw-gradient-from: var(--color-white);
|
|
1886
1879
|
--tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
|
|
1887
1880
|
}
|
|
1888
|
-
.to-\[\#f7f7f7\] {
|
|
1889
|
-
--tw-gradient-to: #f7f7f7;
|
|
1890
|
-
--tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
|
|
1891
|
-
}
|
|
1892
1881
|
.to-neutral-300\/\[24\%\] {
|
|
1893
1882
|
--tw-gradient-to: color-mix(in srgb, #c1c1c1 24%, transparent);
|
|
1894
1883
|
@supports (color: color-mix(in lab, red, red)) {
|
|
@@ -4674,6 +4663,29 @@
|
|
|
4674
4663
|
--color-background-action-critical-secondary-disabled: var( --color-neutral-200 );
|
|
4675
4664
|
--color-background-brand-normal: var( --color-brand-400 );
|
|
4676
4665
|
}
|
|
4666
|
+
.skeleton-paragraph {
|
|
4667
|
+
position: relative;
|
|
4668
|
+
overflow: hidden;
|
|
4669
|
+
background-color: #f7f7f7;
|
|
4670
|
+
}
|
|
4671
|
+
.skeleton-paragraph::after {
|
|
4672
|
+
content: "";
|
|
4673
|
+
position: absolute;
|
|
4674
|
+
inset: 0;
|
|
4675
|
+
transform: translateX(-100%);
|
|
4676
|
+
background-image:
|
|
4677
|
+
linear-gradient(
|
|
4678
|
+
90deg,
|
|
4679
|
+
rgba(255, 255, 255, 0) 0%,
|
|
4680
|
+
rgba(255, 255, 255, 0.6) 50%,
|
|
4681
|
+
rgba(255, 255, 255, 0) 100%);
|
|
4682
|
+
animation: skeleton-shimmer 1.4s ease-in-out infinite;
|
|
4683
|
+
}
|
|
4684
|
+
@keyframes skeleton-shimmer {
|
|
4685
|
+
100% {
|
|
4686
|
+
transform: translateX(100%);
|
|
4687
|
+
}
|
|
4688
|
+
}
|
|
4677
4689
|
@media (prefers-color-scheme: dark) {
|
|
4678
4690
|
:root {
|
|
4679
4691
|
--color-text-primary-normal: var(--color-neutral-000);
|
|
@@ -5,10 +5,10 @@ import "../../../chunk-7AXHAWJX.js";
|
|
|
5
5
|
import "../../../chunk-P3MIP2FD.js";
|
|
6
6
|
import "../../../chunk-M7INAUAJ.js";
|
|
7
7
|
import "../../../chunk-3HBYDOYE.js";
|
|
8
|
-
import "../../../chunk-
|
|
8
|
+
import "../../../chunk-DNYGKNQM.js";
|
|
9
9
|
import "../../../chunk-MBZ55T2D.js";
|
|
10
10
|
import "../../../chunk-2IKT6IHB.js";
|
|
11
|
-
import "../../../chunk-
|
|
11
|
+
import "../../../chunk-YCDDBSVU.js";
|
|
12
12
|
import "../../../chunk-3X3Y4TMS.js";
|
|
13
13
|
import "../../../chunk-BQNPOGD5.js";
|
|
14
14
|
import "../../../chunk-LUPHOXAQ.js";
|
|
@@ -23,7 +23,7 @@ import "../../../chunk-VJVY6NPF.js";
|
|
|
23
23
|
import "../../../chunk-EWGHVZL5.js";
|
|
24
24
|
import "../../../chunk-DCLNAUC4.js";
|
|
25
25
|
import "../../../chunk-PQWWVBSR.js";
|
|
26
|
-
import "../../../chunk-
|
|
26
|
+
import "../../../chunk-ETAEB3TA.js";
|
|
27
27
|
import "../../../chunk-AT4AWD6B.js";
|
|
28
28
|
import "../../../chunk-J5V2JRIK.js";
|
|
29
29
|
import "../../../chunk-TYAQWVIM.js";
|