@dmsi/wedgekit-react 0.0.387 → 0.0.389

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) hide show
  1. package/dist/{chunk-PH76F7QS.js → chunk-2HMCS25C.js} +1 -1
  2. package/dist/{chunk-HPQWEZJL.js → chunk-3X3Y4TMS.js} +7 -2
  3. package/dist/{chunk-3XOYPT5O.js → chunk-44TDIHUP.js} +1 -1
  4. package/dist/{chunk-F4CV7SBS.js → chunk-6I5LZ2ZC.js} +2 -2
  5. package/dist/{chunk-2FADUKPP.js → chunk-AA6GE3TH.js} +1 -1
  6. package/dist/{chunk-DCCTNHNL.js → chunk-ERW5DEIO.js} +1 -1
  7. package/dist/{chunk-4LXG6QNT.js → chunk-EZCH4PQS.js} +2 -1
  8. package/dist/{chunk-CQFPNZTN.js → chunk-G5DEC7H3.js} +15 -5
  9. package/dist/{chunk-MX57T3HP.js → chunk-GB4ZTUQV.js} +8 -4
  10. package/dist/{chunk-TPXHOAY3.js → chunk-JIMJIJOF.js} +2 -2
  11. package/dist/{chunk-R4SFLYOZ.js → chunk-KZZKQLKF.js} +1 -1
  12. package/dist/{chunk-KKESN5SF.js → chunk-LCJZRP5S.js} +11 -2
  13. package/dist/{chunk-GNHKKYCY.js → chunk-LLZ3SSZJ.js} +2 -2
  14. package/dist/{chunk-A7CEYUVE.js → chunk-LZGYABCX.js} +3 -3
  15. package/dist/{chunk-FSLETAX4.js → chunk-MQX7GFLX.js} +11 -4
  16. package/dist/{chunk-2T2GISEG.js → chunk-OW3WN3JV.js} +3 -3
  17. package/dist/components/Accordion.cjs +10 -5
  18. package/dist/components/Accordion.js +3 -3
  19. package/dist/components/CalendarRange.cjs +24 -21
  20. package/dist/components/CalendarRange.css +18 -0
  21. package/dist/components/CalendarRange.js +15 -15
  22. package/dist/components/Card.cjs +2 -1
  23. package/dist/components/Card.js +1 -1
  24. package/dist/components/CompactImagesPreview.cjs +18 -7
  25. package/dist/components/CompactImagesPreview.js +2 -2
  26. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.cjs +14 -11
  27. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.css +18 -0
  28. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +15 -15
  29. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +17 -14
  30. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.css +18 -0
  31. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +15 -15
  32. package/dist/components/DataGrid/PinnedColumns.cjs +19 -16
  33. package/dist/components/DataGrid/PinnedColumns.css +18 -0
  34. package/dist/components/DataGrid/PinnedColumns.js +15 -15
  35. package/dist/components/DataGrid/TableBody/LoadingCell.cjs +12 -9
  36. package/dist/components/DataGrid/TableBody/LoadingCell.css +18 -0
  37. package/dist/components/DataGrid/TableBody/LoadingCell.js +15 -15
  38. package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +14 -11
  39. package/dist/components/DataGrid/TableBody/TableBodyRow.css +18 -0
  40. package/dist/components/DataGrid/TableBody/TableBodyRow.js +15 -15
  41. package/dist/components/DataGrid/TableBody/index.cjs +14 -11
  42. package/dist/components/DataGrid/TableBody/index.css +18 -0
  43. package/dist/components/DataGrid/TableBody/index.js +15 -15
  44. package/dist/components/DataGrid/index.cjs +36 -33
  45. package/dist/components/DataGrid/index.css +18 -0
  46. package/dist/components/DataGrid/index.js +15 -15
  47. package/dist/components/DataGrid/utils.cjs +12 -9
  48. package/dist/components/DataGrid/utils.css +18 -0
  49. package/dist/components/DataGrid/utils.js +15 -15
  50. package/dist/components/DateInput.cjs +37 -34
  51. package/dist/components/DateInput.css +18 -0
  52. package/dist/components/DateInput.js +15 -15
  53. package/dist/components/DateRangeInput.cjs +37 -34
  54. package/dist/components/DateRangeInput.css +18 -0
  55. package/dist/components/DateRangeInput.js +15 -15
  56. package/dist/components/FilterGroup.cjs +11 -2
  57. package/dist/components/FilterGroup.js +1 -1
  58. package/dist/components/MobileDataGrid/ColumnList.cjs +8 -4
  59. package/dist/components/MobileDataGrid/ColumnList.js +3 -3
  60. package/dist/components/MobileDataGrid/ColumnSelector/index.cjs +16 -13
  61. package/dist/components/MobileDataGrid/ColumnSelector/index.css +18 -0
  62. package/dist/components/MobileDataGrid/ColumnSelector/index.js +15 -15
  63. package/dist/components/MobileDataGrid/MobileDataGridCard/index.cjs +8 -4
  64. package/dist/components/MobileDataGrid/MobileDataGridCard/index.js +2 -2
  65. package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +24 -17
  66. package/dist/components/MobileDataGrid/MobileDataGridHeader.css +18 -0
  67. package/dist/components/MobileDataGrid/MobileDataGridHeader.js +15 -15
  68. package/dist/components/MobileDataGrid/RowDetailModalProvider/ModalContent.cjs +8 -4
  69. package/dist/components/MobileDataGrid/RowDetailModalProvider/ModalContent.js +2 -2
  70. package/dist/components/MobileDataGrid/RowDetailModalProvider/index.cjs +8 -4
  71. package/dist/components/MobileDataGrid/RowDetailModalProvider/index.js +3 -3
  72. package/dist/components/MobileDataGrid/index.cjs +50 -43
  73. package/dist/components/MobileDataGrid/index.css +18 -0
  74. package/dist/components/MobileDataGrid/index.js +15 -15
  75. package/dist/components/Notification.cjs +8 -4
  76. package/dist/components/Notification.js +1 -1
  77. package/dist/components/OptionPill.cjs +11 -2
  78. package/dist/components/OptionPill.js +1 -1
  79. package/dist/components/PDFViewer/PDFElement.cjs +8 -4
  80. package/dist/components/PDFViewer/PDFElement.js +2 -2
  81. package/dist/components/PDFViewer/PDFNavigation.cjs +8 -4
  82. package/dist/components/PDFViewer/PDFNavigation.js +2 -2
  83. package/dist/components/PDFViewer/index.cjs +8 -4
  84. package/dist/components/PDFViewer/index.js +4 -4
  85. package/dist/components/ProductImagePreview/ProductPrimaryImage.cjs +15 -5
  86. package/dist/components/ProductImagePreview/ProductPrimaryImage.js +1 -1
  87. package/dist/components/ProductImagePreview/Thumbnail.cjs +7 -2
  88. package/dist/components/ProductImagePreview/Thumbnail.js +1 -1
  89. package/dist/components/ProductImagePreview/index.cjs +84 -63
  90. package/dist/components/ProductImagePreview/index.js +4 -4
  91. package/dist/components/SideMenuGroup.cjs +8 -4
  92. package/dist/components/SideMenuGroup.js +1 -1
  93. package/dist/components/SideMenuItem.cjs +8 -4
  94. package/dist/components/SideMenuItem.js +1 -1
  95. package/dist/components/Stack.cjs +8 -4
  96. package/dist/components/Stack.js +1 -1
  97. package/dist/components/Swatch.cjs +8 -4
  98. package/dist/components/Swatch.js +1 -1
  99. package/dist/components/Time.cjs +8 -4
  100. package/dist/components/Time.js +1 -1
  101. package/dist/components/Upload.cjs +8 -4
  102. package/dist/components/Upload.js +1 -1
  103. package/dist/components/index.cjs +100 -71
  104. package/dist/components/index.css +18 -0
  105. package/dist/components/index.js +15 -15
  106. package/dist/index.css +18 -0
  107. package/package.json +1 -1
  108. package/src/components/Card.tsx +15 -4
  109. package/src/components/CompactImagesPreview.tsx +10 -3
  110. package/src/components/OptionPill.tsx +13 -1
  111. package/src/components/ProductImagePreview/ProductPrimaryImage.tsx +16 -5
  112. package/src/components/ProductImagePreview/Thumbnail.tsx +7 -1
  113. package/src/components/Stack.tsx +4 -0
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-EU73QPW7.js";
4
4
  import {
5
5
  Stack
6
- } from "./chunk-MX57T3HP.js";
6
+ } from "./chunk-GB4ZTUQV.js";
7
7
  import {
8
8
  Paragraph
9
9
  } from "./chunk-OGIFIPKH.js";
@@ -3,6 +3,7 @@ import {
3
3
  } from "./chunk-QVWYTQKL.js";
4
4
 
5
5
  // src/components/ProductImagePreview/Thumbnail.tsx
6
+ import { useState } from "react";
6
7
  import { jsx } from "react/jsx-runtime";
7
8
  function Thumbnail({
8
9
  width,
@@ -13,6 +14,7 @@ function Thumbnail({
13
14
  onClick,
14
15
  isPlaceholder = false
15
16
  }) {
17
+ const [imageError, setImageError] = useState(false);
16
18
  return /* @__PURE__ */ jsx(
17
19
  "button",
18
20
  {
@@ -29,11 +31,14 @@ function Thumbnail({
29
31
  children: isPlaceholder ? /* @__PURE__ */ jsx(ImagePlaceholder, { width: 115, height: 115 }) : /* @__PURE__ */ jsx(
30
32
  "img",
31
33
  {
32
- src,
34
+ src: imageError ? "/placeholder.svg" : src,
33
35
  alt,
34
36
  className: "object-cover w-full h-full select-none",
35
37
  draggable: false,
36
- loading: "lazy"
38
+ loading: "lazy",
39
+ onError: () => {
40
+ setImageError(true);
41
+ }
37
42
  }
38
43
  )
39
44
  }
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-M6TSTDNZ.js";
7
7
  import {
8
8
  Stack
9
- } from "./chunk-MX57T3HP.js";
9
+ } from "./chunk-GB4ZTUQV.js";
10
10
  import {
11
11
  Paragraph
12
12
  } from "./chunk-OGIFIPKH.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ModalContent
3
- } from "./chunk-3XOYPT5O.js";
3
+ } from "./chunk-44TDIHUP.js";
4
4
  import {
5
5
  useGridContext
6
6
  } from "./chunk-5IFPG6TS.js";
@@ -12,7 +12,7 @@ import {
12
12
  } from "./chunk-EU73QPW7.js";
13
13
  import {
14
14
  Stack
15
- } from "./chunk-MX57T3HP.js";
15
+ } from "./chunk-GB4ZTUQV.js";
16
16
  import {
17
17
  Icon
18
18
  } from "./chunk-NKUETCDA.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  MobileDataGridCard
3
- } from "./chunk-R4SFLYOZ.js";
3
+ } from "./chunk-KZZKQLKF.js";
4
4
  import {
5
5
  useGridContext
6
6
  } from "./chunk-5IFPG6TS.js";
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-SBRRNFOP.js";
7
7
  import {
8
8
  Stack
9
- } from "./chunk-MX57T3HP.js";
9
+ } from "./chunk-GB4ZTUQV.js";
10
10
 
11
11
  // src/components/PDFViewer/PDFElement.tsx
12
12
  import { usePdf } from "@mikecousins/react-pdf";
@@ -9,8 +9,9 @@ import clsx from "clsx";
9
9
  import { jsx } from "react/jsx-runtime";
10
10
  function Card(props) {
11
11
  const _a = props, { children, selected, testid } = _a, rest = __objRest(_a, ["children", "selected", "testid"]);
12
+ const CardComponent = props.as || "div";
12
13
  return /* @__PURE__ */ jsx(
13
- "div",
14
+ CardComponent,
14
15
  __spreadProps(__spreadValues({}, rest), {
15
16
  "data-testid": testid,
16
17
  className: clsx(
@@ -60,7 +60,7 @@ function ProductPrimaryImage({
60
60
  }, [zoomEnabled, onZoomPositionChange]);
61
61
  const handlePointerMove = useCallback(
62
62
  (e) => {
63
- if (!zoomEnabled || !active) return;
63
+ if (!zoomEnabled || !active || imageError) return;
64
64
  if (e.pointerType === "touch") return;
65
65
  const el = containerRef.current;
66
66
  if (!el) return;
@@ -92,7 +92,7 @@ function ProductPrimaryImage({
92
92
  true
93
93
  );
94
94
  },
95
- [zoomEnabled, active, onZoomPositionChange, zoomLensSize]
95
+ [zoomEnabled, active, imageError, zoomLensSize, onZoomPositionChange]
96
96
  );
97
97
  useEffect(() => {
98
98
  const container = containerRef.current;
@@ -109,6 +109,10 @@ function ProductPrimaryImage({
109
109
  container.removeEventListener("wheel", handleNativeWheel);
110
110
  };
111
111
  }, [scrollToZoomEnabled, zoomEnabled, active, onScrollZoom]);
112
+ useEffect(() => {
113
+ setImageLoading(true);
114
+ setImageError(false);
115
+ }, [image]);
112
116
  if (!image && !isPlaceholder) return null;
113
117
  const pt = lastPointRef.current;
114
118
  let lensStyle;
@@ -132,7 +136,13 @@ function ProductPrimaryImage({
132
136
  zoomEnabled ? "cursor-crosshair" : "",
133
137
  className
134
138
  ].join(" "),
135
- style: { maxWidth: width, maxHeight: height, aspectRatio: "1 / 1" },
139
+ style: {
140
+ maxWidth: width,
141
+ maxHeight: height,
142
+ minWidth: width,
143
+ minHeight: height,
144
+ aspectRatio: "1 / 1"
145
+ },
136
146
  onPointerEnter: handlePointerEnter,
137
147
  onPointerLeave: handlePointerLeave,
138
148
  onPointerMove: handlePointerMove,
@@ -141,9 +151,9 @@ function ProductPrimaryImage({
141
151
  isPlaceholder ? /* @__PURE__ */ jsx(ImagePlaceholder, { width, height }) : /* @__PURE__ */ jsx(
142
152
  "img",
143
153
  {
144
- src: imageSrc,
154
+ src: imageError ? "/placeholder.svg" : imageSrc,
145
155
  alt: (image == null ? void 0 : image.alt) || "Product image",
146
- className: "object-cover w-full h-full select-none",
156
+ className: "object-cover min-w-full min-h-full select-none",
147
157
  draggable: false,
148
158
  loading: "lazy",
149
159
  onLoad: () => setImageLoading(false),
@@ -72,7 +72,8 @@ var Stack = (_a) => {
72
72
  marginBottom,
73
73
  testid,
74
74
  bottom,
75
- zIndex
75
+ zIndex,
76
+ flexWrap
76
77
  } = _b, props = __objRest(_b, [
77
78
  "children",
78
79
  "items",
@@ -111,9 +112,10 @@ var Stack = (_a) => {
111
112
  "marginBottom",
112
113
  "testid",
113
114
  "bottom",
114
- "zIndex"
115
+ "zIndex",
116
+ "flexWrap"
115
117
  ]);
116
- var _a2, _b2, _c, _d, _e, _f;
118
+ var _a2, _b2, _c, _d, _e, _f, _g;
117
119
  const flexClassNames = getFlexClassNames({ items, justify, grow });
118
120
  const gapClassNames = useGapClassNames(sizing);
119
121
  return /* @__PURE__ */ jsx(
@@ -140,7 +142,9 @@ var Stack = (_a) => {
140
142
  borderBlock: (_d = props.style) == null ? void 0 : _d.borderBlock,
141
143
  marginInline: (_e = props.style) == null ? void 0 : _e.marginInline,
142
144
  zIndex: zIndex !== void 0 ? zIndex : void 0,
143
- gap: (_f = props.style) == null ? void 0 : _f.gap
145
+ flexWrap,
146
+ paddingInline: (_f = props.style) == null ? void 0 : _f.paddingInline,
147
+ gap: (_g = props.style) == null ? void 0 : _g.gap
144
148
  },
145
149
  className: clsx(
146
150
  "scrollbar-thin",
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  Card
3
- } from "./chunk-4LXG6QNT.js";
3
+ } from "./chunk-EZCH4PQS.js";
4
4
  import {
5
5
  Stack
6
- } from "./chunk-MX57T3HP.js";
6
+ } from "./chunk-GB4ZTUQV.js";
7
7
  import {
8
8
  Paragraph
9
9
  } from "./chunk-OGIFIPKH.js";
@@ -12,7 +12,7 @@ import {
12
12
  } from "./chunk-FA7IFW66.js";
13
13
  import {
14
14
  Stack
15
- } from "./chunk-MX57T3HP.js";
15
+ } from "./chunk-GB4ZTUQV.js";
16
16
  import {
17
17
  Paragraph
18
18
  } from "./chunk-OGIFIPKH.js";
@@ -31,6 +31,7 @@ var OptionPill = (_a) => {
31
31
  onClick,
32
32
  onRemove,
33
33
  removable = false,
34
+ active = false,
34
35
  disabled = false,
35
36
  children,
36
37
  className
@@ -41,19 +42,27 @@ var OptionPill = (_a) => {
41
42
  "onClick",
42
43
  "onRemove",
43
44
  "removable",
45
+ "active",
44
46
  "disabled",
45
47
  "children",
46
48
  "className"
47
49
  ]);
48
50
  const additionalAttributes = {
49
51
  "data-disabled": disabled || null,
50
- "data-selected": selected || null
52
+ "data-selected": selected || null,
53
+ "data-active": active || null
51
54
  };
52
55
  const classNames = clsx(
53
56
  {
57
+ // Base interactive (only when not disabled)
54
58
  "hover:border-border-action-hover active:border-border-action-active": !disabled,
59
+ // Disabled base
55
60
  "data-disabled:cursor-default data-disabled:border-border-primary-normal": disabled,
61
+ // Active (Figma: filled blue background, white text)
62
+ "data-active:bg-background-action-primary-normal data-active:text-white data-active:border-transparent": active && !selected,
63
+ // Selected (filled style) overrides background & border, but keeps outline interaction chain.
56
64
  "data-selected:border-transparent data-selected:bg-background-action-secondary-hover data-selected:outline-border-action-normal data-selected:hover:outline-border-action-hover data-selected:active:outline-border-action-active": selected,
65
+ // Disabled + Selected combination
57
66
  "data-selected:data-disabled:bg-background-action-secondary-disabled data-selected:data-disabled:border-border-action-disabled data-selected:data-disabled:outline-transparent": disabled && selected
58
67
  },
59
68
  !removable && componentPadding,
@@ -105,7 +114,7 @@ var OptionPill = (_a) => {
105
114
  ),
106
115
  iconOnly: true,
107
116
  variant: "tertiary",
108
- leftIcon: /* @__PURE__ */ jsx(Icon, { name: "close" })
117
+ leftIcon: /* @__PURE__ */ jsx(Icon, { name: "close", size: 16 })
109
118
  }
110
119
  )
111
120
  ]
@@ -3,10 +3,10 @@ import {
3
3
  } from "./chunk-EJSPFQCY.js";
4
4
  import {
5
5
  PDFElement
6
- } from "./chunk-DCCTNHNL.js";
6
+ } from "./chunk-ERW5DEIO.js";
7
7
  import {
8
8
  PdfNavigation
9
- } from "./chunk-PH76F7QS.js";
9
+ } from "./chunk-2HMCS25C.js";
10
10
  import {
11
11
  Modal
12
12
  } from "./chunk-D6YCMQPO.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  ProductPrimaryImage
3
- } from "./chunk-CQFPNZTN.js";
3
+ } from "./chunk-G5DEC7H3.js";
4
4
  import {
5
5
  Thumbnail
6
- } from "./chunk-HPQWEZJL.js";
6
+ } from "./chunk-3X3Y4TMS.js";
7
7
  import {
8
8
  ZoomWindow
9
9
  } from "./chunk-BQNPOGD5.js";
@@ -21,7 +21,7 @@ import {
21
21
  } from "./chunk-MYKYZHEO.js";
22
22
  import {
23
23
  Stack
24
- } from "./chunk-MX57T3HP.js";
24
+ } from "./chunk-GB4ZTUQV.js";
25
25
 
26
26
  // src/components/ProductImagePreview/useProductImagePreview.ts
27
27
  import { useCallback, useEffect, useRef, useState, useMemo } from "react";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-MYKYZHEO.js";
4
4
  import {
5
5
  Stack
6
- } from "./chunk-MX57T3HP.js";
6
+ } from "./chunk-GB4ZTUQV.js";
7
7
 
8
8
  // src/components/CompactImagesPreview.tsx
9
9
  import { useCallback } from "react";
@@ -36,7 +36,12 @@ function CompactImagesPreview(props) {
36
36
  "img",
37
37
  {
38
38
  className: "object-center",
39
- style: { width: activeImageWidth, height: activeImageHeight },
39
+ style: {
40
+ width: activeImageWidth,
41
+ height: activeImageHeight,
42
+ objectPosition: "center",
43
+ objectFit: "cover"
44
+ },
40
45
  src: placeholderImageUri,
41
46
  alt: "placeholder image"
42
47
  }
@@ -49,7 +54,8 @@ function CompactImagesPreview(props) {
49
54
  style: {
50
55
  width: isMobile ? "100%" : activeImageWidth,
51
56
  height: activeImageHeight,
52
- objectPosition: "center"
57
+ objectPosition: "center",
58
+ objectFit: "cover"
53
59
  },
54
60
  src: currentSource.uri,
55
61
  alt: currentSource.name
@@ -74,7 +80,8 @@ function CompactImagesPreview(props) {
74
80
  style: {
75
81
  width: thumbnailWidth,
76
82
  height: thumbnailHeight,
77
- objectPosition: "center"
83
+ objectPosition: "center",
84
+ objectFit: "cover"
78
85
  }
79
86
  }
80
87
  )
@@ -3,10 +3,10 @@ import {
3
3
  } from "./chunk-M7INAUAJ.js";
4
4
  import {
5
5
  RowDetailModalProvider
6
- } from "./chunk-F4CV7SBS.js";
6
+ } from "./chunk-6I5LZ2ZC.js";
7
7
  import {
8
8
  ColumnList
9
- } from "./chunk-2FADUKPP.js";
9
+ } from "./chunk-AA6GE3TH.js";
10
10
  import {
11
11
  useGridContext
12
12
  } from "./chunk-5IFPG6TS.js";
@@ -61,7 +61,7 @@ import {
61
61
  } from "./chunk-FA7IFW66.js";
62
62
  import {
63
63
  Stack
64
- } from "./chunk-MX57T3HP.js";
64
+ } from "./chunk-GB4ZTUQV.js";
65
65
  import {
66
66
  Paragraph
67
67
  } from "./chunk-OGIFIPKH.js";
@@ -201,8 +201,9 @@ var import_clsx2 = __toESM(require("clsx"), 1);
201
201
  var import_jsx_runtime = require("react/jsx-runtime");
202
202
  function Card(props) {
203
203
  const _a = props, { children, selected, testid } = _a, rest = __objRest(_a, ["children", "selected", "testid"]);
204
+ const CardComponent = props.as || "div";
204
205
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
205
- "div",
206
+ CardComponent,
206
207
  __spreadProps(__spreadValues({}, rest), {
207
208
  "data-testid": testid,
208
209
  className: (0, import_clsx2.default)(
@@ -315,7 +316,8 @@ var Stack = (_a) => {
315
316
  marginBottom,
316
317
  testid,
317
318
  bottom,
318
- zIndex
319
+ zIndex,
320
+ flexWrap
319
321
  } = _b, props = __objRest(_b, [
320
322
  "children",
321
323
  "items",
@@ -354,9 +356,10 @@ var Stack = (_a) => {
354
356
  "marginBottom",
355
357
  "testid",
356
358
  "bottom",
357
- "zIndex"
359
+ "zIndex",
360
+ "flexWrap"
358
361
  ]);
359
- var _a2, _b2, _c, _d, _e, _f;
362
+ var _a2, _b2, _c, _d, _e, _f, _g;
360
363
  const flexClassNames = getFlexClassNames({ items, justify, grow });
361
364
  const gapClassNames = useGapClassNames(sizing);
362
365
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
@@ -383,7 +386,9 @@ var Stack = (_a) => {
383
386
  borderBlock: (_d = props.style) == null ? void 0 : _d.borderBlock,
384
387
  marginInline: (_e = props.style) == null ? void 0 : _e.marginInline,
385
388
  zIndex: zIndex !== void 0 ? zIndex : void 0,
386
- gap: (_f = props.style) == null ? void 0 : _f.gap
389
+ flexWrap,
390
+ paddingInline: (_f = props.style) == null ? void 0 : _f.paddingInline,
391
+ gap: (_g = props.style) == null ? void 0 : _g.gap
387
392
  },
388
393
  className: (0, import_clsx4.default)(
389
394
  "scrollbar-thin",
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  Accordion
4
- } from "../chunk-TPXHOAY3.js";
5
- import "../chunk-4LXG6QNT.js";
6
- import "../chunk-MX57T3HP.js";
4
+ } from "../chunk-JIMJIJOF.js";
5
+ import "../chunk-EZCH4PQS.js";
6
+ import "../chunk-GB4ZTUQV.js";
7
7
  import "../chunk-OGIFIPKH.js";
8
8
  import "../chunk-NKUETCDA.js";
9
9
  import "../chunk-6CTCHYIS.js";
@@ -233,7 +233,7 @@ function Icon(_a) {
233
233
  }
234
234
 
235
235
  // src/components/CalendarRange.tsx
236
- var import_react35 = __toESM(require("react"), 1);
236
+ var import_react36 = __toESM(require("react"), 1);
237
237
  var import_polyfill = require("@js-temporal/polyfill");
238
238
 
239
239
  // src/components/DataGridCell.tsx
@@ -4558,6 +4558,9 @@ var import_jsx_runtime39 = require("react/jsx-runtime");
4558
4558
  // src/components/MobileDataGrid/index.tsx
4559
4559
  var import_jsx_runtime40 = require("react/jsx-runtime");
4560
4560
 
4561
+ // src/components/ProductImagePreview/Thumbnail.tsx
4562
+ var import_react26 = require("react");
4563
+
4561
4564
  // src/components/ImagePlaceholder.tsx
4562
4565
  var import_react25 = require("react");
4563
4566
  var import_jsx_runtime41 = require("react/jsx-runtime");
@@ -4566,12 +4569,12 @@ var import_jsx_runtime41 = require("react/jsx-runtime");
4566
4569
  var import_jsx_runtime42 = require("react/jsx-runtime");
4567
4570
 
4568
4571
  // src/components/Grid.tsx
4569
- var import_react26 = require("react");
4572
+ var import_react27 = require("react");
4570
4573
  var import_clsx30 = __toESM(require("clsx"), 1);
4571
4574
  var import_jsx_runtime43 = require("react/jsx-runtime");
4572
4575
 
4573
4576
  // src/components/ProductImagePreview/ProductPrimaryImage.tsx
4574
- var import_react27 = require("react");
4577
+ var import_react28 = require("react");
4575
4578
 
4576
4579
  // src/components/Spinner.tsx
4577
4580
  var import_jsx_runtime44 = require("react/jsx-runtime");
@@ -4607,7 +4610,7 @@ Spinner.displayName = "Spinner";
4607
4610
  var import_jsx_runtime45 = require("react/jsx-runtime");
4608
4611
 
4609
4612
  // src/components/ProductImagePreview/ZoomWindow.tsx
4610
- var import_react28 = require("react");
4613
+ var import_react29 = require("react");
4611
4614
 
4612
4615
  // src/components/Surface.tsx
4613
4616
  var import_clsx31 = __toESM(require("clsx"), 1);
@@ -4652,30 +4655,30 @@ var import_clsx32 = require("clsx");
4652
4655
  var import_jsx_runtime48 = require("react/jsx-runtime");
4653
4656
 
4654
4657
  // src/components/ProductImagePreview/MobileImageCarousel.tsx
4655
- var import_react29 = require("react");
4658
+ var import_react30 = require("react");
4656
4659
  var import_jsx_runtime49 = require("react/jsx-runtime");
4657
4660
 
4658
4661
  // src/components/ProductImagePreview/useProductImagePreview.ts
4659
- var import_react30 = require("react");
4662
+ var import_react31 = require("react");
4660
4663
 
4661
4664
  // src/components/ProductImagePreview/index.tsx
4662
4665
  var import_jsx_runtime50 = require("react/jsx-runtime");
4663
4666
 
4664
4667
  // src/components/CompactImagesPreview.tsx
4665
- var import_react31 = require("react");
4668
+ var import_react32 = require("react");
4666
4669
  var import_clsx33 = __toESM(require("clsx"), 1);
4667
4670
  var import_jsx_runtime51 = require("react/jsx-runtime");
4668
4671
 
4669
4672
  // src/components/PDFViewer/index.tsx
4670
- var import_react34 = require("react");
4673
+ var import_react35 = require("react");
4671
4674
 
4672
4675
  // src/components/PDFViewer/PDFElement.tsx
4673
4676
  var import_react_pdf2 = require("@mikecousins/react-pdf");
4674
- var import_react33 = require("react");
4677
+ var import_react34 = require("react");
4675
4678
 
4676
4679
  // src/components/PDFViewer/PDFPage.tsx
4677
4680
  var import_react_pdf = require("@mikecousins/react-pdf");
4678
- var import_react32 = require("react");
4681
+ var import_react33 = require("react");
4679
4682
  var import_jsx_runtime52 = require("react/jsx-runtime");
4680
4683
 
4681
4684
  // src/components/PDFViewer/PDFElement.tsx
@@ -4805,20 +4808,20 @@ function CalendarRange({
4805
4808
  const fromDate = parseDate(from);
4806
4809
  const toDate = parseDate(to);
4807
4810
  const today = import_polyfill.Temporal.Now.plainDateISO();
4808
- const [baseMonth, setBaseMonth] = (0, import_react35.useState)(
4811
+ const [baseMonth, setBaseMonth] = (0, import_react36.useState)(
4809
4812
  fromDate != null ? fromDate : today.with({ day: 1 })
4810
4813
  );
4811
- const [selecting, setSelecting] = (0, import_react35.useState)("from");
4812
- const [pendingFrom, setPendingFrom] = (0, import_react35.useState)(void 0);
4813
- const [hoveredDate, setHoveredDate] = (0, import_react35.useState)(void 0);
4814
- (0, import_react35.useEffect)(() => {
4814
+ const [selecting, setSelecting] = (0, import_react36.useState)("from");
4815
+ const [pendingFrom, setPendingFrom] = (0, import_react36.useState)(void 0);
4816
+ const [hoveredDate, setHoveredDate] = (0, import_react36.useState)(void 0);
4817
+ (0, import_react36.useEffect)(() => {
4815
4818
  if (fromDate) {
4816
4819
  setBaseMonth(fromDate.with({ day: 1 }));
4817
4820
  } else if (toDate) {
4818
4821
  setBaseMonth(toDate.with({ day: 1 }));
4819
4822
  }
4820
4823
  }, [from, to]);
4821
- (0, import_react35.useEffect)(() => {
4824
+ (0, import_react36.useEffect)(() => {
4822
4825
  if (fromDate && toDate) {
4823
4826
  setSelecting("from");
4824
4827
  setPendingFrom(void 0);
@@ -4963,14 +4966,14 @@ function CalendarPane({
4963
4966
  const years = Array.from({ length: 100 }).map(
4964
4967
  (_, i) => baseMonth.year - 50 + i
4965
4968
  );
4966
- const [monthMenuOpen, setMonthMenuOpen] = (0, import_react35.useState)(false);
4967
- const [yearMenuOpen, setYearMenuOpen] = (0, import_react35.useState)(false);
4968
- const monthMenuRef = (0, import_react35.useRef)(null);
4969
- const yearMenuRef = (0, import_react35.useRef)(null);
4969
+ const [monthMenuOpen, setMonthMenuOpen] = (0, import_react36.useState)(false);
4970
+ const [yearMenuOpen, setYearMenuOpen] = (0, import_react36.useState)(false);
4971
+ const monthMenuRef = (0, import_react36.useRef)(null);
4972
+ const yearMenuRef = (0, import_react36.useRef)(null);
4970
4973
  const month = getMonthData(offset);
4971
4974
  const totalCells = 42;
4972
4975
  const emptyCells = month.firstDayOffset;
4973
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_react35.default.Fragment, { children: [
4976
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_react36.default.Fragment, { children: [
4974
4977
  /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
4975
4978
  "div",
4976
4979
  {
@@ -823,6 +823,9 @@
823
823
  .min-h-\[120px\] {
824
824
  min-height: 120px;
825
825
  }
826
+ .min-h-full {
827
+ min-height: 100%;
828
+ }
826
829
  .min-h-min {
827
830
  min-height: min-content;
828
831
  }
@@ -3594,6 +3597,21 @@
3594
3597
  outline-style: none;
3595
3598
  }
3596
3599
  }
3600
+ .data-active\:border-transparent {
3601
+ &[data-active] {
3602
+ border-color: transparent;
3603
+ }
3604
+ }
3605
+ .data-active\:bg-background-action-primary-normal {
3606
+ &[data-active] {
3607
+ background-color: var(--color-background-action-primary-normal);
3608
+ }
3609
+ }
3610
+ .data-active\:text-white {
3611
+ &[data-active] {
3612
+ color: var(--color-white);
3613
+ }
3614
+ }
3597
3615
  .data-disabled\:cursor-default {
3598
3616
  &[data-disabled] {
3599
3617
  cursor: default;
@@ -3,23 +3,23 @@ import {
3
3
  CalendarRange_default,
4
4
  isWeekend
5
5
  } from "../chunk-UOHCOOC2.js";
6
- import "../chunk-2T2GISEG.js";
6
+ import "../chunk-OW3WN3JV.js";
7
7
  import "../chunk-M7INAUAJ.js";
8
- import "../chunk-F4CV7SBS.js";
9
- import "../chunk-3XOYPT5O.js";
10
- import "../chunk-A7CEYUVE.js";
11
- import "../chunk-CQFPNZTN.js";
12
- import "../chunk-HPQWEZJL.js";
8
+ import "../chunk-6I5LZ2ZC.js";
9
+ import "../chunk-44TDIHUP.js";
10
+ import "../chunk-LZGYABCX.js";
11
+ import "../chunk-G5DEC7H3.js";
12
+ import "../chunk-3X3Y4TMS.js";
13
13
  import "../chunk-BQNPOGD5.js";
14
- import "../chunk-GNHKKYCY.js";
14
+ import "../chunk-LLZ3SSZJ.js";
15
15
  import "../chunk-EJSPFQCY.js";
16
- import "../chunk-DCCTNHNL.js";
17
- import "../chunk-PH76F7QS.js";
16
+ import "../chunk-ERW5DEIO.js";
17
+ import "../chunk-2HMCS25C.js";
18
18
  import "../chunk-VJVY6NPF.js";
19
19
  import "../chunk-MBZ55T2D.js";
20
20
  import "../chunk-2IKT6IHB.js";
21
- import "../chunk-2FADUKPP.js";
22
- import "../chunk-R4SFLYOZ.js";
21
+ import "../chunk-AA6GE3TH.js";
22
+ import "../chunk-KZZKQLKF.js";
23
23
  import "../chunk-5IFPG6TS.js";
24
24
  import "../chunk-AJ5M6MVX.js";
25
25
  import "../chunk-M6TSTDNZ.js";
@@ -38,7 +38,7 @@ import "../chunk-ER6RCOH3.js";
38
38
  import "../chunk-EU73QPW7.js";
39
39
  import "../chunk-QVWYTQKL.js";
40
40
  import "../chunk-NO5BIKWS.js";
41
- import "../chunk-FSLETAX4.js";
41
+ import "../chunk-MQX7GFLX.js";
42
42
  import "../chunk-V47RTW7E.js";
43
43
  import "../chunk-22VBZWJG.js";
44
44
  import "../chunk-NVOZAVEX.js";
@@ -52,9 +52,9 @@ import "../chunk-VXWSAIB5.js";
52
52
  import "../chunk-TYTD4FLW.js";
53
53
  import "../chunk-5UH6QUFB.js";
54
54
  import "../chunk-FA7IFW66.js";
55
- import "../chunk-TPXHOAY3.js";
56
- import "../chunk-4LXG6QNT.js";
57
- import "../chunk-MX57T3HP.js";
55
+ import "../chunk-JIMJIJOF.js";
56
+ import "../chunk-EZCH4PQS.js";
57
+ import "../chunk-GB4ZTUQV.js";
58
58
  import "../chunk-OGIFIPKH.js";
59
59
  import "../chunk-NKUETCDA.js";
60
60
  import "../chunk-WWAPK5PH.js";
@@ -66,8 +66,9 @@ var import_clsx = __toESM(require("clsx"), 1);
66
66
  var import_jsx_runtime = require("react/jsx-runtime");
67
67
  function Card(props) {
68
68
  const _a = props, { children, selected, testid } = _a, rest = __objRest(_a, ["children", "selected", "testid"]);
69
+ const CardComponent = props.as || "div";
69
70
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
70
- "div",
71
+ CardComponent,
71
72
  __spreadProps(__spreadValues({}, rest), {
72
73
  "data-testid": testid,
73
74
  className: (0, import_clsx.default)(
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Card
3
- } from "../chunk-4LXG6QNT.js";
3
+ } from "../chunk-EZCH4PQS.js";
4
4
  import "../chunk-ORMEWXMH.js";
5
5
  export {
6
6
  Card