@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.
- package/components/ui/DefaultInput.vue +204 -213
- package/package.json +2 -12
- package/presets/Lara/accordion/index.js +0 -86
- package/presets/Lara/autocomplete/index.js +0 -284
- package/presets/Lara/avatar/index.js +0 -46
- package/presets/Lara/badge/index.js +0 -44
- package/presets/Lara/badgedirective/index.js +0 -49
- package/presets/Lara/blockui/index.js +0 -8
- package/presets/Lara/breadcrumb/index.js +0 -64
- package/presets/Lara/button/index.js +0 -470
- package/presets/Lara/calendar/index.js +0 -683
- package/presets/Lara/card/index.js +0 -37
- package/presets/Lara/carousel/index.js +0 -152
- package/presets/Lara/cascadeselect/index.js +0 -228
- package/presets/Lara/checkbox/index.js +0 -106
- package/presets/Lara/chip/index.js +0 -45
- package/presets/Lara/chips/index.js +0 -118
- package/presets/Lara/colorpicker/index.js +0 -129
- package/presets/Lara/confirmpopup/index.js +0 -107
- package/presets/Lara/contextmenu/index.js +0 -130
- package/presets/Lara/datatable/index.js +0 -1289
- package/presets/Lara/dataview/index.js +0 -40
- package/presets/Lara/deferred/index.js +0 -3
- package/presets/Lara/dialog/index.js +0 -249
- package/presets/Lara/divider/index.js +0 -72
- package/presets/Lara/dock/index.js +0 -97
- package/presets/Lara/dropdown/index.js +0 -300
- package/presets/Lara/fieldset/index.js +0 -98
- package/presets/Lara/fileupload/index.js +0 -173
- package/presets/Lara/floatlabel/index.js +0 -26
- package/presets/Lara/galleria/index.js +0 -351
- package/presets/Lara/global.js +0 -90
- package/presets/Lara/iconfield/index.js +0 -22
- package/presets/Lara/image/index.js +0 -206
- package/presets/Lara/index.js +0 -181
- package/presets/Lara/inlinemessage/index.js +0 -36
- package/presets/Lara/inplace/index.js +0 -27
- package/presets/Lara/inputgroup/index.js +0 -5
- package/presets/Lara/inputgroupaddon/index.js +0 -28
- package/presets/Lara/inputmask/index.js +0 -37
- package/presets/Lara/inputnumber/index.js +0 -253
- package/presets/Lara/inputotp/index.js +0 -72
- package/presets/Lara/inputswitch/index.js +0 -93
- package/presets/Lara/inputtext/index.js +0 -61
- package/presets/Lara/knob/index.js +0 -47
- package/presets/Lara/listbox/index.js +0 -170
- package/presets/Lara/megamenu/index.js +0 -207
- package/presets/Lara/menu/index.js +0 -98
- package/presets/Lara/menubar/index.js +0 -181
- package/presets/Lara/message/index.js +0 -87
- package/presets/Lara/metergroup/index.js +0 -110
- package/presets/Lara/multiselect/index.js +0 -589
- package/presets/Lara/orderlist/index.js +0 -266
- package/presets/Lara/organizationchart/index.js +0 -142
- package/presets/Lara/overlaypanel/index.js +0 -41
- package/presets/Lara/paginator/index.js +0 -590
- package/presets/Lara/panel/index.js +0 -93
- package/presets/Lara/panelmenu/index.js +0 -139
- package/presets/Lara/password/index.js +0 -140
- package/presets/Lara/picklist/index.js +0 -659
- package/presets/Lara/progressbar/index.js +0 -61
- package/presets/Lara/progressspinner/index.js +0 -51
- package/presets/Lara/radiobutton/index.js +0 -116
- package/presets/Lara/rating/index.js +0 -95
- package/presets/Lara/ripple/index.js +0 -6
- package/presets/Lara/scrollpanel/index.js +0 -77
- package/presets/Lara/scrolltop/index.js +0 -45
- package/presets/Lara/selectbutton/index.js +0 -60
- package/presets/Lara/sidebar/index.js +0 -163
- package/presets/Lara/skeleton/index.js +0 -19
- package/presets/Lara/slider/index.js +0 -149
- package/presets/Lara/speeddial/index.js +0 -535
- package/presets/Lara/splitbutton/index.js +0 -1081
- package/presets/Lara/splitter/index.js +0 -64
- package/presets/Lara/stepper/index.js +0 -183
- package/presets/Lara/steps/index.js +0 -115
- package/presets/Lara/tabmenu/index.js +0 -82
- package/presets/Lara/tabview/index.js +0 -166
- package/presets/Lara/tag/index.js +0 -37
- package/presets/Lara/terminal/index.js +0 -60
- package/presets/Lara/textarea/index.js +0 -39
- package/presets/Lara/tieredmenu/index.js +0 -125
- package/presets/Lara/timeline/index.js +0 -107
- package/presets/Lara/toast/index.js +0 -113
- package/presets/Lara/togglebutton/index.js +0 -100
- package/presets/Lara/toolbar/index.js +0 -28
- package/presets/Lara/tooltip/index.js +0 -73
- package/presets/Lara/tree/index.js +0 -281
- package/presets/Lara/treeselect/index.js +0 -387
- package/presets/Lara/treetable/index.js +0 -509
- package/presets/Lara/tristatecheckbox/index.js +0 -112
- package/presets/Wind/accordion/index.js +0 -75
- package/presets/Wind/autocomplete/index.js +0 -294
- package/presets/Wind/avatar/index.js +0 -48
- package/presets/Wind/badge/index.js +0 -43
- package/presets/Wind/badgedirective/index.js +0 -50
- package/presets/Wind/blockui/index.js +0 -8
- package/presets/Wind/breadcrumb/index.js +0 -45
- package/presets/Wind/button/index.js +0 -474
- package/presets/Wind/calendar/index.js +0 -659
- package/presets/Wind/card/index.js +0 -40
- package/presets/Wind/carousel/index.js +0 -152
- package/presets/Wind/cascadeselect/index.js +0 -225
- package/presets/Wind/checkbox/index.js +0 -112
- package/presets/Wind/chip/index.js +0 -45
- package/presets/Wind/chips/index.js +0 -120
- package/presets/Wind/colorpicker/index.js +0 -129
- package/presets/Wind/confirmpopup/index.js +0 -123
- package/presets/Wind/contextmenu/index.js +0 -128
- package/presets/Wind/datatable/index.js +0 -1330
- package/presets/Wind/dataview/index.js +0 -40
- package/presets/Wind/deferred/index.js +0 -3
- package/presets/Wind/dialog/index.js +0 -251
- package/presets/Wind/divider/index.js +0 -72
- package/presets/Wind/dock/index.js +0 -97
- package/presets/Wind/dropdown/index.js +0 -287
- package/presets/Wind/fieldset/index.js +0 -99
- package/presets/Wind/fileupload/index.js +0 -173
- package/presets/Wind/floatlabel/index.js +0 -26
- package/presets/Wind/galleria/index.js +0 -351
- package/presets/Wind/global.js +0 -77
- package/presets/Wind/iconfield/index.js +0 -22
- package/presets/Wind/image/index.js +0 -206
- package/presets/Wind/index.js +0 -181
- package/presets/Wind/inlinemessage/index.js +0 -29
- package/presets/Wind/inplace/index.js +0 -30
- package/presets/Wind/inputgroup/index.js +0 -5
- package/presets/Wind/inputgroupaddon/index.js +0 -28
- package/presets/Wind/inputmask/index.js +0 -34
- package/presets/Wind/inputnumber/index.js +0 -244
- package/presets/Wind/inputotp/index.js +0 -72
- package/presets/Wind/inputswitch/index.js +0 -106
- package/presets/Wind/inputtext/index.js +0 -61
- package/presets/Wind/knob/index.js +0 -47
- package/presets/Wind/listbox/index.js +0 -159
- package/presets/Wind/megamenu/index.js +0 -218
- package/presets/Wind/menu/index.js +0 -111
- package/presets/Wind/menubar/index.js +0 -188
- package/presets/Wind/message/index.js +0 -87
- package/presets/Wind/metergroup/index.js +0 -110
- package/presets/Wind/multiselect/index.js +0 -619
- package/presets/Wind/orderlist/index.js +0 -275
- package/presets/Wind/organizationchart/index.js +0 -143
- package/presets/Wind/overlaypanel/index.js +0 -42
- package/presets/Wind/paginator/index.js +0 -596
- package/presets/Wind/panel/index.js +0 -95
- package/presets/Wind/panelmenu/index.js +0 -136
- package/presets/Wind/password/index.js +0 -141
- package/presets/Wind/picklist/index.js +0 -684
- package/presets/Wind/progressbar/index.js +0 -68
- package/presets/Wind/progressspinner/index.js +0 -51
- package/presets/Wind/radiobutton/index.js +0 -92
- package/presets/Wind/rating/index.js +0 -86
- package/presets/Wind/ripple/index.js +0 -6
- package/presets/Wind/scrollpanel/index.js +0 -77
- package/presets/Wind/scrolltop/index.js +0 -45
- package/presets/Wind/selectbutton/index.js +0 -58
- package/presets/Wind/sidebar/index.js +0 -165
- package/presets/Wind/skeleton/index.js +0 -19
- package/presets/Wind/slider/index.js +0 -135
- package/presets/Wind/speeddial/index.js +0 -536
- package/presets/Wind/splitbutton/index.js +0 -1078
- package/presets/Wind/splitter/index.js +0 -64
- package/presets/Wind/stepper/index.js +0 -180
- package/presets/Wind/steps/index.js +0 -132
- package/presets/Wind/tabmenu/index.js +0 -84
- package/presets/Wind/tabview/index.js +0 -168
- package/presets/Wind/tag/index.js +0 -37
- package/presets/Wind/terminal/index.js +0 -60
- package/presets/Wind/textarea/index.js +0 -40
- package/presets/Wind/tieredmenu/index.js +0 -121
- package/presets/Wind/timeline/index.js +0 -107
- package/presets/Wind/toast/index.js +0 -111
- package/presets/Wind/togglebutton/index.js +0 -91
- package/presets/Wind/toolbar/index.js +0 -30
- package/presets/Wind/tooltip/index.js +0 -43
- package/presets/Wind/tree/index.js +0 -300
- package/presets/Wind/treeselect/index.js +0 -404
- package/presets/Wind/treetable/index.js +0 -505
- package/presets/Wind/tristatecheckbox/index.js +0 -118
|
@@ -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
|
-
};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
root: ({ context, props }) => ({
|
|
3
|
-
class: [
|
|
4
|
-
// Font
|
|
5
|
-
"font-sans leading-6",
|
|
6
|
-
"sm:text-sm",
|
|
7
|
-
|
|
8
|
-
// Spacing
|
|
9
|
-
"m-0",
|
|
10
|
-
"py-1.5 px-3",
|
|
11
|
-
|
|
12
|
-
// Shape
|
|
13
|
-
"rounded-md",
|
|
14
|
-
"appearance-none",
|
|
15
|
-
|
|
16
|
-
// Colors
|
|
17
|
-
"text-surface-900 dark:text-surface-0",
|
|
18
|
-
"placeholder:text-surface-400 dark:placeholder:text-surface-500",
|
|
19
|
-
"bg-surface-0 dark:bg-surface-900",
|
|
20
|
-
"ring-1 ring-inset ring-offset-0",
|
|
21
|
-
"shadow-sm",
|
|
22
|
-
{ " ring-surface-300 dark:ring-surface-700": !props.invalid },
|
|
23
|
-
|
|
24
|
-
// Invalid State
|
|
25
|
-
{ "ring-red-500 dark:ring-red-400": props.invalid },
|
|
26
|
-
|
|
27
|
-
// States
|
|
28
|
-
{
|
|
29
|
-
"outline-none focus:ring-primary-500 dark:focus:ring-primary-400":
|
|
30
|
-
!context.disabled,
|
|
31
|
-
"opacity-60 select-none pointer-events-none cursor-default":
|
|
32
|
-
context.disabled,
|
|
33
|
-
},
|
|
34
|
-
|
|
35
|
-
// Misc
|
|
36
|
-
"appearance-none",
|
|
37
|
-
"transition-colors duration-200",
|
|
38
|
-
],
|
|
39
|
-
}),
|
|
40
|
-
};
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
root: {
|
|
3
|
-
class: [
|
|
4
|
-
// Shape
|
|
5
|
-
"rounded-md",
|
|
6
|
-
|
|
7
|
-
// Size
|
|
8
|
-
"min-w-[12rem]",
|
|
9
|
-
"p-1.5",
|
|
10
|
-
|
|
11
|
-
// Colors
|
|
12
|
-
"bg-surface-0 dark:bg-surface-700",
|
|
13
|
-
"ring-1 ring-surface-200 dark:ring-surface-700",
|
|
14
|
-
],
|
|
15
|
-
},
|
|
16
|
-
menu: {
|
|
17
|
-
class: [
|
|
18
|
-
// Spacings and Shape
|
|
19
|
-
"list-none",
|
|
20
|
-
"m-0",
|
|
21
|
-
"p-0",
|
|
22
|
-
"outline-none",
|
|
23
|
-
],
|
|
24
|
-
},
|
|
25
|
-
menuitem: {
|
|
26
|
-
class: ["relative first:mt-0 mt-1"],
|
|
27
|
-
},
|
|
28
|
-
content: ({ context }) => ({
|
|
29
|
-
class: [
|
|
30
|
-
//Shape
|
|
31
|
-
"rounded-md",
|
|
32
|
-
|
|
33
|
-
// Colors
|
|
34
|
-
{
|
|
35
|
-
"text-surface-500 dark:text-white/70":
|
|
36
|
-
!context.focused && !context.active,
|
|
37
|
-
"text-surface-500 dark:text-white/70 bg-surface-200 dark:bg-black/70":
|
|
38
|
-
context.focused && !context.active,
|
|
39
|
-
"text-surface-900 dark:text-surface-0/80 bg-surface-50 dark:bg-black/70":
|
|
40
|
-
context.focused && context.active,
|
|
41
|
-
"text-surface-900 dark:text-surface-0/80 bg-surface-50 dark:bg-black/70":
|
|
42
|
-
!context.focused && context.active,
|
|
43
|
-
},
|
|
44
|
-
|
|
45
|
-
// Hover States
|
|
46
|
-
{
|
|
47
|
-
"hover:bg-surface-50 dark:hover:bg-surface-800": !context.active,
|
|
48
|
-
"hover:bg-surface-100 dark:hover:bg-black/40 text-surface-900 dark:text-surface-0/80":
|
|
49
|
-
context.active,
|
|
50
|
-
},
|
|
51
|
-
|
|
52
|
-
// Transitions
|
|
53
|
-
"transition-shadow",
|
|
54
|
-
"duration-200",
|
|
55
|
-
],
|
|
56
|
-
}),
|
|
57
|
-
action: {
|
|
58
|
-
class: [
|
|
59
|
-
"relative",
|
|
60
|
-
|
|
61
|
-
// Font
|
|
62
|
-
"font-semibold",
|
|
63
|
-
|
|
64
|
-
// Flexbox
|
|
65
|
-
"flex",
|
|
66
|
-
"items-center",
|
|
67
|
-
|
|
68
|
-
// Spacing
|
|
69
|
-
"py-2",
|
|
70
|
-
"px-3",
|
|
71
|
-
|
|
72
|
-
// Misc
|
|
73
|
-
"no-underline",
|
|
74
|
-
"overflow-hidden",
|
|
75
|
-
"cursor-pointer",
|
|
76
|
-
"select-none",
|
|
77
|
-
],
|
|
78
|
-
},
|
|
79
|
-
icon: {
|
|
80
|
-
class: [
|
|
81
|
-
// Spacing
|
|
82
|
-
"mr-2",
|
|
83
|
-
"leading-6",
|
|
84
|
-
"text-sm",
|
|
85
|
-
],
|
|
86
|
-
},
|
|
87
|
-
label: {
|
|
88
|
-
class: ["leading-none", "text-sm"],
|
|
89
|
-
},
|
|
90
|
-
submenuicon: {
|
|
91
|
-
class: [
|
|
92
|
-
// Position
|
|
93
|
-
"ml-auto",
|
|
94
|
-
],
|
|
95
|
-
},
|
|
96
|
-
submenu: {
|
|
97
|
-
class: [
|
|
98
|
-
// Size
|
|
99
|
-
"w-full sm:w-48",
|
|
100
|
-
|
|
101
|
-
// Spacing
|
|
102
|
-
"p-1.5",
|
|
103
|
-
"m-0 mx-1.5",
|
|
104
|
-
"list-none",
|
|
105
|
-
|
|
106
|
-
// Shape
|
|
107
|
-
"shadow-none sm:shadow-md",
|
|
108
|
-
"border-0",
|
|
109
|
-
|
|
110
|
-
// Position
|
|
111
|
-
"static sm:absolute",
|
|
112
|
-
"z-10",
|
|
113
|
-
|
|
114
|
-
// Color
|
|
115
|
-
"bg-surface-0 dark:bg-surface-700",
|
|
116
|
-
],
|
|
117
|
-
},
|
|
118
|
-
separator: {
|
|
119
|
-
class: "border-t border-surface-200 dark:border-surface-600 my-1",
|
|
120
|
-
},
|
|
121
|
-
};
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
root: ({ props }) => ({
|
|
3
|
-
class: [
|
|
4
|
-
"flex grow",
|
|
5
|
-
{
|
|
6
|
-
"flex-col": props.layout === "vertical",
|
|
7
|
-
"flex-row flex-1": props.layout === "horizontal",
|
|
8
|
-
},
|
|
9
|
-
],
|
|
10
|
-
}),
|
|
11
|
-
event: ({ props, context }) => ({
|
|
12
|
-
class: [
|
|
13
|
-
"flex relative min-h-[70px]",
|
|
14
|
-
{
|
|
15
|
-
"flex-row-reverse":
|
|
16
|
-
props.align === "right" ||
|
|
17
|
-
(props.layout === "vertical" &&
|
|
18
|
-
props.align === "alternate" &&
|
|
19
|
-
context.index % 2 === 1),
|
|
20
|
-
"flex-col flex-1": props.layout === "horizontal",
|
|
21
|
-
"flex-col-reverse ":
|
|
22
|
-
props.align === "bottom" ||
|
|
23
|
-
(props.layout === "horizontal" &&
|
|
24
|
-
props.align === "alternate" &&
|
|
25
|
-
context.index % 2 === 1),
|
|
26
|
-
},
|
|
27
|
-
],
|
|
28
|
-
}),
|
|
29
|
-
opposite: ({ props, context }) => ({
|
|
30
|
-
class: [
|
|
31
|
-
"flex-1",
|
|
32
|
-
{
|
|
33
|
-
"px-4": props.layout === "vertical",
|
|
34
|
-
"py-4": props.layout === "horizontal",
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
"text-right":
|
|
38
|
-
props.align === "left" ||
|
|
39
|
-
(props.layout === "vertical" &&
|
|
40
|
-
props.align === "alternate" &&
|
|
41
|
-
context.index % 2 === 0),
|
|
42
|
-
"text-left":
|
|
43
|
-
props.align === "right" ||
|
|
44
|
-
(props.layout === "vertical" &&
|
|
45
|
-
props.align === "alternate" &&
|
|
46
|
-
context.index % 2 === 1),
|
|
47
|
-
},
|
|
48
|
-
],
|
|
49
|
-
}),
|
|
50
|
-
separator: ({ props }) => ({
|
|
51
|
-
class: [
|
|
52
|
-
"flex items-center flex-initial",
|
|
53
|
-
{
|
|
54
|
-
"flex-col": props.layout === "vertical",
|
|
55
|
-
"flex-row": props.layout === "horizontal",
|
|
56
|
-
},
|
|
57
|
-
],
|
|
58
|
-
}),
|
|
59
|
-
marker: {
|
|
60
|
-
class: [
|
|
61
|
-
// Display & Flexbox
|
|
62
|
-
"flex self-baseline",
|
|
63
|
-
|
|
64
|
-
// Size
|
|
65
|
-
"w-4 h-4",
|
|
66
|
-
|
|
67
|
-
// Appearance
|
|
68
|
-
"rounded-full border-2 border-primary-500 bg-surface-0 dark:border-primary-300 dark:bg-surface-900/40",
|
|
69
|
-
],
|
|
70
|
-
},
|
|
71
|
-
connector: ({ props }) => ({
|
|
72
|
-
class: [
|
|
73
|
-
"grow bg-surface-300 dark:bg-surface-700",
|
|
74
|
-
{
|
|
75
|
-
"w-[2px]": props.layout === "vertical",
|
|
76
|
-
"w-full h-[2px]": props.layout === "horizontal",
|
|
77
|
-
},
|
|
78
|
-
],
|
|
79
|
-
}),
|
|
80
|
-
content: ({ props, context }) => ({
|
|
81
|
-
class: [
|
|
82
|
-
"flex-1",
|
|
83
|
-
{
|
|
84
|
-
"px-4": props.layout === "vertical",
|
|
85
|
-
"py-4": props.layout === "horizontal",
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
"text-left":
|
|
89
|
-
props.align === "left" ||
|
|
90
|
-
(props.layout === "vertical" &&
|
|
91
|
-
props.align === "alternate" &&
|
|
92
|
-
context.index % 2 === 0),
|
|
93
|
-
"text-right":
|
|
94
|
-
props.align === "right" ||
|
|
95
|
-
(props.layout === "vertical" &&
|
|
96
|
-
props.align === "alternate" &&
|
|
97
|
-
context.index % 2 === 1),
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
"min-h-0":
|
|
101
|
-
props.layout === "vertical" && context.index === context.count,
|
|
102
|
-
"grow-0":
|
|
103
|
-
props.layout === "horizontal" && context.index === context.count,
|
|
104
|
-
},
|
|
105
|
-
],
|
|
106
|
-
}),
|
|
107
|
-
};
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
root: ({ props }) => ({
|
|
3
|
-
class: [
|
|
4
|
-
//Size and Shape
|
|
5
|
-
"w-96 rounded-md",
|
|
6
|
-
|
|
7
|
-
// Positioning
|
|
8
|
-
{
|
|
9
|
-
"-translate-x-2/4":
|
|
10
|
-
props.position == "top-center" || props.position == "bottom-center",
|
|
11
|
-
},
|
|
12
|
-
],
|
|
13
|
-
}),
|
|
14
|
-
container: ({ props }) => ({
|
|
15
|
-
class: [
|
|
16
|
-
"my-4 rounded-md w-full",
|
|
17
|
-
|
|
18
|
-
"shadow-lg",
|
|
19
|
-
"bg-surface-0 dark:bg-surface-800",
|
|
20
|
-
"ring-1 ring-inset ring-surface-200 dark:ring-surface-700 ring-offset-0",
|
|
21
|
-
// Colors
|
|
22
|
-
{
|
|
23
|
-
"text-blue-500 dark:text-blue-300": props.message.severity == "info",
|
|
24
|
-
"text-green-500 dark:text-green-300":
|
|
25
|
-
props.message.severity == "success",
|
|
26
|
-
"text-orange-500 dark:text-orange-300":
|
|
27
|
-
props.message.severity == "warn",
|
|
28
|
-
"text-red-500 dark:text-red-300": props.message.severity == "error",
|
|
29
|
-
},
|
|
30
|
-
],
|
|
31
|
-
}),
|
|
32
|
-
content: ({ props }) => ({
|
|
33
|
-
class: [
|
|
34
|
-
"flex p-4",
|
|
35
|
-
{
|
|
36
|
-
"items-start": props.message.summary,
|
|
37
|
-
"items-center": !props.message.summary,
|
|
38
|
-
},
|
|
39
|
-
],
|
|
40
|
-
}),
|
|
41
|
-
icon: {
|
|
42
|
-
class: [
|
|
43
|
-
// Sizing and Spacing
|
|
44
|
-
"w-5 h-5",
|
|
45
|
-
"mr-2 shrink-0",
|
|
46
|
-
],
|
|
47
|
-
},
|
|
48
|
-
text: {
|
|
49
|
-
class: [
|
|
50
|
-
// Font and Text
|
|
51
|
-
"text-sm leading-none",
|
|
52
|
-
"ml-2",
|
|
53
|
-
"flex-1",
|
|
54
|
-
],
|
|
55
|
-
},
|
|
56
|
-
summary: {
|
|
57
|
-
class: "font-medium block",
|
|
58
|
-
},
|
|
59
|
-
detail: ({ props }) => ({
|
|
60
|
-
class: [
|
|
61
|
-
"block",
|
|
62
|
-
"text-surface-600 dark:text-surface-0/70",
|
|
63
|
-
{ "mt-1.5": props.message.summary },
|
|
64
|
-
],
|
|
65
|
-
}),
|
|
66
|
-
closebutton: {
|
|
67
|
-
class: [
|
|
68
|
-
// Flexbox
|
|
69
|
-
"flex items-center justify-center",
|
|
70
|
-
|
|
71
|
-
// Size
|
|
72
|
-
"w-6 h-6",
|
|
73
|
-
|
|
74
|
-
// Spacing and Misc
|
|
75
|
-
"ml-auto relative",
|
|
76
|
-
|
|
77
|
-
// Shape
|
|
78
|
-
"rounded-full",
|
|
79
|
-
|
|
80
|
-
// Colors
|
|
81
|
-
"bg-transparent",
|
|
82
|
-
"text-surface-700 dark:text-surface-0/80",
|
|
83
|
-
|
|
84
|
-
// Transitions
|
|
85
|
-
"transition duration-200 ease-in-out",
|
|
86
|
-
|
|
87
|
-
// States
|
|
88
|
-
"hover:bg-surface-100 dark:hover:bg-surface-700",
|
|
89
|
-
"outline-none focus:ring-1 focus:ring-inset",
|
|
90
|
-
"focus:ring-primary-500 dark:focus:ring-primary-400",
|
|
91
|
-
|
|
92
|
-
// Misc
|
|
93
|
-
"overflow-hidden",
|
|
94
|
-
],
|
|
95
|
-
},
|
|
96
|
-
closeicon: {
|
|
97
|
-
class: [
|
|
98
|
-
// Sizing and Spacing
|
|
99
|
-
"w-3 h-3",
|
|
100
|
-
"shrink-0",
|
|
101
|
-
],
|
|
102
|
-
},
|
|
103
|
-
transition: {
|
|
104
|
-
enterFromClass: "opacity-0 translate-y-2/4",
|
|
105
|
-
enterActiveClass: "transition-[transform,opacity] duration-300",
|
|
106
|
-
leaveFromClass: "max-h-[1000px]",
|
|
107
|
-
leaveActiveClass:
|
|
108
|
-
"!transition-[max-height_.45s_cubic-bezier(0,1,0,1),opacity_.3s,margin-bottom_.3s] overflow-hidden",
|
|
109
|
-
leaveToClass: "max-h-0 opacity-0 mb-0",
|
|
110
|
-
},
|
|
111
|
-
};
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
root: {
|
|
3
|
-
class: [
|
|
4
|
-
"relative",
|
|
5
|
-
|
|
6
|
-
// Alignment
|
|
7
|
-
"inline-flex",
|
|
8
|
-
"align-bottom",
|
|
9
|
-
|
|
10
|
-
// Misc
|
|
11
|
-
"cursor-pointer",
|
|
12
|
-
"select-none",
|
|
13
|
-
],
|
|
14
|
-
},
|
|
15
|
-
box: ({ props }) => ({
|
|
16
|
-
class: [
|
|
17
|
-
// Alignments
|
|
18
|
-
"items-center inline-flex flex-1 text-center align-bottom justify-center",
|
|
19
|
-
|
|
20
|
-
// Sizes & Spacing
|
|
21
|
-
"px-2.5 py-1.5",
|
|
22
|
-
"text-sm",
|
|
23
|
-
|
|
24
|
-
// Shapes
|
|
25
|
-
"rounded-md shadow-sm",
|
|
26
|
-
|
|
27
|
-
// Colors
|
|
28
|
-
"text-surface-700 dark:text-white/80",
|
|
29
|
-
"ring-1",
|
|
30
|
-
{ "ring-surface-200 dark:ring-surface-700": !props.invalid },
|
|
31
|
-
{
|
|
32
|
-
"bg-surface-0 dark:bg-surface-900 ": !props.modelValue,
|
|
33
|
-
"bg-surface-100 dark:bg-surface-700": props.modelValue,
|
|
34
|
-
},
|
|
35
|
-
|
|
36
|
-
// Invalid State
|
|
37
|
-
{ "ring-red-500 dark:ring-red-400": props.invalid },
|
|
38
|
-
|
|
39
|
-
// States
|
|
40
|
-
"peer-hover:bg-surface-200 dark:peer-hover:bg-surface-600/80",
|
|
41
|
-
{
|
|
42
|
-
"peer-focus-visible:ring-2 peer-focus-visible:ring-inset peer-focus-visible:ring-primary-500 dark:peer-focus-visible:ring-primary-400":
|
|
43
|
-
!props.disabled,
|
|
44
|
-
},
|
|
45
|
-
|
|
46
|
-
// Transitions
|
|
47
|
-
"transition-all duration-200",
|
|
48
|
-
|
|
49
|
-
// Misc
|
|
50
|
-
{
|
|
51
|
-
"cursor-pointer": !props.disabled,
|
|
52
|
-
"opacity-60 select-none pointer-events-none cursor-default":
|
|
53
|
-
props.disabled,
|
|
54
|
-
},
|
|
55
|
-
],
|
|
56
|
-
}),
|
|
57
|
-
label: {
|
|
58
|
-
class: "font-semibold text-center w-full",
|
|
59
|
-
},
|
|
60
|
-
input: {
|
|
61
|
-
class: [
|
|
62
|
-
"peer",
|
|
63
|
-
|
|
64
|
-
// Size
|
|
65
|
-
"w-full ",
|
|
66
|
-
"h-full",
|
|
67
|
-
|
|
68
|
-
// Position
|
|
69
|
-
"absolute",
|
|
70
|
-
"top-0 left-0",
|
|
71
|
-
"z-10",
|
|
72
|
-
|
|
73
|
-
// Spacing
|
|
74
|
-
"p-0",
|
|
75
|
-
"m-0",
|
|
76
|
-
|
|
77
|
-
// Shape
|
|
78
|
-
"opacity-0",
|
|
79
|
-
"rounded-md",
|
|
80
|
-
"outline-none",
|
|
81
|
-
"border border-surface-200 dark:border-surface-700",
|
|
82
|
-
|
|
83
|
-
// Misc
|
|
84
|
-
"appearance-none",
|
|
85
|
-
"cursor-pointer",
|
|
86
|
-
],
|
|
87
|
-
},
|
|
88
|
-
icon: {
|
|
89
|
-
class: [" mr-2", "text-surface-700 dark:text-white/80"],
|
|
90
|
-
},
|
|
91
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
root: {
|
|
3
|
-
class: [
|
|
4
|
-
// Flex & Alignment
|
|
5
|
-
"flex items-center justify-between flex-wrap",
|
|
6
|
-
"gap-6",
|
|
7
|
-
|
|
8
|
-
// Spacing
|
|
9
|
-
"px-6 py-2",
|
|
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-surface-100 dark:ring-surface-700",
|
|
19
|
-
],
|
|
20
|
-
},
|
|
21
|
-
start: {
|
|
22
|
-
class: "flex items-center",
|
|
23
|
-
},
|
|
24
|
-
center: {
|
|
25
|
-
class: "flex items-center",
|
|
26
|
-
},
|
|
27
|
-
end: {
|
|
28
|
-
class: "flex items-center",
|
|
29
|
-
},
|
|
30
|
-
};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
root: ({ context, props }) => ({
|
|
3
|
-
class: [
|
|
4
|
-
// Position
|
|
5
|
-
"absolute",
|
|
6
|
-
// Spacing
|
|
7
|
-
{
|
|
8
|
-
"px-1.5":
|
|
9
|
-
context?.right ||
|
|
10
|
-
context?.left ||
|
|
11
|
-
(!context?.right &&
|
|
12
|
-
!context?.left &&
|
|
13
|
-
!context?.top &&
|
|
14
|
-
!context?.bottom),
|
|
15
|
-
"py-1.5": context?.top || context?.bottom,
|
|
16
|
-
},
|
|
17
|
-
],
|
|
18
|
-
}),
|
|
19
|
-
arrow: {
|
|
20
|
-
class: "hidden",
|
|
21
|
-
},
|
|
22
|
-
text: {
|
|
23
|
-
class: [
|
|
24
|
-
// Size
|
|
25
|
-
"text-xs leading-none",
|
|
26
|
-
|
|
27
|
-
// Spacing
|
|
28
|
-
"p-2",
|
|
29
|
-
|
|
30
|
-
// Shape
|
|
31
|
-
"rounded-md",
|
|
32
|
-
|
|
33
|
-
// Color
|
|
34
|
-
"text-surface-900 dark:text-surface-0/80",
|
|
35
|
-
"bg-surface-0 dark:bg-surface-900",
|
|
36
|
-
"ring-1 ring-inset ring-surface-200 dark:ring-surface-800 ring-offset-0",
|
|
37
|
-
|
|
38
|
-
// Misc
|
|
39
|
-
"whitespace-pre-line",
|
|
40
|
-
"break-words",
|
|
41
|
-
],
|
|
42
|
-
},
|
|
43
|
-
};
|