@fy-/fws-vue 0.1.3 → 0.1.5
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 +1 -1
- 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,152 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
root: {
|
|
3
|
+
class: [
|
|
4
|
+
// Flexbox
|
|
5
|
+
"flex flex-col",
|
|
6
|
+
],
|
|
7
|
+
},
|
|
8
|
+
content: {
|
|
9
|
+
class: [
|
|
10
|
+
// Flexbox & Overflow
|
|
11
|
+
"flex flex-col overflow-auto",
|
|
12
|
+
],
|
|
13
|
+
},
|
|
14
|
+
container: ({ props }) => ({
|
|
15
|
+
class: [
|
|
16
|
+
// Flexbox
|
|
17
|
+
"flex",
|
|
18
|
+
|
|
19
|
+
// Orientation
|
|
20
|
+
{
|
|
21
|
+
"flex-row": props.orientation !== "vertical",
|
|
22
|
+
"flex-col": props.orientation == "vertical",
|
|
23
|
+
},
|
|
24
|
+
],
|
|
25
|
+
}),
|
|
26
|
+
previousbutton: {
|
|
27
|
+
class: [
|
|
28
|
+
// Flexbox & Alignment
|
|
29
|
+
"flex justify-center items-center self-center",
|
|
30
|
+
|
|
31
|
+
// Sizing & Overflow
|
|
32
|
+
"overflow-hidden w-8 h-8",
|
|
33
|
+
|
|
34
|
+
// Spacing
|
|
35
|
+
"mx-2",
|
|
36
|
+
|
|
37
|
+
// Shape
|
|
38
|
+
"rounded-full",
|
|
39
|
+
|
|
40
|
+
// Border & Background
|
|
41
|
+
"border-0 bg-transparent",
|
|
42
|
+
|
|
43
|
+
// Color
|
|
44
|
+
"text-surface-600",
|
|
45
|
+
|
|
46
|
+
// Transitions
|
|
47
|
+
"transition duration-200 ease-in-out",
|
|
48
|
+
],
|
|
49
|
+
},
|
|
50
|
+
nextbutton: {
|
|
51
|
+
class: [
|
|
52
|
+
// Flexbox & Alignment
|
|
53
|
+
"flex justify-center items-center self-center",
|
|
54
|
+
|
|
55
|
+
// Sizing & Overflow
|
|
56
|
+
"overflow-hidden w-8 h-8",
|
|
57
|
+
|
|
58
|
+
// Spacing
|
|
59
|
+
"mx-2",
|
|
60
|
+
|
|
61
|
+
// Shape
|
|
62
|
+
"rounded-full",
|
|
63
|
+
|
|
64
|
+
// Border & Background
|
|
65
|
+
"border-0 bg-transparent",
|
|
66
|
+
|
|
67
|
+
// Color
|
|
68
|
+
"text-surface-600",
|
|
69
|
+
|
|
70
|
+
// Transitions
|
|
71
|
+
"transition duration-200 ease-in-out",
|
|
72
|
+
],
|
|
73
|
+
},
|
|
74
|
+
itemscontent: {
|
|
75
|
+
class: [
|
|
76
|
+
// Overflow & Width
|
|
77
|
+
"overflow-hidden w-full",
|
|
78
|
+
],
|
|
79
|
+
},
|
|
80
|
+
itemscontainer: ({ props }) => ({
|
|
81
|
+
class: [
|
|
82
|
+
// Flexbox
|
|
83
|
+
"flex",
|
|
84
|
+
|
|
85
|
+
// Orientation & Sizing
|
|
86
|
+
{
|
|
87
|
+
"flex-row": props.orientation !== "vertical",
|
|
88
|
+
"flex-col h-full": props.orientation == "vertical",
|
|
89
|
+
},
|
|
90
|
+
],
|
|
91
|
+
}),
|
|
92
|
+
item: ({ props }) => ({
|
|
93
|
+
class: [
|
|
94
|
+
// Flexbox
|
|
95
|
+
"flex shrink-0 grow ",
|
|
96
|
+
|
|
97
|
+
// Size
|
|
98
|
+
{
|
|
99
|
+
"w-full sm:w-[50%] md:w-[33.333333333333336%]":
|
|
100
|
+
props.orientation !== "vertical",
|
|
101
|
+
|
|
102
|
+
"w-full h-full": props.orientation == "vertical",
|
|
103
|
+
},
|
|
104
|
+
],
|
|
105
|
+
}),
|
|
106
|
+
itemcloned: ({ props }) => ({
|
|
107
|
+
class: [
|
|
108
|
+
// Flexbox
|
|
109
|
+
"flex shrink-0 grow",
|
|
110
|
+
"unvisible",
|
|
111
|
+
|
|
112
|
+
// Size
|
|
113
|
+
{
|
|
114
|
+
"w-full sm:w-[50%] md:w-[33.333333333333336%]":
|
|
115
|
+
props.orientation !== "vertical",
|
|
116
|
+
|
|
117
|
+
"w-full h-full": props.orientation == "vertical",
|
|
118
|
+
},
|
|
119
|
+
],
|
|
120
|
+
}),
|
|
121
|
+
indicators: {
|
|
122
|
+
class: [
|
|
123
|
+
// Flexbox & Alignment
|
|
124
|
+
"flex flex-row justify-center flex-wrap",
|
|
125
|
+
],
|
|
126
|
+
},
|
|
127
|
+
indicator: {
|
|
128
|
+
class: [
|
|
129
|
+
// Spacing
|
|
130
|
+
"mr-2 mb-2",
|
|
131
|
+
],
|
|
132
|
+
},
|
|
133
|
+
indicatorbutton: ({ context }) => ({
|
|
134
|
+
class: [
|
|
135
|
+
// Sizing & Shape
|
|
136
|
+
"w-8 h-2 rounded-0",
|
|
137
|
+
|
|
138
|
+
// Transitions
|
|
139
|
+
"transition duration-200",
|
|
140
|
+
|
|
141
|
+
// Focus Styles
|
|
142
|
+
"focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-400/50 dark:focus:ring-primary-300/50",
|
|
143
|
+
|
|
144
|
+
// Color & Background
|
|
145
|
+
{
|
|
146
|
+
"bg-surface-200 hover:bg-surface-300 dark:bg-surface-700 dark:hover:bg-surface-600":
|
|
147
|
+
!context.highlighted,
|
|
148
|
+
"bg-primary-500 hover:bg-primary-600": context.highlighted,
|
|
149
|
+
},
|
|
150
|
+
],
|
|
151
|
+
}),
|
|
152
|
+
};
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
root: ({ props, state }) => ({
|
|
3
|
+
class: [
|
|
4
|
+
// Display and Position
|
|
5
|
+
"inline-flex",
|
|
6
|
+
"relative",
|
|
7
|
+
|
|
8
|
+
// Shape
|
|
9
|
+
"rounded-md",
|
|
10
|
+
|
|
11
|
+
// Color and Background
|
|
12
|
+
"bg-surface-0 dark:bg-surface-900",
|
|
13
|
+
"border",
|
|
14
|
+
{ "border-surface-300 dark:border-surface-600": !props.invalid },
|
|
15
|
+
|
|
16
|
+
// Invalid State
|
|
17
|
+
{ "border-red-500 dark:border-red-400": props.invalid },
|
|
18
|
+
|
|
19
|
+
// Transitions
|
|
20
|
+
"transition-all",
|
|
21
|
+
"duration-200",
|
|
22
|
+
|
|
23
|
+
// States
|
|
24
|
+
{
|
|
25
|
+
"hover:border-primary-500 dark:hover:border-primary-300":
|
|
26
|
+
!props.invalid,
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"outline-none outline-offset-0 ring ring-primary-400/50 dark:ring-primary-300/50":
|
|
30
|
+
state.focused,
|
|
31
|
+
},
|
|
32
|
+
|
|
33
|
+
// Misc
|
|
34
|
+
"cursor-pointer",
|
|
35
|
+
"select-none",
|
|
36
|
+
{
|
|
37
|
+
"opacity-60": props.disabled,
|
|
38
|
+
"pointer-events-none": props.disabled,
|
|
39
|
+
"cursor-default": props.disabled,
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
}),
|
|
43
|
+
label: ({ props }) => ({
|
|
44
|
+
class: [
|
|
45
|
+
// Font
|
|
46
|
+
"font-sans",
|
|
47
|
+
"leading-none",
|
|
48
|
+
|
|
49
|
+
// Flex & Alignment
|
|
50
|
+
" flex flex-auto",
|
|
51
|
+
|
|
52
|
+
// Sizing and Spacing
|
|
53
|
+
"w-[1%]",
|
|
54
|
+
"p-3",
|
|
55
|
+
|
|
56
|
+
// Shape
|
|
57
|
+
"rounded-none",
|
|
58
|
+
|
|
59
|
+
// Color and Background
|
|
60
|
+
"bg-transparent",
|
|
61
|
+
"border-0",
|
|
62
|
+
{
|
|
63
|
+
"text-surface-800 dark:text-white/80": props.modelValue,
|
|
64
|
+
"text-surface-400 dark:text-surface-500": !props.modelValue,
|
|
65
|
+
},
|
|
66
|
+
"placeholder:text-surface-400 dark:placeholder:text-surface-500",
|
|
67
|
+
|
|
68
|
+
// Transitions
|
|
69
|
+
"transition",
|
|
70
|
+
"duration-200",
|
|
71
|
+
|
|
72
|
+
// States
|
|
73
|
+
"focus:outline-none focus:shadow-none",
|
|
74
|
+
|
|
75
|
+
// Misc
|
|
76
|
+
"relative",
|
|
77
|
+
"cursor-pointer",
|
|
78
|
+
"overflow-hidden overflow-ellipsis",
|
|
79
|
+
"whitespace-nowrap",
|
|
80
|
+
"appearance-none",
|
|
81
|
+
],
|
|
82
|
+
}),
|
|
83
|
+
dropdownbutton: {
|
|
84
|
+
class: [
|
|
85
|
+
// Flexbox
|
|
86
|
+
"flex items-center justify-center",
|
|
87
|
+
"shrink-0",
|
|
88
|
+
|
|
89
|
+
// Color and Background
|
|
90
|
+
"bg-transparent",
|
|
91
|
+
"text-surface-500",
|
|
92
|
+
|
|
93
|
+
// Size
|
|
94
|
+
"w-12",
|
|
95
|
+
|
|
96
|
+
// Shape
|
|
97
|
+
"rounded-tr-md",
|
|
98
|
+
"rounded-br-md",
|
|
99
|
+
],
|
|
100
|
+
},
|
|
101
|
+
panel: {
|
|
102
|
+
class: [
|
|
103
|
+
// Position
|
|
104
|
+
"absolute top-0 left-0",
|
|
105
|
+
|
|
106
|
+
// Shape
|
|
107
|
+
"border-0 dark:border",
|
|
108
|
+
"rounded-md",
|
|
109
|
+
"shadow-md",
|
|
110
|
+
|
|
111
|
+
// Color
|
|
112
|
+
"bg-surface-0 dark:bg-surface-700",
|
|
113
|
+
"text-surface-800 dark:text-white/80",
|
|
114
|
+
"dark:border-surface-700",
|
|
115
|
+
],
|
|
116
|
+
},
|
|
117
|
+
wrapper: {
|
|
118
|
+
class: [
|
|
119
|
+
// Sizing
|
|
120
|
+
"max-h-[200px]",
|
|
121
|
+
|
|
122
|
+
// Misc
|
|
123
|
+
"overflow-auto",
|
|
124
|
+
],
|
|
125
|
+
},
|
|
126
|
+
list: {
|
|
127
|
+
class: "py-3 list-none m-0",
|
|
128
|
+
},
|
|
129
|
+
item: ({ context }) => ({
|
|
130
|
+
class: [
|
|
131
|
+
// Font
|
|
132
|
+
"font-normal",
|
|
133
|
+
"leading-none",
|
|
134
|
+
|
|
135
|
+
// Shape
|
|
136
|
+
"border-0",
|
|
137
|
+
"rounded-none",
|
|
138
|
+
|
|
139
|
+
// Spacing
|
|
140
|
+
"m-0",
|
|
141
|
+
|
|
142
|
+
// Colors
|
|
143
|
+
{
|
|
144
|
+
"text-surface-500 dark:text-white/70":
|
|
145
|
+
!context.focused && !context.active,
|
|
146
|
+
"text-surface-500 dark:text-white/70 bg-surface-200 dark:bg-surface-600/90":
|
|
147
|
+
context.focused && !context.active,
|
|
148
|
+
"text-primary-700 dark:text-surface-0/80 bg-primary-50 dark:bg-primary-400/30":
|
|
149
|
+
context.focused && context.active,
|
|
150
|
+
"text-primary-700 dark:text-surface-0/80 bg-primary-50 dark:bg-primary-400/30":
|
|
151
|
+
!context.focused && context.active,
|
|
152
|
+
},
|
|
153
|
+
|
|
154
|
+
// Hover States
|
|
155
|
+
{
|
|
156
|
+
"hover:bg-surface-100 dark:hover:bg-surface-600/80": !context.active,
|
|
157
|
+
"hover:bg-primary-500/50 dark:hover:bg-primary-300/30 text-primary-700 dark:text-surface-0/80":
|
|
158
|
+
context.active,
|
|
159
|
+
},
|
|
160
|
+
|
|
161
|
+
// Transitions
|
|
162
|
+
"transition-shadow",
|
|
163
|
+
"duration-200",
|
|
164
|
+
|
|
165
|
+
// Misc
|
|
166
|
+
"cursor-pointer",
|
|
167
|
+
"overflow-hidden",
|
|
168
|
+
"whitespace-nowrap",
|
|
169
|
+
],
|
|
170
|
+
}),
|
|
171
|
+
content: {
|
|
172
|
+
class: [
|
|
173
|
+
"relative",
|
|
174
|
+
|
|
175
|
+
// Flexbox
|
|
176
|
+
"flex",
|
|
177
|
+
"items-center",
|
|
178
|
+
|
|
179
|
+
// Spacing
|
|
180
|
+
"py-3",
|
|
181
|
+
"px-5",
|
|
182
|
+
|
|
183
|
+
// Misc
|
|
184
|
+
"no-underline",
|
|
185
|
+
"overflow-hidden",
|
|
186
|
+
"cursor-pointer",
|
|
187
|
+
"select-none",
|
|
188
|
+
],
|
|
189
|
+
},
|
|
190
|
+
groupicon: {
|
|
191
|
+
class: [
|
|
192
|
+
// Alignment
|
|
193
|
+
"ml-auto",
|
|
194
|
+
],
|
|
195
|
+
},
|
|
196
|
+
sublist: {
|
|
197
|
+
class: [
|
|
198
|
+
// Size
|
|
199
|
+
"w-full",
|
|
200
|
+
|
|
201
|
+
// Spacing
|
|
202
|
+
"py-1",
|
|
203
|
+
"m-0",
|
|
204
|
+
"list-none",
|
|
205
|
+
|
|
206
|
+
// Shape
|
|
207
|
+
"shadow-none sm:shadow-md",
|
|
208
|
+
"border-0",
|
|
209
|
+
|
|
210
|
+
// Position
|
|
211
|
+
"static sm:absolute",
|
|
212
|
+
"z-10",
|
|
213
|
+
|
|
214
|
+
// Color
|
|
215
|
+
"bg-surface-0 dark:bg-surface-700",
|
|
216
|
+
],
|
|
217
|
+
},
|
|
218
|
+
separator: {
|
|
219
|
+
class: "border-t border-surface-200 dark:border-surface-600 my-1",
|
|
220
|
+
},
|
|
221
|
+
transition: {
|
|
222
|
+
enterFromClass: "opacity-0 scale-y-[0.8]",
|
|
223
|
+
enterActiveClass:
|
|
224
|
+
"transition-[transform,opacity] duration-[120ms] ease-[cubic-bezier(0,0,0.2,1)]",
|
|
225
|
+
leaveActiveClass: "transition-opacity duration-100 ease-linear",
|
|
226
|
+
leaveToClass: "opacity-0",
|
|
227
|
+
},
|
|
228
|
+
};
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
root: {
|
|
3
|
+
class: [
|
|
4
|
+
"relative",
|
|
5
|
+
|
|
6
|
+
// Alignment
|
|
7
|
+
"inline-flex",
|
|
8
|
+
"align-bottom",
|
|
9
|
+
|
|
10
|
+
// Size
|
|
11
|
+
"w-6",
|
|
12
|
+
"h-6",
|
|
13
|
+
|
|
14
|
+
// Misc
|
|
15
|
+
"cursor-pointer",
|
|
16
|
+
"select-none",
|
|
17
|
+
],
|
|
18
|
+
},
|
|
19
|
+
box: ({ props, context }) => ({
|
|
20
|
+
class: [
|
|
21
|
+
// Alignment
|
|
22
|
+
"flex",
|
|
23
|
+
"items-center",
|
|
24
|
+
"justify-center",
|
|
25
|
+
|
|
26
|
+
// Size
|
|
27
|
+
"w-6",
|
|
28
|
+
"h-6",
|
|
29
|
+
|
|
30
|
+
// Shape
|
|
31
|
+
"rounded-md",
|
|
32
|
+
"border-2",
|
|
33
|
+
|
|
34
|
+
// Colors
|
|
35
|
+
{
|
|
36
|
+
"border-surface-200 bg-surface-0 dark:border-surface-700 dark:bg-surface-900":
|
|
37
|
+
!context.checked && !props.invalid,
|
|
38
|
+
"border-primary-500 bg-primary-500 dark:border-primary-400 dark:bg-primary-400":
|
|
39
|
+
context.checked,
|
|
40
|
+
},
|
|
41
|
+
|
|
42
|
+
// Invalid State
|
|
43
|
+
{ "border-red-500 dark:border-red-400": props.invalid },
|
|
44
|
+
|
|
45
|
+
// States
|
|
46
|
+
{
|
|
47
|
+
"peer-hover:border-primary-500 dark:peer-hover:border-primary-400":
|
|
48
|
+
!props.disabled && !context.checked && !props.invalid,
|
|
49
|
+
"peer-hover:bg-primary-600 dark:peer-hover:bg-primary-300 peer-hover:border-primary-700 dark:peer-hover:border-primary-300":
|
|
50
|
+
!props.disabled && context.checked,
|
|
51
|
+
"peer-focus-visible:border-primary-500 dark:peer-focus-visible:border-primary-400 peer-focus-visible:ring-2 peer-focus-visible:ring-primary-400/20 dark:peer-focus-visible:ring-primary-300/20":
|
|
52
|
+
!props.disabled,
|
|
53
|
+
"cursor-default opacity-60": props.disabled,
|
|
54
|
+
},
|
|
55
|
+
|
|
56
|
+
// Transitions
|
|
57
|
+
"transition-colors",
|
|
58
|
+
"duration-200",
|
|
59
|
+
],
|
|
60
|
+
}),
|
|
61
|
+
input: {
|
|
62
|
+
class: [
|
|
63
|
+
"peer",
|
|
64
|
+
|
|
65
|
+
// Size
|
|
66
|
+
"w-full ",
|
|
67
|
+
"h-full",
|
|
68
|
+
|
|
69
|
+
// Position
|
|
70
|
+
"absolute",
|
|
71
|
+
"top-0 left-0",
|
|
72
|
+
"z-10",
|
|
73
|
+
|
|
74
|
+
// Spacing
|
|
75
|
+
"p-0",
|
|
76
|
+
"m-0",
|
|
77
|
+
|
|
78
|
+
// Shape
|
|
79
|
+
"opacity-0",
|
|
80
|
+
"rounded-md",
|
|
81
|
+
"outline-none",
|
|
82
|
+
"border-2 border-surface-200 dark:border-surface-700",
|
|
83
|
+
|
|
84
|
+
// Misc
|
|
85
|
+
"appearance-none",
|
|
86
|
+
"cursor-pointer",
|
|
87
|
+
],
|
|
88
|
+
},
|
|
89
|
+
icon: {
|
|
90
|
+
class: [
|
|
91
|
+
// Font
|
|
92
|
+
"text-base leading-none",
|
|
93
|
+
|
|
94
|
+
// Size
|
|
95
|
+
"w-4",
|
|
96
|
+
"h-4",
|
|
97
|
+
|
|
98
|
+
// Colors
|
|
99
|
+
"text-white dark:text-surface-900",
|
|
100
|
+
|
|
101
|
+
// Transitions
|
|
102
|
+
"transition-all",
|
|
103
|
+
"duration-200",
|
|
104
|
+
],
|
|
105
|
+
},
|
|
106
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
root: {
|
|
3
|
+
class: [
|
|
4
|
+
// Flexbox
|
|
5
|
+
"inline-flex items-center",
|
|
6
|
+
|
|
7
|
+
// Spacing
|
|
8
|
+
"px-3",
|
|
9
|
+
|
|
10
|
+
// Shape
|
|
11
|
+
"rounded-[1.14rem]",
|
|
12
|
+
|
|
13
|
+
// Colors
|
|
14
|
+
"text-surface-700 dark:text-white/70",
|
|
15
|
+
"bg-surface-200 dark:bg-surface-700",
|
|
16
|
+
],
|
|
17
|
+
},
|
|
18
|
+
label: {
|
|
19
|
+
class: "leading-6 my-1.5 mx-0",
|
|
20
|
+
},
|
|
21
|
+
icon: {
|
|
22
|
+
class: "leading-6 mr-2",
|
|
23
|
+
},
|
|
24
|
+
image: {
|
|
25
|
+
class: ["w-9 h-9 -ml-3 mr-2", "rounded-full"],
|
|
26
|
+
},
|
|
27
|
+
removeIcon: {
|
|
28
|
+
class: [
|
|
29
|
+
// Shape
|
|
30
|
+
"rounded-md leading-6",
|
|
31
|
+
|
|
32
|
+
// Spacing
|
|
33
|
+
"ml-2",
|
|
34
|
+
|
|
35
|
+
// Size
|
|
36
|
+
"w-4 h-4",
|
|
37
|
+
|
|
38
|
+
// Transition
|
|
39
|
+
"transition duration-200 ease-in-out",
|
|
40
|
+
|
|
41
|
+
// Misc
|
|
42
|
+
"cursor-pointer",
|
|
43
|
+
],
|
|
44
|
+
},
|
|
45
|
+
};
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
root: ({ props }) => ({
|
|
3
|
+
class: [
|
|
4
|
+
"flex",
|
|
5
|
+
{
|
|
6
|
+
"opacity-60 select-none pointer-events-none cursor-default":
|
|
7
|
+
props.disabled,
|
|
8
|
+
},
|
|
9
|
+
],
|
|
10
|
+
}),
|
|
11
|
+
container: ({ state, props }) => ({
|
|
12
|
+
class: [
|
|
13
|
+
// Font
|
|
14
|
+
"font-sans text-base leading-none",
|
|
15
|
+
|
|
16
|
+
// Flex
|
|
17
|
+
"flex items-center flex-wrap gap-2",
|
|
18
|
+
|
|
19
|
+
// Spacing
|
|
20
|
+
"m-0 py-1.5 px-3",
|
|
21
|
+
|
|
22
|
+
// Size
|
|
23
|
+
"w-full",
|
|
24
|
+
"min-h-[2.877rem]",
|
|
25
|
+
|
|
26
|
+
// Shape
|
|
27
|
+
"list-none",
|
|
28
|
+
"rounded-md",
|
|
29
|
+
|
|
30
|
+
// Color
|
|
31
|
+
"text-surface-700 dark:text-white/80",
|
|
32
|
+
"bg-surface-0 dark:bg-surface-900",
|
|
33
|
+
"border",
|
|
34
|
+
{ "border-surface-300 dark:border-surface-600": !props.invalid },
|
|
35
|
+
|
|
36
|
+
// Invalid State
|
|
37
|
+
{ "border-red-500 dark:border-red-400": props.invalid },
|
|
38
|
+
|
|
39
|
+
// States
|
|
40
|
+
{
|
|
41
|
+
"hover:border-primary-500 dark:hover:border-primary-400":
|
|
42
|
+
!props.invalid,
|
|
43
|
+
},
|
|
44
|
+
"focus:outline-none focus:outline-offset-0",
|
|
45
|
+
{ "ring ring-primary-400/50 dark:ring-primary-300/50": state.focused },
|
|
46
|
+
{ "ring ring-primary-400/50 dark:ring-primary-300/50": state.hovered },
|
|
47
|
+
|
|
48
|
+
// Transition
|
|
49
|
+
"transition-colors duration-200",
|
|
50
|
+
|
|
51
|
+
// Misc
|
|
52
|
+
"cursor-text overflow-hidden",
|
|
53
|
+
"appearance-none",
|
|
54
|
+
],
|
|
55
|
+
}),
|
|
56
|
+
|
|
57
|
+
inputtoken: {
|
|
58
|
+
class: ["py-1.5 px-0", "inline-flex flex-auto"],
|
|
59
|
+
},
|
|
60
|
+
input: {
|
|
61
|
+
class: [
|
|
62
|
+
// Font
|
|
63
|
+
"font-sans text-base leading-[1.2]",
|
|
64
|
+
|
|
65
|
+
// Size
|
|
66
|
+
"w-full",
|
|
67
|
+
|
|
68
|
+
// Spacing
|
|
69
|
+
"p-0 m-0",
|
|
70
|
+
|
|
71
|
+
// Shape
|
|
72
|
+
"appearance-none rounded-none",
|
|
73
|
+
"border-0 outline-none",
|
|
74
|
+
"shadow-none",
|
|
75
|
+
|
|
76
|
+
// Color
|
|
77
|
+
"text-surface-700 dark:text-white/80",
|
|
78
|
+
"bg-transparent",
|
|
79
|
+
],
|
|
80
|
+
},
|
|
81
|
+
token: {
|
|
82
|
+
class: [
|
|
83
|
+
// Flexbox
|
|
84
|
+
"inline-flex items-center",
|
|
85
|
+
|
|
86
|
+
// Spacing
|
|
87
|
+
"py-1.5 px-3",
|
|
88
|
+
|
|
89
|
+
// Shape
|
|
90
|
+
"rounded-[1.14rem]",
|
|
91
|
+
|
|
92
|
+
// Colors
|
|
93
|
+
"text-surface-700 dark:text-white/70",
|
|
94
|
+
"bg-surface-200 dark:bg-surface-700",
|
|
95
|
+
],
|
|
96
|
+
},
|
|
97
|
+
label: {
|
|
98
|
+
class: "leading-5",
|
|
99
|
+
},
|
|
100
|
+
removeTokenIcon: {
|
|
101
|
+
class: [
|
|
102
|
+
// Shape
|
|
103
|
+
"rounded-md leading-6",
|
|
104
|
+
|
|
105
|
+
// Spacing
|
|
106
|
+
"ml-2",
|
|
107
|
+
|
|
108
|
+
// Size
|
|
109
|
+
"w-4 h-4",
|
|
110
|
+
|
|
111
|
+
// Transition
|
|
112
|
+
"transition duration-200 ease-in-out",
|
|
113
|
+
|
|
114
|
+
// Misc
|
|
115
|
+
"cursor-pointer",
|
|
116
|
+
],
|
|
117
|
+
},
|
|
118
|
+
};
|