@fewangsit/wangsvue-presets 1.0.98 → 1.0.99-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/fieldwrapper/index.d.ts +5 -2
- package/fixedasset/fieldwrapper/index.js +4 -1
- package/fixedasset/index.d.ts +3 -3
- package/fixedasset/index.js +95 -95
- package/fixedasset/index.system.js +2 -2
- package/fixedasset/inputotp/index.d.ts +1 -136
- package/fixedasset/inputotp/index.js +50 -53
- package/fixedasset/style.css +90 -47
- package/fixedasset/tabmenu/index.d.ts +1 -104
- package/fixedasset/tabmenu/index.js +24 -17
- package/fixedasset/timeline/index.d.ts +24 -2
- package/fixedasset/timeline/index.js +24 -5
- package/fixedasset/username/index.js +1 -1
- package/globalsettings/fieldwrapper/index.d.ts +5 -2
- package/globalsettings/fieldwrapper/index.js +4 -1
- package/globalsettings/index.d.ts +2 -2
- package/globalsettings/index.js +27 -27
- package/globalsettings/index.system.js +2 -2
- package/globalsettings/style.css +90 -47
- package/globalsettings/tabmenu/index.d.ts +1 -104
- package/globalsettings/tabmenu/index.js +24 -17
- package/globalsettings/timeline/index.d.ts +22 -0
- package/globalsettings/timeline/index.js +19 -0
- package/package.json +1 -1
- package/supplyasset/fieldwrapper/index.d.ts +5 -2
- package/supplyasset/fieldwrapper/index.js +4 -1
- package/supplyasset/index.d.ts +2 -2
- package/supplyasset/index.js +25 -25
- package/supplyasset/index.system.js +2 -2
- package/supplyasset/style.css +90 -47
- package/supplyasset/tabmenu/index.d.ts +1 -104
- package/supplyasset/tabmenu/index.js +26 -18
- 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/fieldwrapper/index.d.ts +5 -2
- package/wangsvue/fieldwrapper/index.js +4 -1
- package/wangsvue/index.d.ts +1 -1
- package/wangsvue/index.js +44 -44
- package/wangsvue/index.system.js +2 -2
- package/wangsvue/style.css +82 -47
- package/wangsvue/tabmenu/index.d.ts +1 -56
- package/wangsvue/tabmenu/index.js +18 -11
- package/wangsvue/timeline/index.d.ts +20 -0
- package/wangsvue/timeline/index.js +16 -0
- /package/fixedasset/{customColumn → customcolumn}/index.d.ts +0 -0
- /package/fixedasset/{customColumn → customcolumn}/index.js +0 -0
- /package/globalsettings/{customColumn → customcolumn}/index.d.ts +0 -0
- /package/globalsettings/{customColumn → customcolumn}/index.js +0 -0
- /package/supplyasset/{customColumn → customcolumn}/index.d.ts +0 -0
- /package/supplyasset/{customColumn → customcolumn}/index.js +0 -0
package/supplyasset/style.css
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap');
|
|
2
2
|
|
|
3
|
+
.icon{
|
|
4
|
+
display: flex;
|
|
5
|
+
height: 1em;
|
|
6
|
+
width: 1em;
|
|
7
|
+
background-color: currentColor;
|
|
8
|
+
-webkit-mask-image: var(--svg);
|
|
9
|
+
mask-image: var(--svg);
|
|
10
|
+
-webkit-mask-repeat: no-repeat;
|
|
11
|
+
mask-repeat: no-repeat;
|
|
12
|
+
-webkit-mask-size: 100% 100%;
|
|
13
|
+
mask-size: 100% 100%;
|
|
14
|
+
}
|
|
15
|
+
|
|
3
16
|
.ic-add {
|
|
4
17
|
/* ri-add-line */
|
|
5
18
|
--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M11 11V5h2v6h6v2h-6v6h-2v-6H5v-2z'/%3E%3C/svg%3E");
|
|
@@ -907,53 +920,6 @@
|
|
|
907
920
|
--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M15.199 9.944a2.6 2.6 0 0 1-.79-1.55l-.403-3.083l-2.731 1.486a2.6 2.6 0 0 1-1.719.272L6.5 6.5l.57 3.056a2.6 2.6 0 0 1-.273 1.72l-1.486 2.73l3.083.403a2.6 2.6 0 0 1 1.55.79l2.138 2.257l1.336-2.807a2.6 2.6 0 0 1 1.23-1.231l2.808-1.336zm.025 5.564l-2.213 4.65a.6.6 0 0 1-.977.155l-3.542-3.739a.6.6 0 0 0-.358-.182l-5.106-.668a.6.6 0 0 1-.45-.881l2.462-4.524a.6.6 0 0 0 .063-.396L4.16 4.86a.6.6 0 0 1 .7-.7l5.062.943a.6.6 0 0 0 .397-.063l4.523-2.46a.6.6 0 0 1 .882.448l.668 5.107a.6.6 0 0 0 .182.357l3.739 3.542a.6.6 0 0 1-.155.977l-4.65 2.213a.6.6 0 0 0-.284.284m.797 1.927l1.414-1.414l4.243 4.242l-1.415 1.415z'/%3E%3C/svg%3E");
|
|
908
921
|
}
|
|
909
922
|
|
|
910
|
-
.container{
|
|
911
|
-
width: 100%;
|
|
912
|
-
}
|
|
913
|
-
|
|
914
|
-
@media (min-width: 640px){
|
|
915
|
-
.container{
|
|
916
|
-
max-width: 640px;
|
|
917
|
-
}
|
|
918
|
-
}
|
|
919
|
-
|
|
920
|
-
@media (min-width: 768px){
|
|
921
|
-
.container{
|
|
922
|
-
max-width: 768px;
|
|
923
|
-
}
|
|
924
|
-
}
|
|
925
|
-
|
|
926
|
-
@media (min-width: 1024px){
|
|
927
|
-
.container{
|
|
928
|
-
max-width: 1024px;
|
|
929
|
-
}
|
|
930
|
-
}
|
|
931
|
-
|
|
932
|
-
@media (min-width: 1280px){
|
|
933
|
-
.container{
|
|
934
|
-
max-width: 1280px;
|
|
935
|
-
}
|
|
936
|
-
}
|
|
937
|
-
|
|
938
|
-
@media (min-width: 1536px){
|
|
939
|
-
.container{
|
|
940
|
-
max-width: 1536px;
|
|
941
|
-
}
|
|
942
|
-
}
|
|
943
|
-
|
|
944
|
-
.icon{
|
|
945
|
-
display: flex;
|
|
946
|
-
height: 1em;
|
|
947
|
-
width: 1em;
|
|
948
|
-
background-color: currentColor;
|
|
949
|
-
-webkit-mask-image: var(--svg);
|
|
950
|
-
mask-image: var(--svg);
|
|
951
|
-
-webkit-mask-repeat: no-repeat;
|
|
952
|
-
mask-repeat: no-repeat;
|
|
953
|
-
-webkit-mask-size: 100% 100%;
|
|
954
|
-
mask-size: 100% 100%;
|
|
955
|
-
}
|
|
956
|
-
|
|
957
923
|
.\!pointer-events-none{
|
|
958
924
|
pointer-events: none !important;
|
|
959
925
|
}
|
|
@@ -1195,6 +1161,10 @@
|
|
|
1195
1161
|
margin: 0px;
|
|
1196
1162
|
}
|
|
1197
1163
|
|
|
1164
|
+
.m-\[3px\]{
|
|
1165
|
+
margin: 3px;
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1198
1168
|
.\!mx-auto{
|
|
1199
1169
|
margin-left: auto !important;
|
|
1200
1170
|
margin-right: auto !important;
|
|
@@ -1439,6 +1409,10 @@
|
|
|
1439
1409
|
display: inline;
|
|
1440
1410
|
}
|
|
1441
1411
|
|
|
1412
|
+
.\!flex{
|
|
1413
|
+
display: flex !important;
|
|
1414
|
+
}
|
|
1415
|
+
|
|
1442
1416
|
.flex{
|
|
1443
1417
|
display: flex;
|
|
1444
1418
|
}
|
|
@@ -1592,6 +1566,10 @@
|
|
|
1592
1566
|
height: 21px;
|
|
1593
1567
|
}
|
|
1594
1568
|
|
|
1569
|
+
.h-\[22px\]{
|
|
1570
|
+
height: 22px;
|
|
1571
|
+
}
|
|
1572
|
+
|
|
1595
1573
|
.h-\[26px\]{
|
|
1596
1574
|
height: 26px;
|
|
1597
1575
|
}
|
|
@@ -1838,6 +1816,10 @@
|
|
|
1838
1816
|
width: 18px;
|
|
1839
1817
|
}
|
|
1840
1818
|
|
|
1819
|
+
.w-\[1px\]{
|
|
1820
|
+
width: 1px;
|
|
1821
|
+
}
|
|
1822
|
+
|
|
1841
1823
|
.w-\[200px\]{
|
|
1842
1824
|
width: 200px;
|
|
1843
1825
|
}
|
|
@@ -1846,6 +1828,10 @@
|
|
|
1846
1828
|
width: 224px;
|
|
1847
1829
|
}
|
|
1848
1830
|
|
|
1831
|
+
.w-\[22px\]{
|
|
1832
|
+
width: 22px;
|
|
1833
|
+
}
|
|
1834
|
+
|
|
1849
1835
|
.w-\[272px\]{
|
|
1850
1836
|
width: 272px;
|
|
1851
1837
|
}
|
|
@@ -2585,6 +2571,12 @@
|
|
|
2585
2571
|
scroll-behavior: smooth;
|
|
2586
2572
|
}
|
|
2587
2573
|
|
|
2574
|
+
.truncate{
|
|
2575
|
+
overflow: hidden;
|
|
2576
|
+
text-overflow: ellipsis;
|
|
2577
|
+
white-space: nowrap;
|
|
2578
|
+
}
|
|
2579
|
+
|
|
2588
2580
|
.overflow-ellipsis{
|
|
2589
2581
|
text-overflow: ellipsis;
|
|
2590
2582
|
}
|
|
@@ -5637,6 +5629,14 @@ div{
|
|
|
5637
5629
|
background-color: rgb(236 253 245 / var(--tw-bg-opacity));
|
|
5638
5630
|
}
|
|
5639
5631
|
|
|
5632
|
+
.hover\:bg-primary-50\/30:hover{
|
|
5633
|
+
background-color: rgb(236 253 245 / 0.3);
|
|
5634
|
+
}
|
|
5635
|
+
|
|
5636
|
+
.hover\:bg-primary-50\/50:hover{
|
|
5637
|
+
background-color: rgb(236 253 245 / 0.5);
|
|
5638
|
+
}
|
|
5639
|
+
|
|
5640
5640
|
.hover\:bg-primary-50\/80:hover{
|
|
5641
5641
|
background-color: rgb(236 253 245 / 0.8);
|
|
5642
5642
|
}
|
|
@@ -5799,6 +5799,11 @@ div{
|
|
|
5799
5799
|
--tw-ring-color: rgb(234 88 12 / var(--tw-ring-opacity));
|
|
5800
5800
|
}
|
|
5801
5801
|
|
|
5802
|
+
.hover\:ring-primary-500:hover{
|
|
5803
|
+
--tw-ring-opacity: 1;
|
|
5804
|
+
--tw-ring-color: rgb(16 185 129 / var(--tw-ring-opacity));
|
|
5805
|
+
}
|
|
5806
|
+
|
|
5802
5807
|
.hover\:ring-primary-600:hover{
|
|
5803
5808
|
--tw-ring-opacity: 1;
|
|
5804
5809
|
--tw-ring-color: rgb(5 150 105 / var(--tw-ring-opacity));
|
|
@@ -5823,6 +5828,14 @@ div{
|
|
|
5823
5828
|
background-color: rgb(236 253 245 / var(--tw-bg-opacity));
|
|
5824
5829
|
}
|
|
5825
5830
|
|
|
5831
|
+
.focus\:bg-primary-50\/30:focus{
|
|
5832
|
+
background-color: rgb(236 253 245 / 0.3);
|
|
5833
|
+
}
|
|
5834
|
+
|
|
5835
|
+
.focus\:bg-primary-50\/50:focus{
|
|
5836
|
+
background-color: rgb(236 253 245 / 0.5);
|
|
5837
|
+
}
|
|
5838
|
+
|
|
5826
5839
|
.focus\:bg-primary-600:focus{
|
|
5827
5840
|
--tw-bg-opacity: 1;
|
|
5828
5841
|
background-color: rgb(5 150 105 / var(--tw-bg-opacity));
|
|
@@ -6210,6 +6223,36 @@ div{
|
|
|
6210
6223
|
backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
|
|
6211
6224
|
}
|
|
6212
6225
|
|
|
6226
|
+
.dark\:bg-white:is(.dark *){
|
|
6227
|
+
--tw-bg-opacity: 1;
|
|
6228
|
+
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
|
6229
|
+
}
|
|
6230
|
+
|
|
6231
|
+
.dark\:text-general-800:is(.dark *){
|
|
6232
|
+
--tw-text-opacity: 1;
|
|
6233
|
+
color: rgb(32 30 41 / var(--tw-text-opacity));
|
|
6234
|
+
}
|
|
6235
|
+
|
|
6236
|
+
.dark\:ring-danger-500:is(.dark *){
|
|
6237
|
+
--tw-ring-opacity: 1;
|
|
6238
|
+
--tw-ring-color: rgb(255 0 34 / var(--tw-ring-opacity));
|
|
6239
|
+
}
|
|
6240
|
+
|
|
6241
|
+
.dark\:ring-general-200:is(.dark *){
|
|
6242
|
+
--tw-ring-opacity: 1;
|
|
6243
|
+
--tw-ring-color: rgb(181 179 199 / var(--tw-ring-opacity));
|
|
6244
|
+
}
|
|
6245
|
+
|
|
6246
|
+
.dark\:hover\:ring-primary-400:hover:is(.dark *){
|
|
6247
|
+
--tw-ring-opacity: 1;
|
|
6248
|
+
--tw-ring-color: rgb(52 211 153 / var(--tw-ring-opacity));
|
|
6249
|
+
}
|
|
6250
|
+
|
|
6251
|
+
.dark\:focus\:ring-primary-400:focus:is(.dark *){
|
|
6252
|
+
--tw-ring-opacity: 1;
|
|
6253
|
+
--tw-ring-color: rgb(52 211 153 / var(--tw-ring-opacity));
|
|
6254
|
+
}
|
|
6255
|
+
|
|
6213
6256
|
@media (min-width: 576px){
|
|
6214
6257
|
.min-\[576px\]\:pr-32{
|
|
6215
6258
|
padding-right: 8rem;
|
|
@@ -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-700'?: undefined;
|
|
25
|
-
'border-grayscale-400'?: undefined;
|
|
26
|
-
'text-grayscale-600'?: undefined;
|
|
27
|
-
'text-primary-700'?: undefined;
|
|
28
|
-
'bg-primary-50 text-primary-700'?: 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-700'?: undefined;
|
|
40
|
-
'border-grayscale-400'?: undefined;
|
|
41
|
-
'text-grayscale-600'?: undefined;
|
|
42
|
-
'text-primary-700'?: undefined;
|
|
43
|
-
'bg-primary-50 text-primary-700'?: 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-700': any;
|
|
51
|
-
'border-grayscale-400': boolean;
|
|
52
|
-
'text-grayscale-600': boolean;
|
|
53
|
-
'text-primary-700': any;
|
|
54
|
-
'bg-primary-50 text-primary-700': 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-700'?: undefined;
|
|
71
|
-
'border-grayscale-400'?: undefined;
|
|
72
|
-
'text-grayscale-600'?: undefined;
|
|
73
|
-
'text-primary-700'?: undefined;
|
|
74
|
-
'bg-primary-50 text-primary-700'?: 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-700'?: undefined;
|
|
87
|
-
'border-grayscale-400'?: undefined;
|
|
88
|
-
'text-grayscale-600'?: undefined;
|
|
89
|
-
'text-primary-700'?: undefined;
|
|
90
|
-
'bg-primary-50 text-primary-700'?: 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> | import("@wangs-ui/core/dist/types/themes/preset-definitions").ToRawPreset<import("@wangs-ui/core/dist/types/components/inputotp/inputotp.type").InputOtpPreset, import("@wangs-ui/core/dist/types/components/inputotp/inputotp.type").InputOtpPresetMethodOptions>;
|
|
105
2
|
export default _default;
|
|
@@ -1,9 +1,9 @@
|
|
|
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-TABMENU', {
|
|
4
5
|
root: {
|
|
5
6
|
class: 'overflow-x-auto',
|
|
6
|
-
style: 'scrollbar-width: none',
|
|
7
7
|
},
|
|
8
8
|
menu: {
|
|
9
9
|
class: [
|
|
@@ -21,7 +21,7 @@ exports.default = {
|
|
|
21
21
|
},
|
|
22
22
|
action: function (_a) {
|
|
23
23
|
var _b, _c;
|
|
24
|
-
var
|
|
24
|
+
var props = _a.props, context = _a.context;
|
|
25
25
|
return ({
|
|
26
26
|
class: [
|
|
27
27
|
'relative',
|
|
@@ -32,28 +32,30 @@ exports.default = {
|
|
|
32
32
|
'flex items-center',
|
|
33
33
|
// Spacing
|
|
34
34
|
{
|
|
35
|
-
'rounded-xl py-1 px-3':
|
|
36
|
-
'p-2 pb-1.5 pt-0.5 !h-6':
|
|
37
|
-
'ml-1':
|
|
35
|
+
'rounded-xl py-1 px-3': props.type === 'pill',
|
|
36
|
+
'p-2 pb-1.5 pt-0.5 !h-6': props.type !== 'pill',
|
|
37
|
+
'ml-1': props.type === 'pill' && context.index !== 0,
|
|
38
|
+
'gap-1': context.item.icon,
|
|
38
39
|
},
|
|
39
40
|
// Shape
|
|
40
41
|
{
|
|
41
|
-
'border-b-2':
|
|
42
|
+
'border-b-2': props.type !== 'pill',
|
|
42
43
|
},
|
|
43
44
|
// Colors and Conditions
|
|
44
45
|
{
|
|
45
|
-
'border-primary-700':
|
|
46
|
-
'border-grayscale-400': !
|
|
47
|
-
'text-grayscale-600': !
|
|
48
|
-
'text-primary-700':
|
|
49
|
-
'bg-primary-
|
|
50
|
-
'bg-grayscale-
|
|
51
|
-
'bg-transparent ':
|
|
46
|
+
'border-primary-700': context.active,
|
|
47
|
+
'border-grayscale-400': !context.active,
|
|
48
|
+
'text-grayscale-600': !context.active && props.type === 'tab',
|
|
49
|
+
'text-primary-700': context.active && props.type === 'tab',
|
|
50
|
+
'bg-primary-700 text-white': props.type === 'pill' && context.active,
|
|
51
|
+
'bg-grayscale-100 text-grayscale-800': props.type === 'pill' && !context.active,
|
|
52
|
+
'bg-transparent ': props.type !== 'pill' && !context.active,
|
|
52
53
|
},
|
|
53
54
|
// States
|
|
55
|
+
{ 'hover:bg-primary-50': props.type === 'tab' },
|
|
54
56
|
'focus-visible:outline-none focus-visible:outline-offset-0',
|
|
55
57
|
{
|
|
56
|
-
'focus-visible:border-primary-200 focus-visible:text-primary-400': !
|
|
58
|
+
'focus-visible:border-primary-200 focus-visible:text-primary-400': !context.active,
|
|
57
59
|
},
|
|
58
60
|
// Disabled States
|
|
59
61
|
{
|
|
@@ -74,7 +76,13 @@ exports.default = {
|
|
|
74
76
|
icon: {
|
|
75
77
|
class: 'mr-2',
|
|
76
78
|
},
|
|
77
|
-
inkbar: {
|
|
78
|
-
|
|
79
|
+
inkbar: function (_a) {
|
|
80
|
+
var props = _a.props;
|
|
81
|
+
return ({
|
|
82
|
+
class: [
|
|
83
|
+
'grow border-b-2 border-grayscale-400',
|
|
84
|
+
{ hidden: props.type === 'pill' || props.useTrailingLine === false },
|
|
85
|
+
],
|
|
86
|
+
});
|
|
79
87
|
},
|
|
80
|
-
};
|
|
88
|
+
});
|
|
@@ -38,6 +38,28 @@ declare namespace _default {
|
|
|
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
|
}): {
|
|
@@ -68,6 +68,25 @@ exports.default = {
|
|
|
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 ({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
3
|
+
var button = {
|
|
4
4
|
root: {
|
|
5
5
|
'class': 'flex gap-2 items-center',
|
|
6
6
|
'data-wv-name': 'buttonbulkaction',
|
|
@@ -33,3 +33,4 @@ exports.default = {
|
|
|
33
33
|
'data-wv-section': 'buttonclearselection',
|
|
34
34
|
},
|
|
35
35
|
};
|
|
36
|
+
exports.default = button;
|
|
@@ -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,10 +9,13 @@ 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
|
['text-general-900 text-xs flex gap-[2px] font-normal', props.labelClass],
|
|
16
|
+
{
|
|
17
|
+
'w-full': slots['label-addon']
|
|
18
|
+
}
|
|
16
19
|
],
|
|
17
20
|
'data-wv-section': 'fieldlabel',
|
|
18
21
|
});
|
package/wangsvue/index.d.ts
CHANGED
|
@@ -173,7 +173,7 @@ import tieredmenu from './tieredmenu/index.js';
|
|
|
173
173
|
import panelmenu from './panelmenu/index.js';
|
|
174
174
|
import megamenu from './megamenu/index.js';
|
|
175
175
|
import dock from './dock/index.js';
|
|
176
|
-
import tabmenu from './tabmenu
|
|
176
|
+
import tabmenu from './tabmenu';
|
|
177
177
|
import dialog from './dialog/index.js';
|
|
178
178
|
import dialogconfirm from './dialogconfirm/index.js';
|
|
179
179
|
import dialogform from './dialogform/index.js';
|