@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.
- package/LICENSE.md +1 -1
- package/README.md +12 -12
- package/dist/core.cjs +2 -0
- package/dist/core.d.ts +790 -0
- package/dist/core.js +2175 -0
- package/dist/mcl-theme.cjs +1 -0
- package/dist/mcl-theme.d.ts +12 -0
- package/dist/mcl-theme.js +608 -0
- package/package.json +28 -7
- package/CHANGELOG.md +0 -150
- package/index.d.ts +0 -14
- package/index.js +0 -19
- package/index.ts +0 -31
- package/lib/alert/Alert.vue +0 -92
- package/lib/alert/Alert.vue.d.ts +0 -65
- package/lib/collapse/Collapse.vue +0 -118
- package/lib/collapse/Collapse.vue.d.ts +0 -55
- package/lib/composables/index.d.ts +0 -1
- package/lib/composables/index.js +0 -1
- package/lib/composables/index.ts +0 -1
- package/lib/composables/observeVisible.d.ts +0 -6
- package/lib/composables/observeVisible.js +0 -24
- package/lib/composables/observeVisible.ts +0 -30
- package/lib/directives/index.d.ts +0 -6
- package/lib/directives/index.js +0 -186
- package/lib/directives/index.ts +0 -211
- package/lib/directives/index.types.d.ts +0 -14
- package/lib/directives/index.types.js +0 -1
- package/lib/directives/index.types.ts +0 -15
- package/lib/dropdown/DropdownContainer.vue +0 -50
- package/lib/dropdown/DropdownContainer.vue.d.ts +0 -19
- package/lib/dropdown/DropdownContent.vue +0 -69
- package/lib/dropdown/DropdownContent.vue.d.ts +0 -42
- package/lib/dropdown/index.types.d.ts +0 -4
- package/lib/dropdown/index.types.js +0 -1
- package/lib/dropdown/index.types.ts +0 -4
- package/lib/header/HeaderHorizontal.vue +0 -158
- package/lib/header/HeaderHorizontal.vue.d.ts +0 -84
- package/lib/header/HeaderVertical.vue +0 -116
- package/lib/header/HeaderVertical.vue.d.ts +0 -70
- package/lib/header/NavDrawer.vue +0 -121
- package/lib/header/NavDrawer.vue.d.ts +0 -43
- package/lib/header/index.types.d.ts +0 -1
- package/lib/header/index.types.js +0 -1
- package/lib/header/index.types.ts +0 -1
- package/lib/modal/Modal.vue +0 -213
- package/lib/modal/Modal.vue.d.ts +0 -108
- package/lib/sidebar/Sidebar.vue +0 -242
- package/lib/sidebar/Sidebar.vue.d.ts +0 -113
- package/lib/theme/generateClass.d.ts +0 -2
- package/lib/theme/generateClass.js +0 -18
- package/lib/theme/generateClass.ts +0 -25
- package/lib/theme/index.d.ts +0 -95
- package/lib/theme/index.js +0 -642
- package/lib/theme/index.ts +0 -676
- package/lib/theme/theme.d.ts +0 -89
- package/lib/theme/theme.js +0 -851
- package/lib/theme/theme.ts +0 -893
- package/lib/theme/theme.types.d.ts +0 -21
- package/lib/theme/theme.types.js +0 -1
- package/lib/theme/theme.types.ts +0 -68
- package/lib/tooltip/index.d.ts +0 -62
- package/lib/tooltip/index.js +0 -71
- package/lib/tooltip/index.ts +0 -76
- package/themeVariables.cjs +0 -607
- package/tsconfig.json +0 -5
- package/tsconfig.ts.json +0 -9
- package/tsconfig.vue.json +0 -9
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function $(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var c={},h={};(function(o){Object.defineProperty(o,"__esModule",{value:!0}),Object.defineProperty(o,"default",{enumerable:!0,get:function(){return s}});function p(n,e){return{handler:n,config:e}}p.withOptions=function(n,e=()=>({})){const i=function(b){return{__options:b,handler:n(b),config:e(b)}};return i.__isOptionsFunction=!0,i.__pluginFunction=n,i.__configFunction=e,i};const s=p})(h);(function(o){Object.defineProperty(o,"__esModule",{value:!0}),Object.defineProperty(o,"default",{enumerable:!0,get:function(){return n}});const p=s(h);function s(e){return e&&e.__esModule?e:{default:e}}const n=p.default})(c);let d=c;var S=(d.__esModule?d:{default:d}).default;const z=$(S),y=z.withOptions(()=>({addBase:o,theme:p,addComponents:s,addUtilities:n,e})=>{const i=p("colors"),b=Object.keys(i).reduce((l,t)=>{if(typeof i[t]=="string")return{...l,[`.mcl-list-${e(t)} li::before`]:{color:i[t]}};const a=Object.keys(i[t]);return{...l,...a.reduce((f,r)=>({...f,[`.mcl-list-${e(t)}-${r} li::before`]:{color:i[t][r]}}),{})}},{}),x=Object.keys(i).reduce((l,t)=>{if(["current","transparent","inherit"].includes(t))return;if(typeof i[t]=="string")return{...l,[`.mcl-link.text-${e(t)}`]:{"&:hover":{[`@apply text-${t}/60`]:{}}}};const f=Object.keys(i[t]);return{...l,...f.reduce((r,g)=>({...r,[`.mcl-link.text-${e(t)}-${g}`]:{"&:hover":{[`@apply text-${t}-${g}/60`]:{}}}}))}}),u=Object.keys(i).reduce((l,t)=>{if(typeof i[t]=="string")return{...l,[`.btn.btn-${e(t)}`]:{[`@apply bg-${t}`]:{},"&:hover":{"@apply bg-opacity-70":{}},"&:focus":{[`@apply ring-4 ring-${t}`]:{}}},[`.btn.btn-invert.btn-${e(t)}`]:{[`@apply border-2 bg-transparent border-${t} text-${t}`]:{},"&:hover":{[`@apply bg-${t} text-white bg-opacity-100`]:{}},"&:focus":{[`@apply bg-${t} text-white`]:{}}},[`.btn-group .btn.btn-${e(t)}`]:{"&:focus":{"@apply ring-0":{}}},[`.btn.btn-${e(t)}.btn-no-ring`]:{"&:focus":{"@apply ring-0":{}}},[`.btn.btn-progress.btn-${e(t)}`]:{[`@apply before:bg-${t} border-${t} text-${t} bg-transparent`]:{},"&:hover, &:focus":{"@apply text-white":{}}}};const a=Object.keys(i[t]);return{...l,...a.reduce((f,r)=>({...f,[`.btn.btn-${e(t)}-${r}`]:{[`@apply bg-${t}-${r}`]:{},"&:hover":{"@apply bg-opacity-70":{}},"&:focus":{[`@apply ring-4 ring-${t}-${r}`]:{}}},[`.btn.btn-invert.btn-${e(t)}-${r}`]:{[`@apply border-2 bg-white border-${t}-${r} text-${t}-${r}`]:{},"&:hover":{[`@apply bg-${t}-${r} text-white bg-opacity-100`]:{}},"&:focus":{[`@apply bg-${t}-${r} text-white`]:{}}},[`.btn-group .btn.btn-${e(t)}-${r}`]:{"&:focus":{"@apply ring-0":{}}},[`.btn.btn-progress.btn-${e(t)}-${r}`]:{[`@apply before:bg-${t}-${r} border-${t}-${r} text-${t}-${r} bg-transparent`]:{},"&:hover, &:focus":{"@apply text-white":{}}}}),{})}},{}),m=Object.keys(i).reduce((l,t)=>{if(typeof i[t]=="string")return{...l,[`.tooltip.tooltip-top.bg-${e(t)}`]:{[`@apply after:border-t-${t}`]:{}},[`.tooltip.tooltip-bottom.bg-${e(t)}`]:{[`@apply after:border-b-${t}`]:{}},[`.tooltip.tooltip-right.bg-${e(t)}`]:{[`@apply after:border-r-${t}`]:{}},[`.tooltip.tooltip-left.bg-${e(t)}`]:{[`@apply after:border-l-${t}`]:{}}};const a=Object.keys(i[t]);return{...l,...a.reduce((f,r)=>({...f,[`.tooltip.tooltip-top.bg-${e(t)}-${r}`]:{[`@apply after:border-t-${t}-${r}`]:{}},[`.tooltip.tooltip-bottom.bg-${e(t)}-${r}`]:{[`@apply after:border-b-${t}-${r}`]:{}},[`.tooltip.tooltip-right.bg-${e(t)}-${r}`]:{[`@apply after:border-r-${t}-${r}`]:{}},[`.tooltip.tooltip-left.bg-${e(t)}-${r}`]:{[`@apply after:border-l-${t}-${r}`]:{}}}))}},{});o({body:{fontSize:"1rem",lineHeight:"1.5"},h1:{fontSize:"30px",fontWeight:"bold",lineHeight:"1.2","@screen md":{fontSize:"30px"},"@screen lg":{fontSize:"48px"}},h2:{fontSize:"24px",fontWeight:"bold",lineHeight:"1.2","@screen md":{fontSize:"24px"},"@screen lg":{fontSize:"36px"}},h3:{fontSize:"18px",fontWeight:"bold",lineHeight:"1.2","@screen md":{fontSize:"18px"},"@screen lg":{fontSize:"20px"}},h4:{fontSize:"16px",fontWeight:"bold",lineHeight:"1.2","@screen md":{fontSize:"16px"},"@screen lg":{fontSize:"18px"}}}),s({".h1-sm":{fontSize:"24px",fontWeight:"bold",lineHeight:"1.2","@screen md":{fontSize:"24px"},"@screen lg":{fontSize:"36px"}},".h1-md":{fontSize:"30px",fontWeight:"bold",lineHeight:"1.2","@screen md":{fontSize:"30px"},"@screen lg":{fontSize:"48px"}},".h1-lg":{fontSize:"36px",fontWeight:"bold",lineHeight:"1.2","@screen md":{fontSize:"36px"},"@screen lg":{fontSize:"56px"}},".h1-xl":{fontSize:"56px",fontWeight:"bold",lineHeight:"1.2","@screen md":{fontSize:"56px"},"@screen lg":{fontSize:"72px"}},".h2-sm":{fontSize:"18px",fontWeight:"bold",lineHeight:"1.2","@screen md":{fontSize:"18px"},"@screen lg":{fontSize:"24px"}},".h2-md":{fontSize:"24px",fontWeight:"bold",lineHeight:"1.2","@screen md":{fontSize:"24px"},"@screen lg":{fontSize:"36px"}},".h2-lg":{fontSize:"30px",fontWeight:"bold",lineHeight:"1.2","@screen md":{fontSize:"30px"},"@screen lg":{fontSize:"48px"}},".h2-xl":{fontSize:"48px",fontWeight:"bold",lineHeight:"1.2","@screen md":{fontSize:"48px"},"@screen lg":{fontSize:"60px"}},".h3-sm":{fontSize:"16px",fontWeight:"bold",lineHeight:"1.2","@screen md":{fontSize:"16px"},"@screen lg":{fontSize:"16px"}},".h3-md":{fontSize:"18px",fontWeight:"bold",lineHeight:"1.2","@screen md":{fontSize:"18px"},"@screen lg":{fontSize:"20px"}},".h3-lg":{fontSize:"18px",fontWeight:"bold",lineHeight:"1.2","@screen md":{fontSize:"18px"},"@screen lg":{fontSize:"24px"}},".h3-xl":{fontSize:"30px",fontWeight:"bold",lineHeight:"1.2","@screen md":{fontSize:"30px"},"@screen lg":{fontSize:"36px"}},"h4-sm":{fontSize:"14px",fontWeight:"bold",lineHeight:"1.2","@screen md":{fontSize:"14px"},"@screen lg":{fontSize:"16px"}},"h4-md":{fontSize:"16px",fontWeight:"bold",lineHeight:"1.2","@screen md":{fontSize:"16px"},"@screen lg":{fontSize:"18px"}},"h4-lg":{fontSize:"16px",fontWeight:"bold",lineHeight:"1.2","@screen md":{fontSize:"16px"},"@screen lg":{fontSize:"20px"}},"h4-xl":{fontSize:"24px",fontWeight:"bold",lineHeight:"1.2","@screen md":{fontSize:"24px"},"@screen lg":{fontSize:"30px"}},".mcl-link":{color:p("colors.primary"),textDecoration:"underline","@apply transition-colors duration-200 ease-in":{},"&:hover":{"@apply text-primary/60":{}}},".mcl-list":{"list-style-position":"inside",padding:"0","margin-left":"1rem"},"ul .mcl-list":{"list-style":"none"},".mcl-list li":{"margin-bottom":"0.5rem"},".mcl-list li::before":{content:'"•"',"font-weight":"700",display:"inline-block",width:"1rem","margin-left":"-1rem"},".mcl-list.mcl-list-sm li::before":{"font-weight":"500"},".mcl-list.mcl-list-lg li::before":{"font-weight":"900"},".btn":{padding:"0.5rem 1rem",cursor:"pointer","font-size":"1rem",transition:"all 300ms linear",overflow:"hidden",display:"inline-block","font-weight":"bold","@apply outline-none ring-offset-white ring-offset-2 bg-primary text-center rounded":{},"&:hover":{"@apply bg-opacity-70":{}},"&:focus":{"@apply ring-4 ring-primary":{}}},".btn.btn-round":{"@apply rounded-full":{}},".btn.btn-full":{display:"block",width:"100%"},".btn.btn-sm":{padding:"0.25rem 0.5rem","font-size":"0.875rem"},".btn.btn-lg":{padding:"0.625rem 1.25rem","font-size":"1.125rem"},".btn-group":{"@apply flex rounded overflow-hidden":{}},".btn-group .btn":{"@apply rounded-none ring-offset-0":{},"&:focus":{"@apply ring-0":{}}},".btn.btn-no-ring":{"@apply ring-offset-0":{},"&:focus":{"@apply ring-0":{}}},".btn.btn-invert":{"@apply border-2 border-primary text-primary bg-white":{},"&:hover":{"@apply bg-primary text-white bg-opacity-100":{}}},".btn.btn-progress":{position:"relative","&::before":{content:'""',position:"absolute",height:"100%",width:"0",bottom:"0",left:"0",transition:"width 300ms linear"},"@apply before:bg-primary border-2 border-primary text-primary bg-transparent":{}},".btn.btn-progress > *":{position:"relative"},".btn.btn-progress.btn-progress-r":{"&::before":{left:"100%",transition:"all 300ms linear"}},".btn.btn-progress:hover, .btn.btn-progress:focus":{"@apply text-white":{},"&::before":{width:"100%"}},".btn.btn-progress.btn-progress-r:hover, .btn.btn-progress.btn-progress-r:focus":{"&::before":{width:"100%",left:"0"}},".tooltip":{"@apply font-normal text-sm transition-opacity duration-200 p-2xs absolute rounded text-center drop-shadow-md":{}},".tooltip.tooltip-top":{left:"50%",bottom:"110%",transform:"translateX(-50%)","&::after":{content:'" "',position:"absolute",top:"100%",left:"50%","margin-left":"-5px","border-width":"5px","border-style":"solid"},"@apply after:border-t-dark-3 after:border-x-transparent after:border-b-transparent":{}},".tooltip.tooltip-bottom":{left:"50%",top:"110%",transform:"translateX(-50%)","&::after":{content:'" "',position:"absolute",bottom:"100%",left:"50%","margin-left":"-5px","border-width":"5px","border-style":"solid"},"@apply after:border-t-transparent after:border-x-transparent after:border-b-dark-3":{}},".tooltip.tooltip-left":{top:"50%",right:"110%",transform:"translateY(-50%)","&::after":{content:'" "',position:"absolute",top:"50%",left:"100%","margin-top":"-5px","border-width":"5px","border-style":"solid"},"@apply after:border-y-transparent after:border-r-transparent after:border-l-dark-3":{}},".tooltip.tooltip-right":{top:"50%",left:"110%",transform:"translateY(-50%)","&::after":{content:'" "',position:"absolute",top:"50%",right:"100%","margin-top":"-5px","border-width":"5px","border-style":"solid"},"@apply after:border-y-transparent after:border-l-transparent after:border-r-dark-3":{}}}),n(b),n(u),n(x),n(m)},(o={})=>{const p={primary:"#ec489a",secondary:"#00feda",success:"#78be20",info:"#00a3e0",warning:"#f1ac18",danger:"#cc2f2f","light-1":"#fafafa","light-2":"#f1f1f1","light-3":"#e8e8e8","light-4":"#d0d0d0","dark-1":"#747474","dark-2":"#484848","dark-3":"#1f2937","dark-4":"#191919"},s={"3xs":"4px","2xs":"8px",xs:"16px",sm:"24px",md:"32px",lg:"48px",xl:"64px","2xl":"96px","3xl":"128px"};return Object.keys(p).forEach(n=>{o.colors!==void 0&&o.colors[n]!==void 0&&(p[n]=o.colors[n])}),Object.keys(s).forEach(n=>{o.spacing!==void 0&&o.spacing[n]!==void 0&&(s[n]=o.spacing[n])}),{theme:{fontSize:{xs:"12px",sm:"14px",md:"16px",lg:"18px",xl:"20px"},container:{center:!0,screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px"}},extend:{colors:p,spacing:s}}}});exports.mclTheme=y;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Config } from 'tailwindcss/types/config';
|
|
2
|
+
import { PluginCreator } from 'tailwindcss/types/config';
|
|
3
|
+
|
|
4
|
+
export declare const mclTheme: {
|
|
5
|
+
(options: Partial<Config> | undefined): {
|
|
6
|
+
handler: PluginCreator;
|
|
7
|
+
config?: Partial<Config> | undefined;
|
|
8
|
+
};
|
|
9
|
+
__isOptionsFunction: true;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export { }
|
|
@@ -0,0 +1,608 @@
|
|
|
1
|
+
function $(o) {
|
|
2
|
+
return o && o.__esModule && Object.prototype.hasOwnProperty.call(o, "default") ? o.default : o;
|
|
3
|
+
}
|
|
4
|
+
var c = {}, h = {};
|
|
5
|
+
(function(o) {
|
|
6
|
+
Object.defineProperty(o, "__esModule", {
|
|
7
|
+
value: !0
|
|
8
|
+
}), Object.defineProperty(o, "default", {
|
|
9
|
+
enumerable: !0,
|
|
10
|
+
get: function() {
|
|
11
|
+
return s;
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
function p(n, e) {
|
|
15
|
+
return {
|
|
16
|
+
handler: n,
|
|
17
|
+
config: e
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
p.withOptions = function(n, e = () => ({})) {
|
|
21
|
+
const i = function(b) {
|
|
22
|
+
return {
|
|
23
|
+
__options: b,
|
|
24
|
+
handler: n(b),
|
|
25
|
+
config: e(b)
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
return i.__isOptionsFunction = !0, i.__pluginFunction = n, i.__configFunction = e, i;
|
|
29
|
+
};
|
|
30
|
+
const s = p;
|
|
31
|
+
})(h);
|
|
32
|
+
(function(o) {
|
|
33
|
+
Object.defineProperty(o, "__esModule", {
|
|
34
|
+
value: !0
|
|
35
|
+
}), Object.defineProperty(o, "default", {
|
|
36
|
+
enumerable: !0,
|
|
37
|
+
get: function() {
|
|
38
|
+
return n;
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
const p = /* @__PURE__ */ s(h);
|
|
42
|
+
function s(e) {
|
|
43
|
+
return e && e.__esModule ? e : {
|
|
44
|
+
default: e
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
const n = p.default;
|
|
48
|
+
})(c);
|
|
49
|
+
let d = c;
|
|
50
|
+
var S = (d.__esModule ? d : { default: d }).default;
|
|
51
|
+
const z = /* @__PURE__ */ $(S), y = z.withOptions(
|
|
52
|
+
() => ({ addBase: o, theme: p, addComponents: s, addUtilities: n, e }) => {
|
|
53
|
+
const i = p("colors"), b = Object.keys(i).reduce((l, t) => {
|
|
54
|
+
if (typeof i[t] == "string")
|
|
55
|
+
return {
|
|
56
|
+
...l,
|
|
57
|
+
[`.mcl-list-${e(t)} li::before`]: {
|
|
58
|
+
color: i[t]
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
const a = Object.keys(i[t]);
|
|
62
|
+
return {
|
|
63
|
+
...l,
|
|
64
|
+
...a.reduce(
|
|
65
|
+
(f, r) => ({
|
|
66
|
+
...f,
|
|
67
|
+
[`.mcl-list-${e(t)}-${r} li::before`]: {
|
|
68
|
+
color: i[t][r]
|
|
69
|
+
}
|
|
70
|
+
}),
|
|
71
|
+
{}
|
|
72
|
+
)
|
|
73
|
+
};
|
|
74
|
+
}, {}), x = Object.keys(i).reduce(
|
|
75
|
+
(l, t) => {
|
|
76
|
+
if (["current", "transparent", "inherit"].includes(t))
|
|
77
|
+
return;
|
|
78
|
+
if (typeof i[t] == "string")
|
|
79
|
+
return {
|
|
80
|
+
...l,
|
|
81
|
+
[`.mcl-link.text-${e(t)}`]: {
|
|
82
|
+
"&:hover": {
|
|
83
|
+
[`@apply text-${t}/60`]: {}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
const f = Object.keys(i[t]);
|
|
88
|
+
return {
|
|
89
|
+
...l,
|
|
90
|
+
...f.reduce((r, g) => ({
|
|
91
|
+
...r,
|
|
92
|
+
[`.mcl-link.text-${e(t)}-${g}`]: {
|
|
93
|
+
"&:hover": {
|
|
94
|
+
[`@apply text-${t}-${g}/60`]: {}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}))
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
), u = Object.keys(i).reduce((l, t) => {
|
|
101
|
+
if (typeof i[t] == "string")
|
|
102
|
+
return {
|
|
103
|
+
...l,
|
|
104
|
+
[`.btn.btn-${e(t)}`]: {
|
|
105
|
+
[`@apply bg-${t}`]: {},
|
|
106
|
+
"&:hover": {
|
|
107
|
+
"@apply bg-opacity-70": {}
|
|
108
|
+
},
|
|
109
|
+
"&:focus": {
|
|
110
|
+
[`@apply ring-4 ring-${t}`]: {}
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
[`.btn.btn-invert.btn-${e(t)}`]: {
|
|
114
|
+
[`@apply border-2 bg-transparent border-${t} text-${t}`]: {},
|
|
115
|
+
"&:hover": {
|
|
116
|
+
[`@apply bg-${t} text-white bg-opacity-100`]: {}
|
|
117
|
+
},
|
|
118
|
+
"&:focus": {
|
|
119
|
+
[`@apply bg-${t} text-white`]: {}
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
[`.btn-group .btn.btn-${e(t)}`]: {
|
|
123
|
+
"&:focus": {
|
|
124
|
+
"@apply ring-0": {}
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
[`.btn.btn-${e(t)}.btn-no-ring`]: {
|
|
128
|
+
"&:focus": {
|
|
129
|
+
"@apply ring-0": {}
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
[`.btn.btn-progress.btn-${e(t)}`]: {
|
|
133
|
+
[`@apply before:bg-${t} border-${t} text-${t} bg-transparent`]: {},
|
|
134
|
+
"&:hover, &:focus": {
|
|
135
|
+
"@apply text-white": {}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
};
|
|
139
|
+
const a = Object.keys(i[t]);
|
|
140
|
+
return {
|
|
141
|
+
...l,
|
|
142
|
+
...a.reduce(
|
|
143
|
+
(f, r) => ({
|
|
144
|
+
...f,
|
|
145
|
+
[`.btn.btn-${e(t)}-${r}`]: {
|
|
146
|
+
[`@apply bg-${t}-${r}`]: {},
|
|
147
|
+
"&:hover": {
|
|
148
|
+
"@apply bg-opacity-70": {}
|
|
149
|
+
},
|
|
150
|
+
"&:focus": {
|
|
151
|
+
[`@apply ring-4 ring-${t}-${r}`]: {}
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
[`.btn.btn-invert.btn-${e(t)}-${r}`]: {
|
|
155
|
+
[`@apply border-2 bg-white border-${t}-${r} text-${t}-${r}`]: {},
|
|
156
|
+
"&:hover": {
|
|
157
|
+
[`@apply bg-${t}-${r} text-white bg-opacity-100`]: {}
|
|
158
|
+
},
|
|
159
|
+
"&:focus": {
|
|
160
|
+
[`@apply bg-${t}-${r} text-white`]: {}
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
[`.btn-group .btn.btn-${e(t)}-${r}`]: {
|
|
164
|
+
"&:focus": {
|
|
165
|
+
"@apply ring-0": {}
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
[`.btn.btn-progress.btn-${e(t)}-${r}`]: {
|
|
169
|
+
[`@apply before:bg-${t}-${r} border-${t}-${r} text-${t}-${r} bg-transparent`]: {},
|
|
170
|
+
"&:hover, &:focus": {
|
|
171
|
+
"@apply text-white": {}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}),
|
|
175
|
+
{}
|
|
176
|
+
)
|
|
177
|
+
};
|
|
178
|
+
}, {}), m = Object.keys(i).reduce((l, t) => {
|
|
179
|
+
if (typeof i[t] == "string")
|
|
180
|
+
return {
|
|
181
|
+
...l,
|
|
182
|
+
[`.tooltip.tooltip-top.bg-${e(t)}`]: {
|
|
183
|
+
[`@apply after:border-t-${t}`]: {}
|
|
184
|
+
},
|
|
185
|
+
[`.tooltip.tooltip-bottom.bg-${e(t)}`]: {
|
|
186
|
+
[`@apply after:border-b-${t}`]: {}
|
|
187
|
+
},
|
|
188
|
+
[`.tooltip.tooltip-right.bg-${e(t)}`]: {
|
|
189
|
+
[`@apply after:border-r-${t}`]: {}
|
|
190
|
+
},
|
|
191
|
+
[`.tooltip.tooltip-left.bg-${e(t)}`]: {
|
|
192
|
+
[`@apply after:border-l-${t}`]: {}
|
|
193
|
+
}
|
|
194
|
+
};
|
|
195
|
+
const a = Object.keys(i[t]);
|
|
196
|
+
return {
|
|
197
|
+
...l,
|
|
198
|
+
...a.reduce((f, r) => ({
|
|
199
|
+
...f,
|
|
200
|
+
[`.tooltip.tooltip-top.bg-${e(t)}-${r}`]: {
|
|
201
|
+
[`@apply after:border-t-${t}-${r}`]: {}
|
|
202
|
+
},
|
|
203
|
+
[`.tooltip.tooltip-bottom.bg-${e(t)}-${r}`]: {
|
|
204
|
+
[`@apply after:border-b-${t}-${r}`]: {}
|
|
205
|
+
},
|
|
206
|
+
[`.tooltip.tooltip-right.bg-${e(t)}-${r}`]: {
|
|
207
|
+
[`@apply after:border-r-${t}-${r}`]: {}
|
|
208
|
+
},
|
|
209
|
+
[`.tooltip.tooltip-left.bg-${e(t)}-${r}`]: {
|
|
210
|
+
[`@apply after:border-l-${t}-${r}`]: {}
|
|
211
|
+
}
|
|
212
|
+
}))
|
|
213
|
+
};
|
|
214
|
+
}, {});
|
|
215
|
+
o({
|
|
216
|
+
body: {
|
|
217
|
+
// default font size
|
|
218
|
+
fontSize: "1rem",
|
|
219
|
+
lineHeight: "1.5"
|
|
220
|
+
},
|
|
221
|
+
h1: {
|
|
222
|
+
// default medium size
|
|
223
|
+
fontSize: "30px",
|
|
224
|
+
fontWeight: "bold",
|
|
225
|
+
lineHeight: "1.2",
|
|
226
|
+
"@screen md": { fontSize: "30px" },
|
|
227
|
+
"@screen lg": { fontSize: "48px" }
|
|
228
|
+
},
|
|
229
|
+
h2: {
|
|
230
|
+
// default medium size
|
|
231
|
+
fontSize: "24px",
|
|
232
|
+
fontWeight: "bold",
|
|
233
|
+
lineHeight: "1.2",
|
|
234
|
+
"@screen md": { fontSize: "24px" },
|
|
235
|
+
"@screen lg": { fontSize: "36px" }
|
|
236
|
+
},
|
|
237
|
+
h3: {
|
|
238
|
+
// default medium size
|
|
239
|
+
fontSize: "18px",
|
|
240
|
+
fontWeight: "bold",
|
|
241
|
+
lineHeight: "1.2",
|
|
242
|
+
"@screen md": { fontSize: "18px" },
|
|
243
|
+
"@screen lg": { fontSize: "20px" }
|
|
244
|
+
},
|
|
245
|
+
h4: {
|
|
246
|
+
// default medium size
|
|
247
|
+
fontSize: "16px",
|
|
248
|
+
fontWeight: "bold",
|
|
249
|
+
lineHeight: "1.2",
|
|
250
|
+
"@screen md": { fontSize: "16px" },
|
|
251
|
+
"@screen lg": { fontSize: "18px" }
|
|
252
|
+
}
|
|
253
|
+
}), s({
|
|
254
|
+
".h1-sm": {
|
|
255
|
+
fontSize: "24px",
|
|
256
|
+
fontWeight: "bold",
|
|
257
|
+
lineHeight: "1.2",
|
|
258
|
+
"@screen md": { fontSize: "24px" },
|
|
259
|
+
"@screen lg": { fontSize: "36px" }
|
|
260
|
+
},
|
|
261
|
+
".h1-md": {
|
|
262
|
+
fontSize: "30px",
|
|
263
|
+
fontWeight: "bold",
|
|
264
|
+
lineHeight: "1.2",
|
|
265
|
+
"@screen md": { fontSize: "30px" },
|
|
266
|
+
"@screen lg": { fontSize: "48px" }
|
|
267
|
+
},
|
|
268
|
+
".h1-lg": {
|
|
269
|
+
fontSize: "36px",
|
|
270
|
+
fontWeight: "bold",
|
|
271
|
+
lineHeight: "1.2",
|
|
272
|
+
"@screen md": { fontSize: "36px" },
|
|
273
|
+
"@screen lg": { fontSize: "56px" }
|
|
274
|
+
},
|
|
275
|
+
".h1-xl": {
|
|
276
|
+
fontSize: "56px",
|
|
277
|
+
fontWeight: "bold",
|
|
278
|
+
lineHeight: "1.2",
|
|
279
|
+
"@screen md": { fontSize: "56px" },
|
|
280
|
+
"@screen lg": { fontSize: "72px" }
|
|
281
|
+
},
|
|
282
|
+
".h2-sm": {
|
|
283
|
+
fontSize: "18px",
|
|
284
|
+
fontWeight: "bold",
|
|
285
|
+
lineHeight: "1.2",
|
|
286
|
+
"@screen md": { fontSize: "18px" },
|
|
287
|
+
"@screen lg": { fontSize: "24px" }
|
|
288
|
+
},
|
|
289
|
+
".h2-md": {
|
|
290
|
+
fontSize: "24px",
|
|
291
|
+
fontWeight: "bold",
|
|
292
|
+
lineHeight: "1.2",
|
|
293
|
+
"@screen md": { fontSize: "24px" },
|
|
294
|
+
"@screen lg": { fontSize: "36px" }
|
|
295
|
+
},
|
|
296
|
+
".h2-lg": {
|
|
297
|
+
fontSize: "30px",
|
|
298
|
+
fontWeight: "bold",
|
|
299
|
+
lineHeight: "1.2",
|
|
300
|
+
"@screen md": { fontSize: "30px" },
|
|
301
|
+
"@screen lg": { fontSize: "48px" }
|
|
302
|
+
},
|
|
303
|
+
".h2-xl": {
|
|
304
|
+
fontSize: "48px",
|
|
305
|
+
fontWeight: "bold",
|
|
306
|
+
lineHeight: "1.2",
|
|
307
|
+
"@screen md": { fontSize: "48px" },
|
|
308
|
+
"@screen lg": { fontSize: "60px" }
|
|
309
|
+
},
|
|
310
|
+
".h3-sm": {
|
|
311
|
+
fontSize: "16px",
|
|
312
|
+
fontWeight: "bold",
|
|
313
|
+
lineHeight: "1.2",
|
|
314
|
+
"@screen md": { fontSize: "16px" },
|
|
315
|
+
"@screen lg": { fontSize: "16px" }
|
|
316
|
+
},
|
|
317
|
+
".h3-md": {
|
|
318
|
+
fontSize: "18px",
|
|
319
|
+
fontWeight: "bold",
|
|
320
|
+
lineHeight: "1.2",
|
|
321
|
+
"@screen md": { fontSize: "18px" },
|
|
322
|
+
"@screen lg": { fontSize: "20px" }
|
|
323
|
+
},
|
|
324
|
+
".h3-lg": {
|
|
325
|
+
fontSize: "18px",
|
|
326
|
+
fontWeight: "bold",
|
|
327
|
+
lineHeight: "1.2",
|
|
328
|
+
"@screen md": { fontSize: "18px" },
|
|
329
|
+
"@screen lg": { fontSize: "24px" }
|
|
330
|
+
},
|
|
331
|
+
".h3-xl": {
|
|
332
|
+
fontSize: "30px",
|
|
333
|
+
fontWeight: "bold",
|
|
334
|
+
lineHeight: "1.2",
|
|
335
|
+
"@screen md": { fontSize: "30px" },
|
|
336
|
+
"@screen lg": { fontSize: "36px" }
|
|
337
|
+
},
|
|
338
|
+
"h4-sm": {
|
|
339
|
+
fontSize: "14px",
|
|
340
|
+
fontWeight: "bold",
|
|
341
|
+
lineHeight: "1.2",
|
|
342
|
+
"@screen md": { fontSize: "14px" },
|
|
343
|
+
"@screen lg": { fontSize: "16px" }
|
|
344
|
+
},
|
|
345
|
+
"h4-md": {
|
|
346
|
+
fontSize: "16px",
|
|
347
|
+
fontWeight: "bold",
|
|
348
|
+
lineHeight: "1.2",
|
|
349
|
+
"@screen md": { fontSize: "16px" },
|
|
350
|
+
"@screen lg": { fontSize: "18px" }
|
|
351
|
+
},
|
|
352
|
+
"h4-lg": {
|
|
353
|
+
fontSize: "16px",
|
|
354
|
+
fontWeight: "bold",
|
|
355
|
+
lineHeight: "1.2",
|
|
356
|
+
"@screen md": { fontSize: "16px" },
|
|
357
|
+
"@screen lg": { fontSize: "20px" }
|
|
358
|
+
},
|
|
359
|
+
"h4-xl": {
|
|
360
|
+
fontSize: "24px",
|
|
361
|
+
fontWeight: "bold",
|
|
362
|
+
lineHeight: "1.2",
|
|
363
|
+
"@screen md": { fontSize: "24px" },
|
|
364
|
+
"@screen lg": { fontSize: "30px" }
|
|
365
|
+
},
|
|
366
|
+
".mcl-link": {
|
|
367
|
+
color: p("colors.primary"),
|
|
368
|
+
textDecoration: "underline",
|
|
369
|
+
"@apply transition-colors duration-200 ease-in": {},
|
|
370
|
+
"&:hover": {
|
|
371
|
+
"@apply text-primary/60": {}
|
|
372
|
+
}
|
|
373
|
+
},
|
|
374
|
+
".mcl-list": {
|
|
375
|
+
"list-style-position": "inside",
|
|
376
|
+
padding: "0",
|
|
377
|
+
"margin-left": "1rem"
|
|
378
|
+
},
|
|
379
|
+
"ul .mcl-list": {
|
|
380
|
+
"list-style": "none"
|
|
381
|
+
},
|
|
382
|
+
".mcl-list li": {
|
|
383
|
+
"margin-bottom": "0.5rem"
|
|
384
|
+
},
|
|
385
|
+
".mcl-list li::before": {
|
|
386
|
+
content: '"•"',
|
|
387
|
+
"font-weight": "700",
|
|
388
|
+
display: "inline-block",
|
|
389
|
+
width: "1rem",
|
|
390
|
+
"margin-left": "-1rem"
|
|
391
|
+
},
|
|
392
|
+
".mcl-list.mcl-list-sm li::before": {
|
|
393
|
+
"font-weight": "500"
|
|
394
|
+
},
|
|
395
|
+
".mcl-list.mcl-list-lg li::before": {
|
|
396
|
+
"font-weight": "900"
|
|
397
|
+
},
|
|
398
|
+
".btn": {
|
|
399
|
+
padding: "0.5rem 1rem",
|
|
400
|
+
cursor: "pointer",
|
|
401
|
+
"font-size": "1rem",
|
|
402
|
+
transition: "all 300ms linear",
|
|
403
|
+
overflow: "hidden",
|
|
404
|
+
display: "inline-block",
|
|
405
|
+
"font-weight": "bold",
|
|
406
|
+
"@apply outline-none ring-offset-white ring-offset-2 bg-primary text-center rounded": {},
|
|
407
|
+
"&:hover": {
|
|
408
|
+
"@apply bg-opacity-70": {}
|
|
409
|
+
},
|
|
410
|
+
"&:focus": {
|
|
411
|
+
"@apply ring-4 ring-primary": {}
|
|
412
|
+
}
|
|
413
|
+
},
|
|
414
|
+
".btn.btn-round": {
|
|
415
|
+
"@apply rounded-full": {}
|
|
416
|
+
},
|
|
417
|
+
".btn.btn-full": {
|
|
418
|
+
display: "block",
|
|
419
|
+
width: "100%"
|
|
420
|
+
},
|
|
421
|
+
".btn.btn-sm": {
|
|
422
|
+
padding: "0.25rem 0.5rem",
|
|
423
|
+
"font-size": "0.875rem"
|
|
424
|
+
},
|
|
425
|
+
".btn.btn-lg": {
|
|
426
|
+
padding: "0.625rem 1.25rem",
|
|
427
|
+
"font-size": "1.125rem"
|
|
428
|
+
},
|
|
429
|
+
".btn-group": {
|
|
430
|
+
"@apply flex rounded overflow-hidden": {}
|
|
431
|
+
},
|
|
432
|
+
".btn-group .btn": {
|
|
433
|
+
"@apply rounded-none ring-offset-0": {},
|
|
434
|
+
"&:focus": {
|
|
435
|
+
"@apply ring-0": {}
|
|
436
|
+
}
|
|
437
|
+
},
|
|
438
|
+
".btn.btn-no-ring": {
|
|
439
|
+
"@apply ring-offset-0": {},
|
|
440
|
+
"&:focus": {
|
|
441
|
+
"@apply ring-0": {}
|
|
442
|
+
}
|
|
443
|
+
},
|
|
444
|
+
".btn.btn-invert": {
|
|
445
|
+
"@apply border-2 border-primary text-primary bg-white": {},
|
|
446
|
+
"&:hover": {
|
|
447
|
+
"@apply bg-primary text-white bg-opacity-100": {}
|
|
448
|
+
}
|
|
449
|
+
},
|
|
450
|
+
".btn.btn-progress": {
|
|
451
|
+
position: "relative",
|
|
452
|
+
"&::before": {
|
|
453
|
+
content: '""',
|
|
454
|
+
position: "absolute",
|
|
455
|
+
height: "100%",
|
|
456
|
+
width: "0",
|
|
457
|
+
bottom: "0",
|
|
458
|
+
left: "0",
|
|
459
|
+
transition: "width 300ms linear"
|
|
460
|
+
},
|
|
461
|
+
"@apply before:bg-primary border-2 border-primary text-primary bg-transparent": {}
|
|
462
|
+
},
|
|
463
|
+
".btn.btn-progress > *": {
|
|
464
|
+
position: "relative"
|
|
465
|
+
},
|
|
466
|
+
".btn.btn-progress.btn-progress-r": {
|
|
467
|
+
"&::before": {
|
|
468
|
+
left: "100%",
|
|
469
|
+
transition: "all 300ms linear"
|
|
470
|
+
}
|
|
471
|
+
},
|
|
472
|
+
".btn.btn-progress:hover, .btn.btn-progress:focus": {
|
|
473
|
+
"@apply text-white": {},
|
|
474
|
+
"&::before": {
|
|
475
|
+
width: "100%"
|
|
476
|
+
}
|
|
477
|
+
},
|
|
478
|
+
".btn.btn-progress.btn-progress-r:hover, .btn.btn-progress.btn-progress-r:focus": {
|
|
479
|
+
"&::before": {
|
|
480
|
+
width: "100%",
|
|
481
|
+
left: "0"
|
|
482
|
+
}
|
|
483
|
+
},
|
|
484
|
+
".tooltip": {
|
|
485
|
+
"@apply font-normal text-sm transition-opacity duration-200 p-2xs absolute rounded text-center drop-shadow-md": {}
|
|
486
|
+
},
|
|
487
|
+
".tooltip.tooltip-top": {
|
|
488
|
+
left: "50%",
|
|
489
|
+
bottom: "110%",
|
|
490
|
+
transform: "translateX(-50%)",
|
|
491
|
+
"&::after": {
|
|
492
|
+
content: '" "',
|
|
493
|
+
position: "absolute",
|
|
494
|
+
top: "100%",
|
|
495
|
+
left: "50%",
|
|
496
|
+
"margin-left": "-5px",
|
|
497
|
+
"border-width": "5px",
|
|
498
|
+
"border-style": "solid"
|
|
499
|
+
},
|
|
500
|
+
"@apply after:border-t-dark-3 after:border-x-transparent after:border-b-transparent": {}
|
|
501
|
+
},
|
|
502
|
+
".tooltip.tooltip-bottom": {
|
|
503
|
+
left: "50%",
|
|
504
|
+
top: "110%",
|
|
505
|
+
transform: "translateX(-50%)",
|
|
506
|
+
"&::after": {
|
|
507
|
+
content: '" "',
|
|
508
|
+
position: "absolute",
|
|
509
|
+
bottom: "100%",
|
|
510
|
+
left: "50%",
|
|
511
|
+
"margin-left": "-5px",
|
|
512
|
+
"border-width": "5px",
|
|
513
|
+
"border-style": "solid"
|
|
514
|
+
},
|
|
515
|
+
"@apply after:border-t-transparent after:border-x-transparent after:border-b-dark-3": {}
|
|
516
|
+
},
|
|
517
|
+
".tooltip.tooltip-left": {
|
|
518
|
+
top: "50%",
|
|
519
|
+
right: "110%",
|
|
520
|
+
transform: "translateY(-50%)",
|
|
521
|
+
"&::after": {
|
|
522
|
+
content: '" "',
|
|
523
|
+
position: "absolute",
|
|
524
|
+
top: "50%",
|
|
525
|
+
left: "100%",
|
|
526
|
+
"margin-top": "-5px",
|
|
527
|
+
"border-width": "5px",
|
|
528
|
+
"border-style": "solid"
|
|
529
|
+
},
|
|
530
|
+
"@apply after:border-y-transparent after:border-r-transparent after:border-l-dark-3": {}
|
|
531
|
+
},
|
|
532
|
+
".tooltip.tooltip-right": {
|
|
533
|
+
top: "50%",
|
|
534
|
+
left: "110%",
|
|
535
|
+
transform: "translateY(-50%)",
|
|
536
|
+
"&::after": {
|
|
537
|
+
content: '" "',
|
|
538
|
+
position: "absolute",
|
|
539
|
+
top: "50%",
|
|
540
|
+
right: "100%",
|
|
541
|
+
"margin-top": "-5px",
|
|
542
|
+
"border-width": "5px",
|
|
543
|
+
"border-style": "solid"
|
|
544
|
+
},
|
|
545
|
+
"@apply after:border-y-transparent after:border-l-transparent after:border-r-dark-3": {}
|
|
546
|
+
}
|
|
547
|
+
}), n(b), n(u), n(x), n(m);
|
|
548
|
+
},
|
|
549
|
+
(o = {}) => {
|
|
550
|
+
const p = {
|
|
551
|
+
primary: "#ec489a",
|
|
552
|
+
secondary: "#00feda",
|
|
553
|
+
success: "#78be20",
|
|
554
|
+
info: "#00a3e0",
|
|
555
|
+
warning: "#f1ac18",
|
|
556
|
+
danger: "#cc2f2f",
|
|
557
|
+
"light-1": "#fafafa",
|
|
558
|
+
"light-2": "#f1f1f1",
|
|
559
|
+
"light-3": "#e8e8e8",
|
|
560
|
+
"light-4": "#d0d0d0",
|
|
561
|
+
"dark-1": "#747474",
|
|
562
|
+
"dark-2": "#484848",
|
|
563
|
+
"dark-3": "#1f2937",
|
|
564
|
+
"dark-4": "#191919"
|
|
565
|
+
}, s = {
|
|
566
|
+
"3xs": "4px",
|
|
567
|
+
"2xs": "8px",
|
|
568
|
+
xs: "16px",
|
|
569
|
+
sm: "24px",
|
|
570
|
+
md: "32px",
|
|
571
|
+
lg: "48px",
|
|
572
|
+
xl: "64px",
|
|
573
|
+
"2xl": "96px",
|
|
574
|
+
"3xl": "128px"
|
|
575
|
+
};
|
|
576
|
+
return Object.keys(p).forEach((n) => {
|
|
577
|
+
o.colors !== void 0 && o.colors[n] !== void 0 && (p[n] = o.colors[n]);
|
|
578
|
+
}), Object.keys(s).forEach((n) => {
|
|
579
|
+
o.spacing !== void 0 && o.spacing[n] !== void 0 && (s[n] = o.spacing[n]);
|
|
580
|
+
}), {
|
|
581
|
+
theme: {
|
|
582
|
+
fontSize: {
|
|
583
|
+
xs: "12px",
|
|
584
|
+
sm: "14px",
|
|
585
|
+
md: "16px",
|
|
586
|
+
lg: "18px",
|
|
587
|
+
xl: "20px"
|
|
588
|
+
},
|
|
589
|
+
container: {
|
|
590
|
+
center: !0,
|
|
591
|
+
screens: {
|
|
592
|
+
sm: "640px",
|
|
593
|
+
md: "768px",
|
|
594
|
+
lg: "1024px",
|
|
595
|
+
xl: "1280px"
|
|
596
|
+
}
|
|
597
|
+
},
|
|
598
|
+
extend: {
|
|
599
|
+
colors: p,
|
|
600
|
+
spacing: s
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
};
|
|
604
|
+
}
|
|
605
|
+
);
|
|
606
|
+
export {
|
|
607
|
+
y as mclTheme
|
|
608
|
+
};
|