@gluhar/theme 2.0.0-dev.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 (206) hide show
  1. package/CHANGELOG.md +147 -0
  2. package/README.md +162 -0
  3. package/dist/module.cjs +5 -0
  4. package/dist/module.d.mts +13 -0
  5. package/dist/module.d.ts +13 -0
  6. package/dist/module.json +9 -0
  7. package/dist/module.mjs +34 -0
  8. package/dist/runtime/composables/useTheme.d.ts +10 -0
  9. package/dist/runtime/composables/useTheme.js +29 -0
  10. package/dist/runtime/fonts/object-sans/PPObjectSans-Heavy.otf +0 -0
  11. package/dist/runtime/fonts/object-sans/PPObjectSans-HeavySlanted.otf +0 -0
  12. package/dist/runtime/fonts/object-sans/PPObjectSans-Regular.otf +0 -0
  13. package/dist/runtime/fonts/object-sans/PPObjectSans-Slanted.otf +0 -0
  14. package/dist/runtime/fonts/object-sans/stylesheet.css +1 -0
  15. package/dist/runtime/presets/lara/accordion/index.d.ts +49 -0
  16. package/dist/runtime/presets/lara/accordion/index.js +78 -0
  17. package/dist/runtime/presets/lara/autocomplete/index.d.ts +200 -0
  18. package/dist/runtime/presets/lara/autocomplete/index.js +259 -0
  19. package/dist/runtime/presets/lara/avatar/index.d.ts +83 -0
  20. package/dist/runtime/presets/lara/avatar/index.js +43 -0
  21. package/dist/runtime/presets/lara/avatargroup/index.d.ts +7 -0
  22. package/dist/runtime/presets/lara/avatargroup/index.js +5 -0
  23. package/dist/runtime/presets/lara/badge/index.d.ts +72 -0
  24. package/dist/runtime/presets/lara/badge/index.js +43 -0
  25. package/dist/runtime/presets/lara/badgedirective/index.d.ts +50 -0
  26. package/dist/runtime/presets/lara/badgedirective/index.js +43 -0
  27. package/dist/runtime/presets/lara/blockui/index.d.ts +11 -0
  28. package/dist/runtime/presets/lara/blockui/index.js +8 -0
  29. package/dist/runtime/presets/lara/breadcrumb/index.d.ts +23 -0
  30. package/dist/runtime/presets/lara/breadcrumb/index.js +64 -0
  31. package/dist/runtime/presets/lara/button/index.d.ts +3790 -0
  32. package/dist/runtime/presets/lara/button/index.js +220 -0
  33. package/dist/runtime/presets/lara/calendar/index.d.ts +334 -0
  34. package/dist/runtime/presets/lara/calendar/index.js +643 -0
  35. package/dist/runtime/presets/lara/card/index.d.ts +27 -0
  36. package/dist/runtime/presets/lara/card/index.js +37 -0
  37. package/dist/runtime/presets/lara/carousel/index.d.ts +71 -0
  38. package/dist/runtime/presets/lara/carousel/index.js +149 -0
  39. package/dist/runtime/presets/lara/cascadeselect/index.d.ts +112 -0
  40. package/dist/runtime/presets/lara/cascadeselect/index.js +209 -0
  41. package/dist/runtime/presets/lara/checkbox/index.d.ts +45 -0
  42. package/dist/runtime/presets/lara/checkbox/index.js +101 -0
  43. package/dist/runtime/presets/lara/chip/index.d.ts +23 -0
  44. package/dist/runtime/presets/lara/chip/index.js +45 -0
  45. package/dist/runtime/presets/lara/chips/index.d.ts +56 -0
  46. package/dist/runtime/presets/lara/chips/index.js +114 -0
  47. package/dist/runtime/presets/lara/colorpicker/index.d.ts +51 -0
  48. package/dist/runtime/presets/lara/colorpicker/index.js +123 -0
  49. package/dist/runtime/presets/lara/confirmpopup/index.d.ts +39 -0
  50. package/dist/runtime/presets/lara/confirmpopup/index.js +106 -0
  51. package/dist/runtime/presets/lara/contextmenu/index.d.ts +72 -0
  52. package/dist/runtime/presets/lara/contextmenu/index.js +125 -0
  53. package/dist/runtime/presets/lara/datatable/index.d.ts +695 -0
  54. package/dist/runtime/presets/lara/datatable/index.js +1170 -0
  55. package/dist/runtime/presets/lara/dataview/index.d.ts +15 -0
  56. package/dist/runtime/presets/lara/dataview/index.js +40 -0
  57. package/dist/runtime/presets/lara/dataviewlayoutoptions/index.d.ts +13 -0
  58. package/dist/runtime/presets/lara/dataviewlayoutoptions/index.js +62 -0
  59. package/dist/runtime/presets/lara/deferred/index.d.ts +4 -0
  60. package/dist/runtime/presets/lara/deferred/index.js +3 -0
  61. package/dist/runtime/presets/lara/dialog/index.d.ts +79 -0
  62. package/dist/runtime/presets/lara/dialog/index.js +235 -0
  63. package/dist/runtime/presets/lara/divider/index.d.ts +192 -0
  64. package/dist/runtime/presets/lara/divider/index.js +67 -0
  65. package/dist/runtime/presets/lara/dock/index.d.ts +51 -0
  66. package/dist/runtime/presets/lara/dock/index.js +93 -0
  67. package/dist/runtime/presets/lara/dropdown/index.d.ts +207 -0
  68. package/dist/runtime/presets/lara/dropdown/index.js +265 -0
  69. package/dist/runtime/presets/lara/fieldset/index.d.ts +87 -0
  70. package/dist/runtime/presets/lara/fieldset/index.js +84 -0
  71. package/dist/runtime/presets/lara/fileupload/index.d.ts +70 -0
  72. package/dist/runtime/presets/lara/fileupload/index.js +173 -0
  73. package/dist/runtime/presets/lara/floatlabel/index.d.ts +7 -0
  74. package/dist/runtime/presets/lara/floatlabel/index.js +26 -0
  75. package/dist/runtime/presets/lara/galleria/index.d.ts +194 -0
  76. package/dist/runtime/presets/lara/galleria/index.js +306 -0
  77. package/dist/runtime/presets/lara/global.d.ts +4 -0
  78. package/dist/runtime/presets/lara/global.js +90 -0
  79. package/dist/runtime/presets/lara/iconfield/index.d.ts +18 -0
  80. package/dist/runtime/presets/lara/iconfield/index.js +22 -0
  81. package/dist/runtime/presets/lara/image/index.d.ts +65 -0
  82. package/dist/runtime/presets/lara/image/index.js +206 -0
  83. package/dist/runtime/presets/lara/index.d.ts +187 -0
  84. package/dist/runtime/presets/lara/index.js +207 -0
  85. package/dist/runtime/presets/lara/inlinemessage/index.d.ts +55 -0
  86. package/dist/runtime/presets/lara/inlinemessage/index.js +36 -0
  87. package/dist/runtime/presets/lara/inplace/index.d.ts +7 -0
  88. package/dist/runtime/presets/lara/inplace/index.js +27 -0
  89. package/dist/runtime/presets/lara/inputgroup/index.d.ts +7 -0
  90. package/dist/runtime/presets/lara/inputgroup/index.js +5 -0
  91. package/dist/runtime/presets/lara/inputgroupaddon/index.d.ts +7 -0
  92. package/dist/runtime/presets/lara/inputgroupaddon/index.js +28 -0
  93. package/dist/runtime/presets/lara/inputmask/index.d.ts +27 -0
  94. package/dist/runtime/presets/lara/inputmask/index.js +34 -0
  95. package/dist/runtime/presets/lara/inputnumber/index.d.ts +390 -0
  96. package/dist/runtime/presets/lara/inputnumber/index.js +164 -0
  97. package/dist/runtime/presets/lara/inputotp/index.d.ts +147 -0
  98. package/dist/runtime/presets/lara/inputotp/index.js +60 -0
  99. package/dist/runtime/presets/lara/inputswitch/index.d.ts +67 -0
  100. package/dist/runtime/presets/lara/inputswitch/index.js +80 -0
  101. package/dist/runtime/presets/lara/inputtext/index.d.ts +160 -0
  102. package/dist/runtime/presets/lara/inputtext/index.js +49 -0
  103. package/dist/runtime/presets/lara/knob/index.d.ts +22 -0
  104. package/dist/runtime/presets/lara/knob/index.js +44 -0
  105. package/dist/runtime/presets/lara/listbox/index.d.ts +93 -0
  106. package/dist/runtime/presets/lara/listbox/index.js +152 -0
  107. package/dist/runtime/presets/lara/megamenu/index.d.ts +105 -0
  108. package/dist/runtime/presets/lara/megamenu/index.js +199 -0
  109. package/dist/runtime/presets/lara/menu/index.d.ts +40 -0
  110. package/dist/runtime/presets/lara/menu/index.js +96 -0
  111. package/dist/runtime/presets/lara/menubar/index.d.ts +85 -0
  112. package/dist/runtime/presets/lara/menubar/index.js +176 -0
  113. package/dist/runtime/presets/lara/message/index.d.ts +70 -0
  114. package/dist/runtime/presets/lara/message/index.js +87 -0
  115. package/dist/runtime/presets/lara/metergroup/index.d.ts +92 -0
  116. package/dist/runtime/presets/lara/metergroup/index.js +97 -0
  117. package/dist/runtime/presets/lara/multiselect/index.d.ts +260 -0
  118. package/dist/runtime/presets/lara/multiselect/index.js +546 -0
  119. package/dist/runtime/presets/lara/orderlist/index.d.ts +99 -0
  120. package/dist/runtime/presets/lara/orderlist/index.js +257 -0
  121. package/dist/runtime/presets/lara/organizationchart/index.d.ts +81 -0
  122. package/dist/runtime/presets/lara/organizationchart/index.js +138 -0
  123. package/dist/runtime/presets/lara/overlaypanel/index.d.ts +17 -0
  124. package/dist/runtime/presets/lara/overlaypanel/index.js +40 -0
  125. package/dist/runtime/presets/lara/paginator/index.d.ts +280 -0
  126. package/dist/runtime/presets/lara/paginator/index.js +533 -0
  127. package/dist/runtime/presets/lara/panel/index.d.ts +39 -0
  128. package/dist/runtime/presets/lara/panel/index.js +91 -0
  129. package/dist/runtime/presets/lara/panelmenu/index.d.ts +76 -0
  130. package/dist/runtime/presets/lara/panelmenu/index.js +127 -0
  131. package/dist/runtime/presets/lara/password/index.d.ts +181 -0
  132. package/dist/runtime/presets/lara/password/index.js +118 -0
  133. package/dist/runtime/presets/lara/picklist/index.d.ts +245 -0
  134. package/dist/runtime/presets/lara/picklist/index.js +650 -0
  135. package/dist/runtime/presets/lara/progressbar/index.d.ts +44 -0
  136. package/dist/runtime/presets/lara/progressbar/index.js +55 -0
  137. package/dist/runtime/presets/lara/progressspinner/index.d.ts +15 -0
  138. package/dist/runtime/presets/lara/progressspinner/index.js +51 -0
  139. package/dist/runtime/presets/lara/radiobutton/index.d.ts +57 -0
  140. package/dist/runtime/presets/lara/radiobutton/index.js +104 -0
  141. package/dist/runtime/presets/lara/rating/index.d.ts +49 -0
  142. package/dist/runtime/presets/lara/rating/index.js +92 -0
  143. package/dist/runtime/presets/lara/ripple/index.d.ts +8 -0
  144. package/dist/runtime/presets/lara/ripple/index.js +6 -0
  145. package/dist/runtime/presets/lara/scrollpanel/index.d.ts +19 -0
  146. package/dist/runtime/presets/lara/scrollpanel/index.js +77 -0
  147. package/dist/runtime/presets/lara/scrolltop/index.d.ts +50 -0
  148. package/dist/runtime/presets/lara/scrolltop/index.js +41 -0
  149. package/dist/runtime/presets/lara/selectbutton/index.d.ts +56 -0
  150. package/dist/runtime/presets/lara/selectbutton/index.js +49 -0
  151. package/dist/runtime/presets/lara/sidebar/index.d.ts +66 -0
  152. package/dist/runtime/presets/lara/sidebar/index.js +149 -0
  153. package/dist/runtime/presets/lara/skeleton/index.d.ts +16 -0
  154. package/dist/runtime/presets/lara/skeleton/index.js +16 -0
  155. package/dist/runtime/presets/lara/slider/index.d.ts +55 -0
  156. package/dist/runtime/presets/lara/slider/index.js +137 -0
  157. package/dist/runtime/presets/lara/speeddial/index.d.ts +3091 -0
  158. package/dist/runtime/presets/lara/speeddial/index.js +283 -0
  159. package/dist/runtime/presets/lara/splitbutton/index.d.ts +6749 -0
  160. package/dist/runtime/presets/lara/splitbutton/index.js +502 -0
  161. package/dist/runtime/presets/lara/splitter/index.d.ts +30 -0
  162. package/dist/runtime/presets/lara/splitter/index.js +61 -0
  163. package/dist/runtime/presets/lara/splitterpanel/index.d.ts +10 -0
  164. package/dist/runtime/presets/lara/splitterpanel/index.js +5 -0
  165. package/dist/runtime/presets/lara/stepper/index.d.ts +66 -0
  166. package/dist/runtime/presets/lara/stepper/index.js +161 -0
  167. package/dist/runtime/presets/lara/steps/index.d.ts +57 -0
  168. package/dist/runtime/presets/lara/steps/index.js +111 -0
  169. package/dist/runtime/presets/lara/tabmenu/index.d.ts +43 -0
  170. package/dist/runtime/presets/lara/tabmenu/index.js +73 -0
  171. package/dist/runtime/presets/lara/tabview/index.d.ts +67 -0
  172. package/dist/runtime/presets/lara/tabview/index.js +156 -0
  173. package/dist/runtime/presets/lara/tag/index.d.ts +32 -0
  174. package/dist/runtime/presets/lara/tag/index.js +36 -0
  175. package/dist/runtime/presets/lara/terminal/index.d.ts +27 -0
  176. package/dist/runtime/presets/lara/terminal/index.js +60 -0
  177. package/dist/runtime/presets/lara/textarea/index.d.ts +27 -0
  178. package/dist/runtime/presets/lara/textarea/index.js +36 -0
  179. package/dist/runtime/presets/lara/tieredmenu/index.d.ts +56 -0
  180. package/dist/runtime/presets/lara/tieredmenu/index.js +120 -0
  181. package/dist/runtime/presets/lara/timeline/index.d.ts +84 -0
  182. package/dist/runtime/presets/lara/timeline/index.js +81 -0
  183. package/dist/runtime/presets/lara/toast/index.d.ts +92 -0
  184. package/dist/runtime/presets/lara/toast/index.js +102 -0
  185. package/dist/runtime/presets/lara/togglebutton/index.d.ts +72 -0
  186. package/dist/runtime/presets/lara/togglebutton/index.js +91 -0
  187. package/dist/runtime/presets/lara/toolbar/index.d.ts +19 -0
  188. package/dist/runtime/presets/lara/toolbar/index.js +28 -0
  189. package/dist/runtime/presets/lara/tooltip/index.d.ts +38 -0
  190. package/dist/runtime/presets/lara/tooltip/index.js +46 -0
  191. package/dist/runtime/presets/lara/tree/index.d.ts +105 -0
  192. package/dist/runtime/presets/lara/tree/index.js +258 -0
  193. package/dist/runtime/presets/lara/treeselect/index.d.ts +181 -0
  194. package/dist/runtime/presets/lara/treeselect/index.js +352 -0
  195. package/dist/runtime/presets/lara/treetable/index.d.ts +316 -0
  196. package/dist/runtime/presets/lara/treetable/index.js +434 -0
  197. package/dist/runtime/presets/lara/tristatecheckbox/index.d.ts +49 -0
  198. package/dist/runtime/presets/lara/tristatecheckbox/index.js +104 -0
  199. package/dist/runtime/styles/core.css +27 -0
  200. package/dist/runtime/tailwind/gluharTheme.d.ts +3 -0
  201. package/dist/runtime/tailwind/gluharTheme.js +52 -0
  202. package/dist/runtime/tailwind/handleTailwind.d.ts +3 -0
  203. package/dist/runtime/tailwind/handleTailwind.js +22 -0
  204. package/dist/types.d.mts +7 -0
  205. package/dist/types.d.ts +7 -0
  206. package/package.json +56 -0
@@ -0,0 +1,56 @@
1
+ declare namespace _default {
2
+ function root({ props }: {
3
+ props: any;
4
+ }): {
5
+ class: {
6
+ 'opacity-60 select-none pointer-events-none cursor-default': any;
7
+ }[];
8
+ };
9
+ function button({ context, props }: {
10
+ context: any;
11
+ props: any;
12
+ }): {
13
+ class: (string | {
14
+ 'bg-surface-0 dark:bg-surface-900': boolean;
15
+ 'text-surface-700 dark:text-white/80': boolean;
16
+ 'border-surface-200 dark:border-surface-700': boolean;
17
+ 'bg-primary-500 dark:bg-primary-400 border-primary-500 dark:border-primary-400 text-white dark:text-surface-900': any;
18
+ 'border-red-500 dark:border-red-400'?: undefined;
19
+ 'hover:bg-surface-50 dark:hover:bg-surface-800/80'?: undefined;
20
+ 'hover:bg-primary-600 dark:hover:bg-primary-300'?: undefined;
21
+ 'opacity-60 select-none pointer-events-none cursor-default'?: undefined;
22
+ } | {
23
+ 'border-red-500 dark:border-red-400': any;
24
+ 'bg-surface-0 dark:bg-surface-900'?: undefined;
25
+ 'text-surface-700 dark:text-white/80'?: undefined;
26
+ 'border-surface-200 dark:border-surface-700'?: undefined;
27
+ 'bg-primary-500 dark:bg-primary-400 border-primary-500 dark:border-primary-400 text-white dark:text-surface-900'?: undefined;
28
+ 'hover:bg-surface-50 dark:hover:bg-surface-800/80'?: undefined;
29
+ 'hover:bg-primary-600 dark:hover:bg-primary-300'?: undefined;
30
+ 'opacity-60 select-none pointer-events-none cursor-default'?: undefined;
31
+ } | {
32
+ 'hover:bg-surface-50 dark:hover:bg-surface-800/80': boolean;
33
+ 'hover:bg-primary-600 dark:hover:bg-primary-300': any;
34
+ 'bg-surface-0 dark:bg-surface-900'?: undefined;
35
+ 'text-surface-700 dark:text-white/80'?: undefined;
36
+ 'border-surface-200 dark:border-surface-700'?: undefined;
37
+ 'bg-primary-500 dark:bg-primary-400 border-primary-500 dark:border-primary-400 text-white dark:text-surface-900'?: undefined;
38
+ 'border-red-500 dark:border-red-400'?: undefined;
39
+ 'opacity-60 select-none pointer-events-none cursor-default'?: undefined;
40
+ } | {
41
+ 'opacity-60 select-none pointer-events-none cursor-default': any;
42
+ 'bg-surface-0 dark:bg-surface-900'?: undefined;
43
+ 'text-surface-700 dark:text-white/80'?: undefined;
44
+ 'border-surface-200 dark:border-surface-700'?: undefined;
45
+ 'bg-primary-500 dark:bg-primary-400 border-primary-500 dark:border-primary-400 text-white dark:text-surface-900'?: undefined;
46
+ 'border-red-500 dark:border-red-400'?: undefined;
47
+ 'hover:bg-surface-50 dark:hover:bg-surface-800/80'?: undefined;
48
+ 'hover:bg-primary-600 dark:hover:bg-primary-300'?: undefined;
49
+ })[];
50
+ };
51
+ namespace label {
52
+ let _class: string;
53
+ export { _class as class };
54
+ }
55
+ }
56
+ export default _default;
@@ -0,0 +1,49 @@
1
+ export default {
2
+ root: ({ props }) => ({
3
+ class: [{ 'opacity-60 select-none pointer-events-none cursor-default': props.disabled }]
4
+ }),
5
+ button: ({ context, props }) => ({
6
+ class: [
7
+ 'relative',
8
+ // Font
9
+ 'leading-none',
10
+
11
+ // Flex Alignment
12
+ 'inline-flex items-center align-bottom text-center',
13
+
14
+ // Spacing
15
+ 'px-4 py-3',
16
+
17
+ // Shape
18
+ 'border border-r-0',
19
+ 'first:rounded-l-md first:rounded-tr-none first:rounded-br-none',
20
+ 'last:border-r last:rounded-tl-none last:rounded-bl-none last:rounded-r-md',
21
+
22
+ // Color
23
+ {
24
+ 'bg-surface-0 dark:bg-surface-900': !context.active,
25
+ 'text-surface-700 dark:text-white/80': !context.active,
26
+ 'border-surface-200 dark:border-surface-700': !context.active && !props.invalid,
27
+ 'bg-primary-500 dark:bg-primary-400 border-primary-500 dark:border-primary-400 text-white dark:text-surface-900': context.active
28
+ },
29
+ // Invalid State
30
+ { 'border-red-500 dark:border-red-400': props.invalid },
31
+
32
+ // States
33
+ 'focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-400/50 dark:focus:ring-primary-300/50 focus:z-10',
34
+ {
35
+ 'hover:bg-surface-50 dark:hover:bg-surface-800/80': !context.active && !props.invalid,
36
+ 'hover:bg-primary-600 dark:hover:bg-primary-300': context.active
37
+ },
38
+ { 'opacity-60 select-none pointer-events-none cursor-default': context.disabled },
39
+ // Transition
40
+ 'transition duration-200',
41
+
42
+ // Misc
43
+ 'cursor-pointer select-none overflow-hidden'
44
+ ]
45
+ }),
46
+ label: {
47
+ class: 'font-bold'
48
+ }
49
+ };
@@ -0,0 +1,66 @@
1
+ declare namespace _default {
2
+ function root({ props }: {
3
+ props: any;
4
+ }): {
5
+ class: (string | {
6
+ '!transition-none !transform-none !w-screen !h-screen !max-h-full !top-0 !left-0': boolean;
7
+ 'h-full w-80'?: undefined;
8
+ 'h-auto w-full'?: undefined;
9
+ } | {
10
+ 'h-full w-80': boolean;
11
+ 'h-auto w-full': boolean;
12
+ '!transition-none !transform-none !w-screen !h-screen !max-h-full !top-0 !left-0'?: undefined;
13
+ })[];
14
+ };
15
+ namespace header {
16
+ let _class: string[];
17
+ export { _class as class };
18
+ }
19
+ namespace title {
20
+ let _class_1: string[];
21
+ export { _class_1 as class };
22
+ }
23
+ namespace icons {
24
+ let _class_2: string[];
25
+ export { _class_2 as class };
26
+ }
27
+ namespace closeButton {
28
+ let _class_3: string[];
29
+ export { _class_3 as class };
30
+ }
31
+ namespace closeButtonIcon {
32
+ let _class_4: string[];
33
+ export { _class_4 as class };
34
+ }
35
+ namespace content {
36
+ let _class_5: string[];
37
+ export { _class_5 as class };
38
+ }
39
+ function mask({ props }: {
40
+ props: any;
41
+ }): {
42
+ class: (string | {
43
+ 'p-5': boolean;
44
+ 'has-[.mask-active]:bg-transparent bg-black/40'?: undefined;
45
+ 'has-[.mask-active]:backdrop-blur-none backdrop-blur-sm'?: undefined;
46
+ } | {
47
+ 'has-[.mask-active]:bg-transparent bg-black/40': any;
48
+ 'has-[.mask-active]:backdrop-blur-none backdrop-blur-sm': any;
49
+ 'p-5'?: undefined;
50
+ })[];
51
+ };
52
+ function transition({ props }: {
53
+ props: any;
54
+ }): {
55
+ enterFromClass: string;
56
+ leaveToClass: string;
57
+ enterActiveClass?: undefined;
58
+ leaveActiveClass?: undefined;
59
+ } | {
60
+ enterFromClass: string;
61
+ enterActiveClass: string;
62
+ leaveActiveClass: string;
63
+ leaveToClass: string;
64
+ };
65
+ }
66
+ export default _default;
@@ -0,0 +1,149 @@
1
+ export default {
2
+ root: ({ props }) => ({
3
+ class: [
4
+ // Flexbox
5
+ 'flex flex-col',
6
+
7
+ // Position
8
+ 'relative',
9
+ { '!transition-none !transform-none !w-screen !h-screen !max-h-full !top-0 !left-0': props.position == 'full' },
10
+
11
+ // Size
12
+ {
13
+ 'h-full w-80': props.position == 'left' || props.position == 'right',
14
+ 'h-auto w-full': props.position == 'top' || props.position == 'bottom'
15
+ },
16
+
17
+ // Shape
18
+ 'border-0 dark:border',
19
+ 'shadow-lg',
20
+
21
+ // Colors
22
+ 'bg-surface-0 dark:bg-surface-800',
23
+ 'text-surface-700 dark:text-white/80',
24
+ 'dark:border-surface-700',
25
+
26
+ // Transitions
27
+ 'transition-transform',
28
+ 'duration-300',
29
+
30
+ // Misc
31
+ 'pointer-events-auto'
32
+ ]
33
+ }),
34
+ header: {
35
+ class: [
36
+ // Flexbox and Alignment
37
+ 'flex items-center justify-between',
38
+ 'shrink-0',
39
+
40
+ // Spacing
41
+ 'p-5',
42
+
43
+ // Colors
44
+ 'bg-surface-0 dark:bg-surface-800',
45
+ 'text-surface-700 dark:text-surface-0/80'
46
+ ]
47
+ },
48
+ title: {
49
+ class: ['font-bold text-lg']
50
+ },
51
+ icons: {
52
+ class: ['flex items-center']
53
+ },
54
+ closeButton: {
55
+ class: [
56
+ 'relative',
57
+
58
+ // Flexbox and Alignment
59
+ 'flex items-center justify-center',
60
+
61
+ // Size and Spacing
62
+ 'mr-2',
63
+ 'last:mr-0',
64
+ 'w-8 h-8',
65
+
66
+ // Shape
67
+ 'border-0',
68
+ 'rounded-full',
69
+
70
+ // Colors
71
+ 'text-surface-500',
72
+ 'bg-transparent',
73
+
74
+ // Transitions
75
+ 'transition duration-200 ease-in-out',
76
+
77
+ // States
78
+ 'hover:text-surface-700 dark:hover:text-white/80',
79
+ 'hover:bg-surface-100 dark:hover:bg-surface-800/80',
80
+ 'focus:outline-none focus:outline-offset-0 focus:ring focus:ring-inset',
81
+ 'focus:ring-primary-400/50 dark:focus:ring-primary-300/50',
82
+
83
+ // Misc
84
+ 'overflow-hidden'
85
+ ]
86
+ },
87
+ closeButtonIcon: {
88
+ class: [
89
+ // Display
90
+ 'inline-block',
91
+
92
+ // Size
93
+ 'w-4',
94
+ 'h-4'
95
+ ]
96
+ },
97
+ content: {
98
+ class: [
99
+ // Spacing and Size
100
+ 'p-5',
101
+ 'pt-0',
102
+ 'h-full',
103
+ 'w-full',
104
+
105
+ // Growth and Overflow
106
+ 'grow',
107
+ 'overflow-y-auto'
108
+ ]
109
+ },
110
+ mask: ({ props }) => ({
111
+ class: [
112
+ // Transitions
113
+ 'transition-all',
114
+ 'duration-300',
115
+ { 'p-5': !props.position == 'full' },
116
+
117
+ // Background and Effects
118
+ { 'has-[.mask-active]:bg-transparent bg-black/40': props.modal, 'has-[.mask-active]:backdrop-blur-none backdrop-blur-sm': props.modal }
119
+ ]
120
+ }),
121
+ transition: ({ props }) => {
122
+ return props.position === 'top'
123
+ ? {
124
+ enterFromClass: 'translate-x-0 -translate-y-full translate-z-0 mask-active',
125
+ leaveToClass: 'translate-x-0 -translate-y-full translate-z-0 mask-active'
126
+ }
127
+ : props.position === 'bottom'
128
+ ? {
129
+ enterFromClass: 'translate-x-0 translate-y-full translate-z-0 mask-active',
130
+ leaveToClass: 'translate-x-0 translate-y-full translate-z-0 mask-active'
131
+ }
132
+ : props.position === 'left'
133
+ ? {
134
+ enterFromClass: '-translate-x-full translate-y-0 translate-z-0 mask-active',
135
+ leaveToClass: '-translate-x-full translate-y-0 translate-z-0 mask-active'
136
+ }
137
+ : props.position === 'right'
138
+ ? {
139
+ enterFromClass: 'translate-x-full translate-y-0 translate-z-0 mask-active',
140
+ leaveToClass: 'translate-x-full translate-y-0 translate-z-0 mask-active'
141
+ }
142
+ : {
143
+ enterFromClass: 'opacity-0 mask-active',
144
+ enterActiveClass: 'transition-opacity duration-400 ease-in',
145
+ leaveActiveClass: 'transition-opacity duration-400 ease-in',
146
+ leaveToClass: 'opacity-0 mask-active'
147
+ };
148
+ }
149
+ };
@@ -0,0 +1,16 @@
1
+ declare namespace _default {
2
+ function root({ props }: {
3
+ props: any;
4
+ }): {
5
+ class: (string | {
6
+ 'animate-pulse': boolean;
7
+ 'rounded-full'?: undefined;
8
+ 'rounded-md'?: undefined;
9
+ } | {
10
+ 'rounded-full': boolean;
11
+ 'rounded-md': boolean;
12
+ 'animate-pulse'?: undefined;
13
+ })[];
14
+ };
15
+ }
16
+ export default _default;
@@ -0,0 +1,16 @@
1
+ export default {
2
+ root: ({ props }) => ({
3
+ class: [
4
+ 'overflow-hidden',
5
+ {
6
+ 'animate-pulse': props.animation !== 'none'
7
+ },
8
+
9
+ // Round
10
+ { 'rounded-full': props.shape === 'circle', 'rounded-md': props.shape !== 'circle' },
11
+
12
+ // Colors
13
+ 'bg-surface-200 dark:bg-surface-700'
14
+ ]
15
+ })
16
+ };
@@ -0,0 +1,55 @@
1
+ declare namespace _default {
2
+ function root({ props }: {
3
+ props: any;
4
+ }): {
5
+ class: (string | {
6
+ 'h-1 w-60': boolean;
7
+ 'w-1 h-56': boolean;
8
+ 'opacity-60 select-none pointer-events-none cursor-default'?: undefined;
9
+ } | {
10
+ 'opacity-60 select-none pointer-events-none cursor-default': any;
11
+ 'h-1 w-60'?: undefined;
12
+ 'w-1 h-56'?: undefined;
13
+ })[];
14
+ };
15
+ function range({ props }: {
16
+ props: any;
17
+ }): {
18
+ class: (string | {
19
+ 'top-0 left-0': boolean;
20
+ 'bottom-0 left-0': boolean;
21
+ 'h-full'?: undefined;
22
+ 'w-full'?: undefined;
23
+ } | {
24
+ 'h-full': boolean;
25
+ 'w-full': boolean;
26
+ 'top-0 left-0'?: undefined;
27
+ 'bottom-0 left-0'?: undefined;
28
+ })[];
29
+ };
30
+ function handle({ props }: {
31
+ props: any;
32
+ }): {
33
+ class: (string | {
34
+ 'top-[50%] mt-[-0.5715rem] ml-[-0.5715rem]': boolean;
35
+ 'left-[50%] mb-[-0.5715rem] ml-[-0.5715rem]': boolean;
36
+ })[];
37
+ };
38
+ function starthandler({ props }: {
39
+ props: any;
40
+ }): {
41
+ class: (string | {
42
+ 'top-[50%] mt-[-0.5715rem] ml-[-0.5715rem]': boolean;
43
+ 'left-[50%] mb-[-0.5715rem] ml-[-0.4715rem]': boolean;
44
+ })[];
45
+ };
46
+ function endhandler({ props }: {
47
+ props: any;
48
+ }): {
49
+ class: (string | {
50
+ 'top-[50%] mt-[-0.5715rem] ml-[-0.5715rem]': boolean;
51
+ 'left-[50%] mb-[-0.5715rem] ml-[-0.4715rem]': boolean;
52
+ })[];
53
+ };
54
+ }
55
+ export default _default;
@@ -0,0 +1,137 @@
1
+ export default {
2
+ root: ({ props }) => ({
3
+ class: [
4
+ 'relative',
5
+
6
+ // Size
7
+ { 'h-1 w-60': props.orientation == 'horizontal', 'w-1 h-56': props.orientation == 'vertical' },
8
+
9
+ // Shape
10
+ 'border-0',
11
+
12
+ // Colors
13
+ 'bg-surface-100 dark:bg-surface-700',
14
+
15
+ // States
16
+ { 'opacity-60 select-none pointer-events-none cursor-default': props.disabled }
17
+ ]
18
+ }),
19
+ range: ({ props }) => ({
20
+ class: [
21
+ // Position
22
+ 'block absolute',
23
+ {
24
+ 'top-0 left-0': props.orientation == 'horizontal',
25
+ 'bottom-0 left-0': props.orientation == 'vertical'
26
+ },
27
+
28
+ //Size
29
+ {
30
+ 'h-full': props.orientation == 'horizontal',
31
+ 'w-full': props.orientation == 'vertical'
32
+ },
33
+
34
+ // Colors
35
+ 'bg-primary-500 dark:bg-primary-400'
36
+ ]
37
+ }),
38
+ handle: ({ props }) => ({
39
+ class: [
40
+ 'block',
41
+
42
+ // Size
43
+ 'h-[1.143rem]',
44
+ 'w-[1.143rem]',
45
+ {
46
+ 'top-[50%] mt-[-0.5715rem] ml-[-0.5715rem]': props.orientation == 'horizontal',
47
+ 'left-[50%] mb-[-0.5715rem] ml-[-0.5715rem]': props.orientation == 'vertical'
48
+ },
49
+
50
+ // Shape
51
+ 'rounded-full',
52
+ 'border-2',
53
+
54
+ // Colors
55
+ 'bg-surface-0 dark:bg-surface-600',
56
+ 'border-primary-500 dark:border-primary-400',
57
+
58
+ // States
59
+ 'hover:bg-primary-500 hover:border-primary-500',
60
+ 'focus-visible:outline-none focus-visible:outline-offset-0 focus-visible:ring',
61
+ 'ring-primary-400/50 dark:ring-primary-300/50',
62
+
63
+ // Transitions
64
+ 'transition duration-200',
65
+
66
+ // Misc
67
+ 'cursor-grab',
68
+ 'touch-action-none'
69
+ ]
70
+ }),
71
+ starthandler: ({ props }) => ({
72
+ class: [
73
+ 'block',
74
+
75
+ // Size
76
+ 'h-[1.143rem]',
77
+ 'w-[1.143rem]',
78
+ {
79
+ 'top-[50%] mt-[-0.5715rem] ml-[-0.5715rem]': props.orientation == 'horizontal',
80
+ 'left-[50%] mb-[-0.5715rem] ml-[-0.4715rem]': props.orientation == 'vertical'
81
+ },
82
+
83
+ // Shape
84
+ 'rounded-full',
85
+ 'border-2',
86
+
87
+ // Colors
88
+ 'bg-surface-0 dark:bg-surface-600',
89
+ 'border-primary-500 dark:border-primary-400',
90
+
91
+ // States
92
+ 'hover:bg-primary-500 hover:border-primary-500',
93
+ 'focus-visible:outline-none focus-visible:outline-offset-0 focus-visible:ring',
94
+ 'focus-visible:ring-primary-400/50 dark:focus-visible:ring-primary-300/50',
95
+
96
+ // Transitions
97
+ 'transition duration-200',
98
+
99
+ // Misc
100
+ 'cursor-grab',
101
+ 'touch-action-none'
102
+ ]
103
+ }),
104
+ endhandler: ({ props }) => ({
105
+ class: [
106
+ 'block',
107
+
108
+ // Size
109
+ 'h-[1.143rem]',
110
+ 'w-[1.143rem]',
111
+ {
112
+ 'top-[50%] mt-[-0.5715rem] ml-[-0.5715rem]': props.orientation == 'horizontal',
113
+ 'left-[50%] mb-[-0.5715rem] ml-[-0.4715rem]': props.orientation == 'vertical'
114
+ },
115
+
116
+ // Shape
117
+ 'rounded-full',
118
+ 'border-2',
119
+
120
+ // Colors
121
+ 'bg-surface-0 dark:bg-surface-600',
122
+ 'border-primary-500 dark:border-primary-400',
123
+
124
+ // States
125
+ 'hover:bg-primary-500 hover:border-primary-500',
126
+ 'focus-visible:outline-none focus-visible:outline-offset-0 focus-visible:ring',
127
+ 'focus-visible:ring-primary-400/50 dark:focus-visible:ring-primary-300/50',
128
+
129
+ // Transitions
130
+ 'transition duration-200',
131
+
132
+ // Misc
133
+ 'cursor-grab',
134
+ 'touch-action-none'
135
+ ]
136
+ })
137
+ };