@fy-/fws-vue 0.1.2 → 0.1.4
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 +21 -0
- package/index.ts +4 -1
- package/package.json +1 -1
- package/presets/Lara/accordion/index.js +86 -0
- package/presets/Lara/autocomplete/index.js +284 -0
- package/presets/Lara/avatar/index.js +46 -0
- package/presets/Lara/badge/index.js +44 -0
- package/presets/Lara/badgedirective/index.js +49 -0
- package/presets/Lara/blockui/index.js +8 -0
- package/presets/Lara/breadcrumb/index.js +64 -0
- package/presets/Lara/button/index.js +470 -0
- package/presets/Lara/calendar/index.js +683 -0
- package/presets/Lara/card/index.js +37 -0
- package/presets/Lara/carousel/index.js +152 -0
- package/presets/Lara/cascadeselect/index.js +228 -0
- package/presets/Lara/checkbox/index.js +106 -0
- package/presets/Lara/chip/index.js +45 -0
- package/presets/Lara/chips/index.js +118 -0
- package/presets/Lara/colorpicker/index.js +129 -0
- package/presets/Lara/confirmpopup/index.js +107 -0
- package/presets/Lara/contextmenu/index.js +130 -0
- package/presets/Lara/datatable/index.js +1289 -0
- package/presets/Lara/dataview/index.js +40 -0
- package/presets/Lara/deferred/index.js +3 -0
- package/presets/Lara/dialog/index.js +249 -0
- package/presets/Lara/divider/index.js +72 -0
- package/presets/Lara/dock/index.js +97 -0
- package/presets/Lara/dropdown/index.js +300 -0
- package/presets/Lara/fieldset/index.js +98 -0
- package/presets/Lara/fileupload/index.js +173 -0
- package/presets/Lara/floatlabel/index.js +26 -0
- package/presets/Lara/galleria/index.js +351 -0
- package/presets/Lara/global.js +90 -0
- package/presets/Lara/iconfield/index.js +22 -0
- package/presets/Lara/image/index.js +206 -0
- package/presets/Lara/index.js +181 -0
- package/presets/Lara/inlinemessage/index.js +36 -0
- package/presets/Lara/inplace/index.js +27 -0
- package/presets/Lara/inputgroup/index.js +5 -0
- package/presets/Lara/inputgroupaddon/index.js +28 -0
- package/presets/Lara/inputmask/index.js +37 -0
- package/presets/Lara/inputnumber/index.js +253 -0
- package/presets/Lara/inputotp/index.js +72 -0
- package/presets/Lara/inputswitch/index.js +93 -0
- package/presets/Lara/inputtext/index.js +61 -0
- package/presets/Lara/knob/index.js +47 -0
- package/presets/Lara/listbox/index.js +170 -0
- package/presets/Lara/megamenu/index.js +207 -0
- package/presets/Lara/menu/index.js +98 -0
- package/presets/Lara/menubar/index.js +181 -0
- package/presets/Lara/message/index.js +87 -0
- package/presets/Lara/metergroup/index.js +110 -0
- package/presets/Lara/multiselect/index.js +589 -0
- package/presets/Lara/orderlist/index.js +266 -0
- package/presets/Lara/organizationchart/index.js +142 -0
- package/presets/Lara/overlaypanel/index.js +41 -0
- package/presets/Lara/paginator/index.js +590 -0
- package/presets/Lara/panel/index.js +93 -0
- package/presets/Lara/panelmenu/index.js +139 -0
- package/presets/Lara/password/index.js +140 -0
- package/presets/Lara/picklist/index.js +659 -0
- package/presets/Lara/progressbar/index.js +61 -0
- package/presets/Lara/progressspinner/index.js +51 -0
- package/presets/Lara/radiobutton/index.js +116 -0
- package/presets/Lara/rating/index.js +95 -0
- package/presets/Lara/ripple/index.js +6 -0
- package/presets/Lara/scrollpanel/index.js +77 -0
- package/presets/Lara/scrolltop/index.js +45 -0
- package/presets/Lara/selectbutton/index.js +60 -0
- package/presets/Lara/sidebar/index.js +163 -0
- package/presets/Lara/skeleton/index.js +19 -0
- package/presets/Lara/slider/index.js +149 -0
- package/presets/Lara/speeddial/index.js +535 -0
- package/presets/Lara/splitbutton/index.js +1081 -0
- package/presets/Lara/splitter/index.js +64 -0
- package/presets/Lara/stepper/index.js +183 -0
- package/presets/Lara/steps/index.js +115 -0
- package/presets/Lara/tabmenu/index.js +82 -0
- package/presets/Lara/tabview/index.js +166 -0
- package/presets/Lara/tag/index.js +37 -0
- package/presets/Lara/terminal/index.js +60 -0
- package/presets/Lara/textarea/index.js +39 -0
- package/presets/Lara/tieredmenu/index.js +125 -0
- package/presets/Lara/timeline/index.js +107 -0
- package/presets/Lara/toast/index.js +113 -0
- package/presets/Lara/togglebutton/index.js +100 -0
- package/presets/Lara/toolbar/index.js +28 -0
- package/presets/Lara/tooltip/index.js +73 -0
- package/presets/Lara/tree/index.js +281 -0
- package/presets/Lara/treeselect/index.js +387 -0
- package/presets/Lara/treetable/index.js +509 -0
- package/presets/Lara/tristatecheckbox/index.js +112 -0
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,249 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,72 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,97 @@
|
|
|
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
|
+
};
|