@m4l/styles 0.0.31 → 0.0.32
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/index.js +37 -37
- package/package.json +1 -1
- package/theme/defaultThemeOptions.b25c825e.js +27 -0
- package/theme/index.34d0fdea.js +1 -0
- package/theme/overrides/M4LExtendedComponents/M4LAccordion.d.ts +22 -15
- package/theme/overrides/M4LExtendedComponents/M4LAccountPopover.d.ts +106 -81
- package/theme/overrides/M4LExtendedComponents/M4LAppBar.d.ts +58 -3
- package/theme/overrides/M4LExtendedComponents/M4LAreasAdmin.d.ts +636 -475
- package/theme/overrides/M4LExtendedComponents/M4LAreasViewer.d.ts +42 -52
- package/theme/overrides/M4LExtendedComponents/M4LAvatar.d.ts +0 -2
- package/theme/overrides/M4LExtendedComponents/M4LBadge.d.ts +5 -0
- package/theme/overrides/M4LExtendedComponents/M4LButton.d.ts +56 -57
- package/theme/overrides/M4LExtendedComponents/M4LCheckBox.d.ts +13 -12
- package/theme/overrides/M4LExtendedComponents/M4LDataGrid.d.ts +14 -6
- package/theme/overrides/M4LExtendedComponents/M4LDynamicFilter.d.ts +78 -87
- package/theme/overrides/M4LExtendedComponents/M4LIconButton.d.ts +2 -2
- package/theme/overrides/M4LExtendedComponents/M4LMFLoader.d.ts +2 -1
- package/theme/overrides/M4LExtendedComponents/M4LMasterDetailLayout.d.ts +13 -2
- package/theme/overrides/M4LExtendedComponents/M4LMenuActions.d.ts +17 -0
- package/theme/overrides/M4LExtendedComponents/M4LModalDialog.d.ts +2 -4
- package/theme/overrides/M4LExtendedComponents/M4LPager.d.ts +0 -2
- package/theme/overrides/M4LExtendedComponents/M4LPaperForm.d.ts +1 -2
- package/theme/overrides/M4LExtendedComponents/M4LPeriod.d.ts +43 -33
- package/theme/overrides/M4LExtendedComponents/M4LPopover.d.ts +12 -0
- package/theme/overrides/M4LExtendedComponents/M4LPropertyValue.d.ts +142 -1
- package/theme/overrides/M4LExtendedComponents/M4LRHFormProvider.d.ts +1 -0
- package/theme/overrides/M4LExtendedComponents/M4LSideBar.d.ts +91 -42
- package/theme/overrides/M4LExtendedComponents/M4LTab.d.ts +3 -0
- package/theme/overrides/M4LExtendedComponents/M4LTabContent.d.ts +1 -0
- package/theme/overrides/M4LExtendedComponents/M4LTabs.d.ts +16 -0
- package/theme/overrides/M4LExtendedComponents/M4LToastContainer.d.ts +29 -0
- package/theme/overrides/M4LExtendedComponents/M4LTooltip.d.ts +0 -4
- package/theme/overrides/M4LExtendedComponents/M4LoadingButton.d.ts +24 -20
- package/theme/overrides/M4LExtendedComponents/M4LoadingError.d.ts +1 -4
- package/theme/overrides/M4LExtendedComponents/{index.1cd7b9f2.js → index.15f2650a.js} +1112 -826
- package/theme/overrides/M4LRHFComponents/M4LRHFAutocomplete.d.ts +102 -4
- package/theme/overrides/M4LRHFComponents/M4LRHFColorPicker.d.ts +107 -0
- package/theme/overrides/M4LRHFComponents/M4LRHFDateTime.d.ts +5 -3
- package/theme/overrides/M4LRHFComponents/M4LRHFTextField.d.ts +5 -0
- package/theme/overrides/M4LRHFComponents/M4LRHFUploadImage.d.ts +2 -1
- package/theme/overrides/M4LRHFComponents/{index.2dbe138a.js → index.e6262889.js} +252 -37
- package/theme/overrides/MUIComponents/{index.f50cd1c7.js → index.1b2b2be2.js} +59 -138
- package/theme/overrides/index.158187f3.js +105 -0
- package/theme/{palette.76ca123c.js → palette.31d770bc.js} +84 -42
- package/theme/palette.d.ts +16 -6
- package/theme/{shadows.1c46a94e.js → shadows.9800d84c.js} +24 -24
- package/theme/typography.b14a8e35.js +122 -0
- package/theme/typography.d.ts +19 -13
- package/types/augmentations.d.ts +1 -1
- package/utils/{getColorPresets.5bb0236e.js → getColorPresets.9fec9cc2.js} +1 -1
- package/utils/getColorState.4350ccb4.js +239 -0
- package/utils/getColorState.d.ts +5 -0
- package/theme/defaultThemeOptions.85da8657.js +0 -30
- package/theme/index.4dffae0a.js +0 -7
- package/theme/overrides/MUIComponents/Tabs.d.ts +0 -903
- package/theme/overrides/index.a465322b.js +0 -104
- package/theme/typography.89adddae.js +0 -124
- package/utils/getColorState.42ed5268.js +0 -208
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { alpha as r } from "@mui/material/styles";
|
|
2
|
-
function
|
|
2
|
+
function F(s, B) {
|
|
3
3
|
return `linear-gradient(to bottom, ${s}, ${B})`;
|
|
4
4
|
}
|
|
5
5
|
const e = {
|
|
@@ -95,7 +95,7 @@ const e = {
|
|
|
95
95
|
10: "#FFD8D8",
|
|
96
96
|
20: "#F59292",
|
|
97
97
|
30: "#F66A6A",
|
|
98
|
-
40: "#
|
|
98
|
+
40: "#F15B50",
|
|
99
99
|
50: "#F71919",
|
|
100
100
|
60: "#D31616",
|
|
101
101
|
70: "#AF1212",
|
|
@@ -127,15 +127,15 @@ const e = {
|
|
|
127
127
|
marbleLight: {
|
|
128
128
|
10: "#FFFFFF",
|
|
129
129
|
20: "#F7FCFC",
|
|
130
|
-
30: "#
|
|
130
|
+
30: "#F4F5F5",
|
|
131
131
|
40: "#F0F4F4",
|
|
132
|
-
50: "#
|
|
132
|
+
50: "#E6E8EA",
|
|
133
133
|
60: "#E1E9EA",
|
|
134
134
|
70: "#E2E7E9",
|
|
135
135
|
80: "#fff0",
|
|
136
136
|
90: "#fff0"
|
|
137
137
|
},
|
|
138
|
-
|
|
138
|
+
onyx: {
|
|
139
139
|
10: "#364040",
|
|
140
140
|
20: "#323B3B",
|
|
141
141
|
30: "#2A3232",
|
|
@@ -145,8 +145,30 @@ const e = {
|
|
|
145
145
|
70: "#090A0A",
|
|
146
146
|
80: "#fff0",
|
|
147
147
|
90: "#fff0"
|
|
148
|
+
},
|
|
149
|
+
mint: {
|
|
150
|
+
10: "#9BB4CA",
|
|
151
|
+
20: "#A1BDD9",
|
|
152
|
+
30: "#A6C5E2",
|
|
153
|
+
40: "#BCD6F0",
|
|
154
|
+
50: "#C8E1F9",
|
|
155
|
+
60: "#BFDBF8",
|
|
156
|
+
70: "#C3DEFE",
|
|
157
|
+
80: "#DFE7F2",
|
|
158
|
+
90: "#F1F2F4"
|
|
159
|
+
},
|
|
160
|
+
oxford: {
|
|
161
|
+
10: "#F7F8F9",
|
|
162
|
+
20: "#DCDFE4",
|
|
163
|
+
30: "#B3B9C4",
|
|
164
|
+
40: "#8590A2",
|
|
165
|
+
50: "#758195",
|
|
166
|
+
60: "#626F86",
|
|
167
|
+
70: "#44546F",
|
|
168
|
+
80: "#2C3E5D",
|
|
169
|
+
90: "#091E42"
|
|
148
170
|
}
|
|
149
|
-
},
|
|
171
|
+
}, d = {
|
|
150
172
|
patronus: {
|
|
151
173
|
4: r(e.patronusBlue[50], 0.08),
|
|
152
174
|
12: r(e.patronusBlue[50], 0.12),
|
|
@@ -218,15 +240,32 @@ const e = {
|
|
|
218
240
|
48: r(e.marbleLight[10], 0.48),
|
|
219
241
|
60: r(e.marbleLight[10], 0.6),
|
|
220
242
|
72: r(e.marbleLight[10], 0.72)
|
|
243
|
+
},
|
|
244
|
+
mint: {
|
|
245
|
+
4: r(e.mint[40], 0.04),
|
|
246
|
+
12: r(e.mint[20], 0.08),
|
|
247
|
+
24: r(e.mint[50], 0.1),
|
|
248
|
+
36: r(e.mint[30], 0.14),
|
|
249
|
+
48: r(e.mint[70], 0.18),
|
|
250
|
+
60: r(e.mint[60], 0.28),
|
|
251
|
+
72: r(e.mint[10], 0.5)
|
|
252
|
+
},
|
|
253
|
+
oxford: {
|
|
254
|
+
4: r(e.oxford[90], 0.32),
|
|
255
|
+
12: r(e.oxford[90], 0.04),
|
|
256
|
+
24: r(e.oxford[90], 0.16),
|
|
257
|
+
36: r(e.oxford[90], 0.31),
|
|
258
|
+
48: r(e.oxford[90], 0.49),
|
|
259
|
+
60: r(e.oxford[90], 0.1)
|
|
221
260
|
}
|
|
222
|
-
},
|
|
261
|
+
}, a = {
|
|
223
262
|
lighter: e.patronusBlue[60],
|
|
224
263
|
light: e.patronusBlue[40],
|
|
225
264
|
main: e.patronusBlue[50],
|
|
226
265
|
dark: e.patronusBlue[30],
|
|
227
266
|
darker: e.patronusBlue[10],
|
|
228
267
|
contrastText: e.marbleLight[10]
|
|
229
|
-
},
|
|
268
|
+
}, c = {
|
|
230
269
|
lighter: "#fff0",
|
|
231
270
|
light: "#fff0",
|
|
232
271
|
main: "#fff0",
|
|
@@ -239,14 +278,14 @@ const e = {
|
|
|
239
278
|
dark: "#fff0",
|
|
240
279
|
darker: "#fff0",
|
|
241
280
|
opacity: r(e.crayonBlue[50], 0.08)
|
|
242
|
-
},
|
|
281
|
+
}, n = {
|
|
243
282
|
lighter: "#fff0",
|
|
244
283
|
light: "#fff0",
|
|
245
284
|
main: e.acidGreen[60],
|
|
246
285
|
dark: "#fff0",
|
|
247
286
|
darker: "#fff0",
|
|
248
287
|
opacity: r(e.acidGreen[60], 0.08)
|
|
249
|
-
},
|
|
288
|
+
}, l = {
|
|
250
289
|
lighter: "#fff0",
|
|
251
290
|
light: "#fff0",
|
|
252
291
|
main: e.middleYellow[60],
|
|
@@ -260,7 +299,7 @@ const e = {
|
|
|
260
299
|
dark: "#fff0",
|
|
261
300
|
darker: "#fff0",
|
|
262
301
|
opacity: r(e.flameRed[40], 0.08)
|
|
263
|
-
},
|
|
302
|
+
}, o = {
|
|
264
303
|
0: "#FFFFFF",
|
|
265
304
|
100: "#F9FAFB",
|
|
266
305
|
200: "#F4F6F8",
|
|
@@ -279,13 +318,13 @@ const e = {
|
|
|
279
318
|
50048: r("#919EAB", 0.48),
|
|
280
319
|
50056: r("#919EAB", 0.56),
|
|
281
320
|
50080: r("#919EAB", 0.8)
|
|
321
|
+
}, E = {
|
|
322
|
+
primary: F(a.light, a.main),
|
|
323
|
+
info: F(t.light, t.main),
|
|
324
|
+
success: F(n.light, n.main),
|
|
325
|
+
warning: F(l.light, l.main),
|
|
326
|
+
error: F(i.light, i.main)
|
|
282
327
|
}, u = {
|
|
283
|
-
primary: a(o.light, o.main),
|
|
284
|
-
info: a(t.light, t.main),
|
|
285
|
-
success: a(l.light, l.main),
|
|
286
|
-
warning: a(n.light, n.main),
|
|
287
|
-
error: a(i.light, i.main)
|
|
288
|
-
}, g = {
|
|
289
328
|
violet: ["#826AF9", "#9E86FF", "#D0AEFF", "#F7D2FF"],
|
|
290
329
|
blue: ["#2D99FF", "#83CFFF", "#A5F3FF", "#CCFAFF"],
|
|
291
330
|
green: ["#2CD9C5", "#60F1C8", "#A4F7CC", "#C0F2DC"],
|
|
@@ -294,40 +333,40 @@ const e = {
|
|
|
294
333
|
}, A = {
|
|
295
334
|
normal: e.crayonBlue[50],
|
|
296
335
|
hover: e.crayonBlue[70]
|
|
297
|
-
},
|
|
336
|
+
}, g = {
|
|
298
337
|
normal: e.acidGreen[60],
|
|
299
338
|
hover: e.acidGreen[70]
|
|
300
339
|
}, C = {
|
|
301
340
|
normal: e.flameRed[40],
|
|
302
341
|
hover: e.flameRed[60]
|
|
303
|
-
},
|
|
342
|
+
}, m = {
|
|
304
343
|
normal: e.middleYellow[60],
|
|
305
344
|
hover: e.middleYellow[70]
|
|
306
|
-
},
|
|
345
|
+
}, D = {
|
|
307
346
|
default: r(e.coolGrey[50], 0.24),
|
|
308
347
|
transition: r(e.coolGrey[50], 0.08)
|
|
309
|
-
},
|
|
348
|
+
}, b = {
|
|
310
349
|
info: { ...A },
|
|
311
|
-
success: { ...
|
|
350
|
+
success: { ...g },
|
|
312
351
|
error: { ...C },
|
|
313
|
-
warning: { ...
|
|
314
|
-
skeleton: { ...
|
|
352
|
+
warning: { ...m },
|
|
353
|
+
skeleton: { ...D }
|
|
315
354
|
}, f = {
|
|
316
355
|
common: { black: "#000", white: "#fff" },
|
|
317
|
-
primary: { ...
|
|
356
|
+
primary: { ...a },
|
|
318
357
|
state: {
|
|
319
|
-
...
|
|
358
|
+
...b
|
|
320
359
|
},
|
|
321
360
|
patronus: { ...e },
|
|
322
|
-
opacity: { ...
|
|
323
|
-
secondary: { ...
|
|
361
|
+
opacity: { ...d },
|
|
362
|
+
secondary: { ...c, contrastText: "#fff" },
|
|
324
363
|
info: { ...t, contrastText: "#fff" },
|
|
325
|
-
success: { ...
|
|
326
|
-
warning: { ...
|
|
364
|
+
success: { ...n, contrastText: o[800] },
|
|
365
|
+
warning: { ...l, contrastText: o[800] },
|
|
327
366
|
error: { ...i, contrastText: "#fff" },
|
|
328
|
-
grey:
|
|
329
|
-
gradients:
|
|
330
|
-
chart:
|
|
367
|
+
grey: o,
|
|
368
|
+
gradients: E,
|
|
369
|
+
chart: u,
|
|
331
370
|
action: {
|
|
332
371
|
hoverOpacity: 0.08,
|
|
333
372
|
disabledOpacity: 0.48
|
|
@@ -337,15 +376,16 @@ const e = {
|
|
|
337
376
|
...f,
|
|
338
377
|
mode: "light",
|
|
339
378
|
text: {
|
|
340
|
-
primary: e.
|
|
379
|
+
primary: e.onyx[10],
|
|
341
380
|
secondary: e.coolGrey[60],
|
|
342
|
-
disabled: e.
|
|
381
|
+
disabled: e.oxford[30]
|
|
343
382
|
},
|
|
344
383
|
background: {
|
|
345
384
|
paper: "#fff0",
|
|
346
|
-
default: e.marbleLight[
|
|
347
|
-
neutral: e.marbleLight[
|
|
348
|
-
background: e.marbleLight[
|
|
385
|
+
default: e.marbleLight[10],
|
|
386
|
+
neutral: e.marbleLight[40],
|
|
387
|
+
background: e.marbleLight[60],
|
|
388
|
+
header: e.marbleLight[30]
|
|
349
389
|
},
|
|
350
390
|
divider: e.coolGrey[20],
|
|
351
391
|
grid: { sectionHeader: "#F6F7F9", divider: "#EDEFF2", rowHover: "#FAFBFC" }
|
|
@@ -360,16 +400,18 @@ const e = {
|
|
|
360
400
|
},
|
|
361
401
|
background: {
|
|
362
402
|
paper: "#fff0",
|
|
363
|
-
default: e.
|
|
364
|
-
neutral: e.
|
|
365
|
-
background: e.
|
|
403
|
+
default: e.onyx[40],
|
|
404
|
+
neutral: e.onyx[50],
|
|
405
|
+
background: e.onyx[60],
|
|
406
|
+
header: e.onyx[30]
|
|
366
407
|
},
|
|
367
408
|
divider: e.coolGrey[80],
|
|
368
409
|
grid: { sectionHeader: "#29313A", divider: "#3E464F", rowHover: "#1F262F" }
|
|
369
410
|
}
|
|
370
411
|
};
|
|
371
412
|
export {
|
|
413
|
+
d as O,
|
|
372
414
|
e as P,
|
|
373
|
-
|
|
415
|
+
b as S,
|
|
374
416
|
y as p
|
|
375
417
|
};
|
package/theme/palette.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare type ColorSchema = 'primary' | 'secondary' | 'info' | 'success' | 'warning' | 'error';
|
|
2
|
-
export declare type PatronusColors = 'patronusBlue' | 'crayonBlue' | 'middleYellow' | 'acidGreen' | 'grassGreen' | 'desertBeige' | 'turquiBlue' | 'blazeOrange' | 'flameRed' | 'coolGrey' | 'brown' | 'marbleLight' | '
|
|
3
|
-
export declare type PatronusOpacityColors = 'patronus' | 'turqui' | 'grass' | 'brown' | 'beige' | 'orange' | 'cool' | 'marbel';
|
|
2
|
+
export declare type PatronusColors = 'patronusBlue' | 'crayonBlue' | 'middleYellow' | 'acidGreen' | 'grassGreen' | 'desertBeige' | 'turquiBlue' | 'blazeOrange' | 'flameRed' | 'coolGrey' | 'brown' | 'marbleLight' | 'onyx' | 'mint' | 'oxford';
|
|
3
|
+
export declare type PatronusOpacityColors = 'patronus' | 'turqui' | 'grass' | 'brown' | 'beige' | 'orange' | 'cool' | 'marbel' | 'mint' | 'oxford';
|
|
4
4
|
export interface PatronusColorOptions {
|
|
5
5
|
10: string;
|
|
6
6
|
20: string;
|
|
@@ -18,8 +18,8 @@ export interface PatronusOpacityOptions {
|
|
|
18
18
|
24: string;
|
|
19
19
|
36: string;
|
|
20
20
|
48: string;
|
|
21
|
-
60
|
|
22
|
-
72
|
|
21
|
+
60?: string;
|
|
22
|
+
72?: string;
|
|
23
23
|
}
|
|
24
24
|
export declare type PatronusConstantColors = Record<PatronusColors, PatronusColorOptions>;
|
|
25
25
|
export declare const PATRONUSCOLORS: PatronusConstantColors;
|
|
@@ -87,6 +87,7 @@ export declare const palette: {
|
|
|
87
87
|
readonly default: string;
|
|
88
88
|
readonly neutral: string;
|
|
89
89
|
readonly background: string;
|
|
90
|
+
readonly header: string;
|
|
90
91
|
};
|
|
91
92
|
readonly divider: string;
|
|
92
93
|
readonly grid: {
|
|
@@ -141,10 +142,14 @@ export declare const palette: {
|
|
|
141
142
|
coolGrey: PatronusColorOptions;
|
|
142
143
|
brown: PatronusColorOptions;
|
|
143
144
|
marbleLight: PatronusColorOptions;
|
|
144
|
-
|
|
145
|
+
onyx: PatronusColorOptions;
|
|
146
|
+
mint: PatronusColorOptions;
|
|
147
|
+
oxford: PatronusColorOptions;
|
|
145
148
|
};
|
|
146
149
|
readonly opacity: {
|
|
147
150
|
brown: PatronusOpacityOptions;
|
|
151
|
+
mint: PatronusOpacityOptions;
|
|
152
|
+
oxford: PatronusOpacityOptions;
|
|
148
153
|
patronus: PatronusOpacityOptions;
|
|
149
154
|
turqui: PatronusOpacityOptions;
|
|
150
155
|
grass: PatronusOpacityOptions;
|
|
@@ -248,6 +253,7 @@ export declare const palette: {
|
|
|
248
253
|
readonly default: string;
|
|
249
254
|
readonly neutral: string;
|
|
250
255
|
readonly background: string;
|
|
256
|
+
readonly header: string;
|
|
251
257
|
};
|
|
252
258
|
readonly divider: string;
|
|
253
259
|
readonly grid: {
|
|
@@ -302,10 +308,14 @@ export declare const palette: {
|
|
|
302
308
|
coolGrey: PatronusColorOptions;
|
|
303
309
|
brown: PatronusColorOptions;
|
|
304
310
|
marbleLight: PatronusColorOptions;
|
|
305
|
-
|
|
311
|
+
onyx: PatronusColorOptions;
|
|
312
|
+
mint: PatronusColorOptions;
|
|
313
|
+
oxford: PatronusColorOptions;
|
|
306
314
|
};
|
|
307
315
|
readonly opacity: {
|
|
308
316
|
brown: PatronusOpacityOptions;
|
|
317
|
+
mint: PatronusOpacityOptions;
|
|
318
|
+
oxford: PatronusOpacityOptions;
|
|
309
319
|
patronus: PatronusOpacityOptions;
|
|
310
320
|
turqui: PatronusOpacityOptions;
|
|
311
321
|
grass: PatronusOpacityOptions;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { alpha as
|
|
2
|
-
import { p as e, P as r } from "./palette.
|
|
3
|
-
const
|
|
4
|
-
const p =
|
|
1
|
+
import { alpha as o } from "@mui/material/styles";
|
|
2
|
+
import { p as e, P as r } from "./palette.31d770bc.js";
|
|
3
|
+
const a = e.light.grey[500], s = "#000000", n = (t) => {
|
|
4
|
+
const p = o(t, 0.2), x = o(t, 0.14), $ = o(t, 0.12);
|
|
5
5
|
return [
|
|
6
6
|
"none",
|
|
7
7
|
`0px 2px 1px -1px ${p},0px 1px 1px 0px ${x},0px 1px 3px 0px ${$}`,
|
|
@@ -31,39 +31,39 @@ const s = e.light.grey[500], n = "#000000", o = (t) => {
|
|
|
31
31
|
];
|
|
32
32
|
}, i = (t) => {
|
|
33
33
|
const p = {
|
|
34
|
-
info: `0px 2px 8px 0px ${
|
|
35
|
-
secondary: `0px 2px 8px 0px ${
|
|
36
|
-
success: `0px 2px 8px 0px ${
|
|
37
|
-
warning: `0px 2px 8px 0px ${
|
|
38
|
-
error: `0px 2px 8px 0px ${
|
|
39
|
-
card: `0 0 2px 0 ${
|
|
34
|
+
info: `0px 2px 8px 0px ${o(r.patronusBlue[50], 0.2)}`,
|
|
35
|
+
secondary: `0px 2px 8px 0px ${o(e.light.secondary.main, 0.24)}`,
|
|
36
|
+
success: `0px 2px 8px 0px ${o(r.acidGreen[50], 0.2)}`,
|
|
37
|
+
warning: `0px 2px 8px 0px ${o(r.middleYellow[50], 0.2)}`,
|
|
38
|
+
error: `0px 2px 8px 0px ${o(r.flameRed[50], 0.2)}`,
|
|
39
|
+
card: `0 0 2px 0 ${o(e.light.grey[500], 0.2)}, 0 12px 24px -4px ${o(
|
|
40
40
|
e.light.grey[500],
|
|
41
41
|
0.12
|
|
42
42
|
)}`,
|
|
43
|
-
dialog: `-40px 40px 80px -8px ${
|
|
44
|
-
dropdown: `0 0 2px 0 ${
|
|
43
|
+
dialog: `-40px 40px 80px -8px ${o(e.light.common.black, 0.24)}`,
|
|
44
|
+
dropdown: `0 0 2px 0 ${o(e.light.grey[500], 0.24)}, -20px 20px 40px -4px ${o(
|
|
45
45
|
e.light.grey[500],
|
|
46
46
|
0.24
|
|
47
47
|
)}`
|
|
48
48
|
};
|
|
49
49
|
return t === "light" ? {
|
|
50
|
-
z1: `0px 1px 2px ${
|
|
51
|
-
z2: `0px 2px 2px 1px ${
|
|
52
|
-
z3: `0px 4px 8px ${
|
|
53
|
-
z4: `0px 8px 16px 1px ${
|
|
50
|
+
z1: `0px 1px 2px ${o(r.coolGrey[70], 0.12)}`,
|
|
51
|
+
z2: `0px 2px 2px 1px ${o(r.coolGrey[70], 0.12)}`,
|
|
52
|
+
z3: `0px 4px 8px ${o(r.coolGrey[70], 0.16)}`,
|
|
53
|
+
z4: `0px 8px 16px 1px ${o(r.coolGrey[70], 0.16)}`,
|
|
54
54
|
...p
|
|
55
55
|
} : {
|
|
56
|
-
z1: `0px 1px 2px ${
|
|
57
|
-
z2: `0px 2px 2px 1px ${
|
|
58
|
-
z3: `0px 4px 8px 1px ${
|
|
59
|
-
z4: `0px 8px 16px 4px ${
|
|
56
|
+
z1: `0px 1px 2px ${o(r.onyx[50], 0.4)}`,
|
|
57
|
+
z2: `0px 2px 2px 1px ${o(r.onyx[50], 0.4)}`,
|
|
58
|
+
z3: `0px 4px 8px 1px ${o(r.onyx[60], 0.4)}`,
|
|
59
|
+
z4: `0px 8px 16px 4px ${o(r.onyx[60], 0.4)}`,
|
|
60
60
|
...p
|
|
61
61
|
};
|
|
62
|
-
},
|
|
63
|
-
light:
|
|
64
|
-
dark:
|
|
62
|
+
}, g = {
|
|
63
|
+
light: n(a),
|
|
64
|
+
dark: n(s)
|
|
65
65
|
};
|
|
66
66
|
export {
|
|
67
67
|
i as c,
|
|
68
|
-
|
|
68
|
+
g as s
|
|
69
69
|
};
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { r as e, p as t } from "../utils/getFontValue.88831637.js";
|
|
2
|
+
const i = "Segoe UI, Poppins, sans-serif", g = {
|
|
3
|
+
fontFamily: i,
|
|
4
|
+
fontWeightRegular: 400,
|
|
5
|
+
fontWeightMedium: 600,
|
|
6
|
+
fontWeightBold: 700,
|
|
7
|
+
h1: {
|
|
8
|
+
fontWeight: 600,
|
|
9
|
+
lineHeight: 1.5,
|
|
10
|
+
...e({ sm: 38, md: 40, lg: 40 })
|
|
11
|
+
},
|
|
12
|
+
h2: {
|
|
13
|
+
fontWeight: 600,
|
|
14
|
+
lineHeight: 1,
|
|
15
|
+
...e({ sm: 40, md: 44, lg: 48 })
|
|
16
|
+
},
|
|
17
|
+
h3: {
|
|
18
|
+
fontWeight: 600,
|
|
19
|
+
lineHeight: 1.5,
|
|
20
|
+
...e({ sm: 30, md: 32, lg: 32 })
|
|
21
|
+
},
|
|
22
|
+
h4: {
|
|
23
|
+
fontWeight: 600,
|
|
24
|
+
lineHeight: 1.5,
|
|
25
|
+
...e({ sm: 20, md: 24, lg: 24 })
|
|
26
|
+
},
|
|
27
|
+
h5: {
|
|
28
|
+
fontWeight: 500,
|
|
29
|
+
lineHeight: "28px",
|
|
30
|
+
letterSpacing: "-0.01em",
|
|
31
|
+
...e({ sm: 22, md: 24, lg: 24 })
|
|
32
|
+
},
|
|
33
|
+
h6: {
|
|
34
|
+
fontWeight: 500,
|
|
35
|
+
lineHeight: "24px",
|
|
36
|
+
letterSpacing: "-0.08em",
|
|
37
|
+
...e({ sm: 18, md: 18, lg: 18 })
|
|
38
|
+
},
|
|
39
|
+
subtitle: {
|
|
40
|
+
fontWeight: 400,
|
|
41
|
+
lineHeight: "20px",
|
|
42
|
+
letterSpacing: "-0.006em",
|
|
43
|
+
...e({ sm: 18, md: 15, lg: 15 })
|
|
44
|
+
},
|
|
45
|
+
subtitleDens: {
|
|
46
|
+
fontWeight: 600,
|
|
47
|
+
lineHeight: "24px",
|
|
48
|
+
letterSpacing: "-0.006em",
|
|
49
|
+
...e({ sm: 18, md: 15, lg: 15 })
|
|
50
|
+
},
|
|
51
|
+
paragraph: {
|
|
52
|
+
fontWeight: 400,
|
|
53
|
+
lineHeight: "16px",
|
|
54
|
+
letterSpacing: "-0.003em",
|
|
55
|
+
...e({ sm: 16, md: 13, lg: 13 })
|
|
56
|
+
},
|
|
57
|
+
paragraphDens: {
|
|
58
|
+
fontWeight: 600,
|
|
59
|
+
lineHeight: "20px",
|
|
60
|
+
letterSpacing: "-0.003em",
|
|
61
|
+
...e({ sm: 16, md: 13, lg: 13 })
|
|
62
|
+
},
|
|
63
|
+
subtitle1: {
|
|
64
|
+
fontWeight: 600,
|
|
65
|
+
lineHeight: 1.5,
|
|
66
|
+
fontSize: t(14)
|
|
67
|
+
},
|
|
68
|
+
subtitle2: {
|
|
69
|
+
fontWeight: 600,
|
|
70
|
+
lineHeight: 1.5,
|
|
71
|
+
fontSize: t(12)
|
|
72
|
+
},
|
|
73
|
+
body: {
|
|
74
|
+
fontWeight: 400,
|
|
75
|
+
lineHeight: "16px",
|
|
76
|
+
...e({ sm: 14, md: 11, lg: 11 })
|
|
77
|
+
},
|
|
78
|
+
bodyDens: {
|
|
79
|
+
fontWeight: 600,
|
|
80
|
+
lineHeight: "16px",
|
|
81
|
+
...e({ sm: 14, md: 11, lg: 11 })
|
|
82
|
+
},
|
|
83
|
+
body0: {
|
|
84
|
+
lineHeight: 1.5,
|
|
85
|
+
fontWeight: 400,
|
|
86
|
+
fontSize: t(16)
|
|
87
|
+
},
|
|
88
|
+
body1: {
|
|
89
|
+
lineHeight: 1.5,
|
|
90
|
+
fontWeight: 400,
|
|
91
|
+
fontSize: t(14)
|
|
92
|
+
},
|
|
93
|
+
body2: {
|
|
94
|
+
lineHeight: 1.5,
|
|
95
|
+
fontWeight: 400,
|
|
96
|
+
fontSize: t(12)
|
|
97
|
+
},
|
|
98
|
+
caption: {
|
|
99
|
+
lineHeight: 1.5,
|
|
100
|
+
fontSize: t(11)
|
|
101
|
+
},
|
|
102
|
+
overline: {
|
|
103
|
+
fontWeight: 700,
|
|
104
|
+
lineHeight: 1.5,
|
|
105
|
+
fontSize: t(12),
|
|
106
|
+
textTransform: "uppercase"
|
|
107
|
+
},
|
|
108
|
+
button: {
|
|
109
|
+
fontWeight: 700,
|
|
110
|
+
lineHeight: 24 / 14,
|
|
111
|
+
fontSize: t(14),
|
|
112
|
+
textTransform: "capitalize"
|
|
113
|
+
},
|
|
114
|
+
action: {
|
|
115
|
+
fontWeight: 600,
|
|
116
|
+
lineHeight: "16px",
|
|
117
|
+
...e({ sm: 14, md: 12, lg: 12 })
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
export {
|
|
121
|
+
g as t
|
|
122
|
+
};
|
package/theme/typography.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export interface TypographyVariants {
|
|
|
15
15
|
action: FontProps;
|
|
16
16
|
}
|
|
17
17
|
export declare const typography: {
|
|
18
|
-
readonly fontFamily: "Poppins, sans-serif";
|
|
18
|
+
readonly fontFamily: "Segoe UI, Poppins, sans-serif";
|
|
19
19
|
readonly fontWeightRegular: 400;
|
|
20
20
|
readonly fontWeightMedium: 600;
|
|
21
21
|
readonly fontWeightBold: 700;
|
|
@@ -81,8 +81,9 @@ export declare const typography: {
|
|
|
81
81
|
readonly '@media (min-width:1200px)': {
|
|
82
82
|
fontSize: string;
|
|
83
83
|
};
|
|
84
|
-
readonly fontWeight:
|
|
85
|
-
readonly lineHeight:
|
|
84
|
+
readonly fontWeight: 500;
|
|
85
|
+
readonly lineHeight: "28px";
|
|
86
|
+
readonly letterSpacing: "-0.01em";
|
|
86
87
|
};
|
|
87
88
|
readonly h6: {
|
|
88
89
|
readonly '@media (min-width:0px)': {
|
|
@@ -94,8 +95,9 @@ export declare const typography: {
|
|
|
94
95
|
readonly '@media (min-width:1200px)': {
|
|
95
96
|
fontSize: string;
|
|
96
97
|
};
|
|
97
|
-
readonly fontWeight:
|
|
98
|
-
readonly lineHeight:
|
|
98
|
+
readonly fontWeight: 500;
|
|
99
|
+
readonly lineHeight: "24px";
|
|
100
|
+
readonly letterSpacing: "-0.08em";
|
|
99
101
|
};
|
|
100
102
|
readonly subtitle: {
|
|
101
103
|
readonly '@media (min-width:0px)': {
|
|
@@ -108,7 +110,8 @@ export declare const typography: {
|
|
|
108
110
|
fontSize: string;
|
|
109
111
|
};
|
|
110
112
|
readonly fontWeight: 400;
|
|
111
|
-
readonly lineHeight:
|
|
113
|
+
readonly lineHeight: "20px";
|
|
114
|
+
readonly letterSpacing: "-0.006em";
|
|
112
115
|
};
|
|
113
116
|
readonly subtitleDens: {
|
|
114
117
|
readonly '@media (min-width:0px)': {
|
|
@@ -121,7 +124,8 @@ export declare const typography: {
|
|
|
121
124
|
fontSize: string;
|
|
122
125
|
};
|
|
123
126
|
readonly fontWeight: 600;
|
|
124
|
-
readonly lineHeight:
|
|
127
|
+
readonly lineHeight: "24px";
|
|
128
|
+
readonly letterSpacing: "-0.006em";
|
|
125
129
|
};
|
|
126
130
|
readonly paragraph: {
|
|
127
131
|
readonly '@media (min-width:0px)': {
|
|
@@ -134,7 +138,8 @@ export declare const typography: {
|
|
|
134
138
|
fontSize: string;
|
|
135
139
|
};
|
|
136
140
|
readonly fontWeight: 400;
|
|
137
|
-
readonly lineHeight:
|
|
141
|
+
readonly lineHeight: "16px";
|
|
142
|
+
readonly letterSpacing: "-0.003em";
|
|
138
143
|
};
|
|
139
144
|
readonly paragraphDens: {
|
|
140
145
|
readonly '@media (min-width:0px)': {
|
|
@@ -147,7 +152,8 @@ export declare const typography: {
|
|
|
147
152
|
fontSize: string;
|
|
148
153
|
};
|
|
149
154
|
readonly fontWeight: 600;
|
|
150
|
-
readonly lineHeight:
|
|
155
|
+
readonly lineHeight: "20px";
|
|
156
|
+
readonly letterSpacing: "-0.003em";
|
|
151
157
|
};
|
|
152
158
|
readonly subtitle1: {
|
|
153
159
|
readonly fontWeight: 600;
|
|
@@ -170,7 +176,7 @@ export declare const typography: {
|
|
|
170
176
|
fontSize: string;
|
|
171
177
|
};
|
|
172
178
|
readonly fontWeight: 400;
|
|
173
|
-
readonly lineHeight:
|
|
179
|
+
readonly lineHeight: "16px";
|
|
174
180
|
};
|
|
175
181
|
readonly bodyDens: {
|
|
176
182
|
readonly '@media (min-width:0px)': {
|
|
@@ -183,7 +189,7 @@ export declare const typography: {
|
|
|
183
189
|
fontSize: string;
|
|
184
190
|
};
|
|
185
191
|
readonly fontWeight: 600;
|
|
186
|
-
readonly lineHeight:
|
|
192
|
+
readonly lineHeight: "16px";
|
|
187
193
|
};
|
|
188
194
|
readonly body0: {
|
|
189
195
|
readonly lineHeight: 1.5;
|
|
@@ -226,7 +232,7 @@ export declare const typography: {
|
|
|
226
232
|
readonly '@media (min-width:1200px)': {
|
|
227
233
|
fontSize: string;
|
|
228
234
|
};
|
|
229
|
-
readonly fontWeight:
|
|
230
|
-
readonly lineHeight:
|
|
235
|
+
readonly fontWeight: 600;
|
|
236
|
+
readonly lineHeight: "16px";
|
|
231
237
|
};
|
|
232
238
|
};
|
package/types/augmentations.d.ts
CHANGED