@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,220 +0,0 @@
1
- export default {
2
- root: ({ props, context, parent }) => ({
3
- class: [
4
- 'relative',
5
-
6
- // Alignments
7
- 'items-center inline-flex text-center align-bottom justify-center',
8
-
9
- // Sizes & Spacing
10
- 'leading-[normal]',
11
- {
12
- 'px-4 py-3': props.size === null,
13
- 'text-sm py-2 px-3': props.size === 'small',
14
- 'text-xl py-3 px-4': props.size === 'large'
15
- },
16
- {
17
- 'w-12 p-0 py-3': props.label == null && props.icon !== null
18
- },
19
-
20
- // Shapes
21
- { 'shadow-lg': props.raised },
22
- { 'rounded-md': !props.rounded, 'rounded-full': props.rounded },
23
- { 'rounded-none first:rounded-l-md last:rounded-r-md': parent.instance.$name == 'InputGroup' },
24
-
25
- // Link Button
26
- { 'text-primary-600 bg-transparent border-transparent': props.link },
27
-
28
- // Plain Button
29
- { 'text-white bg-gray-500 border border-gray-500': props.plain && !props.outlined && !props.text },
30
- // Plain Text Button
31
- { 'text-surface-500': props.plain && props.text },
32
- // Plain Outlined Button
33
- { 'text-surface-500 border border-gray-500': props.plain && props.outlined },
34
-
35
- // Text Button
36
- { 'bg-transparent border-transparent': props.text && !props.plain },
37
-
38
- // Outlined Button
39
- { 'bg-transparent border': props.outlined && !props.plain },
40
-
41
- // --- Severity Buttons ---
42
-
43
- // Primary Button
44
- {
45
- 'text-white dark:text-surface-900': !props.link && props.severity === null && !props.text && !props.outlined && !props.plain,
46
- 'bg-primary-500 dark:bg-primary-400': !props.link && props.severity === null && !props.text && !props.outlined && !props.plain,
47
- 'border border-primary-500 dark:border-primary-400': !props.link && props.severity === null && !props.text && !props.outlined && !props.plain
48
- },
49
- // Primary Text Button
50
- { 'text-primary-500 dark:text-primary-400': props.text && props.severity === null && !props.plain },
51
- // Primary Outlined Button
52
- { 'text-primary-500 border border-primary-500 hover:bg-primary-300/20': props.outlined && props.severity === null && !props.plain },
53
-
54
- // Secondary Button
55
- {
56
- 'text-white dark:text-surface-900': props.severity === 'secondary' && !props.text && !props.outlined && !props.plain,
57
- 'bg-surface-500 dark:bg-surface-400': props.severity === 'secondary' && !props.text && !props.outlined && !props.plain,
58
- 'border border-surface-500 dark:border-surface-400': props.severity === 'secondary' && !props.text && !props.outlined && !props.plain
59
- },
60
- // Secondary Text Button
61
- { 'text-surface-500 dark:text-surface-300': props.text && props.severity === 'secondary' && !props.plain },
62
- // Secondary Outlined Button
63
- { 'text-surface-500 dark:text-surface-300 border border-surface-500 hover:bg-surface-300/20': props.outlined && props.severity === 'secondary' && !props.plain },
64
-
65
- // Success Button
66
- {
67
- 'text-white dark:text-green-900': props.severity === 'success' && !props.text && !props.outlined && !props.plain,
68
- 'bg-green-500 dark:bg-green-400': props.severity === 'success' && !props.text && !props.outlined && !props.plain,
69
- 'border border-green-500 dark:border-green-400': props.severity === 'success' && !props.text && !props.outlined && !props.plain
70
- },
71
- // Success Text Button
72
- { 'text-green-500 dark:text-green-400': props.text && props.severity === 'success' && !props.plain },
73
- // Success Outlined Button
74
- { 'text-green-500 border border-green-500 hover:bg-green-300/20': props.outlined && props.severity === 'success' && !props.plain },
75
-
76
- // Info Button
77
- {
78
- 'text-white dark:text-surface-900': props.severity === 'info' && !props.text && !props.outlined && !props.plain,
79
- 'bg-blue-500 dark:bg-blue-400': props.severity === 'info' && !props.text && !props.outlined && !props.plain,
80
- 'border border-blue-500 dark:border-blue-400': props.severity === 'info' && !props.text && !props.outlined && !props.plain
81
- },
82
- // Info Text Button
83
- { 'text-blue-500 dark:text-blue-400': props.text && props.severity === 'info' && !props.plain },
84
- // Info Outlined Button
85
- { 'text-blue-500 border border-blue-500 hover:bg-blue-300/20 ': props.outlined && props.severity === 'info' && !props.plain },
86
-
87
- // Warning Button
88
- {
89
- 'text-white dark:text-surface-900': props.severity === 'warning' && !props.text && !props.outlined && !props.plain,
90
- 'bg-orange-500 dark:bg-orange-400': props.severity === 'warning' && !props.text && !props.outlined && !props.plain,
91
- 'border border-orange-500 dark:border-orange-400': props.severity === 'warning' && !props.text && !props.outlined && !props.plain
92
- },
93
- // Warning Text Button
94
- { 'text-orange-500 dark:text-orange-400': props.text && props.severity === 'warning' && !props.plain },
95
- // Warning Outlined Button
96
- { 'text-orange-500 border border-orange-500 hover:bg-orange-300/20': props.outlined && props.severity === 'warning' && !props.plain },
97
-
98
- // Help Button
99
- {
100
- 'text-white dark:text-surface-900': props.severity === 'help' && !props.text && !props.outlined && !props.plain,
101
- 'bg-purple-500 dark:bg-purple-400': props.severity === 'help' && !props.text && !props.outlined && !props.plain,
102
- 'border border-purple-500 dark:border-purple-400': props.severity === 'help' && !props.text && !props.outlined && !props.plain
103
- },
104
- // Help Text Button
105
- { 'text-purple-500 dark:text-purple-400': props.text && props.severity === 'help' && !props.plain },
106
- // Help Outlined Button
107
- { 'text-purple-500 border border-purple-500 hover:bg-purple-300/20': props.outlined && props.severity === 'help' && !props.plain },
108
-
109
- // Danger Button
110
- {
111
- 'text-white dark:text-surface-900': props.severity === 'danger' && !props.text && !props.outlined && !props.plain,
112
- 'bg-red-500 dark:bg-red-400': props.severity === 'danger' && !props.text && !props.outlined && !props.plain,
113
- 'border border-red-500 dark:border-red-400': props.severity === 'danger' && !props.text && !props.outlined && !props.plain
114
- },
115
- // Danger Text Button
116
- { 'text-red-500 dark:text-red-400': props.text && props.severity === 'danger' && !props.plain },
117
- // Danger Outlined Button
118
- { 'text-red-500 border border-red-500 hover:bg-red-300/20': props.outlined && props.severity === 'danger' && !props.plain },
119
-
120
- // --- Severity Button States ---
121
- 'focus:outline-none focus:outline-offset-0 focus:ring',
122
-
123
- // Link
124
- { 'focus:ring-primary-400/50 dark:focus:ring-primary-300/50': props.link },
125
-
126
- // Plain
127
- { 'hover:bg-gray-600 hover:border-gray-600': props.plain && !props.outlined && !props.text },
128
- // Text & Outlined Button
129
- { 'hover:bg-surface-300/20': props.plain && (props.text || props.outlined) },
130
-
131
- // Primary
132
- { 'hover:bg-primary-600 dark:hover:bg-primary-300 hover:border-primary-600 dark:hover:border-primary-300': !props.link && props.severity === null && !props.text && !props.outlined && !props.plain },
133
- { 'focus:ring-primary-400/50 dark:focus:ring-primary-300/50': props.severity === null },
134
- // Text & Outlined Button
135
- { 'hover:bg-primary-300/20': (props.text || props.outlined) && props.severity === null && !props.plain },
136
-
137
- // Secondary
138
- { 'hover:bg-surface-600 dark:hover:bg-surface-300 hover:border-surface-600 dark:hover:border-surface-300': props.severity === 'secondary' && !props.text && !props.outlined && !props.plain },
139
- { 'focus:ring-surface-400/50 dark:focus:ring-surface-300/50': props.severity === 'secondary' },
140
- // Text & Outlined Button
141
- { 'hover:bg-surface-300/20': (props.text || props.outlined) && props.severity === 'secondary' && !props.plain },
142
-
143
- // Success
144
- { 'hover:bg-green-600 dark:hover:bg-green-300 hover:border-green-600 dark:hover:border-green-300': props.severity === 'success' && !props.text && !props.outlined && !props.plain },
145
- { 'focus:ring-green-400/50 dark:focus:ring-green-300/50': props.severity === 'success' },
146
- // Text & Outlined Button
147
- { 'hover:bg-green-300/20': (props.text || props.outlined) && props.severity === 'success' && !props.plain },
148
-
149
- // Info
150
- { 'hover:bg-blue-600 dark:hover:bg-blue-300 hover:border-blue-600 dark:hover:border-blue-300': props.severity === 'info' && !props.text && !props.outlined && !props.plain },
151
- { 'focus:ring-blue-400/50 dark:focus:ring-blue-300/50': props.severity === 'info' },
152
- // Text & Outlined Button
153
- { 'hover:bg-blue-300/20': (props.text || props.outlined) && props.severity === 'info' && !props.plain },
154
-
155
- // Warning
156
- { 'hover:bg-orange-600 dark:hover:bg-orange-300 hover:border-orange-600 dark:hover:border-orange-300': props.severity === 'warning' && !props.text && !props.outlined && !props.plain },
157
- { 'focus:ring-orange-400/50 dark:focus:ring-orange-300/50': props.severity === 'warning' },
158
- // Text & Outlined Button
159
- { 'hover:bg-orange-300/20': (props.text || props.outlined) && props.severity === 'warning' && !props.plain },
160
-
161
- // Help
162
- { 'hover:bg-purple-600 dark:hover:bg-purple-300 hover:border-purple-600 dark:hover:border-purple-300': props.severity === 'help' && !props.text && !props.outlined && !props.plain },
163
- { 'focus:ring-purple-400/50 dark:focus:ring-purple-300/50': props.severity === 'help' },
164
- // Text & Outlined Button
165
- { 'hover:bg-purple-300/20': (props.text || props.outlined) && props.severity === 'help' && !props.plain },
166
-
167
- // Danger
168
- { 'hover:bg-red-600 dark:hover:bg-red-300 hover:border-red-600 dark:hover:border-red-300': props.severity === 'danger' && !props.text && !props.outlined && !props.plain },
169
- { 'focus:ring-red-400/50 dark:focus:ring-red-300/50': props.severity === 'danger' },
170
- // Text & Outlined Button
171
- { 'hover:bg-red-300/20': (props.text || props.outlined) && props.severity === 'danger' && !props.plain },
172
-
173
- // Disabled
174
- { 'opacity-60 pointer-events-none cursor-default': context.disabled },
175
-
176
- // Transitions
177
- 'transition duration-200 ease-in-out',
178
-
179
- // Misc
180
- 'cursor-pointer overflow-hidden select-none'
181
- ]
182
- }),
183
- label: ({ props }) => ({
184
- class: [
185
- 'duration-200',
186
- 'font-bold',
187
- {
188
- 'hover:underline': props.link
189
- },
190
- { 'flex-1': props.label !== null, 'invisible w-0': props.label == null }
191
- ]
192
- }),
193
- icon: ({ props }) => ({
194
- class: [
195
- 'mx-0',
196
- {
197
- 'mr-2': props.iconPos == 'left' && props.label != null,
198
- 'ml-2 order-1': props.iconPos == 'right' && props.label != null,
199
- 'mb-2': props.iconPos == 'top' && props.label != null,
200
- 'mt-2': props.iconPos == 'bottom' && props.label != null
201
- }
202
- ]
203
- }),
204
- loadingicon: ({ props }) => ({
205
- class: [
206
- 'h-4 w-4',
207
- 'mx-0',
208
- {
209
- 'mr-2': props.iconPos == 'left' && props.label != null,
210
- 'ml-2 order-1': props.iconPos == 'right' && props.label != null,
211
- 'mb-2': props.iconPos == 'top' && props.label != null,
212
- 'mt-2': props.iconPos == 'bottom' && props.label != null
213
- },
214
- 'animate-spin'
215
- ]
216
- }),
217
- badge: ({ props }) => ({
218
- class: [{ 'ml-2 w-4 h-4 leading-none flex items-center justify-center': props.badge }]
219
- })
220
- };
@@ -1,334 +0,0 @@
1
- declare namespace _default {
2
- function root({ props }: {
3
- props: any;
4
- }): {
5
- class: (string | {
6
- 'opacity-60 select-none pointer-events-none cursor-default': any;
7
- })[];
8
- };
9
- function input({ props }: {
10
- props: any;
11
- }): {
12
- class: (string | {
13
- 'border-surface-300 dark:border-surface-600': boolean;
14
- 'border-red-500 dark:border-red-400'?: undefined;
15
- 'rounded-md'?: undefined;
16
- 'rounded-l-md flex-1 pr-9'?: undefined;
17
- 'rounded-md flex-1 pr-9'?: undefined;
18
- 'hover:border-primary-500 dark:hover:border-primary-400'?: undefined;
19
- } | {
20
- 'border-red-500 dark:border-red-400': any;
21
- 'border-surface-300 dark:border-surface-600'?: undefined;
22
- 'rounded-md'?: undefined;
23
- 'rounded-l-md flex-1 pr-9'?: undefined;
24
- 'rounded-md flex-1 pr-9'?: undefined;
25
- 'hover:border-primary-500 dark:hover:border-primary-400'?: undefined;
26
- } | {
27
- 'rounded-md': boolean;
28
- 'border-surface-300 dark:border-surface-600'?: undefined;
29
- 'border-red-500 dark:border-red-400'?: undefined;
30
- 'rounded-l-md flex-1 pr-9'?: undefined;
31
- 'rounded-md flex-1 pr-9'?: undefined;
32
- 'hover:border-primary-500 dark:hover:border-primary-400'?: undefined;
33
- } | {
34
- 'rounded-l-md flex-1 pr-9': any;
35
- 'border-surface-300 dark:border-surface-600'?: undefined;
36
- 'border-red-500 dark:border-red-400'?: undefined;
37
- 'rounded-md'?: undefined;
38
- 'rounded-md flex-1 pr-9'?: undefined;
39
- 'hover:border-primary-500 dark:hover:border-primary-400'?: undefined;
40
- } | {
41
- 'rounded-md flex-1 pr-9': any;
42
- 'border-surface-300 dark:border-surface-600'?: undefined;
43
- 'border-red-500 dark:border-red-400'?: undefined;
44
- 'rounded-md'?: undefined;
45
- 'rounded-l-md flex-1 pr-9'?: undefined;
46
- 'hover:border-primary-500 dark:hover:border-primary-400'?: undefined;
47
- } | {
48
- 'hover:border-primary-500 dark:hover:border-primary-400': boolean;
49
- 'border-surface-300 dark:border-surface-600'?: undefined;
50
- 'border-red-500 dark:border-red-400'?: undefined;
51
- 'rounded-md'?: undefined;
52
- 'rounded-l-md flex-1 pr-9'?: undefined;
53
- 'rounded-md flex-1 pr-9'?: undefined;
54
- })[];
55
- };
56
- namespace inputicon {
57
- let _class: string[];
58
- export { _class as class };
59
- }
60
- namespace dropdownbutton {
61
- export namespace root_1 {
62
- let _class_1: string[];
63
- export { _class_1 as class };
64
- }
65
- export { root_1 as root };
66
- }
67
- function panel({ props }: {
68
- props: any;
69
- }): {
70
- class: (string | {
71
- absolute: boolean;
72
- 'inline-block': any;
73
- 'w-auto p-2 '?: undefined;
74
- 'min-w-[80vw] w-auto p-2 '?: undefined;
75
- 'p-2 min-w-full'?: undefined;
76
- 'shadow-md'?: undefined;
77
- 'overflow-x-auto'?: undefined;
78
- } | {
79
- 'w-auto p-2 ': boolean;
80
- absolute?: undefined;
81
- 'inline-block'?: undefined;
82
- 'min-w-[80vw] w-auto p-2 '?: undefined;
83
- 'p-2 min-w-full'?: undefined;
84
- 'shadow-md'?: undefined;
85
- 'overflow-x-auto'?: undefined;
86
- } | {
87
- 'min-w-[80vw] w-auto p-2 ': any;
88
- absolute?: undefined;
89
- 'inline-block'?: undefined;
90
- 'w-auto p-2 '?: undefined;
91
- 'p-2 min-w-full'?: undefined;
92
- 'shadow-md'?: undefined;
93
- 'overflow-x-auto'?: undefined;
94
- } | {
95
- 'p-2 min-w-full': any;
96
- absolute?: undefined;
97
- 'inline-block'?: undefined;
98
- 'w-auto p-2 '?: undefined;
99
- 'min-w-[80vw] w-auto p-2 '?: undefined;
100
- 'shadow-md'?: undefined;
101
- 'overflow-x-auto'?: undefined;
102
- } | {
103
- 'shadow-md': boolean;
104
- absolute?: undefined;
105
- 'inline-block'?: undefined;
106
- 'w-auto p-2 '?: undefined;
107
- 'min-w-[80vw] w-auto p-2 '?: undefined;
108
- 'p-2 min-w-full'?: undefined;
109
- 'overflow-x-auto'?: undefined;
110
- } | {
111
- 'overflow-x-auto': any;
112
- absolute?: undefined;
113
- 'inline-block'?: undefined;
114
- 'w-auto p-2 '?: undefined;
115
- 'min-w-[80vw] w-auto p-2 '?: undefined;
116
- 'p-2 min-w-full'?: undefined;
117
- 'shadow-md'?: undefined;
118
- })[];
119
- };
120
- namespace datepickerMask {
121
- let _class_2: string[];
122
- export { _class_2 as class };
123
- }
124
- namespace header {
125
- let _class_3: string[];
126
- export { _class_3 as class };
127
- }
128
- namespace previousbutton {
129
- let _class_4: string[];
130
- export { _class_4 as class };
131
- }
132
- namespace title {
133
- let _class_5: string[];
134
- export { _class_5 as class };
135
- }
136
- namespace monthTitle {
137
- let _class_6: string[];
138
- export { _class_6 as class };
139
- }
140
- namespace yearTitle {
141
- let _class_7: string[];
142
- export { _class_7 as class };
143
- }
144
- namespace nextbutton {
145
- let _class_8: string[];
146
- export { _class_8 as class };
147
- }
148
- namespace table {
149
- let _class_9: string[];
150
- export { _class_9 as class };
151
- }
152
- namespace tableheadercell {
153
- let _class_10: string[];
154
- export { _class_10 as class };
155
- }
156
- namespace weekheader {
157
- let _class_11: string[];
158
- export { _class_11 as class };
159
- }
160
- namespace weeknumber {
161
- let _class_12: string[];
162
- export { _class_12 as class };
163
- }
164
- namespace weekday {
165
- let _class_13: string[];
166
- export { _class_13 as class };
167
- }
168
- namespace day {
169
- let _class_14: string[];
170
- export { _class_14 as class };
171
- }
172
- function weeklabelcontainer({ context }: {
173
- context: any;
174
- }): {
175
- class: (string | {
176
- 'text-surface-600 dark:text-white/70 bg-transparent': boolean;
177
- 'text-primary-700 bg-primary-100': any;
178
- 'hover:bg-surface-100 dark:hover:bg-surface-800/80'?: undefined;
179
- 'hover:bg-primary-200'?: undefined;
180
- 'opacity-60 cursor-default'?: undefined;
181
- 'cursor-pointer'?: undefined;
182
- } | {
183
- 'hover:bg-surface-100 dark:hover:bg-surface-800/80': boolean;
184
- 'hover:bg-primary-200': any;
185
- 'text-surface-600 dark:text-white/70 bg-transparent'?: undefined;
186
- 'text-primary-700 bg-primary-100'?: undefined;
187
- 'opacity-60 cursor-default'?: undefined;
188
- 'cursor-pointer'?: undefined;
189
- } | {
190
- 'opacity-60 cursor-default': any;
191
- 'cursor-pointer': boolean;
192
- 'text-surface-600 dark:text-white/70 bg-transparent'?: undefined;
193
- 'text-primary-700 bg-primary-100'?: undefined;
194
- 'hover:bg-surface-100 dark:hover:bg-surface-800/80'?: undefined;
195
- 'hover:bg-primary-200'?: undefined;
196
- })[];
197
- };
198
- function daylabel({ context }: {
199
- context: any;
200
- }): {
201
- class: (string | {
202
- 'text-primary-500 dark:text-primary-400': any;
203
- 'text-surface-600 dark:text-white/70 bg-transparent': boolean;
204
- 'text-primary-700 bg-primary-100 dark:text-surface-0 dark:bg-primary-300/40': any;
205
- 'hover:bg-surface-100 dark:hover:bg-surface-600/80'?: undefined;
206
- 'hover:bg-primary-200 dark:hover:bg-primary-200/40'?: undefined;
207
- 'opacity-60 cursor-default'?: undefined;
208
- 'cursor-pointer'?: undefined;
209
- } | {
210
- 'hover:bg-surface-100 dark:hover:bg-surface-600/80': boolean;
211
- 'hover:bg-primary-200 dark:hover:bg-primary-200/40': any;
212
- 'text-primary-500 dark:text-primary-400'?: undefined;
213
- 'text-surface-600 dark:text-white/70 bg-transparent'?: undefined;
214
- 'text-primary-700 bg-primary-100 dark:text-surface-0 dark:bg-primary-300/40'?: undefined;
215
- 'opacity-60 cursor-default'?: undefined;
216
- 'cursor-pointer'?: undefined;
217
- } | {
218
- 'opacity-60 cursor-default': any;
219
- 'cursor-pointer': boolean;
220
- 'text-primary-500 dark:text-primary-400'?: undefined;
221
- 'text-surface-600 dark:text-white/70 bg-transparent'?: undefined;
222
- 'text-primary-700 bg-primary-100 dark:text-surface-0 dark:bg-primary-300/40'?: undefined;
223
- 'hover:bg-surface-100 dark:hover:bg-surface-600/80'?: undefined;
224
- 'hover:bg-primary-200 dark:hover:bg-primary-200/40'?: undefined;
225
- })[];
226
- };
227
- namespace monthpicker {
228
- let _class_15: string[];
229
- export { _class_15 as class };
230
- }
231
- function month({ context }: {
232
- context: any;
233
- }): {
234
- class: (string | {
235
- 'text-surface-600 dark:text-white/70 bg-transparent': boolean;
236
- 'text-primary-700 bg-primary-100 dark:text-surface-0 dark:bg-primary-300/40': any;
237
- 'hover:bg-surface-100 dark:hover:bg-surface-600/80'?: undefined;
238
- 'hover:bg-primary-200 dark:hover:bg-primary-200/40'?: undefined;
239
- } | {
240
- 'hover:bg-surface-100 dark:hover:bg-surface-600/80': boolean;
241
- 'hover:bg-primary-200 dark:hover:bg-primary-200/40': any;
242
- 'text-surface-600 dark:text-white/70 bg-transparent'?: undefined;
243
- 'text-primary-700 bg-primary-100 dark:text-surface-0 dark:bg-primary-300/40'?: undefined;
244
- })[];
245
- };
246
- namespace yearpicker {
247
- let _class_16: string[];
248
- export { _class_16 as class };
249
- }
250
- function year({ context }: {
251
- context: any;
252
- }): {
253
- class: (string | {
254
- 'text-surface-600 dark:text-white/70 bg-transparent': boolean;
255
- 'text-primary-700 bg-primary-100 dark:text-surface-0 dark:bg-primary-300/40': any;
256
- 'hover:bg-surface-100 dark:hover:bg-surface-600/80'?: undefined;
257
- 'hover:bg-primary-200 dark:hover:bg-primary-200/40'?: undefined;
258
- } | {
259
- 'hover:bg-surface-100 dark:hover:bg-surface-600/80': boolean;
260
- 'hover:bg-primary-200 dark:hover:bg-primary-200/40': any;
261
- 'text-surface-600 dark:text-white/70 bg-transparent'?: undefined;
262
- 'text-primary-700 bg-primary-100 dark:text-surface-0 dark:bg-primary-300/40'?: undefined;
263
- })[];
264
- };
265
- namespace timepicker {
266
- let _class_17: string[];
267
- export { _class_17 as class };
268
- }
269
- namespace separatorcontainer {
270
- let _class_18: string[];
271
- export { _class_18 as class };
272
- }
273
- namespace separator {
274
- let _class_19: string[];
275
- export { _class_19 as class };
276
- }
277
- namespace hourpicker {
278
- let _class_20: string[];
279
- export { _class_20 as class };
280
- }
281
- namespace minutepicker {
282
- let _class_21: string[];
283
- export { _class_21 as class };
284
- }
285
- namespace secondPicker {
286
- let _class_22: string[];
287
- export { _class_22 as class };
288
- }
289
- namespace ampmpicker {
290
- let _class_23: string[];
291
- export { _class_23 as class };
292
- }
293
- namespace incrementbutton {
294
- let _class_24: string[];
295
- export { _class_24 as class };
296
- }
297
- namespace decrementbutton {
298
- let _class_25: string[];
299
- export { _class_25 as class };
300
- }
301
- namespace groupcontainer {
302
- let _class_26: string[];
303
- export { _class_26 as class };
304
- }
305
- namespace group {
306
- let _class_27: string[];
307
- export { _class_27 as class };
308
- }
309
- namespace buttonbar {
310
- let _class_28: string[];
311
- export { _class_28 as class };
312
- }
313
- namespace todaybutton {
314
- export namespace root_2 {
315
- let _class_29: string[];
316
- export { _class_29 as class };
317
- }
318
- export { root_2 as root };
319
- }
320
- namespace clearbutton {
321
- export namespace root_3 {
322
- let _class_30: string[];
323
- export { _class_30 as class };
324
- }
325
- export { root_3 as root };
326
- }
327
- namespace transition {
328
- let enterFromClass: string;
329
- let enterActiveClass: string;
330
- let leaveActiveClass: string;
331
- let leaveToClass: string;
332
- }
333
- }
334
- export default _default;