@fewangsit/wangsvue-presets 1.0.99 → 1.0.100-alpha.0
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/buttonradio/index.d.ts +6 -4
- package/fixedasset/buttonradio/index.js +8 -12
- package/fixedasset/fieldwrapper/index.d.ts +5 -2
- package/fixedasset/fieldwrapper/index.js +4 -1
- package/fixedasset/index.d.ts +2 -2
- package/fixedasset/index.es.js +663 -323
- package/fixedasset/index.js +94 -94
- package/fixedasset/index.system.js +2 -2
- package/fixedasset/inputotp/index.d.ts +1 -136
- package/fixedasset/inputotp/index.js +50 -53
- package/fixedasset/password/index.js +1 -0
- package/fixedasset/style.css +137 -49
- package/fixedasset/tabmenu/index.d.ts +1 -104
- package/fixedasset/tabmenu/index.js +48 -27
- package/fixedasset/timeline/index.d.ts +24 -2
- package/fixedasset/timeline/index.js +24 -5
- package/fixedasset/tree/index.d.ts +14 -5
- package/fixedasset/tree/index.js +7 -4
- package/fixedasset/username/index.js +1 -1
- package/globalsettings/buttonradio/index.d.ts +6 -4
- package/globalsettings/buttonradio/index.js +8 -12
- package/globalsettings/fieldwrapper/index.d.ts +5 -2
- package/globalsettings/fieldwrapper/index.js +4 -1
- package/globalsettings/index.d.ts +1 -1
- package/globalsettings/index.es.js +519 -175
- package/globalsettings/index.js +26 -26
- package/globalsettings/index.system.js +2 -2
- package/globalsettings/style.css +120 -51
- package/globalsettings/tabmenu/index.d.ts +1 -104
- package/globalsettings/tabmenu/index.js +48 -27
- package/globalsettings/timeline/index.d.ts +22 -0
- package/globalsettings/timeline/index.js +19 -0
- package/package.json +1 -1
- package/supplyasset/buttonradio/index.d.ts +6 -4
- package/supplyasset/buttonradio/index.js +8 -12
- package/supplyasset/fieldwrapper/index.d.ts +5 -2
- package/supplyasset/fieldwrapper/index.js +4 -1
- package/supplyasset/index.d.ts +1 -1
- package/supplyasset/index.es.js +542 -197
- package/supplyasset/index.js +24 -24
- package/supplyasset/index.system.js +2 -2
- package/supplyasset/style.css +120 -51
- package/supplyasset/tabmenu/index.d.ts +1 -104
- package/supplyasset/tabmenu/index.js +50 -28
- package/supplyasset/timeline/index.d.ts +22 -0
- package/supplyasset/timeline/index.js +19 -0
- package/wangsvue/buttonbulkaction/index.d.ts +2 -2
- package/wangsvue/buttonbulkaction/index.js +2 -1
- package/wangsvue/buttonradio/index.d.ts +2 -1
- package/wangsvue/buttonradio/index.js +3 -7
- package/wangsvue/fieldwrapper/index.d.ts +5 -2
- package/wangsvue/fieldwrapper/index.js +4 -1
- package/wangsvue/index.d.ts +1 -1
- package/wangsvue/index.es.js +590 -257
- package/wangsvue/index.js +44 -44
- package/wangsvue/index.system.js +2 -2
- package/wangsvue/style.css +104 -51
- package/wangsvue/tabmenu/index.d.ts +1 -56
- package/wangsvue/tabmenu/index.js +20 -13
- package/wangsvue/timeline/index.d.ts +20 -0
- package/wangsvue/timeline/index.js +16 -0
|
@@ -1,105 +1,2 @@
|
|
|
1
|
-
declare
|
|
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
|
-
'rounded-xl py-1 px-3': boolean;
|
|
21
|
-
'p-2 pb-1.5 pt-0.5 !h-6': boolean;
|
|
22
|
-
'ml-1': boolean;
|
|
23
|
-
'border-b-2'?: undefined;
|
|
24
|
-
'border-primary-500'?: undefined;
|
|
25
|
-
'border-grayscale-400'?: undefined;
|
|
26
|
-
'text-grayscale-600'?: undefined;
|
|
27
|
-
'text-primary-500'?: undefined;
|
|
28
|
-
'bg-primary-50 text-primary-500'?: undefined;
|
|
29
|
-
'bg-grayscale-200 text-grayscale-800'?: undefined;
|
|
30
|
-
'bg-transparent '?: undefined;
|
|
31
|
-
'focus-visible:border-primary-200 focus-visible:text-primary-400'?: undefined;
|
|
32
|
-
'pointer-events-none'?: undefined;
|
|
33
|
-
'opacity-60'?: undefined;
|
|
34
|
-
} | {
|
|
35
|
-
'border-b-2': boolean;
|
|
36
|
-
'rounded-xl py-1 px-3'?: undefined;
|
|
37
|
-
'p-2 pb-1.5 pt-0.5 !h-6'?: undefined;
|
|
38
|
-
'ml-1'?: undefined;
|
|
39
|
-
'border-primary-500'?: undefined;
|
|
40
|
-
'border-grayscale-400'?: undefined;
|
|
41
|
-
'text-grayscale-600'?: undefined;
|
|
42
|
-
'text-primary-500'?: undefined;
|
|
43
|
-
'bg-primary-50 text-primary-500'?: undefined;
|
|
44
|
-
'bg-grayscale-200 text-grayscale-800'?: undefined;
|
|
45
|
-
'bg-transparent '?: undefined;
|
|
46
|
-
'focus-visible:border-primary-200 focus-visible:text-primary-400'?: undefined;
|
|
47
|
-
'pointer-events-none'?: undefined;
|
|
48
|
-
'opacity-60'?: undefined;
|
|
49
|
-
} | {
|
|
50
|
-
'border-primary-500': any;
|
|
51
|
-
'border-grayscale-400': boolean;
|
|
52
|
-
'text-grayscale-600': boolean;
|
|
53
|
-
'text-primary-500': any;
|
|
54
|
-
'bg-primary-50 text-primary-500': any;
|
|
55
|
-
'bg-grayscale-200 text-grayscale-800': boolean;
|
|
56
|
-
'bg-transparent ': boolean;
|
|
57
|
-
'rounded-xl py-1 px-3'?: undefined;
|
|
58
|
-
'p-2 pb-1.5 pt-0.5 !h-6'?: undefined;
|
|
59
|
-
'ml-1'?: undefined;
|
|
60
|
-
'border-b-2'?: undefined;
|
|
61
|
-
'focus-visible:border-primary-200 focus-visible:text-primary-400'?: undefined;
|
|
62
|
-
'pointer-events-none'?: undefined;
|
|
63
|
-
'opacity-60'?: undefined;
|
|
64
|
-
} | {
|
|
65
|
-
'focus-visible:border-primary-200 focus-visible:text-primary-400': boolean;
|
|
66
|
-
'rounded-xl py-1 px-3'?: undefined;
|
|
67
|
-
'p-2 pb-1.5 pt-0.5 !h-6'?: undefined;
|
|
68
|
-
'ml-1'?: undefined;
|
|
69
|
-
'border-b-2'?: undefined;
|
|
70
|
-
'border-primary-500'?: undefined;
|
|
71
|
-
'border-grayscale-400'?: undefined;
|
|
72
|
-
'text-grayscale-600'?: undefined;
|
|
73
|
-
'text-primary-500'?: undefined;
|
|
74
|
-
'bg-primary-50 text-primary-500'?: undefined;
|
|
75
|
-
'bg-grayscale-200 text-grayscale-800'?: undefined;
|
|
76
|
-
'bg-transparent '?: undefined;
|
|
77
|
-
'pointer-events-none'?: undefined;
|
|
78
|
-
'opacity-60'?: undefined;
|
|
79
|
-
} | {
|
|
80
|
-
'pointer-events-none': any;
|
|
81
|
-
'opacity-60': any;
|
|
82
|
-
'rounded-xl py-1 px-3'?: undefined;
|
|
83
|
-
'p-2 pb-1.5 pt-0.5 !h-6'?: undefined;
|
|
84
|
-
'ml-1'?: undefined;
|
|
85
|
-
'border-b-2'?: undefined;
|
|
86
|
-
'border-primary-500'?: undefined;
|
|
87
|
-
'border-grayscale-400'?: undefined;
|
|
88
|
-
'text-grayscale-600'?: undefined;
|
|
89
|
-
'text-primary-500'?: undefined;
|
|
90
|
-
'bg-primary-50 text-primary-500'?: undefined;
|
|
91
|
-
'bg-grayscale-200 text-grayscale-800'?: undefined;
|
|
92
|
-
'bg-transparent '?: undefined;
|
|
93
|
-
'focus-visible:border-primary-200 focus-visible:text-primary-400'?: undefined;
|
|
94
|
-
})[];
|
|
95
|
-
};
|
|
96
|
-
namespace icon {
|
|
97
|
-
let _class_3: string;
|
|
98
|
-
export { _class_3 as class };
|
|
99
|
-
}
|
|
100
|
-
namespace inkbar {
|
|
101
|
-
let _class_4: string;
|
|
102
|
-
export { _class_4 as class };
|
|
103
|
-
}
|
|
104
|
-
}
|
|
1
|
+
declare const _default: import("@wangs-ui/core/dist/types/themes/preset-definitions").ToRawPreset<import("@wangs-ui/core/dist/types/components/tabmenu/tabmenu.type").TabMenuPreset, import("@wangs-ui/core/dist/types/components/tabmenu/tabmenu.type").TabMenuPresetMethodOptions>;
|
|
105
2
|
export default _default;
|
|
@@ -1,27 +1,34 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
3
|
+
var core_1 = require("@wangs-ui/core");
|
|
4
|
+
exports.default = (0, core_1.definePreset)('WANGS-TAB-MENU', {
|
|
4
5
|
root: {
|
|
5
6
|
class: 'overflow-x-auto',
|
|
6
7
|
style: 'scrollbar-width: none',
|
|
7
8
|
},
|
|
8
|
-
menu: {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
9
|
+
menu: function (_a) {
|
|
10
|
+
var props = _a.props;
|
|
11
|
+
return ({
|
|
12
|
+
class: [
|
|
13
|
+
// Flexbox
|
|
14
|
+
'flex flex-1',
|
|
15
|
+
// Spacing
|
|
16
|
+
'list-none',
|
|
17
|
+
'p-0 m-0',
|
|
18
|
+
// Colors
|
|
19
|
+
'text-general-100',
|
|
20
|
+
{
|
|
21
|
+
'w-max ring-1 ring-inset ring-general-100 rounded !m-[2px]': props.type === 'segmented',
|
|
22
|
+
},
|
|
23
|
+
],
|
|
24
|
+
});
|
|
18
25
|
},
|
|
19
26
|
menuitem: {
|
|
20
27
|
class: 'mr-0',
|
|
21
28
|
},
|
|
22
29
|
action: function (_a) {
|
|
23
30
|
var _b, _c;
|
|
24
|
-
var context = _a.context,
|
|
31
|
+
var context = _a.context, props = _a.props;
|
|
25
32
|
return ({
|
|
26
33
|
class: [
|
|
27
34
|
'relative',
|
|
@@ -32,28 +39,32 @@ exports.default = {
|
|
|
32
39
|
'flex items-center',
|
|
33
40
|
// Spacing
|
|
34
41
|
{
|
|
35
|
-
'rounded-xl py-1 px-3':
|
|
36
|
-
'
|
|
37
|
-
'
|
|
42
|
+
'rounded-xl py-1 px-3': props.type === 'pill',
|
|
43
|
+
'rounded': props.type === 'segmented',
|
|
44
|
+
'p-2 pb-1.5 pt-0.5 !h-6': props.type === 'tab',
|
|
45
|
+
'py-[5px] px-3 !h-[26px]': props.type === 'segmented',
|
|
46
|
+
'ml-1': props.type === 'pill' && context.index !== 0,
|
|
38
47
|
},
|
|
39
48
|
// Shape
|
|
40
49
|
{
|
|
41
|
-
'border-b-2':
|
|
50
|
+
'border-b-2': props.type === 'tab',
|
|
42
51
|
},
|
|
43
52
|
// Colors and Conditions
|
|
44
53
|
{
|
|
45
|
-
'border-primary-500':
|
|
46
|
-
'border-grayscale-400': !
|
|
47
|
-
'text-grayscale-600': !
|
|
48
|
-
'text-primary-500':
|
|
49
|
-
'bg-primary-50 text-primary-500':
|
|
50
|
-
'bg-grayscale-200 text-grayscale-800':
|
|
51
|
-
'bg-
|
|
54
|
+
'border-primary-500': context.active,
|
|
55
|
+
'border-grayscale-400': !context.active,
|
|
56
|
+
'text-grayscale-600': !context.active,
|
|
57
|
+
'text-primary-500': context.active,
|
|
58
|
+
'bg-primary-50 text-primary-500': props.type === 'pill' && context.active,
|
|
59
|
+
'bg-grayscale-200 text-grayscale-800': props.type === 'pill' && !context.active,
|
|
60
|
+
'bg-primary-500 text-white shadow-[-2px_2px_2px_rgba(0,0,0,0.25)]': props.type === 'segmented' && context.active,
|
|
61
|
+
'!text-general-800': props.type === 'segmented' && !context.active,
|
|
62
|
+
'bg-transparent ': props.type !== 'pill' && !context.active,
|
|
52
63
|
},
|
|
53
64
|
// States
|
|
54
65
|
'focus-visible:outline-none focus-visible:outline-offset-0',
|
|
55
66
|
{
|
|
56
|
-
'focus-visible:border-primary-200 focus-visible:text-primary-400': !
|
|
67
|
+
'focus-visible:border-primary-200 focus-visible:text-primary-400': !context.active,
|
|
57
68
|
},
|
|
58
69
|
// Disabled States
|
|
59
70
|
{
|
|
@@ -74,7 +85,17 @@ exports.default = {
|
|
|
74
85
|
icon: {
|
|
75
86
|
class: 'mr-2',
|
|
76
87
|
},
|
|
77
|
-
inkbar: {
|
|
78
|
-
|
|
88
|
+
inkbar: function (_a) {
|
|
89
|
+
var props = _a.props;
|
|
90
|
+
return ({
|
|
91
|
+
class: [
|
|
92
|
+
'grow border-b-2 border-primary-100',
|
|
93
|
+
{
|
|
94
|
+
hidden: props.type === 'pill' ||
|
|
95
|
+
props.useTrailingLine === false ||
|
|
96
|
+
props.type === 'segmented',
|
|
97
|
+
},
|
|
98
|
+
],
|
|
99
|
+
});
|
|
79
100
|
},
|
|
80
|
-
};
|
|
101
|
+
});
|
|
@@ -30,14 +30,36 @@ declare namespace _default {
|
|
|
30
30
|
}
|
|
31
31
|
function markerArrow(item: any): {
|
|
32
32
|
class: (string | {
|
|
33
|
-
'!
|
|
33
|
+
'!flex': boolean;
|
|
34
34
|
'rotate-180'?: undefined;
|
|
35
35
|
} | {
|
|
36
36
|
'rotate-180': any;
|
|
37
|
-
'!
|
|
37
|
+
'!flex'?: undefined;
|
|
38
38
|
})[];
|
|
39
39
|
'data-wv-section': string;
|
|
40
40
|
};
|
|
41
|
+
function markerDot(item: any): {
|
|
42
|
+
class: (string | {
|
|
43
|
+
'!flex': any;
|
|
44
|
+
})[];
|
|
45
|
+
'data-wv-section': string;
|
|
46
|
+
};
|
|
47
|
+
namespace contentHeader {
|
|
48
|
+
let _class_1: string[];
|
|
49
|
+
export { _class_1 as class };
|
|
50
|
+
}
|
|
51
|
+
namespace contentDetailKey {
|
|
52
|
+
let _class_2: string[];
|
|
53
|
+
export { _class_2 as class };
|
|
54
|
+
}
|
|
55
|
+
namespace contentDetailValue {
|
|
56
|
+
let _class_3: string[];
|
|
57
|
+
export { _class_3 as class };
|
|
58
|
+
}
|
|
59
|
+
namespace contentDate {
|
|
60
|
+
let _class_4: string[];
|
|
61
|
+
export { _class_4 as class };
|
|
62
|
+
}
|
|
41
63
|
function connector({ props }: {
|
|
42
64
|
props: any;
|
|
43
65
|
}): {
|
|
@@ -53,25 +53,44 @@ exports.default = {
|
|
|
53
53
|
},
|
|
54
54
|
marker: {
|
|
55
55
|
class: [
|
|
56
|
-
'w-
|
|
56
|
+
'w-[22px] h-[22px]',
|
|
57
57
|
'rounded-full',
|
|
58
58
|
'bg-transparent',
|
|
59
|
-
'ring-
|
|
59
|
+
'ring-1 ring-inset ring-general-100 p-0.5',
|
|
60
60
|
'flex items-center justify-center',
|
|
61
61
|
],
|
|
62
62
|
},
|
|
63
63
|
markerArrow: function (item) { return ({
|
|
64
64
|
'class': [
|
|
65
|
-
'w-
|
|
66
|
-
{ '!
|
|
65
|
+
'!w-3 !h-3 hidden transition-transform duration-200 ease-in-out text-grayscale-900',
|
|
66
|
+
{ '!flex': item.detail && !isEmptyObject(item.detail) },
|
|
67
67
|
{ 'rotate-180': item.showDetail },
|
|
68
68
|
],
|
|
69
69
|
'data-wv-section': 'markerArrow',
|
|
70
70
|
}); },
|
|
71
|
+
markerDot: function (item) { return ({
|
|
72
|
+
'class': [
|
|
73
|
+
'hidden w-[6px] h-[6px] m-[3px] rounded-full bg-black',
|
|
74
|
+
{ '!flex': !item.detail || isEmptyObject(item.detail) },
|
|
75
|
+
],
|
|
76
|
+
'data-wv-section': 'markerDot',
|
|
77
|
+
}); },
|
|
78
|
+
contentHeader: {
|
|
79
|
+
class: ['leading-5 cursor-pointer truncate !text-xs !font-bold'],
|
|
80
|
+
},
|
|
81
|
+
contentDetailKey: {
|
|
82
|
+
class: ['text-general-400 whitespace-nowrap'],
|
|
83
|
+
},
|
|
84
|
+
contentDetailValue: {
|
|
85
|
+
class: ['text-xs text-general-800'],
|
|
86
|
+
},
|
|
87
|
+
contentDate: {
|
|
88
|
+
class: ['text-xs font-medium'],
|
|
89
|
+
},
|
|
71
90
|
connector: function (_a) {
|
|
72
91
|
var props = _a.props;
|
|
73
92
|
return ({
|
|
74
|
-
class: ['w-[
|
|
93
|
+
class: ['w-[1px] grow bg-general-100'],
|
|
75
94
|
});
|
|
76
95
|
},
|
|
77
96
|
content: function (_a) {
|
|
@@ -26,17 +26,20 @@ declare namespace _default {
|
|
|
26
26
|
class: (string | {
|
|
27
27
|
'bg-primary-50 !text-primary-500 [&_*]:text-primary-500': boolean;
|
|
28
28
|
'hover:bg-primary-50'?: undefined;
|
|
29
|
-
'!
|
|
29
|
+
'!text-general-200'?: undefined;
|
|
30
|
+
'!cursor-default'?: undefined;
|
|
30
31
|
'cursor-pointer select-none'?: undefined;
|
|
31
32
|
'cursor-pointer'?: undefined;
|
|
32
33
|
} | {
|
|
33
34
|
'hover:bg-primary-50': boolean;
|
|
34
35
|
'bg-primary-50 !text-primary-500 [&_*]:text-primary-500'?: undefined;
|
|
35
|
-
'!
|
|
36
|
+
'!text-general-200'?: undefined;
|
|
37
|
+
'!cursor-default'?: undefined;
|
|
36
38
|
'cursor-pointer select-none'?: undefined;
|
|
37
39
|
'cursor-pointer'?: undefined;
|
|
38
40
|
} | {
|
|
39
|
-
'!
|
|
41
|
+
'!text-general-200': boolean;
|
|
42
|
+
'!cursor-default': any;
|
|
40
43
|
'bg-primary-50 !text-primary-500 [&_*]:text-primary-500'?: undefined;
|
|
41
44
|
'hover:bg-primary-50'?: undefined;
|
|
42
45
|
'cursor-pointer select-none'?: undefined;
|
|
@@ -45,13 +48,15 @@ declare namespace _default {
|
|
|
45
48
|
'cursor-pointer select-none': boolean;
|
|
46
49
|
'bg-primary-50 !text-primary-500 [&_*]:text-primary-500'?: undefined;
|
|
47
50
|
'hover:bg-primary-50'?: undefined;
|
|
48
|
-
'!
|
|
51
|
+
'!text-general-200'?: undefined;
|
|
52
|
+
'!cursor-default'?: undefined;
|
|
49
53
|
'cursor-pointer'?: undefined;
|
|
50
54
|
} | {
|
|
51
55
|
'cursor-pointer': boolean;
|
|
52
56
|
'bg-primary-50 !text-primary-500 [&_*]:text-primary-500'?: undefined;
|
|
53
57
|
'hover:bg-primary-50'?: undefined;
|
|
54
|
-
'!
|
|
58
|
+
'!text-general-200'?: undefined;
|
|
59
|
+
'!cursor-default'?: undefined;
|
|
55
60
|
'cursor-pointer select-none'?: undefined;
|
|
56
61
|
})[];
|
|
57
62
|
};
|
|
@@ -136,6 +141,10 @@ declare namespace _default {
|
|
|
136
141
|
}): {
|
|
137
142
|
class: (string | {
|
|
138
143
|
'!text-general-200 !cursor-default': boolean;
|
|
144
|
+
'!opacity-60'?: undefined;
|
|
145
|
+
} | {
|
|
146
|
+
'!opacity-60': any;
|
|
147
|
+
'!text-general-200 !cursor-default'?: undefined;
|
|
139
148
|
})[];
|
|
140
149
|
};
|
|
141
150
|
}
|
package/fixedasset/tree/index.js
CHANGED
|
@@ -32,7 +32,6 @@ exports.default = {
|
|
|
32
32
|
'pl-1',
|
|
33
33
|
'rounded-md',
|
|
34
34
|
'focus:outline-none focus:outline-offset-0',
|
|
35
|
-
'focus:bg-primary-50',
|
|
36
35
|
],
|
|
37
36
|
},
|
|
38
37
|
content: function (_a) {
|
|
@@ -52,11 +51,14 @@ exports.default = {
|
|
|
52
51
|
},
|
|
53
52
|
// States
|
|
54
53
|
{
|
|
55
|
-
'hover:bg-primary-50': props.selectionMode == 'single' ||
|
|
56
|
-
props.selectionMode == 'multiple'
|
|
54
|
+
'hover:bg-primary-50': (props.selectionMode == 'single' ||
|
|
55
|
+
props.selectionMode == 'multiple') &&
|
|
56
|
+
!context.disabled &&
|
|
57
|
+
!context.exactDisabled,
|
|
57
58
|
},
|
|
58
59
|
{
|
|
59
|
-
'!
|
|
60
|
+
'!text-general-200': context.disabled && !context.exactDisabled,
|
|
61
|
+
'!cursor-default': context.disabled || context.exactDisabled,
|
|
60
62
|
},
|
|
61
63
|
// Transition
|
|
62
64
|
'transition-shadow duration-200',
|
|
@@ -261,6 +263,7 @@ exports.default = {
|
|
|
261
263
|
{
|
|
262
264
|
'!text-general-200 !cursor-default': context.exactDisabled && props.node.key != -1,
|
|
263
265
|
},
|
|
266
|
+
{ '!opacity-60': context.disabled },
|
|
264
267
|
'text-xs font-medium text-general-800',
|
|
265
268
|
],
|
|
266
269
|
});
|
|
@@ -9,7 +9,7 @@ var preset = {
|
|
|
9
9
|
return ({
|
|
10
10
|
class: [
|
|
11
11
|
'text-xs font-medium cursor-pointer',
|
|
12
|
-
{ 'text-primary-
|
|
12
|
+
{ 'text-primary-500 cursor-pointer': props.type === 'icon' },
|
|
13
13
|
{ 'text-general-800': props.type !== 'icon' },
|
|
14
14
|
],
|
|
15
15
|
});
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
declare namespace _default {
|
|
2
|
-
function root({ props }: {
|
|
2
|
+
function root({ props, state }: {
|
|
3
3
|
props: any;
|
|
4
|
+
state: any;
|
|
4
5
|
}): {
|
|
5
6
|
class: (string | {
|
|
6
|
-
'bg-white':
|
|
7
|
+
'bg-white': any;
|
|
7
8
|
'bg-general-50': boolean;
|
|
8
9
|
'ring-general-100': boolean;
|
|
9
|
-
'ring-primary-500':
|
|
10
|
+
'ring-primary-500': any;
|
|
10
11
|
'ring-general-200': any;
|
|
11
12
|
'!ring-danger-500'?: undefined;
|
|
12
13
|
} | {
|
|
@@ -20,8 +21,9 @@ declare namespace _default {
|
|
|
20
21
|
'data-wv-name': string;
|
|
21
22
|
'data-wv-section': string;
|
|
22
23
|
};
|
|
23
|
-
function box({ props }: {
|
|
24
|
+
function box({ props, state }: {
|
|
24
25
|
props: any;
|
|
26
|
+
state: any;
|
|
25
27
|
}): {
|
|
26
28
|
class: (string | {
|
|
27
29
|
'bg-primary-500': boolean;
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
var toggleswitch_1 = require("../toggleswitch");
|
|
4
4
|
exports.default = {
|
|
5
5
|
root: function (_a) {
|
|
6
|
-
var props = _a.props;
|
|
6
|
+
var props = _a.props, state = _a.state;
|
|
7
7
|
return ({
|
|
8
8
|
'class': [
|
|
9
9
|
'relative',
|
|
@@ -17,10 +17,10 @@ exports.default = {
|
|
|
17
17
|
'rounded-full',
|
|
18
18
|
// Colors
|
|
19
19
|
{
|
|
20
|
-
'bg-white': !props.disabled ||
|
|
21
|
-
'bg-general-50': props.disabled &&
|
|
22
|
-
'ring-general-100': !props.disabled &&
|
|
23
|
-
'ring-primary-500': !props.disabled &&
|
|
20
|
+
'bg-white': !props.disabled || state.checked,
|
|
21
|
+
'bg-general-50': props.disabled && !state.checked,
|
|
22
|
+
'ring-general-100': !props.disabled && !state.checked,
|
|
23
|
+
'ring-primary-500': !props.disabled && state.checked,
|
|
24
24
|
'ring-general-200': props.disabled,
|
|
25
25
|
},
|
|
26
26
|
{
|
|
@@ -34,7 +34,7 @@ exports.default = {
|
|
|
34
34
|
});
|
|
35
35
|
},
|
|
36
36
|
box: function (_a) {
|
|
37
|
-
var props = _a.props;
|
|
37
|
+
var props = _a.props, state = _a.state;
|
|
38
38
|
return ({
|
|
39
39
|
class: [
|
|
40
40
|
// Size
|
|
@@ -50,12 +50,8 @@ exports.default = {
|
|
|
50
50
|
'transition duration-200 ease-in-out',
|
|
51
51
|
// Colors
|
|
52
52
|
{
|
|
53
|
-
'bg-primary-500': props.value
|
|
54
|
-
|
|
55
|
-
!props.disabled,
|
|
56
|
-
'bg-general-200': props.value == props.modelValue &&
|
|
57
|
-
props.value !== undefined &&
|
|
58
|
-
props.disabled,
|
|
53
|
+
'bg-primary-500': state.checked && props.value !== undefined && !props.disabled,
|
|
54
|
+
'bg-general-200': state.checked && props.value !== undefined && props.disabled,
|
|
59
55
|
},
|
|
60
56
|
// States
|
|
61
57
|
{
|
|
@@ -4,10 +4,13 @@ declare namespace _default {
|
|
|
4
4
|
'data-wv-name': string;
|
|
5
5
|
'data-wv-section': string;
|
|
6
6
|
};
|
|
7
|
-
function label({ props }: {
|
|
7
|
+
function label({ props, slots }: {
|
|
8
8
|
props: any;
|
|
9
|
+
slots: any;
|
|
9
10
|
}): {
|
|
10
|
-
class: any[]
|
|
11
|
+
class: (any[] | {
|
|
12
|
+
'w-full': any;
|
|
13
|
+
})[];
|
|
11
14
|
'data-wv-section': string;
|
|
12
15
|
};
|
|
13
16
|
namespace info {
|
|
@@ -9,13 +9,16 @@ exports.default = {
|
|
|
9
9
|
'data-wv-section': 'root',
|
|
10
10
|
},
|
|
11
11
|
label: function (_a) {
|
|
12
|
-
var props = _a.props;
|
|
12
|
+
var props = _a.props, slots = _a.slots;
|
|
13
13
|
return ({
|
|
14
14
|
'class': [
|
|
15
15
|
[
|
|
16
16
|
'text-general-900 text-xs flex gap-[2px] font-medium tracking-[0.02em]',
|
|
17
17
|
props.labelClass,
|
|
18
18
|
],
|
|
19
|
+
{
|
|
20
|
+
'w-full': slots['label-addon']
|
|
21
|
+
}
|
|
19
22
|
],
|
|
20
23
|
'data-wv-section': 'fieldlabel',
|
|
21
24
|
});
|
|
@@ -104,7 +104,7 @@ import card from './card/index.js';
|
|
|
104
104
|
import menu from './menu/index.js';
|
|
105
105
|
import steps from './steps/index.js';
|
|
106
106
|
import breadcrumb from './breadcrumb/index.js';
|
|
107
|
-
import tabmenu from './tabmenu/index
|
|
107
|
+
import tabmenu from './tabmenu/index';
|
|
108
108
|
import dialog from './dialog/index.js';
|
|
109
109
|
import dialogconfirm from './dialogconfirm/index.js';
|
|
110
110
|
import dialogform from './dialogform/index.js';
|