@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.
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
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  RowDetailModalProvider
3
- } from "../../../chunk-4Q7T4GJ2.js";
3
+ } from "../../../chunk-YD3HWIUJ.js";
4
4
  import "../../../chunk-3DEYCNUE.js";
5
5
  import "../../../chunk-5IFPG6TS.js";
6
6
  import "../../../chunk-AJ5M6MVX.js";
7
7
  import "../../../chunk-KW6V7O3H.js";
8
- import "../../../chunk-X67L3NZI.js";
8
+ import "../../../chunk-TOKS63IK.js";
9
9
  import "../../../chunk-4RJKB7LC.js";
10
10
  import "../../../chunk-FG7GNGE3.js";
11
- import "../../../chunk-G7KIKHER.js";
11
+ import "../../../chunk-X4UK7HE2.js";
12
12
  import "../../../chunk-AG43RS4Q.js";
13
13
  import "../../../chunk-ZQJMNPCF.js";
14
14
  import "../../../chunk-URYQ24NF.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)("span", { className: "text-text-secondary-normal uppercase", children: uom.slice(0, 4) }) : null;
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
  };
@@ -5359,8 +5365,10 @@ var ModalHeader = ({
5359
5365
  onClose,
5360
5366
  id,
5361
5367
  testid,
5362
- headerClassname
5368
+ headerClassname,
5369
+ titleAs: TitleComponent
5363
5370
  }) => {
5371
+ const Title = TitleComponent || Heading2;
5364
5372
  return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
5365
5373
  "div",
5366
5374
  {
@@ -5379,7 +5387,7 @@ var ModalHeader = ({
5379
5387
  /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: (0, import_clsx30.default)("flex items-center flex-1", layoutGroupGap), children: [
5380
5388
  headerIcon,
5381
5389
  title && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
5382
- Heading2,
5390
+ Title,
5383
5391
  {
5384
5392
  id: id ? `${id}-title` : void 0,
5385
5393
  testid: testid ? `${testid}-title` : void 0,
@@ -5609,7 +5617,8 @@ var Modal = ({
5609
5617
  customActions,
5610
5618
  headerClassname,
5611
5619
  customFooter,
5612
- noWrapper
5620
+ noWrapper,
5621
+ titleAs: TitleComponent
5613
5622
  }) => {
5614
5623
  var _a;
5615
5624
  const mounted = useMounted();
@@ -5735,7 +5744,8 @@ var Modal = ({
5735
5744
  hideCloseIcon,
5736
5745
  headerIcon,
5737
5746
  headerIconAlign,
5738
- headerClassname
5747
+ headerClassname,
5748
+ titleAs: TitleComponent
5739
5749
  }
5740
5750
  ),
5741
5751
  children && (size !== "screen" || noWrapper) ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  MobileDataGrid
3
- } from "../../chunk-7LKGHCVT.js";
3
+ } from "../../chunk-TWDH7ZDS.js";
4
4
  import "../../chunk-M7INAUAJ.js";
5
- import "../../chunk-4Q7T4GJ2.js";
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-3WCLGTYP.js";
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-HVNHTM3P.js";
32
- import "../../chunk-X67L3NZI.js";
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-G7KIKHER.js";
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-ZKTHUXKS.js";
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-RQRR4FEF.js";
47
- import "../../chunk-44TH3VC7.js";
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";
@@ -443,8 +443,10 @@ var ModalHeader = ({
443
443
  onClose,
444
444
  id,
445
445
  testid,
446
- headerClassname
446
+ headerClassname,
447
+ titleAs: TitleComponent
447
448
  }) => {
449
+ const Title = TitleComponent || Heading2;
448
450
  return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
449
451
  "div",
450
452
  {
@@ -463,7 +465,7 @@ var ModalHeader = ({
463
465
  /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: (0, import_clsx5.default)("flex items-center flex-1", layoutGroupGap), children: [
464
466
  headerIcon,
465
467
  title && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
466
- Heading2,
468
+ Title,
467
469
  {
468
470
  id: id ? `${id}-title` : void 0,
469
471
  testid: testid ? `${testid}-title` : void 0,
@@ -746,7 +748,8 @@ var Modal = ({
746
748
  customActions,
747
749
  headerClassname,
748
750
  customFooter,
749
- noWrapper
751
+ noWrapper,
752
+ titleAs: TitleComponent
750
753
  }) => {
751
754
  var _a;
752
755
  const mounted = useMounted();
@@ -872,7 +875,8 @@ var Modal = ({
872
875
  hideCloseIcon,
873
876
  headerIcon,
874
877
  headerIconAlign,
875
- headerClassname
878
+ headerClassname,
879
+ titleAs: TitleComponent
876
880
  }
877
881
  ),
878
882
  children && (size !== "screen" || noWrapper) ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import {
3
3
  Modal
4
- } from "../chunk-X67L3NZI.js";
4
+ } from "../chunk-TOKS63IK.js";
5
5
  import "../chunk-4RJKB7LC.js";
6
6
  import "../chunk-FG7GNGE3.js";
7
- import "../chunk-G7KIKHER.js";
7
+ import "../chunk-X4UK7HE2.js";
8
8
  import "../chunk-AG43RS4Q.js";
9
9
  import "../chunk-ZQJMNPCF.js";
10
10
  import "../chunk-URYQ24NF.js";
@@ -440,8 +440,10 @@ var ModalHeader = ({
440
440
  onClose,
441
441
  id,
442
442
  testid,
443
- headerClassname
443
+ headerClassname,
444
+ titleAs: TitleComponent
444
445
  }) => {
446
+ const Title = TitleComponent || Heading2;
445
447
  return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
446
448
  "div",
447
449
  {
@@ -460,7 +462,7 @@ var ModalHeader = ({
460
462
  /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: (0, import_clsx5.default)("flex items-center flex-1", layoutGroupGap), children: [
461
463
  headerIcon,
462
464
  title && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
463
- Heading2,
465
+ Title,
464
466
  {
465
467
  id: id ? `${id}-title` : void 0,
466
468
  testid: testid ? `${testid}-title` : void 0,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ModalHeader
3
- } from "../chunk-G7KIKHER.js";
3
+ } from "../chunk-X4UK7HE2.js";
4
4
  import "../chunk-H2KC5XUY.js";
5
5
  import "../chunk-NKUETCDA.js";
6
6
  import "../chunk-LPY6PMAY.js";
@@ -446,8 +446,10 @@ var ModalHeader = ({
446
446
  onClose,
447
447
  id,
448
448
  testid,
449
- headerClassname
449
+ headerClassname,
450
+ titleAs: TitleComponent
450
451
  }) => {
452
+ const Title = TitleComponent || Heading2;
451
453
  return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
452
454
  "div",
453
455
  {
@@ -466,7 +468,7 @@ var ModalHeader = ({
466
468
  /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: (0, import_clsx5.default)("flex items-center flex-1", layoutGroupGap), children: [
467
469
  headerIcon,
468
470
  title && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
469
- Heading2,
471
+ Title,
470
472
  {
471
473
  id: id ? `${id}-title` : void 0,
472
474
  testid: testid ? `${testid}-title` : void 0,
@@ -749,7 +751,8 @@ var Modal = ({
749
751
  customActions,
750
752
  headerClassname,
751
753
  customFooter,
752
- noWrapper
754
+ noWrapper,
755
+ titleAs: TitleComponent
753
756
  }) => {
754
757
  var _a;
755
758
  const mounted = useMounted();
@@ -875,7 +878,8 @@ var Modal = ({
875
878
  hideCloseIcon,
876
879
  headerIcon,
877
880
  headerIconAlign,
878
- headerClassname
881
+ headerClassname,
882
+ titleAs: TitleComponent
879
883
  }
880
884
  ),
881
885
  children && (size !== "screen" || noWrapper) ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
@@ -1,15 +1,15 @@
1
1
  "use client";
2
2
  import {
3
3
  PDFViewer
4
- } from "../../chunk-3WCLGTYP.js";
4
+ } from "../../chunk-4LBQSSGH.js";
5
5
  import "../../chunk-YEZBNQZI.js";
6
6
  import "../../chunk-B53XDCLO.js";
7
7
  import "../../chunk-S5ZJ3Q7P.js";
8
8
  import "../../chunk-JUFBGNWW.js";
9
- import "../../chunk-X67L3NZI.js";
9
+ import "../../chunk-TOKS63IK.js";
10
10
  import "../../chunk-4RJKB7LC.js";
11
11
  import "../../chunk-FG7GNGE3.js";
12
- import "../../chunk-G7KIKHER.js";
12
+ import "../../chunk-X4UK7HE2.js";
13
13
  import "../../chunk-AG43RS4Q.js";
14
14
  import "../../chunk-ZQJMNPCF.js";
15
15
  import "../../chunk-SBRRNFOP.js";
@@ -67,7 +67,7 @@ var import_react2 = require("react");
67
67
 
68
68
  // src/components/Input.tsx
69
69
  var import_react = require("react");
70
- var import_clsx4 = __toESM(require("clsx"), 1);
70
+ var import_clsx5 = __toESM(require("clsx"), 1);
71
71
 
72
72
  // src/classNames.ts
73
73
  var import_clsx = __toESM(require("clsx"), 1);
@@ -318,14 +318,68 @@ function formatCurrencyDisplay(value) {
318
318
  return decimalPart !== void 0 ? `${formattedInteger}.${decimalPart}` : formattedInteger;
319
319
  }
320
320
 
321
- // src/components/Input.tsx
321
+ // src/components/Paragraph.tsx
322
+ var import_clsx4 = __toESM(require("clsx"), 1);
322
323
  var import_jsx_runtime3 = require("react/jsx-runtime");
324
+ var Paragraph = (_a) => {
325
+ var _b = _a, {
326
+ className,
327
+ color,
328
+ padded,
329
+ align = "left",
330
+ tall,
331
+ addOverflow,
332
+ children,
333
+ as = "p",
334
+ id,
335
+ testid
336
+ } = _b, props = __objRest(_b, [
337
+ "className",
338
+ "color",
339
+ "padded",
340
+ "align",
341
+ "tall",
342
+ "addOverflow",
343
+ "children",
344
+ "as",
345
+ "id",
346
+ "testid"
347
+ ]);
348
+ const Element = as;
349
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
350
+ Element,
351
+ __spreadProps(__spreadValues({
352
+ id,
353
+ "data-testid": testid
354
+ }, props), {
355
+ className: (0, import_clsx4.default)(
356
+ typography.paragraph,
357
+ className,
358
+ padded && componentPaddingXUsingComponentGap,
359
+ align === "left" && "text-left",
360
+ align === "center" && "text-center",
361
+ align === "right" && "text-right",
362
+ tall && "!leading-6",
363
+ addOverflow && "whitespace-nowrap text-ellipsis overflow-hidden"
364
+ ),
365
+ style: __spreadProps(__spreadValues({}, props.style), {
366
+ color: color ? `var(--color-${color})` : void 0
367
+ }),
368
+ children
369
+ })
370
+ );
371
+ };
372
+ Paragraph.displayName = "Paragraph";
373
+
374
+ // src/components/Input.tsx
375
+ var import_jsx_runtime4 = require("react/jsx-runtime");
323
376
  var InputBase = (_a) => {
324
377
  var _b = _a, {
325
378
  id,
326
379
  testid,
327
380
  before,
328
381
  after,
382
+ rightAdornment,
329
383
  type,
330
384
  label,
331
385
  error,
@@ -349,6 +403,7 @@ var InputBase = (_a) => {
349
403
  "testid",
350
404
  "before",
351
405
  "after",
406
+ "rightAdornment",
352
407
  "type",
353
408
  "label",
354
409
  "error",
@@ -387,7 +442,7 @@ var InputBase = (_a) => {
387
442
  };
388
443
  }
389
444
  }, [selectOnFocus]);
390
- const inputBaseClass = (0, import_clsx4.default)(
445
+ const inputBaseClass = (0, import_clsx5.default)(
391
446
  fullWidth ? "w-full" : "w-fit",
392
447
  "flex flex-row items-center",
393
448
  "bg-background-action-secondary-normal caret-icon-on-action-secondary-normal",
@@ -400,26 +455,26 @@ var InputBase = (_a) => {
400
455
  !removeBorder && "border border-border-primary-normal",
401
456
  "relative"
402
457
  );
403
- const inputFocusClass = (0, import_clsx4.default)(
458
+ const inputFocusClass = (0, import_clsx5.default)(
404
459
  "has-[[data-focus]]:border-transparent has-[[data-focus]]:outline-border-primary-focus focus-within:border-transparent focus-within:outline-border-primary-focus"
405
460
  );
406
- const inputDisabledClass = (0, import_clsx4.default)(
461
+ const inputDisabledClass = (0, import_clsx5.default)(
407
462
  "has-disabled:bg-background-action-secondary-disabled"
408
463
  );
409
- const inputReadOnlyClass = (0, import_clsx4.default)(
464
+ const inputReadOnlyClass = (0, import_clsx5.default)(
410
465
  "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"
411
466
  );
412
- const inputInvalidClass = (0, import_clsx4.default)(
467
+ const inputInvalidClass = (0, import_clsx5.default)(
413
468
  "has-[[data-error]]:border-transparent has-[[data-error]]:not-focus-within:outline-border-primary-error has-[[data-error]]:not-focus-within:outline-1"
414
469
  );
415
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
470
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
416
471
  "label",
417
472
  {
418
473
  id,
419
474
  "data-testid": testid,
420
475
  htmlFor: inputId,
421
476
  ref: inputContainerRef,
422
- className: (0, import_clsx4.default)(
477
+ className: (0, import_clsx5.default)(
423
478
  "w-full flex flex-col",
424
479
  "block",
425
480
  "text-text-primary-normal has-disabled:text-text-primary-disabled",
@@ -427,30 +482,30 @@ var InputBase = (_a) => {
427
482
  ),
428
483
  style: __spreadValues({}, props.style),
429
484
  children: [
430
- label && /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: (0, import_clsx4.default)("flex items-center", componentGap), children: [
431
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
485
+ label && /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: (0, import_clsx5.default)("flex items-center", componentGap), children: [
486
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
432
487
  Label,
433
488
  {
434
489
  id: id ? `${id}-label` : void 0,
435
490
  color: error ? "text-primary-error" : void 0,
436
- className: (0, import_clsx4.default)(
491
+ className: (0, import_clsx5.default)(
437
492
  props.disabled || props.readOnly ? "cursor-default" : "cursor-pointer"
438
493
  ),
439
494
  children: label
440
495
  }
441
496
  ),
442
- required && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
497
+ required && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
443
498
  "span",
444
499
  {
445
- className: (0, import_clsx4.default)(typography.label, "text-text-critical-normal"),
500
+ className: (0, import_clsx5.default)(typography.label, "text-text-critical-normal"),
446
501
  children: "*"
447
502
  }
448
503
  )
449
504
  ] }),
450
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
505
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
451
506
  "div",
452
507
  {
453
- className: (0, import_clsx4.default)(
508
+ className: (0, import_clsx5.default)(
454
509
  inputBaseClass,
455
510
  !props.disabled && inputInvalidClass,
456
511
  inputFocusClass,
@@ -465,7 +520,7 @@ var InputBase = (_a) => {
465
520
  },
466
521
  children: [
467
522
  before,
468
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
523
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
469
524
  "input",
470
525
  __spreadProps(__spreadValues(__spreadValues({
471
526
  ref: (el) => {
@@ -476,7 +531,7 @@ var InputBase = (_a) => {
476
531
  }, props), attributes), {
477
532
  id: inputId,
478
533
  "data-testid": testid ? `${testid}-input` : void 0,
479
- className: (0, import_clsx4.default)(
534
+ className: (0, import_clsx5.default)(
480
535
  "flex-1 outline-none w-full max-w-full min-h-6 min-w-0",
481
536
  "[appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",
482
537
  "placeholder:text-text-secondary-normal disabled:text-text-secondary-disabled",
@@ -490,11 +545,12 @@ var InputBase = (_a) => {
490
545
  style: __spreadProps(__spreadValues({}, props.style), { width })
491
546
  })
492
547
  ),
493
- secondaryIconColor ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "contents text-text-secondary-normal", children: after }) : after
548
+ secondaryIconColor ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "contents text-text-secondary-normal", children: after }) : after,
549
+ rightAdornment
494
550
  ]
495
551
  }
496
552
  ),
497
- caption && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
553
+ caption && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
498
554
  "div",
499
555
  {
500
556
  id: id ? `${id}-caption` : void 0,
@@ -517,7 +573,8 @@ var Input = (_a) => {
517
573
  onBlur,
518
574
  onClear,
519
575
  id,
520
- testid
576
+ testid,
577
+ rightAdornment
521
578
  } = _b, props = __objRest(_b, [
522
579
  "variant",
523
580
  "decimals",
@@ -528,7 +585,8 @@ var Input = (_a) => {
528
585
  "onBlur",
529
586
  "onClear",
530
587
  "id",
531
- "testid"
588
+ "testid",
589
+ "rightAdornment"
532
590
  ]);
533
591
  const [internalValue, setInternalValue] = (0, import_react.useState)("");
534
592
  const [displayValue, setDisplayValue] = (0, import_react.useState)("");
@@ -550,7 +608,7 @@ var Input = (_a) => {
550
608
  const formatted = formatDecimalValue(stringValue, decimals != null ? decimals : 2);
551
609
  setInternalValue(formatted);
552
610
  setDisplayValue(formatCurrencyDisplay(formatted));
553
- }, []);
611
+ }, [variant, propValue, decimals]);
554
612
  const getInputProps = () => {
555
613
  var _a2;
556
614
  const baseProps = __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, props), {
@@ -587,9 +645,9 @@ var Input = (_a) => {
587
645
  if (props.before) return props.before;
588
646
  switch (variant) {
589
647
  case "search":
590
- 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;
648
+ 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;
591
649
  case "currency":
592
- 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" }) });
650
+ 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" }) });
593
651
  default:
594
652
  return null;
595
653
  }
@@ -599,7 +657,7 @@ var Input = (_a) => {
599
657
  switch (variant) {
600
658
  case "search": {
601
659
  const hasValue = displayValue.length > 0;
602
- return hasValue && !props.readOnly ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
660
+ return hasValue && !props.readOnly ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
603
661
  Icon,
604
662
  {
605
663
  id: id ? `${id}-clear-button` : void 0,
@@ -611,11 +669,11 @@ var Input = (_a) => {
611
669
  ) : null;
612
670
  }
613
671
  case "finder":
614
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Icon, { name: "search" });
672
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { name: "search" });
615
673
  case "uom":
616
- return uom ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "text-text-secondary-normal uppercase", children: uom.slice(0, 4) }) : null;
674
+ return uom ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Paragraph, { color: "text-secondary-normal", children: uom.toUpperCase() }) : null;
617
675
  case "percentage":
618
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Icon, { name: "percent" }) });
676
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { name: "percent" }) });
619
677
  default:
620
678
  return null;
621
679
  }
@@ -692,27 +750,28 @@ var Input = (_a) => {
692
750
  onBlur == null ? void 0 : onBlur(e);
693
751
  };
694
752
  const inputProps = getInputProps();
695
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
753
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
696
754
  InputBase,
697
755
  __spreadProps(__spreadValues({}, inputProps), {
698
756
  before: getBeforeElement(),
699
757
  after: getAfterElement(),
700
758
  onChange: handleChange,
701
759
  onBlur: handleBlur,
702
- testid
760
+ testid,
761
+ rightAdornment
703
762
  })
704
763
  );
705
764
  };
706
765
  Input.displayName = "Input";
707
- var Finder = (props) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Input, __spreadProps(__spreadValues({}, props), { variant: "finder" }));
708
- var UOM = (props) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Input, __spreadProps(__spreadValues({}, props), { variant: "uom" }));
766
+ var Finder = (props) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Input, __spreadProps(__spreadValues({}, props), { variant: "finder" }));
767
+ var UOM = (props) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Input, __spreadProps(__spreadValues({}, props), { variant: "uom" }));
709
768
  var Currency = (props) => {
710
769
  var _a;
711
770
  const handleCurrencyChange = (e) => {
712
771
  var _a2;
713
772
  (_a2 = props.onChange) == null ? void 0 : _a2.call(props, e);
714
773
  };
715
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
774
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
716
775
  Input,
717
776
  __spreadProps(__spreadValues({}, props), {
718
777
  variant: "currency",
@@ -721,14 +780,14 @@ var Currency = (props) => {
721
780
  })
722
781
  );
723
782
  };
724
- var Percentage = (props) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Input, __spreadProps(__spreadValues({}, props), { variant: "percentage" }));
783
+ var Percentage = (props) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Input, __spreadProps(__spreadValues({}, props), { variant: "percentage" }));
725
784
  Finder.displayName = "Finder";
726
785
  UOM.displayName = "UOM";
727
786
  Currency.displayName = "Currency";
728
787
  Percentage.displayName = "Percentage";
729
788
 
730
789
  // src/components/Password.tsx
731
- var import_jsx_runtime4 = require("react/jsx-runtime");
790
+ var import_jsx_runtime5 = require("react/jsx-runtime");
732
791
  var Password = (_a) => {
733
792
  var _b = _a, {
734
793
  id,
@@ -738,20 +797,20 @@ var Password = (_a) => {
738
797
  "testid"
739
798
  ]);
740
799
  const [show, setShow] = (0, import_react2.useState)(false);
741
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
800
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
742
801
  InputBase,
743
802
  __spreadProps(__spreadValues({
744
803
  id,
745
804
  testid
746
805
  }, props), {
747
806
  type: show ? "text" : "password",
748
- after: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(WhichIcon, { id, testid, show, setShow })
807
+ after: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(WhichIcon, { id, testid, show, setShow })
749
808
  })
750
809
  );
751
810
  };
752
811
  var WhichIcon = ({ id, testid, show, setShow }) => {
753
812
  if (show) {
754
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
813
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
755
814
  Icon,
756
815
  {
757
816
  id: id ? `${id}-toggle-visibility` : void 0,
@@ -762,7 +821,7 @@ var WhichIcon = ({ id, testid, show, setShow }) => {
762
821
  }
763
822
  );
764
823
  }
765
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
824
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
766
825
  Icon,
767
826
  {
768
827
  id: id ? `${id}-toggle-visibility` : void 0,