@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,352 @@
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: {
37
+ class: [
38
+ 'block leading-5',
39
+
40
+ // Space
41
+ 'p-3',
42
+
43
+ // Color
44
+ 'text-surface-800 dark:text-white/80',
45
+
46
+ // Transition
47
+ 'transition duration-200',
48
+
49
+ // Misc
50
+ 'overflow-hidden whitespace-nowrap cursor-pointer overflow-ellipsis'
51
+ ]
52
+ },
53
+ trigger: {
54
+ class: [
55
+ // Flexbox
56
+ 'flex items-center justify-center',
57
+ 'shrink-0',
58
+
59
+ // Color and Background
60
+ 'bg-transparent',
61
+ 'text-surface-500',
62
+
63
+ // Size
64
+ 'w-12',
65
+
66
+ // Shape
67
+ 'rounded-tr-md',
68
+ 'rounded-br-md'
69
+ ]
70
+ },
71
+ panel: {
72
+ class: [
73
+ // Position
74
+ 'absolute top-0 left-0',
75
+
76
+ // Shape
77
+ 'border-0 dark:border',
78
+ 'rounded-md',
79
+ 'shadow-md',
80
+
81
+ // Color
82
+ 'bg-surface-0 dark:bg-surface-800',
83
+ 'text-surface-800 dark:text-white/80',
84
+ 'dark:border-surface-700'
85
+ ]
86
+ },
87
+ wrapper: {
88
+ class: [
89
+ // Sizing
90
+ 'max-h-[200px]',
91
+
92
+ // Misc
93
+ 'overflow-auto'
94
+ ]
95
+ },
96
+ tree: {
97
+ root: {
98
+ class: [
99
+ // Space
100
+ 'p-5'
101
+ ]
102
+ },
103
+ wrapper: {
104
+ class: ['overflow-auto']
105
+ },
106
+ container: {
107
+ class: [
108
+ // Spacing
109
+ 'm-0 p-0',
110
+
111
+ // Misc
112
+ 'list-none overflow-auto'
113
+ ]
114
+ },
115
+ node: {
116
+ class: ['p-1', 'rounded-md', 'focus:outline-none focus:outline-offset-0 focus:ring focus:ring-inset focus:ring-primary-400/50 dark:focus:ring-primary-300/50']
117
+ },
118
+ content: ({ context, props }) => ({
119
+ class: [
120
+ // Flex and Alignment
121
+ 'flex items-center',
122
+
123
+ // Shape
124
+ 'rounded-md',
125
+
126
+ // Spacing
127
+ 'p-2',
128
+
129
+ // Colors
130
+ 'text-surface-600 dark:text-white/70',
131
+ { 'bg-primary-50 dark:bg-primary-400/30 text-primary-600 dark:text-surface-0': context.selected },
132
+
133
+ // States
134
+ { 'hover:bg-surface-50 dark:hover:bg-surface-700/40': (props.selectionMode == 'single' || props.selectionMode == 'multiple') && !context.selected },
135
+
136
+ // Transition
137
+ 'transition-shadow duration-200',
138
+
139
+ { 'cursor-pointer select-none': props.selectionMode == 'single' || props.selectionMode == 'multiple' }
140
+ ]
141
+ }),
142
+ toggler: ({ context }) => ({
143
+ class: [
144
+ // Flex and Alignment
145
+ 'inline-flex items-center justify-center',
146
+
147
+ // Shape
148
+ 'border-0 rounded-full',
149
+
150
+ // Size
151
+ 'w-8 h-8',
152
+
153
+ // Spacing
154
+ 'mr-2',
155
+
156
+ // Colors
157
+ 'bg-transparent',
158
+ {
159
+ 'text-surface-500 dark:text-white': !context.selected,
160
+ 'text-primary-600 dark:text-white': context.selected,
161
+ invisible: context.leaf
162
+ },
163
+
164
+ // States
165
+ 'hover:bg-surface-200/20 dark:hover:bg-surface-500/20',
166
+ 'focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-400/50 dark:focus:ring-primary-300/50',
167
+
168
+ // Transition
169
+ 'transition duration-200',
170
+
171
+ // Misc
172
+ 'cursor-pointer select-none'
173
+ ]
174
+ }),
175
+ nodeCheckbox: ({ props, context, instance }) => ({
176
+ root: {
177
+ class: [
178
+ 'relative',
179
+
180
+ // Alignment
181
+ 'inline-flex',
182
+ 'align-bottom',
183
+
184
+ // Size
185
+ 'w-6',
186
+ 'h-6',
187
+
188
+ // Spacing
189
+ 'mr-2',
190
+
191
+ // Misc
192
+ 'cursor-pointer',
193
+ 'select-none'
194
+ ]
195
+ },
196
+ box: {
197
+ class: [
198
+ // Alignment
199
+ 'flex',
200
+ 'items-center',
201
+ 'justify-center',
202
+
203
+ // Size
204
+ 'w-6',
205
+ 'h-6',
206
+
207
+ // Shape
208
+ 'rounded-md',
209
+ 'border-2',
210
+
211
+ // Colors
212
+ {
213
+ 'border-surface-200 bg-surface-0 dark:border-surface-700 dark:bg-surface-900': !context.checked,
214
+ 'border-primary-500 bg-primary-500 dark:border-primary-400 dark:bg-primary-400': context.checked
215
+ },
216
+
217
+ // States
218
+ {
219
+ 'peer-hover:border-primary-500 dark:peer-hover:border-primary-400': !props.disabled && !context.checked,
220
+ '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,
221
+ '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,
222
+ 'cursor-default opacity-60': props.disabled
223
+ },
224
+
225
+ // Transitions
226
+ 'transition-colors',
227
+ 'duration-200'
228
+ ]
229
+ },
230
+ input: {
231
+ class: [
232
+ 'peer',
233
+
234
+ // Size
235
+ 'w-full ',
236
+ 'h-full',
237
+
238
+ // Position
239
+ 'absolute',
240
+ 'top-0 left-0',
241
+ 'z-10',
242
+
243
+ // Spacing
244
+ 'p-0',
245
+ 'm-0',
246
+
247
+ // Shape
248
+ 'opacity-0',
249
+ 'rounded-md',
250
+ 'outline-none',
251
+ 'border-2 border-surface-200 dark:border-surface-700',
252
+
253
+ // Misc
254
+ 'appearance-none',
255
+ 'cursor-pointer'
256
+ ]
257
+ },
258
+ icon: {
259
+ class: [
260
+ // Font
261
+ 'text-base leading-none',
262
+
263
+ // Size
264
+ 'w-4',
265
+ 'h-4',
266
+
267
+ // Colors
268
+ {
269
+ 'text-white dark:text-surface-900': !instance.partialChecked,
270
+ 'text-gray dark:text-white': instance.partialChecked
271
+ },
272
+
273
+ // Transitions
274
+ 'transition-all',
275
+ 'duration-200'
276
+ ]
277
+ }
278
+ }),
279
+ nodeicon: {
280
+ class: [
281
+ // Space
282
+ 'mr-2',
283
+
284
+ // Color
285
+ 'text-surface-600 dark:text-white/70'
286
+ ]
287
+ },
288
+ subgroup: {
289
+ class: ['m-0 list-none p-0 pl-2 mt-1']
290
+ },
291
+ filtercontainer: {
292
+ class: [
293
+ 'relative block',
294
+
295
+ // Space
296
+ 'mb-2',
297
+
298
+ // Size
299
+ 'w-full'
300
+ ]
301
+ },
302
+ input: {
303
+ class: [
304
+ 'relative',
305
+ // Font
306
+ 'font-sans leading-none',
307
+
308
+ // Spacing
309
+ 'm-0',
310
+ 'p-3 pr-10',
311
+
312
+ // Size
313
+ 'w-full',
314
+
315
+ // Shape
316
+ 'rounded-md',
317
+
318
+ // Colors
319
+ 'text-surface-600 dark:text-surface-200',
320
+ 'placeholder:text-surface-400 dark:placeholder:text-surface-500',
321
+ 'bg-surface-0 dark:bg-surface-900',
322
+ 'border border-surface-300 dark:border-surface-600',
323
+
324
+ // States
325
+ 'hover:border-primary-500 dark:hover:border-primary-400',
326
+ 'focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-500/50 dark:focus:ring-primary-400/50',
327
+
328
+ // Transition & Misc
329
+ 'appearance-none',
330
+ 'transition-colors duration-200'
331
+ ]
332
+ },
333
+ loadingicon: {
334
+ class: ['text-surface-500 dark:text-surface-0/70', 'absolute top-[50%] right-[50%] -mt-2 -mr-2 animate-spin']
335
+ },
336
+ searchicon: {
337
+ class: [
338
+ // Position
339
+ 'absolute top-1/2 -mt-2 right-3',
340
+
341
+ // Color
342
+ 'text-surface-600 dark:hover:text-white/70'
343
+ ]
344
+ }
345
+ },
346
+ transition: {
347
+ enterFromClass: 'opacity-0 scale-y-[0.8]',
348
+ enterActiveClass: 'transition-[transform,opacity] duration-[120ms] ease-[cubic-bezier(0,0,0.2,1)]',
349
+ leaveActiveClass: 'transition-opacity duration-100 ease-linear',
350
+ leaveToClass: 'opacity-0'
351
+ }
352
+ };
@@ -0,0 +1,316 @@
1
+ declare namespace _default {
2
+ function root({ props }: {
3
+ props: any;
4
+ }): {
5
+ class: (string | {
6
+ 'flex flex-col h-full': boolean;
7
+ })[];
8
+ };
9
+ namespace loadingoverlay {
10
+ let _class: string[];
11
+ export { _class as class };
12
+ }
13
+ namespace loadingicon {
14
+ let _class_1: string;
15
+ export { _class_1 as class };
16
+ }
17
+ function wrapper({ props }: {
18
+ props: any;
19
+ }): {
20
+ class: {
21
+ 'relative overflow-auto': any;
22
+ 'overflow-x-auto': any;
23
+ }[];
24
+ };
25
+ function header({ props }: {
26
+ props: any;
27
+ }): {
28
+ class: string[];
29
+ };
30
+ namespace footer {
31
+ let _class_2: string[];
32
+ export { _class_2 as class };
33
+ }
34
+ namespace table {
35
+ let _class_3: string[];
36
+ export { _class_3 as class };
37
+ }
38
+ function thead({ props }: {
39
+ props: any;
40
+ }): {
41
+ class: {
42
+ 'top-0 z-40 sticky': any;
43
+ }[];
44
+ };
45
+ function tbody({ props }: {
46
+ props: any;
47
+ }): {
48
+ class: {
49
+ block: any;
50
+ }[];
51
+ };
52
+ function tfoot({ props }: {
53
+ props: any;
54
+ }): {
55
+ class: {
56
+ block: any;
57
+ }[];
58
+ };
59
+ function headerrow({ props }: {
60
+ props: any;
61
+ }): {
62
+ class: {
63
+ 'flex flex-nowrap w-full': any;
64
+ }[];
65
+ };
66
+ function row({ context, props }: {
67
+ context: any;
68
+ props: any;
69
+ }): {
70
+ class: (string | {
71
+ 'flex flex-nowrap w-full': any;
72
+ 'bg-primary-50 text-primary-700 dark:bg-primary-400/30'?: undefined;
73
+ 'bg-surface-0 text-surface-600 dark:bg-surface-800'?: undefined;
74
+ 'hover:bg-surface-300/20 hover:text-surface-600'?: undefined;
75
+ 'transition duration-200'?: undefined;
76
+ } | {
77
+ 'bg-primary-50 text-primary-700 dark:bg-primary-400/30': any;
78
+ 'flex flex-nowrap w-full'?: undefined;
79
+ 'bg-surface-0 text-surface-600 dark:bg-surface-800'?: undefined;
80
+ 'hover:bg-surface-300/20 hover:text-surface-600'?: undefined;
81
+ 'transition duration-200'?: undefined;
82
+ } | {
83
+ 'bg-surface-0 text-surface-600 dark:bg-surface-800': boolean;
84
+ 'flex flex-nowrap w-full'?: undefined;
85
+ 'bg-primary-50 text-primary-700 dark:bg-primary-400/30'?: undefined;
86
+ 'hover:bg-surface-300/20 hover:text-surface-600'?: undefined;
87
+ 'transition duration-200'?: undefined;
88
+ } | {
89
+ 'hover:bg-surface-300/20 hover:text-surface-600': any;
90
+ 'flex flex-nowrap w-full'?: undefined;
91
+ 'bg-primary-50 text-primary-700 dark:bg-primary-400/30'?: undefined;
92
+ 'bg-surface-0 text-surface-600 dark:bg-surface-800'?: undefined;
93
+ 'transition duration-200'?: undefined;
94
+ } | {
95
+ 'transition duration-200': any;
96
+ 'flex flex-nowrap w-full'?: undefined;
97
+ 'bg-primary-50 text-primary-700 dark:bg-primary-400/30'?: undefined;
98
+ 'bg-surface-0 text-surface-600 dark:bg-surface-800'?: undefined;
99
+ 'hover:bg-surface-300/20 hover:text-surface-600'?: undefined;
100
+ })[];
101
+ };
102
+ function headercell({ context, props }: {
103
+ context: any;
104
+ props: any;
105
+ }): {
106
+ class: (string | {
107
+ 'sticky z-40': any;
108
+ 'flex flex-1 items-center'?: undefined;
109
+ 'flex-initial shrink-0'?: undefined;
110
+ 'first:border-l border-y border-r'?: undefined;
111
+ 'hover:bg-surface-100 dark:hover:bg-surface-400/30'?: undefined;
112
+ 'transition duration-200'?: undefined;
113
+ 'overflow-hidden relative bg-clip-padding'?: undefined;
114
+ } | {
115
+ 'flex flex-1 items-center': any;
116
+ 'flex-initial shrink-0': any;
117
+ 'sticky z-40'?: undefined;
118
+ 'first:border-l border-y border-r'?: undefined;
119
+ 'hover:bg-surface-100 dark:hover:bg-surface-400/30'?: undefined;
120
+ 'transition duration-200'?: undefined;
121
+ 'overflow-hidden relative bg-clip-padding'?: undefined;
122
+ } | {
123
+ 'first:border-l border-y border-r': any;
124
+ 'sticky z-40'?: undefined;
125
+ 'flex flex-1 items-center'?: undefined;
126
+ 'flex-initial shrink-0'?: undefined;
127
+ 'hover:bg-surface-100 dark:hover:bg-surface-400/30'?: undefined;
128
+ 'transition duration-200'?: undefined;
129
+ 'overflow-hidden relative bg-clip-padding'?: undefined;
130
+ } | {
131
+ 'hover:bg-surface-100 dark:hover:bg-surface-400/30': any;
132
+ 'sticky z-40'?: undefined;
133
+ 'flex flex-1 items-center'?: undefined;
134
+ 'flex-initial shrink-0'?: undefined;
135
+ 'first:border-l border-y border-r'?: undefined;
136
+ 'transition duration-200'?: undefined;
137
+ 'overflow-hidden relative bg-clip-padding'?: undefined;
138
+ } | {
139
+ 'transition duration-200': any;
140
+ 'sticky z-40'?: undefined;
141
+ 'flex flex-1 items-center'?: undefined;
142
+ 'flex-initial shrink-0'?: undefined;
143
+ 'first:border-l border-y border-r'?: undefined;
144
+ 'hover:bg-surface-100 dark:hover:bg-surface-400/30'?: undefined;
145
+ 'overflow-hidden relative bg-clip-padding'?: undefined;
146
+ } | {
147
+ 'overflow-hidden relative bg-clip-padding': any;
148
+ 'sticky z-40'?: undefined;
149
+ 'flex flex-1 items-center'?: undefined;
150
+ 'flex-initial shrink-0'?: undefined;
151
+ 'first:border-l border-y border-r'?: undefined;
152
+ 'hover:bg-surface-100 dark:hover:bg-surface-400/30'?: undefined;
153
+ 'transition duration-200'?: undefined;
154
+ })[];
155
+ };
156
+ namespace column {
157
+ export function headercell_1({ context, props }: {
158
+ context: any;
159
+ props: any;
160
+ }): {
161
+ class: (string | {
162
+ 'sticky z-40': any;
163
+ 'flex flex-1 items-center'?: undefined;
164
+ 'flex-initial shrink-0'?: undefined;
165
+ 'first:border-l border-y border-r'?: undefined;
166
+ 'hover:bg-surface-100 dark:hover:bg-surface-400/30'?: undefined;
167
+ 'transition duration-200'?: undefined;
168
+ 'overflow-hidden relative bg-clip-padding'?: undefined;
169
+ } | {
170
+ 'flex flex-1 items-center': any;
171
+ 'flex-initial shrink-0': any;
172
+ 'sticky z-40'?: undefined;
173
+ 'first:border-l border-y border-r'?: undefined;
174
+ 'hover:bg-surface-100 dark:hover:bg-surface-400/30'?: undefined;
175
+ 'transition duration-200'?: undefined;
176
+ 'overflow-hidden relative bg-clip-padding'?: undefined;
177
+ } | {
178
+ 'first:border-l border-y border-r': any;
179
+ 'sticky z-40'?: undefined;
180
+ 'flex flex-1 items-center'?: undefined;
181
+ 'flex-initial shrink-0'?: undefined;
182
+ 'hover:bg-surface-100 dark:hover:bg-surface-400/30'?: undefined;
183
+ 'transition duration-200'?: undefined;
184
+ 'overflow-hidden relative bg-clip-padding'?: undefined;
185
+ } | {
186
+ 'hover:bg-surface-100 dark:hover:bg-surface-400/30': any;
187
+ 'sticky z-40'?: undefined;
188
+ 'flex flex-1 items-center'?: undefined;
189
+ 'flex-initial shrink-0'?: undefined;
190
+ 'first:border-l border-y border-r'?: undefined;
191
+ 'transition duration-200'?: undefined;
192
+ 'overflow-hidden relative bg-clip-padding'?: undefined;
193
+ } | {
194
+ 'transition duration-200': any;
195
+ 'sticky z-40'?: undefined;
196
+ 'flex flex-1 items-center'?: undefined;
197
+ 'flex-initial shrink-0'?: undefined;
198
+ 'first:border-l border-y border-r'?: undefined;
199
+ 'hover:bg-surface-100 dark:hover:bg-surface-400/30'?: undefined;
200
+ 'overflow-hidden relative bg-clip-padding'?: undefined;
201
+ } | {
202
+ 'overflow-hidden relative bg-clip-padding': any;
203
+ 'sticky z-40'?: undefined;
204
+ 'flex flex-1 items-center'?: undefined;
205
+ 'flex-initial shrink-0'?: undefined;
206
+ 'first:border-l border-y border-r'?: undefined;
207
+ 'hover:bg-surface-100 dark:hover:bg-surface-400/30'?: undefined;
208
+ 'transition duration-200'?: undefined;
209
+ })[];
210
+ };
211
+ export { headercell_1 as headercell };
212
+ export function bodycell({ context }: {
213
+ context: any;
214
+ }): {
215
+ class: (string | {
216
+ sticky: any;
217
+ 'flex flex-1 items-center'?: undefined;
218
+ 'flex-initial shrink-0'?: undefined;
219
+ 'border-x-0 border-l-0'?: undefined;
220
+ 'first:border-l border-r border-b'?: undefined;
221
+ 'cursor-pointer'?: undefined;
222
+ } | {
223
+ 'flex flex-1 items-center': any;
224
+ 'flex-initial shrink-0': any;
225
+ sticky?: undefined;
226
+ 'border-x-0 border-l-0'?: undefined;
227
+ 'first:border-l border-r border-b'?: undefined;
228
+ 'cursor-pointer'?: undefined;
229
+ } | {
230
+ 'border-x-0 border-l-0': boolean;
231
+ sticky?: undefined;
232
+ 'flex flex-1 items-center'?: undefined;
233
+ 'flex-initial shrink-0'?: undefined;
234
+ 'first:border-l border-r border-b'?: undefined;
235
+ 'cursor-pointer'?: undefined;
236
+ } | {
237
+ 'first:border-l border-r border-b': any;
238
+ sticky?: undefined;
239
+ 'flex flex-1 items-center'?: undefined;
240
+ 'flex-initial shrink-0'?: undefined;
241
+ 'border-x-0 border-l-0'?: undefined;
242
+ 'cursor-pointer'?: undefined;
243
+ } | {
244
+ 'cursor-pointer': any;
245
+ sticky: any;
246
+ 'border-x-0 border-l-0': boolean;
247
+ 'flex flex-1 items-center'?: undefined;
248
+ 'flex-initial shrink-0'?: undefined;
249
+ 'first:border-l border-r border-b'?: undefined;
250
+ })[];
251
+ };
252
+ export namespace rowtoggler {
253
+ let _class_4: string[];
254
+ export { _class_4 as class };
255
+ }
256
+ export function sorticon({ context }: {
257
+ context: any;
258
+ }): {
259
+ class: string[];
260
+ };
261
+ export namespace sortbadge {
262
+ let _class_5: string[];
263
+ export { _class_5 as class };
264
+ }
265
+ export namespace columnresizer {
266
+ let _class_6: string[];
267
+ export { _class_6 as class };
268
+ }
269
+ export function rowCheckbox({ props, context, instance }: {
270
+ props: any;
271
+ context: any;
272
+ instance: any;
273
+ }): {
274
+ root: {
275
+ class: string[];
276
+ };
277
+ box: {
278
+ class: (string | {
279
+ 'border-surface-200 bg-surface-0 dark:border-surface-700 dark:bg-surface-900': boolean;
280
+ 'border-primary-500 bg-primary-500 dark:border-primary-400 dark:bg-primary-400': any;
281
+ 'peer-hover:border-primary-500 dark:peer-hover:border-primary-400'?: undefined;
282
+ 'peer-hover:bg-primary-700 dark:peer-hover:bg-primary-300 peer-hover:border-primary-700 dark:peer-hover:border-primary-300'?: undefined;
283
+ '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'?: undefined;
284
+ 'cursor-default opacity-60'?: undefined;
285
+ } | {
286
+ 'peer-hover:border-primary-500 dark:peer-hover:border-primary-400': boolean;
287
+ 'peer-hover:bg-primary-700 dark:peer-hover:bg-primary-300 peer-hover:border-primary-700 dark:peer-hover:border-primary-300': any;
288
+ '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': boolean;
289
+ 'cursor-default opacity-60': any;
290
+ 'border-surface-200 bg-surface-0 dark:border-surface-700 dark:bg-surface-900'?: undefined;
291
+ 'border-primary-500 bg-primary-500 dark:border-primary-400 dark:bg-primary-400'?: undefined;
292
+ })[];
293
+ };
294
+ input: {
295
+ class: string[];
296
+ };
297
+ icon: {
298
+ class: (string | {
299
+ 'text-white dark:text-surface-900': boolean;
300
+ 'text-gray dark:text-white': any;
301
+ })[];
302
+ };
303
+ };
304
+ export namespace transition {
305
+ let enterFromClass: string;
306
+ let enterActiveClass: string;
307
+ let leaveActiveClass: string;
308
+ let leaveToClass: string;
309
+ }
310
+ }
311
+ namespace resizehelper {
312
+ let _class_7: string;
313
+ export { _class_7 as class };
314
+ }
315
+ }
316
+ export default _default;