@dmsi/wedgekit-react 0.0.45 → 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
@@ -55,6 +55,7 @@ export type InputBaseProps = {
55
55
  removeBorder?: boolean;
56
56
  wrapperClassName?: string;
57
57
  focus?: boolean;
58
+ fullWidth?: boolean; // If true, input takes full width of the container
58
59
  } & InputFormatting &
59
60
  Omit<ComponentProps<"input">, "align" | "id">;
60
61
 
@@ -75,6 +76,7 @@ export const InputBase = ({
75
76
  removeBorder,
76
77
  wrapperClassName,
77
78
  focus,
79
+ fullWidth = true,
78
80
  ...props
79
81
  }: InputBaseProps) => {
80
82
  const attributes = {
@@ -99,7 +101,7 @@ export const InputBase = ({
99
101
  }, [selectOnFocus]);
100
102
 
101
103
  const inputBaseClass = clsx(
102
- "w-full",
104
+ fullWidth ? "w-full" : "w-fit",
103
105
  "flex flex-row items-center",
104
106
  "bg-background-action-secondary-normal caret-icon-on-action-secondary-normal",
105
107
  componentGap,
@@ -24,7 +24,7 @@ type StackProps = {
24
24
  elevation?: Elevation;
25
25
  rounded?: boolean;
26
26
  centered?: boolean;
27
- width?: number | "full" | "fit";
27
+ width?: number | "full" | "fit" | "max";
28
28
  maxWidth?: number;
29
29
  minWidth?: number;
30
30
  height?: number | "full";
@@ -154,9 +154,9 @@ export const Stack = ({
154
154
  className={clsx(
155
155
  "scrollbar-thin",
156
156
  "max-w-screen",
157
-
158
157
  width !== "fit" && "w-full",
159
158
  width === "full" && "w-full",
159
+ width === "max" && "w-max",
160
160
  centered && "mx-auto",
161
161
  overflowY == "auto" && "overflow-y-auto",
162
162
  overflowY == "hidden" && "overflow-y-hidden",