@fewangsit/wangsvue-presets 1.0.99-alpha.2 → 1.0.99-alpha.4
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 +33 -0
- package/fixedasset/tabmenu/index.d.ts +1 -1
- package/fixedasset/tabmenu/index.js +29 -15
- package/globalsettings/index.system.js +2 -2
- package/globalsettings/style.css +22 -0
- package/globalsettings/tabmenu/index.d.ts +1 -1
- package/globalsettings/tabmenu/index.js +29 -15
- package/package.json +1 -1
- package/supplyasset/index.system.js +1 -1
- package/supplyasset/style.css +22 -0
- package/supplyasset/tabmenu/index.d.ts +1 -1
- package/supplyasset/tabmenu/index.js +29 -15
- package/wangsvue/index.system.js +2 -2
- package/wangsvue/style.css +14 -0
- package/wangsvue/tabmenu/index.d.ts +1 -1
- package/wangsvue/tabmenu/index.js +3 -3
package/fixedasset/style.css
CHANGED
|
@@ -1249,6 +1249,10 @@
|
|
|
1249
1249
|
margin-right: -1.75rem;
|
|
1250
1250
|
}
|
|
1251
1251
|
|
|
1252
|
+
.-mt-0\.5{
|
|
1253
|
+
margin-top: -0.125rem;
|
|
1254
|
+
}
|
|
1255
|
+
|
|
1252
1256
|
.-mt-1\.5{
|
|
1253
1257
|
margin-top: -0.375rem;
|
|
1254
1258
|
}
|
|
@@ -2519,6 +2523,10 @@
|
|
|
2519
2523
|
overflow: hidden;
|
|
2520
2524
|
}
|
|
2521
2525
|
|
|
2526
|
+
.overflow-visible{
|
|
2527
|
+
overflow: visible;
|
|
2528
|
+
}
|
|
2529
|
+
|
|
2522
2530
|
.overflow-scroll{
|
|
2523
2531
|
overflow: scroll;
|
|
2524
2532
|
}
|
|
@@ -2539,6 +2547,10 @@
|
|
|
2539
2547
|
overflow-y: hidden;
|
|
2540
2548
|
}
|
|
2541
2549
|
|
|
2550
|
+
.overflow-x-visible{
|
|
2551
|
+
overflow-x: visible;
|
|
2552
|
+
}
|
|
2553
|
+
|
|
2542
2554
|
.overscroll-auto{
|
|
2543
2555
|
overscroll-behavior: auto;
|
|
2544
2556
|
}
|
|
@@ -4329,6 +4341,12 @@
|
|
|
4329
4341
|
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
4330
4342
|
}
|
|
4331
4343
|
|
|
4344
|
+
.shadow-\[-2px_2px_2px_rgba\(0\2c 0\2c 0\2c 0\.25\)\]{
|
|
4345
|
+
--tw-shadow: -2px 2px 2px rgba(0,0,0,0.25);
|
|
4346
|
+
--tw-shadow-colored: -2px 2px 2px var(--tw-shadow-color);
|
|
4347
|
+
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
4348
|
+
}
|
|
4349
|
+
|
|
4332
4350
|
.shadow-\[-4px_4px_20px_0px_\#0000001A\]{
|
|
4333
4351
|
--tw-shadow: -4px 4px 20px 0px #0000001A;
|
|
4334
4352
|
--tw-shadow-colored: -4px 4px 20px 0px var(--tw-shadow-color);
|
|
@@ -4865,6 +4883,21 @@ h6,
|
|
|
4865
4883
|
scrollbar-width: thin;
|
|
4866
4884
|
}
|
|
4867
4885
|
|
|
4886
|
+
.text-body-medium{
|
|
4887
|
+
font-size: 0.75rem;
|
|
4888
|
+
line-height: 1rem;
|
|
4889
|
+
font-weight: 500;
|
|
4890
|
+
line-height: 16.39px;
|
|
4891
|
+
letter-spacing: 0.02em;
|
|
4892
|
+
--tw-text-opacity: 1;
|
|
4893
|
+
color: rgb(32 30 41 / var(--tw-text-opacity));
|
|
4894
|
+
}
|
|
4895
|
+
|
|
4896
|
+
.text-body-medium:where(.dark, .dark *){
|
|
4897
|
+
--tw-text-opacity: 1;
|
|
4898
|
+
color: rgb(32 30 41 / var(--tw-text-opacity));
|
|
4899
|
+
}
|
|
4900
|
+
|
|
4868
4901
|
.placeholder\:\!font-light::-moz-placeholder{
|
|
4869
4902
|
font-weight: 300 !important;
|
|
4870
4903
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
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
|
|
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>;
|
|
2
2
|
export default _default;
|
|
@@ -1,21 +1,27 @@
|
|
|
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-
|
|
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-TABMENU', {
|
|
|
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-TABMENU', {
|
|
|
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)] -mt-0.5': 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-TABMENU', {
|
|
|
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
|
},
|