@bobbykim/manguito-theme 0.18.0 → 0.20.0

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 (68) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +12 -12
  3. package/dist/core.cjs +2 -0
  4. package/dist/core.d.ts +790 -0
  5. package/dist/core.js +2175 -0
  6. package/dist/mcl-theme.cjs +1 -0
  7. package/dist/mcl-theme.d.ts +12 -0
  8. package/dist/mcl-theme.js +608 -0
  9. package/package.json +28 -7
  10. package/CHANGELOG.md +0 -150
  11. package/index.d.ts +0 -14
  12. package/index.js +0 -19
  13. package/index.ts +0 -31
  14. package/lib/alert/Alert.vue +0 -92
  15. package/lib/alert/Alert.vue.d.ts +0 -65
  16. package/lib/collapse/Collapse.vue +0 -118
  17. package/lib/collapse/Collapse.vue.d.ts +0 -55
  18. package/lib/composables/index.d.ts +0 -1
  19. package/lib/composables/index.js +0 -1
  20. package/lib/composables/index.ts +0 -1
  21. package/lib/composables/observeVisible.d.ts +0 -6
  22. package/lib/composables/observeVisible.js +0 -24
  23. package/lib/composables/observeVisible.ts +0 -30
  24. package/lib/directives/index.d.ts +0 -6
  25. package/lib/directives/index.js +0 -186
  26. package/lib/directives/index.ts +0 -211
  27. package/lib/directives/index.types.d.ts +0 -14
  28. package/lib/directives/index.types.js +0 -1
  29. package/lib/directives/index.types.ts +0 -15
  30. package/lib/dropdown/DropdownContainer.vue +0 -50
  31. package/lib/dropdown/DropdownContainer.vue.d.ts +0 -19
  32. package/lib/dropdown/DropdownContent.vue +0 -69
  33. package/lib/dropdown/DropdownContent.vue.d.ts +0 -42
  34. package/lib/dropdown/index.types.d.ts +0 -4
  35. package/lib/dropdown/index.types.js +0 -1
  36. package/lib/dropdown/index.types.ts +0 -4
  37. package/lib/header/HeaderHorizontal.vue +0 -158
  38. package/lib/header/HeaderHorizontal.vue.d.ts +0 -84
  39. package/lib/header/HeaderVertical.vue +0 -116
  40. package/lib/header/HeaderVertical.vue.d.ts +0 -70
  41. package/lib/header/NavDrawer.vue +0 -121
  42. package/lib/header/NavDrawer.vue.d.ts +0 -43
  43. package/lib/header/index.types.d.ts +0 -1
  44. package/lib/header/index.types.js +0 -1
  45. package/lib/header/index.types.ts +0 -1
  46. package/lib/modal/Modal.vue +0 -213
  47. package/lib/modal/Modal.vue.d.ts +0 -108
  48. package/lib/sidebar/Sidebar.vue +0 -242
  49. package/lib/sidebar/Sidebar.vue.d.ts +0 -113
  50. package/lib/theme/generateClass.d.ts +0 -2
  51. package/lib/theme/generateClass.js +0 -18
  52. package/lib/theme/generateClass.ts +0 -25
  53. package/lib/theme/index.d.ts +0 -95
  54. package/lib/theme/index.js +0 -642
  55. package/lib/theme/index.ts +0 -676
  56. package/lib/theme/theme.d.ts +0 -89
  57. package/lib/theme/theme.js +0 -851
  58. package/lib/theme/theme.ts +0 -893
  59. package/lib/theme/theme.types.d.ts +0 -21
  60. package/lib/theme/theme.types.js +0 -1
  61. package/lib/theme/theme.types.ts +0 -68
  62. package/lib/tooltip/index.d.ts +0 -62
  63. package/lib/tooltip/index.js +0 -71
  64. package/lib/tooltip/index.ts +0 -76
  65. package/themeVariables.cjs +0 -607
  66. package/tsconfig.json +0 -5
  67. package/tsconfig.ts.json +0 -9
  68. package/tsconfig.vue.json +0 -9
@@ -1,893 +0,0 @@
1
- /**
2
- * @TailwindCSS - Good practice is to let all of used classes to be in full instead of generated dynamically using methods such as string literal.
3
- * @Interface - Classes for color, header text, body text, border color, border width(top, left).
4
- * @Export RDSTheme - an abstract class
5
- */
6
- import type {
7
- BodyText,
8
- ColorPalette,
9
- FontWeight,
10
- HeadingSize,
11
- OpacityRange,
12
- Alignment as Position,
13
- Range,
14
- SpacingLevel,
15
- } from './theme.types.js'
16
-
17
- export type ColorClass = {
18
- [key in ColorPalette]: string
19
- }
20
- export type HeaderSizeClass = {
21
- [key in HeadingSize]: string
22
- }
23
- export type BodyTextClass = {
24
- [key in BodyText]: string
25
- }
26
- export type FontWeightClass = {
27
- [key in FontWeight]: string
28
- }
29
- export type BorderWidth = {
30
- [key in Range<1, 12>]: string
31
- }
32
- export type Opacity = {
33
- [key in OpacityRange]: string
34
- }
35
- export type Spacing = {
36
- [key in SpacingLevel]: string
37
- }
38
- export type Alignment = {
39
- [key in Position]: string
40
- }
41
-
42
- abstract class MCLTheme {
43
- // bg color class
44
- protected static bgColor: ColorClass = {
45
- primary: 'bg-primary',
46
- secondary: 'bg-secondary',
47
- success: 'bg-success',
48
- danger: 'bg-danger',
49
- info: 'bg-info',
50
- warning: 'bg-warning',
51
- 'light-1': 'bg-light-1',
52
- 'light-2': 'bg-light-2',
53
- 'light-3': 'bg-light-3',
54
- 'light-4': 'bg-light-4',
55
- 'dark-1': 'bg-dark-1',
56
- 'dark-2': 'bg-dark-2',
57
- 'dark-3': 'bg-dark-3',
58
- 'dark-4': 'bg-dark-4',
59
- black: 'bg-black',
60
- white: 'bg-white',
61
- transparent: 'bg-transparent',
62
- }
63
- // hover: bg color class
64
- protected static hoverBgColor: ColorClass = {
65
- primary: 'hover:bg-primary',
66
- secondary: 'hover:bg-secondary',
67
- success: 'hover:bg-success',
68
- danger: 'hover:bg-danger',
69
- info: 'hover:bg-info',
70
- warning: 'hover:bg-warning',
71
- 'light-1': 'hover:bg-light-1',
72
- 'light-2': 'hover:bg-light-2',
73
- 'light-3': 'hover:bg-light-3',
74
- 'light-4': 'hover:bg-light-4',
75
- 'dark-1': 'hover:bg-dark-1',
76
- 'dark-2': 'hover:bg-dark-2',
77
- 'dark-3': 'hover:bg-dark-3',
78
- 'dark-4': 'hover:bg-dark-4',
79
- black: 'hover:bg-black',
80
- white: 'hover:bg-white',
81
- transparent: 'hover:bg-transparent',
82
- }
83
- // focus: bg color class
84
- protected static focusBgColor: ColorClass = {
85
- primary: 'focus:bg-primary',
86
- secondary: 'focus:bg-secondary',
87
- success: 'focus:bg-success',
88
- danger: 'focus:bg-danger',
89
- info: 'focus:bg-info',
90
- warning: 'focus:bg-warning',
91
- 'light-1': 'focus:bg-light-1',
92
- 'light-2': 'focus:bg-light-2',
93
- 'light-3': 'focus:bg-light-3',
94
- 'light-4': 'focus:bg-light-4',
95
- 'dark-1': 'focus:bg-dark-1',
96
- 'dark-2': 'focus:bg-dark-2',
97
- 'dark-3': 'focus:bg-dark-3',
98
- 'dark-4': 'focus:bg-dark-4',
99
- black: 'focus:bg-black',
100
- white: 'focus:bg-white',
101
- transparent: 'focus:bg-transparent',
102
- }
103
- // ::before bg color class
104
- protected static beforeBgColor: ColorClass = {
105
- primary: 'before:bg-primary',
106
- secondary: 'before:bg-secondary',
107
- success: 'before:bg-success',
108
- danger: 'before:bg-danger',
109
- info: 'before:bg-info',
110
- warning: 'before:bg-warning',
111
- 'light-1': 'before:bg-light-1',
112
- 'light-2': 'before:bg-light-2',
113
- 'light-3': 'before:bg-light-3',
114
- 'light-4': 'before:bg-light-4',
115
- 'dark-1': 'before:bg-dark-1',
116
- 'dark-2': 'before:bg-dark-2',
117
- 'dark-3': 'before:bg-dark-3',
118
- 'dark-4': 'before:bg-dark-4',
119
- black: 'before:bg-black',
120
- white: 'before:bg-white',
121
- transparent: 'before:bg-transparent',
122
- }
123
- // ::after bg color class
124
- protected static afterBgColor: ColorClass = {
125
- primary: 'after:bg-primary',
126
- secondary: 'after:bg-secondary',
127
- success: 'after:bg-success',
128
- danger: 'after:bg-danger',
129
- info: 'after:bg-info',
130
- warning: 'after:bg-warning',
131
- 'light-1': 'after:bg-light-1',
132
- 'light-2': 'after:bg-light-2',
133
- 'light-3': 'after:bg-light-3',
134
- 'light-4': 'after:bg-light-4',
135
- 'dark-1': 'after:bg-dark-1',
136
- 'dark-2': 'after:bg-dark-2',
137
- 'dark-3': 'after:bg-dark-3',
138
- 'dark-4': 'after:bg-dark-4',
139
- black: 'after:bg-black',
140
- white: 'after:bg-white',
141
- transparent: 'after:bg-transparent',
142
- }
143
- // active:bg color class
144
- protected static bgActiveColor: ColorClass = {
145
- primary: 'active:bg-primary',
146
- secondary: 'active:bg-secondary',
147
- success: 'active:bg-success',
148
- danger: 'active:bg-danger',
149
- info: 'active:bg-info',
150
- warning: 'active:bg-warning',
151
- 'light-1': 'active:bg-light-1',
152
- 'light-2': 'active:bg-light-2',
153
- 'light-3': 'active:bg-light-3',
154
- 'light-4': 'active:bg-light-4',
155
- 'dark-1': 'active:bg-dark-1',
156
- 'dark-2': 'active:bg-dark-2',
157
- 'dark-3': 'active:bg-dark-3',
158
- 'dark-4': 'active:bg-dark-4',
159
- black: 'active:bg-black',
160
- white: 'active:bg-white',
161
- transparent: 'active:bg-transparent',
162
- }
163
- // text color class
164
- protected static textColor: ColorClass = {
165
- primary: 'text-primary',
166
- secondary: 'text-secondary',
167
- success: 'text-success',
168
- danger: 'text-danger',
169
- info: 'text-info',
170
- warning: 'text-warning',
171
- 'light-1': 'text-light-1',
172
- 'light-2': 'text-light-2',
173
- 'light-3': 'text-light-3',
174
- 'light-4': 'text-light-4',
175
- 'dark-1': 'text-dark-1',
176
- 'dark-2': 'text-dark-2',
177
- 'dark-3': 'text-dark-3',
178
- 'dark-4': 'text-dark-4',
179
- black: 'text-black',
180
- white: 'text-white',
181
- transparent: 'text-transparent',
182
- }
183
- // hover text color class
184
- protected static hoverTextColor: ColorClass = {
185
- primary: 'hover:text-primary',
186
- secondary: 'hover:text-secondary',
187
- success: 'hover:text-success',
188
- danger: 'hover:text-danger',
189
- info: 'hover:text-info',
190
- warning: 'hover:text-warning',
191
- 'light-1': 'hover:text-light-1',
192
- 'light-2': 'hover:text-light-2',
193
- 'light-3': 'hover:text-light-3',
194
- 'light-4': 'hover:text-light-4',
195
- 'dark-1': 'hover:text-dark-1',
196
- 'dark-2': 'hover:text-dark-2',
197
- 'dark-3': 'hover:text-dark-3',
198
- 'dark-4': 'hover:text-dark-4',
199
- black: 'hover:text-black',
200
- white: 'hover:text-white',
201
- transparent: 'hover:text-transparent',
202
- }
203
- // focus text color class
204
- protected static focusTextColor: ColorClass = {
205
- primary: 'focus:text-primary',
206
- secondary: 'focus:text-secondary',
207
- success: 'focus:text-success',
208
- danger: 'focus:text-danger',
209
- info: 'focus:text-info',
210
- warning: 'focus:text-warning',
211
- 'light-1': 'focus:text-light-1',
212
- 'light-2': 'focus:text-light-2',
213
- 'light-3': 'focus:text-light-3',
214
- 'light-4': 'focus:text-light-4',
215
- 'dark-1': 'focus:text-dark-1',
216
- 'dark-2': 'focus:text-dark-2',
217
- 'dark-3': 'focus:text-dark-3',
218
- 'dark-4': 'focus:text-dark-4',
219
- black: 'focus:text-black',
220
- white: 'focus:text-white',
221
- transparent: 'focus:text-transparent',
222
- }
223
- // disabled text color class
224
- protected static disabledTextColor: ColorClass = {
225
- primary: 'disabled:text-primary',
226
- secondary: 'disabled:text-secondary',
227
- success: 'disabled:text-success',
228
- danger: 'disabled:text-danger',
229
- info: 'disabled:text-info',
230
- warning: 'disabled:text-warning',
231
- 'light-1': 'disabled:text-light-1',
232
- 'light-2': 'disabled:text-light-2',
233
- 'light-3': 'disabled:text-light-3',
234
- 'light-4': 'disabled:text-light-4',
235
- 'dark-1': 'disabled:text-dark-1',
236
- 'dark-2': 'disabled:text-dark-2',
237
- 'dark-3': 'disabled:text-dark-3',
238
- 'dark-4': 'disabled:text-dark-4',
239
- black: 'disabled:text-black',
240
- white: 'disabled:text-white',
241
- transparent: 'disabled:text-transparent',
242
- }
243
- // SVG fill color class
244
- protected static svgFillColor: ColorClass = {
245
- primary: 'fill-primary',
246
- secondary: 'fill-secondary',
247
- success: 'fill-success',
248
- danger: 'fill-danger',
249
- info: 'fill-info',
250
- warning: 'fill-warning',
251
- 'light-1': 'fill-light-1',
252
- 'light-2': 'fill-light-2',
253
- 'light-3': 'fill-light-3',
254
- 'light-4': 'fill-light-4',
255
- 'dark-1': 'fill-dark-1',
256
- 'dark-2': 'fill-dark-2',
257
- 'dark-3': 'fill-dark-3',
258
- 'dark-4': 'fill-dark-4',
259
- black: 'fill-black',
260
- white: 'fill-white',
261
- transparent: 'fill-transparent',
262
- }
263
- // ring color class
264
- protected static ringColor: ColorClass = {
265
- primary: 'ring-primary',
266
- secondary: 'ring-secondary',
267
- success: 'ring-success',
268
- danger: 'ring-danger',
269
- info: 'ring-info',
270
- warning: 'ring-warning',
271
- 'light-1': 'ring-light-1',
272
- 'light-2': 'ring-light-2',
273
- 'light-3': 'ring-light-3',
274
- 'light-4': 'ring-light-4',
275
- 'dark-1': 'ring-dark-1',
276
- 'dark-2': 'ring-dark-2',
277
- 'dark-3': 'ring-dark-3',
278
- 'dark-4': 'ring-dark-4',
279
- black: 'ring-black',
280
- white: 'ring-white',
281
- transparent: 'ring-transparent',
282
- }
283
- // focus:ring color class
284
- protected static ringFocusColor: ColorClass = {
285
- primary: 'focus:ring-primary',
286
- secondary: 'focus:ring-secondary',
287
- success: 'focus:ring-success',
288
- danger: 'focus:ring-danger',
289
- info: 'focus:ring-info',
290
- warning: 'focus:ring-warning',
291
- 'light-1': 'focus:ring-light-1',
292
- 'light-2': 'focus:ring-light-2',
293
- 'light-3': 'focus:ring-light-3',
294
- 'light-4': 'focus:ring-light-4',
295
- 'dark-1': 'focus:ring-dark-1',
296
- 'dark-2': 'focus:ring-dark-2',
297
- 'dark-3': 'focus:ring-dark-3',
298
- 'dark-4': 'focus:ring-dark-4',
299
- black: 'focus:ring-black',
300
- white: 'focus:ring-white',
301
- transparent: 'focus:ring-transparent',
302
- }
303
- // active:ring color class
304
- protected static ringActiveColor: ColorClass = {
305
- primary: 'active:ring-primary',
306
- secondary: 'active:ring-secondary',
307
- success: 'active:ring-success',
308
- danger: 'active:ring-danger',
309
- info: 'active:ring-info',
310
- warning: 'active:ring-warning',
311
- 'light-1': 'active:ring-light-1',
312
- 'light-2': 'active:ring-light-2',
313
- 'light-3': 'active:ring-light-3',
314
- 'light-4': 'active:ring-light-4',
315
- 'dark-1': 'active:ring-dark-1',
316
- 'dark-2': 'active:ring-dark-2',
317
- 'dark-3': 'active:ring-dark-3',
318
- 'dark-4': 'active:ring-dark-4',
319
- black: 'active:ring-black',
320
- white: 'active:ring-white',
321
- transparent: 'active:ring-transparent',
322
- }
323
- // ring-offset color class
324
- protected static ringOffsetColor: ColorClass = {
325
- primary: 'ring-offset-primary',
326
- secondary: 'ring-offset-secondary',
327
- success: 'ring-offset-success',
328
- danger: 'ring-offset-danger',
329
- info: 'ring-offset-info',
330
- warning: 'ring-offset-warning',
331
- 'light-1': 'ring-offset-light-1',
332
- 'light-2': 'ring-offset-light-2',
333
- 'light-3': 'ring-offset-light-3',
334
- 'light-4': 'ring-offset-light-4',
335
- 'dark-1': 'ring-offset-dark-1',
336
- 'dark-2': 'ring-offset-dark-2',
337
- 'dark-3': 'ring-offset-dark-3',
338
- 'dark-4': 'ring-offset-dark-4',
339
- black: 'ring-offset-black',
340
- white: 'ring-offset-white',
341
- transparent: 'ring-offset-transparent',
342
- }
343
- protected static dummyColor: ColorClass = {
344
- primary: 'ring-offset-primary',
345
- secondary: 'ring-offset-secondary',
346
- success: 'ring-offset-success',
347
- danger: 'ring-offset-danger',
348
- info: 'ring-offset-info',
349
- warning: 'ring-offset-warning',
350
- 'light-1': 'ring-offset-light-1',
351
- 'light-2': 'ring-offset-light-2',
352
- 'light-3': 'ring-offset-light-3',
353
- 'light-4': 'ring-offset-light-4',
354
- 'dark-1': 'ring-offset-dark-1',
355
- 'dark-2': 'ring-offset-dark-2',
356
- 'dark-3': 'ring-offset-dark-3',
357
- 'dark-4': 'ring-offset-dark-4',
358
- black: 'ring-offset-black',
359
- white: 'ring-offset-white',
360
- transparent: 'ring-offset-transparent',
361
- }
362
- // btn color class
363
- protected static btnColor: ColorClass = {
364
- primary: 'btn-primary',
365
- secondary: 'btn-secondary',
366
- success: 'btn-success',
367
- danger: 'btn-danger',
368
- info: 'btn-info',
369
- warning: 'btn-warning',
370
- 'light-1': 'btn-light-1',
371
- 'light-2': 'btn-light-2',
372
- 'light-3': 'btn-light-3',
373
- 'light-4': 'btn-light-4',
374
- 'dark-1': 'btn-dark-1',
375
- 'dark-2': 'btn-dark-2',
376
- 'dark-3': 'btn-dark-3',
377
- 'dark-4': 'btn-dark-4',
378
- black: 'btn-black',
379
- white: 'btn-white',
380
- transparent: 'btn-transparent',
381
- }
382
- // list color class
383
- protected static listColor: ColorClass = {
384
- primary: 'mcl-list-primary',
385
- secondary: 'mcl-list-secondary',
386
- success: 'mcl-list-success',
387
- danger: 'mcl-list-danger',
388
- info: 'mcl-list-info',
389
- warning: 'mcl-list-warning',
390
- 'light-1': 'mcl-list-light-1',
391
- 'light-2': 'mcl-list-light-2',
392
- 'light-3': 'mcl-list-light-3',
393
- 'light-4': 'mcl-list-light-4',
394
- 'dark-1': 'mcl-list-dark-1',
395
- 'dark-2': 'mcl-list-dark-2',
396
- 'dark-3': 'mcl-list-dark-3',
397
- 'dark-4': 'mcl-list-dark-4',
398
- black: 'mcl-list-black',
399
- white: 'mcl-list-white',
400
- transparent: 'mcl-list-transparent',
401
- }
402
- // h1 class
403
- protected static heading1: HeaderSizeClass = {
404
- sm: 'h1-sm',
405
- md: 'h1-md',
406
- lg: 'h1-lg',
407
- xl: 'h1-xl',
408
- }
409
- // h2 class
410
- protected static heading2: HeaderSizeClass = {
411
- sm: 'h2-sm',
412
- md: 'h2-md',
413
- lg: 'h2-lg',
414
- xl: 'h2-xl',
415
- }
416
- // h3 class
417
- protected static heading3: HeaderSizeClass = {
418
- sm: 'h3-sm',
419
- md: 'h3-md',
420
- lg: 'h3-lg',
421
- xl: 'h3-xl',
422
- }
423
- // h4 class
424
- protected static heading4: HeaderSizeClass = {
425
- sm: 'h4-sm',
426
- md: 'h4-md',
427
- lg: 'h4-lg',
428
- xl: 'h4-xl',
429
- }
430
- // body text class
431
- protected static bodyText: BodyTextClass = {
432
- xs: 'text-xs',
433
- sm: 'text-sm',
434
- md: 'text-md',
435
- lg: 'text-lg',
436
- xl: 'text-xl',
437
- }
438
- // font weight class
439
- protected static fontweight: FontWeightClass = {
440
- light: 'font-light',
441
- normal: 'font-normal',
442
- bold: 'font-bold',
443
- }
444
- // border color classes
445
- protected static borderColor: ColorClass = {
446
- primary: 'border-primary',
447
- secondary: 'border-secondary',
448
- success: 'border-success',
449
- danger: 'border-danger',
450
- info: 'border-info',
451
- warning: 'border-warning',
452
- 'light-1': 'border-light-1',
453
- 'light-2': 'border-light-2',
454
- 'light-3': 'border-light-3',
455
- 'light-4': 'border-light-4',
456
- 'dark-1': 'border-dark-1',
457
- 'dark-2': 'border-dark-2',
458
- 'dark-3': 'border-dark-3',
459
- 'dark-4': 'border-dark-4',
460
- black: 'border-black',
461
- white: 'border-white',
462
- transparent: 'border-transparent',
463
- }
464
- protected static borderXColor: ColorClass = {
465
- primary: 'border-x-primary',
466
- secondary: 'border-x-secondary',
467
- success: 'border-x-success',
468
- danger: 'border-x-danger',
469
- info: 'border-x-info',
470
- warning: 'border-x-warning',
471
- 'light-1': 'border-x-light-1',
472
- 'light-2': 'border-x-light-2',
473
- 'light-3': 'border-x-light-3',
474
- 'light-4': 'border-x-light-4',
475
- 'dark-1': 'border-x-dark-1',
476
- 'dark-2': 'border-x-dark-2',
477
- 'dark-3': 'border-x-dark-3',
478
- 'dark-4': 'border-x-dark-4',
479
- black: 'border-x-black',
480
- white: 'border-x-white',
481
- transparent: 'border-x-transparent',
482
- }
483
- protected static borderYColor: ColorClass = {
484
- primary: 'border-y-primary',
485
- secondary: 'border-y-secondary',
486
- success: 'border-y-success',
487
- danger: 'border-y-danger',
488
- info: 'border-y-info',
489
- warning: 'border-y-warning',
490
- 'light-1': 'border-y-light-1',
491
- 'light-2': 'border-y-light-2',
492
- 'light-3': 'border-y-light-3',
493
- 'light-4': 'border-y-light-4',
494
- 'dark-1': 'border-y-dark-1',
495
- 'dark-2': 'border-y-dark-2',
496
- 'dark-3': 'border-y-dark-3',
497
- 'dark-4': 'border-y-dark-4',
498
- black: 'border-y-black',
499
- white: 'border-y-white',
500
- transparent: 'border-y-transparent',
501
- }
502
- protected static borderTopColor: ColorClass = {
503
- primary: 'border-t-primary',
504
- secondary: 'border-t-secondary',
505
- success: 'border-t-success',
506
- danger: 'border-t-danger',
507
- info: 'border-t-info',
508
- warning: 'border-t-warning',
509
- 'light-1': 'border-t-light-1',
510
- 'light-2': 'border-t-light-2',
511
- 'light-3': 'border-t-light-3',
512
- 'light-4': 'border-t-light-4',
513
- 'dark-1': 'border-t-dark-1',
514
- 'dark-2': 'border-t-dark-2',
515
- 'dark-3': 'border-t-dark-3',
516
- 'dark-4': 'border-t-dark-4',
517
- black: 'border-t-black',
518
- white: 'border-t-white',
519
- transparent: 'border-t-transparent',
520
- }
521
- protected static borderBottomColor: ColorClass = {
522
- primary: 'border-b-primary',
523
- secondary: 'border-b-secondary',
524
- success: 'border-b-success',
525
- danger: 'border-b-danger',
526
- info: 'border-b-info',
527
- warning: 'border-b-warning',
528
- 'light-1': 'border-b-light-1',
529
- 'light-2': 'border-b-light-2',
530
- 'light-3': 'border-b-light-3',
531
- 'light-4': 'border-b-light-4',
532
- 'dark-1': 'border-b-dark-1',
533
- 'dark-2': 'border-b-dark-2',
534
- 'dark-3': 'border-b-dark-3',
535
- 'dark-4': 'border-b-dark-4',
536
- black: 'border-b-black',
537
- white: 'border-b-white',
538
- transparent: 'border-b-transparent',
539
- }
540
- protected static borderLeftColor: ColorClass = {
541
- primary: 'border-l-primary',
542
- secondary: 'border-l-secondary',
543
- success: 'border-l-success',
544
- danger: 'border-l-danger',
545
- info: 'border-l-info',
546
- warning: 'border-l-warning',
547
- 'light-1': 'border-l-light-1',
548
- 'light-2': 'border-l-light-2',
549
- 'light-3': 'border-l-light-3',
550
- 'light-4': 'border-l-light-4',
551
- 'dark-1': 'border-l-dark-1',
552
- 'dark-2': 'border-l-dark-2',
553
- 'dark-3': 'border-l-dark-3',
554
- 'dark-4': 'border-l-dark-4',
555
- black: 'border-l-black',
556
- white: 'border-l-white',
557
- transparent: 'border-l-transparent',
558
- }
559
- protected static borderRightColor: ColorClass = {
560
- primary: 'border-r-primary',
561
- secondary: 'border-r-secondary',
562
- success: 'border-r-success',
563
- danger: 'border-r-danger',
564
- info: 'border-r-info',
565
- warning: 'border-r-warning',
566
- 'light-1': 'border-r-light-1',
567
- 'light-2': 'border-r-light-2',
568
- 'light-3': 'border-r-light-3',
569
- 'light-4': 'border-r-light-4',
570
- 'dark-1': 'border-r-dark-1',
571
- 'dark-2': 'border-r-dark-2',
572
- 'dark-3': 'border-r-dark-3',
573
- 'dark-4': 'border-r-dark-4',
574
- black: 'border-r-black',
575
- white: 'border-r-white',
576
- transparent: 'border-r-transparent',
577
- }
578
- // Border width class
579
- protected static borderWidth: BorderWidth = {
580
- 1: 'border-[1px]',
581
- 2: 'border-[2px]',
582
- 3: 'border-[3px]',
583
- 4: 'border-[4px]',
584
- 5: 'border-[5px]',
585
- 6: 'border-[6px]',
586
- 7: 'border-[7px]',
587
- 8: 'border-[8px]',
588
- 9: 'border-[9px]',
589
- 10: 'border-[10px]',
590
- 11: 'border-[11px]',
591
- 12: 'border-[12px]',
592
- }
593
- protected static borderXWidth: BorderWidth = {
594
- 1: 'border-x-[1px]',
595
- 2: 'border-x-[2px]',
596
- 3: 'border-x-[3px]',
597
- 4: 'border-x-[4px]',
598
- 5: 'border-x-[5px]',
599
- 6: 'border-x-[6px]',
600
- 7: 'border-x-[7px]',
601
- 8: 'border-x-[8px]',
602
- 9: 'border-x-[9px]',
603
- 10: 'border-x-[10px]',
604
- 11: 'border-x-[11px]',
605
- 12: 'border-x-[12px]',
606
- }
607
- protected static borderYWidth: BorderWidth = {
608
- 1: 'border-y-[1px]',
609
- 2: 'border-y-[2px]',
610
- 3: 'border-y-[3px]',
611
- 4: 'border-y-[4px]',
612
- 5: 'border-y-[5px]',
613
- 6: 'border-y-[6px]',
614
- 7: 'border-y-[7px]',
615
- 8: 'border-y-[8px]',
616
- 9: 'border-y-[9px]',
617
- 10: 'border-y-[10px]',
618
- 11: 'border-y-[11px]',
619
- 12: 'border-y-[12px]',
620
- }
621
- protected static borderTopWidth: BorderWidth = {
622
- 1: 'border-t-[1px]',
623
- 2: 'border-t-[2px]',
624
- 3: 'border-t-[3px]',
625
- 4: 'border-t-[4px]',
626
- 5: 'border-t-[5px]',
627
- 6: 'border-t-[6px]',
628
- 7: 'border-t-[7px]',
629
- 8: 'border-t-[8px]',
630
- 9: 'border-t-[9px]',
631
- 10: 'border-t-[10px]',
632
- 11: 'border-t-[11px]',
633
- 12: 'border-t-[12px]',
634
- }
635
- protected static borderBottomWidth: BorderWidth = {
636
- 1: 'border-b-[1px]',
637
- 2: 'border-b-[2px]',
638
- 3: 'border-b-[3px]',
639
- 4: 'border-b-[4px]',
640
- 5: 'border-b-[5px]',
641
- 6: 'border-b-[6px]',
642
- 7: 'border-b-[7px]',
643
- 8: 'border-b-[8px]',
644
- 9: 'border-b-[9px]',
645
- 10: 'border-b-[10px]',
646
- 11: 'border-b-[11px]',
647
- 12: 'border-b-[12px]',
648
- }
649
- protected static borderLeftWidth: BorderWidth = {
650
- 1: 'border-l-[1px]',
651
- 2: 'border-l-[2px]',
652
- 3: 'border-l-[3px]',
653
- 4: 'border-l-[4px]',
654
- 5: 'border-l-[5px]',
655
- 6: 'border-l-[6px]',
656
- 7: 'border-l-[7px]',
657
- 8: 'border-l-[8px]',
658
- 9: 'border-l-[9px]',
659
- 10: 'border-l-[10px]',
660
- 11: 'border-l-[11px]',
661
- 12: 'border-l-[12px]',
662
- }
663
- protected static borderRightWidth: BorderWidth = {
664
- 1: 'border-r-[1px]',
665
- 2: 'border-r-[2px]',
666
- 3: 'border-r-[3px]',
667
- 4: 'border-r-[4px]',
668
- 5: 'border-r-[5px]',
669
- 6: 'border-r-[6px]',
670
- 7: 'border-r-[7px]',
671
- 8: 'border-r-[8px]',
672
- 9: 'border-r-[9px]',
673
- 10: 'border-r-[10px]',
674
- 11: 'border-r-[11px]',
675
- 12: 'border-r-[12px]',
676
- }
677
- // opacity
678
- protected static backgroundOpacity: Opacity = {
679
- 10: 'bg-opacity-10',
680
- 20: 'bg-opacity-20',
681
- 30: 'bg-opacity-30',
682
- 40: 'bg-opacity-40',
683
- 50: 'bg-opacity-50',
684
- 60: 'bg-opacity-60',
685
- 70: 'bg-opacity-70',
686
- 80: 'bg-opacity-80',
687
- 90: 'bg-opacity-90',
688
- 100: 'bg-opacity-100',
689
- }
690
- protected static opacity: Opacity = {
691
- 10: 'opacity-10',
692
- 20: 'opacity-20',
693
- 30: 'opacity-30',
694
- 40: 'opacity-40',
695
- 50: 'opacity-50',
696
- 60: 'opacity-60',
697
- 70: 'opacity-70',
698
- 80: 'opacity-80',
699
- 90: 'opacity-90',
700
- 100: 'opacity-100',
701
- }
702
- // spacing: margin
703
- protected static margin: Spacing = {
704
- '0': 'm-0',
705
- '3xs': 'm-3xs',
706
- '2xs': 'm-2xs',
707
- xs: 'm-xs',
708
- sm: 'm-sm',
709
- md: 'm-md',
710
- lg: 'm-lg',
711
- xl: 'm-xl',
712
- '2xl': 'm-2xl',
713
- '3xl': 'm-3xl',
714
- }
715
- protected static marginX: Spacing = {
716
- '0': 'mx-0',
717
- '3xs': 'mx-3xs',
718
- '2xs': 'mx-2xs',
719
- xs: 'mx-xs',
720
- sm: 'mx-sm',
721
- md: 'mx-md',
722
- lg: 'mx-lg',
723
- xl: 'mx-xl',
724
- '2xl': 'mx-2xl',
725
- '3xl': 'mx-3xl',
726
- }
727
- protected static marginY: Spacing = {
728
- '0': 'my-0',
729
- '3xs': 'my-3xs',
730
- '2xs': 'my-2xs',
731
- xs: 'my-xs',
732
- sm: 'my-sm',
733
- md: 'my-md',
734
- lg: 'my-lg',
735
- xl: 'my-xl',
736
- '2xl': 'my-2xl',
737
- '3xl': 'my-3xl',
738
- }
739
- protected static marginTop: Spacing = {
740
- '0': 'mt-0',
741
- '3xs': 'mt-3xs',
742
- '2xs': 'mt-2xs',
743
- xs: 'mt-xs',
744
- sm: 'mt-sm',
745
- md: 'mt-md',
746
- lg: 'mt-lg',
747
- xl: 'mt-xl',
748
- '2xl': 'mt-2xl',
749
- '3xl': 'mt-3xl',
750
- }
751
- protected static marginBottom: Spacing = {
752
- '0': 'mb-0',
753
- '3xs': 'mb-3xs',
754
- '2xs': 'mb-2xs',
755
- xs: 'mb-xs',
756
- sm: 'mb-sm',
757
- md: 'mb-md',
758
- lg: 'mb-lg',
759
- xl: 'mb-xl',
760
- '2xl': 'mb-2xl',
761
- '3xl': 'mb-3xl',
762
- }
763
- protected static marginLeft: Spacing = {
764
- '0': 'ml-0',
765
- '3xs': 'ml-3xs',
766
- '2xs': 'ml-2xs',
767
- xs: 'ml-xs',
768
- sm: 'ml-sm',
769
- md: 'ml-md',
770
- lg: 'ml-lg',
771
- xl: 'ml-xl',
772
- '2xl': 'ml-2xl',
773
- '3xl': 'ml-3xl',
774
- }
775
- protected static marginRight: Spacing = {
776
- '0': 'mr-0',
777
- '3xs': 'mr-3xs',
778
- '2xs': 'mr-2xs',
779
- xs: 'mr-xs',
780
- sm: 'mr-sm',
781
- md: 'mr-md',
782
- lg: 'mr-lg',
783
- xl: 'mr-xl',
784
- '2xl': 'mr-2xl',
785
- '3xl': 'mr-3xl',
786
- }
787
- // spacing: padding
788
- protected static padding: Spacing = {
789
- '0': 'p-0',
790
- '3xs': 'p-3xs',
791
- '2xs': 'p-2xs',
792
- xs: 'p-xs',
793
- sm: 'p-sm',
794
- md: 'p-md',
795
- lg: 'p-lg',
796
- xl: 'p-xl',
797
- '2xl': 'p-2xl',
798
- '3xl': 'p-3xl',
799
- }
800
- protected static paddingX: Spacing = {
801
- '0': 'px-0',
802
- '3xs': 'px-3xs',
803
- '2xs': 'px-2xs',
804
- xs: 'px-xs',
805
- sm: 'px-sm',
806
- md: 'px-md',
807
- lg: 'px-lg',
808
- xl: 'px-xl',
809
- '2xl': 'px-2xl',
810
- '3xl': 'px-3xl',
811
- }
812
- protected static paddingY: Spacing = {
813
- '0': 'py-0',
814
- '3xs': 'py-3xs',
815
- '2xs': 'py-2xs',
816
- xs: 'py-xs',
817
- sm: 'py-sm',
818
- md: 'py-md',
819
- lg: 'py-lg',
820
- xl: 'py-xl',
821
- '2xl': 'py-2xl',
822
- '3xl': 'py-3xl',
823
- }
824
- protected static paddingTop: Spacing = {
825
- '0': 'pt-0',
826
- '3xs': 'pt-3xs',
827
- '2xs': 'pt-2xs',
828
- xs: 'pt-xs',
829
- sm: 'pt-sm',
830
- md: 'pt-md',
831
- lg: 'pt-lg',
832
- xl: 'pt-xl',
833
- '2xl': 'pt-2xl',
834
- '3xl': 'pt-3xl',
835
- }
836
- protected static paddingBottom: Spacing = {
837
- '0': 'pb-0',
838
- '3xs': 'pb-3xs',
839
- '2xs': 'pb-2xs',
840
- xs: 'pb-xs',
841
- sm: 'pb-sm',
842
- md: 'pb-md',
843
- lg: 'pb-lg',
844
- xl: 'pb-xl',
845
- '2xl': 'pb-2xl',
846
- '3xl': 'pb-3xl',
847
- }
848
- protected static paddingLeft: Spacing = {
849
- '0': 'pl-0',
850
- '3xs': 'pl-3xs',
851
- '2xs': 'pl-2xs',
852
- xs: 'pl-xs',
853
- sm: 'pl-sm',
854
- md: 'pl-md',
855
- lg: 'pl-lg',
856
- xl: 'pl-xl',
857
- '2xl': 'pl-2xl',
858
- '3xl': 'pl-3xl',
859
- }
860
- protected static paddingRight: Spacing = {
861
- '0': 'pr-0',
862
- '3xs': 'pr-3xs',
863
- '2xs': 'pr-2xs',
864
- xs: 'pr-xs',
865
- sm: 'pr-sm',
866
- md: 'pr-md',
867
- lg: 'pr-lg',
868
- xl: 'pr-xl',
869
- '2xl': 'pr-2xl',
870
- '3xl': 'pr-3xl',
871
- }
872
- // spacing gap class for flex/grid
873
- protected static gap: Spacing = {
874
- '0': 'gap-0',
875
- '3xs': 'gap-3xs',
876
- '2xs': 'gap-2xs',
877
- xs: 'gap-xs',
878
- sm: 'gap-sm',
879
- md: 'gap-md',
880
- lg: 'gap-lg',
881
- xl: 'gap-xl',
882
- '2xl': 'gap-2xl',
883
- '3xl': 'gap-3xl',
884
- }
885
- // text alignment
886
- protected static textAlign: Alignment = {
887
- left: 'text-left',
888
- center: 'text-center',
889
- right: 'text-right',
890
- }
891
- }
892
-
893
- export default MCLTheme