@gluhar/theme 2.0.3 → 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 (193) hide show
  1. package/CHANGELOG.md +24 -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
@@ -1,1170 +0,0 @@
1
- export default {
2
- root: ({ props }) => ({
3
- class: [
4
- 'relative',
5
-
6
- // Flex & Alignment
7
- { 'flex flex-col': props.scrollable && props.scrollHeight === 'flex' },
8
-
9
- // Size
10
- { 'h-full': props.scrollable && props.scrollHeight === 'flex' }
11
- ]
12
- }),
13
- loadingoverlay: {
14
- class: [
15
- // Position
16
- 'absolute',
17
- 'top-0 left-0',
18
- 'z-20',
19
-
20
- // Flex & Alignment
21
- 'flex items-center justify-center',
22
-
23
- // Size
24
- 'w-full h-full',
25
-
26
- // Color
27
- 'bg-surface-100/40 dark:bg-surface-800/40',
28
-
29
- // Transition
30
- 'transition duration-200'
31
- ]
32
- },
33
- loadingicon: {
34
- class: 'w-8 h-8 animate-spin'
35
- },
36
- wrapper: ({ props }) => ({
37
- class: [
38
- { relative: props.scrollable, 'flex flex-col grow': props.scrollable && props.scrollHeight === 'flex' },
39
-
40
- // Size
41
- { 'h-full': props.scrollable && props.scrollHeight === 'flex' }
42
- ]
43
- }),
44
- header: ({ props }) => ({
45
- class: [
46
- 'font-bold',
47
-
48
- // Shape
49
- props.showGridlines ? 'border-x border-t border-b-0' : 'border-y border-x-0',
50
-
51
- // Spacing
52
- 'p-4',
53
-
54
- // Color
55
- 'bg-surface-50 dark:bg-surface-800',
56
- 'border-surface-200 dark:border-surface-700',
57
- 'text-surface-700 dark:text-white/80'
58
- ]
59
- }),
60
- table: {
61
- class: 'w-full border-spacing-0 border-separate'
62
- },
63
- thead: ({ context }) => ({
64
- class: [
65
- {
66
- 'bg-surface-50 top-0 z-40 sticky': context.scrollable
67
- }
68
- ]
69
- }),
70
- tbody: ({ instance, context }) => ({
71
- class: [
72
- {
73
- 'sticky z-20': instance.frozenRow && context.scrollable
74
- }
75
- ]
76
- }),
77
- tfoot: ({ context }) => ({
78
- class: [
79
- {
80
- 'bg-surface-50 bottom-0 z-0': context.scrollable
81
- }
82
- ]
83
- }),
84
- footer: {
85
- class: [
86
- 'font-bold',
87
-
88
- // Shape
89
- 'border-t-0 border-b border-x-0',
90
-
91
- // Spacing
92
- 'p-4',
93
-
94
- // Color
95
- 'bg-surface-50 dark:bg-surface-800',
96
- 'border-surface-200 dark:border-surface-700',
97
- 'text-surface-700 dark:text-white/80'
98
- ]
99
- },
100
- column: {
101
- headercell: ({ context, props }) => ({
102
- class: [
103
- 'font-bold',
104
-
105
- // Position
106
- { 'sticky z-20 border-b': props.frozen || props.frozen === '' },
107
-
108
- { relative: context.resizable },
109
-
110
- // Alignment
111
- 'text-left',
112
-
113
- // Shape
114
- { 'first:border-l border-y border-r': context?.showGridlines },
115
- 'border-0 border-b border-solid',
116
-
117
- // Spacing
118
- context?.size === 'small' ? 'p-2' : context?.size === 'large' ? 'p-5' : 'p-4',
119
-
120
- // Color
121
- (props.sortable === '' || props.sortable) && context.sorted ? 'bg-primary-50 text-primary-700' : 'bg-surface-50 text-surface-700',
122
- (props.sortable === '' || props.sortable) && context.sorted ? 'dark:text-white dark:bg-primary-400/30' : 'dark:text-white/80 dark:bg-surface-800',
123
- 'border-surface-200 dark:border-surface-700 ',
124
-
125
- // States
126
- { 'hover:bg-surface-100 dark:hover:bg-surface-400/30': (props.sortable === '' || props.sortable) && !context?.sorted },
127
- 'focus-visible:outline-none focus-visible:outline-offset-0 focus-visible:ring focus-visible:ring-inset focus-visible:ring-primary-400/50 dark:focus-visible:ring-primary-300/50',
128
-
129
- // Transition
130
- { 'transition duration-200': props.sortable === '' || props.sortable },
131
-
132
- // Misc
133
- { 'cursor-pointer': props.sortable === '' || props.sortable },
134
- {
135
- 'overflow-hidden space-nowrap border-y bg-clip-padding': context.resizable // Resizable
136
- }
137
- ]
138
- }),
139
- headercontent: {
140
- class: 'flex items-center'
141
- },
142
- sort: ({ context }) => ({
143
- class: [context.sorted ? 'text-primary-500' : 'text-surface-700', context.sorted ? 'dark:text-primary-400' : 'dark:text-white/80']
144
- }),
145
- bodycell: ({ props, context, state, parent }) => ({
146
- class: [
147
- //Position
148
- { 'sticky box-border border-b': parent.instance.frozenRow },
149
- { 'sticky box-border border-b': props.frozen || props.frozen === '' },
150
-
151
- // Alignment
152
- 'text-left',
153
-
154
- // Shape
155
- 'border-0 border-b border-solid',
156
- { 'first:border-l border-r border-b': context?.showGridlines },
157
- { 'bg-surface-0 dark:bg-surface-800': parent.instance.frozenRow || props.frozen || props.frozen === '' },
158
-
159
- // Spacing
160
- { 'p-2': context?.size === 'small' && !state['d_editing'] },
161
- { 'p-5': context?.size === 'large' && !state['d_editing'] },
162
- { 'p-4': context?.size !== 'large' && context?.size !== 'small' && !state['d_editing'] },
163
- { 'py-[0.6rem] px-2': state['d_editing'] },
164
-
165
- // Color
166
- 'border-surface-200 dark:border-surface-700'
167
- ]
168
- }),
169
- footercell: ({ context }) => ({
170
- class: [
171
- // Font
172
- 'font-bold',
173
-
174
- // Alignment
175
- 'text-left',
176
-
177
- // Shape
178
- 'border-0 border-b border-solid',
179
- { 'border-x border-y': context?.showGridlines },
180
-
181
- // Spacing
182
- context?.size === 'small' ? 'p-2' : context?.size === 'large' ? 'p-5' : 'p-4',
183
-
184
- // Color
185
- 'border-surface-200 dark:border-surface-700',
186
- 'text-surface-700 dark:text-white/80',
187
- 'bg-surface-50 dark:bg-surface-800'
188
- ]
189
- }),
190
- sorticon: ({ context }) => ({
191
- class: ['ml-2', context.sorted ? 'text-primary-700 dark:text-white/80' : 'text-surface-700 dark:text-white/70']
192
- }),
193
- sortbadge: {
194
- class: [
195
- // Flex & Alignment
196
- 'flex items-center justify-center align-middle',
197
-
198
- // Shape
199
- 'rounded-full',
200
-
201
- // Size
202
- 'w-[1.143rem] leading-[1.143rem]',
203
-
204
- // Spacing
205
- 'ml-2',
206
-
207
- // Color
208
- 'text-primary-700 dark:text-white',
209
- 'bg-primary-50 dark:bg-primary-400/30'
210
- ]
211
- },
212
- columnfilter: {
213
- class: 'inline-flex items-center ml-auto'
214
- },
215
- filteroverlay: {
216
- class: [
217
- // Position
218
- 'absolute top-0 left-0',
219
-
220
- // Shape
221
- 'border-0 dark:border',
222
- 'rounded-md',
223
- 'shadow-md',
224
-
225
- // Size
226
- 'min-w-[12.5rem]',
227
-
228
- // Color
229
- 'bg-surface-0 dark:bg-surface-800',
230
- 'text-surface-800 dark:text-white/80',
231
- 'dark:border-surface-700'
232
- ]
233
- },
234
- filtermatchmodedropdown: {
235
- root: ({ state }) => ({
236
- class: [
237
- // Display and Position
238
- 'flex',
239
- 'relative',
240
-
241
- // Spacing
242
- 'my-2',
243
-
244
- // Shape
245
- 'w-full',
246
- 'rounded-md',
247
-
248
- // Color and Background
249
- 'bg-surface-0 dark:bg-surface-900',
250
- 'border border-surface-300 dark:border-surface-700',
251
- 'text-surface-800 dark:text-white/80',
252
- 'placeholder:text-surface-400 dark:placeholder:text-surface-500',
253
-
254
- // Transitions
255
- 'transition-all',
256
- 'duration-200',
257
-
258
- // States
259
- 'hover:border-primary-500 dark:hover:border-primary-300',
260
- { 'outline-none outline-offset-0 ring ring-primary-400/50 dark:ring-primary-300/50': state.focused },
261
-
262
- // Misc
263
- 'cursor-pointer',
264
- 'select-none'
265
- ]
266
- })
267
- },
268
- filterrowitems: {
269
- class: 'm-0 p-0 py-3 list-none'
270
- },
271
- filterrowitem: ({ context }) => ({
272
- class: [
273
- // Font
274
- 'font-normal',
275
- 'leading-none',
276
-
277
- // Position
278
- 'relative',
279
-
280
- // Shape
281
- 'border-0',
282
- 'rounded-none',
283
-
284
- // Spacing
285
- 'm-0',
286
- 'py-3 px-5',
287
-
288
- // Color
289
- { 'text-surface-700 dark:text-white/80': !context?.highlighted },
290
- { 'bg-surface-0 dark:bg-surface-800 text-surface-700 dark:text-white/80': !context?.highlighted },
291
- { 'bg-primary-100 dark:bg-primary-400/40 text-primary-700 dark:text-white/80': context?.highlighted },
292
- { 'bg-primary-50 dark:bg-primary-400/40 text-primary-700 dark:text-white/80': context?.highlighted },
293
-
294
- //States
295
- { 'hover:bg-surface-100 dark:hover:bg-surface-600/80': !context?.highlighted },
296
- { 'hover:text-surface-700 hover:bg-surface-100 dark:hover:text-white dark:hover:bg-surface-600/80': !context?.highlighted },
297
- 'focus-visible:outline-none focus-visible:outline-offset-0 focus-visible:ring focus-visible:ring-inset focus-visible:ring-primary-400/50 dark:focus-visible:ring-primary-300/50',
298
-
299
- // Transitions
300
- 'transition-shadow',
301
- 'duration-200',
302
-
303
- // Misc
304
- 'cursor-pointer',
305
- 'overflow-hidden',
306
- 'whitespace-nowrap'
307
- ]
308
- }),
309
- filteroperator: {
310
- class: [
311
- // Spacing
312
- 'px-5 py-3',
313
-
314
- // Shape
315
- 'border-b border-solid',
316
- 'rounded-t-md',
317
-
318
- // Color
319
- 'text-surface-700 dark:text-white/80',
320
- 'border-surface-200 dark:border-surface-800',
321
- 'bg-surface-0 dark:bg-surface-700'
322
- ]
323
- },
324
- filteroperatordropdown: {
325
- root: ({ state }) => ({
326
- class: [
327
- // Display and Position
328
- 'inline-flex',
329
- 'relative',
330
-
331
- // Shape
332
- 'w-full',
333
- 'rounded-md',
334
-
335
- // Color and Background
336
- 'bg-surface-0 dark:bg-surface-900',
337
- 'border border-surface-300 dark:border-surface-700',
338
-
339
- // Transitions
340
- 'transition-all',
341
- 'duration-200',
342
-
343
- // States
344
- 'hover:border-primary-500 dark:hover:border-primary-300',
345
- { 'outline-none outline-offset-0 ring ring-primary-400/50 dark:ring-primary-300/50': state.focused },
346
-
347
- // Misc
348
- 'cursor-pointer',
349
- 'select-none'
350
- ]
351
- }),
352
- input: ({ props }) => ({
353
- class: [
354
- //Font
355
- 'font-sans',
356
- 'leading-none',
357
-
358
- // Display
359
- 'block',
360
- 'flex-auto',
361
-
362
- // Color and Background
363
- 'bg-transparent',
364
- 'border-0',
365
- { 'text-surface-800 dark:text-white/80': props.modelValue, 'text-surface-400 dark:text-surface-500': !props.modelValue },
366
- 'placeholder:text-surface-400 dark:placeholder:text-surface-500',
367
-
368
- // Sizing and Spacing
369
- 'w-[1%]',
370
- 'p-3',
371
-
372
- //Shape
373
- 'rounded-none',
374
-
375
- // Transitions
376
- 'transition',
377
- 'duration-200',
378
-
379
- // States
380
- 'focus:outline-none focus:shadow-none',
381
-
382
- // Misc
383
- 'relative',
384
- 'cursor-pointer',
385
- 'overflow-hidden overflow-ellipsis',
386
- 'whitespace-nowrap',
387
- 'appearance-none'
388
- ]
389
- }),
390
- trigger: {
391
- class: [
392
- // Flexbox
393
- 'flex items-center justify-center',
394
- 'shrink-0',
395
-
396
- // Color and Background
397
- 'bg-transparent',
398
- 'text-surface-500',
399
-
400
- // Size
401
- 'w-12',
402
-
403
- // Shape
404
- 'rounded-tr-md',
405
- 'rounded-br-md'
406
- ]
407
- },
408
- panel: {
409
- class: [
410
- // Position
411
- 'absolute top-0 left-0',
412
-
413
- // Shape
414
- 'border-0 dark:border',
415
- 'rounded-md',
416
- 'shadow-md',
417
-
418
- // Color
419
- 'bg-surface-0 dark:bg-surface-800',
420
- 'text-surface-800 dark:text-white/80',
421
- 'dark:border-surface-700'
422
- ]
423
- },
424
- item: ({ context }) => ({
425
- class: [
426
- // Font
427
- 'font-normal',
428
- 'leading-none',
429
-
430
- // Position
431
- 'relative',
432
-
433
- // Shape
434
- 'border-0',
435
- 'rounded-none',
436
-
437
- // Spacing
438
- 'm-0',
439
- 'py-3 px-5',
440
-
441
- // Color
442
- { 'text-surface-700 dark:text-white/80': !context.focused && !context.selected },
443
- { 'bg-surface-50 dark:bg-surface-600/60 text-surface-700 dark:text-white/80': context.focused && !context.selected },
444
- { 'bg-primary-100 dark:bg-primary-400/40 text-primary-700 dark:text-white/80': context.focused && context.selected },
445
- { 'bg-primary-50 dark:bg-primary-400/40 text-primary-700 dark:text-white/80': !context.focused && context.selected },
446
-
447
- //States
448
- { 'hover:bg-surface-100 dark:hover:bg-surface-600/80': !context.focused && !context.selected },
449
- { 'hover:text-surface-700 hover:bg-surface-100 dark:hover:text-white dark:hover:bg-surface-600/80': context.focused && !context.selected },
450
-
451
- // Transitions
452
- 'transition-shadow',
453
- 'duration-200',
454
-
455
- // Misc
456
- 'cursor-pointer',
457
- 'overflow-hidden',
458
- 'whitespace-nowrap'
459
- ]
460
- })
461
- },
462
- filterconstraint: {
463
- class: [
464
- // Spacing
465
- 'py-3 px-5',
466
-
467
- // Shape
468
- 'border-b border-solid',
469
-
470
- // Color
471
- 'border-surface-200 dark:border-surface-700'
472
- ]
473
- },
474
- filteraddrule: {
475
- class: 'py-3 px-5'
476
- },
477
- filteraddrulebutton: {
478
- root: {
479
- class: [
480
- 'relative',
481
-
482
- // Alignments
483
- 'items-center inline-flex text-center align-bottom justify-center',
484
-
485
- // Sizes & Spacing
486
- 'text-sm py-2 px-3 w-full',
487
-
488
- // Shape
489
- 'rounded-md',
490
-
491
- 'bg-transparent border-transparent',
492
- 'text-primary-500 dark:text-primary-400',
493
- 'hover:bg-primary-300/20',
494
-
495
- // Transitions
496
- 'transition duration-200 ease-in-out',
497
-
498
- // Misc
499
- 'cursor-pointer overflow-hidden select-none'
500
- ]
501
- },
502
- label: {
503
- class: 'flex-auto grow-0'
504
- },
505
- icon: {
506
- class: 'mr-2'
507
- }
508
- },
509
- filterremovebutton: {
510
- root: {
511
- class: [
512
- 'relative',
513
-
514
- // Alignments
515
- 'items-center inline-flex text-center align-bottom justify-center',
516
-
517
- // Sizes & Spacing
518
- 'text-sm py-2 px-3 w-full mt-2',
519
-
520
- // Shape
521
- 'rounded-md',
522
-
523
- 'bg-transparent border-transparent',
524
- 'text-red-500 dark:text-red-400',
525
- 'hover:bg-red-300/20',
526
-
527
- // Transitions
528
- 'transition duration-200 ease-in-out',
529
-
530
- // Misc
531
- 'cursor-pointer overflow-hidden select-none'
532
- ]
533
- },
534
- label: {
535
- class: 'flex-auto grow-0'
536
- },
537
- icon: {
538
- class: 'mr-2'
539
- }
540
- },
541
- filterbuttonbar: {
542
- class: [
543
- // Flex & Alignment
544
- 'flex items-center justify-between',
545
-
546
- // Space
547
- 'py-3 px-5'
548
- ]
549
- },
550
- filterclearbutton: {
551
- root: {
552
- class: [
553
- 'relative',
554
-
555
- // Alignments
556
- 'items-center inline-flex text-center align-bottom justify-center',
557
-
558
- // Sizes & Spacing
559
- 'text-sm py-2 px-3',
560
-
561
- // Shape
562
- 'rounded-md',
563
-
564
- 'text-primary-500 border border-primary-500',
565
- 'hover:bg-primary-300/20',
566
-
567
- // Transitions
568
- 'transition duration-200 ease-in-out',
569
-
570
- // Misc
571
- 'cursor-pointer overflow-hidden select-none'
572
- ]
573
- }
574
- },
575
- filterapplybutton: {
576
- root: {
577
- class: [
578
- 'relative',
579
-
580
- // Alignments
581
- 'items-center inline-flex text-center align-bottom justify-center',
582
-
583
- // Sizes & Spacing
584
- 'text-sm py-2 px-3',
585
-
586
- // Shape
587
- 'rounded-md',
588
-
589
- 'text-white dark:text-surface-900',
590
- 'bg-primary-500 dark:bg-primary-400',
591
- 'hover:bg-primary-600 dark:hover:bg-primary-300 hover:border-primary-600 dark:hover:border-primary-300',
592
-
593
- // Transitions
594
- 'transition duration-200 ease-in-out',
595
-
596
- // Misc
597
- 'cursor-pointer overflow-hidden select-none'
598
- ]
599
- }
600
- },
601
- filtermenubutton: ({ context }) => ({
602
- class: [
603
- 'relative',
604
- // Flex & Alignment
605
- 'inline-flex items-center justify-center',
606
-
607
- // Size
608
- 'w-8 h-8',
609
-
610
- // Spacing
611
- 'ml-2',
612
-
613
- // Shape
614
- 'rounded-full',
615
-
616
- // Color
617
- { 'bg-primary-50 text-primary-700': context.active },
618
- 'dark:text-white/70 dark:hover:text-white/80 dark:bg-surface-800',
619
-
620
- // States
621
- 'hover:text-surface-700 hover:bg-surface-300/20',
622
- 'focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-400/50 dark:focus:ring-primary-300/50',
623
-
624
- // Transition
625
- 'transition duration-200',
626
-
627
- // Misc
628
- 'cursor-pointer no-underline overflow-hidden'
629
- ]
630
- }),
631
- headerfilterclearbutton: ({ context }) => ({
632
- class: [
633
- 'relative',
634
-
635
- // Flex & Alignment
636
- 'inline-flex items-center justify-center',
637
- 'text-left',
638
-
639
- // Shape
640
- 'border-none',
641
-
642
- // Spacing
643
- 'm-0 p-0 ml-2',
644
-
645
- // Color
646
- 'bg-transparent',
647
-
648
- // Misc
649
- 'cursor-pointer no-underline overflow-hidden select-none',
650
- {
651
- invisible: !context.hidden
652
- }
653
- ]
654
- }),
655
- rowtoggler: {
656
- class: [
657
- 'relative',
658
-
659
- // Flex & Alignment
660
- 'inline-flex items-center justify-center',
661
- 'text-left',
662
-
663
- // Spacing
664
- 'm-0 p-0',
665
-
666
- // Size
667
- 'w-8 h-8',
668
-
669
- // Shape
670
- 'border-0 rounded-full',
671
-
672
- // Color
673
- 'text-surface-500 dark:text-white/70',
674
- 'bg-transparent',
675
- 'focus-visible:outline-none focus-visible:outline-offset-0',
676
- 'focus-visible:ring focus-visible:ring-primary-400/50 dark:focus-visible:ring-primary-300/50',
677
-
678
- // Transition
679
- 'transition duration-200',
680
-
681
- // Misc
682
- 'overflow-hidden',
683
- 'cursor-pointer select-none'
684
- ]
685
- },
686
- columnresizer: {
687
- class: [
688
- 'block',
689
-
690
- // Position
691
- 'absolute top-0 right-0',
692
-
693
- // Sizing
694
- 'w-2 h-full',
695
-
696
- // Spacing
697
- 'm-0 p-0',
698
-
699
- // Color
700
- 'border border-transparent',
701
-
702
- // Misc
703
- 'cursor-col-resize'
704
- ]
705
- },
706
- rowreordericon: {
707
- class: 'cursor-move'
708
- },
709
- roweditorinitbutton: {
710
- class: [
711
- 'relative',
712
-
713
- // Flex & Alignment
714
- 'inline-flex items-center justify-center',
715
- 'text-left',
716
-
717
- // Size
718
- 'w-8 h-8',
719
-
720
- // Shape
721
- 'border-0 rounded-full',
722
-
723
- // Color
724
- 'text-surface-700 dark:text-white/70',
725
- 'border-transparent',
726
-
727
- // States
728
- 'focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-400/50 dark:focus:ring-primary-300/50',
729
- 'hover:text-surface-700 hover:bg-surface-300/20',
730
-
731
- // Transition
732
- 'transition duration-200',
733
-
734
- // Misc
735
- 'overflow-hidden',
736
- 'cursor-pointer select-none'
737
- ]
738
- },
739
- roweditorsavebutton: {
740
- class: [
741
- 'relative',
742
-
743
- // Flex & Alignment
744
- 'inline-flex items-center justify-center',
745
- 'text-left',
746
-
747
- // Size
748
- 'w-8 h-8',
749
-
750
- // Shape
751
- 'border-0 rounded-full',
752
-
753
- // Color
754
- 'text-surface-700 dark:text-white/70',
755
- 'border-transparent',
756
-
757
- // States
758
- 'focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-400/50 dark:focus:ring-primary-300/50',
759
- 'hover:text-surface-700 hover:bg-surface-300/20',
760
-
761
- // Transition
762
- 'transition duration-200',
763
-
764
- // Misc
765
- 'overflow-hidden',
766
- 'cursor-pointer select-none'
767
- ]
768
- },
769
- roweditorcancelbutton: {
770
- class: [
771
- 'relative',
772
-
773
- // Flex & Alignment
774
- 'inline-flex items-center justify-center',
775
- 'text-left',
776
-
777
- // Size
778
- 'w-8 h-8',
779
-
780
- // Shape
781
- 'border-0 rounded-full',
782
-
783
- // Color
784
- 'text-surface-700 dark:text-white/70',
785
- 'border-transparent',
786
-
787
- // States
788
- 'focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-400/50 dark:focus:ring-primary-300/50',
789
- 'hover:text-surface-700 hover:bg-surface-300/20',
790
-
791
- // Transition
792
- 'transition duration-200',
793
-
794
- // Misc
795
- 'overflow-hidden',
796
- 'cursor-pointer select-none'
797
- ]
798
- },
799
- rowRadiobutton: {
800
- root: {
801
- class: [
802
- 'relative',
803
-
804
- // Flexbox & Alignment
805
- 'inline-flex',
806
- 'align-bottom',
807
-
808
- // Size
809
- 'w-[1.571rem] h-[1.571rem]',
810
-
811
- // Misc
812
- 'cursor-pointer',
813
- 'select-none'
814
- ]
815
- },
816
- box: ({ props }) => ({
817
- class: [
818
- // Flexbox
819
- 'flex justify-center items-center',
820
-
821
- // Size
822
- 'w-[1.571rem] h-[1.571rem]',
823
-
824
- // Shape
825
- 'border-2',
826
- 'rounded-full',
827
-
828
- // Transition
829
- 'transition duration-200 ease-in-out',
830
-
831
- // Colors
832
- {
833
- 'text-surface-700 dark:text-white/80': !props.modelValue,
834
- 'bg-surface-0 dark:bg-surface-900': !props.modelValue,
835
- 'border-surface-300 dark:border-surface-700': !props.modelValue,
836
- 'border-primary-500 dark:border-primary-400': props.modelValue,
837
- 'bg-primary-500 dark:bg-primary-400': props.modelValue
838
- },
839
-
840
- // States
841
- {
842
- 'peer-hover:border-primary-500 dark:peer-hover:border-primary-400': !props.disabled,
843
- 'peer-hover:border-primary-600 dark:peer-hover:border-primary-300 peer-hover:bg-primary-600 dark:peer-hover:bg-primary-300': !props.disabled && props.modelValue,
844
- '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,
845
- 'opacity-60 cursor-default': props.disabled
846
- }
847
- ]
848
- }),
849
- input: {
850
- class: [
851
- 'peer',
852
-
853
- // Size
854
- 'w-full ',
855
- 'h-full',
856
-
857
- // Position
858
- 'absolute',
859
- 'top-0 left-0',
860
- 'z-10',
861
-
862
- // Spacing
863
- 'p-0',
864
- 'm-0',
865
-
866
- // Shape
867
- 'opacity-0',
868
- 'rounded-md',
869
- 'outline-none',
870
- 'border-2 border-surface-200 dark:border-surface-700',
871
-
872
- // Misc
873
- 'appearance-none',
874
- 'cursor-pointer'
875
- ]
876
- },
877
- icon: ({ props }) => ({
878
- class: [
879
- 'block',
880
-
881
- // Shape
882
- 'rounded-full',
883
-
884
- // Size
885
- 'w-[0.857rem] h-[0.857rem]',
886
-
887
- // Colors
888
- 'bg-surface-0 dark:bg-surface-900',
889
-
890
- // Conditions
891
- {
892
- 'backface-hidden scale-10 invisible': !props.modelValue,
893
- 'transform visible scale-[1.1]': props.modelValue
894
- },
895
-
896
- // Transition
897
- 'transition duration-200'
898
- ]
899
- })
900
- },
901
- headercheckbox: {
902
- root: {
903
- class: [
904
- 'relative',
905
-
906
- // Alignment
907
- 'inline-flex',
908
- 'align-bottom',
909
-
910
- // Size
911
- 'w-6',
912
- 'h-6',
913
-
914
- // Misc
915
- 'cursor-pointer',
916
- 'select-none'
917
- ]
918
- },
919
- box: ({ props, context }) => ({
920
- class: [
921
- // Alignment
922
- 'flex',
923
- 'items-center',
924
- 'justify-center',
925
-
926
- // Size
927
- 'w-6',
928
- 'h-6',
929
-
930
- // Shape
931
- 'rounded-md',
932
- 'border-2',
933
-
934
- // Colors
935
- {
936
- 'border-surface-200 bg-surface-0 dark:border-surface-700 dark:bg-surface-900': !context.checked,
937
- 'border-primary-500 bg-primary-500 dark:border-primary-400 dark:bg-primary-400': context.checked
938
- },
939
-
940
- // States
941
- {
942
- 'peer-hover:border-primary-500 dark:peer-hover:border-primary-400': !props.disabled && !context.checked,
943
- '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,
944
- '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,
945
- 'cursor-default opacity-60': props.disabled
946
- },
947
-
948
- // Transitions
949
- 'transition-colors',
950
- 'duration-200'
951
- ]
952
- }),
953
- input: {
954
- class: [
955
- 'peer',
956
-
957
- // Size
958
- 'w-full ',
959
- 'h-full',
960
-
961
- // Position
962
- 'absolute',
963
- 'top-0 left-0',
964
- 'z-10',
965
-
966
- // Spacing
967
- 'p-0',
968
- 'm-0',
969
-
970
- // Shape
971
- 'opacity-0',
972
- 'rounded-md',
973
- 'outline-none',
974
- 'border-2 border-surface-200 dark:border-surface-700',
975
-
976
- // Misc
977
- 'appearance-none',
978
- 'cursor-pointer'
979
- ]
980
- },
981
- icon: {
982
- class: [
983
- // Font
984
- 'text-base leading-none',
985
-
986
- // Size
987
- 'w-4',
988
- 'h-4',
989
-
990
- // Colors
991
- 'text-white dark:text-surface-900',
992
-
993
- // Transitions
994
- 'transition-all',
995
- 'duration-200'
996
- ]
997
- }
998
- },
999
- rowCheckbox: {
1000
- root: {
1001
- class: [
1002
- 'relative',
1003
-
1004
- // Alignment
1005
- 'inline-flex',
1006
- 'align-bottom',
1007
-
1008
- // Size
1009
- 'w-6',
1010
- 'h-6',
1011
-
1012
- // Misc
1013
- 'cursor-pointer',
1014
- 'select-none'
1015
- ]
1016
- },
1017
- box: ({ props, context }) => ({
1018
- class: [
1019
- // Alignment
1020
- 'flex',
1021
- 'items-center',
1022
- 'justify-center',
1023
-
1024
- // Size
1025
- 'w-6',
1026
- 'h-6',
1027
-
1028
- // Shape
1029
- 'rounded-md',
1030
- 'border-2',
1031
-
1032
- // Colors
1033
- {
1034
- 'border-surface-200 bg-surface-0 dark:border-surface-700 dark:bg-surface-900': !context.checked,
1035
- 'border-primary-500 bg-primary-500 dark:border-primary-400 dark:bg-primary-400': context.checked
1036
- },
1037
-
1038
- // States
1039
- {
1040
- 'peer-hover:border-primary-500 dark:peer-hover:border-primary-400': !props.disabled && !context.checked,
1041
- '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,
1042
- '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,
1043
- 'cursor-default opacity-60': props.disabled
1044
- },
1045
-
1046
- // Transitions
1047
- 'transition-colors',
1048
- 'duration-200'
1049
- ]
1050
- }),
1051
- input: {
1052
- class: [
1053
- 'peer',
1054
-
1055
- // Size
1056
- 'w-full ',
1057
- 'h-full',
1058
-
1059
- // Position
1060
- 'absolute',
1061
- 'top-0 left-0',
1062
- 'z-10',
1063
-
1064
- // Spacing
1065
- 'p-0',
1066
- 'm-0',
1067
-
1068
- // Shape
1069
- 'opacity-0',
1070
- 'rounded-md',
1071
- 'outline-none',
1072
- 'border-2 border-surface-200 dark:border-surface-700',
1073
-
1074
- // Misc
1075
- 'appearance-none',
1076
- 'cursor-pointer'
1077
- ]
1078
- },
1079
- icon: {
1080
- class: [
1081
- // Font
1082
- 'text-base leading-none',
1083
-
1084
- // Size
1085
- 'w-4',
1086
- 'h-4',
1087
-
1088
- // Colors
1089
- 'text-white dark:text-surface-900',
1090
-
1091
- // Transitions
1092
- 'transition-all',
1093
- 'duration-200'
1094
- ]
1095
- }
1096
- },
1097
- transition: {
1098
- enterFromClass: 'opacity-0 scale-y-[0.8]',
1099
- enterActiveClass: 'transition-[transform,opacity] duration-[120ms] ease-[cubic-bezier(0,0,0.2,1)]',
1100
- leaveActiveClass: 'transition-opacity duration-100 ease-linear',
1101
- leaveToClass: 'opacity-0'
1102
- }
1103
- },
1104
- bodyrow: ({ context, props }) => ({
1105
- class: [
1106
- // Color
1107
- 'dark:text-white/80',
1108
- { 'bg-primary-50 text-primary-700 dark:bg-primary-400/30': context.selected },
1109
- { 'bg-surface-0 text-surface-600 dark:bg-surface-800': !context.selected },
1110
- { 'font-bold bg-surface-0 dark:bg-surface-800': props.frozenRow },
1111
- { 'odd:bg-surface-0 odd:text-surface-600 dark:odd:bg-surface-800 even:bg-surface-50 even:text-surface-600 dark:even:bg-surface-900/50': context.stripedRows },
1112
-
1113
- // State
1114
- { 'focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-400/50 ring-inset dark:focus:ring-primary-300/50': context.selectable },
1115
- { 'hover:bg-surface-300/20 hover:text-surface-600': props.selectionMode && !context.selected },
1116
-
1117
- // Transition
1118
- { 'transition duration-200': (props.selectionMode && !context.selected) || props.rowHover },
1119
-
1120
- // Misc
1121
- { 'cursor-pointer': props.selectionMode }
1122
- ]
1123
- }),
1124
- rowexpansion: {
1125
- class: 'bg-surface-0 dark:bg-surface-800 text-surface-600 dark:text-white/80'
1126
- },
1127
- rowgroupheader: {
1128
- class: ['sticky z-20', 'bg-surface-0 text-surface-600 dark:text-white/70', 'dark:bg-surface-800']
1129
- },
1130
- rowgroupfooter: {
1131
- class: ['sticky z-20', 'bg-surface-0 text-surface-600 dark:text-white/70', 'dark:bg-surface-800']
1132
- },
1133
- rowgrouptoggler: {
1134
- class: [
1135
- 'relative',
1136
-
1137
- // Flex & Alignment
1138
- 'inline-flex items-center justify-center',
1139
- 'text-left',
1140
-
1141
- // Spacing
1142
- 'm-0 p-0',
1143
-
1144
- // Size
1145
- 'w-8 h-8',
1146
-
1147
- // Shape
1148
- 'border-0 rounded-full',
1149
-
1150
- // Color
1151
- 'text-surface-500 dark:text-white/70',
1152
- 'bg-transparent',
1153
- 'focus-visible:outline-none focus-visible:outline-offset-0',
1154
- 'focus-visible:ring focus-visible:ring-primary-400/50 dark:focus-visible:ring-primary-300/50',
1155
-
1156
- // Transition
1157
- 'transition duration-200',
1158
-
1159
- // Misc
1160
- 'overflow-hidden',
1161
- 'cursor-pointer select-none'
1162
- ]
1163
- },
1164
- rowgrouptogglericon: {
1165
- class: 'inline-block w-4 h-4'
1166
- },
1167
- resizehelper: {
1168
- class: 'absolute hidden w-[2px] z-20 bg-primary-500 dark:bg-primary-400'
1169
- }
1170
- };