@zidsa/zidmui 2.1.0 → 2.1.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.
@@ -0,0 +1,347 @@
1
+ import '@mui/material';
2
+
3
+ declare module '@mui/material/Button' {
4
+ interface ButtonPropsColorOverrides {
5
+ primaryDark: true;
6
+ primaryLight: true;
7
+ tertiary: true;
8
+ }
9
+ }
10
+
11
+ declare module '@mui/material/IconButton' {
12
+ interface IconButtonPropsSizeOverrides {
13
+ extraSmall: true;
14
+ }
15
+ }
16
+ declare module '@mui/material/Radio' {
17
+ interface RadioPropsSizeOverrides {
18
+ small: true;
19
+ medium: true;
20
+ large: true;
21
+ }
22
+ }
23
+
24
+ declare module '@mui/lab' {
25
+ interface TimelineProps {
26
+ noOppositeContent?: boolean;
27
+ }
28
+ }
29
+
30
+ declare module '@mui/material' {
31
+ interface CustomPalette {
32
+ badge: {
33
+ primary: {
34
+ color: '#8758C6';
35
+ backgroundColor: '#F1EAFF';
36
+ };
37
+ };
38
+ outlined?: {
39
+ outlined?: string;
40
+ outlined_2?: string;
41
+ outlinedDisable?: string;
42
+ };
43
+ tabs: {
44
+ text: {
45
+ secondary: string;
46
+ };
47
+ };
48
+ icon: {
49
+ primary: string;
50
+ secondary: string;
51
+ disabled: string;
52
+ draggable: string;
53
+ };
54
+ _states: {
55
+ focus: string;
56
+ hover: string;
57
+ selected: string;
58
+ focusVisible: string;
59
+ outlinedBorder: string;
60
+ };
61
+
62
+ _components: {
63
+ sliderIndicator: {
64
+ active: string;
65
+ inactive: string;
66
+ background: string;
67
+ };
68
+ cardContent: {
69
+ selected: {
70
+ background: string;
71
+ border: string;
72
+ };
73
+ };
74
+ emptyState: {
75
+ imageBackground: string;
76
+ };
77
+ navbar: {
78
+ wallet: {
79
+ background: string;
80
+ border: string;
81
+ text: string;
82
+ };
83
+ search: {
84
+ searchBorder: string;
85
+ searchBackground: string;
86
+ };
87
+ };
88
+ avatar: {
89
+ fill: string;
90
+ };
91
+ input: {
92
+ _states: {
93
+ hover: string;
94
+ selected: string;
95
+ focusVisible: string;
96
+ };
97
+ outlined: {
98
+ enabledBorder: string;
99
+ hoverBorder: string;
100
+ };
101
+ };
102
+ switch: {
103
+ knobFillEnabled: string;
104
+ slideFill: string;
105
+ knowFillDisabled: string;
106
+ shadow: string;
107
+ color: string;
108
+ background: string;
109
+ primary: {
110
+ activeBackground: string;
111
+ pressedBackground: string;
112
+ shadow: string;
113
+ };
114
+ error: {
115
+ activeBackground: string;
116
+ pressedBackground: string;
117
+ shadow: string;
118
+ };
119
+ };
120
+ chip: {
121
+ desert: string;
122
+ };
123
+ backdrop: {
124
+ fill: string;
125
+ };
126
+ appBar: {
127
+ defaultFill: string;
128
+ };
129
+ alert: {
130
+ error: {
131
+ color: string;
132
+ border: string;
133
+ background: string;
134
+ };
135
+ warning: {
136
+ color: string;
137
+ border: string;
138
+ background: string;
139
+ };
140
+ info: {
141
+ color: string;
142
+ border: string;
143
+ background: string;
144
+ };
145
+ success: {
146
+ color: string;
147
+ border: string;
148
+ background: string;
149
+ };
150
+ };
151
+ stepper: {
152
+ connector: string;
153
+ };
154
+ button: {
155
+ disabledText: string;
156
+ disabledBorder: string;
157
+ primaryDarkText: {
158
+ disabled: string;
159
+ text: string;
160
+ loadingText: string;
161
+ };
162
+ primary: {
163
+ contained?: string;
164
+ hover: string;
165
+ focused: string;
166
+ pressed: string;
167
+ disabled: string;
168
+ border: string;
169
+ text: string;
170
+ loadingText: string;
171
+ };
172
+ secondary: {
173
+ contained?: string;
174
+ hover: string;
175
+ focused: string;
176
+ pressed: string;
177
+ disabled: string;
178
+ border: string;
179
+ text: string;
180
+ loadingText: string;
181
+ };
182
+ tertiary: {
183
+ contained: string;
184
+ hover: string;
185
+ focused: string;
186
+ pressed: string;
187
+ disabled: string;
188
+ text: string;
189
+ outlinedHover: string;
190
+ outlinedText: string;
191
+ loadingText: string;
192
+ };
193
+ error: {
194
+ contained?: string;
195
+ hover: string;
196
+ focused: string;
197
+ pressed: string;
198
+ disabled: string;
199
+ border: string;
200
+ text: string;
201
+ outlinedHover: string;
202
+ outlinedText: string;
203
+ activeBorder: string;
204
+ loadingText: string;
205
+ };
206
+ };
207
+ iconButton: {
208
+ default: {
209
+ hover: string;
210
+ };
211
+ primary: {
212
+ text: string;
213
+ focused: string;
214
+ hover: string;
215
+ focusedIcon: string;
216
+ };
217
+ secondary: {
218
+ text: string;
219
+ focused: string;
220
+ hover: string;
221
+ focusedIcon: string;
222
+ };
223
+ error: {
224
+ text: string;
225
+ focused: string;
226
+ hover: string;
227
+ focusedIcon: string;
228
+ };
229
+ };
230
+ };
231
+ _native: {
232
+ 'scrollbar-bg': string;
233
+ };
234
+ }
235
+
236
+ interface PaletteOptions extends CustomPalette {}
237
+
238
+ interface Palette extends CustomPalette {}
239
+
240
+ //
241
+
242
+ type ColorShadesKey = 50 | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000;
243
+ interface Colors {
244
+ base: {
245
+ white: string;
246
+ neutral: string;
247
+ silver: string;
248
+ black: string;
249
+ };
250
+ primary: { [key in ColorShadesKey]: string };
251
+ secondary: { [key in ColorShadesKey]: string };
252
+ neutral: { [key in ColorShadesKey]: string };
253
+ green: { [key in ColorShadesKey]: string };
254
+ blue: { [key in ColorShadesKey]: string };
255
+ yellow: { [key in ColorShadesKey]: string };
256
+ orange: { [key in ColorShadesKey]: string };
257
+ red: { [key in ColorShadesKey]: string };
258
+ }
259
+
260
+ //
261
+
262
+ interface Palette {
263
+ colors: Colors;
264
+ }
265
+
266
+ interface PaletteOptions {
267
+ colors: Colors;
268
+ }
269
+
270
+ //
271
+ interface TypeText {
272
+ tertiary: string;
273
+ deepGreen: string;
274
+ darkOchre: string;
275
+ contrastText: string;
276
+ primaryContrastTest: string;
277
+ _states: {
278
+ hover: string;
279
+ selected: string;
280
+ focus: string;
281
+ focusVisible: string;
282
+ };
283
+ }
284
+
285
+ interface CommonColors {
286
+ black_states: {
287
+ hover: string;
288
+ selected: string;
289
+ focus: string;
290
+ };
291
+ white_states: {
292
+ main: string;
293
+ focusVisible: string;
294
+ focus: string;
295
+ };
296
+ }
297
+
298
+ interface TypeBackground {
299
+ white: string;
300
+ black: string;
301
+ gray: string;
302
+ gray200: string;
303
+ gray100: string;
304
+ backgroundDisable: string;
305
+ darkBackdrop: string;
306
+ Blur: string;
307
+ green: string;
308
+ yellow: string;
309
+ royal: string;
310
+ mintGreen: string;
311
+ goldenYellow: string;
312
+ lavenderGlow: string;
313
+ royalPurple: string;
314
+ }
315
+
316
+ interface SimplePaletteColorOptions {
317
+ _states?: {
318
+ hover?: string;
319
+ selected?: string;
320
+ focus?: string;
321
+ focusVisible?: string;
322
+ outlinedBorder?: string;
323
+ };
324
+ }
325
+ interface PaletteColor {
326
+ _states?: {
327
+ hover?: string;
328
+ selected?: string;
329
+ focus?: string;
330
+ focusVisible?: string;
331
+ outlinedBorder?: string;
332
+ };
333
+ }
334
+
335
+ interface Theme {
336
+ shape: {
337
+ borderRadius: number;
338
+ standardBorderRadius: number;
339
+ };
340
+ }
341
+ interface ThemeOptions {
342
+ shape?: {
343
+ borderRadius: number;
344
+ standardBorderRadius: number; // Add custom property to options as well
345
+ };
346
+ }
347
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@zidsa/zidmui",
3
3
  "type": "module",
4
- "version": "2.1.0",
4
+ "version": "2.1.1",
5
5
  "description": "Zid MUI shared components and utilities",
6
6
  "author": "Abdulaziz Homaily <a.homaily@gmail.com>",
7
7
  "license": "MIT",