@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,71 +0,0 @@
1
- declare namespace _default {
2
- namespace root {
3
- let _class: string[];
4
- export { _class as class };
5
- }
6
- namespace content {
7
- let _class_1: string[];
8
- export { _class_1 as class };
9
- }
10
- function container({ props }: {
11
- props: any;
12
- }): {
13
- class: (string | {
14
- 'flex-row': boolean;
15
- 'flex-col': boolean;
16
- })[];
17
- };
18
- namespace previousbutton {
19
- let _class_2: string[];
20
- export { _class_2 as class };
21
- }
22
- namespace nextbutton {
23
- let _class_3: string[];
24
- export { _class_3 as class };
25
- }
26
- namespace itemscontent {
27
- let _class_4: string[];
28
- export { _class_4 as class };
29
- }
30
- function itemscontainer({ props }: {
31
- props: any;
32
- }): {
33
- class: (string | {
34
- 'flex-row': boolean;
35
- 'flex-col h-full': boolean;
36
- })[];
37
- };
38
- function item({ props }: {
39
- props: any;
40
- }): {
41
- class: (string | {
42
- 'w-full sm:w-[50%] md:w-[33.333333333333336%]': boolean;
43
- 'w-full h-full': boolean;
44
- })[];
45
- };
46
- function itemcloned({ props }: {
47
- props: any;
48
- }): {
49
- class: (string | {
50
- 'w-full sm:w-[50%] md:w-[33.333333333333336%]': boolean;
51
- 'w-full h-full': boolean;
52
- })[];
53
- };
54
- namespace indicators {
55
- let _class_5: string[];
56
- export { _class_5 as class };
57
- }
58
- namespace indicator {
59
- let _class_6: string[];
60
- export { _class_6 as class };
61
- }
62
- function indicatorbutton({ context }: {
63
- context: any;
64
- }): {
65
- class: (string | {
66
- 'bg-surface-200 hover:bg-surface-300 dark:bg-surface-700 dark:hover:bg-surface-600': boolean;
67
- 'bg-primary-500 hover:bg-primary-600': any;
68
- })[];
69
- };
70
- }
71
- export default _default;
@@ -1,149 +0,0 @@
1
- export default {
2
- root: {
3
- class: [
4
- // Flexbox
5
- 'flex flex-col'
6
- ]
7
- },
8
- content: {
9
- class: [
10
- // Flexbox & Overflow
11
- 'flex flex-col overflow-auto'
12
- ]
13
- },
14
- container: ({ props }) => ({
15
- class: [
16
- // Flexbox
17
- 'flex',
18
-
19
- // Orientation
20
- {
21
- 'flex-row': props.orientation !== 'vertical',
22
- 'flex-col': props.orientation == 'vertical'
23
- }
24
- ]
25
- }),
26
- previousbutton: {
27
- class: [
28
- // Flexbox & Alignment
29
- 'flex justify-center items-center self-center',
30
-
31
- // Sizing & Overflow
32
- 'overflow-hidden w-8 h-8',
33
-
34
- // Spacing
35
- 'mx-2',
36
-
37
- // Shape
38
- 'rounded-full',
39
-
40
- // Border & Background
41
- 'border-0 bg-transparent',
42
-
43
- // Color
44
- 'text-surface-600',
45
-
46
- // Transitions
47
- 'transition duration-200 ease-in-out'
48
- ]
49
- },
50
- nextbutton: {
51
- class: [
52
- // Flexbox & Alignment
53
- 'flex justify-center items-center self-center',
54
-
55
- // Sizing & Overflow
56
- 'overflow-hidden w-8 h-8',
57
-
58
- // Spacing
59
- 'mx-2',
60
-
61
- // Shape
62
- 'rounded-full',
63
-
64
- // Border & Background
65
- 'border-0 bg-transparent',
66
-
67
- // Color
68
- 'text-surface-600',
69
-
70
- // Transitions
71
- 'transition duration-200 ease-in-out'
72
- ]
73
- },
74
- itemscontent: {
75
- class: [
76
- // Overflow & Width
77
- 'overflow-hidden w-full'
78
- ]
79
- },
80
- itemscontainer: ({ props }) => ({
81
- class: [
82
- // Flexbox
83
- 'flex',
84
-
85
- // Orientation & Sizing
86
- {
87
- 'flex-row': props.orientation !== 'vertical',
88
- 'flex-col h-full': props.orientation == 'vertical'
89
- }
90
- ]
91
- }),
92
- item: ({ props }) => ({
93
- class: [
94
- // Flexbox
95
- 'flex shrink-0 grow ',
96
-
97
- // Size
98
- {
99
- 'w-full sm:w-[50%] md:w-[33.333333333333336%]': props.orientation !== 'vertical',
100
-
101
- 'w-full h-full': props.orientation == 'vertical'
102
- }
103
- ]
104
- }),
105
- itemcloned: ({ props }) => ({
106
- class: [
107
- // Flexbox
108
- 'flex shrink-0 grow',
109
- 'unvisible',
110
-
111
- // Size
112
- {
113
- 'w-full sm:w-[50%] md:w-[33.333333333333336%]': props.orientation !== 'vertical',
114
-
115
- 'w-full h-full': props.orientation == 'vertical'
116
- }
117
- ]
118
- }),
119
- indicators: {
120
- class: [
121
- // Flexbox & Alignment
122
- 'flex flex-row justify-center flex-wrap'
123
- ]
124
- },
125
- indicator: {
126
- class: [
127
- // Spacing
128
- 'mr-2 mb-2'
129
- ]
130
- },
131
- indicatorbutton: ({ context }) => ({
132
- class: [
133
- // Sizing & Shape
134
- 'w-8 h-2 rounded-0',
135
-
136
- // Transitions
137
- 'transition duration-200',
138
-
139
- // Focus Styles
140
- 'focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-400/50 dark:focus:ring-primary-300/50',
141
-
142
- // Color & Background
143
- {
144
- 'bg-surface-200 hover:bg-surface-300 dark:bg-surface-700 dark:hover:bg-surface-600': !context.highlighted,
145
- 'bg-primary-500 hover:bg-primary-600': context.highlighted
146
- }
147
- ]
148
- })
149
- };
@@ -1,112 +0,0 @@
1
- declare namespace _default {
2
- function root({ props, state }: {
3
- props: any;
4
- state: any;
5
- }): {
6
- class: (string | {
7
- 'border-surface-300 dark:border-surface-600': boolean;
8
- 'border-red-500 dark:border-red-400'?: undefined;
9
- 'hover:border-primary-500 dark:hover:border-primary-300'?: undefined;
10
- 'outline-none outline-offset-0 ring ring-primary-400/50 dark:ring-primary-300/50'?: undefined;
11
- 'opacity-60'?: undefined;
12
- 'pointer-events-none'?: undefined;
13
- 'cursor-default'?: undefined;
14
- } | {
15
- 'border-red-500 dark:border-red-400': any;
16
- 'border-surface-300 dark:border-surface-600'?: undefined;
17
- 'hover:border-primary-500 dark:hover:border-primary-300'?: undefined;
18
- 'outline-none outline-offset-0 ring ring-primary-400/50 dark:ring-primary-300/50'?: undefined;
19
- 'opacity-60'?: undefined;
20
- 'pointer-events-none'?: undefined;
21
- 'cursor-default'?: undefined;
22
- } | {
23
- 'hover:border-primary-500 dark:hover:border-primary-300': boolean;
24
- 'border-surface-300 dark:border-surface-600'?: undefined;
25
- 'border-red-500 dark:border-red-400'?: undefined;
26
- 'outline-none outline-offset-0 ring ring-primary-400/50 dark:ring-primary-300/50'?: undefined;
27
- 'opacity-60'?: undefined;
28
- 'pointer-events-none'?: undefined;
29
- 'cursor-default'?: undefined;
30
- } | {
31
- 'outline-none outline-offset-0 ring ring-primary-400/50 dark:ring-primary-300/50': any;
32
- 'border-surface-300 dark:border-surface-600'?: undefined;
33
- 'border-red-500 dark:border-red-400'?: undefined;
34
- 'hover:border-primary-500 dark:hover:border-primary-300'?: undefined;
35
- 'opacity-60'?: undefined;
36
- 'pointer-events-none'?: undefined;
37
- 'cursor-default'?: undefined;
38
- } | {
39
- 'opacity-60': any;
40
- 'pointer-events-none': any;
41
- 'cursor-default': any;
42
- 'border-surface-300 dark:border-surface-600'?: undefined;
43
- 'border-red-500 dark:border-red-400'?: undefined;
44
- 'hover:border-primary-500 dark:hover:border-primary-300'?: undefined;
45
- 'outline-none outline-offset-0 ring ring-primary-400/50 dark:ring-primary-300/50'?: undefined;
46
- })[];
47
- };
48
- function label({ props }: {
49
- props: any;
50
- }): {
51
- class: (string | {
52
- 'text-surface-800 dark:text-white/80': any;
53
- 'text-surface-400 dark:text-surface-500': boolean;
54
- })[];
55
- };
56
- namespace dropdownbutton {
57
- let _class: string[];
58
- export { _class as class };
59
- }
60
- namespace panel {
61
- let _class_1: string[];
62
- export { _class_1 as class };
63
- }
64
- namespace wrapper {
65
- let _class_2: string[];
66
- export { _class_2 as class };
67
- }
68
- namespace list {
69
- let _class_3: string;
70
- export { _class_3 as class };
71
- }
72
- function item({ context }: {
73
- context: any;
74
- }): {
75
- class: (string | {
76
- 'text-surface-500 dark:text-white/70': boolean;
77
- 'text-surface-500 dark:text-white/70 bg-surface-200 dark:bg-surface-600/90': any;
78
- 'text-primary-700 dark:text-surface-0/80 bg-primary-50 dark:bg-primary-400/30': any;
79
- 'hover:bg-surface-100 dark:hover:bg-surface-600/80'?: undefined;
80
- 'hover:bg-primary-500/50 dark:hover:bg-primary-300/30 text-primary-700 dark:text-surface-0/80'?: undefined;
81
- } | {
82
- 'hover:bg-surface-100 dark:hover:bg-surface-600/80': boolean;
83
- 'hover:bg-primary-500/50 dark:hover:bg-primary-300/30 text-primary-700 dark:text-surface-0/80': any;
84
- 'text-surface-500 dark:text-white/70'?: undefined;
85
- 'text-surface-500 dark:text-white/70 bg-surface-200 dark:bg-surface-600/90'?: undefined;
86
- 'text-primary-700 dark:text-surface-0/80 bg-primary-50 dark:bg-primary-400/30'?: undefined;
87
- })[];
88
- };
89
- namespace content {
90
- let _class_4: string[];
91
- export { _class_4 as class };
92
- }
93
- namespace groupicon {
94
- let _class_5: string[];
95
- export { _class_5 as class };
96
- }
97
- namespace sublist {
98
- let _class_6: string[];
99
- export { _class_6 as class };
100
- }
101
- namespace separator {
102
- let _class_7: string;
103
- export { _class_7 as class };
104
- }
105
- namespace transition {
106
- let enterFromClass: string;
107
- let enterActiveClass: string;
108
- let leaveActiveClass: string;
109
- let leaveToClass: string;
110
- }
111
- }
112
- export default _default;
@@ -1,209 +0,0 @@
1
- export default {
2
- root: ({ props, state }) => ({
3
- class: [
4
- // Display and Position
5
- 'inline-flex',
6
- 'relative',
7
-
8
- // Shape
9
- 'rounded-md',
10
-
11
- // Color and Background
12
- 'bg-surface-0 dark:bg-surface-900',
13
- 'border',
14
- { 'border-surface-300 dark:border-surface-600': !props.invalid },
15
-
16
- // Invalid State
17
- { 'border-red-500 dark:border-red-400': props.invalid },
18
-
19
- // Transitions
20
- 'transition-all',
21
- 'duration-200',
22
-
23
- // States
24
- { 'hover:border-primary-500 dark:hover:border-primary-300': !props.invalid },
25
- { 'outline-none outline-offset-0 ring ring-primary-400/50 dark:ring-primary-300/50': state.focused },
26
-
27
- // Misc
28
- 'cursor-pointer',
29
- 'select-none',
30
- { 'opacity-60': props.disabled, 'pointer-events-none': props.disabled, 'cursor-default': props.disabled }
31
- ]
32
- }),
33
- label: ({ props }) => ({
34
- class: [
35
- //Font
36
- 'font-sans',
37
- 'leading-none',
38
-
39
- // Flex & Alignment
40
- ' flex flex-auto',
41
-
42
- // Sizing and Spacing
43
- 'w-[1%]',
44
- 'p-3',
45
-
46
- //Shape
47
- 'rounded-none',
48
-
49
- // Color and Background
50
- 'bg-transparent',
51
- 'border-0',
52
- { 'text-surface-800 dark:text-white/80': props.modelValue, 'text-surface-400 dark:text-surface-500': !props.modelValue },
53
- 'placeholder:text-surface-400 dark:placeholder:text-surface-500',
54
-
55
- // Transitions
56
- 'transition',
57
- 'duration-200',
58
-
59
- // States
60
- 'focus:outline-none focus:shadow-none',
61
-
62
- // Misc
63
- 'relative',
64
- 'cursor-pointer',
65
- 'overflow-hidden overflow-ellipsis',
66
- 'whitespace-nowrap',
67
- 'appearance-none'
68
- ]
69
- }),
70
- dropdownbutton: {
71
- class: [
72
- // Flexbox
73
- 'flex items-center justify-center',
74
- 'shrink-0',
75
-
76
- // Color and Background
77
- 'bg-transparent',
78
- 'text-surface-500',
79
-
80
- // Size
81
- 'w-12',
82
-
83
- // Shape
84
- 'rounded-tr-md',
85
- 'rounded-br-md'
86
- ]
87
- },
88
- panel: {
89
- class: [
90
- // Position
91
- 'absolute top-0 left-0',
92
-
93
- // Shape
94
- 'border-0 dark:border',
95
- 'rounded-md',
96
- 'shadow-md',
97
-
98
- // Color
99
- 'bg-surface-0 dark:bg-surface-700',
100
- 'text-surface-800 dark:text-white/80',
101
- 'dark:border-surface-700'
102
- ]
103
- },
104
- wrapper: {
105
- class: [
106
- // Sizing
107
- 'max-h-[200px]',
108
-
109
- // Misc
110
- 'overflow-auto'
111
- ]
112
- },
113
- list: {
114
- class: 'py-3 list-none m-0'
115
- },
116
- item: ({ context }) => ({
117
- class: [
118
- // Font
119
- 'font-normal',
120
- 'leading-none',
121
-
122
- // Shape
123
- 'border-0',
124
- 'rounded-none',
125
-
126
- // Spacing
127
- 'm-0',
128
-
129
- // Colors
130
- {
131
- 'text-surface-500 dark:text-white/70': !context.focused && !context.active,
132
- 'text-surface-500 dark:text-white/70 bg-surface-200 dark:bg-surface-600/90': context.focused && !context.active,
133
- 'text-primary-700 dark:text-surface-0/80 bg-primary-50 dark:bg-primary-400/30': context.focused && context.active,
134
- 'text-primary-700 dark:text-surface-0/80 bg-primary-50 dark:bg-primary-400/30': !context.focused && context.active
135
- },
136
-
137
- // Hover States
138
- {
139
- 'hover:bg-surface-100 dark:hover:bg-surface-600/80': !context.active,
140
- 'hover:bg-primary-500/50 dark:hover:bg-primary-300/30 text-primary-700 dark:text-surface-0/80': context.active
141
- },
142
-
143
- // Transitions
144
- 'transition-shadow',
145
- 'duration-200',
146
-
147
- // Misc
148
- 'cursor-pointer',
149
- 'overflow-hidden',
150
- 'whitespace-nowrap'
151
- ]
152
- }),
153
- content: {
154
- class: [
155
- 'relative',
156
-
157
- // Flexbox
158
- 'flex',
159
- 'items-center',
160
-
161
- // Spacing
162
- 'py-3',
163
- 'px-5',
164
-
165
- // Misc
166
- 'no-underline',
167
- 'overflow-hidden',
168
- 'cursor-pointer',
169
- 'select-none'
170
- ]
171
- },
172
- groupicon: {
173
- class: [
174
- // Alignment
175
- 'ml-auto'
176
- ]
177
- },
178
- sublist: {
179
- class: [
180
- // Size
181
- 'w-full',
182
-
183
- // Spacing
184
- 'py-1',
185
- 'm-0',
186
- 'list-none',
187
-
188
- // Shape
189
- 'shadow-none sm:shadow-md',
190
- 'border-0',
191
-
192
- // Position
193
- 'static sm:absolute',
194
- 'z-10',
195
-
196
- // Color
197
- 'bg-surface-0 dark:bg-surface-700'
198
- ]
199
- },
200
- separator: {
201
- class: 'border-t border-surface-200 dark:border-surface-600 my-1'
202
- },
203
- transition: {
204
- enterFromClass: 'opacity-0 scale-y-[0.8]',
205
- enterActiveClass: 'transition-[transform,opacity] duration-[120ms] ease-[cubic-bezier(0,0,0.2,1)]',
206
- leaveActiveClass: 'transition-opacity duration-100 ease-linear',
207
- leaveToClass: 'opacity-0'
208
- }
209
- };
@@ -1,45 +0,0 @@
1
- declare namespace _default {
2
- namespace root {
3
- let _class: string[];
4
- export { _class as class };
5
- }
6
- function box({ props, context }: {
7
- props: any;
8
- context: any;
9
- }): {
10
- class: (string | {
11
- 'border-surface-200 bg-surface-0 dark:border-surface-700 dark:bg-surface-900': boolean;
12
- 'border-primary-500 bg-primary-500 dark:border-primary-400 dark:bg-primary-400': any;
13
- 'border-red-500 dark:border-red-400'?: undefined;
14
- 'peer-hover:border-primary-500 dark:peer-hover:border-primary-400'?: undefined;
15
- 'peer-hover:bg-primary-600 dark:peer-hover:bg-primary-300 peer-hover:border-primary-700 dark:peer-hover:border-primary-300'?: undefined;
16
- 'peer-focus-visible:border-primary-500 dark:peer-focus-visible:border-primary-400 peer-focus-visible:ring-2 peer-focus-visible:ring-primary-400/20 dark:peer-focus-visible:ring-primary-300/20'?: undefined;
17
- 'cursor-default opacity-60'?: undefined;
18
- } | {
19
- 'border-red-500 dark:border-red-400': any;
20
- 'border-surface-200 bg-surface-0 dark:border-surface-700 dark:bg-surface-900'?: undefined;
21
- 'border-primary-500 bg-primary-500 dark:border-primary-400 dark:bg-primary-400'?: undefined;
22
- 'peer-hover:border-primary-500 dark:peer-hover:border-primary-400'?: undefined;
23
- 'peer-hover:bg-primary-600 dark:peer-hover:bg-primary-300 peer-hover:border-primary-700 dark:peer-hover:border-primary-300'?: undefined;
24
- 'peer-focus-visible:border-primary-500 dark:peer-focus-visible:border-primary-400 peer-focus-visible:ring-2 peer-focus-visible:ring-primary-400/20 dark:peer-focus-visible:ring-primary-300/20'?: undefined;
25
- 'cursor-default opacity-60'?: undefined;
26
- } | {
27
- 'peer-hover:border-primary-500 dark:peer-hover:border-primary-400': boolean;
28
- 'peer-hover:bg-primary-600 dark:peer-hover:bg-primary-300 peer-hover:border-primary-700 dark:peer-hover:border-primary-300': any;
29
- 'peer-focus-visible:border-primary-500 dark:peer-focus-visible:border-primary-400 peer-focus-visible:ring-2 peer-focus-visible:ring-primary-400/20 dark:peer-focus-visible:ring-primary-300/20': boolean;
30
- 'cursor-default opacity-60': any;
31
- 'border-surface-200 bg-surface-0 dark:border-surface-700 dark:bg-surface-900'?: undefined;
32
- 'border-primary-500 bg-primary-500 dark:border-primary-400 dark:bg-primary-400'?: undefined;
33
- 'border-red-500 dark:border-red-400'?: undefined;
34
- })[];
35
- };
36
- namespace input {
37
- let _class_1: string[];
38
- export { _class_1 as class };
39
- }
40
- namespace icon {
41
- let _class_2: string[];
42
- export { _class_2 as class };
43
- }
44
- }
45
- export default _default;
@@ -1,101 +0,0 @@
1
- export default {
2
- root: {
3
- class: [
4
- 'relative',
5
-
6
- // Alignment
7
- 'inline-flex',
8
- 'align-bottom',
9
-
10
- // Size
11
- 'w-6',
12
- 'h-6',
13
-
14
- // Misc
15
- 'cursor-pointer',
16
- 'select-none'
17
- ]
18
- },
19
- box: ({ props, context }) => ({
20
- class: [
21
- // Alignment
22
- 'flex',
23
- 'items-center',
24
- 'justify-center',
25
-
26
- // Size
27
- 'w-6',
28
- 'h-6',
29
-
30
- // Shape
31
- 'rounded-md',
32
- 'border-2',
33
-
34
- // Colors
35
- {
36
- 'border-surface-200 bg-surface-0 dark:border-surface-700 dark:bg-surface-900': !context.checked && !props.invalid,
37
- 'border-primary-500 bg-primary-500 dark:border-primary-400 dark:bg-primary-400': context.checked
38
- },
39
-
40
- // Invalid State
41
- { 'border-red-500 dark:border-red-400': props.invalid },
42
-
43
- // States
44
- {
45
- 'peer-hover:border-primary-500 dark:peer-hover:border-primary-400': !props.disabled && !context.checked && !props.invalid,
46
- '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,
47
- '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,
48
- 'cursor-default opacity-60': props.disabled
49
- },
50
-
51
- // Transitions
52
- 'transition-colors',
53
- 'duration-200'
54
- ]
55
- }),
56
- input: {
57
- class: [
58
- 'peer',
59
-
60
- // Size
61
- 'w-full ',
62
- 'h-full',
63
-
64
- // Position
65
- 'absolute',
66
- 'top-0 left-0',
67
- 'z-10',
68
-
69
- // Spacing
70
- 'p-0',
71
- 'm-0',
72
-
73
- // Shape
74
- 'opacity-0',
75
- 'rounded-md',
76
- 'outline-none',
77
- 'border-2 border-surface-200 dark:border-surface-700',
78
-
79
- // Misc
80
- 'appearance-none',
81
- 'cursor-pointer'
82
- ]
83
- },
84
- icon: {
85
- class: [
86
- // Font
87
- 'text-base leading-none',
88
-
89
- // Size
90
- 'w-4',
91
- 'h-4',
92
-
93
- // Colors
94
- 'text-white dark:text-surface-900',
95
-
96
- // Transitions
97
- 'transition-all',
98
- 'duration-200'
99
- ]
100
- }
101
- };