@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,57 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
namespace root {
|
|
3
|
+
let _class: string;
|
|
4
|
+
export { _class as class };
|
|
5
|
+
export let style: string;
|
|
6
|
+
}
|
|
7
|
+
namespace menu {
|
|
8
|
+
let _class_1: string[];
|
|
9
|
+
export { _class_1 as class };
|
|
10
|
+
}
|
|
11
|
+
namespace menuitem {
|
|
12
|
+
let _class_2: string;
|
|
13
|
+
export { _class_2 as class };
|
|
14
|
+
}
|
|
15
|
+
function action({ context, state }: {
|
|
16
|
+
context: any;
|
|
17
|
+
state: any;
|
|
18
|
+
}): {
|
|
19
|
+
class: (string | {
|
|
20
|
+
'bg-transparent ': boolean;
|
|
21
|
+
'text-grayscale-900': boolean;
|
|
22
|
+
'border-primary-400': boolean;
|
|
23
|
+
'border-primary-100': boolean;
|
|
24
|
+
'text-primary-500': boolean;
|
|
25
|
+
'focus-visible:border-primary-200 focus-visible:text-primary-400'?: undefined;
|
|
26
|
+
'pointer-events-none'?: undefined;
|
|
27
|
+
'opacity-60'?: undefined;
|
|
28
|
+
} | {
|
|
29
|
+
'focus-visible:border-primary-200 focus-visible:text-primary-400': boolean;
|
|
30
|
+
'bg-transparent '?: undefined;
|
|
31
|
+
'text-grayscale-900'?: undefined;
|
|
32
|
+
'border-primary-400'?: undefined;
|
|
33
|
+
'border-primary-100'?: undefined;
|
|
34
|
+
'text-primary-500'?: undefined;
|
|
35
|
+
'pointer-events-none'?: undefined;
|
|
36
|
+
'opacity-60'?: undefined;
|
|
37
|
+
} | {
|
|
38
|
+
'pointer-events-none': any;
|
|
39
|
+
'opacity-60': any;
|
|
40
|
+
'bg-transparent '?: undefined;
|
|
41
|
+
'text-grayscale-900'?: undefined;
|
|
42
|
+
'border-primary-400'?: undefined;
|
|
43
|
+
'border-primary-100'?: undefined;
|
|
44
|
+
'text-primary-500'?: undefined;
|
|
45
|
+
'focus-visible:border-primary-200 focus-visible:text-primary-400'?: undefined;
|
|
46
|
+
})[];
|
|
47
|
+
};
|
|
48
|
+
namespace icon {
|
|
49
|
+
let _class_3: string;
|
|
50
|
+
export { _class_3 as class };
|
|
51
|
+
}
|
|
52
|
+
namespace inkbar {
|
|
53
|
+
let _class_4: string;
|
|
54
|
+
export { _class_4 as class };
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
export default _default;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = {
|
|
4
|
+
root: {
|
|
5
|
+
class: 'overflow-x-auto',
|
|
6
|
+
style: 'scrollbar-width: none',
|
|
7
|
+
},
|
|
8
|
+
menu: {
|
|
9
|
+
class: [
|
|
10
|
+
// Flexbox
|
|
11
|
+
'flex flex-1',
|
|
12
|
+
// Size
|
|
13
|
+
// Spacing
|
|
14
|
+
'list-none',
|
|
15
|
+
'p-0 m-0',
|
|
16
|
+
// Colors
|
|
17
|
+
'text-general-100',
|
|
18
|
+
],
|
|
19
|
+
},
|
|
20
|
+
menuitem: {
|
|
21
|
+
class: 'mr-0',
|
|
22
|
+
},
|
|
23
|
+
action: function (_a) {
|
|
24
|
+
var _b, _c;
|
|
25
|
+
var context = _a.context, state = _a.state;
|
|
26
|
+
return ({
|
|
27
|
+
class: [
|
|
28
|
+
'relative',
|
|
29
|
+
// Font
|
|
30
|
+
'font-normal',
|
|
31
|
+
'text-xs',
|
|
32
|
+
// Flexbox and Alignment
|
|
33
|
+
'flex items-center',
|
|
34
|
+
// Spacing
|
|
35
|
+
'p-2 pb-1.5 pt-0.5 !h-6',
|
|
36
|
+
// Shape
|
|
37
|
+
'border-b-2',
|
|
38
|
+
// Colors and Conditions
|
|
39
|
+
{
|
|
40
|
+
'bg-transparent ': state.d_activeIndex !== context.index,
|
|
41
|
+
'text-grayscale-900': state.d_activeIndex !== context.index,
|
|
42
|
+
'border-primary-400': state.d_activeIndex === context.index,
|
|
43
|
+
'border-primary-100': state.d_activeIndex !== context.index,
|
|
44
|
+
'text-primary-500': state.d_activeIndex === context.index,
|
|
45
|
+
},
|
|
46
|
+
// States
|
|
47
|
+
'hover:bg-primary-50',
|
|
48
|
+
'focus-visible:outline-none focus-visible:outline-offset-0',
|
|
49
|
+
'focus-visible:bg-primary-50',
|
|
50
|
+
{
|
|
51
|
+
'focus-visible:border-primary-200 focus-visible:text-primary-400': state.d_activeIndex !== context.index,
|
|
52
|
+
},
|
|
53
|
+
// Disabled States
|
|
54
|
+
{
|
|
55
|
+
'pointer-events-none': (_b = context.item) === null || _b === void 0 ? void 0 : _b.disabled,
|
|
56
|
+
'opacity-60': (_c = context.item) === null || _c === void 0 ? void 0 : _c.disabled,
|
|
57
|
+
},
|
|
58
|
+
// Transitions
|
|
59
|
+
'transition-all duration-200',
|
|
60
|
+
// Misc
|
|
61
|
+
'cursor-pointer select-none text-decoration-none',
|
|
62
|
+
'overflow-hidden',
|
|
63
|
+
'user-select-none',
|
|
64
|
+
'!no-underline',
|
|
65
|
+
'whitespace-nowrap',
|
|
66
|
+
],
|
|
67
|
+
});
|
|
68
|
+
},
|
|
69
|
+
icon: {
|
|
70
|
+
class: 'mr-2',
|
|
71
|
+
},
|
|
72
|
+
inkbar: {
|
|
73
|
+
class: 'grow border-b-2 border-primary-100',
|
|
74
|
+
},
|
|
75
|
+
};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
function navContainer({ props }: {
|
|
3
|
+
props: any;
|
|
4
|
+
}): {
|
|
5
|
+
class: (string | {
|
|
6
|
+
'overflow-hidden': any;
|
|
7
|
+
})[];
|
|
8
|
+
};
|
|
9
|
+
namespace navContent {
|
|
10
|
+
let _class: string[];
|
|
11
|
+
export { _class as class };
|
|
12
|
+
}
|
|
13
|
+
namespace previousButton {
|
|
14
|
+
let _class_1: string[];
|
|
15
|
+
export { _class_1 as class };
|
|
16
|
+
}
|
|
17
|
+
namespace nextButton {
|
|
18
|
+
let _class_2: string[];
|
|
19
|
+
export { _class_2 as class };
|
|
20
|
+
}
|
|
21
|
+
namespace nav {
|
|
22
|
+
let _class_3: string[];
|
|
23
|
+
export { _class_3 as class };
|
|
24
|
+
}
|
|
25
|
+
namespace tabpanel {
|
|
26
|
+
function header({ props }: {
|
|
27
|
+
props: any;
|
|
28
|
+
}): {
|
|
29
|
+
class: (string | {
|
|
30
|
+
'opacity-60 cursor-default user-select-none select-none pointer-events-none': any;
|
|
31
|
+
})[];
|
|
32
|
+
};
|
|
33
|
+
function headerAction({ parent, context }: {
|
|
34
|
+
parent: any;
|
|
35
|
+
context: any;
|
|
36
|
+
}): {
|
|
37
|
+
class: (string | {
|
|
38
|
+
'border-surface-200': boolean;
|
|
39
|
+
'bg-surface-0': boolean;
|
|
40
|
+
'text-surface-700/80': boolean;
|
|
41
|
+
'border-primary-500': boolean;
|
|
42
|
+
'text-primary-500': boolean;
|
|
43
|
+
'hover:bg-surface-0'?: undefined;
|
|
44
|
+
'hover:border-surface-400'?: undefined;
|
|
45
|
+
'hover:text-surface-900'?: undefined;
|
|
46
|
+
} | {
|
|
47
|
+
'hover:bg-surface-0': boolean;
|
|
48
|
+
'hover:border-surface-400': boolean;
|
|
49
|
+
'hover:text-surface-900': boolean;
|
|
50
|
+
'border-surface-200'?: undefined;
|
|
51
|
+
'bg-surface-0'?: undefined;
|
|
52
|
+
'text-surface-700/80'?: undefined;
|
|
53
|
+
'border-primary-500'?: undefined;
|
|
54
|
+
'text-primary-500'?: undefined;
|
|
55
|
+
})[];
|
|
56
|
+
};
|
|
57
|
+
namespace headerTitle {
|
|
58
|
+
let _class_4: string[];
|
|
59
|
+
export { _class_4 as class };
|
|
60
|
+
}
|
|
61
|
+
namespace content {
|
|
62
|
+
let _class_5: string[];
|
|
63
|
+
export { _class_5 as class };
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
export default _default;
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = {
|
|
4
|
+
navContainer: function (_a) {
|
|
5
|
+
var props = _a.props;
|
|
6
|
+
return ({
|
|
7
|
+
class: [
|
|
8
|
+
// Position
|
|
9
|
+
'relative',
|
|
10
|
+
// Misc
|
|
11
|
+
{ 'overflow-hidden': props.scrollable },
|
|
12
|
+
],
|
|
13
|
+
});
|
|
14
|
+
},
|
|
15
|
+
navContent: {
|
|
16
|
+
class: [
|
|
17
|
+
// Overflow and Scrolling
|
|
18
|
+
'overflow-y-hidden overscroll-contain',
|
|
19
|
+
'overscroll-auto',
|
|
20
|
+
'scroll-smooth',
|
|
21
|
+
'[&::-webkit-scrollbar]:hidden',
|
|
22
|
+
],
|
|
23
|
+
},
|
|
24
|
+
previousButton: {
|
|
25
|
+
class: [
|
|
26
|
+
// Flexbox and Alignment
|
|
27
|
+
'flex items-center justify-center',
|
|
28
|
+
// Position
|
|
29
|
+
'!absolute',
|
|
30
|
+
'top-0 left-0',
|
|
31
|
+
'z-20',
|
|
32
|
+
// Size and Shape
|
|
33
|
+
'h-full w-12',
|
|
34
|
+
'rounded-none',
|
|
35
|
+
// Colors
|
|
36
|
+
'bg-surface-0',
|
|
37
|
+
'text-primary-500',
|
|
38
|
+
'shadow-md',
|
|
39
|
+
],
|
|
40
|
+
},
|
|
41
|
+
nextButton: {
|
|
42
|
+
class: [
|
|
43
|
+
// Flexbox and Alignment
|
|
44
|
+
'flex items-center justify-center',
|
|
45
|
+
// Position
|
|
46
|
+
'!absolute',
|
|
47
|
+
'top-0 right-0',
|
|
48
|
+
'z-20',
|
|
49
|
+
// Size and Shape
|
|
50
|
+
'h-full w-12',
|
|
51
|
+
'rounded-none',
|
|
52
|
+
// Colors
|
|
53
|
+
'bg-surface-0',
|
|
54
|
+
'text-primary-500',
|
|
55
|
+
'shadow-md',
|
|
56
|
+
],
|
|
57
|
+
},
|
|
58
|
+
nav: {
|
|
59
|
+
class: [
|
|
60
|
+
// Flexbox
|
|
61
|
+
'flex flex-1',
|
|
62
|
+
// Spacing
|
|
63
|
+
'list-none',
|
|
64
|
+
'p-0 m-0',
|
|
65
|
+
// Colors
|
|
66
|
+
'bg-surface-0',
|
|
67
|
+
'border-b border-surface-200',
|
|
68
|
+
'text-surface-900/80',
|
|
69
|
+
],
|
|
70
|
+
},
|
|
71
|
+
tabpanel: {
|
|
72
|
+
header: function (_a) {
|
|
73
|
+
var props = _a.props;
|
|
74
|
+
return ({
|
|
75
|
+
class: [
|
|
76
|
+
// Spacing
|
|
77
|
+
'mr-0',
|
|
78
|
+
// Misc
|
|
79
|
+
{
|
|
80
|
+
'opacity-60 cursor-default user-select-none select-none pointer-events-none': props === null || props === void 0 ? void 0 : props.disabled,
|
|
81
|
+
},
|
|
82
|
+
],
|
|
83
|
+
});
|
|
84
|
+
},
|
|
85
|
+
headerAction: function (_a) {
|
|
86
|
+
var parent = _a.parent, context = _a.context;
|
|
87
|
+
return ({
|
|
88
|
+
class: [
|
|
89
|
+
'relative',
|
|
90
|
+
// Font
|
|
91
|
+
'font-medium',
|
|
92
|
+
'text-md',
|
|
93
|
+
// Flexbox and Alignment
|
|
94
|
+
'flex items-center',
|
|
95
|
+
// Spacing
|
|
96
|
+
'py-4 px-3',
|
|
97
|
+
'-mb-[1px]',
|
|
98
|
+
// Shape
|
|
99
|
+
'border-b-2',
|
|
100
|
+
'rounded-t-md',
|
|
101
|
+
// Colors and Conditions
|
|
102
|
+
{
|
|
103
|
+
'border-surface-200': parent.state.d_activeIndex !== context.index,
|
|
104
|
+
'bg-surface-0': parent.state.d_activeIndex !== context.index,
|
|
105
|
+
'text-surface-700/80': parent.state.d_activeIndex !== context.index,
|
|
106
|
+
'bg-surface-0': parent.state.d_activeIndex === context.index,
|
|
107
|
+
'border-primary-500': parent.state.d_activeIndex === context.index,
|
|
108
|
+
'text-primary-500': parent.state.d_activeIndex === context.index,
|
|
109
|
+
},
|
|
110
|
+
// States
|
|
111
|
+
'focus-visible:outline-none focus-visible:outline-offset-0 focus-visible:ring-2 focus-visible:ring-inset',
|
|
112
|
+
'focus-visible:ring-primary-500',
|
|
113
|
+
{
|
|
114
|
+
'hover:bg-surface-0': parent.state.d_activeIndex !== context.index,
|
|
115
|
+
'hover:border-surface-400': parent.state.d_activeIndex !== context.index,
|
|
116
|
+
'hover:text-surface-900': parent.state.d_activeIndex !== context.index,
|
|
117
|
+
},
|
|
118
|
+
// Transitions
|
|
119
|
+
'transition-all duration-200',
|
|
120
|
+
// Misc
|
|
121
|
+
'cursor-pointer select-none text-decoration-none',
|
|
122
|
+
'overflow-hidden',
|
|
123
|
+
'user-select-none',
|
|
124
|
+
'whitespace-nowrap',
|
|
125
|
+
],
|
|
126
|
+
});
|
|
127
|
+
},
|
|
128
|
+
headerTitle: {
|
|
129
|
+
class: [
|
|
130
|
+
// Text
|
|
131
|
+
'leading-none',
|
|
132
|
+
'whitespace-nowrap',
|
|
133
|
+
],
|
|
134
|
+
},
|
|
135
|
+
content: {
|
|
136
|
+
class: [
|
|
137
|
+
// Spacing
|
|
138
|
+
'p-6',
|
|
139
|
+
// Shape
|
|
140
|
+
'rounded-b-md',
|
|
141
|
+
// Colors
|
|
142
|
+
'bg-surface-0',
|
|
143
|
+
'text-surface-700/80',
|
|
144
|
+
'border-0',
|
|
145
|
+
],
|
|
146
|
+
},
|
|
147
|
+
},
|
|
148
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
function root({ props }: {
|
|
3
|
+
props: any;
|
|
4
|
+
}): {
|
|
5
|
+
class: (string | {
|
|
6
|
+
'rounded-md': boolean;
|
|
7
|
+
'rounded-full': any;
|
|
8
|
+
'bg-primary-500'?: undefined;
|
|
9
|
+
'bg-green-500'?: undefined;
|
|
10
|
+
'bg-blue-500'?: undefined;
|
|
11
|
+
'bg-orange-500'?: undefined;
|
|
12
|
+
'bg-red-500'?: undefined;
|
|
13
|
+
} | {
|
|
14
|
+
'bg-primary-500': boolean;
|
|
15
|
+
'bg-green-500': boolean;
|
|
16
|
+
'bg-blue-500': boolean;
|
|
17
|
+
'bg-orange-500': boolean;
|
|
18
|
+
'bg-red-500': boolean;
|
|
19
|
+
'rounded-md'?: undefined;
|
|
20
|
+
'rounded-full'?: undefined;
|
|
21
|
+
})[];
|
|
22
|
+
};
|
|
23
|
+
namespace value {
|
|
24
|
+
let _class: string;
|
|
25
|
+
export { _class as class };
|
|
26
|
+
}
|
|
27
|
+
namespace icon {
|
|
28
|
+
let _class_1: string;
|
|
29
|
+
export { _class_1 as class };
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
export default _default;
|
|
@@ -0,0 +1,37 @@
|
|
|
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
|
+
//Font
|
|
9
|
+
'text-xs font-bold',
|
|
10
|
+
//Alignments
|
|
11
|
+
'inline-flex items-center justify-center',
|
|
12
|
+
//Spacing
|
|
13
|
+
'px-2 py-1',
|
|
14
|
+
//Shape
|
|
15
|
+
{
|
|
16
|
+
'rounded-md': !props.rounded,
|
|
17
|
+
'rounded-full': props.rounded,
|
|
18
|
+
},
|
|
19
|
+
//Colors
|
|
20
|
+
'text-white',
|
|
21
|
+
{
|
|
22
|
+
'bg-primary-500': props.severity == null || props.severity == 'primary',
|
|
23
|
+
'bg-green-500': props.severity == 'success',
|
|
24
|
+
'bg-blue-500': props.severity == 'info',
|
|
25
|
+
'bg-orange-500': props.severity == 'warning',
|
|
26
|
+
'bg-red-500': props.severity == 'danger',
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
});
|
|
30
|
+
},
|
|
31
|
+
value: {
|
|
32
|
+
class: 'leading-normal',
|
|
33
|
+
},
|
|
34
|
+
icon: {
|
|
35
|
+
class: 'mr-1 text-sm',
|
|
36
|
+
},
|
|
37
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
namespace root {
|
|
3
|
+
let _class: string[];
|
|
4
|
+
export { _class as class };
|
|
5
|
+
}
|
|
6
|
+
namespace container {
|
|
7
|
+
let _class_1: string[];
|
|
8
|
+
export { _class_1 as class };
|
|
9
|
+
}
|
|
10
|
+
namespace prompt {
|
|
11
|
+
let _class_2: string[];
|
|
12
|
+
export { _class_2 as class };
|
|
13
|
+
}
|
|
14
|
+
namespace response {
|
|
15
|
+
let _class_3: string[];
|
|
16
|
+
export { _class_3 as class };
|
|
17
|
+
}
|
|
18
|
+
namespace command {
|
|
19
|
+
let _class_4: string[];
|
|
20
|
+
export { _class_4 as class };
|
|
21
|
+
}
|
|
22
|
+
namespace commandtext {
|
|
23
|
+
let _class_5: string[];
|
|
24
|
+
export { _class_5 as class };
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
export default _default;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = {
|
|
4
|
+
root: {
|
|
5
|
+
class: [
|
|
6
|
+
// Spacing
|
|
7
|
+
'p-5',
|
|
8
|
+
// Shape
|
|
9
|
+
'rounded-md',
|
|
10
|
+
// Color
|
|
11
|
+
'bg-surface-900 text-white',
|
|
12
|
+
'border border-surface-700',
|
|
13
|
+
// Sizing & Overflow
|
|
14
|
+
'h-72 overflow-auto',
|
|
15
|
+
],
|
|
16
|
+
},
|
|
17
|
+
container: {
|
|
18
|
+
class: [
|
|
19
|
+
// Flexbox
|
|
20
|
+
'flex items-center',
|
|
21
|
+
],
|
|
22
|
+
},
|
|
23
|
+
prompt: {
|
|
24
|
+
class: [
|
|
25
|
+
// Color
|
|
26
|
+
'text-surface-400',
|
|
27
|
+
],
|
|
28
|
+
},
|
|
29
|
+
response: {
|
|
30
|
+
class: [
|
|
31
|
+
// Color
|
|
32
|
+
'text-primary-400',
|
|
33
|
+
],
|
|
34
|
+
},
|
|
35
|
+
command: {
|
|
36
|
+
class: [
|
|
37
|
+
// Color
|
|
38
|
+
'text-primary-400',
|
|
39
|
+
],
|
|
40
|
+
},
|
|
41
|
+
commandtext: {
|
|
42
|
+
class: [
|
|
43
|
+
// Flexbox
|
|
44
|
+
'flex-1 shrink grow-0',
|
|
45
|
+
// Shape
|
|
46
|
+
'border-0',
|
|
47
|
+
// Spacing
|
|
48
|
+
'p-0',
|
|
49
|
+
// Color
|
|
50
|
+
'bg-transparent text-inherit',
|
|
51
|
+
// Outline
|
|
52
|
+
'outline-none',
|
|
53
|
+
],
|
|
54
|
+
},
|
|
55
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
3
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
4
|
+
if (ar || !(i in from)) {
|
|
5
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
6
|
+
ar[i] = from[i];
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
var global_js_1 = require("../global.js");
|
|
13
|
+
exports.default = {
|
|
14
|
+
root: function (_a) {
|
|
15
|
+
var context = _a.context, props = _a.props;
|
|
16
|
+
return ({
|
|
17
|
+
'class': __spreadArray(__spreadArray([
|
|
18
|
+
// Font
|
|
19
|
+
'font-normal placeholder:text-general-200 placeholder:!font-normal text-xs',
|
|
20
|
+
'w-full',
|
|
21
|
+
{
|
|
22
|
+
'resize-none': props.autoResize,
|
|
23
|
+
'resize': !props.autoResize,
|
|
24
|
+
},
|
|
25
|
+
props.inputClass,
|
|
26
|
+
// Spacing
|
|
27
|
+
'm-0',
|
|
28
|
+
'py-1 px-3',
|
|
29
|
+
// Shape
|
|
30
|
+
'rounded',
|
|
31
|
+
'appearance-none'
|
|
32
|
+
], global_js_1.ringClass, true), [
|
|
33
|
+
{
|
|
34
|
+
'!ring-danger-500': context.invalidInput,
|
|
35
|
+
},
|
|
36
|
+
// // States
|
|
37
|
+
{
|
|
38
|
+
'bg-transparent text-general-800': !context.disabled,
|
|
39
|
+
'bg-general-50 text-general-200': context.disabled,
|
|
40
|
+
},
|
|
41
|
+
'focus-visible:outline-none',
|
|
42
|
+
// Misc
|
|
43
|
+
'appearance-none',
|
|
44
|
+
'transition-colors duration-200',
|
|
45
|
+
], false),
|
|
46
|
+
'style': "min-height: ".concat(props.rows * 26, "px"),
|
|
47
|
+
'data-wv-name': 'textarea',
|
|
48
|
+
'data-wv-section': 'root',
|
|
49
|
+
});
|
|
50
|
+
},
|
|
51
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
namespace root {
|
|
3
|
+
let _class: string[];
|
|
4
|
+
export { _class as class };
|
|
5
|
+
}
|
|
6
|
+
namespace menu {
|
|
7
|
+
let _class_1: string[];
|
|
8
|
+
export { _class_1 as class };
|
|
9
|
+
}
|
|
10
|
+
namespace menuitem {
|
|
11
|
+
let _class_2: string[];
|
|
12
|
+
export { _class_2 as class };
|
|
13
|
+
}
|
|
14
|
+
function content({ context }: {
|
|
15
|
+
context: any;
|
|
16
|
+
}): {
|
|
17
|
+
class: (string | {
|
|
18
|
+
'text-surface-500/70': boolean;
|
|
19
|
+
'text-surface-500/70 bg-surface-200': boolean;
|
|
20
|
+
'text-surface-900/80 bg-surface-50': any;
|
|
21
|
+
'hover:bg-surface-50'?: undefined;
|
|
22
|
+
'hover:bg-surface-100 text-surface-900/80'?: undefined;
|
|
23
|
+
} | {
|
|
24
|
+
'hover:bg-surface-50': boolean;
|
|
25
|
+
'hover:bg-surface-100 text-surface-900/80': any;
|
|
26
|
+
'text-surface-500/70'?: undefined;
|
|
27
|
+
'text-surface-500/70 bg-surface-200'?: undefined;
|
|
28
|
+
'text-surface-900/80 bg-surface-50'?: undefined;
|
|
29
|
+
})[];
|
|
30
|
+
};
|
|
31
|
+
namespace action {
|
|
32
|
+
let _class_3: string[];
|
|
33
|
+
export { _class_3 as class };
|
|
34
|
+
}
|
|
35
|
+
namespace icon {
|
|
36
|
+
let _class_4: string[];
|
|
37
|
+
export { _class_4 as class };
|
|
38
|
+
}
|
|
39
|
+
namespace label {
|
|
40
|
+
let _class_5: string[];
|
|
41
|
+
export { _class_5 as class };
|
|
42
|
+
}
|
|
43
|
+
namespace submenuicon {
|
|
44
|
+
let _class_6: string[];
|
|
45
|
+
export { _class_6 as class };
|
|
46
|
+
}
|
|
47
|
+
namespace submenu {
|
|
48
|
+
let _class_7: string[];
|
|
49
|
+
export { _class_7 as class };
|
|
50
|
+
}
|
|
51
|
+
namespace separator {
|
|
52
|
+
let _class_8: string;
|
|
53
|
+
export { _class_8 as class };
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
export default _default;
|