@fewangsit/wangsvue-presets 1.0.108-alpha.0 → 1.0.108
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.d.ts +14 -14
- package/fixedasset/badge/index.js +15 -14
- package/fixedasset/badgegroup/index.js +4 -2
- package/fixedasset/breadcrumb/index.d.ts +4 -4
- package/fixedasset/breadcrumb/index.js +6 -5
- package/fixedasset/button/index.d.ts +2 -2
- package/fixedasset/button/index.js +39 -80
- package/fixedasset/buttonbulkaction/index.d.ts +2 -2
- package/fixedasset/buttonbulkaction/index.js +8 -5
- package/fixedasset/buttondownload/index.d.ts +2 -2
- package/fixedasset/buttondownload/index.js +5 -4
- package/fixedasset/buttonfilter/index.d.ts +4 -7
- package/fixedasset/buttonfilter/index.js +5 -7
- package/fixedasset/buttonradio/index.d.ts +20 -20
- package/fixedasset/buttonradio/index.js +11 -10
- package/fixedasset/buttonsearch/index.d.ts +2 -2
- package/fixedasset/buttonsearch/index.js +9 -8
- package/fixedasset/calendar/index.js +64 -66
- package/fixedasset/card/index.js +2 -2
- package/fixedasset/checkbox/index.d.ts +58 -58
- package/fixedasset/checkbox/index.js +19 -18
- package/fixedasset/codesnippet/index.js +3 -3
- package/fixedasset/customcolumn/index.d.ts +2 -2
- package/fixedasset/customcolumn/index.js +3 -2
- package/fixedasset/datatable/index.d.ts +50 -43
- package/fixedasset/datatable/index.js +30 -24
- package/fixedasset/dialog/index.d.ts +4 -4
- package/fixedasset/dialog/index.js +16 -16
- package/fixedasset/dialogconfirm/index.d.ts +2 -2
- package/fixedasset/dialogconfirm/index.js +3 -2
- package/fixedasset/dialogform/index.d.ts +2 -2
- package/fixedasset/dialogform/index.js +4 -3
- package/fixedasset/dropdown/index.d.ts +41 -41
- package/fixedasset/dropdown/index.js +20 -21
- package/fixedasset/fieldwrapper/index.d.ts +2 -2
- package/fixedasset/fieldwrapper/index.js +8 -7
- package/fixedasset/fileupload/index.d.ts +2 -2
- package/fixedasset/fileupload/index.js +2 -1
- package/fixedasset/filtercontainer/index.d.ts +2 -2
- package/fixedasset/filtercontainer/index.js +3 -2
- package/fixedasset/form/index.d.ts +2 -2
- package/fixedasset/form/index.js +3 -2
- package/fixedasset/global.js +1 -1
- package/fixedasset/image/index.d.ts +2 -2
- package/fixedasset/image/index.js +21 -20
- package/fixedasset/index.es.js +795 -803
- package/fixedasset/index.system.js +2 -2
- package/fixedasset/inlinemessage/index.d.ts +4 -4
- package/fixedasset/inlinemessage/index.js +6 -4
- package/fixedasset/inputbadge/index.d.ts +10 -10
- package/fixedasset/inputbadge/index.js +6 -6
- package/fixedasset/inputcurrency/index.d.ts +6 -6
- package/fixedasset/inputcurrency/index.js +2 -1
- package/fixedasset/inputgroup/index.d.ts +2 -2
- package/fixedasset/inputgroup/index.js +8 -7
- package/fixedasset/inputgroupaddon/index.d.ts +6 -6
- package/fixedasset/inputgroupaddon/index.js +5 -4
- package/fixedasset/inputnumber/index.d.ts +2 -2
- package/fixedasset/inputnumber/index.js +8 -5
- package/fixedasset/inputotp/index.js +6 -7
- package/fixedasset/inputphonenumber/index.d.ts +8 -8
- package/fixedasset/inputphonenumber/index.js +7 -6
- package/fixedasset/inputtext/index.d.ts +4 -4
- package/fixedasset/inputtext/index.js +6 -5
- package/fixedasset/loading/index.d.ts +2 -2
- package/fixedasset/loading/index.js +5 -4
- package/fixedasset/menu/index.d.ts +3 -3
- package/fixedasset/menu/index.js +9 -5
- package/fixedasset/multiselect/index.d.ts +107 -107
- package/fixedasset/multiselect/index.js +25 -27
- package/fixedasset/overlaypanel/index.d.ts +2 -2
- package/fixedasset/overlaypanel/index.js +4 -3
- package/fixedasset/paginator/index.d.ts +19 -19
- package/fixedasset/paginator/index.js +24 -23
- package/fixedasset/password/index.d.ts +5 -5
- package/fixedasset/password/index.js +13 -13
- package/fixedasset/style.css +1325 -67
- package/fixedasset/tabmenu/index.js +13 -13
- package/fixedasset/textarea/index.d.ts +2 -2
- package/fixedasset/textarea/index.js +6 -5
- package/fixedasset/timeline/index.d.ts +2 -2
- package/fixedasset/timeline/index.js +12 -8
- package/fixedasset/toast/index.d.ts +8 -8
- package/fixedasset/toast/index.js +8 -7
- package/fixedasset/toggleswitch/index.d.ts +42 -42
- package/fixedasset/toggleswitch/index.js +12 -11
- package/fixedasset/tooltip/index.d.ts +2 -2
- package/fixedasset/tooltip/index.js +4 -3
- package/fixedasset/tree/index.d.ts +26 -29
- package/fixedasset/tree/index.js +17 -24
- package/fixedasset/username/index.js +7 -5
- package/fixedasset/validatormessage/index.d.ts +2 -2
- package/fixedasset/validatormessage/index.js +5 -2
- package/globalsettings/datatable/index.d.ts +9 -9
- package/globalsettings/datatable/index.js +3 -2
- package/globalsettings/index.es.js +1 -1
- package/globalsettings/index.system.js +1 -1
- package/globalsettings/style.css +1348 -42
- package/package.json +1 -1
- package/supplyasset/datatable/index.d.ts +9 -9
- package/supplyasset/datatable/index.js +3 -2
- package/supplyasset/index.es.js +5 -5
- package/supplyasset/index.system.js +1 -1
- package/supplyasset/style.css +1353 -47
- package/wangsvue/datatable/index.d.ts +2 -2
- package/wangsvue/datatable/index.js +2 -1
- package/wangsvue/style.css +1326 -68
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
|
|
1
|
+
export default definePreset;
|
|
2
|
+
declare namespace definePreset {
|
|
2
3
|
function root({ props, state }: {
|
|
3
4
|
props: any;
|
|
4
5
|
state: any;
|
|
5
6
|
}): {
|
|
6
7
|
class: (string | {
|
|
7
|
-
'bg-white': any;
|
|
8
|
-
'bg-general-50': boolean;
|
|
9
|
-
'ring-general-100': boolean;
|
|
10
|
-
'ring-primary-500': any;
|
|
11
|
-
'ring-general-200': any;
|
|
12
|
-
'!ring-danger-500'?: undefined;
|
|
8
|
+
'bg-white dark:bg-grayscale-800': any;
|
|
9
|
+
'bg-general-50 dark:bg-grayscale-300': boolean;
|
|
10
|
+
'ring-general-100 dark:ring-general-300': boolean;
|
|
11
|
+
'ring-primary-500 dark:ring-primary-300': any;
|
|
12
|
+
'ring-general-200 dark:ring-general-400': any;
|
|
13
|
+
'!ring-danger-500 dark:!ring-danger-600'?: undefined;
|
|
13
14
|
} | {
|
|
14
|
-
'!ring-danger-500': any;
|
|
15
|
-
'bg-white'?: undefined;
|
|
16
|
-
'bg-general-50'?: undefined;
|
|
17
|
-
'ring-general-100'?: undefined;
|
|
18
|
-
'ring-primary-500'?: undefined;
|
|
19
|
-
'ring-general-200'?: undefined;
|
|
15
|
+
'!ring-danger-500 dark:!ring-danger-600': any;
|
|
16
|
+
'bg-white dark:bg-grayscale-800'?: undefined;
|
|
17
|
+
'bg-general-50 dark:bg-grayscale-300'?: undefined;
|
|
18
|
+
'ring-general-100 dark:ring-general-300'?: undefined;
|
|
19
|
+
'ring-primary-500 dark:ring-primary-300'?: undefined;
|
|
20
|
+
'ring-general-200 dark:ring-general-400'?: undefined;
|
|
20
21
|
})[];
|
|
21
22
|
'data-wv-name': string;
|
|
22
23
|
'data-wv-section': string;
|
|
@@ -26,15 +27,15 @@ declare namespace _default {
|
|
|
26
27
|
state: any;
|
|
27
28
|
}): {
|
|
28
29
|
class: (string | {
|
|
29
|
-
'bg-primary-500': boolean;
|
|
30
|
-
'bg-general-200': any;
|
|
30
|
+
'bg-primary-500 dark:bg-primary-400': boolean;
|
|
31
|
+
'bg-general-200 dark:bg-general-400': any;
|
|
31
32
|
'outline-none outline-offset-0'?: undefined;
|
|
32
|
-
'peer-focus-visible:ring-8 peer-focus-visible:ring-offset-2 peer-focus-visible:ring-primary-400/[8%]'?: undefined;
|
|
33
|
+
'peer-focus-visible:ring-8 peer-focus-visible:ring-offset-2 peer-focus-visible:ring-primary-400/[8%] dark:peer-focus-visible:ring-primary-300'?: undefined;
|
|
33
34
|
} | {
|
|
34
35
|
'outline-none outline-offset-0': boolean;
|
|
35
|
-
'peer-focus-visible:ring-8 peer-focus-visible:ring-offset-2 peer-focus-visible:ring-primary-400/[8%]': boolean;
|
|
36
|
-
'bg-primary-500'?: undefined;
|
|
37
|
-
'bg-general-200'?: undefined;
|
|
36
|
+
'peer-focus-visible:ring-8 peer-focus-visible:ring-offset-2 peer-focus-visible:ring-primary-400/[8%] dark:peer-focus-visible:ring-primary-300': boolean;
|
|
37
|
+
'bg-primary-500 dark:bg-primary-400'?: undefined;
|
|
38
|
+
'bg-general-200 dark:bg-general-400'?: undefined;
|
|
38
39
|
})[];
|
|
39
40
|
};
|
|
40
41
|
function input({ props }: {
|
|
@@ -59,4 +60,3 @@ declare namespace _default {
|
|
|
59
60
|
class: string;
|
|
60
61
|
};
|
|
61
62
|
}
|
|
62
|
-
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
var toggleswitch_1 = require("../toggleswitch");
|
|
4
|
-
|
|
4
|
+
var definePreset = {
|
|
5
5
|
root: function (_a) {
|
|
6
6
|
var props = _a.props, state = _a.state;
|
|
7
7
|
return ({
|
|
@@ -17,14 +17,14 @@ exports.default = {
|
|
|
17
17
|
'rounded-full',
|
|
18
18
|
// Colors
|
|
19
19
|
{
|
|
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
|
-
'ring-general-200': props.disabled,
|
|
20
|
+
'bg-white dark:bg-grayscale-800': !props.disabled || state.checked,
|
|
21
|
+
'bg-general-50 dark:bg-grayscale-300': props.disabled && !state.checked,
|
|
22
|
+
'ring-general-100 dark:ring-general-300': !props.disabled && !state.checked,
|
|
23
|
+
'ring-primary-500 dark:ring-primary-300': !props.disabled && state.checked,
|
|
24
|
+
'ring-general-200 dark:ring-general-400': props.disabled,
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
|
-
'!ring-danger-500': props.invalid,
|
|
27
|
+
'!ring-danger-500 dark:!ring-danger-600': props.invalid,
|
|
28
28
|
},
|
|
29
29
|
// Misc
|
|
30
30
|
'cursor-pointer',
|
|
@@ -50,13 +50,13 @@ exports.default = {
|
|
|
50
50
|
'transition duration-200 ease-in-out',
|
|
51
51
|
// Colors
|
|
52
52
|
{
|
|
53
|
-
'bg-primary-500': state.checked && props.value !== undefined && !props.disabled,
|
|
54
|
-
'bg-general-200': state.checked && props.value !== undefined && props.disabled,
|
|
53
|
+
'bg-primary-500 dark:bg-primary-400': state.checked && props.value !== undefined && !props.disabled,
|
|
54
|
+
'bg-general-200 dark:bg-general-400': state.checked && props.value !== undefined && props.disabled,
|
|
55
55
|
},
|
|
56
56
|
// States
|
|
57
57
|
{
|
|
58
58
|
'outline-none outline-offset-0': !props.disabled,
|
|
59
|
-
'peer-focus-visible:ring-8 peer-focus-visible:ring-offset-2 peer-focus-visible:ring-primary-400/[8%]': !props.disabled,
|
|
59
|
+
'peer-focus-visible:ring-8 peer-focus-visible:ring-offset-2 peer-focus-visible:ring-primary-400/[8%] dark:peer-focus-visible:ring-primary-300': !props.disabled,
|
|
60
60
|
},
|
|
61
61
|
],
|
|
62
62
|
});
|
|
@@ -93,3 +93,4 @@ exports.default = {
|
|
|
93
93
|
labeltext: toggleswitch_1.default.labeltext,
|
|
94
94
|
tooltipicon: toggleswitch_1.default.tooltipicon,
|
|
95
95
|
};
|
|
96
|
+
exports.default = definePreset;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
export default definePreset;
|
|
2
|
+
declare namespace definePreset {
|
|
2
3
|
namespace buttontrigger {
|
|
3
4
|
function root({ context }: {
|
|
4
5
|
context: any;
|
|
@@ -62,4 +63,3 @@ declare namespace _default {
|
|
|
62
63
|
export { _class_4 as class };
|
|
63
64
|
}
|
|
64
65
|
}
|
|
65
|
-
export default _default;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
3
|
+
var definePreset = {
|
|
4
4
|
buttontrigger: {
|
|
5
5
|
root: function (_a) {
|
|
6
6
|
var context = _a.context;
|
|
7
7
|
return ({
|
|
8
8
|
'class': [
|
|
9
9
|
{ 'w-max': !context.showSearchInput },
|
|
10
|
-
'ring-1 ring-general-500 rounded p-[5px] ring-inset',
|
|
11
|
-
'focus-within:ring-2 focus-within:ring-primary-500 focus-within:outline-none',
|
|
10
|
+
'ring-1 ring-general-500 dark:ring-general-100 rounded p-[5px] ring-inset',
|
|
11
|
+
'focus-within:ring-2 focus-within:ring-primary-500 dark:focus-within:ring-primary-300 focus-within:outline-none',
|
|
12
12
|
],
|
|
13
13
|
'data-wv-section': 'buttontrigger',
|
|
14
14
|
});
|
|
15
15
|
},
|
|
16
16
|
icon: {
|
|
17
|
-
class: 'w-4 h-4 text-general-400 shrink-0',
|
|
17
|
+
class: 'w-4 h-4 text-general-400 dark:text-general-100 shrink-0',
|
|
18
18
|
},
|
|
19
19
|
},
|
|
20
20
|
collapsebutton: {
|
|
@@ -23,13 +23,13 @@ exports.default = {
|
|
|
23
23
|
return ({
|
|
24
24
|
'class': [
|
|
25
25
|
{ 'w-max': !context.showSearchInput },
|
|
26
|
-
'focus-within:ring-2 focus-within:ring-primary-500 focus-within:outline-none rounded',
|
|
26
|
+
'focus-within:ring-2 focus-within:ring-primary-500 dark:focus-within:ring-primary-300 focus-within:outline-none rounded',
|
|
27
27
|
],
|
|
28
28
|
'data-wv-section': 'collapsebutton',
|
|
29
29
|
});
|
|
30
30
|
},
|
|
31
31
|
icon: {
|
|
32
|
-
class: 'w-4 h-4 text-general-400 shrink-0',
|
|
32
|
+
class: 'w-4 h-4 text-general-400 dark:text-general-100 shrink-0',
|
|
33
33
|
},
|
|
34
34
|
},
|
|
35
35
|
resetbutton: {
|
|
@@ -38,7 +38,7 @@ exports.default = {
|
|
|
38
38
|
return ({
|
|
39
39
|
'class': [
|
|
40
40
|
{ invisible: !query },
|
|
41
|
-
'focus-within:ring-2 focus-within:ring-primary-500 focus-within:outline-none rounded',
|
|
41
|
+
'focus-within:ring-2 focus-within:ring-primary-500 dark:focus-within:ring-primary-300 focus-within:outline-none rounded',
|
|
42
42
|
],
|
|
43
43
|
'data-wv-section': 'resetbutton',
|
|
44
44
|
});
|
|
@@ -53,7 +53,7 @@ exports.default = {
|
|
|
53
53
|
{ show: context.showSearchInput },
|
|
54
54
|
'grid grid-cols-[max-content,auto,max-content] items-center gap-1',
|
|
55
55
|
'py-[5px] px-2 h-max max-w-[224px]',
|
|
56
|
-
'ring-inset ring-1 ring-general-500 rounded focus-within:outline-none focus-within:ring-primary-500 focus-within:ring-2',
|
|
56
|
+
'ring-inset ring-1 ring-general-500 dark:ring-general-300 rounded focus-within:outline-none focus-within:ring-primary-500 dark:focus-within:ring-primary-300 focus-within:ring-2',
|
|
57
57
|
],
|
|
58
58
|
'data-wv-section': 'form',
|
|
59
59
|
});
|
|
@@ -62,3 +62,4 @@ exports.default = {
|
|
|
62
62
|
class: '!h-max !py-0 !px-0',
|
|
63
63
|
},
|
|
64
64
|
};
|
|
65
|
+
exports.default = definePreset;
|
|
@@ -28,22 +28,25 @@ var preset = {
|
|
|
28
28
|
'text-xs font-normal placeholder:font-normal',
|
|
29
29
|
// Colors
|
|
30
30
|
{
|
|
31
|
-
'text-grayscale-900': !props.disabled,
|
|
32
|
-
'text-general-200': props.disabled,
|
|
31
|
+
'text-grayscale-900 dark:text-white': !props.disabled,
|
|
32
|
+
'text-general-200 dark:text-grayscale-500': props.disabled,
|
|
33
33
|
},
|
|
34
|
-
'
|
|
34
|
+
'bg-transparent dark:bg-transparent',
|
|
35
|
+
'placeholder:text-general-200 dark:placeholder:text-general-600',
|
|
35
36
|
// Shape
|
|
36
37
|
'appearance-none',
|
|
37
38
|
// Transitions
|
|
38
39
|
'transition-colors',
|
|
39
40
|
'duration-200',
|
|
40
41
|
// States
|
|
41
|
-
'outline-none focus:ring-primary-400',
|
|
42
|
+
'outline-none focus:ring-primary-400 dark:focus:ring-primary-400',
|
|
42
43
|
],
|
|
43
44
|
});
|
|
44
45
|
},
|
|
45
46
|
inputicon: {
|
|
46
|
-
class: [
|
|
47
|
+
class: [
|
|
48
|
+
'w-4 h-4 text-grayscale-900 dark:text-white peer-disabled:text-general-300 dark:peer-disabled:text-grayscale-700',
|
|
49
|
+
],
|
|
47
50
|
},
|
|
48
51
|
dropdownbutton: {
|
|
49
52
|
root: {
|
|
@@ -56,13 +59,10 @@ var preset = {
|
|
|
56
59
|
// Size
|
|
57
60
|
'px-2.5 py-1.5 leading-none',
|
|
58
61
|
// Colors
|
|
59
|
-
'
|
|
60
|
-
'bg-surface-100',
|
|
61
|
-
'ring-1 ring-inset ring-surface-300',
|
|
62
|
+
'ring-1 ring-inset',
|
|
62
63
|
// States
|
|
63
|
-
'hover:bg-surface-200',
|
|
64
64
|
'focus:outline-none focus:outline-offset-0 focus:ring-1',
|
|
65
|
-
'focus:ring-primary-400',
|
|
65
|
+
'focus:ring-primary-400 dark:focus:ring-primary-400',
|
|
66
66
|
],
|
|
67
67
|
},
|
|
68
68
|
},
|
|
@@ -73,18 +73,18 @@ var preset = {
|
|
|
73
73
|
'flex flex-col justify-start items-center',
|
|
74
74
|
// Size
|
|
75
75
|
'h-max p-6 gap-2.5',
|
|
76
|
-
'
|
|
76
|
+
'w-[272px] !min-w-[272px]',
|
|
77
77
|
// Shape
|
|
78
78
|
'rounded-lg',
|
|
79
79
|
// Colors
|
|
80
|
-
'bg-white shadow-panel',
|
|
80
|
+
'bg-white dark:bg-grayscale-900 shadow-panel',
|
|
81
81
|
],
|
|
82
82
|
}); },
|
|
83
83
|
datepickerMask: {
|
|
84
84
|
class: [
|
|
85
85
|
'fixed top-0 left-0 w-full h-full',
|
|
86
86
|
'flex items-center justify-center',
|
|
87
|
-
'bg-black bg-opacity-90',
|
|
87
|
+
'bg-black dark:bg-white bg-opacity-90',
|
|
88
88
|
],
|
|
89
89
|
},
|
|
90
90
|
header: function (_a) {
|
|
@@ -104,8 +104,8 @@ var preset = {
|
|
|
104
104
|
// Shape
|
|
105
105
|
'rounded-t-md',
|
|
106
106
|
// Colors
|
|
107
|
-
'text-grayscale-900',
|
|
108
|
-
'bg-white',
|
|
107
|
+
'text-grayscale-900 dark:text-white',
|
|
108
|
+
'bg-white dark:bg-grayscale-900',
|
|
109
109
|
],
|
|
110
110
|
});
|
|
111
111
|
},
|
|
@@ -124,11 +124,11 @@ var preset = {
|
|
|
124
124
|
// Size
|
|
125
125
|
'p-1.5 m-0',
|
|
126
126
|
// Colors
|
|
127
|
-
'text-grayscale-900',
|
|
127
|
+
'text-grayscale-900 dark:text-white',
|
|
128
128
|
'border-0 ',
|
|
129
|
-
'bg-transparent',
|
|
129
|
+
'bg-transparent dark:bg-transparent',
|
|
130
130
|
// States
|
|
131
|
-
'hover:bg-general-50',
|
|
131
|
+
'hover:bg-general-50 dark:hover:bg-general-900',
|
|
132
132
|
// Misc
|
|
133
133
|
'cursor-pointer overflow-hidden',
|
|
134
134
|
],
|
|
@@ -152,14 +152,14 @@ var preset = {
|
|
|
152
152
|
//Font
|
|
153
153
|
'text-xs font-normal',
|
|
154
154
|
// Colors
|
|
155
|
-
'text-grayscale-900',
|
|
156
|
-
'bg-white',
|
|
155
|
+
'text-grayscale-900 dark:text-white',
|
|
156
|
+
'bg-white dark:bg-grayscale-900',
|
|
157
157
|
// Transitions
|
|
158
158
|
'transition duration-200',
|
|
159
159
|
// Spacing
|
|
160
160
|
'mr-1',
|
|
161
161
|
// States
|
|
162
|
-
'hover:text-primary-400',
|
|
162
|
+
'hover:text-primary-400 dark:hover:text-primary-400',
|
|
163
163
|
// Misc
|
|
164
164
|
'cursor-pointer',
|
|
165
165
|
],
|
|
@@ -175,14 +175,14 @@ var preset = {
|
|
|
175
175
|
//Font
|
|
176
176
|
'text-xs font-normal',
|
|
177
177
|
// Colors
|
|
178
|
-
'text-grayscale-900',
|
|
179
|
-
'bg-white',
|
|
178
|
+
'text-grayscale-900 dark:text-white',
|
|
179
|
+
'bg-white dark:bg-grayscale-900',
|
|
180
180
|
// Transitions
|
|
181
181
|
'transition duration-200',
|
|
182
182
|
// Spacing
|
|
183
183
|
'm-0 mr-1',
|
|
184
184
|
// States
|
|
185
|
-
'hover:text-primary-600',
|
|
185
|
+
'hover:text-primary-600 dark:hover:text-primary-600',
|
|
186
186
|
// Misc
|
|
187
187
|
'cursor-pointer',
|
|
188
188
|
],
|
|
@@ -202,11 +202,11 @@ var preset = {
|
|
|
202
202
|
// Size
|
|
203
203
|
'p-1.5 m-0',
|
|
204
204
|
// Colors
|
|
205
|
-
'text-grayscale-900',
|
|
205
|
+
'text-grayscale-900 dark:text-white',
|
|
206
206
|
'border-0 ',
|
|
207
|
-
'bg-transparent',
|
|
207
|
+
'bg-transparent dark:bg-transparent',
|
|
208
208
|
// States
|
|
209
|
-
'hover:bg-general-50',
|
|
209
|
+
'hover:bg-general-50 dark:hover:bg-general-900',
|
|
210
210
|
// Misc
|
|
211
211
|
'cursor-pointer overflow-hidden',
|
|
212
212
|
],
|
|
@@ -221,7 +221,7 @@ var preset = {
|
|
|
221
221
|
'm-0',
|
|
222
222
|
'[&_th]:text-xs [&_td]:text-xs',
|
|
223
223
|
'[&_th]:font-normal [&_td]:font-normal',
|
|
224
|
-
'[&_th]:text-grayscale-900 [&_td]:text-grayscale-900',
|
|
224
|
+
'[&_th]:text-grayscale-900 dark:[&_th]:text-white [&_td]:text-grayscale-900 dark:[&_td]:text-white',
|
|
225
225
|
// Hide the other months day
|
|
226
226
|
'[&_[data-p-other-month="true"]]:invisible',
|
|
227
227
|
],
|
|
@@ -243,13 +243,12 @@ var preset = {
|
|
|
243
243
|
weekheader: {
|
|
244
244
|
class: [
|
|
245
245
|
'leading-6 text-sm font-normal',
|
|
246
|
-
'text-surface-600/70',
|
|
247
246
|
'opacity-40 cursor-default',
|
|
248
247
|
'mb-2',
|
|
249
248
|
],
|
|
250
249
|
},
|
|
251
250
|
weeknumber: {
|
|
252
|
-
class: ['
|
|
251
|
+
class: ['font-normal', 'opacity-40 cursor-default'],
|
|
253
252
|
},
|
|
254
253
|
weekday: {
|
|
255
254
|
class: [
|
|
@@ -278,14 +277,11 @@ var preset = {
|
|
|
278
277
|
'border-transparent border',
|
|
279
278
|
// Colors
|
|
280
279
|
{
|
|
281
|
-
'
|
|
282
|
-
'text-primary-400 ': context.selected && !context.disabled,
|
|
280
|
+
'bg-transparent': !context.selected && !context.disabled,
|
|
281
|
+
'text-primary-400 dark:text-primary-400': context.selected && !context.disabled,
|
|
283
282
|
},
|
|
284
283
|
// States
|
|
285
|
-
'focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-400/50',
|
|
286
|
-
{
|
|
287
|
-
'hover:bg-surface-100': !context.disabled,
|
|
288
|
-
},
|
|
284
|
+
'focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-400/50 dark:focus:ring-primary-400/50',
|
|
289
285
|
{
|
|
290
286
|
'opacity-40 cursor-default': context.disabled,
|
|
291
287
|
'cursor-pointer': !context.disabled,
|
|
@@ -306,11 +302,11 @@ var preset = {
|
|
|
306
302
|
'w-8 h-8',
|
|
307
303
|
// Colors
|
|
308
304
|
{
|
|
309
|
-
'bg-general-100': context.date.today && !context.selected,
|
|
310
|
-
'bg-primary-200 rounded-none': context.selected &&
|
|
305
|
+
'bg-general-100 dark:bg-general-500': context.date.today && !context.selected,
|
|
306
|
+
'bg-primary-200 dark:bg-general-600 rounded-none': context.selected &&
|
|
311
307
|
!(context.firstSelected || context.lastSelected) &&
|
|
312
308
|
!context.disabled,
|
|
313
|
-
'rounded-full bg-primary-500 text-white': context.firstSelected || context.lastSelected,
|
|
309
|
+
'rounded-full bg-primary-500 dark:bg-primary-300 text-white dark:text-grayscale-900': context.firstSelected || context.lastSelected,
|
|
314
310
|
},
|
|
315
311
|
{
|
|
316
312
|
'!rounded-full': !context.selected,
|
|
@@ -318,10 +314,10 @@ var preset = {
|
|
|
318
314
|
// States
|
|
319
315
|
'focus:outline-none focus-visible:outline-none',
|
|
320
316
|
{
|
|
321
|
-
'hover:bg-primary-200/90': context.selected,
|
|
322
|
-
'hover:!bg-primary-500/90': context.lastSelected || context.firstSelected,
|
|
323
|
-
'hover:bg-general-50': !context.selected && !context.date.today,
|
|
324
|
-
'hover:bg-general-100/90': context.date.today,
|
|
317
|
+
'hover:bg-primary-200/90 dark:hover:bg-primary-300/90': context.selected,
|
|
318
|
+
'hover:!bg-primary-500/90 dark:hover:!bg-primary-300/90': context.lastSelected || context.firstSelected,
|
|
319
|
+
'hover:bg-general-50 dark:hover:bg-general-900': !context.selected && !context.date.today,
|
|
320
|
+
'hover:bg-general-100/90 dark:hover:bg-general-500/90': context.date.today,
|
|
325
321
|
},
|
|
326
322
|
{
|
|
327
323
|
'opacity-40 cursor-default': context.disabled,
|
|
@@ -350,17 +346,17 @@ var preset = {
|
|
|
350
346
|
'!rounded-[20px]',
|
|
351
347
|
// Colors
|
|
352
348
|
{
|
|
353
|
-
'text-grayscale-900 bg-transparent': !context.selected && !context.disabled,
|
|
354
|
-
'bg-primary-400 text-white': context.selected && !context.disabled,
|
|
355
|
-
'cursor-default text-general-200': context.disabled,
|
|
349
|
+
'text-grayscale-900 dark:text-white bg-transparent dark:bg-transparent': !context.selected && !context.disabled,
|
|
350
|
+
'bg-primary-400 dark:bg-primary-400 text-white dark:text-grayscale-900': context.selected && !context.disabled,
|
|
351
|
+
'cursor-default text-general-200 dark:text-general-600': context.disabled,
|
|
356
352
|
},
|
|
357
353
|
/*
|
|
358
354
|
* States
|
|
359
355
|
* 'focus:outline-none focus:outline-offset-0 focus:ring-1 focus:ring-primary-400',
|
|
360
356
|
*/
|
|
361
357
|
{
|
|
362
|
-
'hover:bg-primary-50': !context.selected && !context.disabled,
|
|
363
|
-
'hover:bg-primary-400/90': context.selected && !context.disabled,
|
|
358
|
+
'hover:bg-primary-50 dark:hover:bg-grayscale-800': !context.selected && !context.disabled,
|
|
359
|
+
'hover:bg-primary-400/90 dark:hover:bg-primary-400/90': context.selected && !context.disabled,
|
|
364
360
|
},
|
|
365
361
|
// Misc
|
|
366
362
|
'cursor-pointer',
|
|
@@ -387,17 +383,17 @@ var preset = {
|
|
|
387
383
|
'!rounded-[20px]',
|
|
388
384
|
// Colors
|
|
389
385
|
{
|
|
390
|
-
'text-grayscale-900 bg-transparent': !context.selected && !context.disabled,
|
|
391
|
-
'bg-primary-400 text-white': context.selected && !context.disabled,
|
|
392
|
-
'cursor-default text-general-200': context.disabled,
|
|
386
|
+
'text-grayscale-900 dark:text-white bg-transparent dark:bg-transparent': !context.selected && !context.disabled,
|
|
387
|
+
'bg-primary-400 dark:bg-primary-400 text-white dark:text-grayscale-900': context.selected && !context.disabled,
|
|
388
|
+
'cursor-default text-general-200 dark:text-general-600': context.disabled,
|
|
393
389
|
},
|
|
394
390
|
/*
|
|
395
391
|
* States
|
|
396
392
|
* 'focus:outline-none focus:outline-offset-0 focus:ring-1 focus:ring-primary-400',
|
|
397
393
|
*/
|
|
398
394
|
{
|
|
399
|
-
'hover:bg-primary-50': !context.selected && !context.disabled,
|
|
400
|
-
'hover:bg-primary-400/90': context.selected && !context.disabled,
|
|
395
|
+
'hover:bg-primary-50 dark:hover:bg-grayscale-800': !context.selected && !context.disabled,
|
|
396
|
+
'hover:bg-primary-400/90 dark:hover:bg-primary-400/90': context.selected && !context.disabled,
|
|
401
397
|
},
|
|
402
398
|
// Misc
|
|
403
399
|
'cursor-pointer',
|
|
@@ -480,7 +476,7 @@ var preset = {
|
|
|
480
476
|
},
|
|
481
477
|
timepickerlabel: {
|
|
482
478
|
class: [
|
|
483
|
-
'w-[39px] h-[26px] flex justify-center items-center ring-general-200 rounded',
|
|
479
|
+
'w-[39px] h-[26px] flex justify-center items-center ring-general-200 dark:ring-general-200 rounded',
|
|
484
480
|
{
|
|
485
481
|
'ring-1': !isChromeBased,
|
|
486
482
|
'ring-[0.5px]': isChromeBased,
|
|
@@ -496,9 +492,9 @@ var preset = {
|
|
|
496
492
|
'p-0.5 m-0',
|
|
497
493
|
'!h-6 !w-6',
|
|
498
494
|
// Colors
|
|
499
|
-
'text-grayscale-900',
|
|
495
|
+
'text-grayscale-900 dark:text-white',
|
|
500
496
|
'border-0',
|
|
501
|
-
'bg-transparent',
|
|
497
|
+
'bg-transparent dark:bg-transparent',
|
|
502
498
|
/*
|
|
503
499
|
* States
|
|
504
500
|
* 'hover:text-surface-700',
|
|
@@ -522,9 +518,9 @@ var preset = {
|
|
|
522
518
|
'p-0.5 m-0',
|
|
523
519
|
'!h-6 !w-6',
|
|
524
520
|
// Colors
|
|
525
|
-
'text-grayscale-900',
|
|
521
|
+
'text-grayscale-900 dark:text-white',
|
|
526
522
|
'border-0',
|
|
527
|
-
'bg-transparent',
|
|
523
|
+
'bg-transparent dark:bg-transparent',
|
|
528
524
|
/*
|
|
529
525
|
* States
|
|
530
526
|
* 'hover:text-surface-700',
|
|
@@ -541,7 +537,9 @@ var preset = {
|
|
|
541
537
|
],
|
|
542
538
|
},
|
|
543
539
|
container: {
|
|
544
|
-
class: [
|
|
540
|
+
class: [
|
|
541
|
+
'text-grayscale-900 dark:text-white text-xs flex flex-col gap-1 w-full',
|
|
542
|
+
],
|
|
545
543
|
},
|
|
546
544
|
group: {
|
|
547
545
|
class: [],
|
|
@@ -553,7 +551,7 @@ var preset = {
|
|
|
553
551
|
// Spacing
|
|
554
552
|
'pt-2.5 pb-1.5 px-0',
|
|
555
553
|
// Shape
|
|
556
|
-
'border-t
|
|
554
|
+
'border-t',
|
|
557
555
|
],
|
|
558
556
|
},
|
|
559
557
|
todaybutton: {
|
|
@@ -566,8 +564,8 @@ var preset = {
|
|
|
566
564
|
// Shape
|
|
567
565
|
'',
|
|
568
566
|
// Colors
|
|
569
|
-
'bg-transparent border-transparent',
|
|
570
|
-
'text-primary-400',
|
|
567
|
+
'bg-transparent dark:bg-transparent border-transparent dark:border-transparent',
|
|
568
|
+
'text-primary-400 dark:text-primary-400',
|
|
571
569
|
// Transitions
|
|
572
570
|
'transition-colors duration-200 ease-in-out',
|
|
573
571
|
/*
|
|
@@ -589,14 +587,14 @@ var preset = {
|
|
|
589
587
|
'px-2.5 py-1.5 text-sm leading-none',
|
|
590
588
|
// Shape
|
|
591
589
|
// Colors
|
|
592
|
-
'bg-transparent border-transparent',
|
|
593
|
-
'text-primary-400',
|
|
590
|
+
'bg-transparent dark:bg-transparent border-transparent dark:border-transparent',
|
|
591
|
+
'text-primary-400 dark:text-primary-400',
|
|
594
592
|
// Transitions
|
|
595
593
|
'transition-colors duration-200 ease-in-out',
|
|
596
594
|
// States
|
|
597
595
|
'focus:outline-none focus:outline-offset-0 focus:ring-2 ring-inset',
|
|
598
|
-
'focus:ring-primary-400',
|
|
599
|
-
'hover:bg-primary-300/20',
|
|
596
|
+
'focus:ring-primary-400 dark:focus:ring-primary-400',
|
|
597
|
+
'hover:bg-primary-300/20 dark:hover:bg-primary-300/20',
|
|
600
598
|
// Misc
|
|
601
599
|
'cursor-pointer',
|
|
602
600
|
],
|
package/fixedasset/card/index.js
CHANGED