@gluhar/theme 2.0.0-dev.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 (206) hide show
  1. package/CHANGELOG.md +147 -0
  2. package/README.md +162 -0
  3. package/dist/module.cjs +5 -0
  4. package/dist/module.d.mts +13 -0
  5. package/dist/module.d.ts +13 -0
  6. package/dist/module.json +9 -0
  7. package/dist/module.mjs +34 -0
  8. package/dist/runtime/composables/useTheme.d.ts +10 -0
  9. package/dist/runtime/composables/useTheme.js +29 -0
  10. package/dist/runtime/fonts/object-sans/PPObjectSans-Heavy.otf +0 -0
  11. package/dist/runtime/fonts/object-sans/PPObjectSans-HeavySlanted.otf +0 -0
  12. package/dist/runtime/fonts/object-sans/PPObjectSans-Regular.otf +0 -0
  13. package/dist/runtime/fonts/object-sans/PPObjectSans-Slanted.otf +0 -0
  14. package/dist/runtime/fonts/object-sans/stylesheet.css +1 -0
  15. package/dist/runtime/presets/lara/accordion/index.d.ts +49 -0
  16. package/dist/runtime/presets/lara/accordion/index.js +78 -0
  17. package/dist/runtime/presets/lara/autocomplete/index.d.ts +200 -0
  18. package/dist/runtime/presets/lara/autocomplete/index.js +259 -0
  19. package/dist/runtime/presets/lara/avatar/index.d.ts +83 -0
  20. package/dist/runtime/presets/lara/avatar/index.js +43 -0
  21. package/dist/runtime/presets/lara/avatargroup/index.d.ts +7 -0
  22. package/dist/runtime/presets/lara/avatargroup/index.js +5 -0
  23. package/dist/runtime/presets/lara/badge/index.d.ts +72 -0
  24. package/dist/runtime/presets/lara/badge/index.js +43 -0
  25. package/dist/runtime/presets/lara/badgedirective/index.d.ts +50 -0
  26. package/dist/runtime/presets/lara/badgedirective/index.js +43 -0
  27. package/dist/runtime/presets/lara/blockui/index.d.ts +11 -0
  28. package/dist/runtime/presets/lara/blockui/index.js +8 -0
  29. package/dist/runtime/presets/lara/breadcrumb/index.d.ts +23 -0
  30. package/dist/runtime/presets/lara/breadcrumb/index.js +64 -0
  31. package/dist/runtime/presets/lara/button/index.d.ts +3790 -0
  32. package/dist/runtime/presets/lara/button/index.js +220 -0
  33. package/dist/runtime/presets/lara/calendar/index.d.ts +334 -0
  34. package/dist/runtime/presets/lara/calendar/index.js +643 -0
  35. package/dist/runtime/presets/lara/card/index.d.ts +27 -0
  36. package/dist/runtime/presets/lara/card/index.js +37 -0
  37. package/dist/runtime/presets/lara/carousel/index.d.ts +71 -0
  38. package/dist/runtime/presets/lara/carousel/index.js +149 -0
  39. package/dist/runtime/presets/lara/cascadeselect/index.d.ts +112 -0
  40. package/dist/runtime/presets/lara/cascadeselect/index.js +209 -0
  41. package/dist/runtime/presets/lara/checkbox/index.d.ts +45 -0
  42. package/dist/runtime/presets/lara/checkbox/index.js +101 -0
  43. package/dist/runtime/presets/lara/chip/index.d.ts +23 -0
  44. package/dist/runtime/presets/lara/chip/index.js +45 -0
  45. package/dist/runtime/presets/lara/chips/index.d.ts +56 -0
  46. package/dist/runtime/presets/lara/chips/index.js +114 -0
  47. package/dist/runtime/presets/lara/colorpicker/index.d.ts +51 -0
  48. package/dist/runtime/presets/lara/colorpicker/index.js +123 -0
  49. package/dist/runtime/presets/lara/confirmpopup/index.d.ts +39 -0
  50. package/dist/runtime/presets/lara/confirmpopup/index.js +106 -0
  51. package/dist/runtime/presets/lara/contextmenu/index.d.ts +72 -0
  52. package/dist/runtime/presets/lara/contextmenu/index.js +125 -0
  53. package/dist/runtime/presets/lara/datatable/index.d.ts +695 -0
  54. package/dist/runtime/presets/lara/datatable/index.js +1170 -0
  55. package/dist/runtime/presets/lara/dataview/index.d.ts +15 -0
  56. package/dist/runtime/presets/lara/dataview/index.js +40 -0
  57. package/dist/runtime/presets/lara/dataviewlayoutoptions/index.d.ts +13 -0
  58. package/dist/runtime/presets/lara/dataviewlayoutoptions/index.js +62 -0
  59. package/dist/runtime/presets/lara/deferred/index.d.ts +4 -0
  60. package/dist/runtime/presets/lara/deferred/index.js +3 -0
  61. package/dist/runtime/presets/lara/dialog/index.d.ts +79 -0
  62. package/dist/runtime/presets/lara/dialog/index.js +235 -0
  63. package/dist/runtime/presets/lara/divider/index.d.ts +192 -0
  64. package/dist/runtime/presets/lara/divider/index.js +67 -0
  65. package/dist/runtime/presets/lara/dock/index.d.ts +51 -0
  66. package/dist/runtime/presets/lara/dock/index.js +93 -0
  67. package/dist/runtime/presets/lara/dropdown/index.d.ts +207 -0
  68. package/dist/runtime/presets/lara/dropdown/index.js +265 -0
  69. package/dist/runtime/presets/lara/fieldset/index.d.ts +87 -0
  70. package/dist/runtime/presets/lara/fieldset/index.js +84 -0
  71. package/dist/runtime/presets/lara/fileupload/index.d.ts +70 -0
  72. package/dist/runtime/presets/lara/fileupload/index.js +173 -0
  73. package/dist/runtime/presets/lara/floatlabel/index.d.ts +7 -0
  74. package/dist/runtime/presets/lara/floatlabel/index.js +26 -0
  75. package/dist/runtime/presets/lara/galleria/index.d.ts +194 -0
  76. package/dist/runtime/presets/lara/galleria/index.js +306 -0
  77. package/dist/runtime/presets/lara/global.d.ts +4 -0
  78. package/dist/runtime/presets/lara/global.js +90 -0
  79. package/dist/runtime/presets/lara/iconfield/index.d.ts +18 -0
  80. package/dist/runtime/presets/lara/iconfield/index.js +22 -0
  81. package/dist/runtime/presets/lara/image/index.d.ts +65 -0
  82. package/dist/runtime/presets/lara/image/index.js +206 -0
  83. package/dist/runtime/presets/lara/index.d.ts +187 -0
  84. package/dist/runtime/presets/lara/index.js +207 -0
  85. package/dist/runtime/presets/lara/inlinemessage/index.d.ts +55 -0
  86. package/dist/runtime/presets/lara/inlinemessage/index.js +36 -0
  87. package/dist/runtime/presets/lara/inplace/index.d.ts +7 -0
  88. package/dist/runtime/presets/lara/inplace/index.js +27 -0
  89. package/dist/runtime/presets/lara/inputgroup/index.d.ts +7 -0
  90. package/dist/runtime/presets/lara/inputgroup/index.js +5 -0
  91. package/dist/runtime/presets/lara/inputgroupaddon/index.d.ts +7 -0
  92. package/dist/runtime/presets/lara/inputgroupaddon/index.js +28 -0
  93. package/dist/runtime/presets/lara/inputmask/index.d.ts +27 -0
  94. package/dist/runtime/presets/lara/inputmask/index.js +34 -0
  95. package/dist/runtime/presets/lara/inputnumber/index.d.ts +390 -0
  96. package/dist/runtime/presets/lara/inputnumber/index.js +164 -0
  97. package/dist/runtime/presets/lara/inputotp/index.d.ts +147 -0
  98. package/dist/runtime/presets/lara/inputotp/index.js +60 -0
  99. package/dist/runtime/presets/lara/inputswitch/index.d.ts +67 -0
  100. package/dist/runtime/presets/lara/inputswitch/index.js +80 -0
  101. package/dist/runtime/presets/lara/inputtext/index.d.ts +160 -0
  102. package/dist/runtime/presets/lara/inputtext/index.js +49 -0
  103. package/dist/runtime/presets/lara/knob/index.d.ts +22 -0
  104. package/dist/runtime/presets/lara/knob/index.js +44 -0
  105. package/dist/runtime/presets/lara/listbox/index.d.ts +93 -0
  106. package/dist/runtime/presets/lara/listbox/index.js +152 -0
  107. package/dist/runtime/presets/lara/megamenu/index.d.ts +105 -0
  108. package/dist/runtime/presets/lara/megamenu/index.js +199 -0
  109. package/dist/runtime/presets/lara/menu/index.d.ts +40 -0
  110. package/dist/runtime/presets/lara/menu/index.js +96 -0
  111. package/dist/runtime/presets/lara/menubar/index.d.ts +85 -0
  112. package/dist/runtime/presets/lara/menubar/index.js +176 -0
  113. package/dist/runtime/presets/lara/message/index.d.ts +70 -0
  114. package/dist/runtime/presets/lara/message/index.js +87 -0
  115. package/dist/runtime/presets/lara/metergroup/index.d.ts +92 -0
  116. package/dist/runtime/presets/lara/metergroup/index.js +97 -0
  117. package/dist/runtime/presets/lara/multiselect/index.d.ts +260 -0
  118. package/dist/runtime/presets/lara/multiselect/index.js +546 -0
  119. package/dist/runtime/presets/lara/orderlist/index.d.ts +99 -0
  120. package/dist/runtime/presets/lara/orderlist/index.js +257 -0
  121. package/dist/runtime/presets/lara/organizationchart/index.d.ts +81 -0
  122. package/dist/runtime/presets/lara/organizationchart/index.js +138 -0
  123. package/dist/runtime/presets/lara/overlaypanel/index.d.ts +17 -0
  124. package/dist/runtime/presets/lara/overlaypanel/index.js +40 -0
  125. package/dist/runtime/presets/lara/paginator/index.d.ts +280 -0
  126. package/dist/runtime/presets/lara/paginator/index.js +533 -0
  127. package/dist/runtime/presets/lara/panel/index.d.ts +39 -0
  128. package/dist/runtime/presets/lara/panel/index.js +91 -0
  129. package/dist/runtime/presets/lara/panelmenu/index.d.ts +76 -0
  130. package/dist/runtime/presets/lara/panelmenu/index.js +127 -0
  131. package/dist/runtime/presets/lara/password/index.d.ts +181 -0
  132. package/dist/runtime/presets/lara/password/index.js +118 -0
  133. package/dist/runtime/presets/lara/picklist/index.d.ts +245 -0
  134. package/dist/runtime/presets/lara/picklist/index.js +650 -0
  135. package/dist/runtime/presets/lara/progressbar/index.d.ts +44 -0
  136. package/dist/runtime/presets/lara/progressbar/index.js +55 -0
  137. package/dist/runtime/presets/lara/progressspinner/index.d.ts +15 -0
  138. package/dist/runtime/presets/lara/progressspinner/index.js +51 -0
  139. package/dist/runtime/presets/lara/radiobutton/index.d.ts +57 -0
  140. package/dist/runtime/presets/lara/radiobutton/index.js +104 -0
  141. package/dist/runtime/presets/lara/rating/index.d.ts +49 -0
  142. package/dist/runtime/presets/lara/rating/index.js +92 -0
  143. package/dist/runtime/presets/lara/ripple/index.d.ts +8 -0
  144. package/dist/runtime/presets/lara/ripple/index.js +6 -0
  145. package/dist/runtime/presets/lara/scrollpanel/index.d.ts +19 -0
  146. package/dist/runtime/presets/lara/scrollpanel/index.js +77 -0
  147. package/dist/runtime/presets/lara/scrolltop/index.d.ts +50 -0
  148. package/dist/runtime/presets/lara/scrolltop/index.js +41 -0
  149. package/dist/runtime/presets/lara/selectbutton/index.d.ts +56 -0
  150. package/dist/runtime/presets/lara/selectbutton/index.js +49 -0
  151. package/dist/runtime/presets/lara/sidebar/index.d.ts +66 -0
  152. package/dist/runtime/presets/lara/sidebar/index.js +149 -0
  153. package/dist/runtime/presets/lara/skeleton/index.d.ts +16 -0
  154. package/dist/runtime/presets/lara/skeleton/index.js +16 -0
  155. package/dist/runtime/presets/lara/slider/index.d.ts +55 -0
  156. package/dist/runtime/presets/lara/slider/index.js +137 -0
  157. package/dist/runtime/presets/lara/speeddial/index.d.ts +3091 -0
  158. package/dist/runtime/presets/lara/speeddial/index.js +283 -0
  159. package/dist/runtime/presets/lara/splitbutton/index.d.ts +6749 -0
  160. package/dist/runtime/presets/lara/splitbutton/index.js +502 -0
  161. package/dist/runtime/presets/lara/splitter/index.d.ts +30 -0
  162. package/dist/runtime/presets/lara/splitter/index.js +61 -0
  163. package/dist/runtime/presets/lara/splitterpanel/index.d.ts +10 -0
  164. package/dist/runtime/presets/lara/splitterpanel/index.js +5 -0
  165. package/dist/runtime/presets/lara/stepper/index.d.ts +66 -0
  166. package/dist/runtime/presets/lara/stepper/index.js +161 -0
  167. package/dist/runtime/presets/lara/steps/index.d.ts +57 -0
  168. package/dist/runtime/presets/lara/steps/index.js +111 -0
  169. package/dist/runtime/presets/lara/tabmenu/index.d.ts +43 -0
  170. package/dist/runtime/presets/lara/tabmenu/index.js +73 -0
  171. package/dist/runtime/presets/lara/tabview/index.d.ts +67 -0
  172. package/dist/runtime/presets/lara/tabview/index.js +156 -0
  173. package/dist/runtime/presets/lara/tag/index.d.ts +32 -0
  174. package/dist/runtime/presets/lara/tag/index.js +36 -0
  175. package/dist/runtime/presets/lara/terminal/index.d.ts +27 -0
  176. package/dist/runtime/presets/lara/terminal/index.js +60 -0
  177. package/dist/runtime/presets/lara/textarea/index.d.ts +27 -0
  178. package/dist/runtime/presets/lara/textarea/index.js +36 -0
  179. package/dist/runtime/presets/lara/tieredmenu/index.d.ts +56 -0
  180. package/dist/runtime/presets/lara/tieredmenu/index.js +120 -0
  181. package/dist/runtime/presets/lara/timeline/index.d.ts +84 -0
  182. package/dist/runtime/presets/lara/timeline/index.js +81 -0
  183. package/dist/runtime/presets/lara/toast/index.d.ts +92 -0
  184. package/dist/runtime/presets/lara/toast/index.js +102 -0
  185. package/dist/runtime/presets/lara/togglebutton/index.d.ts +72 -0
  186. package/dist/runtime/presets/lara/togglebutton/index.js +91 -0
  187. package/dist/runtime/presets/lara/toolbar/index.d.ts +19 -0
  188. package/dist/runtime/presets/lara/toolbar/index.js +28 -0
  189. package/dist/runtime/presets/lara/tooltip/index.d.ts +38 -0
  190. package/dist/runtime/presets/lara/tooltip/index.js +46 -0
  191. package/dist/runtime/presets/lara/tree/index.d.ts +105 -0
  192. package/dist/runtime/presets/lara/tree/index.js +258 -0
  193. package/dist/runtime/presets/lara/treeselect/index.d.ts +181 -0
  194. package/dist/runtime/presets/lara/treeselect/index.js +352 -0
  195. package/dist/runtime/presets/lara/treetable/index.d.ts +316 -0
  196. package/dist/runtime/presets/lara/treetable/index.js +434 -0
  197. package/dist/runtime/presets/lara/tristatecheckbox/index.d.ts +49 -0
  198. package/dist/runtime/presets/lara/tristatecheckbox/index.js +104 -0
  199. package/dist/runtime/styles/core.css +27 -0
  200. package/dist/runtime/tailwind/gluharTheme.d.ts +3 -0
  201. package/dist/runtime/tailwind/gluharTheme.js +52 -0
  202. package/dist/runtime/tailwind/handleTailwind.d.ts +3 -0
  203. package/dist/runtime/tailwind/handleTailwind.js +22 -0
  204. package/dist/types.d.mts +7 -0
  205. package/dist/types.d.ts +7 -0
  206. package/package.json +56 -0
@@ -0,0 +1,546 @@
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
+ };
@@ -0,0 +1,99 @@
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;