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