@fy-/fws-vue 0.2.9 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (180) hide show
  1. package/components/ui/DefaultInput.vue +204 -213
  2. package/package.json +2 -12
  3. package/presets/Lara/accordion/index.js +0 -86
  4. package/presets/Lara/autocomplete/index.js +0 -284
  5. package/presets/Lara/avatar/index.js +0 -46
  6. package/presets/Lara/badge/index.js +0 -44
  7. package/presets/Lara/badgedirective/index.js +0 -49
  8. package/presets/Lara/blockui/index.js +0 -8
  9. package/presets/Lara/breadcrumb/index.js +0 -64
  10. package/presets/Lara/button/index.js +0 -470
  11. package/presets/Lara/calendar/index.js +0 -683
  12. package/presets/Lara/card/index.js +0 -37
  13. package/presets/Lara/carousel/index.js +0 -152
  14. package/presets/Lara/cascadeselect/index.js +0 -228
  15. package/presets/Lara/checkbox/index.js +0 -106
  16. package/presets/Lara/chip/index.js +0 -45
  17. package/presets/Lara/chips/index.js +0 -118
  18. package/presets/Lara/colorpicker/index.js +0 -129
  19. package/presets/Lara/confirmpopup/index.js +0 -107
  20. package/presets/Lara/contextmenu/index.js +0 -130
  21. package/presets/Lara/datatable/index.js +0 -1289
  22. package/presets/Lara/dataview/index.js +0 -40
  23. package/presets/Lara/deferred/index.js +0 -3
  24. package/presets/Lara/dialog/index.js +0 -249
  25. package/presets/Lara/divider/index.js +0 -72
  26. package/presets/Lara/dock/index.js +0 -97
  27. package/presets/Lara/dropdown/index.js +0 -300
  28. package/presets/Lara/fieldset/index.js +0 -98
  29. package/presets/Lara/fileupload/index.js +0 -173
  30. package/presets/Lara/floatlabel/index.js +0 -26
  31. package/presets/Lara/galleria/index.js +0 -351
  32. package/presets/Lara/global.js +0 -90
  33. package/presets/Lara/iconfield/index.js +0 -22
  34. package/presets/Lara/image/index.js +0 -206
  35. package/presets/Lara/index.js +0 -181
  36. package/presets/Lara/inlinemessage/index.js +0 -36
  37. package/presets/Lara/inplace/index.js +0 -27
  38. package/presets/Lara/inputgroup/index.js +0 -5
  39. package/presets/Lara/inputgroupaddon/index.js +0 -28
  40. package/presets/Lara/inputmask/index.js +0 -37
  41. package/presets/Lara/inputnumber/index.js +0 -253
  42. package/presets/Lara/inputotp/index.js +0 -72
  43. package/presets/Lara/inputswitch/index.js +0 -93
  44. package/presets/Lara/inputtext/index.js +0 -61
  45. package/presets/Lara/knob/index.js +0 -47
  46. package/presets/Lara/listbox/index.js +0 -170
  47. package/presets/Lara/megamenu/index.js +0 -207
  48. package/presets/Lara/menu/index.js +0 -98
  49. package/presets/Lara/menubar/index.js +0 -181
  50. package/presets/Lara/message/index.js +0 -87
  51. package/presets/Lara/metergroup/index.js +0 -110
  52. package/presets/Lara/multiselect/index.js +0 -589
  53. package/presets/Lara/orderlist/index.js +0 -266
  54. package/presets/Lara/organizationchart/index.js +0 -142
  55. package/presets/Lara/overlaypanel/index.js +0 -41
  56. package/presets/Lara/paginator/index.js +0 -590
  57. package/presets/Lara/panel/index.js +0 -93
  58. package/presets/Lara/panelmenu/index.js +0 -139
  59. package/presets/Lara/password/index.js +0 -140
  60. package/presets/Lara/picklist/index.js +0 -659
  61. package/presets/Lara/progressbar/index.js +0 -61
  62. package/presets/Lara/progressspinner/index.js +0 -51
  63. package/presets/Lara/radiobutton/index.js +0 -116
  64. package/presets/Lara/rating/index.js +0 -95
  65. package/presets/Lara/ripple/index.js +0 -6
  66. package/presets/Lara/scrollpanel/index.js +0 -77
  67. package/presets/Lara/scrolltop/index.js +0 -45
  68. package/presets/Lara/selectbutton/index.js +0 -60
  69. package/presets/Lara/sidebar/index.js +0 -163
  70. package/presets/Lara/skeleton/index.js +0 -19
  71. package/presets/Lara/slider/index.js +0 -149
  72. package/presets/Lara/speeddial/index.js +0 -535
  73. package/presets/Lara/splitbutton/index.js +0 -1081
  74. package/presets/Lara/splitter/index.js +0 -64
  75. package/presets/Lara/stepper/index.js +0 -183
  76. package/presets/Lara/steps/index.js +0 -115
  77. package/presets/Lara/tabmenu/index.js +0 -82
  78. package/presets/Lara/tabview/index.js +0 -166
  79. package/presets/Lara/tag/index.js +0 -37
  80. package/presets/Lara/terminal/index.js +0 -60
  81. package/presets/Lara/textarea/index.js +0 -39
  82. package/presets/Lara/tieredmenu/index.js +0 -125
  83. package/presets/Lara/timeline/index.js +0 -107
  84. package/presets/Lara/toast/index.js +0 -113
  85. package/presets/Lara/togglebutton/index.js +0 -100
  86. package/presets/Lara/toolbar/index.js +0 -28
  87. package/presets/Lara/tooltip/index.js +0 -73
  88. package/presets/Lara/tree/index.js +0 -281
  89. package/presets/Lara/treeselect/index.js +0 -387
  90. package/presets/Lara/treetable/index.js +0 -509
  91. package/presets/Lara/tristatecheckbox/index.js +0 -112
  92. package/presets/Wind/accordion/index.js +0 -75
  93. package/presets/Wind/autocomplete/index.js +0 -294
  94. package/presets/Wind/avatar/index.js +0 -48
  95. package/presets/Wind/badge/index.js +0 -43
  96. package/presets/Wind/badgedirective/index.js +0 -50
  97. package/presets/Wind/blockui/index.js +0 -8
  98. package/presets/Wind/breadcrumb/index.js +0 -45
  99. package/presets/Wind/button/index.js +0 -474
  100. package/presets/Wind/calendar/index.js +0 -659
  101. package/presets/Wind/card/index.js +0 -40
  102. package/presets/Wind/carousel/index.js +0 -152
  103. package/presets/Wind/cascadeselect/index.js +0 -225
  104. package/presets/Wind/checkbox/index.js +0 -112
  105. package/presets/Wind/chip/index.js +0 -45
  106. package/presets/Wind/chips/index.js +0 -120
  107. package/presets/Wind/colorpicker/index.js +0 -129
  108. package/presets/Wind/confirmpopup/index.js +0 -123
  109. package/presets/Wind/contextmenu/index.js +0 -128
  110. package/presets/Wind/datatable/index.js +0 -1330
  111. package/presets/Wind/dataview/index.js +0 -40
  112. package/presets/Wind/deferred/index.js +0 -3
  113. package/presets/Wind/dialog/index.js +0 -251
  114. package/presets/Wind/divider/index.js +0 -72
  115. package/presets/Wind/dock/index.js +0 -97
  116. package/presets/Wind/dropdown/index.js +0 -287
  117. package/presets/Wind/fieldset/index.js +0 -99
  118. package/presets/Wind/fileupload/index.js +0 -173
  119. package/presets/Wind/floatlabel/index.js +0 -26
  120. package/presets/Wind/galleria/index.js +0 -351
  121. package/presets/Wind/global.js +0 -77
  122. package/presets/Wind/iconfield/index.js +0 -22
  123. package/presets/Wind/image/index.js +0 -206
  124. package/presets/Wind/index.js +0 -181
  125. package/presets/Wind/inlinemessage/index.js +0 -29
  126. package/presets/Wind/inplace/index.js +0 -30
  127. package/presets/Wind/inputgroup/index.js +0 -5
  128. package/presets/Wind/inputgroupaddon/index.js +0 -28
  129. package/presets/Wind/inputmask/index.js +0 -34
  130. package/presets/Wind/inputnumber/index.js +0 -244
  131. package/presets/Wind/inputotp/index.js +0 -72
  132. package/presets/Wind/inputswitch/index.js +0 -106
  133. package/presets/Wind/inputtext/index.js +0 -61
  134. package/presets/Wind/knob/index.js +0 -47
  135. package/presets/Wind/listbox/index.js +0 -159
  136. package/presets/Wind/megamenu/index.js +0 -218
  137. package/presets/Wind/menu/index.js +0 -111
  138. package/presets/Wind/menubar/index.js +0 -188
  139. package/presets/Wind/message/index.js +0 -87
  140. package/presets/Wind/metergroup/index.js +0 -110
  141. package/presets/Wind/multiselect/index.js +0 -619
  142. package/presets/Wind/orderlist/index.js +0 -275
  143. package/presets/Wind/organizationchart/index.js +0 -143
  144. package/presets/Wind/overlaypanel/index.js +0 -42
  145. package/presets/Wind/paginator/index.js +0 -596
  146. package/presets/Wind/panel/index.js +0 -95
  147. package/presets/Wind/panelmenu/index.js +0 -136
  148. package/presets/Wind/password/index.js +0 -141
  149. package/presets/Wind/picklist/index.js +0 -684
  150. package/presets/Wind/progressbar/index.js +0 -68
  151. package/presets/Wind/progressspinner/index.js +0 -51
  152. package/presets/Wind/radiobutton/index.js +0 -92
  153. package/presets/Wind/rating/index.js +0 -86
  154. package/presets/Wind/ripple/index.js +0 -6
  155. package/presets/Wind/scrollpanel/index.js +0 -77
  156. package/presets/Wind/scrolltop/index.js +0 -45
  157. package/presets/Wind/selectbutton/index.js +0 -58
  158. package/presets/Wind/sidebar/index.js +0 -165
  159. package/presets/Wind/skeleton/index.js +0 -19
  160. package/presets/Wind/slider/index.js +0 -135
  161. package/presets/Wind/speeddial/index.js +0 -536
  162. package/presets/Wind/splitbutton/index.js +0 -1078
  163. package/presets/Wind/splitter/index.js +0 -64
  164. package/presets/Wind/stepper/index.js +0 -180
  165. package/presets/Wind/steps/index.js +0 -132
  166. package/presets/Wind/tabmenu/index.js +0 -84
  167. package/presets/Wind/tabview/index.js +0 -168
  168. package/presets/Wind/tag/index.js +0 -37
  169. package/presets/Wind/terminal/index.js +0 -60
  170. package/presets/Wind/textarea/index.js +0 -40
  171. package/presets/Wind/tieredmenu/index.js +0 -121
  172. package/presets/Wind/timeline/index.js +0 -107
  173. package/presets/Wind/toast/index.js +0 -111
  174. package/presets/Wind/togglebutton/index.js +0 -91
  175. package/presets/Wind/toolbar/index.js +0 -30
  176. package/presets/Wind/tooltip/index.js +0 -43
  177. package/presets/Wind/tree/index.js +0 -300
  178. package/presets/Wind/treeselect/index.js +0 -404
  179. package/presets/Wind/treetable/index.js +0 -505
  180. package/presets/Wind/tristatecheckbox/index.js +0 -118
@@ -1,106 +0,0 @@
1
- export default {
2
- root: ({ props }) => ({
3
- class: [
4
- // Alignments
5
- "inline-flex relative",
6
- "shrink-0",
7
-
8
- // Shape
9
- "rounded-2xl",
10
-
11
- // Size
12
- "h-5 w-9",
13
-
14
- // States
15
- {
16
- "opacity-60 select-none pointer-events-none cursor-default":
17
- props.disabled,
18
- },
19
- ],
20
- }),
21
- slider: ({ props }) => ({
22
- class: [
23
- // Position
24
- "absolute top-0 left-0 right-0 bottom-0",
25
-
26
- // Shape
27
- "rounded-2xl",
28
-
29
- // Before:
30
- "before:absolute before:top-1/2",
31
- "before:-mt-2",
32
- "before:h-4 before:w-4",
33
- "before:rounded-full",
34
- "before:duration-200 before:transition before:ease-in-out",
35
- "before:bg-surface-0 before:dark:bg-surface-900",
36
- "before:shadow",
37
- {
38
- "before:transform before:translate-x-4":
39
- props.modelValue == props.trueValue,
40
- },
41
-
42
- // Colors
43
- "border",
44
- {
45
- "bg-surface-200 dark:bg-surface-700": !(
46
- props.modelValue == props.trueValue
47
- ),
48
- "bg-primary-500 dark:bg-primary-400":
49
- props.modelValue == props.trueValue,
50
- },
51
-
52
- { "border-transparent": !props.invalid },
53
-
54
- // Invalid State
55
- { "border-red-500 dark:border-red-400": props.invalid },
56
-
57
- // States
58
- {
59
- "peer-hover:bg-surface-300 dark:peer-hover:bg-surface-600 ":
60
- !(props.modelValue == props.trueValue) && !props.disabled,
61
- },
62
- {
63
- "peer-hover:bg-primary-600 dark:peer-hover:bg-surface-300 ":
64
- props.modelValue == props.trueValue && !props.disabled,
65
- },
66
- "peer-focus-visible:ring-2 peer-focus-visible:ring-primary-500 dark:peer-focus-visible:ring-primary-400",
67
-
68
- // Transition
69
- "transition-colors duration-200",
70
-
71
- // Misc
72
- "cursor-pointer",
73
- ],
74
- }),
75
- input: {
76
- class: [
77
- "peer",
78
-
79
- // Size
80
- "w-full ",
81
- "h-full",
82
-
83
- // Position
84
- "absolute",
85
- "top-0 left-0",
86
- "z-10",
87
-
88
- // Spacing
89
- "p-0",
90
- "m-0",
91
-
92
- // Shape
93
- "rounded",
94
- "border",
95
-
96
- // Shape
97
- "opacity-0",
98
- "rounded-md",
99
- "outline-none",
100
- "border-2 border-surface-300 dark:border-surface-700",
101
-
102
- // Misc
103
- "appearance-none",
104
- ],
105
- },
106
- };
@@ -1,61 +0,0 @@
1
- export default {
2
- root: ({ props, context, parent }) => ({
3
- class: [
4
- // Font
5
- "font-sans leading-6",
6
-
7
- // Flex
8
- { "flex-1 w-[1%]": parent.instance.$name == "InputGroup" },
9
-
10
- // Spacing
11
- "m-0",
12
- {
13
- "py-3 px-4 text-lg sm:text-md": props.size == "large",
14
- "py-1 px-2 sm:text-sm": props.size == "small",
15
- "py-1.5 px-3 sm:text-sm": props.size == null,
16
- },
17
-
18
- // Colors
19
- "text-surface-900 dark:text-surface-0",
20
- "placeholder:text-surface-400 dark:placeholder:text-surface-500",
21
- "bg-surface-0 dark:bg-surface-900",
22
- "shadow-sm",
23
- {
24
- "ring-1 ring-inset ring-offset-0":
25
- parent.instance.$name !== "InputGroup",
26
- },
27
-
28
- { "ring-surface-300 dark:ring-surface-700": !props.invalid },
29
-
30
- // Invalid State
31
- { "ring-red-500 dark:ring-red-400": props.invalid },
32
-
33
- // Shape
34
- { "rounded-md": parent.instance.$name !== "InputGroup" },
35
- {
36
- "first:rounded-l-md rounded-none last:rounded-r-md":
37
- parent.instance.$name == "InputGroup",
38
- },
39
- {
40
- "border-0 border-y border-l last:border-r border-surface-300 dark:border-surface-600":
41
- parent.instance.$name == "InputGroup",
42
- },
43
- {
44
- "first:ml-0 -ml-px":
45
- parent.instance.$name == "InputGroup" && !props.showButtons,
46
- },
47
- "appearance-none",
48
-
49
- // Interactions
50
- {
51
- "outline-none focus:ring-primary-500 dark:focus:ring-primary-400":
52
- !context.disabled,
53
- "opacity-60 select-none pointer-events-none cursor-default":
54
- context.disabled,
55
- },
56
-
57
- // Filled State *for FloatLabel
58
- { filled: parent.instance?.$name == "FloatLabel" && context.filled },
59
- ],
60
- }),
61
- };
@@ -1,47 +0,0 @@
1
- export default {
2
- root: ({ props }) => ({
3
- class: [
4
- // Misc
5
- {
6
- "opacity-60 select-none pointer-events-none cursor-default":
7
- props.disabled,
8
- },
9
- ],
10
- }),
11
- range: {
12
- class: [
13
- // Stroke
14
- "stroke-current",
15
-
16
- // Color
17
- "stroke-surface-200 dark:stroke-surface-700",
18
-
19
- // Fill
20
- "fill-none",
21
-
22
- // Transition
23
- "transition duration-100 ease-in",
24
- ],
25
- },
26
- value: {
27
- class: [
28
- // Animation
29
- "animate-dash-frame",
30
-
31
- // Color
32
- "stroke-primary-500 dark:stroke-primary-400",
33
-
34
- // Fill
35
- "fill-none",
36
- ],
37
- },
38
- label: {
39
- class: [
40
- // Text Style
41
- "text-center text-xl",
42
-
43
- // Color
44
- "fill-surface-600 dark:fill-surface-200",
45
- ],
46
- },
47
- };
@@ -1,159 +0,0 @@
1
- export default {
2
- root: ({ props }) => ({
3
- class: [
4
- // Sizing and Shape
5
- "min-w-[12rem]",
6
- "rounded-md",
7
-
8
- // Colors
9
- "bg-surface-0 dark:bg-surface-700",
10
- "text-surface-700 dark:text-white/80",
11
- "ring-1",
12
- { "ring-surface-200 dark:ring-surface-700": !props.invalid },
13
-
14
- // Invalid State
15
- { "ring-red-500 dark:ring-red-400": props.invalid },
16
- ],
17
- }),
18
- wrapper: {
19
- class: [
20
- // Overflow
21
- "overflow-auto",
22
- ],
23
- },
24
- list: {
25
- class: "py-1 list-none m-0",
26
- },
27
- item: ({ context }) => ({
28
- class: [
29
- // Font
30
- "sm:text-sm",
31
- "leading-none",
32
- { "font-normal": !context.selected, "font-bold": context.selected },
33
-
34
- // Position
35
- "relative",
36
-
37
- // Shape
38
- "border-0",
39
- "rounded-none",
40
-
41
- // Spacing
42
- "m-0",
43
- "py-2 px-4",
44
-
45
- // Color
46
- {
47
- "text-surface-700 dark:text-white/80":
48
- !context.focused && !context.selected,
49
- },
50
- {
51
- "bg-surface-200 dark:bg-surface-600/60 text-surface-700 dark:text-white/80":
52
- context.focused && !context.selected,
53
- },
54
- {
55
- "bg-primary-500 dark:bg-primary-400 text-white dark:text-surface-700":
56
- context.focused && context.selected,
57
- },
58
- {
59
- "bg-surface-100 dark:bg-surface-300/10 text-primary-500 dark:text-primary-400":
60
- !context.focused && context.selected,
61
- },
62
-
63
- //States
64
- "hover:bg-primary-500 dark:hover:bg-primary-400 hover:text-white dark:hover:text-surface-700",
65
- "focus-visible:outline-none focus-visible:outline-offset-0 focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400",
66
-
67
- // Misc
68
- "cursor-pointer",
69
- "overflow-hidden",
70
- "whitespace-nowrap",
71
- ],
72
- }),
73
- itemgroup: {
74
- class: [
75
- //Font
76
- "font-bold",
77
- "sm:text-sm",
78
-
79
- // Spacing
80
- "m-0",
81
- "py-2 px-4",
82
-
83
- // Color
84
- "text-surface-800 dark:text-white/80",
85
- "bg-surface-0 dark:bg-surface-600/80",
86
-
87
- // Misc
88
- "cursor-auto",
89
- ],
90
- },
91
- header: {
92
- class: [
93
- // Spacing
94
- "p-0",
95
- "m-0",
96
-
97
- //Shape
98
- "rounded-tl-md",
99
- "rounded-tr-md",
100
- "border-b border-surface-200 dark:border-surface-700",
101
-
102
- // Color
103
- "text-surface-700 dark:text-white/80",
104
- "bg-surface-100 dark:bg-surface-800",
105
- ],
106
- },
107
- filtercontainer: {
108
- class: "relative",
109
- },
110
- filterinput: {
111
- class: [
112
- // Font
113
- "font-sans",
114
- "leading-none",
115
- "sm:text-sm",
116
-
117
- // Sizing
118
- "py-1.5 px-3",
119
- "pr-7",
120
- "-mr-7",
121
- "w-full",
122
-
123
- //Color
124
- "text-surface-700 dark:text-white/80",
125
- "bg-surface-0 dark:bg-surface-900",
126
- "placeholder:text-surface-400",
127
-
128
- // Shape
129
- "border-0",
130
- "rounded-tl-md",
131
- "rounded-tr-md",
132
- "appearance-none",
133
-
134
- // States
135
- "focus:ring-2 focus:ring-inset focus:outline-none focus:outline-offset-0",
136
- "focus:ring-primary-600 dark:focus:ring-primary-500",
137
-
138
- // Misc
139
- "appearance-none",
140
- ],
141
- },
142
- filtericon: {
143
- class: ["absolute", "top-1/2 right-3", "-mt-2"],
144
- },
145
- emptymessage: {
146
- class: [
147
- // Font
148
- "leading-none",
149
- "sm:text-sm",
150
-
151
- // Spacing
152
- "py-2 px-4",
153
-
154
- // Color
155
- "text-surface-800 dark:text-white/80",
156
- "bg-transparent",
157
- ],
158
- },
159
- };
@@ -1,218 +0,0 @@
1
- export default {
2
- root: ({ props }) => ({
3
- class: [
4
- "relative",
5
-
6
- // Flexbox
7
- "flex",
8
-
9
- // Spacing
10
- "min-h-[4rem]",
11
-
12
- // Shape
13
- "rounded-md",
14
- "shadow-md",
15
-
16
- // Color
17
- "bg-surface-0 dark:bg-surface-900",
18
- "ring-1 ring-inset ring-surface-100 dark:ring-surface-800 ring-offset-0",
19
-
20
- {
21
- "items-center px-2 sm:px-6": props.orientation == "horizontal",
22
- "flex-col justify-center sm:justify-start sm:w-48 px-2":
23
- props.orientation !== "horizontal",
24
- },
25
- ],
26
- }),
27
- menu: ({ props }) => ({
28
- class: [
29
- // Flexbox
30
- "sm:flex sm:row-gap-2 sm:col-gap-4",
31
- "items-center",
32
- "flex-wrap",
33
- "flex-col sm:flex-row",
34
- { hidden: !props?.mobileActive, flex: props?.mobileActive },
35
-
36
- // Position
37
- "absolute sm:relative",
38
- "top-full left-0",
39
- "sm:top-auto sm:left-auto",
40
-
41
- // Size
42
- "w-full sm:w-auto",
43
-
44
- // Spacing
45
- "m-0 ",
46
- "py-2 px-1.5 sm:py-0 sm:p-0 sm:py-1.5",
47
- "list-none",
48
-
49
- // Shape
50
- "shadow-md sm:shadow-none",
51
- "border-0",
52
- "sm:rounded-none rounded-md",
53
-
54
- // Color
55
- "bg-surface-0 dark:bg-surface-900 sm:bg-transparent dark:sm:bg-transparent",
56
-
57
- // Misc
58
- "outline-none",
59
- ],
60
- }),
61
- menuitem: ({ props }) => ({
62
- class: [
63
- "sm:relative static",
64
- {
65
- "sm:w-auto w-full": props.horizontal,
66
- "w-full": !props.horizontal,
67
- },
68
- ],
69
- }),
70
- content: ({ props, context }) => ({
71
- class: [
72
- // Shape
73
- { "rounded-md": props.level < 1 },
74
-
75
- // Colors
76
- {
77
- "text-surface-500 dark:text-white/70":
78
- !context.focused && !context.active,
79
- "text-surface-500 dark:text-white/70 bg-surface-200 dark:bg-black/70":
80
- context.focused && !context.active,
81
- "text-surface-900 dark:text-surface-0/80 bg-surface-50 dark:bg-black/70":
82
- context.focused && context.active,
83
- "text-surface-900 dark:text-surface-0/80 bg-surface-50 dark:bg-black/70":
84
- !context.focused && context.active,
85
- },
86
-
87
- // Hover States
88
- {
89
- "hover:bg-surface-50 dark:hover:bg-surface-800": !context.active,
90
- "hover:bg-surface-100 dark:hover:bg-black/40 text-surface-900 dark:text-surface-0/80":
91
- context.active,
92
- },
93
-
94
- // Transitions
95
- "transition-all",
96
- "duration-200",
97
- ],
98
- }),
99
- action: {
100
- class: [
101
- "relative",
102
-
103
- // Font
104
- "sm:text-sm font-medium",
105
-
106
- // Flexbox
107
- "flex",
108
- "items-center",
109
-
110
- // Spacing
111
- "py-2",
112
- "px-3",
113
- "my-1 sm:my-0",
114
-
115
- // Misc
116
- "select-none",
117
- "cursor-pointer",
118
- "no-underline ",
119
- "overflow-hidden",
120
- ],
121
- },
122
- icon: {
123
- class: "mr-2",
124
- },
125
- submenuicon: ({ props }) => ({
126
- class: [
127
- {
128
- "ml-auto sm:ml-2": props.horizontal,
129
- "ml-auto": !props.horizontal,
130
- },
131
- ],
132
- }),
133
- panel: ({ props }) => ({
134
- class: [
135
- // Size
136
- "w-auto",
137
-
138
- // Spacing
139
- "py-1",
140
- "m-0 mx-2",
141
-
142
- // Shape
143
- "shadow-none sm:shadow-md",
144
- "border-0",
145
-
146
- // Color
147
- "bg-surface-0 dark:bg-surface-900",
148
-
149
- // Position
150
- "static sm:absolute",
151
- "z-10",
152
- {
153
- "sm:left-full top-0": !props.horizontal,
154
- },
155
- ],
156
- }),
157
- grid: {
158
- class: "flex flex-wrap sm:flex-nowrap",
159
- },
160
- column: {
161
- class: "w-full sm:w-1/2",
162
- },
163
- submenu: {
164
- class: ["m-0 list-none", "py-1 px-2 w-full sm:min-w-[14rem]"],
165
- },
166
- submenuheader: {
167
- class: [
168
- "font-medium",
169
- "sm:text-md",
170
-
171
- // Spacing
172
- "py-2.5 px-2",
173
- "m-0",
174
-
175
- // Shape
176
- "border-b border-surface-200 dark:border-surface-700",
177
-
178
- // Color
179
- "text-surface-700 dark:text-white/80",
180
- "bg-surface-0 dark:bg-surface-900",
181
- ],
182
- },
183
- separator: {
184
- class: "border-t border-surface-200 dark:border-surface-600 my-1",
185
- },
186
- menubutton: {
187
- class: [
188
- // Flexbox
189
- "flex sm:hidden",
190
- "items-center justify-center",
191
-
192
- // Size
193
- "w-8",
194
- "h-8",
195
-
196
- // Shape
197
- "rounded-full",
198
- // Color
199
- "text-surface-500 dark:text-white/80",
200
-
201
- // States
202
- "hover:text-surface-600 dark:hover:text-white/60",
203
- "hover:bg-surface-50 dark:hover:bg-surface-800/80",
204
- "focus:outline-none focus:outline-offset-0",
205
- "focus:ring-2 focus:ring-inset focus:ring-primary-500 dark:focus:ring-primary-400",
206
-
207
- // Transitions
208
- "transition duration-200 ease-in-out",
209
-
210
- // Misc
211
- "cursor-pointer",
212
- "no-underline",
213
- ],
214
- },
215
- end: {
216
- class: "ml-auto self-center",
217
- },
218
- };
@@ -1,111 +0,0 @@
1
- export default {
2
- root: {
3
- class: [
4
- // Sizing and Shape
5
- "min-w-[12rem]",
6
- "rounded-md",
7
- // Spacing
8
- "p-1.5",
9
- // Colors
10
- "bg-surface-0 dark:bg-surface-700",
11
- "text-surface-700 dark:text-white/80",
12
- "ring-1 ring-surface-200 dark:ring-surface-700",
13
- ],
14
- },
15
- menu: {
16
- class: [
17
- // Spacings and Shape
18
- "list-none",
19
- "m-0",
20
- "p-0",
21
- "outline-none",
22
- ],
23
- },
24
- menuitem: {
25
- class: [
26
- // Space
27
- "first:mt-0 mt-1",
28
- ],
29
- },
30
- content: ({ context }) => ({
31
- class: [
32
- //Shape
33
- "rounded-md",
34
-
35
- // Colors
36
- {
37
- "text-surface-700 dark:text-surface-0": !context.focused,
38
- "bg-surface-100 text-primary-500 dark:bg-surface-300/10 dark:text-primary-400":
39
- context.focused,
40
- },
41
-
42
- // Transitions
43
- "transition-shadow",
44
- "duration-200",
45
-
46
- // States
47
- "hover:text-primary-600 dark:hover:text-primary-400",
48
- "hover:bg-surface-100 dark:hover:bg-surface-400/10",
49
- ],
50
- }),
51
- action: {
52
- class: [
53
- "relative",
54
-
55
- // Font
56
- "font-semibold",
57
-
58
- // Flexbox
59
- "flex",
60
- "items-center",
61
-
62
- // Spacing
63
- "py-2",
64
- "px-3",
65
-
66
- // Misc
67
- "no-underline",
68
- "overflow-hidden",
69
- "cursor-pointer",
70
- "select-none",
71
- ],
72
- },
73
- icon: {
74
- class: [
75
- // Spacing
76
- "mr-2",
77
- "leading-6",
78
- "text-sm",
79
- ],
80
- },
81
- label: {
82
- class: ["leading-6", "text-sm"],
83
- },
84
- submenuheader: {
85
- class: [
86
- // Font
87
- "font-semibold",
88
- "text-xs leading-6",
89
-
90
- // Spacing
91
- "m-0 ",
92
- "py-1",
93
- "px-3",
94
-
95
- // Shape
96
- "rounded-tl-none",
97
- "rounded-tr-none",
98
-
99
- // Colors
100
- "bg-surface-0 dark:bg-surface-700",
101
- "text-surface-600 dark:text-surface-0/60",
102
- ],
103
- },
104
- transition: {
105
- enterFromClass: "opacity-0 scale-y-[0.8]",
106
- enterActiveClass:
107
- "transition-[transform,opacity] duration-[120ms] ease-[cubic-bezier(0,0,0.2,1)]",
108
- leaveActiveClass: "transition-opacity duration-100 ease-linear",
109
- leaveToClass: "opacity-0",
110
- },
111
- };