@dmsi/wedgekit-react 0.0.369 → 0.0.371
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-RLLQRVM7.js → chunk-2H35FETR.js} +18 -10
- package/dist/chunk-2IKT6IHB.js +190 -0
- package/dist/chunk-4UNWXB4A.js +89 -0
- package/dist/chunk-5IFPG6TS.js +17 -0
- package/dist/{chunk-6GAYJCFE.js → chunk-6DPFKSCT.js} +1 -1
- package/dist/{chunk-ZFOANBWG.js → chunk-AG43RS4Q.js} +2 -1
- package/dist/chunk-AJ5M6MVX.js +7 -0
- package/dist/chunk-AT4AWD6B.js +44 -0
- package/dist/chunk-BQNPOGD5.js +105 -0
- package/dist/chunk-CQFPNZTN.js +172 -0
- package/dist/chunk-EJSPFQCY.js +29 -0
- package/dist/chunk-ER6RCOH3.js +97 -0
- package/dist/{chunk-4VER5OEU.js → chunk-FBE2HGEF.js} +35 -11
- package/dist/chunk-HPQWEZJL.js +45 -0
- package/dist/{chunk-URCLLHO5.js → chunk-IBX6DVHU.js} +376 -102
- package/dist/{chunk-I3WFZOFY.js → chunk-J5V2JRIK.js} +1 -1
- package/dist/chunk-JGJUVJKD.js +283 -0
- package/dist/chunk-KEMCFN4U.js +78 -0
- package/dist/chunk-M6TSTDNZ.js +22 -0
- package/dist/chunk-M7INAUAJ.js +140 -0
- package/dist/chunk-MBZ55T2D.js +51 -0
- package/dist/chunk-N6PNLLNS.js +77 -0
- package/dist/{chunk-ZA5E7ZYM.js → chunk-NXGUDYRR.js} +1 -1
- package/dist/chunk-P36QKH26.js +143 -0
- package/dist/chunk-PTRZHGHA.js +89 -0
- package/dist/chunk-QVWYTQKL.js +29 -0
- package/dist/{chunk-6CPGOW6J.js → chunk-T36HX6QY.js} +6 -4
- package/dist/chunk-U6PUOGG4.js +114 -0
- package/dist/{chunk-NQXZBWDZ.js → chunk-V6U7LU6M.js} +15 -6
- package/dist/chunk-VJVY6NPF.js +32 -0
- package/dist/chunk-VVXPGI2P.js +61 -0
- package/dist/{chunk-ARQBSR3I.js → chunk-YCKRVNJ3.js} +4 -4
- package/dist/chunk-YYHQLQDQ.js +68 -0
- package/dist/components/Accordion.cjs +47 -14
- package/dist/components/Accordion.js +2 -2
- package/dist/components/CalendarRange.cjs +700 -46
- package/dist/components/CalendarRange.css +186 -3
- package/dist/components/CalendarRange.js +43 -11
- package/dist/components/CompactImagesPreview.cjs +485 -0
- package/dist/components/CompactImagesPreview.js +13 -0
- package/dist/components/ContentTabs.cjs +3 -2
- package/dist/components/ContentTabs.js +3 -2
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.cjs +4687 -0
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.css +5051 -0
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +62 -0
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +4687 -0
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.css +5051 -0
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +62 -0
- package/dist/components/DataGrid/PinnedColumns.cjs +4687 -0
- package/dist/components/DataGrid/PinnedColumns.css +5051 -0
- package/dist/components/DataGrid/PinnedColumns.js +62 -0
- package/dist/components/DataGrid/TableBody/LoadingCell.cjs +4689 -0
- package/dist/components/DataGrid/TableBody/LoadingCell.css +5051 -0
- package/dist/components/DataGrid/TableBody/LoadingCell.js +62 -0
- package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +4689 -0
- package/dist/components/DataGrid/TableBody/TableBodyRow.css +5051 -0
- package/dist/components/DataGrid/TableBody/TableBodyRow.js +62 -0
- package/dist/components/DataGrid/TableBody/index.cjs +4689 -0
- package/dist/components/DataGrid/TableBody/index.css +5051 -0
- package/dist/components/DataGrid/TableBody/index.js +62 -0
- package/dist/components/DataGrid/index.cjs +4692 -0
- package/dist/components/DataGrid/index.css +5051 -0
- package/dist/components/DataGrid/index.js +65 -0
- package/dist/components/DataGrid/utils.cjs +4687 -0
- package/dist/components/DataGrid/utils.css +5051 -0
- package/dist/components/DataGrid/utils.js +62 -0
- package/dist/components/DataGridCell.js +6 -6
- package/dist/components/DateInput.cjs +721 -67
- package/dist/components/DateInput.css +186 -3
- package/dist/components/DateInput.js +45 -13
- package/dist/components/DateRangeInput.cjs +721 -67
- package/dist/components/DateRangeInput.css +186 -3
- package/dist/components/DateRangeInput.js +45 -13
- package/dist/components/FilterGroup.js +3 -3
- package/dist/components/Grid.cjs +3 -1
- package/dist/components/Grid.js +3 -92
- package/dist/components/ImagePlaceholder.cjs +65 -0
- package/dist/components/ImagePlaceholder.js +7 -0
- package/dist/components/Input.js +2 -2
- package/dist/components/MenuOption.js +2 -2
- package/dist/components/MobileDataGrid/ColumnList.cjs +845 -0
- package/dist/components/MobileDataGrid/ColumnList.js +17 -0
- package/dist/components/MobileDataGrid/ColumnSelector/index.cjs +4797 -0
- package/dist/components/MobileDataGrid/ColumnSelector/index.css +5051 -0
- package/dist/components/MobileDataGrid/ColumnSelector/index.js +62 -0
- package/dist/components/MobileDataGrid/GridContextProvider/GridContext.cjs +31 -0
- package/dist/components/MobileDataGrid/GridContextProvider/GridContext.js +7 -0
- package/dist/components/MobileDataGrid/GridContextProvider/index.cjs +177 -0
- package/dist/components/MobileDataGrid/GridContextProvider/index.js +8 -0
- package/dist/components/MobileDataGrid/MobileDataGridCard/MobileDataGridColumn.cjs +269 -0
- package/dist/components/MobileDataGrid/MobileDataGridCard/MobileDataGridColumn.js +9 -0
- package/dist/components/MobileDataGrid/MobileDataGridCard/index.cjs +790 -0
- package/dist/components/MobileDataGrid/MobileDataGridCard/index.js +16 -0
- package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +5059 -0
- package/dist/components/MobileDataGrid/MobileDataGridHeader.css +5051 -0
- package/dist/components/MobileDataGrid/MobileDataGridHeader.js +62 -0
- package/dist/components/MobileDataGrid/RowDetailModalProvider/ModalContent.cjs +509 -0
- package/dist/components/MobileDataGrid/RowDetailModalProvider/ModalContent.js +13 -0
- package/dist/components/MobileDataGrid/RowDetailModalProvider/index.cjs +1261 -0
- package/dist/components/MobileDataGrid/RowDetailModalProvider/index.js +27 -0
- package/dist/components/MobileDataGrid/index.cjs +5521 -0
- package/dist/components/MobileDataGrid/index.css +5051 -0
- package/dist/components/MobileDataGrid/index.js +62 -0
- package/dist/components/Modal.cjs +24 -13
- package/dist/components/Modal.js +3 -3
- package/dist/components/ModalHeader.cjs +6 -4
- package/dist/components/ModalHeader.js +1 -1
- package/dist/components/ModalScrim.cjs +2 -1
- package/dist/components/ModalScrim.js +1 -1
- package/dist/components/NestedMenu.js +4 -4
- package/dist/components/Notification.cjs +15 -6
- package/dist/components/Notification.js +1 -1
- package/dist/components/PDFViewer/DownloadIcon.cjs +394 -0
- package/dist/components/PDFViewer/DownloadIcon.js +10 -0
- package/dist/components/PDFViewer/PDFElement.cjs +515 -0
- package/dist/components/PDFViewer/PDFElement.js +11 -0
- package/dist/components/{MobileDataGrid.cjs → PDFViewer/PDFNavigation.cjs} +318 -402
- package/dist/components/PDFViewer/PDFNavigation.js +13 -0
- package/dist/components/PDFViewer/PDFPage.cjs +56 -0
- package/dist/components/PDFViewer/PDFPage.js +7 -0
- package/dist/components/{PDFViewer.cjs → PDFViewer/index.cjs} +290 -202
- package/dist/components/PDFViewer/index.js +29 -0
- package/dist/components/Password.js +2 -2
- package/dist/components/ProductImagePreview/CarouselPagination.cjs +75 -0
- package/dist/components/ProductImagePreview/CarouselPagination.js +7 -0
- package/dist/components/ProductImagePreview/MobileImageCarousel.cjs +214 -0
- package/dist/components/ProductImagePreview/MobileImageCarousel.js +7 -0
- package/dist/components/ProductImagePreview/ProductPrimaryImage.cjs +255 -0
- package/dist/components/ProductImagePreview/ProductPrimaryImage.js +9 -0
- package/dist/components/ProductImagePreview/Thumbnail.cjs +105 -0
- package/dist/components/ProductImagePreview/Thumbnail.js +8 -0
- package/dist/components/ProductImagePreview/ZoomWindow.cjs +198 -0
- package/dist/components/ProductImagePreview/ZoomWindow.js +8 -0
- package/dist/components/ProductImagePreview/index.cjs +1369 -0
- package/dist/components/ProductImagePreview/index.js +22 -0
- package/dist/components/Search.js +3 -3
- package/dist/components/Select.js +3 -3
- package/dist/components/SideMenuGroup.cjs +15 -6
- package/dist/components/SideMenuGroup.js +1 -1
- package/dist/components/SideMenuItem.cjs +15 -6
- package/dist/components/SideMenuItem.js +1 -1
- package/dist/components/SkeletonParagraph.cjs +33 -0
- package/dist/components/SkeletonParagraph.js +10 -0
- package/dist/components/Stack.cjs +15 -6
- package/dist/components/Stack.js +1 -1
- package/dist/components/Stepper.cjs +61 -53
- package/dist/components/Stepper.js +63 -55
- package/dist/components/Surface.js +3 -39
- package/dist/components/Swatch.cjs +15 -6
- package/dist/components/Swatch.js +4 -4
- package/dist/components/Time.cjs +15 -6
- package/dist/components/Time.js +5 -5
- package/dist/components/Upload.cjs +15 -6
- package/dist/components/Upload.js +1 -1
- package/dist/components/index.cjs +2559 -14
- package/dist/components/index.css +186 -3
- package/dist/components/index.js +57 -14
- package/dist/index.css +186 -3
- package/package.json +1 -1
- package/src/components/Accordion.tsx +23 -4
- package/src/components/CompactImagesPreview.tsx +99 -0
- package/src/components/ContentTabs.tsx +3 -1
- package/src/components/DataGrid/types.ts +5 -0
- package/src/components/Grid.tsx +2 -0
- package/src/components/ImagePlaceholder.tsx +22 -0
- package/src/components/MobileDataGrid/ColumnList.tsx +66 -0
- package/src/components/MobileDataGrid/ColumnSelector/index.tsx +97 -0
- package/src/components/MobileDataGrid/GridContextProvider/GridContext.tsx +25 -0
- package/src/components/MobileDataGrid/GridContextProvider/index.tsx +132 -0
- package/src/components/MobileDataGrid/GridContextProvider/useGridContext.ts +10 -0
- package/src/components/MobileDataGrid/MobileDataGridCard/MobileDataGridColumn.tsx +20 -0
- package/src/components/MobileDataGrid/MobileDataGridCard/index.tsx +129 -0
- package/src/components/MobileDataGrid/MobileDataGridHeader.tsx +80 -0
- package/src/components/MobileDataGrid/RowDetailModalProvider/ModalContent.tsx +42 -0
- package/src/components/MobileDataGrid/RowDetailModalProvider/index.tsx +68 -0
- package/src/components/MobileDataGrid/dataGridReducer.ts +55 -0
- package/src/components/MobileDataGrid/index.tsx +92 -0
- package/src/components/MobileDataGrid/types.ts +4 -0
- package/src/components/Modal.tsx +31 -12
- package/src/components/ModalButtons.tsx +1 -1
- package/src/components/ModalHeader.tsx +5 -2
- package/src/components/ModalScrim.tsx +3 -2
- package/src/components/PDFViewer/DownloadIcon.tsx +22 -0
- package/src/components/PDFViewer/PDFElement.tsx +90 -0
- package/src/components/PDFViewer/PDFNavigation.tsx +68 -0
- package/src/components/PDFViewer/PDFPage.tsx +34 -0
- package/src/components/PDFViewer/index.tsx +128 -0
- package/src/components/ProductImagePreview/CarouselPagination.tsx +54 -0
- package/src/components/ProductImagePreview/MobileImageCarousel.tsx +226 -0
- package/src/components/ProductImagePreview/ProductPrimaryImage.tsx +218 -0
- package/src/components/ProductImagePreview/Thumbnail.tsx +49 -0
- package/src/components/ProductImagePreview/ZoomWindow.tsx +136 -0
- package/src/components/ProductImagePreview/index.tsx +182 -0
- package/src/components/ProductImagePreview/useProductImagePreview.ts +211 -0
- package/src/components/SkeletonParagraph.tsx +5 -0
- package/src/components/Stack.tsx +29 -6
- package/src/components/Stepper.tsx +5 -1
- package/src/components/index.ts +4 -0
- package/src/types.ts +2 -1
- package/dist/components/MobileDataGrid.js +0 -150
- package/dist/components/PDFViewer.js +0 -250
- package/src/components/MobileDataGrid.tsx +0 -163
- package/src/components/PDFViewer.tsx +0 -264
- package/dist/{chunk-OXSBIBGT.js → chunk-CKQNJNU3.js} +3 -3
- package/dist/{chunk-RJUN52HJ.js → chunk-ZL5X7KP6.js} +3 -3
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ProductImagePreview
|
|
3
|
+
} from "../../chunk-JGJUVJKD.js";
|
|
4
|
+
import "../../chunk-HPQWEZJL.js";
|
|
5
|
+
import "../../chunk-BQNPOGD5.js";
|
|
6
|
+
import "../../chunk-MBZ55T2D.js";
|
|
7
|
+
import "../../chunk-2IKT6IHB.js";
|
|
8
|
+
import "../../chunk-CQFPNZTN.js";
|
|
9
|
+
import "../../chunk-AT4AWD6B.js";
|
|
10
|
+
import "../../chunk-SBRRNFOP.js";
|
|
11
|
+
import "../../chunk-ER6RCOH3.js";
|
|
12
|
+
import "../../chunk-QVWYTQKL.js";
|
|
13
|
+
import "../../chunk-JUJBS4ZV.js";
|
|
14
|
+
import "../../chunk-VXWSAIB5.js";
|
|
15
|
+
import "../../chunk-TYTD4FLW.js";
|
|
16
|
+
import "../../chunk-5UH6QUFB.js";
|
|
17
|
+
import "../../chunk-V6U7LU6M.js";
|
|
18
|
+
import "../../chunk-6CTCHYIS.js";
|
|
19
|
+
import "../../chunk-ORMEWXMH.js";
|
|
20
|
+
export {
|
|
21
|
+
ProductImagePreview
|
|
22
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Search
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-5UH6QUFB.js";
|
|
4
|
+
} from "../chunk-6DPFKSCT.js";
|
|
5
|
+
import "../chunk-ZL5X7KP6.js";
|
|
7
6
|
import "../chunk-7CS736EF.js";
|
|
7
|
+
import "../chunk-5UH6QUFB.js";
|
|
8
8
|
import "../chunk-NKUETCDA.js";
|
|
9
9
|
import "../chunk-6CTCHYIS.js";
|
|
10
10
|
import "../chunk-ORMEWXMH.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Select
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-5UH6QUFB.js";
|
|
4
|
+
} from "../chunk-J5V2JRIK.js";
|
|
5
|
+
import "../chunk-ZL5X7KP6.js";
|
|
7
6
|
import "../chunk-7CS736EF.js";
|
|
7
|
+
import "../chunk-5UH6QUFB.js";
|
|
8
8
|
import "../chunk-NKUETCDA.js";
|
|
9
9
|
import "../chunk-6CTCHYIS.js";
|
|
10
10
|
import "../chunk-ORMEWXMH.js";
|
|
@@ -306,7 +306,9 @@ var Stack = (_a) => {
|
|
|
306
306
|
noGap,
|
|
307
307
|
marginTop,
|
|
308
308
|
marginBottom,
|
|
309
|
-
testid
|
|
309
|
+
testid,
|
|
310
|
+
bottom,
|
|
311
|
+
zIndex
|
|
310
312
|
} = _b, props = __objRest(_b, [
|
|
311
313
|
"children",
|
|
312
314
|
"items",
|
|
@@ -343,8 +345,11 @@ var Stack = (_a) => {
|
|
|
343
345
|
"noGap",
|
|
344
346
|
"marginTop",
|
|
345
347
|
"marginBottom",
|
|
346
|
-
"testid"
|
|
348
|
+
"testid",
|
|
349
|
+
"bottom",
|
|
350
|
+
"zIndex"
|
|
347
351
|
]);
|
|
352
|
+
var _a2, _b2, _c, _d, _e;
|
|
348
353
|
const flexClassNames = getFlexClassNames({ items, justify, grow });
|
|
349
354
|
const gapClassNames = useGapClassNames(sizing);
|
|
350
355
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
@@ -355,9 +360,9 @@ var Stack = (_a) => {
|
|
|
355
360
|
}, props), {
|
|
356
361
|
style: {
|
|
357
362
|
height: height === "full" ? "100%" : height !== void 0 ? `${height}px` : void 0,
|
|
358
|
-
maxHeight: maxHeight !== void 0 ? `${maxHeight}px` : void 0,
|
|
359
|
-
|
|
360
|
-
|
|
363
|
+
maxHeight: maxHeight !== void 0 ? isNaN(+maxHeight) ? maxHeight : `${maxHeight}px` : (_a2 = props.style) == null ? void 0 : _a2.maxHeight,
|
|
364
|
+
maxWidth: maxWidth !== void 0 ? isNaN(+maxWidth) ? maxWidth : `${maxWidth}px` : (_b2 = props.style) == null ? void 0 : _b2.maxWidth,
|
|
365
|
+
minHeight: minHeight !== void 0 ? isNaN(+minHeight) ? minHeight : `${minHeight}px` : (_c = props.style) == null ? void 0 : _c.minHeight,
|
|
361
366
|
width: width !== void 0 && typeof width === "number" ? `${width}px` : void 0,
|
|
362
367
|
minWidth: minWidth !== void 0 ? `${minWidth}px` : void 0,
|
|
363
368
|
border: borderColor ? `1px solid var(--color-${borderColor})` : void 0,
|
|
@@ -366,7 +371,11 @@ var Stack = (_a) => {
|
|
|
366
371
|
flexShrink: flexShrink !== void 0 ? flexShrink : void 0,
|
|
367
372
|
position: position !== void 0 ? position : void 0,
|
|
368
373
|
top: top !== void 0 ? `${top}px` : void 0,
|
|
369
|
-
|
|
374
|
+
bottom: bottom !== void 0 ? `${bottom}px` : void 0,
|
|
375
|
+
left: left !== void 0 ? `${left}px` : void 0,
|
|
376
|
+
borderBlock: (_d = props.style) == null ? void 0 : _d.borderBlock,
|
|
377
|
+
marginInline: (_e = props.style) == null ? void 0 : _e.marginInline,
|
|
378
|
+
zIndex: zIndex !== void 0 ? zIndex : void 0
|
|
370
379
|
},
|
|
371
380
|
className: (0, import_clsx3.default)(
|
|
372
381
|
"scrollbar-thin",
|
|
@@ -258,7 +258,9 @@ var Stack = (_a) => {
|
|
|
258
258
|
noGap,
|
|
259
259
|
marginTop,
|
|
260
260
|
marginBottom,
|
|
261
|
-
testid
|
|
261
|
+
testid,
|
|
262
|
+
bottom,
|
|
263
|
+
zIndex
|
|
262
264
|
} = _b, props = __objRest(_b, [
|
|
263
265
|
"children",
|
|
264
266
|
"items",
|
|
@@ -295,8 +297,11 @@ var Stack = (_a) => {
|
|
|
295
297
|
"noGap",
|
|
296
298
|
"marginTop",
|
|
297
299
|
"marginBottom",
|
|
298
|
-
"testid"
|
|
300
|
+
"testid",
|
|
301
|
+
"bottom",
|
|
302
|
+
"zIndex"
|
|
299
303
|
]);
|
|
304
|
+
var _a2, _b2, _c, _d, _e;
|
|
300
305
|
const flexClassNames = getFlexClassNames({ items, justify, grow });
|
|
301
306
|
const gapClassNames = useGapClassNames(sizing);
|
|
302
307
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
@@ -307,9 +312,9 @@ var Stack = (_a) => {
|
|
|
307
312
|
}, props), {
|
|
308
313
|
style: {
|
|
309
314
|
height: height === "full" ? "100%" : height !== void 0 ? `${height}px` : void 0,
|
|
310
|
-
maxHeight: maxHeight !== void 0 ? `${maxHeight}px` : void 0,
|
|
311
|
-
|
|
312
|
-
|
|
315
|
+
maxHeight: maxHeight !== void 0 ? isNaN(+maxHeight) ? maxHeight : `${maxHeight}px` : (_a2 = props.style) == null ? void 0 : _a2.maxHeight,
|
|
316
|
+
maxWidth: maxWidth !== void 0 ? isNaN(+maxWidth) ? maxWidth : `${maxWidth}px` : (_b2 = props.style) == null ? void 0 : _b2.maxWidth,
|
|
317
|
+
minHeight: minHeight !== void 0 ? isNaN(+minHeight) ? minHeight : `${minHeight}px` : (_c = props.style) == null ? void 0 : _c.minHeight,
|
|
313
318
|
width: width !== void 0 && typeof width === "number" ? `${width}px` : void 0,
|
|
314
319
|
minWidth: minWidth !== void 0 ? `${minWidth}px` : void 0,
|
|
315
320
|
border: borderColor ? `1px solid var(--color-${borderColor})` : void 0,
|
|
@@ -318,7 +323,11 @@ var Stack = (_a) => {
|
|
|
318
323
|
flexShrink: flexShrink !== void 0 ? flexShrink : void 0,
|
|
319
324
|
position: position !== void 0 ? position : void 0,
|
|
320
325
|
top: top !== void 0 ? `${top}px` : void 0,
|
|
321
|
-
|
|
326
|
+
bottom: bottom !== void 0 ? `${bottom}px` : void 0,
|
|
327
|
+
left: left !== void 0 ? `${left}px` : void 0,
|
|
328
|
+
borderBlock: (_d = props.style) == null ? void 0 : _d.borderBlock,
|
|
329
|
+
marginInline: (_e = props.style) == null ? void 0 : _e.marginInline,
|
|
330
|
+
zIndex: zIndex !== void 0 ? zIndex : void 0
|
|
322
331
|
},
|
|
323
332
|
className: (0, import_clsx2.default)(
|
|
324
333
|
"scrollbar-thin",
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/components/SkeletonParagraph.tsx
|
|
21
|
+
var SkeletonParagraph_exports = {};
|
|
22
|
+
__export(SkeletonParagraph_exports, {
|
|
23
|
+
SkeletonParagraph: () => SkeletonParagraph
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(SkeletonParagraph_exports);
|
|
26
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
27
|
+
function SkeletonParagraph() {
|
|
28
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "h-[24px] bg-gradient-to-r from-neutral-100 to-[#f7f7f7] w-full rounded-xs min-w-32 " });
|
|
29
|
+
}
|
|
30
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
31
|
+
0 && (module.exports = {
|
|
32
|
+
SkeletonParagraph
|
|
33
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import "../chunk-ORMEWXMH.js";
|
|
2
|
+
|
|
3
|
+
// src/components/SkeletonParagraph.tsx
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
function SkeletonParagraph() {
|
|
6
|
+
return /* @__PURE__ */ jsx("div", { className: "h-[24px] bg-gradient-to-r from-neutral-100 to-[#f7f7f7] w-full rounded-xs min-w-32 " });
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
SkeletonParagraph
|
|
10
|
+
};
|
|
@@ -257,7 +257,9 @@ var Stack = (_a) => {
|
|
|
257
257
|
noGap,
|
|
258
258
|
marginTop,
|
|
259
259
|
marginBottom,
|
|
260
|
-
testid
|
|
260
|
+
testid,
|
|
261
|
+
bottom,
|
|
262
|
+
zIndex
|
|
261
263
|
} = _b, props = __objRest(_b, [
|
|
262
264
|
"children",
|
|
263
265
|
"items",
|
|
@@ -294,8 +296,11 @@ var Stack = (_a) => {
|
|
|
294
296
|
"noGap",
|
|
295
297
|
"marginTop",
|
|
296
298
|
"marginBottom",
|
|
297
|
-
"testid"
|
|
299
|
+
"testid",
|
|
300
|
+
"bottom",
|
|
301
|
+
"zIndex"
|
|
298
302
|
]);
|
|
303
|
+
var _a2, _b2, _c, _d, _e;
|
|
299
304
|
const flexClassNames = getFlexClassNames({ items, justify, grow });
|
|
300
305
|
const gapClassNames = useGapClassNames(sizing);
|
|
301
306
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
@@ -306,9 +311,9 @@ var Stack = (_a) => {
|
|
|
306
311
|
}, props), {
|
|
307
312
|
style: {
|
|
308
313
|
height: height === "full" ? "100%" : height !== void 0 ? `${height}px` : void 0,
|
|
309
|
-
maxHeight: maxHeight !== void 0 ? `${maxHeight}px` : void 0,
|
|
310
|
-
|
|
311
|
-
|
|
314
|
+
maxHeight: maxHeight !== void 0 ? isNaN(+maxHeight) ? maxHeight : `${maxHeight}px` : (_a2 = props.style) == null ? void 0 : _a2.maxHeight,
|
|
315
|
+
maxWidth: maxWidth !== void 0 ? isNaN(+maxWidth) ? maxWidth : `${maxWidth}px` : (_b2 = props.style) == null ? void 0 : _b2.maxWidth,
|
|
316
|
+
minHeight: minHeight !== void 0 ? isNaN(+minHeight) ? minHeight : `${minHeight}px` : (_c = props.style) == null ? void 0 : _c.minHeight,
|
|
312
317
|
width: width !== void 0 && typeof width === "number" ? `${width}px` : void 0,
|
|
313
318
|
minWidth: minWidth !== void 0 ? `${minWidth}px` : void 0,
|
|
314
319
|
border: borderColor ? `1px solid var(--color-${borderColor})` : void 0,
|
|
@@ -317,7 +322,11 @@ var Stack = (_a) => {
|
|
|
317
322
|
flexShrink: flexShrink !== void 0 ? flexShrink : void 0,
|
|
318
323
|
position: position !== void 0 ? position : void 0,
|
|
319
324
|
top: top !== void 0 ? `${top}px` : void 0,
|
|
320
|
-
|
|
325
|
+
bottom: bottom !== void 0 ? `${bottom}px` : void 0,
|
|
326
|
+
left: left !== void 0 ? `${left}px` : void 0,
|
|
327
|
+
borderBlock: (_d = props.style) == null ? void 0 : _d.borderBlock,
|
|
328
|
+
marginInline: (_e = props.style) == null ? void 0 : _e.marginInline,
|
|
329
|
+
zIndex: zIndex !== void 0 ? zIndex : void 0
|
|
321
330
|
},
|
|
322
331
|
className: (0, import_clsx2.default)(
|
|
323
332
|
"scrollbar-thin",
|
package/dist/components/Stack.js
CHANGED
|
@@ -886,66 +886,74 @@ var Stepper = (_a) => {
|
|
|
886
886
|
setValue((prevVal) => prevVal - 1);
|
|
887
887
|
onDecrease == null ? void 0 : onDecrease();
|
|
888
888
|
}
|
|
889
|
-
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
"span",
|
|
889
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
|
|
890
|
+
"div",
|
|
891
|
+
{
|
|
892
|
+
id,
|
|
893
|
+
"data-testid": testid,
|
|
894
|
+
className: (0, import_clsx6.default)("flex items-center", componentGap),
|
|
895
|
+
children: [
|
|
896
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
897
|
+
Button,
|
|
899
898
|
{
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
899
|
+
id: id ? `${id}-decrease-button` : void 0,
|
|
900
|
+
testid: testid ? `${testid}-decrease-button` : void 0,
|
|
901
|
+
iconOnly: true,
|
|
902
|
+
variant: "tertiary",
|
|
903
|
+
leftIcon: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
904
|
+
"span",
|
|
905
|
+
{
|
|
906
|
+
className: (0, import_clsx6.default)(
|
|
907
|
+
!disabled || value > 0 && "text-icon-action-primary-normal",
|
|
908
|
+
disabled || value === 0 && "text-icon-action-primary-disabled",
|
|
909
|
+
"contents"
|
|
910
|
+
),
|
|
911
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Icon, { name: "remove" })
|
|
912
|
+
}
|
|
904
913
|
),
|
|
905
|
-
|
|
914
|
+
onClick: handleDecrease,
|
|
915
|
+
disabled: disabled || value === 0
|
|
906
916
|
}
|
|
907
917
|
),
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
})
|
|
925
|
-
) }),
|
|
926
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
927
|
-
Button,
|
|
928
|
-
{
|
|
929
|
-
id: id ? `${id}-increase-button` : void 0,
|
|
930
|
-
testid: testid ? `${testid}-increase-button` : void 0,
|
|
931
|
-
iconOnly: true,
|
|
932
|
-
variant: "tertiary",
|
|
933
|
-
leftIcon: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
934
|
-
"span",
|
|
918
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
919
|
+
InputBase,
|
|
920
|
+
__spreadProps(__spreadValues({}, props), {
|
|
921
|
+
id: id ? `${id}-input` : void 0,
|
|
922
|
+
testid: testid ? `${testid}-input` : void 0,
|
|
923
|
+
type: "number",
|
|
924
|
+
align: "center",
|
|
925
|
+
value,
|
|
926
|
+
onChange: (e) => setValue(+e.target.value),
|
|
927
|
+
error,
|
|
928
|
+
disabled,
|
|
929
|
+
className: "!w-6 !h-4.5 !px-0 disabled:!text-text-on-action-primary-disabled disabled:!bg-background-action-secondary-disabled disabled:!border-border-primary-normal"
|
|
930
|
+
})
|
|
931
|
+
) }),
|
|
932
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
933
|
+
Button,
|
|
935
934
|
{
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
935
|
+
id: id ? `${id}-increase-button` : void 0,
|
|
936
|
+
testid: testid ? `${testid}-increase-button` : void 0,
|
|
937
|
+
iconOnly: true,
|
|
938
|
+
variant: "tertiary",
|
|
939
|
+
leftIcon: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
940
|
+
"span",
|
|
941
|
+
{
|
|
942
|
+
className: (0, import_clsx6.default)(
|
|
943
|
+
!disabled && "text-icon-action-primary-normal",
|
|
944
|
+
disabled && "text-icon-action-primary-disabled",
|
|
945
|
+
"contents"
|
|
946
|
+
),
|
|
947
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Icon, { name: "add" })
|
|
948
|
+
}
|
|
940
949
|
),
|
|
941
|
-
|
|
950
|
+
onClick: handleIncrease,
|
|
951
|
+
disabled
|
|
942
952
|
}
|
|
943
|
-
)
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
)
|
|
948
|
-
] });
|
|
953
|
+
)
|
|
954
|
+
]
|
|
955
|
+
}
|
|
956
|
+
);
|
|
949
957
|
};
|
|
950
958
|
Stepper.displayName = "Stepper";
|
|
951
959
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
InputBase
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-5UH6QUFB.js";
|
|
4
|
+
} from "../chunk-ZL5X7KP6.js";
|
|
6
5
|
import "../chunk-7CS736EF.js";
|
|
6
|
+
import "../chunk-5UH6QUFB.js";
|
|
7
7
|
import {
|
|
8
8
|
Icon
|
|
9
9
|
} from "../chunk-NKUETCDA.js";
|
|
@@ -50,66 +50,74 @@ var Stepper = (_a) => {
|
|
|
50
50
|
setValue((prevVal) => prevVal - 1);
|
|
51
51
|
onDecrease == null ? void 0 : onDecrease();
|
|
52
52
|
}
|
|
53
|
-
return /* @__PURE__ */ jsxs(
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
"span",
|
|
53
|
+
return /* @__PURE__ */ jsxs(
|
|
54
|
+
"div",
|
|
55
|
+
{
|
|
56
|
+
id,
|
|
57
|
+
"data-testid": testid,
|
|
58
|
+
className: clsx("flex items-center", componentGap),
|
|
59
|
+
children: [
|
|
60
|
+
/* @__PURE__ */ jsx(
|
|
61
|
+
Button,
|
|
63
62
|
{
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
63
|
+
id: id ? `${id}-decrease-button` : void 0,
|
|
64
|
+
testid: testid ? `${testid}-decrease-button` : void 0,
|
|
65
|
+
iconOnly: true,
|
|
66
|
+
variant: "tertiary",
|
|
67
|
+
leftIcon: /* @__PURE__ */ jsx(
|
|
68
|
+
"span",
|
|
69
|
+
{
|
|
70
|
+
className: clsx(
|
|
71
|
+
!disabled || value > 0 && "text-icon-action-primary-normal",
|
|
72
|
+
disabled || value === 0 && "text-icon-action-primary-disabled",
|
|
73
|
+
"contents"
|
|
74
|
+
),
|
|
75
|
+
children: /* @__PURE__ */ jsx(Icon, { name: "remove" })
|
|
76
|
+
}
|
|
68
77
|
),
|
|
69
|
-
|
|
78
|
+
onClick: handleDecrease,
|
|
79
|
+
disabled: disabled || value === 0
|
|
70
80
|
}
|
|
71
81
|
),
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
})
|
|
89
|
-
) }),
|
|
90
|
-
/* @__PURE__ */ jsx(
|
|
91
|
-
Button,
|
|
92
|
-
{
|
|
93
|
-
id: id ? `${id}-increase-button` : void 0,
|
|
94
|
-
testid: testid ? `${testid}-increase-button` : void 0,
|
|
95
|
-
iconOnly: true,
|
|
96
|
-
variant: "tertiary",
|
|
97
|
-
leftIcon: /* @__PURE__ */ jsx(
|
|
98
|
-
"span",
|
|
82
|
+
/* @__PURE__ */ jsx("div", { className: "flex-1", children: /* @__PURE__ */ jsx(
|
|
83
|
+
InputBase,
|
|
84
|
+
__spreadProps(__spreadValues({}, props), {
|
|
85
|
+
id: id ? `${id}-input` : void 0,
|
|
86
|
+
testid: testid ? `${testid}-input` : void 0,
|
|
87
|
+
type: "number",
|
|
88
|
+
align: "center",
|
|
89
|
+
value,
|
|
90
|
+
onChange: (e) => setValue(+e.target.value),
|
|
91
|
+
error,
|
|
92
|
+
disabled,
|
|
93
|
+
className: "!w-6 !h-4.5 !px-0 disabled:!text-text-on-action-primary-disabled disabled:!bg-background-action-secondary-disabled disabled:!border-border-primary-normal"
|
|
94
|
+
})
|
|
95
|
+
) }),
|
|
96
|
+
/* @__PURE__ */ jsx(
|
|
97
|
+
Button,
|
|
99
98
|
{
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
99
|
+
id: id ? `${id}-increase-button` : void 0,
|
|
100
|
+
testid: testid ? `${testid}-increase-button` : void 0,
|
|
101
|
+
iconOnly: true,
|
|
102
|
+
variant: "tertiary",
|
|
103
|
+
leftIcon: /* @__PURE__ */ jsx(
|
|
104
|
+
"span",
|
|
105
|
+
{
|
|
106
|
+
className: clsx(
|
|
107
|
+
!disabled && "text-icon-action-primary-normal",
|
|
108
|
+
disabled && "text-icon-action-primary-disabled",
|
|
109
|
+
"contents"
|
|
110
|
+
),
|
|
111
|
+
children: /* @__PURE__ */ jsx(Icon, { name: "add" })
|
|
112
|
+
}
|
|
104
113
|
),
|
|
105
|
-
|
|
114
|
+
onClick: handleIncrease,
|
|
115
|
+
disabled
|
|
106
116
|
}
|
|
107
|
-
)
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
)
|
|
112
|
-
] });
|
|
117
|
+
)
|
|
118
|
+
]
|
|
119
|
+
}
|
|
120
|
+
);
|
|
113
121
|
};
|
|
114
122
|
Stepper.displayName = "Stepper";
|
|
115
123
|
export {
|
|
@@ -1,43 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} from "../chunk-ORMEWXMH.js";
|
|
6
|
-
|
|
7
|
-
// src/components/Surface.tsx
|
|
8
|
-
import clsx from "clsx";
|
|
9
|
-
import { jsx } from "react/jsx-runtime";
|
|
10
|
-
var Surface = (_a) => {
|
|
11
|
-
var _b = _a, {
|
|
12
|
-
children,
|
|
13
|
-
className,
|
|
14
|
-
elevation = 0,
|
|
15
|
-
id
|
|
16
|
-
} = _b, props = __objRest(_b, [
|
|
17
|
-
"children",
|
|
18
|
-
"className",
|
|
19
|
-
"elevation",
|
|
20
|
-
"id"
|
|
21
|
-
]);
|
|
22
|
-
return /* @__PURE__ */ jsx(
|
|
23
|
-
"div",
|
|
24
|
-
__spreadProps(__spreadValues({
|
|
25
|
-
id,
|
|
26
|
-
className: clsx(
|
|
27
|
-
"rounded-base",
|
|
28
|
-
{
|
|
29
|
-
"shadow-2": elevation === 2,
|
|
30
|
-
"shadow-4": elevation === 4,
|
|
31
|
-
"shadow-16": elevation === 16
|
|
32
|
-
},
|
|
33
|
-
className
|
|
34
|
-
)
|
|
35
|
-
}, props), {
|
|
36
|
-
children
|
|
37
|
-
})
|
|
38
|
-
);
|
|
39
|
-
};
|
|
40
|
-
Surface.displayName = "Surface";
|
|
2
|
+
Surface
|
|
3
|
+
} from "../chunk-AT4AWD6B.js";
|
|
4
|
+
import "../chunk-ORMEWXMH.js";
|
|
41
5
|
export {
|
|
42
6
|
Surface
|
|
43
7
|
};
|
|
@@ -311,7 +311,9 @@ var Stack = (_a) => {
|
|
|
311
311
|
noGap,
|
|
312
312
|
marginTop,
|
|
313
313
|
marginBottom,
|
|
314
|
-
testid
|
|
314
|
+
testid,
|
|
315
|
+
bottom,
|
|
316
|
+
zIndex
|
|
315
317
|
} = _b, props = __objRest(_b, [
|
|
316
318
|
"children",
|
|
317
319
|
"items",
|
|
@@ -348,8 +350,11 @@ var Stack = (_a) => {
|
|
|
348
350
|
"noGap",
|
|
349
351
|
"marginTop",
|
|
350
352
|
"marginBottom",
|
|
351
|
-
"testid"
|
|
353
|
+
"testid",
|
|
354
|
+
"bottom",
|
|
355
|
+
"zIndex"
|
|
352
356
|
]);
|
|
357
|
+
var _a2, _b2, _c, _d, _e;
|
|
353
358
|
const flexClassNames = getFlexClassNames({ items, justify, grow });
|
|
354
359
|
const gapClassNames = useGapClassNames(sizing);
|
|
355
360
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
@@ -360,9 +365,9 @@ var Stack = (_a) => {
|
|
|
360
365
|
}, props), {
|
|
361
366
|
style: {
|
|
362
367
|
height: height === "full" ? "100%" : height !== void 0 ? `${height}px` : void 0,
|
|
363
|
-
maxHeight: maxHeight !== void 0 ? `${maxHeight}px` : void 0,
|
|
364
|
-
|
|
365
|
-
|
|
368
|
+
maxHeight: maxHeight !== void 0 ? isNaN(+maxHeight) ? maxHeight : `${maxHeight}px` : (_a2 = props.style) == null ? void 0 : _a2.maxHeight,
|
|
369
|
+
maxWidth: maxWidth !== void 0 ? isNaN(+maxWidth) ? maxWidth : `${maxWidth}px` : (_b2 = props.style) == null ? void 0 : _b2.maxWidth,
|
|
370
|
+
minHeight: minHeight !== void 0 ? isNaN(+minHeight) ? minHeight : `${minHeight}px` : (_c = props.style) == null ? void 0 : _c.minHeight,
|
|
366
371
|
width: width !== void 0 && typeof width === "number" ? `${width}px` : void 0,
|
|
367
372
|
minWidth: minWidth !== void 0 ? `${minWidth}px` : void 0,
|
|
368
373
|
border: borderColor ? `1px solid var(--color-${borderColor})` : void 0,
|
|
@@ -371,7 +376,11 @@ var Stack = (_a) => {
|
|
|
371
376
|
flexShrink: flexShrink !== void 0 ? flexShrink : void 0,
|
|
372
377
|
position: position !== void 0 ? position : void 0,
|
|
373
378
|
top: top !== void 0 ? `${top}px` : void 0,
|
|
374
|
-
|
|
379
|
+
bottom: bottom !== void 0 ? `${bottom}px` : void 0,
|
|
380
|
+
left: left !== void 0 ? `${left}px` : void 0,
|
|
381
|
+
borderBlock: (_d = props.style) == null ? void 0 : _d.borderBlock,
|
|
382
|
+
marginInline: (_e = props.style) == null ? void 0 : _e.marginInline,
|
|
383
|
+
zIndex: zIndex !== void 0 ? zIndex : void 0
|
|
375
384
|
},
|
|
376
385
|
className: (0, import_clsx3.default)(
|
|
377
386
|
"scrollbar-thin",
|