@dmsi/wedgekit-react 0.0.498 → 0.0.500

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.
Files changed (67) hide show
  1. package/dist/{chunk-3WCLGTYP.js → chunk-4LBQSSGH.js} +1 -1
  2. package/dist/{chunk-RQRR4FEF.js → chunk-5MLYAQQO.js} +1 -1
  3. package/dist/{chunk-44TH3VC7.js → chunk-G4AWTFBQ.js} +15 -6
  4. package/dist/{chunk-ZKTHUXKS.js → chunk-HIKWIY5Q.js} +1 -1
  5. package/dist/{chunk-HVNHTM3P.js → chunk-PIBHG6DH.js} +1 -1
  6. package/dist/{chunk-X67L3NZI.js → chunk-TOKS63IK.js} +5 -3
  7. package/dist/{chunk-7LKGHCVT.js → chunk-TWDH7ZDS.js} +5 -5
  8. package/dist/{chunk-G7KIKHER.js → chunk-X4UK7HE2.js} +4 -2
  9. package/dist/{chunk-4Q7T4GJ2.js → chunk-YD3HWIUJ.js} +1 -1
  10. package/dist/components/CalendarRange.cjs +20 -10
  11. package/dist/components/CalendarRange.js +9 -9
  12. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.cjs +20 -10
  13. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +9 -9
  14. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +20 -10
  15. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +9 -9
  16. package/dist/components/DataGrid/PinnedColumns.cjs +20 -10
  17. package/dist/components/DataGrid/PinnedColumns.js +9 -9
  18. package/dist/components/DataGrid/TableBody/LoadingCell.cjs +20 -10
  19. package/dist/components/DataGrid/TableBody/LoadingCell.js +9 -9
  20. package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +20 -10
  21. package/dist/components/DataGrid/TableBody/TableBodyRow.js +9 -9
  22. package/dist/components/DataGrid/TableBody/index.cjs +20 -10
  23. package/dist/components/DataGrid/TableBody/index.js +9 -9
  24. package/dist/components/DataGrid/index.cjs +20 -10
  25. package/dist/components/DataGrid/index.js +9 -9
  26. package/dist/components/DataGrid/utils.cjs +20 -10
  27. package/dist/components/DataGrid/utils.js +9 -9
  28. package/dist/components/DataGridCell.cjs +12 -6
  29. package/dist/components/DataGridCell.js +3 -3
  30. package/dist/components/DateInput.cjs +102 -92
  31. package/dist/components/DateInput.js +9 -9
  32. package/dist/components/DateRangeInput.cjs +102 -92
  33. package/dist/components/DateRangeInput.js +9 -9
  34. package/dist/components/FilterGroup.cjs +12 -6
  35. package/dist/components/FilterGroup.js +2 -2
  36. package/dist/components/Input.cjs +94 -35
  37. package/dist/components/Input.js +2 -1
  38. package/dist/components/MobileDataGrid/ColumnSelector/index.cjs +20 -10
  39. package/dist/components/MobileDataGrid/ColumnSelector/index.js +9 -9
  40. package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +20 -10
  41. package/dist/components/MobileDataGrid/MobileDataGridHeader.js +9 -9
  42. package/dist/components/MobileDataGrid/RowDetailModalProvider/index.cjs +8 -4
  43. package/dist/components/MobileDataGrid/RowDetailModalProvider/index.js +3 -3
  44. package/dist/components/MobileDataGrid/index.cjs +20 -10
  45. package/dist/components/MobileDataGrid/index.js +9 -9
  46. package/dist/components/Modal.cjs +8 -4
  47. package/dist/components/Modal.js +2 -2
  48. package/dist/components/ModalHeader.cjs +4 -2
  49. package/dist/components/ModalHeader.js +1 -1
  50. package/dist/components/PDFViewer/index.cjs +8 -4
  51. package/dist/components/PDFViewer/index.js +3 -3
  52. package/dist/components/Password.cjs +99 -40
  53. package/dist/components/Password.js +2 -1
  54. package/dist/components/Search.cjs +97 -38
  55. package/dist/components/Search.js +3 -2
  56. package/dist/components/Select.cjs +102 -43
  57. package/dist/components/Select.js +3 -2
  58. package/dist/components/Stepper.cjs +107 -48
  59. package/dist/components/Stepper.js +2 -1
  60. package/dist/components/Time.cjs +114 -55
  61. package/dist/components/Time.js +2 -1
  62. package/dist/components/index.cjs +20 -10
  63. package/dist/components/index.js +9 -9
  64. package/package.json +1 -1
  65. package/src/components/Input.tsx +10 -4
  66. package/src/components/Modal.tsx +3 -0
  67. package/src/components/ModalHeader.tsx +6 -2
@@ -66,7 +66,7 @@ var import_react2 = require("react");
66
66
 
67
67
  // src/components/Input.tsx
68
68
  var import_react = require("react");
69
- var import_clsx4 = __toESM(require("clsx"), 1);
69
+ var import_clsx5 = __toESM(require("clsx"), 1);
70
70
 
71
71
  // src/classNames.ts
72
72
  var import_clsx = __toESM(require("clsx"), 1);
@@ -317,14 +317,68 @@ function formatCurrencyDisplay(value) {
317
317
  return decimalPart !== void 0 ? `${formattedInteger}.${decimalPart}` : formattedInteger;
318
318
  }
319
319
 
320
- // src/components/Input.tsx
320
+ // src/components/Paragraph.tsx
321
+ var import_clsx4 = __toESM(require("clsx"), 1);
321
322
  var import_jsx_runtime3 = require("react/jsx-runtime");
323
+ var Paragraph = (_a) => {
324
+ var _b = _a, {
325
+ className,
326
+ color,
327
+ padded,
328
+ align = "left",
329
+ tall,
330
+ addOverflow,
331
+ children,
332
+ as = "p",
333
+ id,
334
+ testid
335
+ } = _b, props = __objRest(_b, [
336
+ "className",
337
+ "color",
338
+ "padded",
339
+ "align",
340
+ "tall",
341
+ "addOverflow",
342
+ "children",
343
+ "as",
344
+ "id",
345
+ "testid"
346
+ ]);
347
+ const Element = as;
348
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
349
+ Element,
350
+ __spreadProps(__spreadValues({
351
+ id,
352
+ "data-testid": testid
353
+ }, props), {
354
+ className: (0, import_clsx4.default)(
355
+ typography.paragraph,
356
+ className,
357
+ padded && componentPaddingXUsingComponentGap,
358
+ align === "left" && "text-left",
359
+ align === "center" && "text-center",
360
+ align === "right" && "text-right",
361
+ tall && "!leading-6",
362
+ addOverflow && "whitespace-nowrap text-ellipsis overflow-hidden"
363
+ ),
364
+ style: __spreadProps(__spreadValues({}, props.style), {
365
+ color: color ? `var(--color-${color})` : void 0
366
+ }),
367
+ children
368
+ })
369
+ );
370
+ };
371
+ Paragraph.displayName = "Paragraph";
372
+
373
+ // src/components/Input.tsx
374
+ var import_jsx_runtime4 = require("react/jsx-runtime");
322
375
  var InputBase = (_a) => {
323
376
  var _b = _a, {
324
377
  id,
325
378
  testid,
326
379
  before,
327
380
  after,
381
+ rightAdornment,
328
382
  type,
329
383
  label,
330
384
  error,
@@ -348,6 +402,7 @@ var InputBase = (_a) => {
348
402
  "testid",
349
403
  "before",
350
404
  "after",
405
+ "rightAdornment",
351
406
  "type",
352
407
  "label",
353
408
  "error",
@@ -386,7 +441,7 @@ var InputBase = (_a) => {
386
441
  };
387
442
  }
388
443
  }, [selectOnFocus]);
389
- const inputBaseClass = (0, import_clsx4.default)(
444
+ const inputBaseClass = (0, import_clsx5.default)(
390
445
  fullWidth ? "w-full" : "w-fit",
391
446
  "flex flex-row items-center",
392
447
  "bg-background-action-secondary-normal caret-icon-on-action-secondary-normal",
@@ -399,26 +454,26 @@ var InputBase = (_a) => {
399
454
  !removeBorder && "border border-border-primary-normal",
400
455
  "relative"
401
456
  );
402
- const inputFocusClass = (0, import_clsx4.default)(
457
+ const inputFocusClass = (0, import_clsx5.default)(
403
458
  "has-[[data-focus]]:border-transparent has-[[data-focus]]:outline-border-primary-focus focus-within:border-transparent focus-within:outline-border-primary-focus"
404
459
  );
405
- const inputDisabledClass = (0, import_clsx4.default)(
460
+ const inputDisabledClass = (0, import_clsx5.default)(
406
461
  "has-disabled:bg-background-action-secondary-disabled"
407
462
  );
408
- const inputReadOnlyClass = (0, import_clsx4.default)(
463
+ const inputReadOnlyClass = (0, import_clsx5.default)(
409
464
  "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"
410
465
  );
411
- const inputInvalidClass = (0, import_clsx4.default)(
466
+ const inputInvalidClass = (0, import_clsx5.default)(
412
467
  "has-[[data-error]]:border-transparent has-[[data-error]]:not-focus-within:outline-border-primary-error has-[[data-error]]:not-focus-within:outline-1"
413
468
  );
414
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
469
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
415
470
  "label",
416
471
  {
417
472
  id,
418
473
  "data-testid": testid,
419
474
  htmlFor: inputId,
420
475
  ref: inputContainerRef,
421
- className: (0, import_clsx4.default)(
476
+ className: (0, import_clsx5.default)(
422
477
  "w-full flex flex-col",
423
478
  "block",
424
479
  "text-text-primary-normal has-disabled:text-text-primary-disabled",
@@ -426,30 +481,30 @@ var InputBase = (_a) => {
426
481
  ),
427
482
  style: __spreadValues({}, props.style),
428
483
  children: [
429
- label && /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: (0, import_clsx4.default)("flex items-center", componentGap), children: [
430
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
484
+ label && /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: (0, import_clsx5.default)("flex items-center", componentGap), children: [
485
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
431
486
  Label,
432
487
  {
433
488
  id: id ? `${id}-label` : void 0,
434
489
  color: error ? "text-primary-error" : void 0,
435
- className: (0, import_clsx4.default)(
490
+ className: (0, import_clsx5.default)(
436
491
  props.disabled || props.readOnly ? "cursor-default" : "cursor-pointer"
437
492
  ),
438
493
  children: label
439
494
  }
440
495
  ),
441
- required && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
496
+ required && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
442
497
  "span",
443
498
  {
444
- className: (0, import_clsx4.default)(typography.label, "text-text-critical-normal"),
499
+ className: (0, import_clsx5.default)(typography.label, "text-text-critical-normal"),
445
500
  children: "*"
446
501
  }
447
502
  )
448
503
  ] }),
449
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
504
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
450
505
  "div",
451
506
  {
452
- className: (0, import_clsx4.default)(
507
+ className: (0, import_clsx5.default)(
453
508
  inputBaseClass,
454
509
  !props.disabled && inputInvalidClass,
455
510
  inputFocusClass,
@@ -464,7 +519,7 @@ var InputBase = (_a) => {
464
519
  },
465
520
  children: [
466
521
  before,
467
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
522
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
468
523
  "input",
469
524
  __spreadProps(__spreadValues(__spreadValues({
470
525
  ref: (el) => {
@@ -475,7 +530,7 @@ var InputBase = (_a) => {
475
530
  }, props), attributes), {
476
531
  id: inputId,
477
532
  "data-testid": testid ? `${testid}-input` : void 0,
478
- className: (0, import_clsx4.default)(
533
+ className: (0, import_clsx5.default)(
479
534
  "flex-1 outline-none w-full max-w-full min-h-6 min-w-0",
480
535
  "[appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",
481
536
  "placeholder:text-text-secondary-normal disabled:text-text-secondary-disabled",
@@ -489,11 +544,12 @@ var InputBase = (_a) => {
489
544
  style: __spreadProps(__spreadValues({}, props.style), { width })
490
545
  })
491
546
  ),
492
- secondaryIconColor ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "contents text-text-secondary-normal", children: after }) : after
547
+ secondaryIconColor ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "contents text-text-secondary-normal", children: after }) : after,
548
+ rightAdornment
493
549
  ]
494
550
  }
495
551
  ),
496
- caption && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
552
+ caption && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
497
553
  "div",
498
554
  {
499
555
  id: id ? `${id}-caption` : void 0,
@@ -516,7 +572,8 @@ var Input = (_a) => {
516
572
  onBlur,
517
573
  onClear,
518
574
  id,
519
- testid
575
+ testid,
576
+ rightAdornment
520
577
  } = _b, props = __objRest(_b, [
521
578
  "variant",
522
579
  "decimals",
@@ -527,7 +584,8 @@ var Input = (_a) => {
527
584
  "onBlur",
528
585
  "onClear",
529
586
  "id",
530
- "testid"
587
+ "testid",
588
+ "rightAdornment"
531
589
  ]);
532
590
  const [internalValue, setInternalValue] = (0, import_react.useState)("");
533
591
  const [displayValue, setDisplayValue] = (0, import_react.useState)("");
@@ -549,7 +607,7 @@ var Input = (_a) => {
549
607
  const formatted = formatDecimalValue(stringValue, decimals != null ? decimals : 2);
550
608
  setInternalValue(formatted);
551
609
  setDisplayValue(formatCurrencyDisplay(formatted));
552
- }, []);
610
+ }, [variant, propValue, decimals]);
553
611
  const getInputProps = () => {
554
612
  var _a2;
555
613
  const baseProps = __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, props), {
@@ -586,9 +644,9 @@ var Input = (_a) => {
586
644
  if (props.before) return props.before;
587
645
  switch (variant) {
588
646
  case "search":
589
- return !removeSearchIcon ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Icon, { name: "search" }) }) : null;
647
+ 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;
590
648
  case "currency":
591
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Icon, { name: "attach_money" }) });
649
+ 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" }) });
592
650
  default:
593
651
  return null;
594
652
  }
@@ -598,7 +656,7 @@ var Input = (_a) => {
598
656
  switch (variant) {
599
657
  case "search": {
600
658
  const hasValue = displayValue.length > 0;
601
- return hasValue && !props.readOnly ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
659
+ return hasValue && !props.readOnly ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
602
660
  Icon,
603
661
  {
604
662
  id: id ? `${id}-clear-button` : void 0,
@@ -610,11 +668,11 @@ var Input = (_a) => {
610
668
  ) : null;
611
669
  }
612
670
  case "finder":
613
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Icon, { name: "search" });
671
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { name: "search" });
614
672
  case "uom":
615
- return uom ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "text-text-secondary-normal uppercase", children: uom.slice(0, 4) }) : null;
673
+ return uom ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Paragraph, { color: "text-secondary-normal", children: uom.toUpperCase() }) : null;
616
674
  case "percentage":
617
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Icon, { name: "percent" }) });
675
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { name: "percent" }) });
618
676
  default:
619
677
  return null;
620
678
  }
@@ -691,27 +749,28 @@ var Input = (_a) => {
691
749
  onBlur == null ? void 0 : onBlur(e);
692
750
  };
693
751
  const inputProps = getInputProps();
694
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
752
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
695
753
  InputBase,
696
754
  __spreadProps(__spreadValues({}, inputProps), {
697
755
  before: getBeforeElement(),
698
756
  after: getAfterElement(),
699
757
  onChange: handleChange,
700
758
  onBlur: handleBlur,
701
- testid
759
+ testid,
760
+ rightAdornment
702
761
  })
703
762
  );
704
763
  };
705
764
  Input.displayName = "Input";
706
- var Finder = (props) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Input, __spreadProps(__spreadValues({}, props), { variant: "finder" }));
707
- var UOM = (props) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Input, __spreadProps(__spreadValues({}, props), { variant: "uom" }));
765
+ var Finder = (props) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Input, __spreadProps(__spreadValues({}, props), { variant: "finder" }));
766
+ var UOM = (props) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Input, __spreadProps(__spreadValues({}, props), { variant: "uom" }));
708
767
  var Currency = (props) => {
709
768
  var _a;
710
769
  const handleCurrencyChange = (e) => {
711
770
  var _a2;
712
771
  (_a2 = props.onChange) == null ? void 0 : _a2.call(props, e);
713
772
  };
714
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
773
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
715
774
  Input,
716
775
  __spreadProps(__spreadValues({}, props), {
717
776
  variant: "currency",
@@ -720,7 +779,7 @@ var Currency = (props) => {
720
779
  })
721
780
  );
722
781
  };
723
- var Percentage = (props) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Input, __spreadProps(__spreadValues({}, props), { variant: "percentage" }));
782
+ var Percentage = (props) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Input, __spreadProps(__spreadValues({}, props), { variant: "percentage" }));
724
783
  Finder.displayName = "Finder";
725
784
  UOM.displayName = "UOM";
726
785
  Currency.displayName = "Currency";
@@ -728,7 +787,7 @@ Percentage.displayName = "Percentage";
728
787
 
729
788
  // src/components/Time.tsx
730
789
  var import_react_dom = require("react-dom");
731
- var import_clsx6 = __toESM(require("clsx"), 1);
790
+ var import_clsx7 = __toESM(require("clsx"), 1);
732
791
 
733
792
  // src/utils.ts
734
793
  function findDocumentRoot(element) {
@@ -754,9 +813,9 @@ function findDocumentRoot(element) {
754
813
  }
755
814
 
756
815
  // src/components/Stack.tsx
757
- var import_clsx5 = __toESM(require("clsx"), 1);
758
- var import_jsx_runtime4 = require("react/jsx-runtime");
759
- var getFlexClassNames = ({ items, justify, grow }) => (0, import_clsx5.default)(
816
+ var import_clsx6 = __toESM(require("clsx"), 1);
817
+ var import_jsx_runtime5 = require("react/jsx-runtime");
818
+ var getFlexClassNames = ({ items, justify, grow }) => (0, import_clsx6.default)(
760
819
  "flex",
761
820
  items === "start" && "items-start",
762
821
  grow && "grow",
@@ -772,7 +831,7 @@ var getFlexClassNames = ({ items, justify, grow }) => (0, import_clsx5.default)(
772
831
  justify === "around" && "justify-around"
773
832
  );
774
833
  var useGapClassNames = (sizing) => {
775
- return (0, import_clsx5.default)(
834
+ return (0, import_clsx6.default)(
776
835
  sizing === "layout-group" && "gap-mobile-layout-group-gap desktop:gap-desktop-layout-group-gap compact:gap-compact-layout-group-gap",
777
836
  sizing === "layout" && "gap-mobile-layout-gap desktop:gap-desktop-layout-gap compact:gap-compact-layout-gap",
778
837
  sizing === "container" && "gap-mobile-container-gap desktop:gap-desktop-container-gap compact:gap-compact-container-gap",
@@ -880,7 +939,7 @@ var Stack = (_a) => {
880
939
  var _a2, _b2, _c, _d, _e, _f, _g;
881
940
  const flexClassNames = getFlexClassNames({ items, justify, grow });
882
941
  const gapClassNames = useGapClassNames(sizing);
883
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
942
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
884
943
  "div",
885
944
  __spreadProps(__spreadValues({
886
945
  id,
@@ -912,7 +971,7 @@ var Stack = (_a) => {
912
971
  paddingInline: (_f = props.style) == null ? void 0 : _f.paddingInline,
913
972
  gap: (_g = props.style) == null ? void 0 : _g.gap
914
973
  },
915
- className: (0, import_clsx5.default)(
974
+ className: (0, import_clsx6.default)(
916
975
  "scrollbar-thin",
917
976
  "max-w-screen",
918
977
  width !== "fit" && "w-full",
@@ -974,7 +1033,7 @@ var Stack = (_a) => {
974
1033
  };
975
1034
 
976
1035
  // src/components/Time.tsx
977
- var import_jsx_runtime5 = require("react/jsx-runtime");
1036
+ var import_jsx_runtime6 = require("react/jsx-runtime");
978
1037
  var timePickerScrollableStyle = "overflow-auto max-h-full py-4 no-scrollbar";
979
1038
  var Time = (_a) => {
980
1039
  var _b = _a, { onChange, format = "12h", id, testid } = _b, props = __objRest(_b, ["onChange", "format", "id", "testid"]);
@@ -1182,7 +1241,7 @@ var Time = (_a) => {
1182
1241
  ]);
1183
1242
  const renderOptions = (items, type) => items.map((val) => {
1184
1243
  const isSelected = type === "hour" && val === hour || type === "minute" && val === minute || type === "meridiem" && val === meridiem;
1185
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1244
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1186
1245
  TimeCell,
1187
1246
  {
1188
1247
  id: id ? `${id}-${type}-${val}` : void 0,
@@ -1192,14 +1251,14 @@ var Time = (_a) => {
1192
1251
  selectedRefs[type].current = el;
1193
1252
  } : null,
1194
1253
  onClick: () => handleSelect(type, val),
1195
- className: (0, import_clsx6.default)("!size-10 cursor-pointer", typography.caption),
1254
+ className: (0, import_clsx7.default)("!size-10 cursor-pointer", typography.caption),
1196
1255
  children: val
1197
1256
  },
1198
1257
  val
1199
1258
  );
1200
1259
  });
1201
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "relative max-w-38", children: [
1202
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1260
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "relative max-w-38", children: [
1261
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1203
1262
  InputBase,
1204
1263
  __spreadProps(__spreadValues({}, props), {
1205
1264
  id,
@@ -1208,7 +1267,7 @@ var Time = (_a) => {
1208
1267
  inputContainerRef,
1209
1268
  value: inputValue,
1210
1269
  placeholder: is12HourFormat ? "hh:mm am" : "hh:mm",
1211
- after: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Icon, { name: "schedule" }) }),
1270
+ after: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Icon, { name: "schedule" }) }),
1212
1271
  onFocus: handleFocus,
1213
1272
  caption: props.caption,
1214
1273
  onChange: handleInputChange,
@@ -1217,7 +1276,7 @@ var Time = (_a) => {
1217
1276
  })
1218
1277
  ),
1219
1278
  showTimePicker && (0, import_react_dom.createPortal)(
1220
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1279
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1221
1280
  Stack,
1222
1281
  {
1223
1282
  id: id ? `${id}-timepicker` : void 0,
@@ -1233,22 +1292,22 @@ var Time = (_a) => {
1233
1292
  minWidth: timePosition.width,
1234
1293
  maxWidth: 0,
1235
1294
  rounded: true,
1236
- children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { ref: timeRef, className: "px-4 flex h-60", children: [
1237
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: (0, import_clsx6.default)(timePickerScrollableStyle), children: renderOptions(
1295
+ children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { ref: timeRef, className: "px-4 flex h-60", children: [
1296
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: (0, import_clsx7.default)(timePickerScrollableStyle), children: renderOptions(
1238
1297
  Array.from(
1239
1298
  { length: is12HourFormat ? 12 : 24 },
1240
1299
  (_, i) => (i + (is12HourFormat ? 1 : 0)).toString().padStart(2, "0")
1241
1300
  ),
1242
1301
  "hour"
1243
1302
  ) }),
1244
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: (0, import_clsx6.default)(timePickerScrollableStyle), children: renderOptions(
1303
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: (0, import_clsx7.default)(timePickerScrollableStyle), children: renderOptions(
1245
1304
  Array.from(
1246
1305
  { length: 12 },
1247
1306
  (_, i) => (i * 5).toString().padStart(2, "0")
1248
1307
  ),
1249
1308
  "minute"
1250
1309
  ) }),
1251
- is12HourFormat && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "py-4", children: renderOptions(["AM", "PM"], "meridiem") })
1310
+ is12HourFormat && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "py-4", children: renderOptions(["AM", "PM"], "meridiem") })
1252
1311
  ] })
1253
1312
  }
1254
1313
  ),
@@ -1290,7 +1349,7 @@ function TimeCell(_a) {
1290
1349
  ]);
1291
1350
  const isDefault = !selected && !start && !intermediate && !end && !today;
1292
1351
  const isToday = today && !selected && !start && !intermediate && !end;
1293
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1352
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1294
1353
  "button",
1295
1354
  __spreadProps(__spreadValues({
1296
1355
  id,
@@ -1300,7 +1359,7 @@ function TimeCell(_a) {
1300
1359
  onKeyDown,
1301
1360
  disabled,
1302
1361
  ref,
1303
- className: (0, import_clsx6.default)(
1362
+ className: (0, import_clsx7.default)(
1304
1363
  "w-full h-full aspect-square flex items-center justify-center ",
1305
1364
  isDefault && "text-neutral-500 hover:bg-action-100 hover:text-action-500 active:text-action-300 disabled:text-neutral-300 disabled:pointer-events-none rounded",
1306
1365
  isToday && "rounded-full border border-neutral-300 hover:bg-action-100 hover:text-action-500 active:text-action-300 disabled:text-neutral-300 ",
@@ -1,12 +1,13 @@
1
1
  import {
2
2
  InputBase
3
- } from "../chunk-44TH3VC7.js";
3
+ } from "../chunk-G4AWTFBQ.js";
4
4
  import "../chunk-AL5QIRY3.js";
5
5
  import {
6
6
  findDocumentRoot
7
7
  } from "../chunk-VXWSAIB5.js";
8
8
  import "../chunk-R3EQIDBX.js";
9
9
  import "../chunk-5UH6QUFB.js";
10
+ import "../chunk-ZSETMD4A.js";
10
11
  import {
11
12
  Stack
12
13
  } from "../chunk-DORD2EBO.js";
@@ -1654,6 +1654,7 @@ var InputBase = (_a) => {
1654
1654
  testid,
1655
1655
  before,
1656
1656
  after,
1657
+ rightAdornment,
1657
1658
  type,
1658
1659
  label,
1659
1660
  error,
@@ -1677,6 +1678,7 @@ var InputBase = (_a) => {
1677
1678
  "testid",
1678
1679
  "before",
1679
1680
  "after",
1681
+ "rightAdornment",
1680
1682
  "type",
1681
1683
  "label",
1682
1684
  "error",
@@ -1818,7 +1820,8 @@ var InputBase = (_a) => {
1818
1820
  style: __spreadProps(__spreadValues({}, props.style), { width })
1819
1821
  })
1820
1822
  ),
1821
- secondaryIconColor ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "contents text-text-secondary-normal", children: after }) : after
1823
+ secondaryIconColor ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "contents text-text-secondary-normal", children: after }) : after,
1824
+ rightAdornment
1822
1825
  ]
1823
1826
  }
1824
1827
  ),
@@ -1845,7 +1848,8 @@ var Input = (_a) => {
1845
1848
  onBlur,
1846
1849
  onClear,
1847
1850
  id,
1848
- testid
1851
+ testid,
1852
+ rightAdornment
1849
1853
  } = _b, props = __objRest(_b, [
1850
1854
  "variant",
1851
1855
  "decimals",
@@ -1856,7 +1860,8 @@ var Input = (_a) => {
1856
1860
  "onBlur",
1857
1861
  "onClear",
1858
1862
  "id",
1859
- "testid"
1863
+ "testid",
1864
+ "rightAdornment"
1860
1865
  ]);
1861
1866
  const [internalValue, setInternalValue] = (0, import_react9.useState)("");
1862
1867
  const [displayValue, setDisplayValue] = (0, import_react9.useState)("");
@@ -1878,7 +1883,7 @@ var Input = (_a) => {
1878
1883
  const formatted = formatDecimalValue(stringValue, decimals != null ? decimals : 2);
1879
1884
  setInternalValue(formatted);
1880
1885
  setDisplayValue(formatCurrencyDisplay(formatted));
1881
- }, []);
1886
+ }, [variant, propValue, decimals]);
1882
1887
  const getInputProps = () => {
1883
1888
  var _a2;
1884
1889
  const baseProps = __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, props), {
@@ -1941,7 +1946,7 @@ var Input = (_a) => {
1941
1946
  case "finder":
1942
1947
  return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "search" });
1943
1948
  case "uom":
1944
- return uom ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "text-text-secondary-normal uppercase", children: uom.slice(0, 4) }) : null;
1949
+ return uom ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Paragraph, { color: "text-secondary-normal", children: uom.toUpperCase() }) : null;
1945
1950
  case "percentage":
1946
1951
  return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "percent" }) });
1947
1952
  default:
@@ -2027,7 +2032,8 @@ var Input = (_a) => {
2027
2032
  after: getAfterElement(),
2028
2033
  onChange: handleChange,
2029
2034
  onBlur: handleBlur,
2030
- testid
2035
+ testid,
2036
+ rightAdornment
2031
2037
  })
2032
2038
  );
2033
2039
  };
@@ -5760,8 +5766,10 @@ var ModalHeader = ({
5760
5766
  onClose,
5761
5767
  id,
5762
5768
  testid,
5763
- headerClassname
5769
+ headerClassname,
5770
+ titleAs: TitleComponent
5764
5771
  }) => {
5772
+ const Title = TitleComponent || Heading2;
5765
5773
  return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
5766
5774
  "div",
5767
5775
  {
@@ -5780,7 +5788,7 @@ var ModalHeader = ({
5780
5788
  /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: (0, import_clsx25.default)("flex items-center flex-1", layoutGroupGap), children: [
5781
5789
  headerIcon,
5782
5790
  title && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
5783
- Heading2,
5791
+ Title,
5784
5792
  {
5785
5793
  id: id ? `${id}-title` : void 0,
5786
5794
  testid: testid ? `${testid}-title` : void 0,
@@ -6010,7 +6018,8 @@ var Modal = ({
6010
6018
  customActions,
6011
6019
  headerClassname,
6012
6020
  customFooter,
6013
- noWrapper
6021
+ noWrapper,
6022
+ titleAs: TitleComponent
6014
6023
  }) => {
6015
6024
  var _a;
6016
6025
  const mounted = useMounted();
@@ -6136,7 +6145,8 @@ var Modal = ({
6136
6145
  hideCloseIcon,
6137
6146
  headerIcon,
6138
6147
  headerIconAlign,
6139
- headerClassname
6148
+ headerClassname,
6149
+ titleAs: TitleComponent
6140
6150
  }
6141
6151
  ),
6142
6152
  children && (size !== "screen" || noWrapper) ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
@@ -2,9 +2,9 @@ import {
2
2
  DataGrid,
3
3
  DateInput,
4
4
  MobileDataGrid
5
- } from "../chunk-7LKGHCVT.js";
5
+ } from "../chunk-TWDH7ZDS.js";
6
6
  import "../chunk-M7INAUAJ.js";
7
- import "../chunk-4Q7T4GJ2.js";
7
+ import "../chunk-YD3HWIUJ.js";
8
8
  import "../chunk-3DEYCNUE.js";
9
9
  import {
10
10
  ProductImagePreview
@@ -15,7 +15,7 @@ import {
15
15
  } from "../chunk-Y5GD2FJA.js";
16
16
  import {
17
17
  PDFViewer
18
- } from "../chunk-3WCLGTYP.js";
18
+ } from "../chunk-4LBQSSGH.js";
19
19
  import "../chunk-YEZBNQZI.js";
20
20
  import "../chunk-B53XDCLO.js";
21
21
  import "../chunk-S5ZJ3Q7P.js";
@@ -48,11 +48,11 @@ import {
48
48
  } from "../chunk-GRGDX7JC.js";
49
49
  import {
50
50
  Select
51
- } from "../chunk-HVNHTM3P.js";
52
- import "../chunk-X67L3NZI.js";
51
+ } from "../chunk-PIBHG6DH.js";
52
+ import "../chunk-TOKS63IK.js";
53
53
  import "../chunk-4RJKB7LC.js";
54
54
  import "../chunk-FG7GNGE3.js";
55
- import "../chunk-G7KIKHER.js";
55
+ import "../chunk-X4UK7HE2.js";
56
56
  import "../chunk-AG43RS4Q.js";
57
57
  import "../chunk-ZQJMNPCF.js";
58
58
  import {
@@ -66,7 +66,7 @@ import {
66
66
  DataGridCell,
67
67
  DragAlongCell,
68
68
  DraggableCellHeader
69
- } from "../chunk-ZKTHUXKS.js";
69
+ } from "../chunk-HIKWIY5Q.js";
70
70
  import {
71
71
  Menu
72
72
  } from "../chunk-TCMOGTPB.js";
@@ -76,10 +76,10 @@ import {
76
76
  } from "../chunk-5R4C5F63.js";
77
77
  import {
78
78
  Search
79
- } from "../chunk-RQRR4FEF.js";
79
+ } from "../chunk-5MLYAQQO.js";
80
80
  import {
81
81
  Input
82
- } from "../chunk-44TH3VC7.js";
82
+ } from "../chunk-G4AWTFBQ.js";
83
83
  import {
84
84
  Label
85
85
  } from "../chunk-AL5QIRY3.js";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dmsi/wedgekit-react",
3
3
  "private": false,
4
- "version": "0.0.498",
4
+ "version": "0.0.500",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "build": "tsup",