@fewangsit/wangsvue-presets 1.0.101 → 1.0.102-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 +660 -321
- 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 +10 -5
- package/fixedasset/tree/index.js +8 -5
- 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 +535 -191
- 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 +544 -199
- 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 +106 -49
- 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/globalsettings/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");
|
|
@@ -883,53 +896,6 @@
|
|
|
883
896
|
--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");
|
|
884
897
|
}
|
|
885
898
|
|
|
886
|
-
.container{
|
|
887
|
-
width: 100%;
|
|
888
|
-
}
|
|
889
|
-
|
|
890
|
-
@media (min-width: 640px){
|
|
891
|
-
.container{
|
|
892
|
-
max-width: 640px;
|
|
893
|
-
}
|
|
894
|
-
}
|
|
895
|
-
|
|
896
|
-
@media (min-width: 768px){
|
|
897
|
-
.container{
|
|
898
|
-
max-width: 768px;
|
|
899
|
-
}
|
|
900
|
-
}
|
|
901
|
-
|
|
902
|
-
@media (min-width: 1024px){
|
|
903
|
-
.container{
|
|
904
|
-
max-width: 1024px;
|
|
905
|
-
}
|
|
906
|
-
}
|
|
907
|
-
|
|
908
|
-
@media (min-width: 1280px){
|
|
909
|
-
.container{
|
|
910
|
-
max-width: 1280px;
|
|
911
|
-
}
|
|
912
|
-
}
|
|
913
|
-
|
|
914
|
-
@media (min-width: 1536px){
|
|
915
|
-
.container{
|
|
916
|
-
max-width: 1536px;
|
|
917
|
-
}
|
|
918
|
-
}
|
|
919
|
-
|
|
920
|
-
.icon{
|
|
921
|
-
display: flex;
|
|
922
|
-
height: 1em;
|
|
923
|
-
width: 1em;
|
|
924
|
-
background-color: currentColor;
|
|
925
|
-
-webkit-mask-image: var(--svg);
|
|
926
|
-
mask-image: var(--svg);
|
|
927
|
-
-webkit-mask-repeat: no-repeat;
|
|
928
|
-
mask-repeat: no-repeat;
|
|
929
|
-
-webkit-mask-size: 100% 100%;
|
|
930
|
-
mask-size: 100% 100%;
|
|
931
|
-
}
|
|
932
|
-
|
|
933
899
|
.\!pointer-events-none{
|
|
934
900
|
pointer-events: none !important;
|
|
935
901
|
}
|
|
@@ -1167,10 +1133,18 @@
|
|
|
1167
1133
|
margin: 0px !important;
|
|
1168
1134
|
}
|
|
1169
1135
|
|
|
1136
|
+
.\!m-\[2px\]{
|
|
1137
|
+
margin: 2px !important;
|
|
1138
|
+
}
|
|
1139
|
+
|
|
1170
1140
|
.m-0{
|
|
1171
1141
|
margin: 0px;
|
|
1172
1142
|
}
|
|
1173
1143
|
|
|
1144
|
+
.m-\[3px\]{
|
|
1145
|
+
margin: 3px;
|
|
1146
|
+
}
|
|
1147
|
+
|
|
1174
1148
|
.\!mx-auto{
|
|
1175
1149
|
margin-left: auto !important;
|
|
1176
1150
|
margin-right: auto !important;
|
|
@@ -1415,6 +1389,10 @@
|
|
|
1415
1389
|
display: inline;
|
|
1416
1390
|
}
|
|
1417
1391
|
|
|
1392
|
+
.\!flex{
|
|
1393
|
+
display: flex !important;
|
|
1394
|
+
}
|
|
1395
|
+
|
|
1418
1396
|
.flex{
|
|
1419
1397
|
display: flex;
|
|
1420
1398
|
}
|
|
@@ -1459,6 +1437,10 @@
|
|
|
1459
1437
|
height: 10px !important;
|
|
1460
1438
|
}
|
|
1461
1439
|
|
|
1440
|
+
.\!h-\[26px\]{
|
|
1441
|
+
height: 26px !important;
|
|
1442
|
+
}
|
|
1443
|
+
|
|
1462
1444
|
.\!h-\[28px\]{
|
|
1463
1445
|
height: 28px !important;
|
|
1464
1446
|
}
|
|
@@ -1568,6 +1550,10 @@
|
|
|
1568
1550
|
height: 21px;
|
|
1569
1551
|
}
|
|
1570
1552
|
|
|
1553
|
+
.h-\[22px\]{
|
|
1554
|
+
height: 22px;
|
|
1555
|
+
}
|
|
1556
|
+
|
|
1571
1557
|
.h-\[26px\]{
|
|
1572
1558
|
height: 26px;
|
|
1573
1559
|
}
|
|
@@ -1814,6 +1800,10 @@
|
|
|
1814
1800
|
width: 18px;
|
|
1815
1801
|
}
|
|
1816
1802
|
|
|
1803
|
+
.w-\[1px\]{
|
|
1804
|
+
width: 1px;
|
|
1805
|
+
}
|
|
1806
|
+
|
|
1817
1807
|
.w-\[200px\]{
|
|
1818
1808
|
width: 200px;
|
|
1819
1809
|
}
|
|
@@ -1822,6 +1812,10 @@
|
|
|
1822
1812
|
width: 224px;
|
|
1823
1813
|
}
|
|
1824
1814
|
|
|
1815
|
+
.w-\[22px\]{
|
|
1816
|
+
width: 22px;
|
|
1817
|
+
}
|
|
1818
|
+
|
|
1825
1819
|
.w-\[272px\]{
|
|
1826
1820
|
width: 272px;
|
|
1827
1821
|
}
|
|
@@ -2529,6 +2523,10 @@
|
|
|
2529
2523
|
overflow: hidden;
|
|
2530
2524
|
}
|
|
2531
2525
|
|
|
2526
|
+
.overflow-visible{
|
|
2527
|
+
overflow: visible;
|
|
2528
|
+
}
|
|
2529
|
+
|
|
2532
2530
|
.overflow-scroll{
|
|
2533
2531
|
overflow: scroll;
|
|
2534
2532
|
}
|
|
@@ -2549,6 +2547,10 @@
|
|
|
2549
2547
|
overflow-y: hidden;
|
|
2550
2548
|
}
|
|
2551
2549
|
|
|
2550
|
+
.overflow-x-visible{
|
|
2551
|
+
overflow-x: visible;
|
|
2552
|
+
}
|
|
2553
|
+
|
|
2552
2554
|
.overscroll-auto{
|
|
2553
2555
|
overscroll-behavior: auto;
|
|
2554
2556
|
}
|
|
@@ -2561,6 +2563,12 @@
|
|
|
2561
2563
|
scroll-behavior: smooth;
|
|
2562
2564
|
}
|
|
2563
2565
|
|
|
2566
|
+
.truncate{
|
|
2567
|
+
overflow: hidden;
|
|
2568
|
+
text-overflow: ellipsis;
|
|
2569
|
+
white-space: nowrap;
|
|
2570
|
+
}
|
|
2571
|
+
|
|
2564
2572
|
.overflow-ellipsis{
|
|
2565
2573
|
text-overflow: ellipsis;
|
|
2566
2574
|
}
|
|
@@ -4340,10 +4348,6 @@
|
|
|
4340
4348
|
caret-color: #070609;
|
|
4341
4349
|
}
|
|
4342
4350
|
|
|
4343
|
-
.\!opacity-60{
|
|
4344
|
-
opacity: 0.6 !important;
|
|
4345
|
-
}
|
|
4346
|
-
|
|
4347
4351
|
.opacity-0{
|
|
4348
4352
|
opacity: 0;
|
|
4349
4353
|
}
|
|
@@ -4386,6 +4390,12 @@
|
|
|
4386
4390
|
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
4387
4391
|
}
|
|
4388
4392
|
|
|
4393
|
+
.shadow-\[-2px_2px_2px_rgba\(0\2c 0\2c 0\2c 0\.25\)\]{
|
|
4394
|
+
--tw-shadow: -2px 2px 2px rgba(0,0,0,0.25);
|
|
4395
|
+
--tw-shadow-colored: -2px 2px 2px var(--tw-shadow-color);
|
|
4396
|
+
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
4397
|
+
}
|
|
4398
|
+
|
|
4389
4399
|
.shadow-\[-4px_4px_20px_0px_\#0000001A\]{
|
|
4390
4400
|
--tw-shadow: -4px 4px 20px 0px #0000001A;
|
|
4391
4401
|
--tw-shadow-colored: -4px 4px 20px 0px var(--tw-shadow-color);
|
|
@@ -5670,6 +5680,14 @@ div{
|
|
|
5670
5680
|
background-color: rgb(235 234 240 / var(--tw-bg-opacity));
|
|
5671
5681
|
}
|
|
5672
5682
|
|
|
5683
|
+
.hover\:bg-primary-50\/30:hover{
|
|
5684
|
+
background-color: rgb(235 234 240 / 0.3);
|
|
5685
|
+
}
|
|
5686
|
+
|
|
5687
|
+
.hover\:bg-primary-50\/50:hover{
|
|
5688
|
+
background-color: rgb(235 234 240 / 0.5);
|
|
5689
|
+
}
|
|
5690
|
+
|
|
5673
5691
|
.hover\:bg-primary-50\/80:hover{
|
|
5674
5692
|
background-color: rgb(235 234 240 / 0.8);
|
|
5675
5693
|
}
|
|
@@ -5836,6 +5854,11 @@ div{
|
|
|
5836
5854
|
--tw-ring-color: rgb(234 88 12 / var(--tw-ring-opacity));
|
|
5837
5855
|
}
|
|
5838
5856
|
|
|
5857
|
+
.hover\:ring-primary-500:hover{
|
|
5858
|
+
--tw-ring-opacity: 1;
|
|
5859
|
+
--tw-ring-color: rgb(32 30 41 / var(--tw-ring-opacity));
|
|
5860
|
+
}
|
|
5861
|
+
|
|
5839
5862
|
.hover\:ring-primary-600:hover{
|
|
5840
5863
|
--tw-ring-opacity: 1;
|
|
5841
5864
|
--tw-ring-color: rgb(16 15 21 / var(--tw-ring-opacity));
|
|
@@ -5860,6 +5883,14 @@ div{
|
|
|
5860
5883
|
background-color: rgb(235 234 240 / var(--tw-bg-opacity));
|
|
5861
5884
|
}
|
|
5862
5885
|
|
|
5886
|
+
.focus\:bg-primary-50\/30:focus{
|
|
5887
|
+
background-color: rgb(235 234 240 / 0.3);
|
|
5888
|
+
}
|
|
5889
|
+
|
|
5890
|
+
.focus\:bg-primary-50\/50:focus{
|
|
5891
|
+
background-color: rgb(235 234 240 / 0.5);
|
|
5892
|
+
}
|
|
5893
|
+
|
|
5863
5894
|
.focus\:bg-primary-600:focus{
|
|
5864
5895
|
--tw-bg-opacity: 1;
|
|
5865
5896
|
background-color: rgb(16 15 21 / var(--tw-bg-opacity));
|
|
@@ -6416,6 +6447,36 @@ div{
|
|
|
6416
6447
|
}
|
|
6417
6448
|
}
|
|
6418
6449
|
|
|
6450
|
+
.dark\:bg-white:where(.dark, .dark *){
|
|
6451
|
+
--tw-bg-opacity: 1;
|
|
6452
|
+
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
|
6453
|
+
}
|
|
6454
|
+
|
|
6455
|
+
.dark\:text-general-800:where(.dark, .dark *){
|
|
6456
|
+
--tw-text-opacity: 1;
|
|
6457
|
+
color: rgb(32 30 41 / var(--tw-text-opacity));
|
|
6458
|
+
}
|
|
6459
|
+
|
|
6460
|
+
.dark\:ring-danger-500:where(.dark, .dark *){
|
|
6461
|
+
--tw-ring-opacity: 1;
|
|
6462
|
+
--tw-ring-color: rgb(255 0 34 / var(--tw-ring-opacity));
|
|
6463
|
+
}
|
|
6464
|
+
|
|
6465
|
+
.dark\:ring-general-200:where(.dark, .dark *){
|
|
6466
|
+
--tw-ring-opacity: 1;
|
|
6467
|
+
--tw-ring-color: rgb(181 179 199 / var(--tw-ring-opacity));
|
|
6468
|
+
}
|
|
6469
|
+
|
|
6470
|
+
.dark\:hover\:ring-primary-400:hover:where(.dark, .dark *){
|
|
6471
|
+
--tw-ring-opacity: 1;
|
|
6472
|
+
--tw-ring-color: rgb(108 104 141 / var(--tw-ring-opacity));
|
|
6473
|
+
}
|
|
6474
|
+
|
|
6475
|
+
.dark\:focus\:ring-primary-400:focus:where(.dark, .dark *){
|
|
6476
|
+
--tw-ring-opacity: 1;
|
|
6477
|
+
--tw-ring-color: rgb(108 104 141 / var(--tw-ring-opacity));
|
|
6478
|
+
}
|
|
6479
|
+
|
|
6419
6480
|
.\[\&\:\:-webkit-scrollbar\]\:hidden::-webkit-scrollbar{
|
|
6420
6481
|
display: none;
|
|
6421
6482
|
}
|
|
@@ -6509,6 +6570,14 @@ div{
|
|
|
6509
6570
|
width: 100%;
|
|
6510
6571
|
}
|
|
6511
6572
|
|
|
6573
|
+
.\[\&\>\.icon\]\:\!h-4>.icon{
|
|
6574
|
+
height: 1rem !important;
|
|
6575
|
+
}
|
|
6576
|
+
|
|
6577
|
+
.\[\&\>\.icon\]\:\!w-4>.icon{
|
|
6578
|
+
width: 1rem !important;
|
|
6579
|
+
}
|
|
6580
|
+
|
|
6512
6581
|
.\[\&\>\[data-pc-name\=badge\]\]\:h-4>[data-pc-name=badge]{
|
|
6513
6582
|
height: 1rem;
|
|
6514
6583
|
}
|
|
@@ -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-500'?: undefined;
|
|
25
|
-
'border-grayscale-400'?: undefined;
|
|
26
|
-
'text-grayscale-600'?: undefined;
|
|
27
|
-
'text-primary-500'?: undefined;
|
|
28
|
-
'bg-primary-500 text-white'?: 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-500'?: undefined;
|
|
40
|
-
'border-grayscale-400'?: undefined;
|
|
41
|
-
'text-grayscale-600'?: undefined;
|
|
42
|
-
'text-primary-500'?: undefined;
|
|
43
|
-
'bg-primary-500 text-white'?: 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-500': any;
|
|
51
|
-
'border-grayscale-400': boolean;
|
|
52
|
-
'text-grayscale-600': boolean;
|
|
53
|
-
'text-primary-500': any;
|
|
54
|
-
'bg-primary-500 text-white': 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-500'?: undefined;
|
|
71
|
-
'border-grayscale-400'?: undefined;
|
|
72
|
-
'text-grayscale-600'?: undefined;
|
|
73
|
-
'text-primary-500'?: undefined;
|
|
74
|
-
'bg-primary-500 text-white'?: 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-500'?: undefined;
|
|
87
|
-
'border-grayscale-400'?: undefined;
|
|
88
|
-
'text-grayscale-600'?: undefined;
|
|
89
|
-
'text-primary-500'?: undefined;
|
|
90
|
-
'bg-primary-500 text-white'?: 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,34 @@
|
|
|
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
7
|
style: 'scrollbar-width: none',
|
|
7
8
|
},
|
|
8
|
-
menu: {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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 !m-[2px]': props.type === 'segmented',
|
|
22
|
+
},
|
|
23
|
+
],
|
|
24
|
+
});
|
|
18
25
|
},
|
|
19
26
|
menuitem: {
|
|
20
27
|
class: 'mr-0',
|
|
21
28
|
},
|
|
22
29
|
action: function (_a) {
|
|
23
30
|
var _b, _c;
|
|
24
|
-
var
|
|
31
|
+
var props = _a.props, context = _a.context;
|
|
25
32
|
return ({
|
|
26
33
|
class: [
|
|
27
34
|
'relative',
|
|
@@ -32,28 +39,32 @@ exports.default = {
|
|
|
32
39
|
'flex items-center',
|
|
33
40
|
// Spacing
|
|
34
41
|
{
|
|
35
|
-
'rounded-xl py-1 px-3':
|
|
36
|
-
'
|
|
37
|
-
'
|
|
42
|
+
'rounded-xl py-1 px-3': props.type === 'pill',
|
|
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-[26px]': props.type === 'segmented',
|
|
46
|
+
'ml-1': props.type === 'pill' && context.index !== 0,
|
|
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-500':
|
|
46
|
-
'border-grayscale-400': !
|
|
47
|
-
'text-grayscale-600': !
|
|
48
|
-
'text-primary-500':
|
|
49
|
-
'bg-primary-500 text-white':
|
|
50
|
-
'bg-grayscale-200 text-grayscale-800':
|
|
51
|
-
'bg-
|
|
54
|
+
'border-primary-500': context.active,
|
|
55
|
+
'border-grayscale-400': !context.active,
|
|
56
|
+
'text-grayscale-600': !context.active,
|
|
57
|
+
'text-primary-500': context.active,
|
|
58
|
+
'bg-primary-500 text-white': props.type === 'pill' && context.active,
|
|
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,
|
|
62
|
+
'bg-transparent ': props.type !== 'pill' && !context.active,
|
|
52
63
|
},
|
|
53
64
|
// States
|
|
54
65
|
'focus-visible:outline-none focus-visible:outline-offset-0',
|
|
55
66
|
{
|
|
56
|
-
'focus-visible:border-primary-200 focus-visible:text-primary-400': !
|
|
67
|
+
'focus-visible:border-primary-200 focus-visible:text-primary-400': !context.active,
|
|
57
68
|
},
|
|
58
69
|
// Disabled States
|
|
59
70
|
{
|
|
@@ -74,7 +85,17 @@ exports.default = {
|
|
|
74
85
|
icon: {
|
|
75
86
|
class: 'mr-2',
|
|
76
87
|
},
|
|
77
|
-
inkbar: {
|
|
78
|
-
|
|
88
|
+
inkbar: function (_a) {
|
|
89
|
+
var props = _a.props;
|
|
90
|
+
return ({
|
|
91
|
+
class: [
|
|
92
|
+
'grow border-b-2 border-primary-100',
|
|
93
|
+
{
|
|
94
|
+
hidden: props.type === 'pill' ||
|
|
95
|
+
props.useTrailingLine === false ||
|
|
96
|
+
props.type === 'segmented',
|
|
97
|
+
},
|
|
98
|
+
],
|
|
99
|
+
});
|
|
79
100
|
},
|
|
80
|
-
};
|
|
101
|
+
});
|
|
@@ -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 ({
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
declare namespace _default {
|
|
2
|
-
function root({ props }: {
|
|
2
|
+
function root({ props, state }: {
|
|
3
3
|
props: any;
|
|
4
|
+
state: any;
|
|
4
5
|
}): {
|
|
5
6
|
class: (string | {
|
|
6
|
-
'bg-white':
|
|
7
|
+
'bg-white': any;
|
|
7
8
|
'bg-general-50': boolean;
|
|
8
9
|
'ring-general-100': boolean;
|
|
9
|
-
'ring-primary-700':
|
|
10
|
+
'ring-primary-700': any;
|
|
10
11
|
'ring-general-200': any;
|
|
11
12
|
'!ring-danger-500'?: undefined;
|
|
12
13
|
} | {
|
|
@@ -20,8 +21,9 @@ declare namespace _default {
|
|
|
20
21
|
'data-wv-name': string;
|
|
21
22
|
'data-wv-section': string;
|
|
22
23
|
};
|
|
23
|
-
function box({ props }: {
|
|
24
|
+
function box({ props, state }: {
|
|
24
25
|
props: any;
|
|
26
|
+
state: any;
|
|
25
27
|
}): {
|
|
26
28
|
class: (string | {
|
|
27
29
|
'bg-primary-700': boolean;
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
var toggleswitch_1 = require("../toggleswitch");
|
|
4
4
|
exports.default = {
|
|
5
5
|
root: function (_a) {
|
|
6
|
-
var props = _a.props;
|
|
6
|
+
var props = _a.props, state = _a.state;
|
|
7
7
|
return ({
|
|
8
8
|
'class': [
|
|
9
9
|
'relative',
|
|
@@ -17,10 +17,10 @@ exports.default = {
|
|
|
17
17
|
'rounded-full',
|
|
18
18
|
// Colors
|
|
19
19
|
{
|
|
20
|
-
'bg-white': !props.disabled ||
|
|
21
|
-
'bg-general-50': props.disabled &&
|
|
22
|
-
'ring-general-100': !props.disabled &&
|
|
23
|
-
'ring-primary-700': !props.disabled &&
|
|
20
|
+
'bg-white': !props.disabled || state.checked,
|
|
21
|
+
'bg-general-50': props.disabled && !state.checked,
|
|
22
|
+
'ring-general-100': !props.disabled && !state.checked,
|
|
23
|
+
'ring-primary-700': !props.disabled && state.checked,
|
|
24
24
|
'ring-general-200': props.disabled,
|
|
25
25
|
},
|
|
26
26
|
{
|
|
@@ -34,7 +34,7 @@ exports.default = {
|
|
|
34
34
|
});
|
|
35
35
|
},
|
|
36
36
|
box: function (_a) {
|
|
37
|
-
var props = _a.props;
|
|
37
|
+
var props = _a.props, state = _a.state;
|
|
38
38
|
return ({
|
|
39
39
|
class: [
|
|
40
40
|
// Size
|
|
@@ -50,12 +50,8 @@ exports.default = {
|
|
|
50
50
|
'transition duration-200 ease-in-out',
|
|
51
51
|
// Colors
|
|
52
52
|
{
|
|
53
|
-
'bg-primary-700': props.value
|
|
54
|
-
|
|
55
|
-
!props.disabled,
|
|
56
|
-
'bg-general-200': props.value == props.modelValue &&
|
|
57
|
-
props.value !== undefined &&
|
|
58
|
-
props.disabled,
|
|
53
|
+
'bg-primary-700': state.checked && props.value !== undefined && !props.disabled,
|
|
54
|
+
'bg-general-200': state.checked && props.value !== undefined && props.disabled,
|
|
59
55
|
},
|
|
60
56
|
// States
|
|
61
57
|
{
|
|
@@ -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,13 +9,16 @@ 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
|
[
|
|
16
16
|
'text-general-900 text-xs flex gap-[2px] font-medium tracking-[0.02em]',
|
|
17
17
|
props.labelClass,
|
|
18
18
|
],
|
|
19
|
+
{
|
|
20
|
+
'w-full': slots['label-addon']
|
|
21
|
+
}
|
|
19
22
|
],
|
|
20
23
|
'data-wv-section': 'fieldlabel',
|
|
21
24
|
});
|