@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,199 +0,0 @@
1
- export default {
2
- root: ({ props }) => ({
3
- class: [
4
- 'relative',
5
-
6
- // Flexbox
7
- 'flex',
8
-
9
- // Shape & Size
10
- 'rounded-md',
11
-
12
- // Color
13
- 'bg-surface-50 dark:bg-surface-700',
14
- 'border border-surface-200 dark:border-surface-700',
15
- { 'p-2 items-center': props.orientation == 'horizontal', 'flex-col sm:w-48 p-0 py-1': props.orientation !== 'horizontal' }
16
- ]
17
- }),
18
- menu: ({ props }) => ({
19
- class: [
20
- // Flexbox
21
- 'sm:flex',
22
- 'items-center',
23
- 'flex-wrap',
24
- 'flex-col sm:flex-row',
25
- { hidden: !props?.mobileActive, flex: props?.mobileActive },
26
-
27
- // Position
28
- 'absolute sm:relative',
29
- 'top-full left-0',
30
- 'sm:top-auto sm:left-auto',
31
-
32
- // Size
33
- 'w-full sm:w-auto',
34
-
35
- // Spacing
36
- 'm-0',
37
- 'py-1 sm:py-0 sm:p-0',
38
- 'list-none',
39
-
40
- // Shape
41
- 'shadow-md sm:shadow-none',
42
- 'border-0',
43
-
44
- // Color
45
- 'bg-surface-0 dark:bg-surface-700 sm:bg-transparent dark:sm:bg-transparent',
46
-
47
- // Misc
48
- 'outline-none'
49
- ]
50
- }),
51
- menuitem: ({ props }) => ({
52
- class: [
53
- 'sm:relative static',
54
- {
55
- 'sm:w-auto w-full': props.horizontal,
56
- 'w-full': !props.horizontal
57
- }
58
- ]
59
- }),
60
- content: ({ props, context }) => ({
61
- class: [
62
- // Shape
63
- { 'rounded-md': props.level < 1 && props.horizontal },
64
-
65
- // Colors
66
- {
67
- 'text-surface-500 dark:text-white/70': !context.focused && !context.active,
68
- 'text-surface-500 dark:text-white/70 bg-surface-200 dark:bg-surface-600/90': context.focused && !context.active,
69
- 'text-primary-700 dark:text-surface-0/80 bg-primary-50 dark:bg-primary-400/30': context.focused && context.active,
70
- 'text-primary-700 dark:text-surface-0/80 bg-primary-50 dark:bg-primary-400/30': !context.focused && context.active
71
- },
72
-
73
- // Hover States
74
- {
75
- 'hover:bg-surface-100 dark:hover:bg-surface-600/80': !context.active,
76
- 'hover:bg-primary-500/50 dark:hover:bg-primary-300/30 text-primary-700 dark:text-surface-0/80': context.active
77
- },
78
-
79
- // Transitions
80
- 'transition-all',
81
- 'duration-200'
82
- ]
83
- }),
84
- action: {
85
- class: [
86
- 'relative',
87
-
88
- // Flexbox
89
- 'flex',
90
- 'items-center',
91
-
92
- // Spacing
93
- 'py-3',
94
- 'px-5',
95
-
96
- // Size
97
- 'py-3 pr-5 pl-9 sm:pl-5',
98
- 'leading-none',
99
-
100
- // Misc
101
- 'select-none',
102
- 'cursor-pointer',
103
- 'no-underline ',
104
- 'overflow-hidden'
105
- ]
106
- },
107
- icon: {
108
- class: 'mr-2'
109
- },
110
- submenuicon: ({ props }) => ({
111
- class: [
112
- {
113
- 'ml-auto sm:ml-2': props.horizontal,
114
- 'ml-auto': !props.horizontal
115
- }
116
- ]
117
- }),
118
- panel: ({ props }) => ({
119
- class: [
120
- // Size
121
- 'w-auto',
122
-
123
- // Spacing
124
- 'py-1',
125
- 'm-0',
126
-
127
- // Shape
128
- 'shadow-none sm:shadow-md',
129
- 'border-0',
130
-
131
- // Color
132
- 'bg-surface-0 dark:bg-surface-700',
133
-
134
- // Position
135
- 'static sm:absolute',
136
- 'z-10',
137
- {
138
- 'sm:left-full top-0': !props.horizontal
139
- }
140
- ]
141
- }),
142
- grid: {
143
- class: 'flex flex-wrap sm:flex-nowrap'
144
- },
145
- column: {
146
- class: 'w-full sm:w-1/2'
147
- },
148
- submenu: {
149
- class: ['m-0 list-none', 'py-1 px-2 w-full sm:min-w-[14rem]']
150
- },
151
- submenuheader: {
152
- class: [
153
- 'font-semibold',
154
-
155
- // Spacing
156
- 'py-3 px-5',
157
- 'm-0',
158
-
159
- // Color
160
- 'text-surface-700 dark:text-white/80',
161
- 'bg-surface-0 dark:bg-surface-700'
162
- ]
163
- },
164
- separator: {
165
- class: 'border-t border-surface-200 dark:border-surface-600 my-1'
166
- },
167
- menubutton: {
168
- class: [
169
- // Flexbox
170
- 'flex sm:hidden',
171
- 'items-center justify-center',
172
-
173
- // Size
174
- 'w-8',
175
- 'h-8',
176
-
177
- // Shape
178
- 'rounded-full',
179
- // Color
180
- 'text-surface-500 dark:text-white/80',
181
-
182
- // States
183
- 'hover:text-surface-600 dark:hover:text-white/60',
184
- 'hover:bg-surface-100 dark:hover:bg-surface-600/80',
185
- 'focus:outline-none focus:outline-offset-0',
186
- 'focus:ring focus:ring-primary-400/50 dark:focus:ring-primary-300/50',
187
-
188
- // Transitions
189
- 'transition duration-200 ease-in-out',
190
-
191
- // Misc
192
- 'cursor-pointer',
193
- 'no-underline'
194
- ]
195
- },
196
- end: {
197
- class: 'ml-auto self-center'
198
- }
199
- };
@@ -1,40 +0,0 @@
1
- declare namespace _default {
2
- namespace root {
3
- let _class: string[];
4
- export { _class as class };
5
- }
6
- namespace menu {
7
- let _class_1: string[];
8
- export { _class_1 as class };
9
- }
10
- function content({ context }: {
11
- context: any;
12
- }): {
13
- class: (string | {
14
- 'bg-surface-200 text-surface-700 dark:bg-surface-300/10 dark:text-white': any;
15
- })[];
16
- };
17
- namespace action {
18
- let _class_2: string[];
19
- export { _class_2 as class };
20
- }
21
- namespace icon {
22
- let _class_3: string[];
23
- export { _class_3 as class };
24
- }
25
- namespace label {
26
- let _class_4: string[];
27
- export { _class_4 as class };
28
- }
29
- namespace submenuheader {
30
- let _class_5: string[];
31
- export { _class_5 as class };
32
- }
33
- namespace transition {
34
- let enterFromClass: string;
35
- let enterActiveClass: string;
36
- let leaveActiveClass: string;
37
- let leaveToClass: string;
38
- }
39
- }
40
- export default _default;
@@ -1,96 +0,0 @@
1
- export default {
2
- root: {
3
- class: [
4
- // Sizing and Shape
5
- 'min-w-[12rem]',
6
- 'rounded-md',
7
- // Spacing
8
- 'py-2',
9
- // Colors
10
- 'bg-surface-0 dark:bg-surface-700',
11
- 'text-surface-700 dark:text-white/80',
12
- 'border border-surface-200 dark:border-surface-700'
13
- ]
14
- },
15
- menu: {
16
- class: [
17
- // Spacings and Shape
18
- 'list-none',
19
- 'm-0',
20
- 'p-0',
21
- 'outline-none'
22
- ]
23
- },
24
- content: ({ context }) => ({
25
- class: [
26
- //Shape
27
- 'rounded-none',
28
- // Colors
29
- 'text-surface-700 dark:text-white/80',
30
- {
31
- 'bg-surface-200 text-surface-700 dark:bg-surface-300/10 dark:text-white': context.focused
32
- },
33
- // Transitions
34
- 'transition-shadow',
35
- 'duration-200',
36
- // States
37
- 'hover:text-surface-700 dark:hover:text-white/80',
38
- 'hover:bg-surface-100 dark:bg-surface-700 dark:hover:bg-surface-400/10'
39
- ]
40
- }),
41
- action: {
42
- class: [
43
- 'relative',
44
- // Flexbox
45
-
46
- 'flex',
47
- 'items-center',
48
-
49
- // Spacing
50
- 'py-3',
51
- 'px-5',
52
-
53
- // Color
54
- 'text-surface-700 dark:text-white/80',
55
-
56
- // Misc
57
- 'no-underline',
58
- 'overflow-hidden',
59
- 'cursor-pointer',
60
- 'select-none'
61
- ]
62
- },
63
- icon: {
64
- class: [
65
- // Spacing
66
- 'mr-2',
67
-
68
- // Color
69
- 'text-surface-600 dark:text-white/70'
70
- ]
71
- },
72
- label: {
73
- class: ['leading-none']
74
- },
75
- submenuheader: {
76
- class: [
77
- // Font
78
- 'font-bold',
79
- // Spacing
80
- 'm-0',
81
- 'py-3 px-5',
82
- // Shape
83
- 'rounded-tl-none',
84
- 'rounded-tr-none',
85
- // Colors
86
- 'bg-surface-0 dark:bg-surface-700',
87
- 'text-surface-700 dark:text-white'
88
- ]
89
- },
90
- transition: {
91
- enterFromClass: 'opacity-0 scale-y-[0.8]',
92
- enterActiveClass: 'transition-[transform,opacity] duration-[120ms] ease-[cubic-bezier(0,0,0.2,1)]',
93
- leaveActiveClass: 'transition-opacity duration-100 ease-linear',
94
- leaveToClass: 'opacity-0'
95
- }
96
- };
@@ -1,85 +0,0 @@
1
- declare namespace _default {
2
- namespace root {
3
- let _class: string[];
4
- export { _class as class };
5
- }
6
- function menu({ props }: {
7
- props: any;
8
- }): {
9
- class: (string | {
10
- hidden: boolean;
11
- flex: any;
12
- })[];
13
- };
14
- namespace menuitem {
15
- let _class_1: string;
16
- export { _class_1 as class };
17
- }
18
- function content({ props, context }: {
19
- props: any;
20
- context: any;
21
- }): {
22
- class: (string | {
23
- 'rounded-md': any;
24
- 'text-surface-500 dark:text-white/70'?: undefined;
25
- 'text-surface-500 dark:text-white/70 bg-surface-200 dark:bg-surface-600/90'?: undefined;
26
- 'text-primary-700 dark:text-surface-0/80 bg-primary-50 dark:bg-primary-400/30'?: undefined;
27
- 'hover:bg-surface-100 dark:hover:bg-surface-600/80'?: undefined;
28
- 'hover:bg-primary-500/50 dark:hover:bg-primary-300/30 text-primary-700 dark:text-surface-0/80'?: undefined;
29
- } | {
30
- 'text-surface-500 dark:text-white/70': boolean;
31
- 'text-surface-500 dark:text-white/70 bg-surface-200 dark:bg-surface-600/90': any;
32
- 'text-primary-700 dark:text-surface-0/80 bg-primary-50 dark:bg-primary-400/30': any;
33
- 'rounded-md'?: undefined;
34
- 'hover:bg-surface-100 dark:hover:bg-surface-600/80'?: undefined;
35
- 'hover:bg-primary-500/50 dark:hover:bg-primary-300/30 text-primary-700 dark:text-surface-0/80'?: undefined;
36
- } | {
37
- 'hover:bg-surface-100 dark:hover:bg-surface-600/80': boolean;
38
- 'hover:bg-primary-500/50 dark:hover:bg-primary-300/30 text-primary-700 dark:text-surface-0/80': any;
39
- 'rounded-md'?: undefined;
40
- 'text-surface-500 dark:text-white/70'?: undefined;
41
- 'text-surface-500 dark:text-white/70 bg-surface-200 dark:bg-surface-600/90'?: undefined;
42
- 'text-primary-700 dark:text-surface-0/80 bg-primary-50 dark:bg-primary-400/30'?: undefined;
43
- })[];
44
- };
45
- function action({ context }: {
46
- context: any;
47
- }): {
48
- class: (string | {
49
- 'pl-9 sm:pl-5': boolean;
50
- 'pl-14 sm:pl-5': boolean;
51
- })[];
52
- };
53
- namespace icon {
54
- let _class_2: string;
55
- export { _class_2 as class };
56
- }
57
- function submenuicon({ props }: {
58
- props: any;
59
- }): {
60
- class: {
61
- 'ml-auto sm:ml-2': any;
62
- 'ml-auto': boolean;
63
- }[];
64
- };
65
- function submenu({ props }: {
66
- props: any;
67
- }): {
68
- class: (string | {
69
- 'sm:absolute sm:left-full sm:top-0': boolean;
70
- })[];
71
- };
72
- namespace separator {
73
- let _class_3: string;
74
- export { _class_3 as class };
75
- }
76
- namespace button {
77
- let _class_4: string[];
78
- export { _class_4 as class };
79
- }
80
- namespace end {
81
- let _class_5: string;
82
- export { _class_5 as class };
83
- }
84
- }
85
- export default _default;
@@ -1,176 +0,0 @@
1
- export default {
2
- root: {
3
- class: [
4
- 'relative',
5
-
6
- // Flexbox
7
- 'flex',
8
- 'items-center',
9
-
10
- // Spacing
11
- 'p-2',
12
-
13
- // Shape
14
- 'rounded-md',
15
-
16
- // Color
17
- 'bg-surface-50 dark:bg-surface-700',
18
- 'border border-surface-200 dark:border-surface-700'
19
- ]
20
- },
21
- menu: ({ props }) => ({
22
- class: [
23
- // Flexbox
24
- 'sm:flex',
25
- 'items-center',
26
- 'flex-wrap',
27
- 'flex-col sm:flex-row',
28
- { hidden: !props?.mobileActive, flex: props?.mobileActive },
29
-
30
- // Position
31
- 'absolute sm:relative',
32
- 'top-full left-0',
33
- 'sm:top-auto sm:left-auto',
34
-
35
- // Size
36
- 'w-full sm:w-auto',
37
-
38
- // Spacing
39
- 'm-0',
40
- 'py-1 sm:py-0 sm:p-0',
41
- 'list-none',
42
-
43
- // Shape
44
- 'shadow-md sm:shadow-none',
45
- 'border-0',
46
-
47
- // Color
48
- 'bg-surface-0 dark:bg-surface-700 sm:bg-transparent',
49
-
50
- // Misc
51
- 'outline-none'
52
- ]
53
- }),
54
- menuitem: {
55
- class: 'sm:relative sm:w-auto w-full static'
56
- },
57
- content: ({ props, context }) => ({
58
- class: [
59
- // Shape
60
- { 'rounded-md': props.root },
61
-
62
- // Colors
63
- {
64
- 'text-surface-500 dark:text-white/70': !context.focused && !context.active,
65
- 'text-surface-500 dark:text-white/70 bg-surface-200 dark:bg-surface-600/90': context.focused && !context.active,
66
- 'text-primary-700 dark:text-surface-0/80 bg-primary-50 dark:bg-primary-400/30': context.focused && context.active,
67
- 'text-primary-700 dark:text-surface-0/80 bg-primary-50 dark:bg-primary-400/30': !context.focused && context.active
68
- },
69
-
70
- // Hover States
71
- {
72
- 'hover:bg-surface-100 dark:hover:bg-surface-600/80': !context.active,
73
- 'hover:bg-primary-500/50 dark:hover:bg-primary-300/30 text-primary-700 dark:text-surface-0/80': context.active
74
- },
75
-
76
- // Transitions
77
- 'transition-all',
78
- 'duration-200'
79
- ]
80
- }),
81
- action: ({ context }) => ({
82
- class: [
83
- 'relative',
84
-
85
- // Flexbox
86
- 'flex',
87
- 'items-center',
88
-
89
- // Spacing
90
- 'py-3',
91
- 'px-5',
92
-
93
- // Size
94
- {
95
- 'pl-9 sm:pl-5': context.level === 1,
96
- 'pl-14 sm:pl-5': context.level === 2
97
- },
98
- 'leading-none',
99
-
100
- // Misc
101
- 'select-none',
102
- 'cursor-pointer',
103
- 'no-underline ',
104
- 'overflow-hidden'
105
- ]
106
- }),
107
- icon: {
108
- class: 'mr-2'
109
- },
110
- submenuicon: ({ props }) => ({
111
- class: [
112
- {
113
- 'ml-auto sm:ml-2': props.root,
114
- 'ml-auto': !props.root
115
- }
116
- ]
117
- }),
118
- submenu: ({ props }) => ({
119
- class: [
120
- // Size
121
- 'w-full sm:w-48',
122
-
123
- // Spacing
124
- 'py-1',
125
- 'm-0',
126
- 'list-none',
127
-
128
- // Shape
129
- 'shadow-none sm:shadow-md',
130
- 'border-0',
131
-
132
- // Position
133
- 'static sm:absolute',
134
- 'z-10',
135
- { 'sm:absolute sm:left-full sm:top-0': props.level > 1 },
136
-
137
- // Color
138
- 'bg-surface-0 dark:bg-surface-700'
139
- ]
140
- }),
141
- separator: {
142
- class: 'border-t border-surface-200 dark:border-surface-600 my-1'
143
- },
144
- button: {
145
- class: [
146
- // Flexbox
147
- 'flex sm:hidden',
148
- 'items-center justify-center',
149
-
150
- // Size
151
- 'w-8',
152
- 'h-8',
153
-
154
- // Shape
155
- 'rounded-full',
156
- // Color
157
- 'text-surface-500 dark:text-white/80',
158
-
159
- // States
160
- 'hover:text-surface-600 dark:hover:text-white/60',
161
- 'hover:bg-surface-100 dark:hover:bg-surface-600/80',
162
- 'focus:outline-none focus:outline-offset-0',
163
- 'focus:ring focus:ring-primary-400/50 dark:focus:ring-primary-300/50',
164
-
165
- // Transitions
166
- 'transition duration-200 ease-in-out',
167
-
168
- // Misc
169
- 'cursor-pointer',
170
- 'no-underline'
171
- ]
172
- },
173
- end: {
174
- class: 'ml-auto self-center'
175
- }
176
- };
@@ -1,70 +0,0 @@
1
- declare namespace _default {
2
- function root({ props }: {
3
- props: any;
4
- }): {
5
- class: (string | {
6
- 'bg-blue-100/70 dark:bg-blue-500/20': boolean;
7
- 'bg-green-100/70 dark:bg-green-500/20': boolean;
8
- 'bg-orange-100/70 dark:bg-orange-500/20': boolean;
9
- 'bg-red-100/70 dark:bg-red-500/20': boolean;
10
- 'border-blue-500 dark:border-blue-400'?: undefined;
11
- 'border-green-500 dark:border-green-400'?: undefined;
12
- 'border-orange-500 dark:border-orange-400'?: undefined;
13
- 'border-red-500 dark:border-red-400'?: undefined;
14
- 'text-blue-700 dark:text-blue-300'?: undefined;
15
- 'text-green-700 dark:text-green-300'?: undefined;
16
- 'text-orange-700 dark:text-orange-300'?: undefined;
17
- 'text-red-700 dark:text-red-300'?: undefined;
18
- } | {
19
- 'border-blue-500 dark:border-blue-400': boolean;
20
- 'border-green-500 dark:border-green-400': boolean;
21
- 'border-orange-500 dark:border-orange-400': boolean;
22
- 'border-red-500 dark:border-red-400': boolean;
23
- 'bg-blue-100/70 dark:bg-blue-500/20'?: undefined;
24
- 'bg-green-100/70 dark:bg-green-500/20'?: undefined;
25
- 'bg-orange-100/70 dark:bg-orange-500/20'?: undefined;
26
- 'bg-red-100/70 dark:bg-red-500/20'?: undefined;
27
- 'text-blue-700 dark:text-blue-300'?: undefined;
28
- 'text-green-700 dark:text-green-300'?: undefined;
29
- 'text-orange-700 dark:text-orange-300'?: undefined;
30
- 'text-red-700 dark:text-red-300'?: undefined;
31
- } | {
32
- 'text-blue-700 dark:text-blue-300': boolean;
33
- 'text-green-700 dark:text-green-300': boolean;
34
- 'text-orange-700 dark:text-orange-300': boolean;
35
- 'text-red-700 dark:text-red-300': boolean;
36
- 'bg-blue-100/70 dark:bg-blue-500/20'?: undefined;
37
- 'bg-green-100/70 dark:bg-green-500/20'?: undefined;
38
- 'bg-orange-100/70 dark:bg-orange-500/20'?: undefined;
39
- 'bg-red-100/70 dark:bg-red-500/20'?: undefined;
40
- 'border-blue-500 dark:border-blue-400'?: undefined;
41
- 'border-green-500 dark:border-green-400'?: undefined;
42
- 'border-orange-500 dark:border-orange-400'?: undefined;
43
- 'border-red-500 dark:border-red-400'?: undefined;
44
- })[];
45
- };
46
- namespace wrapper {
47
- let _class: string[];
48
- export { _class as class };
49
- }
50
- namespace icon {
51
- let _class_1: string[];
52
- export { _class_1 as class };
53
- }
54
- namespace text {
55
- let _class_2: string[];
56
- export { _class_2 as class };
57
- }
58
- namespace button {
59
- let _class_3: string[];
60
- export { _class_3 as class };
61
- }
62
- namespace transition {
63
- let enterFromClass: string;
64
- let enterActiveClass: string;
65
- let leaveFromClass: string;
66
- let leaveActiveClass: string;
67
- let leaveToClass: string;
68
- }
69
- }
70
- export default _default;