@fy-/fws-vue 0.3.0 → 0.3.2
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/components/ui/DefaultInput.vue +2 -44
- package/package.json +1 -11
- package/presets/Lara/accordion/index.js +0 -86
- package/presets/Lara/autocomplete/index.js +0 -284
- package/presets/Lara/avatar/index.js +0 -46
- package/presets/Lara/badge/index.js +0 -44
- package/presets/Lara/badgedirective/index.js +0 -49
- package/presets/Lara/blockui/index.js +0 -8
- package/presets/Lara/breadcrumb/index.js +0 -64
- package/presets/Lara/button/index.js +0 -470
- package/presets/Lara/calendar/index.js +0 -683
- package/presets/Lara/card/index.js +0 -37
- package/presets/Lara/carousel/index.js +0 -152
- package/presets/Lara/cascadeselect/index.js +0 -228
- package/presets/Lara/checkbox/index.js +0 -106
- package/presets/Lara/chip/index.js +0 -45
- package/presets/Lara/chips/index.js +0 -118
- package/presets/Lara/colorpicker/index.js +0 -129
- package/presets/Lara/confirmpopup/index.js +0 -107
- package/presets/Lara/contextmenu/index.js +0 -130
- package/presets/Lara/datatable/index.js +0 -1289
- package/presets/Lara/dataview/index.js +0 -40
- package/presets/Lara/deferred/index.js +0 -3
- package/presets/Lara/dialog/index.js +0 -249
- package/presets/Lara/divider/index.js +0 -72
- package/presets/Lara/dock/index.js +0 -97
- package/presets/Lara/dropdown/index.js +0 -300
- package/presets/Lara/fieldset/index.js +0 -98
- package/presets/Lara/fileupload/index.js +0 -173
- package/presets/Lara/floatlabel/index.js +0 -26
- package/presets/Lara/galleria/index.js +0 -351
- package/presets/Lara/global.js +0 -90
- package/presets/Lara/iconfield/index.js +0 -22
- package/presets/Lara/image/index.js +0 -206
- package/presets/Lara/index.js +0 -181
- package/presets/Lara/inlinemessage/index.js +0 -36
- package/presets/Lara/inplace/index.js +0 -27
- package/presets/Lara/inputgroup/index.js +0 -5
- package/presets/Lara/inputgroupaddon/index.js +0 -28
- package/presets/Lara/inputmask/index.js +0 -37
- package/presets/Lara/inputnumber/index.js +0 -253
- package/presets/Lara/inputotp/index.js +0 -72
- package/presets/Lara/inputswitch/index.js +0 -93
- package/presets/Lara/inputtext/index.js +0 -61
- package/presets/Lara/knob/index.js +0 -47
- package/presets/Lara/listbox/index.js +0 -170
- package/presets/Lara/megamenu/index.js +0 -207
- package/presets/Lara/menu/index.js +0 -98
- package/presets/Lara/menubar/index.js +0 -181
- package/presets/Lara/message/index.js +0 -87
- package/presets/Lara/metergroup/index.js +0 -110
- package/presets/Lara/multiselect/index.js +0 -589
- package/presets/Lara/orderlist/index.js +0 -266
- package/presets/Lara/organizationchart/index.js +0 -142
- package/presets/Lara/overlaypanel/index.js +0 -41
- package/presets/Lara/paginator/index.js +0 -590
- package/presets/Lara/panel/index.js +0 -93
- package/presets/Lara/panelmenu/index.js +0 -139
- package/presets/Lara/password/index.js +0 -140
- package/presets/Lara/picklist/index.js +0 -659
- package/presets/Lara/progressbar/index.js +0 -61
- package/presets/Lara/progressspinner/index.js +0 -51
- package/presets/Lara/radiobutton/index.js +0 -116
- package/presets/Lara/rating/index.js +0 -95
- package/presets/Lara/ripple/index.js +0 -6
- package/presets/Lara/scrollpanel/index.js +0 -77
- package/presets/Lara/scrolltop/index.js +0 -45
- package/presets/Lara/selectbutton/index.js +0 -60
- package/presets/Lara/sidebar/index.js +0 -163
- package/presets/Lara/skeleton/index.js +0 -19
- package/presets/Lara/slider/index.js +0 -149
- package/presets/Lara/speeddial/index.js +0 -535
- package/presets/Lara/splitbutton/index.js +0 -1081
- package/presets/Lara/splitter/index.js +0 -64
- package/presets/Lara/stepper/index.js +0 -183
- package/presets/Lara/steps/index.js +0 -115
- package/presets/Lara/tabmenu/index.js +0 -82
- package/presets/Lara/tabview/index.js +0 -166
- package/presets/Lara/tag/index.js +0 -37
- package/presets/Lara/terminal/index.js +0 -60
- package/presets/Lara/textarea/index.js +0 -39
- package/presets/Lara/tieredmenu/index.js +0 -125
- package/presets/Lara/timeline/index.js +0 -107
- package/presets/Lara/toast/index.js +0 -113
- package/presets/Lara/togglebutton/index.js +0 -100
- package/presets/Lara/toolbar/index.js +0 -28
- package/presets/Lara/tooltip/index.js +0 -73
- package/presets/Lara/tree/index.js +0 -281
- package/presets/Lara/treeselect/index.js +0 -387
- package/presets/Lara/treetable/index.js +0 -509
- package/presets/Lara/tristatecheckbox/index.js +0 -112
- package/presets/Wind/accordion/index.js +0 -75
- package/presets/Wind/autocomplete/index.js +0 -294
- package/presets/Wind/avatar/index.js +0 -48
- package/presets/Wind/badge/index.js +0 -43
- package/presets/Wind/badgedirective/index.js +0 -50
- package/presets/Wind/blockui/index.js +0 -8
- package/presets/Wind/breadcrumb/index.js +0 -45
- package/presets/Wind/button/index.js +0 -474
- package/presets/Wind/calendar/index.js +0 -659
- package/presets/Wind/card/index.js +0 -40
- package/presets/Wind/carousel/index.js +0 -152
- package/presets/Wind/cascadeselect/index.js +0 -225
- package/presets/Wind/checkbox/index.js +0 -112
- package/presets/Wind/chip/index.js +0 -45
- package/presets/Wind/chips/index.js +0 -120
- package/presets/Wind/colorpicker/index.js +0 -129
- package/presets/Wind/confirmpopup/index.js +0 -123
- package/presets/Wind/contextmenu/index.js +0 -128
- package/presets/Wind/datatable/index.js +0 -1330
- package/presets/Wind/dataview/index.js +0 -40
- package/presets/Wind/deferred/index.js +0 -3
- package/presets/Wind/dialog/index.js +0 -251
- package/presets/Wind/divider/index.js +0 -72
- package/presets/Wind/dock/index.js +0 -97
- package/presets/Wind/dropdown/index.js +0 -287
- package/presets/Wind/fieldset/index.js +0 -99
- package/presets/Wind/fileupload/index.js +0 -173
- package/presets/Wind/floatlabel/index.js +0 -26
- package/presets/Wind/galleria/index.js +0 -351
- package/presets/Wind/global.js +0 -77
- package/presets/Wind/iconfield/index.js +0 -22
- package/presets/Wind/image/index.js +0 -206
- package/presets/Wind/index.js +0 -181
- package/presets/Wind/inlinemessage/index.js +0 -29
- package/presets/Wind/inplace/index.js +0 -30
- package/presets/Wind/inputgroup/index.js +0 -5
- package/presets/Wind/inputgroupaddon/index.js +0 -28
- package/presets/Wind/inputmask/index.js +0 -34
- package/presets/Wind/inputnumber/index.js +0 -244
- package/presets/Wind/inputotp/index.js +0 -72
- package/presets/Wind/inputswitch/index.js +0 -106
- package/presets/Wind/inputtext/index.js +0 -61
- package/presets/Wind/knob/index.js +0 -47
- package/presets/Wind/listbox/index.js +0 -159
- package/presets/Wind/megamenu/index.js +0 -218
- package/presets/Wind/menu/index.js +0 -111
- package/presets/Wind/menubar/index.js +0 -188
- package/presets/Wind/message/index.js +0 -87
- package/presets/Wind/metergroup/index.js +0 -110
- package/presets/Wind/multiselect/index.js +0 -619
- package/presets/Wind/orderlist/index.js +0 -275
- package/presets/Wind/organizationchart/index.js +0 -143
- package/presets/Wind/overlaypanel/index.js +0 -42
- package/presets/Wind/paginator/index.js +0 -596
- package/presets/Wind/panel/index.js +0 -95
- package/presets/Wind/panelmenu/index.js +0 -136
- package/presets/Wind/password/index.js +0 -141
- package/presets/Wind/picklist/index.js +0 -684
- package/presets/Wind/progressbar/index.js +0 -68
- package/presets/Wind/progressspinner/index.js +0 -51
- package/presets/Wind/radiobutton/index.js +0 -92
- package/presets/Wind/rating/index.js +0 -86
- package/presets/Wind/ripple/index.js +0 -6
- package/presets/Wind/scrollpanel/index.js +0 -77
- package/presets/Wind/scrolltop/index.js +0 -45
- package/presets/Wind/selectbutton/index.js +0 -58
- package/presets/Wind/sidebar/index.js +0 -165
- package/presets/Wind/skeleton/index.js +0 -19
- package/presets/Wind/slider/index.js +0 -135
- package/presets/Wind/speeddial/index.js +0 -536
- package/presets/Wind/splitbutton/index.js +0 -1078
- package/presets/Wind/splitter/index.js +0 -64
- package/presets/Wind/stepper/index.js +0 -180
- package/presets/Wind/steps/index.js +0 -132
- package/presets/Wind/tabmenu/index.js +0 -84
- package/presets/Wind/tabview/index.js +0 -168
- package/presets/Wind/tag/index.js +0 -37
- package/presets/Wind/terminal/index.js +0 -60
- package/presets/Wind/textarea/index.js +0 -40
- package/presets/Wind/tieredmenu/index.js +0 -121
- package/presets/Wind/timeline/index.js +0 -107
- package/presets/Wind/toast/index.js +0 -111
- package/presets/Wind/togglebutton/index.js +0 -91
- package/presets/Wind/toolbar/index.js +0 -30
- package/presets/Wind/tooltip/index.js +0 -43
- package/presets/Wind/tree/index.js +0 -300
- package/presets/Wind/treeselect/index.js +0 -404
- package/presets/Wind/treetable/index.js +0 -505
- package/presets/Wind/tristatecheckbox/index.js +0 -118
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
content: {
|
|
3
|
-
class: [
|
|
4
|
-
// Spacing
|
|
5
|
-
"p-0",
|
|
6
|
-
|
|
7
|
-
// Shape
|
|
8
|
-
"border-0",
|
|
9
|
-
|
|
10
|
-
// Color
|
|
11
|
-
"text-surface-700 dark:text-white/80",
|
|
12
|
-
"bg-surface-0 dark:bg-surface-800",
|
|
13
|
-
],
|
|
14
|
-
},
|
|
15
|
-
grid: {
|
|
16
|
-
class: [
|
|
17
|
-
// flex
|
|
18
|
-
"flex flex-wrap",
|
|
19
|
-
|
|
20
|
-
// Spacing
|
|
21
|
-
"ml-0 mr-0 mt-0",
|
|
22
|
-
|
|
23
|
-
// Color
|
|
24
|
-
"bg-surface-0 dark:bg-surface-800",
|
|
25
|
-
],
|
|
26
|
-
},
|
|
27
|
-
header: {
|
|
28
|
-
class: [
|
|
29
|
-
"font-bold",
|
|
30
|
-
|
|
31
|
-
// Spacing
|
|
32
|
-
"p-4",
|
|
33
|
-
|
|
34
|
-
// Color
|
|
35
|
-
"text-surface-800 dark:text-white/80",
|
|
36
|
-
"bg-surface-50 dark:bg-surface-800",
|
|
37
|
-
"border-surface-200 dark:border-surface-700 border-y",
|
|
38
|
-
],
|
|
39
|
-
},
|
|
40
|
-
};
|
|
@@ -1,249 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
root: ({ state }) => ({
|
|
3
|
-
class: [
|
|
4
|
-
// Shape
|
|
5
|
-
"rounded-lg",
|
|
6
|
-
"shadow-lg",
|
|
7
|
-
"border-0",
|
|
8
|
-
|
|
9
|
-
// Size
|
|
10
|
-
"max-h-[90vh]",
|
|
11
|
-
"w-[50vw]",
|
|
12
|
-
"m-0",
|
|
13
|
-
|
|
14
|
-
// Color
|
|
15
|
-
"dark:border",
|
|
16
|
-
"dark:border-surface-700",
|
|
17
|
-
|
|
18
|
-
// Transitions
|
|
19
|
-
"transform",
|
|
20
|
-
"scale-100",
|
|
21
|
-
|
|
22
|
-
// Maximized State
|
|
23
|
-
{
|
|
24
|
-
"transition-none": state.maximized,
|
|
25
|
-
"transform-none": state.maximized,
|
|
26
|
-
"!w-screen": state.maximized,
|
|
27
|
-
"!h-screen": state.maximized,
|
|
28
|
-
"!max-h-full": state.maximized,
|
|
29
|
-
"!top-0": state.maximized,
|
|
30
|
-
"!left-0": state.maximized,
|
|
31
|
-
},
|
|
32
|
-
],
|
|
33
|
-
}),
|
|
34
|
-
header: {
|
|
35
|
-
class: [
|
|
36
|
-
// Flexbox and Alignment
|
|
37
|
-
"flex items-center justify-between",
|
|
38
|
-
"shrink-0",
|
|
39
|
-
|
|
40
|
-
// Spacing
|
|
41
|
-
"p-6",
|
|
42
|
-
|
|
43
|
-
// Shape
|
|
44
|
-
"border-t-0",
|
|
45
|
-
"rounded-tl-lg",
|
|
46
|
-
"rounded-tr-lg",
|
|
47
|
-
|
|
48
|
-
// Colors
|
|
49
|
-
"bg-surface-0 dark:bg-surface-800",
|
|
50
|
-
"text-surface-700 dark:text-surface-0/80",
|
|
51
|
-
],
|
|
52
|
-
},
|
|
53
|
-
title: {
|
|
54
|
-
class: ["font-bold text-lg"],
|
|
55
|
-
},
|
|
56
|
-
icons: {
|
|
57
|
-
class: ["flex items-center"],
|
|
58
|
-
},
|
|
59
|
-
closeButton: {
|
|
60
|
-
class: [
|
|
61
|
-
"relative",
|
|
62
|
-
|
|
63
|
-
// Flexbox and Alignment
|
|
64
|
-
"flex items-center justify-center",
|
|
65
|
-
|
|
66
|
-
// Size and Spacing
|
|
67
|
-
"mr-2",
|
|
68
|
-
"last:mr-0",
|
|
69
|
-
"w-8 h-8",
|
|
70
|
-
|
|
71
|
-
// Shape
|
|
72
|
-
"border-0",
|
|
73
|
-
"rounded-full",
|
|
74
|
-
|
|
75
|
-
// Colors
|
|
76
|
-
"text-surface-500",
|
|
77
|
-
"bg-transparent",
|
|
78
|
-
|
|
79
|
-
// Transitions
|
|
80
|
-
"transition duration-200 ease-in-out",
|
|
81
|
-
|
|
82
|
-
// States
|
|
83
|
-
"hover:text-surface-700 dark:hover:text-white/80",
|
|
84
|
-
"hover:bg-surface-100 dark:hover:bg-surface-800/80",
|
|
85
|
-
"focus:outline-none focus:outline-offset-0 focus:ring focus:ring-inset",
|
|
86
|
-
"focus:ring-primary-400/50 dark:focus:ring-primary-300/50",
|
|
87
|
-
|
|
88
|
-
// Misc
|
|
89
|
-
"overflow-hidden",
|
|
90
|
-
],
|
|
91
|
-
},
|
|
92
|
-
maximizablebutton: {
|
|
93
|
-
class: [
|
|
94
|
-
"relative",
|
|
95
|
-
|
|
96
|
-
// Flexbox and Alignment
|
|
97
|
-
"flex items-center justify-center",
|
|
98
|
-
|
|
99
|
-
// Size and Spacing
|
|
100
|
-
"mr-2",
|
|
101
|
-
"last:mr-0",
|
|
102
|
-
"w-8 h-8",
|
|
103
|
-
|
|
104
|
-
// Shape
|
|
105
|
-
"border-0",
|
|
106
|
-
"rounded-full",
|
|
107
|
-
|
|
108
|
-
// Colors
|
|
109
|
-
"text-surface-500",
|
|
110
|
-
"bg-transparent",
|
|
111
|
-
|
|
112
|
-
// Transitions
|
|
113
|
-
"transition duration-200 ease-in-out",
|
|
114
|
-
|
|
115
|
-
// States
|
|
116
|
-
"hover:text-surface-700 dark:hover:text-white/80",
|
|
117
|
-
"hover:bg-surface-100 dark:hover:bg-surface-800/80",
|
|
118
|
-
"focus:outline-none focus:outline-offset-0 focus:ring focus:ring-inset",
|
|
119
|
-
"focus:ring-primary-400/50 dark:focus:ring-primary-300/50",
|
|
120
|
-
|
|
121
|
-
// Misc
|
|
122
|
-
"overflow-hidden",
|
|
123
|
-
],
|
|
124
|
-
},
|
|
125
|
-
closeButtonIcon: {
|
|
126
|
-
class: [
|
|
127
|
-
// Display
|
|
128
|
-
"inline-block",
|
|
129
|
-
|
|
130
|
-
// Size
|
|
131
|
-
"w-4",
|
|
132
|
-
"h-4",
|
|
133
|
-
],
|
|
134
|
-
},
|
|
135
|
-
maximizableicon: {
|
|
136
|
-
class: [
|
|
137
|
-
// Display
|
|
138
|
-
"inline-block",
|
|
139
|
-
|
|
140
|
-
// Size
|
|
141
|
-
"w-4",
|
|
142
|
-
"h-4",
|
|
143
|
-
],
|
|
144
|
-
},
|
|
145
|
-
content: ({ state, instance }) => ({
|
|
146
|
-
class: [
|
|
147
|
-
// Spacing
|
|
148
|
-
"px-6",
|
|
149
|
-
"pb-8",
|
|
150
|
-
"pt-0",
|
|
151
|
-
|
|
152
|
-
// Shape
|
|
153
|
-
{
|
|
154
|
-
grow: state.maximized,
|
|
155
|
-
"rounded-bl-lg": !instance.$slots.footer,
|
|
156
|
-
"rounded-br-lg": !instance.$slots.footer,
|
|
157
|
-
},
|
|
158
|
-
|
|
159
|
-
// Colors
|
|
160
|
-
"bg-surface-0 dark:bg-surface-800",
|
|
161
|
-
"text-surface-700 dark:text-surface-0/80",
|
|
162
|
-
|
|
163
|
-
// Misc
|
|
164
|
-
"overflow-y-auto",
|
|
165
|
-
],
|
|
166
|
-
}),
|
|
167
|
-
footer: {
|
|
168
|
-
class: [
|
|
169
|
-
// Flexbox and Alignment
|
|
170
|
-
"flex items-center justify-end",
|
|
171
|
-
"shrink-0",
|
|
172
|
-
"text-right",
|
|
173
|
-
"gap-2",
|
|
174
|
-
|
|
175
|
-
// Spacing
|
|
176
|
-
"px-6",
|
|
177
|
-
"pb-6",
|
|
178
|
-
|
|
179
|
-
// Shape
|
|
180
|
-
"border-t-0",
|
|
181
|
-
"rounded-b-lg",
|
|
182
|
-
|
|
183
|
-
// Colors
|
|
184
|
-
"bg-surface-0 dark:bg-surface-800",
|
|
185
|
-
"text-surface-700 dark:text-surface-0/80",
|
|
186
|
-
],
|
|
187
|
-
},
|
|
188
|
-
mask: ({ props }) => ({
|
|
189
|
-
class: [
|
|
190
|
-
// Transitions
|
|
191
|
-
"transition-all",
|
|
192
|
-
"duration-300",
|
|
193
|
-
{ "p-5": !props.position == "full" },
|
|
194
|
-
|
|
195
|
-
// Background and Effects
|
|
196
|
-
{
|
|
197
|
-
"has-[.mask-active]:bg-transparent bg-black/40": props.modal,
|
|
198
|
-
"has-[.mask-active]:backdrop-blur-none backdrop-blur-sm": props.modal,
|
|
199
|
-
},
|
|
200
|
-
],
|
|
201
|
-
}),
|
|
202
|
-
transition: ({ props }) => {
|
|
203
|
-
return props.position === "top"
|
|
204
|
-
? {
|
|
205
|
-
enterFromClass:
|
|
206
|
-
"opacity-0 scale-75 translate-x-0 -translate-y-full translate-z-0 mask-active",
|
|
207
|
-
enterActiveClass: "transition-all duration-200 ease-out",
|
|
208
|
-
leaveActiveClass: "transition-all duration-200 ease-out",
|
|
209
|
-
leaveToClass:
|
|
210
|
-
"opacity-0 scale-75 translate-x-0 -translate-y-full translate-z-0 mask-active",
|
|
211
|
-
}
|
|
212
|
-
: props.position === "bottom"
|
|
213
|
-
? {
|
|
214
|
-
enterFromClass: "opacity-0 scale-75 translate-y-full mask-active",
|
|
215
|
-
enterActiveClass: "transition-all duration-200 ease-out",
|
|
216
|
-
leaveActiveClass: "transition-all duration-200 ease-out",
|
|
217
|
-
leaveToClass:
|
|
218
|
-
"opacity-0 scale-75 translate-x-0 translate-y-full translate-z-0 mask-active",
|
|
219
|
-
}
|
|
220
|
-
: props.position === "left" ||
|
|
221
|
-
props.position === "topleft" ||
|
|
222
|
-
props.position === "bottomleft"
|
|
223
|
-
? {
|
|
224
|
-
enterFromClass:
|
|
225
|
-
"opacity-0 scale-75 -translate-x-full translate-y-0 translate-z-0 mask-active",
|
|
226
|
-
enterActiveClass: "transition-all duration-200 ease-out",
|
|
227
|
-
leaveActiveClass: "transition-all duration-200 ease-out",
|
|
228
|
-
leaveToClass:
|
|
229
|
-
"opacity-0 scale-75 -translate-x-full translate-y-0 translate-z-0 mask-active",
|
|
230
|
-
}
|
|
231
|
-
: props.position === "right" ||
|
|
232
|
-
props.position === "topright" ||
|
|
233
|
-
props.position === "bottomright"
|
|
234
|
-
? {
|
|
235
|
-
enterFromClass:
|
|
236
|
-
"opacity-0 scale-75 translate-x-full translate-y-0 translate-z-0 mask-active",
|
|
237
|
-
enterActiveClass: "transition-all duration-200 ease-out",
|
|
238
|
-
leaveActiveClass: "transition-all duration-200 ease-out",
|
|
239
|
-
leaveToClass:
|
|
240
|
-
"opacity-0 scale-75 translate-x-full translate-y-0 translate-z-0 mask-active",
|
|
241
|
-
}
|
|
242
|
-
: {
|
|
243
|
-
enterFromClass: "opacity-0 scale-75 mask-active",
|
|
244
|
-
enterActiveClass: "transition-all duration-200 ease-out",
|
|
245
|
-
leaveActiveClass: "transition-all duration-200 ease-out",
|
|
246
|
-
leaveToClass: "opacity-0 scale-75 mask-active",
|
|
247
|
-
};
|
|
248
|
-
},
|
|
249
|
-
};
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
root: ({ props }) => ({
|
|
3
|
-
class: [
|
|
4
|
-
// Flex and Position
|
|
5
|
-
"flex relative",
|
|
6
|
-
{ "justify-center": props.layout == "vertical" },
|
|
7
|
-
{ "items-center": props.layout == "vertical" },
|
|
8
|
-
{
|
|
9
|
-
"justify-start": props?.align == "left" && props.layout == "horizontal",
|
|
10
|
-
"justify-center":
|
|
11
|
-
props?.align == "center" && props.layout == "horizontal",
|
|
12
|
-
"justify-end": props?.align == "right" && props.layout == "horizontal",
|
|
13
|
-
"items-center": props?.align == "top" && props.layout == "vertical",
|
|
14
|
-
"items-start": props?.align == "center" && props.layout == "vertical",
|
|
15
|
-
"items-end": props?.align == "bottom" && props.layout == "vertical",
|
|
16
|
-
},
|
|
17
|
-
|
|
18
|
-
// Spacing
|
|
19
|
-
{
|
|
20
|
-
"my-5 mx-0 py-0 px-5": props.layout == "horizontal",
|
|
21
|
-
"mx-4 md:mx-5 py-5": props.layout == "vertical",
|
|
22
|
-
},
|
|
23
|
-
|
|
24
|
-
// Size
|
|
25
|
-
{
|
|
26
|
-
"w-full": props.layout == "horizontal",
|
|
27
|
-
"min-h-full": props.layout == "vertical",
|
|
28
|
-
},
|
|
29
|
-
|
|
30
|
-
// Before: Line
|
|
31
|
-
"before:block",
|
|
32
|
-
|
|
33
|
-
// Position
|
|
34
|
-
{
|
|
35
|
-
"before:absolute before:left-0 before:top-1/2":
|
|
36
|
-
props.layout == "horizontal",
|
|
37
|
-
"before:absolute before:left-1/2 before:top-0 before:transform before:-translate-x-1/2":
|
|
38
|
-
props.layout == "vertical",
|
|
39
|
-
},
|
|
40
|
-
|
|
41
|
-
// Size
|
|
42
|
-
{
|
|
43
|
-
"before:w-full": props.layout == "horizontal",
|
|
44
|
-
"before:min-h-full": props.layout == "vertical",
|
|
45
|
-
},
|
|
46
|
-
|
|
47
|
-
// Shape
|
|
48
|
-
{
|
|
49
|
-
"before:border-solid": props.type == "solid",
|
|
50
|
-
"before:border-dotted": props.type == "dotted",
|
|
51
|
-
"before:border-dashed": props.type == "dashed",
|
|
52
|
-
},
|
|
53
|
-
|
|
54
|
-
// Color
|
|
55
|
-
{
|
|
56
|
-
"before:border-t before:border-surface-200 before:dark:border-surface-600":
|
|
57
|
-
props.layout == "horizontal",
|
|
58
|
-
"before:border-l before:border-surface-200 before:dark:border-surface-600":
|
|
59
|
-
props.layout == "vertical",
|
|
60
|
-
},
|
|
61
|
-
],
|
|
62
|
-
}),
|
|
63
|
-
content: {
|
|
64
|
-
class: [
|
|
65
|
-
// Space and Position
|
|
66
|
-
"px-1 z-10",
|
|
67
|
-
|
|
68
|
-
// Color
|
|
69
|
-
"bg-surface-0 dark:bg-surface-800",
|
|
70
|
-
],
|
|
71
|
-
},
|
|
72
|
-
};
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
root: ({ props }) => ({
|
|
3
|
-
class: [
|
|
4
|
-
// Positioning
|
|
5
|
-
"absolute z-1",
|
|
6
|
-
{
|
|
7
|
-
"left-0 bottom-0 w-full": props.position == "bottom",
|
|
8
|
-
"left-0 top-0 w-full": props.position == "top",
|
|
9
|
-
"left-0 top-0 h-full": props.position == "left",
|
|
10
|
-
"right-0 top-0 h-full": props.position == "right",
|
|
11
|
-
},
|
|
12
|
-
|
|
13
|
-
// Flexbox & Alignment
|
|
14
|
-
"flex justify-center items-center",
|
|
15
|
-
|
|
16
|
-
// Interactivity
|
|
17
|
-
"pointer-events-none",
|
|
18
|
-
],
|
|
19
|
-
}),
|
|
20
|
-
container: {
|
|
21
|
-
class: [
|
|
22
|
-
// Flexbox
|
|
23
|
-
"flex",
|
|
24
|
-
|
|
25
|
-
// Shape & Border
|
|
26
|
-
"rounded-md",
|
|
27
|
-
|
|
28
|
-
// Color
|
|
29
|
-
"bg-surface-0/10 dark:bg-surface-900/20 border border-surface-0/20",
|
|
30
|
-
"backdrop-blur-sm",
|
|
31
|
-
|
|
32
|
-
// Spacing
|
|
33
|
-
"p-2",
|
|
34
|
-
|
|
35
|
-
// Misc
|
|
36
|
-
"pointer-events-auto",
|
|
37
|
-
],
|
|
38
|
-
},
|
|
39
|
-
menu: ({ props }) => ({
|
|
40
|
-
class: [
|
|
41
|
-
// Flexbox & Alignment
|
|
42
|
-
"flex items-center justify-center",
|
|
43
|
-
{
|
|
44
|
-
"flex-col": props.position == "left" || props.position == "right",
|
|
45
|
-
},
|
|
46
|
-
|
|
47
|
-
// List Style
|
|
48
|
-
"m-0 p-0 list-none",
|
|
49
|
-
|
|
50
|
-
// Shape
|
|
51
|
-
"outline-none",
|
|
52
|
-
],
|
|
53
|
-
}),
|
|
54
|
-
menuitem: ({ props, context, instance }) => ({
|
|
55
|
-
class: [
|
|
56
|
-
// Spacing & Shape
|
|
57
|
-
"p-2 rounded-md",
|
|
58
|
-
|
|
59
|
-
// Conditional Scaling
|
|
60
|
-
{
|
|
61
|
-
"hover:scale-150": instance.currentIndex === context.index,
|
|
62
|
-
"scale-125":
|
|
63
|
-
instance.currentIndex - 1 === context.index ||
|
|
64
|
-
instance.currentIndex + 1 === context.index,
|
|
65
|
-
"scale-110":
|
|
66
|
-
instance.currentIndex - 2 === context.index ||
|
|
67
|
-
instance.currentIndex + 2 === context.index,
|
|
68
|
-
},
|
|
69
|
-
|
|
70
|
-
// Positioning & Hover States
|
|
71
|
-
{
|
|
72
|
-
"origin-bottom hover:mx-6": props.position == "bottom",
|
|
73
|
-
"origin-top hover:mx-6": props.position == "top",
|
|
74
|
-
"origin-left hover:my-6": props.position == "left",
|
|
75
|
-
"origin-right hover:my-6": props.position == "right",
|
|
76
|
-
},
|
|
77
|
-
|
|
78
|
-
// Transitions & Transform
|
|
79
|
-
"transition-all duration-200 ease-cubic-bezier-will-change-transform transform",
|
|
80
|
-
],
|
|
81
|
-
}),
|
|
82
|
-
action: {
|
|
83
|
-
class: [
|
|
84
|
-
// Flexbox & Alignment
|
|
85
|
-
"flex flex-col items-center justify-center",
|
|
86
|
-
|
|
87
|
-
// Position
|
|
88
|
-
"relative",
|
|
89
|
-
|
|
90
|
-
// Size
|
|
91
|
-
"w-16 h-16",
|
|
92
|
-
|
|
93
|
-
// Misc
|
|
94
|
-
"cursor-default overflow-hidden",
|
|
95
|
-
],
|
|
96
|
-
},
|
|
97
|
-
};
|