@fewangsit/wangsvue-presets 1.0.99-alpha.3 → 1.0.99-alpha.5
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/index.system.js +1 -1
- package/fixedasset/style.css +14 -0
- package/fixedasset/tabmenu/index.js +28 -14
- package/globalsettings/index.system.js +2 -2
- package/globalsettings/style.css +14 -0
- package/globalsettings/tabmenu/index.js +28 -14
- package/package.json +1 -1
- package/supplyasset/index.system.js +1 -1
- package/supplyasset/style.css +14 -0
- package/supplyasset/tabmenu/index.js +28 -14
- package/wangsvue/index.system.js +2 -2
- package/wangsvue/style.css +10 -0
- package/wangsvue/tabmenu/index.js +2 -2
package/fixedasset/style.css
CHANGED
|
@@ -2519,6 +2519,10 @@
|
|
|
2519
2519
|
overflow: hidden;
|
|
2520
2520
|
}
|
|
2521
2521
|
|
|
2522
|
+
.overflow-visible{
|
|
2523
|
+
overflow: visible;
|
|
2524
|
+
}
|
|
2525
|
+
|
|
2522
2526
|
.overflow-scroll{
|
|
2523
2527
|
overflow: scroll;
|
|
2524
2528
|
}
|
|
@@ -2539,6 +2543,10 @@
|
|
|
2539
2543
|
overflow-y: hidden;
|
|
2540
2544
|
}
|
|
2541
2545
|
|
|
2546
|
+
.overflow-x-visible{
|
|
2547
|
+
overflow-x: visible;
|
|
2548
|
+
}
|
|
2549
|
+
|
|
2542
2550
|
.overscroll-auto{
|
|
2543
2551
|
overscroll-behavior: auto;
|
|
2544
2552
|
}
|
|
@@ -4329,6 +4337,12 @@
|
|
|
4329
4337
|
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
4330
4338
|
}
|
|
4331
4339
|
|
|
4340
|
+
.shadow-\[-2px_2px_2px_rgba\(0\2c 0\2c 0\2c 0\.25\)\]{
|
|
4341
|
+
--tw-shadow: -2px 2px 2px rgba(0,0,0,0.25);
|
|
4342
|
+
--tw-shadow-colored: -2px 2px 2px var(--tw-shadow-color);
|
|
4343
|
+
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
4344
|
+
}
|
|
4345
|
+
|
|
4332
4346
|
.shadow-\[-4px_4px_20px_0px_\#0000001A\]{
|
|
4333
4347
|
--tw-shadow: -4px 4px 20px 0px #0000001A;
|
|
4334
4348
|
--tw-shadow-colored: -4px 4px 20px 0px var(--tw-shadow-color);
|
|
@@ -3,19 +3,25 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
var core_1 = require("@wangs-ui/core");
|
|
4
4
|
exports.default = (0, core_1.definePreset)('WANGS-TAB-MENU', {
|
|
5
5
|
root: {
|
|
6
|
-
class: 'overflow-x-
|
|
6
|
+
class: 'overflow-x-visible',
|
|
7
7
|
style: 'scrollbar-width: none',
|
|
8
8
|
},
|
|
9
|
-
menu: {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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': props.type === 'segmented',
|
|
22
|
+
},
|
|
23
|
+
],
|
|
24
|
+
});
|
|
19
25
|
},
|
|
20
26
|
menuitem: {
|
|
21
27
|
class: 'mr-0',
|
|
@@ -34,12 +40,14 @@ exports.default = (0, core_1.definePreset)('WANGS-TAB-MENU', {
|
|
|
34
40
|
// Spacing
|
|
35
41
|
{
|
|
36
42
|
'rounded-xl py-1 px-3': props.type === 'pill',
|
|
37
|
-
'
|
|
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-6': props.type === 'segmented',
|
|
38
46
|
'ml-1': props.type === 'pill' && context.index !== 0,
|
|
39
47
|
},
|
|
40
48
|
// Shape
|
|
41
49
|
{
|
|
42
|
-
'border-b-2': props.type
|
|
50
|
+
'border-b-2': props.type === 'tab',
|
|
43
51
|
},
|
|
44
52
|
// Colors and Conditions
|
|
45
53
|
{
|
|
@@ -49,6 +57,8 @@ exports.default = (0, core_1.definePreset)('WANGS-TAB-MENU', {
|
|
|
49
57
|
'text-primary-500': context.active,
|
|
50
58
|
'bg-primary-50 text-primary-500': props.type === 'pill' && context.active,
|
|
51
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,
|
|
52
62
|
'bg-transparent ': props.type !== 'pill' && !context.active,
|
|
53
63
|
},
|
|
54
64
|
// States
|
|
@@ -80,7 +90,11 @@ exports.default = (0, core_1.definePreset)('WANGS-TAB-MENU', {
|
|
|
80
90
|
return ({
|
|
81
91
|
class: [
|
|
82
92
|
'grow border-b-2 border-primary-100',
|
|
83
|
-
{
|
|
93
|
+
{
|
|
94
|
+
hidden: props.type === 'pill' ||
|
|
95
|
+
props.useTrailingLine === false ||
|
|
96
|
+
props.type === 'segmented',
|
|
97
|
+
},
|
|
84
98
|
],
|
|
85
99
|
});
|
|
86
100
|
},
|