@dmsi/wedgekit-react 0.0.388 → 0.0.390

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 (128) hide show
  1. package/dist/{chunk-BPJR54VM.js → chunk-2HMCS25C.js} +5 -5
  2. package/dist/{chunk-HPQWEZJL.js → chunk-3X3Y4TMS.js} +7 -2
  3. package/dist/{chunk-QJTAFSQA.js → chunk-44TDIHUP.js} +3 -3
  4. package/dist/{chunk-5Z4ODAYB.js → chunk-6I5LZ2ZC.js} +6 -6
  5. package/dist/{chunk-KSAN4ZLA.js → chunk-AA6GE3TH.js} +1 -1
  6. package/dist/{chunk-E4AGWXFA.js → chunk-D6YCMQPO.js} +7 -7
  7. package/dist/{chunk-DCCTNHNL.js → chunk-ERW5DEIO.js} +1 -1
  8. package/dist/{chunk-4LXG6QNT.js → chunk-EZCH4PQS.js} +2 -1
  9. package/dist/{chunk-CQFPNZTN.js → chunk-G5DEC7H3.js} +15 -5
  10. package/dist/{chunk-MX57T3HP.js → chunk-GB4ZTUQV.js} +8 -4
  11. package/dist/{chunk-JRHYNZM6.js → chunk-JIMJIJOF.js} +4 -4
  12. package/dist/{chunk-QF654HYZ.js → chunk-KZZKQLKF.js} +3 -3
  13. package/dist/{chunk-4XTTJOQA.js → chunk-LCJZRP5S.js} +14 -5
  14. package/dist/{chunk-2XHBPMHQ.js → chunk-LLZ3SSZJ.js} +4 -4
  15. package/dist/{chunk-A7CEYUVE.js → chunk-LZGYABCX.js} +3 -3
  16. package/dist/{chunk-FSLETAX4.js → chunk-MQX7GFLX.js} +11 -4
  17. package/dist/{chunk-B6FYJZG7.js → chunk-OW3WN3JV.js} +15 -15
  18. package/dist/components/Accordion.cjs +10 -5
  19. package/dist/components/Accordion.js +3 -3
  20. package/dist/components/CalendarRange.cjs +24 -21
  21. package/dist/components/CalendarRange.css +18 -0
  22. package/dist/components/CalendarRange.js +25 -25
  23. package/dist/components/Card.cjs +2 -1
  24. package/dist/components/Card.js +1 -1
  25. package/dist/components/CompactImagesPreview.cjs +18 -7
  26. package/dist/components/CompactImagesPreview.js +2 -2
  27. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.cjs +14 -11
  28. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.css +18 -0
  29. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +25 -25
  30. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +17 -14
  31. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.css +18 -0
  32. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +25 -25
  33. package/dist/components/DataGrid/PinnedColumns.cjs +19 -16
  34. package/dist/components/DataGrid/PinnedColumns.css +18 -0
  35. package/dist/components/DataGrid/PinnedColumns.js +25 -25
  36. package/dist/components/DataGrid/TableBody/LoadingCell.cjs +12 -9
  37. package/dist/components/DataGrid/TableBody/LoadingCell.css +18 -0
  38. package/dist/components/DataGrid/TableBody/LoadingCell.js +25 -25
  39. package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +14 -11
  40. package/dist/components/DataGrid/TableBody/TableBodyRow.css +18 -0
  41. package/dist/components/DataGrid/TableBody/TableBodyRow.js +25 -25
  42. package/dist/components/DataGrid/TableBody/index.cjs +14 -11
  43. package/dist/components/DataGrid/TableBody/index.css +18 -0
  44. package/dist/components/DataGrid/TableBody/index.js +25 -25
  45. package/dist/components/DataGrid/index.cjs +36 -33
  46. package/dist/components/DataGrid/index.css +18 -0
  47. package/dist/components/DataGrid/index.js +25 -25
  48. package/dist/components/DataGrid/utils.cjs +12 -9
  49. package/dist/components/DataGrid/utils.css +18 -0
  50. package/dist/components/DataGrid/utils.js +25 -25
  51. package/dist/components/DataGridCell.js +2 -2
  52. package/dist/components/DateInput.cjs +37 -34
  53. package/dist/components/DateInput.css +18 -0
  54. package/dist/components/DateInput.js +25 -25
  55. package/dist/components/DateRangeInput.cjs +37 -34
  56. package/dist/components/DateRangeInput.css +18 -0
  57. package/dist/components/DateRangeInput.js +25 -25
  58. package/dist/components/FilterGroup.cjs +11 -2
  59. package/dist/components/FilterGroup.js +8 -8
  60. package/dist/components/MobileDataGrid/ColumnList.cjs +8 -4
  61. package/dist/components/MobileDataGrid/ColumnList.js +3 -3
  62. package/dist/components/MobileDataGrid/ColumnSelector/index.cjs +16 -13
  63. package/dist/components/MobileDataGrid/ColumnSelector/index.css +18 -0
  64. package/dist/components/MobileDataGrid/ColumnSelector/index.js +25 -25
  65. package/dist/components/MobileDataGrid/MobileDataGridCard/index.cjs +8 -4
  66. package/dist/components/MobileDataGrid/MobileDataGridCard/index.js +2 -2
  67. package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +24 -17
  68. package/dist/components/MobileDataGrid/MobileDataGridHeader.css +18 -0
  69. package/dist/components/MobileDataGrid/MobileDataGridHeader.js +25 -25
  70. package/dist/components/MobileDataGrid/RowDetailModalProvider/ModalContent.cjs +8 -4
  71. package/dist/components/MobileDataGrid/RowDetailModalProvider/ModalContent.js +2 -2
  72. package/dist/components/MobileDataGrid/RowDetailModalProvider/index.cjs +8 -4
  73. package/dist/components/MobileDataGrid/RowDetailModalProvider/index.js +8 -8
  74. package/dist/components/MobileDataGrid/index.cjs +50 -43
  75. package/dist/components/MobileDataGrid/index.css +18 -0
  76. package/dist/components/MobileDataGrid/index.js +25 -25
  77. package/dist/components/Modal.js +5 -5
  78. package/dist/components/ModalButtons.js +2 -2
  79. package/dist/components/ModalHeader.js +2 -2
  80. package/dist/components/NavigationTab.js +2 -2
  81. package/dist/components/NavigationTabs.js +2 -2
  82. package/dist/components/Notification.cjs +8 -4
  83. package/dist/components/Notification.js +5 -5
  84. package/dist/components/OptionPill.cjs +11 -2
  85. package/dist/components/OptionPill.js +2 -2
  86. package/dist/components/PDFViewer/DownloadIcon.js +2 -2
  87. package/dist/components/PDFViewer/PDFElement.cjs +8 -4
  88. package/dist/components/PDFViewer/PDFElement.js +2 -2
  89. package/dist/components/PDFViewer/PDFNavigation.cjs +8 -4
  90. package/dist/components/PDFViewer/PDFNavigation.js +3 -3
  91. package/dist/components/PDFViewer/index.cjs +8 -4
  92. package/dist/components/PDFViewer/index.js +10 -10
  93. package/dist/components/ProductImagePreview/ProductPrimaryImage.cjs +15 -5
  94. package/dist/components/ProductImagePreview/ProductPrimaryImage.js +1 -1
  95. package/dist/components/ProductImagePreview/Thumbnail.cjs +7 -2
  96. package/dist/components/ProductImagePreview/Thumbnail.js +1 -1
  97. package/dist/components/ProductImagePreview/index.cjs +84 -63
  98. package/dist/components/ProductImagePreview/index.js +4 -4
  99. package/dist/components/SideMenuGroup.cjs +8 -4
  100. package/dist/components/SideMenuGroup.js +1 -1
  101. package/dist/components/SideMenuItem.cjs +8 -4
  102. package/dist/components/SideMenuItem.js +3 -3
  103. package/dist/components/Stack.cjs +8 -4
  104. package/dist/components/Stack.js +1 -1
  105. package/dist/components/Stepper.js +3 -3
  106. package/dist/components/Swatch.cjs +8 -4
  107. package/dist/components/Swatch.js +3 -3
  108. package/dist/components/Time.cjs +8 -4
  109. package/dist/components/Time.js +1 -1
  110. package/dist/components/Toast.js +3 -3
  111. package/dist/components/Upload.cjs +8 -4
  112. package/dist/components/Upload.js +5 -5
  113. package/dist/components/index.cjs +100 -71
  114. package/dist/components/index.css +18 -0
  115. package/dist/components/index.js +31 -31
  116. package/dist/index.css +18 -0
  117. package/package.json +1 -1
  118. package/src/components/Card.tsx +15 -4
  119. package/src/components/CompactImagesPreview.tsx +10 -3
  120. package/src/components/OptionPill.tsx +13 -1
  121. package/src/components/ProductImagePreview/ProductPrimaryImage.tsx +16 -5
  122. package/src/components/ProductImagePreview/Thumbnail.tsx +7 -1
  123. package/src/components/Stack.tsx +4 -0
  124. package/dist/{chunk-XFZRKXMV.js → chunk-EJSPFQCY.js} +3 -3
  125. package/dist/{chunk-YUBQJQ75.js → chunk-FHQL42YP.js} +3 -3
  126. package/dist/{chunk-EC7SC3MO.js → chunk-T36HX6QY.js} +3 -3
  127. package/dist/{chunk-77IGUML3.js → chunk-V47RTW7E.js} +3 -3
  128. package/dist/{chunk-5OPI4GTJ.js → chunk-XM7IQHBU.js} +3 -3
@@ -2,17 +2,17 @@ import {
2
2
  Heading3
3
3
  } from "./chunk-EU73QPW7.js";
4
4
  import {
5
- Button
6
- } from "./chunk-WWAPK5PH.js";
5
+ Stack
6
+ } from "./chunk-GB4ZTUQV.js";
7
7
  import {
8
8
  Paragraph
9
9
  } from "./chunk-OGIFIPKH.js";
10
- import {
11
- Stack
12
- } from "./chunk-MX57T3HP.js";
13
10
  import {
14
11
  Icon
15
12
  } from "./chunk-NKUETCDA.js";
13
+ import {
14
+ Button
15
+ } from "./chunk-WWAPK5PH.js";
16
16
 
17
17
  // src/components/PDFViewer/PDFNavigation.tsx
18
18
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -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
  }
@@ -4,12 +4,12 @@ import {
4
4
  import {
5
5
  MobileDataGridColumn
6
6
  } from "./chunk-M6TSTDNZ.js";
7
+ import {
8
+ Stack
9
+ } from "./chunk-GB4ZTUQV.js";
7
10
  import {
8
11
  Paragraph
9
12
  } from "./chunk-OGIFIPKH.js";
10
- import {
11
- Stack
12
- } from "./chunk-MX57T3HP.js";
13
13
 
14
14
  // src/components/MobileDataGrid/RowDetailModalProvider/ModalContent.tsx
15
15
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -1,24 +1,24 @@
1
1
  import {
2
2
  ModalContent
3
- } from "./chunk-QJTAFSQA.js";
3
+ } from "./chunk-44TDIHUP.js";
4
4
  import {
5
5
  useGridContext
6
6
  } from "./chunk-5IFPG6TS.js";
7
7
  import {
8
8
  Modal
9
- } from "./chunk-E4AGWXFA.js";
9
+ } from "./chunk-D6YCMQPO.js";
10
10
  import {
11
11
  Heading2
12
12
  } from "./chunk-EU73QPW7.js";
13
- import {
14
- Button
15
- } from "./chunk-WWAPK5PH.js";
16
13
  import {
17
14
  Stack
18
- } from "./chunk-MX57T3HP.js";
15
+ } from "./chunk-GB4ZTUQV.js";
19
16
  import {
20
17
  Icon
21
18
  } from "./chunk-NKUETCDA.js";
19
+ import {
20
+ Button
21
+ } from "./chunk-WWAPK5PH.js";
22
22
 
23
23
  // src/components/MobileDataGrid/RowDetailModalProvider/index.tsx
24
24
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  MobileDataGridCard
3
- } from "./chunk-QF654HYZ.js";
3
+ } from "./chunk-KZZKQLKF.js";
4
4
  import {
5
5
  useGridContext
6
6
  } from "./chunk-5IFPG6TS.js";
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  useMounted
3
3
  } from "./chunk-4RJKB7LC.js";
4
- import {
5
- ModalHeader
6
- } from "./chunk-EC7SC3MO.js";
7
- import {
8
- ModalScrim
9
- } from "./chunk-AG43RS4Q.js";
10
4
  import {
11
5
  ModalButtons
12
- } from "./chunk-5OPI4GTJ.js";
6
+ } from "./chunk-XM7IQHBU.js";
13
7
  import {
14
8
  ModalContent
15
9
  } from "./chunk-FRHPFACM.js";
10
+ import {
11
+ ModalHeader
12
+ } from "./chunk-T36HX6QY.js";
13
+ import {
14
+ ModalScrim
15
+ } from "./chunk-AG43RS4Q.js";
16
16
  import {
17
17
  useMatchesMobile
18
18
  } from "./chunk-MYKYZHEO.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,12 +1,12 @@
1
1
  import {
2
2
  Card
3
- } from "./chunk-4LXG6QNT.js";
3
+ } from "./chunk-EZCH4PQS.js";
4
+ import {
5
+ Stack
6
+ } from "./chunk-GB4ZTUQV.js";
4
7
  import {
5
8
  Paragraph
6
9
  } from "./chunk-OGIFIPKH.js";
7
- import {
8
- Stack
9
- } from "./chunk-MX57T3HP.js";
10
10
  import {
11
11
  Icon
12
12
  } from "./chunk-NKUETCDA.js";
@@ -10,12 +10,12 @@ import {
10
10
  import {
11
11
  Subheader
12
12
  } from "./chunk-FA7IFW66.js";
13
+ import {
14
+ Stack
15
+ } from "./chunk-GB4ZTUQV.js";
13
16
  import {
14
17
  Paragraph
15
18
  } from "./chunk-OGIFIPKH.js";
16
- import {
17
- Stack
18
- } from "./chunk-MX57T3HP.js";
19
19
  import {
20
20
  Icon
21
21
  } from "./chunk-NKUETCDA.js";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  Label
3
3
  } from "./chunk-7CS736EF.js";
4
- import {
5
- Button
6
- } from "./chunk-WWAPK5PH.js";
7
4
  import {
8
5
  Icon
9
6
  } from "./chunk-NKUETCDA.js";
7
+ import {
8
+ Button
9
+ } from "./chunk-WWAPK5PH.js";
10
10
  import {
11
11
  baseTransition,
12
12
  componentGap,
@@ -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
  ]
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  DownloadIcon
3
- } from "./chunk-XFZRKXMV.js";
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-BPJR54VM.js";
9
+ } from "./chunk-2HMCS25C.js";
10
10
  import {
11
11
  Modal
12
- } from "./chunk-E4AGWXFA.js";
12
+ } from "./chunk-D6YCMQPO.js";
13
13
 
14
14
  // src/components/PDFViewer/index.tsx
15
15
  import { useCallback, useState } from "react";
@@ -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,31 +3,34 @@ import {
3
3
  } from "./chunk-M7INAUAJ.js";
4
4
  import {
5
5
  RowDetailModalProvider
6
- } from "./chunk-5Z4ODAYB.js";
6
+ } from "./chunk-6I5LZ2ZC.js";
7
7
  import {
8
8
  ColumnList
9
- } from "./chunk-KSAN4ZLA.js";
9
+ } from "./chunk-AA6GE3TH.js";
10
10
  import {
11
11
  useGridContext
12
12
  } from "./chunk-5IFPG6TS.js";
13
- import {
14
- Theme
15
- } from "./chunk-EWGHVZL5.js";
16
13
  import {
17
14
  Tooltip
18
15
  } from "./chunk-QQ5G773N.js";
16
+ import {
17
+ Theme
18
+ } from "./chunk-EWGHVZL5.js";
19
19
  import {
20
20
  Select
21
21
  } from "./chunk-J5V2JRIK.js";
22
22
  import {
23
23
  Heading3
24
24
  } from "./chunk-EU73QPW7.js";
25
+ import {
26
+ Checkbox
27
+ } from "./chunk-NO5BIKWS.js";
25
28
  import {
26
29
  DataCellHeader,
27
30
  DataGridCell,
28
31
  DragAlongCell,
29
32
  DraggableCellHeader
30
- } from "./chunk-77IGUML3.js";
33
+ } from "./chunk-V47RTW7E.js";
31
34
  import {
32
35
  Menu
33
36
  } from "./chunk-22VBZWJG.js";
@@ -43,12 +46,6 @@ import {
43
46
  import {
44
47
  Label
45
48
  } from "./chunk-7CS736EF.js";
46
- import {
47
- Checkbox
48
- } from "./chunk-NO5BIKWS.js";
49
- import {
50
- Button
51
- } from "./chunk-WWAPK5PH.js";
52
49
  import {
53
50
  useInfiniteScroll,
54
51
  useTableLayout
@@ -62,15 +59,18 @@ import {
62
59
  import {
63
60
  Subheader
64
61
  } from "./chunk-FA7IFW66.js";
62
+ import {
63
+ Stack
64
+ } from "./chunk-GB4ZTUQV.js";
65
65
  import {
66
66
  Paragraph
67
67
  } from "./chunk-OGIFIPKH.js";
68
- import {
69
- Stack
70
- } from "./chunk-MX57T3HP.js";
71
68
  import {
72
69
  Icon
73
70
  } from "./chunk-NKUETCDA.js";
71
+ import {
72
+ Button
73
+ } from "./chunk-WWAPK5PH.js";
74
74
  import {
75
75
  componentGap,
76
76
  componentPadding
@@ -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,10 +1,10 @@
1
1
  "use client";
2
2
  import {
3
3
  Accordion
4
- } from "../chunk-JRHYNZM6.js";
5
- import "../chunk-4LXG6QNT.js";
4
+ } from "../chunk-JIMJIJOF.js";
5
+ import "../chunk-EZCH4PQS.js";
6
+ import "../chunk-GB4ZTUQV.js";
6
7
  import "../chunk-OGIFIPKH.js";
7
- import "../chunk-MX57T3HP.js";
8
8
  import "../chunk-NKUETCDA.js";
9
9
  import "../chunk-6CTCHYIS.js";
10
10
  import "../chunk-ORMEWXMH.js";