@dmsi/wedgekit-react 0.0.691 → 0.0.692

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 (48) hide show
  1. package/dist/{chunk-WAV5PXQI.js → chunk-OX7TDYN4.js} +4 -4
  2. package/dist/{chunk-DZKPU3HG.js → chunk-QTSKA34J.js} +16 -16
  3. package/dist/components/AccessCard.js +1 -1
  4. package/dist/components/Accordion.js +2 -2
  5. package/dist/components/Alert.js +2 -2
  6. package/dist/components/CalendarRange.js +19 -19
  7. package/dist/components/CompactImagesPreview.js +2 -2
  8. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +19 -19
  9. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +19 -19
  10. package/dist/components/DataGrid/PinnedColumns.js +19 -19
  11. package/dist/components/DataGrid/TableBody/LoadingCell.js +19 -19
  12. package/dist/components/DataGrid/TableBody/TableBodyRow.js +19 -19
  13. package/dist/components/DataGrid/TableBody/index.js +19 -19
  14. package/dist/components/DataGrid/index.js +19 -19
  15. package/dist/components/DataGrid/utils.js +19 -19
  16. package/dist/components/DateInput.js +19 -19
  17. package/dist/components/DateRangeInput.js +19 -19
  18. package/dist/components/FilterGroup.js +2 -2
  19. package/dist/components/MobileDataGrid/ColumnList.js +5 -5
  20. package/dist/components/MobileDataGrid/ColumnSelector/index.js +19 -19
  21. package/dist/components/MobileDataGrid/MobileDataGridCard/index.js +4 -4
  22. package/dist/components/MobileDataGrid/MobileDataGridHeader.js +19 -19
  23. package/dist/components/MobileDataGrid/RowDetailModalProvider/ModalContent.js +2 -2
  24. package/dist/components/MobileDataGrid/RowDetailModalProvider/index.js +6 -6
  25. package/dist/components/MobileDataGrid/index.js +19 -19
  26. package/dist/components/Modal.js +3 -3
  27. package/dist/components/NestedMenu.js +4 -4
  28. package/dist/components/Notification.js +3 -3
  29. package/dist/components/PDFViewer/PDFElement.js +2 -2
  30. package/dist/components/PDFViewer/PDFNavigation.js +2 -2
  31. package/dist/components/PDFViewer/index.js +6 -6
  32. package/dist/components/ProductImagePreview/index.js +2 -2
  33. package/dist/components/SimpleTable.js +2 -2
  34. package/dist/components/Stepper.js +1 -1
  35. package/dist/components/Time.js +3 -3
  36. package/dist/components/Upload.cjs +96 -92
  37. package/dist/components/Upload.js +99 -95
  38. package/dist/components/index.js +33 -33
  39. package/package.json +1 -1
  40. package/dist/{chunk-WCBNUS32.js → chunk-63WMDTVQ.js} +3 -3
  41. package/dist/{chunk-NYBPEUKC.js → chunk-7YW4Q7OQ.js} +3 -3
  42. package/dist/{chunk-GWD4XMZA.js → chunk-B2DVT7KT.js} +3 -3
  43. package/dist/{chunk-5GG3FGQS.js → chunk-CQLRGYHM.js} +3 -3
  44. package/dist/{chunk-54PBZBOB.js → chunk-EQ2RAI53.js} +3 -3
  45. package/dist/{chunk-77J763WS.js → chunk-GYU3MQ3R.js} +3 -3
  46. package/dist/{chunk-ZEPEVX5O.js → chunk-I2L2DXPU.js} +6 -6
  47. package/dist/{chunk-NUWWNDEL.js → chunk-SGZCW7HP.js} +3 -3
  48. package/dist/{chunk-QCTZTMHH.js → chunk-TURMALTW.js} +3 -3
@@ -1,12 +1,12 @@
1
- import {
2
- Stack
3
- } from "../chunk-MTGNBARV.js";
4
1
  import {
5
2
  Button
6
3
  } from "../chunk-BMAZBFUU.js";
7
4
  import {
8
5
  Spinner
9
6
  } from "../chunk-SBRRNFOP.js";
7
+ import {
8
+ Stack
9
+ } from "../chunk-MTGNBARV.js";
10
10
  import {
11
11
  Paragraph
12
12
  } from "../chunk-WMPWWFUJ.js";
@@ -24,105 +24,109 @@ import {
24
24
 
25
25
  // src/components/Upload.tsx
26
26
  import clsx from "clsx";
27
+ import { forwardRef } from "react";
27
28
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
28
- function Upload(props) {
29
- const _a = props, {
30
- isLoading,
31
- style,
32
- errorText,
33
- text = "Upload your file",
34
- value,
35
- onRemove,
36
- testid
37
- } = _a, rest = __objRest(_a, [
38
- "isLoading",
39
- "style",
40
- "errorText",
41
- "text",
42
- "value",
43
- "onRemove",
44
- "testid"
45
- ]);
46
- return /* @__PURE__ */ jsxs(
47
- "label",
48
- {
49
- style: __spreadValues({}, style),
50
- className: clsx(
51
- "border border-dashed border-border-primary-normal",
52
- "flex flex-col items-center justify-center",
53
- "p-6",
54
- "cursor-pointer",
55
- "relative",
56
- "w-full h-[166px] desktop:w-[340px] desktop:h-[190px]",
57
- componentGap
58
- ),
59
- "data-testid": testid,
60
- children: [
61
- /* @__PURE__ */ jsx(
62
- "input",
63
- __spreadProps(__spreadValues({}, rest), {
64
- type: "file",
65
- className: "sr-only",
66
- "data-testid": testid ? `${testid}-file-input` : void 0
67
- })
29
+ var Upload = forwardRef(
30
+ function Upload2(props, ref) {
31
+ const _a = props, {
32
+ isLoading,
33
+ style,
34
+ errorText,
35
+ text = "Upload your file",
36
+ value,
37
+ onRemove,
38
+ testid
39
+ } = _a, rest = __objRest(_a, [
40
+ "isLoading",
41
+ "style",
42
+ "errorText",
43
+ "text",
44
+ "value",
45
+ "onRemove",
46
+ "testid"
47
+ ]);
48
+ return /* @__PURE__ */ jsxs(
49
+ "label",
50
+ {
51
+ style: __spreadValues({}, style),
52
+ className: clsx(
53
+ "border border-dashed border-border-primary-normal",
54
+ "flex flex-col items-center justify-center",
55
+ "p-6",
56
+ "cursor-pointer",
57
+ "relative",
58
+ "w-full h-[166px] desktop:w-[340px] desktop:h-[190px]",
59
+ componentGap
68
60
  ),
69
- isLoading && /* @__PURE__ */ jsx(
70
- Stack,
71
- {
72
- centered: true,
73
- items: "center",
74
- justify: "center",
75
- sizing: "container",
76
- padding: true,
77
- children: /* @__PURE__ */ jsx(Spinner, { size: "large" })
78
- }
79
- ),
80
- !value && !isLoading && /* @__PURE__ */ jsxs(Fragment, { children: [
61
+ "data-testid": testid,
62
+ children: [
81
63
  /* @__PURE__ */ jsx(
82
- Icon,
83
- {
84
- testid: testid ? `${testid}-icon` : void 0,
85
- name: "cloud_upload",
86
- className: "text-icon-primary-normal"
87
- }
64
+ "input",
65
+ __spreadProps(__spreadValues({}, rest), {
66
+ ref,
67
+ type: "file",
68
+ className: "sr-only",
69
+ "data-testid": testid ? `${testid}-file-input` : void 0
70
+ })
88
71
  ),
89
- /* @__PURE__ */ jsx(
90
- Paragraph,
72
+ isLoading && /* @__PURE__ */ jsx(
73
+ Stack,
91
74
  {
92
- testid: testid ? `${testid}-text` : void 0,
93
- color: errorText ? "text-primary-error" : "text-secondary-normal",
94
- children: errorText ? errorText : text
95
- }
96
- )
97
- ] }),
98
- value && /* @__PURE__ */ jsxs(Fragment, { children: [
99
- /* @__PURE__ */ jsx(
100
- "img",
101
- {
102
- "data-testid": testid ? `${testid}-uploaded-image` : void 0,
103
- src: value,
104
- alt: "",
105
- className: "absolute inset-0 object-contain object-center max-h-full max-w-full self-center justify-self-center"
75
+ centered: true,
76
+ items: "center",
77
+ justify: "center",
78
+ sizing: "container",
79
+ padding: true,
80
+ children: /* @__PURE__ */ jsx(Spinner, { size: "large" })
106
81
  }
107
82
  ),
108
- /* @__PURE__ */ jsx("div", { className: "absolute right-2 top-2", children: /* @__PURE__ */ jsx(
109
- Button,
110
- {
111
- testid: testid ? `${testid}-remove-image-button` : void 0,
112
- onClick: (e) => {
113
- e.preventDefault();
114
- e.stopPropagation();
115
- onRemove == null ? void 0 : onRemove();
116
- },
117
- iconOnly: true,
118
- leftIcon: /* @__PURE__ */ jsx(Icon, { name: "delete" })
119
- }
120
- ) })
121
- ] })
122
- ]
123
- }
124
- );
125
- }
83
+ !value && !isLoading && /* @__PURE__ */ jsxs(Fragment, { children: [
84
+ /* @__PURE__ */ jsx(
85
+ Icon,
86
+ {
87
+ testid: testid ? `${testid}-icon` : void 0,
88
+ name: "cloud_upload",
89
+ className: "text-icon-primary-normal"
90
+ }
91
+ ),
92
+ /* @__PURE__ */ jsx(
93
+ Paragraph,
94
+ {
95
+ testid: testid ? `${testid}-text` : void 0,
96
+ color: errorText ? "text-primary-error" : "text-secondary-normal",
97
+ children: errorText ? errorText : text
98
+ }
99
+ )
100
+ ] }),
101
+ value && /* @__PURE__ */ jsxs(Fragment, { children: [
102
+ /* @__PURE__ */ jsx(
103
+ "img",
104
+ {
105
+ "data-testid": testid ? `${testid}-uploaded-image` : void 0,
106
+ src: value,
107
+ alt: "",
108
+ className: "absolute inset-0 object-contain object-center max-h-full max-w-full self-center justify-self-center"
109
+ }
110
+ ),
111
+ /* @__PURE__ */ jsx("div", { className: "absolute right-2 top-2", children: /* @__PURE__ */ jsx(
112
+ Button,
113
+ {
114
+ testid: testid ? `${testid}-remove-image-button` : void 0,
115
+ onClick: (e) => {
116
+ e.preventDefault();
117
+ e.stopPropagation();
118
+ onRemove == null ? void 0 : onRemove();
119
+ },
120
+ iconOnly: true,
121
+ leftIcon: /* @__PURE__ */ jsx(Icon, { name: "delete" })
122
+ }
123
+ ) })
124
+ ] })
125
+ ]
126
+ }
127
+ );
128
+ }
129
+ );
126
130
  export {
127
131
  Upload
128
132
  };
@@ -2,13 +2,13 @@ import {
2
2
  DataGrid,
3
3
  DateInput,
4
4
  MobileDataGrid
5
- } from "../chunk-DZKPU3HG.js";
5
+ } from "../chunk-QTSKA34J.js";
6
+ import "../chunk-GYU3MQ3R.js";
6
7
  import "../chunk-M7INAUAJ.js";
7
- import "../chunk-77J763WS.js";
8
8
  import "../chunk-URAV33TJ.js";
9
9
  import {
10
10
  ProductImagePreview
11
- } from "../chunk-GWD4XMZA.js";
11
+ } from "../chunk-B2DVT7KT.js";
12
12
  import "../chunk-YCDDBSVU.js";
13
13
  import "../chunk-3X3Y4TMS.js";
14
14
  import "../chunk-BQNPOGD5.js";
@@ -17,24 +17,24 @@ import {
17
17
  } from "../chunk-Y5GD2FJA.js";
18
18
  import "../chunk-MBZ55T2D.js";
19
19
  import "../chunk-2IKT6IHB.js";
20
- import "../chunk-WAV5PXQI.js";
21
- import "../chunk-ZEPEVX5O.js";
20
+ import "../chunk-OX7TDYN4.js";
21
+ import "../chunk-I2L2DXPU.js";
22
22
  import {
23
23
  useGridContext
24
24
  } from "../chunk-5IFPG6TS.js";
25
- import "../chunk-ZILLGHBE.js";
26
25
  import "../chunk-AJ5M6MVX.js";
27
- import "../chunk-EWGHVZL5.js";
28
- import {
29
- SkeletonParagraph
30
- } from "../chunk-L3BXRDLP.js";
26
+ import "../chunk-ZILLGHBE.js";
31
27
  import "../chunk-AT4AWD6B.js";
28
+ import "../chunk-EWGHVZL5.js";
32
29
  import {
33
30
  Select
34
31
  } from "../chunk-UF5XGCSF.js";
35
32
  import {
36
33
  SimpleTable
37
- } from "../chunk-WCBNUS32.js";
34
+ } from "../chunk-63WMDTVQ.js";
35
+ import {
36
+ SkeletonParagraph
37
+ } from "../chunk-L3BXRDLP.js";
38
38
  import {
39
39
  OrderCheckIcon
40
40
  } from "../chunk-34VEVX5H.js";
@@ -50,10 +50,10 @@ import "../chunk-UUKHQUSF.js";
50
50
  import "../chunk-WVVEOCEH.js";
51
51
  import "../chunk-74HXF5GF.js";
52
52
  import "../chunk-AG43RS4Q.js";
53
+ import "../chunk-QVWYTQKL.js";
53
54
  import {
54
55
  ListGroup
55
56
  } from "../chunk-UAMI54FE.js";
56
- import "../chunk-QVWYTQKL.js";
57
57
  import {
58
58
  useTableEditingContext
59
59
  } from "../chunk-SJZNVG4N.js";
@@ -61,9 +61,6 @@ import {
61
61
  EmptyCartIcon
62
62
  } from "../chunk-75USUR3I.js";
63
63
  import "../chunk-BWPNXY7T.js";
64
- import {
65
- CompactImagesPreview
66
- } from "../chunk-NUWWNDEL.js";
67
64
  import {
68
65
  DataCellHeader,
69
66
  DataGridCell,
@@ -87,24 +84,12 @@ import {
87
84
  Label
88
85
  } from "../chunk-HXGJVYGQ.js";
89
86
  import "../chunk-WVUIIBRR.js";
90
- import {
91
- Accordion
92
- } from "../chunk-5GG3FGQS.js";
93
- import {
94
- Alert
95
- } from "../chunk-QCTZTMHH.js";
96
- import "../chunk-MXSJF6TW.js";
97
- import "../chunk-MTGNBARV.js";
98
- import {
99
- Button
100
- } from "../chunk-BMAZBFUU.js";
101
- import "../chunk-SBRRNFOP.js";
102
- import {
103
- Card
104
- } from "../chunk-KBJZUVLM.js";
105
87
  import {
106
88
  Checkbox
107
89
  } from "../chunk-M7WHWZ2J.js";
90
+ import {
91
+ CompactImagesPreview
92
+ } from "../chunk-SGZCW7HP.js";
108
93
  import "../chunk-ZERLFS2T.js";
109
94
  import "../chunk-VXWSAIB5.js";
110
95
  import "../chunk-X4VZXHQL.js";
@@ -114,15 +99,30 @@ import {
114
99
  } from "../chunk-XJF4S3RB.js";
115
100
  import "../chunk-ZCJWOHFN.js";
116
101
  import "../chunk-PS6UJZVH.js";
117
- import {
118
- Paragraph
119
- } from "../chunk-WMPWWFUJ.js";
120
102
  import {
121
103
  AccessCardGroup
122
104
  } from "../chunk-XR733AKC.js";
123
105
  import {
124
106
  Subheader
125
107
  } from "../chunk-BYC6QID5.js";
108
+ import {
109
+ Accordion
110
+ } from "../chunk-CQLRGYHM.js";
111
+ import {
112
+ Card
113
+ } from "../chunk-KBJZUVLM.js";
114
+ import {
115
+ Alert
116
+ } from "../chunk-TURMALTW.js";
117
+ import "../chunk-MXSJF6TW.js";
118
+ import {
119
+ Button
120
+ } from "../chunk-BMAZBFUU.js";
121
+ import "../chunk-SBRRNFOP.js";
122
+ import "../chunk-MTGNBARV.js";
123
+ import {
124
+ Paragraph
125
+ } from "../chunk-WMPWWFUJ.js";
126
126
  import {
127
127
  Icon
128
128
  } from "../chunk-NKUETCDA.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.691",
4
+ "version": "0.0.692",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "build": "tsup",
@@ -1,9 +1,9 @@
1
- import {
2
- Stack
3
- } from "./chunk-MTGNBARV.js";
4
1
  import {
5
2
  Subheader
6
3
  } from "./chunk-BYC6QID5.js";
4
+ import {
5
+ Stack
6
+ } from "./chunk-MTGNBARV.js";
7
7
 
8
8
  // src/components/SimpleTable.tsx
9
9
  import clsx from "clsx";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  Heading3
3
3
  } from "./chunk-MXSJF6TW.js";
4
- import {
5
- Stack
6
- } from "./chunk-MTGNBARV.js";
7
4
  import {
8
5
  Button
9
6
  } from "./chunk-BMAZBFUU.js";
7
+ import {
8
+ Stack
9
+ } from "./chunk-MTGNBARV.js";
10
10
  import {
11
11
  Paragraph
12
12
  } from "./chunk-WMPWWFUJ.js";
@@ -16,12 +16,12 @@ import {
16
16
  import {
17
17
  Grid
18
18
  } from "./chunk-BWPNXY7T.js";
19
- import {
20
- Stack
21
- } from "./chunk-MTGNBARV.js";
22
19
  import {
23
20
  useMatchesMobile
24
21
  } from "./chunk-ZERLFS2T.js";
22
+ import {
23
+ Stack
24
+ } from "./chunk-MTGNBARV.js";
25
25
 
26
26
  // src/components/ProductImagePreview/useProductImagePreview.ts
27
27
  import { useCallback, useEffect, useRef, useState, useMemo } from "react";
@@ -1,9 +1,9 @@
1
- import {
2
- Stack
3
- } from "./chunk-MTGNBARV.js";
4
1
  import {
5
2
  Card
6
3
  } from "./chunk-KBJZUVLM.js";
4
+ import {
5
+ Stack
6
+ } from "./chunk-MTGNBARV.js";
7
7
  import {
8
8
  Paragraph
9
9
  } from "./chunk-WMPWWFUJ.js";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  PdfPage
3
3
  } from "./chunk-VJVY6NPF.js";
4
- import {
5
- Stack
6
- } from "./chunk-MTGNBARV.js";
7
4
  import {
8
5
  Spinner
9
6
  } from "./chunk-SBRRNFOP.js";
7
+ import {
8
+ Stack
9
+ } from "./chunk-MTGNBARV.js";
10
10
 
11
11
  // src/components/PDFViewer/PDFElement.tsx
12
12
  import { usePdf } from "@mikecousins/react-pdf";
@@ -10,12 +10,12 @@ import {
10
10
  import {
11
11
  Heading2
12
12
  } from "./chunk-MXSJF6TW.js";
13
- import {
14
- Stack
15
- } from "./chunk-MTGNBARV.js";
16
13
  import {
17
14
  Button
18
15
  } from "./chunk-BMAZBFUU.js";
16
+ import {
17
+ Stack
18
+ } from "./chunk-MTGNBARV.js";
19
19
  import {
20
20
  Icon
21
21
  } from "./chunk-NKUETCDA.js";
@@ -4,18 +4,18 @@ import {
4
4
  import {
5
5
  MobileDataGridColumn
6
6
  } from "./chunk-ZILLGHBE.js";
7
- import {
8
- Stack
9
- } from "./chunk-MTGNBARV.js";
10
7
  import {
11
8
  Checkbox
12
9
  } from "./chunk-M7WHWZ2J.js";
13
- import {
14
- Paragraph
15
- } from "./chunk-WMPWWFUJ.js";
16
10
  import {
17
11
  Subheader
18
12
  } from "./chunk-BYC6QID5.js";
13
+ import {
14
+ Stack
15
+ } from "./chunk-MTGNBARV.js";
16
+ import {
17
+ Paragraph
18
+ } from "./chunk-WMPWWFUJ.js";
19
19
  import {
20
20
  Icon
21
21
  } from "./chunk-NKUETCDA.js";
@@ -1,9 +1,9 @@
1
- import {
2
- Stack
3
- } from "./chunk-MTGNBARV.js";
4
1
  import {
5
2
  useMatchesMobile
6
3
  } from "./chunk-ZERLFS2T.js";
4
+ import {
5
+ Stack
6
+ } from "./chunk-MTGNBARV.js";
7
7
 
8
8
  // src/components/CompactImagesPreview.tsx
9
9
  import { useCallback } from "react";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  Heading2
3
3
  } from "./chunk-MXSJF6TW.js";
4
- import {
5
- Stack
6
- } from "./chunk-MTGNBARV.js";
7
4
  import {
8
5
  Button
9
6
  } from "./chunk-BMAZBFUU.js";
7
+ import {
8
+ Stack
9
+ } from "./chunk-MTGNBARV.js";
10
10
  import {
11
11
  Paragraph
12
12
  } from "./chunk-WMPWWFUJ.js";