@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,55 @@
1
+ export default {
2
+ root: {
3
+ class: [
4
+ // Position and Overflow
5
+ 'overflow-hidden',
6
+ 'relative',
7
+
8
+ // Shape and Size
9
+ 'border-0',
10
+ 'h-6',
11
+ 'rounded-md',
12
+
13
+ // Colors
14
+ 'bg-surface-100 dark:bg-surface-700'
15
+ ]
16
+ },
17
+ value: ({ props }) => ({
18
+ class: [
19
+ // Flexbox & Overflow & Position
20
+ { 'absolute flex items-center justify-center overflow-hidden': props.mode !== 'indeterminate' },
21
+
22
+ // Colors
23
+ 'bg-primary-500 dark:bg-primary-400',
24
+
25
+ // Spacing & Sizing
26
+ 'm-0',
27
+ { 'h-full w-0': props.mode !== 'indeterminate' },
28
+
29
+ // Shape
30
+ 'border-0',
31
+
32
+ // Transitions
33
+ {
34
+ 'transition-width duration-1000 ease-in-out': props.mode !== 'indeterminate',
35
+ 'progressbar-value-animate': props.mode == 'indeterminate'
36
+ },
37
+
38
+ // Before & After (indeterminate)
39
+ {
40
+ 'before:absolute before:top-0 before:left-0 before:bottom-0 before:bg-inherit ': props.mode == 'indeterminate',
41
+ 'after:absolute after:top-0 after:left-0 after:bottom-0 after:bg-inherit after:delay-1000': props.mode == 'indeterminate'
42
+ }
43
+ ]
44
+ }),
45
+ label: {
46
+ class: [
47
+ // Flexbox
48
+ 'inline-flex',
49
+
50
+ // Font and Text
51
+ 'text-white dark:text-surface-900',
52
+ 'leading-6'
53
+ ]
54
+ }
55
+ };
@@ -0,0 +1,15 @@
1
+ declare namespace _default {
2
+ namespace root {
3
+ let _class: string[];
4
+ export { _class as class };
5
+ }
6
+ namespace spinner {
7
+ let _class_1: string[];
8
+ export { _class_1 as class };
9
+ }
10
+ namespace circle {
11
+ let _class_2: string[];
12
+ export { _class_2 as class };
13
+ }
14
+ }
15
+ export default _default;
@@ -0,0 +1,51 @@
1
+ export default {
2
+ root: {
3
+ class: [
4
+ // Position
5
+ 'relative',
6
+ 'mx-auto',
7
+
8
+ // Sizing
9
+ 'w-28',
10
+ 'h-28',
11
+
12
+ // Flexbox
13
+ 'inline-block',
14
+
15
+ // Pseudo-Elements
16
+ 'before:block',
17
+ 'before:pt-full'
18
+ ]
19
+ },
20
+ spinner: {
21
+ class: [
22
+ // Position
23
+ 'absolute',
24
+ 'top-0',
25
+ 'bottom-0',
26
+ 'left-0',
27
+ 'right-0',
28
+ 'm-auto',
29
+
30
+ // Sizing
31
+ 'w-full',
32
+ 'h-full',
33
+
34
+ // Transformations
35
+ 'transform',
36
+ 'origin-center',
37
+
38
+ // Animations
39
+ 'animate-spin'
40
+ ]
41
+ },
42
+ circle: {
43
+ class: [
44
+ // Colors
45
+ 'text-red-500',
46
+
47
+ // Misc
48
+ 'progress-spinner-circle'
49
+ ]
50
+ }
51
+ };
@@ -0,0 +1,57 @@
1
+ declare namespace _default {
2
+ namespace root {
3
+ let _class: string[];
4
+ export { _class as class };
5
+ }
6
+ function box({ props }: {
7
+ props: any;
8
+ }): {
9
+ class: (string | {
10
+ 'text-surface-700 dark:text-white/80': boolean;
11
+ 'bg-surface-0 dark:bg-surface-900': boolean;
12
+ 'border-surface-300 dark:border-surface-700': boolean;
13
+ 'border-primary-500 dark:border-primary-400': boolean;
14
+ 'bg-primary-500 dark:bg-primary-400': boolean;
15
+ 'border-red-500 dark:border-red-400'?: undefined;
16
+ 'peer-hover:border-primary-500 dark:peer-hover:border-primary-400'?: undefined;
17
+ 'peer-hover:border-primary-600 dark:peer-hover:border-primary-300 peer-hover:bg-primary-600 dark:peer-hover:bg-primary-300'?: undefined;
18
+ '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;
19
+ 'opacity-60 cursor-default'?: undefined;
20
+ } | {
21
+ 'border-red-500 dark:border-red-400': any;
22
+ 'text-surface-700 dark:text-white/80'?: undefined;
23
+ 'bg-surface-0 dark:bg-surface-900'?: undefined;
24
+ 'border-surface-300 dark:border-surface-700'?: undefined;
25
+ 'border-primary-500 dark:border-primary-400'?: undefined;
26
+ 'bg-primary-500 dark:bg-primary-400'?: undefined;
27
+ 'peer-hover:border-primary-500 dark:peer-hover:border-primary-400'?: undefined;
28
+ 'peer-hover:border-primary-600 dark:peer-hover:border-primary-300 peer-hover:bg-primary-600 dark:peer-hover:bg-primary-300'?: undefined;
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'?: undefined;
30
+ 'opacity-60 cursor-default'?: undefined;
31
+ } | {
32
+ 'peer-hover:border-primary-500 dark:peer-hover:border-primary-400': boolean;
33
+ 'peer-hover:border-primary-600 dark:peer-hover:border-primary-300 peer-hover:bg-primary-600 dark:peer-hover:bg-primary-300': boolean;
34
+ '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;
35
+ 'opacity-60 cursor-default': any;
36
+ 'text-surface-700 dark:text-white/80'?: undefined;
37
+ 'bg-surface-0 dark:bg-surface-900'?: undefined;
38
+ 'border-surface-300 dark:border-surface-700'?: undefined;
39
+ 'border-primary-500 dark:border-primary-400'?: undefined;
40
+ 'bg-primary-500 dark:bg-primary-400'?: undefined;
41
+ 'border-red-500 dark:border-red-400'?: undefined;
42
+ })[];
43
+ };
44
+ namespace input {
45
+ let _class_1: string[];
46
+ export { _class_1 as class };
47
+ }
48
+ function icon({ props }: {
49
+ props: any;
50
+ }): {
51
+ class: (string | {
52
+ 'backface-hidden scale-10 invisible': boolean;
53
+ 'transform visible scale-[1.1]': boolean;
54
+ })[];
55
+ };
56
+ }
57
+ export default _default;
@@ -0,0 +1,104 @@
1
+ export default {
2
+ root: {
3
+ class: [
4
+ 'relative',
5
+
6
+ // Flexbox & Alignment
7
+ 'inline-flex',
8
+ 'align-bottom',
9
+
10
+ // Size
11
+ 'w-[1.571rem] h-[1.571rem]',
12
+
13
+ // Misc
14
+ 'cursor-pointer',
15
+ 'select-none'
16
+ ]
17
+ },
18
+ box: ({ props }) => ({
19
+ class: [
20
+ // Flexbox
21
+ 'flex justify-center items-center',
22
+
23
+ // Size
24
+ 'w-[1.571rem] h-[1.571rem]',
25
+
26
+ // Shape
27
+ 'border-2',
28
+ 'rounded-full',
29
+
30
+ // Transition
31
+ 'transition duration-200 ease-in-out',
32
+
33
+ // Colors
34
+ {
35
+ 'text-surface-700 dark:text-white/80': props.value !== props.modelValue && props.value !== undefined,
36
+ 'bg-surface-0 dark:bg-surface-900': props.value !== props.modelValue && props.value !== undefined,
37
+ 'border-surface-300 dark:border-surface-700': props.value !== props.modelValue && props.value !== undefined && !props.invalid,
38
+ 'border-primary-500 dark:border-primary-400': props.value == props.modelValue && props.value !== undefined,
39
+ 'bg-primary-500 dark:bg-primary-400': props.value == props.modelValue && props.value !== undefined
40
+ },
41
+ // Invalid State
42
+ { 'border-red-500 dark:border-red-400': props.invalid },
43
+
44
+ // States
45
+ {
46
+ 'peer-hover:border-primary-500 dark:peer-hover:border-primary-400': !props.disabled && !props.invalid,
47
+ 'peer-hover:border-primary-600 dark:peer-hover:border-primary-300 peer-hover:bg-primary-600 dark:peer-hover:bg-primary-300': !props.disabled && props.value == props.modelValue && props.value !== undefined,
48
+ '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,
49
+ 'opacity-60 cursor-default': props.disabled
50
+ }
51
+ ]
52
+ }),
53
+ input: {
54
+ class: [
55
+ 'peer',
56
+
57
+ // Size
58
+ 'w-full ',
59
+ 'h-full',
60
+
61
+ // Position
62
+ 'absolute',
63
+ 'top-0 left-0',
64
+ 'z-10',
65
+
66
+ // Spacing
67
+ 'p-0',
68
+ 'm-0',
69
+
70
+ // Shape
71
+ 'opacity-0',
72
+ 'rounded-md',
73
+ 'outline-none',
74
+ 'border-2 border-surface-200 dark:border-surface-700',
75
+
76
+ // Misc
77
+ 'appearance-none',
78
+ 'cursor-pointer'
79
+ ]
80
+ },
81
+ icon: ({ props }) => ({
82
+ class: [
83
+ 'block',
84
+
85
+ // Shape
86
+ 'rounded-full',
87
+
88
+ // Size
89
+ 'w-[0.857rem] h-[0.857rem]',
90
+
91
+ // Colors
92
+ 'bg-surface-0 dark:bg-surface-900',
93
+
94
+ // Conditions
95
+ {
96
+ 'backface-hidden scale-10 invisible': props.value !== props.modelValue,
97
+ 'transform visible scale-[1.1]': props.value == props.modelValue
98
+ },
99
+
100
+ // Transition
101
+ 'transition duration-200'
102
+ ]
103
+ })
104
+ };
@@ -0,0 +1,49 @@
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 cancelitem({ context }: {
10
+ context: any;
11
+ }): {
12
+ class: (string | {
13
+ 'outline-none ring ring-primary-500/50 dark:ring-primary-400/50': any;
14
+ })[];
15
+ };
16
+ namespace cancelicon {
17
+ let _class: string[];
18
+ export { _class as class };
19
+ }
20
+ function item({ props, context }: {
21
+ props: any;
22
+ context: any;
23
+ }): {
24
+ class: (string | {
25
+ 'outline-none ring ring-primary-500/50 dark:ring-primary-400/50': any;
26
+ 'cursor-pointer'?: undefined;
27
+ 'cursor-default'?: undefined;
28
+ } | {
29
+ 'cursor-pointer': boolean;
30
+ 'cursor-default': any;
31
+ 'outline-none ring ring-primary-500/50 dark:ring-primary-400/50'?: undefined;
32
+ })[];
33
+ };
34
+ function officon({ props }: {
35
+ props: any;
36
+ }): {
37
+ class: (string | {
38
+ 'hover:text-primary-500 dark:hover:text-primary-400': boolean;
39
+ })[];
40
+ };
41
+ function onicon({ props }: {
42
+ props: any;
43
+ }): {
44
+ class: (string | {
45
+ 'hover:text-primary-600 dark:hover:text-primary-300': boolean;
46
+ })[];
47
+ };
48
+ }
49
+ export default _default;
@@ -0,0 +1,92 @@
1
+ export default {
2
+ root: ({ props }) => ({
3
+ class: [
4
+ 'relative',
5
+
6
+ // Flex & Alignment
7
+ 'flex items-center',
8
+ 'gap-2',
9
+
10
+ // Misc
11
+ {
12
+ 'opacity-60 select-none pointer-events-none cursor-default': props.disabled
13
+ }
14
+ ]
15
+ }),
16
+ cancelitem: ({ context }) => ({
17
+ class: [
18
+ // Flex & Alignment
19
+ 'inline-flex items-center',
20
+
21
+ //State
22
+ {
23
+ 'outline-none ring ring-primary-500/50 dark:ring-primary-400/50': context.focused
24
+ },
25
+
26
+ // Misc
27
+ 'cursor-pointer'
28
+ ]
29
+ }),
30
+ cancelicon: {
31
+ class: [
32
+ // Size
33
+ 'w-5 h-5',
34
+
35
+ // Color
36
+ 'text-red-500 dark:text-red-400',
37
+
38
+ // State
39
+ 'hover:text-red-600 dark:hover:text-red-300',
40
+
41
+ // Transition
42
+ 'transition duration-200 ease-in'
43
+ ]
44
+ },
45
+ item: ({ props, context }) => ({
46
+ class: [
47
+ // Flex & Alignment
48
+ 'inline-flex items-center',
49
+
50
+ // State
51
+ {
52
+ 'outline-none ring ring-primary-500/50 dark:ring-primary-400/50': context.focused
53
+ },
54
+
55
+ // Misc
56
+ {
57
+ 'cursor-pointer': !props.readonly,
58
+ 'cursor-default': props.readonly
59
+ }
60
+ ]
61
+ }),
62
+ officon: ({ props }) => ({
63
+ class: [
64
+ // Size
65
+ 'w-5 h-5',
66
+
67
+ // Color
68
+ 'text-surface-700 dark:text-surface-0/80',
69
+
70
+ // State
71
+ { 'hover:text-primary-500 dark:hover:text-primary-400': !props.readonly },
72
+
73
+ // Transition
74
+ 'transition duration-200 ease-in'
75
+ ]
76
+ }),
77
+ onicon: ({ props }) => ({
78
+ class: [
79
+ // Size
80
+ 'w-5 h-5',
81
+
82
+ // Color
83
+ 'text-primary-500 dark:text-primary-400',
84
+
85
+ // State
86
+ { 'hover:text-primary-600 dark:hover:text-primary-300': !props.readonly },
87
+
88
+ // Transition
89
+ 'transition duration-200 ease-in'
90
+ ]
91
+ })
92
+ };
@@ -0,0 +1,8 @@
1
+ declare namespace _default {
2
+ namespace root {
3
+ let _class: string[];
4
+ export { _class as class };
5
+ export let style: string;
6
+ }
7
+ }
8
+ export default _default;
@@ -0,0 +1,6 @@
1
+ export default {
2
+ root: {
3
+ class: ['block absolute bg-surface-0/50 rounded-full pointer-events-none'],
4
+ style: 'transform: scale(0)'
5
+ }
6
+ };
@@ -0,0 +1,19 @@
1
+ declare namespace _default {
2
+ namespace wrapper {
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
+ namespace barX {
11
+ let _class_2: string[];
12
+ export { _class_2 as class };
13
+ }
14
+ namespace barY {
15
+ let _class_3: string[];
16
+ export { _class_3 as class };
17
+ }
18
+ }
19
+ export default _default;
@@ -0,0 +1,77 @@
1
+ export default {
2
+ wrapper: {
3
+ class: [
4
+ // Size & Position
5
+ 'h-full w-full',
6
+
7
+ // Layering
8
+ 'z-[1]',
9
+
10
+ // Spacing
11
+ 'overflow-hidden',
12
+
13
+ // Misc
14
+ 'relative float-left'
15
+ ]
16
+ },
17
+ content: {
18
+ class: [
19
+ // Size & Spacing
20
+ 'h-[calc(100%+18px)] w-[calc(100%+18px)] pr-[18px] pb-[18px] pl-0 pt-0',
21
+
22
+ // Overflow & Scrollbar
23
+ 'overflow-scroll scrollbar-none',
24
+
25
+ // Box Model
26
+ 'box-border',
27
+
28
+ // Position
29
+ 'relative',
30
+
31
+ // Webkit Specific
32
+ '[&::-webkit-scrollbar]:hidden'
33
+ ]
34
+ },
35
+ barX: {
36
+ class: [
37
+ // Size & Position
38
+ 'h-[9px] bottom-0',
39
+
40
+ // Appearance
41
+ 'bg-surface-50 dark:bg-surface-700 rounded',
42
+
43
+ // Interactivity
44
+ 'cursor-pointer',
45
+
46
+ // Visibility & Layering
47
+ 'invisible z-20',
48
+
49
+ // Transition
50
+ 'transition duration-[250ms] ease-linear',
51
+
52
+ // Misc
53
+ 'relative'
54
+ ]
55
+ },
56
+ barY: {
57
+ class: [
58
+ // Size & Position
59
+ 'w-[9px] top-0',
60
+
61
+ // Appearance
62
+ 'bg-surface-50 dark:bg-surface-700 rounded',
63
+
64
+ // Interactivity
65
+ 'cursor-pointer',
66
+
67
+ // Visibility & Layering
68
+ 'z-20',
69
+
70
+ // Transition
71
+ 'transition duration-[250ms] ease-linear',
72
+
73
+ // Misc
74
+ 'relative'
75
+ ]
76
+ }
77
+ };
@@ -0,0 +1,50 @@
1
+ declare namespace _default {
2
+ function root({ props }: {
3
+ props: any;
4
+ }): {
5
+ class: (string | {
6
+ sticky: boolean;
7
+ fixed: boolean;
8
+ 'rounded-md h-8 w-8'?: undefined;
9
+ 'h-12 w-12 rounded-full shadow-md'?: undefined;
10
+ 'bg-primary-500 dark:bg-primary-400 hover:bg-primary-600 dark:hover:bg-primary-300'?: undefined;
11
+ 'bg-surface-500 dark:bg-surface-400 hover:bg-surface-600 dark:hover:bg-surface-300'?: undefined;
12
+ 'hover:bg-primary-600 dark:hover:bg-primary-300'?: undefined;
13
+ 'hover:bg-surface-600 dark:hover:bg-surface-300'?: undefined;
14
+ } | {
15
+ 'rounded-md h-8 w-8': boolean;
16
+ 'h-12 w-12 rounded-full shadow-md': boolean;
17
+ sticky?: undefined;
18
+ fixed?: undefined;
19
+ 'bg-primary-500 dark:bg-primary-400 hover:bg-primary-600 dark:hover:bg-primary-300'?: undefined;
20
+ 'bg-surface-500 dark:bg-surface-400 hover:bg-surface-600 dark:hover:bg-surface-300'?: undefined;
21
+ 'hover:bg-primary-600 dark:hover:bg-primary-300'?: undefined;
22
+ 'hover:bg-surface-600 dark:hover:bg-surface-300'?: undefined;
23
+ } | {
24
+ 'bg-primary-500 dark:bg-primary-400 hover:bg-primary-600 dark:hover:bg-primary-300': boolean;
25
+ 'bg-surface-500 dark:bg-surface-400 hover:bg-surface-600 dark:hover:bg-surface-300': boolean;
26
+ sticky?: undefined;
27
+ fixed?: undefined;
28
+ 'rounded-md h-8 w-8'?: undefined;
29
+ 'h-12 w-12 rounded-full shadow-md'?: undefined;
30
+ 'hover:bg-primary-600 dark:hover:bg-primary-300'?: undefined;
31
+ 'hover:bg-surface-600 dark:hover:bg-surface-300'?: undefined;
32
+ } | {
33
+ 'hover:bg-primary-600 dark:hover:bg-primary-300': boolean;
34
+ 'hover:bg-surface-600 dark:hover:bg-surface-300': boolean;
35
+ sticky?: undefined;
36
+ fixed?: undefined;
37
+ 'rounded-md h-8 w-8'?: undefined;
38
+ 'h-12 w-12 rounded-full shadow-md'?: undefined;
39
+ 'bg-primary-500 dark:bg-primary-400 hover:bg-primary-600 dark:hover:bg-primary-300'?: undefined;
40
+ 'bg-surface-500 dark:bg-surface-400 hover:bg-surface-600 dark:hover:bg-surface-300'?: undefined;
41
+ })[];
42
+ };
43
+ namespace transition {
44
+ let enterFromClass: string;
45
+ let enterActiveClass: string;
46
+ let leaveActiveClass: string;
47
+ let leaveToClass: string;
48
+ }
49
+ }
50
+ export default _default;
@@ -0,0 +1,41 @@
1
+ export default {
2
+ root: ({ props }) => ({
3
+ class: [
4
+ // Flex & Alignment
5
+ 'flex items-center justify-center',
6
+
7
+ // Positioning
8
+ {
9
+ sticky: props.target === 'parent',
10
+ fixed: props.target === 'window'
11
+ },
12
+ 'bottom-[20px] right-[20px]',
13
+ 'ml-auto',
14
+
15
+ // Shape & Size
16
+ {
17
+ 'rounded-md h-8 w-8': props.target === 'parent',
18
+ 'h-12 w-12 rounded-full shadow-md': props.target === 'window'
19
+ },
20
+
21
+ // Color
22
+ 'text-white dark:text-surface-900',
23
+ {
24
+ 'bg-primary-500 dark:bg-primary-400 hover:bg-primary-600 dark:hover:bg-primary-300': props.target === 'parent',
25
+ 'bg-surface-500 dark:bg-surface-400 hover:bg-surface-600 dark:hover:bg-surface-300': props.target === 'window'
26
+ },
27
+
28
+ // States
29
+ {
30
+ 'hover:bg-primary-600 dark:hover:bg-primary-300': props.target === 'parent',
31
+ 'hover:bg-surface-600 dark:hover:bg-surface-300': props.target === 'window'
32
+ }
33
+ ]
34
+ }),
35
+ transition: {
36
+ enterFromClass: 'opacity-0',
37
+ enterActiveClass: 'transition-opacity duration-150',
38
+ leaveActiveClass: 'transition-opacity duration-150',
39
+ leaveToClass: 'opacity-0'
40
+ }
41
+ };