@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
  Input
3
- } from "./chunk-PABII472.js";
3
+ } from "./chunk-H5SHC4XZ.js";
4
4
  import {
5
5
  __objRest,
6
6
  __spreadValues
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  ColumnList,
9
9
  no_results_image_default
10
- } from "./chunk-MAEVKATN.js";
10
+ } from "./chunk-HRPW6VXG.js";
11
11
  import {
12
12
  useGridContext
13
13
  } from "./chunk-5IFPG6TS.js";
@@ -16,7 +16,7 @@ import {
16
16
  } from "./chunk-EWGHVZL5.js";
17
17
  import {
18
18
  Select
19
- } from "./chunk-EA6Y4HXQ.js";
19
+ } from "./chunk-4FUZDLWX.js";
20
20
  import {
21
21
  Tooltip
22
22
  } from "./chunk-QG6NWMGA.js";
@@ -25,7 +25,7 @@ import {
25
25
  DataGridCell,
26
26
  DragAlongCell,
27
27
  DraggableCellHeader
28
- } from "./chunk-PBJ2MEHM.js";
28
+ } from "./chunk-QW4AJ5FK.js";
29
29
  import {
30
30
  MenuOption
31
31
  } from "./chunk-3JUIYULW.js";
@@ -34,17 +34,17 @@ import {
34
34
  } from "./chunk-OM7QLLI2.js";
35
35
  import {
36
36
  Search
37
- } from "./chunk-MOBFZ672.js";
37
+ } from "./chunk-3DJWSTPS.js";
38
38
  import {
39
39
  Input,
40
40
  InputBase
41
- } from "./chunk-PABII472.js";
41
+ } from "./chunk-H5SHC4XZ.js";
42
42
  import {
43
43
  Label
44
44
  } from "./chunk-4UGMSWWA.js";
45
45
  import {
46
46
  Checkbox
47
- } from "./chunk-I3W5K76C.js";
47
+ } from "./chunk-RN465M4S.js";
48
48
  import {
49
49
  useInfiniteScroll,
50
50
  useTableLayout
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  InputBase
3
- } from "./chunk-PABII472.js";
3
+ } from "./chunk-H5SHC4XZ.js";
4
4
  import {
5
5
  Icon
6
6
  } from "./chunk-NKUETCDA.js";
@@ -34,6 +34,14 @@ import {
34
34
  } from "react";
35
35
  import clsx from "clsx";
36
36
  import { jsx, jsxs } from "react/jsx-runtime";
37
+ function hasEquivalentNumericValue(currentValue, nextValue) {
38
+ if (!currentValue || !nextValue) {
39
+ return false;
40
+ }
41
+ const currentNumericValue = Number(currentValue.replace(/,/g, ""));
42
+ const nextNumericValue = Number(nextValue.replace(/,/g, ""));
43
+ return !Number.isNaN(currentNumericValue) && !Number.isNaN(nextNumericValue) && currentNumericValue === nextNumericValue;
44
+ }
37
45
  var InputBase = (_a) => {
38
46
  var _b = _a, {
39
47
  id,
@@ -256,28 +264,33 @@ var Input = (_a) => {
256
264
  const [internalValue, setInternalValue] = useState("");
257
265
  const [displayValue, setDisplayValue] = useState("");
258
266
  const [isFocused, setIsFocused] = useState(false);
267
+ const internalValueRef = useRef("");
268
+ const setInputValues = (nextInternalValue, nextDisplayValue) => {
269
+ internalValueRef.current = nextInternalValue;
270
+ setInternalValue(nextInternalValue);
271
+ setDisplayValue(nextDisplayValue);
272
+ };
259
273
  useEffect(() => {
260
274
  var _a2;
261
275
  const stringValue = (_a2 = propValue == null ? void 0 : propValue.toString()) != null ? _a2 : "";
262
276
  const shouldUseThousandsFormatting = variant === "currency" || variant === "uom" && currencyFormat;
263
277
  if (!stringValue) {
264
- setInternalValue("");
265
- setDisplayValue("");
278
+ setInputValues("", "");
266
279
  return;
267
280
  }
268
281
  if (!shouldUseThousandsFormatting) {
269
- setInternalValue(stringValue);
270
- setDisplayValue(stringValue);
282
+ setInputValues(stringValue, stringValue);
283
+ return;
284
+ }
285
+ if (isFocused && hasEquivalentNumericValue(internalValueRef.current, stringValue)) {
271
286
  return;
272
287
  }
273
- const formatted = formatDecimalValue(stringValue, decimals != null ? decimals : 2);
274
288
  if (formatOnBlur && isFocused) {
275
- setInternalValue(stringValue);
276
- setDisplayValue(stringValue);
289
+ setInputValues(stringValue, stringValue);
277
290
  return;
278
291
  }
279
- setInternalValue(formatted);
280
- setDisplayValue(formatCurrencyDisplay(formatted));
292
+ const formatted = formatDecimalValue(stringValue, decimals != null ? decimals : 2);
293
+ setInputValues(formatted, formatCurrencyDisplay(formatted));
281
294
  }, [propValue, variant, currencyFormat, decimals, formatOnBlur, isFocused]);
282
295
  const getInputProps = () => {
283
296
  var _a2;
@@ -299,6 +312,7 @@ var Input = (_a) => {
299
312
  return __spreadProps(__spreadValues({}, baseProps), {
300
313
  align: "right",
301
314
  type: "text",
315
+ inputMode: "decimal",
302
316
  value: displayValue
303
317
  });
304
318
  case "percentage":
@@ -306,6 +320,7 @@ var Input = (_a) => {
306
320
  return __spreadProps(__spreadValues({}, baseProps), {
307
321
  type: currencyFormat ? "text" : "number",
308
322
  align: "right",
323
+ inputMode: currencyFormat ? "decimal" : void 0,
309
324
  value: currencyFormat ? displayValue : propValue
310
325
  });
311
326
  default:
@@ -352,8 +367,7 @@ var Input = (_a) => {
352
367
  }
353
368
  };
354
369
  const handleSearchReset = () => {
355
- setInternalValue("");
356
- setDisplayValue("");
370
+ setInputValues("", "");
357
371
  if (onChange) {
358
372
  const syntheticEvent = {
359
373
  target: { value: "" }
@@ -370,8 +384,7 @@ var Input = (_a) => {
370
384
  if (variant === "currency") {
371
385
  const raw = rawValue.replace(/,/g, "");
372
386
  if (raw === "") {
373
- setInternalValue("");
374
- setDisplayValue("");
387
+ setInputValues("", "");
375
388
  if (onChange) {
376
389
  const syntheticEvent = __spreadProps(__spreadValues({}, e), {
377
390
  target: __spreadProps(__spreadValues({}, e.target), { value: "" })
@@ -392,8 +405,8 @@ var Input = (_a) => {
392
405
  clamped.toString(),
393
406
  currentDecimals
394
407
  );
395
- setInternalValue(formattedClamped);
396
- setDisplayValue(
408
+ setInputValues(
409
+ formattedClamped,
397
410
  formatOnBlur ? formattedClamped : formatCurrencyDisplay(formattedClamped)
398
411
  );
399
412
  if (onChange) {
@@ -404,8 +417,7 @@ var Input = (_a) => {
404
417
  }
405
418
  return;
406
419
  }
407
- setInternalValue(raw);
408
- setDisplayValue(formatOnBlur ? raw : formatCurrencyDisplay(raw));
420
+ setInputValues(raw, formatOnBlur ? raw : formatCurrencyDisplay(raw));
409
421
  if (!isNaN(asNumber) && onChange) {
410
422
  const syntheticEvent = __spreadProps(__spreadValues({}, e), {
411
423
  target: __spreadProps(__spreadValues({}, e.target), { value: asNumber.toString() })
@@ -417,8 +429,7 @@ var Input = (_a) => {
417
429
  if (variant === "uom" && currencyFormat) {
418
430
  const raw = rawValue.replace(/,/g, "");
419
431
  if (raw === "") {
420
- setInternalValue("");
421
- setDisplayValue("");
432
+ setInputValues("", "");
422
433
  if (onChange) {
423
434
  const syntheticEvent = __spreadProps(__spreadValues({}, e), {
424
435
  target: __spreadProps(__spreadValues({}, e.target), { value: "" })
@@ -439,8 +450,10 @@ var Input = (_a) => {
439
450
  clamped.toString(),
440
451
  currentDecimals
441
452
  );
442
- setInternalValue(formattedClamped);
443
- setDisplayValue(formatCurrencyDisplay(formattedClamped));
453
+ setInputValues(
454
+ formattedClamped,
455
+ formatCurrencyDisplay(formattedClamped)
456
+ );
444
457
  if (onChange) {
445
458
  const syntheticEvent = __spreadProps(__spreadValues({}, e), {
446
459
  target: __spreadProps(__spreadValues({}, e.target), { value: clamped.toString() })
@@ -449,8 +462,7 @@ var Input = (_a) => {
449
462
  }
450
463
  return;
451
464
  }
452
- setInternalValue(raw);
453
- setDisplayValue(formatCurrencyDisplay(raw));
465
+ setInputValues(raw, formatCurrencyDisplay(raw));
454
466
  if (!isNaN(asNumber) && onChange) {
455
467
  const syntheticEvent = __spreadProps(__spreadValues({}, e), {
456
468
  target: __spreadProps(__spreadValues({}, e.target), { value: asNumber.toString() })
@@ -467,8 +479,7 @@ var Input = (_a) => {
467
479
  clamped.toString(),
468
480
  decimals != null ? decimals : 0
469
481
  );
470
- setInternalValue(formattedClamped);
471
- setDisplayValue(formattedClamped);
482
+ setInputValues(formattedClamped, formattedClamped);
472
483
  if (typeof onChange === "function") {
473
484
  const syntheticEvent = __spreadProps(__spreadValues({}, e), {
474
485
  target: __spreadProps(__spreadValues({}, e.target), { value: clamped.toString() })
@@ -477,15 +488,13 @@ var Input = (_a) => {
477
488
  }
478
489
  return;
479
490
  }
480
- setInternalValue(rawValue);
481
- setDisplayValue(rawValue);
491
+ setInputValues(rawValue, rawValue);
482
492
  if (typeof onChange === "function") {
483
493
  onChange(e);
484
494
  }
485
495
  return;
486
496
  }
487
- setInternalValue(rawValue);
488
- setDisplayValue(rawValue);
497
+ setInputValues(rawValue, rawValue);
489
498
  if (typeof onChange === "function") {
490
499
  onChange(e);
491
500
  }
@@ -498,8 +507,7 @@ var Input = (_a) => {
498
507
  }
499
508
  if (variant === "currency") {
500
509
  const formatted = formatDecimalValue(internalValue, decimals != null ? decimals : 2);
501
- setInternalValue(formatted);
502
- setDisplayValue(formatCurrencyDisplay(formatted));
510
+ setInputValues(formatted, formatCurrencyDisplay(formatted));
503
511
  const asNumber = Number(formatted);
504
512
  if (!isNaN(asNumber) && onChange) {
505
513
  const syntheticEvent = __spreadProps(__spreadValues({}, e), {
@@ -510,8 +518,7 @@ var Input = (_a) => {
510
518
  } else if (variant === "uom") {
511
519
  if (currencyFormat) {
512
520
  const formatted = formatDecimalValue(internalValue, decimals != null ? decimals : 2);
513
- setInternalValue(formatted);
514
- setDisplayValue(formatCurrencyDisplay(formatted));
521
+ setInputValues(formatted, formatCurrencyDisplay(formatted));
515
522
  const asNumber = Number(formatted);
516
523
  if (!isNaN(asNumber) && onChange) {
517
524
  const syntheticEvent = __spreadProps(__spreadValues({}, e), {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  MobileDataGridCard
3
- } from "./chunk-OG2PGA3X.js";
3
+ } from "./chunk-JYECZBCJ.js";
4
4
  import {
5
5
  useGridContext
6
6
  } from "./chunk-5IFPG6TS.js";
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-7YA3TF73.js";
7
7
  import {
8
8
  Checkbox
9
- } from "./chunk-I3W5K76C.js";
9
+ } from "./chunk-RN465M4S.js";
10
10
  import {
11
11
  Subheader
12
12
  } from "./chunk-7Z3WINQ3.js";
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-PE3EZP56.js";
10
10
  import {
11
11
  Search
12
- } from "./chunk-MOBFZ672.js";
12
+ } from "./chunk-3DJWSTPS.js";
13
13
  import {
14
14
  CSS
15
15
  } from "./chunk-WVUIIBRR.js";
@@ -117,7 +117,7 @@ var Checkbox = (_a) => {
117
117
  as: "span",
118
118
  padded: true,
119
119
  className: clsx(
120
- "text-nowrap",
120
+ !(paragraphClassName == null ? void 0 : paragraphClassName.includes("text-wrap")) && "text-nowrap",
121
121
  disabled && !error && "!text-text-primary-disabled",
122
122
  error && !disabled && !readOnly && "!text-text-primary-error",
123
123
  paragraphClassName
@@ -1917,6 +1917,14 @@ var import_react11 = require("react");
1917
1917
  var import_react10 = require("react");
1918
1918
  var import_clsx8 = __toESM(require("clsx"), 1);
1919
1919
  var import_jsx_runtime7 = require("react/jsx-runtime");
1920
+ function hasEquivalentNumericValue(currentValue, nextValue) {
1921
+ if (!currentValue || !nextValue) {
1922
+ return false;
1923
+ }
1924
+ const currentNumericValue = Number(currentValue.replace(/,/g, ""));
1925
+ const nextNumericValue = Number(nextValue.replace(/,/g, ""));
1926
+ return !Number.isNaN(currentNumericValue) && !Number.isNaN(nextNumericValue) && currentNumericValue === nextNumericValue;
1927
+ }
1920
1928
  var InputBase = (_a) => {
1921
1929
  var _b = _a, {
1922
1930
  id,
@@ -2139,28 +2147,33 @@ var Input = (_a) => {
2139
2147
  const [internalValue, setInternalValue] = (0, import_react10.useState)("");
2140
2148
  const [displayValue, setDisplayValue] = (0, import_react10.useState)("");
2141
2149
  const [isFocused, setIsFocused] = (0, import_react10.useState)(false);
2150
+ const internalValueRef = (0, import_react10.useRef)("");
2151
+ const setInputValues = (nextInternalValue, nextDisplayValue) => {
2152
+ internalValueRef.current = nextInternalValue;
2153
+ setInternalValue(nextInternalValue);
2154
+ setDisplayValue(nextDisplayValue);
2155
+ };
2142
2156
  (0, import_react10.useEffect)(() => {
2143
2157
  var _a2;
2144
2158
  const stringValue = (_a2 = propValue == null ? void 0 : propValue.toString()) != null ? _a2 : "";
2145
2159
  const shouldUseThousandsFormatting = variant === "currency" || variant === "uom" && currencyFormat;
2146
2160
  if (!stringValue) {
2147
- setInternalValue("");
2148
- setDisplayValue("");
2161
+ setInputValues("", "");
2149
2162
  return;
2150
2163
  }
2151
2164
  if (!shouldUseThousandsFormatting) {
2152
- setInternalValue(stringValue);
2153
- setDisplayValue(stringValue);
2165
+ setInputValues(stringValue, stringValue);
2166
+ return;
2167
+ }
2168
+ if (isFocused && hasEquivalentNumericValue(internalValueRef.current, stringValue)) {
2154
2169
  return;
2155
2170
  }
2156
- const formatted = formatDecimalValue(stringValue, decimals != null ? decimals : 2);
2157
2171
  if (formatOnBlur && isFocused) {
2158
- setInternalValue(stringValue);
2159
- setDisplayValue(stringValue);
2172
+ setInputValues(stringValue, stringValue);
2160
2173
  return;
2161
2174
  }
2162
- setInternalValue(formatted);
2163
- setDisplayValue(formatCurrencyDisplay(formatted));
2175
+ const formatted = formatDecimalValue(stringValue, decimals != null ? decimals : 2);
2176
+ setInputValues(formatted, formatCurrencyDisplay(formatted));
2164
2177
  }, [propValue, variant, currencyFormat, decimals, formatOnBlur, isFocused]);
2165
2178
  const getInputProps = () => {
2166
2179
  var _a2;
@@ -2182,6 +2195,7 @@ var Input = (_a) => {
2182
2195
  return __spreadProps(__spreadValues({}, baseProps), {
2183
2196
  align: "right",
2184
2197
  type: "text",
2198
+ inputMode: "decimal",
2185
2199
  value: displayValue
2186
2200
  });
2187
2201
  case "percentage":
@@ -2189,6 +2203,7 @@ var Input = (_a) => {
2189
2203
  return __spreadProps(__spreadValues({}, baseProps), {
2190
2204
  type: currencyFormat ? "text" : "number",
2191
2205
  align: "right",
2206
+ inputMode: currencyFormat ? "decimal" : void 0,
2192
2207
  value: currencyFormat ? displayValue : propValue
2193
2208
  });
2194
2209
  default:
@@ -2235,8 +2250,7 @@ var Input = (_a) => {
2235
2250
  }
2236
2251
  };
2237
2252
  const handleSearchReset = () => {
2238
- setInternalValue("");
2239
- setDisplayValue("");
2253
+ setInputValues("", "");
2240
2254
  if (onChange) {
2241
2255
  const syntheticEvent = {
2242
2256
  target: { value: "" }
@@ -2253,8 +2267,7 @@ var Input = (_a) => {
2253
2267
  if (variant === "currency") {
2254
2268
  const raw = rawValue.replace(/,/g, "");
2255
2269
  if (raw === "") {
2256
- setInternalValue("");
2257
- setDisplayValue("");
2270
+ setInputValues("", "");
2258
2271
  if (onChange) {
2259
2272
  const syntheticEvent = __spreadProps(__spreadValues({}, e), {
2260
2273
  target: __spreadProps(__spreadValues({}, e.target), { value: "" })
@@ -2275,8 +2288,8 @@ var Input = (_a) => {
2275
2288
  clamped.toString(),
2276
2289
  currentDecimals
2277
2290
  );
2278
- setInternalValue(formattedClamped);
2279
- setDisplayValue(
2291
+ setInputValues(
2292
+ formattedClamped,
2280
2293
  formatOnBlur ? formattedClamped : formatCurrencyDisplay(formattedClamped)
2281
2294
  );
2282
2295
  if (onChange) {
@@ -2287,8 +2300,7 @@ var Input = (_a) => {
2287
2300
  }
2288
2301
  return;
2289
2302
  }
2290
- setInternalValue(raw);
2291
- setDisplayValue(formatOnBlur ? raw : formatCurrencyDisplay(raw));
2303
+ setInputValues(raw, formatOnBlur ? raw : formatCurrencyDisplay(raw));
2292
2304
  if (!isNaN(asNumber) && onChange) {
2293
2305
  const syntheticEvent = __spreadProps(__spreadValues({}, e), {
2294
2306
  target: __spreadProps(__spreadValues({}, e.target), { value: asNumber.toString() })
@@ -2300,8 +2312,7 @@ var Input = (_a) => {
2300
2312
  if (variant === "uom" && currencyFormat) {
2301
2313
  const raw = rawValue.replace(/,/g, "");
2302
2314
  if (raw === "") {
2303
- setInternalValue("");
2304
- setDisplayValue("");
2315
+ setInputValues("", "");
2305
2316
  if (onChange) {
2306
2317
  const syntheticEvent = __spreadProps(__spreadValues({}, e), {
2307
2318
  target: __spreadProps(__spreadValues({}, e.target), { value: "" })
@@ -2322,8 +2333,10 @@ var Input = (_a) => {
2322
2333
  clamped.toString(),
2323
2334
  currentDecimals
2324
2335
  );
2325
- setInternalValue(formattedClamped);
2326
- setDisplayValue(formatCurrencyDisplay(formattedClamped));
2336
+ setInputValues(
2337
+ formattedClamped,
2338
+ formatCurrencyDisplay(formattedClamped)
2339
+ );
2327
2340
  if (onChange) {
2328
2341
  const syntheticEvent = __spreadProps(__spreadValues({}, e), {
2329
2342
  target: __spreadProps(__spreadValues({}, e.target), { value: clamped.toString() })
@@ -2332,8 +2345,7 @@ var Input = (_a) => {
2332
2345
  }
2333
2346
  return;
2334
2347
  }
2335
- setInternalValue(raw);
2336
- setDisplayValue(formatCurrencyDisplay(raw));
2348
+ setInputValues(raw, formatCurrencyDisplay(raw));
2337
2349
  if (!isNaN(asNumber) && onChange) {
2338
2350
  const syntheticEvent = __spreadProps(__spreadValues({}, e), {
2339
2351
  target: __spreadProps(__spreadValues({}, e.target), { value: asNumber.toString() })
@@ -2350,8 +2362,7 @@ var Input = (_a) => {
2350
2362
  clamped.toString(),
2351
2363
  decimals != null ? decimals : 0
2352
2364
  );
2353
- setInternalValue(formattedClamped);
2354
- setDisplayValue(formattedClamped);
2365
+ setInputValues(formattedClamped, formattedClamped);
2355
2366
  if (typeof onChange === "function") {
2356
2367
  const syntheticEvent = __spreadProps(__spreadValues({}, e), {
2357
2368
  target: __spreadProps(__spreadValues({}, e.target), { value: clamped.toString() })
@@ -2360,15 +2371,13 @@ var Input = (_a) => {
2360
2371
  }
2361
2372
  return;
2362
2373
  }
2363
- setInternalValue(rawValue);
2364
- setDisplayValue(rawValue);
2374
+ setInputValues(rawValue, rawValue);
2365
2375
  if (typeof onChange === "function") {
2366
2376
  onChange(e);
2367
2377
  }
2368
2378
  return;
2369
2379
  }
2370
- setInternalValue(rawValue);
2371
- setDisplayValue(rawValue);
2380
+ setInputValues(rawValue, rawValue);
2372
2381
  if (typeof onChange === "function") {
2373
2382
  onChange(e);
2374
2383
  }
@@ -2381,8 +2390,7 @@ var Input = (_a) => {
2381
2390
  }
2382
2391
  if (variant === "currency") {
2383
2392
  const formatted = formatDecimalValue(internalValue, decimals != null ? decimals : 2);
2384
- setInternalValue(formatted);
2385
- setDisplayValue(formatCurrencyDisplay(formatted));
2393
+ setInputValues(formatted, formatCurrencyDisplay(formatted));
2386
2394
  const asNumber = Number(formatted);
2387
2395
  if (!isNaN(asNumber) && onChange) {
2388
2396
  const syntheticEvent = __spreadProps(__spreadValues({}, e), {
@@ -2393,8 +2401,7 @@ var Input = (_a) => {
2393
2401
  } else if (variant === "uom") {
2394
2402
  if (currencyFormat) {
2395
2403
  const formatted = formatDecimalValue(internalValue, decimals != null ? decimals : 2);
2396
- setInternalValue(formatted);
2397
- setDisplayValue(formatCurrencyDisplay(formatted));
2404
+ setInputValues(formatted, formatCurrencyDisplay(formatted));
2398
2405
  const asNumber = Number(formatted);
2399
2406
  if (!isNaN(asNumber) && onChange) {
2400
2407
  const syntheticEvent = __spreadProps(__spreadValues({}, e), {
@@ -4420,7 +4427,7 @@ var Checkbox = (_a) => {
4420
4427
  as: "span",
4421
4428
  padded: true,
4422
4429
  className: (0, import_clsx17.default)(
4423
- "text-nowrap",
4430
+ !(paragraphClassName == null ? void 0 : paragraphClassName.includes("text-wrap")) && "text-nowrap",
4424
4431
  disabled && !error && "!text-text-primary-disabled",
4425
4432
  error && !disabled && !readOnly && "!text-text-primary-error",
4426
4433
  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
  }
@@ -2,7 +2,7 @@ import {
2
2
  CalendarRange,
3
3
  CalendarRange_default,
4
4
  isWeekend
5
- } from "../chunk-5UPADXVU.js";
5
+ } from "../chunk-3V5OMIYB.js";
6
6
  import "../chunk-3UPUZBP5.js";
7
7
  import "../chunk-7ZJIGTFN.js";
8
8
  import "../chunk-E3FOCECQ.js";
@@ -15,15 +15,15 @@ import "../chunk-3PIDINTF.js";
15
15
  import "../chunk-BQNPOGD5.js";
16
16
  import "../chunk-YULGJORA.js";
17
17
  import "../chunk-Z2HPSFEQ.js";
18
- import "../chunk-MAEVKATN.js";
19
- import "../chunk-OG2PGA3X.js";
18
+ import "../chunk-HRPW6VXG.js";
19
+ import "../chunk-JYECZBCJ.js";
20
20
  import "../chunk-5IFPG6TS.js";
21
21
  import "../chunk-7YA3TF73.js";
22
22
  import "../chunk-AJ5M6MVX.js";
23
23
  import "../chunk-7IPESTQS.js";
24
24
  import "../chunk-EWGHVZL5.js";
25
25
  import "../chunk-AT4AWD6B.js";
26
- import "../chunk-EA6Y4HXQ.js";
26
+ import "../chunk-4FUZDLWX.js";
27
27
  import "../chunk-CIYLALYO.js";
28
28
  import "../chunk-KBIEWFQS.js";
29
29
  import "../chunk-NSZTJ5R4.js";
@@ -40,15 +40,15 @@ import "../chunk-UARCWLMD.js";
40
40
  import "../chunk-SJZNVG4N.js";
41
41
  import "../chunk-75USUR3I.js";
42
42
  import "../chunk-BWPNXY7T.js";
43
- import "../chunk-PBJ2MEHM.js";
43
+ import "../chunk-QW4AJ5FK.js";
44
44
  import "../chunk-3JUIYULW.js";
45
45
  import "../chunk-OM7QLLI2.js";
46
46
  import "../chunk-PE3EZP56.js";
47
- import "../chunk-MOBFZ672.js";
48
- import "../chunk-PABII472.js";
47
+ import "../chunk-3DJWSTPS.js";
48
+ import "../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";
@@ -396,7 +396,7 @@ var Checkbox = (_a) => {
396
396
  as: "span",
397
397
  padded: true,
398
398
  className: (0, import_clsx4.default)(
399
- "text-nowrap",
399
+ !(paragraphClassName == null ? void 0 : paragraphClassName.includes("text-wrap")) && "text-nowrap",
400
400
  disabled && !error && "!text-text-primary-disabled",
401
401
  error && !disabled && !readOnly && "!text-text-primary-error",
402
402
  paragraphClassName
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  Checkbox
4
- } from "../chunk-I3W5K76C.js";
4
+ } from "../chunk-RN465M4S.js";
5
5
  import "../chunk-7MBRCM3M.js";
6
6
  import "../chunk-NKUETCDA.js";
7
7
  import "../chunk-SATCWGO7.js";