@gluhar/theme 2.0.3 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (193) hide show
  1. package/CHANGELOG.md +35 -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,533 +0,0 @@
1
- export default {
2
- root: {
3
- class: [
4
- // Flex & Alignment
5
- 'flex items-center justify-center flex-wrap',
6
-
7
- // Spacing
8
- 'px-4 py-2',
9
-
10
- // Shape
11
- 'border-0',
12
-
13
- // Color
14
- 'bg-surface-0 dark:bg-surface-800',
15
- 'text-surface-500 dark:text-white/60'
16
- ]
17
- },
18
- firstpagebutton: ({ context }) => ({
19
- class: [
20
- 'relative',
21
-
22
- // Flex & Alignment
23
- 'inline-flex items-center justify-center',
24
-
25
- // Shape
26
- 'border-0 rounded-full dark:rounded-md',
27
-
28
- // Size
29
- 'min-w-[3rem] h-12 m-[0.143rem]',
30
- 'leading-none',
31
-
32
- // Color
33
- 'text-surface-500 dark:text-white/60',
34
-
35
- // State
36
- {
37
- 'hover:bg-surface-50 dark:hover:bg-surface-700/70': !context.disabled,
38
- 'focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-400/50 dark:focus:ring-primary-300/50': !context.disabled
39
- },
40
-
41
- // Transition
42
- 'transition duration-200',
43
-
44
- // Misc
45
- 'user-none overflow-hidden',
46
- { 'cursor-default pointer-events-none opacity-60': context.disabled }
47
- ]
48
- }),
49
- previouspagebutton: ({ context }) => ({
50
- class: [
51
- 'relative',
52
-
53
- // Flex & Alignment
54
- 'inline-flex items-center justify-center',
55
-
56
- // Shape
57
- 'border-0 rounded-full dark:rounded-md',
58
-
59
- // Size
60
- 'min-w-[3rem] h-12 m-[0.143rem]',
61
- 'leading-none',
62
-
63
- // Color
64
- 'text-surface-500 dark:text-white/60',
65
-
66
- // State
67
- {
68
- 'hover:bg-surface-50 dark:hover:bg-surface-700/70': !context.disabled,
69
- 'focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-400/50 dark:focus:ring-primary-300/50': !context.disabled
70
- },
71
-
72
- // Transition
73
- 'transition duration-200',
74
-
75
- // Misc
76
- 'user-none overflow-hidden',
77
- { 'cursor-default pointer-events-none opacity-60': context.disabled }
78
- ]
79
- }),
80
- nextpagebutton: ({ context }) => ({
81
- class: [
82
- 'relative',
83
-
84
- // Flex & Alignment
85
- 'inline-flex items-center justify-center',
86
-
87
- // Shape
88
- 'border-0 rounded-full dark:rounded-md',
89
-
90
- // Size
91
- 'min-w-[3rem] h-12 m-[0.143rem]',
92
- 'leading-none',
93
-
94
- // Color
95
- 'text-surface-500 dark:text-white/60',
96
-
97
- // State
98
- {
99
- 'hover:bg-surface-50 dark:hover:bg-surface-700/70': !context.disabled,
100
- 'focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-400/50 dark:focus:ring-primary-300/50': !context.disabled
101
- },
102
-
103
- // Transition
104
- 'transition duration-200',
105
-
106
- // Misc
107
- 'user-none overflow-hidden',
108
- { 'cursor-default pointer-events-none opacity-60': context.disabled }
109
- ]
110
- }),
111
- lastpagebutton: ({ context }) => ({
112
- class: [
113
- 'relative',
114
-
115
- // Flex & Alignment
116
- 'inline-flex items-center justify-center',
117
-
118
- // Shape
119
- 'border-0 rounded-full dark:rounded-md',
120
-
121
- // Size
122
- 'min-w-[3rem] h-12 m-[0.143rem]',
123
- 'leading-none',
124
-
125
- // Color
126
- 'text-surface-500 dark:text-white/60',
127
-
128
- // State
129
- {
130
- 'hover:bg-surface-50 dark:hover:bg-surface-700/70': !context.disabled,
131
- 'focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-400/50 dark:focus:ring-primary-300/50': !context.disabled
132
- },
133
-
134
- // Transition
135
- 'transition duration-200',
136
-
137
- // Misc
138
- 'user-none overflow-hidden',
139
- { 'cursor-default pointer-events-none opacity-60': context.disabled }
140
- ]
141
- }),
142
- pagebutton: ({ context }) => ({
143
- class: [
144
- 'relative',
145
-
146
- // Flex & Alignment
147
- 'inline-flex items-center justify-center',
148
-
149
- // Shape
150
- 'border-0 rounded-full dark:rounded-md',
151
-
152
- // Size
153
- 'min-w-[3rem] h-12 m-[0.143rem]',
154
- 'leading-none',
155
-
156
- // Color
157
- 'text-surface-500 dark:text-white/80',
158
- {
159
- 'bg-primary-50 border-primary-50 dark:border-transparent text-primary-700 dark:text-surface-0 dark:bg-primary-400/30': context.active
160
- },
161
-
162
- // State
163
- {
164
- 'hover:bg-surface-50 dark:hover:bg-surface-700/70': !context.disabled && !context.active,
165
- 'focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-400/50 dark:focus:ring-primary-300/50': !context.disabled
166
- },
167
-
168
- // Transition
169
- 'transition duration-200',
170
-
171
- // Misc
172
- 'user-none overflow-hidden',
173
- { 'cursor-default pointer-events-none opacity-60': context.disabled }
174
- ]
175
- }),
176
- rowperpagedropdown: {
177
- root: ({ props, state }) => ({
178
- class: [
179
- // Display and Position
180
- 'inline-flex',
181
- 'relative',
182
-
183
- // Shape
184
- 'h-12',
185
- 'rounded-md',
186
-
187
- // Spacing
188
- 'mx-2',
189
-
190
- // Color and Background
191
- 'bg-surface-0 dark:bg-surface-900',
192
- 'border border-surface-300 dark:border-surface-700',
193
-
194
- // Transitions
195
- 'transition-all',
196
- 'duration-200',
197
-
198
- // States
199
- 'hover:border-primary-500 dark:hover:border-primary-300',
200
- { 'focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-400/50 dark:focus:ring-primary-300/50': !state.focused },
201
-
202
- // Misc
203
- 'cursor-pointer',
204
- 'select-none',
205
- { 'opacity-60': props.disabled, 'pointer-events-none': props.disabled, 'cursor-default': props.disabled }
206
- ]
207
- }),
208
- input: {
209
- class: [
210
- //Font
211
- 'font-sans',
212
- 'leading-5',
213
-
214
- // Display
215
- 'block',
216
- 'flex-auto',
217
-
218
- // Color and Background
219
- 'bg-transparent',
220
- 'border-0',
221
- 'text-surface-800 dark:text-white/80',
222
-
223
- // Sizing and Spacing
224
- 'w-[1%]',
225
- 'p-3 pr-0',
226
-
227
- //Shape
228
- 'rounded-none',
229
-
230
- // Transitions
231
- 'transition',
232
- 'duration-200',
233
-
234
- // States
235
- 'focus:outline-none focus:shadow-none',
236
-
237
- // Misc
238
- 'relative',
239
- 'cursor-pointer',
240
- 'overflow-hidden overflow-ellipsis',
241
- 'whitespace-nowrap',
242
- 'appearance-none'
243
- ]
244
- },
245
- trigger: {
246
- class: [
247
- // Flexbox
248
- 'flex items-center justify-center',
249
- 'shrink-0',
250
-
251
- // Color and Background
252
- 'bg-transparent',
253
- 'text-surface-500',
254
-
255
- // Size
256
- 'w-12',
257
-
258
- // Shape
259
- 'rounded-tr-md',
260
- 'rounded-br-md'
261
- ]
262
- },
263
- panel: {
264
- class: [
265
- // Position
266
- 'absolute top-0 left-0',
267
-
268
- // Shape
269
- 'border-0 dark:border',
270
- 'rounded-md',
271
- 'shadow-md',
272
-
273
- // Color
274
- 'bg-surface-0 dark:bg-surface-800',
275
- 'text-surface-800 dark:text-white/80',
276
- 'dark:border-surface-700'
277
- ]
278
- },
279
- wrapper: {
280
- class: [
281
- // Sizing
282
- 'max-h-[200px]',
283
-
284
- // Misc
285
- 'overflow-auto'
286
- ]
287
- },
288
- list: {
289
- class: 'py-3 list-none m-0'
290
- },
291
- item: ({ context }) => ({
292
- class: [
293
- // Font
294
- 'font-normal',
295
- 'leading-none',
296
-
297
- // Position
298
- 'relative',
299
-
300
- // Shape
301
- 'border-0',
302
- 'rounded-none',
303
-
304
- // Spacing
305
- 'm-0',
306
- 'py-3 px-5',
307
-
308
- // Color
309
- { 'text-surface-700 dark:text-white/80': !context.focused && !context.selected },
310
- { 'bg-surface-50 dark:bg-surface-600/60 text-surface-700 dark:text-white/80': context.focused && !context.selected },
311
- { 'bg-primary-100 dark:bg-primary-400/40 text-primary-700 dark:text-white/80': context.focused && context.selected },
312
- { 'bg-primary-50 dark:bg-primary-400/40 text-primary-700 dark:text-white/80': !context.focused && context.selected },
313
-
314
- //States
315
- { 'hover:bg-surface-100 dark:hover:bg-surface-600/80': !context.focused && !context.selected },
316
- { 'hover:text-surface-700 hover:bg-surface-100 dark:hover:text-white dark:hover:bg-surface-600/80': context.focused && !context.selected },
317
-
318
- // Transitions
319
- 'transition-shadow',
320
- 'duration-200',
321
-
322
- // Misc
323
- 'cursor-pointer',
324
- 'overflow-hidden',
325
- 'whitespace-nowrap'
326
- ]
327
- })
328
- },
329
- jumptopageinput: {
330
- root: {
331
- class: 'inline-flex mx-2'
332
- },
333
- input: {
334
- root: {
335
- class: [
336
- 'relative',
337
-
338
- //Font
339
- 'font-sans',
340
- 'leading-none',
341
-
342
- // Display
343
- 'block',
344
- 'flex-auto',
345
-
346
- // Colors
347
- 'text-surface-600 dark:text-surface-200',
348
- 'placeholder:text-surface-400 dark:placeholder:text-surface-500',
349
- 'bg-surface-0 dark:bg-surface-900',
350
- 'border border-surface-300 dark:border-surface-600',
351
-
352
- // Sizing and Spacing
353
- 'w-[1%] max-w-[3rem]',
354
- 'p-3 m-0',
355
-
356
- //Shape
357
- 'rounded-md',
358
-
359
- // Transitions
360
- 'transition',
361
- 'duration-200',
362
-
363
- // States
364
- 'hover:border-primary-500 dark:hover:border-primary-400',
365
- 'focus:outline-none focus:shadow-none',
366
- 'focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-500/50 dark:focus:ring-primary-400/50',
367
-
368
- // Misc
369
- 'cursor-pointer',
370
- 'overflow-hidden overflow-ellipsis',
371
- 'whitespace-nowrap',
372
- 'appearance-none'
373
- ]
374
- }
375
- }
376
- },
377
- jumptopagedropdown: {
378
- root: ({ props, state }) => ({
379
- class: [
380
- // Display and Position
381
- 'inline-flex',
382
- 'relative',
383
-
384
- // Shape
385
- 'h-12',
386
- 'rounded-md',
387
-
388
- // Color and Background
389
- 'bg-surface-0 dark:bg-surface-900',
390
- 'border border-surface-300 dark:border-surface-700',
391
-
392
- // Transitions
393
- 'transition-all',
394
- 'duration-200',
395
-
396
- // States
397
- 'hover:border-primary-500 dark:hover:border-primary-300',
398
- { 'focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-400/50 dark:focus:ring-primary-300/50': !state.focused },
399
-
400
- // Misc
401
- 'cursor-pointer',
402
- 'select-none',
403
- { 'opacity-60': props.disabled, 'pointer-events-none': props.disabled, 'cursor-default': props.disabled }
404
- ]
405
- }),
406
- input: {
407
- class: [
408
- //Font
409
- 'font-sans',
410
- 'leading-none',
411
-
412
- // Display
413
- 'block',
414
- 'flex-auto',
415
-
416
- // Color and Background
417
- 'bg-transparent',
418
- 'border-0',
419
- 'text-surface-800 dark:text-white/80',
420
-
421
- // Sizing and Spacing
422
- 'w-[1%]',
423
- 'p-3',
424
-
425
- //Shape
426
- 'rounded-none',
427
-
428
- // Transitions
429
- 'transition',
430
- 'duration-200',
431
-
432
- // States
433
- 'focus:outline-none focus:shadow-none',
434
-
435
- // Misc
436
- 'relative',
437
- 'cursor-pointer',
438
- 'overflow-hidden overflow-ellipsis',
439
- 'whitespace-nowrap',
440
- 'appearance-none'
441
- ]
442
- },
443
- trigger: {
444
- class: [
445
- // Flexbox
446
- 'flex items-center justify-center',
447
- 'shrink-0',
448
-
449
- // Color and Background
450
- 'bg-transparent',
451
- 'text-surface-500',
452
-
453
- // Size
454
- 'w-12',
455
-
456
- // Shape
457
- 'rounded-tr-md',
458
- 'rounded-br-md'
459
- ]
460
- },
461
- panel: {
462
- class: [
463
- // Position
464
- 'absolute top-0 left-0',
465
-
466
- // Shape
467
- 'border-0 dark:border',
468
- 'rounded-md',
469
- 'shadow-md',
470
-
471
- // Color
472
- 'bg-surface-0 dark:bg-surface-800',
473
- 'text-surface-800 dark:text-white/80',
474
- 'dark:border-surface-700'
475
- ]
476
- },
477
- wrapper: {
478
- class: [
479
- // Sizing
480
- 'max-h-[200px]',
481
-
482
- // Misc
483
- 'overflow-auto'
484
- ]
485
- },
486
- list: {
487
- class: 'py-3 list-none m-0'
488
- },
489
- item: ({ context }) => ({
490
- class: [
491
- // Font
492
- 'font-normal',
493
- 'leading-none',
494
-
495
- // Position
496
- 'relative',
497
-
498
- // Shape
499
- 'border-0',
500
- 'rounded-none',
501
-
502
- // Spacing
503
- 'm-0',
504
- 'py-3 px-5',
505
-
506
- // Color
507
- { 'text-surface-700 dark:text-white/80': !context.focused && !context.selected },
508
- { 'bg-surface-50 dark:bg-surface-600/60 text-surface-700 dark:text-white/80': context.focused && !context.selected },
509
- { 'bg-primary-100 dark:bg-primary-400/40 text-primary-700 dark:text-white/80': context.focused && context.selected },
510
- { 'bg-primary-50 dark:bg-primary-400/40 text-primary-700 dark:text-white/80': !context.focused && context.selected },
511
-
512
- //States
513
- { 'hover:bg-surface-100 dark:hover:bg-surface-600/80': !context.focused && !context.selected },
514
- { 'hover:text-surface-700 hover:bg-surface-100 dark:hover:text-white dark:hover:bg-surface-600/80': context.focused && !context.selected },
515
-
516
- // Transitions
517
- 'transition-shadow',
518
- 'duration-200',
519
-
520
- // Misc
521
- 'cursor-pointer',
522
- 'overflow-hidden',
523
- 'whitespace-nowrap'
524
- ]
525
- })
526
- },
527
- start: {
528
- class: 'mr-auto'
529
- },
530
- end: {
531
- class: 'ml-auto'
532
- }
533
- };
@@ -1,39 +0,0 @@
1
- declare namespace _default {
2
- function header({ props }: {
3
- props: any;
4
- }): {
5
- class: (string | {
6
- 'p-5': boolean;
7
- 'py-3 px-5': any;
8
- })[];
9
- };
10
- namespace title {
11
- let _class: string;
12
- export { _class as class };
13
- }
14
- namespace toggler {
15
- let _class_1: string[];
16
- export { _class_1 as class };
17
- }
18
- namespace togglerIcon {
19
- let _class_2: string;
20
- export { _class_2 as class };
21
- }
22
- namespace content {
23
- let _class_3: string[];
24
- export { _class_3 as class };
25
- }
26
- namespace footer {
27
- let _class_4: string[];
28
- export { _class_4 as class };
29
- }
30
- namespace transition {
31
- let enterFromClass: string;
32
- let enterActiveClass: string;
33
- let enterToClass: string;
34
- let leaveFromClass: string;
35
- let leaveActiveClass: string;
36
- let leaveToClass: string;
37
- }
38
- }
39
- export default _default;
@@ -1,91 +0,0 @@
1
- export default {
2
- header: ({ props }) => ({
3
- class: [
4
- // Flex
5
- 'flex items-center justify-between',
6
-
7
- // Colors
8
- 'text-surface-700 dark:text-surface-0/80',
9
- 'bg-surface-50 dark:bg-surface-900',
10
- 'border border-surface-200 dark:border-surface-700',
11
-
12
- //Shape
13
- 'rounded-tl-lg rounded-tr-lg',
14
-
15
- // Conditional Spacing
16
- { 'p-5': !props.toggleable, 'py-3 px-5': props.toggleable }
17
- ]
18
- }),
19
- title: {
20
- class: 'leading-none font-bold'
21
- },
22
- toggler: {
23
- class: [
24
- // Alignments
25
- 'inline-flex items-center justify-center',
26
- 'relative',
27
-
28
- // Sized
29
- 'w-8 h-8',
30
- 'm-0 p-0',
31
-
32
- //Shape
33
- 'border-0 rounded-full',
34
-
35
- //Color
36
- 'bg-transparent',
37
- 'text-surface-600 dark:text-surface-0/80',
38
-
39
- // States
40
- 'hover:text-surface-800 dark:hover:text-surface-0/80',
41
- 'hover:bg-surface-100 dark:hover:bg-surface-800/80',
42
- 'focus:outline-none focus:outline-offset-0 focus-visible:ring focus-visible:ring-primary-400/50 focus-visible:ring-inset dark:focus-visible:ring-primary-300/50',
43
-
44
- // Transitions
45
- 'transition-all duration-200 ease-in-out',
46
-
47
- // Misc
48
- 'overflow-hidden no-underline',
49
- 'cursor-pointer'
50
- ]
51
- },
52
- togglerIcon: {
53
- class: 'inline-block'
54
- },
55
- content: {
56
- class: [
57
- // Spacing
58
- 'p-5',
59
-
60
- // Shape
61
- 'border border-t-0 last:rounded-br-lg last:rounded-bl-lg',
62
-
63
- //Color
64
- 'border-surface-200 dark:border-surface-700',
65
- 'bg-surface-0 dark:bg-surface-900',
66
- 'text-surface-700 dark:text-surface-0/80'
67
- ]
68
- },
69
- footer: {
70
- class: [
71
- // Spacing
72
- 'py-3 p-5',
73
-
74
- // Shape
75
- 'border border-t-0 rounded-br-lg rounded-bl-lg',
76
-
77
- //Color
78
- 'border-surface-200 dark:border-surface-700',
79
- 'bg-surface-0 dark:bg-surface-900',
80
- 'text-surface-700 dark:text-surface-0/80'
81
- ]
82
- },
83
- transition: {
84
- enterFromClass: 'max-h-0',
85
- enterActiveClass: 'overflow-hidden transition-[max-height] duration-1000 ease-[cubic-bezier(0.42,0,0.58,1)]',
86
- enterToClass: 'max-h-[1000px]',
87
- leaveFromClass: 'max-h-[1000px]',
88
- leaveActiveClass: 'overflow-hidden transition-[max-height] duration-[450ms] ease-[cubic-bezier(0,1,0,1)]',
89
- leaveToClass: 'max-h-0'
90
- }
91
- };