@dmsi/wedgekit-react 0.0.498 → 0.0.499
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-3WCLGTYP.js → chunk-4LBQSSGH.js} +1 -1
- package/dist/{chunk-RQRR4FEF.js → chunk-5MLYAQQO.js} +1 -1
- package/dist/{chunk-44TH3VC7.js → chunk-G4AWTFBQ.js} +15 -6
- package/dist/{chunk-ZKTHUXKS.js → chunk-HIKWIY5Q.js} +1 -1
- package/dist/{chunk-HVNHTM3P.js → chunk-PIBHG6DH.js} +1 -1
- package/dist/{chunk-X67L3NZI.js → chunk-TOKS63IK.js} +5 -3
- package/dist/{chunk-7LKGHCVT.js → chunk-TWDH7ZDS.js} +5 -5
- package/dist/{chunk-G7KIKHER.js → chunk-X4UK7HE2.js} +4 -2
- package/dist/{chunk-4Q7T4GJ2.js → chunk-YD3HWIUJ.js} +1 -1
- package/dist/components/CalendarRange.cjs +20 -10
- package/dist/components/CalendarRange.js +9 -9
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.cjs +20 -10
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +9 -9
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +20 -10
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +9 -9
- package/dist/components/DataGrid/PinnedColumns.cjs +20 -10
- package/dist/components/DataGrid/PinnedColumns.js +9 -9
- package/dist/components/DataGrid/TableBody/LoadingCell.cjs +20 -10
- package/dist/components/DataGrid/TableBody/LoadingCell.js +9 -9
- package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +20 -10
- package/dist/components/DataGrid/TableBody/TableBodyRow.js +9 -9
- package/dist/components/DataGrid/TableBody/index.cjs +20 -10
- package/dist/components/DataGrid/TableBody/index.js +9 -9
- package/dist/components/DataGrid/index.cjs +20 -10
- package/dist/components/DataGrid/index.js +9 -9
- package/dist/components/DataGrid/utils.cjs +20 -10
- package/dist/components/DataGrid/utils.js +9 -9
- package/dist/components/DataGridCell.cjs +12 -6
- package/dist/components/DataGridCell.js +3 -3
- package/dist/components/DateInput.cjs +102 -92
- package/dist/components/DateInput.js +9 -9
- package/dist/components/DateRangeInput.cjs +102 -92
- package/dist/components/DateRangeInput.js +9 -9
- package/dist/components/FilterGroup.cjs +12 -6
- package/dist/components/FilterGroup.js +2 -2
- package/dist/components/Input.cjs +94 -35
- package/dist/components/Input.js +2 -1
- package/dist/components/MobileDataGrid/ColumnSelector/index.cjs +20 -10
- package/dist/components/MobileDataGrid/ColumnSelector/index.js +9 -9
- package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +20 -10
- package/dist/components/MobileDataGrid/MobileDataGridHeader.js +9 -9
- package/dist/components/MobileDataGrid/RowDetailModalProvider/index.cjs +8 -4
- package/dist/components/MobileDataGrid/RowDetailModalProvider/index.js +3 -3
- package/dist/components/MobileDataGrid/index.cjs +20 -10
- package/dist/components/MobileDataGrid/index.js +9 -9
- package/dist/components/Modal.cjs +8 -4
- package/dist/components/Modal.js +2 -2
- package/dist/components/ModalHeader.cjs +4 -2
- package/dist/components/ModalHeader.js +1 -1
- package/dist/components/PDFViewer/index.cjs +8 -4
- package/dist/components/PDFViewer/index.js +3 -3
- package/dist/components/Password.cjs +99 -40
- package/dist/components/Password.js +2 -1
- package/dist/components/Search.cjs +97 -38
- package/dist/components/Search.js +3 -2
- package/dist/components/Select.cjs +102 -43
- package/dist/components/Select.js +3 -2
- package/dist/components/Stepper.cjs +107 -48
- package/dist/components/Stepper.js +2 -1
- package/dist/components/Time.cjs +114 -55
- package/dist/components/Time.js +2 -1
- package/dist/components/index.cjs +20 -10
- package/dist/components/index.js +9 -9
- package/package.json +1 -1
- package/src/components/Input.tsx +10 -4
- package/src/components/Modal.tsx +3 -0
- package/src/components/ModalHeader.tsx +6 -2
|
@@ -69,7 +69,7 @@ __export(Input_exports, {
|
|
|
69
69
|
});
|
|
70
70
|
module.exports = __toCommonJS(Input_exports);
|
|
71
71
|
var import_react = require("react");
|
|
72
|
-
var
|
|
72
|
+
var import_clsx5 = __toESM(require("clsx"), 1);
|
|
73
73
|
|
|
74
74
|
// src/classNames.ts
|
|
75
75
|
var import_clsx = __toESM(require("clsx"), 1);
|
|
@@ -320,14 +320,68 @@ function formatCurrencyDisplay(value) {
|
|
|
320
320
|
return decimalPart !== void 0 ? `${formattedInteger}.${decimalPart}` : formattedInteger;
|
|
321
321
|
}
|
|
322
322
|
|
|
323
|
-
// src/components/
|
|
323
|
+
// src/components/Paragraph.tsx
|
|
324
|
+
var import_clsx4 = __toESM(require("clsx"), 1);
|
|
324
325
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
326
|
+
var Paragraph = (_a) => {
|
|
327
|
+
var _b = _a, {
|
|
328
|
+
className,
|
|
329
|
+
color,
|
|
330
|
+
padded,
|
|
331
|
+
align = "left",
|
|
332
|
+
tall,
|
|
333
|
+
addOverflow,
|
|
334
|
+
children,
|
|
335
|
+
as = "p",
|
|
336
|
+
id,
|
|
337
|
+
testid
|
|
338
|
+
} = _b, props = __objRest(_b, [
|
|
339
|
+
"className",
|
|
340
|
+
"color",
|
|
341
|
+
"padded",
|
|
342
|
+
"align",
|
|
343
|
+
"tall",
|
|
344
|
+
"addOverflow",
|
|
345
|
+
"children",
|
|
346
|
+
"as",
|
|
347
|
+
"id",
|
|
348
|
+
"testid"
|
|
349
|
+
]);
|
|
350
|
+
const Element = as;
|
|
351
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
352
|
+
Element,
|
|
353
|
+
__spreadProps(__spreadValues({
|
|
354
|
+
id,
|
|
355
|
+
"data-testid": testid
|
|
356
|
+
}, props), {
|
|
357
|
+
className: (0, import_clsx4.default)(
|
|
358
|
+
typography.paragraph,
|
|
359
|
+
className,
|
|
360
|
+
padded && componentPaddingXUsingComponentGap,
|
|
361
|
+
align === "left" && "text-left",
|
|
362
|
+
align === "center" && "text-center",
|
|
363
|
+
align === "right" && "text-right",
|
|
364
|
+
tall && "!leading-6",
|
|
365
|
+
addOverflow && "whitespace-nowrap text-ellipsis overflow-hidden"
|
|
366
|
+
),
|
|
367
|
+
style: __spreadProps(__spreadValues({}, props.style), {
|
|
368
|
+
color: color ? `var(--color-${color})` : void 0
|
|
369
|
+
}),
|
|
370
|
+
children
|
|
371
|
+
})
|
|
372
|
+
);
|
|
373
|
+
};
|
|
374
|
+
Paragraph.displayName = "Paragraph";
|
|
375
|
+
|
|
376
|
+
// src/components/Input.tsx
|
|
377
|
+
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
325
378
|
var InputBase = (_a) => {
|
|
326
379
|
var _b = _a, {
|
|
327
380
|
id,
|
|
328
381
|
testid,
|
|
329
382
|
before,
|
|
330
383
|
after,
|
|
384
|
+
rightAdornment,
|
|
331
385
|
type,
|
|
332
386
|
label,
|
|
333
387
|
error,
|
|
@@ -351,6 +405,7 @@ var InputBase = (_a) => {
|
|
|
351
405
|
"testid",
|
|
352
406
|
"before",
|
|
353
407
|
"after",
|
|
408
|
+
"rightAdornment",
|
|
354
409
|
"type",
|
|
355
410
|
"label",
|
|
356
411
|
"error",
|
|
@@ -389,7 +444,7 @@ var InputBase = (_a) => {
|
|
|
389
444
|
};
|
|
390
445
|
}
|
|
391
446
|
}, [selectOnFocus]);
|
|
392
|
-
const inputBaseClass = (0,
|
|
447
|
+
const inputBaseClass = (0, import_clsx5.default)(
|
|
393
448
|
fullWidth ? "w-full" : "w-fit",
|
|
394
449
|
"flex flex-row items-center",
|
|
395
450
|
"bg-background-action-secondary-normal caret-icon-on-action-secondary-normal",
|
|
@@ -402,26 +457,26 @@ var InputBase = (_a) => {
|
|
|
402
457
|
!removeBorder && "border border-border-primary-normal",
|
|
403
458
|
"relative"
|
|
404
459
|
);
|
|
405
|
-
const inputFocusClass = (0,
|
|
460
|
+
const inputFocusClass = (0, import_clsx5.default)(
|
|
406
461
|
"has-[[data-focus]]:border-transparent has-[[data-focus]]:outline-border-primary-focus focus-within:border-transparent focus-within:outline-border-primary-focus"
|
|
407
462
|
);
|
|
408
|
-
const inputDisabledClass = (0,
|
|
463
|
+
const inputDisabledClass = (0, import_clsx5.default)(
|
|
409
464
|
"has-disabled:bg-background-action-secondary-disabled"
|
|
410
465
|
);
|
|
411
|
-
const inputReadOnlyClass = (0,
|
|
466
|
+
const inputReadOnlyClass = (0, import_clsx5.default)(
|
|
412
467
|
"has-[input:not(:disabled):read-only]:outline-none has-[input:not(:disabled):read-only]:bg-transparent has-[input:not(:disabled):read-only]:border-transparent has-[input:not(:disabled):read-only]:pl-0"
|
|
413
468
|
);
|
|
414
|
-
const inputInvalidClass = (0,
|
|
469
|
+
const inputInvalidClass = (0, import_clsx5.default)(
|
|
415
470
|
"has-[[data-error]]:border-transparent has-[[data-error]]:not-focus-within:outline-border-primary-error has-[[data-error]]:not-focus-within:outline-1"
|
|
416
471
|
);
|
|
417
|
-
return /* @__PURE__ */ (0,
|
|
472
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
|
|
418
473
|
"label",
|
|
419
474
|
{
|
|
420
475
|
id,
|
|
421
476
|
"data-testid": testid,
|
|
422
477
|
htmlFor: inputId,
|
|
423
478
|
ref: inputContainerRef,
|
|
424
|
-
className: (0,
|
|
479
|
+
className: (0, import_clsx5.default)(
|
|
425
480
|
"w-full flex flex-col",
|
|
426
481
|
"block",
|
|
427
482
|
"text-text-primary-normal has-disabled:text-text-primary-disabled",
|
|
@@ -429,30 +484,30 @@ var InputBase = (_a) => {
|
|
|
429
484
|
),
|
|
430
485
|
style: __spreadValues({}, props.style),
|
|
431
486
|
children: [
|
|
432
|
-
label && /* @__PURE__ */ (0,
|
|
433
|
-
/* @__PURE__ */ (0,
|
|
487
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: (0, import_clsx5.default)("flex items-center", componentGap), children: [
|
|
488
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
434
489
|
Label,
|
|
435
490
|
{
|
|
436
491
|
id: id ? `${id}-label` : void 0,
|
|
437
492
|
color: error ? "text-primary-error" : void 0,
|
|
438
|
-
className: (0,
|
|
493
|
+
className: (0, import_clsx5.default)(
|
|
439
494
|
props.disabled || props.readOnly ? "cursor-default" : "cursor-pointer"
|
|
440
495
|
),
|
|
441
496
|
children: label
|
|
442
497
|
}
|
|
443
498
|
),
|
|
444
|
-
required && /* @__PURE__ */ (0,
|
|
499
|
+
required && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
445
500
|
"span",
|
|
446
501
|
{
|
|
447
|
-
className: (0,
|
|
502
|
+
className: (0, import_clsx5.default)(typography.label, "text-text-critical-normal"),
|
|
448
503
|
children: "*"
|
|
449
504
|
}
|
|
450
505
|
)
|
|
451
506
|
] }),
|
|
452
|
-
/* @__PURE__ */ (0,
|
|
507
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
|
|
453
508
|
"div",
|
|
454
509
|
{
|
|
455
|
-
className: (0,
|
|
510
|
+
className: (0, import_clsx5.default)(
|
|
456
511
|
inputBaseClass,
|
|
457
512
|
!props.disabled && inputInvalidClass,
|
|
458
513
|
inputFocusClass,
|
|
@@ -467,7 +522,7 @@ var InputBase = (_a) => {
|
|
|
467
522
|
},
|
|
468
523
|
children: [
|
|
469
524
|
before,
|
|
470
|
-
/* @__PURE__ */ (0,
|
|
525
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
471
526
|
"input",
|
|
472
527
|
__spreadProps(__spreadValues(__spreadValues({
|
|
473
528
|
ref: (el) => {
|
|
@@ -478,7 +533,7 @@ var InputBase = (_a) => {
|
|
|
478
533
|
}, props), attributes), {
|
|
479
534
|
id: inputId,
|
|
480
535
|
"data-testid": testid ? `${testid}-input` : void 0,
|
|
481
|
-
className: (0,
|
|
536
|
+
className: (0, import_clsx5.default)(
|
|
482
537
|
"flex-1 outline-none w-full max-w-full min-h-6 min-w-0",
|
|
483
538
|
"[appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",
|
|
484
539
|
"placeholder:text-text-secondary-normal disabled:text-text-secondary-disabled",
|
|
@@ -492,11 +547,12 @@ var InputBase = (_a) => {
|
|
|
492
547
|
style: __spreadProps(__spreadValues({}, props.style), { width })
|
|
493
548
|
})
|
|
494
549
|
),
|
|
495
|
-
secondaryIconColor ? /* @__PURE__ */ (0,
|
|
550
|
+
secondaryIconColor ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "contents text-text-secondary-normal", children: after }) : after,
|
|
551
|
+
rightAdornment
|
|
496
552
|
]
|
|
497
553
|
}
|
|
498
554
|
),
|
|
499
|
-
caption && /* @__PURE__ */ (0,
|
|
555
|
+
caption && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
500
556
|
"div",
|
|
501
557
|
{
|
|
502
558
|
id: id ? `${id}-caption` : void 0,
|
|
@@ -519,7 +575,8 @@ var Input = (_a) => {
|
|
|
519
575
|
onBlur,
|
|
520
576
|
onClear,
|
|
521
577
|
id,
|
|
522
|
-
testid
|
|
578
|
+
testid,
|
|
579
|
+
rightAdornment
|
|
523
580
|
} = _b, props = __objRest(_b, [
|
|
524
581
|
"variant",
|
|
525
582
|
"decimals",
|
|
@@ -530,7 +587,8 @@ var Input = (_a) => {
|
|
|
530
587
|
"onBlur",
|
|
531
588
|
"onClear",
|
|
532
589
|
"id",
|
|
533
|
-
"testid"
|
|
590
|
+
"testid",
|
|
591
|
+
"rightAdornment"
|
|
534
592
|
]);
|
|
535
593
|
const [internalValue, setInternalValue] = (0, import_react.useState)("");
|
|
536
594
|
const [displayValue, setDisplayValue] = (0, import_react.useState)("");
|
|
@@ -552,7 +610,7 @@ var Input = (_a) => {
|
|
|
552
610
|
const formatted = formatDecimalValue(stringValue, decimals != null ? decimals : 2);
|
|
553
611
|
setInternalValue(formatted);
|
|
554
612
|
setDisplayValue(formatCurrencyDisplay(formatted));
|
|
555
|
-
}, []);
|
|
613
|
+
}, [variant, propValue, decimals]);
|
|
556
614
|
const getInputProps = () => {
|
|
557
615
|
var _a2;
|
|
558
616
|
const baseProps = __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, props), {
|
|
@@ -589,9 +647,9 @@ var Input = (_a) => {
|
|
|
589
647
|
if (props.before) return props.before;
|
|
590
648
|
switch (variant) {
|
|
591
649
|
case "search":
|
|
592
|
-
return !removeSearchIcon ? /* @__PURE__ */ (0,
|
|
650
|
+
return !removeSearchIcon ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { name: "search" }) }) : null;
|
|
593
651
|
case "currency":
|
|
594
|
-
return /* @__PURE__ */ (0,
|
|
652
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { name: "attach_money" }) });
|
|
595
653
|
default:
|
|
596
654
|
return null;
|
|
597
655
|
}
|
|
@@ -601,7 +659,7 @@ var Input = (_a) => {
|
|
|
601
659
|
switch (variant) {
|
|
602
660
|
case "search": {
|
|
603
661
|
const hasValue = displayValue.length > 0;
|
|
604
|
-
return hasValue && !props.readOnly ? /* @__PURE__ */ (0,
|
|
662
|
+
return hasValue && !props.readOnly ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
605
663
|
Icon,
|
|
606
664
|
{
|
|
607
665
|
id: id ? `${id}-clear-button` : void 0,
|
|
@@ -613,11 +671,11 @@ var Input = (_a) => {
|
|
|
613
671
|
) : null;
|
|
614
672
|
}
|
|
615
673
|
case "finder":
|
|
616
|
-
return /* @__PURE__ */ (0,
|
|
674
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { name: "search" });
|
|
617
675
|
case "uom":
|
|
618
|
-
return uom ? /* @__PURE__ */ (0,
|
|
676
|
+
return uom ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Paragraph, { color: "text-secondary-normal", children: uom.toUpperCase() }) : null;
|
|
619
677
|
case "percentage":
|
|
620
|
-
return /* @__PURE__ */ (0,
|
|
678
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { name: "percent" }) });
|
|
621
679
|
default:
|
|
622
680
|
return null;
|
|
623
681
|
}
|
|
@@ -694,27 +752,28 @@ var Input = (_a) => {
|
|
|
694
752
|
onBlur == null ? void 0 : onBlur(e);
|
|
695
753
|
};
|
|
696
754
|
const inputProps = getInputProps();
|
|
697
|
-
return /* @__PURE__ */ (0,
|
|
755
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
698
756
|
InputBase,
|
|
699
757
|
__spreadProps(__spreadValues({}, inputProps), {
|
|
700
758
|
before: getBeforeElement(),
|
|
701
759
|
after: getAfterElement(),
|
|
702
760
|
onChange: handleChange,
|
|
703
761
|
onBlur: handleBlur,
|
|
704
|
-
testid
|
|
762
|
+
testid,
|
|
763
|
+
rightAdornment
|
|
705
764
|
})
|
|
706
765
|
);
|
|
707
766
|
};
|
|
708
767
|
Input.displayName = "Input";
|
|
709
|
-
var Finder = (props) => /* @__PURE__ */ (0,
|
|
710
|
-
var UOM = (props) => /* @__PURE__ */ (0,
|
|
768
|
+
var Finder = (props) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Input, __spreadProps(__spreadValues({}, props), { variant: "finder" }));
|
|
769
|
+
var UOM = (props) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Input, __spreadProps(__spreadValues({}, props), { variant: "uom" }));
|
|
711
770
|
var Currency = (props) => {
|
|
712
771
|
var _a;
|
|
713
772
|
const handleCurrencyChange = (e) => {
|
|
714
773
|
var _a2;
|
|
715
774
|
(_a2 = props.onChange) == null ? void 0 : _a2.call(props, e);
|
|
716
775
|
};
|
|
717
|
-
return /* @__PURE__ */ (0,
|
|
776
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
718
777
|
Input,
|
|
719
778
|
__spreadProps(__spreadValues({}, props), {
|
|
720
779
|
variant: "currency",
|
|
@@ -723,7 +782,7 @@ var Currency = (props) => {
|
|
|
723
782
|
})
|
|
724
783
|
);
|
|
725
784
|
};
|
|
726
|
-
var Percentage = (props) => /* @__PURE__ */ (0,
|
|
785
|
+
var Percentage = (props) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Input, __spreadProps(__spreadValues({}, props), { variant: "percentage" }));
|
|
727
786
|
Finder.displayName = "Finder";
|
|
728
787
|
UOM.displayName = "UOM";
|
|
729
788
|
Currency.displayName = "Currency";
|
package/dist/components/Input.js
CHANGED
|
@@ -6,9 +6,10 @@ import {
|
|
|
6
6
|
InputBase,
|
|
7
7
|
Percentage,
|
|
8
8
|
UOM
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-G4AWTFBQ.js";
|
|
10
10
|
import "../chunk-AL5QIRY3.js";
|
|
11
11
|
import "../chunk-5UH6QUFB.js";
|
|
12
|
+
import "../chunk-ZSETMD4A.js";
|
|
12
13
|
import "../chunk-NKUETCDA.js";
|
|
13
14
|
import "../chunk-IXR65MOU.js";
|
|
14
15
|
import "../chunk-ORMEWXMH.js";
|
|
@@ -1624,6 +1624,7 @@ var InputBase = (_a) => {
|
|
|
1624
1624
|
testid,
|
|
1625
1625
|
before,
|
|
1626
1626
|
after,
|
|
1627
|
+
rightAdornment,
|
|
1627
1628
|
type,
|
|
1628
1629
|
label,
|
|
1629
1630
|
error,
|
|
@@ -1647,6 +1648,7 @@ var InputBase = (_a) => {
|
|
|
1647
1648
|
"testid",
|
|
1648
1649
|
"before",
|
|
1649
1650
|
"after",
|
|
1651
|
+
"rightAdornment",
|
|
1650
1652
|
"type",
|
|
1651
1653
|
"label",
|
|
1652
1654
|
"error",
|
|
@@ -1788,7 +1790,8 @@ var InputBase = (_a) => {
|
|
|
1788
1790
|
style: __spreadProps(__spreadValues({}, props.style), { width })
|
|
1789
1791
|
})
|
|
1790
1792
|
),
|
|
1791
|
-
secondaryIconColor ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "contents text-text-secondary-normal", children: after }) : after
|
|
1793
|
+
secondaryIconColor ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "contents text-text-secondary-normal", children: after }) : after,
|
|
1794
|
+
rightAdornment
|
|
1792
1795
|
]
|
|
1793
1796
|
}
|
|
1794
1797
|
),
|
|
@@ -1815,7 +1818,8 @@ var Input = (_a) => {
|
|
|
1815
1818
|
onBlur,
|
|
1816
1819
|
onClear,
|
|
1817
1820
|
id,
|
|
1818
|
-
testid
|
|
1821
|
+
testid,
|
|
1822
|
+
rightAdornment
|
|
1819
1823
|
} = _b, props = __objRest(_b, [
|
|
1820
1824
|
"variant",
|
|
1821
1825
|
"decimals",
|
|
@@ -1826,7 +1830,8 @@ var Input = (_a) => {
|
|
|
1826
1830
|
"onBlur",
|
|
1827
1831
|
"onClear",
|
|
1828
1832
|
"id",
|
|
1829
|
-
"testid"
|
|
1833
|
+
"testid",
|
|
1834
|
+
"rightAdornment"
|
|
1830
1835
|
]);
|
|
1831
1836
|
const [internalValue, setInternalValue] = (0, import_react9.useState)("");
|
|
1832
1837
|
const [displayValue, setDisplayValue] = (0, import_react9.useState)("");
|
|
@@ -1848,7 +1853,7 @@ var Input = (_a) => {
|
|
|
1848
1853
|
const formatted = formatDecimalValue(stringValue, decimals != null ? decimals : 2);
|
|
1849
1854
|
setInternalValue(formatted);
|
|
1850
1855
|
setDisplayValue(formatCurrencyDisplay(formatted));
|
|
1851
|
-
}, []);
|
|
1856
|
+
}, [variant, propValue, decimals]);
|
|
1852
1857
|
const getInputProps = () => {
|
|
1853
1858
|
var _a2;
|
|
1854
1859
|
const baseProps = __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, props), {
|
|
@@ -1911,7 +1916,7 @@ var Input = (_a) => {
|
|
|
1911
1916
|
case "finder":
|
|
1912
1917
|
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "search" });
|
|
1913
1918
|
case "uom":
|
|
1914
|
-
return uom ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1919
|
+
return uom ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Paragraph, { color: "text-secondary-normal", children: uom.toUpperCase() }) : null;
|
|
1915
1920
|
case "percentage":
|
|
1916
1921
|
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "percent" }) });
|
|
1917
1922
|
default:
|
|
@@ -1997,7 +2002,8 @@ var Input = (_a) => {
|
|
|
1997
2002
|
after: getAfterElement(),
|
|
1998
2003
|
onChange: handleChange,
|
|
1999
2004
|
onBlur: handleBlur,
|
|
2000
|
-
testid
|
|
2005
|
+
testid,
|
|
2006
|
+
rightAdornment
|
|
2001
2007
|
})
|
|
2002
2008
|
);
|
|
2003
2009
|
};
|
|
@@ -5056,8 +5062,10 @@ var ModalHeader = ({
|
|
|
5056
5062
|
onClose,
|
|
5057
5063
|
id,
|
|
5058
5064
|
testid,
|
|
5059
|
-
headerClassname
|
|
5065
|
+
headerClassname,
|
|
5066
|
+
titleAs: TitleComponent
|
|
5060
5067
|
}) => {
|
|
5068
|
+
const Title = TitleComponent || Heading2;
|
|
5061
5069
|
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
|
5062
5070
|
"div",
|
|
5063
5071
|
{
|
|
@@ -5076,7 +5084,7 @@ var ModalHeader = ({
|
|
|
5076
5084
|
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: (0, import_clsx25.default)("flex items-center flex-1", layoutGroupGap), children: [
|
|
5077
5085
|
headerIcon,
|
|
5078
5086
|
title && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
5079
|
-
|
|
5087
|
+
Title,
|
|
5080
5088
|
{
|
|
5081
5089
|
id: id ? `${id}-title` : void 0,
|
|
5082
5090
|
testid: testid ? `${testid}-title` : void 0,
|
|
@@ -5306,7 +5314,8 @@ var Modal = ({
|
|
|
5306
5314
|
customActions,
|
|
5307
5315
|
headerClassname,
|
|
5308
5316
|
customFooter,
|
|
5309
|
-
noWrapper
|
|
5317
|
+
noWrapper,
|
|
5318
|
+
titleAs: TitleComponent
|
|
5310
5319
|
}) => {
|
|
5311
5320
|
var _a;
|
|
5312
5321
|
const mounted = useMounted();
|
|
@@ -5432,7 +5441,8 @@ var Modal = ({
|
|
|
5432
5441
|
hideCloseIcon,
|
|
5433
5442
|
headerIcon,
|
|
5434
5443
|
headerIconAlign,
|
|
5435
|
-
headerClassname
|
|
5444
|
+
headerClassname,
|
|
5445
|
+
titleAs: TitleComponent
|
|
5436
5446
|
}
|
|
5437
5447
|
),
|
|
5438
5448
|
children && (size !== "screen" || noWrapper) ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ColumnSelector
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-TWDH7ZDS.js";
|
|
4
4
|
import "../../../chunk-M7INAUAJ.js";
|
|
5
|
-
import "../../../chunk-
|
|
5
|
+
import "../../../chunk-YD3HWIUJ.js";
|
|
6
6
|
import "../../../chunk-3DEYCNUE.js";
|
|
7
7
|
import "../../../chunk-XHQOTLG6.js";
|
|
8
8
|
import "../../../chunk-BQNPOGD5.js";
|
|
9
9
|
import "../../../chunk-Y5GD2FJA.js";
|
|
10
|
-
import "../../../chunk-
|
|
10
|
+
import "../../../chunk-4LBQSSGH.js";
|
|
11
11
|
import "../../../chunk-YEZBNQZI.js";
|
|
12
12
|
import "../../../chunk-B53XDCLO.js";
|
|
13
13
|
import "../../../chunk-S5ZJ3Q7P.js";
|
|
@@ -28,23 +28,23 @@ import "../../../chunk-7BVUTFZ5.js";
|
|
|
28
28
|
import "../../../chunk-L3BXRDLP.js";
|
|
29
29
|
import "../../../chunk-34VEVX5H.js";
|
|
30
30
|
import "../../../chunk-GRGDX7JC.js";
|
|
31
|
-
import "../../../chunk-
|
|
32
|
-
import "../../../chunk-
|
|
31
|
+
import "../../../chunk-PIBHG6DH.js";
|
|
32
|
+
import "../../../chunk-TOKS63IK.js";
|
|
33
33
|
import "../../../chunk-4RJKB7LC.js";
|
|
34
34
|
import "../../../chunk-FG7GNGE3.js";
|
|
35
|
-
import "../../../chunk-
|
|
35
|
+
import "../../../chunk-X4UK7HE2.js";
|
|
36
36
|
import "../../../chunk-AG43RS4Q.js";
|
|
37
37
|
import "../../../chunk-ZQJMNPCF.js";
|
|
38
38
|
import "../../../chunk-6TYWM26K.js";
|
|
39
39
|
import "../../../chunk-SBRRNFOP.js";
|
|
40
40
|
import "../../../chunk-Y2GK27RX.js";
|
|
41
41
|
import "../../../chunk-QVWYTQKL.js";
|
|
42
|
-
import "../../../chunk-
|
|
42
|
+
import "../../../chunk-HIKWIY5Q.js";
|
|
43
43
|
import "../../../chunk-TCMOGTPB.js";
|
|
44
44
|
import "../../../chunk-DVU5XV7L.js";
|
|
45
45
|
import "../../../chunk-5R4C5F63.js";
|
|
46
|
-
import "../../../chunk-
|
|
47
|
-
import "../../../chunk-
|
|
46
|
+
import "../../../chunk-5MLYAQQO.js";
|
|
47
|
+
import "../../../chunk-G4AWTFBQ.js";
|
|
48
48
|
import "../../../chunk-AL5QIRY3.js";
|
|
49
49
|
import "../../../chunk-WVUIIBRR.js";
|
|
50
50
|
import "../../../chunk-75USUR3I.js";
|
|
@@ -2049,6 +2049,7 @@ var InputBase = (_a) => {
|
|
|
2049
2049
|
testid,
|
|
2050
2050
|
before,
|
|
2051
2051
|
after,
|
|
2052
|
+
rightAdornment,
|
|
2052
2053
|
type,
|
|
2053
2054
|
label,
|
|
2054
2055
|
error,
|
|
@@ -2072,6 +2073,7 @@ var InputBase = (_a) => {
|
|
|
2072
2073
|
"testid",
|
|
2073
2074
|
"before",
|
|
2074
2075
|
"after",
|
|
2076
|
+
"rightAdornment",
|
|
2075
2077
|
"type",
|
|
2076
2078
|
"label",
|
|
2077
2079
|
"error",
|
|
@@ -2213,7 +2215,8 @@ var InputBase = (_a) => {
|
|
|
2213
2215
|
style: __spreadProps(__spreadValues({}, props.style), { width })
|
|
2214
2216
|
})
|
|
2215
2217
|
),
|
|
2216
|
-
secondaryIconColor ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "contents text-text-secondary-normal", children: after }) : after
|
|
2218
|
+
secondaryIconColor ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "contents text-text-secondary-normal", children: after }) : after,
|
|
2219
|
+
rightAdornment
|
|
2217
2220
|
]
|
|
2218
2221
|
}
|
|
2219
2222
|
),
|
|
@@ -2240,7 +2243,8 @@ var Input = (_a) => {
|
|
|
2240
2243
|
onBlur,
|
|
2241
2244
|
onClear,
|
|
2242
2245
|
id,
|
|
2243
|
-
testid
|
|
2246
|
+
testid,
|
|
2247
|
+
rightAdornment
|
|
2244
2248
|
} = _b, props = __objRest(_b, [
|
|
2245
2249
|
"variant",
|
|
2246
2250
|
"decimals",
|
|
@@ -2251,7 +2255,8 @@ var Input = (_a) => {
|
|
|
2251
2255
|
"onBlur",
|
|
2252
2256
|
"onClear",
|
|
2253
2257
|
"id",
|
|
2254
|
-
"testid"
|
|
2258
|
+
"testid",
|
|
2259
|
+
"rightAdornment"
|
|
2255
2260
|
]);
|
|
2256
2261
|
const [internalValue, setInternalValue] = (0, import_react9.useState)("");
|
|
2257
2262
|
const [displayValue, setDisplayValue] = (0, import_react9.useState)("");
|
|
@@ -2273,7 +2278,7 @@ var Input = (_a) => {
|
|
|
2273
2278
|
const formatted = formatDecimalValue(stringValue, decimals != null ? decimals : 2);
|
|
2274
2279
|
setInternalValue(formatted);
|
|
2275
2280
|
setDisplayValue(formatCurrencyDisplay(formatted));
|
|
2276
|
-
}, []);
|
|
2281
|
+
}, [variant, propValue, decimals]);
|
|
2277
2282
|
const getInputProps = () => {
|
|
2278
2283
|
var _a2;
|
|
2279
2284
|
const baseProps = __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, props), {
|
|
@@ -2336,7 +2341,7 @@ var Input = (_a) => {
|
|
|
2336
2341
|
case "finder":
|
|
2337
2342
|
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Icon, { name: "search" });
|
|
2338
2343
|
case "uom":
|
|
2339
|
-
return uom ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
2344
|
+
return uom ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Paragraph, { color: "text-secondary-normal", children: uom.toUpperCase() }) : null;
|
|
2340
2345
|
case "percentage":
|
|
2341
2346
|
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Icon, { name: "percent" }) });
|
|
2342
2347
|
default:
|
|
@@ -2422,7 +2427,8 @@ var Input = (_a) => {
|
|
|
2422
2427
|
after: getAfterElement(),
|
|
2423
2428
|
onChange: handleChange,
|
|
2424
2429
|
onBlur: handleBlur,
|
|
2425
|
-
testid
|
|
2430
|
+
testid,
|
|
2431
|
+
rightAdornment
|
|
2426
2432
|
})
|
|
2427
2433
|
);
|
|
2428
2434
|
};
|
|
@@ -5284,8 +5290,10 @@ var ModalHeader = ({
|
|
|
5284
5290
|
onClose,
|
|
5285
5291
|
id,
|
|
5286
5292
|
testid,
|
|
5287
|
-
headerClassname
|
|
5293
|
+
headerClassname,
|
|
5294
|
+
titleAs: TitleComponent
|
|
5288
5295
|
}) => {
|
|
5296
|
+
const Title = TitleComponent || Heading2;
|
|
5289
5297
|
return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
|
|
5290
5298
|
"div",
|
|
5291
5299
|
{
|
|
@@ -5304,7 +5312,7 @@ var ModalHeader = ({
|
|
|
5304
5312
|
/* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: (0, import_clsx25.default)("flex items-center flex-1", layoutGroupGap), children: [
|
|
5305
5313
|
headerIcon,
|
|
5306
5314
|
title && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
5307
|
-
|
|
5315
|
+
Title,
|
|
5308
5316
|
{
|
|
5309
5317
|
id: id ? `${id}-title` : void 0,
|
|
5310
5318
|
testid: testid ? `${testid}-title` : void 0,
|
|
@@ -5534,7 +5542,8 @@ var Modal = ({
|
|
|
5534
5542
|
customActions,
|
|
5535
5543
|
headerClassname,
|
|
5536
5544
|
customFooter,
|
|
5537
|
-
noWrapper
|
|
5545
|
+
noWrapper,
|
|
5546
|
+
titleAs: TitleComponent
|
|
5538
5547
|
}) => {
|
|
5539
5548
|
var _a;
|
|
5540
5549
|
const mounted = useMounted();
|
|
@@ -5660,7 +5669,8 @@ var Modal = ({
|
|
|
5660
5669
|
hideCloseIcon,
|
|
5661
5670
|
headerIcon,
|
|
5662
5671
|
headerIconAlign,
|
|
5663
|
-
headerClassname
|
|
5672
|
+
headerClassname,
|
|
5673
|
+
titleAs: TitleComponent
|
|
5664
5674
|
}
|
|
5665
5675
|
),
|
|
5666
5676
|
children && (size !== "screen" || noWrapper) ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MobileDataGridHeader
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-TWDH7ZDS.js";
|
|
4
4
|
import "../../chunk-M7INAUAJ.js";
|
|
5
|
-
import "../../chunk-
|
|
5
|
+
import "../../chunk-YD3HWIUJ.js";
|
|
6
6
|
import "../../chunk-3DEYCNUE.js";
|
|
7
7
|
import "../../chunk-XHQOTLG6.js";
|
|
8
8
|
import "../../chunk-BQNPOGD5.js";
|
|
9
9
|
import "../../chunk-Y5GD2FJA.js";
|
|
10
|
-
import "../../chunk-
|
|
10
|
+
import "../../chunk-4LBQSSGH.js";
|
|
11
11
|
import "../../chunk-YEZBNQZI.js";
|
|
12
12
|
import "../../chunk-B53XDCLO.js";
|
|
13
13
|
import "../../chunk-S5ZJ3Q7P.js";
|
|
@@ -28,23 +28,23 @@ import "../../chunk-7BVUTFZ5.js";
|
|
|
28
28
|
import "../../chunk-L3BXRDLP.js";
|
|
29
29
|
import "../../chunk-34VEVX5H.js";
|
|
30
30
|
import "../../chunk-GRGDX7JC.js";
|
|
31
|
-
import "../../chunk-
|
|
32
|
-
import "../../chunk-
|
|
31
|
+
import "../../chunk-PIBHG6DH.js";
|
|
32
|
+
import "../../chunk-TOKS63IK.js";
|
|
33
33
|
import "../../chunk-4RJKB7LC.js";
|
|
34
34
|
import "../../chunk-FG7GNGE3.js";
|
|
35
|
-
import "../../chunk-
|
|
35
|
+
import "../../chunk-X4UK7HE2.js";
|
|
36
36
|
import "../../chunk-AG43RS4Q.js";
|
|
37
37
|
import "../../chunk-ZQJMNPCF.js";
|
|
38
38
|
import "../../chunk-6TYWM26K.js";
|
|
39
39
|
import "../../chunk-SBRRNFOP.js";
|
|
40
40
|
import "../../chunk-Y2GK27RX.js";
|
|
41
41
|
import "../../chunk-QVWYTQKL.js";
|
|
42
|
-
import "../../chunk-
|
|
42
|
+
import "../../chunk-HIKWIY5Q.js";
|
|
43
43
|
import "../../chunk-TCMOGTPB.js";
|
|
44
44
|
import "../../chunk-DVU5XV7L.js";
|
|
45
45
|
import "../../chunk-5R4C5F63.js";
|
|
46
|
-
import "../../chunk-
|
|
47
|
-
import "../../chunk-
|
|
46
|
+
import "../../chunk-5MLYAQQO.js";
|
|
47
|
+
import "../../chunk-G4AWTFBQ.js";
|
|
48
48
|
import "../../chunk-AL5QIRY3.js";
|
|
49
49
|
import "../../chunk-WVUIIBRR.js";
|
|
50
50
|
import "../../chunk-75USUR3I.js";
|
|
@@ -444,8 +444,10 @@ var ModalHeader = ({
|
|
|
444
444
|
onClose,
|
|
445
445
|
id,
|
|
446
446
|
testid,
|
|
447
|
-
headerClassname
|
|
447
|
+
headerClassname,
|
|
448
|
+
titleAs: TitleComponent
|
|
448
449
|
}) => {
|
|
450
|
+
const Title = TitleComponent || Heading2;
|
|
449
451
|
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
|
|
450
452
|
"div",
|
|
451
453
|
{
|
|
@@ -464,7 +466,7 @@ var ModalHeader = ({
|
|
|
464
466
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: (0, import_clsx5.default)("flex items-center flex-1", layoutGroupGap), children: [
|
|
465
467
|
headerIcon,
|
|
466
468
|
title && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
467
|
-
|
|
469
|
+
Title,
|
|
468
470
|
{
|
|
469
471
|
id: id ? `${id}-title` : void 0,
|
|
470
472
|
testid: testid ? `${testid}-title` : void 0,
|
|
@@ -747,7 +749,8 @@ var Modal = ({
|
|
|
747
749
|
customActions,
|
|
748
750
|
headerClassname,
|
|
749
751
|
customFooter,
|
|
750
|
-
noWrapper
|
|
752
|
+
noWrapper,
|
|
753
|
+
titleAs: TitleComponent
|
|
751
754
|
}) => {
|
|
752
755
|
var _a;
|
|
753
756
|
const mounted = useMounted();
|
|
@@ -873,7 +876,8 @@ var Modal = ({
|
|
|
873
876
|
hideCloseIcon,
|
|
874
877
|
headerIcon,
|
|
875
878
|
headerIconAlign,
|
|
876
|
-
headerClassname
|
|
879
|
+
headerClassname,
|
|
880
|
+
titleAs: TitleComponent
|
|
877
881
|
}
|
|
878
882
|
),
|
|
879
883
|
children && (size !== "screen" || noWrapper) ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|