@m4l/graphics 0.1.18 → 0.1.19
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.
- package/.eslintignore +2 -0
- package/.eslintrc.cjs +118 -0
- package/.gitignore +24 -0
- package/.gitlab-ci.yml +15 -0
- package/.prettierignore +3 -0
- package/.prettierrc.json +26 -0
- package/.vscode/settings.json +50 -0
- package/{contexts/LocalesContext/index.3fcfbe02.js → dist/contexts/LocalesContext/index.5b555637.js} +22 -22
- package/{contexts/index.84089632.js → dist/contexts/index.2f4a4040.js} +1 -1
- package/{hooks/index.a0cce694.js → dist/hooks/index.c13bc37e.js} +1 -1
- package/{hooks/useLocales/index.8154a401.js → dist/hooks/useLocales/index.f676279e.js} +1 -1
- package/{index.d.ts → dist/index.d.ts} +1 -0
- package/dist/index.js +55 -0
- package/dist/package.json +34 -0
- package/dist/theme/breakpoints.d.ts +10 -0
- package/{theme/defaultThemeOptions.9b9e7503.js → dist/theme/defaultThemeOptions.b2cdbe59.js} +11 -9
- package/{theme/typography.f5eadf47.js → dist/theme/typography.63fff3ec.js} +1 -1
- package/dist/utils/anchorEl.d.ts +13 -0
- package/dist/utils/index.7ab4fc54.js +159 -0
- package/dist/vendor.3b4b3674.js +27 -0
- package/package.json +49 -7
- package/src/components/ProgressBarStyle/index.tsx +39 -0
- package/src/components/index.ts +3 -0
- package/src/contexts/FormatterContext/index.tsx +131 -0
- package/src/contexts/FormatterContext/types.ts +73 -0
- package/src/contexts/HostThemeContext/index.tsx +85 -0
- package/src/contexts/HostThemeContext/types.ts +16 -0
- package/src/contexts/LocalesContext/helper.ts +67 -0
- package/src/contexts/LocalesContext/index.tsx +152 -0
- package/src/contexts/LocalesContext/types.ts +37 -0
- package/src/contexts/index.ts +15 -0
- package/src/hooks/index.ts +8 -0
- package/src/hooks/useFirstRender/index.ts +17 -0
- package/src/hooks/useFormatter/index.ts +10 -0
- package/src/hooks/useHostTheme/index.ts +10 -0
- package/src/hooks/useIsMountedRef/index.ts +16 -0
- package/src/hooks/useLocales/index.ts +10 -0
- package/src/hooks/useOffSetTop.ts +26 -0
- package/src/hooks/useResponsive/index.ts +44 -0
- package/src/index.ts +25 -0
- package/src/theme/breakpoints.ts +13 -0
- package/src/theme/defaultThemeOptions.ts +42 -0
- package/src/theme/overrides/Accordion.ts +85 -0
- package/src/theme/overrides/Alert.tsx +74 -0
- package/src/theme/overrides/Autocomplete.ts +31 -0
- package/src/theme/overrides/Avatar.ts +29 -0
- package/src/theme/overrides/Backdrop.ts +26 -0
- package/src/theme/overrides/Badge.ts +17 -0
- package/src/theme/overrides/Breadcrumbs.ts +16 -0
- package/src/theme/overrides/Button.ts +62 -0
- package/src/theme/overrides/ButtonGroup.ts +51 -0
- package/src/theme/overrides/Card.ts +36 -0
- package/src/theme/overrides/Checkbox.tsx +54 -0
- package/src/theme/overrides/Chip.tsx +49 -0
- package/src/theme/overrides/ControlLabel.ts +29 -0
- package/src/theme/overrides/CssBaseline.ts +46 -0
- package/src/theme/overrides/CustomIcons.tsx +122 -0
- package/src/theme/overrides/DataGrid.ts +101 -0
- package/src/theme/overrides/Dialog.ts +60 -0
- package/src/theme/overrides/Drawer.ts +30 -0
- package/src/theme/overrides/Fab.ts +40 -0
- package/src/theme/overrides/IconButton.ts +35 -0
- package/src/theme/overrides/Input.ts +94 -0
- package/src/theme/overrides/InputLabel.ts +17 -0
- package/src/theme/overrides/Link.ts +20 -0
- package/src/theme/overrides/List.ts +37 -0
- package/src/theme/overrides/LoadingButton.ts +28 -0
- package/src/theme/overrides/Menu.ts +20 -0
- package/src/theme/overrides/Pagination.ts +38 -0
- package/src/theme/overrides/Paper.ts +27 -0
- package/src/theme/overrides/Popover.ts +16 -0
- package/src/theme/overrides/Progress.ts +27 -0
- package/src/theme/overrides/Radio.ts +21 -0
- package/src/theme/overrides/Rating.tsx +30 -0
- package/src/theme/overrides/Select.tsx +14 -0
- package/src/theme/overrides/Skeleton.ts +19 -0
- package/src/theme/overrides/Slider.ts +31 -0
- package/src/theme/overrides/Stepper.ts +15 -0
- package/src/theme/overrides/SvgIcon.ts +21 -0
- package/src/theme/overrides/Switch.ts +35 -0
- package/src/theme/overrides/Table.ts +95 -0
- package/src/theme/overrides/Tabs.ts +61 -0
- package/src/theme/overrides/Timeline.ts +23 -0
- package/src/theme/overrides/ToggleButton.ts +54 -0
- package/src/theme/overrides/Tooltip.ts +20 -0
- package/src/theme/overrides/TreeView.tsx +25 -0
- package/src/theme/overrides/Typography.ts +18 -0
- package/src/theme/overrides/index.ts +102 -0
- package/src/theme/palette.ts +216 -0
- package/src/theme/shadows.ts +110 -0
- package/src/theme/stretch.ts +10 -0
- package/src/theme/typography.ts +91 -0
- package/src/types/index.ts +9 -0
- package/src/utils/anchorEl.ts +146 -0
- package/src/utils/getColorPresets.ts +91 -0
- package/src/utils/getFontValue.ts +73 -0
- package/src/utils/strings.ts +1 -0
- package/src/vite-env.d.ts +1 -0
- package/tsconfig.json +29 -0
- package/tsconfig.node.json +8 -0
- package/vite.config.ts +234 -0
- package/index.js +0 -53
- package/utils/index.d8b24456.js +0 -107
- /package/{components → dist/components}/ProgressBarStyle/index.d.ts +0 -0
- /package/{components → dist/components}/ProgressBarStyle/index.fb6fd9ed.js +0 -0
- /package/{components → dist/components}/index.80514d59.js +0 -0
- /package/{components → dist/components}/index.d.ts +0 -0
- /package/{contexts → dist/contexts}/FormatterContext/index.92336f4c.js +0 -0
- /package/{contexts → dist/contexts}/FormatterContext/index.d.ts +0 -0
- /package/{contexts → dist/contexts}/FormatterContext/types.d.ts +0 -0
- /package/{contexts → dist/contexts}/HostThemeContext/index.a6a62c70.js +0 -0
- /package/{contexts → dist/contexts}/HostThemeContext/index.d.ts +0 -0
- /package/{contexts → dist/contexts}/HostThemeContext/types.d.ts +0 -0
- /package/{contexts → dist/contexts}/LocalesContext/helper.d.ts +0 -0
- /package/{contexts → dist/contexts}/LocalesContext/index.d.ts +0 -0
- /package/{contexts → dist/contexts}/LocalesContext/types.d.ts +0 -0
- /package/{contexts → dist/contexts}/index.d.ts +0 -0
- /package/{hooks → dist/hooks}/index.d.ts +0 -0
- /package/{hooks → dist/hooks}/useFirstRender/index.1e9b02fb.js +0 -0
- /package/{hooks → dist/hooks}/useFirstRender/index.d.ts +0 -0
- /package/{hooks → dist/hooks}/useFormatter/index.57ac8cca.js +0 -0
- /package/{hooks → dist/hooks}/useFormatter/index.d.ts +0 -0
- /package/{hooks → dist/hooks}/useHostTheme/index.1c8e4ad7.js +0 -0
- /package/{hooks → dist/hooks}/useHostTheme/index.d.ts +0 -0
- /package/{hooks → dist/hooks}/useIsMountedRef/index.d.ts +0 -0
- /package/{hooks → dist/hooks}/useLocales/index.d.ts +0 -0
- /package/{hooks → dist/hooks}/useOffSetTop.d.ts +0 -0
- /package/{hooks → dist/hooks}/useResponsive/index.d.ts +0 -0
- /package/{hooks → dist/hooks}/useResponsive/index.fc5e1b4f.js +0 -0
- /package/{theme → dist/theme}/defaultThemeOptions.d.ts +0 -0
- /package/{theme → dist/theme}/overrides/Accordion.d.ts +0 -0
- /package/{theme → dist/theme}/overrides/Autocomplete.d.ts +0 -0
- /package/{theme → dist/theme}/overrides/Avatar.d.ts +0 -0
- /package/{theme → dist/theme}/overrides/Backdrop.d.ts +0 -0
- /package/{theme → dist/theme}/overrides/Badge.d.ts +0 -0
- /package/{theme → dist/theme}/overrides/Breadcrumbs.d.ts +0 -0
- /package/{theme → dist/theme}/overrides/Button.d.ts +0 -0
- /package/{theme → dist/theme}/overrides/ButtonGroup.d.ts +0 -0
- /package/{theme → dist/theme}/overrides/Card.d.ts +0 -0
- /package/{theme → dist/theme}/overrides/Checkbox.d.ts +0 -0
- /package/{theme → dist/theme}/overrides/ControlLabel.d.ts +0 -0
- /package/{theme → dist/theme}/overrides/CssBaseline.d.ts +0 -0
- /package/{theme → dist/theme}/overrides/DataGrid.d.ts +0 -0
- /package/{theme → dist/theme}/overrides/Dialog.d.ts +0 -0
- /package/{theme → dist/theme}/overrides/Drawer.d.ts +0 -0
- /package/{theme → dist/theme}/overrides/Fab.d.ts +0 -0
- /package/{theme → dist/theme}/overrides/IconButton.d.ts +0 -0
- /package/{theme → dist/theme}/overrides/Input.d.ts +0 -0
- /package/{theme → dist/theme}/overrides/InputLabel.d.ts +0 -0
- /package/{theme → dist/theme}/overrides/Link.d.ts +0 -0
- /package/{theme → dist/theme}/overrides/List.d.ts +0 -0
- /package/{theme → dist/theme}/overrides/LoadingButton.d.ts +0 -0
- /package/{theme → dist/theme}/overrides/Menu.d.ts +0 -0
- /package/{theme → dist/theme}/overrides/Pagination.d.ts +0 -0
- /package/{theme → dist/theme}/overrides/Paper.d.ts +0 -0
- /package/{theme → dist/theme}/overrides/Popover.d.ts +0 -0
- /package/{theme → dist/theme}/overrides/Progress.d.ts +0 -0
- /package/{theme → dist/theme}/overrides/Radio.d.ts +0 -0
- /package/{theme → dist/theme}/overrides/Skeleton.d.ts +0 -0
- /package/{theme → dist/theme}/overrides/Slider.d.ts +0 -0
- /package/{theme → dist/theme}/overrides/Stepper.d.ts +0 -0
- /package/{theme → dist/theme}/overrides/SvgIcon.d.ts +0 -0
- /package/{theme → dist/theme}/overrides/Switch.d.ts +0 -0
- /package/{theme → dist/theme}/overrides/Table.d.ts +0 -0
- /package/{theme → dist/theme}/overrides/Tabs.d.ts +0 -0
- /package/{theme → dist/theme}/overrides/Timeline.d.ts +0 -0
- /package/{theme → dist/theme}/overrides/ToggleButton.d.ts +0 -0
- /package/{theme → dist/theme}/overrides/Tooltip.d.ts +0 -0
- /package/{theme → dist/theme}/overrides/Typography.d.ts +0 -0
- /package/{theme → dist/theme}/overrides/index.d.ts +0 -0
- /package/{theme → dist/theme}/overrides.7958c0ab.js +0 -0
- /package/{theme → dist/theme}/palette.2baf72f5.js +0 -0
- /package/{theme → dist/theme}/palette.d.ts +0 -0
- /package/{theme → dist/theme}/shadows.bf8dc290.js +0 -0
- /package/{theme → dist/theme}/shadows.d.ts +0 -0
- /package/{theme → dist/theme}/stretch.d.ts +0 -0
- /package/{theme → dist/theme}/typography.d.ts +0 -0
- /package/{types → dist/types}/index.d.ts +0 -0
- /package/{utils → dist/utils}/getColorPresets.d.ts +0 -0
- /package/{utils → dist/utils}/getFontValue.d.ts +0 -0
- /package/{utils → dist/utils}/strings.d.ts +0 -0
- /package/{vite-env.d.ts → dist/vite-env.d.ts} +0 -0
package/vite.config.ts
ADDED
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
import react from '@vitejs/plugin-react';
|
|
2
|
+
import { defineConfig } from 'vite';
|
|
3
|
+
import * as path from 'path';
|
|
4
|
+
import dts from 'vite-plugin-dts';
|
|
5
|
+
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
7
|
+
|
|
8
|
+
function manualChunks(id: string, _api: any) {
|
|
9
|
+
//components
|
|
10
|
+
|
|
11
|
+
if (id.includes('Page')) {
|
|
12
|
+
return 'components/Page/index';
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
if (id.includes('ProgressBarStyle')) {
|
|
16
|
+
return 'components/ProgressBarStyle/index';
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
if (id.includes('components')) {
|
|
20
|
+
return 'components/index';
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
//miu_extended
|
|
24
|
+
|
|
25
|
+
if (id.includes('mui_extended')) {
|
|
26
|
+
return 'components/mui_extended/index';
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
//components
|
|
30
|
+
if (id.includes('components')) {
|
|
31
|
+
return 'components/index';
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
//context
|
|
35
|
+
|
|
36
|
+
if (id.includes('HostThemeContext')) {
|
|
37
|
+
return 'contexts/HostThemeContext/index';
|
|
38
|
+
}
|
|
39
|
+
if (id.includes('LocalesContext')) {
|
|
40
|
+
return 'contexts/LocalesContext/index';
|
|
41
|
+
}
|
|
42
|
+
if (id.includes('FormatterContext')) {
|
|
43
|
+
return 'contexts/FormatterContext/index';
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
if (id.includes('contexts')) {
|
|
47
|
+
return 'contexts/index';
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
//hooks
|
|
51
|
+
|
|
52
|
+
if (id.includes('useFirstRender')) {
|
|
53
|
+
return 'hooks/useFirstRender/index';
|
|
54
|
+
}
|
|
55
|
+
if (id.includes('useHostTheme')) {
|
|
56
|
+
return 'hooks/useHostTheme/index';
|
|
57
|
+
}
|
|
58
|
+
if (id.includes('useLocales')) {
|
|
59
|
+
return 'hooks/useLocales/index';
|
|
60
|
+
}
|
|
61
|
+
if (id.includes('useFormatter')) {
|
|
62
|
+
return 'hooks/useFormatter/index';
|
|
63
|
+
}
|
|
64
|
+
if (id.includes('useResponsive')) {
|
|
65
|
+
return 'hooks/useResponsive/index';
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
if (id.includes('hooks')) {
|
|
69
|
+
return 'hooks/index';
|
|
70
|
+
}
|
|
71
|
+
//theme
|
|
72
|
+
if (id.includes('ProgressBarStyle')) {
|
|
73
|
+
return 'components/ProgressBarStyle/index';
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
if (id.includes('palette')) {
|
|
77
|
+
return 'theme/palette';
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
if (id.includes('typography')) {
|
|
81
|
+
return 'theme/typography';
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
if (id.includes('shadows')) {
|
|
85
|
+
return 'theme/shadows';
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
if (id.includes('defaultThemeOptions')) {
|
|
89
|
+
return 'theme/defaultThemeOptions';
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
if (id.includes('overrides')) {
|
|
93
|
+
return 'theme/overrides';
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
//external libraries
|
|
97
|
+
// if (id.includes('react-helmet-async')) {
|
|
98
|
+
// return 'react-helmet-async';
|
|
99
|
+
// }
|
|
100
|
+
// if (id.includes('react-fast-compare')) {
|
|
101
|
+
// return 'react-helmet-async-react-fast-compare';
|
|
102
|
+
// }
|
|
103
|
+
// if (id.includes('shallowequal')) {
|
|
104
|
+
// return 'react-helmet-async-shallowequal';
|
|
105
|
+
// }
|
|
106
|
+
// if (id.includes('invariant')) {
|
|
107
|
+
// return 'react-helmet-async-invariant';
|
|
108
|
+
// }
|
|
109
|
+
|
|
110
|
+
//utils
|
|
111
|
+
|
|
112
|
+
if (id.includes('utils')) {
|
|
113
|
+
return 'utils/index';
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
//node_modules no reconocidos
|
|
117
|
+
if (id.includes('node_modules')) {
|
|
118
|
+
return 'node_modules';
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
// //prop-types no incluidos
|
|
122
|
+
// if (id.includes('prop-types')) {
|
|
123
|
+
// return 'prop-types';
|
|
124
|
+
// }
|
|
125
|
+
|
|
126
|
+
// //react no incluidos
|
|
127
|
+
// if (id.includes('react')) {
|
|
128
|
+
// return 'react';
|
|
129
|
+
// }
|
|
130
|
+
|
|
131
|
+
//commonjs no incluidos
|
|
132
|
+
if (id.includes('commonjs')) {
|
|
133
|
+
return 'commonjs';
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
return 'vendor';
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
const examined_libs = [];
|
|
140
|
+
|
|
141
|
+
const isExternal = (source: string, importer: string | undefined, isResolved: boolean): boolean => {
|
|
142
|
+
const internal_exact_libs = [];
|
|
143
|
+
const external_exact_libs = ['react', 'react/jsx-runtime', '@m4l/core', 'react-helmet-async'];
|
|
144
|
+
const external_parcial_libs = [
|
|
145
|
+
'jsx-runtime',
|
|
146
|
+
'react-dnd',
|
|
147
|
+
'react-router-dom',
|
|
148
|
+
'react-hook-form',
|
|
149
|
+
'date-fns',
|
|
150
|
+
'@mui',
|
|
151
|
+
'@emotion',
|
|
152
|
+
'prop-types',
|
|
153
|
+
];
|
|
154
|
+
|
|
155
|
+
if (internal_exact_libs.findIndex(l => source === l) > -1) {
|
|
156
|
+
return false;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
const isExt =
|
|
160
|
+
external_exact_libs.findIndex(l => source === l) > -1 ||
|
|
161
|
+
external_parcial_libs.findIndex(pl => source.indexOf(pl) > -1) > -1;
|
|
162
|
+
if (isExt) {
|
|
163
|
+
if (examined_libs.findIndex(l => source === l) < 0) {
|
|
164
|
+
console.log(
|
|
165
|
+
'Source: ',
|
|
166
|
+
source,
|
|
167
|
+
' Importer:',
|
|
168
|
+
' isResolved:',
|
|
169
|
+
isResolved,
|
|
170
|
+
' IsExt:',
|
|
171
|
+
isExt,
|
|
172
|
+
);
|
|
173
|
+
examined_libs.push(source);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
return isExt;
|
|
178
|
+
};
|
|
179
|
+
|
|
180
|
+
export default defineConfig({
|
|
181
|
+
server: { https: true, port: 4002 },
|
|
182
|
+
// test: {
|
|
183
|
+
// globals: true,
|
|
184
|
+
// include: ['**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
|
|
185
|
+
// environment: 'jsdom',
|
|
186
|
+
// setupFiles: './src/test/setup.ts',
|
|
187
|
+
// coverage: {
|
|
188
|
+
// all: true,
|
|
189
|
+
// include: ['**/*.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
|
|
190
|
+
// reporter: ['text', 'json', 'html'],
|
|
191
|
+
// },
|
|
192
|
+
// },
|
|
193
|
+
|
|
194
|
+
plugins: [
|
|
195
|
+
dts({
|
|
196
|
+
// insertTypesEntry: true,
|
|
197
|
+
outputDir: './dist',
|
|
198
|
+
beforeWriteFile: (filePath: string, content: string) => {
|
|
199
|
+
return { filePath: filePath.replace('m4l_graphics/src/', ''), content };
|
|
200
|
+
},
|
|
201
|
+
}),
|
|
202
|
+
react(),
|
|
203
|
+
// terser(),
|
|
204
|
+
],
|
|
205
|
+
// mode: 'production',
|
|
206
|
+
build: {
|
|
207
|
+
//manifest: true,
|
|
208
|
+
target: 'esNext', //Compila en esNext teniendo en cuenta que va a ser leida no por el navedado,sino por otros proyectos
|
|
209
|
+
lib: {
|
|
210
|
+
entry: path.resolve(__dirname, 'src/index.ts'),
|
|
211
|
+
name: 'm4l_graphics',
|
|
212
|
+
formats: ['es'],
|
|
213
|
+
fileName: () => `index.js`,
|
|
214
|
+
},
|
|
215
|
+
rollupOptions: {
|
|
216
|
+
external: isExternal,
|
|
217
|
+
|
|
218
|
+
// input: ['src/index.ts'],
|
|
219
|
+
|
|
220
|
+
output: {
|
|
221
|
+
manualChunks,
|
|
222
|
+
exports: 'auto',
|
|
223
|
+
format: 'esm',
|
|
224
|
+
generatedCode: 'es2015',
|
|
225
|
+
|
|
226
|
+
dir: 'dist', // Carpenta donde se genera el bundle
|
|
227
|
+
globals: {
|
|
228
|
+
react: 'react',
|
|
229
|
+
'react/jsx-runtime': 'react/jsx-runtime',
|
|
230
|
+
},
|
|
231
|
+
},
|
|
232
|
+
},
|
|
233
|
+
},
|
|
234
|
+
});
|
package/index.js
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { P as d } from "./components/ProgressBarStyle/index.fb6fd9ed.js";
|
|
2
|
-
import { F as n, a as c } from "./contexts/FormatterContext/index.92336f4c.js";
|
|
3
|
-
import { L as C, a as F, g as h } from "./contexts/LocalesContext/index.3fcfbe02.js";
|
|
4
|
-
import { H as g, a as L } from "./contexts/HostThemeContext/index.a6a62c70.js";
|
|
5
|
-
import { u as H } from "./hooks/useFirstRender/index.1e9b02fb.js";
|
|
6
|
-
import { u as w } from "./hooks/useFormatter/index.57ac8cca.js";
|
|
7
|
-
import { u as S } from "./hooks/useHostTheme/index.1c8e4ad7.js";
|
|
8
|
-
import { u as y, a as z } from "./hooks/index.a0cce694.js";
|
|
9
|
-
import { u as D } from "./hooks/useLocales/index.8154a401.js";
|
|
10
|
-
import { u as I, a as M } from "./hooks/useResponsive/index.fc5e1b4f.js";
|
|
11
|
-
import { d as V } from "./theme/defaultThemeOptions.9b9e7503.js";
|
|
12
|
-
import { c as j, s as q } from "./theme/shadows.bf8dc290.js";
|
|
13
|
-
import { p as E } from "./theme/palette.2baf72f5.js";
|
|
14
|
-
import { C as K, a as Q, c as U, d as W, g as X } from "./utils/index.d8b24456.js";
|
|
15
|
-
import { f as Z } from "./theme/overrides.7958c0ab.js";
|
|
16
|
-
import "@mui/material/styles";
|
|
17
|
-
import "@mui/material";
|
|
18
|
-
import "react/jsx-runtime";
|
|
19
|
-
import "react";
|
|
20
|
-
import "@m4l/core";
|
|
21
|
-
import "@mui/x-date-pickers/AdapterDateFns";
|
|
22
|
-
import "@mui/x-date-pickers";
|
|
23
|
-
import "date-fns/locale/en-US";
|
|
24
|
-
import "@mui/material/useMediaQuery";
|
|
25
|
-
import "./theme/typography.f5eadf47.js";
|
|
26
|
-
export {
|
|
27
|
-
K as Capitalize,
|
|
28
|
-
n as FormatterContext,
|
|
29
|
-
c as FormatterProvider,
|
|
30
|
-
Q as GetFontValue,
|
|
31
|
-
g as HostThemeContext,
|
|
32
|
-
L as HostThemeProvider,
|
|
33
|
-
C as LocalesContext,
|
|
34
|
-
F as LocalesProvider,
|
|
35
|
-
d as ProgressBarStyle,
|
|
36
|
-
U as colorPresets,
|
|
37
|
-
j as customShadows,
|
|
38
|
-
W as defaultPreset,
|
|
39
|
-
V as defaultThemeOptions,
|
|
40
|
-
Z as fnComponentsOverrides,
|
|
41
|
-
X as getColorPresets,
|
|
42
|
-
h as getLocaleFromNetwork,
|
|
43
|
-
E as palette,
|
|
44
|
-
q as shadows,
|
|
45
|
-
H as useFirstRender,
|
|
46
|
-
w as useFormatter,
|
|
47
|
-
S as useHostTheme,
|
|
48
|
-
y as useIsMountedRef,
|
|
49
|
-
D as useLocales,
|
|
50
|
-
z as useOffSetTop,
|
|
51
|
-
I as useResponsive,
|
|
52
|
-
M as useResponsiveDesktop
|
|
53
|
-
};
|
package/utils/index.d8b24456.js
DELETED
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import { useTheme as h } from "@mui/material/styles";
|
|
2
|
-
import { u as m } from "../hooks/useResponsive/index.fc5e1b4f.js";
|
|
3
|
-
import { p as s } from "../theme/palette.2baf72f5.js";
|
|
4
|
-
function u(e) {
|
|
5
|
-
return Math.round(parseFloat(e) * 16);
|
|
6
|
-
}
|
|
7
|
-
function a(e) {
|
|
8
|
-
return `${e / 16}rem`;
|
|
9
|
-
}
|
|
10
|
-
function P({ sm: e, md: t, lg: r }) {
|
|
11
|
-
return {
|
|
12
|
-
"@media (min-width:600px)": {
|
|
13
|
-
fontSize: a(e)
|
|
14
|
-
},
|
|
15
|
-
"@media (min-width:900px)": {
|
|
16
|
-
fontSize: a(t)
|
|
17
|
-
},
|
|
18
|
-
"@media (min-width:1200px)": {
|
|
19
|
-
fontSize: a(r)
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
function f() {
|
|
24
|
-
return [...h().breakpoints.keys].reverse().reduce((r, o) => {
|
|
25
|
-
const i = m("up", o);
|
|
26
|
-
return !r && i ? o : r;
|
|
27
|
-
}, null) || "xs";
|
|
28
|
-
}
|
|
29
|
-
function T(e) {
|
|
30
|
-
const t = h(), r = f(), o = t.breakpoints.up(r === "xl" ? "lg" : r), p = (e === "h1" || e === "h2" || e === "h3" || e === "h4" || e === "h5" || e === "h6") && t.typography[e][o] ? t.typography[e][o] : t.typography[e], c = u(p.fontSize), l = Number(t.typography[e].lineHeight) * c, { fontWeight: g, letterSpacing: d } = t.typography[e];
|
|
31
|
-
return { fontSize: c, lineHeight: l, fontWeight: g, letterSpacing: d };
|
|
32
|
-
}
|
|
33
|
-
const n = [
|
|
34
|
-
{
|
|
35
|
-
name: "default",
|
|
36
|
-
...s.light.primary,
|
|
37
|
-
LightSelected: "#EBF9F1",
|
|
38
|
-
LightSelectedHover: "#D6F2E3",
|
|
39
|
-
DarkSelected: "#142827",
|
|
40
|
-
DarkSelectedHover: "#12342B"
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
name: "purple",
|
|
44
|
-
lighter: "#EBD6FD",
|
|
45
|
-
light: "#B985F4",
|
|
46
|
-
main: "#7635dc",
|
|
47
|
-
dark: "#431A9E",
|
|
48
|
-
darker: "#200A69",
|
|
49
|
-
contrastText: "#fff"
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
name: "cyan",
|
|
53
|
-
lighter: "#D1FFFC",
|
|
54
|
-
light: "#76F2FF",
|
|
55
|
-
main: "#1CCAFF",
|
|
56
|
-
dark: "#0E77B7",
|
|
57
|
-
darker: "#053D7A",
|
|
58
|
-
contrastText: s.light.grey[800]
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
name: "blue",
|
|
62
|
-
lighter: "#D1E9FC",
|
|
63
|
-
light: "#76B0F1",
|
|
64
|
-
main: "#2065D1",
|
|
65
|
-
dark: "#103996",
|
|
66
|
-
darker: "#061B64",
|
|
67
|
-
contrastText: "#fff"
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
name: "orange",
|
|
71
|
-
lighter: "#FEF4D4",
|
|
72
|
-
light: "#FED680",
|
|
73
|
-
main: "#fda92d",
|
|
74
|
-
dark: "#B66816",
|
|
75
|
-
darker: "#793908",
|
|
76
|
-
contrastText: s.light.grey[800]
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
name: "red",
|
|
80
|
-
lighter: "#FFE3D5",
|
|
81
|
-
light: "#FFC1AC",
|
|
82
|
-
main: "#FF3030",
|
|
83
|
-
dark: "#B71833",
|
|
84
|
-
darker: "#7A0930",
|
|
85
|
-
contrastText: "#fff"
|
|
86
|
-
}
|
|
87
|
-
], F = n[0], y = n[1], k = n[2], x = n[3], D = n[4], S = n[5];
|
|
88
|
-
function b(e) {
|
|
89
|
-
return {
|
|
90
|
-
purple: y,
|
|
91
|
-
cyan: k,
|
|
92
|
-
blue: x,
|
|
93
|
-
orange: D,
|
|
94
|
-
red: S,
|
|
95
|
-
default: F
|
|
96
|
-
}[e];
|
|
97
|
-
}
|
|
98
|
-
const z = (e) => e && e[0].toUpperCase() + e.slice(1) || "";
|
|
99
|
-
export {
|
|
100
|
-
z as C,
|
|
101
|
-
T as a,
|
|
102
|
-
n as c,
|
|
103
|
-
F as d,
|
|
104
|
-
b as g,
|
|
105
|
-
a as p,
|
|
106
|
-
P as r
|
|
107
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|