mui-design-system 0.0.29 → 0.0.31

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.
@@ -1,19 +1,19 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  //----------------------------------------------------------------------------------------------
3
3
  // @Components
4
- import { UFTextField } from '../index';
5
- import { UFSelect } from '../index';
6
- import { UFCheckbox } from '../index';
7
- import { UFDatePicker } from '../index';
8
- import { UFTextArea } from '../index';
9
- import { UFCurrency } from '../index';
10
- import { UFMultiSelect } from '../index';
11
- import { UFAutoComplete } from '../index';
12
- import { UFRadio } from '../index';
13
- import { UFMultiCheckbox } from '../index';
14
- import { UFSwitch } from '../index';
15
- import { UFUploader } from '../index';
16
- import { UFTime } from '../index';
4
+ import UFTextField from "./components/UFTextField";
5
+ import UFSelect from "./components/UFSelect";
6
+ import UFCheckbox from "./components/UFCheckbox";
7
+ import UFDatePicker from "./components/UFDatePicker";
8
+ import UFTextArea from "./components/UFTextArea";
9
+ import UFCurrency from "./components/UFCurrency";
10
+ import UFMultiSelect from "./components/UFMultiSelect";
11
+ import UFAutoComplete from "./components/UFAutoComplete";
12
+ import UFRadio from "./components/UFRadio";
13
+ import UFMultiCheckbox from "./components/UFMultiCheckbox";
14
+ import UFSwitch from "./components/UFSwitch";
15
+ import UFUploader from "./components/UFUploader";
16
+ import UFTime from "./components/UFTime";
17
17
  const UseFormInput = ({ form, error, inputVariants, type, ...inputFormProps }) => {
18
18
  switch (type) {
19
19
  case 'radio':
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import "./types/types";
2
- export { customTheme } from "./theme/theme";
2
+ export { themeOptions } from "./theme/theme";
3
3
  export { default as NextCacheProvider } from "./nextjs/NextCacheProvider";
4
4
  export { default as ReactCacheProvider } from "./react/ReactCacheProvider";
5
5
  export * from "./components/index";
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "./types/types";
2
- export { customTheme } from "./theme/theme";
2
+ export { themeOptions } from "./theme/theme";
3
3
  export { default as NextCacheProvider } from "./nextjs/NextCacheProvider";
4
4
  export { default as ReactCacheProvider } from "./react/ReactCacheProvider";
5
5
  export * from "./components/index";
@@ -1,3 +1,4 @@
1
+ import { ThemeOptions } from '@mui/material';
1
2
  type PaletteMode = 'light' | 'dark';
2
- export declare const customTheme: (mode: PaletteMode, isRtl: boolean) => import("@mui/material").Theme;
3
+ export declare const themeOptions: (mode: PaletteMode, isRtl: boolean) => ThemeOptions;
3
4
  export {};
@@ -1,4 +1,3 @@
1
- import { createTheme } from '@mui/material';
2
1
  import { lightPalette } from '../mui/palette/light/lightPalette';
3
2
  import { typography } from '../mui/Typography';
4
3
  import { MuiCssBaseline } from '../mui/mui-css-baseline';
@@ -35,7 +34,7 @@ const getDesignTokens = (mode) => ({
35
34
  mode,
36
35
  ...(mode === 'light' ? lightPalette : darkPalette),
37
36
  });
38
- export const customTheme = (mode, isRtl) => createTheme({
37
+ export const themeOptions = (mode, isRtl) => ({
39
38
  direction: isRtl ? 'rtl' : 'ltr',
40
39
  palette: getDesignTokens(mode),
41
40
  spacing: 4,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mui-design-system",
3
- "version": "0.0.29",
3
+ "version": "0.0.31",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",