@fewangsit/wangsvue-presets 1.0.107 → 1.0.108-alpha.1
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/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 -44
- package/fixedasset/datatable/index.js +34 -31
- 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 +793 -804
- 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 +1333 -77
- 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 -10
- package/globalsettings/datatable/index.js +7 -9
- package/globalsettings/index.es.js +7 -8
- package/globalsettings/index.system.js +2 -2
- package/globalsettings/style.css +1353 -49
- package/package.json +1 -1
- package/supplyasset/datatable/index.d.ts +9 -10
- package/supplyasset/datatable/index.js +7 -9
- package/supplyasset/index.es.js +13 -14
- package/supplyasset/index.system.js +2 -2
- package/supplyasset/style.css +1359 -55
- package/wangsvue/datatable/index.d.ts +2 -3
- package/wangsvue/datatable/index.js +6 -8
- package/wangsvue/index.es.js +14 -15
- package/wangsvue/index.system.js +2 -2
- package/wangsvue/style.css +1332 -76
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
3
|
+
var definePreset = {
|
|
4
4
|
root: {
|
|
5
5
|
class: [
|
|
6
6
|
// Flex & Alignment
|
|
7
7
|
'flex items-center justify-start flex-wrap gap-0.5',
|
|
8
|
-
'bg-white',
|
|
9
|
-
'text-grayscale-900',
|
|
8
|
+
'bg-white dark:bg-grayscale-900',
|
|
9
|
+
'text-grayscale-900 dark:text-grayscale-50',
|
|
10
10
|
],
|
|
11
11
|
},
|
|
12
12
|
paginatorwrapper: {
|
|
@@ -29,7 +29,7 @@ exports.default = {
|
|
|
29
29
|
// Size
|
|
30
30
|
'w-6 h-6',
|
|
31
31
|
// Color
|
|
32
|
-
'text-general-300',
|
|
32
|
+
'text-general-300 dark:text-grayscale-500 ',
|
|
33
33
|
// Transition
|
|
34
34
|
'transition duration-200',
|
|
35
35
|
// Misc
|
|
@@ -52,7 +52,7 @@ exports.default = {
|
|
|
52
52
|
// Size
|
|
53
53
|
'w-6 h-6',
|
|
54
54
|
// Color
|
|
55
|
-
'text-general-300',
|
|
55
|
+
'text-general-300 dark:text-grayscale-500 ',
|
|
56
56
|
// Transition
|
|
57
57
|
'transition duration-200',
|
|
58
58
|
// Misc
|
|
@@ -75,7 +75,7 @@ exports.default = {
|
|
|
75
75
|
// Size
|
|
76
76
|
'w-6 h-6',
|
|
77
77
|
// Color
|
|
78
|
-
'text-general-300',
|
|
78
|
+
'text-general-300 dark:text-grayscale-500 ',
|
|
79
79
|
// Transition
|
|
80
80
|
'transition duration-200',
|
|
81
81
|
// Misc
|
|
@@ -98,7 +98,7 @@ exports.default = {
|
|
|
98
98
|
// Size
|
|
99
99
|
'w-6 h-6',
|
|
100
100
|
// Color
|
|
101
|
-
'text-general-300',
|
|
101
|
+
'text-general-300 dark:text-grayscale-500 ',
|
|
102
102
|
// Transition
|
|
103
103
|
'transition duration-200',
|
|
104
104
|
// Misc
|
|
@@ -120,13 +120,13 @@ exports.default = {
|
|
|
120
120
|
'w-6 h-6',
|
|
121
121
|
// Color
|
|
122
122
|
{
|
|
123
|
-
'text-general-300 border-none hover:bg-grayscale-50': !context.active,
|
|
124
|
-
'text-white bg-primary-500': context.active,
|
|
123
|
+
'text-general-300 dark:text-grayscale-700 border-none hover:bg-grayscale-50 dark:hover:bg-grayscale-800': !context.active,
|
|
124
|
+
'text-white dark:text-primary-800 bg-primary-500 dark:bg-primary-300': context.active,
|
|
125
125
|
},
|
|
126
126
|
// State
|
|
127
127
|
{
|
|
128
128
|
'hover:border-surface-300': !context.disabled && !context.active,
|
|
129
|
-
'focus-visible:outline-none focus-visible:outline-offset-0 focus-visible:ring-2 focus-visible:ring-primary-500': !context.disabled,
|
|
129
|
+
'focus-visible:outline-none focus-visible:outline-offset-0 focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-300': !context.disabled,
|
|
130
130
|
},
|
|
131
131
|
// Transition
|
|
132
132
|
'transition duration-200',
|
|
@@ -151,13 +151,13 @@ exports.default = {
|
|
|
151
151
|
'rounded-[50px]',
|
|
152
152
|
// Color and Background
|
|
153
153
|
'bg-transparent',
|
|
154
|
-
'border-[0.5px] border-general-200',
|
|
154
|
+
'border-[0.5px] border-general-200 dark:border-grayscale-600',
|
|
155
155
|
// Transitions
|
|
156
156
|
'transition-all',
|
|
157
157
|
'duration-200',
|
|
158
158
|
// States
|
|
159
159
|
{
|
|
160
|
-
'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-600': !state.focused,
|
|
160
|
+
'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-600 dark:focus-visible:ring-primary-400': !state.focused,
|
|
161
161
|
},
|
|
162
162
|
// Misc
|
|
163
163
|
'cursor-pointer',
|
|
@@ -180,7 +180,7 @@ exports.default = {
|
|
|
180
180
|
'flex items-center',
|
|
181
181
|
// Color and Background
|
|
182
182
|
'bg-transparent',
|
|
183
|
-
'text-general-800',
|
|
183
|
+
'text-general-800 dark:text-general-50',
|
|
184
184
|
// Sizing and Spacing
|
|
185
185
|
'w-max',
|
|
186
186
|
// 'py-1.5 px-3 pr-0',
|
|
@@ -228,9 +228,9 @@ exports.default = {
|
|
|
228
228
|
'rounded-md',
|
|
229
229
|
// 'shadow-md',
|
|
230
230
|
// Color
|
|
231
|
-
'bg-white',
|
|
232
|
-
'text-general-800',
|
|
233
|
-
'ring-1 ring-inset ring-general-200',
|
|
231
|
+
'bg-white dark:bg-grayscale-900',
|
|
232
|
+
'text-general-800 dark:text-general-100',
|
|
233
|
+
'ring-1 ring-inset ring-general-200 dark:ring-grayscale-600',
|
|
234
234
|
],
|
|
235
235
|
},
|
|
236
236
|
wrapper: {
|
|
@@ -274,7 +274,7 @@ exports.default = {
|
|
|
274
274
|
// !context.focused && context.selected,
|
|
275
275
|
// },
|
|
276
276
|
//States
|
|
277
|
-
'hover:bg-primary-50',
|
|
277
|
+
'hover:bg-primary-50 dark:hover:bg-grayscale-800',
|
|
278
278
|
// Misc
|
|
279
279
|
'cursor-pointer',
|
|
280
280
|
'overflow-hidden',
|
|
@@ -300,8 +300,8 @@ exports.default = {
|
|
|
300
300
|
'flex-auto',
|
|
301
301
|
// Color and Background
|
|
302
302
|
'bg-transparent',
|
|
303
|
-
'border-general-200 border-[0.5px]',
|
|
304
|
-
'text-general-800',
|
|
303
|
+
'border-general-200 dark:border-grayscale-600 border-[0.5px]',
|
|
304
|
+
'text-general-800 dark:text-general-100',
|
|
305
305
|
// Sizing and Spacing
|
|
306
306
|
'max-w-[3rem] w-fit',
|
|
307
307
|
'px-3 py-1',
|
|
@@ -311,7 +311,7 @@ exports.default = {
|
|
|
311
311
|
'transition',
|
|
312
312
|
'duration-200',
|
|
313
313
|
// States
|
|
314
|
-
'hover:ring-general-200',
|
|
314
|
+
'hover:ring-general-200 dark:hover:ring-grayscale-600',
|
|
315
315
|
'focus-visible:outline-none focus-visible:shadow-none',
|
|
316
316
|
// 'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-body',
|
|
317
317
|
// Misc
|
|
@@ -343,7 +343,7 @@ exports.default = {
|
|
|
343
343
|
'duration-200',
|
|
344
344
|
// States
|
|
345
345
|
{
|
|
346
|
-
'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-600': !state.focused,
|
|
346
|
+
'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-600 dark:focus-visible:ring-primary-400': !state.focused,
|
|
347
347
|
},
|
|
348
348
|
// Misc
|
|
349
349
|
'cursor-pointer',
|
|
@@ -453,13 +453,13 @@ exports.default = {
|
|
|
453
453
|
'text-surface-700/80': !context.focused && !context.selected,
|
|
454
454
|
},
|
|
455
455
|
{
|
|
456
|
-
'bg-primary-500 text-white': context.focused && context.selected,
|
|
456
|
+
'bg-primary-500 dark:bg-primary-300 text-white dark:text-primary-800': context.focused && context.selected,
|
|
457
457
|
},
|
|
458
458
|
{
|
|
459
459
|
'bg-transparent text-surface-700/80': !context.focused && context.selected,
|
|
460
460
|
},
|
|
461
461
|
//States
|
|
462
|
-
'hover:bg-primary-500 hover:text-white',
|
|
462
|
+
'hover:bg-primary-500 hover:text-white dark:hover:bg-primary-300 dark:hover:text-primary-800',
|
|
463
463
|
// Misc
|
|
464
464
|
'cursor-pointer',
|
|
465
465
|
'overflow-hidden',
|
|
@@ -472,3 +472,4 @@ exports.default = {
|
|
|
472
472
|
class: ['text-xs font-normal leading-6 px-3'],
|
|
473
473
|
},
|
|
474
474
|
};
|
|
475
|
+
exports.default = definePreset;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
export default definePreset;
|
|
2
|
+
declare namespace definePreset {
|
|
2
3
|
function root({ props }: {
|
|
3
4
|
props: any;
|
|
4
5
|
}): {
|
|
@@ -22,9 +23,9 @@ declare namespace _default {
|
|
|
22
23
|
instance: any;
|
|
23
24
|
}): {
|
|
24
25
|
class: (string | {
|
|
25
|
-
'bg-red-500/50': boolean;
|
|
26
|
-
'bg-orange-500/50': boolean;
|
|
27
|
-
'bg-green-500/50': boolean;
|
|
26
|
+
'bg-red-500/50 dark:bg-red-600/50': boolean;
|
|
27
|
+
'bg-orange-500/50 dark:bg-orange-600/50': boolean;
|
|
28
|
+
'bg-green-500/50 dark:bg-green-600/50': boolean;
|
|
28
29
|
})[];
|
|
29
30
|
};
|
|
30
31
|
namespace showicon {
|
|
@@ -42,4 +43,3 @@ declare namespace _default {
|
|
|
42
43
|
let leaveToClass: string;
|
|
43
44
|
}
|
|
44
45
|
}
|
|
45
|
-
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
3
|
+
var definePreset = {
|
|
4
4
|
root: function (_a) {
|
|
5
5
|
var props = _a.props;
|
|
6
6
|
return ({
|
|
@@ -8,7 +8,7 @@ exports.default = {
|
|
|
8
8
|
'w-full',
|
|
9
9
|
'inline-flex relative',
|
|
10
10
|
// 'border-[0.5px] border-general-200 rounded',
|
|
11
|
-
'text-general-800',
|
|
11
|
+
'text-general-800 dark:text-general-50',
|
|
12
12
|
{
|
|
13
13
|
'opacity-60 select-none pointer-events-none cursor-default': props.disabled,
|
|
14
14
|
},
|
|
@@ -17,7 +17,7 @@ exports.default = {
|
|
|
17
17
|
},
|
|
18
18
|
input: {
|
|
19
19
|
class: [
|
|
20
|
-
'!bg-primary-500',
|
|
20
|
+
'!bg-primary-500 dark:!bg-primary-300',
|
|
21
21
|
'placeholder:!font-normal',
|
|
22
22
|
// 'bg-white text-general-800 placeholder:text-general-200 placeholder:font-light',
|
|
23
23
|
// 'w-full h-full !max-h-[43px]',
|
|
@@ -36,8 +36,8 @@ exports.default = {
|
|
|
36
36
|
'border-0',
|
|
37
37
|
'shadow-md rounded-md',
|
|
38
38
|
// Colors
|
|
39
|
-
'bg-white',
|
|
40
|
-
'text-general-800',
|
|
39
|
+
'bg-white dark:bg-grayscale-900',
|
|
40
|
+
'text-general-800 dark:text-general-50',
|
|
41
41
|
'',
|
|
42
42
|
],
|
|
43
43
|
},
|
|
@@ -53,7 +53,6 @@ exports.default = {
|
|
|
53
53
|
// Spacing
|
|
54
54
|
'mb-2',
|
|
55
55
|
// Colors
|
|
56
|
-
'bg-surface-100',
|
|
57
56
|
],
|
|
58
57
|
},
|
|
59
58
|
meterlabel: function (_a) {
|
|
@@ -65,9 +64,9 @@ exports.default = {
|
|
|
65
64
|
'h-full',
|
|
66
65
|
// Colors
|
|
67
66
|
{
|
|
68
|
-
'bg-red-500/50': ((_b = instance === null || instance === void 0 ? void 0 : instance.meter) === null || _b === void 0 ? void 0 : _b.strength) == 'weak',
|
|
69
|
-
'bg-orange-500/50': ((_c = instance === null || instance === void 0 ? void 0 : instance.meter) === null || _c === void 0 ? void 0 : _c.strength) == 'medium',
|
|
70
|
-
'bg-green-500/50': ((_d = instance === null || instance === void 0 ? void 0 : instance.meter) === null || _d === void 0 ? void 0 : _d.strength) == 'strong',
|
|
67
|
+
'bg-red-500/50 dark:bg-red-600/50': ((_b = instance === null || instance === void 0 ? void 0 : instance.meter) === null || _b === void 0 ? void 0 : _b.strength) == 'weak',
|
|
68
|
+
'bg-orange-500/50 dark:bg-orange-600/50': ((_c = instance === null || instance === void 0 ? void 0 : instance.meter) === null || _c === void 0 ? void 0 : _c.strength) == 'medium',
|
|
69
|
+
'bg-green-500/50 dark:bg-green-600/50': ((_d = instance === null || instance === void 0 ? void 0 : instance.meter) === null || _d === void 0 ? void 0 : _d.strength) == 'strong',
|
|
71
70
|
},
|
|
72
71
|
// Transitions
|
|
73
72
|
'transition-all duration-1000 ease-in-out',
|
|
@@ -77,15 +76,15 @@ exports.default = {
|
|
|
77
76
|
showicon: {
|
|
78
77
|
class: [
|
|
79
78
|
'absolute top-[54%] right-3 -mt-2',
|
|
80
|
-
'text-general-200',
|
|
81
|
-
'focus-visible:text-general-500 hover:text-general-500',
|
|
82
|
-
'[&>.icon]:!w-4 [&>.icon]:!h-4'
|
|
79
|
+
'text-general-200 dark:text-general-400',
|
|
80
|
+
'focus-visible:text-general-500 dark:focus-visible:text-general-100 hover:text-general-500 dark:hover:text-general-100',
|
|
81
|
+
'[&>.icon]:!w-4 [&>.icon]:!h-4',
|
|
83
82
|
],
|
|
84
83
|
},
|
|
85
84
|
hideicon: {
|
|
86
85
|
class: [
|
|
87
86
|
'absolute top-[54%] right-3 -mt-2',
|
|
88
|
-
'text-general-200',
|
|
87
|
+
'text-general-200 dark:text-general-400',
|
|
89
88
|
],
|
|
90
89
|
},
|
|
91
90
|
transition: {
|
|
@@ -95,3 +94,4 @@ exports.default = {
|
|
|
95
94
|
leaveToClass: 'opacity-0',
|
|
96
95
|
},
|
|
97
96
|
};
|
|
97
|
+
exports.default = definePreset;
|