@bobbykim/manguito-theme 0.6.0 → 0.8.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.
- package/CHANGELOG.md +12 -0
- package/index.d.ts +13 -0
- package/index.js +30 -0
- package/lib/collapse/Collapse.vue +46 -15
- package/lib/collapse/Collapse.vue.d.ts +46 -0
- package/lib/collapse/index.types.d.ts +3 -0
- package/lib/collapse/index.types.js +1 -0
- package/lib/collapse/index.types.ts +1 -1
- package/lib/composables/index.d.ts +1 -0
- package/lib/composables/index.js +1 -0
- package/lib/composables/index.ts +1 -0
- package/lib/composables/observeVisible.d.ts +1 -0
- package/lib/composables/observeVisible.js +24 -0
- package/lib/composables/observeVisible.ts +24 -0
- package/lib/directives/index.d.ts +6 -0
- package/lib/directives/index.js +215 -0
- package/lib/directives/index.ts +57 -5
- package/lib/directives/index.types.d.ts +14 -0
- package/lib/directives/index.types.js +1 -0
- package/lib/dropdown/DropdownContainer.vue.d.ts +19 -0
- package/lib/dropdown/DropdownContent.vue.d.ts +23 -0
- package/lib/dropdown/index.types.d.ts +4 -0
- package/lib/dropdown/index.types.js +1 -0
- package/lib/modal/Modal.vue +47 -10
- package/lib/modal/Modal.vue.d.ts +112 -0
- package/lib/nav/HamburgerMenu.vue +1 -1
- package/lib/nav/HamburgerMenu.vue.d.ts +44 -0
- package/lib/sidebar/Sidebar.vue +45 -8
- package/lib/sidebar/Sidebar.vue.d.ts +121 -0
- package/lib/tooltip/index.d.ts +62 -0
- package/lib/tooltip/index.js +71 -0
- package/package.json +5 -2
- package/theme/index.d.ts +94 -0
- package/theme/index.js +631 -0
- package/theme/theme.d.ts +88 -0
- package/theme/theme.js +831 -0
- package/theme/theme.types.d.ts +21 -0
- package/theme/theme.types.js +1 -0
- package/tsconfig.json +12 -0
- package/tsconfig.vue.json +9 -0
package/theme/index.d.ts
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import MCLTheme from './theme.js';
|
|
2
|
+
import type { ColorPalette, HeadingSize, BodyText, FontWeight, Range, OpacityRange, SpacingLevel, Alignment } from './theme.types';
|
|
3
|
+
/**
|
|
4
|
+
* @TailwindCSS - Good practice is to let all of used classes to be in full instead of generated dynamically using methods such as string literal.
|
|
5
|
+
* @Interface - ClassType to define the case, and Input type to generate tailwind clssname.
|
|
6
|
+
* @Export GenerateMCLClass - extends MCLTheme class
|
|
7
|
+
*/
|
|
8
|
+
export declare const colorType: readonly ["BGCOLOR", "BEFOREBG", "AFTERBG", "HVBGCOLOR", "FCBGCOLOR", "ACTIVEBG", "TEXTCOLOR", "HVTEXTCOLOR", "DISABLEDTEXTCOLOR", "SVGFILL", "RINGCOLOR", "FOCUSRING", "ACTIVERING", "OFFSETRING", "DUMMYCOLOR", "BTNCOLOR", "LISTCOLOR", "BORDER", "BORDERX", "BORDERY", "BORDERT", "BORDERB", "BORDERL", "BORDERR"];
|
|
9
|
+
export declare const textType: readonly ["H1", "H2", "H3", "H4", "BODYTEXT", "FONTWEIGHT", "TEXTALIGN"];
|
|
10
|
+
export declare const borderWidthType: readonly ["BORDERW", "BORDERXW", "BORDERYW", "BORDERTW", "BORDERBW", "BORDERLW", "BORDERRW"];
|
|
11
|
+
export declare const scaleType: readonly ["BGOPACITY", "OPACITY"];
|
|
12
|
+
export declare const spacingType: readonly ["MARGIN", "MARGINX", "MARGINY", "MARGINT", "MARGINB", "MARGINL", "MARGINR", "PADDING", "PADDINGX", "PADDINGY", "PADDINGT", "PADDINGB", "PADDINGL", "PADDINGR", "GAP"];
|
|
13
|
+
declare const allType: readonly ["BGCOLOR", "BEFOREBG", "AFTERBG", "HVBGCOLOR", "FCBGCOLOR", "ACTIVEBG", "TEXTCOLOR", "HVTEXTCOLOR", "DISABLEDTEXTCOLOR", "SVGFILL", "RINGCOLOR", "FOCUSRING", "ACTIVERING", "OFFSETRING", "DUMMYCOLOR", "BTNCOLOR", "LISTCOLOR", "BORDER", "BORDERX", "BORDERY", "BORDERT", "BORDERB", "BORDERL", "BORDERR", "H1", "H2", "H3", "H4", "BODYTEXT", "FONTWEIGHT", "TEXTALIGN", "BORDERW", "BORDERXW", "BORDERYW", "BORDERTW", "BORDERBW", "BORDERLW", "BORDERRW", "BGOPACITY", "OPACITY", "MARGIN", "MARGINX", "MARGINY", "MARGINT", "MARGINB", "MARGINL", "MARGINR", "PADDING", "PADDINGX", "PADDINGY", "PADDINGT", "PADDINGB", "PADDINGL", "PADDINGR", "GAP"];
|
|
14
|
+
export type ClassType = (typeof allType)[number];
|
|
15
|
+
export type ColorClassType = (typeof colorType)[number];
|
|
16
|
+
export type TextClassType = (typeof textType)[number];
|
|
17
|
+
export type BorderWidthClassType = (typeof borderWidthType)[number];
|
|
18
|
+
export type ScaleClassType = (typeof scaleType)[number];
|
|
19
|
+
export type SpacingClassType = (typeof spacingType)[number];
|
|
20
|
+
export type InputType = ColorPalette | HeadingSize | BodyText | FontWeight | Range<1, 12> | OpacityRange | SpacingLevel | Alignment;
|
|
21
|
+
declare class GenerateMCLClass extends MCLTheme {
|
|
22
|
+
classType: ClassType;
|
|
23
|
+
classValue: InputType;
|
|
24
|
+
constructor(classType: ClassType, classValue: InputType);
|
|
25
|
+
generateColorClass(): string;
|
|
26
|
+
generateTextClass(): string;
|
|
27
|
+
generateBorderWidthClass(): string;
|
|
28
|
+
generateScaleClass(): string;
|
|
29
|
+
generateSpacingClass(): string;
|
|
30
|
+
getBgColorClass(): string;
|
|
31
|
+
getHoverBgColorClass(): string;
|
|
32
|
+
getFocusBgColorClass(): string;
|
|
33
|
+
getBeforeBgColorClass(): string;
|
|
34
|
+
getAfterBgColorClass(): string;
|
|
35
|
+
getActiveBgColorClass(): string;
|
|
36
|
+
getTextColorClass(): string;
|
|
37
|
+
getHoverTextColorClass(): string;
|
|
38
|
+
getDisabledTextColorClass(): string;
|
|
39
|
+
getSvgFillColorClass(): string;
|
|
40
|
+
getRingColorClass(): string;
|
|
41
|
+
getFocusRingColorClass(): string;
|
|
42
|
+
getActiveRingColorClass(): string;
|
|
43
|
+
getRingOffsetColorClass(): string;
|
|
44
|
+
getBtnColorClass(): string;
|
|
45
|
+
getListColorClass(): string;
|
|
46
|
+
getBorderColorClass(): string;
|
|
47
|
+
getBorderXColorClass(): string;
|
|
48
|
+
getBorderYColorClass(): string;
|
|
49
|
+
getBorderTopColorClass(): string;
|
|
50
|
+
getBorderBottomColorClass(): string;
|
|
51
|
+
getBorderLeftColorClass(): string;
|
|
52
|
+
getBorderRightColorClass(): string;
|
|
53
|
+
getH1Class(): string;
|
|
54
|
+
getH2Class(): string;
|
|
55
|
+
getH3Class(): string;
|
|
56
|
+
getH4Class(): string;
|
|
57
|
+
getBodyTextSizeClass(): string;
|
|
58
|
+
getFontWeightClass(): string;
|
|
59
|
+
getTextAlignClass(): string;
|
|
60
|
+
getBorderWidthClass(): string;
|
|
61
|
+
getBorderXWidthClass(): string;
|
|
62
|
+
getBorderYWidthClass(): string;
|
|
63
|
+
getBorderTopWidthClass(): string;
|
|
64
|
+
getBorderBottomWidthClass(): string;
|
|
65
|
+
getBorderLeftWidthClass(): string;
|
|
66
|
+
getBorderRightWidthClass(): string;
|
|
67
|
+
getOpacityClass(): string;
|
|
68
|
+
getBgOpacityClass(): string;
|
|
69
|
+
getMarginClass(): string;
|
|
70
|
+
getMarginXClass(): string;
|
|
71
|
+
getMarginYClass(): string;
|
|
72
|
+
getMarginTopClass(): string;
|
|
73
|
+
getMarginBottomClass(): string;
|
|
74
|
+
getMarginLeftClass(): string;
|
|
75
|
+
getMarginRightClass(): string;
|
|
76
|
+
getPaddingClass(): string;
|
|
77
|
+
getPaddingXClass(): string;
|
|
78
|
+
getPaddingYClass(): string;
|
|
79
|
+
getPaddingTopClass(): string;
|
|
80
|
+
getPaddingBottomClass(): string;
|
|
81
|
+
getPaddingLeftClass(): string;
|
|
82
|
+
getPaddingRightClass(): string;
|
|
83
|
+
getGapClass(): string;
|
|
84
|
+
validateColorType(): boolean;
|
|
85
|
+
validateSpaceType(): boolean;
|
|
86
|
+
validateHeadingTextSizeType(): boolean;
|
|
87
|
+
validateBodyTextSizeType(): boolean;
|
|
88
|
+
validateFontWeightType(): boolean;
|
|
89
|
+
validateOpacityType(): boolean;
|
|
90
|
+
validateRangeType(): boolean;
|
|
91
|
+
validateAlignment(): boolean;
|
|
92
|
+
dummyMethod(): any;
|
|
93
|
+
}
|
|
94
|
+
export default GenerateMCLClass;
|