@movable/ui 0.28.4 → 1.0.1

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.
@@ -3,9 +3,17 @@ import { Theme } from '@mui/material/styles';
3
3
  declare const form: {
4
4
  MuiFormControl: {
5
5
  styleOverrides: {
6
- root: {
6
+ root: ({ theme }: {
7
+ theme: Theme;
8
+ }) => {
7
9
  gap: string;
8
10
  minWidth: string;
11
+ '& .MuiFormHelperText-root': {
12
+ margin: number;
13
+ };
14
+ '& .Mui-error + .MuiFormHelperText-root': {
15
+ color: string;
16
+ };
9
17
  };
10
18
  };
11
19
  };
@@ -183,6 +191,9 @@ declare const form: {
183
191
  '& .MuiFilledInput-root.Mui-readOnly': {
184
192
  outline: string;
185
193
  };
194
+ '& .MuiFormHelperText-root': {
195
+ margin: number;
196
+ };
186
197
  };
187
198
  };
188
199
  };
package/lib/theme.d.ts CHANGED
@@ -208,5 +208,15 @@ declare module '@mui/material/Button' {
208
208
  card: true;
209
209
  }
210
210
  }
211
+ declare module '@mui/material/ToggleButton' {
212
+ interface ToggleButtonPropsSizeOverrides {
213
+ 'x-small': true;
214
+ }
215
+ }
216
+ declare module '@mui/material/Icon' {
217
+ interface IconPropsSizeOverrides {
218
+ 'x-small': true;
219
+ }
220
+ }
211
221
  declare const theme: import("@mui/material/styles").Theme;
212
222
  export default theme;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@movable/ui",
3
- "version": "0.28.4",
3
+ "version": "1.0.1",
4
4
  "description": "Movable Ink's shared MUI components and MUI theme for our vite applications",
5
5
  "module": "lib/index.mjs",
6
6
  "types": "lib/index.d.ts",
@@ -1,12 +0,0 @@
1
- import { ToggleButtonGroupProps } from '@mui/material';
2
- type InkSwitcherProps = {
3
- id: string;
4
- toggleButtons: {
5
- value: string;
6
- label?: string;
7
- }[];
8
- ariaLabel?: string;
9
- defaultSelected?: string;
10
- } & ToggleButtonGroupProps;
11
- export declare function InkSwitcher({ id, toggleButtons, ariaLabel, defaultSelected, sx, ...rest }: InkSwitcherProps): import("react/jsx-runtime").JSX.Element;
12
- export {};
@@ -1 +0,0 @@
1
- export { InkSwitcher } from './InkSwitcher';