@fewangsit/wangsvue-presets 1.0.80
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/index.d.ts +1 -0
- package/index.js +5 -0
- package/package.json +13 -0
- package/wangsvue/accordion/index.d.ts +37 -0
- package/wangsvue/accordion/index.js +70 -0
- package/wangsvue/autocomplete/index.d.ts +188 -0
- package/wangsvue/autocomplete/index.js +247 -0
- package/wangsvue/avatar/index.d.ts +85 -0
- package/wangsvue/avatar/index.js +44 -0
- package/wangsvue/avatargroup/index.d.ts +8 -0
- package/wangsvue/avatargroup/index.js +9 -0
- package/wangsvue/badge/index.d.ts +47 -0
- package/wangsvue/badge/index.js +60 -0
- package/wangsvue/badgedirective/index.d.ts +50 -0
- package/wangsvue/badgedirective/index.js +49 -0
- package/wangsvue/badgegroup/index.d.ts +45 -0
- package/wangsvue/badgegroup/index.js +29 -0
- package/wangsvue/breadcrumb/index.d.ts +25 -0
- package/wangsvue/breadcrumb/index.js +31 -0
- package/wangsvue/button/index.d.ts +46 -0
- package/wangsvue/button/index.js +423 -0
- package/wangsvue/buttonbulkaction/index.d.ts +32 -0
- package/wangsvue/buttonbulkaction/index.js +35 -0
- package/wangsvue/buttondownload/index.d.ts +12 -0
- package/wangsvue/buttondownload/index.js +13 -0
- package/wangsvue/buttonfilter/index.d.ts +12 -0
- package/wangsvue/buttonfilter/index.js +13 -0
- package/wangsvue/buttonradio/index.d.ts +58 -0
- package/wangsvue/buttonradio/index.js +109 -0
- package/wangsvue/buttonsearch/index.d.ts +65 -0
- package/wangsvue/buttonsearch/index.js +62 -0
- package/wangsvue/calendar/index.d.ts +267 -0
- package/wangsvue/calendar/index.js +610 -0
- package/wangsvue/card/index.d.ts +31 -0
- package/wangsvue/card/index.js +32 -0
- package/wangsvue/carousel/index.d.ts +57 -0
- package/wangsvue/carousel/index.js +129 -0
- package/wangsvue/cascadeselect/index.d.ts +82 -0
- package/wangsvue/cascadeselect/index.js +191 -0
- package/wangsvue/changelog/index.d.ts +32 -0
- package/wangsvue/changelog/index.js +31 -0
- package/wangsvue/checkbox/index.d.ts +81 -0
- package/wangsvue/checkbox/index.js +107 -0
- package/wangsvue/chip/index.d.ts +23 -0
- package/wangsvue/chip/index.js +40 -0
- package/wangsvue/chips/index.d.ts +38 -0
- package/wangsvue/chips/index.js +98 -0
- package/wangsvue/colorpicker/index.d.ts +51 -0
- package/wangsvue/colorpicker/index.js +118 -0
- package/wangsvue/colors.config.json +77 -0
- package/wangsvue/confirmpopup/index.d.ts +39 -0
- package/wangsvue/confirmpopup/index.js +104 -0
- package/wangsvue/contextmenu/index.d.ts +63 -0
- package/wangsvue/contextmenu/index.js +113 -0
- package/wangsvue/datatable/index.d.ts +286 -0
- package/wangsvue/datatable/index.js +253 -0
- package/wangsvue/dataview/index.d.ts +15 -0
- package/wangsvue/dataview/index.js +36 -0
- package/wangsvue/dataviewlayoutoptions/index.d.ts +13 -0
- package/wangsvue/dataviewlayoutoptions/index.js +58 -0
- package/wangsvue/dialog/index.d.ts +87 -0
- package/wangsvue/dialog/index.js +220 -0
- package/wangsvue/dialogconfirm/index.d.ts +42 -0
- package/wangsvue/dialogconfirm/index.js +45 -0
- package/wangsvue/dialogform/index.d.ts +71 -0
- package/wangsvue/dialogform/index.js +68 -0
- package/wangsvue/divider/index.d.ts +192 -0
- package/wangsvue/divider/index.js +64 -0
- package/wangsvue/dock/index.d.ts +51 -0
- package/wangsvue/dock/index.js +92 -0
- package/wangsvue/dropdown/index.d.ts +136 -0
- package/wangsvue/dropdown/index.js +207 -0
- package/wangsvue/fieldset/index.d.ts +94 -0
- package/wangsvue/fieldset/index.js +87 -0
- package/wangsvue/fileupload/index.d.ts +29 -0
- package/wangsvue/fileupload/index.js +31 -0
- package/wangsvue/form/index.d.ts +40 -0
- package/wangsvue/form/index.js +44 -0
- package/wangsvue/global.d.ts +8 -0
- package/wangsvue/global.js +14 -0
- package/wangsvue/image/index.d.ts +88 -0
- package/wangsvue/image/index.js +136 -0
- package/wangsvue/index.d.ts +190 -0
- package/wangsvue/index.js +201 -0
- package/wangsvue/index.system.js +76 -0
- package/wangsvue/inlinemessage/index.d.ts +20 -0
- package/wangsvue/inlinemessage/index.js +30 -0
- package/wangsvue/inputbadge/index.d.ts +57 -0
- package/wangsvue/inputbadge/index.js +57 -0
- package/wangsvue/inputcurrency/index.d.ts +27 -0
- package/wangsvue/inputcurrency/index.js +22 -0
- package/wangsvue/inputgroup/index.d.ts +9 -0
- package/wangsvue/inputgroup/index.js +37 -0
- package/wangsvue/inputgroupaddon/index.d.ts +17 -0
- package/wangsvue/inputgroupaddon/index.js +34 -0
- package/wangsvue/inputmask/index.d.ts +11 -0
- package/wangsvue/inputmask/index.js +29 -0
- package/wangsvue/inputnumber/index.d.ts +46 -0
- package/wangsvue/inputnumber/index.js +58 -0
- package/wangsvue/inputotp/index.d.ts +137 -0
- package/wangsvue/inputotp/index.js +63 -0
- package/wangsvue/inputphonenumber/index.d.ts +37 -0
- package/wangsvue/inputphonenumber/index.js +34 -0
- package/wangsvue/inputswitch/index.d.ts +67 -0
- package/wangsvue/inputswitch/index.js +100 -0
- package/wangsvue/inputtext/index.d.ts +18 -0
- package/wangsvue/inputtext/index.js +28 -0
- package/wangsvue/knob/index.d.ts +22 -0
- package/wangsvue/knob/index.js +45 -0
- package/wangsvue/listbox/index.d.ts +79 -0
- package/wangsvue/listbox/index.js +138 -0
- package/wangsvue/megamenu/index.d.ts +105 -0
- package/wangsvue/megamenu/index.js +202 -0
- package/wangsvue/menu/index.d.ts +49 -0
- package/wangsvue/menu/index.js +110 -0
- package/wangsvue/menubar/index.d.ts +85 -0
- package/wangsvue/menubar/index.js +172 -0
- package/wangsvue/message/index.d.ts +41 -0
- package/wangsvue/message/index.js +85 -0
- package/wangsvue/multiselect/index.d.ts +243 -0
- package/wangsvue/multiselect/index.js +328 -0
- package/wangsvue/orderlist/index.d.ts +99 -0
- package/wangsvue/orderlist/index.js +245 -0
- package/wangsvue/organizationchart/index.d.ts +71 -0
- package/wangsvue/organizationchart/index.js +129 -0
- package/wangsvue/overlaypanel/index.d.ts +17 -0
- package/wangsvue/overlaypanel/index.js +34 -0
- package/wangsvue/paginator/index.d.ts +210 -0
- package/wangsvue/paginator/index.js +474 -0
- package/wangsvue/panel/index.d.ts +43 -0
- package/wangsvue/panel/index.js +85 -0
- package/wangsvue/panelmenu/index.d.ts +76 -0
- package/wangsvue/panelmenu/index.js +124 -0
- package/wangsvue/password/index.d.ts +45 -0
- package/wangsvue/password/index.js +96 -0
- package/wangsvue/picklist/index.d.ts +245 -0
- package/wangsvue/picklist/index.js +613 -0
- package/wangsvue/progressbar/index.d.ts +117 -0
- package/wangsvue/progressbar/index.js +102 -0
- package/wangsvue/rating/index.d.ts +47 -0
- package/wangsvue/rating/index.js +88 -0
- package/wangsvue/ripple/index.d.ts +8 -0
- package/wangsvue/ripple/index.js +8 -0
- package/wangsvue/scrollpanel/index.d.ts +19 -0
- package/wangsvue/scrollpanel/index.js +62 -0
- package/wangsvue/scrolltop/index.d.ts +50 -0
- package/wangsvue/scrolltop/index.js +42 -0
- package/wangsvue/selectbutton/index.d.ts +35 -0
- package/wangsvue/selectbutton/index.js +60 -0
- package/wangsvue/sidebar/index.d.ts +66 -0
- package/wangsvue/sidebar/index.js +145 -0
- package/wangsvue/skeleton/index.d.ts +16 -0
- package/wangsvue/skeleton/index.js +22 -0
- package/wangsvue/slider/index.d.ts +55 -0
- package/wangsvue/slider/index.js +126 -0
- package/wangsvue/splitbutton/index.d.ts +6690 -0
- package/wangsvue/splitbutton/index.js +786 -0
- package/wangsvue/steps/index.d.ts +108 -0
- package/wangsvue/steps/index.js +119 -0
- package/wangsvue/style.css +5823 -0
- package/wangsvue/tabmenu/index.d.ts +57 -0
- package/wangsvue/tabmenu/index.js +75 -0
- package/wangsvue/tabview/index.d.ts +67 -0
- package/wangsvue/tabview/index.js +148 -0
- package/wangsvue/tag/index.d.ts +32 -0
- package/wangsvue/tag/index.js +37 -0
- package/wangsvue/terminal/index.d.ts +27 -0
- package/wangsvue/terminal/index.js +55 -0
- package/wangsvue/textarea/index.d.ts +12 -0
- package/wangsvue/textarea/index.js +51 -0
- package/wangsvue/tieredmenu/index.d.ts +56 -0
- package/wangsvue/tieredmenu/index.js +108 -0
- package/wangsvue/timeline/index.d.ts +53 -0
- package/wangsvue/timeline/index.js +83 -0
- package/wangsvue/toast/index.d.ts +61 -0
- package/wangsvue/toast/index.js +95 -0
- package/wangsvue/togglebutton/index.d.ts +42 -0
- package/wangsvue/togglebutton/index.js +77 -0
- package/wangsvue/toolbar/index.d.ts +19 -0
- package/wangsvue/toolbar/index.js +29 -0
- package/wangsvue/tooltip/index.d.ts +22 -0
- package/wangsvue/tooltip/index.js +42 -0
- package/wangsvue/tree/index.d.ts +117 -0
- package/wangsvue/tree/index.js +256 -0
- package/wangsvue/treeselect/index.d.ts +158 -0
- package/wangsvue/treeselect/index.js +338 -0
- package/wangsvue/tristatecheckbox/index.d.ts +49 -0
- package/wangsvue/tristatecheckbox/index.js +106 -0
- package/wangsvue/validatormessage/index.d.ts +8 -0
- package/wangsvue/validatormessage/index.js +9 -0
- package/wangsvue/workcalendar/index.d.ts +27 -0
- package/wangsvue/workcalendar/index.js +36 -0
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = {
|
|
4
|
+
root: {
|
|
5
|
+
class: [
|
|
6
|
+
// Shape
|
|
7
|
+
'rounded-md',
|
|
8
|
+
// Size
|
|
9
|
+
'min-w-[12rem]',
|
|
10
|
+
'p-1.5',
|
|
11
|
+
// Colors
|
|
12
|
+
'bg-surface-0',
|
|
13
|
+
'ring-1 ring-surface-200',
|
|
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: function (_a) {
|
|
29
|
+
var context = _a.context;
|
|
30
|
+
return ({
|
|
31
|
+
class: [
|
|
32
|
+
//Shape
|
|
33
|
+
'rounded-md',
|
|
34
|
+
// Colors
|
|
35
|
+
{
|
|
36
|
+
'text-surface-500/70': !context.focused && !context.active,
|
|
37
|
+
'text-surface-500/70 bg-surface-200': context.focused && !context.active,
|
|
38
|
+
'text-surface-900/80 bg-surface-50': context.focused && context.active,
|
|
39
|
+
'text-surface-900/80 bg-surface-50': !context.focused && context.active,
|
|
40
|
+
},
|
|
41
|
+
// Hover States
|
|
42
|
+
{
|
|
43
|
+
'hover:bg-surface-50': !context.active,
|
|
44
|
+
'hover:bg-surface-100 text-surface-900/80': context.active,
|
|
45
|
+
},
|
|
46
|
+
// Transitions
|
|
47
|
+
'transition-shadow',
|
|
48
|
+
'duration-200',
|
|
49
|
+
],
|
|
50
|
+
});
|
|
51
|
+
},
|
|
52
|
+
action: {
|
|
53
|
+
class: [
|
|
54
|
+
'relative',
|
|
55
|
+
// Font
|
|
56
|
+
'font-semibold',
|
|
57
|
+
// Flexbox
|
|
58
|
+
'flex',
|
|
59
|
+
'items-center',
|
|
60
|
+
// Spacing
|
|
61
|
+
'py-2',
|
|
62
|
+
'px-3',
|
|
63
|
+
// Misc
|
|
64
|
+
'no-underline',
|
|
65
|
+
'overflow-hidden',
|
|
66
|
+
'cursor-pointer',
|
|
67
|
+
'select-none',
|
|
68
|
+
],
|
|
69
|
+
},
|
|
70
|
+
icon: {
|
|
71
|
+
class: [
|
|
72
|
+
// Spacing
|
|
73
|
+
'mr-2',
|
|
74
|
+
'leading-6',
|
|
75
|
+
'text-sm',
|
|
76
|
+
],
|
|
77
|
+
},
|
|
78
|
+
label: {
|
|
79
|
+
class: ['leading-none', 'text-sm'],
|
|
80
|
+
},
|
|
81
|
+
submenuicon: {
|
|
82
|
+
class: [
|
|
83
|
+
// Position
|
|
84
|
+
'ml-auto',
|
|
85
|
+
],
|
|
86
|
+
},
|
|
87
|
+
submenu: {
|
|
88
|
+
class: [
|
|
89
|
+
// Size
|
|
90
|
+
'w-full sm:w-48',
|
|
91
|
+
// Spacing
|
|
92
|
+
'p-1.5',
|
|
93
|
+
'm-0 mx-1.5',
|
|
94
|
+
'list-none',
|
|
95
|
+
// Shape
|
|
96
|
+
'shadow-none sm:shadow-md',
|
|
97
|
+
'border-0',
|
|
98
|
+
// Position
|
|
99
|
+
'static sm:absolute',
|
|
100
|
+
'z-10',
|
|
101
|
+
// Color
|
|
102
|
+
'bg-surface-0',
|
|
103
|
+
],
|
|
104
|
+
},
|
|
105
|
+
separator: {
|
|
106
|
+
class: 'border-t border-surface-200 my-1',
|
|
107
|
+
},
|
|
108
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
function root({ props }: {
|
|
3
|
+
props: any;
|
|
4
|
+
}): {
|
|
5
|
+
class: string[];
|
|
6
|
+
};
|
|
7
|
+
function event({ props, context }: {
|
|
8
|
+
props: any;
|
|
9
|
+
context: any;
|
|
10
|
+
}): {
|
|
11
|
+
class: string[];
|
|
12
|
+
};
|
|
13
|
+
function opposite({ props, context }: {
|
|
14
|
+
props: any;
|
|
15
|
+
context: any;
|
|
16
|
+
}): {
|
|
17
|
+
class: string;
|
|
18
|
+
};
|
|
19
|
+
function separator({ props }: {
|
|
20
|
+
props: any;
|
|
21
|
+
}): {
|
|
22
|
+
class: (string | {
|
|
23
|
+
'flex-col': boolean;
|
|
24
|
+
'flex-row': boolean;
|
|
25
|
+
})[];
|
|
26
|
+
};
|
|
27
|
+
namespace marker {
|
|
28
|
+
let _class: string[];
|
|
29
|
+
export { _class as class };
|
|
30
|
+
}
|
|
31
|
+
function markerArrow(item: any): {
|
|
32
|
+
class: (string | {
|
|
33
|
+
'!visible': boolean;
|
|
34
|
+
'rotate-180'?: undefined;
|
|
35
|
+
} | {
|
|
36
|
+
'rotate-180': any;
|
|
37
|
+
'!visible'?: undefined;
|
|
38
|
+
})[];
|
|
39
|
+
'data-wv-section': string;
|
|
40
|
+
};
|
|
41
|
+
function connector({ props }: {
|
|
42
|
+
props: any;
|
|
43
|
+
}): {
|
|
44
|
+
class: string[];
|
|
45
|
+
};
|
|
46
|
+
function content({ props, context }: {
|
|
47
|
+
props: any;
|
|
48
|
+
context: any;
|
|
49
|
+
}): {
|
|
50
|
+
class: string[];
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
export default _default;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var isEmptyObject = function (obj) {
|
|
4
|
+
if (!obj)
|
|
5
|
+
return true;
|
|
6
|
+
var keys = Object.keys(obj);
|
|
7
|
+
if (!keys.length)
|
|
8
|
+
return true; // Empty at the top level
|
|
9
|
+
return keys.every(function (key) {
|
|
10
|
+
var value = obj[key];
|
|
11
|
+
if (typeof value === 'object') {
|
|
12
|
+
if (Array.isArray(value)) {
|
|
13
|
+
return (!value.length ||
|
|
14
|
+
value.every(function (val) {
|
|
15
|
+
return typeof val === 'object' ? isEmptyObject(val) : val == null;
|
|
16
|
+
}));
|
|
17
|
+
}
|
|
18
|
+
return isEmptyObject(value);
|
|
19
|
+
}
|
|
20
|
+
return value == null;
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
exports.default = {
|
|
24
|
+
root: function (_a) {
|
|
25
|
+
var props = _a.props;
|
|
26
|
+
return ({
|
|
27
|
+
class: ['flex flex-col grow', 'text-xs font-normal text-grayscale-900'],
|
|
28
|
+
});
|
|
29
|
+
},
|
|
30
|
+
event: function (_a) {
|
|
31
|
+
var props = _a.props, context = _a.context;
|
|
32
|
+
return ({
|
|
33
|
+
class: ['grid grid-cols-[max-content,1fr] gap-x-[10px] gap-y-1'],
|
|
34
|
+
});
|
|
35
|
+
},
|
|
36
|
+
opposite: function (_a) {
|
|
37
|
+
var props = _a.props, context = _a.context;
|
|
38
|
+
return ({
|
|
39
|
+
class: 'hidden',
|
|
40
|
+
});
|
|
41
|
+
},
|
|
42
|
+
separator: function (_a) {
|
|
43
|
+
var props = _a.props;
|
|
44
|
+
return ({
|
|
45
|
+
class: [
|
|
46
|
+
'flex items-center flex-initial',
|
|
47
|
+
{
|
|
48
|
+
'flex-col': props.layout === 'vertical',
|
|
49
|
+
'flex-row': props.layout === 'horizontal',
|
|
50
|
+
},
|
|
51
|
+
],
|
|
52
|
+
});
|
|
53
|
+
},
|
|
54
|
+
marker: {
|
|
55
|
+
class: [
|
|
56
|
+
'w-max',
|
|
57
|
+
'rounded-full',
|
|
58
|
+
'bg-transparent',
|
|
59
|
+
'ring-2 ring-inset ring-primary-400 p-0.5',
|
|
60
|
+
'flex items-center justify-center',
|
|
61
|
+
],
|
|
62
|
+
},
|
|
63
|
+
markerArrow: function (item) { return ({
|
|
64
|
+
'class': [
|
|
65
|
+
'w-4 h-4 invisible transition-transform duration-200 ease-in-out text-grayscale-900',
|
|
66
|
+
{ '!visible': item.detail && !isEmptyObject(item.detail) },
|
|
67
|
+
{ 'rotate-180': item.showDetail },
|
|
68
|
+
],
|
|
69
|
+
'data-wv-section': 'markerArrow',
|
|
70
|
+
}); },
|
|
71
|
+
connector: function (_a) {
|
|
72
|
+
var props = _a.props;
|
|
73
|
+
return ({
|
|
74
|
+
class: ['w-[2px] grow bg-grayscale-900'],
|
|
75
|
+
});
|
|
76
|
+
},
|
|
77
|
+
content: function (_a) {
|
|
78
|
+
var props = _a.props, context = _a.context;
|
|
79
|
+
return ({
|
|
80
|
+
class: ['grid grid-rows-[max-content,auto] pb-2.5 gap-1'],
|
|
81
|
+
});
|
|
82
|
+
},
|
|
83
|
+
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
function root({ props }: {
|
|
3
|
+
props: any;
|
|
4
|
+
}): {
|
|
5
|
+
class: (string | {
|
|
6
|
+
'-translate-x-2/4': boolean;
|
|
7
|
+
})[];
|
|
8
|
+
style: string;
|
|
9
|
+
};
|
|
10
|
+
function container({ props }: {
|
|
11
|
+
props: any;
|
|
12
|
+
}): {
|
|
13
|
+
class: (string | {
|
|
14
|
+
'border-success-600 text-white bg-success-500': boolean;
|
|
15
|
+
'border-danger text-white bg-danger-500': boolean;
|
|
16
|
+
'border-primary-500 text-primary-500 bg-primary-50': boolean;
|
|
17
|
+
})[];
|
|
18
|
+
'data-wv-severity': any;
|
|
19
|
+
};
|
|
20
|
+
namespace content {
|
|
21
|
+
let _class: string;
|
|
22
|
+
export { _class as class };
|
|
23
|
+
}
|
|
24
|
+
namespace icon {
|
|
25
|
+
let _class_1: string;
|
|
26
|
+
export { _class_1 as class };
|
|
27
|
+
}
|
|
28
|
+
namespace text {
|
|
29
|
+
let _class_2: string[];
|
|
30
|
+
export { _class_2 as class };
|
|
31
|
+
}
|
|
32
|
+
namespace summary {
|
|
33
|
+
let _class_3: string;
|
|
34
|
+
export { _class_3 as class };
|
|
35
|
+
}
|
|
36
|
+
namespace detail {
|
|
37
|
+
let _class_4: string;
|
|
38
|
+
export { _class_4 as class };
|
|
39
|
+
}
|
|
40
|
+
function closebutton({ props }: {
|
|
41
|
+
props: any;
|
|
42
|
+
}): {
|
|
43
|
+
class: (string | {
|
|
44
|
+
'text-white': boolean;
|
|
45
|
+
'text-danger': boolean;
|
|
46
|
+
'text-primary-500': boolean;
|
|
47
|
+
})[];
|
|
48
|
+
};
|
|
49
|
+
namespace closeicon {
|
|
50
|
+
let _class_5: string[];
|
|
51
|
+
export { _class_5 as class };
|
|
52
|
+
}
|
|
53
|
+
namespace transition {
|
|
54
|
+
let enterFromClass: string;
|
|
55
|
+
let enterActiveClass: string;
|
|
56
|
+
let leaveFromClass: string;
|
|
57
|
+
let leaveActiveClass: string;
|
|
58
|
+
let leaveToClass: string;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
export default _default;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = {
|
|
4
|
+
root: function (_a) {
|
|
5
|
+
var props = _a.props;
|
|
6
|
+
return ({
|
|
7
|
+
class: [
|
|
8
|
+
//Size and Shape
|
|
9
|
+
'w-full max-w-[496px]',
|
|
10
|
+
// Positioning
|
|
11
|
+
{
|
|
12
|
+
'-translate-x-2/4': props.position == 'top-center' || props.position == 'bottom-center',
|
|
13
|
+
},
|
|
14
|
+
],
|
|
15
|
+
style: "z-index: ".concat(props.baseZIndex),
|
|
16
|
+
});
|
|
17
|
+
},
|
|
18
|
+
container: function (_a) {
|
|
19
|
+
var props = _a.props;
|
|
20
|
+
return ({
|
|
21
|
+
'class': [
|
|
22
|
+
'border-0 mt-6',
|
|
23
|
+
'rounded-[7px] w-full',
|
|
24
|
+
'shadow-lg',
|
|
25
|
+
// Colors
|
|
26
|
+
{
|
|
27
|
+
'border-success-600 text-white bg-success-500': props.message.severity === 'success',
|
|
28
|
+
'border-danger text-white bg-danger-500': props.message.severity === 'error',
|
|
29
|
+
'border-primary-500 text-primary-500 bg-primary-50': props.message.severity === 'info',
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
'data-wv-severity': props.message.severity,
|
|
33
|
+
});
|
|
34
|
+
},
|
|
35
|
+
content: {
|
|
36
|
+
class: 'flex items-center py-3 px-3 text-inherit gap-2',
|
|
37
|
+
},
|
|
38
|
+
icon: {
|
|
39
|
+
class: 'hidden',
|
|
40
|
+
},
|
|
41
|
+
text: {
|
|
42
|
+
class: [
|
|
43
|
+
// Font and Text
|
|
44
|
+
'text-xs leading-4 font-normal tracking-[0.02em] text-inherit',
|
|
45
|
+
'flex-1',
|
|
46
|
+
],
|
|
47
|
+
},
|
|
48
|
+
summary: {
|
|
49
|
+
class: 'font-medium block',
|
|
50
|
+
},
|
|
51
|
+
detail: {
|
|
52
|
+
class: 'text-inherit',
|
|
53
|
+
},
|
|
54
|
+
closebutton: function (_a) {
|
|
55
|
+
var props = _a.props;
|
|
56
|
+
return ({
|
|
57
|
+
class: [
|
|
58
|
+
// Flexbox
|
|
59
|
+
'flex items-center justify-center',
|
|
60
|
+
// Size
|
|
61
|
+
'w-6 h-6',
|
|
62
|
+
// Spacing and Misc
|
|
63
|
+
'ml-auto relative',
|
|
64
|
+
// Shape
|
|
65
|
+
'rounded-full',
|
|
66
|
+
// Colors
|
|
67
|
+
'bg-transparent',
|
|
68
|
+
{
|
|
69
|
+
'text-white': props.message.severity === 'success',
|
|
70
|
+
'text-danger': props.message.severity === 'error',
|
|
71
|
+
'text-primary-500': props.message.severity === 'info',
|
|
72
|
+
},
|
|
73
|
+
// Transitions
|
|
74
|
+
'transition duration-200 ease-in-out',
|
|
75
|
+
// States
|
|
76
|
+
// Misc
|
|
77
|
+
'overflow-hidden',
|
|
78
|
+
],
|
|
79
|
+
});
|
|
80
|
+
},
|
|
81
|
+
closeicon: {
|
|
82
|
+
class: [
|
|
83
|
+
// Sizing and Spacing
|
|
84
|
+
'w-3 h-3',
|
|
85
|
+
'shrink-0',
|
|
86
|
+
],
|
|
87
|
+
},
|
|
88
|
+
transition: {
|
|
89
|
+
enterFromClass: 'opacity-0 translate-y-2/4',
|
|
90
|
+
enterActiveClass: 'transition-[transform,opacity] duration-300',
|
|
91
|
+
leaveFromClass: 'max-h-[1000px]',
|
|
92
|
+
leaveActiveClass: '!transition-[max-height_.45s_cubic-bezier(0,1,0,1),opacity_.3s,margin-bottom_.3s] overflow-hidden',
|
|
93
|
+
leaveToClass: 'max-h-0 opacity-0 mb-0',
|
|
94
|
+
},
|
|
95
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
namespace root {
|
|
3
|
+
let _class: string[];
|
|
4
|
+
export { _class as class };
|
|
5
|
+
}
|
|
6
|
+
function box({ props }: {
|
|
7
|
+
props: any;
|
|
8
|
+
}): {
|
|
9
|
+
class: (string | {
|
|
10
|
+
'bg-surface-0 ': boolean;
|
|
11
|
+
'bg-surface-100': any;
|
|
12
|
+
'peer-focus-visible:ring-2 peer-focus-visible:ring-inset peer-focus-visible:ring-primary-500'?: undefined;
|
|
13
|
+
'cursor-pointer'?: undefined;
|
|
14
|
+
'opacity-60 select-none pointer-events-none cursor-default'?: undefined;
|
|
15
|
+
} | {
|
|
16
|
+
'peer-focus-visible:ring-2 peer-focus-visible:ring-inset peer-focus-visible:ring-primary-500': boolean;
|
|
17
|
+
'bg-surface-0 '?: undefined;
|
|
18
|
+
'bg-surface-100'?: undefined;
|
|
19
|
+
'cursor-pointer'?: undefined;
|
|
20
|
+
'opacity-60 select-none pointer-events-none cursor-default'?: undefined;
|
|
21
|
+
} | {
|
|
22
|
+
'cursor-pointer': boolean;
|
|
23
|
+
'opacity-60 select-none pointer-events-none cursor-default': any;
|
|
24
|
+
'bg-surface-0 '?: undefined;
|
|
25
|
+
'bg-surface-100'?: undefined;
|
|
26
|
+
'peer-focus-visible:ring-2 peer-focus-visible:ring-inset peer-focus-visible:ring-primary-500'?: undefined;
|
|
27
|
+
})[];
|
|
28
|
+
};
|
|
29
|
+
namespace label {
|
|
30
|
+
let _class_1: string;
|
|
31
|
+
export { _class_1 as class };
|
|
32
|
+
}
|
|
33
|
+
namespace input {
|
|
34
|
+
let _class_2: string[];
|
|
35
|
+
export { _class_2 as class };
|
|
36
|
+
}
|
|
37
|
+
namespace icon {
|
|
38
|
+
let _class_3: string[];
|
|
39
|
+
export { _class_3 as class };
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
export default _default;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = {
|
|
4
|
+
root: {
|
|
5
|
+
class: [
|
|
6
|
+
'relative',
|
|
7
|
+
// Alignment
|
|
8
|
+
'inline-flex',
|
|
9
|
+
'align-bottom',
|
|
10
|
+
// Misc
|
|
11
|
+
'cursor-pointer',
|
|
12
|
+
'select-none',
|
|
13
|
+
],
|
|
14
|
+
},
|
|
15
|
+
box: function (_a) {
|
|
16
|
+
var props = _a.props;
|
|
17
|
+
return ({
|
|
18
|
+
class: [
|
|
19
|
+
// Alignments
|
|
20
|
+
'items-center inline-flex flex-1 text-center align-bottom justify-center',
|
|
21
|
+
// Sizes & Spacing
|
|
22
|
+
'px-2.5 py-1.5',
|
|
23
|
+
'text-sm',
|
|
24
|
+
// Shapes
|
|
25
|
+
'rounded-md shadow-sm',
|
|
26
|
+
// Colors
|
|
27
|
+
'text-surface-700/80',
|
|
28
|
+
'ring-1 ring-surface-200',
|
|
29
|
+
{
|
|
30
|
+
'bg-surface-0 ': !props.modelValue,
|
|
31
|
+
'bg-surface-100': props.modelValue,
|
|
32
|
+
},
|
|
33
|
+
// States
|
|
34
|
+
'peer-hover:bg-surface-200',
|
|
35
|
+
{
|
|
36
|
+
'peer-focus-visible:ring-2 peer-focus-visible:ring-inset peer-focus-visible:ring-primary-500': !props.disabled,
|
|
37
|
+
},
|
|
38
|
+
// Transitions
|
|
39
|
+
'transition-all duration-200',
|
|
40
|
+
// Misc
|
|
41
|
+
{
|
|
42
|
+
'cursor-pointer': !props.disabled,
|
|
43
|
+
'opacity-60 select-none pointer-events-none cursor-default': props.disabled,
|
|
44
|
+
},
|
|
45
|
+
],
|
|
46
|
+
});
|
|
47
|
+
},
|
|
48
|
+
label: {
|
|
49
|
+
class: 'font-semibold text-center w-full',
|
|
50
|
+
},
|
|
51
|
+
input: {
|
|
52
|
+
class: [
|
|
53
|
+
'peer',
|
|
54
|
+
// Size
|
|
55
|
+
'w-full ',
|
|
56
|
+
'h-full',
|
|
57
|
+
// Position
|
|
58
|
+
'absolute',
|
|
59
|
+
'top-0 left-0',
|
|
60
|
+
'z-10',
|
|
61
|
+
// Spacing
|
|
62
|
+
'p-0',
|
|
63
|
+
'm-0',
|
|
64
|
+
// Shape
|
|
65
|
+
'opacity-0',
|
|
66
|
+
'rounded-md',
|
|
67
|
+
'outline-none',
|
|
68
|
+
'border border-surface-200',
|
|
69
|
+
// Misc
|
|
70
|
+
'appareance-none',
|
|
71
|
+
'cursor-pointer',
|
|
72
|
+
],
|
|
73
|
+
},
|
|
74
|
+
icon: {
|
|
75
|
+
class: [' mr-2', 'text-surface-700/80'],
|
|
76
|
+
},
|
|
77
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
namespace root {
|
|
3
|
+
let _class: string[];
|
|
4
|
+
export { _class as class };
|
|
5
|
+
}
|
|
6
|
+
namespace start {
|
|
7
|
+
let _class_1: string;
|
|
8
|
+
export { _class_1 as class };
|
|
9
|
+
}
|
|
10
|
+
namespace center {
|
|
11
|
+
let _class_2: string;
|
|
12
|
+
export { _class_2 as class };
|
|
13
|
+
}
|
|
14
|
+
namespace end {
|
|
15
|
+
let _class_3: string;
|
|
16
|
+
export { _class_3 as class };
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = {
|
|
4
|
+
root: {
|
|
5
|
+
class: [
|
|
6
|
+
// Flex & Alignment
|
|
7
|
+
'flex items-center justify-between flex-wrap',
|
|
8
|
+
'gap-6',
|
|
9
|
+
// Spacing
|
|
10
|
+
'px-6 py-2',
|
|
11
|
+
'min-h-[4rem]',
|
|
12
|
+
// Shape
|
|
13
|
+
'rounded-md',
|
|
14
|
+
'shadow-md',
|
|
15
|
+
// Color
|
|
16
|
+
'bg-surface-0',
|
|
17
|
+
'ring-1 ring-surface-100',
|
|
18
|
+
],
|
|
19
|
+
},
|
|
20
|
+
start: {
|
|
21
|
+
class: 'flex items-center',
|
|
22
|
+
},
|
|
23
|
+
center: {
|
|
24
|
+
class: 'flex items-center',
|
|
25
|
+
},
|
|
26
|
+
end: {
|
|
27
|
+
class: 'flex items-center',
|
|
28
|
+
},
|
|
29
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
function root({ context, props }: {
|
|
3
|
+
context: any;
|
|
4
|
+
props: any;
|
|
5
|
+
}): {
|
|
6
|
+
class: (string | {
|
|
7
|
+
'pb-1': any;
|
|
8
|
+
'pt-1': any;
|
|
9
|
+
'pl-1': any;
|
|
10
|
+
'pr-1': any;
|
|
11
|
+
})[];
|
|
12
|
+
};
|
|
13
|
+
namespace arrow {
|
|
14
|
+
let _class: string;
|
|
15
|
+
export { _class as class };
|
|
16
|
+
}
|
|
17
|
+
namespace text {
|
|
18
|
+
let _class_1: string[];
|
|
19
|
+
export { _class_1 as class };
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
export default _default;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = {
|
|
4
|
+
root: function (_a) {
|
|
5
|
+
var context = _a.context, props = _a.props;
|
|
6
|
+
return ({
|
|
7
|
+
class: [
|
|
8
|
+
// Position
|
|
9
|
+
'absolute',
|
|
10
|
+
{
|
|
11
|
+
// Add space 4px at the bottom
|
|
12
|
+
'pb-1': context === null || context === void 0 ? void 0 : context.top,
|
|
13
|
+
'pt-1': context === null || context === void 0 ? void 0 : context.bottom,
|
|
14
|
+
'pl-1': context === null || context === void 0 ? void 0 : context.right,
|
|
15
|
+
'pr-1': context === null || context === void 0 ? void 0 : context.left,
|
|
16
|
+
},
|
|
17
|
+
'!transition',
|
|
18
|
+
],
|
|
19
|
+
});
|
|
20
|
+
},
|
|
21
|
+
arrow: {
|
|
22
|
+
class: 'hidden',
|
|
23
|
+
},
|
|
24
|
+
text: {
|
|
25
|
+
class: [
|
|
26
|
+
// Shape
|
|
27
|
+
'rounded-[10px]',
|
|
28
|
+
// Background
|
|
29
|
+
'bg-white',
|
|
30
|
+
// Spacing
|
|
31
|
+
'px-3 py-1',
|
|
32
|
+
// Typography
|
|
33
|
+
'text-xs font-normal leading-4 text-left',
|
|
34
|
+
// Color
|
|
35
|
+
'text-grayscale-900',
|
|
36
|
+
// Misc
|
|
37
|
+
'shadow-[0px_4px_4px_0px_#00000040]',
|
|
38
|
+
'whitespace-pre-line',
|
|
39
|
+
'break-words',
|
|
40
|
+
],
|
|
41
|
+
},
|
|
42
|
+
};
|