@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
@@ -24,7 +24,8 @@ var ModalHeader = ({
24
24
  id,
25
25
  testid,
26
26
  headerClassname,
27
- titleAs: TitleComponent
27
+ titleAs: TitleComponent,
28
+ headerIconClassname
28
29
  }) => {
29
30
  const Title = TitleComponent || Heading2;
30
31
  return /* @__PURE__ */ jsxs(
@@ -62,7 +63,16 @@ var ModalHeader = ({
62
63
  iconOnly: true,
63
64
  variant: "tertiary",
64
65
  onClick: onClose,
65
- leftIcon: /* @__PURE__ */ jsx("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ jsx(Icon, { name: "close", size: 24 }) })
66
+ leftIcon: /* @__PURE__ */ jsx(
67
+ "span",
68
+ {
69
+ className: clsx(
70
+ "contents",
71
+ headerIconClassname != null ? headerIconClassname : "text-icon-primary-normal"
72
+ ),
73
+ children: /* @__PURE__ */ jsx(Icon, { name: "close", size: 24 })
74
+ }
75
+ )
66
76
  }
67
77
  )
68
78
  ]
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-5IFPG6TS.js";
7
7
  import {
8
8
  Modal
9
- } from "./chunk-BZTUQP6P.js";
9
+ } from "./chunk-CMZIPVZ3.js";
10
10
  import {
11
11
  Heading2
12
12
  } from "./chunk-MXSJF6TW.js";
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-WVVEOCEH.js";
10
10
  import {
11
11
  ModalHeader
12
- } from "./chunk-74HXF5GF.js";
12
+ } from "./chunk-2EAVEFWY.js";
13
13
  import {
14
14
  ModalScrim
15
15
  } from "./chunk-AG43RS4Q.js";
@@ -101,6 +101,7 @@ var Modal = ({
101
101
  hideCloseIcon = false,
102
102
  headerIcon,
103
103
  headerIconAlign,
104
+ headerIconClassname,
104
105
  fixedHeightScrolling = false,
105
106
  customActions,
106
107
  headerClassname,
@@ -234,6 +235,7 @@ var Modal = ({
234
235
  headerIcon,
235
236
  headerIconAlign,
236
237
  headerClassname,
238
+ headerIconClassname,
237
239
  titleAs: TitleComponent
238
240
  }
239
241
  ),
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  RowDetailModalProvider
3
- } from "./chunk-GYU3MQ3R.js";
3
+ } from "./chunk-3UIIKZI7.js";
4
4
  import {
5
5
  GridContextProvider
6
6
  } from "./chunk-M7INAUAJ.js";
@@ -16,7 +16,7 @@ import {
16
16
  } from "./chunk-EWGHVZL5.js";
17
17
  import {
18
18
  Select
19
- } from "./chunk-UF5XGCSF.js";
19
+ } from "./chunk-FZ2TEKOE.js";
20
20
  import {
21
21
  Tooltip
22
22
  } from "./chunk-AS57Y2D3.js";
@@ -18,7 +18,8 @@ function Card(props) {
18
18
  paddingBottom,
19
19
  paddingTop,
20
20
  paddingLeft,
21
- paddingRight
21
+ paddingRight,
22
+ elevation = 4
22
23
  } = _a, rest = __objRest(_a, [
23
24
  "children",
24
25
  "selected",
@@ -29,7 +30,8 @@ function Card(props) {
29
30
  "paddingBottom",
30
31
  "paddingTop",
31
32
  "paddingLeft",
32
- "paddingRight"
33
+ "paddingRight",
34
+ "elevation"
33
35
  ]);
34
36
  const CardComponent = props.as || "div";
35
37
  const anyPaddingPropSpecified = padding !== void 0 || paddingX !== void 0 || paddingY !== void 0 || paddingBottom !== void 0 || paddingTop !== void 0 || paddingLeft !== void 0 || paddingRight !== void 0;
@@ -53,6 +55,10 @@ function Card(props) {
53
55
  "rounded-sm",
54
56
  paddingClasses,
55
57
  selected ? "border-2 border-border-primary-focus" : "border border-border-primary-normal",
58
+ elevation === 0 && "shadow-none",
59
+ elevation === 2 && "shadow-2",
60
+ elevation === 4 && "shadow-4",
61
+ elevation === 16 && "shadow-16",
56
62
  rest.className
57
63
  ),
58
64
  children
@@ -11,7 +11,7 @@ import {
11
11
  } from "./chunk-ORMEWXMH.js";
12
12
 
13
13
  // src/components/Select.tsx
14
- import { useEffect, useRef, useState } from "react";
14
+ import { useRef, useState } from "react";
15
15
  import clsx from "clsx";
16
16
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
17
17
  var Select = (_a) => {
@@ -47,16 +47,7 @@ var Select = (_a) => {
47
47
  var _a2;
48
48
  const inputRef = useRef(null);
49
49
  const inputContainerRef = useRef(null);
50
- const preventFocusOnInitialRender = useRef(true);
51
50
  const [show, setShow] = useState(false);
52
- useEffect(() => {
53
- var _a3;
54
- if (preventFocusOnInitialRender.current) {
55
- preventFocusOnInitialRender.current = false;
56
- return;
57
- }
58
- (_a3 = inputRef.current) == null ? void 0 : _a3.focus();
59
- }, [value]);
60
51
  return /* @__PURE__ */ jsxs(Fragment, { children: [
61
52
  /* @__PURE__ */ jsx(
62
53
  InputBase,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Card
3
- } from "./chunk-KBJZUVLM.js";
3
+ } from "./chunk-F4VE3THQ.js";
4
4
  import {
5
5
  Stack
6
6
  } from "./chunk-MTGNBARV.js";
@@ -219,7 +219,8 @@ function Card(props) {
219
219
  paddingBottom,
220
220
  paddingTop,
221
221
  paddingLeft,
222
- paddingRight
222
+ paddingRight,
223
+ elevation = 4
223
224
  } = _a, rest = __objRest(_a, [
224
225
  "children",
225
226
  "selected",
@@ -230,7 +231,8 @@ function Card(props) {
230
231
  "paddingBottom",
231
232
  "paddingTop",
232
233
  "paddingLeft",
233
- "paddingRight"
234
+ "paddingRight",
235
+ "elevation"
234
236
  ]);
235
237
  const CardComponent = props.as || "div";
236
238
  const anyPaddingPropSpecified = padding !== void 0 || paddingX !== void 0 || paddingY !== void 0 || paddingBottom !== void 0 || paddingTop !== void 0 || paddingLeft !== void 0 || paddingRight !== void 0;
@@ -254,6 +256,10 @@ function Card(props) {
254
256
  "rounded-sm",
255
257
  paddingClasses,
256
258
  selected ? "border-2 border-border-primary-focus" : "border border-border-primary-normal",
259
+ elevation === 0 && "shadow-none",
260
+ elevation === 2 && "shadow-2",
261
+ elevation === 4 && "shadow-4",
262
+ elevation === 16 && "shadow-16",
257
263
  rest.className
258
264
  ),
259
265
  children
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import {
3
3
  Accordion
4
- } from "../chunk-CQLRGYHM.js";
5
- import "../chunk-KBJZUVLM.js";
4
+ } from "../chunk-QNIZDGFV.js";
5
+ import "../chunk-F4VE3THQ.js";
6
6
  import "../chunk-MTGNBARV.js";
7
7
  import "../chunk-WMPWWFUJ.js";
8
8
  import "../chunk-NKUETCDA.js";
@@ -3881,16 +3881,7 @@ var Select = (_a) => {
3881
3881
  var _a2;
3882
3882
  const inputRef = (0, import_react18.useRef)(null);
3883
3883
  const inputContainerRef = (0, import_react18.useRef)(null);
3884
- const preventFocusOnInitialRender = (0, import_react18.useRef)(true);
3885
3884
  const [show, setShow] = (0, import_react18.useState)(false);
3886
- (0, import_react18.useEffect)(() => {
3887
- var _a3;
3888
- if (preventFocusOnInitialRender.current) {
3889
- preventFocusOnInitialRender.current = false;
3890
- return;
3891
- }
3892
- (_a3 = inputRef.current) == null ? void 0 : _a3.focus();
3893
- }, [value]);
3894
3885
  return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_jsx_runtime18.Fragment, { children: [
3895
3886
  /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
3896
3887
  InputBase,
@@ -4771,7 +4762,8 @@ var ModalHeader = ({
4771
4762
  id,
4772
4763
  testid,
4773
4764
  headerClassname,
4774
- titleAs: TitleComponent
4765
+ titleAs: TitleComponent,
4766
+ headerIconClassname
4775
4767
  }) => {
4776
4768
  const Title = TitleComponent || Heading2;
4777
4769
  return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
@@ -4809,7 +4801,16 @@ var ModalHeader = ({
4809
4801
  iconOnly: true,
4810
4802
  variant: "tertiary",
4811
4803
  onClick: onClose,
4812
- leftIcon: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Icon, { name: "close", size: 24 }) })
4804
+ leftIcon: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
4805
+ "span",
4806
+ {
4807
+ className: (0, import_clsx24.default)(
4808
+ "contents",
4809
+ headerIconClassname != null ? headerIconClassname : "text-icon-primary-normal"
4810
+ ),
4811
+ children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Icon, { name: "close", size: 24 })
4812
+ }
4813
+ )
4813
4814
  }
4814
4815
  )
4815
4816
  ]
@@ -5020,6 +5021,7 @@ var Modal = ({
5020
5021
  hideCloseIcon = false,
5021
5022
  headerIcon,
5022
5023
  headerIconAlign,
5024
+ headerIconClassname,
5023
5025
  fixedHeightScrolling = false,
5024
5026
  customActions,
5025
5027
  headerClassname,
@@ -5153,6 +5155,7 @@ var Modal = ({
5153
5155
  headerIcon,
5154
5156
  headerIconAlign,
5155
5157
  headerClassname,
5158
+ headerIconClassname,
5156
5159
  titleAs: TitleComponent
5157
5160
  }
5158
5161
  ),
@@ -2,17 +2,17 @@ import {
2
2
  CalendarRange,
3
3
  CalendarRange_default,
4
4
  isWeekend
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 "../chunk-T5U46JTM.js";
9
+ import "../chunk-Y5GD2FJA.js";
10
+ import "../chunk-KNDRIRG7.js";
11
+ import "../chunk-MBZ55T2D.js";
10
12
  import "../chunk-2IKT6IHB.js";
11
13
  import "../chunk-YCDDBSVU.js";
12
14
  import "../chunk-3X3Y4TMS.js";
13
15
  import "../chunk-BQNPOGD5.js";
14
- import "../chunk-Y5GD2FJA.js";
15
- import "../chunk-MBZ55T2D.js";
16
16
  import "../chunk-OX7TDYN4.js";
17
17
  import "../chunk-I2L2DXPU.js";
18
18
  import "../chunk-5IFPG6TS.js";
@@ -20,17 +20,17 @@ import "../chunk-AJ5M6MVX.js";
20
20
  import "../chunk-ZILLGHBE.js";
21
21
  import "../chunk-AT4AWD6B.js";
22
22
  import "../chunk-EWGHVZL5.js";
23
- import "../chunk-UF5XGCSF.js";
23
+ import "../chunk-FZ2TEKOE.js";
24
24
  import "../chunk-FESS4LWU.js";
25
25
  import "../chunk-KBIEWFQS.js";
26
26
  import "../chunk-NSZTJ5R4.js";
27
27
  import "../chunk-LB7UT6F3.js";
28
28
  import "../chunk-AS57Y2D3.js";
29
- import "../chunk-BZTUQP6P.js";
29
+ import "../chunk-CMZIPVZ3.js";
30
30
  import "../chunk-4RJKB7LC.js";
31
31
  import "../chunk-UUKHQUSF.js";
32
32
  import "../chunk-WVVEOCEH.js";
33
- import "../chunk-74HXF5GF.js";
33
+ import "../chunk-2EAVEFWY.js";
34
34
  import "../chunk-AG43RS4Q.js";
35
35
  import "../chunk-QVWYTQKL.js";
36
36
  import "../chunk-UAMI54FE.js";
@@ -56,8 +56,8 @@ import "../chunk-ZCJWOHFN.js";
56
56
  import "../chunk-PS6UJZVH.js";
57
57
  import "../chunk-XR733AKC.js";
58
58
  import "../chunk-BYC6QID5.js";
59
- import "../chunk-CQLRGYHM.js";
60
- import "../chunk-KBJZUVLM.js";
59
+ import "../chunk-QNIZDGFV.js";
60
+ import "../chunk-F4VE3THQ.js";
61
61
  import "../chunk-TURMALTW.js";
62
62
  import "../chunk-MXSJF6TW.js";
63
63
  import "../chunk-BMAZBFUU.js";
@@ -75,7 +75,8 @@ function Card(props) {
75
75
  paddingBottom,
76
76
  paddingTop,
77
77
  paddingLeft,
78
- paddingRight
78
+ paddingRight,
79
+ elevation = 4
79
80
  } = _a, rest = __objRest(_a, [
80
81
  "children",
81
82
  "selected",
@@ -86,7 +87,8 @@ function Card(props) {
86
87
  "paddingBottom",
87
88
  "paddingTop",
88
89
  "paddingLeft",
89
- "paddingRight"
90
+ "paddingRight",
91
+ "elevation"
90
92
  ]);
91
93
  const CardComponent = props.as || "div";
92
94
  const anyPaddingPropSpecified = padding !== void 0 || paddingX !== void 0 || paddingY !== void 0 || paddingBottom !== void 0 || paddingTop !== void 0 || paddingLeft !== void 0 || paddingRight !== void 0;
@@ -110,6 +112,10 @@ function Card(props) {
110
112
  "rounded-sm",
111
113
  paddingClasses,
112
114
  selected ? "border-2 border-border-primary-focus" : "border border-border-primary-normal",
115
+ elevation === 0 && "shadow-none",
116
+ elevation === 2 && "shadow-2",
117
+ elevation === 4 && "shadow-4",
118
+ elevation === 16 && "shadow-16",
113
119
  rest.className
114
120
  ),
115
121
  children
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Card
3
- } from "../chunk-KBJZUVLM.js";
3
+ } from "../chunk-F4VE3THQ.js";
4
4
  import "../chunk-ORMEWXMH.js";
5
5
  export {
6
6
  Card
@@ -3847,16 +3847,7 @@ var Select = (_a) => {
3847
3847
  var _a2;
3848
3848
  const inputRef = (0, import_react17.useRef)(null);
3849
3849
  const inputContainerRef = (0, import_react17.useRef)(null);
3850
- const preventFocusOnInitialRender = (0, import_react17.useRef)(true);
3851
3850
  const [show, setShow] = (0, import_react17.useState)(false);
3852
- (0, import_react17.useEffect)(() => {
3853
- var _a3;
3854
- if (preventFocusOnInitialRender.current) {
3855
- preventFocusOnInitialRender.current = false;
3856
- return;
3857
- }
3858
- (_a3 = inputRef.current) == null ? void 0 : _a3.focus();
3859
- }, [value]);
3860
3851
  return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_jsx_runtime17.Fragment, { children: [
3861
3852
  /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
3862
3853
  InputBase,
@@ -5204,7 +5195,8 @@ var ModalHeader = ({
5204
5195
  id,
5205
5196
  testid,
5206
5197
  headerClassname,
5207
- titleAs: TitleComponent
5198
+ titleAs: TitleComponent,
5199
+ headerIconClassname
5208
5200
  }) => {
5209
5201
  const Title = TitleComponent || Heading2;
5210
5202
  return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
@@ -5242,7 +5234,16 @@ var ModalHeader = ({
5242
5234
  iconOnly: true,
5243
5235
  variant: "tertiary",
5244
5236
  onClick: onClose,
5245
- leftIcon: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Icon, { name: "close", size: 24 }) })
5237
+ leftIcon: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
5238
+ "span",
5239
+ {
5240
+ className: (0, import_clsx25.default)(
5241
+ "contents",
5242
+ headerIconClassname != null ? headerIconClassname : "text-icon-primary-normal"
5243
+ ),
5244
+ children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Icon, { name: "close", size: 24 })
5245
+ }
5246
+ )
5246
5247
  }
5247
5248
  )
5248
5249
  ]
@@ -5453,6 +5454,7 @@ var Modal = ({
5453
5454
  hideCloseIcon = false,
5454
5455
  headerIcon,
5455
5456
  headerIconAlign,
5457
+ headerIconClassname,
5456
5458
  fixedHeightScrolling = false,
5457
5459
  customActions,
5458
5460
  headerClassname,
@@ -5586,6 +5588,7 @@ var Modal = ({
5586
5588
  headerIcon,
5587
5589
  headerIconAlign,
5588
5590
  headerClassname,
5591
+ headerIconClassname,
5589
5592
  titleAs: TitleComponent
5590
5593
  }
5591
5594
  ),
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  ColumnSelectorMenuOption
3
- } from "../../../chunk-L2IXJSBT.js";
4
- import "../../../chunk-GYU3MQ3R.js";
3
+ } from "../../../chunk-E7ACKOBY.js";
4
+ import "../../../chunk-3UIIKZI7.js";
5
5
  import "../../../chunk-M7INAUAJ.js";
6
6
  import "../../../chunk-URAV33TJ.js";
7
- import "../../../chunk-T5U46JTM.js";
7
+ import "../../../chunk-Y5GD2FJA.js";
8
+ import "../../../chunk-KNDRIRG7.js";
9
+ import "../../../chunk-MBZ55T2D.js";
8
10
  import "../../../chunk-2IKT6IHB.js";
9
11
  import "../../../chunk-YCDDBSVU.js";
10
12
  import "../../../chunk-3X3Y4TMS.js";
11
13
  import "../../../chunk-BQNPOGD5.js";
12
- import "../../../chunk-Y5GD2FJA.js";
13
- import "../../../chunk-MBZ55T2D.js";
14
14
  import "../../../chunk-OX7TDYN4.js";
15
15
  import "../../../chunk-I2L2DXPU.js";
16
16
  import "../../../chunk-5IFPG6TS.js";
@@ -18,17 +18,17 @@ import "../../../chunk-AJ5M6MVX.js";
18
18
  import "../../../chunk-ZILLGHBE.js";
19
19
  import "../../../chunk-AT4AWD6B.js";
20
20
  import "../../../chunk-EWGHVZL5.js";
21
- import "../../../chunk-UF5XGCSF.js";
21
+ import "../../../chunk-FZ2TEKOE.js";
22
22
  import "../../../chunk-FESS4LWU.js";
23
23
  import "../../../chunk-KBIEWFQS.js";
24
24
  import "../../../chunk-NSZTJ5R4.js";
25
25
  import "../../../chunk-LB7UT6F3.js";
26
26
  import "../../../chunk-AS57Y2D3.js";
27
- import "../../../chunk-BZTUQP6P.js";
27
+ import "../../../chunk-CMZIPVZ3.js";
28
28
  import "../../../chunk-4RJKB7LC.js";
29
29
  import "../../../chunk-UUKHQUSF.js";
30
30
  import "../../../chunk-WVVEOCEH.js";
31
- import "../../../chunk-74HXF5GF.js";
31
+ import "../../../chunk-2EAVEFWY.js";
32
32
  import "../../../chunk-AG43RS4Q.js";
33
33
  import "../../../chunk-QVWYTQKL.js";
34
34
  import "../../../chunk-UAMI54FE.js";
@@ -54,8 +54,8 @@ import "../../../chunk-ZCJWOHFN.js";
54
54
  import "../../../chunk-PS6UJZVH.js";
55
55
  import "../../../chunk-XR733AKC.js";
56
56
  import "../../../chunk-BYC6QID5.js";
57
- import "../../../chunk-CQLRGYHM.js";
58
- import "../../../chunk-KBJZUVLM.js";
57
+ import "../../../chunk-QNIZDGFV.js";
58
+ import "../../../chunk-F4VE3THQ.js";
59
59
  import "../../../chunk-TURMALTW.js";
60
60
  import "../../../chunk-MXSJF6TW.js";
61
61
  import "../../../chunk-BMAZBFUU.js";
@@ -3769,16 +3769,7 @@ var Select = (_a) => {
3769
3769
  var _a2;
3770
3770
  const inputRef = (0, import_react16.useRef)(null);
3771
3771
  const inputContainerRef = (0, import_react16.useRef)(null);
3772
- const preventFocusOnInitialRender = (0, import_react16.useRef)(true);
3773
3772
  const [show, setShow] = (0, import_react16.useState)(false);
3774
- (0, import_react16.useEffect)(() => {
3775
- var _a3;
3776
- if (preventFocusOnInitialRender.current) {
3777
- preventFocusOnInitialRender.current = false;
3778
- return;
3779
- }
3780
- (_a3 = inputRef.current) == null ? void 0 : _a3.focus();
3781
- }, [value]);
3782
3773
  return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_jsx_runtime16.Fragment, { children: [
3783
3774
  /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
3784
3775
  InputBase,
@@ -5126,7 +5117,8 @@ var ModalHeader = ({
5126
5117
  id,
5127
5118
  testid,
5128
5119
  headerClassname,
5129
- titleAs: TitleComponent
5120
+ titleAs: TitleComponent,
5121
+ headerIconClassname
5130
5122
  }) => {
5131
5123
  const Title = TitleComponent || Heading2;
5132
5124
  return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
@@ -5164,7 +5156,16 @@ var ModalHeader = ({
5164
5156
  iconOnly: true,
5165
5157
  variant: "tertiary",
5166
5158
  onClick: onClose,
5167
- leftIcon: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Icon, { name: "close", size: 24 }) })
5159
+ leftIcon: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
5160
+ "span",
5161
+ {
5162
+ className: (0, import_clsx25.default)(
5163
+ "contents",
5164
+ headerIconClassname != null ? headerIconClassname : "text-icon-primary-normal"
5165
+ ),
5166
+ children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Icon, { name: "close", size: 24 })
5167
+ }
5168
+ )
5168
5169
  }
5169
5170
  )
5170
5171
  ]
@@ -5375,6 +5376,7 @@ var Modal = ({
5375
5376
  hideCloseIcon = false,
5376
5377
  headerIcon,
5377
5378
  headerIconAlign,
5379
+ headerIconClassname,
5378
5380
  fixedHeightScrolling = false,
5379
5381
  customActions,
5380
5382
  headerClassname,
@@ -5508,6 +5510,7 @@ var Modal = ({
5508
5510
  headerIcon,
5509
5511
  headerIconAlign,
5510
5512
  headerClassname,
5513
+ headerIconClassname,
5511
5514
  titleAs: TitleComponent
5512
5515
  }
5513
5516
  ),
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  ColumnSelectorHeaderCell
3
- } from "../../../chunk-L2IXJSBT.js";
4
- import "../../../chunk-GYU3MQ3R.js";
3
+ } from "../../../chunk-E7ACKOBY.js";
4
+ import "../../../chunk-3UIIKZI7.js";
5
5
  import "../../../chunk-M7INAUAJ.js";
6
6
  import "../../../chunk-URAV33TJ.js";
7
- import "../../../chunk-T5U46JTM.js";
7
+ import "../../../chunk-Y5GD2FJA.js";
8
+ import "../../../chunk-KNDRIRG7.js";
9
+ import "../../../chunk-MBZ55T2D.js";
8
10
  import "../../../chunk-2IKT6IHB.js";
9
11
  import "../../../chunk-YCDDBSVU.js";
10
12
  import "../../../chunk-3X3Y4TMS.js";
11
13
  import "../../../chunk-BQNPOGD5.js";
12
- import "../../../chunk-Y5GD2FJA.js";
13
- import "../../../chunk-MBZ55T2D.js";
14
14
  import "../../../chunk-OX7TDYN4.js";
15
15
  import "../../../chunk-I2L2DXPU.js";
16
16
  import "../../../chunk-5IFPG6TS.js";
@@ -18,17 +18,17 @@ import "../../../chunk-AJ5M6MVX.js";
18
18
  import "../../../chunk-ZILLGHBE.js";
19
19
  import "../../../chunk-AT4AWD6B.js";
20
20
  import "../../../chunk-EWGHVZL5.js";
21
- import "../../../chunk-UF5XGCSF.js";
21
+ import "../../../chunk-FZ2TEKOE.js";
22
22
  import "../../../chunk-FESS4LWU.js";
23
23
  import "../../../chunk-KBIEWFQS.js";
24
24
  import "../../../chunk-NSZTJ5R4.js";
25
25
  import "../../../chunk-LB7UT6F3.js";
26
26
  import "../../../chunk-AS57Y2D3.js";
27
- import "../../../chunk-BZTUQP6P.js";
27
+ import "../../../chunk-CMZIPVZ3.js";
28
28
  import "../../../chunk-4RJKB7LC.js";
29
29
  import "../../../chunk-UUKHQUSF.js";
30
30
  import "../../../chunk-WVVEOCEH.js";
31
- import "../../../chunk-74HXF5GF.js";
31
+ import "../../../chunk-2EAVEFWY.js";
32
32
  import "../../../chunk-AG43RS4Q.js";
33
33
  import "../../../chunk-QVWYTQKL.js";
34
34
  import "../../../chunk-UAMI54FE.js";
@@ -54,8 +54,8 @@ import "../../../chunk-ZCJWOHFN.js";
54
54
  import "../../../chunk-PS6UJZVH.js";
55
55
  import "../../../chunk-XR733AKC.js";
56
56
  import "../../../chunk-BYC6QID5.js";
57
- import "../../../chunk-CQLRGYHM.js";
58
- import "../../../chunk-KBJZUVLM.js";
57
+ import "../../../chunk-QNIZDGFV.js";
58
+ import "../../../chunk-F4VE3THQ.js";
59
59
  import "../../../chunk-TURMALTW.js";
60
60
  import "../../../chunk-MXSJF6TW.js";
61
61
  import "../../../chunk-BMAZBFUU.js";
@@ -3614,16 +3614,7 @@ var Select = (_a) => {
3614
3614
  var _a2;
3615
3615
  const inputRef = (0, import_react15.useRef)(null);
3616
3616
  const inputContainerRef = (0, import_react15.useRef)(null);
3617
- const preventFocusOnInitialRender = (0, import_react15.useRef)(true);
3618
3617
  const [show, setShow] = (0, import_react15.useState)(false);
3619
- (0, import_react15.useEffect)(() => {
3620
- var _a3;
3621
- if (preventFocusOnInitialRender.current) {
3622
- preventFocusOnInitialRender.current = false;
3623
- return;
3624
- }
3625
- (_a3 = inputRef.current) == null ? void 0 : _a3.focus();
3626
- }, [value]);
3627
3618
  return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(import_jsx_runtime15.Fragment, { children: [
3628
3619
  /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
3629
3620
  InputBase,
@@ -4971,7 +4962,8 @@ var ModalHeader = ({
4971
4962
  id,
4972
4963
  testid,
4973
4964
  headerClassname,
4974
- titleAs: TitleComponent
4965
+ titleAs: TitleComponent,
4966
+ headerIconClassname
4975
4967
  }) => {
4976
4968
  const Title = TitleComponent || Heading2;
4977
4969
  return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
@@ -5009,7 +5001,16 @@ var ModalHeader = ({
5009
5001
  iconOnly: true,
5010
5002
  variant: "tertiary",
5011
5003
  onClick: onClose,
5012
- leftIcon: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Icon, { name: "close", size: 24 }) })
5004
+ leftIcon: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
5005
+ "span",
5006
+ {
5007
+ className: (0, import_clsx24.default)(
5008
+ "contents",
5009
+ headerIconClassname != null ? headerIconClassname : "text-icon-primary-normal"
5010
+ ),
5011
+ children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Icon, { name: "close", size: 24 })
5012
+ }
5013
+ )
5013
5014
  }
5014
5015
  )
5015
5016
  ]
@@ -5220,6 +5221,7 @@ var Modal = ({
5220
5221
  hideCloseIcon = false,
5221
5222
  headerIcon,
5222
5223
  headerIconAlign,
5224
+ headerIconClassname,
5223
5225
  fixedHeightScrolling = false,
5224
5226
  customActions,
5225
5227
  headerClassname,
@@ -5353,6 +5355,7 @@ var Modal = ({
5353
5355
  headerIcon,
5354
5356
  headerIconAlign,
5355
5357
  headerClassname,
5358
+ headerIconClassname,
5356
5359
  titleAs: TitleComponent
5357
5360
  }
5358
5361
  ),