@dmsi/wedgekit-react 0.0.475 → 0.0.477

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 (77) hide show
  1. package/dist/{chunk-IG2YUDHI.js → chunk-24K4HHV5.js} +4 -4
  2. package/dist/{chunk-OEMLNGE2.js → chunk-4Q7T4GJ2.js} +2 -2
  3. package/dist/chunk-4UH72JT2.js +104 -0
  4. package/dist/{chunk-KJNK7KEV.js → chunk-QMSPTD6L.js} +1 -1
  5. package/dist/{chunk-GTPSPGSJ.js → chunk-WIDUWFLX.js} +761 -47
  6. package/dist/components/Accordion.js +2 -2
  7. package/dist/components/Alert.cjs +787 -0
  8. package/dist/components/Alert.js +13 -0
  9. package/dist/components/CalendarRange.cjs +465 -160
  10. package/dist/components/CalendarRange.css +3 -0
  11. package/dist/components/CalendarRange.js +19 -19
  12. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.cjs +918 -148
  13. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.css +3 -0
  14. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +19 -18
  15. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +928 -158
  16. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.css +3 -0
  17. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +19 -18
  18. package/dist/components/DataGrid/PinnedColumns.cjs +943 -173
  19. package/dist/components/DataGrid/PinnedColumns.css +3 -0
  20. package/dist/components/DataGrid/PinnedColumns.js +19 -18
  21. package/dist/components/DataGrid/TableBody/LoadingCell.cjs +919 -149
  22. package/dist/components/DataGrid/TableBody/LoadingCell.css +3 -0
  23. package/dist/components/DataGrid/TableBody/LoadingCell.js +19 -18
  24. package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +925 -155
  25. package/dist/components/DataGrid/TableBody/TableBodyRow.css +3 -0
  26. package/dist/components/DataGrid/TableBody/TableBodyRow.js +19 -18
  27. package/dist/components/DataGrid/TableBody/index.cjs +940 -170
  28. package/dist/components/DataGrid/TableBody/index.css +3 -0
  29. package/dist/components/DataGrid/TableBody/index.js +19 -18
  30. package/dist/components/DataGrid/index.cjs +1029 -259
  31. package/dist/components/DataGrid/index.css +3 -0
  32. package/dist/components/DataGrid/index.js +19 -18
  33. package/dist/components/DataGrid/utils.cjs +919 -149
  34. package/dist/components/DataGrid/utils.css +3 -0
  35. package/dist/components/DataGrid/utils.js +19 -18
  36. package/dist/components/DataGridCell.js +2 -2
  37. package/dist/components/DateInput.cjs +70 -65
  38. package/dist/components/DateInput.css +3 -0
  39. package/dist/components/DateInput.js +25 -271
  40. package/dist/components/DateRangeInput.cjs +419 -184
  41. package/dist/components/DateRangeInput.css +3 -0
  42. package/dist/components/DateRangeInput.js +19 -19
  43. package/dist/components/FilterGroup.js +6 -6
  44. package/dist/components/MobileDataGrid/ColumnList.js +3 -3
  45. package/dist/components/MobileDataGrid/ColumnSelector/index.cjs +925 -155
  46. package/dist/components/MobileDataGrid/ColumnSelector/index.css +3 -0
  47. package/dist/components/MobileDataGrid/ColumnSelector/index.js +19 -18
  48. package/dist/components/MobileDataGrid/MobileDataGridCard/index.js +2 -2
  49. package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +923 -153
  50. package/dist/components/MobileDataGrid/MobileDataGridHeader.css +3 -0
  51. package/dist/components/MobileDataGrid/MobileDataGridHeader.js +19 -18
  52. package/dist/components/MobileDataGrid/RowDetailModalProvider/ModalContent.js +2 -2
  53. package/dist/components/MobileDataGrid/RowDetailModalProvider/index.js +6 -6
  54. package/dist/components/MobileDataGrid/index.cjs +973 -203
  55. package/dist/components/MobileDataGrid/index.css +3 -0
  56. package/dist/components/MobileDataGrid/index.js +19 -18
  57. package/dist/components/Modal.js +3 -3
  58. package/dist/components/Notification.js +3 -3
  59. package/dist/components/PDFViewer/PDFNavigation.js +2 -2
  60. package/dist/components/PDFViewer/index.js +6 -6
  61. package/dist/components/SideMenuItem.js +3 -3
  62. package/dist/components/Swatch.js +3 -3
  63. package/dist/components/Upload.js +3 -3
  64. package/dist/components/index.cjs +1212 -363
  65. package/dist/components/index.css +3 -0
  66. package/dist/components/index.js +34 -28
  67. package/dist/index.css +3 -0
  68. package/package.json +1 -1
  69. package/src/components/Alert.tsx +81 -0
  70. package/src/components/index.ts +2 -0
  71. package/dist/chunk-X35NLL3N.js +0 -493
  72. package/dist/{chunk-IT4VFU6T.js → chunk-3DEYCNUE.js} +3 -3
  73. package/dist/{chunk-GTBGPBH6.js → chunk-B53XDCLO.js} +3 -3
  74. package/dist/{chunk-ZQSD74IJ.js → chunk-IY7SXEVY.js} +3 -3
  75. package/dist/{chunk-BFFNSUNS.js → chunk-QBSEKZWX.js} +3 -3
  76. package/dist/{chunk-NIWXVOBW.js → chunk-X67L3NZI.js} +3 -3
  77. package/dist/{chunk-TVXBP5CW.js → chunk-XIXQUEYC.js} +3 -3
@@ -1,15 +1,15 @@
1
+ import {
2
+ PdfNavigation
3
+ } from "./chunk-B53XDCLO.js";
1
4
  import {
2
5
  DownloadIcon
3
6
  } from "./chunk-JUFBGNWW.js";
4
7
  import {
5
8
  PDFElement
6
9
  } from "./chunk-YNKN6RKF.js";
7
- import {
8
- PdfNavigation
9
- } from "./chunk-GTBGPBH6.js";
10
10
  import {
11
11
  Modal
12
- } from "./chunk-NIWXVOBW.js";
12
+ } from "./chunk-X67L3NZI.js";
13
13
 
14
14
  // src/components/PDFViewer/index.tsx
15
15
  import { useCallback, useState } from "react";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  ModalContent
3
- } from "./chunk-IT4VFU6T.js";
3
+ } from "./chunk-3DEYCNUE.js";
4
4
  import {
5
5
  useGridContext
6
6
  } from "./chunk-5IFPG6TS.js";
7
7
  import {
8
8
  Modal
9
- } from "./chunk-NIWXVOBW.js";
9
+ } from "./chunk-X67L3NZI.js";
10
10
  import {
11
11
  Heading2
12
12
  } from "./chunk-H2KC5XUY.js";
@@ -0,0 +1,104 @@
1
+ import {
2
+ Heading2
3
+ } from "./chunk-H2KC5XUY.js";
4
+ import {
5
+ Paragraph
6
+ } from "./chunk-ZSETMD4A.js";
7
+ import {
8
+ Stack
9
+ } from "./chunk-DORD2EBO.js";
10
+ import {
11
+ Icon
12
+ } from "./chunk-NKUETCDA.js";
13
+ import {
14
+ Button
15
+ } from "./chunk-LPY6PMAY.js";
16
+ import {
17
+ __objRest,
18
+ __spreadProps,
19
+ __spreadValues
20
+ } from "./chunk-ORMEWXMH.js";
21
+
22
+ // src/components/Alert.tsx
23
+ import clsx from "clsx";
24
+ import { useCallback } from "react";
25
+ import { jsx, jsxs } from "react/jsx-runtime";
26
+ function Alert(_a) {
27
+ var _b = _a, {
28
+ id,
29
+ testId,
30
+ variant,
31
+ title,
32
+ message,
33
+ dismissible = false,
34
+ onClose
35
+ } = _b, rest = __objRest(_b, [
36
+ "id",
37
+ "testId",
38
+ "variant",
39
+ "title",
40
+ "message",
41
+ "dismissible",
42
+ "onClose"
43
+ ]);
44
+ const isError = variant === "error";
45
+ const handleClose = useCallback(() => {
46
+ if (onClose) onClose();
47
+ }, [onClose]);
48
+ return /* @__PURE__ */ jsxs(
49
+ Stack,
50
+ __spreadProps(__spreadValues({
51
+ id,
52
+ "data-testid": testId,
53
+ sizing: "container",
54
+ backgroundColor: "background-grouped-primary-normal",
55
+ borderColor: "border-primary-normal",
56
+ items: "start",
57
+ elevation: 4,
58
+ rounded: true,
59
+ padding: true,
60
+ horizontal: true,
61
+ horizontalMobile: true
62
+ }, rest), {
63
+ children: [
64
+ /* @__PURE__ */ jsx(
65
+ "div",
66
+ {
67
+ className: clsx("min-w-[2px] min-h-full flex", {
68
+ "bg-background-critical-normal": isError,
69
+ "bg-background-warning-normal": !isError
70
+ })
71
+ }
72
+ ),
73
+ /* @__PURE__ */ jsx(
74
+ "span",
75
+ {
76
+ className: clsx({
77
+ "text-icon-critical-normal": isError,
78
+ "text-icon-warning-normal": !isError
79
+ }),
80
+ children: /* @__PURE__ */ jsx(Icon, { name: "warning" })
81
+ }
82
+ ),
83
+ /* @__PURE__ */ jsxs(Stack, { flexGrow: 1, sizing: "component", children: [
84
+ /* @__PURE__ */ jsx(Heading2, { children: title }),
85
+ /* @__PURE__ */ jsx(Paragraph, { children: message })
86
+ ] }),
87
+ dismissible && /* @__PURE__ */ jsx(
88
+ Button,
89
+ {
90
+ "aria-label": "Dismiss alert",
91
+ iconOnly: true,
92
+ variant: "tertiary",
93
+ leftIcon: /* @__PURE__ */ jsx(Icon, { name: "close" }),
94
+ onClick: handleClose
95
+ }
96
+ )
97
+ ]
98
+ })
99
+ );
100
+ }
101
+
102
+ export {
103
+ Alert
104
+ };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  MobileDataGridCard
3
- } from "./chunk-TVXBP5CW.js";
3
+ } from "./chunk-XIXQUEYC.js";
4
4
  import {
5
5
  useGridContext
6
6
  } from "./chunk-5IFPG6TS.js";