@m4l/styles 0.0.15 → 0.0.17

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 (47) hide show
  1. package/index.js +10 -10
  2. package/package.json +1 -1
  3. package/theme/{defaultThemeOptions.364b28b6.js → defaultThemeOptions.d67fe64c.js} +7 -7
  4. package/theme/index.efa44d2d.js +7 -0
  5. package/theme/overrides/M4LExtendedComponents/M4LAccordion.d.ts +53 -0
  6. package/theme/overrides/M4LExtendedComponents/M4LAccountPopover.d.ts +55 -0
  7. package/theme/overrides/M4LExtendedComponents/M4LAppBar.d.ts +164 -0
  8. package/theme/overrides/M4LExtendedComponents/M4LAreasAdmin.d.ts +161 -63
  9. package/theme/overrides/M4LExtendedComponents/M4LAreasViewer.d.ts +1961 -37
  10. package/theme/overrides/M4LExtendedComponents/M4LAvatar.d.ts +15 -0
  11. package/theme/overrides/M4LExtendedComponents/M4LButton.d.ts +8 -12
  12. package/theme/overrides/M4LExtendedComponents/M4LCommonActions.d.ts +10 -0
  13. package/theme/overrides/M4LExtendedComponents/M4LDynamicFilter.d.ts +8 -3
  14. package/theme/overrides/M4LExtendedComponents/M4LMasterDetailLayout.d.ts +34 -0
  15. package/theme/overrides/M4LExtendedComponents/M4LModalDialog.d.ts +913 -0
  16. package/theme/overrides/M4LExtendedComponents/M4LModuleLayout.d.ts +22 -0
  17. package/theme/overrides/M4LExtendedComponents/M4LPaperForm.d.ts +43 -0
  18. package/theme/overrides/M4LExtendedComponents/M4LPeriod.d.ts +99 -0
  19. package/theme/overrides/M4LExtendedComponents/M4LPropertyValue.d.ts +10 -0
  20. package/theme/overrides/M4LExtendedComponents/M4LRHFormProvider.d.ts +13 -0
  21. package/theme/overrides/M4LExtendedComponents/M4LSplitLayout.d.ts +92 -0
  22. package/theme/overrides/M4LExtendedComponents/M4LTab.d.ts +47 -0
  23. package/theme/overrides/M4LExtendedComponents/M4LTooltip.d.ts +26 -0
  24. package/theme/overrides/M4LExtendedComponents/M4LinearProgressIndeterminate.d.ts +56 -0
  25. package/theme/overrides/M4LExtendedComponents/{index.9ef37d1d.js → index.39bae580.js} +1251 -135
  26. package/theme/overrides/M4LRHFComponents/M4LRHFAutocomplete.d.ts +1 -0
  27. package/theme/overrides/M4LRHFComponents/M4LRHFAutocompleteAsync.d.ts +0 -1
  28. package/theme/overrides/M4LRHFComponents/M4LRHFDateTime.d.ts +130 -0
  29. package/theme/overrides/M4LRHFComponents/M4LRHFPeriod.d.ts +10 -0
  30. package/theme/overrides/M4LRHFComponents/M4LRHFTextField.d.ts +16 -0
  31. package/theme/overrides/M4LRHFComponents/M4LRHFUploadImage.d.ts +172 -0
  32. package/theme/overrides/M4LRHFComponents/index.1406e2ed.js +678 -0
  33. package/theme/overrides/MUIComponents/Tabs.d.ts +23 -3
  34. package/theme/overrides/MUIComponents/{index.56660771.js → index.e3d060c3.js} +47 -27
  35. package/theme/overrides/index.2e62f620.js +89 -0
  36. package/theme/{palette.4b477f9b.js → palette.95c4f9c8.js} +17 -17
  37. package/theme/palette.d.ts +4 -4
  38. package/theme/{shadows.b2f38616.js → shadows.354bbb03.js} +1 -1
  39. package/theme/{typography.1db0276b.js → typography.61f909b7.js} +4 -4
  40. package/types/augmentations.d.ts +3 -1
  41. package/utils/{getColorPresets.f3113d85.js → getColorPresets.d73f30ad.js} +1 -1
  42. package/utils/getColorState.bde51cf7.js +159 -0
  43. package/utils/getColorState.d.ts +2 -0
  44. package/theme/index.cd1bedc8.js +0 -7
  45. package/theme/overrides/M4LRHFComponents/index.5f690e33.js +0 -350
  46. package/theme/overrides/index.19dec027.js +0 -70
  47. package/utils/getColorState.456150fd.js +0 -136
@@ -1,350 +0,0 @@
1
- import { alpha as o } from "@mui/system";
2
- import { alpha as e } from "@mui/material/styles";
3
- const r = (t) => ({
4
- M4LRHFTextFieldPassword: {
5
- styleOverrides: {
6
- "&.M4LRHFTextFieldPassword-root": {
7
- width: "100%"
8
- }
9
- }
10
- }
11
- }), l = (t) => ({
12
- M4LRHFTextField: {
13
- styleOverrides: {
14
- "&.M4LRHFTextField-root": {
15
- display: "flex",
16
- flexDirection: "column",
17
- width: "100%",
18
- gap: "4px",
19
- "& .M4LRHFTextField-label": {
20
- color: t.palette.text.secondary,
21
- transition: "all .5s ease"
22
- },
23
- "& .MuiInputBase-root": {
24
- padding: "0px",
25
- "& .MuiInputBase-input": {
26
- color: t.palette.text.secondary,
27
- padding: "0px",
28
- backgroundColor: "transparent",
29
- ...t.typography.body
30
- },
31
- "& .MuiInputAdornment-root": {
32
- margin: "0px",
33
- padding: "0px"
34
- },
35
- "& .M4LIcon-icon": {
36
- backgroundColor: t.palette.text.secondary,
37
- transition: "all .3s ease"
38
- },
39
- "& .MuiOutlinedInput-notchedOutline": {
40
- border: "1px solid",
41
- padding: "4px",
42
- borderColor: t.palette.divider,
43
- borderRadius: "4px",
44
- inset: "0px",
45
- transition: "all .3s ease",
46
- "& legend": {
47
- display: "none"
48
- }
49
- }
50
- },
51
- "&:hover": {
52
- "& .M4LRHFTextField-label": {
53
- color: t.palette.state?.hover
54
- },
55
- "& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
56
- borderColor: t.palette.state?.hover,
57
- boxShadow: `0px 1px 8px ${o(t.palette.primary.main, 0.32)}`
58
- },
59
- "& .MuiInputBase-input": {
60
- color: t.palette.text.primary
61
- },
62
- "& .M4LIcon-icon": {
63
- backgroundColor: t.palette.state?.hover
64
- }
65
- },
66
- "&.M4LRHFTextField-isFocus": {
67
- "& .M4LRHFTextField-label": {
68
- color: t.palette.state?.active
69
- },
70
- "& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
71
- transition: "all .1s ease",
72
- border: "2px solid",
73
- borderColor: t.palette.state?.active,
74
- boxShadow: `0px 1px 8px ${o(t.palette.primary.main, 0.32)}`
75
- },
76
- "& .MuiInputBase-input": {
77
- color: t.palette.text.primary
78
- },
79
- "& .M4LIcon-icon": {
80
- backgroundColor: t.palette.state?.active
81
- }
82
- },
83
- "&.M4LRHFTextField-variantError": {
84
- "& .M4LRHFTextField-label": {
85
- color: t.palette.state?.error.normal
86
- },
87
- "& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
88
- border: "1px solid",
89
- borderColor: t.palette.state?.error.normal
90
- },
91
- "& .MuiInputBase-input": {
92
- color: t.palette.text.primary
93
- },
94
- "& .M4LIcon-icon": {
95
- backgroundColor: t.palette.state?.error.normal
96
- },
97
- "&:hover": {
98
- "& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
99
- boxShadow: t.customShadows?.error
100
- }
101
- },
102
- "&.M4LRHFTextField-isFocus": {
103
- "& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
104
- boxShadow: t.customShadows?.error
105
- }
106
- }
107
- },
108
- "&.M4LRHFTextField-isDisabled": {
109
- "& .M4LRHFTextField-label": {
110
- color: t.palette.text.disabled
111
- },
112
- "& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
113
- border: "1px solid",
114
- borderColor: t.palette.text.disabled,
115
- backgroundColor: t.palette.state?.default,
116
- boxShadow: "none"
117
- },
118
- "& .MuiInputBase-input": {
119
- color: t.palette.text.disabled
120
- },
121
- "& .M4LIcon-icon": {
122
- backgroundColor: t.palette.text.disabled
123
- }
124
- },
125
- "&.M4LRHFTextField-sizeSmall": {
126
- "& .MuiInputBase-input, & .MuiOutlinedInput-notchedOutline, & .M4LRHFTextField-skeleton": {
127
- height: "24px",
128
- padding: "0px 8px"
129
- }
130
- },
131
- "&.M4LRHFTextField-sizeMedium": {
132
- "& .MuiInputBase-input, & .MuiOutlinedInput-notchedOutline, & .M4LRHFTextField-skeleton": {
133
- height: "28px",
134
- padding: "0px 8px"
135
- }
136
- }
137
- }
138
- }
139
- }
140
- }), n = (t) => ({
141
- M4LRHFCheckbox: {
142
- styleOverrides: {
143
- "&.M4LRHFCheckbox-root": {
144
- display: "flex",
145
- flexDirection: "column",
146
- gap: t.spacing(0.5),
147
- ".M4LRHFCheckbox-checkTypography": {
148
- display: "flex",
149
- gap: t.spacing(2),
150
- [t.breakpoints.down("sm")]: {
151
- gap: t.spacing(1),
152
- ...t.typography.paragraph
153
- }
154
- },
155
- "& .MuiTypography-root": {
156
- color: t.palette.text.primary,
157
- ...t.typography.body
158
- },
159
- ".M4LRHFCheckbox-small .MuiButtonBase-root": {
160
- width: "20px",
161
- height: "20px"
162
- },
163
- ".MuiCheckbox-root .MuiSvgIcon-fontSizeSmall": {
164
- width: "16px",
165
- height: "16px"
166
- },
167
- ".M4LRHFCheckbox-medium .MuiButtonBase-root": {
168
- width: "24px",
169
- height: "24px"
170
- },
171
- ".MuiCheckbox-root .MuiSvgIcon-fontSizeMedium": {
172
- width: "20px",
173
- height: "20px"
174
- },
175
- ".MuiButtonBase-root": {
176
- borderRadius: "4px"
177
- },
178
- ".MuiButtonBase-root:hover": {
179
- backgroundColor: t.palette.state?.active12
180
- },
181
- ".Mui-focusVisible": {
182
- border: "1px solid",
183
- borderColor: t.palette.state?.focus
184
- },
185
- ".MuiButtonBase-root:hover .MuiSvgIcon-root": {
186
- fill: t.palette.state?.hover
187
- },
188
- ".M4LRHFCheckbox-checkTypography .MuiTypography-root": {
189
- ...t.typography.body
190
- },
191
- ".M4LRHFCheckbox-stateDisabled .MuiSvgIcon-root": {
192
- fill: t.palette.state?.default
193
- },
194
- ".M4LRHFCheckbox-stateDisabled .MuiTypography-root": {
195
- color: t.palette.text.disabled
196
- },
197
- ".MuiButtonBase-root .Mui-focusVisible:focus-visible": {
198
- outline: "#fff00"
199
- }
200
- }
201
- }
202
- }
203
- }), p = (t) => ({
204
- M4LRHFAutocomplete: {
205
- styleOverrides: {
206
- "&.M4LRHFAutocomplete-root": {
207
- display: "flex",
208
- flexDirection: "column",
209
- width: "100%",
210
- gap: "4px",
211
- "& .M4LRHFAutocomplete-label": {
212
- color: t.palette.text.secondary,
213
- transition: "all .3s ease"
214
- },
215
- "& .MuiAutocomplete-endAdornment": {
216
- top: "unset"
217
- },
218
- "& .MuiInputBase-root": {
219
- padding: "0px",
220
- "& .MuiInputBase-input": {
221
- color: t.palette.text.secondary,
222
- padding: "4px",
223
- backgroundColor: "transparent",
224
- ...t.typography.body
225
- },
226
- "& .MuiInputAdornment-root": {
227
- margin: "0px",
228
- padding: "0px"
229
- },
230
- "& .M4LIcon-icon": {
231
- backgroundColor: t.palette.text.secondary,
232
- transition: "all .3s ease"
233
- },
234
- "& .MuiOutlinedInput-notchedOutline": {
235
- border: "1px solid",
236
- borderColor: t.palette.divider,
237
- borderRadius: "4px",
238
- inset: "0px",
239
- transition: "all .3s ease",
240
- "& legend": {
241
- display: "none"
242
- }
243
- }
244
- },
245
- "&:hover": {
246
- "& .M4LRHFAutocomplete-label": {
247
- color: t.palette.state?.hover
248
- },
249
- "& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
250
- borderColor: t.palette.state?.hover,
251
- boxShadow: `0px 1px 8px ${e(t.palette.primary.main, 0.32)}`
252
- },
253
- "& .MuiInputBase-input": {
254
- color: t.palette.text.primary
255
- },
256
- "& .M4LIcon-icon": {
257
- backgroundColor: t.palette.state?.hover
258
- }
259
- },
260
- "&.M4LRHFAutocomplete-isFocus": {
261
- "& .M4LRHFAutocomplete-label": {
262
- color: t.palette.state?.active
263
- },
264
- "& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
265
- transition: "all .1s ease",
266
- border: "2px solid",
267
- borderColor: t.palette.state?.active,
268
- boxShadow: `0px 1px 8px ${e(t.palette.primary.main, 0.32)}`
269
- },
270
- "& .MuiInputBase-input": {
271
- color: t.palette.text.primary
272
- },
273
- "& .M4LIcon-icon": {
274
- backgroundColor: t.palette.state?.active
275
- }
276
- },
277
- "&.M4LRHFAutocomplete-variantError": {
278
- "& .M4LRHFAutocomplete-label": {
279
- color: t.palette.state?.error.normal
280
- },
281
- "& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
282
- border: "1px solid",
283
- borderColor: t.palette.state?.error.normal
284
- },
285
- "& .MuiInputBase-input": {
286
- color: t.palette.text.primary
287
- },
288
- "& .M4LIcon-icon": {
289
- backgroundColor: t.palette.state?.error.normal
290
- },
291
- "&:hover": {
292
- "& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
293
- boxShadow: t.customShadows?.error
294
- }
295
- },
296
- "&.M4LRHFAutocomplete-isFocus": {
297
- "& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
298
- boxShadow: t.customShadows?.error
299
- }
300
- }
301
- },
302
- "&.M4LRHFAutocomplete-isDisabled": {
303
- "& .M4LRHFAutocomplete-label": {
304
- color: t.palette.text.disabled
305
- },
306
- "& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
307
- border: "1px solid",
308
- borderColor: t.palette.text.disabled,
309
- backgroundColor: t.palette.state?.default,
310
- boxShadow: "none"
311
- },
312
- "& .MuiInputBase-input": {
313
- color: t.palette.text.disabled
314
- },
315
- "& .M4LIcon-icon": {
316
- backgroundColor: t.palette.text.disabled
317
- }
318
- },
319
- "&.M4LRHFAutocomplete-sizeSmall": {
320
- "& .MuiInputBase-input, & .MuiOutlinedInput-notchedOutline, & .M4LRHFAutocomplete-skeleton": {
321
- height: "24px",
322
- padding: "0px 8px"
323
- }
324
- },
325
- "&.M4LRHFAutocomplete-sizeMedium": {
326
- "& .MuiInputBase-input, & .MuiOutlinedInput-notchedOutline, & .M4LRHFAutocomplete-skeleton": {
327
- height: "28px",
328
- padding: "0px 8px"
329
- }
330
- }
331
- }
332
- }
333
- }
334
- }), u = (t) => ({
335
- M4LRHFAutocompleteAsync: {
336
- styleOverrides: {
337
- "&.M4LRHFAutocompleteAsync-root": {
338
- width: "100%",
339
- padding: "4px"
340
- }
341
- }
342
- }
343
- });
344
- export {
345
- l as M,
346
- r as a,
347
- p as b,
348
- u as c,
349
- n as d
350
- };
@@ -1,70 +0,0 @@
1
- import { F as s, T as o, C as r, M as n, L as i, I as L, a as p, R as M, B as c, b as u, c as l, P as d, S as g, d as B, e as b, D as T, A, f as F, g as I, h as f, i as k, j as v, k as C, l as P, m as y, n as R, o as S, p as x, q as D, r as w, s as H, t as j, u as G, v as E, w as O, x as q, y as z, z as N, E as V, G as J } from "./MUIComponents/index.56660771.js";
2
- import { M as K, a as Q, b as U, c as W, d as X, e as Y, f as Z, g as _, h as $, i as t, j as m, k as h, l as e, m as aa, n as sa } from "./M4LExtendedComponents/index.9ef37d1d.js";
3
- import { M as oa, a as ra, b as na, c as ia, d as La } from "./M4LRHFComponents/index.5f690e33.js";
4
- function ua(a) {
5
- return Object.assign(
6
- s(a),
7
- o(a),
8
- r(a),
9
- n(a),
10
- i(a),
11
- L(a),
12
- p(),
13
- M(a),
14
- c(),
15
- u(a),
16
- l(a),
17
- d(a),
18
- g(a),
19
- B(a),
20
- b(a),
21
- T(a),
22
- A(a),
23
- F(a),
24
- I(a),
25
- f(a),
26
- k(a),
27
- v(),
28
- C(),
29
- P(a),
30
- y(a),
31
- R(a),
32
- S(a),
33
- x(a),
34
- D(a),
35
- w(a),
36
- H(a),
37
- j(a),
38
- G(a),
39
- E(a),
40
- O(),
41
- q(a),
42
- z(a),
43
- N(a),
44
- V(a),
45
- K(a),
46
- J(),
47
- Q(a),
48
- oa(a),
49
- ra(),
50
- na(a),
51
- ia(),
52
- U(a),
53
- W(a),
54
- X(),
55
- Y(a),
56
- Z(a),
57
- _(),
58
- $(a),
59
- La(a),
60
- t(a),
61
- m(a),
62
- h(a),
63
- e(a),
64
- aa(a),
65
- sa(a)
66
- );
67
- }
68
- export {
69
- ua as f
70
- };
@@ -1,136 +0,0 @@
1
- import { alpha as a } from "@mui/system";
2
- import "../theme/defaultThemeOptions.364b28b6.js";
3
- import "../theme/shadows.b2f38616.js";
4
- import { P as e, S as r } from "../theme/palette.4b477f9b.js";
5
- import "../theme/typography.1db0276b.js";
6
- import "@mui/material";
7
- import "@mui/material/styles";
8
- const g = (u, l) => {
9
- let t = {};
10
- switch (u) {
11
- case "patronus":
12
- t = {
13
- light: {
14
- active12: a(e?.patronusBlue[50], 0.12),
15
- active: e?.patronusBlue[50],
16
- focus: e?.patronusBlue[70],
17
- hover: e?.patronusBlue[60],
18
- default: a(e?.coolGrey[70], 0.04),
19
- ...r
20
- },
21
- dark: {
22
- active12: a(e?.patronusBlue[50], 0.12),
23
- active: e?.patronusBlue[50],
24
- focus: e?.patronusBlue[30],
25
- hover: e?.patronusBlue[40],
26
- default: a(e?.marbleLight[10], 0.04),
27
- ...r
28
- }
29
- };
30
- break;
31
- case "turqui":
32
- t = {
33
- light: {
34
- active12: a(e?.turquiBlue[50], 0.12),
35
- active: e?.turquiBlue[50],
36
- focus: e?.turquiBlue[70],
37
- hover: e?.turquiBlue[60],
38
- default: a(e?.coolGrey[70], 0.12),
39
- ...r
40
- },
41
- dark: {
42
- active12: a(e?.turquiBlue[50], 0.12),
43
- active: e?.turquiBlue[50],
44
- focus: e?.turquiBlue[30],
45
- hover: e?.turquiBlue[40],
46
- default: a(e?.marbleLight[10], 0.12),
47
- ...r
48
- }
49
- };
50
- break;
51
- case "grass":
52
- t = {
53
- light: {
54
- active12: a(e?.grassGreen[50], 0.12),
55
- active: e?.grassGreen[50],
56
- focus: e?.grassGreen[70],
57
- hover: e?.grassGreen[60],
58
- default: a(e?.coolGrey[70], 0.12),
59
- ...r
60
- },
61
- dark: {
62
- active12: a(e?.grassGreen[50], 0.12),
63
- active: e?.grassGreen[50],
64
- focus: e?.grassGreen[30],
65
- hover: e?.grassGreen[40],
66
- default: a(e?.marbleLight[10], 0.12),
67
- ...r
68
- }
69
- };
70
- break;
71
- case "candy":
72
- t = {
73
- light: {
74
- active12: a(e?.candyRed[50], 0.12),
75
- active: e?.candyRed[50],
76
- focus: e?.candyRed[70],
77
- hover: e?.candyRed[60],
78
- default: a(e?.coolGrey[70], 0.12),
79
- ...r
80
- },
81
- dark: {
82
- active12: a(e?.candyRed[50], 0.12),
83
- active: e?.candyRed[50],
84
- focus: e?.candyRed[30],
85
- hover: e?.candyRed[40],
86
- default: a(e?.marbleLight[10], 0.12),
87
- ...r
88
- }
89
- };
90
- break;
91
- case "blaze":
92
- t = {
93
- light: {
94
- active12: a(e?.blazeOrange[50], 0.12),
95
- active: e?.blazeOrange[50],
96
- focus: e?.blazeOrange[70],
97
- hover: e?.blazeOrange[60],
98
- default: a(e?.coolGrey[70], 0.12),
99
- ...r
100
- },
101
- dark: {
102
- active12: a(e?.blazeOrange[50], 0.12),
103
- active: e?.blazeOrange[50],
104
- focus: e?.blazeOrange[30],
105
- hover: e?.blazeOrange[40],
106
- default: a(e?.marbleLight[10], 0.12),
107
- ...r
108
- }
109
- };
110
- break;
111
- default:
112
- t = {
113
- light: {
114
- active12: a(e?.turquiBlue[50], 0.12),
115
- active: e?.turquiBlue[50],
116
- focus: e?.turquiBlue[70],
117
- hover: e?.turquiBlue[60],
118
- default: a(e?.coolGrey[70], 0.12),
119
- ...r
120
- },
121
- dark: {
122
- active12: a(e?.turquiBlue[50], 0.12),
123
- active: e?.turquiBlue[50],
124
- focus: e?.turquiBlue[30],
125
- hover: e?.turquiBlue[40],
126
- default: a(e?.marbleLight[10], 0.12),
127
- ...r
128
- }
129
- };
130
- break;
131
- }
132
- return l === "light" ? { ...t.light } : { ...t.dark };
133
- };
134
- export {
135
- g
136
- };