@bobbykim/manguito-theme 0.18.0 → 0.19.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 +2 -2
- package/dist/core.cjs +2 -0
- package/dist/core.d.ts +676 -0
- package/dist/core.js +2088 -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
package/dist/core.js
ADDED
|
@@ -0,0 +1,2088 @@
|
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var a=document.createElement("style");a.appendChild(document.createTextNode(".collapse-enter-active[data-v-0ec18f4b],.collapse-leave-active[data-v-0ec18f4b]{transition-property:height,opacity;transition-duration:.5s;transition-timing-function:ease}.dropup-bottom[data-v-00060433]{bottom:var(--button-height)}.dropdown-content-enter-active[data-v-00060433],.dropdown-content-leave-active[data-v-00060433]{transition:all .3s}.dropdown-content-enter-from[data-v-00060433],.dropdown-content-leave-to[data-v-00060433]{opacity:0;transform:translateY(-10px)}.hamburger__icon[data-v-64909a32]:before,.hamburger__icon[data-v-64909a32]:after{position:absolute;left:0;transition:all .3s linear}.hamburger__icon[data-v-64909a32]:before{top:-.5rem}.hamburger__icon[data-v-64909a32]:after{top:.5rem}.hamburger__button:focus .hamburger__icon[data-v-64909a32],.hamburger__button:hover .hamburger__icon[data-v-64909a32]{scale:1.05}.hamburger__checkbox:checked+.hamburger__icon[data-v-64909a32]{background-color:transparent}.hamburger__checkbox:checked+.hamburger__icon[data-v-64909a32]:before{top:0;transform:rotate(135deg)}.hamburger__checkbox:checked+.hamburger__icon[data-v-64909a32]:after{top:0;transform:rotate(-135deg)}.collapse-enter-active[data-v-94939c1a]{transition:height .5s ease-in}.collapse-leave-active[data-v-94939c1a]{transition:height .5s ease-out}.header-desktop[data-v-e2818e18]{width:100%}@media screen and (min-width: 1024px){.header-desktop[data-v-e2818e18]{width:var(--header-width)}}.slide-down-enter-active[data-v-e2818e18],.slide-down-leave-active[data-v-e2818e18]{transition:transform .5s ease-in,opacity .5s ease-in}.slide-down-enter-from[data-v-e2818e18],.slide-down-leave-to[data-v-e2818e18]{opacity:0;transform:translateY(-100%)}.vertical-placement[data-v-8500b482]{top:var(--vertical-placement);left:50%;transform:translateY(calc(-1 * var(--vertical-placement))) translate(-50%)}.fade-enter-active[data-v-8500b482],.fade-leave-active[data-v-8500b482]{transition-property:opacity;transition-duration:.3s;transition-timing-function:linear}.fade-enter-from[data-v-8500b482],.fade-leave-to[data-v-8500b482]{opacity:0}.slide-down-enter-active[data-v-8500b482]{animation:slide-down-8500b482 .3s ease}.slide-down-leave-active[data-v-8500b482]{animation:slide-down-8500b482 reverse .3s ease}@keyframes slide-down-8500b482{0%{opacity:0;transform:translateY(-100%) translate(-50%)}to{opacity:1;transform:translateY(calc(-1 * var(--vertical-placement))) translate(-50%)}}.sidebar-body[data-v-d725bf18]{width:100%}.sidebar-body-height[data-v-d725bf18]{min-height:calc(100vh - var(--header-height) - var(--footer-height))}.fade-enter-active[data-v-d725bf18],.fade-leave-active[data-v-d725bf18]{transition-property:opacity;transition-duration:.3s;transition-timing-function:linear}.fade-enter-from[data-v-d725bf18],.fade-leave-to[data-v-d725bf18]{opacity:0}.sidebar-left-enter-active[data-v-d725bf18],.sidebar-left-leave-active[data-v-d725bf18],.sidebar-right-enter-active[data-v-d725bf18],.sidebar-right-leave-active[data-v-d725bf18]{transition-property:transform,opacity;transition-duration:.3s;transition-timing-function:linear}.sidebar-left-enter-from[data-v-d725bf18],.sidebar-left-leave-to[data-v-d725bf18]{transform:translate(-100%)}.sidebar-right-enter-from[data-v-d725bf18],.sidebar-right-leave-to[data-v-d725bf18]{transform:translate(100%)}@media screen and (min-width: 768px){.sidebar-body[data-v-d725bf18]{width:var(--sidebar-width)}.sidebar-left-enter-from[data-v-d725bf18],.sidebar-left-leave-to[data-v-d725bf18]{transform:translate(calc(-1 * var(--sidebar-width)))}.sidebar-right-enter-from[data-v-d725bf18],.sidebar-right-leave-to[data-v-d725bf18]{transform:translate(var(--sidebar-width))}}")),document.head.appendChild(a)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
2
|
+
var Q = Object.defineProperty;
|
|
3
|
+
var Z = (r, d, e) => d in r ? Q(r, d, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[d] = e;
|
|
4
|
+
var i = (r, d, e) => (Z(r, typeof d != "symbol" ? d + "" : d, e), e);
|
|
5
|
+
import { defineComponent as E, useSlots as G, ref as R, computed as O, watch as W, openBlock as p, createElementBlock as f, normalizeClass as B, createElementVNode as v, renderSlot as _, createCommentVNode as w, onMounted as j, createVNode as S, unref as y, withCtx as H, Transition as D, withDirectives as $, vShow as M, h as tt, render as z, reactive as et, provide as rt, withKeys as st, inject as at, createBlock as F, normalizeStyle as L, vModelCheckbox as ot, toDisplayString as U, pushScopeId as q, popScopeId as K } from "vue";
|
|
6
|
+
import { useMutationObserver as lt, useWindowSize as it, useWindowScroll as nt } from "@vueuse/core";
|
|
7
|
+
class t {
|
|
8
|
+
}
|
|
9
|
+
// bg color class
|
|
10
|
+
i(t, "bgColor", {
|
|
11
|
+
primary: "bg-primary",
|
|
12
|
+
secondary: "bg-secondary",
|
|
13
|
+
success: "bg-success",
|
|
14
|
+
danger: "bg-danger",
|
|
15
|
+
info: "bg-info",
|
|
16
|
+
warning: "bg-warning",
|
|
17
|
+
"light-1": "bg-light-1",
|
|
18
|
+
"light-2": "bg-light-2",
|
|
19
|
+
"light-3": "bg-light-3",
|
|
20
|
+
"light-4": "bg-light-4",
|
|
21
|
+
"dark-1": "bg-dark-1",
|
|
22
|
+
"dark-2": "bg-dark-2",
|
|
23
|
+
"dark-3": "bg-dark-3",
|
|
24
|
+
"dark-4": "bg-dark-4",
|
|
25
|
+
black: "bg-black",
|
|
26
|
+
white: "bg-white",
|
|
27
|
+
transparent: "bg-transparent"
|
|
28
|
+
}), // hover: bg color class
|
|
29
|
+
i(t, "hoverBgColor", {
|
|
30
|
+
primary: "hover:bg-primary",
|
|
31
|
+
secondary: "hover:bg-secondary",
|
|
32
|
+
success: "hover:bg-success",
|
|
33
|
+
danger: "hover:bg-danger",
|
|
34
|
+
info: "hover:bg-info",
|
|
35
|
+
warning: "hover:bg-warning",
|
|
36
|
+
"light-1": "hover:bg-light-1",
|
|
37
|
+
"light-2": "hover:bg-light-2",
|
|
38
|
+
"light-3": "hover:bg-light-3",
|
|
39
|
+
"light-4": "hover:bg-light-4",
|
|
40
|
+
"dark-1": "hover:bg-dark-1",
|
|
41
|
+
"dark-2": "hover:bg-dark-2",
|
|
42
|
+
"dark-3": "hover:bg-dark-3",
|
|
43
|
+
"dark-4": "hover:bg-dark-4",
|
|
44
|
+
black: "hover:bg-black",
|
|
45
|
+
white: "hover:bg-white",
|
|
46
|
+
transparent: "hover:bg-transparent"
|
|
47
|
+
}), // focus: bg color class
|
|
48
|
+
i(t, "focusBgColor", {
|
|
49
|
+
primary: "focus:bg-primary",
|
|
50
|
+
secondary: "focus:bg-secondary",
|
|
51
|
+
success: "focus:bg-success",
|
|
52
|
+
danger: "focus:bg-danger",
|
|
53
|
+
info: "focus:bg-info",
|
|
54
|
+
warning: "focus:bg-warning",
|
|
55
|
+
"light-1": "focus:bg-light-1",
|
|
56
|
+
"light-2": "focus:bg-light-2",
|
|
57
|
+
"light-3": "focus:bg-light-3",
|
|
58
|
+
"light-4": "focus:bg-light-4",
|
|
59
|
+
"dark-1": "focus:bg-dark-1",
|
|
60
|
+
"dark-2": "focus:bg-dark-2",
|
|
61
|
+
"dark-3": "focus:bg-dark-3",
|
|
62
|
+
"dark-4": "focus:bg-dark-4",
|
|
63
|
+
black: "focus:bg-black",
|
|
64
|
+
white: "focus:bg-white",
|
|
65
|
+
transparent: "focus:bg-transparent"
|
|
66
|
+
}), // ::before bg color class
|
|
67
|
+
i(t, "beforeBgColor", {
|
|
68
|
+
primary: "before:bg-primary",
|
|
69
|
+
secondary: "before:bg-secondary",
|
|
70
|
+
success: "before:bg-success",
|
|
71
|
+
danger: "before:bg-danger",
|
|
72
|
+
info: "before:bg-info",
|
|
73
|
+
warning: "before:bg-warning",
|
|
74
|
+
"light-1": "before:bg-light-1",
|
|
75
|
+
"light-2": "before:bg-light-2",
|
|
76
|
+
"light-3": "before:bg-light-3",
|
|
77
|
+
"light-4": "before:bg-light-4",
|
|
78
|
+
"dark-1": "before:bg-dark-1",
|
|
79
|
+
"dark-2": "before:bg-dark-2",
|
|
80
|
+
"dark-3": "before:bg-dark-3",
|
|
81
|
+
"dark-4": "before:bg-dark-4",
|
|
82
|
+
black: "before:bg-black",
|
|
83
|
+
white: "before:bg-white",
|
|
84
|
+
transparent: "before:bg-transparent"
|
|
85
|
+
}), // ::after bg color class
|
|
86
|
+
i(t, "afterBgColor", {
|
|
87
|
+
primary: "after:bg-primary",
|
|
88
|
+
secondary: "after:bg-secondary",
|
|
89
|
+
success: "after:bg-success",
|
|
90
|
+
danger: "after:bg-danger",
|
|
91
|
+
info: "after:bg-info",
|
|
92
|
+
warning: "after:bg-warning",
|
|
93
|
+
"light-1": "after:bg-light-1",
|
|
94
|
+
"light-2": "after:bg-light-2",
|
|
95
|
+
"light-3": "after:bg-light-3",
|
|
96
|
+
"light-4": "after:bg-light-4",
|
|
97
|
+
"dark-1": "after:bg-dark-1",
|
|
98
|
+
"dark-2": "after:bg-dark-2",
|
|
99
|
+
"dark-3": "after:bg-dark-3",
|
|
100
|
+
"dark-4": "after:bg-dark-4",
|
|
101
|
+
black: "after:bg-black",
|
|
102
|
+
white: "after:bg-white",
|
|
103
|
+
transparent: "after:bg-transparent"
|
|
104
|
+
}), // active:bg color class
|
|
105
|
+
i(t, "bgActiveColor", {
|
|
106
|
+
primary: "active:bg-primary",
|
|
107
|
+
secondary: "active:bg-secondary",
|
|
108
|
+
success: "active:bg-success",
|
|
109
|
+
danger: "active:bg-danger",
|
|
110
|
+
info: "active:bg-info",
|
|
111
|
+
warning: "active:bg-warning",
|
|
112
|
+
"light-1": "active:bg-light-1",
|
|
113
|
+
"light-2": "active:bg-light-2",
|
|
114
|
+
"light-3": "active:bg-light-3",
|
|
115
|
+
"light-4": "active:bg-light-4",
|
|
116
|
+
"dark-1": "active:bg-dark-1",
|
|
117
|
+
"dark-2": "active:bg-dark-2",
|
|
118
|
+
"dark-3": "active:bg-dark-3",
|
|
119
|
+
"dark-4": "active:bg-dark-4",
|
|
120
|
+
black: "active:bg-black",
|
|
121
|
+
white: "active:bg-white",
|
|
122
|
+
transparent: "active:bg-transparent"
|
|
123
|
+
}), // text color class
|
|
124
|
+
i(t, "textColor", {
|
|
125
|
+
primary: "text-primary",
|
|
126
|
+
secondary: "text-secondary",
|
|
127
|
+
success: "text-success",
|
|
128
|
+
danger: "text-danger",
|
|
129
|
+
info: "text-info",
|
|
130
|
+
warning: "text-warning",
|
|
131
|
+
"light-1": "text-light-1",
|
|
132
|
+
"light-2": "text-light-2",
|
|
133
|
+
"light-3": "text-light-3",
|
|
134
|
+
"light-4": "text-light-4",
|
|
135
|
+
"dark-1": "text-dark-1",
|
|
136
|
+
"dark-2": "text-dark-2",
|
|
137
|
+
"dark-3": "text-dark-3",
|
|
138
|
+
"dark-4": "text-dark-4",
|
|
139
|
+
black: "text-black",
|
|
140
|
+
white: "text-white",
|
|
141
|
+
transparent: "text-transparent"
|
|
142
|
+
}), // hover text color class
|
|
143
|
+
i(t, "hoverTextColor", {
|
|
144
|
+
primary: "hover:text-primary",
|
|
145
|
+
secondary: "hover:text-secondary",
|
|
146
|
+
success: "hover:text-success",
|
|
147
|
+
danger: "hover:text-danger",
|
|
148
|
+
info: "hover:text-info",
|
|
149
|
+
warning: "hover:text-warning",
|
|
150
|
+
"light-1": "hover:text-light-1",
|
|
151
|
+
"light-2": "hover:text-light-2",
|
|
152
|
+
"light-3": "hover:text-light-3",
|
|
153
|
+
"light-4": "hover:text-light-4",
|
|
154
|
+
"dark-1": "hover:text-dark-1",
|
|
155
|
+
"dark-2": "hover:text-dark-2",
|
|
156
|
+
"dark-3": "hover:text-dark-3",
|
|
157
|
+
"dark-4": "hover:text-dark-4",
|
|
158
|
+
black: "hover:text-black",
|
|
159
|
+
white: "hover:text-white",
|
|
160
|
+
transparent: "hover:text-transparent"
|
|
161
|
+
}), // focus text color class
|
|
162
|
+
i(t, "focusTextColor", {
|
|
163
|
+
primary: "focus:text-primary",
|
|
164
|
+
secondary: "focus:text-secondary",
|
|
165
|
+
success: "focus:text-success",
|
|
166
|
+
danger: "focus:text-danger",
|
|
167
|
+
info: "focus:text-info",
|
|
168
|
+
warning: "focus:text-warning",
|
|
169
|
+
"light-1": "focus:text-light-1",
|
|
170
|
+
"light-2": "focus:text-light-2",
|
|
171
|
+
"light-3": "focus:text-light-3",
|
|
172
|
+
"light-4": "focus:text-light-4",
|
|
173
|
+
"dark-1": "focus:text-dark-1",
|
|
174
|
+
"dark-2": "focus:text-dark-2",
|
|
175
|
+
"dark-3": "focus:text-dark-3",
|
|
176
|
+
"dark-4": "focus:text-dark-4",
|
|
177
|
+
black: "focus:text-black",
|
|
178
|
+
white: "focus:text-white",
|
|
179
|
+
transparent: "focus:text-transparent"
|
|
180
|
+
}), // disabled text color class
|
|
181
|
+
i(t, "disabledTextColor", {
|
|
182
|
+
primary: "disabled:text-primary",
|
|
183
|
+
secondary: "disabled:text-secondary",
|
|
184
|
+
success: "disabled:text-success",
|
|
185
|
+
danger: "disabled:text-danger",
|
|
186
|
+
info: "disabled:text-info",
|
|
187
|
+
warning: "disabled:text-warning",
|
|
188
|
+
"light-1": "disabled:text-light-1",
|
|
189
|
+
"light-2": "disabled:text-light-2",
|
|
190
|
+
"light-3": "disabled:text-light-3",
|
|
191
|
+
"light-4": "disabled:text-light-4",
|
|
192
|
+
"dark-1": "disabled:text-dark-1",
|
|
193
|
+
"dark-2": "disabled:text-dark-2",
|
|
194
|
+
"dark-3": "disabled:text-dark-3",
|
|
195
|
+
"dark-4": "disabled:text-dark-4",
|
|
196
|
+
black: "disabled:text-black",
|
|
197
|
+
white: "disabled:text-white",
|
|
198
|
+
transparent: "disabled:text-transparent"
|
|
199
|
+
}), // SVG fill color class
|
|
200
|
+
i(t, "svgFillColor", {
|
|
201
|
+
primary: "fill-primary",
|
|
202
|
+
secondary: "fill-secondary",
|
|
203
|
+
success: "fill-success",
|
|
204
|
+
danger: "fill-danger",
|
|
205
|
+
info: "fill-info",
|
|
206
|
+
warning: "fill-warning",
|
|
207
|
+
"light-1": "fill-light-1",
|
|
208
|
+
"light-2": "fill-light-2",
|
|
209
|
+
"light-3": "fill-light-3",
|
|
210
|
+
"light-4": "fill-light-4",
|
|
211
|
+
"dark-1": "fill-dark-1",
|
|
212
|
+
"dark-2": "fill-dark-2",
|
|
213
|
+
"dark-3": "fill-dark-3",
|
|
214
|
+
"dark-4": "fill-dark-4",
|
|
215
|
+
black: "fill-black",
|
|
216
|
+
white: "fill-white",
|
|
217
|
+
transparent: "fill-transparent"
|
|
218
|
+
}), // ring color class
|
|
219
|
+
i(t, "ringColor", {
|
|
220
|
+
primary: "ring-primary",
|
|
221
|
+
secondary: "ring-secondary",
|
|
222
|
+
success: "ring-success",
|
|
223
|
+
danger: "ring-danger",
|
|
224
|
+
info: "ring-info",
|
|
225
|
+
warning: "ring-warning",
|
|
226
|
+
"light-1": "ring-light-1",
|
|
227
|
+
"light-2": "ring-light-2",
|
|
228
|
+
"light-3": "ring-light-3",
|
|
229
|
+
"light-4": "ring-light-4",
|
|
230
|
+
"dark-1": "ring-dark-1",
|
|
231
|
+
"dark-2": "ring-dark-2",
|
|
232
|
+
"dark-3": "ring-dark-3",
|
|
233
|
+
"dark-4": "ring-dark-4",
|
|
234
|
+
black: "ring-black",
|
|
235
|
+
white: "ring-white",
|
|
236
|
+
transparent: "ring-transparent"
|
|
237
|
+
}), // focus:ring color class
|
|
238
|
+
i(t, "ringFocusColor", {
|
|
239
|
+
primary: "focus:ring-primary",
|
|
240
|
+
secondary: "focus:ring-secondary",
|
|
241
|
+
success: "focus:ring-success",
|
|
242
|
+
danger: "focus:ring-danger",
|
|
243
|
+
info: "focus:ring-info",
|
|
244
|
+
warning: "focus:ring-warning",
|
|
245
|
+
"light-1": "focus:ring-light-1",
|
|
246
|
+
"light-2": "focus:ring-light-2",
|
|
247
|
+
"light-3": "focus:ring-light-3",
|
|
248
|
+
"light-4": "focus:ring-light-4",
|
|
249
|
+
"dark-1": "focus:ring-dark-1",
|
|
250
|
+
"dark-2": "focus:ring-dark-2",
|
|
251
|
+
"dark-3": "focus:ring-dark-3",
|
|
252
|
+
"dark-4": "focus:ring-dark-4",
|
|
253
|
+
black: "focus:ring-black",
|
|
254
|
+
white: "focus:ring-white",
|
|
255
|
+
transparent: "focus:ring-transparent"
|
|
256
|
+
}), // active:ring color class
|
|
257
|
+
i(t, "ringActiveColor", {
|
|
258
|
+
primary: "active:ring-primary",
|
|
259
|
+
secondary: "active:ring-secondary",
|
|
260
|
+
success: "active:ring-success",
|
|
261
|
+
danger: "active:ring-danger",
|
|
262
|
+
info: "active:ring-info",
|
|
263
|
+
warning: "active:ring-warning",
|
|
264
|
+
"light-1": "active:ring-light-1",
|
|
265
|
+
"light-2": "active:ring-light-2",
|
|
266
|
+
"light-3": "active:ring-light-3",
|
|
267
|
+
"light-4": "active:ring-light-4",
|
|
268
|
+
"dark-1": "active:ring-dark-1",
|
|
269
|
+
"dark-2": "active:ring-dark-2",
|
|
270
|
+
"dark-3": "active:ring-dark-3",
|
|
271
|
+
"dark-4": "active:ring-dark-4",
|
|
272
|
+
black: "active:ring-black",
|
|
273
|
+
white: "active:ring-white",
|
|
274
|
+
transparent: "active:ring-transparent"
|
|
275
|
+
}), // ring-offset color class
|
|
276
|
+
i(t, "ringOffsetColor", {
|
|
277
|
+
primary: "ring-offset-primary",
|
|
278
|
+
secondary: "ring-offset-secondary",
|
|
279
|
+
success: "ring-offset-success",
|
|
280
|
+
danger: "ring-offset-danger",
|
|
281
|
+
info: "ring-offset-info",
|
|
282
|
+
warning: "ring-offset-warning",
|
|
283
|
+
"light-1": "ring-offset-light-1",
|
|
284
|
+
"light-2": "ring-offset-light-2",
|
|
285
|
+
"light-3": "ring-offset-light-3",
|
|
286
|
+
"light-4": "ring-offset-light-4",
|
|
287
|
+
"dark-1": "ring-offset-dark-1",
|
|
288
|
+
"dark-2": "ring-offset-dark-2",
|
|
289
|
+
"dark-3": "ring-offset-dark-3",
|
|
290
|
+
"dark-4": "ring-offset-dark-4",
|
|
291
|
+
black: "ring-offset-black",
|
|
292
|
+
white: "ring-offset-white",
|
|
293
|
+
transparent: "ring-offset-transparent"
|
|
294
|
+
}), i(t, "dummyColor", {
|
|
295
|
+
primary: "ring-offset-primary",
|
|
296
|
+
secondary: "ring-offset-secondary",
|
|
297
|
+
success: "ring-offset-success",
|
|
298
|
+
danger: "ring-offset-danger",
|
|
299
|
+
info: "ring-offset-info",
|
|
300
|
+
warning: "ring-offset-warning",
|
|
301
|
+
"light-1": "ring-offset-light-1",
|
|
302
|
+
"light-2": "ring-offset-light-2",
|
|
303
|
+
"light-3": "ring-offset-light-3",
|
|
304
|
+
"light-4": "ring-offset-light-4",
|
|
305
|
+
"dark-1": "ring-offset-dark-1",
|
|
306
|
+
"dark-2": "ring-offset-dark-2",
|
|
307
|
+
"dark-3": "ring-offset-dark-3",
|
|
308
|
+
"dark-4": "ring-offset-dark-4",
|
|
309
|
+
black: "ring-offset-black",
|
|
310
|
+
white: "ring-offset-white",
|
|
311
|
+
transparent: "ring-offset-transparent"
|
|
312
|
+
}), // btn color class
|
|
313
|
+
i(t, "btnColor", {
|
|
314
|
+
primary: "btn-primary",
|
|
315
|
+
secondary: "btn-secondary",
|
|
316
|
+
success: "btn-success",
|
|
317
|
+
danger: "btn-danger",
|
|
318
|
+
info: "btn-info",
|
|
319
|
+
warning: "btn-warning",
|
|
320
|
+
"light-1": "btn-light-1",
|
|
321
|
+
"light-2": "btn-light-2",
|
|
322
|
+
"light-3": "btn-light-3",
|
|
323
|
+
"light-4": "btn-light-4",
|
|
324
|
+
"dark-1": "btn-dark-1",
|
|
325
|
+
"dark-2": "btn-dark-2",
|
|
326
|
+
"dark-3": "btn-dark-3",
|
|
327
|
+
"dark-4": "btn-dark-4",
|
|
328
|
+
black: "btn-black",
|
|
329
|
+
white: "btn-white",
|
|
330
|
+
transparent: "btn-transparent"
|
|
331
|
+
}), // list color class
|
|
332
|
+
i(t, "listColor", {
|
|
333
|
+
primary: "mcl-list-primary",
|
|
334
|
+
secondary: "mcl-list-secondary",
|
|
335
|
+
success: "mcl-list-success",
|
|
336
|
+
danger: "mcl-list-danger",
|
|
337
|
+
info: "mcl-list-info",
|
|
338
|
+
warning: "mcl-list-warning",
|
|
339
|
+
"light-1": "mcl-list-light-1",
|
|
340
|
+
"light-2": "mcl-list-light-2",
|
|
341
|
+
"light-3": "mcl-list-light-3",
|
|
342
|
+
"light-4": "mcl-list-light-4",
|
|
343
|
+
"dark-1": "mcl-list-dark-1",
|
|
344
|
+
"dark-2": "mcl-list-dark-2",
|
|
345
|
+
"dark-3": "mcl-list-dark-3",
|
|
346
|
+
"dark-4": "mcl-list-dark-4",
|
|
347
|
+
black: "mcl-list-black",
|
|
348
|
+
white: "mcl-list-white",
|
|
349
|
+
transparent: "mcl-list-transparent"
|
|
350
|
+
}), // h1 class
|
|
351
|
+
i(t, "heading1", {
|
|
352
|
+
sm: "h1-sm",
|
|
353
|
+
md: "h1-md",
|
|
354
|
+
lg: "h1-lg",
|
|
355
|
+
xl: "h1-xl"
|
|
356
|
+
}), // h2 class
|
|
357
|
+
i(t, "heading2", {
|
|
358
|
+
sm: "h2-sm",
|
|
359
|
+
md: "h2-md",
|
|
360
|
+
lg: "h2-lg",
|
|
361
|
+
xl: "h2-xl"
|
|
362
|
+
}), // h3 class
|
|
363
|
+
i(t, "heading3", {
|
|
364
|
+
sm: "h3-sm",
|
|
365
|
+
md: "h3-md",
|
|
366
|
+
lg: "h3-lg",
|
|
367
|
+
xl: "h3-xl"
|
|
368
|
+
}), // h4 class
|
|
369
|
+
i(t, "heading4", {
|
|
370
|
+
sm: "h4-sm",
|
|
371
|
+
md: "h4-md",
|
|
372
|
+
lg: "h4-lg",
|
|
373
|
+
xl: "h4-xl"
|
|
374
|
+
}), // body text class
|
|
375
|
+
i(t, "bodyText", {
|
|
376
|
+
xs: "text-xs",
|
|
377
|
+
sm: "text-sm",
|
|
378
|
+
md: "text-md",
|
|
379
|
+
lg: "text-lg",
|
|
380
|
+
xl: "text-xl"
|
|
381
|
+
}), // font weight class
|
|
382
|
+
i(t, "fontweight", {
|
|
383
|
+
light: "font-light",
|
|
384
|
+
normal: "font-normal",
|
|
385
|
+
bold: "font-bold"
|
|
386
|
+
}), // border color classes
|
|
387
|
+
i(t, "borderColor", {
|
|
388
|
+
primary: "border-primary",
|
|
389
|
+
secondary: "border-secondary",
|
|
390
|
+
success: "border-success",
|
|
391
|
+
danger: "border-danger",
|
|
392
|
+
info: "border-info",
|
|
393
|
+
warning: "border-warning",
|
|
394
|
+
"light-1": "border-light-1",
|
|
395
|
+
"light-2": "border-light-2",
|
|
396
|
+
"light-3": "border-light-3",
|
|
397
|
+
"light-4": "border-light-4",
|
|
398
|
+
"dark-1": "border-dark-1",
|
|
399
|
+
"dark-2": "border-dark-2",
|
|
400
|
+
"dark-3": "border-dark-3",
|
|
401
|
+
"dark-4": "border-dark-4",
|
|
402
|
+
black: "border-black",
|
|
403
|
+
white: "border-white",
|
|
404
|
+
transparent: "border-transparent"
|
|
405
|
+
}), i(t, "borderXColor", {
|
|
406
|
+
primary: "border-x-primary",
|
|
407
|
+
secondary: "border-x-secondary",
|
|
408
|
+
success: "border-x-success",
|
|
409
|
+
danger: "border-x-danger",
|
|
410
|
+
info: "border-x-info",
|
|
411
|
+
warning: "border-x-warning",
|
|
412
|
+
"light-1": "border-x-light-1",
|
|
413
|
+
"light-2": "border-x-light-2",
|
|
414
|
+
"light-3": "border-x-light-3",
|
|
415
|
+
"light-4": "border-x-light-4",
|
|
416
|
+
"dark-1": "border-x-dark-1",
|
|
417
|
+
"dark-2": "border-x-dark-2",
|
|
418
|
+
"dark-3": "border-x-dark-3",
|
|
419
|
+
"dark-4": "border-x-dark-4",
|
|
420
|
+
black: "border-x-black",
|
|
421
|
+
white: "border-x-white",
|
|
422
|
+
transparent: "border-x-transparent"
|
|
423
|
+
}), i(t, "borderYColor", {
|
|
424
|
+
primary: "border-y-primary",
|
|
425
|
+
secondary: "border-y-secondary",
|
|
426
|
+
success: "border-y-success",
|
|
427
|
+
danger: "border-y-danger",
|
|
428
|
+
info: "border-y-info",
|
|
429
|
+
warning: "border-y-warning",
|
|
430
|
+
"light-1": "border-y-light-1",
|
|
431
|
+
"light-2": "border-y-light-2",
|
|
432
|
+
"light-3": "border-y-light-3",
|
|
433
|
+
"light-4": "border-y-light-4",
|
|
434
|
+
"dark-1": "border-y-dark-1",
|
|
435
|
+
"dark-2": "border-y-dark-2",
|
|
436
|
+
"dark-3": "border-y-dark-3",
|
|
437
|
+
"dark-4": "border-y-dark-4",
|
|
438
|
+
black: "border-y-black",
|
|
439
|
+
white: "border-y-white",
|
|
440
|
+
transparent: "border-y-transparent"
|
|
441
|
+
}), i(t, "borderTopColor", {
|
|
442
|
+
primary: "border-t-primary",
|
|
443
|
+
secondary: "border-t-secondary",
|
|
444
|
+
success: "border-t-success",
|
|
445
|
+
danger: "border-t-danger",
|
|
446
|
+
info: "border-t-info",
|
|
447
|
+
warning: "border-t-warning",
|
|
448
|
+
"light-1": "border-t-light-1",
|
|
449
|
+
"light-2": "border-t-light-2",
|
|
450
|
+
"light-3": "border-t-light-3",
|
|
451
|
+
"light-4": "border-t-light-4",
|
|
452
|
+
"dark-1": "border-t-dark-1",
|
|
453
|
+
"dark-2": "border-t-dark-2",
|
|
454
|
+
"dark-3": "border-t-dark-3",
|
|
455
|
+
"dark-4": "border-t-dark-4",
|
|
456
|
+
black: "border-t-black",
|
|
457
|
+
white: "border-t-white",
|
|
458
|
+
transparent: "border-t-transparent"
|
|
459
|
+
}), i(t, "borderBottomColor", {
|
|
460
|
+
primary: "border-b-primary",
|
|
461
|
+
secondary: "border-b-secondary",
|
|
462
|
+
success: "border-b-success",
|
|
463
|
+
danger: "border-b-danger",
|
|
464
|
+
info: "border-b-info",
|
|
465
|
+
warning: "border-b-warning",
|
|
466
|
+
"light-1": "border-b-light-1",
|
|
467
|
+
"light-2": "border-b-light-2",
|
|
468
|
+
"light-3": "border-b-light-3",
|
|
469
|
+
"light-4": "border-b-light-4",
|
|
470
|
+
"dark-1": "border-b-dark-1",
|
|
471
|
+
"dark-2": "border-b-dark-2",
|
|
472
|
+
"dark-3": "border-b-dark-3",
|
|
473
|
+
"dark-4": "border-b-dark-4",
|
|
474
|
+
black: "border-b-black",
|
|
475
|
+
white: "border-b-white",
|
|
476
|
+
transparent: "border-b-transparent"
|
|
477
|
+
}), i(t, "borderLeftColor", {
|
|
478
|
+
primary: "border-l-primary",
|
|
479
|
+
secondary: "border-l-secondary",
|
|
480
|
+
success: "border-l-success",
|
|
481
|
+
danger: "border-l-danger",
|
|
482
|
+
info: "border-l-info",
|
|
483
|
+
warning: "border-l-warning",
|
|
484
|
+
"light-1": "border-l-light-1",
|
|
485
|
+
"light-2": "border-l-light-2",
|
|
486
|
+
"light-3": "border-l-light-3",
|
|
487
|
+
"light-4": "border-l-light-4",
|
|
488
|
+
"dark-1": "border-l-dark-1",
|
|
489
|
+
"dark-2": "border-l-dark-2",
|
|
490
|
+
"dark-3": "border-l-dark-3",
|
|
491
|
+
"dark-4": "border-l-dark-4",
|
|
492
|
+
black: "border-l-black",
|
|
493
|
+
white: "border-l-white",
|
|
494
|
+
transparent: "border-l-transparent"
|
|
495
|
+
}), i(t, "borderRightColor", {
|
|
496
|
+
primary: "border-r-primary",
|
|
497
|
+
secondary: "border-r-secondary",
|
|
498
|
+
success: "border-r-success",
|
|
499
|
+
danger: "border-r-danger",
|
|
500
|
+
info: "border-r-info",
|
|
501
|
+
warning: "border-r-warning",
|
|
502
|
+
"light-1": "border-r-light-1",
|
|
503
|
+
"light-2": "border-r-light-2",
|
|
504
|
+
"light-3": "border-r-light-3",
|
|
505
|
+
"light-4": "border-r-light-4",
|
|
506
|
+
"dark-1": "border-r-dark-1",
|
|
507
|
+
"dark-2": "border-r-dark-2",
|
|
508
|
+
"dark-3": "border-r-dark-3",
|
|
509
|
+
"dark-4": "border-r-dark-4",
|
|
510
|
+
black: "border-r-black",
|
|
511
|
+
white: "border-r-white",
|
|
512
|
+
transparent: "border-r-transparent"
|
|
513
|
+
}), // Border width class
|
|
514
|
+
i(t, "borderWidth", {
|
|
515
|
+
1: "border-[1px]",
|
|
516
|
+
2: "border-[2px]",
|
|
517
|
+
3: "border-[3px]",
|
|
518
|
+
4: "border-[4px]",
|
|
519
|
+
5: "border-[5px]",
|
|
520
|
+
6: "border-[6px]",
|
|
521
|
+
7: "border-[7px]",
|
|
522
|
+
8: "border-[8px]",
|
|
523
|
+
9: "border-[9px]",
|
|
524
|
+
10: "border-[10px]",
|
|
525
|
+
11: "border-[11px]",
|
|
526
|
+
12: "border-[12px]"
|
|
527
|
+
}), i(t, "borderXWidth", {
|
|
528
|
+
1: "border-x-[1px]",
|
|
529
|
+
2: "border-x-[2px]",
|
|
530
|
+
3: "border-x-[3px]",
|
|
531
|
+
4: "border-x-[4px]",
|
|
532
|
+
5: "border-x-[5px]",
|
|
533
|
+
6: "border-x-[6px]",
|
|
534
|
+
7: "border-x-[7px]",
|
|
535
|
+
8: "border-x-[8px]",
|
|
536
|
+
9: "border-x-[9px]",
|
|
537
|
+
10: "border-x-[10px]",
|
|
538
|
+
11: "border-x-[11px]",
|
|
539
|
+
12: "border-x-[12px]"
|
|
540
|
+
}), i(t, "borderYWidth", {
|
|
541
|
+
1: "border-y-[1px]",
|
|
542
|
+
2: "border-y-[2px]",
|
|
543
|
+
3: "border-y-[3px]",
|
|
544
|
+
4: "border-y-[4px]",
|
|
545
|
+
5: "border-y-[5px]",
|
|
546
|
+
6: "border-y-[6px]",
|
|
547
|
+
7: "border-y-[7px]",
|
|
548
|
+
8: "border-y-[8px]",
|
|
549
|
+
9: "border-y-[9px]",
|
|
550
|
+
10: "border-y-[10px]",
|
|
551
|
+
11: "border-y-[11px]",
|
|
552
|
+
12: "border-y-[12px]"
|
|
553
|
+
}), i(t, "borderTopWidth", {
|
|
554
|
+
1: "border-t-[1px]",
|
|
555
|
+
2: "border-t-[2px]",
|
|
556
|
+
3: "border-t-[3px]",
|
|
557
|
+
4: "border-t-[4px]",
|
|
558
|
+
5: "border-t-[5px]",
|
|
559
|
+
6: "border-t-[6px]",
|
|
560
|
+
7: "border-t-[7px]",
|
|
561
|
+
8: "border-t-[8px]",
|
|
562
|
+
9: "border-t-[9px]",
|
|
563
|
+
10: "border-t-[10px]",
|
|
564
|
+
11: "border-t-[11px]",
|
|
565
|
+
12: "border-t-[12px]"
|
|
566
|
+
}), i(t, "borderBottomWidth", {
|
|
567
|
+
1: "border-b-[1px]",
|
|
568
|
+
2: "border-b-[2px]",
|
|
569
|
+
3: "border-b-[3px]",
|
|
570
|
+
4: "border-b-[4px]",
|
|
571
|
+
5: "border-b-[5px]",
|
|
572
|
+
6: "border-b-[6px]",
|
|
573
|
+
7: "border-b-[7px]",
|
|
574
|
+
8: "border-b-[8px]",
|
|
575
|
+
9: "border-b-[9px]",
|
|
576
|
+
10: "border-b-[10px]",
|
|
577
|
+
11: "border-b-[11px]",
|
|
578
|
+
12: "border-b-[12px]"
|
|
579
|
+
}), i(t, "borderLeftWidth", {
|
|
580
|
+
1: "border-l-[1px]",
|
|
581
|
+
2: "border-l-[2px]",
|
|
582
|
+
3: "border-l-[3px]",
|
|
583
|
+
4: "border-l-[4px]",
|
|
584
|
+
5: "border-l-[5px]",
|
|
585
|
+
6: "border-l-[6px]",
|
|
586
|
+
7: "border-l-[7px]",
|
|
587
|
+
8: "border-l-[8px]",
|
|
588
|
+
9: "border-l-[9px]",
|
|
589
|
+
10: "border-l-[10px]",
|
|
590
|
+
11: "border-l-[11px]",
|
|
591
|
+
12: "border-l-[12px]"
|
|
592
|
+
}), i(t, "borderRightWidth", {
|
|
593
|
+
1: "border-r-[1px]",
|
|
594
|
+
2: "border-r-[2px]",
|
|
595
|
+
3: "border-r-[3px]",
|
|
596
|
+
4: "border-r-[4px]",
|
|
597
|
+
5: "border-r-[5px]",
|
|
598
|
+
6: "border-r-[6px]",
|
|
599
|
+
7: "border-r-[7px]",
|
|
600
|
+
8: "border-r-[8px]",
|
|
601
|
+
9: "border-r-[9px]",
|
|
602
|
+
10: "border-r-[10px]",
|
|
603
|
+
11: "border-r-[11px]",
|
|
604
|
+
12: "border-r-[12px]"
|
|
605
|
+
}), // opacity
|
|
606
|
+
i(t, "backgroundOpacity", {
|
|
607
|
+
10: "bg-opacity-10",
|
|
608
|
+
20: "bg-opacity-20",
|
|
609
|
+
30: "bg-opacity-30",
|
|
610
|
+
40: "bg-opacity-40",
|
|
611
|
+
50: "bg-opacity-50",
|
|
612
|
+
60: "bg-opacity-60",
|
|
613
|
+
70: "bg-opacity-70",
|
|
614
|
+
80: "bg-opacity-80",
|
|
615
|
+
90: "bg-opacity-90",
|
|
616
|
+
100: "bg-opacity-100"
|
|
617
|
+
}), i(t, "opacity", {
|
|
618
|
+
10: "opacity-10",
|
|
619
|
+
20: "opacity-20",
|
|
620
|
+
30: "opacity-30",
|
|
621
|
+
40: "opacity-40",
|
|
622
|
+
50: "opacity-50",
|
|
623
|
+
60: "opacity-60",
|
|
624
|
+
70: "opacity-70",
|
|
625
|
+
80: "opacity-80",
|
|
626
|
+
90: "opacity-90",
|
|
627
|
+
100: "opacity-100"
|
|
628
|
+
}), // spacing: margin
|
|
629
|
+
i(t, "margin", {
|
|
630
|
+
0: "m-0",
|
|
631
|
+
"3xs": "m-3xs",
|
|
632
|
+
"2xs": "m-2xs",
|
|
633
|
+
xs: "m-xs",
|
|
634
|
+
sm: "m-sm",
|
|
635
|
+
md: "m-md",
|
|
636
|
+
lg: "m-lg",
|
|
637
|
+
xl: "m-xl",
|
|
638
|
+
"2xl": "m-2xl",
|
|
639
|
+
"3xl": "m-3xl"
|
|
640
|
+
}), i(t, "marginX", {
|
|
641
|
+
0: "mx-0",
|
|
642
|
+
"3xs": "mx-3xs",
|
|
643
|
+
"2xs": "mx-2xs",
|
|
644
|
+
xs: "mx-xs",
|
|
645
|
+
sm: "mx-sm",
|
|
646
|
+
md: "mx-md",
|
|
647
|
+
lg: "mx-lg",
|
|
648
|
+
xl: "mx-xl",
|
|
649
|
+
"2xl": "mx-2xl",
|
|
650
|
+
"3xl": "mx-3xl"
|
|
651
|
+
}), i(t, "marginY", {
|
|
652
|
+
0: "my-0",
|
|
653
|
+
"3xs": "my-3xs",
|
|
654
|
+
"2xs": "my-2xs",
|
|
655
|
+
xs: "my-xs",
|
|
656
|
+
sm: "my-sm",
|
|
657
|
+
md: "my-md",
|
|
658
|
+
lg: "my-lg",
|
|
659
|
+
xl: "my-xl",
|
|
660
|
+
"2xl": "my-2xl",
|
|
661
|
+
"3xl": "my-3xl"
|
|
662
|
+
}), i(t, "marginTop", {
|
|
663
|
+
0: "mt-0",
|
|
664
|
+
"3xs": "mt-3xs",
|
|
665
|
+
"2xs": "mt-2xs",
|
|
666
|
+
xs: "mt-xs",
|
|
667
|
+
sm: "mt-sm",
|
|
668
|
+
md: "mt-md",
|
|
669
|
+
lg: "mt-lg",
|
|
670
|
+
xl: "mt-xl",
|
|
671
|
+
"2xl": "mt-2xl",
|
|
672
|
+
"3xl": "mt-3xl"
|
|
673
|
+
}), i(t, "marginBottom", {
|
|
674
|
+
0: "mb-0",
|
|
675
|
+
"3xs": "mb-3xs",
|
|
676
|
+
"2xs": "mb-2xs",
|
|
677
|
+
xs: "mb-xs",
|
|
678
|
+
sm: "mb-sm",
|
|
679
|
+
md: "mb-md",
|
|
680
|
+
lg: "mb-lg",
|
|
681
|
+
xl: "mb-xl",
|
|
682
|
+
"2xl": "mb-2xl",
|
|
683
|
+
"3xl": "mb-3xl"
|
|
684
|
+
}), i(t, "marginLeft", {
|
|
685
|
+
0: "ml-0",
|
|
686
|
+
"3xs": "ml-3xs",
|
|
687
|
+
"2xs": "ml-2xs",
|
|
688
|
+
xs: "ml-xs",
|
|
689
|
+
sm: "ml-sm",
|
|
690
|
+
md: "ml-md",
|
|
691
|
+
lg: "ml-lg",
|
|
692
|
+
xl: "ml-xl",
|
|
693
|
+
"2xl": "ml-2xl",
|
|
694
|
+
"3xl": "ml-3xl"
|
|
695
|
+
}), i(t, "marginRight", {
|
|
696
|
+
0: "mr-0",
|
|
697
|
+
"3xs": "mr-3xs",
|
|
698
|
+
"2xs": "mr-2xs",
|
|
699
|
+
xs: "mr-xs",
|
|
700
|
+
sm: "mr-sm",
|
|
701
|
+
md: "mr-md",
|
|
702
|
+
lg: "mr-lg",
|
|
703
|
+
xl: "mr-xl",
|
|
704
|
+
"2xl": "mr-2xl",
|
|
705
|
+
"3xl": "mr-3xl"
|
|
706
|
+
}), // spacing: padding
|
|
707
|
+
i(t, "padding", {
|
|
708
|
+
0: "p-0",
|
|
709
|
+
"3xs": "p-3xs",
|
|
710
|
+
"2xs": "p-2xs",
|
|
711
|
+
xs: "p-xs",
|
|
712
|
+
sm: "p-sm",
|
|
713
|
+
md: "p-md",
|
|
714
|
+
lg: "p-lg",
|
|
715
|
+
xl: "p-xl",
|
|
716
|
+
"2xl": "p-2xl",
|
|
717
|
+
"3xl": "p-3xl"
|
|
718
|
+
}), i(t, "paddingX", {
|
|
719
|
+
0: "px-0",
|
|
720
|
+
"3xs": "px-3xs",
|
|
721
|
+
"2xs": "px-2xs",
|
|
722
|
+
xs: "px-xs",
|
|
723
|
+
sm: "px-sm",
|
|
724
|
+
md: "px-md",
|
|
725
|
+
lg: "px-lg",
|
|
726
|
+
xl: "px-xl",
|
|
727
|
+
"2xl": "px-2xl",
|
|
728
|
+
"3xl": "px-3xl"
|
|
729
|
+
}), i(t, "paddingY", {
|
|
730
|
+
0: "py-0",
|
|
731
|
+
"3xs": "py-3xs",
|
|
732
|
+
"2xs": "py-2xs",
|
|
733
|
+
xs: "py-xs",
|
|
734
|
+
sm: "py-sm",
|
|
735
|
+
md: "py-md",
|
|
736
|
+
lg: "py-lg",
|
|
737
|
+
xl: "py-xl",
|
|
738
|
+
"2xl": "py-2xl",
|
|
739
|
+
"3xl": "py-3xl"
|
|
740
|
+
}), i(t, "paddingTop", {
|
|
741
|
+
0: "pt-0",
|
|
742
|
+
"3xs": "pt-3xs",
|
|
743
|
+
"2xs": "pt-2xs",
|
|
744
|
+
xs: "pt-xs",
|
|
745
|
+
sm: "pt-sm",
|
|
746
|
+
md: "pt-md",
|
|
747
|
+
lg: "pt-lg",
|
|
748
|
+
xl: "pt-xl",
|
|
749
|
+
"2xl": "pt-2xl",
|
|
750
|
+
"3xl": "pt-3xl"
|
|
751
|
+
}), i(t, "paddingBottom", {
|
|
752
|
+
0: "pb-0",
|
|
753
|
+
"3xs": "pb-3xs",
|
|
754
|
+
"2xs": "pb-2xs",
|
|
755
|
+
xs: "pb-xs",
|
|
756
|
+
sm: "pb-sm",
|
|
757
|
+
md: "pb-md",
|
|
758
|
+
lg: "pb-lg",
|
|
759
|
+
xl: "pb-xl",
|
|
760
|
+
"2xl": "pb-2xl",
|
|
761
|
+
"3xl": "pb-3xl"
|
|
762
|
+
}), i(t, "paddingLeft", {
|
|
763
|
+
0: "pl-0",
|
|
764
|
+
"3xs": "pl-3xs",
|
|
765
|
+
"2xs": "pl-2xs",
|
|
766
|
+
xs: "pl-xs",
|
|
767
|
+
sm: "pl-sm",
|
|
768
|
+
md: "pl-md",
|
|
769
|
+
lg: "pl-lg",
|
|
770
|
+
xl: "pl-xl",
|
|
771
|
+
"2xl": "pl-2xl",
|
|
772
|
+
"3xl": "pl-3xl"
|
|
773
|
+
}), i(t, "paddingRight", {
|
|
774
|
+
0: "pr-0",
|
|
775
|
+
"3xs": "pr-3xs",
|
|
776
|
+
"2xs": "pr-2xs",
|
|
777
|
+
xs: "pr-xs",
|
|
778
|
+
sm: "pr-sm",
|
|
779
|
+
md: "pr-md",
|
|
780
|
+
lg: "pr-lg",
|
|
781
|
+
xl: "pr-xl",
|
|
782
|
+
"2xl": "pr-2xl",
|
|
783
|
+
"3xl": "pr-3xl"
|
|
784
|
+
}), // spacing gap class for flex/grid
|
|
785
|
+
i(t, "gap", {
|
|
786
|
+
0: "gap-0",
|
|
787
|
+
"3xs": "gap-3xs",
|
|
788
|
+
"2xs": "gap-2xs",
|
|
789
|
+
xs: "gap-xs",
|
|
790
|
+
sm: "gap-sm",
|
|
791
|
+
md: "gap-md",
|
|
792
|
+
lg: "gap-lg",
|
|
793
|
+
xl: "gap-xl",
|
|
794
|
+
"2xl": "gap-2xl",
|
|
795
|
+
"3xl": "gap-3xl"
|
|
796
|
+
}), // text alignment
|
|
797
|
+
i(t, "textAlign", {
|
|
798
|
+
left: "text-left",
|
|
799
|
+
center: "text-center",
|
|
800
|
+
right: "text-right"
|
|
801
|
+
});
|
|
802
|
+
const dt = [
|
|
803
|
+
"BGCOLOR",
|
|
804
|
+
"BEFOREBG",
|
|
805
|
+
"AFTERBG",
|
|
806
|
+
"HVBGCOLOR",
|
|
807
|
+
"FCBGCOLOR",
|
|
808
|
+
"ACTIVEBG",
|
|
809
|
+
"TEXTCOLOR",
|
|
810
|
+
"HVTEXTCOLOR",
|
|
811
|
+
"FCTEXTCOLOR",
|
|
812
|
+
"DISABLEDTEXTCOLOR",
|
|
813
|
+
"SVGFILL",
|
|
814
|
+
"RINGCOLOR",
|
|
815
|
+
"FOCUSRING",
|
|
816
|
+
"ACTIVERING",
|
|
817
|
+
"OFFSETRING",
|
|
818
|
+
"DUMMYCOLOR",
|
|
819
|
+
"BTNCOLOR",
|
|
820
|
+
"LISTCOLOR",
|
|
821
|
+
"BORDER",
|
|
822
|
+
"BORDERX",
|
|
823
|
+
"BORDERY",
|
|
824
|
+
"BORDERT",
|
|
825
|
+
"BORDERB",
|
|
826
|
+
"BORDERL",
|
|
827
|
+
"BORDERR"
|
|
828
|
+
], ct = [
|
|
829
|
+
"H1",
|
|
830
|
+
"H2",
|
|
831
|
+
"H3",
|
|
832
|
+
"H4",
|
|
833
|
+
"BODYTEXT",
|
|
834
|
+
"FONTWEIGHT",
|
|
835
|
+
"TEXTALIGN"
|
|
836
|
+
], gt = [
|
|
837
|
+
"BORDERW",
|
|
838
|
+
"BORDERXW",
|
|
839
|
+
"BORDERYW",
|
|
840
|
+
"BORDERTW",
|
|
841
|
+
"BORDERBW",
|
|
842
|
+
"BORDERLW",
|
|
843
|
+
"BORDERRW"
|
|
844
|
+
], ut = ["BGOPACITY", "OPACITY"];
|
|
845
|
+
class ht extends t {
|
|
846
|
+
constructor(e, s) {
|
|
847
|
+
super();
|
|
848
|
+
i(this, "classType");
|
|
849
|
+
i(this, "classValue");
|
|
850
|
+
this.classType = e, this.classValue = s;
|
|
851
|
+
}
|
|
852
|
+
// handle color classes types
|
|
853
|
+
generateColorClass() {
|
|
854
|
+
switch (this.classType) {
|
|
855
|
+
case "BGCOLOR":
|
|
856
|
+
return this.getBgColorClass();
|
|
857
|
+
case "HVBGCOLOR":
|
|
858
|
+
return this.getHoverBgColorClass();
|
|
859
|
+
case "FCBGCOLOR":
|
|
860
|
+
return this.getFocusBgColorClass();
|
|
861
|
+
case "BEFOREBG":
|
|
862
|
+
return this.getBeforeBgColorClass();
|
|
863
|
+
case "AFTERBG":
|
|
864
|
+
return this.getAfterBgColorClass();
|
|
865
|
+
case "ACTIVEBG":
|
|
866
|
+
return this.getActiveBgColorClass();
|
|
867
|
+
case "TEXTCOLOR":
|
|
868
|
+
return this.getTextColorClass();
|
|
869
|
+
case "HVTEXTCOLOR":
|
|
870
|
+
return this.getHoverTextColorClass();
|
|
871
|
+
case "FCTEXTCOLOR":
|
|
872
|
+
return this.getFocusTextColorClass();
|
|
873
|
+
case "DISABLEDTEXTCOLOR":
|
|
874
|
+
return this.getDisabledTextColorClass();
|
|
875
|
+
case "SVGFILL":
|
|
876
|
+
return this.getSvgFillColorClass();
|
|
877
|
+
case "RINGCOLOR":
|
|
878
|
+
return this.getRingColorClass();
|
|
879
|
+
case "FOCUSRING":
|
|
880
|
+
return this.getFocusRingColorClass();
|
|
881
|
+
case "ACTIVERING":
|
|
882
|
+
return this.getActiveRingColorClass();
|
|
883
|
+
case "OFFSETRING":
|
|
884
|
+
return this.getRingOffsetColorClass();
|
|
885
|
+
case "BTNCOLOR":
|
|
886
|
+
return this.getBtnColorClass();
|
|
887
|
+
case "LISTCOLOR":
|
|
888
|
+
return this.getRingColorClass();
|
|
889
|
+
case "BORDER":
|
|
890
|
+
return this.getBorderColorClass();
|
|
891
|
+
case "BORDERX":
|
|
892
|
+
return this.getBorderXColorClass();
|
|
893
|
+
case "BORDERY":
|
|
894
|
+
return this.getBorderYColorClass();
|
|
895
|
+
case "BORDERT":
|
|
896
|
+
return this.getBorderTopColorClass();
|
|
897
|
+
case "BORDERB":
|
|
898
|
+
return this.getBorderBottomColorClass();
|
|
899
|
+
case "BORDERL":
|
|
900
|
+
return this.getBorderLeftColorClass();
|
|
901
|
+
case "BORDERR":
|
|
902
|
+
return this.getBorderRightColorClass();
|
|
903
|
+
default:
|
|
904
|
+
return " ";
|
|
905
|
+
}
|
|
906
|
+
}
|
|
907
|
+
// handle text class types
|
|
908
|
+
generateTextClass() {
|
|
909
|
+
switch (this.classType) {
|
|
910
|
+
case "H1":
|
|
911
|
+
return this.getH1Class();
|
|
912
|
+
case "H2":
|
|
913
|
+
return this.getH2Class();
|
|
914
|
+
case "H3":
|
|
915
|
+
return this.getH3Class();
|
|
916
|
+
case "H4":
|
|
917
|
+
return this.getH4Class();
|
|
918
|
+
case "BODYTEXT":
|
|
919
|
+
return this.getBodyTextSizeClass();
|
|
920
|
+
case "FONTWEIGHT":
|
|
921
|
+
return this.getFontWeightClass();
|
|
922
|
+
case "TEXTALIGN":
|
|
923
|
+
return this.getTextAlignClass();
|
|
924
|
+
default:
|
|
925
|
+
return " ";
|
|
926
|
+
}
|
|
927
|
+
}
|
|
928
|
+
// handle border width class types
|
|
929
|
+
generateBorderWidthClass() {
|
|
930
|
+
switch (this.classType) {
|
|
931
|
+
case "BORDERW":
|
|
932
|
+
return this.getBorderWidthClass();
|
|
933
|
+
case "BORDERXW":
|
|
934
|
+
return this.getBorderXWidthClass();
|
|
935
|
+
case "BORDERYW":
|
|
936
|
+
return this.getBorderYWidthClass();
|
|
937
|
+
case "BORDERTW":
|
|
938
|
+
return this.getBorderTopWidthClass();
|
|
939
|
+
case "BORDERBW":
|
|
940
|
+
return this.getBorderBottomWidthClass();
|
|
941
|
+
case "BORDERLW":
|
|
942
|
+
return this.getBorderLeftWidthClass();
|
|
943
|
+
case "BORDERRW":
|
|
944
|
+
return this.getBorderWidthClass();
|
|
945
|
+
default:
|
|
946
|
+
return " ";
|
|
947
|
+
}
|
|
948
|
+
}
|
|
949
|
+
generateScaleClass() {
|
|
950
|
+
switch (this.classType) {
|
|
951
|
+
case "OPACITY":
|
|
952
|
+
return this.getOpacityClass();
|
|
953
|
+
case "BGOPACITY":
|
|
954
|
+
return this.getBgOpacityClass();
|
|
955
|
+
default:
|
|
956
|
+
return " ";
|
|
957
|
+
}
|
|
958
|
+
}
|
|
959
|
+
generateSpacingClass() {
|
|
960
|
+
switch (this.classType) {
|
|
961
|
+
case "MARGIN":
|
|
962
|
+
return this.getMarginClass();
|
|
963
|
+
case "MARGINX":
|
|
964
|
+
return this.getMarginXClass();
|
|
965
|
+
case "MARGINY":
|
|
966
|
+
return this.getMarginYClass();
|
|
967
|
+
case "MARGINT":
|
|
968
|
+
return this.getMarginTopClass();
|
|
969
|
+
case "MARGINB":
|
|
970
|
+
return this.getMarginBottomClass();
|
|
971
|
+
case "MARGINL":
|
|
972
|
+
return this.getMarginLeftClass();
|
|
973
|
+
case "MARGINR":
|
|
974
|
+
return this.getMarginRightClass();
|
|
975
|
+
case "PADDING":
|
|
976
|
+
return this.getPaddingClass();
|
|
977
|
+
case "PADDINGX":
|
|
978
|
+
return this.getPaddingXClass();
|
|
979
|
+
case "PADDINGY":
|
|
980
|
+
return this.getPaddingYClass();
|
|
981
|
+
case "PADDINGT":
|
|
982
|
+
return this.getPaddingTopClass();
|
|
983
|
+
case "PADDINGB":
|
|
984
|
+
return this.getPaddingBottomClass();
|
|
985
|
+
case "PADDINGL":
|
|
986
|
+
return this.getPaddingLeftClass();
|
|
987
|
+
case "PADDINGR":
|
|
988
|
+
return this.getPaddingRightClass();
|
|
989
|
+
case "GAP":
|
|
990
|
+
return this.getGapClass();
|
|
991
|
+
default:
|
|
992
|
+
return " ";
|
|
993
|
+
}
|
|
994
|
+
}
|
|
995
|
+
// handle color class
|
|
996
|
+
// bg color
|
|
997
|
+
getBgColorClass() {
|
|
998
|
+
return this.validateColorType ? t.bgColor[this.classValue] : " ";
|
|
999
|
+
}
|
|
1000
|
+
getHoverBgColorClass() {
|
|
1001
|
+
return this.validateColorType ? t.hoverBgColor[this.classValue] : " ";
|
|
1002
|
+
}
|
|
1003
|
+
getFocusBgColorClass() {
|
|
1004
|
+
return this.validateColorType ? t.focusBgColor[this.classValue] : " ";
|
|
1005
|
+
}
|
|
1006
|
+
getBeforeBgColorClass() {
|
|
1007
|
+
return this.validateColorType ? t.beforeBgColor[this.classValue] : " ";
|
|
1008
|
+
}
|
|
1009
|
+
getAfterBgColorClass() {
|
|
1010
|
+
return this.validateColorType ? t.afterBgColor[this.classValue] : " ";
|
|
1011
|
+
}
|
|
1012
|
+
getActiveBgColorClass() {
|
|
1013
|
+
return this.validateColorType ? t.bgActiveColor[this.classValue] : " ";
|
|
1014
|
+
}
|
|
1015
|
+
// text color
|
|
1016
|
+
getTextColorClass() {
|
|
1017
|
+
return this.validateColorType ? t.textColor[this.classValue] : " ";
|
|
1018
|
+
}
|
|
1019
|
+
getHoverTextColorClass() {
|
|
1020
|
+
return this.validateColorType ? t.hoverTextColor[this.classValue] : " ";
|
|
1021
|
+
}
|
|
1022
|
+
getFocusTextColorClass() {
|
|
1023
|
+
return this.validateColorType ? t.focusTextColor[this.classValue] : " ";
|
|
1024
|
+
}
|
|
1025
|
+
getDisabledTextColorClass() {
|
|
1026
|
+
return this.validateColorType ? t.disabledTextColor[this.classValue] : " ";
|
|
1027
|
+
}
|
|
1028
|
+
// svg color
|
|
1029
|
+
getSvgFillColorClass() {
|
|
1030
|
+
return this.validateColorType ? t.svgFillColor[this.classValue] : " ";
|
|
1031
|
+
}
|
|
1032
|
+
// ring color
|
|
1033
|
+
getRingColorClass() {
|
|
1034
|
+
return this.validateColorType ? t.ringColor[this.classValue] : " ";
|
|
1035
|
+
}
|
|
1036
|
+
getFocusRingColorClass() {
|
|
1037
|
+
return this.validateColorType ? t.ringFocusColor[this.classValue] : " ";
|
|
1038
|
+
}
|
|
1039
|
+
getActiveRingColorClass() {
|
|
1040
|
+
return this.validateColorType ? t.ringActiveColor[this.classValue] : " ";
|
|
1041
|
+
}
|
|
1042
|
+
getRingOffsetColorClass() {
|
|
1043
|
+
return this.validateColorType ? t.ringOffsetColor[this.classValue] : " ";
|
|
1044
|
+
}
|
|
1045
|
+
// btn & list
|
|
1046
|
+
getBtnColorClass() {
|
|
1047
|
+
return this.validateColorType ? t.btnColor[this.classValue] : " ";
|
|
1048
|
+
}
|
|
1049
|
+
getListColorClass() {
|
|
1050
|
+
return this.validateColorType ? t.listColor[this.classValue] : " ";
|
|
1051
|
+
}
|
|
1052
|
+
// border color
|
|
1053
|
+
getBorderColorClass() {
|
|
1054
|
+
return this.validateColorType ? t.borderColor[this.classValue] : " ";
|
|
1055
|
+
}
|
|
1056
|
+
getBorderXColorClass() {
|
|
1057
|
+
return this.validateColorType ? t.borderXColor[this.classValue] : " ";
|
|
1058
|
+
}
|
|
1059
|
+
getBorderYColorClass() {
|
|
1060
|
+
return this.validateColorType ? t.borderYColor[this.classValue] : " ";
|
|
1061
|
+
}
|
|
1062
|
+
getBorderTopColorClass() {
|
|
1063
|
+
return this.validateColorType ? t.borderTopColor[this.classValue] : " ";
|
|
1064
|
+
}
|
|
1065
|
+
getBorderBottomColorClass() {
|
|
1066
|
+
return this.validateColorType ? t.borderBottomColor[this.classValue] : " ";
|
|
1067
|
+
}
|
|
1068
|
+
getBorderLeftColorClass() {
|
|
1069
|
+
return this.validateColorType ? t.borderLeftColor[this.classValue] : " ";
|
|
1070
|
+
}
|
|
1071
|
+
getBorderRightColorClass() {
|
|
1072
|
+
return this.validateColorType ? t.borderRightColor[this.classValue] : " ";
|
|
1073
|
+
}
|
|
1074
|
+
// handle heading classes
|
|
1075
|
+
getH1Class() {
|
|
1076
|
+
return this.validateHeadingTextSizeType ? t.heading1[this.classValue] : " ";
|
|
1077
|
+
}
|
|
1078
|
+
getH2Class() {
|
|
1079
|
+
return this.validateHeadingTextSizeType ? t.heading2[this.classValue] : " ";
|
|
1080
|
+
}
|
|
1081
|
+
getH3Class() {
|
|
1082
|
+
return this.validateHeadingTextSizeType ? t.heading3[this.classValue] : " ";
|
|
1083
|
+
}
|
|
1084
|
+
getH4Class() {
|
|
1085
|
+
return this.validateHeadingTextSizeType ? t.heading4[this.classValue] : " ";
|
|
1086
|
+
}
|
|
1087
|
+
// handle body text size classes
|
|
1088
|
+
getBodyTextSizeClass() {
|
|
1089
|
+
return this.validateBodyTextSizeType ? t.bodyText[this.classValue] : " ";
|
|
1090
|
+
}
|
|
1091
|
+
// handle font weight classes
|
|
1092
|
+
getFontWeightClass() {
|
|
1093
|
+
return this.validateFontWeightType ? t.fontweight[this.classValue] : " ";
|
|
1094
|
+
}
|
|
1095
|
+
// handle text align classes
|
|
1096
|
+
getTextAlignClass() {
|
|
1097
|
+
return t.textAlign[this.classValue];
|
|
1098
|
+
}
|
|
1099
|
+
// handle border width classes
|
|
1100
|
+
getBorderWidthClass() {
|
|
1101
|
+
return this.validateRangeType ? t.borderWidth[this.classValue] : " ";
|
|
1102
|
+
}
|
|
1103
|
+
getBorderXWidthClass() {
|
|
1104
|
+
return this.validateRangeType ? t.borderXWidth[this.classValue] : " ";
|
|
1105
|
+
}
|
|
1106
|
+
getBorderYWidthClass() {
|
|
1107
|
+
return this.validateRangeType ? t.borderYWidth[this.classValue] : " ";
|
|
1108
|
+
}
|
|
1109
|
+
getBorderTopWidthClass() {
|
|
1110
|
+
return this.validateRangeType ? t.borderTopWidth[this.classValue] : " ";
|
|
1111
|
+
}
|
|
1112
|
+
getBorderBottomWidthClass() {
|
|
1113
|
+
return this.validateRangeType ? t.borderBottomWidth[this.classValue] : " ";
|
|
1114
|
+
}
|
|
1115
|
+
getBorderLeftWidthClass() {
|
|
1116
|
+
return this.validateRangeType ? t.borderLeftWidth[this.classValue] : " ";
|
|
1117
|
+
}
|
|
1118
|
+
getBorderRightWidthClass() {
|
|
1119
|
+
return this.validateRangeType ? t.borderRightWidth[this.classValue] : " ";
|
|
1120
|
+
}
|
|
1121
|
+
// handle opacity classes
|
|
1122
|
+
getOpacityClass() {
|
|
1123
|
+
return this.validateOpacityType ? t.opacity[this.classValue] : " ";
|
|
1124
|
+
}
|
|
1125
|
+
getBgOpacityClass() {
|
|
1126
|
+
return this.validateOpacityType ? t.backgroundOpacity[this.classValue] : " ";
|
|
1127
|
+
}
|
|
1128
|
+
// handle spacing classes
|
|
1129
|
+
// margins
|
|
1130
|
+
getMarginClass() {
|
|
1131
|
+
return this.validateSpaceType ? t.margin[this.classValue] : " ";
|
|
1132
|
+
}
|
|
1133
|
+
getMarginXClass() {
|
|
1134
|
+
return this.validateSpaceType ? t.marginX[this.classValue] : " ";
|
|
1135
|
+
}
|
|
1136
|
+
getMarginYClass() {
|
|
1137
|
+
return this.validateSpaceType ? t.marginY[this.classValue] : " ";
|
|
1138
|
+
}
|
|
1139
|
+
getMarginTopClass() {
|
|
1140
|
+
return this.validateSpaceType ? t.marginTop[this.classValue] : " ";
|
|
1141
|
+
}
|
|
1142
|
+
getMarginBottomClass() {
|
|
1143
|
+
return this.validateSpaceType ? t.marginBottom[this.classValue] : " ";
|
|
1144
|
+
}
|
|
1145
|
+
getMarginLeftClass() {
|
|
1146
|
+
return this.validateSpaceType ? t.marginLeft[this.classValue] : " ";
|
|
1147
|
+
}
|
|
1148
|
+
getMarginRightClass() {
|
|
1149
|
+
return this.validateSpaceType ? t.marginRight[this.classValue] : " ";
|
|
1150
|
+
}
|
|
1151
|
+
// padding
|
|
1152
|
+
getPaddingClass() {
|
|
1153
|
+
return this.validateSpaceType ? t.padding[this.classValue] : " ";
|
|
1154
|
+
}
|
|
1155
|
+
getPaddingXClass() {
|
|
1156
|
+
return this.validateSpaceType ? t.paddingX[this.classValue] : " ";
|
|
1157
|
+
}
|
|
1158
|
+
getPaddingYClass() {
|
|
1159
|
+
return this.validateSpaceType ? t.paddingY[this.classValue] : " ";
|
|
1160
|
+
}
|
|
1161
|
+
getPaddingTopClass() {
|
|
1162
|
+
return this.validateSpaceType ? t.paddingTop[this.classValue] : " ";
|
|
1163
|
+
}
|
|
1164
|
+
getPaddingBottomClass() {
|
|
1165
|
+
return this.validateSpaceType ? t.paddingBottom[this.classValue] : " ";
|
|
1166
|
+
}
|
|
1167
|
+
getPaddingLeftClass() {
|
|
1168
|
+
return this.validateSpaceType ? t.paddingLeft[this.classValue] : " ";
|
|
1169
|
+
}
|
|
1170
|
+
getPaddingRightClass() {
|
|
1171
|
+
return this.validateSpaceType ? t.paddingRight[this.classValue] : " ";
|
|
1172
|
+
}
|
|
1173
|
+
// gap
|
|
1174
|
+
getGapClass() {
|
|
1175
|
+
return this.validateSpaceType ? t.gap[this.classValue] : " ";
|
|
1176
|
+
}
|
|
1177
|
+
// input validation
|
|
1178
|
+
validateColorType() {
|
|
1179
|
+
const e = /(primary|secondary|success|info|warning|danger|light-1|light-2|light-3|light-4|dark-1|dark-2|dark-3|dark-4|black|white|transparent)/;
|
|
1180
|
+
return typeof this.classValue != "string" ? !1 : e.test(this.classValue);
|
|
1181
|
+
}
|
|
1182
|
+
validateSpaceType() {
|
|
1183
|
+
const e = /(0|3xs|2xs|xs|sm|md|lg|xl|2xl|3xl)/;
|
|
1184
|
+
return typeof this.classValue != "string" ? !1 : e.test(this.classValue);
|
|
1185
|
+
}
|
|
1186
|
+
validateHeadingTextSizeType() {
|
|
1187
|
+
const e = /(sm|md|lg|xl)/;
|
|
1188
|
+
return typeof this.classValue != "string" ? !1 : e.test(this.classValue);
|
|
1189
|
+
}
|
|
1190
|
+
validateBodyTextSizeType() {
|
|
1191
|
+
const e = /(xs|sm|md|lg|xl)/;
|
|
1192
|
+
return typeof this.classValue != "string" ? !1 : e.test(this.classValue);
|
|
1193
|
+
}
|
|
1194
|
+
validateFontWeightType() {
|
|
1195
|
+
const e = /(light|normal|bold)/;
|
|
1196
|
+
return typeof this.classValue != "string" ? !1 : e.test(this.classValue);
|
|
1197
|
+
}
|
|
1198
|
+
validateOpacityType() {
|
|
1199
|
+
const e = /\b(0|[1-9]0|100)\b/;
|
|
1200
|
+
return typeof this.classValue != "number" ? !1 : e.test(this.classValue.toString());
|
|
1201
|
+
}
|
|
1202
|
+
validateRangeType() {
|
|
1203
|
+
const e = /\b([1-9]|1[0-2])\b/;
|
|
1204
|
+
return typeof this.classValue != "number" ? !1 : e.test(this.classValue.toString());
|
|
1205
|
+
}
|
|
1206
|
+
validateAlignment() {
|
|
1207
|
+
const e = /(left|center|right)/;
|
|
1208
|
+
return typeof this.classValue != "string" ? !1 : e.test(this.classValue);
|
|
1209
|
+
}
|
|
1210
|
+
dummyMethod() {
|
|
1211
|
+
return this.getRingOffsetColorClass();
|
|
1212
|
+
}
|
|
1213
|
+
}
|
|
1214
|
+
const m = (r, d) => {
|
|
1215
|
+
const e = new ht(r, d);
|
|
1216
|
+
return dt.includes(r) ? e.generateColorClass() : ct.includes(r) ? e.generateTextClass() : gt.includes(r) ? e.generateBorderWidthClass() : ut.includes(r) ? e.generateScaleClass() : e.generateSpacingClass();
|
|
1217
|
+
}, pt = { class: "w-full flex justify-between gap-2xs" }, bt = { class: "w-full" }, ft = /* @__PURE__ */ v("svg", {
|
|
1218
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1219
|
+
viewBox: "0 0 384 512",
|
|
1220
|
+
fill: "currentColor",
|
|
1221
|
+
class: "h-xs"
|
|
1222
|
+
}, [
|
|
1223
|
+
/* @__PURE__ */ v("path", { d: "M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z" })
|
|
1224
|
+
], -1), xt = [
|
|
1225
|
+
ft
|
|
1226
|
+
], ae = /* @__PURE__ */ E({
|
|
1227
|
+
__name: "Alert",
|
|
1228
|
+
props: {
|
|
1229
|
+
color: { default: "danger" },
|
|
1230
|
+
rounded: { type: Boolean, default: !0 },
|
|
1231
|
+
shadow: { type: Boolean, default: !0 },
|
|
1232
|
+
show: { type: Boolean, default: !1 },
|
|
1233
|
+
dismissible: { type: Boolean, default: !1 }
|
|
1234
|
+
},
|
|
1235
|
+
emits: ["close"],
|
|
1236
|
+
setup(r, { expose: d, emit: e }) {
|
|
1237
|
+
const s = r;
|
|
1238
|
+
G();
|
|
1239
|
+
const o = e, c = R(s.show), a = O(() => {
|
|
1240
|
+
const { color: u, rounded: h, shadow: k } = s, V = [m("BGCOLOR", u)];
|
|
1241
|
+
return h && V.push("rounded-md"), k && V.push("drop-shadow-md"), V.join(" ");
|
|
1242
|
+
}), l = (u) => {
|
|
1243
|
+
c.value = !1, o("close", u);
|
|
1244
|
+
}, n = () => {
|
|
1245
|
+
c.value = !1;
|
|
1246
|
+
};
|
|
1247
|
+
return W(
|
|
1248
|
+
() => s.show,
|
|
1249
|
+
(u) => {
|
|
1250
|
+
c.value = u;
|
|
1251
|
+
}
|
|
1252
|
+
), d({
|
|
1253
|
+
close: n
|
|
1254
|
+
}), (u, h) => c.value ? (p(), f("div", {
|
|
1255
|
+
key: 0,
|
|
1256
|
+
role: "alert",
|
|
1257
|
+
"aria-live": "polite",
|
|
1258
|
+
"aria-atomic": "true",
|
|
1259
|
+
class: B(["py-[0.75rem] px-[1.25rem] relative", [a.value]])
|
|
1260
|
+
}, [
|
|
1261
|
+
v("div", pt, [
|
|
1262
|
+
v("div", bt, [
|
|
1263
|
+
_(u.$slots, "default")
|
|
1264
|
+
]),
|
|
1265
|
+
u.dismissible ? (p(), f("button", {
|
|
1266
|
+
key: 0,
|
|
1267
|
+
onClick: l,
|
|
1268
|
+
class: "flex items-center opacity-60 hover:opacity-40 transition-opacity duration-300 ease-linear"
|
|
1269
|
+
}, xt)) : w("", !0)
|
|
1270
|
+
])
|
|
1271
|
+
], 2)) : w("", !0);
|
|
1272
|
+
}
|
|
1273
|
+
}), X = (r, d) => lt(
|
|
1274
|
+
r,
|
|
1275
|
+
(e) => {
|
|
1276
|
+
let s = !1;
|
|
1277
|
+
for (let o = 0; o < e.length && !s; o++) {
|
|
1278
|
+
const c = e[o], a = c.type, l = c.attributeName, n = c.target;
|
|
1279
|
+
if ((a === "attributes" || l === "visible") && (s = !0), s) {
|
|
1280
|
+
const u = n.getAttribute("visible") === "true";
|
|
1281
|
+
d(u);
|
|
1282
|
+
}
|
|
1283
|
+
}
|
|
1284
|
+
},
|
|
1285
|
+
{ attributes: !0 }
|
|
1286
|
+
), vt = E({
|
|
1287
|
+
setup(r, { slots: d }) {
|
|
1288
|
+
const e = R(!1);
|
|
1289
|
+
return j(() => {
|
|
1290
|
+
e.value = !0;
|
|
1291
|
+
}), () => e.value && d.default ? d.default() : null;
|
|
1292
|
+
}
|
|
1293
|
+
}), yt = ["accordion", "visible"], mt = /* @__PURE__ */ E({
|
|
1294
|
+
__name: "Collapse",
|
|
1295
|
+
props: {
|
|
1296
|
+
accordion: {},
|
|
1297
|
+
className: { default: "" },
|
|
1298
|
+
visible: { type: Boolean, default: !1 }
|
|
1299
|
+
},
|
|
1300
|
+
emits: ["open", "close"],
|
|
1301
|
+
setup(r, { expose: d, emit: e }) {
|
|
1302
|
+
const s = r;
|
|
1303
|
+
G();
|
|
1304
|
+
const o = e, c = R(), a = R(s.visible), l = () => {
|
|
1305
|
+
a.value = !a.value;
|
|
1306
|
+
}, n = () => {
|
|
1307
|
+
a.value = !0;
|
|
1308
|
+
}, u = () => {
|
|
1309
|
+
a.value = !1;
|
|
1310
|
+
}, h = () => {
|
|
1311
|
+
o("open", !0);
|
|
1312
|
+
}, k = () => {
|
|
1313
|
+
o("close", !1);
|
|
1314
|
+
}, V = (g) => {
|
|
1315
|
+
g.style.height = "auto", g.style.opacity = "0";
|
|
1316
|
+
const A = getComputedStyle(g).height;
|
|
1317
|
+
g.style.height = "0px", g.offsetHeight, g.style.height = A, g.style.opacity = "1";
|
|
1318
|
+
}, T = (g) => {
|
|
1319
|
+
g.style.height = "auto", g.style.opacity = "1";
|
|
1320
|
+
}, I = (g) => {
|
|
1321
|
+
g.style.height = getComputedStyle(g).height, g.offsetHeight, g.style.height = "0px", g.style.opacity = "0";
|
|
1322
|
+
};
|
|
1323
|
+
return X(c, (g = !1) => {
|
|
1324
|
+
a.value = g;
|
|
1325
|
+
}), W(
|
|
1326
|
+
() => s.visible,
|
|
1327
|
+
(g) => {
|
|
1328
|
+
a.value = g;
|
|
1329
|
+
}
|
|
1330
|
+
), W(a, (g) => {
|
|
1331
|
+
g === !0 ? h() : g === !1 && k();
|
|
1332
|
+
}), d({
|
|
1333
|
+
toggle: l,
|
|
1334
|
+
close: u,
|
|
1335
|
+
open: n
|
|
1336
|
+
}), (g, A) => (p(), f("div", {
|
|
1337
|
+
accordion: g.accordion,
|
|
1338
|
+
visible: a.value,
|
|
1339
|
+
ref_key: "collapseRef",
|
|
1340
|
+
ref: c
|
|
1341
|
+
}, [
|
|
1342
|
+
S(y(vt), null, {
|
|
1343
|
+
default: H(() => [
|
|
1344
|
+
S(D, {
|
|
1345
|
+
name: "collapse",
|
|
1346
|
+
tag: "div",
|
|
1347
|
+
onEnter: V,
|
|
1348
|
+
onAfterEnter: T,
|
|
1349
|
+
onLeave: I,
|
|
1350
|
+
class: "overflow-y-clip"
|
|
1351
|
+
}, {
|
|
1352
|
+
default: H(() => [
|
|
1353
|
+
$(v("div", null, [
|
|
1354
|
+
v("div", {
|
|
1355
|
+
class: B([g.className])
|
|
1356
|
+
}, [
|
|
1357
|
+
_(g.$slots, "default", {}, void 0, !0)
|
|
1358
|
+
], 2)
|
|
1359
|
+
], 512), [
|
|
1360
|
+
[M, a.value]
|
|
1361
|
+
])
|
|
1362
|
+
]),
|
|
1363
|
+
_: 3
|
|
1364
|
+
})
|
|
1365
|
+
]),
|
|
1366
|
+
_: 3
|
|
1367
|
+
})
|
|
1368
|
+
], 8, yt));
|
|
1369
|
+
}
|
|
1370
|
+
});
|
|
1371
|
+
const N = (r, d) => {
|
|
1372
|
+
const e = r.__vccOpts || r;
|
|
1373
|
+
for (const [s, o] of d)
|
|
1374
|
+
e[s] = o;
|
|
1375
|
+
return e;
|
|
1376
|
+
}, oe = /* @__PURE__ */ N(mt, [["__scopeId", "data-v-0ec18f4b"]]), kt = E({
|
|
1377
|
+
props: {
|
|
1378
|
+
direction: {
|
|
1379
|
+
type: String,
|
|
1380
|
+
default: "right"
|
|
1381
|
+
},
|
|
1382
|
+
color: {
|
|
1383
|
+
type: String,
|
|
1384
|
+
default: "dark-3"
|
|
1385
|
+
},
|
|
1386
|
+
textColor: {
|
|
1387
|
+
type: String,
|
|
1388
|
+
default: "white"
|
|
1389
|
+
},
|
|
1390
|
+
width: {
|
|
1391
|
+
type: [Number, String],
|
|
1392
|
+
default: 80
|
|
1393
|
+
},
|
|
1394
|
+
customClass: {
|
|
1395
|
+
type: String,
|
|
1396
|
+
default: ""
|
|
1397
|
+
},
|
|
1398
|
+
title: {
|
|
1399
|
+
type: String,
|
|
1400
|
+
required: !0
|
|
1401
|
+
}
|
|
1402
|
+
},
|
|
1403
|
+
setup(r) {
|
|
1404
|
+
const d = "invisible opacity-0 group-hover:visible group-hover:opacity-100 z-[100] tooltip", e = O(() => {
|
|
1405
|
+
const { color: c, textColor: a } = r;
|
|
1406
|
+
return [
|
|
1407
|
+
m("BGCOLOR", c),
|
|
1408
|
+
m("TEXTCOLOR", a)
|
|
1409
|
+
].join(" ");
|
|
1410
|
+
}), s = O(() => ({ width: `${r.width}px` })), o = O(() => {
|
|
1411
|
+
switch (r.direction) {
|
|
1412
|
+
case "left":
|
|
1413
|
+
return "tooltip-left";
|
|
1414
|
+
case "top":
|
|
1415
|
+
return "tooltip-top";
|
|
1416
|
+
case "bottom":
|
|
1417
|
+
return "tooltip-bottom";
|
|
1418
|
+
default:
|
|
1419
|
+
return "tooltip-right";
|
|
1420
|
+
}
|
|
1421
|
+
});
|
|
1422
|
+
return () => tt("div", {
|
|
1423
|
+
class: [
|
|
1424
|
+
d,
|
|
1425
|
+
r.customClass,
|
|
1426
|
+
o.value,
|
|
1427
|
+
e.value
|
|
1428
|
+
],
|
|
1429
|
+
role: "tooltip",
|
|
1430
|
+
innerHTML: r.title,
|
|
1431
|
+
style: [s.value]
|
|
1432
|
+
});
|
|
1433
|
+
}
|
|
1434
|
+
}), Y = {
|
|
1435
|
+
mounted(r, d) {
|
|
1436
|
+
r.__ClickOutsideHandler = (e) => {
|
|
1437
|
+
r === e.target || r.contains(e.target) || d.value(e);
|
|
1438
|
+
}, document.body.addEventListener("click", r.__ClickOutsideHandler);
|
|
1439
|
+
},
|
|
1440
|
+
unmounted(r) {
|
|
1441
|
+
document.body.removeEventListener("click", r.__ClickOutsideHandler);
|
|
1442
|
+
}
|
|
1443
|
+
}, le = {
|
|
1444
|
+
mounted(r, d) {
|
|
1445
|
+
r.__ClickToggleHandler = (e) => {
|
|
1446
|
+
e.preventDefault();
|
|
1447
|
+
const s = e.target;
|
|
1448
|
+
let o;
|
|
1449
|
+
if (s.tagName === "A") {
|
|
1450
|
+
const l = s.getAttribute("href"), n = (l == null ? void 0 : l.charAt(0)) === "#" ? l.substring(1) : l;
|
|
1451
|
+
o = document.getElementById(n);
|
|
1452
|
+
} else
|
|
1453
|
+
o = document.getElementById(d.arg);
|
|
1454
|
+
if (!o || o.hasAttribute("visible") === !1)
|
|
1455
|
+
return;
|
|
1456
|
+
const a = o.getAttribute("visible") === "true" ? "false" : "true";
|
|
1457
|
+
o.setAttribute("visible", a);
|
|
1458
|
+
}, r.addEventListener("click", r.__ClickToggleHandler);
|
|
1459
|
+
},
|
|
1460
|
+
unmounted(r) {
|
|
1461
|
+
r.removeEventListener("click", r.__ClickToggleHandler);
|
|
1462
|
+
}
|
|
1463
|
+
}, ie = {
|
|
1464
|
+
mounted(r, d) {
|
|
1465
|
+
r.__HandleToggler = (e) => {
|
|
1466
|
+
e.preventDefault();
|
|
1467
|
+
const s = e.target;
|
|
1468
|
+
let o;
|
|
1469
|
+
if (s.tagName === "A") {
|
|
1470
|
+
const l = s.getAttribute("href"), n = (l == null ? void 0 : l.charAt(0)) === "#" ? l.substring(1) : l;
|
|
1471
|
+
o = document.getElementById(n);
|
|
1472
|
+
} else
|
|
1473
|
+
o = document.getElementById(d.arg);
|
|
1474
|
+
if (!o || o.hasAttribute("visible") === !1)
|
|
1475
|
+
return;
|
|
1476
|
+
if (!o.hasAttribute("accordion")) {
|
|
1477
|
+
const n = o.getAttribute("visible") === "true" ? "false" : "true";
|
|
1478
|
+
o.setAttribute("visible", n);
|
|
1479
|
+
return;
|
|
1480
|
+
}
|
|
1481
|
+
const c = o.getAttribute("accordion"), a = document.querySelectorAll(
|
|
1482
|
+
`div[accordion="${c}"]`
|
|
1483
|
+
);
|
|
1484
|
+
for (let l = 0; l < a.length; l++) {
|
|
1485
|
+
const n = a[l].getAttribute("visible");
|
|
1486
|
+
if (a[l].id !== o.id && n === "true" && a[l].setAttribute("visible", "false"), a[l].id === o.id) {
|
|
1487
|
+
const h = o.getAttribute("visible") === "true" ? "false" : "true";
|
|
1488
|
+
o.setAttribute("visible", h);
|
|
1489
|
+
}
|
|
1490
|
+
}
|
|
1491
|
+
}, r.addEventListener("click", r.__HandleToggler);
|
|
1492
|
+
},
|
|
1493
|
+
unmounted(r) {
|
|
1494
|
+
r.removeEventListener("click", r.__HandleToggler);
|
|
1495
|
+
}
|
|
1496
|
+
}, ne = {
|
|
1497
|
+
mounted(r, d) {
|
|
1498
|
+
r.__HandleTooltip = (e, s) => {
|
|
1499
|
+
e.classList.add("relative", "group", "overflow-visible");
|
|
1500
|
+
let o;
|
|
1501
|
+
e.hasAttribute("title") && (o = e.getAttribute("title")), !e.hasAttribute("title") && typeof s.value < "u" && typeof s.value == "string" && (o = s.value), !e.hasAttribute("title") && typeof s.value < "u" && typeof s.value != "string" && typeof s.value.title == "string" && (o = s.value.title);
|
|
1502
|
+
let c;
|
|
1503
|
+
e.hasAttribute("color") && (c = e.getAttribute("color")), !e.hasAttribute("color") && typeof s.value < "u" && typeof s.value != "string" && typeof s.value.color == "string" && (c = s.value.color);
|
|
1504
|
+
let a;
|
|
1505
|
+
e.hasAttribute("text-color") && (a = e.getAttribute("text-color")), !e.hasAttribute("text-color") && typeof s.value < "u" && typeof s.value != "string" && typeof s.value.textColor == "string" && (a = s.value.textColor);
|
|
1506
|
+
let l;
|
|
1507
|
+
e.hasAttribute("tooltip-width") && (l = e.getAttribute("tooltip-width")), !e.hasAttribute("tooltip-width") && typeof s.value < "u" && typeof s.value != "string" && typeof s.value.width == "number" && (l = s.value.width);
|
|
1508
|
+
let n;
|
|
1509
|
+
typeof s.value < "u" && typeof s.value != "string" && typeof s.value.className == "string" && (n = s.value.className);
|
|
1510
|
+
let u;
|
|
1511
|
+
const h = Object.keys(s.modifiers);
|
|
1512
|
+
h.length > 0 && (u = h[0]);
|
|
1513
|
+
const k = S(kt, {
|
|
1514
|
+
direction: u,
|
|
1515
|
+
title: o,
|
|
1516
|
+
color: c,
|
|
1517
|
+
textColor: a,
|
|
1518
|
+
width: l,
|
|
1519
|
+
customClass: n
|
|
1520
|
+
});
|
|
1521
|
+
z(k, e);
|
|
1522
|
+
}, r.__UnmountTooltip = (e) => {
|
|
1523
|
+
z(null, e);
|
|
1524
|
+
}, r.__HandleTooltip(r, d);
|
|
1525
|
+
},
|
|
1526
|
+
updated(r, d) {
|
|
1527
|
+
r.__HandleTooltip(r, d);
|
|
1528
|
+
},
|
|
1529
|
+
unmounted(r) {
|
|
1530
|
+
r.__UnmountTooltip(r);
|
|
1531
|
+
}
|
|
1532
|
+
}, de = /* @__PURE__ */ E({
|
|
1533
|
+
__name: "DropdownContainer",
|
|
1534
|
+
emits: ["click-outside", "toggle"],
|
|
1535
|
+
setup(r, { emit: d }) {
|
|
1536
|
+
G();
|
|
1537
|
+
const e = d, s = R(), o = et({
|
|
1538
|
+
active: !1,
|
|
1539
|
+
buttonHeight: 0
|
|
1540
|
+
});
|
|
1541
|
+
rt("dropdownState", o);
|
|
1542
|
+
const c = (n) => {
|
|
1543
|
+
o.active = !o.active, e("toggle", n);
|
|
1544
|
+
}, a = (n) => {
|
|
1545
|
+
o.active = !1, e("click-outside", n);
|
|
1546
|
+
}, l = () => {
|
|
1547
|
+
o.active = !1;
|
|
1548
|
+
};
|
|
1549
|
+
return j(() => {
|
|
1550
|
+
o.buttonHeight = s.value.scrollHeight;
|
|
1551
|
+
}), (n, u) => $((p(), f("div", {
|
|
1552
|
+
class: "relative",
|
|
1553
|
+
ref_key: "dropdownTarget",
|
|
1554
|
+
ref: s,
|
|
1555
|
+
onKeyup: st(l, ["esc"])
|
|
1556
|
+
}, [
|
|
1557
|
+
_(n.$slots, "toggler", {
|
|
1558
|
+
toggle: c,
|
|
1559
|
+
dropdownState: o.active
|
|
1560
|
+
}),
|
|
1561
|
+
_(n.$slots, "default")
|
|
1562
|
+
], 32)), [
|
|
1563
|
+
[y(Y), a]
|
|
1564
|
+
]);
|
|
1565
|
+
}
|
|
1566
|
+
}), Ct = /* @__PURE__ */ E({
|
|
1567
|
+
__name: "DropdownContent",
|
|
1568
|
+
props: {
|
|
1569
|
+
className: { default: "" }
|
|
1570
|
+
},
|
|
1571
|
+
setup(r) {
|
|
1572
|
+
const { height: d } = it();
|
|
1573
|
+
G();
|
|
1574
|
+
const e = R(), s = at("dropdownState", {
|
|
1575
|
+
active: !1,
|
|
1576
|
+
buttonHeight: 0
|
|
1577
|
+
}), o = O(() => s.active), c = () => {
|
|
1578
|
+
s.active = !1;
|
|
1579
|
+
}, a = O(() => ({ "--button-height": `${s.buttonHeight}px` })), l = O(() => {
|
|
1580
|
+
if (!(!s.active || !e.value) && d.value - e.value.getBoundingClientRect().bottom < 0)
|
|
1581
|
+
return "dropup-bottom";
|
|
1582
|
+
});
|
|
1583
|
+
return (n, u) => (p(), F(D, { name: "dropdown-content" }, {
|
|
1584
|
+
default: H(() => [
|
|
1585
|
+
o.value ? (p(), f("div", {
|
|
1586
|
+
key: 0,
|
|
1587
|
+
ref_key: "contentRef",
|
|
1588
|
+
ref: e,
|
|
1589
|
+
class: B(["absolute my-2xs max-w-[14rem] w-max overflow-hidden", [l.value, n.className]]),
|
|
1590
|
+
style: L(a.value)
|
|
1591
|
+
}, [
|
|
1592
|
+
_(n.$slots, "default", { itemClick: c }, void 0, !0)
|
|
1593
|
+
], 6)) : w("", !0)
|
|
1594
|
+
]),
|
|
1595
|
+
_: 3
|
|
1596
|
+
}));
|
|
1597
|
+
}
|
|
1598
|
+
});
|
|
1599
|
+
const ce = /* @__PURE__ */ N(Ct, [["__scopeId", "data-v-00060433"]]), wt = /* @__PURE__ */ E({
|
|
1600
|
+
__name: "NavDrawer",
|
|
1601
|
+
props: {
|
|
1602
|
+
color: { default: "dark-2" },
|
|
1603
|
+
displayBorder: { type: Boolean, default: !0 },
|
|
1604
|
+
toggle: { type: Boolean },
|
|
1605
|
+
navColor: {}
|
|
1606
|
+
},
|
|
1607
|
+
emits: ["hbg-click"],
|
|
1608
|
+
setup(r, { emit: d }) {
|
|
1609
|
+
const e = r, s = d, o = (n) => {
|
|
1610
|
+
s("hbg-click", n);
|
|
1611
|
+
}, c = O({
|
|
1612
|
+
get() {
|
|
1613
|
+
return e.toggle;
|
|
1614
|
+
},
|
|
1615
|
+
set(n) {
|
|
1616
|
+
return n;
|
|
1617
|
+
}
|
|
1618
|
+
}), a = (n, u, h) => {
|
|
1619
|
+
const k = [
|
|
1620
|
+
m("RINGCOLOR", n),
|
|
1621
|
+
m("OFFSETRING", h)
|
|
1622
|
+
];
|
|
1623
|
+
return u && (k.push(m("BORDER", n)), k.push("border")), k.join(" ");
|
|
1624
|
+
}, l = (n) => [
|
|
1625
|
+
m("BGCOLOR", n),
|
|
1626
|
+
m("BEFOREBG", n),
|
|
1627
|
+
m("AFTERBG", n)
|
|
1628
|
+
].join(" ");
|
|
1629
|
+
return (n, u) => (p(), f("button", {
|
|
1630
|
+
class: B(["p-3xs rounded-md aspect-square outline-none focus:ring-4 ring-offset-2 transition-all duration-300 ease-linear hover:opacity-70 focus:opacity-70 hamburger__button", a(n.color, n.displayBorder, n.navColor)]),
|
|
1631
|
+
onClick: o
|
|
1632
|
+
}, [
|
|
1633
|
+
$(v("input", {
|
|
1634
|
+
type: "checkbox",
|
|
1635
|
+
"onUpdate:modelValue": u[0] || (u[0] = (h) => c.value = h),
|
|
1636
|
+
class: "hidden hamburger__checkbox"
|
|
1637
|
+
}, null, 512), [
|
|
1638
|
+
[ot, c.value]
|
|
1639
|
+
]),
|
|
1640
|
+
v("div", {
|
|
1641
|
+
class: B(["relative h-[3px] w-sm hamburger__icon before:w-sm after:w-sm before:h-[3px] after:h-[3px] transition-all duration-300 ease-linear", l(n.color)])
|
|
1642
|
+
}, null, 2)
|
|
1643
|
+
], 2));
|
|
1644
|
+
}
|
|
1645
|
+
});
|
|
1646
|
+
const J = /* @__PURE__ */ N(wt, [["__scopeId", "data-v-64909a32"]]), Bt = { class: "flex flex-wrap items-center py-xs md:py-2xs mx-xs md:mx-sm align-middle justify-between sm:max-w-[640px] md:max-w-[768px] lg:max-w-[1024px] xl:max-w-[1280px] 2xl:max-w-[1536px]" }, _t = { class: "min-h-[24px]" }, Rt = { class: "ml-auto" }, Ot = {
|
|
1647
|
+
key: 0,
|
|
1648
|
+
class: "hidden lg:block"
|
|
1649
|
+
}, Tt = { class: "overflow-hidden lg:hidden" }, At = { key: 0 }, Vt = /* @__PURE__ */ E({
|
|
1650
|
+
__name: "HeaderHorizontal",
|
|
1651
|
+
props: {
|
|
1652
|
+
bgColor: { default: "light-1" },
|
|
1653
|
+
mobileMenuBgColor: { default: "light-2" },
|
|
1654
|
+
drawerBtnColor: { default: "dark-1" },
|
|
1655
|
+
drawerBtnBorder: { type: Boolean, default: !0 },
|
|
1656
|
+
fadeInOnScroll: { type: Boolean, default: !0 },
|
|
1657
|
+
scrollDistance: { default: 50 },
|
|
1658
|
+
sticky: { default: "all" }
|
|
1659
|
+
},
|
|
1660
|
+
emits: ["toggle-drawer"],
|
|
1661
|
+
setup(r, { expose: d, emit: e }) {
|
|
1662
|
+
const s = r, o = G(), c = R(!1), { y: a } = nt(), l = e, n = () => {
|
|
1663
|
+
c.value = !1;
|
|
1664
|
+
}, u = (b) => {
|
|
1665
|
+
c.value = !c.value, l("toggle-drawer", b, c.value);
|
|
1666
|
+
}, h = (b) => {
|
|
1667
|
+
b.style.height = "auto";
|
|
1668
|
+
const g = getComputedStyle(b).height;
|
|
1669
|
+
b.style.height = "0px", b.offsetHeight, b.style.height = g;
|
|
1670
|
+
}, k = (b) => {
|
|
1671
|
+
b.style.height = "auto";
|
|
1672
|
+
}, V = (b) => {
|
|
1673
|
+
b.style.height = getComputedStyle(b).height, b.offsetHeight, b.style.height = "0px";
|
|
1674
|
+
}, T = O(() => {
|
|
1675
|
+
const { bgColor: b, sticky: g } = s, A = [m("BGCOLOR", b)];
|
|
1676
|
+
return g === "all" ? (A.push("sticky top-0"), A.join(" ")) : g === "tablet" ? (A.push("md:sticky top-0"), A.join(" ")) : (g === "pc" && A.push("lg:sticky top-0"), A.join(" "));
|
|
1677
|
+
}), I = O(() => {
|
|
1678
|
+
const { fadeInOnScroll: b, scrollDistance: g } = s;
|
|
1679
|
+
return b ? a.value >= g ? "lg:shadow-md bg-opacity-70" : "bg-opacity-100" : "";
|
|
1680
|
+
});
|
|
1681
|
+
return d({
|
|
1682
|
+
headerClose: n
|
|
1683
|
+
}), (b, g) => (p(), f("header", {
|
|
1684
|
+
class: B(["w-full items-center z-50 transition ease-in duration-500 delay-150", [I.value, T.value]])
|
|
1685
|
+
}, [
|
|
1686
|
+
v("nav", Bt, [
|
|
1687
|
+
v("div", _t, [
|
|
1688
|
+
_(b.$slots, "content", {}, void 0, !0)
|
|
1689
|
+
]),
|
|
1690
|
+
v("div", Rt, [
|
|
1691
|
+
S(J, {
|
|
1692
|
+
color: b.drawerBtnColor,
|
|
1693
|
+
"display-border": b.drawerBtnBorder,
|
|
1694
|
+
class: "block lg:hidden",
|
|
1695
|
+
onHbgClick: u,
|
|
1696
|
+
toggle: c.value,
|
|
1697
|
+
"nav-color": b.bgColor
|
|
1698
|
+
}, null, 8, ["color", "display-border", "toggle", "nav-color"]),
|
|
1699
|
+
y(o)["content-right"] ? (p(), f("div", Ot, [
|
|
1700
|
+
_(b.$slots, "content-right", {}, void 0, !0)
|
|
1701
|
+
])) : w("", !0)
|
|
1702
|
+
])
|
|
1703
|
+
]),
|
|
1704
|
+
v("div", Tt, [
|
|
1705
|
+
S(D, {
|
|
1706
|
+
name: "collapse",
|
|
1707
|
+
onEnter: h,
|
|
1708
|
+
onAfterEnter: k,
|
|
1709
|
+
onLeave: V
|
|
1710
|
+
}, {
|
|
1711
|
+
default: H(() => [
|
|
1712
|
+
c.value ? (p(), f("div", {
|
|
1713
|
+
key: 0,
|
|
1714
|
+
class: B(["bg-opacity-80 rounded-md my-2xs mx-xs overflow-hidden", y(m)("BGCOLOR", b.mobileMenuBgColor)])
|
|
1715
|
+
}, [
|
|
1716
|
+
y(o)["mobile-content"] ? (p(), f("div", At, [
|
|
1717
|
+
_(b.$slots, "mobile-content", { headerClose: n }, void 0, !0)
|
|
1718
|
+
])) : w("", !0)
|
|
1719
|
+
], 2)) : w("", !0)
|
|
1720
|
+
]),
|
|
1721
|
+
_: 3
|
|
1722
|
+
})
|
|
1723
|
+
])
|
|
1724
|
+
], 2));
|
|
1725
|
+
}
|
|
1726
|
+
});
|
|
1727
|
+
const ge = /* @__PURE__ */ N(Vt, [["__scopeId", "data-v-94939c1a"]]), Et = { class: "lg:flex" }, St = { class: "flex flex-col justify-between h-full" }, Ht = { key: 0 }, Dt = { class: "block fixed lg:hidden top-0 right-0 mr-xs mt-xs z-20" }, Gt = { class: "block lg:hidden relative" }, It = {
|
|
1728
|
+
key: 0,
|
|
1729
|
+
class: "h-full"
|
|
1730
|
+
}, Wt = { class: "w-full" }, Nt = /* @__PURE__ */ E({
|
|
1731
|
+
__name: "HeaderVertical",
|
|
1732
|
+
props: {
|
|
1733
|
+
bgColor: { default: "light-1" },
|
|
1734
|
+
drawerBtnColor: { default: "dark-1" },
|
|
1735
|
+
drawerBtnBorder: { type: Boolean, default: !0 },
|
|
1736
|
+
headerWidth: { default: 160 }
|
|
1737
|
+
},
|
|
1738
|
+
emits: ["toggle-drawer"],
|
|
1739
|
+
setup(r, { expose: d, emit: e }) {
|
|
1740
|
+
const s = r, o = G(), c = e, a = R(!1), l = (h) => {
|
|
1741
|
+
a.value = !a.value, c("toggle-drawer", h, a.value);
|
|
1742
|
+
}, n = () => {
|
|
1743
|
+
a.value = !1;
|
|
1744
|
+
}, u = O(() => ({ "--header-width": `${s.headerWidth}px` }));
|
|
1745
|
+
return d({
|
|
1746
|
+
headerClose: n
|
|
1747
|
+
}), (h, k) => (p(), f("section", Et, [
|
|
1748
|
+
v("header", {
|
|
1749
|
+
class: "relative",
|
|
1750
|
+
style: L(u.value)
|
|
1751
|
+
}, [
|
|
1752
|
+
v("nav", {
|
|
1753
|
+
class: B(["hidden lg:block lg:sticky lg:top-0 lg:left-0 lg:h-[100vh] py-sm header-desktop overscroll-contain overflow-y-scroll", [y(m)("BGCOLOR", h.bgColor)]])
|
|
1754
|
+
}, [
|
|
1755
|
+
v("div", St, [
|
|
1756
|
+
v("div", null, [
|
|
1757
|
+
_(h.$slots, "content", {}, void 0, !0)
|
|
1758
|
+
]),
|
|
1759
|
+
y(o)["content-bottom"] ? (p(), f("div", Ht, [
|
|
1760
|
+
_(h.$slots, "content-bottom", {}, void 0, !0)
|
|
1761
|
+
])) : w("", !0)
|
|
1762
|
+
])
|
|
1763
|
+
], 2),
|
|
1764
|
+
v("div", Dt, [
|
|
1765
|
+
S(J, {
|
|
1766
|
+
color: h.drawerBtnColor,
|
|
1767
|
+
"display-border": h.drawerBtnBorder,
|
|
1768
|
+
class: "block lg:hidden relative",
|
|
1769
|
+
onHbgClick: l,
|
|
1770
|
+
toggle: a.value,
|
|
1771
|
+
"nav-color": h.bgColor
|
|
1772
|
+
}, null, 8, ["color", "display-border", "toggle", "nav-color"])
|
|
1773
|
+
]),
|
|
1774
|
+
v("div", Gt, [
|
|
1775
|
+
S(D, {
|
|
1776
|
+
name: "slide-down",
|
|
1777
|
+
appear: ""
|
|
1778
|
+
}, {
|
|
1779
|
+
default: H(() => [
|
|
1780
|
+
a.value ? (p(), f("div", {
|
|
1781
|
+
key: 0,
|
|
1782
|
+
class: B(["fixed inset-0 overflow-y-scroll overscroll-contain py-lg px-sm", y(m)("BGCOLOR", h.bgColor)])
|
|
1783
|
+
}, [
|
|
1784
|
+
y(o)["mobile-content"] ? (p(), f("div", It, [
|
|
1785
|
+
_(h.$slots, "mobile-content", { headerClose: n }, void 0, !0)
|
|
1786
|
+
])) : w("", !0)
|
|
1787
|
+
], 2)) : w("", !0)
|
|
1788
|
+
]),
|
|
1789
|
+
_: 3
|
|
1790
|
+
})
|
|
1791
|
+
])
|
|
1792
|
+
], 4),
|
|
1793
|
+
v("div", Wt, [
|
|
1794
|
+
_(h.$slots, "default", {}, void 0, !0)
|
|
1795
|
+
])
|
|
1796
|
+
]));
|
|
1797
|
+
}
|
|
1798
|
+
});
|
|
1799
|
+
const ue = /* @__PURE__ */ N(Nt, [["__scopeId", "data-v-e2818e18"]]), $t = (r) => (q("data-v-8500b482"), r = r(), K(), r), Lt = ["visible"], Ft = {
|
|
1800
|
+
key: 0,
|
|
1801
|
+
class: "vertical-placement fixed w-full max-w-md z-[110] px-xs"
|
|
1802
|
+
}, Xt = {
|
|
1803
|
+
key: 0,
|
|
1804
|
+
class: "sticky top-0"
|
|
1805
|
+
}, Yt = /* @__PURE__ */ $t(() => /* @__PURE__ */ v("path", { d: "M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z" }, null, -1)), Pt = [
|
|
1806
|
+
Yt
|
|
1807
|
+
], zt = {
|
|
1808
|
+
key: 1,
|
|
1809
|
+
class: "sticky bottom-0"
|
|
1810
|
+
}, jt = /* @__PURE__ */ E({
|
|
1811
|
+
__name: "Modal",
|
|
1812
|
+
props: {
|
|
1813
|
+
title: {},
|
|
1814
|
+
titleColor: { default: "dark-3" },
|
|
1815
|
+
className: { default: "" },
|
|
1816
|
+
visible: { type: Boolean, default: !1 },
|
|
1817
|
+
noBackdrop: { type: Boolean, default: !1 },
|
|
1818
|
+
noHeader: { type: Boolean, default: !1 },
|
|
1819
|
+
color: { default: "light-1" },
|
|
1820
|
+
backdropColor: { default: "dark-4" },
|
|
1821
|
+
placement: { default: "center" }
|
|
1822
|
+
},
|
|
1823
|
+
emits: ["open", "close"],
|
|
1824
|
+
setup(r, { expose: d, emit: e }) {
|
|
1825
|
+
const s = r, o = G(), c = e, a = R(), l = R(s.visible), n = R(!1), u = () => {
|
|
1826
|
+
l.value = !l.value;
|
|
1827
|
+
}, h = () => {
|
|
1828
|
+
l.value = !0;
|
|
1829
|
+
}, k = () => {
|
|
1830
|
+
n.value === !0 && (l.value = !1);
|
|
1831
|
+
}, V = () => {
|
|
1832
|
+
c("open", !0);
|
|
1833
|
+
}, T = () => {
|
|
1834
|
+
c("close", !1);
|
|
1835
|
+
}, I = O(() => {
|
|
1836
|
+
let x;
|
|
1837
|
+
return s.placement === "top" ? x = 25 : s.placement === "bottom" ? x = 75 : x = 50, { "--vertical-placement": x + "%" };
|
|
1838
|
+
}), b = () => {
|
|
1839
|
+
n.value = !0;
|
|
1840
|
+
}, g = () => {
|
|
1841
|
+
n.value = !1;
|
|
1842
|
+
};
|
|
1843
|
+
return X(a, (x = !1) => {
|
|
1844
|
+
l.value = x;
|
|
1845
|
+
}), W(
|
|
1846
|
+
() => s.visible,
|
|
1847
|
+
(x) => {
|
|
1848
|
+
l.value = x;
|
|
1849
|
+
}
|
|
1850
|
+
), W(l, (x) => {
|
|
1851
|
+
x === !0 ? V() : x === !1 && n.value === !0 && T();
|
|
1852
|
+
}), d({
|
|
1853
|
+
toggle: u,
|
|
1854
|
+
close: k,
|
|
1855
|
+
open: h
|
|
1856
|
+
}), (x, P) => (p(), f("div", {
|
|
1857
|
+
style: L(I.value),
|
|
1858
|
+
visible: l.value,
|
|
1859
|
+
ref_key: "modalRef",
|
|
1860
|
+
ref: a
|
|
1861
|
+
}, [
|
|
1862
|
+
x.noBackdrop ? w("", !0) : (p(), F(D, {
|
|
1863
|
+
key: 0,
|
|
1864
|
+
name: "fade",
|
|
1865
|
+
appear: "",
|
|
1866
|
+
tag: "div"
|
|
1867
|
+
}, {
|
|
1868
|
+
default: H(() => [
|
|
1869
|
+
l.value ? (p(), f("section", {
|
|
1870
|
+
key: 0,
|
|
1871
|
+
onClick: k,
|
|
1872
|
+
class: B(["fixed inset-0 overflow-y-auto bg-opacity-70 backdrop-blur z-[100]", y(m)("BGCOLOR", x.backdropColor)])
|
|
1873
|
+
}, null, 2)) : w("", !0)
|
|
1874
|
+
]),
|
|
1875
|
+
_: 1
|
|
1876
|
+
})),
|
|
1877
|
+
S(D, {
|
|
1878
|
+
name: "slide-down",
|
|
1879
|
+
tag: "div",
|
|
1880
|
+
onAfterEnter: b,
|
|
1881
|
+
onAfterLeave: g,
|
|
1882
|
+
appear: ""
|
|
1883
|
+
}, {
|
|
1884
|
+
default: H(() => [
|
|
1885
|
+
l.value ? (p(), f("div", Ft, [
|
|
1886
|
+
$((p(), f("div", {
|
|
1887
|
+
class: B([[y(m)("BGCOLOR", x.color), x.className], "relative overscroll-contain overflow-y-scroll max-h-[80vh] md:max-h-[60vh]"])
|
|
1888
|
+
}, [
|
|
1889
|
+
x.noHeader ? w("", !0) : (p(), f("div", Xt, [
|
|
1890
|
+
_(x.$slots, "header", {
|
|
1891
|
+
close: k,
|
|
1892
|
+
status: l.value
|
|
1893
|
+
}, () => [
|
|
1894
|
+
v("div", {
|
|
1895
|
+
class: B(["flex justify-between items-center p-xs border-b-2", y(m)("BGCOLOR", x.color)])
|
|
1896
|
+
}, [
|
|
1897
|
+
x.title ? (p(), f("h3", {
|
|
1898
|
+
key: 0,
|
|
1899
|
+
class: B(["h3-md", y(m)("TEXTCOLOR", x.titleColor)])
|
|
1900
|
+
}, U(x.title), 3)) : w("", !0),
|
|
1901
|
+
v("button", { onClick: k }, [
|
|
1902
|
+
(p(), f("svg", {
|
|
1903
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1904
|
+
height: "1em",
|
|
1905
|
+
viewBox: "0 0 384 512",
|
|
1906
|
+
class: B(["hover:opacity-75 focus:opacity-75 transition-opacity duration-300 ease-in h-sm", [y(m)("SVGFILL", x.titleColor)]])
|
|
1907
|
+
}, Pt, 2))
|
|
1908
|
+
])
|
|
1909
|
+
], 2)
|
|
1910
|
+
], !0)
|
|
1911
|
+
])),
|
|
1912
|
+
_(x.$slots, "body", {
|
|
1913
|
+
close: k,
|
|
1914
|
+
status: l.value
|
|
1915
|
+
}, void 0, !0),
|
|
1916
|
+
y(o).footer ? (p(), f("div", zt, [
|
|
1917
|
+
_(x.$slots, "footer", {
|
|
1918
|
+
close: k,
|
|
1919
|
+
status: l.value
|
|
1920
|
+
}, void 0, !0)
|
|
1921
|
+
])) : w("", !0)
|
|
1922
|
+
], 2)), [
|
|
1923
|
+
[y(Y), k]
|
|
1924
|
+
])
|
|
1925
|
+
])) : w("", !0)
|
|
1926
|
+
]),
|
|
1927
|
+
_: 3
|
|
1928
|
+
})
|
|
1929
|
+
], 12, Lt));
|
|
1930
|
+
}
|
|
1931
|
+
});
|
|
1932
|
+
const he = /* @__PURE__ */ N(jt, [["__scopeId", "data-v-8500b482"]]), Ut = (r) => (q("data-v-d725bf18"), r = r(), K(), r), qt = ["visible"], Kt = /* @__PURE__ */ Ut(() => /* @__PURE__ */ v("path", { d: "M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z" }, null, -1)), Jt = [
|
|
1933
|
+
Kt
|
|
1934
|
+
], Qt = { class: "sidebar-body-height" }, Zt = /* @__PURE__ */ E({
|
|
1935
|
+
__name: "Sidebar",
|
|
1936
|
+
props: {
|
|
1937
|
+
title: {},
|
|
1938
|
+
titleColor: { default: "dark-3" },
|
|
1939
|
+
className: { default: "" },
|
|
1940
|
+
visible: { type: Boolean, default: !1 },
|
|
1941
|
+
noBackdrop: { type: Boolean, default: !1 },
|
|
1942
|
+
noHeader: { type: Boolean, default: !1 },
|
|
1943
|
+
color: { default: "light-1" },
|
|
1944
|
+
backdropColor: { default: "dark-4" },
|
|
1945
|
+
placement: { default: "left" },
|
|
1946
|
+
width: { default: 300 }
|
|
1947
|
+
},
|
|
1948
|
+
emits: ["open", "close"],
|
|
1949
|
+
setup(r, { expose: d, emit: e }) {
|
|
1950
|
+
const s = r, o = G(), c = e, a = R(s.visible), l = R(!1), n = R(), u = R(), h = R(), k = () => {
|
|
1951
|
+
a.value = !a.value;
|
|
1952
|
+
}, V = () => {
|
|
1953
|
+
a.value = !0;
|
|
1954
|
+
}, T = () => {
|
|
1955
|
+
l.value === !0 && (a.value = !1);
|
|
1956
|
+
}, I = () => {
|
|
1957
|
+
c("open", !0);
|
|
1958
|
+
}, b = () => {
|
|
1959
|
+
c("close", !1);
|
|
1960
|
+
}, g = O(() => ({
|
|
1961
|
+
"--sidebar-width": `${s.width}px`,
|
|
1962
|
+
"--header-height": u.value && a.value ? u.value.scrollHeight + "px" : "0px",
|
|
1963
|
+
"--footer-height": h.value && a.value ? h.value.scrollHeight + "px" : "0px"
|
|
1964
|
+
})), A = O(() => s.placement === "left" ? "sidebar-left" : "sidebar-right"), x = () => {
|
|
1965
|
+
l.value = !0;
|
|
1966
|
+
}, P = () => {
|
|
1967
|
+
l.value = !1;
|
|
1968
|
+
};
|
|
1969
|
+
return X(n, (C = !1) => {
|
|
1970
|
+
a.value = C;
|
|
1971
|
+
}), W(
|
|
1972
|
+
() => s.visible,
|
|
1973
|
+
(C) => {
|
|
1974
|
+
a.value = C;
|
|
1975
|
+
}
|
|
1976
|
+
), W(a, (C) => {
|
|
1977
|
+
C === !0 ? I() : C === !1 && l.value === !0 && b();
|
|
1978
|
+
}), d({
|
|
1979
|
+
toggle: k,
|
|
1980
|
+
open: V,
|
|
1981
|
+
close: T
|
|
1982
|
+
}), (C, te) => (p(), f("div", {
|
|
1983
|
+
style: L(g.value),
|
|
1984
|
+
visible: a.value,
|
|
1985
|
+
ref_key: "sidebarRef",
|
|
1986
|
+
ref: n
|
|
1987
|
+
}, [
|
|
1988
|
+
C.noBackdrop ? w("", !0) : (p(), F(D, {
|
|
1989
|
+
key: 0,
|
|
1990
|
+
name: "fade",
|
|
1991
|
+
appear: "",
|
|
1992
|
+
tag: "div"
|
|
1993
|
+
}, {
|
|
1994
|
+
default: H(() => [
|
|
1995
|
+
a.value ? (p(), f("section", {
|
|
1996
|
+
key: 0,
|
|
1997
|
+
onClick: T,
|
|
1998
|
+
class: B(["fixed inset-0 overflow-y-auto bg-opacity-70 backdrop-blur z-[100]", y(m)("BGCOLOR", C.backdropColor)])
|
|
1999
|
+
}, null, 2)) : w("", !0)
|
|
2000
|
+
]),
|
|
2001
|
+
_: 1
|
|
2002
|
+
})),
|
|
2003
|
+
S(D, {
|
|
2004
|
+
name: A.value,
|
|
2005
|
+
onAfterEnter: x,
|
|
2006
|
+
onAfterLeave: P,
|
|
2007
|
+
appear: ""
|
|
2008
|
+
}, {
|
|
2009
|
+
default: H(() => [
|
|
2010
|
+
a.value ? $((p(), f("div", {
|
|
2011
|
+
key: 0,
|
|
2012
|
+
class: B(["sidebar-body fixed h-full overflow-hidden inset-y-0 shadow z-[110]", [C.placement === "left" ? "left-0" : "right-0"]])
|
|
2013
|
+
}, [
|
|
2014
|
+
v("div", {
|
|
2015
|
+
class: B(["relative h-full overscroll-contain overflow-y-scroll", [y(m)("BGCOLOR", C.color), C.className]])
|
|
2016
|
+
}, [
|
|
2017
|
+
C.noHeader ? w("", !0) : (p(), f("div", {
|
|
2018
|
+
key: 0,
|
|
2019
|
+
class: "sticky top-0",
|
|
2020
|
+
ref_key: "headerRef",
|
|
2021
|
+
ref: u
|
|
2022
|
+
}, [
|
|
2023
|
+
_(C.$slots, "header", {
|
|
2024
|
+
close: T,
|
|
2025
|
+
status: a.value
|
|
2026
|
+
}, () => [
|
|
2027
|
+
v("div", {
|
|
2028
|
+
class: B(["flex justify-between items-center p-xs", y(m)("BGCOLOR", C.color)])
|
|
2029
|
+
}, [
|
|
2030
|
+
C.title ? (p(), f("h3", {
|
|
2031
|
+
key: 0,
|
|
2032
|
+
class: B(["h3-md", y(m)("TEXTCOLOR", C.titleColor)])
|
|
2033
|
+
}, U(C.title), 3)) : w("", !0),
|
|
2034
|
+
v("button", { onClick: T }, [
|
|
2035
|
+
(p(), f("svg", {
|
|
2036
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2037
|
+
height: "1em",
|
|
2038
|
+
viewBox: "0 0 384 512",
|
|
2039
|
+
class: B(["hover:opacity-75 focus:opacity-75 transition-opacity duration-300 ease-in h-sm", [y(m)("SVGFILL", C.titleColor)]])
|
|
2040
|
+
}, Jt, 2))
|
|
2041
|
+
])
|
|
2042
|
+
], 2)
|
|
2043
|
+
], !0)
|
|
2044
|
+
], 512)),
|
|
2045
|
+
v("div", Qt, [
|
|
2046
|
+
_(C.$slots, "body", {
|
|
2047
|
+
close: T,
|
|
2048
|
+
status: a.value
|
|
2049
|
+
}, void 0, !0)
|
|
2050
|
+
]),
|
|
2051
|
+
y(o).footer ? (p(), f("div", {
|
|
2052
|
+
key: 1,
|
|
2053
|
+
class: "sticky bottom-0",
|
|
2054
|
+
ref_key: "footerRef",
|
|
2055
|
+
ref: h
|
|
2056
|
+
}, [
|
|
2057
|
+
_(C.$slots, "footer", {
|
|
2058
|
+
close: T,
|
|
2059
|
+
status: a.value
|
|
2060
|
+
}, void 0, !0)
|
|
2061
|
+
], 512)) : w("", !0)
|
|
2062
|
+
], 2)
|
|
2063
|
+
], 2)), [
|
|
2064
|
+
[y(Y), T]
|
|
2065
|
+
]) : w("", !0)
|
|
2066
|
+
]),
|
|
2067
|
+
_: 3
|
|
2068
|
+
}, 8, ["name"])
|
|
2069
|
+
], 12, qt));
|
|
2070
|
+
}
|
|
2071
|
+
});
|
|
2072
|
+
const pe = /* @__PURE__ */ N(Zt, [["__scopeId", "data-v-d725bf18"]]);
|
|
2073
|
+
export {
|
|
2074
|
+
ae as Alert,
|
|
2075
|
+
vt as ClientSideRender,
|
|
2076
|
+
oe as Collapse,
|
|
2077
|
+
de as DropdownContainer,
|
|
2078
|
+
ce as DropdownContent,
|
|
2079
|
+
ge as HeaderHorizontal,
|
|
2080
|
+
ue as HeaderVertical,
|
|
2081
|
+
he as Modal,
|
|
2082
|
+
pe as Sidebar,
|
|
2083
|
+
m as default,
|
|
2084
|
+
Y as vClickOutside,
|
|
2085
|
+
ie as vCollapse,
|
|
2086
|
+
le as vToggle,
|
|
2087
|
+
ne as vTooltip
|
|
2088
|
+
};
|