@dmsi/wedgekit-react 0.0.26 → 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
|
@@ -202,20 +202,23 @@ var Heading = (_a) => {
|
|
|
202
202
|
as,
|
|
203
203
|
color,
|
|
204
204
|
align,
|
|
205
|
-
variant = "heading1"
|
|
205
|
+
variant = "heading1",
|
|
206
|
+
id
|
|
206
207
|
} = _b, props = __objRest(_b, [
|
|
207
208
|
"className",
|
|
208
209
|
"children",
|
|
209
210
|
"as",
|
|
210
211
|
"color",
|
|
211
212
|
"align",
|
|
212
|
-
"variant"
|
|
213
|
+
"variant",
|
|
214
|
+
"id"
|
|
213
215
|
]);
|
|
214
216
|
const defaultElement = variant === "heading1" ? "h1" : variant === "heading2" ? "h2" : "h3";
|
|
215
217
|
const Element = as != null ? as : defaultElement;
|
|
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[variant],
|
|
221
224
|
className,
|
|
@@ -24,8 +24,8 @@ __export(HorizontalDivider_exports, {
|
|
|
24
24
|
});
|
|
25
25
|
module.exports = __toCommonJS(HorizontalDivider_exports);
|
|
26
26
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
27
|
-
function HorizontalDivider() {
|
|
28
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("hr", { className: "w-full border-t border-border-primary-normal" });
|
|
27
|
+
function HorizontalDivider({ id }) {
|
|
28
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("hr", { id, className: "w-full border-t border-border-primary-normal" });
|
|
29
29
|
}
|
|
30
30
|
// Annotate the CommonJS export names for ESM import in node:
|
|
31
31
|
0 && (module.exports = {
|
|
@@ -2,8 +2,8 @@ import "../chunk-ORMEWXMH.js";
|
|
|
2
2
|
|
|
3
3
|
// src/components/HorizontalDivider.tsx
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
|
-
function HorizontalDivider() {
|
|
6
|
-
return /* @__PURE__ */ jsx("hr", { className: "w-full border-t border-border-primary-normal" });
|
|
5
|
+
function HorizontalDivider({ id }) {
|
|
6
|
+
return /* @__PURE__ */ jsx("hr", { id, className: "w-full border-t border-border-primary-normal" });
|
|
7
7
|
}
|
|
8
8
|
export {
|
|
9
9
|
HorizontalDivider
|
|
@@ -206,18 +206,21 @@ var Label = (_a) => {
|
|
|
206
206
|
padded,
|
|
207
207
|
className,
|
|
208
208
|
color,
|
|
209
|
-
align
|
|
209
|
+
align,
|
|
210
|
+
id
|
|
210
211
|
} = _b, props = __objRest(_b, [
|
|
211
212
|
"as",
|
|
212
213
|
"padded",
|
|
213
214
|
"className",
|
|
214
215
|
"color",
|
|
215
|
-
"align"
|
|
216
|
+
"align",
|
|
217
|
+
"id"
|
|
216
218
|
]);
|
|
217
219
|
const Element = as;
|
|
218
220
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
219
221
|
Element,
|
|
220
222
|
__spreadProps(__spreadValues({
|
|
223
|
+
id,
|
|
221
224
|
className: (0, import_clsx2.default)(
|
|
222
225
|
typography.label,
|
|
223
226
|
align === "left" && "text-left",
|
|
@@ -304,6 +307,7 @@ function formatCurrencyDisplay(value) {
|
|
|
304
307
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
305
308
|
var InputBase = (_a) => {
|
|
306
309
|
var _b = _a, {
|
|
310
|
+
id,
|
|
307
311
|
before,
|
|
308
312
|
after,
|
|
309
313
|
type,
|
|
@@ -320,6 +324,7 @@ var InputBase = (_a) => {
|
|
|
320
324
|
wrapperClassName,
|
|
321
325
|
focus
|
|
322
326
|
} = _b, props = __objRest(_b, [
|
|
327
|
+
"id",
|
|
323
328
|
"before",
|
|
324
329
|
"after",
|
|
325
330
|
"type",
|
|
@@ -341,6 +346,7 @@ var InputBase = (_a) => {
|
|
|
341
346
|
"data-focus": focus || null
|
|
342
347
|
};
|
|
343
348
|
const inputRef = (0, import_react.useRef)(null);
|
|
349
|
+
const inputId = `${id}-input`;
|
|
344
350
|
(0, import_react.useEffect)(() => {
|
|
345
351
|
var _a2;
|
|
346
352
|
const input = inputRef.current;
|
|
@@ -381,6 +387,8 @@ var InputBase = (_a) => {
|
|
|
381
387
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
382
388
|
"label",
|
|
383
389
|
{
|
|
390
|
+
id,
|
|
391
|
+
htmlFor: inputId,
|
|
384
392
|
ref: inputContainerRef,
|
|
385
393
|
className: (0, import_clsx4.default)(
|
|
386
394
|
"w-full flex flex-col",
|
|
@@ -394,6 +402,7 @@ var InputBase = (_a) => {
|
|
|
394
402
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
395
403
|
Label,
|
|
396
404
|
{
|
|
405
|
+
id: id ? `${id}-label` : void 0,
|
|
397
406
|
className: (0, import_clsx4.default)(
|
|
398
407
|
props.disabled || props.readOnly ? "cursor-default" : "cursor-pointer"
|
|
399
408
|
),
|
|
@@ -430,7 +439,7 @@ var InputBase = (_a) => {
|
|
|
430
439
|
type,
|
|
431
440
|
required
|
|
432
441
|
}, props), attributes), {
|
|
433
|
-
id:
|
|
442
|
+
id: inputId,
|
|
434
443
|
className: (0, import_clsx4.default)(
|
|
435
444
|
"flex-1 outline-none w-full max-w-full min-h-6 min-w-0",
|
|
436
445
|
"[appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",
|
|
@@ -448,7 +457,7 @@ var InputBase = (_a) => {
|
|
|
448
457
|
]
|
|
449
458
|
}
|
|
450
459
|
),
|
|
451
|
-
caption
|
|
460
|
+
caption && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { id: id ? `${id}-caption` : void 0, children: caption })
|
|
452
461
|
]
|
|
453
462
|
}
|
|
454
463
|
);
|
|
@@ -462,7 +471,8 @@ var Input = (_a) => {
|
|
|
462
471
|
value: propValue,
|
|
463
472
|
onChange,
|
|
464
473
|
onBlur,
|
|
465
|
-
onClear
|
|
474
|
+
onClear,
|
|
475
|
+
id
|
|
466
476
|
} = _b, props = __objRest(_b, [
|
|
467
477
|
"variant",
|
|
468
478
|
"decimals",
|
|
@@ -471,7 +481,8 @@ var Input = (_a) => {
|
|
|
471
481
|
"value",
|
|
472
482
|
"onChange",
|
|
473
483
|
"onBlur",
|
|
474
|
-
"onClear"
|
|
484
|
+
"onClear",
|
|
485
|
+
"id"
|
|
475
486
|
]);
|
|
476
487
|
const [internalValue, setInternalValue] = (0, import_react.useState)("");
|
|
477
488
|
const [displayValue, setDisplayValue] = (0, import_react.useState)("");
|
|
@@ -497,7 +508,9 @@ var Input = (_a) => {
|
|
|
497
508
|
}, [propValue, decimals, variant]);
|
|
498
509
|
const getInputProps = () => {
|
|
499
510
|
var _a2;
|
|
500
|
-
const baseProps = __spreadProps(__spreadValues(__spreadValues({}, props),
|
|
511
|
+
const baseProps = __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, props), {
|
|
512
|
+
id
|
|
513
|
+
}), getDecimalPlaceholder(decimals)), {
|
|
501
514
|
value: propValue
|
|
502
515
|
});
|
|
503
516
|
switch (variant) {
|
|
@@ -544,6 +557,7 @@ var Input = (_a) => {
|
|
|
544
557
|
return hasValue && !props.readOnly ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
545
558
|
Icon,
|
|
546
559
|
{
|
|
560
|
+
id: id ? `${id}-clear-button` : void 0,
|
|
547
561
|
name: "close",
|
|
548
562
|
onClick: handleSearchReset,
|
|
549
563
|
className: "cursor-pointer absolute right-2 bottom-2/4 translate-y-2/4"
|
package/dist/components/Input.js
CHANGED
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
InputBase,
|
|
7
7
|
Percentage,
|
|
8
8
|
UOM
|
|
9
|
-
} from "../chunk-
|
|
10
|
-
import "../chunk-
|
|
9
|
+
} from "../chunk-QV2EFOYF.js";
|
|
10
|
+
import "../chunk-S5K22XTH.js";
|
|
11
11
|
import "../chunk-IGQVA7SC.js";
|
|
12
12
|
import "../chunk-RDLEIAQU.js";
|
|
13
13
|
import "../chunk-ORMEWXMH.js";
|
|
@@ -201,18 +201,21 @@ var Label = (_a) => {
|
|
|
201
201
|
padded,
|
|
202
202
|
className,
|
|
203
203
|
color,
|
|
204
|
-
align
|
|
204
|
+
align,
|
|
205
|
+
id
|
|
205
206
|
} = _b, props = __objRest(_b, [
|
|
206
207
|
"as",
|
|
207
208
|
"padded",
|
|
208
209
|
"className",
|
|
209
210
|
"color",
|
|
210
|
-
"align"
|
|
211
|
+
"align",
|
|
212
|
+
"id"
|
|
211
213
|
]);
|
|
212
214
|
const Element = as;
|
|
213
215
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
214
216
|
Element,
|
|
215
217
|
__spreadProps(__spreadValues({
|
|
218
|
+
id,
|
|
216
219
|
className: (0, import_clsx2.default)(
|
|
217
220
|
typography.label,
|
|
218
221
|
align === "left" && "text-left",
|
|
@@ -236,26 +239,30 @@ var import_react = require("react");
|
|
|
236
239
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
237
240
|
var InputGroup = (_a) => {
|
|
238
241
|
var _b = _a, {
|
|
242
|
+
id,
|
|
239
243
|
label,
|
|
240
244
|
orientation = "horizontal",
|
|
241
245
|
error = false,
|
|
242
246
|
children,
|
|
243
247
|
caption
|
|
244
248
|
} = _b, props = __objRest(_b, [
|
|
249
|
+
"id",
|
|
245
250
|
"label",
|
|
246
251
|
"orientation",
|
|
247
252
|
"error",
|
|
248
253
|
"children",
|
|
249
254
|
"caption"
|
|
250
255
|
]);
|
|
251
|
-
const
|
|
252
|
-
|
|
256
|
+
const internalId = (0, import_react.useId)();
|
|
257
|
+
const labelId = `${id}-label`;
|
|
258
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", __spreadProps(__spreadValues({ id }, props), { className: (0, import_clsx3.default)("flex flex-col", componentGap), children: [
|
|
253
259
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
254
260
|
Label,
|
|
255
261
|
{
|
|
262
|
+
id: labelId,
|
|
256
263
|
as: "label",
|
|
257
264
|
className: (0, import_clsx3.default)({ "!text-text-primary-error": error }),
|
|
258
|
-
htmlFor:
|
|
265
|
+
htmlFor: internalId,
|
|
259
266
|
children: label
|
|
260
267
|
}
|
|
261
268
|
),
|
|
@@ -269,7 +276,7 @@ var InputGroup = (_a) => {
|
|
|
269
276
|
children
|
|
270
277
|
}
|
|
271
278
|
),
|
|
272
|
-
caption
|
|
279
|
+
caption && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { id: id ? `${id}-caption` : void 0, children: caption })
|
|
273
280
|
] }));
|
|
274
281
|
};
|
|
275
282
|
InputGroup.displayName = "InputGroup";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Label
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-S5K22XTH.js";
|
|
5
5
|
import {
|
|
6
6
|
componentGap,
|
|
7
7
|
layoutGap
|
|
@@ -18,26 +18,30 @@ import { useId } from "react";
|
|
|
18
18
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
19
19
|
var InputGroup = (_a) => {
|
|
20
20
|
var _b = _a, {
|
|
21
|
+
id,
|
|
21
22
|
label,
|
|
22
23
|
orientation = "horizontal",
|
|
23
24
|
error = false,
|
|
24
25
|
children,
|
|
25
26
|
caption
|
|
26
27
|
} = _b, props = __objRest(_b, [
|
|
28
|
+
"id",
|
|
27
29
|
"label",
|
|
28
30
|
"orientation",
|
|
29
31
|
"error",
|
|
30
32
|
"children",
|
|
31
33
|
"caption"
|
|
32
34
|
]);
|
|
33
|
-
const
|
|
34
|
-
|
|
35
|
+
const internalId = useId();
|
|
36
|
+
const labelId = `${id}-label`;
|
|
37
|
+
return /* @__PURE__ */ jsxs("div", __spreadProps(__spreadValues({ id }, props), { className: clsx("flex flex-col", componentGap), children: [
|
|
35
38
|
/* @__PURE__ */ jsx(
|
|
36
39
|
Label,
|
|
37
40
|
{
|
|
41
|
+
id: labelId,
|
|
38
42
|
as: "label",
|
|
39
43
|
className: clsx({ "!text-text-primary-error": error }),
|
|
40
|
-
htmlFor:
|
|
44
|
+
htmlFor: internalId,
|
|
41
45
|
children: label
|
|
42
46
|
}
|
|
43
47
|
),
|
|
@@ -51,7 +55,7 @@ var InputGroup = (_a) => {
|
|
|
51
55
|
children
|
|
52
56
|
}
|
|
53
57
|
),
|
|
54
|
-
caption
|
|
58
|
+
caption && /* @__PURE__ */ jsx("div", { id: id ? `${id}-caption` : void 0, children: caption })
|
|
55
59
|
] }));
|
|
56
60
|
};
|
|
57
61
|
InputGroup.displayName = "InputGroup";
|
|
@@ -198,18 +198,21 @@ var Label = (_a) => {
|
|
|
198
198
|
padded,
|
|
199
199
|
className,
|
|
200
200
|
color,
|
|
201
|
-
align
|
|
201
|
+
align,
|
|
202
|
+
id
|
|
202
203
|
} = _b, props = __objRest(_b, [
|
|
203
204
|
"as",
|
|
204
205
|
"padded",
|
|
205
206
|
"className",
|
|
206
207
|
"color",
|
|
207
|
-
"align"
|
|
208
|
+
"align",
|
|
209
|
+
"id"
|
|
208
210
|
]);
|
|
209
211
|
const Element = as;
|
|
210
212
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
211
213
|
Element,
|
|
212
214
|
__spreadProps(__spreadValues({
|
|
215
|
+
id,
|
|
213
216
|
className: (0, import_clsx2.default)(
|
|
214
217
|
typography.label,
|
|
215
218
|
align === "left" && "text-left",
|
package/dist/components/Label.js
CHANGED
package/dist/components/List.cjs
CHANGED
|
@@ -26,10 +26,11 @@ module.exports = __toCommonJS(List_exports);
|
|
|
26
26
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
27
27
|
function List({
|
|
28
28
|
children,
|
|
29
|
-
ordered
|
|
29
|
+
ordered,
|
|
30
|
+
id
|
|
30
31
|
}) {
|
|
31
32
|
const Element = ordered ? "ol" : "ul";
|
|
32
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Element, { className: "list-disc list-inside", children });
|
|
33
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Element, { id, className: "list-disc list-inside", children });
|
|
33
34
|
}
|
|
34
35
|
// Annotate the CommonJS export names for ESM import in node:
|
|
35
36
|
0 && (module.exports = {
|
package/dist/components/List.js
CHANGED
|
@@ -4,10 +4,11 @@ import "../chunk-ORMEWXMH.js";
|
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
function List({
|
|
6
6
|
children,
|
|
7
|
-
ordered
|
|
7
|
+
ordered,
|
|
8
|
+
id
|
|
8
9
|
}) {
|
|
9
10
|
const Element = ordered ? "ol" : "ul";
|
|
10
|
-
return /* @__PURE__ */ jsx(Element, { className: "list-disc list-inside", children });
|
|
11
|
+
return /* @__PURE__ */ jsx(Element, { id, className: "list-disc list-inside", children });
|
|
11
12
|
}
|
|
12
13
|
export {
|
|
13
14
|
List
|
|
@@ -1,8 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defProps = Object.defineProperties;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
8
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
10
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
11
|
+
var __spreadValues = (a, b) => {
|
|
12
|
+
for (var prop in b || (b = {}))
|
|
13
|
+
if (__hasOwnProp.call(b, prop))
|
|
14
|
+
__defNormalProp(a, prop, b[prop]);
|
|
15
|
+
if (__getOwnPropSymbols)
|
|
16
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
17
|
+
if (__propIsEnum.call(b, prop))
|
|
18
|
+
__defNormalProp(a, prop, b[prop]);
|
|
19
|
+
}
|
|
20
|
+
return a;
|
|
21
|
+
};
|
|
22
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
6
23
|
var __export = (target, all) => {
|
|
7
24
|
for (var name in all)
|
|
8
25
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -24,13 +41,14 @@ __export(LogoAgilityTopBar_exports, {
|
|
|
24
41
|
});
|
|
25
42
|
module.exports = __toCommonJS(LogoAgilityTopBar_exports);
|
|
26
43
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
27
|
-
function LogoAgilityTopBar() {
|
|
44
|
+
function LogoAgilityTopBar(props) {
|
|
28
45
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
29
46
|
"svg",
|
|
30
|
-
{
|
|
47
|
+
__spreadProps(__spreadValues({
|
|
31
48
|
xmlns: "http://www.w3.org/2000/svg",
|
|
32
49
|
width: "148",
|
|
33
|
-
height: "24"
|
|
50
|
+
height: "24"
|
|
51
|
+
}, props), {
|
|
34
52
|
viewBox: "0 0 148 24",
|
|
35
53
|
fill: "none",
|
|
36
54
|
children: [
|
|
@@ -106,7 +124,7 @@ function LogoAgilityTopBar() {
|
|
|
106
124
|
}
|
|
107
125
|
)
|
|
108
126
|
]
|
|
109
|
-
}
|
|
127
|
+
})
|
|
110
128
|
);
|
|
111
129
|
}
|
|
112
130
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -1,14 +1,18 @@
|
|
|
1
|
-
import
|
|
1
|
+
import {
|
|
2
|
+
__spreadProps,
|
|
3
|
+
__spreadValues
|
|
4
|
+
} from "../chunk-ORMEWXMH.js";
|
|
2
5
|
|
|
3
6
|
// src/components/LogoAgilityTopBar.tsx
|
|
4
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
-
function LogoAgilityTopBar() {
|
|
8
|
+
function LogoAgilityTopBar(props) {
|
|
6
9
|
return /* @__PURE__ */ jsxs(
|
|
7
10
|
"svg",
|
|
8
|
-
{
|
|
11
|
+
__spreadProps(__spreadValues({
|
|
9
12
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10
13
|
width: "148",
|
|
11
|
-
height: "24"
|
|
14
|
+
height: "24"
|
|
15
|
+
}, props), {
|
|
12
16
|
viewBox: "0 0 148 24",
|
|
13
17
|
fill: "none",
|
|
14
18
|
children: [
|
|
@@ -84,7 +88,7 @@ function LogoAgilityTopBar() {
|
|
|
84
88
|
}
|
|
85
89
|
)
|
|
86
90
|
]
|
|
87
|
-
}
|
|
91
|
+
})
|
|
88
92
|
);
|
|
89
93
|
}
|
|
90
94
|
export {
|
|
@@ -1,8 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defProps = Object.defineProperties;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
8
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
10
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
11
|
+
var __spreadValues = (a, b) => {
|
|
12
|
+
for (var prop in b || (b = {}))
|
|
13
|
+
if (__hasOwnProp.call(b, prop))
|
|
14
|
+
__defNormalProp(a, prop, b[prop]);
|
|
15
|
+
if (__getOwnPropSymbols)
|
|
16
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
17
|
+
if (__propIsEnum.call(b, prop))
|
|
18
|
+
__defNormalProp(a, prop, b[prop]);
|
|
19
|
+
}
|
|
20
|
+
return a;
|
|
21
|
+
};
|
|
22
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
6
23
|
var __export = (target, all) => {
|
|
7
24
|
for (var name in all)
|
|
8
25
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -24,13 +41,14 @@ __export(LogoDMSiTopBar_exports, {
|
|
|
24
41
|
});
|
|
25
42
|
module.exports = __toCommonJS(LogoDMSiTopBar_exports);
|
|
26
43
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
27
|
-
function LogoDMSiTopBar() {
|
|
44
|
+
function LogoDMSiTopBar(props) {
|
|
28
45
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
29
46
|
"svg",
|
|
30
|
-
{
|
|
47
|
+
__spreadProps(__spreadValues({
|
|
31
48
|
width: "106",
|
|
32
49
|
height: "24",
|
|
33
|
-
viewBox: "0 0 106 24"
|
|
50
|
+
viewBox: "0 0 106 24"
|
|
51
|
+
}, props), {
|
|
34
52
|
fill: "none",
|
|
35
53
|
xmlns: "http://www.w3.org/2000/svg",
|
|
36
54
|
children: [
|
|
@@ -70,7 +88,7 @@ function LogoDMSiTopBar() {
|
|
|
70
88
|
}
|
|
71
89
|
)
|
|
72
90
|
]
|
|
73
|
-
}
|
|
91
|
+
})
|
|
74
92
|
);
|
|
75
93
|
}
|
|
76
94
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -1,8 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defProps = Object.defineProperties;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
8
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
10
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
11
|
+
var __spreadValues = (a, b) => {
|
|
12
|
+
for (var prop in b || (b = {}))
|
|
13
|
+
if (__hasOwnProp.call(b, prop))
|
|
14
|
+
__defNormalProp(a, prop, b[prop]);
|
|
15
|
+
if (__getOwnPropSymbols)
|
|
16
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
17
|
+
if (__propIsEnum.call(b, prop))
|
|
18
|
+
__defNormalProp(a, prop, b[prop]);
|
|
19
|
+
}
|
|
20
|
+
return a;
|
|
21
|
+
};
|
|
22
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
6
23
|
var __export = (target, all) => {
|
|
7
24
|
for (var name in all)
|
|
8
25
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -24,15 +41,16 @@ __export(LogoMillworkTopBar_exports, {
|
|
|
24
41
|
});
|
|
25
42
|
module.exports = __toCommonJS(LogoMillworkTopBar_exports);
|
|
26
43
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
27
|
-
function LogoMillworkTopBar() {
|
|
44
|
+
function LogoMillworkTopBar(props) {
|
|
28
45
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
29
46
|
"svg",
|
|
30
|
-
{
|
|
47
|
+
__spreadProps(__spreadValues({
|
|
31
48
|
xmlns: "http://www.w3.org/2000/svg",
|
|
32
49
|
width: "94",
|
|
33
50
|
height: "25",
|
|
34
51
|
viewBox: "0 0 94 25",
|
|
35
|
-
fill: "none"
|
|
52
|
+
fill: "none"
|
|
53
|
+
}, props), {
|
|
36
54
|
children: [
|
|
37
55
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
38
56
|
"mask",
|
|
@@ -212,7 +230,7 @@ function LogoMillworkTopBar() {
|
|
|
212
230
|
)
|
|
213
231
|
] })
|
|
214
232
|
]
|
|
215
|
-
}
|
|
233
|
+
})
|
|
216
234
|
);
|
|
217
235
|
}
|
|
218
236
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -1,16 +1,20 @@
|
|
|
1
|
-
import
|
|
1
|
+
import {
|
|
2
|
+
__spreadProps,
|
|
3
|
+
__spreadValues
|
|
4
|
+
} from "../chunk-ORMEWXMH.js";
|
|
2
5
|
|
|
3
6
|
// src/components/LogoMillworkTopBar.tsx
|
|
4
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
-
function LogoMillworkTopBar() {
|
|
8
|
+
function LogoMillworkTopBar(props) {
|
|
6
9
|
return /* @__PURE__ */ jsxs(
|
|
7
10
|
"svg",
|
|
8
|
-
{
|
|
11
|
+
__spreadProps(__spreadValues({
|
|
9
12
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10
13
|
width: "94",
|
|
11
14
|
height: "25",
|
|
12
15
|
viewBox: "0 0 94 25",
|
|
13
|
-
fill: "none"
|
|
16
|
+
fill: "none"
|
|
17
|
+
}, props), {
|
|
14
18
|
children: [
|
|
15
19
|
/* @__PURE__ */ jsx(
|
|
16
20
|
"mask",
|
|
@@ -190,7 +194,7 @@ function LogoMillworkTopBar() {
|
|
|
190
194
|
)
|
|
191
195
|
] })
|
|
192
196
|
]
|
|
193
|
-
}
|
|
197
|
+
})
|
|
194
198
|
);
|
|
195
199
|
}
|
|
196
200
|
export {
|
|
@@ -164,6 +164,7 @@ var gapUsingContainerPadding = (0, import_clsx.default)(
|
|
|
164
164
|
// src/components/MainBar.tsx
|
|
165
165
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
166
166
|
var MainBar = ({
|
|
167
|
+
id,
|
|
167
168
|
leftContent: left,
|
|
168
169
|
rightContent: right,
|
|
169
170
|
mobileLeftContent: mobileLeft,
|
|
@@ -177,6 +178,7 @@ var MainBar = ({
|
|
|
177
178
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
178
179
|
"div",
|
|
179
180
|
{
|
|
181
|
+
id,
|
|
180
182
|
className: (0, import_clsx2.default)(
|
|
181
183
|
"min-h-mobile-container-padding",
|
|
182
184
|
"bg-background-brand-normal items-center justify-between",
|
|
@@ -11,6 +11,7 @@ import "../chunk-ORMEWXMH.js";
|
|
|
11
11
|
import clsx from "clsx";
|
|
12
12
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
13
13
|
var MainBar = ({
|
|
14
|
+
id,
|
|
14
15
|
leftContent: left,
|
|
15
16
|
rightContent: right,
|
|
16
17
|
mobileLeftContent: mobileLeft,
|
|
@@ -24,6 +25,7 @@ var MainBar = ({
|
|
|
24
25
|
return /* @__PURE__ */ jsxs(
|
|
25
26
|
"div",
|
|
26
27
|
{
|
|
28
|
+
id,
|
|
27
29
|
className: clsx(
|
|
28
30
|
"min-h-mobile-container-padding",
|
|
29
31
|
"bg-background-brand-normal items-center justify-between",
|
package/dist/components/Menu.cjs
CHANGED
|
@@ -208,6 +208,7 @@ function findDocumentRoot(element) {
|
|
|
208
208
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
209
209
|
var Menu = (_a) => {
|
|
210
210
|
var _b = _a, {
|
|
211
|
+
id,
|
|
211
212
|
children,
|
|
212
213
|
className,
|
|
213
214
|
ref,
|
|
@@ -224,6 +225,7 @@ var Menu = (_a) => {
|
|
|
224
225
|
autoFocusOff,
|
|
225
226
|
menuName
|
|
226
227
|
} = _b, props = __objRest(_b, [
|
|
228
|
+
"id",
|
|
227
229
|
"children",
|
|
228
230
|
"className",
|
|
229
231
|
"ref",
|
|
@@ -303,6 +305,7 @@ var Menu = (_a) => {
|
|
|
303
305
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
304
306
|
"div",
|
|
305
307
|
__spreadProps(__spreadValues({
|
|
308
|
+
id,
|
|
306
309
|
ref: setRefs,
|
|
307
310
|
className: (0, import_clsx.default)(
|
|
308
311
|
"shadow-4 rounded-base bg-background-grouped-primary-normal overflow-x-hidden overflow-y-auto flex flex-col outline-0",
|