@fewangsit/wangsvue-presets 1.0.80
Sign up to get free protection for your applications and to get access to all the features.
- 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,202 @@
|
|
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
|
+
'relative',
|
9
|
+
// Flexbox
|
10
|
+
'flex',
|
11
|
+
// Spacing
|
12
|
+
'min-h-[4rem]',
|
13
|
+
// Shape
|
14
|
+
'rounded-md',
|
15
|
+
'shadow-md',
|
16
|
+
// Color
|
17
|
+
'bg-surface-0',
|
18
|
+
'ring-1 ring-inset ring-surface-100 ring-offset-0',
|
19
|
+
{
|
20
|
+
'items-center px-2 sm:px-6': props.orientation == 'horizontal',
|
21
|
+
'flex-col justify-center sm:justify-start sm:w-48 px-2': props.orientation !== 'horizontal',
|
22
|
+
},
|
23
|
+
],
|
24
|
+
});
|
25
|
+
},
|
26
|
+
menu: function (_a) {
|
27
|
+
var props = _a.props;
|
28
|
+
return ({
|
29
|
+
class: [
|
30
|
+
// Flexbox
|
31
|
+
'sm:flex sm:row-gap-2 sm:col-gap-4',
|
32
|
+
'items-center',
|
33
|
+
'flex-wrap',
|
34
|
+
'flex-col sm:flex-row',
|
35
|
+
{ hidden: !(props === null || props === void 0 ? void 0 : props.mobileActive), flex: props === null || props === void 0 ? void 0 : props.mobileActive },
|
36
|
+
// Position
|
37
|
+
'absolute sm:relative',
|
38
|
+
'top-full left-0',
|
39
|
+
'sm:top-auto sm:left-auto',
|
40
|
+
// Size
|
41
|
+
'w-full sm:w-auto',
|
42
|
+
// Spacing
|
43
|
+
'm-0 ',
|
44
|
+
'py-2 px-1.5 sm:py-0 sm:p-0 sm:py-1.5',
|
45
|
+
'list-none',
|
46
|
+
// Shape
|
47
|
+
'shadow-md sm:shadow-none',
|
48
|
+
'border-0',
|
49
|
+
'sm:rounded-none rounded-md',
|
50
|
+
// Color
|
51
|
+
'bg-surface-0 sm:bg-transparent',
|
52
|
+
// Misc
|
53
|
+
'outline-none',
|
54
|
+
],
|
55
|
+
});
|
56
|
+
},
|
57
|
+
menuitem: function (_a) {
|
58
|
+
var props = _a.props;
|
59
|
+
return ({
|
60
|
+
class: [
|
61
|
+
'sm:relative static',
|
62
|
+
{
|
63
|
+
'sm:w-auto w-full': props.horizontal,
|
64
|
+
'w-full': !props.horizontal,
|
65
|
+
},
|
66
|
+
],
|
67
|
+
});
|
68
|
+
},
|
69
|
+
content: function (_a) {
|
70
|
+
var props = _a.props, context = _a.context;
|
71
|
+
return ({
|
72
|
+
class: [
|
73
|
+
// Shape
|
74
|
+
{ 'rounded-md': props.level < 1 },
|
75
|
+
// Colors
|
76
|
+
{
|
77
|
+
'text-surface-500/70': !context.focused && !context.active,
|
78
|
+
'text-surface-500/70 bg-surface-200': context.focused && !context.active,
|
79
|
+
'text-surface-900/80 bg-surface-50': context.focused && context.active,
|
80
|
+
'text-surface-900/80 bg-surface-50': !context.focused && context.active,
|
81
|
+
},
|
82
|
+
// Hover States
|
83
|
+
{
|
84
|
+
'hover:bg-surface-50': !context.active,
|
85
|
+
'hover:bg-surface-100 text-surface-900/80': context.active,
|
86
|
+
},
|
87
|
+
// Transitions
|
88
|
+
'transition-all',
|
89
|
+
'duration-200',
|
90
|
+
],
|
91
|
+
});
|
92
|
+
},
|
93
|
+
action: {
|
94
|
+
class: [
|
95
|
+
'relative',
|
96
|
+
// Font
|
97
|
+
'sm:text-sm font-medium',
|
98
|
+
// Flexbox
|
99
|
+
'flex',
|
100
|
+
'items-center',
|
101
|
+
// Spacing
|
102
|
+
'py-2',
|
103
|
+
'px-3',
|
104
|
+
'my-1 sm:my-0',
|
105
|
+
// Misc
|
106
|
+
'select-none',
|
107
|
+
'cursor-pointer',
|
108
|
+
'no-underline ',
|
109
|
+
'overflow-hidden',
|
110
|
+
],
|
111
|
+
},
|
112
|
+
icon: {
|
113
|
+
class: 'mr-2',
|
114
|
+
},
|
115
|
+
submenuicon: function (_a) {
|
116
|
+
var props = _a.props;
|
117
|
+
return ({
|
118
|
+
class: [
|
119
|
+
{
|
120
|
+
'ml-auto sm:ml-2': props.horizontal,
|
121
|
+
'ml-auto': !props.horizontal,
|
122
|
+
},
|
123
|
+
],
|
124
|
+
});
|
125
|
+
},
|
126
|
+
panel: function (_a) {
|
127
|
+
var props = _a.props;
|
128
|
+
return ({
|
129
|
+
class: [
|
130
|
+
// Size
|
131
|
+
'w-auto',
|
132
|
+
// Spacing
|
133
|
+
'py-1',
|
134
|
+
'm-0 mx-2',
|
135
|
+
// Shape
|
136
|
+
'shadow-none sm:shadow-md',
|
137
|
+
'border-0',
|
138
|
+
// Color
|
139
|
+
'bg-surface-0',
|
140
|
+
// Position
|
141
|
+
'static sm:absolute',
|
142
|
+
'z-10',
|
143
|
+
{
|
144
|
+
'sm:left-full top-0': !props.horizontal,
|
145
|
+
},
|
146
|
+
],
|
147
|
+
});
|
148
|
+
},
|
149
|
+
grid: {
|
150
|
+
class: 'flex flex-wrap sm:flex-nowrap',
|
151
|
+
},
|
152
|
+
column: {
|
153
|
+
class: 'w-full sm:w-1/2',
|
154
|
+
},
|
155
|
+
submenu: {
|
156
|
+
class: ['m-0 list-none', 'py-1 px-2 w-full sm:min-w-[14rem]'],
|
157
|
+
},
|
158
|
+
submenuheader: {
|
159
|
+
class: [
|
160
|
+
'font-medium',
|
161
|
+
'sm:text-md',
|
162
|
+
// Spacing
|
163
|
+
'py-2.5 px-2',
|
164
|
+
'm-0',
|
165
|
+
// Shape
|
166
|
+
'border-b border-surface-200',
|
167
|
+
// Color
|
168
|
+
'text-surface-700/80',
|
169
|
+
'bg-surface-0',
|
170
|
+
],
|
171
|
+
},
|
172
|
+
separator: {
|
173
|
+
class: 'border-t border-surface-200 my-1',
|
174
|
+
},
|
175
|
+
menubutton: {
|
176
|
+
class: [
|
177
|
+
// Flexbox
|
178
|
+
'flex sm:hidden',
|
179
|
+
'items-center justify-center',
|
180
|
+
// Size
|
181
|
+
'w-8',
|
182
|
+
'h-8',
|
183
|
+
// Shape
|
184
|
+
'rounded-full',
|
185
|
+
// Color
|
186
|
+
'text-surface-500/80',
|
187
|
+
// States
|
188
|
+
'hover:text-surface-600',
|
189
|
+
'hover:bg-surface-50',
|
190
|
+
'focus:outline-none focus:outline-offset-0',
|
191
|
+
'focus:ring-2 focus:ring-inset focus:ring-primary-500',
|
192
|
+
// Transitions
|
193
|
+
'transition duration-200 ease-in-out',
|
194
|
+
// Misc
|
195
|
+
'cursor-pointer',
|
196
|
+
'no-underline',
|
197
|
+
],
|
198
|
+
},
|
199
|
+
end: {
|
200
|
+
class: 'ml-auto self-center',
|
201
|
+
},
|
202
|
+
};
|
@@ -0,0 +1,49 @@
|
|
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 start {
|
11
|
+
let _class_2: string[];
|
12
|
+
export { _class_2 as class };
|
13
|
+
}
|
14
|
+
namespace menuitem {
|
15
|
+
let _class_3: string[];
|
16
|
+
export { _class_3 as class };
|
17
|
+
}
|
18
|
+
function content({ context }: {
|
19
|
+
context: any;
|
20
|
+
}): {
|
21
|
+
class: string[];
|
22
|
+
};
|
23
|
+
namespace action {
|
24
|
+
let _class_4: string[];
|
25
|
+
export { _class_4 as class };
|
26
|
+
}
|
27
|
+
namespace icon {
|
28
|
+
let _class_5: string[];
|
29
|
+
export { _class_5 as class };
|
30
|
+
}
|
31
|
+
function label({ props }: {
|
32
|
+
props: any;
|
33
|
+
}): {
|
34
|
+
class: (string | {
|
35
|
+
'!text-danger-500': any;
|
36
|
+
})[];
|
37
|
+
};
|
38
|
+
namespace submenuheader {
|
39
|
+
let _class_6: string[];
|
40
|
+
export { _class_6 as class };
|
41
|
+
}
|
42
|
+
namespace transition {
|
43
|
+
let enterFromClass: string;
|
44
|
+
let enterActiveClass: string;
|
45
|
+
let leaveActiveClass: string;
|
46
|
+
let leaveToClass: string;
|
47
|
+
}
|
48
|
+
}
|
49
|
+
export default _default;
|
@@ -0,0 +1,110 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.default = {
|
4
|
+
root: {
|
5
|
+
class: [
|
6
|
+
// Position
|
7
|
+
// Transition
|
8
|
+
'transition-transform',
|
9
|
+
'z-[3299]',
|
10
|
+
// Sizing and Shape
|
11
|
+
'w-max min-w-52',
|
12
|
+
'min-w-[196px]',
|
13
|
+
'max-h-[90vh] overflow-y-auto',
|
14
|
+
'rounded-md',
|
15
|
+
'border-[0.5px] border-solid border-grayscale-900',
|
16
|
+
'max-w-[400px]',
|
17
|
+
'translate-y-1',
|
18
|
+
// Spacing
|
19
|
+
// 'p-1.5',
|
20
|
+
'shadow',
|
21
|
+
'overflow-hidden',
|
22
|
+
// Colors
|
23
|
+
'bg-white',
|
24
|
+
'text-general-800',
|
25
|
+
],
|
26
|
+
},
|
27
|
+
menu: {
|
28
|
+
class: [
|
29
|
+
// Spacings and Shape
|
30
|
+
'list-none',
|
31
|
+
'm-0',
|
32
|
+
'p-0',
|
33
|
+
'outline-none',
|
34
|
+
'w-full',
|
35
|
+
],
|
36
|
+
},
|
37
|
+
start: {
|
38
|
+
class: ['flex justify-end', 'py-[3px] px-4'],
|
39
|
+
},
|
40
|
+
menuitem: {
|
41
|
+
class: [
|
42
|
+
// Space
|
43
|
+
// Misc
|
44
|
+
'cursor-pointer',
|
45
|
+
],
|
46
|
+
},
|
47
|
+
content: function (_a) {
|
48
|
+
var context = _a.context;
|
49
|
+
return ({
|
50
|
+
class: [
|
51
|
+
// Space
|
52
|
+
// 'px-2',
|
53
|
+
'w-full',
|
54
|
+
// Shape
|
55
|
+
'rounded-md',
|
56
|
+
// Colors
|
57
|
+
'text-inherit',
|
58
|
+
// Transitions
|
59
|
+
'transition-shadow',
|
60
|
+
'duration-200',
|
61
|
+
],
|
62
|
+
});
|
63
|
+
},
|
64
|
+
action: {
|
65
|
+
class: [
|
66
|
+
'flex items-center justify-start gap-2',
|
67
|
+
'px-4 py-[7px]',
|
68
|
+
'hover:bg-primary-50/80',
|
69
|
+
'text-xs',
|
70
|
+
// 'relative',
|
71
|
+
// Font
|
72
|
+
// 'font-semibold',
|
73
|
+
// Flexbox
|
74
|
+
// 'flex',
|
75
|
+
// 'items-center',
|
76
|
+
// Spacing
|
77
|
+
// 'py-2',
|
78
|
+
// 'px-3',
|
79
|
+
// Misc
|
80
|
+
'no-underline',
|
81
|
+
'overflow-hidden',
|
82
|
+
'cursor-pointer',
|
83
|
+
'select-none',
|
84
|
+
],
|
85
|
+
},
|
86
|
+
icon: {
|
87
|
+
class: [
|
88
|
+
// Spacing
|
89
|
+
'w-4 h-4',
|
90
|
+
],
|
91
|
+
},
|
92
|
+
label: function (_a) {
|
93
|
+
var props = _a.props;
|
94
|
+
return ({
|
95
|
+
class: ['text-inherit', { '!text-danger-500': props.danger }],
|
96
|
+
});
|
97
|
+
},
|
98
|
+
submenuheader: {
|
99
|
+
class: [
|
100
|
+
// Font
|
101
|
+
'text-inherit',
|
102
|
+
],
|
103
|
+
},
|
104
|
+
transition: {
|
105
|
+
enterFromClass: 'opacity-0 scale-y-[0.8]',
|
106
|
+
enterActiveClass: 'transition-[transform,opacity] duration-[120ms] ease-[cubic-bezier(0,0,0.2,1)]',
|
107
|
+
leaveActiveClass: 'transition-opacity duration-100 ease-linear',
|
108
|
+
leaveToClass: 'opacity-0',
|
109
|
+
},
|
110
|
+
};
|
@@ -0,0 +1,85 @@
|
|
1
|
+
declare namespace _default {
|
2
|
+
namespace root {
|
3
|
+
let _class: string[];
|
4
|
+
export { _class as class };
|
5
|
+
}
|
6
|
+
function menu({ props }: {
|
7
|
+
props: any;
|
8
|
+
}): {
|
9
|
+
class: (string | {
|
10
|
+
hidden: boolean;
|
11
|
+
flex: any;
|
12
|
+
})[];
|
13
|
+
};
|
14
|
+
namespace menuitem {
|
15
|
+
let _class_1: string;
|
16
|
+
export { _class_1 as class };
|
17
|
+
}
|
18
|
+
function content({ props, context }: {
|
19
|
+
props: any;
|
20
|
+
context: any;
|
21
|
+
}): {
|
22
|
+
class: (string | {
|
23
|
+
'rounded-md': any;
|
24
|
+
'text-surface-500/70'?: undefined;
|
25
|
+
'text-surface-500/70 bg-surface-200'?: undefined;
|
26
|
+
'text-surface-900/80 bg-surface-50'?: undefined;
|
27
|
+
'hover:bg-surface-50'?: undefined;
|
28
|
+
'hover:bg-surface-100 text-surface-900/80'?: undefined;
|
29
|
+
} | {
|
30
|
+
'text-surface-500/70': boolean;
|
31
|
+
'text-surface-500/70 bg-surface-200': boolean;
|
32
|
+
'text-surface-900/80 bg-surface-50': any;
|
33
|
+
'rounded-md'?: undefined;
|
34
|
+
'hover:bg-surface-50'?: undefined;
|
35
|
+
'hover:bg-surface-100 text-surface-900/80'?: undefined;
|
36
|
+
} | {
|
37
|
+
'hover:bg-surface-50': boolean;
|
38
|
+
'hover:bg-surface-100 text-surface-900/80': any;
|
39
|
+
'rounded-md'?: undefined;
|
40
|
+
'text-surface-500/70'?: undefined;
|
41
|
+
'text-surface-500/70 bg-surface-200'?: undefined;
|
42
|
+
'text-surface-900/80 bg-surface-50'?: undefined;
|
43
|
+
})[];
|
44
|
+
};
|
45
|
+
function action({ context }: {
|
46
|
+
context: any;
|
47
|
+
}): {
|
48
|
+
class: (string | {
|
49
|
+
'pl-5 sm:pl-3': boolean;
|
50
|
+
'pl-7 sm:pl-3': boolean;
|
51
|
+
})[];
|
52
|
+
};
|
53
|
+
namespace icon {
|
54
|
+
let _class_2: string;
|
55
|
+
export { _class_2 as class };
|
56
|
+
}
|
57
|
+
function submenuicon({ props }: {
|
58
|
+
props: any;
|
59
|
+
}): {
|
60
|
+
class: {
|
61
|
+
'ml-auto sm:ml-2': any;
|
62
|
+
'ml-auto': boolean;
|
63
|
+
}[];
|
64
|
+
};
|
65
|
+
function submenu({ props }: {
|
66
|
+
props: any;
|
67
|
+
}): {
|
68
|
+
class: (string | {
|
69
|
+
'sm:absolute sm:left-full sm:top-0': boolean;
|
70
|
+
})[];
|
71
|
+
};
|
72
|
+
namespace separator {
|
73
|
+
let _class_3: string;
|
74
|
+
export { _class_3 as class };
|
75
|
+
}
|
76
|
+
namespace button {
|
77
|
+
let _class_4: string[];
|
78
|
+
export { _class_4 as class };
|
79
|
+
}
|
80
|
+
namespace end {
|
81
|
+
let _class_5: string;
|
82
|
+
export { _class_5 as class };
|
83
|
+
}
|
84
|
+
}
|
85
|
+
export default _default;
|
@@ -0,0 +1,172 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.default = {
|
4
|
+
root: {
|
5
|
+
class: [
|
6
|
+
'relative',
|
7
|
+
// Flexbox
|
8
|
+
'flex',
|
9
|
+
'items-center',
|
10
|
+
'gap-6',
|
11
|
+
// Spacing
|
12
|
+
'px-6',
|
13
|
+
'min-h-[4rem]',
|
14
|
+
// Shape
|
15
|
+
'rounded-md',
|
16
|
+
'shadow-md',
|
17
|
+
// Color
|
18
|
+
'bg-surface-0',
|
19
|
+
'ring-1 ring-inset ring-surface-100 ring-offset-0',
|
20
|
+
],
|
21
|
+
},
|
22
|
+
menu: function (_a) {
|
23
|
+
var props = _a.props;
|
24
|
+
return ({
|
25
|
+
class: [
|
26
|
+
// Flexbox
|
27
|
+
'sm:flex sm:row-gap-2 sm:col-gap-4',
|
28
|
+
'items-center',
|
29
|
+
'flex-wrap',
|
30
|
+
'flex-col sm:flex-row',
|
31
|
+
{ hidden: !(props === null || props === void 0 ? void 0 : props.mobileActive), flex: props === null || props === void 0 ? void 0 : props.mobileActive },
|
32
|
+
// Position
|
33
|
+
'absolute sm:relative',
|
34
|
+
'top-full left-0',
|
35
|
+
'sm:top-auto sm:left-auto',
|
36
|
+
// Size
|
37
|
+
'w-full sm:w-auto',
|
38
|
+
// Spacing
|
39
|
+
'm-0 ',
|
40
|
+
'py-2 px-1.5 sm:py-0 sm:p-0 sm:py-1.5',
|
41
|
+
'list-none',
|
42
|
+
// Shape
|
43
|
+
'shadow-md sm:shadow-none',
|
44
|
+
'border-0',
|
45
|
+
'sm:rounded-none rounded-md',
|
46
|
+
// Color
|
47
|
+
'bg-surface-0 sm:bg-transparent',
|
48
|
+
// Misc
|
49
|
+
'outline-none',
|
50
|
+
],
|
51
|
+
});
|
52
|
+
},
|
53
|
+
menuitem: {
|
54
|
+
class: 'sm:relative sm:w-auto w-full static',
|
55
|
+
},
|
56
|
+
content: function (_a) {
|
57
|
+
var props = _a.props, context = _a.context;
|
58
|
+
return ({
|
59
|
+
class: [
|
60
|
+
// Shape
|
61
|
+
{ 'rounded-md': props.root },
|
62
|
+
// Colors
|
63
|
+
{
|
64
|
+
'text-surface-500/70': !context.focused && !context.active,
|
65
|
+
'text-surface-500/70 bg-surface-200': context.focused && !context.active,
|
66
|
+
'text-surface-900/80 bg-surface-50': !context.focused && context.active,
|
67
|
+
},
|
68
|
+
// Hover States
|
69
|
+
{
|
70
|
+
'hover:bg-surface-50': !context.active,
|
71
|
+
'hover:bg-surface-100 text-surface-900/80': context.active,
|
72
|
+
},
|
73
|
+
// Transitions
|
74
|
+
'transition-all',
|
75
|
+
'duration-200',
|
76
|
+
],
|
77
|
+
});
|
78
|
+
},
|
79
|
+
action: function (_a) {
|
80
|
+
var context = _a.context;
|
81
|
+
return ({
|
82
|
+
class: [
|
83
|
+
'relative',
|
84
|
+
// Font
|
85
|
+
'sm:text-sm font-medium',
|
86
|
+
// Flexbox
|
87
|
+
'flex',
|
88
|
+
'items-center',
|
89
|
+
// Spacing
|
90
|
+
'py-2',
|
91
|
+
'px-3',
|
92
|
+
'my-1 sm:my-0',
|
93
|
+
// Size
|
94
|
+
{
|
95
|
+
'pl-5 sm:pl-3': context.level === 1,
|
96
|
+
'pl-7 sm:pl-3': context.level === 2,
|
97
|
+
},
|
98
|
+
// Misc
|
99
|
+
'select-none',
|
100
|
+
'cursor-pointer',
|
101
|
+
'no-underline ',
|
102
|
+
'overflow-hidden',
|
103
|
+
],
|
104
|
+
});
|
105
|
+
},
|
106
|
+
icon: {
|
107
|
+
class: 'mr-2',
|
108
|
+
},
|
109
|
+
submenuicon: function (_a) {
|
110
|
+
var props = _a.props;
|
111
|
+
return ({
|
112
|
+
class: [
|
113
|
+
{
|
114
|
+
'ml-auto sm:ml-2': props.root,
|
115
|
+
'ml-auto': !props.root,
|
116
|
+
},
|
117
|
+
],
|
118
|
+
});
|
119
|
+
},
|
120
|
+
submenu: function (_a) {
|
121
|
+
var props = _a.props;
|
122
|
+
return ({
|
123
|
+
class: [
|
124
|
+
// Size
|
125
|
+
'w-full sm:w-48',
|
126
|
+
// Spacing
|
127
|
+
'py-1',
|
128
|
+
'm-0 ',
|
129
|
+
'list-none',
|
130
|
+
// Shape
|
131
|
+
'shadow-none sm:shadow-md',
|
132
|
+
'border-0',
|
133
|
+
// Position
|
134
|
+
'static sm:absolute',
|
135
|
+
'z-10',
|
136
|
+
{ 'sm:absolute sm:left-full sm:top-0': props.level > 1 },
|
137
|
+
// Color
|
138
|
+
'bg-surface-0',
|
139
|
+
],
|
140
|
+
});
|
141
|
+
},
|
142
|
+
separator: {
|
143
|
+
class: 'border-t border-surface-200 my-1',
|
144
|
+
},
|
145
|
+
button: {
|
146
|
+
class: [
|
147
|
+
// Flexbox
|
148
|
+
'flex sm:hidden',
|
149
|
+
'items-center justify-center',
|
150
|
+
// Size
|
151
|
+
'w-8',
|
152
|
+
'h-8',
|
153
|
+
// Shape
|
154
|
+
'rounded-full',
|
155
|
+
// Color
|
156
|
+
'text-surface-500/80',
|
157
|
+
// States
|
158
|
+
'hover:text-surface-600',
|
159
|
+
'hover:bg-surface-50',
|
160
|
+
'focus:outline-none focus:outline-offset-0',
|
161
|
+
'focus:ring-2 focus:ring-inset focus:ring-primary-500',
|
162
|
+
// Transitions
|
163
|
+
'transition duration-200 ease-in-out',
|
164
|
+
// Misc
|
165
|
+
'cursor-pointer',
|
166
|
+
'no-underline',
|
167
|
+
],
|
168
|
+
},
|
169
|
+
end: {
|
170
|
+
class: 'ml-auto self-center',
|
171
|
+
},
|
172
|
+
};
|
@@ -0,0 +1,41 @@
|
|
1
|
+
declare namespace _default {
|
2
|
+
function root({ props }: {
|
3
|
+
props: any;
|
4
|
+
}): {
|
5
|
+
class: (string | {
|
6
|
+
'text-blue-500': boolean;
|
7
|
+
'text-green-500': boolean;
|
8
|
+
'text-orange-500': boolean;
|
9
|
+
'text-red-500': boolean;
|
10
|
+
})[];
|
11
|
+
};
|
12
|
+
namespace wrapper {
|
13
|
+
let _class: string[];
|
14
|
+
export { _class as class };
|
15
|
+
}
|
16
|
+
namespace icon {
|
17
|
+
let _class_1: string[];
|
18
|
+
export { _class_1 as class };
|
19
|
+
}
|
20
|
+
namespace text {
|
21
|
+
let _class_2: string[];
|
22
|
+
export { _class_2 as class };
|
23
|
+
}
|
24
|
+
function button({ props }: {
|
25
|
+
props: any;
|
26
|
+
}): {
|
27
|
+
class: string[];
|
28
|
+
};
|
29
|
+
namespace closeicon {
|
30
|
+
let _class_3: string[];
|
31
|
+
export { _class_3 as class };
|
32
|
+
}
|
33
|
+
namespace transition {
|
34
|
+
let enterFromClass: string;
|
35
|
+
let enterActiveClass: string;
|
36
|
+
let leaveFromClass: string;
|
37
|
+
let leaveActiveClass: string;
|
38
|
+
let leaveToClass: string;
|
39
|
+
}
|
40
|
+
}
|
41
|
+
export default _default;
|