@gluhar/theme 2.0.2 → 3.0.0

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 (194) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/README.md +2 -47
  3. package/dist/module.d.mts +0 -4
  4. package/dist/module.d.ts +0 -4
  5. package/dist/module.json +1 -1
  6. package/dist/module.mjs +1 -9
  7. package/dist/runtime/tailwind/gluharTheme.js +3 -27
  8. package/dist/runtime/tailwind/handleTailwind.js +1 -5
  9. package/package.json +3 -6
  10. package/dist/runtime/presets/lara/accordion/index.d.ts +0 -49
  11. package/dist/runtime/presets/lara/accordion/index.js +0 -78
  12. package/dist/runtime/presets/lara/autocomplete/index.d.ts +0 -200
  13. package/dist/runtime/presets/lara/autocomplete/index.js +0 -259
  14. package/dist/runtime/presets/lara/avatar/index.d.ts +0 -83
  15. package/dist/runtime/presets/lara/avatar/index.js +0 -43
  16. package/dist/runtime/presets/lara/avatargroup/index.d.ts +0 -7
  17. package/dist/runtime/presets/lara/avatargroup/index.js +0 -5
  18. package/dist/runtime/presets/lara/badge/index.d.ts +0 -72
  19. package/dist/runtime/presets/lara/badge/index.js +0 -43
  20. package/dist/runtime/presets/lara/badgedirective/index.d.ts +0 -50
  21. package/dist/runtime/presets/lara/badgedirective/index.js +0 -43
  22. package/dist/runtime/presets/lara/blockui/index.d.ts +0 -11
  23. package/dist/runtime/presets/lara/blockui/index.js +0 -8
  24. package/dist/runtime/presets/lara/breadcrumb/index.d.ts +0 -23
  25. package/dist/runtime/presets/lara/breadcrumb/index.js +0 -64
  26. package/dist/runtime/presets/lara/button/index.d.ts +0 -3790
  27. package/dist/runtime/presets/lara/button/index.js +0 -220
  28. package/dist/runtime/presets/lara/calendar/index.d.ts +0 -334
  29. package/dist/runtime/presets/lara/calendar/index.js +0 -643
  30. package/dist/runtime/presets/lara/card/index.d.ts +0 -27
  31. package/dist/runtime/presets/lara/card/index.js +0 -37
  32. package/dist/runtime/presets/lara/carousel/index.d.ts +0 -71
  33. package/dist/runtime/presets/lara/carousel/index.js +0 -149
  34. package/dist/runtime/presets/lara/cascadeselect/index.d.ts +0 -112
  35. package/dist/runtime/presets/lara/cascadeselect/index.js +0 -209
  36. package/dist/runtime/presets/lara/checkbox/index.d.ts +0 -45
  37. package/dist/runtime/presets/lara/checkbox/index.js +0 -101
  38. package/dist/runtime/presets/lara/chip/index.d.ts +0 -23
  39. package/dist/runtime/presets/lara/chip/index.js +0 -45
  40. package/dist/runtime/presets/lara/chips/index.d.ts +0 -56
  41. package/dist/runtime/presets/lara/chips/index.js +0 -114
  42. package/dist/runtime/presets/lara/colorpicker/index.d.ts +0 -51
  43. package/dist/runtime/presets/lara/colorpicker/index.js +0 -123
  44. package/dist/runtime/presets/lara/confirmpopup/index.d.ts +0 -39
  45. package/dist/runtime/presets/lara/confirmpopup/index.js +0 -106
  46. package/dist/runtime/presets/lara/contextmenu/index.d.ts +0 -72
  47. package/dist/runtime/presets/lara/contextmenu/index.js +0 -125
  48. package/dist/runtime/presets/lara/datatable/index.d.ts +0 -695
  49. package/dist/runtime/presets/lara/datatable/index.js +0 -1170
  50. package/dist/runtime/presets/lara/dataview/index.d.ts +0 -15
  51. package/dist/runtime/presets/lara/dataview/index.js +0 -40
  52. package/dist/runtime/presets/lara/dataviewlayoutoptions/index.d.ts +0 -13
  53. package/dist/runtime/presets/lara/dataviewlayoutoptions/index.js +0 -62
  54. package/dist/runtime/presets/lara/deferred/index.d.ts +0 -4
  55. package/dist/runtime/presets/lara/deferred/index.js +0 -3
  56. package/dist/runtime/presets/lara/dialog/index.d.ts +0 -79
  57. package/dist/runtime/presets/lara/dialog/index.js +0 -235
  58. package/dist/runtime/presets/lara/divider/index.d.ts +0 -192
  59. package/dist/runtime/presets/lara/divider/index.js +0 -67
  60. package/dist/runtime/presets/lara/dock/index.d.ts +0 -51
  61. package/dist/runtime/presets/lara/dock/index.js +0 -93
  62. package/dist/runtime/presets/lara/dropdown/index.d.ts +0 -207
  63. package/dist/runtime/presets/lara/dropdown/index.js +0 -265
  64. package/dist/runtime/presets/lara/fieldset/index.d.ts +0 -87
  65. package/dist/runtime/presets/lara/fieldset/index.js +0 -84
  66. package/dist/runtime/presets/lara/fileupload/index.d.ts +0 -70
  67. package/dist/runtime/presets/lara/fileupload/index.js +0 -173
  68. package/dist/runtime/presets/lara/floatlabel/index.d.ts +0 -7
  69. package/dist/runtime/presets/lara/floatlabel/index.js +0 -26
  70. package/dist/runtime/presets/lara/galleria/index.d.ts +0 -194
  71. package/dist/runtime/presets/lara/galleria/index.js +0 -306
  72. package/dist/runtime/presets/lara/global.d.ts +0 -4
  73. package/dist/runtime/presets/lara/global.js +0 -90
  74. package/dist/runtime/presets/lara/iconfield/index.d.ts +0 -18
  75. package/dist/runtime/presets/lara/iconfield/index.js +0 -22
  76. package/dist/runtime/presets/lara/image/index.d.ts +0 -65
  77. package/dist/runtime/presets/lara/image/index.js +0 -206
  78. package/dist/runtime/presets/lara/index.d.ts +0 -187
  79. package/dist/runtime/presets/lara/index.js +0 -207
  80. package/dist/runtime/presets/lara/inlinemessage/index.d.ts +0 -55
  81. package/dist/runtime/presets/lara/inlinemessage/index.js +0 -36
  82. package/dist/runtime/presets/lara/inplace/index.d.ts +0 -7
  83. package/dist/runtime/presets/lara/inplace/index.js +0 -27
  84. package/dist/runtime/presets/lara/inputgroup/index.d.ts +0 -7
  85. package/dist/runtime/presets/lara/inputgroup/index.js +0 -5
  86. package/dist/runtime/presets/lara/inputgroupaddon/index.d.ts +0 -7
  87. package/dist/runtime/presets/lara/inputgroupaddon/index.js +0 -28
  88. package/dist/runtime/presets/lara/inputmask/index.d.ts +0 -27
  89. package/dist/runtime/presets/lara/inputmask/index.js +0 -34
  90. package/dist/runtime/presets/lara/inputnumber/index.d.ts +0 -390
  91. package/dist/runtime/presets/lara/inputnumber/index.js +0 -164
  92. package/dist/runtime/presets/lara/inputotp/index.d.ts +0 -147
  93. package/dist/runtime/presets/lara/inputotp/index.js +0 -60
  94. package/dist/runtime/presets/lara/inputswitch/index.d.ts +0 -67
  95. package/dist/runtime/presets/lara/inputswitch/index.js +0 -80
  96. package/dist/runtime/presets/lara/inputtext/index.d.ts +0 -160
  97. package/dist/runtime/presets/lara/inputtext/index.js +0 -49
  98. package/dist/runtime/presets/lara/knob/index.d.ts +0 -22
  99. package/dist/runtime/presets/lara/knob/index.js +0 -44
  100. package/dist/runtime/presets/lara/listbox/index.d.ts +0 -93
  101. package/dist/runtime/presets/lara/listbox/index.js +0 -152
  102. package/dist/runtime/presets/lara/megamenu/index.d.ts +0 -105
  103. package/dist/runtime/presets/lara/megamenu/index.js +0 -199
  104. package/dist/runtime/presets/lara/menu/index.d.ts +0 -40
  105. package/dist/runtime/presets/lara/menu/index.js +0 -96
  106. package/dist/runtime/presets/lara/menubar/index.d.ts +0 -85
  107. package/dist/runtime/presets/lara/menubar/index.js +0 -176
  108. package/dist/runtime/presets/lara/message/index.d.ts +0 -70
  109. package/dist/runtime/presets/lara/message/index.js +0 -87
  110. package/dist/runtime/presets/lara/metergroup/index.d.ts +0 -92
  111. package/dist/runtime/presets/lara/metergroup/index.js +0 -97
  112. package/dist/runtime/presets/lara/multiselect/index.d.ts +0 -260
  113. package/dist/runtime/presets/lara/multiselect/index.js +0 -546
  114. package/dist/runtime/presets/lara/orderlist/index.d.ts +0 -99
  115. package/dist/runtime/presets/lara/orderlist/index.js +0 -257
  116. package/dist/runtime/presets/lara/organizationchart/index.d.ts +0 -81
  117. package/dist/runtime/presets/lara/organizationchart/index.js +0 -138
  118. package/dist/runtime/presets/lara/overlaypanel/index.d.ts +0 -17
  119. package/dist/runtime/presets/lara/overlaypanel/index.js +0 -40
  120. package/dist/runtime/presets/lara/paginator/index.d.ts +0 -280
  121. package/dist/runtime/presets/lara/paginator/index.js +0 -533
  122. package/dist/runtime/presets/lara/panel/index.d.ts +0 -39
  123. package/dist/runtime/presets/lara/panel/index.js +0 -91
  124. package/dist/runtime/presets/lara/panelmenu/index.d.ts +0 -76
  125. package/dist/runtime/presets/lara/panelmenu/index.js +0 -127
  126. package/dist/runtime/presets/lara/password/index.d.ts +0 -181
  127. package/dist/runtime/presets/lara/password/index.js +0 -118
  128. package/dist/runtime/presets/lara/picklist/index.d.ts +0 -245
  129. package/dist/runtime/presets/lara/picklist/index.js +0 -650
  130. package/dist/runtime/presets/lara/progressbar/index.d.ts +0 -44
  131. package/dist/runtime/presets/lara/progressbar/index.js +0 -55
  132. package/dist/runtime/presets/lara/progressspinner/index.d.ts +0 -15
  133. package/dist/runtime/presets/lara/progressspinner/index.js +0 -51
  134. package/dist/runtime/presets/lara/radiobutton/index.d.ts +0 -57
  135. package/dist/runtime/presets/lara/radiobutton/index.js +0 -104
  136. package/dist/runtime/presets/lara/rating/index.d.ts +0 -49
  137. package/dist/runtime/presets/lara/rating/index.js +0 -92
  138. package/dist/runtime/presets/lara/ripple/index.d.ts +0 -8
  139. package/dist/runtime/presets/lara/ripple/index.js +0 -6
  140. package/dist/runtime/presets/lara/scrollpanel/index.d.ts +0 -19
  141. package/dist/runtime/presets/lara/scrollpanel/index.js +0 -77
  142. package/dist/runtime/presets/lara/scrolltop/index.d.ts +0 -50
  143. package/dist/runtime/presets/lara/scrolltop/index.js +0 -41
  144. package/dist/runtime/presets/lara/selectbutton/index.d.ts +0 -56
  145. package/dist/runtime/presets/lara/selectbutton/index.js +0 -49
  146. package/dist/runtime/presets/lara/sidebar/index.d.ts +0 -66
  147. package/dist/runtime/presets/lara/sidebar/index.js +0 -149
  148. package/dist/runtime/presets/lara/skeleton/index.d.ts +0 -16
  149. package/dist/runtime/presets/lara/skeleton/index.js +0 -16
  150. package/dist/runtime/presets/lara/slider/index.d.ts +0 -55
  151. package/dist/runtime/presets/lara/slider/index.js +0 -137
  152. package/dist/runtime/presets/lara/speeddial/index.d.ts +0 -3091
  153. package/dist/runtime/presets/lara/speeddial/index.js +0 -283
  154. package/dist/runtime/presets/lara/splitbutton/index.d.ts +0 -6749
  155. package/dist/runtime/presets/lara/splitbutton/index.js +0 -502
  156. package/dist/runtime/presets/lara/splitter/index.d.ts +0 -30
  157. package/dist/runtime/presets/lara/splitter/index.js +0 -61
  158. package/dist/runtime/presets/lara/splitterpanel/index.d.ts +0 -10
  159. package/dist/runtime/presets/lara/splitterpanel/index.js +0 -5
  160. package/dist/runtime/presets/lara/stepper/index.d.ts +0 -66
  161. package/dist/runtime/presets/lara/stepper/index.js +0 -161
  162. package/dist/runtime/presets/lara/steps/index.d.ts +0 -57
  163. package/dist/runtime/presets/lara/steps/index.js +0 -111
  164. package/dist/runtime/presets/lara/tabmenu/index.d.ts +0 -43
  165. package/dist/runtime/presets/lara/tabmenu/index.js +0 -73
  166. package/dist/runtime/presets/lara/tabview/index.d.ts +0 -67
  167. package/dist/runtime/presets/lara/tabview/index.js +0 -156
  168. package/dist/runtime/presets/lara/tag/index.d.ts +0 -32
  169. package/dist/runtime/presets/lara/tag/index.js +0 -36
  170. package/dist/runtime/presets/lara/terminal/index.d.ts +0 -27
  171. package/dist/runtime/presets/lara/terminal/index.js +0 -60
  172. package/dist/runtime/presets/lara/textarea/index.d.ts +0 -27
  173. package/dist/runtime/presets/lara/textarea/index.js +0 -36
  174. package/dist/runtime/presets/lara/tieredmenu/index.d.ts +0 -56
  175. package/dist/runtime/presets/lara/tieredmenu/index.js +0 -120
  176. package/dist/runtime/presets/lara/timeline/index.d.ts +0 -84
  177. package/dist/runtime/presets/lara/timeline/index.js +0 -81
  178. package/dist/runtime/presets/lara/toast/index.d.ts +0 -92
  179. package/dist/runtime/presets/lara/toast/index.js +0 -102
  180. package/dist/runtime/presets/lara/togglebutton/index.d.ts +0 -72
  181. package/dist/runtime/presets/lara/togglebutton/index.js +0 -91
  182. package/dist/runtime/presets/lara/toolbar/index.d.ts +0 -19
  183. package/dist/runtime/presets/lara/toolbar/index.js +0 -28
  184. package/dist/runtime/presets/lara/tooltip/index.d.ts +0 -38
  185. package/dist/runtime/presets/lara/tooltip/index.js +0 -46
  186. package/dist/runtime/presets/lara/tree/index.d.ts +0 -105
  187. package/dist/runtime/presets/lara/tree/index.js +0 -258
  188. package/dist/runtime/presets/lara/treeselect/index.d.ts +0 -181
  189. package/dist/runtime/presets/lara/treeselect/index.js +0 -352
  190. package/dist/runtime/presets/lara/treetable/index.d.ts +0 -316
  191. package/dist/runtime/presets/lara/treetable/index.js +0 -434
  192. package/dist/runtime/presets/lara/tristatecheckbox/index.d.ts +0 -49
  193. package/dist/runtime/presets/lara/tristatecheckbox/index.js +0 -104
  194. package/dist/runtime/styles/core.css +0 -27
@@ -1,546 +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
- { 'hover:border-primary-500 dark:hover:border-primary-300': !props.invalid },
25
- { 'outline-none outline-offset-0 ring ring-primary-400/50 dark:ring-primary-300/50': state.focused },
26
-
27
- // Misc
28
- 'cursor-pointer',
29
- 'select-none',
30
- { 'opacity-60': props.disabled, 'pointer-events-none': props.disabled, 'cursor-default': props.disabled }
31
- ]
32
- }),
33
- labelContainer: {
34
- class: 'overflow-hidden flex flex-auto cursor-pointer '
35
- },
36
- label: ({ props }) => ({
37
- class: [
38
- 'leading-none',
39
- 'block ',
40
-
41
- // Spacing
42
- {
43
- 'p-3': props.display !== 'chip',
44
- 'py-3 px-3': props.display === 'chip' && !props?.modelValue?.length,
45
- 'py-1.5 px-3': props.display === 'chip' && props?.modelValue?.length > 0
46
- },
47
-
48
- // Color
49
- { 'text-surface-800 dark:text-white/80': props.modelValue?.length, 'text-surface-400 dark:text-surface-500': !props.modelValue?.length },
50
- 'placeholder:text-surface-400 dark:placeholder:text-surface-500',
51
-
52
- // Transitions
53
- 'transition duration-200',
54
-
55
- // Misc
56
- 'overflow-hidden whitespace-nowrap cursor-pointer overflow-ellipsis'
57
- ]
58
- }),
59
- token: {
60
- class: [
61
- // Flex
62
- 'inline-flex items-center',
63
-
64
- // Spacings
65
- 'py-1.5 px-3 mr-2',
66
-
67
- // Shape
68
- 'rounded-[1.14rem]',
69
-
70
- // Colors
71
- 'bg-surface-200 dark:bg-surface-700',
72
- 'text-surface-700 dark:text-white/70',
73
-
74
- // Misc
75
- 'cursor-default'
76
- ]
77
- },
78
- removeTokenIcon: {
79
- class: [
80
- // Shape
81
- 'rounded-md leading-6',
82
-
83
- // Spacing
84
- 'ml-2',
85
-
86
- // Size
87
- 'w-4 h-4',
88
-
89
- // Transition
90
- 'transition duration-200 ease-in-out',
91
-
92
- // Misc
93
- 'cursor-pointer'
94
- ]
95
- },
96
- trigger: {
97
- class: [
98
- // Flexbox
99
- 'flex items-center justify-center',
100
- 'shrink-0',
101
-
102
- // Color and Background
103
- 'bg-transparent',
104
- 'text-surface-500',
105
-
106
- // Size
107
- 'w-12',
108
-
109
- // Shape
110
- 'rounded-tr-md',
111
- 'rounded-br-md'
112
- ]
113
- },
114
- panel: {
115
- class: [
116
- // Position
117
- 'absolute top-0 left-0',
118
-
119
- // Shape
120
- 'border-0 dark:border',
121
- 'rounded-md',
122
- 'shadow-md',
123
-
124
- // Color
125
- 'bg-surface-0 dark:bg-surface-800',
126
- 'text-surface-800 dark:text-white/80',
127
- 'dark:border-surface-700'
128
- ]
129
- },
130
- header: {
131
- class: [
132
- 'flex items-center justify-between',
133
- // Spacing
134
- 'py-3 px-5',
135
- 'm-0',
136
-
137
- //Shape
138
- 'border-b',
139
- 'rounded-tl-md',
140
- 'rounded-tr-md',
141
-
142
- // Color
143
- 'text-surface-700 dark:text-white/80',
144
- 'bg-surface-100 dark:bg-surface-800',
145
- 'border-surface-300 dark:border-surface-700'
146
- ]
147
- },
148
- headerCheckboxContainer: {
149
- class: [
150
- 'relative',
151
-
152
- // Alignment
153
- 'inline-flex',
154
- 'align-bottom',
155
-
156
- // Size
157
- 'w-6',
158
- 'h-6',
159
-
160
- // Misc
161
- 'cursor-pointer',
162
- 'select-none'
163
- ]
164
- },
165
- headerCheckbox: {
166
- root: {
167
- class: [
168
- 'relative',
169
-
170
- // Alignment
171
- 'inline-flex',
172
- 'align-bottom',
173
-
174
- // Size
175
- 'w-6',
176
- 'h-6',
177
-
178
- // Spacing
179
- 'mr-2',
180
-
181
- // Misc
182
- 'cursor-pointer',
183
- 'select-none'
184
- ]
185
- },
186
- box: ({ props, context }) => ({
187
- class: [
188
- // Alignment
189
- 'flex',
190
- 'items-center',
191
- 'justify-center',
192
-
193
- // Size
194
- 'w-6',
195
- 'h-6',
196
-
197
- // Shape
198
- 'rounded-md',
199
- 'border-2',
200
-
201
- // Colors
202
- {
203
- 'border-surface-200 bg-surface-0 dark:border-surface-700 dark:bg-surface-900': !context.checked,
204
- 'border-primary-500 bg-primary-500 dark:border-primary-400 dark:bg-primary-400': context.checked
205
- },
206
-
207
- // States
208
- {
209
- 'peer-hover:border-primary-500 dark:peer-hover:border-primary-400': !props.disabled && !context.checked,
210
- 'peer-hover:bg-primary-600 dark:peer-hover:bg-primary-300 peer-hover:border-primary-700 dark:peer-hover:border-primary-300': !props.disabled && context.checked,
211
- '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': !props.disabled,
212
- 'cursor-default opacity-60': props.disabled
213
- },
214
-
215
- // Transitions
216
- 'transition-colors',
217
- 'duration-200'
218
- ]
219
- }),
220
- input: {
221
- class: [
222
- 'peer',
223
-
224
- // Size
225
- 'w-full ',
226
- 'h-full',
227
-
228
- // Position
229
- 'absolute',
230
- 'top-0 left-0',
231
- 'z-10',
232
-
233
- // Spacing
234
- 'p-0',
235
- 'm-0',
236
-
237
- // Shape
238
- 'opacity-0',
239
- 'rounded-md',
240
- 'outline-none',
241
- 'border-2 border-surface-200 dark:border-surface-700',
242
-
243
- // Misc
244
- 'appearance-none',
245
- 'cursor-pointer'
246
- ]
247
- },
248
- icon: {
249
- class: [
250
- // Font
251
- 'text-base leading-none',
252
-
253
- // Size
254
- 'w-4',
255
- 'h-4',
256
-
257
- // Colors
258
- 'text-white dark:text-surface-900',
259
-
260
- // Transitions
261
- 'transition-all',
262
- 'duration-200'
263
- ]
264
- }
265
- },
266
- itemCheckbox: {
267
- root: {
268
- class: [
269
- 'relative',
270
-
271
- // Alignment
272
- 'inline-flex',
273
- 'align-bottom',
274
-
275
- // Size
276
- 'w-6',
277
- 'h-6',
278
-
279
- // Spacing
280
- 'mr-2',
281
-
282
- // Misc
283
- 'cursor-pointer',
284
- 'select-none'
285
- ]
286
- },
287
- box: ({ props, context }) => ({
288
- class: [
289
- // Alignment
290
- 'flex',
291
- 'items-center',
292
- 'justify-center',
293
-
294
- // Size
295
- 'w-6',
296
- 'h-6',
297
-
298
- // Shape
299
- 'rounded-md',
300
- 'border-2',
301
-
302
- // Colors
303
- {
304
- 'border-surface-200 bg-surface-0 dark:border-surface-700 dark:bg-surface-900': !context.checked,
305
- 'border-primary-500 bg-primary-500 dark:border-primary-400 dark:bg-primary-400': context.checked
306
- },
307
-
308
- // States
309
- {
310
- 'peer-hover:border-primary-500 dark:peer-hover:border-primary-400': !props.disabled && !context.checked,
311
- 'peer-hover:bg-primary-600 dark:peer-hover:bg-primary-300 peer-hover:border-primary-700 dark:peer-hover:border-primary-300': !props.disabled && context.checked,
312
- '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': !props.disabled,
313
- 'cursor-default opacity-60': props.disabled
314
- },
315
-
316
- // Transitions
317
- 'transition-colors',
318
- 'duration-200'
319
- ]
320
- }),
321
- input: {
322
- class: [
323
- 'peer',
324
-
325
- // Size
326
- 'w-full ',
327
- 'h-full',
328
-
329
- // Position
330
- 'absolute',
331
- 'top-0 left-0',
332
- 'z-10',
333
-
334
- // Spacing
335
- 'p-0',
336
- 'm-0',
337
-
338
- // Shape
339
- 'opacity-0',
340
- 'rounded-md',
341
- 'outline-none',
342
- 'border-2 border-surface-200 dark:border-surface-700',
343
-
344
- // Misc
345
- 'appearance-none',
346
- 'cursor-pointer'
347
- ]
348
- },
349
- icon: {
350
- class: [
351
- // Font
352
- 'text-base leading-none',
353
-
354
- // Size
355
- 'w-4',
356
- 'h-4',
357
-
358
- // Colors
359
- 'text-white dark:text-surface-900',
360
-
361
- // Transitions
362
- 'transition-all',
363
- 'duration-200'
364
- ]
365
- }
366
- },
367
- closeButton: {
368
- class: [
369
- 'relative',
370
-
371
- // Flexbox and Alignment
372
- 'flex items-center justify-center',
373
-
374
- // Size and Spacing
375
- 'mr-2',
376
- 'last:mr-0',
377
- 'w-8 h-8',
378
-
379
- // Shape
380
- 'border-0',
381
- 'rounded-full',
382
-
383
- // Colors
384
- 'text-surface-500',
385
- 'bg-transparent',
386
-
387
- // Transitions
388
- 'transition duration-200 ease-in-out',
389
-
390
- // States
391
- 'hover:text-surface-700 dark:hover:text-white/80',
392
- 'hover:bg-surface-100 dark:hover:bg-surface-800/80',
393
- 'focus:outline-none focus:outline-offset-0 focus:ring focus:ring-inset',
394
- 'focus:ring-primary-400/50 dark:focus:ring-primary-300/50',
395
-
396
- // Misc
397
- 'overflow-hidden'
398
- ]
399
- },
400
- closeButtonIcon: {
401
- class: 'w-4 h-4 inline-block'
402
- },
403
- wrapper: {
404
- class: [
405
- // Sizing
406
- 'max-h-[200px]',
407
-
408
- // Misc
409
- 'overflow-auto'
410
- ]
411
- },
412
- list: {
413
- class: 'py-3 list-none m-0'
414
- },
415
- item: ({ context }) => ({
416
- class: [
417
- // Font
418
- 'font-normal',
419
- 'leading-none',
420
-
421
- // Flexbox
422
- 'flex items-center',
423
-
424
- // Position
425
- 'relative',
426
-
427
- // Shape
428
- 'border-0',
429
- 'rounded-none',
430
-
431
- // Spacing
432
- 'm-0',
433
- 'py-3 px-5',
434
-
435
- // Color
436
- { 'text-surface-700 dark:text-white/80': !context.focused && !context.selected },
437
- { 'bg-surface-200 dark:bg-surface-600/60 text-surface-700 dark:text-white/80': context.focused && !context.selected },
438
- { 'bg-primary-100 dark:bg-primary-400/40 text-primary-700 dark:text-white/80': context.focused && context.selected },
439
- { 'bg-primary-50 dark:bg-primary-400/40 text-primary-700 dark:text-white/80': !context.focused && context.selected },
440
-
441
- //States
442
- { 'hover:bg-surface-100 dark:hover:bg-surface-600/80': !context.focused && !context.selected },
443
- { 'hover:text-surface-700 hover:bg-surface-100 dark:hover:text-white dark:hover:bg-surface-600/80': context.focused && !context.selected },
444
-
445
- // Transitions
446
- 'transition-shadow',
447
- 'duration-200',
448
-
449
- // Misc
450
- 'cursor-pointer',
451
- 'overflow-hidden',
452
- 'whitespace-nowrap'
453
- ]
454
- }),
455
- itemgroup: {
456
- class: [
457
- //Font
458
- 'font-bold',
459
-
460
- // Spacing
461
- 'm-0',
462
- 'p-3 px-5',
463
-
464
- // Color
465
- 'text-surface-800 dark:text-white/80',
466
- 'bg-surface-0 dark:bg-surface-600/80',
467
-
468
- // Misc
469
- 'cursor-auto'
470
- ]
471
- },
472
- filtercontainer: {
473
- class: 'relative w-full mx-2'
474
- },
475
- filterinput: {
476
- class: [
477
- // Font
478
- 'font-sans',
479
- 'leading-none',
480
-
481
- // Sizing
482
- 'pr-7 py-3 px-3',
483
- '-mr-7',
484
- 'w-full',
485
-
486
- //Color
487
- 'text-surface-700 dark:text-white/80',
488
- 'bg-surface-0 dark:bg-surface-900',
489
- 'border-surface-200 dark:border-surface-700',
490
- 'placeholder:text-surface-400 dark:placeholder:text-surface-500',
491
-
492
- // Shape
493
- 'border',
494
- 'rounded-lg',
495
- 'appearance-none',
496
-
497
- // Transitions
498
- 'transition',
499
- 'duration-200',
500
-
501
- // States
502
- 'hover:border-primary-500 dark:hover:border-primary-300',
503
- 'focus:ring focus:outline-none focus:outline-offset-0',
504
- 'focus:ring-primary-400/50 dark:focus:ring-primary-300/50',
505
-
506
- // Misc
507
- 'appearance-none'
508
- ]
509
- },
510
- filtericon: {
511
- class: ['absolute', 'top-1/2 right-3', '-mt-2']
512
- },
513
- clearicon: {
514
- class: [
515
- // Color
516
- 'text-surface-500',
517
-
518
- // Position
519
- 'absolute',
520
- 'top-1/2',
521
- 'right-12',
522
-
523
- // Spacing
524
- '-mt-2'
525
- ]
526
- },
527
- emptymessage: {
528
- class: [
529
- // Font
530
- 'leading-none',
531
-
532
- // Spacing
533
- 'py-3 px-5',
534
-
535
- // Color
536
- 'text-surface-800 dark:text-white/80',
537
- 'bg-transparent'
538
- ]
539
- },
540
- transition: {
541
- enterFromClass: 'opacity-0 scale-y-[0.8]',
542
- enterActiveClass: 'transition-[transform,opacity] duration-[120ms] ease-[cubic-bezier(0,0,0.2,1)]',
543
- leaveActiveClass: 'transition-opacity duration-100 ease-linear',
544
- leaveToClass: 'opacity-0'
545
- }
546
- };
@@ -1,99 +0,0 @@
1
- declare namespace _default {
2
- namespace root {
3
- let _class: string[];
4
- export { _class as class };
5
- }
6
- namespace controls {
7
- let _class_1: string[];
8
- export { _class_1 as class };
9
- }
10
- namespace moveupbutton {
11
- export function root_1({ context }: {
12
- context: any;
13
- }): {
14
- class: (string | {
15
- 'cursor-default pointer-events-none opacity-60': any;
16
- })[];
17
- };
18
- export { root_1 as root };
19
- export namespace label {
20
- let _class_2: string[];
21
- export { _class_2 as class };
22
- }
23
- }
24
- namespace movedownbutton {
25
- export function root_2({ context }: {
26
- context: any;
27
- }): {
28
- class: (string | {
29
- 'cursor-default pointer-events-none opacity-60': any;
30
- })[];
31
- };
32
- export { root_2 as root };
33
- export namespace label_1 {
34
- let _class_3: string[];
35
- export { _class_3 as class };
36
- }
37
- export { label_1 as label };
38
- }
39
- namespace movetopbutton {
40
- export function root_3({ context }: {
41
- context: any;
42
- }): {
43
- class: (string | {
44
- 'cursor-default pointer-events-none opacity-60': any;
45
- })[];
46
- };
47
- export { root_3 as root };
48
- export namespace label_2 {
49
- let _class_4: string[];
50
- export { _class_4 as class };
51
- }
52
- export { label_2 as label };
53
- }
54
- namespace movebottombutton {
55
- export function root_4({ context }: {
56
- context: any;
57
- }): {
58
- class: (string | {
59
- 'cursor-default pointer-events-none opacity-60': any;
60
- })[];
61
- };
62
- export { root_4 as root };
63
- export namespace label_3 {
64
- let _class_5: string[];
65
- export { _class_5 as class };
66
- }
67
- export { label_3 as label };
68
- }
69
- namespace container {
70
- let _class_6: string[];
71
- export { _class_6 as class };
72
- }
73
- namespace header {
74
- let _class_7: string[];
75
- export { _class_7 as class };
76
- }
77
- namespace list {
78
- let _class_8: string[];
79
- export { _class_8 as class };
80
- }
81
- function item({ context }: {
82
- context: any;
83
- }): {
84
- class: (string | {
85
- 'bg-primary-500/20 dark:bg-primary-300/20': any;
86
- 'bg-primary-500/30 dark:bg-primary-400/30'?: undefined;
87
- 'bg-surface-100 dark:bg-surface-700/70'?: undefined;
88
- } | {
89
- 'bg-primary-500/30 dark:bg-primary-400/30': any;
90
- 'bg-primary-500/20 dark:bg-primary-300/20'?: undefined;
91
- 'bg-surface-100 dark:bg-surface-700/70'?: undefined;
92
- } | {
93
- 'bg-surface-100 dark:bg-surface-700/70': any;
94
- 'bg-primary-500/20 dark:bg-primary-300/20'?: undefined;
95
- 'bg-primary-500/30 dark:bg-primary-400/30'?: undefined;
96
- })[];
97
- };
98
- }
99
- export default _default;