@dmsi/wedgekit-react 0.0.740 → 0.0.742

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 (49) 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-ATU66ZF5.js → chunk-E7ACKOBY.js} +1 -1
  5. package/dist/{chunk-KBJZUVLM.js → chunk-F4VE3THQ.js} +8 -2
  6. package/dist/{chunk-CQLRGYHM.js → chunk-QNIZDGFV.js} +1 -1
  7. package/dist/components/Accordion.cjs +8 -2
  8. package/dist/components/Accordion.js +2 -2
  9. package/dist/components/CalendarRange.cjs +14 -2
  10. package/dist/components/CalendarRange.js +6 -6
  11. package/dist/components/Card.cjs +8 -2
  12. package/dist/components/Card.js +1 -1
  13. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.cjs +14 -2
  14. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +6 -6
  15. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +14 -2
  16. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +6 -6
  17. package/dist/components/DataGrid/PinnedColumns.cjs +14 -2
  18. package/dist/components/DataGrid/PinnedColumns.js +6 -6
  19. package/dist/components/DataGrid/TableBody/LoadingCell.cjs +14 -2
  20. package/dist/components/DataGrid/TableBody/LoadingCell.js +6 -6
  21. package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +14 -2
  22. package/dist/components/DataGrid/TableBody/TableBodyRow.js +6 -6
  23. package/dist/components/DataGrid/TableBody/index.cjs +14 -2
  24. package/dist/components/DataGrid/TableBody/index.js +6 -6
  25. package/dist/components/DataGrid/index.cjs +14 -2
  26. package/dist/components/DataGrid/index.js +6 -6
  27. package/dist/components/DataGrid/utils.cjs +14 -2
  28. package/dist/components/DataGrid/utils.js +6 -6
  29. package/dist/components/DateInput.cjs +14 -2
  30. package/dist/components/DateInput.js +6 -6
  31. package/dist/components/DateRangeInput.cjs +14 -2
  32. package/dist/components/DateRangeInput.js +6 -6
  33. package/dist/components/MobileDataGrid/ColumnSelector/index.cjs +14 -2
  34. package/dist/components/MobileDataGrid/ColumnSelector/index.js +6 -6
  35. package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +14 -2
  36. package/dist/components/MobileDataGrid/MobileDataGridHeader.js +6 -6
  37. package/dist/components/MobileDataGrid/RowDetailModalProvider/index.cjs +14 -2
  38. package/dist/components/MobileDataGrid/RowDetailModalProvider/index.js +3 -3
  39. package/dist/components/MobileDataGrid/index.cjs +14 -2
  40. package/dist/components/MobileDataGrid/index.js +6 -6
  41. package/dist/components/Modal.cjs +14 -2
  42. package/dist/components/Modal.js +2 -2
  43. package/dist/components/ModalHeader.cjs +12 -2
  44. package/dist/components/ModalHeader.js +1 -1
  45. package/dist/components/PDFViewer/index.cjs +14 -2
  46. package/dist/components/PDFViewer/index.js +2 -2
  47. package/dist/components/index.cjs +22 -4
  48. package/dist/components/index.js +6 -6
  49. package/package.json +1 -1
@@ -6156,7 +6156,8 @@ var ModalHeader = ({
6156
6156
  id,
6157
6157
  testid,
6158
6158
  headerClassname,
6159
- titleAs: TitleComponent
6159
+ titleAs: TitleComponent,
6160
+ headerIconClassname
6160
6161
  }) => {
6161
6162
  const Title = TitleComponent || Heading2;
6162
6163
  return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
@@ -6194,7 +6195,16 @@ var ModalHeader = ({
6194
6195
  iconOnly: true,
6195
6196
  variant: "tertiary",
6196
6197
  onClick: onClose,
6197
- leftIcon: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Icon, { name: "close", size: 24 }) })
6198
+ leftIcon: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
6199
+ "span",
6200
+ {
6201
+ className: (0, import_clsx36.default)(
6202
+ "contents",
6203
+ headerIconClassname != null ? headerIconClassname : "text-icon-primary-normal"
6204
+ ),
6205
+ children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Icon, { name: "close", size: 24 })
6206
+ }
6207
+ )
6198
6208
  }
6199
6209
  )
6200
6210
  ]
@@ -6405,6 +6415,7 @@ var Modal = ({
6405
6415
  hideCloseIcon = false,
6406
6416
  headerIcon,
6407
6417
  headerIconAlign,
6418
+ headerIconClassname,
6408
6419
  fixedHeightScrolling = false,
6409
6420
  customActions,
6410
6421
  headerClassname,
@@ -6538,6 +6549,7 @@ var Modal = ({
6538
6549
  headerIcon,
6539
6550
  headerIconAlign,
6540
6551
  headerClassname,
6552
+ headerIconClassname,
6541
6553
  titleAs: TitleComponent
6542
6554
  }
6543
6555
  ),
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  MobileDataGrid
3
- } from "../../chunk-ATU66ZF5.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
7
  import "../../chunk-CUAF4FU4.js";
@@ -24,11 +24,11 @@ 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";
@@ -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
  ),
@@ -12,11 +12,11 @@ import "../../chunk-VJVY6NPF.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";
@@ -5167,7 +5167,8 @@ function Card(props) {
5167
5167
  paddingBottom,
5168
5168
  paddingTop,
5169
5169
  paddingLeft,
5170
- paddingRight
5170
+ paddingRight,
5171
+ elevation = 4
5171
5172
  } = _a, rest = __objRest(_a, [
5172
5173
  "children",
5173
5174
  "selected",
@@ -5178,7 +5179,8 @@ function Card(props) {
5178
5179
  "paddingBottom",
5179
5180
  "paddingTop",
5180
5181
  "paddingLeft",
5181
- "paddingRight"
5182
+ "paddingRight",
5183
+ "elevation"
5182
5184
  ]);
5183
5185
  const CardComponent = props.as || "div";
5184
5186
  const anyPaddingPropSpecified = padding !== void 0 || paddingX !== void 0 || paddingY !== void 0 || paddingBottom !== void 0 || paddingTop !== void 0 || paddingLeft !== void 0 || paddingRight !== void 0;
@@ -5202,6 +5204,10 @@ function Card(props) {
5202
5204
  "rounded-sm",
5203
5205
  paddingClasses,
5204
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",
5205
5211
  rest.className
5206
5212
  ),
5207
5213
  children
@@ -5940,7 +5946,8 @@ var ModalHeader = ({
5940
5946
  id,
5941
5947
  testid,
5942
5948
  headerClassname,
5943
- titleAs: TitleComponent
5949
+ titleAs: TitleComponent,
5950
+ headerIconClassname
5944
5951
  }) => {
5945
5952
  const Title = TitleComponent || Heading2;
5946
5953
  return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
@@ -5978,7 +5985,16 @@ var ModalHeader = ({
5978
5985
  iconOnly: true,
5979
5986
  variant: "tertiary",
5980
5987
  onClick: onClose,
5981
- 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
+ )
5982
5998
  }
5983
5999
  )
5984
6000
  ]
@@ -6189,6 +6205,7 @@ var Modal = ({
6189
6205
  hideCloseIcon = false,
6190
6206
  headerIcon,
6191
6207
  headerIconAlign,
6208
+ headerIconClassname,
6192
6209
  fixedHeightScrolling = false,
6193
6210
  customActions,
6194
6211
  headerClassname,
@@ -6322,6 +6339,7 @@ var Modal = ({
6322
6339
  headerIcon,
6323
6340
  headerIconAlign,
6324
6341
  headerClassname,
6342
+ headerIconClassname,
6325
6343
  titleAs: TitleComponent
6326
6344
  }
6327
6345
  ),
@@ -2,8 +2,8 @@ import {
2
2
  DataGrid,
3
3
  DateInput,
4
4
  MobileDataGrid
5
- } from "../chunk-ATU66ZF5.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
9
  import {
@@ -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.740",
4
+ "version": "0.0.742",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "build": "tsup",