@fewangsit/wangsvue-presets 1.0.100 → 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/calendar/index.js +3 -2
- 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 +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/calendar/index.js +3 -2
- 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 +538 -193
- 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/calendar/index.js +3 -2
- 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 +547 -201
- 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/calendar/index.js +3 -2
- 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 +593 -259
- 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/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
|
}
|
|
@@ -1191,10 +1157,18 @@
|
|
|
1191
1157
|
margin: 0px !important;
|
|
1192
1158
|
}
|
|
1193
1159
|
|
|
1160
|
+
.\!m-\[2px\]{
|
|
1161
|
+
margin: 2px !important;
|
|
1162
|
+
}
|
|
1163
|
+
|
|
1194
1164
|
.m-0{
|
|
1195
1165
|
margin: 0px;
|
|
1196
1166
|
}
|
|
1197
1167
|
|
|
1168
|
+
.m-\[3px\]{
|
|
1169
|
+
margin: 3px;
|
|
1170
|
+
}
|
|
1171
|
+
|
|
1198
1172
|
.\!mx-auto{
|
|
1199
1173
|
margin-left: auto !important;
|
|
1200
1174
|
margin-right: auto !important;
|
|
@@ -1439,6 +1413,10 @@
|
|
|
1439
1413
|
display: inline;
|
|
1440
1414
|
}
|
|
1441
1415
|
|
|
1416
|
+
.\!flex{
|
|
1417
|
+
display: flex !important;
|
|
1418
|
+
}
|
|
1419
|
+
|
|
1442
1420
|
.flex{
|
|
1443
1421
|
display: flex;
|
|
1444
1422
|
}
|
|
@@ -1483,6 +1461,10 @@
|
|
|
1483
1461
|
height: 10px !important;
|
|
1484
1462
|
}
|
|
1485
1463
|
|
|
1464
|
+
.\!h-\[26px\]{
|
|
1465
|
+
height: 26px !important;
|
|
1466
|
+
}
|
|
1467
|
+
|
|
1486
1468
|
.\!h-\[28px\]{
|
|
1487
1469
|
height: 28px !important;
|
|
1488
1470
|
}
|
|
@@ -1592,6 +1574,10 @@
|
|
|
1592
1574
|
height: 21px;
|
|
1593
1575
|
}
|
|
1594
1576
|
|
|
1577
|
+
.h-\[22px\]{
|
|
1578
|
+
height: 22px;
|
|
1579
|
+
}
|
|
1580
|
+
|
|
1595
1581
|
.h-\[26px\]{
|
|
1596
1582
|
height: 26px;
|
|
1597
1583
|
}
|
|
@@ -1838,6 +1824,10 @@
|
|
|
1838
1824
|
width: 18px;
|
|
1839
1825
|
}
|
|
1840
1826
|
|
|
1827
|
+
.w-\[1px\]{
|
|
1828
|
+
width: 1px;
|
|
1829
|
+
}
|
|
1830
|
+
|
|
1841
1831
|
.w-\[200px\]{
|
|
1842
1832
|
width: 200px;
|
|
1843
1833
|
}
|
|
@@ -1846,6 +1836,10 @@
|
|
|
1846
1836
|
width: 224px;
|
|
1847
1837
|
}
|
|
1848
1838
|
|
|
1839
|
+
.w-\[22px\]{
|
|
1840
|
+
width: 22px;
|
|
1841
|
+
}
|
|
1842
|
+
|
|
1849
1843
|
.w-\[272px\]{
|
|
1850
1844
|
width: 272px;
|
|
1851
1845
|
}
|
|
@@ -2553,6 +2547,10 @@
|
|
|
2553
2547
|
overflow: hidden;
|
|
2554
2548
|
}
|
|
2555
2549
|
|
|
2550
|
+
.overflow-visible{
|
|
2551
|
+
overflow: visible;
|
|
2552
|
+
}
|
|
2553
|
+
|
|
2556
2554
|
.overflow-scroll{
|
|
2557
2555
|
overflow: scroll;
|
|
2558
2556
|
}
|
|
@@ -2573,6 +2571,10 @@
|
|
|
2573
2571
|
overflow-y: hidden;
|
|
2574
2572
|
}
|
|
2575
2573
|
|
|
2574
|
+
.overflow-x-visible{
|
|
2575
|
+
overflow-x: visible;
|
|
2576
|
+
}
|
|
2577
|
+
|
|
2576
2578
|
.overscroll-auto{
|
|
2577
2579
|
overscroll-behavior: auto;
|
|
2578
2580
|
}
|
|
@@ -2585,6 +2587,12 @@
|
|
|
2585
2587
|
scroll-behavior: smooth;
|
|
2586
2588
|
}
|
|
2587
2589
|
|
|
2590
|
+
.truncate{
|
|
2591
|
+
overflow: hidden;
|
|
2592
|
+
text-overflow: ellipsis;
|
|
2593
|
+
white-space: nowrap;
|
|
2594
|
+
}
|
|
2595
|
+
|
|
2588
2596
|
.overflow-ellipsis{
|
|
2589
2597
|
text-overflow: ellipsis;
|
|
2590
2598
|
}
|
|
@@ -4331,10 +4339,6 @@
|
|
|
4331
4339
|
caret-color: #047857;
|
|
4332
4340
|
}
|
|
4333
4341
|
|
|
4334
|
-
.\!opacity-60{
|
|
4335
|
-
opacity: 0.6 !important;
|
|
4336
|
-
}
|
|
4337
|
-
|
|
4338
4342
|
.opacity-0{
|
|
4339
4343
|
opacity: 0;
|
|
4340
4344
|
}
|
|
@@ -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
|
{
|
|
@@ -298,11 +298,12 @@ var preset = {
|
|
|
298
298
|
return ({
|
|
299
299
|
class: [
|
|
300
300
|
// Flexbox and Alignment
|
|
301
|
-
|
|
301
|
+
{ flex: !context.date.otherMonth },
|
|
302
|
+
{ hidden: context.date.otherMonth },
|
|
303
|
+
'items-center justify-center',
|
|
302
304
|
// 'mx-auto',
|
|
303
305
|
// Shape & Size
|
|
304
306
|
'w-8 h-8',
|
|
305
|
-
{ hidden: context.date.otherMonth },
|
|
306
307
|
// Colors
|
|
307
308
|
{
|
|
308
309
|
'bg-primary-100': context.date.today && !context.selected,
|
|
@@ -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
|
});
|