@fy-/fws-vue 0.1.3 → 0.1.5
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.
- package/components/ui/DefaultInput.vue +1 -1
- package/index.ts +4 -1
- package/package.json +1 -1
- package/presets/Lara/accordion/index.js +86 -0
- package/presets/Lara/autocomplete/index.js +284 -0
- package/presets/Lara/avatar/index.js +46 -0
- package/presets/Lara/badge/index.js +44 -0
- package/presets/Lara/badgedirective/index.js +49 -0
- package/presets/Lara/blockui/index.js +8 -0
- package/presets/Lara/breadcrumb/index.js +64 -0
- package/presets/Lara/button/index.js +470 -0
- package/presets/Lara/calendar/index.js +683 -0
- package/presets/Lara/card/index.js +37 -0
- package/presets/Lara/carousel/index.js +152 -0
- package/presets/Lara/cascadeselect/index.js +228 -0
- package/presets/Lara/checkbox/index.js +106 -0
- package/presets/Lara/chip/index.js +45 -0
- package/presets/Lara/chips/index.js +118 -0
- package/presets/Lara/colorpicker/index.js +129 -0
- package/presets/Lara/confirmpopup/index.js +107 -0
- package/presets/Lara/contextmenu/index.js +130 -0
- package/presets/Lara/datatable/index.js +1289 -0
- package/presets/Lara/dataview/index.js +40 -0
- package/presets/Lara/deferred/index.js +3 -0
- package/presets/Lara/dialog/index.js +249 -0
- package/presets/Lara/divider/index.js +72 -0
- package/presets/Lara/dock/index.js +97 -0
- package/presets/Lara/dropdown/index.js +300 -0
- package/presets/Lara/fieldset/index.js +98 -0
- package/presets/Lara/fileupload/index.js +173 -0
- package/presets/Lara/floatlabel/index.js +26 -0
- package/presets/Lara/galleria/index.js +351 -0
- package/presets/Lara/global.js +90 -0
- package/presets/Lara/iconfield/index.js +22 -0
- package/presets/Lara/image/index.js +206 -0
- package/presets/Lara/index.js +181 -0
- package/presets/Lara/inlinemessage/index.js +36 -0
- package/presets/Lara/inplace/index.js +27 -0
- package/presets/Lara/inputgroup/index.js +5 -0
- package/presets/Lara/inputgroupaddon/index.js +28 -0
- package/presets/Lara/inputmask/index.js +37 -0
- package/presets/Lara/inputnumber/index.js +253 -0
- package/presets/Lara/inputotp/index.js +72 -0
- package/presets/Lara/inputswitch/index.js +93 -0
- package/presets/Lara/inputtext/index.js +61 -0
- package/presets/Lara/knob/index.js +47 -0
- package/presets/Lara/listbox/index.js +170 -0
- package/presets/Lara/megamenu/index.js +207 -0
- package/presets/Lara/menu/index.js +98 -0
- package/presets/Lara/menubar/index.js +181 -0
- package/presets/Lara/message/index.js +87 -0
- package/presets/Lara/metergroup/index.js +110 -0
- package/presets/Lara/multiselect/index.js +589 -0
- package/presets/Lara/orderlist/index.js +266 -0
- package/presets/Lara/organizationchart/index.js +142 -0
- package/presets/Lara/overlaypanel/index.js +41 -0
- package/presets/Lara/paginator/index.js +590 -0
- package/presets/Lara/panel/index.js +93 -0
- package/presets/Lara/panelmenu/index.js +139 -0
- package/presets/Lara/password/index.js +140 -0
- package/presets/Lara/picklist/index.js +659 -0
- package/presets/Lara/progressbar/index.js +61 -0
- package/presets/Lara/progressspinner/index.js +51 -0
- package/presets/Lara/radiobutton/index.js +116 -0
- package/presets/Lara/rating/index.js +95 -0
- package/presets/Lara/ripple/index.js +6 -0
- package/presets/Lara/scrollpanel/index.js +77 -0
- package/presets/Lara/scrolltop/index.js +45 -0
- package/presets/Lara/selectbutton/index.js +60 -0
- package/presets/Lara/sidebar/index.js +163 -0
- package/presets/Lara/skeleton/index.js +19 -0
- package/presets/Lara/slider/index.js +149 -0
- package/presets/Lara/speeddial/index.js +535 -0
- package/presets/Lara/splitbutton/index.js +1081 -0
- package/presets/Lara/splitter/index.js +64 -0
- package/presets/Lara/stepper/index.js +183 -0
- package/presets/Lara/steps/index.js +115 -0
- package/presets/Lara/tabmenu/index.js +82 -0
- package/presets/Lara/tabview/index.js +166 -0
- package/presets/Lara/tag/index.js +37 -0
- package/presets/Lara/terminal/index.js +60 -0
- package/presets/Lara/textarea/index.js +39 -0
- package/presets/Lara/tieredmenu/index.js +125 -0
- package/presets/Lara/timeline/index.js +107 -0
- package/presets/Lara/toast/index.js +113 -0
- package/presets/Lara/togglebutton/index.js +100 -0
- package/presets/Lara/toolbar/index.js +28 -0
- package/presets/Lara/tooltip/index.js +73 -0
- package/presets/Lara/tree/index.js +281 -0
- package/presets/Lara/treeselect/index.js +387 -0
- package/presets/Lara/treetable/index.js +509 -0
- package/presets/Lara/tristatecheckbox/index.js +112 -0
|
@@ -0,0 +1,64 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,183 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,115 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,82 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,166 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
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
|
+
};
|