@fy-/fws-vue 0.3.0 → 0.3.1
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/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,505 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
root: ({ props }) => ({
|
|
3
|
-
class: [
|
|
4
|
-
"relative",
|
|
5
|
-
{
|
|
6
|
-
"flex flex-col h-full": props.scrollHeight === "flex",
|
|
7
|
-
},
|
|
8
|
-
|
|
9
|
-
// Shape
|
|
10
|
-
"border-spacing-0 border-separate",
|
|
11
|
-
],
|
|
12
|
-
}),
|
|
13
|
-
loadingoverlay: {
|
|
14
|
-
class: [
|
|
15
|
-
// Position
|
|
16
|
-
"absolute",
|
|
17
|
-
"top-0 left-0",
|
|
18
|
-
"z-20",
|
|
19
|
-
|
|
20
|
-
// Flex & Alignment
|
|
21
|
-
"flex items-center justify-center",
|
|
22
|
-
|
|
23
|
-
// Size
|
|
24
|
-
"w-full h-full",
|
|
25
|
-
|
|
26
|
-
// Color
|
|
27
|
-
"bg-surface-100/40 dark:bg-surface-800/40",
|
|
28
|
-
|
|
29
|
-
// Transition
|
|
30
|
-
"transition duration-200",
|
|
31
|
-
],
|
|
32
|
-
},
|
|
33
|
-
loadingicon: {
|
|
34
|
-
class: "w-8 h-8 animate-spin",
|
|
35
|
-
},
|
|
36
|
-
wrapper: ({ props }) => ({
|
|
37
|
-
class: [
|
|
38
|
-
// Overflow
|
|
39
|
-
{
|
|
40
|
-
"relative overflow-auto": props.scrollable,
|
|
41
|
-
"overflow-x-auto": props.resizableColumns,
|
|
42
|
-
},
|
|
43
|
-
],
|
|
44
|
-
}),
|
|
45
|
-
header: ({ props }) => ({
|
|
46
|
-
class: [
|
|
47
|
-
"font-semibold",
|
|
48
|
-
|
|
49
|
-
// Shape
|
|
50
|
-
props.showGridlines ? "border-b" : "border-b border-x-0",
|
|
51
|
-
|
|
52
|
-
// Spacing
|
|
53
|
-
"py-3.5 px-3",
|
|
54
|
-
|
|
55
|
-
// Color
|
|
56
|
-
"bg-surface-0 dark:bg-surface-800",
|
|
57
|
-
"border-surface-300 dark:border-surface-600",
|
|
58
|
-
"text-surface-700 dark:text-white/80",
|
|
59
|
-
],
|
|
60
|
-
}),
|
|
61
|
-
footer: {
|
|
62
|
-
class: [
|
|
63
|
-
"font-semibold",
|
|
64
|
-
|
|
65
|
-
// Shape
|
|
66
|
-
"border-t-0 border-t border-x-0",
|
|
67
|
-
|
|
68
|
-
// Spacing
|
|
69
|
-
"p-4",
|
|
70
|
-
|
|
71
|
-
// Color
|
|
72
|
-
"bg-surface-0 dark:bg-surface-800",
|
|
73
|
-
"border-surface-200 dark:border-surface-700",
|
|
74
|
-
"text-surface-700 dark:text-white/80",
|
|
75
|
-
],
|
|
76
|
-
},
|
|
77
|
-
table: {
|
|
78
|
-
class: [
|
|
79
|
-
// Table & Width
|
|
80
|
-
"border-collapse table-fixed w-full ",
|
|
81
|
-
],
|
|
82
|
-
},
|
|
83
|
-
thead: ({ props }) => ({
|
|
84
|
-
class: [
|
|
85
|
-
// Position & Z-index
|
|
86
|
-
{
|
|
87
|
-
"top-0 z-40 sticky": props.scrollable,
|
|
88
|
-
},
|
|
89
|
-
],
|
|
90
|
-
}),
|
|
91
|
-
tbody: ({ props }) => ({
|
|
92
|
-
class: [
|
|
93
|
-
{
|
|
94
|
-
block: props.scrollable,
|
|
95
|
-
},
|
|
96
|
-
],
|
|
97
|
-
}),
|
|
98
|
-
tfoot: ({ props }) => ({
|
|
99
|
-
class: [
|
|
100
|
-
// Block Display
|
|
101
|
-
{
|
|
102
|
-
block: props.scrollable,
|
|
103
|
-
},
|
|
104
|
-
],
|
|
105
|
-
}),
|
|
106
|
-
headerrow: ({ props }) => ({
|
|
107
|
-
class: [
|
|
108
|
-
// Flexbox & Width
|
|
109
|
-
{
|
|
110
|
-
"flex flex-nowrap w-full": props.scrollable,
|
|
111
|
-
},
|
|
112
|
-
],
|
|
113
|
-
}),
|
|
114
|
-
row: ({ context, props }) => ({
|
|
115
|
-
class: [
|
|
116
|
-
// Flex
|
|
117
|
-
{ "flex flex-nowrap w-full": context.scrollable },
|
|
118
|
-
|
|
119
|
-
// Color
|
|
120
|
-
"dark:text-white/80",
|
|
121
|
-
{ "bg-surface-50 dark:bg-surface-500/30": context.selected },
|
|
122
|
-
{
|
|
123
|
-
"bg-surface-0 text-surface-600 dark:bg-surface-800": !context.selected,
|
|
124
|
-
},
|
|
125
|
-
|
|
126
|
-
// Hover & Flexbox
|
|
127
|
-
{
|
|
128
|
-
"hover:bg-surface-300/20 hover:text-surface-600":
|
|
129
|
-
context.selectable && !context.selected,
|
|
130
|
-
},
|
|
131
|
-
"focus:outline-none focus:outline-offset-0 focus:ring-2 focus:ring-primary-500 ring-inset dark:focus:ring-primary-400",
|
|
132
|
-
|
|
133
|
-
// Transition
|
|
134
|
-
{
|
|
135
|
-
"transition duration-200":
|
|
136
|
-
(props.selectionMode && !context.selected) || props.rowHover,
|
|
137
|
-
},
|
|
138
|
-
],
|
|
139
|
-
}),
|
|
140
|
-
headercell: ({ context, props }) => ({
|
|
141
|
-
class: [
|
|
142
|
-
"font-semibold",
|
|
143
|
-
"text-sm",
|
|
144
|
-
|
|
145
|
-
// Position
|
|
146
|
-
{
|
|
147
|
-
"sticky z-40":
|
|
148
|
-
context.scrollable &&
|
|
149
|
-
context.scrollDirection === "both" &&
|
|
150
|
-
context.frozen,
|
|
151
|
-
},
|
|
152
|
-
|
|
153
|
-
// Flex & Alignment
|
|
154
|
-
{
|
|
155
|
-
"flex flex-1 items-center": context.scrollable,
|
|
156
|
-
"flex-initial shrink-0":
|
|
157
|
-
context.scrollable &&
|
|
158
|
-
context.scrollDirection === "both" &&
|
|
159
|
-
!context.frozen,
|
|
160
|
-
},
|
|
161
|
-
"text-left",
|
|
162
|
-
|
|
163
|
-
// Shape
|
|
164
|
-
{ "border-r last:border-r-0": context?.showGridlines },
|
|
165
|
-
"border-0 border-b border-solid",
|
|
166
|
-
|
|
167
|
-
// Spacing
|
|
168
|
-
context?.size === "small"
|
|
169
|
-
? "py-2.5 px-2"
|
|
170
|
-
: context?.size === "large"
|
|
171
|
-
? "py-5 px-4"
|
|
172
|
-
: "py-3.5 px-3",
|
|
173
|
-
|
|
174
|
-
// Color
|
|
175
|
-
(props.sortable === "" || props.sortable) && context.sorted
|
|
176
|
-
? "text-primary-500"
|
|
177
|
-
: "bg-surface-0 text-surface-700",
|
|
178
|
-
(props.sortable === "" || props.sortable) && context.sorted
|
|
179
|
-
? "dark:text-primary-400"
|
|
180
|
-
: "dark:text-white/80 dark:bg-surface-800",
|
|
181
|
-
"border-surface-200 dark:border-surface-700 ",
|
|
182
|
-
|
|
183
|
-
// States
|
|
184
|
-
"focus-visible:outline-none focus-visible:outline-offset-0 focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400",
|
|
185
|
-
|
|
186
|
-
// Transition
|
|
187
|
-
{ "transition duration-200": props.sortable === "" || props.sortable },
|
|
188
|
-
|
|
189
|
-
// Misc
|
|
190
|
-
{
|
|
191
|
-
"overflow-hidden relative bg-clip-padding":
|
|
192
|
-
context.resizable && !context.frozen,
|
|
193
|
-
},
|
|
194
|
-
],
|
|
195
|
-
}),
|
|
196
|
-
column: {
|
|
197
|
-
headercell: ({ context, props }) => ({
|
|
198
|
-
class: [
|
|
199
|
-
"font-semibold",
|
|
200
|
-
"text-sm",
|
|
201
|
-
|
|
202
|
-
// Position
|
|
203
|
-
{
|
|
204
|
-
"sticky z-40":
|
|
205
|
-
context.scrollable &&
|
|
206
|
-
context.scrollDirection === "both" &&
|
|
207
|
-
context.frozen,
|
|
208
|
-
},
|
|
209
|
-
|
|
210
|
-
// Flex & Alignment
|
|
211
|
-
{
|
|
212
|
-
"flex flex-1 items-center": context.scrollable,
|
|
213
|
-
"flex-initial shrink-0":
|
|
214
|
-
context.scrollable &&
|
|
215
|
-
context.scrollDirection === "both" &&
|
|
216
|
-
!context.frozen,
|
|
217
|
-
},
|
|
218
|
-
"text-left",
|
|
219
|
-
|
|
220
|
-
// Shape
|
|
221
|
-
{ "border-r last:border-r-0": context?.showGridlines },
|
|
222
|
-
"border-0 border-b border-solid",
|
|
223
|
-
|
|
224
|
-
// Spacing
|
|
225
|
-
context?.size === "small"
|
|
226
|
-
? "py-2.5 px-2"
|
|
227
|
-
: context?.size === "large"
|
|
228
|
-
? "py-5 px-4"
|
|
229
|
-
: "py-3.5 px-3",
|
|
230
|
-
|
|
231
|
-
// Color
|
|
232
|
-
(props.sortable === "" || props.sortable) && context.sorted
|
|
233
|
-
? "text-primary-500"
|
|
234
|
-
: "bg-surface-0 text-surface-700",
|
|
235
|
-
(props.sortable === "" || props.sortable) && context.sorted
|
|
236
|
-
? "dark:text-primary-400"
|
|
237
|
-
: "dark:text-white/80 dark:bg-surface-800",
|
|
238
|
-
"border-surface-200 dark:border-surface-700 ",
|
|
239
|
-
|
|
240
|
-
// States
|
|
241
|
-
"focus-visible:outline-none focus-visible:outline-offset-0 focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400",
|
|
242
|
-
|
|
243
|
-
// Transition
|
|
244
|
-
{ "transition duration-200": props.sortable === "" || props.sortable },
|
|
245
|
-
|
|
246
|
-
// Misc
|
|
247
|
-
{
|
|
248
|
-
"overflow-hidden relative bg-clip-padding":
|
|
249
|
-
context.resizable && !context.frozen,
|
|
250
|
-
},
|
|
251
|
-
],
|
|
252
|
-
}),
|
|
253
|
-
bodycell: ({ context }) => ({
|
|
254
|
-
class: [
|
|
255
|
-
// Position
|
|
256
|
-
{
|
|
257
|
-
sticky:
|
|
258
|
-
context.scrollable &&
|
|
259
|
-
context.scrollDirection === "both" &&
|
|
260
|
-
context.frozen,
|
|
261
|
-
},
|
|
262
|
-
|
|
263
|
-
// Font
|
|
264
|
-
"text-sm",
|
|
265
|
-
|
|
266
|
-
// Flex & Alignment
|
|
267
|
-
{
|
|
268
|
-
"flex flex-1 items-center": context.scrollable,
|
|
269
|
-
"flex-initial shrink-0":
|
|
270
|
-
context.scrollable &&
|
|
271
|
-
context.scrollDirection === "both" &&
|
|
272
|
-
!context.frozen,
|
|
273
|
-
},
|
|
274
|
-
"text-left",
|
|
275
|
-
|
|
276
|
-
// Shape
|
|
277
|
-
"border-0 border-b border-solid",
|
|
278
|
-
{ "last:border-r-0 border-r border-b": context?.showGridlines },
|
|
279
|
-
|
|
280
|
-
// Color
|
|
281
|
-
"border-surface-200 dark:border-surface-700",
|
|
282
|
-
{ "bg-surface-0 dark:bg-surface-800": !context.selected },
|
|
283
|
-
|
|
284
|
-
// Spacing
|
|
285
|
-
context?.size === "small"
|
|
286
|
-
? "py-2.5 px-2"
|
|
287
|
-
: context?.size === "large"
|
|
288
|
-
? "py-5 px-4"
|
|
289
|
-
: "py-3.5 px-3",
|
|
290
|
-
|
|
291
|
-
// Misc
|
|
292
|
-
"space-nowrap",
|
|
293
|
-
{
|
|
294
|
-
"cursor-pointer": context.selectable,
|
|
295
|
-
},
|
|
296
|
-
],
|
|
297
|
-
}),
|
|
298
|
-
rowtoggler: {
|
|
299
|
-
class: [
|
|
300
|
-
"relative",
|
|
301
|
-
|
|
302
|
-
// Flex & Alignment
|
|
303
|
-
"inline-flex items-center justify-center",
|
|
304
|
-
"text-left align-middle",
|
|
305
|
-
|
|
306
|
-
// Spacing
|
|
307
|
-
"m-0 mr-2 p-0",
|
|
308
|
-
|
|
309
|
-
// Size
|
|
310
|
-
"w-8 h-8",
|
|
311
|
-
|
|
312
|
-
// Shape
|
|
313
|
-
"border-0 rounded-full",
|
|
314
|
-
|
|
315
|
-
// Color
|
|
316
|
-
"text-surface-500 dark:text-white/70",
|
|
317
|
-
"bg-transparent",
|
|
318
|
-
|
|
319
|
-
// States
|
|
320
|
-
"hover:bg-surface-50 dark:hover:bg-surface-700",
|
|
321
|
-
"focus-visible:outline-none focus-visible:outline-offset-0",
|
|
322
|
-
"focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400",
|
|
323
|
-
|
|
324
|
-
// Transition
|
|
325
|
-
"transition duration-200",
|
|
326
|
-
|
|
327
|
-
// Misc
|
|
328
|
-
"overflow-hidden",
|
|
329
|
-
"cursor-pointer select-none",
|
|
330
|
-
],
|
|
331
|
-
},
|
|
332
|
-
sorticon: ({ context }) => ({
|
|
333
|
-
class: [
|
|
334
|
-
"ml-2 inline-block",
|
|
335
|
-
context.sorted
|
|
336
|
-
? "fill-primary-700 dark:fill-white/80"
|
|
337
|
-
: "fill-surface-700 dark:fill-white/70",
|
|
338
|
-
],
|
|
339
|
-
}),
|
|
340
|
-
sortbadge: {
|
|
341
|
-
class: [
|
|
342
|
-
// Flex & Alignment
|
|
343
|
-
"inline-flex items-center justify-center align-middle",
|
|
344
|
-
|
|
345
|
-
// Shape
|
|
346
|
-
"rounded-full",
|
|
347
|
-
|
|
348
|
-
// Size
|
|
349
|
-
"w-[1.143rem] leading-[1.143rem]",
|
|
350
|
-
|
|
351
|
-
// Spacing
|
|
352
|
-
"ml-2",
|
|
353
|
-
|
|
354
|
-
// Color
|
|
355
|
-
"text-primary-700 dark:text-white",
|
|
356
|
-
"bg-primary-50 dark:bg-primary-400/30",
|
|
357
|
-
],
|
|
358
|
-
},
|
|
359
|
-
columnresizer: {
|
|
360
|
-
class: [
|
|
361
|
-
"block",
|
|
362
|
-
|
|
363
|
-
// Position
|
|
364
|
-
"absolute top-0 right-0",
|
|
365
|
-
|
|
366
|
-
// Sizing
|
|
367
|
-
"w-2 h-full",
|
|
368
|
-
|
|
369
|
-
// Spacing
|
|
370
|
-
"m-0 p-0",
|
|
371
|
-
|
|
372
|
-
// Color
|
|
373
|
-
"border border-transparent",
|
|
374
|
-
|
|
375
|
-
// Misc
|
|
376
|
-
"cursor-col-resize",
|
|
377
|
-
],
|
|
378
|
-
},
|
|
379
|
-
rowCheckbox: ({ props, context, instance }) => ({
|
|
380
|
-
root: {
|
|
381
|
-
class: [
|
|
382
|
-
"relative",
|
|
383
|
-
|
|
384
|
-
// Alignment
|
|
385
|
-
"inline-flex",
|
|
386
|
-
"align-middle",
|
|
387
|
-
|
|
388
|
-
// Size
|
|
389
|
-
"w-4",
|
|
390
|
-
"h-4",
|
|
391
|
-
|
|
392
|
-
// Spacing
|
|
393
|
-
"mr-2",
|
|
394
|
-
|
|
395
|
-
// Misc
|
|
396
|
-
"cursor-default",
|
|
397
|
-
"select-none",
|
|
398
|
-
],
|
|
399
|
-
},
|
|
400
|
-
box: {
|
|
401
|
-
class: [
|
|
402
|
-
// Alignment
|
|
403
|
-
"flex",
|
|
404
|
-
"items-center",
|
|
405
|
-
"justify-center",
|
|
406
|
-
|
|
407
|
-
// Size
|
|
408
|
-
"w-4",
|
|
409
|
-
"h-4",
|
|
410
|
-
|
|
411
|
-
// Shape
|
|
412
|
-
"rounded",
|
|
413
|
-
"border",
|
|
414
|
-
|
|
415
|
-
// Colors
|
|
416
|
-
"text-surface-600",
|
|
417
|
-
{
|
|
418
|
-
"border-surface-300 bg-surface-0 dark:border-surface-700 dark:bg-surface-900":
|
|
419
|
-
!context.checked,
|
|
420
|
-
"border-primary-500 bg-primary-500 dark:border-primary-400 dark:bg-primary-400":
|
|
421
|
-
context.checked,
|
|
422
|
-
},
|
|
423
|
-
|
|
424
|
-
{
|
|
425
|
-
"ring-2 ring-primary-500 dark:ring-primary-400":
|
|
426
|
-
!props.disabled && context.focused,
|
|
427
|
-
"cursor-default opacity-60": props.disabled,
|
|
428
|
-
},
|
|
429
|
-
|
|
430
|
-
// States
|
|
431
|
-
{
|
|
432
|
-
"peer-focus-visible:ring-2 peer-focus-visible:ring-primary-500 dark:peer-focus-visible:ring-primary-400":
|
|
433
|
-
!props.disabled,
|
|
434
|
-
"cursor-default opacity-60": props.disabled,
|
|
435
|
-
},
|
|
436
|
-
|
|
437
|
-
// Transitions
|
|
438
|
-
"transition-colors",
|
|
439
|
-
"duration-200",
|
|
440
|
-
],
|
|
441
|
-
},
|
|
442
|
-
input: {
|
|
443
|
-
class: [
|
|
444
|
-
"peer",
|
|
445
|
-
|
|
446
|
-
// Size
|
|
447
|
-
"w-full ",
|
|
448
|
-
"h-full",
|
|
449
|
-
|
|
450
|
-
// Position
|
|
451
|
-
"absolute",
|
|
452
|
-
"top-0 left-0",
|
|
453
|
-
"z-10",
|
|
454
|
-
|
|
455
|
-
// Spacing
|
|
456
|
-
"p-0",
|
|
457
|
-
"m-0",
|
|
458
|
-
|
|
459
|
-
// Shape
|
|
460
|
-
"rounded",
|
|
461
|
-
"border",
|
|
462
|
-
|
|
463
|
-
// Shape
|
|
464
|
-
"opacity-0",
|
|
465
|
-
"rounded-md",
|
|
466
|
-
"outline-none",
|
|
467
|
-
"border-2 border-surface-300 dark:border-surface-700",
|
|
468
|
-
|
|
469
|
-
// Misc
|
|
470
|
-
"appearance-none",
|
|
471
|
-
],
|
|
472
|
-
},
|
|
473
|
-
icon: {
|
|
474
|
-
class: [
|
|
475
|
-
// Font
|
|
476
|
-
"text-normal",
|
|
477
|
-
|
|
478
|
-
// Size
|
|
479
|
-
"w-3",
|
|
480
|
-
"h-3",
|
|
481
|
-
|
|
482
|
-
// Colors
|
|
483
|
-
{
|
|
484
|
-
"text-white dark:text-surface-900": !instance.partialChecked,
|
|
485
|
-
"text-gray dark:text-white": instance.partialChecked,
|
|
486
|
-
},
|
|
487
|
-
|
|
488
|
-
// Transitions
|
|
489
|
-
"transition-all",
|
|
490
|
-
"duration-200",
|
|
491
|
-
],
|
|
492
|
-
},
|
|
493
|
-
}),
|
|
494
|
-
transition: {
|
|
495
|
-
enterFromClass: "opacity-0 scale-y-[0.8]",
|
|
496
|
-
enterActiveClass:
|
|
497
|
-
"transition-[transform,opacity] duration-[120ms] ease-[cubic-bezier(0,0,0.2,1)]",
|
|
498
|
-
leaveActiveClass: "transition-opacity duration-100 ease-linear",
|
|
499
|
-
leaveToClass: "opacity-0",
|
|
500
|
-
},
|
|
501
|
-
},
|
|
502
|
-
resizehelper: {
|
|
503
|
-
class: "absolute hidden w-[2px] z-20 bg-primary-500 dark:bg-primary-400",
|
|
504
|
-
},
|
|
505
|
-
};
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
root: {
|
|
3
|
-
class: [
|
|
4
|
-
"cursor-pointer inline-flex relative select-none align-bottom",
|
|
5
|
-
"w-4 h-4",
|
|
6
|
-
],
|
|
7
|
-
},
|
|
8
|
-
box: ({ props, context }) => ({
|
|
9
|
-
class: [
|
|
10
|
-
// Alignment
|
|
11
|
-
"flex",
|
|
12
|
-
"items-center",
|
|
13
|
-
"justify-center",
|
|
14
|
-
|
|
15
|
-
// Size
|
|
16
|
-
"w-4",
|
|
17
|
-
"h-4",
|
|
18
|
-
|
|
19
|
-
// Shape
|
|
20
|
-
"rounded",
|
|
21
|
-
"border",
|
|
22
|
-
|
|
23
|
-
// Colors
|
|
24
|
-
"text-surface-600",
|
|
25
|
-
{
|
|
26
|
-
"border-surface-300 bg-surface-0 dark:border-surface-700 dark:bg-surface-900":
|
|
27
|
-
!context.active && !props.invalid,
|
|
28
|
-
"border-primary-500 bg-primary-500 dark:border-primary-400 dark:bg-primary-400":
|
|
29
|
-
context.active,
|
|
30
|
-
},
|
|
31
|
-
|
|
32
|
-
{
|
|
33
|
-
"ring-2 ring-primary-500 dark:ring-primary-400":
|
|
34
|
-
!props.disabled && context.focused,
|
|
35
|
-
"cursor-default opacity-60": props.disabled,
|
|
36
|
-
},
|
|
37
|
-
|
|
38
|
-
// Invalid State
|
|
39
|
-
{ "ring-1 ring-red-500 dark:ring-red-400": props.invalid },
|
|
40
|
-
|
|
41
|
-
// States
|
|
42
|
-
{
|
|
43
|
-
"peer-focus-visible:ring-2 peer-focus-visible:ring-primary-500 dark:peer-focus-visible:ring-primary-400":
|
|
44
|
-
!props.disabled,
|
|
45
|
-
"cursor-default opacity-60": props.disabled,
|
|
46
|
-
},
|
|
47
|
-
|
|
48
|
-
// Transitions
|
|
49
|
-
"transition-colors",
|
|
50
|
-
"duration-200",
|
|
51
|
-
],
|
|
52
|
-
}),
|
|
53
|
-
input: {
|
|
54
|
-
class: [
|
|
55
|
-
"peer",
|
|
56
|
-
|
|
57
|
-
// Size
|
|
58
|
-
"w-full ",
|
|
59
|
-
"h-full",
|
|
60
|
-
|
|
61
|
-
// Position
|
|
62
|
-
"absolute",
|
|
63
|
-
"top-0 left-0",
|
|
64
|
-
"z-10",
|
|
65
|
-
|
|
66
|
-
// Spacing
|
|
67
|
-
"p-0",
|
|
68
|
-
"m-0",
|
|
69
|
-
|
|
70
|
-
// Shape
|
|
71
|
-
"rounded",
|
|
72
|
-
"border",
|
|
73
|
-
|
|
74
|
-
// Shape
|
|
75
|
-
"opacity-0",
|
|
76
|
-
"rounded-md",
|
|
77
|
-
"outline-none",
|
|
78
|
-
"border-2 border-surface-300 dark:border-surface-700",
|
|
79
|
-
|
|
80
|
-
// Misc
|
|
81
|
-
"appearance-none",
|
|
82
|
-
],
|
|
83
|
-
},
|
|
84
|
-
checkicon: {
|
|
85
|
-
class: [
|
|
86
|
-
// Font
|
|
87
|
-
"text-normal",
|
|
88
|
-
|
|
89
|
-
// Size
|
|
90
|
-
"w-3",
|
|
91
|
-
"h-3",
|
|
92
|
-
|
|
93
|
-
// Colors
|
|
94
|
-
"text-white dark:text-surface-900",
|
|
95
|
-
|
|
96
|
-
// Transitions
|
|
97
|
-
"transition-all",
|
|
98
|
-
"duration-200",
|
|
99
|
-
],
|
|
100
|
-
},
|
|
101
|
-
uncheckicon: {
|
|
102
|
-
class: [
|
|
103
|
-
// Font
|
|
104
|
-
"text-normal",
|
|
105
|
-
|
|
106
|
-
// Size
|
|
107
|
-
"w-3",
|
|
108
|
-
"h-3",
|
|
109
|
-
|
|
110
|
-
// Colors
|
|
111
|
-
"text-white dark:text-surface-900",
|
|
112
|
-
|
|
113
|
-
// Transitions
|
|
114
|
-
"transition-all",
|
|
115
|
-
"duration-200",
|
|
116
|
-
],
|
|
117
|
-
},
|
|
118
|
-
};
|