@fewangsit/wangsvue-presets 1.0.99 → 1.0.100-alpha.1

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.
Files changed (61) hide show
  1. package/fixedasset/buttonradio/index.d.ts +6 -4
  2. package/fixedasset/buttonradio/index.js +8 -12
  3. package/fixedasset/fieldwrapper/index.d.ts +5 -2
  4. package/fixedasset/fieldwrapper/index.js +4 -1
  5. package/fixedasset/index.d.ts +2 -2
  6. package/fixedasset/index.es.js +662 -323
  7. package/fixedasset/index.js +94 -94
  8. package/fixedasset/index.system.js +2 -2
  9. package/fixedasset/inputotp/index.d.ts +1 -136
  10. package/fixedasset/inputotp/index.js +50 -53
  11. package/fixedasset/password/index.js +1 -0
  12. package/fixedasset/style.css +137 -53
  13. package/fixedasset/tabmenu/index.d.ts +1 -104
  14. package/fixedasset/tabmenu/index.js +48 -27
  15. package/fixedasset/timeline/index.d.ts +24 -2
  16. package/fixedasset/timeline/index.js +24 -5
  17. package/fixedasset/tree/index.d.ts +10 -5
  18. package/fixedasset/tree/index.js +6 -4
  19. package/fixedasset/username/index.js +1 -1
  20. package/globalsettings/buttonradio/index.d.ts +6 -4
  21. package/globalsettings/buttonradio/index.js +8 -12
  22. package/globalsettings/fieldwrapper/index.d.ts +5 -2
  23. package/globalsettings/fieldwrapper/index.js +4 -1
  24. package/globalsettings/index.d.ts +1 -1
  25. package/globalsettings/index.es.js +519 -175
  26. package/globalsettings/index.js +26 -26
  27. package/globalsettings/index.system.js +2 -2
  28. package/globalsettings/style.css +120 -55
  29. package/globalsettings/tabmenu/index.d.ts +1 -104
  30. package/globalsettings/tabmenu/index.js +48 -27
  31. package/globalsettings/timeline/index.d.ts +22 -0
  32. package/globalsettings/timeline/index.js +19 -0
  33. package/package.json +1 -1
  34. package/supplyasset/buttonradio/index.d.ts +6 -4
  35. package/supplyasset/buttonradio/index.js +8 -12
  36. package/supplyasset/fieldwrapper/index.d.ts +5 -2
  37. package/supplyasset/fieldwrapper/index.js +4 -1
  38. package/supplyasset/index.d.ts +1 -1
  39. package/supplyasset/index.es.js +542 -197
  40. package/supplyasset/index.js +24 -24
  41. package/supplyasset/index.system.js +2 -2
  42. package/supplyasset/style.css +120 -55
  43. package/supplyasset/tabmenu/index.d.ts +1 -104
  44. package/supplyasset/tabmenu/index.js +50 -28
  45. package/supplyasset/timeline/index.d.ts +22 -0
  46. package/supplyasset/timeline/index.js +19 -0
  47. package/wangsvue/buttonbulkaction/index.d.ts +2 -2
  48. package/wangsvue/buttonbulkaction/index.js +2 -1
  49. package/wangsvue/buttonradio/index.d.ts +2 -1
  50. package/wangsvue/buttonradio/index.js +3 -7
  51. package/wangsvue/fieldwrapper/index.d.ts +5 -2
  52. package/wangsvue/fieldwrapper/index.js +4 -1
  53. package/wangsvue/index.d.ts +1 -1
  54. package/wangsvue/index.es.js +590 -257
  55. package/wangsvue/index.js +44 -44
  56. package/wangsvue/index.system.js +2 -2
  57. package/wangsvue/style.css +104 -55
  58. package/wangsvue/tabmenu/index.d.ts +1 -56
  59. package/wangsvue/tabmenu/index.js +20 -13
  60. package/wangsvue/timeline/index.d.ts +20 -0
  61. package/wangsvue/timeline/index.js +16 -0
@@ -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,57 +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
- .\!pointer-events-none{
934
- pointer-events: none !important;
935
- }
936
-
937
899
  .pointer-events-none{
938
900
  pointer-events: none;
939
901
  }
@@ -1167,10 +1129,18 @@
1167
1129
  margin: 0px !important;
1168
1130
  }
1169
1131
 
1132
+ .\!m-\[2px\]{
1133
+ margin: 2px !important;
1134
+ }
1135
+
1170
1136
  .m-0{
1171
1137
  margin: 0px;
1172
1138
  }
1173
1139
 
1140
+ .m-\[3px\]{
1141
+ margin: 3px;
1142
+ }
1143
+
1174
1144
  .\!mx-auto{
1175
1145
  margin-left: auto !important;
1176
1146
  margin-right: auto !important;
@@ -1415,6 +1385,10 @@
1415
1385
  display: inline;
1416
1386
  }
1417
1387
 
1388
+ .\!flex{
1389
+ display: flex !important;
1390
+ }
1391
+
1418
1392
  .flex{
1419
1393
  display: flex;
1420
1394
  }
@@ -1459,6 +1433,10 @@
1459
1433
  height: 10px !important;
1460
1434
  }
1461
1435
 
1436
+ .\!h-\[26px\]{
1437
+ height: 26px !important;
1438
+ }
1439
+
1462
1440
  .\!h-\[28px\]{
1463
1441
  height: 28px !important;
1464
1442
  }
@@ -1568,6 +1546,10 @@
1568
1546
  height: 21px;
1569
1547
  }
1570
1548
 
1549
+ .h-\[22px\]{
1550
+ height: 22px;
1551
+ }
1552
+
1571
1553
  .h-\[26px\]{
1572
1554
  height: 26px;
1573
1555
  }
@@ -1814,6 +1796,10 @@
1814
1796
  width: 18px;
1815
1797
  }
1816
1798
 
1799
+ .w-\[1px\]{
1800
+ width: 1px;
1801
+ }
1802
+
1817
1803
  .w-\[200px\]{
1818
1804
  width: 200px;
1819
1805
  }
@@ -1822,6 +1808,10 @@
1822
1808
  width: 224px;
1823
1809
  }
1824
1810
 
1811
+ .w-\[22px\]{
1812
+ width: 22px;
1813
+ }
1814
+
1825
1815
  .w-\[272px\]{
1826
1816
  width: 272px;
1827
1817
  }
@@ -2529,6 +2519,10 @@
2529
2519
  overflow: hidden;
2530
2520
  }
2531
2521
 
2522
+ .overflow-visible{
2523
+ overflow: visible;
2524
+ }
2525
+
2532
2526
  .overflow-scroll{
2533
2527
  overflow: scroll;
2534
2528
  }
@@ -2549,6 +2543,10 @@
2549
2543
  overflow-y: hidden;
2550
2544
  }
2551
2545
 
2546
+ .overflow-x-visible{
2547
+ overflow-x: visible;
2548
+ }
2549
+
2552
2550
  .overscroll-auto{
2553
2551
  overscroll-behavior: auto;
2554
2552
  }
@@ -2561,6 +2559,12 @@
2561
2559
  scroll-behavior: smooth;
2562
2560
  }
2563
2561
 
2562
+ .truncate{
2563
+ overflow: hidden;
2564
+ text-overflow: ellipsis;
2565
+ white-space: nowrap;
2566
+ }
2567
+
2564
2568
  .overflow-ellipsis{
2565
2569
  text-overflow: ellipsis;
2566
2570
  }
@@ -4340,10 +4344,6 @@
4340
4344
  caret-color: #070609;
4341
4345
  }
4342
4346
 
4343
- .\!opacity-60{
4344
- opacity: 0.6 !important;
4345
- }
4346
-
4347
4347
  .opacity-0{
4348
4348
  opacity: 0;
4349
4349
  }
@@ -4386,6 +4386,12 @@
4386
4386
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
4387
4387
  }
4388
4388
 
4389
+ .shadow-\[-2px_2px_2px_rgba\(0\2c 0\2c 0\2c 0\.25\)\]{
4390
+ --tw-shadow: -2px 2px 2px rgba(0,0,0,0.25);
4391
+ --tw-shadow-colored: -2px 2px 2px var(--tw-shadow-color);
4392
+ box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
4393
+ }
4394
+
4389
4395
  .shadow-\[-4px_4px_20px_0px_\#0000001A\]{
4390
4396
  --tw-shadow: -4px 4px 20px 0px #0000001A;
4391
4397
  --tw-shadow-colored: -4px 4px 20px 0px var(--tw-shadow-color);
@@ -5670,6 +5676,14 @@ div{
5670
5676
  background-color: rgb(235 234 240 / var(--tw-bg-opacity));
5671
5677
  }
5672
5678
 
5679
+ .hover\:bg-primary-50\/30:hover{
5680
+ background-color: rgb(235 234 240 / 0.3);
5681
+ }
5682
+
5683
+ .hover\:bg-primary-50\/50:hover{
5684
+ background-color: rgb(235 234 240 / 0.5);
5685
+ }
5686
+
5673
5687
  .hover\:bg-primary-50\/80:hover{
5674
5688
  background-color: rgb(235 234 240 / 0.8);
5675
5689
  }
@@ -5836,6 +5850,11 @@ div{
5836
5850
  --tw-ring-color: rgb(234 88 12 / var(--tw-ring-opacity));
5837
5851
  }
5838
5852
 
5853
+ .hover\:ring-primary-500:hover{
5854
+ --tw-ring-opacity: 1;
5855
+ --tw-ring-color: rgb(32 30 41 / var(--tw-ring-opacity));
5856
+ }
5857
+
5839
5858
  .hover\:ring-primary-600:hover{
5840
5859
  --tw-ring-opacity: 1;
5841
5860
  --tw-ring-color: rgb(16 15 21 / var(--tw-ring-opacity));
@@ -5860,6 +5879,14 @@ div{
5860
5879
  background-color: rgb(235 234 240 / var(--tw-bg-opacity));
5861
5880
  }
5862
5881
 
5882
+ .focus\:bg-primary-50\/30:focus{
5883
+ background-color: rgb(235 234 240 / 0.3);
5884
+ }
5885
+
5886
+ .focus\:bg-primary-50\/50:focus{
5887
+ background-color: rgb(235 234 240 / 0.5);
5888
+ }
5889
+
5863
5890
  .focus\:bg-primary-600:focus{
5864
5891
  --tw-bg-opacity: 1;
5865
5892
  background-color: rgb(16 15 21 / var(--tw-bg-opacity));
@@ -6416,6 +6443,36 @@ div{
6416
6443
  }
6417
6444
  }
6418
6445
 
6446
+ .dark\:bg-white:where(.dark, .dark *){
6447
+ --tw-bg-opacity: 1;
6448
+ background-color: rgb(255 255 255 / var(--tw-bg-opacity));
6449
+ }
6450
+
6451
+ .dark\:text-general-800:where(.dark, .dark *){
6452
+ --tw-text-opacity: 1;
6453
+ color: rgb(32 30 41 / var(--tw-text-opacity));
6454
+ }
6455
+
6456
+ .dark\:ring-danger-500:where(.dark, .dark *){
6457
+ --tw-ring-opacity: 1;
6458
+ --tw-ring-color: rgb(255 0 34 / var(--tw-ring-opacity));
6459
+ }
6460
+
6461
+ .dark\:ring-general-200:where(.dark, .dark *){
6462
+ --tw-ring-opacity: 1;
6463
+ --tw-ring-color: rgb(181 179 199 / var(--tw-ring-opacity));
6464
+ }
6465
+
6466
+ .dark\:hover\:ring-primary-400:hover:where(.dark, .dark *){
6467
+ --tw-ring-opacity: 1;
6468
+ --tw-ring-color: rgb(108 104 141 / var(--tw-ring-opacity));
6469
+ }
6470
+
6471
+ .dark\:focus\:ring-primary-400:focus:where(.dark, .dark *){
6472
+ --tw-ring-opacity: 1;
6473
+ --tw-ring-color: rgb(108 104 141 / var(--tw-ring-opacity));
6474
+ }
6475
+
6419
6476
  .\[\&\:\:-webkit-scrollbar\]\:hidden::-webkit-scrollbar{
6420
6477
  display: none;
6421
6478
  }
@@ -6509,6 +6566,14 @@ div{
6509
6566
  width: 100%;
6510
6567
  }
6511
6568
 
6569
+ .\[\&\>\.icon\]\:\!h-4>.icon{
6570
+ height: 1rem !important;
6571
+ }
6572
+
6573
+ .\[\&\>\.icon\]\:\!w-4>.icon{
6574
+ width: 1rem !important;
6575
+ }
6576
+
6512
6577
  .\[\&\>\[data-pc-name\=badge\]\]\:h-4>[data-pc-name=badge]{
6513
6578
  height: 1rem;
6514
6579
  }
@@ -1,105 +1,2 @@
1
- declare namespace _default {
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
- exports.default = {
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
- class: [
10
- // Flexbox
11
- 'flex flex-1',
12
- // Spacing
13
- 'list-none',
14
- 'p-0 m-0',
15
- // Colors
16
- 'text-general-100',
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 context = _a.context, state = _a.state;
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': context.type === 'pill',
36
- 'p-2 pb-1.5 pt-0.5 !h-6': context.type !== 'pill',
37
- 'ml-1': context.type === 'pill' && context.index !== 0,
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': context.type !== 'pill',
50
+ 'border-b-2': props.type === 'tab',
42
51
  },
43
52
  // Colors and Conditions
44
53
  {
45
- 'border-primary-500': state.active,
46
- 'border-grayscale-400': !state.active,
47
- 'text-grayscale-600': !state.active,
48
- 'text-primary-500': state.active,
49
- 'bg-primary-500 text-white': context.type === 'pill' && state.active,
50
- 'bg-grayscale-200 text-grayscale-800': context.type === 'pill' && !state.active,
51
- 'bg-transparent ': context.type !== 'pill' && !state.active,
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': !state.active,
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
- class: 'grow border-b-2 border-primary-100',
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@fewangsit/wangsvue-presets",
3
- "version": "1.0.99",
3
+ "version": "1.0.100-alpha.1",
4
4
  "author": "Wangsit FE Developer",
5
5
  "description": "Wangsit VueJS Component Library Presets",
6
6
  "main": "index.js",
@@ -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': boolean;
7
+ 'bg-white': any;
7
8
  'bg-general-50': boolean;
8
9
  'ring-general-100': boolean;
9
- 'ring-primary-700': boolean;
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 || props.value == props.modelValue,
21
- 'bg-general-50': props.disabled && props.value != props.modelValue,
22
- 'ring-general-100': !props.disabled && props.value != props.modelValue,
23
- 'ring-primary-700': !props.disabled && props.value == props.modelValue,
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 == props.modelValue &&
54
- props.value !== undefined &&
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
  });