@fewangsit/wangsvue-presets 1.0.85-alpha.6 → 1.0.85
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/fixedasset/badge/index.js +1 -1
- package/fixedasset/buttonradio/index.d.ts +21 -23
- package/fixedasset/buttonradio/index.js +31 -21
- package/fixedasset/card/index.js +2 -2
- package/fixedasset/dropdown/index.d.ts +39 -56
- package/fixedasset/dropdown/index.js +28 -24
- 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 +6 -25
- package/fixedasset/inputnumber/index.js +4 -36
- package/fixedasset/inputphonenumber/index.d.ts +12 -22
- package/fixedasset/inputphonenumber/index.js +7 -20
- package/fixedasset/inputswitch/index.d.ts +67 -0
- package/{wangsvue/toggleswitch → fixedasset/inputswitch}/index.js +17 -45
- package/fixedasset/multiselect/index.d.ts +44 -80
- package/fixedasset/multiselect/index.js +70 -50
- package/fixedasset/style.css +45 -127
- package/fixedasset/textarea/index.js +2 -3
- package/package.json +1 -1
- package/wangsvue/buttonradio/index.d.ts +28 -24
- package/wangsvue/buttonradio/index.js +33 -20
- package/wangsvue/dropdown/index.d.ts +0 -33
- package/wangsvue/dropdown/index.js +6 -15
- 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 +6 -25
- package/wangsvue/inputnumber/index.js +4 -36
- package/wangsvue/inputphonenumber/index.d.ts +12 -22
- package/wangsvue/inputphonenumber/index.js +5 -17
- package/wangsvue/inputswitch/index.d.ts +67 -0
- package/{fixedasset/toggleswitch → wangsvue/inputswitch}/index.js +17 -44
- package/wangsvue/multiselect/index.d.ts +4 -52
- package/wangsvue/multiselect/index.js +35 -28
- package/wangsvue/style.css +38 -132
- package/fixedasset/toggleswitch/index.d.ts +0 -100
- package/wangsvue/toggleswitch/index.d.ts +0 -105
|
@@ -6,22 +6,17 @@ 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 }: {
|
|
10
10
|
parent: any;
|
|
11
|
-
context: any;
|
|
12
11
|
}): {
|
|
13
12
|
class: string[];
|
|
14
13
|
};
|
|
15
14
|
export { root_1 as root };
|
|
16
15
|
}
|
|
17
|
-
namespace
|
|
16
|
+
namespace buttongroup {
|
|
18
17
|
let _class: string[];
|
|
19
18
|
export { _class as class };
|
|
20
19
|
}
|
|
21
|
-
namespace buttongroup {
|
|
22
|
-
let _class_1: string[];
|
|
23
|
-
export { _class_1 as class };
|
|
24
|
-
}
|
|
25
20
|
namespace incrementbutton {
|
|
26
21
|
export function root_2({ parent }: {
|
|
27
22
|
parent: any;
|
|
@@ -30,8 +25,8 @@ declare namespace _default {
|
|
|
30
25
|
};
|
|
31
26
|
export { root_2 as root };
|
|
32
27
|
export namespace label {
|
|
33
|
-
let
|
|
34
|
-
export {
|
|
28
|
+
let _class_1: string;
|
|
29
|
+
export { _class_1 as class };
|
|
35
30
|
}
|
|
36
31
|
}
|
|
37
32
|
namespace decrementbutton {
|
|
@@ -42,24 +37,10 @@ declare namespace _default {
|
|
|
42
37
|
};
|
|
43
38
|
export { root_3 as root };
|
|
44
39
|
export namespace label_1 {
|
|
45
|
-
let
|
|
46
|
-
export {
|
|
40
|
+
let _class_2: string;
|
|
41
|
+
export { _class_2 as class };
|
|
47
42
|
}
|
|
48
43
|
export { label_1 as label };
|
|
49
44
|
}
|
|
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
|
-
};
|
|
64
45
|
}
|
|
65
46
|
export default _default;
|
|
@@ -1,7 +1,5 @@
|
|
|
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]';
|
|
5
3
|
exports.default = {
|
|
6
4
|
root: function (_a) {
|
|
7
5
|
var props = _a.props, parent = _a.parent;
|
|
@@ -10,7 +8,7 @@ exports.default = {
|
|
|
10
8
|
// Layout
|
|
11
9
|
'flex items-center self-stretch shrink-0 grow',
|
|
12
10
|
//Size
|
|
13
|
-
|
|
11
|
+
'h-full',
|
|
14
12
|
// Spacing
|
|
15
13
|
'py-1 px-3',
|
|
16
14
|
// Border
|
|
@@ -21,25 +19,17 @@ exports.default = {
|
|
|
21
19
|
},
|
|
22
20
|
input: {
|
|
23
21
|
root: function (_a) {
|
|
24
|
-
var parent = _a.parent
|
|
22
|
+
var parent = _a.parent;
|
|
25
23
|
return ({
|
|
26
24
|
class: [
|
|
27
25
|
'border-0 h-full w-full outline-none',
|
|
28
26
|
'bg-inherit',
|
|
29
|
-
|
|
30
|
-
'placeholder:text-general-200
|
|
31
|
-
context.disabled ? 'text-general-200' : 'text-grayscale-900',
|
|
27
|
+
'text-xs font-normal',
|
|
28
|
+
'placeholder:text-general-200',
|
|
32
29
|
],
|
|
33
30
|
});
|
|
34
31
|
},
|
|
35
32
|
},
|
|
36
|
-
inputresizer: {
|
|
37
|
-
class: [
|
|
38
|
-
inputclass,
|
|
39
|
-
inputheight,
|
|
40
|
-
'user-select-none py-1 px-3 block min-w-4 text-transparent',
|
|
41
|
-
],
|
|
42
|
-
},
|
|
43
33
|
buttongroup: {
|
|
44
34
|
class: ['flex'],
|
|
45
35
|
},
|
|
@@ -65,26 +55,4 @@ exports.default = {
|
|
|
65
55
|
class: 'h-0 w-0',
|
|
66
56
|
},
|
|
67
57
|
},
|
|
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
|
-
},
|
|
90
58
|
};
|
|
@@ -11,28 +11,18 @@ 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
|
-
|
|
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): {
|
|
14
|
+
function dialcode(ctx: any): {
|
|
15
|
+
class: (string | {
|
|
16
|
+
'ring-[1px]': any;
|
|
17
|
+
'ring-[0.5px]': boolean;
|
|
18
|
+
'!ring-danger-500'?: undefined;
|
|
19
|
+
} | {
|
|
20
|
+
'!ring-danger-500': any;
|
|
21
|
+
'ring-[1px]'?: undefined;
|
|
22
|
+
'ring-[0.5px]'?: undefined;
|
|
23
|
+
})[];
|
|
24
|
+
};
|
|
25
|
+
function inputnumber(ctx: any): {
|
|
36
26
|
class: (string | {
|
|
37
27
|
'ring-[1px]': any;
|
|
38
28
|
'ring-[0.5px]': boolean;
|
|
@@ -10,7 +10,6 @@ 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");
|
|
14
13
|
var commonClasses = function (_a) {
|
|
15
14
|
var isFirefoxBased = _a.isFirefoxBased, invalidInput = _a.invalidInput;
|
|
16
15
|
return [
|
|
@@ -26,21 +25,10 @@ var commonClasses = function (_a) {
|
|
|
26
25
|
};
|
|
27
26
|
exports.commonClasses = commonClasses;
|
|
28
27
|
exports.default = {
|
|
29
|
-
dialcode: {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
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),
|
|
28
|
+
dialcode: function (ctx) { return ({
|
|
29
|
+
class: __spreadArray(__spreadArray([], (0, exports.commonClasses)(ctx), true), ['rounded-l rounded-r-none'], false),
|
|
30
|
+
}); },
|
|
31
|
+
inputnumber: function (ctx) { return ({
|
|
32
|
+
class: __spreadArray(__spreadArray([], (0, exports.commonClasses)(ctx), true), ['rounded-r rounded-l-none -ml-[1px]'], false),
|
|
45
33
|
}); },
|
|
46
34
|
};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
function root({ props }: {
|
|
3
|
+
props: any;
|
|
4
|
+
}): {
|
|
5
|
+
class: (string | {
|
|
6
|
+
'select-none pointer-events-none cursor-default': any;
|
|
7
|
+
})[];
|
|
8
|
+
};
|
|
9
|
+
function slider({ props }: {
|
|
10
|
+
props: any;
|
|
11
|
+
}): {
|
|
12
|
+
class: (string | {
|
|
13
|
+
'before:bg-white before:bg-white': boolean;
|
|
14
|
+
'before:bg-primary-200': boolean;
|
|
15
|
+
'before:bg-general-50': any;
|
|
16
|
+
'before:transform before:translate-x-3.5'?: undefined;
|
|
17
|
+
'border-primary-200'?: undefined;
|
|
18
|
+
'border-transparent'?: undefined;
|
|
19
|
+
'bg-white'?: undefined;
|
|
20
|
+
'bg-primary-500'?: undefined;
|
|
21
|
+
'bg-primary-100'?: undefined;
|
|
22
|
+
'bg-general-100'?: undefined;
|
|
23
|
+
} | {
|
|
24
|
+
'before:transform before:translate-x-3.5': boolean;
|
|
25
|
+
'before:bg-white before:bg-white'?: undefined;
|
|
26
|
+
'before:bg-primary-200'?: undefined;
|
|
27
|
+
'before:bg-general-50'?: undefined;
|
|
28
|
+
'border-primary-200'?: undefined;
|
|
29
|
+
'border-transparent'?: undefined;
|
|
30
|
+
'bg-white'?: undefined;
|
|
31
|
+
'bg-primary-500'?: undefined;
|
|
32
|
+
'bg-primary-100'?: undefined;
|
|
33
|
+
'bg-general-100'?: undefined;
|
|
34
|
+
} | {
|
|
35
|
+
'border-primary-200': boolean;
|
|
36
|
+
'border-transparent': boolean;
|
|
37
|
+
'before:bg-white before:bg-white'?: undefined;
|
|
38
|
+
'before:bg-primary-200'?: undefined;
|
|
39
|
+
'before:bg-general-50'?: undefined;
|
|
40
|
+
'before:transform before:translate-x-3.5'?: undefined;
|
|
41
|
+
'bg-white'?: undefined;
|
|
42
|
+
'bg-primary-500'?: undefined;
|
|
43
|
+
'bg-primary-100'?: undefined;
|
|
44
|
+
'bg-general-100'?: undefined;
|
|
45
|
+
} | {
|
|
46
|
+
'bg-white': boolean;
|
|
47
|
+
'bg-primary-500': boolean;
|
|
48
|
+
'bg-primary-100': any;
|
|
49
|
+
'bg-general-100': any;
|
|
50
|
+
'before:bg-white before:bg-white'?: undefined;
|
|
51
|
+
'before:bg-primary-200'?: undefined;
|
|
52
|
+
'before:bg-general-50'?: undefined;
|
|
53
|
+
'before:transform before:translate-x-3.5'?: undefined;
|
|
54
|
+
'border-primary-200'?: undefined;
|
|
55
|
+
'border-transparent'?: undefined;
|
|
56
|
+
})[];
|
|
57
|
+
};
|
|
58
|
+
function input({ props }: {
|
|
59
|
+
props: any;
|
|
60
|
+
}): {
|
|
61
|
+
class: (string | {
|
|
62
|
+
'cursor-default': any;
|
|
63
|
+
'cursor-pointer': boolean;
|
|
64
|
+
})[];
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
export default _default;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var isFirefoxBased = navigator.userAgent.includes('Firefox');
|
|
4
3
|
exports.default = {
|
|
5
4
|
root: function (_a) {
|
|
6
5
|
var props = _a.props;
|
|
@@ -32,40 +31,33 @@ exports.default = {
|
|
|
32
31
|
'rounded-[60px]',
|
|
33
32
|
// Before:
|
|
34
33
|
'before:absolute before:top-1/2',
|
|
35
|
-
'before:-
|
|
34
|
+
'before:-mt-[6px] before:ml-0.5',
|
|
36
35
|
'before:h-3 before:w-3',
|
|
37
36
|
'before:rounded-full',
|
|
38
37
|
'before:duration-200 before:transition before:ease-in-out',
|
|
39
|
-
|
|
38
|
+
'before:shadow',
|
|
40
39
|
{
|
|
41
|
-
'before:
|
|
40
|
+
'before:bg-white before:bg-white': props.modelValue == props.trueValue,
|
|
41
|
+
'before:bg-primary-200': props.modelValue !== props.trueValue && !props.disabled,
|
|
42
|
+
'before:bg-general-50': props.modelValue !== props.trueValue && props.disabled,
|
|
42
43
|
},
|
|
43
|
-
// Inactive position
|
|
44
44
|
{
|
|
45
|
-
'before:
|
|
45
|
+
'before:transform before:translate-x-3.5': props.modelValue == props.trueValue,
|
|
46
46
|
},
|
|
47
47
|
// Colors
|
|
48
|
-
'
|
|
49
|
-
{ 'ring': isFirefoxBased, 'ring-[0.5px]': !isFirefoxBased },
|
|
48
|
+
'border',
|
|
50
49
|
{
|
|
51
|
-
'
|
|
52
|
-
'
|
|
53
|
-
// Inactive and Enabled
|
|
54
|
-
'bg-white ring-general-100': props.modelValue !== props.trueValue && !props.disabled,
|
|
55
|
-
// Active and Enabled
|
|
56
|
-
'bg-primary-500 ring-transparent': props.modelValue == props.trueValue && !props.disabled,
|
|
57
|
-
// Active and Disabled
|
|
58
|
-
'bg-general-200 ring-transparent': props.modelValue == props.trueValue && props.disabled,
|
|
59
|
-
// Inactive and Disabled
|
|
60
|
-
'bg-general-200 ring-general-100': props.modelValue !== props.trueValue && props.disabled,
|
|
50
|
+
'border-primary-200': props.modelValue !== props.trueValue && !props.disabled,
|
|
51
|
+
'border-transparent': props.modelValue == props.trueValue,
|
|
61
52
|
},
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
'
|
|
65
|
-
'
|
|
53
|
+
{
|
|
54
|
+
'bg-white': props.modelValue !== props.trueValue && !props.disabled,
|
|
55
|
+
'bg-primary-500': props.modelValue == props.trueValue && !props.disabled,
|
|
56
|
+
'bg-primary-100': props.modelValue == props.trueValue && props.disabled,
|
|
57
|
+
'bg-general-100': props.modelValue !== props.trueValue && props.disabled,
|
|
66
58
|
},
|
|
67
59
|
// States
|
|
68
|
-
'peer-focus-visible
|
|
60
|
+
'peer-focus-visible:ring-2 peer-focus-visible:ring-primary-500',
|
|
69
61
|
// Transition
|
|
70
62
|
'transition-colors duration-200',
|
|
71
63
|
// Misc
|
|
@@ -90,10 +82,12 @@ exports.default = {
|
|
|
90
82
|
'm-0',
|
|
91
83
|
// Shape
|
|
92
84
|
'rounded',
|
|
85
|
+
'border',
|
|
93
86
|
// Shape
|
|
94
87
|
'opacity-0',
|
|
95
88
|
'rounded-md',
|
|
96
89
|
'outline-none',
|
|
90
|
+
'border-2 border-surface-300',
|
|
97
91
|
// Misc
|
|
98
92
|
'appearance-none',
|
|
99
93
|
{
|
|
@@ -103,25 +97,4 @@ exports.default = {
|
|
|
103
97
|
],
|
|
104
98
|
});
|
|
105
99
|
},
|
|
106
|
-
label: {
|
|
107
|
-
class: [
|
|
108
|
-
'relative',
|
|
109
|
-
'w-max h-max items-start cursor-pointer',
|
|
110
|
-
'flex items-start select-none text-xs tracking-[0.02em] font-medium',
|
|
111
|
-
'text-general-800',
|
|
112
|
-
'shrink-0',
|
|
113
|
-
// Alignment
|
|
114
|
-
'inline-flex',
|
|
115
|
-
'align-bottom',
|
|
116
|
-
// Transitions
|
|
117
|
-
'transition-all',
|
|
118
|
-
'duration-200',
|
|
119
|
-
],
|
|
120
|
-
},
|
|
121
|
-
labeltext: {
|
|
122
|
-
class: 'ml-1 leading-4',
|
|
123
|
-
},
|
|
124
|
-
tooltipicon: {
|
|
125
|
-
class: 'text-primary-500 w-[10px] h-[10px]',
|
|
126
|
-
},
|
|
127
100
|
};
|
|
@@ -25,60 +25,14 @@ declare namespace _default {
|
|
|
25
25
|
'!leading-5'?: undefined;
|
|
26
26
|
})[];
|
|
27
27
|
};
|
|
28
|
-
export
|
|
29
|
-
|
|
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;
|
|
28
|
+
export namespace token {
|
|
29
|
+
let _class_1: string[];
|
|
67
30
|
export { _class_1 as class };
|
|
68
31
|
}
|
|
69
|
-
export namespace
|
|
70
|
-
let _class_2: string;
|
|
32
|
+
export namespace removeTokenIcon {
|
|
33
|
+
let _class_2: string[];
|
|
71
34
|
export { _class_2 as class };
|
|
72
|
-
export let icon: string;
|
|
73
35
|
}
|
|
74
|
-
export function dropdownicon({ state }: {
|
|
75
|
-
state: any;
|
|
76
|
-
}): {
|
|
77
|
-
class: (string | {
|
|
78
|
-
'rotate-180': any;
|
|
79
|
-
})[];
|
|
80
|
-
icon: string;
|
|
81
|
-
};
|
|
82
36
|
export namespace trigger {
|
|
83
37
|
let _class_3: string[];
|
|
84
38
|
export { _class_3 as class };
|
|
@@ -277,8 +231,6 @@ declare namespace _default {
|
|
|
277
231
|
export namespace filtericon {
|
|
278
232
|
let _class_15: string[];
|
|
279
233
|
export { _class_15 as class };
|
|
280
|
-
let icon_1: string;
|
|
281
|
-
export { icon_1 as icon };
|
|
282
234
|
}
|
|
283
235
|
export namespace clearicon {
|
|
284
236
|
let _class_16: string[];
|
|
@@ -20,8 +20,7 @@ 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("../
|
|
24
|
-
var index_js_2 = require("../checkbox/index.js");
|
|
23
|
+
var index_js_1 = require("../checkbox/index.js");
|
|
25
24
|
exports.default = {
|
|
26
25
|
root: function (_a) {
|
|
27
26
|
var props = _a.props, state = _a.state;
|
|
@@ -64,31 +63,40 @@ exports.default = {
|
|
|
64
63
|
// Transitions
|
|
65
64
|
'transition duration-200',
|
|
66
65
|
// Misc
|
|
67
|
-
'overflow-hidden
|
|
66
|
+
'overflow-hidden whitespace-nowrap cursor-pointer overflow-ellipsis',
|
|
68
67
|
],
|
|
69
68
|
});
|
|
70
69
|
},
|
|
71
|
-
token:
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
70
|
+
token: {
|
|
71
|
+
class: [
|
|
72
|
+
// Flexbox
|
|
73
|
+
'inline-flex items-center gap-1',
|
|
74
|
+
// Spacing
|
|
75
|
+
'py-1 px-2',
|
|
76
|
+
// Shape
|
|
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
|
+
],
|
|
82
86
|
},
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
87
|
+
removeTokenIcon: {
|
|
88
|
+
class: [
|
|
89
|
+
// Shape
|
|
90
|
+
'rounded-md leading-6',
|
|
91
|
+
// Spacing
|
|
92
|
+
'ml-2',
|
|
93
|
+
// Size
|
|
94
|
+
'w-4 h-4',
|
|
95
|
+
// Transition
|
|
96
|
+
'transition duration-200 ease-in-out',
|
|
97
|
+
// Misc
|
|
98
|
+
'cursor-pointer',
|
|
99
|
+
],
|
|
92
100
|
},
|
|
93
101
|
trigger: {
|
|
94
102
|
class: [
|
|
@@ -156,15 +164,15 @@ exports.default = {
|
|
|
156
164
|
'select-none',
|
|
157
165
|
],
|
|
158
166
|
},
|
|
159
|
-
headerCheckbox: __assign(__assign({},
|
|
167
|
+
headerCheckbox: __assign(__assign({}, index_js_1.default), { root: {
|
|
160
168
|
class: __spreadArray(__spreadArray([
|
|
161
169
|
'!mx-auto'
|
|
162
|
-
],
|
|
170
|
+
], index_js_1.default.root.class, true), [
|
|
163
171
|
'[&:not(:has(svg))_[data-pc-section=box]]:!bg-primary-400',
|
|
164
172
|
'[&:not(:has(svg))_[data-pc-section=box]]:!border-white',
|
|
165
173
|
], false),
|
|
166
174
|
} }),
|
|
167
|
-
itemCheckbox:
|
|
175
|
+
itemCheckbox: index_js_1.default,
|
|
168
176
|
closeButton: {
|
|
169
177
|
class: ['hidden'],
|
|
170
178
|
},
|
|
@@ -285,8 +293,7 @@ exports.default = {
|
|
|
285
293
|
],
|
|
286
294
|
},
|
|
287
295
|
filtericon: {
|
|
288
|
-
class: ['
|
|
289
|
-
icon: 'search-line',
|
|
296
|
+
class: ['absolute', 'top-1/2 right-3', '-mt-2'],
|
|
290
297
|
},
|
|
291
298
|
clearicon: {
|
|
292
299
|
class: [
|