@dmsi/wedgekit-react 0.0.44 → 0.0.46

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 (43) hide show
  1. package/dist/{chunk-JIFWUW4M.js → chunk-2BVSUYXU.js} +1 -1
  2. package/dist/{chunk-DVXLTLKP.js → chunk-724LJWFR.js} +5 -3
  3. package/dist/{chunk-IOSLZ3WW.js → chunk-KXUUKAQM.js} +1 -0
  4. package/dist/{chunk-W3K72ORO.js → chunk-SGQWENE2.js} +1 -1
  5. package/dist/{chunk-MUDULZCP.js → chunk-XIEG2XMD.js} +1 -1
  6. package/dist/components/DataGrid.cjs +5 -3
  7. package/dist/components/DataGrid.js +4 -4
  8. package/dist/components/DataGridCell.cjs +5 -3
  9. package/dist/components/DataGridCell.js +3 -3
  10. package/dist/components/DateInput.cjs +5 -3
  11. package/dist/components/DateInput.js +1 -1
  12. package/dist/components/DateRangeInput.cjs +32 -9
  13. package/dist/components/DateRangeInput.js +28 -7
  14. package/dist/components/FilterGroup.cjs +5 -3
  15. package/dist/components/FilterGroup.js +2 -2
  16. package/dist/components/Input.cjs +5 -3
  17. package/dist/components/Input.js +1 -1
  18. package/dist/components/MobileDataGrid.cjs +1 -0
  19. package/dist/components/MobileDataGrid.js +1 -1
  20. package/dist/components/Notification.cjs +1 -0
  21. package/dist/components/Notification.js +1 -1
  22. package/dist/components/Password.cjs +5 -3
  23. package/dist/components/Password.js +1 -1
  24. package/dist/components/Search.cjs +5 -3
  25. package/dist/components/Search.js +2 -2
  26. package/dist/components/Select.cjs +5 -3
  27. package/dist/components/Select.js +2 -2
  28. package/dist/components/SideMenuGroup.cjs +1 -0
  29. package/dist/components/SideMenuGroup.js +1 -1
  30. package/dist/components/SideMenuItem.cjs +1 -0
  31. package/dist/components/SideMenuItem.js +1 -1
  32. package/dist/components/Stack.cjs +1 -0
  33. package/dist/components/Stack.js +1 -1
  34. package/dist/components/Stepper.cjs +5 -3
  35. package/dist/components/Stepper.js +1 -1
  36. package/dist/components/Swatch.cjs +1 -0
  37. package/dist/components/Swatch.js +1 -1
  38. package/dist/components/Time.cjs +6 -3
  39. package/dist/components/Time.js +2 -2
  40. package/package.json +1 -1
  41. package/src/components/DateRangeInput.tsx +136 -91
  42. package/src/components/Input.tsx +3 -1
  43. package/src/components/Stack.tsx +2 -2
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  InputBase
3
- } from "./chunk-DVXLTLKP.js";
3
+ } from "./chunk-724LJWFR.js";
4
4
  import {
5
5
  Icon
6
6
  } from "./chunk-IGQVA7SC.js";
@@ -77,7 +77,8 @@ var InputBase = (_a) => {
77
77
  inputContainerRef,
78
78
  removeBorder,
79
79
  wrapperClassName,
80
- focus
80
+ focus,
81
+ fullWidth = true
81
82
  } = _b, props = __objRest(_b, [
82
83
  "id",
83
84
  "before",
@@ -94,7 +95,8 @@ var InputBase = (_a) => {
94
95
  "inputContainerRef",
95
96
  "removeBorder",
96
97
  "wrapperClassName",
97
- "focus"
98
+ "focus",
99
+ "fullWidth"
98
100
  ]);
99
101
  const attributes = {
100
102
  "data-error": error && !focus || null,
@@ -116,7 +118,7 @@ var InputBase = (_a) => {
116
118
  }
117
119
  }, [selectOnFocus]);
118
120
  const inputBaseClass = clsx(
119
- "w-full",
121
+ fullWidth ? "w-full" : "w-fit",
120
122
  "flex flex-row items-center",
121
123
  "bg-background-action-secondary-normal caret-icon-on-action-secondary-normal",
122
124
  componentGap,
@@ -126,6 +126,7 @@ var Stack = (_a) => {
126
126
  "max-w-screen",
127
127
  width !== "fit" && "w-full",
128
128
  width === "full" && "w-full",
129
+ width === "max" && "w-max",
129
130
  centered && "mx-auto",
130
131
  overflowY == "auto" && "overflow-y-auto",
131
132
  overflowY == "hidden" && "overflow-y-hidden",
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Input
3
- } from "./chunk-DVXLTLKP.js";
3
+ } from "./chunk-724LJWFR.js";
4
4
  import {
5
5
  __objRest,
6
6
  __spreadValues
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-S46RZBT4.js";
10
10
  import {
11
11
  Search
12
- } from "./chunk-W3K72ORO.js";
12
+ } from "./chunk-SGQWENE2.js";
13
13
  import {
14
14
  CSS
15
15
  } from "./chunk-WVUIIBRR.js";
@@ -693,7 +693,8 @@ var InputBase = (_a) => {
693
693
  inputContainerRef,
694
694
  removeBorder,
695
695
  wrapperClassName,
696
- focus
696
+ focus,
697
+ fullWidth = true
697
698
  } = _b, props = __objRest(_b, [
698
699
  "id",
699
700
  "before",
@@ -710,7 +711,8 @@ var InputBase = (_a) => {
710
711
  "inputContainerRef",
711
712
  "removeBorder",
712
713
  "wrapperClassName",
713
- "focus"
714
+ "focus",
715
+ "fullWidth"
714
716
  ]);
715
717
  const attributes = {
716
718
  "data-error": error && !focus || null,
@@ -732,7 +734,7 @@ var InputBase = (_a) => {
732
734
  }
733
735
  }, [selectOnFocus]);
734
736
  const inputBaseClass = (0, import_clsx7.default)(
735
- "w-full",
737
+ fullWidth ? "w-full" : "w-fit",
736
738
  "flex flex-row items-center",
737
739
  "bg-background-action-secondary-normal caret-icon-on-action-secondary-normal",
738
740
  componentGap,
@@ -10,13 +10,13 @@ import {
10
10
  } from "../chunk-O4M2GISS.js";
11
11
  import {
12
12
  Select
13
- } from "../chunk-JIFWUW4M.js";
13
+ } from "../chunk-2BVSUYXU.js";
14
14
  import {
15
15
  DataCellHeader,
16
16
  DataGridCell,
17
17
  DragAlongCell,
18
18
  DraggableCellHeader
19
- } from "../chunk-MUDULZCP.js";
19
+ } from "../chunk-XIEG2XMD.js";
20
20
  import {
21
21
  Menu
22
22
  } from "../chunk-VC3R5EUH.js";
@@ -27,12 +27,12 @@ import {
27
27
  import "../chunk-SEKKGFM6.js";
28
28
  import {
29
29
  Search
30
- } from "../chunk-W3K72ORO.js";
30
+ } from "../chunk-SGQWENE2.js";
31
31
  import "../chunk-WVUIIBRR.js";
32
32
  import "../chunk-4T7F5BZZ.js";
33
33
  import {
34
34
  Input
35
- } from "../chunk-DVXLTLKP.js";
35
+ } from "../chunk-724LJWFR.js";
36
36
  import {
37
37
  Label
38
38
  } from "../chunk-S5K22XTH.js";
@@ -378,7 +378,8 @@ var InputBase = (_a) => {
378
378
  inputContainerRef,
379
379
  removeBorder,
380
380
  wrapperClassName,
381
- focus
381
+ focus,
382
+ fullWidth = true
382
383
  } = _b, props = __objRest(_b, [
383
384
  "id",
384
385
  "before",
@@ -395,7 +396,8 @@ var InputBase = (_a) => {
395
396
  "inputContainerRef",
396
397
  "removeBorder",
397
398
  "wrapperClassName",
398
- "focus"
399
+ "focus",
400
+ "fullWidth"
399
401
  ]);
400
402
  const attributes = {
401
403
  "data-error": error && !focus || null,
@@ -417,7 +419,7 @@ var InputBase = (_a) => {
417
419
  }
418
420
  }, [selectOnFocus]);
419
421
  const inputBaseClass = (0, import_clsx4.default)(
420
- "w-full",
422
+ fullWidth ? "w-full" : "w-fit",
421
423
  "flex flex-row items-center",
422
424
  "bg-background-action-secondary-normal caret-icon-on-action-secondary-normal",
423
425
  componentGap,
@@ -4,15 +4,15 @@ import {
4
4
  DataGridCell,
5
5
  DragAlongCell,
6
6
  DraggableCellHeader
7
- } from "../chunk-MUDULZCP.js";
7
+ } from "../chunk-XIEG2XMD.js";
8
8
  import "../chunk-VC3R5EUH.js";
9
9
  import "../chunk-Z4UCFUF7.js";
10
10
  import "../chunk-S46RZBT4.js";
11
11
  import "../chunk-SEKKGFM6.js";
12
- import "../chunk-W3K72ORO.js";
12
+ import "../chunk-SGQWENE2.js";
13
13
  import "../chunk-WVUIIBRR.js";
14
14
  import "../chunk-4T7F5BZZ.js";
15
- import "../chunk-DVXLTLKP.js";
15
+ import "../chunk-724LJWFR.js";
16
16
  import "../chunk-S5K22XTH.js";
17
17
  import "../chunk-VG4EPHJA.js";
18
18
  import "../chunk-IGQVA7SC.js";
@@ -320,7 +320,8 @@ var InputBase = (_a) => {
320
320
  inputContainerRef,
321
321
  removeBorder,
322
322
  wrapperClassName,
323
- focus
323
+ focus,
324
+ fullWidth = true
324
325
  } = _b, props = __objRest(_b, [
325
326
  "id",
326
327
  "before",
@@ -337,7 +338,8 @@ var InputBase = (_a) => {
337
338
  "inputContainerRef",
338
339
  "removeBorder",
339
340
  "wrapperClassName",
340
- "focus"
341
+ "focus",
342
+ "fullWidth"
341
343
  ]);
342
344
  const attributes = {
343
345
  "data-error": error && !focus || null,
@@ -359,7 +361,7 @@ var InputBase = (_a) => {
359
361
  }
360
362
  }, [selectOnFocus]);
361
363
  const inputBaseClass = (0, import_clsx4.default)(
362
- "w-full",
364
+ fullWidth ? "w-full" : "w-fit",
363
365
  "flex flex-row items-center",
364
366
  "bg-background-action-secondary-normal caret-icon-on-action-secondary-normal",
365
367
  componentGap,
@@ -10,7 +10,7 @@ import {
10
10
  } from "../chunk-4T7F5BZZ.js";
11
11
  import {
12
12
  InputBase
13
- } from "../chunk-DVXLTLKP.js";
13
+ } from "../chunk-724LJWFR.js";
14
14
  import "../chunk-S5K22XTH.js";
15
15
  import {
16
16
  CalendarRange
@@ -320,7 +320,8 @@ var InputBase = (_a) => {
320
320
  inputContainerRef,
321
321
  removeBorder,
322
322
  wrapperClassName,
323
- focus
323
+ focus,
324
+ fullWidth = true
324
325
  } = _b, props = __objRest(_b, [
325
326
  "id",
326
327
  "before",
@@ -337,7 +338,8 @@ var InputBase = (_a) => {
337
338
  "inputContainerRef",
338
339
  "removeBorder",
339
340
  "wrapperClassName",
340
- "focus"
341
+ "focus",
342
+ "fullWidth"
341
343
  ]);
342
344
  const attributes = {
343
345
  "data-error": error && !focus || null,
@@ -359,7 +361,7 @@ var InputBase = (_a) => {
359
361
  }
360
362
  }, [selectOnFocus]);
361
363
  const inputBaseClass = (0, import_clsx4.default)(
362
- "w-full",
364
+ fullWidth ? "w-full" : "w-fit",
363
365
  "flex flex-row items-center",
364
366
  "bg-background-action-secondary-normal caret-icon-on-action-secondary-normal",
365
367
  componentGap,
@@ -1282,7 +1284,10 @@ var DateRangeInput = (_a) => {
1282
1284
  const formattedCleanValue = formatInputValue2(cleanValue);
1283
1285
  setInputValue(formattedCleanValue);
1284
1286
  requestAnimationFrame(() => {
1285
- const newPosition = Math.min(cursorPosition - 1, formattedCleanValue.length);
1287
+ const newPosition = Math.min(
1288
+ cursorPosition - 1,
1289
+ formattedCleanValue.length
1290
+ );
1286
1291
  setCursorPosition(newPosition);
1287
1292
  });
1288
1293
  };
@@ -1302,7 +1307,12 @@ var DateRangeInput = (_a) => {
1302
1307
  if (finalValue !== formattedValue) {
1303
1308
  return finalValue.length;
1304
1309
  }
1305
- return calculateCursorPositionHelper(rawValue, finalValue, originalPosition, disableRange);
1310
+ return calculateCursorPositionHelper(
1311
+ rawValue,
1312
+ finalValue,
1313
+ originalPosition,
1314
+ disableRange
1315
+ );
1306
1316
  };
1307
1317
  const setCursorPosition = (position) => {
1308
1318
  if (triggerRef.current) {
@@ -1423,7 +1433,10 @@ var DateRangeInput = (_a) => {
1423
1433
  onChange("");
1424
1434
  requestAnimationFrame(() => {
1425
1435
  if (triggerRef.current) {
1426
- triggerRef.current.setSelectionRange(formattedValue.length, formattedValue.length);
1436
+ triggerRef.current.setSelectionRange(
1437
+ formattedValue.length,
1438
+ formattedValue.length
1439
+ );
1427
1440
  }
1428
1441
  });
1429
1442
  } else {
@@ -1456,7 +1469,10 @@ var DateRangeInput = (_a) => {
1456
1469
  }
1457
1470
  requestAnimationFrame(() => {
1458
1471
  if (triggerRef.current) {
1459
- triggerRef.current.setSelectionRange(newValue.length, newValue.length);
1472
+ triggerRef.current.setSelectionRange(
1473
+ newValue.length,
1474
+ newValue.length
1475
+ );
1460
1476
  }
1461
1477
  });
1462
1478
  setIsTyping(true);
@@ -1485,7 +1501,10 @@ var DateRangeInput = (_a) => {
1485
1501
  onChange("");
1486
1502
  requestAnimationFrame(() => {
1487
1503
  if (triggerRef.current) {
1488
- triggerRef.current.setSelectionRange(formattedValue.length, formattedValue.length);
1504
+ triggerRef.current.setSelectionRange(
1505
+ formattedValue.length,
1506
+ formattedValue.length
1507
+ );
1489
1508
  }
1490
1509
  });
1491
1510
  } else {
@@ -1646,7 +1665,11 @@ function calculateCursorPositionHelper(originalValue, formattedValue, originalPo
1646
1665
  return Math.min(newPosition, formattedValue.length);
1647
1666
  }
1648
1667
  }
1649
- return calculateCursorPosition(originalValue, formattedValue, originalPosition);
1668
+ return calculateCursorPosition(
1669
+ originalValue,
1670
+ formattedValue,
1671
+ originalPosition
1672
+ );
1650
1673
  }
1651
1674
  function formatDisplayValueHelper(from, to, disableRange) {
1652
1675
  if (!from && !to) {
@@ -11,7 +11,7 @@ import {
11
11
  } from "../chunk-4T7F5BZZ.js";
12
12
  import {
13
13
  InputBase
14
- } from "../chunk-DVXLTLKP.js";
14
+ } from "../chunk-724LJWFR.js";
15
15
  import "../chunk-S5K22XTH.js";
16
16
  import {
17
17
  CalendarRange
@@ -166,7 +166,10 @@ var DateRangeInput = (_a) => {
166
166
  const formattedCleanValue = formatInputValue2(cleanValue);
167
167
  setInputValue(formattedCleanValue);
168
168
  requestAnimationFrame(() => {
169
- const newPosition = Math.min(cursorPosition - 1, formattedCleanValue.length);
169
+ const newPosition = Math.min(
170
+ cursorPosition - 1,
171
+ formattedCleanValue.length
172
+ );
170
173
  setCursorPosition(newPosition);
171
174
  });
172
175
  };
@@ -186,7 +189,12 @@ var DateRangeInput = (_a) => {
186
189
  if (finalValue !== formattedValue) {
187
190
  return finalValue.length;
188
191
  }
189
- return calculateCursorPositionHelper(rawValue, finalValue, originalPosition, disableRange);
192
+ return calculateCursorPositionHelper(
193
+ rawValue,
194
+ finalValue,
195
+ originalPosition,
196
+ disableRange
197
+ );
190
198
  };
191
199
  const setCursorPosition = (position) => {
192
200
  if (triggerRef.current) {
@@ -307,7 +315,10 @@ var DateRangeInput = (_a) => {
307
315
  onChange("");
308
316
  requestAnimationFrame(() => {
309
317
  if (triggerRef.current) {
310
- triggerRef.current.setSelectionRange(formattedValue.length, formattedValue.length);
318
+ triggerRef.current.setSelectionRange(
319
+ formattedValue.length,
320
+ formattedValue.length
321
+ );
311
322
  }
312
323
  });
313
324
  } else {
@@ -340,7 +351,10 @@ var DateRangeInput = (_a) => {
340
351
  }
341
352
  requestAnimationFrame(() => {
342
353
  if (triggerRef.current) {
343
- triggerRef.current.setSelectionRange(newValue.length, newValue.length);
354
+ triggerRef.current.setSelectionRange(
355
+ newValue.length,
356
+ newValue.length
357
+ );
344
358
  }
345
359
  });
346
360
  setIsTyping(true);
@@ -369,7 +383,10 @@ var DateRangeInput = (_a) => {
369
383
  onChange("");
370
384
  requestAnimationFrame(() => {
371
385
  if (triggerRef.current) {
372
- triggerRef.current.setSelectionRange(formattedValue.length, formattedValue.length);
386
+ triggerRef.current.setSelectionRange(
387
+ formattedValue.length,
388
+ formattedValue.length
389
+ );
373
390
  }
374
391
  });
375
392
  } else {
@@ -530,7 +547,11 @@ function calculateCursorPositionHelper(originalValue, formattedValue, originalPo
530
547
  return Math.min(newPosition, formattedValue.length);
531
548
  }
532
549
  }
533
- return calculateCursorPosition(originalValue, formattedValue, originalPosition);
550
+ return calculateCursorPosition(
551
+ originalValue,
552
+ formattedValue,
553
+ originalPosition
554
+ );
534
555
  }
535
556
  function formatDisplayValueHelper(from, to, disableRange) {
536
557
  if (!from && !to) {
@@ -817,7 +817,8 @@ var InputBase = (_a) => {
817
817
  inputContainerRef,
818
818
  removeBorder,
819
819
  wrapperClassName,
820
- focus
820
+ focus,
821
+ fullWidth = true
821
822
  } = _b, props = __objRest(_b, [
822
823
  "id",
823
824
  "before",
@@ -834,7 +835,8 @@ var InputBase = (_a) => {
834
835
  "inputContainerRef",
835
836
  "removeBorder",
836
837
  "wrapperClassName",
837
- "focus"
838
+ "focus",
839
+ "fullWidth"
838
840
  ]);
839
841
  const attributes = {
840
842
  "data-error": error && !focus || null,
@@ -856,7 +858,7 @@ var InputBase = (_a) => {
856
858
  }
857
859
  }, [selectOnFocus]);
858
860
  const inputBaseClass = (0, import_clsx9.default)(
859
- "w-full",
861
+ fullWidth ? "w-full" : "w-fit",
860
862
  "flex flex-row items-center",
861
863
  "bg-background-action-secondary-normal caret-icon-on-action-secondary-normal",
862
864
  componentGap,
@@ -4,8 +4,8 @@ import {
4
4
  } from "../chunk-4N2PED4P.js";
5
5
  import {
6
6
  Search
7
- } from "../chunk-W3K72ORO.js";
8
- import "../chunk-DVXLTLKP.js";
7
+ } from "../chunk-SGQWENE2.js";
8
+ import "../chunk-724LJWFR.js";
9
9
  import {
10
10
  Label
11
11
  } from "../chunk-S5K22XTH.js";
@@ -322,7 +322,8 @@ var InputBase = (_a) => {
322
322
  inputContainerRef,
323
323
  removeBorder,
324
324
  wrapperClassName,
325
- focus
325
+ focus,
326
+ fullWidth = true
326
327
  } = _b, props = __objRest(_b, [
327
328
  "id",
328
329
  "before",
@@ -339,7 +340,8 @@ var InputBase = (_a) => {
339
340
  "inputContainerRef",
340
341
  "removeBorder",
341
342
  "wrapperClassName",
342
- "focus"
343
+ "focus",
344
+ "fullWidth"
343
345
  ]);
344
346
  const attributes = {
345
347
  "data-error": error && !focus || null,
@@ -361,7 +363,7 @@ var InputBase = (_a) => {
361
363
  }
362
364
  }, [selectOnFocus]);
363
365
  const inputBaseClass = (0, import_clsx4.default)(
364
- "w-full",
366
+ fullWidth ? "w-full" : "w-fit",
365
367
  "flex flex-row items-center",
366
368
  "bg-background-action-secondary-normal caret-icon-on-action-secondary-normal",
367
369
  componentGap,
@@ -6,7 +6,7 @@ import {
6
6
  InputBase,
7
7
  Percentage,
8
8
  UOM
9
- } from "../chunk-DVXLTLKP.js";
9
+ } from "../chunk-724LJWFR.js";
10
10
  import "../chunk-S5K22XTH.js";
11
11
  import "../chunk-IGQVA7SC.js";
12
12
  import "../chunk-RDLEIAQU.js";
@@ -218,6 +218,7 @@ var Stack = (_a) => {
218
218
  "max-w-screen",
219
219
  width !== "fit" && "w-full",
220
220
  width === "full" && "w-full",
221
+ width === "max" && "w-max",
221
222
  centered && "mx-auto",
222
223
  overflowY == "auto" && "overflow-y-auto",
223
224
  overflowY == "hidden" && "overflow-y-hidden",
@@ -3,7 +3,7 @@ import {
3
3
  } from "../chunk-6DONKNDT.js";
4
4
  import {
5
5
  Stack
6
- } from "../chunk-IOSLZ3WW.js";
6
+ } from "../chunk-KXUUKAQM.js";
7
7
  import {
8
8
  Heading3
9
9
  } from "../chunk-J6LETUNM.js";
@@ -585,6 +585,7 @@ var Stack = (_a) => {
585
585
  "max-w-screen",
586
586
  width !== "fit" && "w-full",
587
587
  width === "full" && "w-full",
588
+ width === "max" && "w-max",
588
589
  centered && "mx-auto",
589
590
  overflowY == "auto" && "overflow-y-auto",
590
591
  overflowY == "hidden" && "overflow-y-hidden",
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  Stack
4
- } from "../chunk-IOSLZ3WW.js";
4
+ } from "../chunk-KXUUKAQM.js";
5
5
  import {
6
6
  Heading3
7
7
  } from "../chunk-J6LETUNM.js";
@@ -320,7 +320,8 @@ var InputBase = (_a) => {
320
320
  inputContainerRef,
321
321
  removeBorder,
322
322
  wrapperClassName,
323
- focus
323
+ focus,
324
+ fullWidth = true
324
325
  } = _b, props = __objRest(_b, [
325
326
  "id",
326
327
  "before",
@@ -337,7 +338,8 @@ var InputBase = (_a) => {
337
338
  "inputContainerRef",
338
339
  "removeBorder",
339
340
  "wrapperClassName",
340
- "focus"
341
+ "focus",
342
+ "fullWidth"
341
343
  ]);
342
344
  const attributes = {
343
345
  "data-error": error && !focus || null,
@@ -359,7 +361,7 @@ var InputBase = (_a) => {
359
361
  }
360
362
  }, [selectOnFocus]);
361
363
  const inputBaseClass = (0, import_clsx4.default)(
362
- "w-full",
364
+ fullWidth ? "w-full" : "w-fit",
363
365
  "flex flex-row items-center",
364
366
  "bg-background-action-secondary-normal caret-icon-on-action-secondary-normal",
365
367
  componentGap,
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  InputBase
4
- } from "../chunk-DVXLTLKP.js";
4
+ } from "../chunk-724LJWFR.js";
5
5
  import "../chunk-S5K22XTH.js";
6
6
  import {
7
7
  Icon
@@ -320,7 +320,8 @@ var InputBase = (_a) => {
320
320
  inputContainerRef,
321
321
  removeBorder,
322
322
  wrapperClassName,
323
- focus
323
+ focus,
324
+ fullWidth = true
324
325
  } = _b, props = __objRest(_b, [
325
326
  "id",
326
327
  "before",
@@ -337,7 +338,8 @@ var InputBase = (_a) => {
337
338
  "inputContainerRef",
338
339
  "removeBorder",
339
340
  "wrapperClassName",
340
- "focus"
341
+ "focus",
342
+ "fullWidth"
341
343
  ]);
342
344
  const attributes = {
343
345
  "data-error": error && !focus || null,
@@ -359,7 +361,7 @@ var InputBase = (_a) => {
359
361
  }
360
362
  }, [selectOnFocus]);
361
363
  const inputBaseClass = (0, import_clsx4.default)(
362
- "w-full",
364
+ fullWidth ? "w-full" : "w-fit",
363
365
  "flex flex-row items-center",
364
366
  "bg-background-action-secondary-normal caret-icon-on-action-secondary-normal",
365
367
  componentGap,
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import {
3
3
  Search
4
- } from "../chunk-W3K72ORO.js";
5
- import "../chunk-DVXLTLKP.js";
4
+ } from "../chunk-SGQWENE2.js";
5
+ import "../chunk-724LJWFR.js";
6
6
  import "../chunk-S5K22XTH.js";
7
7
  import "../chunk-IGQVA7SC.js";
8
8
  import "../chunk-RDLEIAQU.js";
@@ -320,7 +320,8 @@ var InputBase = (_a) => {
320
320
  inputContainerRef,
321
321
  removeBorder,
322
322
  wrapperClassName,
323
- focus
323
+ focus,
324
+ fullWidth = true
324
325
  } = _b, props = __objRest(_b, [
325
326
  "id",
326
327
  "before",
@@ -337,7 +338,8 @@ var InputBase = (_a) => {
337
338
  "inputContainerRef",
338
339
  "removeBorder",
339
340
  "wrapperClassName",
340
- "focus"
341
+ "focus",
342
+ "fullWidth"
341
343
  ]);
342
344
  const attributes = {
343
345
  "data-error": error && !focus || null,
@@ -359,7 +361,7 @@ var InputBase = (_a) => {
359
361
  }
360
362
  }, [selectOnFocus]);
361
363
  const inputBaseClass = (0, import_clsx4.default)(
362
- "w-full",
364
+ fullWidth ? "w-full" : "w-fit",
363
365
  "flex flex-row items-center",
364
366
  "bg-background-action-secondary-normal caret-icon-on-action-secondary-normal",
365
367
  componentGap,
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import {
3
3
  Select
4
- } from "../chunk-JIFWUW4M.js";
5
- import "../chunk-DVXLTLKP.js";
4
+ } from "../chunk-2BVSUYXU.js";
5
+ import "../chunk-724LJWFR.js";
6
6
  import "../chunk-S5K22XTH.js";
7
7
  import "../chunk-IGQVA7SC.js";
8
8
  import "../chunk-RDLEIAQU.js";
@@ -357,6 +357,7 @@ var Stack = (_a) => {
357
357
  "max-w-screen",
358
358
  width !== "fit" && "w-full",
359
359
  width === "full" && "w-full",
360
+ width === "max" && "w-max",
360
361
  centered && "mx-auto",
361
362
  overflowY == "auto" && "overflow-y-auto",
362
363
  overflowY == "hidden" && "overflow-y-hidden",
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  Stack
4
- } from "../chunk-IOSLZ3WW.js";
4
+ } from "../chunk-KXUUKAQM.js";
5
5
  import {
6
6
  Label
7
7
  } from "../chunk-S5K22XTH.js";
@@ -312,6 +312,7 @@ var Stack = (_a) => {
312
312
  "max-w-screen",
313
313
  width !== "fit" && "w-full",
314
314
  width === "full" && "w-full",
315
+ width === "max" && "w-max",
315
316
  centered && "mx-auto",
316
317
  overflowY == "auto" && "overflow-y-auto",
317
318
  overflowY == "hidden" && "overflow-y-hidden",