@dmsi/wedgekit-react 0.0.739 → 0.0.741

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 (54) hide show
  1. package/dist/{chunk-74HXF5GF.js → chunk-2EAVEFWY.js} +12 -2
  2. package/dist/{chunk-GYU3MQ3R.js → chunk-3UIIKZI7.js} +1 -1
  3. package/dist/{chunk-BZTUQP6P.js → chunk-CMZIPVZ3.js} +3 -1
  4. package/dist/{chunk-L2IXJSBT.js → chunk-E7ACKOBY.js} +2 -2
  5. package/dist/{chunk-KBJZUVLM.js → chunk-F4VE3THQ.js} +8 -2
  6. package/dist/{chunk-UF5XGCSF.js → chunk-FZ2TEKOE.js} +1 -10
  7. package/dist/{chunk-CQLRGYHM.js → chunk-QNIZDGFV.js} +1 -1
  8. package/dist/components/Accordion.cjs +8 -2
  9. package/dist/components/Accordion.js +2 -2
  10. package/dist/components/CalendarRange.cjs +14 -11
  11. package/dist/components/CalendarRange.js +10 -10
  12. package/dist/components/Card.cjs +8 -2
  13. package/dist/components/Card.js +1 -1
  14. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.cjs +14 -11
  15. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +10 -10
  16. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +14 -11
  17. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +10 -10
  18. package/dist/components/DataGrid/PinnedColumns.cjs +14 -11
  19. package/dist/components/DataGrid/PinnedColumns.js +10 -10
  20. package/dist/components/DataGrid/TableBody/LoadingCell.cjs +14 -11
  21. package/dist/components/DataGrid/TableBody/LoadingCell.js +10 -10
  22. package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +14 -11
  23. package/dist/components/DataGrid/TableBody/TableBodyRow.js +10 -10
  24. package/dist/components/DataGrid/TableBody/index.cjs +14 -11
  25. package/dist/components/DataGrid/TableBody/index.js +10 -10
  26. package/dist/components/DataGrid/index.cjs +14 -11
  27. package/dist/components/DataGrid/index.js +10 -10
  28. package/dist/components/DataGrid/utils.cjs +14 -11
  29. package/dist/components/DataGrid/utils.js +10 -10
  30. package/dist/components/DateInput.cjs +14 -11
  31. package/dist/components/DateInput.js +10 -10
  32. package/dist/components/DateRangeInput.cjs +14 -11
  33. package/dist/components/DateRangeInput.js +10 -10
  34. package/dist/components/MobileDataGrid/ColumnSelector/index.cjs +14 -11
  35. package/dist/components/MobileDataGrid/ColumnSelector/index.js +10 -10
  36. package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +14 -11
  37. package/dist/components/MobileDataGrid/MobileDataGridHeader.js +10 -10
  38. package/dist/components/MobileDataGrid/RowDetailModalProvider/index.cjs +14 -2
  39. package/dist/components/MobileDataGrid/RowDetailModalProvider/index.js +3 -3
  40. package/dist/components/MobileDataGrid/index.cjs +14 -11
  41. package/dist/components/MobileDataGrid/index.js +10 -10
  42. package/dist/components/Modal.cjs +14 -2
  43. package/dist/components/Modal.js +2 -2
  44. package/dist/components/ModalHeader.cjs +12 -2
  45. package/dist/components/ModalHeader.js +1 -1
  46. package/dist/components/PDFViewer/index.cjs +14 -2
  47. package/dist/components/PDFViewer/index.js +5 -5
  48. package/dist/components/ProductImagePreview/index.js +2 -2
  49. package/dist/components/Select.cjs +0 -9
  50. package/dist/components/Select.js +1 -1
  51. package/dist/components/index.cjs +22 -13
  52. package/dist/components/index.js +12 -12
  53. package/package.json +1 -1
  54. package/dist/{chunk-T5U46JTM.js → chunk-KNDRIRG7.js} +3 -3
@@ -490,7 +490,8 @@ var ModalHeader = ({
490
490
  id,
491
491
  testid,
492
492
  headerClassname,
493
- titleAs: TitleComponent
493
+ titleAs: TitleComponent,
494
+ headerIconClassname
494
495
  }) => {
495
496
  const Title = TitleComponent || Heading2;
496
497
  return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
@@ -528,7 +529,16 @@ var ModalHeader = ({
528
529
  iconOnly: true,
529
530
  variant: "tertiary",
530
531
  onClick: onClose,
531
- leftIcon: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Icon, { name: "close", size: 24 }) })
532
+ leftIcon: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
533
+ "span",
534
+ {
535
+ className: (0, import_clsx5.default)(
536
+ "contents",
537
+ headerIconClassname != null ? headerIconClassname : "text-icon-primary-normal"
538
+ ),
539
+ children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Icon, { name: "close", size: 24 })
540
+ }
541
+ )
532
542
  }
533
543
  )
534
544
  ]
@@ -795,6 +805,7 @@ var Modal = ({
795
805
  hideCloseIcon = false,
796
806
  headerIcon,
797
807
  headerIconAlign,
808
+ headerIconClassname,
798
809
  fixedHeightScrolling = false,
799
810
  customActions,
800
811
  headerClassname,
@@ -928,6 +939,7 @@ var Modal = ({
928
939
  headerIcon,
929
940
  headerIconAlign,
930
941
  headerClassname,
942
+ headerIconClassname,
931
943
  titleAs: TitleComponent
932
944
  }
933
945
  ),
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  import {
3
3
  Modal
4
- } from "../chunk-BZTUQP6P.js";
4
+ } from "../chunk-CMZIPVZ3.js";
5
5
  import "../chunk-4RJKB7LC.js";
6
6
  import "../chunk-UUKHQUSF.js";
7
7
  import "../chunk-WVVEOCEH.js";
8
- import "../chunk-74HXF5GF.js";
8
+ import "../chunk-2EAVEFWY.js";
9
9
  import "../chunk-AG43RS4Q.js";
10
10
  import "../chunk-ZERLFS2T.js";
11
11
  import "../chunk-VXWSAIB5.js";
@@ -487,7 +487,8 @@ var ModalHeader = ({
487
487
  id,
488
488
  testid,
489
489
  headerClassname,
490
- titleAs: TitleComponent
490
+ titleAs: TitleComponent,
491
+ headerIconClassname
491
492
  }) => {
492
493
  const Title = TitleComponent || Heading2;
493
494
  return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
@@ -525,7 +526,16 @@ var ModalHeader = ({
525
526
  iconOnly: true,
526
527
  variant: "tertiary",
527
528
  onClick: onClose,
528
- leftIcon: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Icon, { name: "close", size: 24 }) })
529
+ leftIcon: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
530
+ "span",
531
+ {
532
+ className: (0, import_clsx5.default)(
533
+ "contents",
534
+ headerIconClassname != null ? headerIconClassname : "text-icon-primary-normal"
535
+ ),
536
+ children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Icon, { name: "close", size: 24 })
537
+ }
538
+ )
529
539
  }
530
540
  )
531
541
  ]
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ModalHeader
3
- } from "../chunk-74HXF5GF.js";
3
+ } from "../chunk-2EAVEFWY.js";
4
4
  import "../chunk-MXSJF6TW.js";
5
5
  import "../chunk-BMAZBFUU.js";
6
6
  import "../chunk-SBRRNFOP.js";
@@ -493,7 +493,8 @@ var ModalHeader = ({
493
493
  id,
494
494
  testid,
495
495
  headerClassname,
496
- titleAs: TitleComponent
496
+ titleAs: TitleComponent,
497
+ headerIconClassname
497
498
  }) => {
498
499
  const Title = TitleComponent || Heading2;
499
500
  return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
@@ -531,7 +532,16 @@ var ModalHeader = ({
531
532
  iconOnly: true,
532
533
  variant: "tertiary",
533
534
  onClick: onClose,
534
- leftIcon: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Icon, { name: "close", size: 24 }) })
535
+ leftIcon: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
536
+ "span",
537
+ {
538
+ className: (0, import_clsx5.default)(
539
+ "contents",
540
+ headerIconClassname != null ? headerIconClassname : "text-icon-primary-normal"
541
+ ),
542
+ children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Icon, { name: "close", size: 24 })
543
+ }
544
+ )
535
545
  }
536
546
  )
537
547
  ]
@@ -798,6 +808,7 @@ var Modal = ({
798
808
  hideCloseIcon = false,
799
809
  headerIcon,
800
810
  headerIconAlign,
811
+ headerIconClassname,
801
812
  fixedHeightScrolling = false,
802
813
  customActions,
803
814
  headerClassname,
@@ -931,6 +942,7 @@ var Modal = ({
931
942
  headerIcon,
932
943
  headerIconAlign,
933
944
  headerClassname,
945
+ headerIconClassname,
934
946
  titleAs: TitleComponent
935
947
  }
936
948
  ),
@@ -1,7 +1,4 @@
1
1
  "use client";
2
- import {
3
- DownloadIcon
4
- } from "../../chunk-6NDQCVAN.js";
5
2
  import {
6
3
  PDFElement
7
4
  } from "../../chunk-EQ2RAI53.js";
@@ -9,14 +6,17 @@ import {
9
6
  PdfNavigation
10
7
  } from "../../chunk-7YW4Q7OQ.js";
11
8
  import "../../chunk-VJVY6NPF.js";
9
+ import {
10
+ DownloadIcon
11
+ } from "../../chunk-6NDQCVAN.js";
12
12
  import "../../chunk-AS57Y2D3.js";
13
13
  import {
14
14
  Modal
15
- } from "../../chunk-BZTUQP6P.js";
15
+ } from "../../chunk-CMZIPVZ3.js";
16
16
  import "../../chunk-4RJKB7LC.js";
17
17
  import "../../chunk-UUKHQUSF.js";
18
18
  import "../../chunk-WVVEOCEH.js";
19
- import "../../chunk-74HXF5GF.js";
19
+ import "../../chunk-2EAVEFWY.js";
20
20
  import "../../chunk-AG43RS4Q.js";
21
21
  import "../../chunk-ZERLFS2T.js";
22
22
  import "../../chunk-VXWSAIB5.js";
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  ProductImagePreview
3
- } from "../../chunk-T5U46JTM.js";
3
+ } from "../../chunk-KNDRIRG7.js";
4
+ import "../../chunk-MBZ55T2D.js";
4
5
  import "../../chunk-2IKT6IHB.js";
5
6
  import "../../chunk-YCDDBSVU.js";
6
7
  import "../../chunk-3X3Y4TMS.js";
7
8
  import "../../chunk-BQNPOGD5.js";
8
- import "../../chunk-MBZ55T2D.js";
9
9
  import "../../chunk-AT4AWD6B.js";
10
10
  import "../../chunk-QVWYTQKL.js";
11
11
  import "../../chunk-BWPNXY7T.js";
@@ -868,16 +868,7 @@ var Select = (_a) => {
868
868
  var _a2;
869
869
  const inputRef = (0, import_react2.useRef)(null);
870
870
  const inputContainerRef = (0, import_react2.useRef)(null);
871
- const preventFocusOnInitialRender = (0, import_react2.useRef)(true);
872
871
  const [show, setShow] = (0, import_react2.useState)(false);
873
- (0, import_react2.useEffect)(() => {
874
- var _a3;
875
- if (preventFocusOnInitialRender.current) {
876
- preventFocusOnInitialRender.current = false;
877
- return;
878
- }
879
- (_a3 = inputRef.current) == null ? void 0 : _a3.focus();
880
- }, [value]);
881
872
  return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_jsx_runtime5.Fragment, { children: [
882
873
  /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
883
874
  InputBase,
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  Select
4
- } from "../chunk-UF5XGCSF.js";
4
+ } from "../chunk-FZ2TEKOE.js";
5
5
  import "../chunk-7T5RGDCN.js";
6
6
  import "../chunk-HXGJVYGQ.js";
7
7
  import "../chunk-5UH6QUFB.js";
@@ -3908,16 +3908,7 @@ var Select = (_a) => {
3908
3908
  var _a2;
3909
3909
  const inputRef = (0, import_react18.useRef)(null);
3910
3910
  const inputContainerRef = (0, import_react18.useRef)(null);
3911
- const preventFocusOnInitialRender = (0, import_react18.useRef)(true);
3912
3911
  const [show, setShow] = (0, import_react18.useState)(false);
3913
- (0, import_react18.useEffect)(() => {
3914
- var _a3;
3915
- if (preventFocusOnInitialRender.current) {
3916
- preventFocusOnInitialRender.current = false;
3917
- return;
3918
- }
3919
- (_a3 = inputRef.current) == null ? void 0 : _a3.focus();
3920
- }, [value]);
3921
3912
  return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_jsx_runtime18.Fragment, { children: [
3922
3913
  /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
3923
3914
  InputBase,
@@ -5176,7 +5167,8 @@ function Card(props) {
5176
5167
  paddingBottom,
5177
5168
  paddingTop,
5178
5169
  paddingLeft,
5179
- paddingRight
5170
+ paddingRight,
5171
+ elevation = 4
5180
5172
  } = _a, rest = __objRest(_a, [
5181
5173
  "children",
5182
5174
  "selected",
@@ -5187,7 +5179,8 @@ function Card(props) {
5187
5179
  "paddingBottom",
5188
5180
  "paddingTop",
5189
5181
  "paddingLeft",
5190
- "paddingRight"
5182
+ "paddingRight",
5183
+ "elevation"
5191
5184
  ]);
5192
5185
  const CardComponent = props.as || "div";
5193
5186
  const anyPaddingPropSpecified = padding !== void 0 || paddingX !== void 0 || paddingY !== void 0 || paddingBottom !== void 0 || paddingTop !== void 0 || paddingLeft !== void 0 || paddingRight !== void 0;
@@ -5211,6 +5204,10 @@ function Card(props) {
5211
5204
  "rounded-sm",
5212
5205
  paddingClasses,
5213
5206
  selected ? "border-2 border-border-primary-focus" : "border border-border-primary-normal",
5207
+ elevation === 0 && "shadow-none",
5208
+ elevation === 2 && "shadow-2",
5209
+ elevation === 4 && "shadow-4",
5210
+ elevation === 16 && "shadow-16",
5214
5211
  rest.className
5215
5212
  ),
5216
5213
  children
@@ -5949,7 +5946,8 @@ var ModalHeader = ({
5949
5946
  id,
5950
5947
  testid,
5951
5948
  headerClassname,
5952
- titleAs: TitleComponent
5949
+ titleAs: TitleComponent,
5950
+ headerIconClassname
5953
5951
  }) => {
5954
5952
  const Title = TitleComponent || Heading2;
5955
5953
  return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
@@ -5987,7 +5985,16 @@ var ModalHeader = ({
5987
5985
  iconOnly: true,
5988
5986
  variant: "tertiary",
5989
5987
  onClick: onClose,
5990
- leftIcon: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Icon, { name: "close", size: 24 }) })
5988
+ leftIcon: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
5989
+ "span",
5990
+ {
5991
+ className: (0, import_clsx25.default)(
5992
+ "contents",
5993
+ headerIconClassname != null ? headerIconClassname : "text-icon-primary-normal"
5994
+ ),
5995
+ children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Icon, { name: "close", size: 24 })
5996
+ }
5997
+ )
5991
5998
  }
5992
5999
  )
5993
6000
  ]
@@ -6198,6 +6205,7 @@ var Modal = ({
6198
6205
  hideCloseIcon = false,
6199
6206
  headerIcon,
6200
6207
  headerIconAlign,
6208
+ headerIconClassname,
6201
6209
  fixedHeightScrolling = false,
6202
6210
  customActions,
6203
6211
  headerClassname,
@@ -6331,6 +6339,7 @@ var Modal = ({
6331
6339
  headerIcon,
6332
6340
  headerIconAlign,
6333
6341
  headerClassname,
6342
+ headerIconClassname,
6334
6343
  titleAs: TitleComponent
6335
6344
  }
6336
6345
  ),
@@ -2,21 +2,21 @@ import {
2
2
  DataGrid,
3
3
  DateInput,
4
4
  MobileDataGrid
5
- } from "../chunk-L2IXJSBT.js";
6
- import "../chunk-GYU3MQ3R.js";
5
+ } from "../chunk-E7ACKOBY.js";
6
+ import "../chunk-3UIIKZI7.js";
7
7
  import "../chunk-M7INAUAJ.js";
8
8
  import "../chunk-URAV33TJ.js";
9
+ import {
10
+ SearchResultImage
11
+ } from "../chunk-Y5GD2FJA.js";
9
12
  import {
10
13
  ProductImagePreview
11
- } from "../chunk-T5U46JTM.js";
14
+ } from "../chunk-KNDRIRG7.js";
15
+ import "../chunk-MBZ55T2D.js";
12
16
  import "../chunk-2IKT6IHB.js";
13
17
  import "../chunk-YCDDBSVU.js";
14
18
  import "../chunk-3X3Y4TMS.js";
15
19
  import "../chunk-BQNPOGD5.js";
16
- import {
17
- SearchResultImage
18
- } from "../chunk-Y5GD2FJA.js";
19
- import "../chunk-MBZ55T2D.js";
20
20
  import "../chunk-OX7TDYN4.js";
21
21
  import "../chunk-I2L2DXPU.js";
22
22
  import {
@@ -28,7 +28,7 @@ import "../chunk-AT4AWD6B.js";
28
28
  import "../chunk-EWGHVZL5.js";
29
29
  import {
30
30
  Select
31
- } from "../chunk-UF5XGCSF.js";
31
+ } from "../chunk-FZ2TEKOE.js";
32
32
  import {
33
33
  SimpleTable
34
34
  } from "../chunk-FESS4LWU.js";
@@ -44,11 +44,11 @@ import {
44
44
  import {
45
45
  Tooltip
46
46
  } from "../chunk-AS57Y2D3.js";
47
- import "../chunk-BZTUQP6P.js";
47
+ import "../chunk-CMZIPVZ3.js";
48
48
  import "../chunk-4RJKB7LC.js";
49
49
  import "../chunk-UUKHQUSF.js";
50
50
  import "../chunk-WVVEOCEH.js";
51
- import "../chunk-74HXF5GF.js";
51
+ import "../chunk-2EAVEFWY.js";
52
52
  import "../chunk-AG43RS4Q.js";
53
53
  import "../chunk-QVWYTQKL.js";
54
54
  import {
@@ -107,10 +107,10 @@ import {
107
107
  } from "../chunk-BYC6QID5.js";
108
108
  import {
109
109
  Accordion
110
- } from "../chunk-CQLRGYHM.js";
110
+ } from "../chunk-QNIZDGFV.js";
111
111
  import {
112
112
  Card
113
- } from "../chunk-KBJZUVLM.js";
113
+ } from "../chunk-F4VE3THQ.js";
114
114
  import {
115
115
  Alert
116
116
  } from "../chunk-TURMALTW.js";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dmsi/wedgekit-react",
3
3
  "private": false,
4
- "version": "0.0.739",
4
+ "version": "0.0.741",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "build": "tsup",
@@ -1,3 +1,6 @@
1
+ import {
2
+ CarouselPagination
3
+ } from "./chunk-MBZ55T2D.js";
1
4
  import {
2
5
  MobileImageCarousel
3
6
  } from "./chunk-2IKT6IHB.js";
@@ -10,9 +13,6 @@ import {
10
13
  import {
11
14
  ZoomWindow
12
15
  } from "./chunk-BQNPOGD5.js";
13
- import {
14
- CarouselPagination
15
- } from "./chunk-MBZ55T2D.js";
16
16
  import {
17
17
  Grid
18
18
  } from "./chunk-BWPNXY7T.js";