@fy-/fws-vue 0.2.9 → 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.
Files changed (180) hide show
  1. package/components/ui/DefaultInput.vue +204 -213
  2. package/package.json +2 -12
  3. package/presets/Lara/accordion/index.js +0 -86
  4. package/presets/Lara/autocomplete/index.js +0 -284
  5. package/presets/Lara/avatar/index.js +0 -46
  6. package/presets/Lara/badge/index.js +0 -44
  7. package/presets/Lara/badgedirective/index.js +0 -49
  8. package/presets/Lara/blockui/index.js +0 -8
  9. package/presets/Lara/breadcrumb/index.js +0 -64
  10. package/presets/Lara/button/index.js +0 -470
  11. package/presets/Lara/calendar/index.js +0 -683
  12. package/presets/Lara/card/index.js +0 -37
  13. package/presets/Lara/carousel/index.js +0 -152
  14. package/presets/Lara/cascadeselect/index.js +0 -228
  15. package/presets/Lara/checkbox/index.js +0 -106
  16. package/presets/Lara/chip/index.js +0 -45
  17. package/presets/Lara/chips/index.js +0 -118
  18. package/presets/Lara/colorpicker/index.js +0 -129
  19. package/presets/Lara/confirmpopup/index.js +0 -107
  20. package/presets/Lara/contextmenu/index.js +0 -130
  21. package/presets/Lara/datatable/index.js +0 -1289
  22. package/presets/Lara/dataview/index.js +0 -40
  23. package/presets/Lara/deferred/index.js +0 -3
  24. package/presets/Lara/dialog/index.js +0 -249
  25. package/presets/Lara/divider/index.js +0 -72
  26. package/presets/Lara/dock/index.js +0 -97
  27. package/presets/Lara/dropdown/index.js +0 -300
  28. package/presets/Lara/fieldset/index.js +0 -98
  29. package/presets/Lara/fileupload/index.js +0 -173
  30. package/presets/Lara/floatlabel/index.js +0 -26
  31. package/presets/Lara/galleria/index.js +0 -351
  32. package/presets/Lara/global.js +0 -90
  33. package/presets/Lara/iconfield/index.js +0 -22
  34. package/presets/Lara/image/index.js +0 -206
  35. package/presets/Lara/index.js +0 -181
  36. package/presets/Lara/inlinemessage/index.js +0 -36
  37. package/presets/Lara/inplace/index.js +0 -27
  38. package/presets/Lara/inputgroup/index.js +0 -5
  39. package/presets/Lara/inputgroupaddon/index.js +0 -28
  40. package/presets/Lara/inputmask/index.js +0 -37
  41. package/presets/Lara/inputnumber/index.js +0 -253
  42. package/presets/Lara/inputotp/index.js +0 -72
  43. package/presets/Lara/inputswitch/index.js +0 -93
  44. package/presets/Lara/inputtext/index.js +0 -61
  45. package/presets/Lara/knob/index.js +0 -47
  46. package/presets/Lara/listbox/index.js +0 -170
  47. package/presets/Lara/megamenu/index.js +0 -207
  48. package/presets/Lara/menu/index.js +0 -98
  49. package/presets/Lara/menubar/index.js +0 -181
  50. package/presets/Lara/message/index.js +0 -87
  51. package/presets/Lara/metergroup/index.js +0 -110
  52. package/presets/Lara/multiselect/index.js +0 -589
  53. package/presets/Lara/orderlist/index.js +0 -266
  54. package/presets/Lara/organizationchart/index.js +0 -142
  55. package/presets/Lara/overlaypanel/index.js +0 -41
  56. package/presets/Lara/paginator/index.js +0 -590
  57. package/presets/Lara/panel/index.js +0 -93
  58. package/presets/Lara/panelmenu/index.js +0 -139
  59. package/presets/Lara/password/index.js +0 -140
  60. package/presets/Lara/picklist/index.js +0 -659
  61. package/presets/Lara/progressbar/index.js +0 -61
  62. package/presets/Lara/progressspinner/index.js +0 -51
  63. package/presets/Lara/radiobutton/index.js +0 -116
  64. package/presets/Lara/rating/index.js +0 -95
  65. package/presets/Lara/ripple/index.js +0 -6
  66. package/presets/Lara/scrollpanel/index.js +0 -77
  67. package/presets/Lara/scrolltop/index.js +0 -45
  68. package/presets/Lara/selectbutton/index.js +0 -60
  69. package/presets/Lara/sidebar/index.js +0 -163
  70. package/presets/Lara/skeleton/index.js +0 -19
  71. package/presets/Lara/slider/index.js +0 -149
  72. package/presets/Lara/speeddial/index.js +0 -535
  73. package/presets/Lara/splitbutton/index.js +0 -1081
  74. package/presets/Lara/splitter/index.js +0 -64
  75. package/presets/Lara/stepper/index.js +0 -183
  76. package/presets/Lara/steps/index.js +0 -115
  77. package/presets/Lara/tabmenu/index.js +0 -82
  78. package/presets/Lara/tabview/index.js +0 -166
  79. package/presets/Lara/tag/index.js +0 -37
  80. package/presets/Lara/terminal/index.js +0 -60
  81. package/presets/Lara/textarea/index.js +0 -39
  82. package/presets/Lara/tieredmenu/index.js +0 -125
  83. package/presets/Lara/timeline/index.js +0 -107
  84. package/presets/Lara/toast/index.js +0 -113
  85. package/presets/Lara/togglebutton/index.js +0 -100
  86. package/presets/Lara/toolbar/index.js +0 -28
  87. package/presets/Lara/tooltip/index.js +0 -73
  88. package/presets/Lara/tree/index.js +0 -281
  89. package/presets/Lara/treeselect/index.js +0 -387
  90. package/presets/Lara/treetable/index.js +0 -509
  91. package/presets/Lara/tristatecheckbox/index.js +0 -112
  92. package/presets/Wind/accordion/index.js +0 -75
  93. package/presets/Wind/autocomplete/index.js +0 -294
  94. package/presets/Wind/avatar/index.js +0 -48
  95. package/presets/Wind/badge/index.js +0 -43
  96. package/presets/Wind/badgedirective/index.js +0 -50
  97. package/presets/Wind/blockui/index.js +0 -8
  98. package/presets/Wind/breadcrumb/index.js +0 -45
  99. package/presets/Wind/button/index.js +0 -474
  100. package/presets/Wind/calendar/index.js +0 -659
  101. package/presets/Wind/card/index.js +0 -40
  102. package/presets/Wind/carousel/index.js +0 -152
  103. package/presets/Wind/cascadeselect/index.js +0 -225
  104. package/presets/Wind/checkbox/index.js +0 -112
  105. package/presets/Wind/chip/index.js +0 -45
  106. package/presets/Wind/chips/index.js +0 -120
  107. package/presets/Wind/colorpicker/index.js +0 -129
  108. package/presets/Wind/confirmpopup/index.js +0 -123
  109. package/presets/Wind/contextmenu/index.js +0 -128
  110. package/presets/Wind/datatable/index.js +0 -1330
  111. package/presets/Wind/dataview/index.js +0 -40
  112. package/presets/Wind/deferred/index.js +0 -3
  113. package/presets/Wind/dialog/index.js +0 -251
  114. package/presets/Wind/divider/index.js +0 -72
  115. package/presets/Wind/dock/index.js +0 -97
  116. package/presets/Wind/dropdown/index.js +0 -287
  117. package/presets/Wind/fieldset/index.js +0 -99
  118. package/presets/Wind/fileupload/index.js +0 -173
  119. package/presets/Wind/floatlabel/index.js +0 -26
  120. package/presets/Wind/galleria/index.js +0 -351
  121. package/presets/Wind/global.js +0 -77
  122. package/presets/Wind/iconfield/index.js +0 -22
  123. package/presets/Wind/image/index.js +0 -206
  124. package/presets/Wind/index.js +0 -181
  125. package/presets/Wind/inlinemessage/index.js +0 -29
  126. package/presets/Wind/inplace/index.js +0 -30
  127. package/presets/Wind/inputgroup/index.js +0 -5
  128. package/presets/Wind/inputgroupaddon/index.js +0 -28
  129. package/presets/Wind/inputmask/index.js +0 -34
  130. package/presets/Wind/inputnumber/index.js +0 -244
  131. package/presets/Wind/inputotp/index.js +0 -72
  132. package/presets/Wind/inputswitch/index.js +0 -106
  133. package/presets/Wind/inputtext/index.js +0 -61
  134. package/presets/Wind/knob/index.js +0 -47
  135. package/presets/Wind/listbox/index.js +0 -159
  136. package/presets/Wind/megamenu/index.js +0 -218
  137. package/presets/Wind/menu/index.js +0 -111
  138. package/presets/Wind/menubar/index.js +0 -188
  139. package/presets/Wind/message/index.js +0 -87
  140. package/presets/Wind/metergroup/index.js +0 -110
  141. package/presets/Wind/multiselect/index.js +0 -619
  142. package/presets/Wind/orderlist/index.js +0 -275
  143. package/presets/Wind/organizationchart/index.js +0 -143
  144. package/presets/Wind/overlaypanel/index.js +0 -42
  145. package/presets/Wind/paginator/index.js +0 -596
  146. package/presets/Wind/panel/index.js +0 -95
  147. package/presets/Wind/panelmenu/index.js +0 -136
  148. package/presets/Wind/password/index.js +0 -141
  149. package/presets/Wind/picklist/index.js +0 -684
  150. package/presets/Wind/progressbar/index.js +0 -68
  151. package/presets/Wind/progressspinner/index.js +0 -51
  152. package/presets/Wind/radiobutton/index.js +0 -92
  153. package/presets/Wind/rating/index.js +0 -86
  154. package/presets/Wind/ripple/index.js +0 -6
  155. package/presets/Wind/scrollpanel/index.js +0 -77
  156. package/presets/Wind/scrolltop/index.js +0 -45
  157. package/presets/Wind/selectbutton/index.js +0 -58
  158. package/presets/Wind/sidebar/index.js +0 -165
  159. package/presets/Wind/skeleton/index.js +0 -19
  160. package/presets/Wind/slider/index.js +0 -135
  161. package/presets/Wind/speeddial/index.js +0 -536
  162. package/presets/Wind/splitbutton/index.js +0 -1078
  163. package/presets/Wind/splitter/index.js +0 -64
  164. package/presets/Wind/stepper/index.js +0 -180
  165. package/presets/Wind/steps/index.js +0 -132
  166. package/presets/Wind/tabmenu/index.js +0 -84
  167. package/presets/Wind/tabview/index.js +0 -168
  168. package/presets/Wind/tag/index.js +0 -37
  169. package/presets/Wind/terminal/index.js +0 -60
  170. package/presets/Wind/textarea/index.js +0 -40
  171. package/presets/Wind/tieredmenu/index.js +0 -121
  172. package/presets/Wind/timeline/index.js +0 -107
  173. package/presets/Wind/toast/index.js +0 -111
  174. package/presets/Wind/togglebutton/index.js +0 -91
  175. package/presets/Wind/toolbar/index.js +0 -30
  176. package/presets/Wind/tooltip/index.js +0 -43
  177. package/presets/Wind/tree/index.js +0 -300
  178. package/presets/Wind/treeselect/index.js +0 -404
  179. package/presets/Wind/treetable/index.js +0 -505
  180. package/presets/Wind/tristatecheckbox/index.js +0 -118
@@ -1,152 +0,0 @@
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
- };
@@ -1,228 +0,0 @@
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
- };
@@ -1,106 +0,0 @@
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
- };
@@ -1,45 +0,0 @@
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
- };
@@ -1,118 +0,0 @@
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
- };