@fy-/fws-vue 0.3.0 → 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 (179) hide show
  1. package/package.json +1 -11
  2. package/presets/Lara/accordion/index.js +0 -86
  3. package/presets/Lara/autocomplete/index.js +0 -284
  4. package/presets/Lara/avatar/index.js +0 -46
  5. package/presets/Lara/badge/index.js +0 -44
  6. package/presets/Lara/badgedirective/index.js +0 -49
  7. package/presets/Lara/blockui/index.js +0 -8
  8. package/presets/Lara/breadcrumb/index.js +0 -64
  9. package/presets/Lara/button/index.js +0 -470
  10. package/presets/Lara/calendar/index.js +0 -683
  11. package/presets/Lara/card/index.js +0 -37
  12. package/presets/Lara/carousel/index.js +0 -152
  13. package/presets/Lara/cascadeselect/index.js +0 -228
  14. package/presets/Lara/checkbox/index.js +0 -106
  15. package/presets/Lara/chip/index.js +0 -45
  16. package/presets/Lara/chips/index.js +0 -118
  17. package/presets/Lara/colorpicker/index.js +0 -129
  18. package/presets/Lara/confirmpopup/index.js +0 -107
  19. package/presets/Lara/contextmenu/index.js +0 -130
  20. package/presets/Lara/datatable/index.js +0 -1289
  21. package/presets/Lara/dataview/index.js +0 -40
  22. package/presets/Lara/deferred/index.js +0 -3
  23. package/presets/Lara/dialog/index.js +0 -249
  24. package/presets/Lara/divider/index.js +0 -72
  25. package/presets/Lara/dock/index.js +0 -97
  26. package/presets/Lara/dropdown/index.js +0 -300
  27. package/presets/Lara/fieldset/index.js +0 -98
  28. package/presets/Lara/fileupload/index.js +0 -173
  29. package/presets/Lara/floatlabel/index.js +0 -26
  30. package/presets/Lara/galleria/index.js +0 -351
  31. package/presets/Lara/global.js +0 -90
  32. package/presets/Lara/iconfield/index.js +0 -22
  33. package/presets/Lara/image/index.js +0 -206
  34. package/presets/Lara/index.js +0 -181
  35. package/presets/Lara/inlinemessage/index.js +0 -36
  36. package/presets/Lara/inplace/index.js +0 -27
  37. package/presets/Lara/inputgroup/index.js +0 -5
  38. package/presets/Lara/inputgroupaddon/index.js +0 -28
  39. package/presets/Lara/inputmask/index.js +0 -37
  40. package/presets/Lara/inputnumber/index.js +0 -253
  41. package/presets/Lara/inputotp/index.js +0 -72
  42. package/presets/Lara/inputswitch/index.js +0 -93
  43. package/presets/Lara/inputtext/index.js +0 -61
  44. package/presets/Lara/knob/index.js +0 -47
  45. package/presets/Lara/listbox/index.js +0 -170
  46. package/presets/Lara/megamenu/index.js +0 -207
  47. package/presets/Lara/menu/index.js +0 -98
  48. package/presets/Lara/menubar/index.js +0 -181
  49. package/presets/Lara/message/index.js +0 -87
  50. package/presets/Lara/metergroup/index.js +0 -110
  51. package/presets/Lara/multiselect/index.js +0 -589
  52. package/presets/Lara/orderlist/index.js +0 -266
  53. package/presets/Lara/organizationchart/index.js +0 -142
  54. package/presets/Lara/overlaypanel/index.js +0 -41
  55. package/presets/Lara/paginator/index.js +0 -590
  56. package/presets/Lara/panel/index.js +0 -93
  57. package/presets/Lara/panelmenu/index.js +0 -139
  58. package/presets/Lara/password/index.js +0 -140
  59. package/presets/Lara/picklist/index.js +0 -659
  60. package/presets/Lara/progressbar/index.js +0 -61
  61. package/presets/Lara/progressspinner/index.js +0 -51
  62. package/presets/Lara/radiobutton/index.js +0 -116
  63. package/presets/Lara/rating/index.js +0 -95
  64. package/presets/Lara/ripple/index.js +0 -6
  65. package/presets/Lara/scrollpanel/index.js +0 -77
  66. package/presets/Lara/scrolltop/index.js +0 -45
  67. package/presets/Lara/selectbutton/index.js +0 -60
  68. package/presets/Lara/sidebar/index.js +0 -163
  69. package/presets/Lara/skeleton/index.js +0 -19
  70. package/presets/Lara/slider/index.js +0 -149
  71. package/presets/Lara/speeddial/index.js +0 -535
  72. package/presets/Lara/splitbutton/index.js +0 -1081
  73. package/presets/Lara/splitter/index.js +0 -64
  74. package/presets/Lara/stepper/index.js +0 -183
  75. package/presets/Lara/steps/index.js +0 -115
  76. package/presets/Lara/tabmenu/index.js +0 -82
  77. package/presets/Lara/tabview/index.js +0 -166
  78. package/presets/Lara/tag/index.js +0 -37
  79. package/presets/Lara/terminal/index.js +0 -60
  80. package/presets/Lara/textarea/index.js +0 -39
  81. package/presets/Lara/tieredmenu/index.js +0 -125
  82. package/presets/Lara/timeline/index.js +0 -107
  83. package/presets/Lara/toast/index.js +0 -113
  84. package/presets/Lara/togglebutton/index.js +0 -100
  85. package/presets/Lara/toolbar/index.js +0 -28
  86. package/presets/Lara/tooltip/index.js +0 -73
  87. package/presets/Lara/tree/index.js +0 -281
  88. package/presets/Lara/treeselect/index.js +0 -387
  89. package/presets/Lara/treetable/index.js +0 -509
  90. package/presets/Lara/tristatecheckbox/index.js +0 -112
  91. package/presets/Wind/accordion/index.js +0 -75
  92. package/presets/Wind/autocomplete/index.js +0 -294
  93. package/presets/Wind/avatar/index.js +0 -48
  94. package/presets/Wind/badge/index.js +0 -43
  95. package/presets/Wind/badgedirective/index.js +0 -50
  96. package/presets/Wind/blockui/index.js +0 -8
  97. package/presets/Wind/breadcrumb/index.js +0 -45
  98. package/presets/Wind/button/index.js +0 -474
  99. package/presets/Wind/calendar/index.js +0 -659
  100. package/presets/Wind/card/index.js +0 -40
  101. package/presets/Wind/carousel/index.js +0 -152
  102. package/presets/Wind/cascadeselect/index.js +0 -225
  103. package/presets/Wind/checkbox/index.js +0 -112
  104. package/presets/Wind/chip/index.js +0 -45
  105. package/presets/Wind/chips/index.js +0 -120
  106. package/presets/Wind/colorpicker/index.js +0 -129
  107. package/presets/Wind/confirmpopup/index.js +0 -123
  108. package/presets/Wind/contextmenu/index.js +0 -128
  109. package/presets/Wind/datatable/index.js +0 -1330
  110. package/presets/Wind/dataview/index.js +0 -40
  111. package/presets/Wind/deferred/index.js +0 -3
  112. package/presets/Wind/dialog/index.js +0 -251
  113. package/presets/Wind/divider/index.js +0 -72
  114. package/presets/Wind/dock/index.js +0 -97
  115. package/presets/Wind/dropdown/index.js +0 -287
  116. package/presets/Wind/fieldset/index.js +0 -99
  117. package/presets/Wind/fileupload/index.js +0 -173
  118. package/presets/Wind/floatlabel/index.js +0 -26
  119. package/presets/Wind/galleria/index.js +0 -351
  120. package/presets/Wind/global.js +0 -77
  121. package/presets/Wind/iconfield/index.js +0 -22
  122. package/presets/Wind/image/index.js +0 -206
  123. package/presets/Wind/index.js +0 -181
  124. package/presets/Wind/inlinemessage/index.js +0 -29
  125. package/presets/Wind/inplace/index.js +0 -30
  126. package/presets/Wind/inputgroup/index.js +0 -5
  127. package/presets/Wind/inputgroupaddon/index.js +0 -28
  128. package/presets/Wind/inputmask/index.js +0 -34
  129. package/presets/Wind/inputnumber/index.js +0 -244
  130. package/presets/Wind/inputotp/index.js +0 -72
  131. package/presets/Wind/inputswitch/index.js +0 -106
  132. package/presets/Wind/inputtext/index.js +0 -61
  133. package/presets/Wind/knob/index.js +0 -47
  134. package/presets/Wind/listbox/index.js +0 -159
  135. package/presets/Wind/megamenu/index.js +0 -218
  136. package/presets/Wind/menu/index.js +0 -111
  137. package/presets/Wind/menubar/index.js +0 -188
  138. package/presets/Wind/message/index.js +0 -87
  139. package/presets/Wind/metergroup/index.js +0 -110
  140. package/presets/Wind/multiselect/index.js +0 -619
  141. package/presets/Wind/orderlist/index.js +0 -275
  142. package/presets/Wind/organizationchart/index.js +0 -143
  143. package/presets/Wind/overlaypanel/index.js +0 -42
  144. package/presets/Wind/paginator/index.js +0 -596
  145. package/presets/Wind/panel/index.js +0 -95
  146. package/presets/Wind/panelmenu/index.js +0 -136
  147. package/presets/Wind/password/index.js +0 -141
  148. package/presets/Wind/picklist/index.js +0 -684
  149. package/presets/Wind/progressbar/index.js +0 -68
  150. package/presets/Wind/progressspinner/index.js +0 -51
  151. package/presets/Wind/radiobutton/index.js +0 -92
  152. package/presets/Wind/rating/index.js +0 -86
  153. package/presets/Wind/ripple/index.js +0 -6
  154. package/presets/Wind/scrollpanel/index.js +0 -77
  155. package/presets/Wind/scrolltop/index.js +0 -45
  156. package/presets/Wind/selectbutton/index.js +0 -58
  157. package/presets/Wind/sidebar/index.js +0 -165
  158. package/presets/Wind/skeleton/index.js +0 -19
  159. package/presets/Wind/slider/index.js +0 -135
  160. package/presets/Wind/speeddial/index.js +0 -536
  161. package/presets/Wind/splitbutton/index.js +0 -1078
  162. package/presets/Wind/splitter/index.js +0 -64
  163. package/presets/Wind/stepper/index.js +0 -180
  164. package/presets/Wind/steps/index.js +0 -132
  165. package/presets/Wind/tabmenu/index.js +0 -84
  166. package/presets/Wind/tabview/index.js +0 -168
  167. package/presets/Wind/tag/index.js +0 -37
  168. package/presets/Wind/terminal/index.js +0 -60
  169. package/presets/Wind/textarea/index.js +0 -40
  170. package/presets/Wind/tieredmenu/index.js +0 -121
  171. package/presets/Wind/timeline/index.js +0 -107
  172. package/presets/Wind/toast/index.js +0 -111
  173. package/presets/Wind/togglebutton/index.js +0 -91
  174. package/presets/Wind/toolbar/index.js +0 -30
  175. package/presets/Wind/tooltip/index.js +0 -43
  176. package/presets/Wind/tree/index.js +0 -300
  177. package/presets/Wind/treeselect/index.js +0 -404
  178. package/presets/Wind/treetable/index.js +0 -505
  179. package/presets/Wind/tristatecheckbox/index.js +0 -118
@@ -1,64 +0,0 @@
1
- export default {
2
- root: ({ context }) => ({
3
- class: [
4
- // Colors
5
- "bg-surface-0",
6
- "dark:bg-surface-900",
7
- "text-surface-700",
8
- "dark:text-surface-0/80",
9
-
10
- // Shape
11
- "rounded-lg",
12
-
13
- // Borders (Conditional)
14
- {
15
- "border border-solid border-surface-50 dark:border-surface-700":
16
- !context.nested,
17
- },
18
-
19
- // Nested
20
- { "flex grow border-0": context.nested },
21
- ],
22
- }),
23
-
24
- gutter: ({ props }) => ({
25
- class: [
26
- // Flexbox
27
- "flex",
28
- "items-center",
29
- "justify-center",
30
- "shrink-0",
31
-
32
- // Colors
33
- "bg-surface-50",
34
- "dark:bg-surface-800",
35
-
36
- // Transitions
37
- "transition-all",
38
- "duration-200",
39
-
40
- // Misc
41
- {
42
- "cursor-col-resize": props.layout == "horizontal",
43
- "cursor-row-resize": props.layout !== "horizontal",
44
- },
45
- ],
46
- }),
47
- gutterhandler: ({ props }) => ({
48
- class: [
49
- // Colors
50
- "bg-surface-100",
51
- "dark:bg-surface-600",
52
-
53
- // Transitions
54
- "transition-all",
55
- "duration-200",
56
-
57
- // Sizing (Conditional)
58
- {
59
- "h-7": props.layout == "horizontal",
60
- "w-7 h-2": props.layout !== "horizontal",
61
- },
62
- ],
63
- }),
64
- };
@@ -1,183 +0,0 @@
1
- export default {
2
- root: ({ props }) => ({
3
- class: [
4
- "flex-1",
5
- props.orientation === "vertical" ? "flex-col" : "flex-row",
6
- ],
7
- }),
8
- nav: {
9
- class: [
10
- // Flexbox
11
- "flex",
12
- "justify-between",
13
- "items-center",
14
-
15
- // Spacing
16
- "m-0",
17
- "p-0",
18
-
19
- // Positioning
20
- "relative",
21
-
22
- // Lists
23
- "list-none",
24
-
25
- // Overflow
26
- "overflow-x-auto",
27
- ],
28
- },
29
- stepperpanel: {
30
- panel: ({ context, parent }) => ({
31
- class: [
32
- context.active ? "flex-1" : "",
33
- parent.props.orientation === "vertical"
34
- ? "flex flex-col flex-initial"
35
- : "",
36
- ],
37
- }),
38
- header: ({ parent, context }) => ({
39
- class: [
40
- // Position
41
- "relative",
42
-
43
- // Flexbox
44
- "flex",
45
- "items-center",
46
- context.last ? "flex-initial" : "flex-1",
47
- parent.props.orientation === "vertical" ? "flex-initial" : "",
48
-
49
- // Spacing
50
- "p-2",
51
- ],
52
- }),
53
- action: {
54
- class: [
55
- // Borders
56
- "border-0",
57
- "border-none",
58
-
59
- // Flexbox
60
- "inline-flex",
61
- "items-center",
62
-
63
- // Text
64
- "text-decoration-none",
65
-
66
- // Transitions
67
- "transition",
68
- "transition-shadow",
69
- "duration-200",
70
-
71
- // Shape
72
- "rounded-md",
73
-
74
- // Backgrounds
75
- "bg-transparent",
76
-
77
- // Focus
78
- "outline-none",
79
- ],
80
- },
81
- number: ({ context }) => ({
82
- class: [
83
- // Flexbox
84
- "flex",
85
- "items-center",
86
- "justify-center",
87
-
88
- // Colors (Conditional)
89
- context.active
90
- ? "bg-primary-500 dark:bg-primary-400 text-surface-0 dark:text-surface-900"
91
- : "border border-surface-200 dark:border-surface-700 text-surface-900 dark:text-surface-0", // Adjust colors as needed
92
-
93
- // Size and Shape
94
- "min-w-[2rem]",
95
- "h-[2rem]",
96
- "line-height-[2rem]",
97
- "rounded-full",
98
-
99
- // Text
100
- "text-lg",
101
-
102
- // Borders
103
- context.active ? "border-0 border-none" : "border-solid border-2",
104
-
105
- // Transitions
106
- "transition",
107
- "transition-colors",
108
- "transition-shadow",
109
- "duration-200",
110
- ],
111
- }),
112
- title: ({ context }) => ({
113
- class: [
114
- // Layout
115
- "block",
116
- "whitespace-nowrap",
117
- "overflow-hidden",
118
- "text-ellipsis",
119
- "max-w-full",
120
-
121
- // Spacing
122
- "ml-2",
123
-
124
- // Text
125
- context.active
126
- ? "text-surface-900 dark:text-surface-0"
127
- : "text-surface-700 dark:text-surface-0/80",
128
- "font-bold",
129
-
130
- // Transitions
131
- "transition",
132
- "transition-colors",
133
- "transition-shadow",
134
- "duration-200",
135
- ],
136
- }),
137
- separator: ({ context, state, parent }) => ({
138
- class: [
139
- // Colors (Conditional for active step)
140
- state.d_activeStep <= context.index
141
- ? "bg-surface-200 dark:bg-surface-700"
142
- : "bg-primary-500 dark:bg-primary-400",
143
-
144
- // Conditional for Vertical Orientation
145
- parent.props.orientation === "vertical"
146
- ? ["flex-none", "w-[2px]", "h-auto", "ml-[calc(1.29rem+2px)]"]
147
- : ["flex-1", "w-full", "h-[2px]", "ml-4"],
148
-
149
- // Transitions
150
- "transition-shadow",
151
- "duration-200",
152
- ],
153
- }),
154
- transition: {
155
- class: [
156
- "flex flex-1",
157
- "bg-surface-0 dark:bg-surface-800",
158
- "text-surface-900 dark:text-surface-0",
159
- ],
160
- enterFromClass: "max-h-0",
161
- enterActiveClass:
162
- "overflow-hidden transition-[max-height] duration-1000 ease-[cubic-bezier(0.42,0,0.58,1)]",
163
- enterToClass: "max-h-[1000px]",
164
- leaveFromClass: "max-h-[1000px]",
165
- leaveActiveClass:
166
- "overflow-hidden transition-[max-height] duration-[450ms] ease-[cubic-bezier(0,1,0,1)]",
167
- leaveToClass: "max-h-0",
168
- },
169
- content: ({ parent }) => ({
170
- class: [parent.props.orientation === "vertical" ? "w-full pl-4" : ""],
171
- }),
172
- },
173
- panelcontainer: {
174
- class: [
175
- // Colors
176
- "bg-surface-0 dark:bg-surface-800",
177
- "text-surface-900 dark:text-surface-0",
178
-
179
- // Spacing
180
- "p-4",
181
- ],
182
- },
183
- };
@@ -1,115 +0,0 @@
1
- export default {
2
- root: {
3
- class: "relative",
4
- },
5
- menu: {
6
- class: "p-0 m-0 list-none flex",
7
- },
8
- menuitem: {
9
- class: [
10
- // Flexbox and Position
11
- "relative",
12
- "flex",
13
- "justify-center",
14
- "flex-1",
15
- "overflow-hidden",
16
-
17
- // Before
18
- "before:border-t",
19
- "before:border-surface-200",
20
- "before:dark:border-surface-700",
21
- "before:w-full",
22
- "before:absolute",
23
- "before:top-1/2",
24
- "before:left-0",
25
- "before:transform",
26
- "before:-mt-4",
27
- ],
28
- },
29
- action: ({ props }) => ({
30
- class: [
31
- // Flexbox
32
- "inline-flex items-center",
33
- "flex-col",
34
-
35
- // Transitions and Shape
36
- "transition-shadow",
37
- "rounded-md",
38
-
39
- // Colors
40
- "bg-surface-0",
41
- "dark:bg-transparent",
42
-
43
- // States
44
- "focus:outline-none focus:outline-offset-0 focus:ring",
45
- "focus:ring-primary-400/50 dark:focus:ring-primary-300/50",
46
-
47
- // Misc
48
- "overflow-hidden",
49
- { "cursor-pointer": !props.readonly },
50
- ],
51
- }),
52
- step: ({ context, props }) => ({
53
- class: [
54
- // Flexbox
55
- "flex items-center justify-center",
56
-
57
- // Position
58
- "z-20",
59
-
60
- // Shape
61
- "rounded-full",
62
- "border",
63
-
64
- // Size
65
- "w-[2rem]",
66
- "h-[2rem]",
67
- "text-sm",
68
- "leading-[2rem]",
69
-
70
- // Colors
71
- {
72
- "text-surface-400 dark:text-white/60": !context.active,
73
- "border-surface-100 dark:border-surface-700": !context.active,
74
- "bg-surface-0 dark:bg-surface-800": !context.active,
75
- "bg-primary-500 dark:bg-primary-400": context.active,
76
- "border-primary-500 dark:border-primary-400": context.active,
77
- "text-surface-0 dark:text-surface-900": context.active,
78
- },
79
-
80
- // States
81
- {
82
- "hover:border-surface-300 dark:hover:border-surface-500":
83
- !context.active && !props.readonly,
84
- },
85
-
86
- // Transition
87
- "transition-colors duration-200 ease-in-out",
88
- ],
89
- }),
90
- label: ({ context }) => ({
91
- class: [
92
- // Font
93
- "leading-5",
94
- { "font-bold": context.active },
95
-
96
- // Display
97
- "block",
98
-
99
- // Spacing
100
- "mt-2",
101
-
102
- // Colors
103
- {
104
- "text-surface-400 dark:text-white/60": !context.active,
105
- "text-surface-800 dark:text-white/80": context.active,
106
- },
107
-
108
- // Text and Overflow
109
- "whitespace-nowrap",
110
- "overflow-hidden",
111
- "overflow-ellipsis",
112
- "max-w-full",
113
- ],
114
- }),
115
- };
@@ -1,82 +0,0 @@
1
- export default {
2
- root: {
3
- class: "overflow-x-auto",
4
- },
5
- menu: {
6
- class: [
7
- // Flexbox
8
- "flex flex-1",
9
-
10
- // Spacing
11
- "list-none",
12
- "p-0 m-0",
13
-
14
- // Colors
15
- "bg-surface-0 dark:bg-surface-800",
16
- "border-b-2 border-surface-200 dark:border-surface-700",
17
- "text-surface-900 dark:text-surface-0/80",
18
- ],
19
- },
20
- menuitem: {
21
- class: "mr-0",
22
- },
23
- action: ({ context, state }) => ({
24
- class: [
25
- "relative",
26
-
27
- // Font
28
- "font-bold",
29
-
30
- // Flexbox and Alignment
31
- "flex items-center",
32
-
33
- // Spacing
34
- "p-5",
35
- "-mb-[2px]",
36
-
37
- // Shape
38
- "border-b-2",
39
- "rounded-t-md",
40
-
41
- // Colors and Conditions
42
- {
43
- "border-surface-200 dark:border-surface-700":
44
- state.d_activeIndex !== context.index,
45
- "bg-surface-0 dark:bg-surface-800":
46
- state.d_activeIndex !== context.index,
47
- "text-surface-700 dark:text-surface-0/80":
48
- state.d_activeIndex !== context.index,
49
-
50
- "bg-surface-0 dark:bg-surface-800":
51
- state.d_activeIndex === context.index,
52
- "border-primary-500 dark:border-primary-400":
53
- state.d_activeIndex === context.index,
54
- "text-primary-500 dark:text-primary-400":
55
- state.d_activeIndex === context.index,
56
- },
57
-
58
- // States
59
- "focus-visible:outline-none focus-visible:outline-offset-0 focus-visible:ring focus-visible:ring-inset",
60
- "focus-visible:ring-primary-400/50 dark:focus-visible:ring-primary-300/50",
61
- {
62
- "hover:bg-surface-0 dark:hover:bg-surface-800/80":
63
- state.d_activeIndex !== context.index,
64
- "hover:border-surface-400 dark:hover:border-primary-400":
65
- state.d_activeIndex !== context.index,
66
- "hover:text-surface-900 dark:hover:text-surface-0":
67
- state.d_activeIndex !== context.index,
68
- },
69
-
70
- // Transitions
71
- "transition-all duration-200",
72
-
73
- // Misc
74
- "cursor-pointer select-none text-decoration-none",
75
- "overflow-hidden",
76
- "user-select-none",
77
- ],
78
- }),
79
- icon: {
80
- class: "mr-2",
81
- },
82
- };
@@ -1,166 +0,0 @@
1
- export default {
2
- navContainer: ({ props }) => ({
3
- class: [
4
- // Position
5
- "relative",
6
-
7
- // Misc
8
- { "overflow-hidden": props.scrollable },
9
- ],
10
- }),
11
- navContent: {
12
- class: [
13
- // Overflow and Scrolling
14
- "overflow-y-hidden overscroll-contain",
15
- "overscroll-auto",
16
- "scroll-smooth",
17
- "[&::-webkit-scrollbar]:hidden",
18
- ],
19
- },
20
- previousButton: {
21
- class: [
22
- // Flexbox and Alignment
23
- "flex items-center justify-center",
24
-
25
- // Position
26
- "!absolute",
27
- "top-0 left-0",
28
- "z-20",
29
-
30
- // Size and Shape
31
- "h-full w-12",
32
- "rounded-none",
33
-
34
- // Colors
35
- "bg-surface-0 dark:bg-surface-800",
36
- "text-primary-500 dark:text-primary-400",
37
- "shadow-md",
38
- ],
39
- },
40
- nextButton: {
41
- class: [
42
- // Flexbox and Alignment
43
- "flex items-center justify-center",
44
-
45
- // Position
46
- "!absolute",
47
- "top-0 right-0",
48
- "z-20",
49
-
50
- // Size and Shape
51
- "h-full w-12",
52
- "rounded-none",
53
-
54
- // Colors
55
- "bg-surface-0 dark:bg-surface-800",
56
- "text-primary-500 dark:text-primary-400",
57
- "shadow-md",
58
- ],
59
- },
60
- nav: {
61
- class: [
62
- // Flexbox
63
- "flex flex-1",
64
-
65
- // Spacing
66
- "list-none",
67
- "p-0 m-0",
68
-
69
- // Colors
70
- "bg-surface-0 dark:bg-surface-800",
71
- "border-b-2 border-surface-200 dark:border-surface-700",
72
- "text-surface-900 dark:text-surface-0/80",
73
- ],
74
- },
75
- tabpanel: {
76
- header: ({ props }) => ({
77
- class: [
78
- // Spacing
79
- "mr-0",
80
-
81
- // Misc
82
- {
83
- "opacity-60 cursor-default user-select-none select-none pointer-events-none":
84
- props?.disabled,
85
- },
86
- ],
87
- }),
88
- headerAction: ({ parent, context }) => ({
89
- class: [
90
- "relative",
91
-
92
- // Font
93
- "font-bold",
94
-
95
- // Flexbox and Alignment
96
- "flex items-center",
97
-
98
- // Spacing
99
- "p-5",
100
- "-mb-[2px]",
101
-
102
- // Shape
103
- "border-b-2",
104
- "rounded-t-md",
105
-
106
- // Colors and Conditions
107
- {
108
- "border-surface-200 dark:border-surface-700":
109
- parent.state.d_activeIndex !== context.index,
110
- "bg-surface-0 dark:bg-surface-800":
111
- parent.state.d_activeIndex !== context.index,
112
- "text-surface-700 dark:text-surface-0/80":
113
- parent.state.d_activeIndex !== context.index,
114
-
115
- "bg-surface-0 dark:bg-surface-800":
116
- parent.state.d_activeIndex === context.index,
117
- "border-primary-500 dark:border-primary-400":
118
- parent.state.d_activeIndex === context.index,
119
- "text-primary-500 dark:text-primary-400":
120
- parent.state.d_activeIndex === context.index,
121
- },
122
-
123
- // States
124
- "focus-visible:outline-none focus-visible:outline-offset-0 focus-visible:ring focus-visible:ring-inset",
125
- "focus-visible:ring-primary-400/50 dark:focus-visible:ring-primary-300/50",
126
- {
127
- "hover:bg-surface-0 dark:hover:bg-surface-800/80":
128
- parent.state.d_activeIndex !== context.index,
129
- "hover:border-surface-400 dark:hover:border-primary-400":
130
- parent.state.d_activeIndex !== context.index,
131
- "hover:text-surface-900 dark:hover:text-surface-0":
132
- parent.state.d_activeIndex !== context.index,
133
- },
134
-
135
- // Transitions
136
- "transition-all duration-200",
137
-
138
- // Misc
139
- "cursor-pointer select-none text-decoration-none",
140
- "overflow-hidden",
141
- "user-select-none",
142
- ],
143
- }),
144
- headerTitle: {
145
- class: [
146
- // Text
147
- "leading-none",
148
- "whitespace-nowrap",
149
- ],
150
- },
151
- content: {
152
- class: [
153
- // Spacing
154
- "p-5",
155
-
156
- // Shape
157
- "rounded-b-md",
158
-
159
- // Colors
160
- "bg-surface-0 dark:bg-surface-800",
161
- "text-surface-700 dark:text-surface-0/80",
162
- "border-0",
163
- ],
164
- },
165
- },
166
- };
@@ -1,37 +0,0 @@
1
- export default {
2
- root: ({ props }) => ({
3
- class: [
4
- // Font
5
- "text-xs font-bold",
6
-
7
- // Alignments
8
- "inline-flex items-center justify-center",
9
-
10
- // Spacing
11
- "px-2 py-1",
12
-
13
- // Shape
14
- {
15
- "rounded-md": !props.rounded,
16
- "rounded-full": props.rounded,
17
- },
18
-
19
- // Colors
20
- "text-white dark:text-surface-900",
21
- {
22
- "bg-primary-500 dark:bg-primary-400":
23
- props.severity == null || props.severity == "primary",
24
- "bg-green-500 dark:bg-green-400": props.severity == "success",
25
- "bg-blue-500 dark:bg-blue-400": props.severity == "info",
26
- "bg-orange-500 dark:bg-orange-400": props.severity == "warning",
27
- "bg-red-500 dark:bg-red-400": props.severity == "danger",
28
- },
29
- ],
30
- }),
31
- value: {
32
- class: "leading-normal",
33
- },
34
- icon: {
35
- class: "mr-1 text-sm",
36
- },
37
- };
@@ -1,60 +0,0 @@
1
- export default {
2
- root: {
3
- class: [
4
- // Spacing
5
- "p-5",
6
-
7
- // Shape
8
- "rounded-md",
9
-
10
- // Color
11
- "bg-surface-900 text-white",
12
- "border border-surface-700",
13
-
14
- // Sizing & Overflow
15
- "h-72 overflow-auto",
16
- ],
17
- },
18
- container: {
19
- class: [
20
- // Flexbox
21
- "flex items-center",
22
- ],
23
- },
24
- prompt: {
25
- class: [
26
- // Color
27
- "text-surface-400",
28
- ],
29
- },
30
- response: {
31
- class: [
32
- // Color
33
- "text-primary-400",
34
- ],
35
- },
36
- command: {
37
- class: [
38
- // Color
39
- "text-primary-400",
40
- ],
41
- },
42
- commandtext: {
43
- class: [
44
- // Flexbox
45
- "flex-1 shrink grow-0",
46
-
47
- // Shape
48
- "border-0",
49
-
50
- // Spacing
51
- "p-0",
52
-
53
- // Color
54
- "bg-transparent text-inherit",
55
-
56
- // Outline
57
- "outline-none",
58
- ],
59
- },
60
- };