@dmsi/wedgekit-react 0.0.842 → 0.0.844
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.
- package/dist/{chunk-6NDQCVAN.js → chunk-RTZO2OU7.js} +1 -1
- package/dist/{chunk-5BDLTYAC.js → chunk-UIF3AIAT.js} +1 -1
- package/dist/{chunk-AS57Y2D3.js → chunk-ZL6NXIGS.js} +5 -1
- package/dist/components/CalendarRange.cjs +2 -1
- package/dist/components/CalendarRange.js +9 -9
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.cjs +2 -1
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +9 -9
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +2 -1
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +9 -9
- package/dist/components/DataGrid/PinnedColumns.cjs +2 -1
- package/dist/components/DataGrid/PinnedColumns.js +9 -9
- package/dist/components/DataGrid/TableBody/LoadingCell.cjs +2 -1
- package/dist/components/DataGrid/TableBody/LoadingCell.js +9 -9
- package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +2 -1
- package/dist/components/DataGrid/TableBody/TableBodyRow.js +9 -9
- package/dist/components/DataGrid/TableBody/index.cjs +2 -1
- package/dist/components/DataGrid/TableBody/index.js +9 -9
- package/dist/components/DataGrid/index.cjs +2 -1
- package/dist/components/DataGrid/index.js +9 -9
- package/dist/components/DataGrid/utils.cjs +2 -1
- package/dist/components/DataGrid/utils.js +9 -9
- package/dist/components/DateInput.cjs +2 -1
- package/dist/components/DateInput.js +9 -9
- package/dist/components/DateRangeInput.cjs +2 -1
- package/dist/components/DateRangeInput.js +9 -9
- package/dist/components/MobileDataGrid/ColumnSelector/index.cjs +2 -1
- package/dist/components/MobileDataGrid/ColumnSelector/index.js +9 -9
- package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +2 -1
- package/dist/components/MobileDataGrid/MobileDataGridHeader.js +9 -9
- package/dist/components/MobileDataGrid/index.cjs +2 -1
- package/dist/components/MobileDataGrid/index.js +9 -9
- package/dist/components/PDFViewer/DownloadIcon.cjs +43 -9
- package/dist/components/PDFViewer/DownloadIcon.js +6 -2
- package/dist/components/PDFViewer/index.cjs +2 -1
- package/dist/components/PDFViewer/index.js +5 -5
- package/dist/components/Password.cjs +45 -11
- package/dist/components/Password.js +4 -1
- package/dist/components/ProductImagePreview/index.js +3 -3
- package/dist/components/Stepper.cjs +43 -9
- package/dist/components/Stepper.js +4 -1
- package/dist/components/Tooltip.cjs +41 -9
- package/dist/components/Tooltip.js +5 -1
- package/dist/components/index.cjs +2 -1
- package/dist/components/index.js +11 -11
- package/package.json +1 -1
- package/dist/{chunk-GQDUOL5Y.js → chunk-Y75MQKNY.js} +6 -6
|
@@ -35,7 +35,7 @@ __export(Tooltip_exports, {
|
|
|
35
35
|
});
|
|
36
36
|
module.exports = __toCommonJS(Tooltip_exports);
|
|
37
37
|
var import_clsx2 = __toESM(require("clsx"), 1);
|
|
38
|
-
var
|
|
38
|
+
var import_react6 = require("react");
|
|
39
39
|
var import_react_dom = require("react-dom");
|
|
40
40
|
|
|
41
41
|
// src/classNames.ts
|
|
@@ -178,6 +178,37 @@ var gapUsingContainerPadding = (0, import_clsx.default)(
|
|
|
178
178
|
"gap-mobile-container-padding desktop:gap-desktop-container-padding compact:gap-desktop-compact-container-padding"
|
|
179
179
|
);
|
|
180
180
|
|
|
181
|
+
// src/hooks/useKeydown.ts
|
|
182
|
+
var import_react = require("react");
|
|
183
|
+
|
|
184
|
+
// src/hooks/useInfiniteScroll.tsx
|
|
185
|
+
var import_react2 = require("react");
|
|
186
|
+
|
|
187
|
+
// src/hooks/useMatchesMedia.ts
|
|
188
|
+
var import_react3 = require("react");
|
|
189
|
+
var useMatchesMedia = (query) => {
|
|
190
|
+
const [matches, setMatches] = (0, import_react3.useState)();
|
|
191
|
+
(0, import_react3.useLayoutEffect)(() => {
|
|
192
|
+
const mediaQueryList = window.matchMedia(query);
|
|
193
|
+
const listener = () => setMatches(mediaQueryList.matches);
|
|
194
|
+
listener();
|
|
195
|
+
mediaQueryList.addEventListener("change", listener);
|
|
196
|
+
return () => mediaQueryList.removeEventListener("change", listener);
|
|
197
|
+
}, [query]);
|
|
198
|
+
return matches;
|
|
199
|
+
};
|
|
200
|
+
var useMatchesMobile = () => useMatchesMedia("(width < 48rem)");
|
|
201
|
+
|
|
202
|
+
// src/utils/index.ts
|
|
203
|
+
var LocalStoragePrefixVersion = `dmsi-acc-v1.1.3`;
|
|
204
|
+
|
|
205
|
+
// src/hooks/useTableLayout.ts
|
|
206
|
+
var import_react4 = require("react");
|
|
207
|
+
var LocalStoragePrefix = `${LocalStoragePrefixVersion}-tableLayout`;
|
|
208
|
+
|
|
209
|
+
// src/hooks/useEditCell.tsx
|
|
210
|
+
var import_react5 = require("react");
|
|
211
|
+
|
|
181
212
|
// src/components/Tooltip.tsx
|
|
182
213
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
183
214
|
var Tooltip = ({
|
|
@@ -190,11 +221,11 @@ var Tooltip = ({
|
|
|
190
221
|
offset = 8,
|
|
191
222
|
keepHidden = false
|
|
192
223
|
}) => {
|
|
193
|
-
const ref = (0,
|
|
194
|
-
const tooltipRef = (0,
|
|
195
|
-
const [tooltipPosition, setTooltipPosition] = (0,
|
|
196
|
-
const [isVisible, setIsVisible] = (0,
|
|
197
|
-
const [removeOpacity, setRemoveOpacity] = (0,
|
|
224
|
+
const ref = (0, import_react6.useRef)(null);
|
|
225
|
+
const tooltipRef = (0, import_react6.useRef)(null);
|
|
226
|
+
const [tooltipPosition, setTooltipPosition] = (0, import_react6.useState)({ top: 0, left: 0 });
|
|
227
|
+
const [isVisible, setIsVisible] = (0, import_react6.useState)(false);
|
|
228
|
+
const [removeOpacity, setRemoveOpacity] = (0, import_react6.useState)(false);
|
|
198
229
|
const updatePosition = () => {
|
|
199
230
|
if (!ref.current || !tooltipRef.current) return;
|
|
200
231
|
const rect = ref.current.getBoundingClientRect();
|
|
@@ -233,19 +264,20 @@ var Tooltip = ({
|
|
|
233
264
|
setIsVisible(false);
|
|
234
265
|
setRemoveOpacity(false);
|
|
235
266
|
};
|
|
236
|
-
(0,
|
|
267
|
+
(0, import_react6.useEffect)(() => {
|
|
237
268
|
if (isVisible && tooltipRef.current) {
|
|
238
269
|
requestAnimationFrame(() => {
|
|
239
270
|
updatePosition();
|
|
240
271
|
});
|
|
241
272
|
}
|
|
242
273
|
}, [isVisible]);
|
|
243
|
-
(0,
|
|
274
|
+
(0, import_react6.useEffect)(() => {
|
|
244
275
|
if (isVisible) {
|
|
245
276
|
window.addEventListener("resize", updatePosition);
|
|
246
277
|
return () => window.removeEventListener("resize", updatePosition);
|
|
247
278
|
}
|
|
248
279
|
}, [isVisible]);
|
|
280
|
+
const isMobile = useMatchesMobile();
|
|
249
281
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
250
282
|
"div",
|
|
251
283
|
{
|
|
@@ -257,7 +289,7 @@ var Tooltip = ({
|
|
|
257
289
|
onMouseLeave: handleMouseLeave,
|
|
258
290
|
children: [
|
|
259
291
|
children,
|
|
260
|
-
!keepHidden && isVisible && typeof document !== "undefined" && (0, import_react_dom.createPortal)(
|
|
292
|
+
!keepHidden && isVisible && !isMobile && typeof document !== "undefined" && (0, import_react_dom.createPortal)(
|
|
261
293
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
262
294
|
"div",
|
|
263
295
|
{
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Tooltip
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-ZL6NXIGS.js";
|
|
5
|
+
import "../chunk-BXEE6VGQ.js";
|
|
6
|
+
import "../chunk-VXWSAIB5.js";
|
|
7
|
+
import "../chunk-MMZTPVYB.js";
|
|
8
|
+
import "../chunk-5UH6QUFB.js";
|
|
5
9
|
import "../chunk-7KWFEH56.js";
|
|
6
10
|
import "../chunk-ORMEWXMH.js";
|
|
7
11
|
export {
|
|
@@ -4392,6 +4392,7 @@ var Tooltip = ({
|
|
|
4392
4392
|
return () => window.removeEventListener("resize", updatePosition);
|
|
4393
4393
|
}
|
|
4394
4394
|
}, [isVisible]);
|
|
4395
|
+
const isMobile = useMatchesMobile();
|
|
4395
4396
|
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
4396
4397
|
"div",
|
|
4397
4398
|
{
|
|
@@ -4403,7 +4404,7 @@ var Tooltip = ({
|
|
|
4403
4404
|
onMouseLeave: handleMouseLeave,
|
|
4404
4405
|
children: [
|
|
4405
4406
|
children,
|
|
4406
|
-
!keepHidden && isVisible && typeof document !== "undefined" && (0, import_react_dom2.createPortal)(
|
|
4407
|
+
!keepHidden && isVisible && !isMobile && typeof document !== "undefined" && (0, import_react_dom2.createPortal)(
|
|
4407
4408
|
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
4408
4409
|
"div",
|
|
4409
4410
|
{
|
package/dist/components/index.js
CHANGED
|
@@ -2,21 +2,13 @@ import {
|
|
|
2
2
|
DataGrid,
|
|
3
3
|
DateInput,
|
|
4
4
|
MobileDataGrid
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-UIF3AIAT.js";
|
|
6
6
|
import "../chunk-WJJB7IJZ.js";
|
|
7
7
|
import "../chunk-M7INAUAJ.js";
|
|
8
8
|
import "../chunk-Q4YDNW7N.js";
|
|
9
9
|
import {
|
|
10
10
|
ProductImagePreview
|
|
11
|
-
} from "../chunk-
|
|
12
|
-
import "../chunk-YCDDBSVU.js";
|
|
13
|
-
import "../chunk-3X3Y4TMS.js";
|
|
14
|
-
import "../chunk-BQNPOGD5.js";
|
|
15
|
-
import {
|
|
16
|
-
SearchResultImage
|
|
17
|
-
} from "../chunk-Y5GD2FJA.js";
|
|
18
|
-
import "../chunk-MBZ55T2D.js";
|
|
19
|
-
import "../chunk-2IKT6IHB.js";
|
|
11
|
+
} from "../chunk-Y75MQKNY.js";
|
|
20
12
|
import "../chunk-B4AE3DCA.js";
|
|
21
13
|
import "../chunk-FP3Y5JJN.js";
|
|
22
14
|
import {
|
|
@@ -24,6 +16,14 @@ import {
|
|
|
24
16
|
} from "../chunk-5IFPG6TS.js";
|
|
25
17
|
import "../chunk-AJ5M6MVX.js";
|
|
26
18
|
import "../chunk-6EYMKEJ6.js";
|
|
19
|
+
import {
|
|
20
|
+
SearchResultImage
|
|
21
|
+
} from "../chunk-Y5GD2FJA.js";
|
|
22
|
+
import "../chunk-MBZ55T2D.js";
|
|
23
|
+
import "../chunk-2IKT6IHB.js";
|
|
24
|
+
import "../chunk-YCDDBSVU.js";
|
|
25
|
+
import "../chunk-3X3Y4TMS.js";
|
|
26
|
+
import "../chunk-BQNPOGD5.js";
|
|
27
27
|
import "../chunk-AT4AWD6B.js";
|
|
28
28
|
import "../chunk-EWGHVZL5.js";
|
|
29
29
|
import {
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
} from "../chunk-LB7UT6F3.js";
|
|
44
44
|
import {
|
|
45
45
|
Tooltip
|
|
46
|
-
} from "../chunk-
|
|
46
|
+
} from "../chunk-ZL6NXIGS.js";
|
|
47
47
|
import "../chunk-WWZG3S33.js";
|
|
48
48
|
import "../chunk-4RJKB7LC.js";
|
|
49
49
|
import "../chunk-UUKHQUSF.js";
|
package/package.json
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CarouselPagination
|
|
3
|
+
} from "./chunk-MBZ55T2D.js";
|
|
4
|
+
import {
|
|
5
|
+
MobileImageCarousel
|
|
6
|
+
} from "./chunk-2IKT6IHB.js";
|
|
1
7
|
import {
|
|
2
8
|
ProductPrimaryImage
|
|
3
9
|
} from "./chunk-YCDDBSVU.js";
|
|
@@ -7,12 +13,6 @@ import {
|
|
|
7
13
|
import {
|
|
8
14
|
ZoomWindow
|
|
9
15
|
} from "./chunk-BQNPOGD5.js";
|
|
10
|
-
import {
|
|
11
|
-
CarouselPagination
|
|
12
|
-
} from "./chunk-MBZ55T2D.js";
|
|
13
|
-
import {
|
|
14
|
-
MobileImageCarousel
|
|
15
|
-
} from "./chunk-2IKT6IHB.js";
|
|
16
16
|
import {
|
|
17
17
|
Grid
|
|
18
18
|
} from "./chunk-BWPNXY7T.js";
|