@dmsi/wedgekit-react 0.0.25 → 0.0.27
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-KDEPZ6I7.js → chunk-2S2Z3L56.js} +5 -1
- package/dist/{chunk-TU55CHXU.js → chunk-4JLU7TAC.js} +3 -1
- package/dist/{chunk-Z2LOGSGE.js → chunk-4N2PED4P.js} +15 -3
- package/dist/{chunk-U42SKNR6.js → chunk-57WRM337.js} +68 -30
- package/dist/{chunk-ZFGGZXB6.js → chunk-AY7ELVQY.js} +5 -2
- package/dist/{chunk-I2UVVKQI.js → chunk-CHTO7PW4.js} +3 -2
- package/dist/{chunk-WIDBAFBU.js → chunk-FWPJ73IK.js} +3 -1
- package/dist/{chunk-5TLFMKSR.js → chunk-INYI65WW.js} +15 -5
- package/dist/{chunk-TJ44JJCB.js → chunk-J6LETUNM.js} +5 -2
- package/dist/{chunk-T6HZARR7.js → chunk-MZJS2ZAU.js} +6 -3
- package/dist/{chunk-ZCBSLV7U.js → chunk-O4M2GISS.js} +5 -2
- package/dist/{chunk-OUTEIXV4.js → chunk-OUSNH76S.js} +11 -3
- package/dist/{chunk-YDREJNAS.js → chunk-PDDZ5PMY.js} +18 -4
- package/dist/{chunk-4RD5ZF2V.js → chunk-QBIEU25R.js} +10 -4
- package/dist/chunk-QUPHLL7D.js +61 -0
- package/dist/{chunk-OISE6NMA.js → chunk-QV2EFOYF.js} +17 -6
- package/dist/{chunk-YZQNTOIF.js → chunk-QZGUMB7T.js} +10 -5
- package/dist/{chunk-S7R37IUP.js → chunk-S5K22XTH.js} +5 -2
- package/dist/{chunk-GCPJH5R6.js → chunk-S5KPS4IQ.js} +22 -7
- package/dist/{chunk-VELXLFMJ.js → chunk-SAMX4YGM.js} +4 -1
- package/dist/{chunk-TWP6YSFO.js → chunk-SKHSGGO3.js} +14 -6
- package/dist/chunk-TVDFTRGL.js +57 -0
- package/dist/{chunk-N32PXOA5.js → chunk-UT7XCBZF.js} +9 -4
- package/dist/{chunk-L4UM372R.js → chunk-VC3R5EUH.js} +3 -0
- package/dist/{chunk-UIQ733QP.js → chunk-VG4EPHJA.js} +7 -3
- package/dist/components/Breadcrumbs.cjs +29 -9
- package/dist/components/Breadcrumbs.js +29 -9
- package/dist/components/Button.cjs +6 -3
- package/dist/components/Button.js +1 -1
- package/dist/components/CalendarRange.cjs +11 -3
- package/dist/components/CalendarRange.js +1 -1
- package/dist/components/Caption.cjs +53 -9
- package/dist/components/Caption.js +53 -9
- package/dist/components/Checkbox.cjs +15 -6
- package/dist/components/Checkbox.js +2 -2
- package/dist/components/ContentTab.cjs +20 -7
- package/dist/components/ContentTab.js +2 -2
- package/dist/components/ContentTabs.cjs +32 -18
- package/dist/components/ContentTabs.js +14 -13
- package/dist/components/DMSiLogo.cjs +22 -4
- package/dist/components/DMSiLogo.js +9 -5
- package/dist/components/DataGrid.cjs +374 -243
- package/dist/components/DataGrid.js +283 -226
- package/dist/components/DataGridCell.cjs +79 -21
- package/dist/components/DataGridCell.js +7 -7
- package/dist/components/DataTable.cjs +197 -139
- package/dist/components/DataTable.js +197 -139
- package/dist/components/DateInput.cjs +36 -10
- package/dist/components/DateInput.js +7 -3
- package/dist/components/DateRangeInput.cjs +36 -10
- package/dist/components/DateRangeInput.js +7 -3
- package/dist/components/DebugJson.cjs +21 -13
- package/dist/components/DebugJson.js +21 -13
- package/dist/components/Display.cjs +5 -2
- package/dist/components/Display.js +1 -1
- package/dist/components/EditingContext.cjs +4 -1
- package/dist/components/EditingContext.js +4 -1
- package/dist/components/FilterGroup.cjs +102 -32
- package/dist/components/FilterGroup.js +41 -17
- package/dist/components/FullViewportBox.cjs +10 -2
- package/dist/components/FullViewportBox.js +10 -2
- package/dist/components/Grid.cjs +3 -1
- package/dist/components/Grid.js +3 -1
- package/dist/components/Heading.cjs +5 -2
- package/dist/components/Heading.js +1 -1
- package/dist/components/HorizontalDivider.cjs +2 -2
- package/dist/components/HorizontalDivider.js +2 -2
- package/dist/components/Input.cjs +21 -7
- package/dist/components/Input.js +2 -2
- package/dist/components/InputGroup.cjs +13 -6
- package/dist/components/InputGroup.js +9 -5
- package/dist/components/Label.cjs +5 -2
- package/dist/components/Label.js +1 -1
- package/dist/components/List.cjs +3 -2
- package/dist/components/List.js +3 -2
- package/dist/components/LogoAgilityTopBar.cjs +22 -4
- package/dist/components/LogoAgilityTopBar.js +9 -5
- package/dist/components/LogoDMSiTopBar.cjs +22 -4
- package/dist/components/LogoDMSiTopBar.js +1 -1
- package/dist/components/LogoMillworkTopBar.cjs +22 -4
- package/dist/components/LogoMillworkTopBar.js +9 -5
- package/dist/components/MainBar.cjs +2 -0
- package/dist/components/MainBar.js +2 -0
- package/dist/components/Menu.cjs +3 -0
- package/dist/components/Menu.js +1 -1
- package/dist/components/MenuOption.cjs +28 -7
- package/dist/components/MenuOption.js +3 -3
- package/dist/components/MobileDataGrid.cjs +101 -46
- package/dist/components/MobileDataGrid.js +23 -11
- package/dist/components/Modal.cjs +96 -51
- package/dist/components/Modal.js +19 -7
- package/dist/components/ModalButtons.cjs +43 -26
- package/dist/components/ModalButtons.js +2 -2
- package/dist/components/ModalContent.cjs +3 -1
- package/dist/components/ModalContent.js +1 -1
- package/dist/components/ModalHeader.cjs +40 -25
- package/dist/components/ModalHeader.js +3 -3
- package/dist/components/ModalScrim.cjs +3 -1
- package/dist/components/ModalScrim.js +1 -1
- package/dist/components/NavigationTab.cjs +9 -3
- package/dist/components/NavigationTab.js +2 -2
- package/dist/components/NavigationTabs.cjs +15 -7
- package/dist/components/NavigationTabs.js +8 -6
- package/dist/components/NestedMenu.cjs +28 -7
- package/dist/components/NestedMenu.js +3 -3
- package/dist/components/Notification.cjs +84 -38
- package/dist/components/Notification.js +8 -4
- package/dist/components/OptionPill.cjs +24 -6
- package/dist/components/OptionPill.js +3 -3
- package/dist/components/Paragraph.cjs +7 -3
- package/dist/components/Paragraph.js +1 -1
- package/dist/components/Password.cjs +33 -11
- package/dist/components/Password.js +14 -6
- package/dist/components/ProjectBar.cjs +3 -1
- package/dist/components/ProjectBar.js +3 -1
- package/dist/components/Radio.cjs +13 -7
- package/dist/components/Radio.js +7 -5
- package/dist/components/Search.cjs +34 -12
- package/dist/components/Search.js +3 -3
- package/dist/components/Select.cjs +25 -7
- package/dist/components/Select.js +3 -3
- package/dist/components/SideMenu.cjs +6 -1
- package/dist/components/SideMenu.js +6 -1
- package/dist/components/SideMenuGroup.cjs +96 -49
- package/dist/components/SideMenuGroup.js +31 -19
- package/dist/components/SideMenuItem.cjs +99 -43
- package/dist/components/SideMenuItem.js +32 -12
- package/dist/components/Stack.cjs +91 -30
- package/dist/components/Stack.js +1 -1
- package/dist/components/StatusPill.cjs +13 -6
- package/dist/components/StatusPill.js +9 -5
- package/dist/components/Stepper.cjs +35 -17
- package/dist/components/Stepper.js +11 -10
- package/dist/components/Subheader.cjs +5 -2
- package/dist/components/Subheader.js +1 -1
- package/dist/components/Surface.cjs +5 -2
- package/dist/components/Surface.js +5 -2
- package/dist/components/Swatch.cjs +1544 -1308
- package/dist/components/Swatch.js +1469 -1275
- package/dist/components/Textarea.cjs +5 -2
- package/dist/components/Textarea.js +5 -2
- package/dist/components/Theme.cjs +3 -2
- package/dist/components/Theme.js +1 -1
- package/dist/components/Time.cjs +98 -40
- package/dist/components/Time.js +18 -6
- package/dist/components/Toast.cjs +38 -15
- package/dist/components/Toast.js +23 -10
- package/dist/components/Tooltip.cjs +5 -4
- package/dist/components/Tooltip.js +1 -1
- package/dist/components/TopBar.cjs +16 -8
- package/dist/components/TopBar.js +12 -5
- package/package.json +1 -1
- package/src/components/Breadcrumbs.tsx +24 -15
- package/src/components/Button.tsx +7 -3
- package/src/components/CalendarRange.tsx +9 -0
- package/src/components/Caption.tsx +36 -6
- package/src/components/Checkbox.tsx +7 -2
- package/src/components/ContentTab.tsx +13 -3
- package/src/components/ContentTabs.tsx +11 -8
- package/src/components/DMSiLogo.tsx +2 -1
- package/src/components/DataGrid.tsx +85 -23
- package/src/components/DataGridCell.tsx +15 -2
- package/src/components/DataTable.tsx +64 -14
- package/src/components/DateInput.tsx +5 -1
- package/src/components/DateRangeInput.tsx +5 -1
- package/src/components/DebugJson.tsx +7 -3
- package/src/components/Display.tsx +3 -0
- package/src/components/EditingContext.tsx +8 -6
- package/src/components/FilterGroup.tsx +23 -3
- package/src/components/FullViewportBox.tsx +6 -1
- package/src/components/Grid.tsx +3 -0
- package/src/components/Heading.tsx +3 -0
- package/src/components/HorizontalDivider.tsx +4 -2
- package/src/components/Input.tsx +19 -10
- package/src/components/InputGroup.tsx +8 -4
- package/src/components/Label.tsx +3 -0
- package/src/components/Link.tsx +1 -0
- package/src/components/List.tsx +7 -1
- package/src/components/LogoAgilityTopBar.tsx +2 -1
- package/src/components/LogoDMSiTopBar.tsx +2 -1
- package/src/components/LogoMillworkTopBar.tsx +2 -1
- package/src/components/MainBar.tsx +3 -0
- package/src/components/Menu.tsx +3 -0
- package/src/components/MenuOption.tsx +72 -58
- package/src/components/MobileDataGrid.tsx +15 -4
- package/src/components/Modal.tsx +10 -1
- package/src/components/ModalButtons.tsx +12 -1
- package/src/components/ModalContent.tsx +3 -0
- package/src/components/ModalHeader.tsx +16 -6
- package/src/components/ModalScrim.tsx +3 -0
- package/src/components/NavigationTab.tsx +6 -3
- package/src/components/NavigationTabs.tsx +5 -2
- package/src/components/Notification.tsx +4 -0
- package/src/components/OptionPill.tsx +9 -1
- package/src/components/Paragraph.tsx +3 -0
- package/src/components/Password.tsx +9 -3
- package/src/components/ProjectBar.tsx +3 -0
- package/src/components/Radio.tsx +3 -2
- package/src/components/Search.tsx +56 -41
- package/src/components/Select.tsx +6 -1
- package/src/components/SideMenu.tsx +7 -1
- package/src/components/SideMenuGroup.tsx +13 -2
- package/src/components/SideMenuItem.tsx +15 -2
- package/src/components/Stack.tsx +8 -3
- package/src/components/StatusPill.tsx +4 -2
- package/src/components/Stepper.tsx +5 -5
- package/src/components/Subheader.tsx +3 -0
- package/src/components/Surface.tsx +3 -0
- package/src/components/Swatch.tsx +415 -140
- package/src/components/Textarea.tsx +6 -3
- package/src/components/Theme.tsx +3 -1
- package/src/components/Time.tsx +21 -5
- package/src/components/Toast.tsx +29 -14
- package/src/components/Tooltip.tsx +46 -32
- package/src/components/TopBar.tsx +7 -3
- package/dist/chunk-DBYSGYST.js +0 -47
- package/dist/chunk-UK3WG7HQ.js +0 -48
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Search
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-SKHSGGO3.js";
|
|
5
|
+
import "../chunk-QV2EFOYF.js";
|
|
6
|
+
import "../chunk-S5K22XTH.js";
|
|
7
7
|
import "../chunk-IGQVA7SC.js";
|
|
8
8
|
import "../chunk-RDLEIAQU.js";
|
|
9
9
|
import "../chunk-ORMEWXMH.js";
|
|
@@ -204,18 +204,21 @@ var Label = (_a) => {
|
|
|
204
204
|
padded,
|
|
205
205
|
className,
|
|
206
206
|
color,
|
|
207
|
-
align
|
|
207
|
+
align,
|
|
208
|
+
id
|
|
208
209
|
} = _b, props = __objRest(_b, [
|
|
209
210
|
"as",
|
|
210
211
|
"padded",
|
|
211
212
|
"className",
|
|
212
213
|
"color",
|
|
213
|
-
"align"
|
|
214
|
+
"align",
|
|
215
|
+
"id"
|
|
214
216
|
]);
|
|
215
217
|
const Element = as;
|
|
216
218
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
217
219
|
Element,
|
|
218
220
|
__spreadProps(__spreadValues({
|
|
221
|
+
id,
|
|
219
222
|
className: (0, import_clsx2.default)(
|
|
220
223
|
typography.label,
|
|
221
224
|
align === "left" && "text-left",
|
|
@@ -302,6 +305,7 @@ function formatCurrencyDisplay(value) {
|
|
|
302
305
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
303
306
|
var InputBase = (_a) => {
|
|
304
307
|
var _b = _a, {
|
|
308
|
+
id,
|
|
305
309
|
before,
|
|
306
310
|
after,
|
|
307
311
|
type,
|
|
@@ -318,6 +322,7 @@ var InputBase = (_a) => {
|
|
|
318
322
|
wrapperClassName,
|
|
319
323
|
focus
|
|
320
324
|
} = _b, props = __objRest(_b, [
|
|
325
|
+
"id",
|
|
321
326
|
"before",
|
|
322
327
|
"after",
|
|
323
328
|
"type",
|
|
@@ -339,6 +344,7 @@ var InputBase = (_a) => {
|
|
|
339
344
|
"data-focus": focus || null
|
|
340
345
|
};
|
|
341
346
|
const inputRef = (0, import_react.useRef)(null);
|
|
347
|
+
const inputId = `${id}-input`;
|
|
342
348
|
(0, import_react.useEffect)(() => {
|
|
343
349
|
var _a2;
|
|
344
350
|
const input = inputRef.current;
|
|
@@ -379,6 +385,8 @@ var InputBase = (_a) => {
|
|
|
379
385
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
380
386
|
"label",
|
|
381
387
|
{
|
|
388
|
+
id,
|
|
389
|
+
htmlFor: inputId,
|
|
382
390
|
ref: inputContainerRef,
|
|
383
391
|
className: (0, import_clsx4.default)(
|
|
384
392
|
"w-full flex flex-col",
|
|
@@ -392,6 +400,7 @@ var InputBase = (_a) => {
|
|
|
392
400
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
393
401
|
Label,
|
|
394
402
|
{
|
|
403
|
+
id: id ? `${id}-label` : void 0,
|
|
395
404
|
className: (0, import_clsx4.default)(
|
|
396
405
|
props.disabled || props.readOnly ? "cursor-default" : "cursor-pointer"
|
|
397
406
|
),
|
|
@@ -428,7 +437,7 @@ var InputBase = (_a) => {
|
|
|
428
437
|
type,
|
|
429
438
|
required
|
|
430
439
|
}, props), attributes), {
|
|
431
|
-
id:
|
|
440
|
+
id: inputId,
|
|
432
441
|
className: (0, import_clsx4.default)(
|
|
433
442
|
"flex-1 outline-none w-full max-w-full min-h-6 min-w-0",
|
|
434
443
|
"[appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",
|
|
@@ -446,7 +455,7 @@ var InputBase = (_a) => {
|
|
|
446
455
|
]
|
|
447
456
|
}
|
|
448
457
|
),
|
|
449
|
-
caption
|
|
458
|
+
caption && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { id: id ? `${id}-caption` : void 0, children: caption })
|
|
450
459
|
]
|
|
451
460
|
}
|
|
452
461
|
);
|
|
@@ -460,7 +469,8 @@ var Input = (_a) => {
|
|
|
460
469
|
value: propValue,
|
|
461
470
|
onChange,
|
|
462
471
|
onBlur,
|
|
463
|
-
onClear
|
|
472
|
+
onClear,
|
|
473
|
+
id
|
|
464
474
|
} = _b, props = __objRest(_b, [
|
|
465
475
|
"variant",
|
|
466
476
|
"decimals",
|
|
@@ -469,7 +479,8 @@ var Input = (_a) => {
|
|
|
469
479
|
"value",
|
|
470
480
|
"onChange",
|
|
471
481
|
"onBlur",
|
|
472
|
-
"onClear"
|
|
482
|
+
"onClear",
|
|
483
|
+
"id"
|
|
473
484
|
]);
|
|
474
485
|
const [internalValue, setInternalValue] = (0, import_react.useState)("");
|
|
475
486
|
const [displayValue, setDisplayValue] = (0, import_react.useState)("");
|
|
@@ -495,7 +506,9 @@ var Input = (_a) => {
|
|
|
495
506
|
}, [propValue, decimals, variant]);
|
|
496
507
|
const getInputProps = () => {
|
|
497
508
|
var _a2;
|
|
498
|
-
const baseProps = __spreadProps(__spreadValues(__spreadValues({}, props),
|
|
509
|
+
const baseProps = __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, props), {
|
|
510
|
+
id
|
|
511
|
+
}), getDecimalPlaceholder(decimals)), {
|
|
499
512
|
value: propValue
|
|
500
513
|
});
|
|
501
514
|
switch (variant) {
|
|
@@ -542,6 +555,7 @@ var Input = (_a) => {
|
|
|
542
555
|
return hasValue && !props.readOnly ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
543
556
|
Icon,
|
|
544
557
|
{
|
|
558
|
+
id: id ? `${id}-clear-button` : void 0,
|
|
545
559
|
name: "close",
|
|
546
560
|
onClick: handleSearchReset,
|
|
547
561
|
className: "cursor-pointer absolute right-2 bottom-2/4 translate-y-2/4"
|
|
@@ -674,6 +688,7 @@ var import_clsx5 = __toESM(require("clsx"), 1);
|
|
|
674
688
|
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
675
689
|
var Select = (_a) => {
|
|
676
690
|
var _b = _a, {
|
|
691
|
+
id,
|
|
677
692
|
label,
|
|
678
693
|
error,
|
|
679
694
|
children,
|
|
@@ -686,6 +701,7 @@ var Select = (_a) => {
|
|
|
686
701
|
displayValue,
|
|
687
702
|
value
|
|
688
703
|
} = _b, props = __objRest(_b, [
|
|
704
|
+
"id",
|
|
689
705
|
"label",
|
|
690
706
|
"error",
|
|
691
707
|
"children",
|
|
@@ -714,6 +730,7 @@ var Select = (_a) => {
|
|
|
714
730
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
715
731
|
InputBase,
|
|
716
732
|
__spreadProps(__spreadValues({
|
|
733
|
+
id,
|
|
717
734
|
inputContainerRef,
|
|
718
735
|
ref: inputRef,
|
|
719
736
|
label,
|
|
@@ -753,6 +770,7 @@ var Select = (_a) => {
|
|
|
753
770
|
})
|
|
754
771
|
),
|
|
755
772
|
renderMenu ? renderMenu({
|
|
773
|
+
id: `${id}-menu`,
|
|
756
774
|
positionTo: inputContainerRef,
|
|
757
775
|
show,
|
|
758
776
|
setShow,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Select
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-2S2Z3L56.js";
|
|
5
|
+
import "../chunk-QV2EFOYF.js";
|
|
6
|
+
import "../chunk-S5K22XTH.js";
|
|
7
7
|
import "../chunk-IGQVA7SC.js";
|
|
8
8
|
import "../chunk-RDLEIAQU.js";
|
|
9
9
|
import "../chunk-ORMEWXMH.js";
|
|
@@ -35,10 +35,15 @@ __export(SideMenu_exports, {
|
|
|
35
35
|
module.exports = __toCommonJS(SideMenu_exports);
|
|
36
36
|
var import_clsx = __toESM(require("clsx"), 1);
|
|
37
37
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
38
|
-
var SideMenu = ({
|
|
38
|
+
var SideMenu = ({
|
|
39
|
+
children,
|
|
40
|
+
cardStyle = false,
|
|
41
|
+
id
|
|
42
|
+
}) => {
|
|
39
43
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
40
44
|
"div",
|
|
41
45
|
{
|
|
46
|
+
id,
|
|
42
47
|
className: (0, import_clsx.default)(
|
|
43
48
|
"flex flex-col",
|
|
44
49
|
cardStyle && "p-mobile-layout-padding desktop:p-desktop-layout-padding compact:p-desktop-compact-layout-padding rounded shadow-4 bg-background-primary-normal"
|
|
@@ -3,10 +3,15 @@ import "../chunk-ORMEWXMH.js";
|
|
|
3
3
|
// src/components/SideMenu.tsx
|
|
4
4
|
import clsx from "clsx";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
|
-
var SideMenu = ({
|
|
6
|
+
var SideMenu = ({
|
|
7
|
+
children,
|
|
8
|
+
cardStyle = false,
|
|
9
|
+
id
|
|
10
|
+
}) => {
|
|
7
11
|
return /* @__PURE__ */ jsx(
|
|
8
12
|
"div",
|
|
9
13
|
{
|
|
14
|
+
id,
|
|
10
15
|
className: clsx(
|
|
11
16
|
"flex flex-col",
|
|
12
17
|
cardStyle && "p-mobile-layout-padding desktop:p-desktop-layout-padding compact:p-desktop-compact-layout-padding rounded shadow-4 bg-background-primary-normal"
|
|
@@ -203,18 +203,21 @@ var Label = (_a) => {
|
|
|
203
203
|
padded,
|
|
204
204
|
className,
|
|
205
205
|
color,
|
|
206
|
-
align
|
|
206
|
+
align,
|
|
207
|
+
id
|
|
207
208
|
} = _b, props = __objRest(_b, [
|
|
208
209
|
"as",
|
|
209
210
|
"padded",
|
|
210
211
|
"className",
|
|
211
212
|
"color",
|
|
212
|
-
"align"
|
|
213
|
+
"align",
|
|
214
|
+
"id"
|
|
213
215
|
]);
|
|
214
216
|
const Element = as;
|
|
215
217
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
216
218
|
Element,
|
|
217
219
|
__spreadProps(__spreadValues({
|
|
220
|
+
id,
|
|
218
221
|
className: (0, import_clsx2.default)(
|
|
219
222
|
typography.label,
|
|
220
223
|
align === "left" && "text-left",
|
|
@@ -250,38 +253,70 @@ var useFlexClassNames = ({ items, justify, grow }) => (0, import_clsx3.default)(
|
|
|
250
253
|
justify === "between" && "justify-between",
|
|
251
254
|
justify === "around" && "justify-around"
|
|
252
255
|
);
|
|
253
|
-
var Stack = ({
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
256
|
+
var Stack = (_a) => {
|
|
257
|
+
var _b = _a, {
|
|
258
|
+
children,
|
|
259
|
+
items,
|
|
260
|
+
justify,
|
|
261
|
+
grow,
|
|
262
|
+
padding,
|
|
263
|
+
paddingX,
|
|
264
|
+
horizontal,
|
|
265
|
+
horizontalMobile,
|
|
266
|
+
elevation = 0,
|
|
267
|
+
rounded,
|
|
268
|
+
centered,
|
|
269
|
+
width,
|
|
270
|
+
maxWidth,
|
|
271
|
+
minWidth,
|
|
272
|
+
height,
|
|
273
|
+
maxHeight,
|
|
274
|
+
borderColor,
|
|
275
|
+
backgroundColor,
|
|
276
|
+
sizing = "none",
|
|
277
|
+
overflowY = "inherit",
|
|
278
|
+
overflowX = "inherit",
|
|
279
|
+
flexShrink,
|
|
280
|
+
flexGrow,
|
|
281
|
+
position,
|
|
282
|
+
top,
|
|
283
|
+
left,
|
|
284
|
+
id
|
|
285
|
+
} = _b, props = __objRest(_b, [
|
|
286
|
+
"children",
|
|
287
|
+
"items",
|
|
288
|
+
"justify",
|
|
289
|
+
"grow",
|
|
290
|
+
"padding",
|
|
291
|
+
"paddingX",
|
|
292
|
+
"horizontal",
|
|
293
|
+
"horizontalMobile",
|
|
294
|
+
"elevation",
|
|
295
|
+
"rounded",
|
|
296
|
+
"centered",
|
|
297
|
+
"width",
|
|
298
|
+
"maxWidth",
|
|
299
|
+
"minWidth",
|
|
300
|
+
"height",
|
|
301
|
+
"maxHeight",
|
|
302
|
+
"borderColor",
|
|
303
|
+
"backgroundColor",
|
|
304
|
+
"sizing",
|
|
305
|
+
"overflowY",
|
|
306
|
+
"overflowX",
|
|
307
|
+
"flexShrink",
|
|
308
|
+
"flexGrow",
|
|
309
|
+
"position",
|
|
310
|
+
"top",
|
|
311
|
+
"left",
|
|
312
|
+
"id"
|
|
313
|
+
]);
|
|
281
314
|
const flexClassNames = useFlexClassNames({ items, justify, grow });
|
|
282
315
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
283
316
|
"div",
|
|
284
|
-
{
|
|
317
|
+
__spreadProps(__spreadValues({
|
|
318
|
+
id
|
|
319
|
+
}, props), {
|
|
285
320
|
style: {
|
|
286
321
|
height: height === "full" ? "100%" : height !== void 0 ? `${height}px` : void 0,
|
|
287
322
|
maxHeight: maxHeight !== void 0 ? `${maxHeight}px` : void 0,
|
|
@@ -329,7 +364,7 @@ var Stack = ({
|
|
|
329
364
|
rounded && "rounded"
|
|
330
365
|
),
|
|
331
366
|
children
|
|
332
|
-
}
|
|
367
|
+
})
|
|
333
368
|
);
|
|
334
369
|
};
|
|
335
370
|
|
|
@@ -368,6 +403,7 @@ function Icon(_a) {
|
|
|
368
403
|
// src/components/SideMenuGroup.tsx
|
|
369
404
|
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
370
405
|
var SideMenuGroup = ({
|
|
406
|
+
id,
|
|
371
407
|
label,
|
|
372
408
|
groupIndentLevel = 1,
|
|
373
409
|
collapsed = false,
|
|
@@ -389,6 +425,7 @@ var SideMenuGroup = ({
|
|
|
389
425
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
390
426
|
"div",
|
|
391
427
|
__spreadProps(__spreadValues({
|
|
428
|
+
id,
|
|
392
429
|
className: (0, import_clsx5.default)(
|
|
393
430
|
"group/sm-group flex rounded cursor-pointer",
|
|
394
431
|
"bg-transparent",
|
|
@@ -399,26 +436,36 @@ var SideMenuGroup = ({
|
|
|
399
436
|
),
|
|
400
437
|
onClick: toggleCollapse
|
|
401
438
|
}, additionalAttr), {
|
|
402
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
439
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
|
|
440
|
+
Stack,
|
|
441
|
+
{
|
|
442
|
+
id: id ? `${id}-stack` : void 0,
|
|
443
|
+
horizontal: true,
|
|
444
|
+
items: "center",
|
|
445
|
+
sizing: "component",
|
|
446
|
+
padding: true,
|
|
447
|
+
children: [
|
|
448
|
+
groupIndentLevel === 2 && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "pl-6" }),
|
|
449
|
+
groupIndentLevel === 3 && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "pl-13" }),
|
|
450
|
+
groupIndentLevel === 4 && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "pl-20" }),
|
|
451
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
452
|
+
Icon,
|
|
413
453
|
{
|
|
414
|
-
"
|
|
454
|
+
name: "keyboard_arrow_down",
|
|
455
|
+
className: (0, import_clsx5.default)(
|
|
456
|
+
"transition duration-100 ease-in-out",
|
|
457
|
+
"pointer-events-none",
|
|
458
|
+
{
|
|
459
|
+
"rotate-180": !internalCollapsed
|
|
460
|
+
}
|
|
461
|
+
),
|
|
462
|
+
size: 24
|
|
415
463
|
}
|
|
416
464
|
),
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
] })
|
|
465
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Label, { id: id ? `${id}-label` : void 0, padded: true, children: label })
|
|
466
|
+
]
|
|
467
|
+
}
|
|
468
|
+
)
|
|
422
469
|
})
|
|
423
470
|
),
|
|
424
471
|
!internalCollapsed && children
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Stack
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-57WRM337.js";
|
|
5
5
|
import {
|
|
6
6
|
Label
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-S5K22XTH.js";
|
|
8
8
|
import {
|
|
9
9
|
Icon
|
|
10
10
|
} from "../chunk-IGQVA7SC.js";
|
|
@@ -21,6 +21,7 @@ import clsx from "clsx";
|
|
|
21
21
|
import { useEffect, useState } from "react";
|
|
22
22
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
23
23
|
var SideMenuGroup = ({
|
|
24
|
+
id,
|
|
24
25
|
label,
|
|
25
26
|
groupIndentLevel = 1,
|
|
26
27
|
collapsed = false,
|
|
@@ -42,6 +43,7 @@ var SideMenuGroup = ({
|
|
|
42
43
|
/* @__PURE__ */ jsx(
|
|
43
44
|
"div",
|
|
44
45
|
__spreadProps(__spreadValues({
|
|
46
|
+
id,
|
|
45
47
|
className: clsx(
|
|
46
48
|
"group/sm-group flex rounded cursor-pointer",
|
|
47
49
|
"bg-transparent",
|
|
@@ -52,26 +54,36 @@ var SideMenuGroup = ({
|
|
|
52
54
|
),
|
|
53
55
|
onClick: toggleCollapse
|
|
54
56
|
}, additionalAttr), {
|
|
55
|
-
children: /* @__PURE__ */ jsxs(
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
57
|
+
children: /* @__PURE__ */ jsxs(
|
|
58
|
+
Stack,
|
|
59
|
+
{
|
|
60
|
+
id: id ? `${id}-stack` : void 0,
|
|
61
|
+
horizontal: true,
|
|
62
|
+
items: "center",
|
|
63
|
+
sizing: "component",
|
|
64
|
+
padding: true,
|
|
65
|
+
children: [
|
|
66
|
+
groupIndentLevel === 2 && /* @__PURE__ */ jsx("div", { className: "pl-6" }),
|
|
67
|
+
groupIndentLevel === 3 && /* @__PURE__ */ jsx("div", { className: "pl-13" }),
|
|
68
|
+
groupIndentLevel === 4 && /* @__PURE__ */ jsx("div", { className: "pl-20" }),
|
|
69
|
+
/* @__PURE__ */ jsx(
|
|
70
|
+
Icon,
|
|
66
71
|
{
|
|
67
|
-
"
|
|
72
|
+
name: "keyboard_arrow_down",
|
|
73
|
+
className: clsx(
|
|
74
|
+
"transition duration-100 ease-in-out",
|
|
75
|
+
"pointer-events-none",
|
|
76
|
+
{
|
|
77
|
+
"rotate-180": !internalCollapsed
|
|
78
|
+
}
|
|
79
|
+
),
|
|
80
|
+
size: 24
|
|
68
81
|
}
|
|
69
82
|
),
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
] })
|
|
83
|
+
/* @__PURE__ */ jsx(Label, { id: id ? `${id}-label` : void 0, padded: true, children: label })
|
|
84
|
+
]
|
|
85
|
+
}
|
|
86
|
+
)
|
|
75
87
|
})
|
|
76
88
|
),
|
|
77
89
|
!internalCollapsed && children
|