@fewangsit/wangsvue-presets 1.0.99 → 1.0.100-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/buttonradio/index.d.ts +6 -4
- package/fixedasset/buttonradio/index.js +8 -12
- package/fixedasset/fieldwrapper/index.d.ts +5 -2
- package/fixedasset/fieldwrapper/index.js +4 -1
- package/fixedasset/index.d.ts +2 -2
- package/fixedasset/index.es.js +663 -323
- package/fixedasset/index.js +94 -94
- package/fixedasset/index.system.js +2 -2
- package/fixedasset/inputotp/index.d.ts +1 -136
- package/fixedasset/inputotp/index.js +50 -53
- package/fixedasset/password/index.js +1 -0
- package/fixedasset/style.css +137 -49
- package/fixedasset/tabmenu/index.d.ts +1 -104
- package/fixedasset/tabmenu/index.js +48 -27
- package/fixedasset/timeline/index.d.ts +24 -2
- package/fixedasset/timeline/index.js +24 -5
- package/fixedasset/tree/index.d.ts +14 -5
- package/fixedasset/tree/index.js +7 -4
- package/fixedasset/username/index.js +1 -1
- package/globalsettings/buttonradio/index.d.ts +6 -4
- package/globalsettings/buttonradio/index.js +8 -12
- package/globalsettings/fieldwrapper/index.d.ts +5 -2
- package/globalsettings/fieldwrapper/index.js +4 -1
- package/globalsettings/index.d.ts +1 -1
- package/globalsettings/index.es.js +519 -175
- package/globalsettings/index.js +26 -26
- package/globalsettings/index.system.js +2 -2
- package/globalsettings/style.css +120 -51
- package/globalsettings/tabmenu/index.d.ts +1 -104
- package/globalsettings/tabmenu/index.js +48 -27
- package/globalsettings/timeline/index.d.ts +22 -0
- package/globalsettings/timeline/index.js +19 -0
- package/package.json +1 -1
- package/supplyasset/buttonradio/index.d.ts +6 -4
- package/supplyasset/buttonradio/index.js +8 -12
- package/supplyasset/fieldwrapper/index.d.ts +5 -2
- package/supplyasset/fieldwrapper/index.js +4 -1
- package/supplyasset/index.d.ts +1 -1
- package/supplyasset/index.es.js +542 -197
- package/supplyasset/index.js +24 -24
- package/supplyasset/index.system.js +2 -2
- package/supplyasset/style.css +120 -51
- package/supplyasset/tabmenu/index.d.ts +1 -104
- package/supplyasset/tabmenu/index.js +50 -28
- 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/buttonradio/index.d.ts +2 -1
- package/wangsvue/buttonradio/index.js +3 -7
- 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.es.js +590 -257
- package/wangsvue/index.js +44 -44
- package/wangsvue/index.system.js +2 -2
- package/wangsvue/style.css +104 -51
- package/wangsvue/tabmenu/index.d.ts +1 -56
- package/wangsvue/tabmenu/index.js +20 -13
- package/wangsvue/timeline/index.d.ts +20 -0
- package/wangsvue/timeline/index.js +16 -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,57 +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
|
-
.\!pointer-events-none{
|
|
958
|
-
pointer-events: none !important;
|
|
959
|
-
}
|
|
960
|
-
|
|
961
923
|
.pointer-events-none{
|
|
962
924
|
pointer-events: none;
|
|
963
925
|
}
|
|
@@ -1191,10 +1153,18 @@
|
|
|
1191
1153
|
margin: 0px !important;
|
|
1192
1154
|
}
|
|
1193
1155
|
|
|
1156
|
+
.\!m-\[2px\]{
|
|
1157
|
+
margin: 2px !important;
|
|
1158
|
+
}
|
|
1159
|
+
|
|
1194
1160
|
.m-0{
|
|
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
|
}
|
|
@@ -1483,6 +1457,10 @@
|
|
|
1483
1457
|
height: 10px !important;
|
|
1484
1458
|
}
|
|
1485
1459
|
|
|
1460
|
+
.\!h-\[26px\]{
|
|
1461
|
+
height: 26px !important;
|
|
1462
|
+
}
|
|
1463
|
+
|
|
1486
1464
|
.\!h-\[28px\]{
|
|
1487
1465
|
height: 28px !important;
|
|
1488
1466
|
}
|
|
@@ -1592,6 +1570,10 @@
|
|
|
1592
1570
|
height: 21px;
|
|
1593
1571
|
}
|
|
1594
1572
|
|
|
1573
|
+
.h-\[22px\]{
|
|
1574
|
+
height: 22px;
|
|
1575
|
+
}
|
|
1576
|
+
|
|
1595
1577
|
.h-\[26px\]{
|
|
1596
1578
|
height: 26px;
|
|
1597
1579
|
}
|
|
@@ -1838,6 +1820,10 @@
|
|
|
1838
1820
|
width: 18px;
|
|
1839
1821
|
}
|
|
1840
1822
|
|
|
1823
|
+
.w-\[1px\]{
|
|
1824
|
+
width: 1px;
|
|
1825
|
+
}
|
|
1826
|
+
|
|
1841
1827
|
.w-\[200px\]{
|
|
1842
1828
|
width: 200px;
|
|
1843
1829
|
}
|
|
@@ -1846,6 +1832,10 @@
|
|
|
1846
1832
|
width: 224px;
|
|
1847
1833
|
}
|
|
1848
1834
|
|
|
1835
|
+
.w-\[22px\]{
|
|
1836
|
+
width: 22px;
|
|
1837
|
+
}
|
|
1838
|
+
|
|
1849
1839
|
.w-\[272px\]{
|
|
1850
1840
|
width: 272px;
|
|
1851
1841
|
}
|
|
@@ -2553,6 +2543,10 @@
|
|
|
2553
2543
|
overflow: hidden;
|
|
2554
2544
|
}
|
|
2555
2545
|
|
|
2546
|
+
.overflow-visible{
|
|
2547
|
+
overflow: visible;
|
|
2548
|
+
}
|
|
2549
|
+
|
|
2556
2550
|
.overflow-scroll{
|
|
2557
2551
|
overflow: scroll;
|
|
2558
2552
|
}
|
|
@@ -2573,6 +2567,10 @@
|
|
|
2573
2567
|
overflow-y: hidden;
|
|
2574
2568
|
}
|
|
2575
2569
|
|
|
2570
|
+
.overflow-x-visible{
|
|
2571
|
+
overflow-x: visible;
|
|
2572
|
+
}
|
|
2573
|
+
|
|
2576
2574
|
.overscroll-auto{
|
|
2577
2575
|
overscroll-behavior: auto;
|
|
2578
2576
|
}
|
|
@@ -2585,6 +2583,12 @@
|
|
|
2585
2583
|
scroll-behavior: smooth;
|
|
2586
2584
|
}
|
|
2587
2585
|
|
|
2586
|
+
.truncate{
|
|
2587
|
+
overflow: hidden;
|
|
2588
|
+
text-overflow: ellipsis;
|
|
2589
|
+
white-space: nowrap;
|
|
2590
|
+
}
|
|
2591
|
+
|
|
2588
2592
|
.overflow-ellipsis{
|
|
2589
2593
|
text-overflow: ellipsis;
|
|
2590
2594
|
}
|
|
@@ -4377,6 +4381,12 @@
|
|
|
4377
4381
|
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
4378
4382
|
}
|
|
4379
4383
|
|
|
4384
|
+
.shadow-\[-2px_2px_2px_rgba\(0\2c 0\2c 0\2c 0\.25\)\]{
|
|
4385
|
+
--tw-shadow: -2px 2px 2px rgba(0,0,0,0.25);
|
|
4386
|
+
--tw-shadow-colored: -2px 2px 2px var(--tw-shadow-color);
|
|
4387
|
+
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
4388
|
+
}
|
|
4389
|
+
|
|
4380
4390
|
.shadow-\[-4px_4px_20px_0px_\#0000001A\]{
|
|
4381
4391
|
--tw-shadow: -4px 4px 20px 0px #0000001A;
|
|
4382
4392
|
--tw-shadow-colored: -4px 4px 20px 0px var(--tw-shadow-color);
|
|
@@ -5637,6 +5647,14 @@ div{
|
|
|
5637
5647
|
background-color: rgb(236 253 245 / var(--tw-bg-opacity));
|
|
5638
5648
|
}
|
|
5639
5649
|
|
|
5650
|
+
.hover\:bg-primary-50\/30:hover{
|
|
5651
|
+
background-color: rgb(236 253 245 / 0.3);
|
|
5652
|
+
}
|
|
5653
|
+
|
|
5654
|
+
.hover\:bg-primary-50\/50:hover{
|
|
5655
|
+
background-color: rgb(236 253 245 / 0.5);
|
|
5656
|
+
}
|
|
5657
|
+
|
|
5640
5658
|
.hover\:bg-primary-50\/80:hover{
|
|
5641
5659
|
background-color: rgb(236 253 245 / 0.8);
|
|
5642
5660
|
}
|
|
@@ -5799,6 +5817,11 @@ div{
|
|
|
5799
5817
|
--tw-ring-color: rgb(234 88 12 / var(--tw-ring-opacity));
|
|
5800
5818
|
}
|
|
5801
5819
|
|
|
5820
|
+
.hover\:ring-primary-500:hover{
|
|
5821
|
+
--tw-ring-opacity: 1;
|
|
5822
|
+
--tw-ring-color: rgb(16 185 129 / var(--tw-ring-opacity));
|
|
5823
|
+
}
|
|
5824
|
+
|
|
5802
5825
|
.hover\:ring-primary-600:hover{
|
|
5803
5826
|
--tw-ring-opacity: 1;
|
|
5804
5827
|
--tw-ring-color: rgb(5 150 105 / var(--tw-ring-opacity));
|
|
@@ -5823,6 +5846,14 @@ div{
|
|
|
5823
5846
|
background-color: rgb(236 253 245 / var(--tw-bg-opacity));
|
|
5824
5847
|
}
|
|
5825
5848
|
|
|
5849
|
+
.focus\:bg-primary-50\/30:focus{
|
|
5850
|
+
background-color: rgb(236 253 245 / 0.3);
|
|
5851
|
+
}
|
|
5852
|
+
|
|
5853
|
+
.focus\:bg-primary-50\/50:focus{
|
|
5854
|
+
background-color: rgb(236 253 245 / 0.5);
|
|
5855
|
+
}
|
|
5856
|
+
|
|
5826
5857
|
.focus\:bg-primary-600:focus{
|
|
5827
5858
|
--tw-bg-opacity: 1;
|
|
5828
5859
|
background-color: rgb(5 150 105 / var(--tw-bg-opacity));
|
|
@@ -6210,6 +6241,36 @@ div{
|
|
|
6210
6241
|
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
6242
|
}
|
|
6212
6243
|
|
|
6244
|
+
.dark\:bg-white:is(.dark *){
|
|
6245
|
+
--tw-bg-opacity: 1;
|
|
6246
|
+
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
|
6247
|
+
}
|
|
6248
|
+
|
|
6249
|
+
.dark\:text-general-800:is(.dark *){
|
|
6250
|
+
--tw-text-opacity: 1;
|
|
6251
|
+
color: rgb(32 30 41 / var(--tw-text-opacity));
|
|
6252
|
+
}
|
|
6253
|
+
|
|
6254
|
+
.dark\:ring-danger-500:is(.dark *){
|
|
6255
|
+
--tw-ring-opacity: 1;
|
|
6256
|
+
--tw-ring-color: rgb(255 0 34 / var(--tw-ring-opacity));
|
|
6257
|
+
}
|
|
6258
|
+
|
|
6259
|
+
.dark\:ring-general-200:is(.dark *){
|
|
6260
|
+
--tw-ring-opacity: 1;
|
|
6261
|
+
--tw-ring-color: rgb(181 179 199 / var(--tw-ring-opacity));
|
|
6262
|
+
}
|
|
6263
|
+
|
|
6264
|
+
.dark\:hover\:ring-primary-400:hover:is(.dark *){
|
|
6265
|
+
--tw-ring-opacity: 1;
|
|
6266
|
+
--tw-ring-color: rgb(52 211 153 / var(--tw-ring-opacity));
|
|
6267
|
+
}
|
|
6268
|
+
|
|
6269
|
+
.dark\:focus\:ring-primary-400:focus:is(.dark *){
|
|
6270
|
+
--tw-ring-opacity: 1;
|
|
6271
|
+
--tw-ring-color: rgb(52 211 153 / var(--tw-ring-opacity));
|
|
6272
|
+
}
|
|
6273
|
+
|
|
6213
6274
|
@media (min-width: 576px){
|
|
6214
6275
|
.min-\[576px\]\:pr-32{
|
|
6215
6276
|
padding-right: 8rem;
|
|
@@ -6462,6 +6523,14 @@ div{
|
|
|
6462
6523
|
width: 100%;
|
|
6463
6524
|
}
|
|
6464
6525
|
|
|
6526
|
+
.\[\&\>\.icon\]\:\!h-4>.icon{
|
|
6527
|
+
height: 1rem !important;
|
|
6528
|
+
}
|
|
6529
|
+
|
|
6530
|
+
.\[\&\>\.icon\]\:\!w-4>.icon{
|
|
6531
|
+
width: 1rem !important;
|
|
6532
|
+
}
|
|
6533
|
+
|
|
6465
6534
|
.\[\&\>\[data-pc-name\=badge\]\]\:h-4>[data-pc-name=badge]{
|
|
6466
6535
|
height: 1rem;
|
|
6467
6536
|
}
|
|
@@ -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>;
|
|
105
2
|
export default _default;
|
|
@@ -1,27 +1,33 @@
|
|
|
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-TAB-MENU', {
|
|
4
5
|
root: {
|
|
5
6
|
class: 'overflow-x-auto',
|
|
6
|
-
style: 'scrollbar-width: none',
|
|
7
7
|
},
|
|
8
|
-
menu: {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
8
|
+
menu: function (_a) {
|
|
9
|
+
var props = _a.props;
|
|
10
|
+
return ({
|
|
11
|
+
class: [
|
|
12
|
+
// Flexbox
|
|
13
|
+
'flex flex-1',
|
|
14
|
+
// Spacing
|
|
15
|
+
'list-none',
|
|
16
|
+
'p-0 m-0',
|
|
17
|
+
// Colors
|
|
18
|
+
'text-general-100',
|
|
19
|
+
{
|
|
20
|
+
'w-max ring-1 ring-inset ring-general-100 rounded !m-[2px]': props.type === 'segmented',
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
});
|
|
18
24
|
},
|
|
19
25
|
menuitem: {
|
|
20
26
|
class: 'mr-0',
|
|
21
27
|
},
|
|
22
28
|
action: function (_a) {
|
|
23
29
|
var _b, _c;
|
|
24
|
-
var
|
|
30
|
+
var props = _a.props, context = _a.context;
|
|
25
31
|
return ({
|
|
26
32
|
class: [
|
|
27
33
|
'relative',
|
|
@@ -32,28 +38,34 @@ exports.default = {
|
|
|
32
38
|
'flex items-center',
|
|
33
39
|
// Spacing
|
|
34
40
|
{
|
|
35
|
-
'rounded-xl py-1 px-3':
|
|
36
|
-
'
|
|
37
|
-
'
|
|
41
|
+
'rounded-xl py-1 px-3': props.type === 'pill',
|
|
42
|
+
'rounded': props.type === 'segmented',
|
|
43
|
+
'p-2 pb-1.5 pt-0.5 !h-6': props.type === 'tab',
|
|
44
|
+
'py-[5px] px-3 !h-[26px]': props.type === 'segmented',
|
|
45
|
+
'ml-1': props.type === 'pill' && context.index !== 0,
|
|
46
|
+
'gap-1': context.item.icon,
|
|
38
47
|
},
|
|
39
48
|
// Shape
|
|
40
49
|
{
|
|
41
|
-
'border-b-2':
|
|
50
|
+
'border-b-2': props.type === 'tab',
|
|
42
51
|
},
|
|
43
52
|
// Colors and Conditions
|
|
44
53
|
{
|
|
45
|
-
'border-primary-700':
|
|
46
|
-
'border-grayscale-400': !
|
|
47
|
-
'text-grayscale-600': !
|
|
48
|
-
'text-primary-700':
|
|
49
|
-
'bg-primary-
|
|
50
|
-
'bg-grayscale-
|
|
51
|
-
'bg-
|
|
54
|
+
'border-primary-700': context.active,
|
|
55
|
+
'border-grayscale-400': !context.active,
|
|
56
|
+
'text-grayscale-600': !context.active && props.type === 'tab',
|
|
57
|
+
'text-primary-700': context.active && props.type === 'tab',
|
|
58
|
+
'bg-primary-700 text-white': props.type === 'pill' && context.active,
|
|
59
|
+
'bg-grayscale-100 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,
|
|
62
|
+
'bg-transparent ': props.type !== 'pill' && !context.active,
|
|
52
63
|
},
|
|
53
64
|
// States
|
|
65
|
+
{ 'hover:bg-primary-50': props.type === 'tab' },
|
|
54
66
|
'focus-visible:outline-none focus-visible:outline-offset-0',
|
|
55
67
|
{
|
|
56
|
-
'focus-visible:border-primary-200 focus-visible:text-primary-400': !
|
|
68
|
+
'focus-visible:border-primary-200 focus-visible:text-primary-400': !context.active,
|
|
57
69
|
},
|
|
58
70
|
// Disabled States
|
|
59
71
|
{
|
|
@@ -74,7 +86,17 @@ exports.default = {
|
|
|
74
86
|
icon: {
|
|
75
87
|
class: 'mr-2',
|
|
76
88
|
},
|
|
77
|
-
inkbar: {
|
|
78
|
-
|
|
89
|
+
inkbar: function (_a) {
|
|
90
|
+
var props = _a.props;
|
|
91
|
+
return ({
|
|
92
|
+
class: [
|
|
93
|
+
'grow border-b-2 border-grayscale-400',
|
|
94
|
+
{
|
|
95
|
+
hidden: props.type === 'pill' ||
|
|
96
|
+
props.useTrailingLine === false ||
|
|
97
|
+
props.type === 'segmented',
|
|
98
|
+
},
|
|
99
|
+
],
|
|
100
|
+
});
|
|
79
101
|
},
|
|
80
|
-
};
|
|
102
|
+
});
|
|
@@ -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;
|
|
@@ -31,7 +31,7 @@ exports.default = {
|
|
|
31
31
|
});
|
|
32
32
|
},
|
|
33
33
|
box: function (_a) {
|
|
34
|
-
var props = _a.props;
|
|
34
|
+
var props = _a.props, state = _a.state;
|
|
35
35
|
return ({
|
|
36
36
|
class: [
|
|
37
37
|
// Size
|
|
@@ -47,12 +47,8 @@ exports.default = {
|
|
|
47
47
|
'transition duration-200 ease-in-out',
|
|
48
48
|
// Colors
|
|
49
49
|
{
|
|
50
|
-
'bg-grayscale-900': props.value
|
|
51
|
-
|
|
52
|
-
!props.disabled,
|
|
53
|
-
'bg-general-300': props.value == props.modelValue &&
|
|
54
|
-
props.value !== undefined &&
|
|
55
|
-
props.disabled,
|
|
50
|
+
'bg-grayscale-900': state.checked && props.value !== undefined && !props.disabled,
|
|
51
|
+
'bg-general-300': state.checked && props.value !== undefined && props.disabled,
|
|
56
52
|
},
|
|
57
53
|
// States
|
|
58
54
|
{
|
|
@@ -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';
|