@dmsi/wedgekit-react 0.0.1248 → 0.0.1250

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 (78) hide show
  1. package/dist/{chunk-MOBFZ672.js → chunk-3DJWSTPS.js} +1 -1
  2. package/dist/{chunk-5UPADXVU.js → chunk-3V5OMIYB.js} +6 -6
  3. package/dist/{chunk-EA6Y4HXQ.js → chunk-4FUZDLWX.js} +1 -1
  4. package/dist/{chunk-PABII472.js → chunk-H5SHC4XZ.js} +40 -33
  5. package/dist/{chunk-MAEVKATN.js → chunk-HRPW6VXG.js} +1 -1
  6. package/dist/{chunk-OG2PGA3X.js → chunk-JYECZBCJ.js} +1 -1
  7. package/dist/{chunk-PBJ2MEHM.js → chunk-QW4AJ5FK.js} +1 -1
  8. package/dist/{chunk-I3W5K76C.js → chunk-RN465M4S.js} +1 -1
  9. package/dist/components/CalendarRange.cjs +41 -34
  10. package/dist/components/CalendarRange.css +3 -0
  11. package/dist/components/CalendarRange.js +8 -8
  12. package/dist/components/Checkbox.cjs +1 -1
  13. package/dist/components/Checkbox.js +1 -1
  14. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.cjs +41 -34
  15. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.css +3 -0
  16. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +8 -8
  17. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +41 -34
  18. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.css +3 -0
  19. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +8 -8
  20. package/dist/components/DataGrid/PinnedColumns.cjs +41 -34
  21. package/dist/components/DataGrid/PinnedColumns.css +3 -0
  22. package/dist/components/DataGrid/PinnedColumns.js +8 -8
  23. package/dist/components/DataGrid/TableBody/LoadingCell.cjs +41 -34
  24. package/dist/components/DataGrid/TableBody/LoadingCell.css +3 -0
  25. package/dist/components/DataGrid/TableBody/LoadingCell.js +8 -8
  26. package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +41 -34
  27. package/dist/components/DataGrid/TableBody/TableBodyRow.css +3 -0
  28. package/dist/components/DataGrid/TableBody/TableBodyRow.js +8 -8
  29. package/dist/components/DataGrid/TableBody/index.cjs +41 -34
  30. package/dist/components/DataGrid/TableBody/index.css +3 -0
  31. package/dist/components/DataGrid/TableBody/index.js +8 -8
  32. package/dist/components/DataGrid/index.cjs +41 -34
  33. package/dist/components/DataGrid/index.css +3 -0
  34. package/dist/components/DataGrid/index.js +8 -8
  35. package/dist/components/DataGrid/utils.cjs +41 -34
  36. package/dist/components/DataGrid/utils.css +3 -0
  37. package/dist/components/DataGrid/utils.js +8 -8
  38. package/dist/components/DataGridCell.cjs +40 -33
  39. package/dist/components/DataGridCell.js +3 -3
  40. package/dist/components/DateInput.cjs +41 -34
  41. package/dist/components/DateInput.css +3 -0
  42. package/dist/components/DateInput.js +8 -8
  43. package/dist/components/DateRangeInput.cjs +41 -34
  44. package/dist/components/DateRangeInput.css +3 -0
  45. package/dist/components/DateRangeInput.js +8 -8
  46. package/dist/components/FilterGroup.cjs +41 -34
  47. package/dist/components/FilterGroup.js +3 -3
  48. package/dist/components/Input.cjs +40 -33
  49. package/dist/components/Input.js +1 -1
  50. package/dist/components/MobileDataGrid/ColumnList.cjs +1 -1
  51. package/dist/components/MobileDataGrid/ColumnList.css +3 -0
  52. package/dist/components/MobileDataGrid/ColumnList.js +3 -3
  53. package/dist/components/MobileDataGrid/ColumnSelector/index.cjs +41 -34
  54. package/dist/components/MobileDataGrid/ColumnSelector/index.css +3 -0
  55. package/dist/components/MobileDataGrid/ColumnSelector/index.js +8 -8
  56. package/dist/components/MobileDataGrid/MobileDataGridCard/index.cjs +1 -1
  57. package/dist/components/MobileDataGrid/MobileDataGridCard/index.js +2 -2
  58. package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +41 -34
  59. package/dist/components/MobileDataGrid/MobileDataGridHeader.css +3 -0
  60. package/dist/components/MobileDataGrid/MobileDataGridHeader.js +8 -8
  61. package/dist/components/MobileDataGrid/index.cjs +41 -34
  62. package/dist/components/MobileDataGrid/index.css +3 -0
  63. package/dist/components/MobileDataGrid/index.js +8 -8
  64. package/dist/components/Password.cjs +40 -33
  65. package/dist/components/Password.js +1 -1
  66. package/dist/components/Search.cjs +40 -33
  67. package/dist/components/Search.js +2 -2
  68. package/dist/components/Select.cjs +40 -33
  69. package/dist/components/Select.js +2 -2
  70. package/dist/components/Stepper.cjs +40 -33
  71. package/dist/components/Stepper.js +1 -1
  72. package/dist/components/Time.cjs +40 -33
  73. package/dist/components/Time.js +1 -1
  74. package/dist/components/index.cjs +41 -34
  75. package/dist/components/index.css +3 -0
  76. package/dist/components/index.js +8 -8
  77. package/dist/index.css +3 -0
  78. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CalendarRange
3
- } from "../chunk-5UPADXVU.js";
3
+ } from "../chunk-3V5OMIYB.js";
4
4
  import "../chunk-3UPUZBP5.js";
5
5
  import "../chunk-7ZJIGTFN.js";
6
6
  import "../chunk-E3FOCECQ.js";
@@ -13,15 +13,15 @@ import "../chunk-3PIDINTF.js";
13
13
  import "../chunk-BQNPOGD5.js";
14
14
  import "../chunk-YULGJORA.js";
15
15
  import "../chunk-Z2HPSFEQ.js";
16
- import "../chunk-MAEVKATN.js";
17
- import "../chunk-OG2PGA3X.js";
16
+ import "../chunk-HRPW6VXG.js";
17
+ import "../chunk-JYECZBCJ.js";
18
18
  import "../chunk-5IFPG6TS.js";
19
19
  import "../chunk-7YA3TF73.js";
20
20
  import "../chunk-AJ5M6MVX.js";
21
21
  import "../chunk-7IPESTQS.js";
22
22
  import "../chunk-EWGHVZL5.js";
23
23
  import "../chunk-AT4AWD6B.js";
24
- import "../chunk-EA6Y4HXQ.js";
24
+ import "../chunk-4FUZDLWX.js";
25
25
  import "../chunk-CIYLALYO.js";
26
26
  import "../chunk-KBIEWFQS.js";
27
27
  import "../chunk-NSZTJ5R4.js";
@@ -38,17 +38,17 @@ import "../chunk-UARCWLMD.js";
38
38
  import "../chunk-SJZNVG4N.js";
39
39
  import "../chunk-75USUR3I.js";
40
40
  import "../chunk-BWPNXY7T.js";
41
- import "../chunk-PBJ2MEHM.js";
41
+ import "../chunk-QW4AJ5FK.js";
42
42
  import "../chunk-3JUIYULW.js";
43
43
  import "../chunk-OM7QLLI2.js";
44
44
  import "../chunk-PE3EZP56.js";
45
- import "../chunk-MOBFZ672.js";
45
+ import "../chunk-3DJWSTPS.js";
46
46
  import {
47
47
  InputBase
48
- } from "../chunk-PABII472.js";
48
+ } from "../chunk-H5SHC4XZ.js";
49
49
  import "../chunk-4UGMSWWA.js";
50
50
  import "../chunk-WVUIIBRR.js";
51
- import "../chunk-I3W5K76C.js";
51
+ import "../chunk-RN465M4S.js";
52
52
  import "../chunk-Z5YP2GI6.js";
53
53
  import "../chunk-ZRFXUER3.js";
54
54
  import "../chunk-WVGXD7HT.js";
@@ -446,7 +446,7 @@ var Checkbox = (_a) => {
446
446
  as: "span",
447
447
  padded: true,
448
448
  className: (0, import_clsx5.default)(
449
- "text-nowrap",
449
+ !(paragraphClassName == null ? void 0 : paragraphClassName.includes("text-wrap")) && "text-nowrap",
450
450
  disabled && !error && "!text-text-primary-disabled",
451
451
  error && !disabled && !readOnly && "!text-text-primary-error",
452
452
  paragraphClassName
@@ -919,6 +919,14 @@ function formatCurrencyDisplay(value) {
919
919
 
920
920
  // src/components/Input.tsx
921
921
  var import_jsx_runtime9 = require("react/jsx-runtime");
922
+ function hasEquivalentNumericValue(currentValue, nextValue) {
923
+ if (!currentValue || !nextValue) {
924
+ return false;
925
+ }
926
+ const currentNumericValue = Number(currentValue.replace(/,/g, ""));
927
+ const nextNumericValue = Number(nextValue.replace(/,/g, ""));
928
+ return !Number.isNaN(currentNumericValue) && !Number.isNaN(nextNumericValue) && currentNumericValue === nextNumericValue;
929
+ }
922
930
  var InputBase = (_a) => {
923
931
  var _b = _a, {
924
932
  id,
@@ -1141,28 +1149,33 @@ var Input = (_a) => {
1141
1149
  const [internalValue, setInternalValue] = (0, import_react.useState)("");
1142
1150
  const [displayValue, setDisplayValue] = (0, import_react.useState)("");
1143
1151
  const [isFocused, setIsFocused] = (0, import_react.useState)(false);
1152
+ const internalValueRef = (0, import_react.useRef)("");
1153
+ const setInputValues = (nextInternalValue, nextDisplayValue) => {
1154
+ internalValueRef.current = nextInternalValue;
1155
+ setInternalValue(nextInternalValue);
1156
+ setDisplayValue(nextDisplayValue);
1157
+ };
1144
1158
  (0, import_react.useEffect)(() => {
1145
1159
  var _a2;
1146
1160
  const stringValue = (_a2 = propValue == null ? void 0 : propValue.toString()) != null ? _a2 : "";
1147
1161
  const shouldUseThousandsFormatting = variant === "currency" || variant === "uom" && currencyFormat;
1148
1162
  if (!stringValue) {
1149
- setInternalValue("");
1150
- setDisplayValue("");
1163
+ setInputValues("", "");
1151
1164
  return;
1152
1165
  }
1153
1166
  if (!shouldUseThousandsFormatting) {
1154
- setInternalValue(stringValue);
1155
- setDisplayValue(stringValue);
1167
+ setInputValues(stringValue, stringValue);
1168
+ return;
1169
+ }
1170
+ if (isFocused && hasEquivalentNumericValue(internalValueRef.current, stringValue)) {
1156
1171
  return;
1157
1172
  }
1158
- const formatted = formatDecimalValue(stringValue, decimals != null ? decimals : 2);
1159
1173
  if (formatOnBlur && isFocused) {
1160
- setInternalValue(stringValue);
1161
- setDisplayValue(stringValue);
1174
+ setInputValues(stringValue, stringValue);
1162
1175
  return;
1163
1176
  }
1164
- setInternalValue(formatted);
1165
- setDisplayValue(formatCurrencyDisplay(formatted));
1177
+ const formatted = formatDecimalValue(stringValue, decimals != null ? decimals : 2);
1178
+ setInputValues(formatted, formatCurrencyDisplay(formatted));
1166
1179
  }, [propValue, variant, currencyFormat, decimals, formatOnBlur, isFocused]);
1167
1180
  const getInputProps = () => {
1168
1181
  var _a2;
@@ -1184,6 +1197,7 @@ var Input = (_a) => {
1184
1197
  return __spreadProps(__spreadValues({}, baseProps), {
1185
1198
  align: "right",
1186
1199
  type: "text",
1200
+ inputMode: "decimal",
1187
1201
  value: displayValue
1188
1202
  });
1189
1203
  case "percentage":
@@ -1191,6 +1205,7 @@ var Input = (_a) => {
1191
1205
  return __spreadProps(__spreadValues({}, baseProps), {
1192
1206
  type: currencyFormat ? "text" : "number",
1193
1207
  align: "right",
1208
+ inputMode: currencyFormat ? "decimal" : void 0,
1194
1209
  value: currencyFormat ? displayValue : propValue
1195
1210
  });
1196
1211
  default:
@@ -1237,8 +1252,7 @@ var Input = (_a) => {
1237
1252
  }
1238
1253
  };
1239
1254
  const handleSearchReset = () => {
1240
- setInternalValue("");
1241
- setDisplayValue("");
1255
+ setInputValues("", "");
1242
1256
  if (onChange) {
1243
1257
  const syntheticEvent = {
1244
1258
  target: { value: "" }
@@ -1255,8 +1269,7 @@ var Input = (_a) => {
1255
1269
  if (variant === "currency") {
1256
1270
  const raw = rawValue.replace(/,/g, "");
1257
1271
  if (raw === "") {
1258
- setInternalValue("");
1259
- setDisplayValue("");
1272
+ setInputValues("", "");
1260
1273
  if (onChange) {
1261
1274
  const syntheticEvent = __spreadProps(__spreadValues({}, e), {
1262
1275
  target: __spreadProps(__spreadValues({}, e.target), { value: "" })
@@ -1277,8 +1290,8 @@ var Input = (_a) => {
1277
1290
  clamped.toString(),
1278
1291
  currentDecimals
1279
1292
  );
1280
- setInternalValue(formattedClamped);
1281
- setDisplayValue(
1293
+ setInputValues(
1294
+ formattedClamped,
1282
1295
  formatOnBlur ? formattedClamped : formatCurrencyDisplay(formattedClamped)
1283
1296
  );
1284
1297
  if (onChange) {
@@ -1289,8 +1302,7 @@ var Input = (_a) => {
1289
1302
  }
1290
1303
  return;
1291
1304
  }
1292
- setInternalValue(raw);
1293
- setDisplayValue(formatOnBlur ? raw : formatCurrencyDisplay(raw));
1305
+ setInputValues(raw, formatOnBlur ? raw : formatCurrencyDisplay(raw));
1294
1306
  if (!isNaN(asNumber) && onChange) {
1295
1307
  const syntheticEvent = __spreadProps(__spreadValues({}, e), {
1296
1308
  target: __spreadProps(__spreadValues({}, e.target), { value: asNumber.toString() })
@@ -1302,8 +1314,7 @@ var Input = (_a) => {
1302
1314
  if (variant === "uom" && currencyFormat) {
1303
1315
  const raw = rawValue.replace(/,/g, "");
1304
1316
  if (raw === "") {
1305
- setInternalValue("");
1306
- setDisplayValue("");
1317
+ setInputValues("", "");
1307
1318
  if (onChange) {
1308
1319
  const syntheticEvent = __spreadProps(__spreadValues({}, e), {
1309
1320
  target: __spreadProps(__spreadValues({}, e.target), { value: "" })
@@ -1324,8 +1335,10 @@ var Input = (_a) => {
1324
1335
  clamped.toString(),
1325
1336
  currentDecimals
1326
1337
  );
1327
- setInternalValue(formattedClamped);
1328
- setDisplayValue(formatCurrencyDisplay(formattedClamped));
1338
+ setInputValues(
1339
+ formattedClamped,
1340
+ formatCurrencyDisplay(formattedClamped)
1341
+ );
1329
1342
  if (onChange) {
1330
1343
  const syntheticEvent = __spreadProps(__spreadValues({}, e), {
1331
1344
  target: __spreadProps(__spreadValues({}, e.target), { value: clamped.toString() })
@@ -1334,8 +1347,7 @@ var Input = (_a) => {
1334
1347
  }
1335
1348
  return;
1336
1349
  }
1337
- setInternalValue(raw);
1338
- setDisplayValue(formatCurrencyDisplay(raw));
1350
+ setInputValues(raw, formatCurrencyDisplay(raw));
1339
1351
  if (!isNaN(asNumber) && onChange) {
1340
1352
  const syntheticEvent = __spreadProps(__spreadValues({}, e), {
1341
1353
  target: __spreadProps(__spreadValues({}, e.target), { value: asNumber.toString() })
@@ -1352,8 +1364,7 @@ var Input = (_a) => {
1352
1364
  clamped.toString(),
1353
1365
  decimals != null ? decimals : 0
1354
1366
  );
1355
- setInternalValue(formattedClamped);
1356
- setDisplayValue(formattedClamped);
1367
+ setInputValues(formattedClamped, formattedClamped);
1357
1368
  if (typeof onChange === "function") {
1358
1369
  const syntheticEvent = __spreadProps(__spreadValues({}, e), {
1359
1370
  target: __spreadProps(__spreadValues({}, e.target), { value: clamped.toString() })
@@ -1362,15 +1373,13 @@ var Input = (_a) => {
1362
1373
  }
1363
1374
  return;
1364
1375
  }
1365
- setInternalValue(rawValue);
1366
- setDisplayValue(rawValue);
1376
+ setInputValues(rawValue, rawValue);
1367
1377
  if (typeof onChange === "function") {
1368
1378
  onChange(e);
1369
1379
  }
1370
1380
  return;
1371
1381
  }
1372
- setInternalValue(rawValue);
1373
- setDisplayValue(rawValue);
1382
+ setInputValues(rawValue, rawValue);
1374
1383
  if (typeof onChange === "function") {
1375
1384
  onChange(e);
1376
1385
  }
@@ -1383,8 +1392,7 @@ var Input = (_a) => {
1383
1392
  }
1384
1393
  if (variant === "currency") {
1385
1394
  const formatted = formatDecimalValue(internalValue, decimals != null ? decimals : 2);
1386
- setInternalValue(formatted);
1387
- setDisplayValue(formatCurrencyDisplay(formatted));
1395
+ setInputValues(formatted, formatCurrencyDisplay(formatted));
1388
1396
  const asNumber = Number(formatted);
1389
1397
  if (!isNaN(asNumber) && onChange) {
1390
1398
  const syntheticEvent = __spreadProps(__spreadValues({}, e), {
@@ -1395,8 +1403,7 @@ var Input = (_a) => {
1395
1403
  } else if (variant === "uom") {
1396
1404
  if (currencyFormat) {
1397
1405
  const formatted = formatDecimalValue(internalValue, decimals != null ? decimals : 2);
1398
- setInternalValue(formatted);
1399
- setDisplayValue(formatCurrencyDisplay(formatted));
1406
+ setInputValues(formatted, formatCurrencyDisplay(formatted));
1400
1407
  const asNumber = Number(formatted);
1401
1408
  if (!isNaN(asNumber) && onChange) {
1402
1409
  const syntheticEvent = __spreadProps(__spreadValues({}, e), {
@@ -7,14 +7,14 @@ import {
7
7
  } from "../chunk-7WDYXRMW.js";
8
8
  import {
9
9
  Search
10
- } from "../chunk-MOBFZ672.js";
11
- import "../chunk-PABII472.js";
10
+ } from "../chunk-3DJWSTPS.js";
11
+ import "../chunk-H5SHC4XZ.js";
12
12
  import {
13
13
  Label
14
14
  } from "../chunk-4UGMSWWA.js";
15
15
  import {
16
16
  Checkbox
17
- } from "../chunk-I3W5K76C.js";
17
+ } from "../chunk-RN465M4S.js";
18
18
  import "../chunk-5UH6QUFB.js";
19
19
  import "../chunk-J4IMVWT5.js";
20
20
  import "../chunk-SBRRNFOP.js";
@@ -378,6 +378,14 @@ Paragraph.displayName = "Paragraph";
378
378
 
379
379
  // src/components/Input.tsx
380
380
  var import_jsx_runtime4 = require("react/jsx-runtime");
381
+ function hasEquivalentNumericValue(currentValue, nextValue) {
382
+ if (!currentValue || !nextValue) {
383
+ return false;
384
+ }
385
+ const currentNumericValue = Number(currentValue.replace(/,/g, ""));
386
+ const nextNumericValue = Number(nextValue.replace(/,/g, ""));
387
+ return !Number.isNaN(currentNumericValue) && !Number.isNaN(nextNumericValue) && currentNumericValue === nextNumericValue;
388
+ }
381
389
  var InputBase = (_a) => {
382
390
  var _b = _a, {
383
391
  id,
@@ -600,28 +608,33 @@ var Input = (_a) => {
600
608
  const [internalValue, setInternalValue] = (0, import_react.useState)("");
601
609
  const [displayValue, setDisplayValue] = (0, import_react.useState)("");
602
610
  const [isFocused, setIsFocused] = (0, import_react.useState)(false);
611
+ const internalValueRef = (0, import_react.useRef)("");
612
+ const setInputValues = (nextInternalValue, nextDisplayValue) => {
613
+ internalValueRef.current = nextInternalValue;
614
+ setInternalValue(nextInternalValue);
615
+ setDisplayValue(nextDisplayValue);
616
+ };
603
617
  (0, import_react.useEffect)(() => {
604
618
  var _a2;
605
619
  const stringValue = (_a2 = propValue == null ? void 0 : propValue.toString()) != null ? _a2 : "";
606
620
  const shouldUseThousandsFormatting = variant === "currency" || variant === "uom" && currencyFormat;
607
621
  if (!stringValue) {
608
- setInternalValue("");
609
- setDisplayValue("");
622
+ setInputValues("", "");
610
623
  return;
611
624
  }
612
625
  if (!shouldUseThousandsFormatting) {
613
- setInternalValue(stringValue);
614
- setDisplayValue(stringValue);
626
+ setInputValues(stringValue, stringValue);
627
+ return;
628
+ }
629
+ if (isFocused && hasEquivalentNumericValue(internalValueRef.current, stringValue)) {
615
630
  return;
616
631
  }
617
- const formatted = formatDecimalValue(stringValue, decimals != null ? decimals : 2);
618
632
  if (formatOnBlur && isFocused) {
619
- setInternalValue(stringValue);
620
- setDisplayValue(stringValue);
633
+ setInputValues(stringValue, stringValue);
621
634
  return;
622
635
  }
623
- setInternalValue(formatted);
624
- setDisplayValue(formatCurrencyDisplay(formatted));
636
+ const formatted = formatDecimalValue(stringValue, decimals != null ? decimals : 2);
637
+ setInputValues(formatted, formatCurrencyDisplay(formatted));
625
638
  }, [propValue, variant, currencyFormat, decimals, formatOnBlur, isFocused]);
626
639
  const getInputProps = () => {
627
640
  var _a2;
@@ -643,6 +656,7 @@ var Input = (_a) => {
643
656
  return __spreadProps(__spreadValues({}, baseProps), {
644
657
  align: "right",
645
658
  type: "text",
659
+ inputMode: "decimal",
646
660
  value: displayValue
647
661
  });
648
662
  case "percentage":
@@ -650,6 +664,7 @@ var Input = (_a) => {
650
664
  return __spreadProps(__spreadValues({}, baseProps), {
651
665
  type: currencyFormat ? "text" : "number",
652
666
  align: "right",
667
+ inputMode: currencyFormat ? "decimal" : void 0,
653
668
  value: currencyFormat ? displayValue : propValue
654
669
  });
655
670
  default:
@@ -696,8 +711,7 @@ var Input = (_a) => {
696
711
  }
697
712
  };
698
713
  const handleSearchReset = () => {
699
- setInternalValue("");
700
- setDisplayValue("");
714
+ setInputValues("", "");
701
715
  if (onChange) {
702
716
  const syntheticEvent = {
703
717
  target: { value: "" }
@@ -714,8 +728,7 @@ var Input = (_a) => {
714
728
  if (variant === "currency") {
715
729
  const raw = rawValue.replace(/,/g, "");
716
730
  if (raw === "") {
717
- setInternalValue("");
718
- setDisplayValue("");
731
+ setInputValues("", "");
719
732
  if (onChange) {
720
733
  const syntheticEvent = __spreadProps(__spreadValues({}, e), {
721
734
  target: __spreadProps(__spreadValues({}, e.target), { value: "" })
@@ -736,8 +749,8 @@ var Input = (_a) => {
736
749
  clamped.toString(),
737
750
  currentDecimals
738
751
  );
739
- setInternalValue(formattedClamped);
740
- setDisplayValue(
752
+ setInputValues(
753
+ formattedClamped,
741
754
  formatOnBlur ? formattedClamped : formatCurrencyDisplay(formattedClamped)
742
755
  );
743
756
  if (onChange) {
@@ -748,8 +761,7 @@ var Input = (_a) => {
748
761
  }
749
762
  return;
750
763
  }
751
- setInternalValue(raw);
752
- setDisplayValue(formatOnBlur ? raw : formatCurrencyDisplay(raw));
764
+ setInputValues(raw, formatOnBlur ? raw : formatCurrencyDisplay(raw));
753
765
  if (!isNaN(asNumber) && onChange) {
754
766
  const syntheticEvent = __spreadProps(__spreadValues({}, e), {
755
767
  target: __spreadProps(__spreadValues({}, e.target), { value: asNumber.toString() })
@@ -761,8 +773,7 @@ var Input = (_a) => {
761
773
  if (variant === "uom" && currencyFormat) {
762
774
  const raw = rawValue.replace(/,/g, "");
763
775
  if (raw === "") {
764
- setInternalValue("");
765
- setDisplayValue("");
776
+ setInputValues("", "");
766
777
  if (onChange) {
767
778
  const syntheticEvent = __spreadProps(__spreadValues({}, e), {
768
779
  target: __spreadProps(__spreadValues({}, e.target), { value: "" })
@@ -783,8 +794,10 @@ var Input = (_a) => {
783
794
  clamped.toString(),
784
795
  currentDecimals
785
796
  );
786
- setInternalValue(formattedClamped);
787
- setDisplayValue(formatCurrencyDisplay(formattedClamped));
797
+ setInputValues(
798
+ formattedClamped,
799
+ formatCurrencyDisplay(formattedClamped)
800
+ );
788
801
  if (onChange) {
789
802
  const syntheticEvent = __spreadProps(__spreadValues({}, e), {
790
803
  target: __spreadProps(__spreadValues({}, e.target), { value: clamped.toString() })
@@ -793,8 +806,7 @@ var Input = (_a) => {
793
806
  }
794
807
  return;
795
808
  }
796
- setInternalValue(raw);
797
- setDisplayValue(formatCurrencyDisplay(raw));
809
+ setInputValues(raw, formatCurrencyDisplay(raw));
798
810
  if (!isNaN(asNumber) && onChange) {
799
811
  const syntheticEvent = __spreadProps(__spreadValues({}, e), {
800
812
  target: __spreadProps(__spreadValues({}, e.target), { value: asNumber.toString() })
@@ -811,8 +823,7 @@ var Input = (_a) => {
811
823
  clamped.toString(),
812
824
  decimals != null ? decimals : 0
813
825
  );
814
- setInternalValue(formattedClamped);
815
- setDisplayValue(formattedClamped);
826
+ setInputValues(formattedClamped, formattedClamped);
816
827
  if (typeof onChange === "function") {
817
828
  const syntheticEvent = __spreadProps(__spreadValues({}, e), {
818
829
  target: __spreadProps(__spreadValues({}, e.target), { value: clamped.toString() })
@@ -821,15 +832,13 @@ var Input = (_a) => {
821
832
  }
822
833
  return;
823
834
  }
824
- setInternalValue(rawValue);
825
- setDisplayValue(rawValue);
835
+ setInputValues(rawValue, rawValue);
826
836
  if (typeof onChange === "function") {
827
837
  onChange(e);
828
838
  }
829
839
  return;
830
840
  }
831
- setInternalValue(rawValue);
832
- setDisplayValue(rawValue);
841
+ setInputValues(rawValue, rawValue);
833
842
  if (typeof onChange === "function") {
834
843
  onChange(e);
835
844
  }
@@ -842,8 +851,7 @@ var Input = (_a) => {
842
851
  }
843
852
  if (variant === "currency") {
844
853
  const formatted = formatDecimalValue(internalValue, decimals != null ? decimals : 2);
845
- setInternalValue(formatted);
846
- setDisplayValue(formatCurrencyDisplay(formatted));
854
+ setInputValues(formatted, formatCurrencyDisplay(formatted));
847
855
  const asNumber = Number(formatted);
848
856
  if (!isNaN(asNumber) && onChange) {
849
857
  const syntheticEvent = __spreadProps(__spreadValues({}, e), {
@@ -854,8 +862,7 @@ var Input = (_a) => {
854
862
  } else if (variant === "uom") {
855
863
  if (currencyFormat) {
856
864
  const formatted = formatDecimalValue(internalValue, decimals != null ? decimals : 2);
857
- setInternalValue(formatted);
858
- setDisplayValue(formatCurrencyDisplay(formatted));
865
+ setInputValues(formatted, formatCurrencyDisplay(formatted));
859
866
  const asNumber = Number(formatted);
860
867
  if (!isNaN(asNumber) && onChange) {
861
868
  const syntheticEvent = __spreadProps(__spreadValues({}, e), {
@@ -6,7 +6,7 @@ import {
6
6
  InputBase,
7
7
  Percentage,
8
8
  UOM
9
- } from "../chunk-PABII472.js";
9
+ } from "../chunk-H5SHC4XZ.js";
10
10
  import "../chunk-4UGMSWWA.js";
11
11
  import "../chunk-5UH6QUFB.js";
12
12
  import "../chunk-7MBRCM3M.js";
@@ -640,7 +640,7 @@ var Checkbox = (_a) => {
640
640
  as: "span",
641
641
  padded: true,
642
642
  className: (0, import_clsx5.default)(
643
- "text-nowrap",
643
+ !(paragraphClassName == null ? void 0 : paragraphClassName.includes("text-wrap")) && "text-nowrap",
644
644
  disabled && !error && "!text-text-primary-disabled",
645
645
  error && !disabled && !readOnly && "!text-text-primary-error",
646
646
  paragraphClassName
@@ -2327,6 +2327,9 @@
2327
2327
  .text-nowrap {
2328
2328
  text-wrap: nowrap;
2329
2329
  }
2330
+ .text-wrap {
2331
+ text-wrap: wrap;
2332
+ }
2330
2333
  .text-ellipsis {
2331
2334
  text-overflow: ellipsis;
2332
2335
  }
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  ColumnList
3
- } from "../../chunk-MAEVKATN.js";
4
- import "../../chunk-OG2PGA3X.js";
3
+ } from "../../chunk-HRPW6VXG.js";
4
+ import "../../chunk-JYECZBCJ.js";
5
5
  import "../../chunk-5IFPG6TS.js";
6
6
  import "../../chunk-7YA3TF73.js";
7
7
  import "../../chunk-AJ5M6MVX.js";
8
- import "../../chunk-I3W5K76C.js";
8
+ import "../../chunk-RN465M4S.js";
9
9
  import "../../chunk-VXWSAIB5.js";
10
10
  import "../../chunk-TBZ243DS.js";
11
11
  import "../../chunk-5UH6QUFB.js";