@fewangsit/wangsvue-presets 1.0.86 → 1.0.87-alpha.0
Sign up to get free protection for your applications and to get access to all the features.
- package/fixedasset/badge/index.js +1 -1
- package/fixedasset/buttonradio/index.d.ts +23 -21
- package/fixedasset/buttonradio/index.js +21 -31
- package/fixedasset/card/index.js +2 -2
- package/fixedasset/dropdown/index.d.ts +56 -39
- package/fixedasset/dropdown/index.js +24 -28
- package/fixedasset/form/index.js +1 -1
- package/fixedasset/global.js +1 -1
- package/fixedasset/index.d.ts +2 -2
- package/fixedasset/index.js +92 -92
- package/fixedasset/index.system.js +2 -2
- package/fixedasset/inputcurrency/index.js +1 -1
- package/fixedasset/inputnumber/index.d.ts +25 -6
- package/fixedasset/inputnumber/index.js +36 -4
- package/fixedasset/inputphonenumber/index.d.ts +22 -12
- package/fixedasset/inputphonenumber/index.js +20 -7
- package/fixedasset/multiselect/index.d.ts +80 -44
- package/fixedasset/multiselect/index.js +50 -70
- package/fixedasset/style.css +127 -45
- package/fixedasset/textarea/index.js +3 -2
- package/fixedasset/toggleswitch/index.d.ts +100 -0
- package/{wangsvue/inputswitch → fixedasset/toggleswitch}/index.js +44 -17
- package/package.json +1 -1
- package/wangsvue/buttonradio/index.d.ts +24 -28
- package/wangsvue/buttonradio/index.js +20 -33
- package/wangsvue/dropdown/index.d.ts +33 -0
- package/wangsvue/dropdown/index.js +15 -6
- package/wangsvue/index.d.ts +2 -2
- package/wangsvue/index.js +92 -92
- package/wangsvue/index.system.js +2 -2
- package/wangsvue/inputnumber/index.d.ts +25 -6
- package/wangsvue/inputnumber/index.js +36 -4
- package/wangsvue/inputphonenumber/index.d.ts +22 -12
- package/wangsvue/inputphonenumber/index.js +17 -5
- package/wangsvue/multiselect/index.d.ts +52 -4
- package/wangsvue/multiselect/index.js +28 -35
- package/wangsvue/style.css +132 -38
- package/wangsvue/toggleswitch/index.d.ts +105 -0
- package/{fixedasset/inputswitch → wangsvue/toggleswitch}/index.js +45 -17
- package/fixedasset/inputswitch/index.d.ts +0 -67
- package/wangsvue/inputswitch/index.d.ts +0 -67
@@ -6,17 +6,22 @@ declare namespace _default {
|
|
6
6
|
class: string[];
|
7
7
|
};
|
8
8
|
namespace input {
|
9
|
-
export function root_1({ parent }: {
|
9
|
+
export function root_1({ parent, context }: {
|
10
10
|
parent: any;
|
11
|
+
context: any;
|
11
12
|
}): {
|
12
13
|
class: string[];
|
13
14
|
};
|
14
15
|
export { root_1 as root };
|
15
16
|
}
|
16
|
-
namespace
|
17
|
+
namespace inputresizer {
|
17
18
|
let _class: string[];
|
18
19
|
export { _class as class };
|
19
20
|
}
|
21
|
+
namespace buttongroup {
|
22
|
+
let _class_1: string[];
|
23
|
+
export { _class_1 as class };
|
24
|
+
}
|
20
25
|
namespace incrementbutton {
|
21
26
|
export function root_2({ parent }: {
|
22
27
|
parent: any;
|
@@ -25,8 +30,8 @@ declare namespace _default {
|
|
25
30
|
};
|
26
31
|
export { root_2 as root };
|
27
32
|
export namespace label {
|
28
|
-
let
|
29
|
-
export {
|
33
|
+
let _class_2: string;
|
34
|
+
export { _class_2 as class };
|
30
35
|
}
|
31
36
|
}
|
32
37
|
namespace decrementbutton {
|
@@ -37,10 +42,24 @@ declare namespace _default {
|
|
37
42
|
};
|
38
43
|
export { root_3 as root };
|
39
44
|
export namespace label_1 {
|
40
|
-
let
|
41
|
-
export {
|
45
|
+
let _class_3: string;
|
46
|
+
export { _class_3 as class };
|
42
47
|
}
|
43
48
|
export { label_1 as label };
|
44
49
|
}
|
50
|
+
function incrementicon({ props }: {
|
51
|
+
props: any;
|
52
|
+
}): {
|
53
|
+
class: (string | {
|
54
|
+
'!text-general-200': any;
|
55
|
+
})[];
|
56
|
+
};
|
57
|
+
function decrementicon({ props }: {
|
58
|
+
props: any;
|
59
|
+
}): {
|
60
|
+
class: (string | {
|
61
|
+
'!text-general-200': any;
|
62
|
+
})[];
|
63
|
+
};
|
45
64
|
}
|
46
65
|
export default _default;
|
@@ -1,5 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
var inputclass = 'text-xs font-normal leading-[22px]';
|
4
|
+
var inputheight = 'h-[30px]';
|
3
5
|
exports.default = {
|
4
6
|
root: function (_a) {
|
5
7
|
var props = _a.props, parent = _a.parent;
|
@@ -8,7 +10,7 @@ exports.default = {
|
|
8
10
|
// Layout
|
9
11
|
'flex items-center self-stretch shrink-0 grow',
|
10
12
|
//Size
|
11
|
-
|
13
|
+
inputheight,
|
12
14
|
// Spacing
|
13
15
|
'py-1 px-3',
|
14
16
|
// Border
|
@@ -19,17 +21,25 @@ exports.default = {
|
|
19
21
|
},
|
20
22
|
input: {
|
21
23
|
root: function (_a) {
|
22
|
-
var parent = _a.parent;
|
24
|
+
var parent = _a.parent, context = _a.context;
|
23
25
|
return ({
|
24
26
|
class: [
|
25
27
|
'border-0 h-full w-full outline-none',
|
26
28
|
'bg-inherit',
|
27
|
-
|
28
|
-
'placeholder:text-general-200',
|
29
|
+
inputclass,
|
30
|
+
'placeholder:text-general-200 placeholder:font-normal',
|
31
|
+
context.disabled ? 'text-general-200' : 'text-grayscale-900',
|
29
32
|
],
|
30
33
|
});
|
31
34
|
},
|
32
35
|
},
|
36
|
+
inputresizer: {
|
37
|
+
class: [
|
38
|
+
inputclass,
|
39
|
+
inputheight,
|
40
|
+
'user-select-none py-1 px-3 block min-w-4 text-transparent',
|
41
|
+
],
|
42
|
+
},
|
33
43
|
buttongroup: {
|
34
44
|
class: ['flex'],
|
35
45
|
},
|
@@ -55,4 +65,26 @@ exports.default = {
|
|
55
65
|
class: 'h-0 w-0',
|
56
66
|
},
|
57
67
|
},
|
68
|
+
incrementicon: function (_a) {
|
69
|
+
var props = _a.props;
|
70
|
+
return ({
|
71
|
+
class: [
|
72
|
+
'!text-base text-grayscale-900',
|
73
|
+
{
|
74
|
+
'!text-general-200': props.disabled,
|
75
|
+
},
|
76
|
+
],
|
77
|
+
});
|
78
|
+
},
|
79
|
+
decrementicon: function (_a) {
|
80
|
+
var props = _a.props;
|
81
|
+
return ({
|
82
|
+
class: [
|
83
|
+
'!text-base text-grayscale-900',
|
84
|
+
{
|
85
|
+
'!text-general-200': props.disabled,
|
86
|
+
},
|
87
|
+
],
|
88
|
+
});
|
89
|
+
},
|
58
90
|
};
|
@@ -11,18 +11,28 @@ export function commonClasses({ isFirefoxBased, invalidInput }: {
|
|
11
11
|
'ring-[0.5px]'?: undefined;
|
12
12
|
})[];
|
13
13
|
declare namespace _default {
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
14
|
+
namespace dialcode {
|
15
|
+
function root(ctx: any): {
|
16
|
+
class: (string | {
|
17
|
+
'ring-[1px]': any;
|
18
|
+
'ring-[0.5px]': boolean;
|
19
|
+
'!ring-danger-500'?: undefined;
|
20
|
+
} | {
|
21
|
+
'!ring-danger-500': any;
|
22
|
+
'ring-[1px]'?: undefined;
|
23
|
+
'ring-[0.5px]'?: undefined;
|
24
|
+
})[];
|
25
|
+
};
|
26
|
+
function dropdownicon({ state }: {
|
27
|
+
state: any;
|
28
|
+
}): {
|
29
|
+
class: (string | {
|
30
|
+
'rotate-180': any;
|
31
|
+
})[];
|
32
|
+
icon: string;
|
33
|
+
};
|
34
|
+
}
|
35
|
+
function input(ctx: any): {
|
26
36
|
class: (string | {
|
27
37
|
'ring-[1px]': any;
|
28
38
|
'ring-[0.5px]': boolean;
|
@@ -10,6 +10,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
10
10
|
};
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12
12
|
exports.commonClasses = void 0;
|
13
|
+
var index_js_1 = require("../multiselect/index.js");
|
13
14
|
var commonClasses = function (_a) {
|
14
15
|
var isFirefoxBased = _a.isFirefoxBased, invalidInput = _a.invalidInput;
|
15
16
|
return [
|
@@ -25,10 +26,21 @@ var commonClasses = function (_a) {
|
|
25
26
|
};
|
26
27
|
exports.commonClasses = commonClasses;
|
27
28
|
exports.default = {
|
28
|
-
dialcode:
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
29
|
+
dialcode: {
|
30
|
+
root: function (ctx) { return ({
|
31
|
+
class: __spreadArray(__spreadArray([], (0, exports.commonClasses)(ctx), true), ['rounded-l rounded-r-none'], false),
|
32
|
+
}); },
|
33
|
+
dropdownicon: function (_a) {
|
34
|
+
var state = _a.state;
|
35
|
+
return index_js_1.default.dropdownicon({ state: state });
|
36
|
+
},
|
37
|
+
},
|
38
|
+
input: function (ctx) { return ({
|
39
|
+
class: __spreadArray(__spreadArray([], (0, exports.commonClasses)(ctx), true), [
|
40
|
+
'rounded-r rounded-l-none -ml-[1px]',
|
41
|
+
'focus:bg-none',
|
42
|
+
'focus:ring-primary-500',
|
43
|
+
'focus:ring-1',
|
44
|
+
], false),
|
33
45
|
}); },
|
34
46
|
};
|
@@ -25,14 +25,60 @@ declare namespace _default {
|
|
25
25
|
'!leading-5'?: undefined;
|
26
26
|
})[];
|
27
27
|
};
|
28
|
-
export
|
29
|
-
|
28
|
+
export let token: {
|
29
|
+
class: (string | {
|
30
|
+
'!text-general-400 !bg-general-100': any;
|
31
|
+
'text-success-800 bg-success-100': boolean;
|
32
|
+
'text-primary-800 bg-primary-200': boolean;
|
33
|
+
'text-grayscale-900 bg-grayscale-500': boolean;
|
34
|
+
'text-warning-600 bg-warning-100': boolean;
|
35
|
+
'text-danger-700 bg-danger-200': boolean;
|
36
|
+
})[];
|
37
|
+
'data-wv-name': string;
|
38
|
+
'data-wv-section': string;
|
39
|
+
};
|
40
|
+
export let tokenLabel: {
|
41
|
+
class: (string | {
|
42
|
+
'caret-surface-700': any;
|
43
|
+
'cursor-default': boolean;
|
44
|
+
})[];
|
45
|
+
};
|
46
|
+
export let removeTokenIcon: {
|
47
|
+
class: (string | {
|
48
|
+
'!text-primary-800': boolean;
|
49
|
+
'!text-success-800': boolean;
|
50
|
+
'!text-danger-700': boolean;
|
51
|
+
'!text-warning-600': boolean;
|
52
|
+
'!text-grayscale-900': boolean;
|
53
|
+
'text-general-400'?: undefined;
|
54
|
+
} | {
|
55
|
+
'text-general-400': any;
|
56
|
+
'!text-primary-800'?: undefined;
|
57
|
+
'!text-success-800'?: undefined;
|
58
|
+
'!text-danger-700'?: undefined;
|
59
|
+
'!text-warning-600'?: undefined;
|
60
|
+
'!text-grayscale-900'?: undefined;
|
61
|
+
})[];
|
62
|
+
'icon-class': string;
|
63
|
+
'data-wv-section': string;
|
64
|
+
};
|
65
|
+
export namespace loadingplaceholder {
|
66
|
+
let _class_1: string;
|
30
67
|
export { _class_1 as class };
|
31
68
|
}
|
32
|
-
export namespace
|
33
|
-
let _class_2: string
|
69
|
+
export namespace loadingicon {
|
70
|
+
let _class_2: string;
|
34
71
|
export { _class_2 as class };
|
72
|
+
export let icon: string;
|
35
73
|
}
|
74
|
+
export function dropdownicon({ state }: {
|
75
|
+
state: any;
|
76
|
+
}): {
|
77
|
+
class: (string | {
|
78
|
+
'rotate-180': any;
|
79
|
+
})[];
|
80
|
+
icon: string;
|
81
|
+
};
|
36
82
|
export namespace trigger {
|
37
83
|
let _class_3: string[];
|
38
84
|
export { _class_3 as class };
|
@@ -231,6 +277,8 @@ declare namespace _default {
|
|
231
277
|
export namespace filtericon {
|
232
278
|
let _class_15: string[];
|
233
279
|
export { _class_15 as class };
|
280
|
+
let icon_1: string;
|
281
|
+
export { icon_1 as icon };
|
234
282
|
}
|
235
283
|
export namespace clearicon {
|
236
284
|
let _class_16: string[];
|
@@ -20,7 +20,8 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
20
20
|
return to.concat(ar || Array.prototype.slice.call(from));
|
21
21
|
};
|
22
22
|
Object.defineProperty(exports, "__esModule", { value: true });
|
23
|
-
var index_js_1 = require("../
|
23
|
+
var index_js_1 = require("../badge/index.js");
|
24
|
+
var index_js_2 = require("../checkbox/index.js");
|
24
25
|
exports.default = {
|
25
26
|
root: function (_a) {
|
26
27
|
var props = _a.props, state = _a.state;
|
@@ -63,40 +64,31 @@ exports.default = {
|
|
63
64
|
// Transitions
|
64
65
|
'transition duration-200',
|
65
66
|
// Misc
|
66
|
-
'overflow-hidden whitespace-nowrap cursor-pointer overflow-ellipsis',
|
67
|
+
'overflow-hidden overflow-x-auto scrollbar-w-none whitespace-nowrap cursor-pointer overflow-ellipsis',
|
67
68
|
],
|
68
69
|
});
|
69
70
|
},
|
70
|
-
token: {
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
'rounded-[50px]',
|
78
|
-
'text-xs',
|
79
|
-
'font-normal',
|
80
|
-
'leading-[12px]',
|
81
|
-
'tracking-[0.03em]',
|
82
|
-
'items-center',
|
83
|
-
'text-grayscale-900',
|
84
|
-
'bg-grayscale-500',
|
85
|
-
],
|
71
|
+
token: index_js_1.default.root({ props: { severity: 'dark' } }),
|
72
|
+
tokenLabel: index_js_1.default.input({ props: {}, context: {} }),
|
73
|
+
removeTokenIcon: index_js_1.default.removebutton({
|
74
|
+
props: { badgeSeverity: 'dark' },
|
75
|
+
}),
|
76
|
+
loadingplaceholder: {
|
77
|
+
class: 'text-general-200 font-normal',
|
86
78
|
},
|
87
|
-
|
88
|
-
class:
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
'
|
99
|
-
|
79
|
+
loadingicon: {
|
80
|
+
class: 'text-xs animate-spin duration-200 !text-general-500',
|
81
|
+
icon: 'spinner',
|
82
|
+
},
|
83
|
+
dropdownicon: function (_a) {
|
84
|
+
var state = _a.state;
|
85
|
+
return ({
|
86
|
+
class: [
|
87
|
+
'w-full h-full transition-transform !text-general-500',
|
88
|
+
{ 'rotate-180': state.isShowOverlay },
|
89
|
+
],
|
90
|
+
icon: 'arrow-drop-down',
|
91
|
+
});
|
100
92
|
},
|
101
93
|
trigger: {
|
102
94
|
class: [
|
@@ -164,15 +156,15 @@ exports.default = {
|
|
164
156
|
'select-none',
|
165
157
|
],
|
166
158
|
},
|
167
|
-
headerCheckbox: __assign(__assign({},
|
159
|
+
headerCheckbox: __assign(__assign({}, index_js_2.default), { root: {
|
168
160
|
class: __spreadArray(__spreadArray([
|
169
161
|
'!mx-auto'
|
170
|
-
],
|
162
|
+
], index_js_2.default.root.class, true), [
|
171
163
|
'[&:not(:has(svg))_[data-pc-section=box]]:!bg-primary-400',
|
172
164
|
'[&:not(:has(svg))_[data-pc-section=box]]:!border-white',
|
173
165
|
], false),
|
174
166
|
} }),
|
175
|
-
itemCheckbox:
|
167
|
+
itemCheckbox: index_js_2.default,
|
176
168
|
closeButton: {
|
177
169
|
class: ['hidden'],
|
178
170
|
},
|
@@ -293,7 +285,8 @@ exports.default = {
|
|
293
285
|
],
|
294
286
|
},
|
295
287
|
filtericon: {
|
296
|
-
class: ['
|
288
|
+
class: ['text-xs w-6 h-6'],
|
289
|
+
icon: 'search-line',
|
297
290
|
},
|
298
291
|
clearicon: {
|
299
292
|
class: [
|