@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
@@ -1912,6 +1912,14 @@ var import_react11 = require("react");
1912
1912
  var import_react10 = require("react");
1913
1913
  var import_clsx8 = __toESM(require("clsx"), 1);
1914
1914
  var import_jsx_runtime7 = require("react/jsx-runtime");
1915
+ function hasEquivalentNumericValue(currentValue, nextValue) {
1916
+ if (!currentValue || !nextValue) {
1917
+ return false;
1918
+ }
1919
+ const currentNumericValue = Number(currentValue.replace(/,/g, ""));
1920
+ const nextNumericValue = Number(nextValue.replace(/,/g, ""));
1921
+ return !Number.isNaN(currentNumericValue) && !Number.isNaN(nextNumericValue) && currentNumericValue === nextNumericValue;
1922
+ }
1915
1923
  var InputBase = (_a) => {
1916
1924
  var _b = _a, {
1917
1925
  id,
@@ -2134,28 +2142,33 @@ var Input = (_a) => {
2134
2142
  const [internalValue, setInternalValue] = (0, import_react10.useState)("");
2135
2143
  const [displayValue, setDisplayValue] = (0, import_react10.useState)("");
2136
2144
  const [isFocused, setIsFocused] = (0, import_react10.useState)(false);
2145
+ const internalValueRef = (0, import_react10.useRef)("");
2146
+ const setInputValues = (nextInternalValue, nextDisplayValue) => {
2147
+ internalValueRef.current = nextInternalValue;
2148
+ setInternalValue(nextInternalValue);
2149
+ setDisplayValue(nextDisplayValue);
2150
+ };
2137
2151
  (0, import_react10.useEffect)(() => {
2138
2152
  var _a2;
2139
2153
  const stringValue = (_a2 = propValue == null ? void 0 : propValue.toString()) != null ? _a2 : "";
2140
2154
  const shouldUseThousandsFormatting = variant === "currency" || variant === "uom" && currencyFormat;
2141
2155
  if (!stringValue) {
2142
- setInternalValue("");
2143
- setDisplayValue("");
2156
+ setInputValues("", "");
2144
2157
  return;
2145
2158
  }
2146
2159
  if (!shouldUseThousandsFormatting) {
2147
- setInternalValue(stringValue);
2148
- setDisplayValue(stringValue);
2160
+ setInputValues(stringValue, stringValue);
2161
+ return;
2162
+ }
2163
+ if (isFocused && hasEquivalentNumericValue(internalValueRef.current, stringValue)) {
2149
2164
  return;
2150
2165
  }
2151
- const formatted = formatDecimalValue(stringValue, decimals != null ? decimals : 2);
2152
2166
  if (formatOnBlur && isFocused) {
2153
- setInternalValue(stringValue);
2154
- setDisplayValue(stringValue);
2167
+ setInputValues(stringValue, stringValue);
2155
2168
  return;
2156
2169
  }
2157
- setInternalValue(formatted);
2158
- setDisplayValue(formatCurrencyDisplay(formatted));
2170
+ const formatted = formatDecimalValue(stringValue, decimals != null ? decimals : 2);
2171
+ setInputValues(formatted, formatCurrencyDisplay(formatted));
2159
2172
  }, [propValue, variant, currencyFormat, decimals, formatOnBlur, isFocused]);
2160
2173
  const getInputProps = () => {
2161
2174
  var _a2;
@@ -2177,6 +2190,7 @@ var Input = (_a) => {
2177
2190
  return __spreadProps(__spreadValues({}, baseProps), {
2178
2191
  align: "right",
2179
2192
  type: "text",
2193
+ inputMode: "decimal",
2180
2194
  value: displayValue
2181
2195
  });
2182
2196
  case "percentage":
@@ -2184,6 +2198,7 @@ var Input = (_a) => {
2184
2198
  return __spreadProps(__spreadValues({}, baseProps), {
2185
2199
  type: currencyFormat ? "text" : "number",
2186
2200
  align: "right",
2201
+ inputMode: currencyFormat ? "decimal" : void 0,
2187
2202
  value: currencyFormat ? displayValue : propValue
2188
2203
  });
2189
2204
  default:
@@ -2230,8 +2245,7 @@ var Input = (_a) => {
2230
2245
  }
2231
2246
  };
2232
2247
  const handleSearchReset = () => {
2233
- setInternalValue("");
2234
- setDisplayValue("");
2248
+ setInputValues("", "");
2235
2249
  if (onChange) {
2236
2250
  const syntheticEvent = {
2237
2251
  target: { value: "" }
@@ -2248,8 +2262,7 @@ var Input = (_a) => {
2248
2262
  if (variant === "currency") {
2249
2263
  const raw = rawValue.replace(/,/g, "");
2250
2264
  if (raw === "") {
2251
- setInternalValue("");
2252
- setDisplayValue("");
2265
+ setInputValues("", "");
2253
2266
  if (onChange) {
2254
2267
  const syntheticEvent = __spreadProps(__spreadValues({}, e), {
2255
2268
  target: __spreadProps(__spreadValues({}, e.target), { value: "" })
@@ -2270,8 +2283,8 @@ var Input = (_a) => {
2270
2283
  clamped.toString(),
2271
2284
  currentDecimals
2272
2285
  );
2273
- setInternalValue(formattedClamped);
2274
- setDisplayValue(
2286
+ setInputValues(
2287
+ formattedClamped,
2275
2288
  formatOnBlur ? formattedClamped : formatCurrencyDisplay(formattedClamped)
2276
2289
  );
2277
2290
  if (onChange) {
@@ -2282,8 +2295,7 @@ var Input = (_a) => {
2282
2295
  }
2283
2296
  return;
2284
2297
  }
2285
- setInternalValue(raw);
2286
- setDisplayValue(formatOnBlur ? raw : formatCurrencyDisplay(raw));
2298
+ setInputValues(raw, formatOnBlur ? raw : formatCurrencyDisplay(raw));
2287
2299
  if (!isNaN(asNumber) && onChange) {
2288
2300
  const syntheticEvent = __spreadProps(__spreadValues({}, e), {
2289
2301
  target: __spreadProps(__spreadValues({}, e.target), { value: asNumber.toString() })
@@ -2295,8 +2307,7 @@ var Input = (_a) => {
2295
2307
  if (variant === "uom" && currencyFormat) {
2296
2308
  const raw = rawValue.replace(/,/g, "");
2297
2309
  if (raw === "") {
2298
- setInternalValue("");
2299
- setDisplayValue("");
2310
+ setInputValues("", "");
2300
2311
  if (onChange) {
2301
2312
  const syntheticEvent = __spreadProps(__spreadValues({}, e), {
2302
2313
  target: __spreadProps(__spreadValues({}, e.target), { value: "" })
@@ -2317,8 +2328,10 @@ var Input = (_a) => {
2317
2328
  clamped.toString(),
2318
2329
  currentDecimals
2319
2330
  );
2320
- setInternalValue(formattedClamped);
2321
- setDisplayValue(formatCurrencyDisplay(formattedClamped));
2331
+ setInputValues(
2332
+ formattedClamped,
2333
+ formatCurrencyDisplay(formattedClamped)
2334
+ );
2322
2335
  if (onChange) {
2323
2336
  const syntheticEvent = __spreadProps(__spreadValues({}, e), {
2324
2337
  target: __spreadProps(__spreadValues({}, e.target), { value: clamped.toString() })
@@ -2327,8 +2340,7 @@ var Input = (_a) => {
2327
2340
  }
2328
2341
  return;
2329
2342
  }
2330
- setInternalValue(raw);
2331
- setDisplayValue(formatCurrencyDisplay(raw));
2343
+ setInputValues(raw, formatCurrencyDisplay(raw));
2332
2344
  if (!isNaN(asNumber) && onChange) {
2333
2345
  const syntheticEvent = __spreadProps(__spreadValues({}, e), {
2334
2346
  target: __spreadProps(__spreadValues({}, e.target), { value: asNumber.toString() })
@@ -2345,8 +2357,7 @@ var Input = (_a) => {
2345
2357
  clamped.toString(),
2346
2358
  decimals != null ? decimals : 0
2347
2359
  );
2348
- setInternalValue(formattedClamped);
2349
- setDisplayValue(formattedClamped);
2360
+ setInputValues(formattedClamped, formattedClamped);
2350
2361
  if (typeof onChange === "function") {
2351
2362
  const syntheticEvent = __spreadProps(__spreadValues({}, e), {
2352
2363
  target: __spreadProps(__spreadValues({}, e.target), { value: clamped.toString() })
@@ -2355,15 +2366,13 @@ var Input = (_a) => {
2355
2366
  }
2356
2367
  return;
2357
2368
  }
2358
- setInternalValue(rawValue);
2359
- setDisplayValue(rawValue);
2369
+ setInputValues(rawValue, rawValue);
2360
2370
  if (typeof onChange === "function") {
2361
2371
  onChange(e);
2362
2372
  }
2363
2373
  return;
2364
2374
  }
2365
- setInternalValue(rawValue);
2366
- setDisplayValue(rawValue);
2375
+ setInputValues(rawValue, rawValue);
2367
2376
  if (typeof onChange === "function") {
2368
2377
  onChange(e);
2369
2378
  }
@@ -2376,8 +2385,7 @@ var Input = (_a) => {
2376
2385
  }
2377
2386
  if (variant === "currency") {
2378
2387
  const formatted = formatDecimalValue(internalValue, decimals != null ? decimals : 2);
2379
- setInternalValue(formatted);
2380
- setDisplayValue(formatCurrencyDisplay(formatted));
2388
+ setInputValues(formatted, formatCurrencyDisplay(formatted));
2381
2389
  const asNumber = Number(formatted);
2382
2390
  if (!isNaN(asNumber) && onChange) {
2383
2391
  const syntheticEvent = __spreadProps(__spreadValues({}, e), {
@@ -2388,8 +2396,7 @@ var Input = (_a) => {
2388
2396
  } else if (variant === "uom") {
2389
2397
  if (currencyFormat) {
2390
2398
  const formatted = formatDecimalValue(internalValue, decimals != null ? decimals : 2);
2391
- setInternalValue(formatted);
2392
- setDisplayValue(formatCurrencyDisplay(formatted));
2399
+ setInputValues(formatted, formatCurrencyDisplay(formatted));
2393
2400
  const asNumber = Number(formatted);
2394
2401
  if (!isNaN(asNumber) && onChange) {
2395
2402
  const syntheticEvent = __spreadProps(__spreadValues({}, e), {
@@ -3253,7 +3260,7 @@ var Checkbox = (_a) => {
3253
3260
  as: "span",
3254
3261
  padded: true,
3255
3262
  className: (0, import_clsx12.default)(
3256
- "text-nowrap",
3263
+ !(paragraphClassName == null ? void 0 : paragraphClassName.includes("text-wrap")) && "text-nowrap",
3257
3264
  disabled && !error && "!text-text-primary-disabled",
3258
3265
  error && !disabled && !readOnly && "!text-text-primary-error",
3259
3266
  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 @@
2
2
  import {
3
3
  DataGrid,
4
4
  DataGrid_default
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";
@@ -1911,6 +1911,14 @@ var import_react11 = require("react");
1911
1911
  var import_react10 = require("react");
1912
1912
  var import_clsx8 = __toESM(require("clsx"), 1);
1913
1913
  var import_jsx_runtime7 = require("react/jsx-runtime");
1914
+ function hasEquivalentNumericValue(currentValue, nextValue) {
1915
+ if (!currentValue || !nextValue) {
1916
+ return false;
1917
+ }
1918
+ const currentNumericValue = Number(currentValue.replace(/,/g, ""));
1919
+ const nextNumericValue = Number(nextValue.replace(/,/g, ""));
1920
+ return !Number.isNaN(currentNumericValue) && !Number.isNaN(nextNumericValue) && currentNumericValue === nextNumericValue;
1921
+ }
1914
1922
  var InputBase = (_a) => {
1915
1923
  var _b = _a, {
1916
1924
  id,
@@ -2133,28 +2141,33 @@ var Input = (_a) => {
2133
2141
  const [internalValue, setInternalValue] = (0, import_react10.useState)("");
2134
2142
  const [displayValue, setDisplayValue] = (0, import_react10.useState)("");
2135
2143
  const [isFocused, setIsFocused] = (0, import_react10.useState)(false);
2144
+ const internalValueRef = (0, import_react10.useRef)("");
2145
+ const setInputValues = (nextInternalValue, nextDisplayValue) => {
2146
+ internalValueRef.current = nextInternalValue;
2147
+ setInternalValue(nextInternalValue);
2148
+ setDisplayValue(nextDisplayValue);
2149
+ };
2136
2150
  (0, import_react10.useEffect)(() => {
2137
2151
  var _a2;
2138
2152
  const stringValue = (_a2 = propValue == null ? void 0 : propValue.toString()) != null ? _a2 : "";
2139
2153
  const shouldUseThousandsFormatting = variant === "currency" || variant === "uom" && currencyFormat;
2140
2154
  if (!stringValue) {
2141
- setInternalValue("");
2142
- setDisplayValue("");
2155
+ setInputValues("", "");
2143
2156
  return;
2144
2157
  }
2145
2158
  if (!shouldUseThousandsFormatting) {
2146
- setInternalValue(stringValue);
2147
- setDisplayValue(stringValue);
2159
+ setInputValues(stringValue, stringValue);
2160
+ return;
2161
+ }
2162
+ if (isFocused && hasEquivalentNumericValue(internalValueRef.current, stringValue)) {
2148
2163
  return;
2149
2164
  }
2150
- const formatted = formatDecimalValue(stringValue, decimals != null ? decimals : 2);
2151
2165
  if (formatOnBlur && isFocused) {
2152
- setInternalValue(stringValue);
2153
- setDisplayValue(stringValue);
2166
+ setInputValues(stringValue, stringValue);
2154
2167
  return;
2155
2168
  }
2156
- setInternalValue(formatted);
2157
- setDisplayValue(formatCurrencyDisplay(formatted));
2169
+ const formatted = formatDecimalValue(stringValue, decimals != null ? decimals : 2);
2170
+ setInputValues(formatted, formatCurrencyDisplay(formatted));
2158
2171
  }, [propValue, variant, currencyFormat, decimals, formatOnBlur, isFocused]);
2159
2172
  const getInputProps = () => {
2160
2173
  var _a2;
@@ -2176,6 +2189,7 @@ var Input = (_a) => {
2176
2189
  return __spreadProps(__spreadValues({}, baseProps), {
2177
2190
  align: "right",
2178
2191
  type: "text",
2192
+ inputMode: "decimal",
2179
2193
  value: displayValue
2180
2194
  });
2181
2195
  case "percentage":
@@ -2183,6 +2197,7 @@ var Input = (_a) => {
2183
2197
  return __spreadProps(__spreadValues({}, baseProps), {
2184
2198
  type: currencyFormat ? "text" : "number",
2185
2199
  align: "right",
2200
+ inputMode: currencyFormat ? "decimal" : void 0,
2186
2201
  value: currencyFormat ? displayValue : propValue
2187
2202
  });
2188
2203
  default:
@@ -2229,8 +2244,7 @@ var Input = (_a) => {
2229
2244
  }
2230
2245
  };
2231
2246
  const handleSearchReset = () => {
2232
- setInternalValue("");
2233
- setDisplayValue("");
2247
+ setInputValues("", "");
2234
2248
  if (onChange) {
2235
2249
  const syntheticEvent = {
2236
2250
  target: { value: "" }
@@ -2247,8 +2261,7 @@ var Input = (_a) => {
2247
2261
  if (variant === "currency") {
2248
2262
  const raw = rawValue.replace(/,/g, "");
2249
2263
  if (raw === "") {
2250
- setInternalValue("");
2251
- setDisplayValue("");
2264
+ setInputValues("", "");
2252
2265
  if (onChange) {
2253
2266
  const syntheticEvent = __spreadProps(__spreadValues({}, e), {
2254
2267
  target: __spreadProps(__spreadValues({}, e.target), { value: "" })
@@ -2269,8 +2282,8 @@ var Input = (_a) => {
2269
2282
  clamped.toString(),
2270
2283
  currentDecimals
2271
2284
  );
2272
- setInternalValue(formattedClamped);
2273
- setDisplayValue(
2285
+ setInputValues(
2286
+ formattedClamped,
2274
2287
  formatOnBlur ? formattedClamped : formatCurrencyDisplay(formattedClamped)
2275
2288
  );
2276
2289
  if (onChange) {
@@ -2281,8 +2294,7 @@ var Input = (_a) => {
2281
2294
  }
2282
2295
  return;
2283
2296
  }
2284
- setInternalValue(raw);
2285
- setDisplayValue(formatOnBlur ? raw : formatCurrencyDisplay(raw));
2297
+ setInputValues(raw, formatOnBlur ? raw : formatCurrencyDisplay(raw));
2286
2298
  if (!isNaN(asNumber) && onChange) {
2287
2299
  const syntheticEvent = __spreadProps(__spreadValues({}, e), {
2288
2300
  target: __spreadProps(__spreadValues({}, e.target), { value: asNumber.toString() })
@@ -2294,8 +2306,7 @@ var Input = (_a) => {
2294
2306
  if (variant === "uom" && currencyFormat) {
2295
2307
  const raw = rawValue.replace(/,/g, "");
2296
2308
  if (raw === "") {
2297
- setInternalValue("");
2298
- setDisplayValue("");
2309
+ setInputValues("", "");
2299
2310
  if (onChange) {
2300
2311
  const syntheticEvent = __spreadProps(__spreadValues({}, e), {
2301
2312
  target: __spreadProps(__spreadValues({}, e.target), { value: "" })
@@ -2316,8 +2327,10 @@ var Input = (_a) => {
2316
2327
  clamped.toString(),
2317
2328
  currentDecimals
2318
2329
  );
2319
- setInternalValue(formattedClamped);
2320
- setDisplayValue(formatCurrencyDisplay(formattedClamped));
2330
+ setInputValues(
2331
+ formattedClamped,
2332
+ formatCurrencyDisplay(formattedClamped)
2333
+ );
2321
2334
  if (onChange) {
2322
2335
  const syntheticEvent = __spreadProps(__spreadValues({}, e), {
2323
2336
  target: __spreadProps(__spreadValues({}, e.target), { value: clamped.toString() })
@@ -2326,8 +2339,7 @@ var Input = (_a) => {
2326
2339
  }
2327
2340
  return;
2328
2341
  }
2329
- setInternalValue(raw);
2330
- setDisplayValue(formatCurrencyDisplay(raw));
2342
+ setInputValues(raw, formatCurrencyDisplay(raw));
2331
2343
  if (!isNaN(asNumber) && onChange) {
2332
2344
  const syntheticEvent = __spreadProps(__spreadValues({}, e), {
2333
2345
  target: __spreadProps(__spreadValues({}, e.target), { value: asNumber.toString() })
@@ -2344,8 +2356,7 @@ var Input = (_a) => {
2344
2356
  clamped.toString(),
2345
2357
  decimals != null ? decimals : 0
2346
2358
  );
2347
- setInternalValue(formattedClamped);
2348
- setDisplayValue(formattedClamped);
2359
+ setInputValues(formattedClamped, formattedClamped);
2349
2360
  if (typeof onChange === "function") {
2350
2361
  const syntheticEvent = __spreadProps(__spreadValues({}, e), {
2351
2362
  target: __spreadProps(__spreadValues({}, e.target), { value: clamped.toString() })
@@ -2354,15 +2365,13 @@ var Input = (_a) => {
2354
2365
  }
2355
2366
  return;
2356
2367
  }
2357
- setInternalValue(rawValue);
2358
- setDisplayValue(rawValue);
2368
+ setInputValues(rawValue, rawValue);
2359
2369
  if (typeof onChange === "function") {
2360
2370
  onChange(e);
2361
2371
  }
2362
2372
  return;
2363
2373
  }
2364
- setInternalValue(rawValue);
2365
- setDisplayValue(rawValue);
2374
+ setInputValues(rawValue, rawValue);
2366
2375
  if (typeof onChange === "function") {
2367
2376
  onChange(e);
2368
2377
  }
@@ -2375,8 +2384,7 @@ var Input = (_a) => {
2375
2384
  }
2376
2385
  if (variant === "currency") {
2377
2386
  const formatted = formatDecimalValue(internalValue, decimals != null ? decimals : 2);
2378
- setInternalValue(formatted);
2379
- setDisplayValue(formatCurrencyDisplay(formatted));
2387
+ setInputValues(formatted, formatCurrencyDisplay(formatted));
2380
2388
  const asNumber = Number(formatted);
2381
2389
  if (!isNaN(asNumber) && onChange) {
2382
2390
  const syntheticEvent = __spreadProps(__spreadValues({}, e), {
@@ -2387,8 +2395,7 @@ var Input = (_a) => {
2387
2395
  } else if (variant === "uom") {
2388
2396
  if (currencyFormat) {
2389
2397
  const formatted = formatDecimalValue(internalValue, decimals != null ? decimals : 2);
2390
- setInternalValue(formatted);
2391
- setDisplayValue(formatCurrencyDisplay(formatted));
2398
+ setInputValues(formatted, formatCurrencyDisplay(formatted));
2392
2399
  const asNumber = Number(formatted);
2393
2400
  if (!isNaN(asNumber) && onChange) {
2394
2401
  const syntheticEvent = __spreadProps(__spreadValues({}, e), {
@@ -4397,7 +4404,7 @@ var Checkbox = (_a) => {
4397
4404
  as: "span",
4398
4405
  padded: true,
4399
4406
  className: (0, import_clsx16.default)(
4400
- "text-nowrap",
4407
+ !(paragraphClassName == null ? void 0 : paragraphClassName.includes("text-wrap")) && "text-nowrap",
4401
4408
  disabled && !error && "!text-text-primary-disabled",
4402
4409
  error && !disabled && !readOnly && "!text-text-primary-error",
4403
4410
  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,6 +1,6 @@
1
1
  import {
2
2
  getSortIcon
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,15 +38,15 @@ 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";
46
- import "../../chunk-PABII472.js";
45
+ import "../../chunk-3DJWSTPS.js";
46
+ import "../../chunk-H5SHC4XZ.js";
47
47
  import "../../chunk-4UGMSWWA.js";
48
48
  import "../../chunk-WVUIIBRR.js";
49
- import "../../chunk-I3W5K76C.js";
49
+ import "../../chunk-RN465M4S.js";
50
50
  import "../../chunk-Z5YP2GI6.js";
51
51
  import "../../chunk-ZRFXUER3.js";
52
52
  import "../../chunk-WVGXD7HT.js";