@fewangsit/wangsvue-presets 1.0.99-alpha.8 → 1.0.99-rc.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 (59) hide show
  1. package/fixedasset/buttonradio/index.d.ts +4 -6
  2. package/fixedasset/buttonradio/index.js +12 -8
  3. package/fixedasset/fieldwrapper/index.d.ts +2 -5
  4. package/fixedasset/fieldwrapper/index.js +1 -4
  5. package/fixedasset/index.d.ts +2 -2
  6. package/fixedasset/index.es.js +9652 -0
  7. package/fixedasset/index.js +94 -94
  8. package/fixedasset/index.system.js +2 -2
  9. package/fixedasset/inputotp/index.d.ts +136 -1
  10. package/fixedasset/inputotp/index.js +53 -50
  11. package/fixedasset/password/index.js +0 -1
  12. package/fixedasset/style.css +45 -137
  13. package/fixedasset/tabmenu/index.d.ts +104 -1
  14. package/fixedasset/tabmenu/index.js +27 -48
  15. package/fixedasset/timeline/index.d.ts +2 -24
  16. package/fixedasset/timeline/index.js +5 -24
  17. package/fixedasset/username/index.js +1 -1
  18. package/globalsettings/buttonradio/index.d.ts +4 -6
  19. package/globalsettings/buttonradio/index.js +12 -8
  20. package/globalsettings/fieldwrapper/index.d.ts +2 -5
  21. package/globalsettings/fieldwrapper/index.js +1 -4
  22. package/globalsettings/index.d.ts +1 -1
  23. package/globalsettings/index.es.js +5333 -0
  24. package/globalsettings/index.js +26 -26
  25. package/globalsettings/index.system.js +2 -2
  26. package/globalsettings/style.css +47 -120
  27. package/globalsettings/tabmenu/index.d.ts +104 -1
  28. package/globalsettings/tabmenu/index.js +27 -48
  29. package/globalsettings/timeline/index.d.ts +0 -22
  30. package/globalsettings/timeline/index.js +0 -19
  31. package/package.json +1 -1
  32. package/supplyasset/buttonradio/index.d.ts +4 -6
  33. package/supplyasset/buttonradio/index.js +12 -8
  34. package/supplyasset/fieldwrapper/index.d.ts +2 -5
  35. package/supplyasset/fieldwrapper/index.js +1 -4
  36. package/supplyasset/index.d.ts +1 -1
  37. package/supplyasset/index.es.js +5301 -0
  38. package/supplyasset/index.js +24 -24
  39. package/supplyasset/index.system.js +2 -2
  40. package/supplyasset/style.css +47 -120
  41. package/supplyasset/tabmenu/index.d.ts +104 -1
  42. package/supplyasset/tabmenu/index.js +28 -50
  43. package/supplyasset/timeline/index.d.ts +0 -22
  44. package/supplyasset/timeline/index.js +0 -19
  45. package/wangsvue/buttonbulkaction/index.d.ts +2 -2
  46. package/wangsvue/buttonbulkaction/index.js +1 -2
  47. package/wangsvue/buttonradio/index.d.ts +1 -2
  48. package/wangsvue/buttonradio/index.js +7 -3
  49. package/wangsvue/fieldwrapper/index.d.ts +2 -5
  50. package/wangsvue/fieldwrapper/index.js +1 -4
  51. package/wangsvue/index.d.ts +1 -1
  52. package/wangsvue/index.es.js +9607 -0
  53. package/wangsvue/index.js +44 -44
  54. package/wangsvue/index.system.js +2 -2
  55. package/wangsvue/style.css +47 -104
  56. package/wangsvue/tabmenu/index.d.ts +56 -1
  57. package/wangsvue/tabmenu/index.js +13 -20
  58. package/wangsvue/timeline/index.d.ts +0 -20
  59. package/wangsvue/timeline/index.js +0 -16
@@ -1,18 +1,5 @@
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
-
16
3
  .ic-add {
17
4
  /* ri-add-line */
18
5
  --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");
@@ -920,6 +907,53 @@
920
907
  --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");
921
908
  }
922
909
 
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
+
923
957
  .\!pointer-events-none{
924
958
  pointer-events: none !important;
925
959
  }
@@ -1157,18 +1191,10 @@
1157
1191
  margin: 0px !important;
1158
1192
  }
1159
1193
 
1160
- .\!m-\[2px\]{
1161
- margin: 2px !important;
1162
- }
1163
-
1164
1194
  .m-0{
1165
1195
  margin: 0px;
1166
1196
  }
1167
1197
 
1168
- .m-\[3px\]{
1169
- margin: 3px;
1170
- }
1171
-
1172
1198
  .\!mx-auto{
1173
1199
  margin-left: auto !important;
1174
1200
  margin-right: auto !important;
@@ -1413,10 +1439,6 @@
1413
1439
  display: inline;
1414
1440
  }
1415
1441
 
1416
- .\!flex{
1417
- display: flex !important;
1418
- }
1419
-
1420
1442
  .flex{
1421
1443
  display: flex;
1422
1444
  }
@@ -1461,10 +1483,6 @@
1461
1483
  height: 10px !important;
1462
1484
  }
1463
1485
 
1464
- .\!h-\[26px\]{
1465
- height: 26px !important;
1466
- }
1467
-
1468
1486
  .\!h-\[28px\]{
1469
1487
  height: 28px !important;
1470
1488
  }
@@ -1574,10 +1592,6 @@
1574
1592
  height: 21px;
1575
1593
  }
1576
1594
 
1577
- .h-\[22px\]{
1578
- height: 22px;
1579
- }
1580
-
1581
1595
  .h-\[26px\]{
1582
1596
  height: 26px;
1583
1597
  }
@@ -1824,10 +1838,6 @@
1824
1838
  width: 18px;
1825
1839
  }
1826
1840
 
1827
- .w-\[1px\]{
1828
- width: 1px;
1829
- }
1830
-
1831
1841
  .w-\[200px\]{
1832
1842
  width: 200px;
1833
1843
  }
@@ -1836,10 +1846,6 @@
1836
1846
  width: 224px;
1837
1847
  }
1838
1848
 
1839
- .w-\[22px\]{
1840
- width: 22px;
1841
- }
1842
-
1843
1849
  .w-\[272px\]{
1844
1850
  width: 272px;
1845
1851
  }
@@ -2547,10 +2553,6 @@
2547
2553
  overflow: hidden;
2548
2554
  }
2549
2555
 
2550
- .overflow-visible{
2551
- overflow: visible;
2552
- }
2553
-
2554
2556
  .overflow-scroll{
2555
2557
  overflow: scroll;
2556
2558
  }
@@ -2571,10 +2573,6 @@
2571
2573
  overflow-y: hidden;
2572
2574
  }
2573
2575
 
2574
- .overflow-x-visible{
2575
- overflow-x: visible;
2576
- }
2577
-
2578
2576
  .overscroll-auto{
2579
2577
  overscroll-behavior: auto;
2580
2578
  }
@@ -2587,12 +2585,6 @@
2587
2585
  scroll-behavior: smooth;
2588
2586
  }
2589
2587
 
2590
- .truncate{
2591
- overflow: hidden;
2592
- text-overflow: ellipsis;
2593
- white-space: nowrap;
2594
- }
2595
-
2596
2588
  .overflow-ellipsis{
2597
2589
  text-overflow: ellipsis;
2598
2590
  }
@@ -4385,12 +4377,6 @@
4385
4377
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
4386
4378
  }
4387
4379
 
4388
- .shadow-\[-2px_2px_2px_rgba\(0\2c 0\2c 0\2c 0\.25\)\]{
4389
- --tw-shadow: -2px 2px 2px rgba(0,0,0,0.25);
4390
- --tw-shadow-colored: -2px 2px 2px var(--tw-shadow-color);
4391
- box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
4392
- }
4393
-
4394
4380
  .shadow-\[-4px_4px_20px_0px_\#0000001A\]{
4395
4381
  --tw-shadow: -4px 4px 20px 0px #0000001A;
4396
4382
  --tw-shadow-colored: -4px 4px 20px 0px var(--tw-shadow-color);
@@ -5651,14 +5637,6 @@ div{
5651
5637
  background-color: rgb(236 253 245 / var(--tw-bg-opacity));
5652
5638
  }
5653
5639
 
5654
- .hover\:bg-primary-50\/30:hover{
5655
- background-color: rgb(236 253 245 / 0.3);
5656
- }
5657
-
5658
- .hover\:bg-primary-50\/50:hover{
5659
- background-color: rgb(236 253 245 / 0.5);
5660
- }
5661
-
5662
5640
  .hover\:bg-primary-50\/80:hover{
5663
5641
  background-color: rgb(236 253 245 / 0.8);
5664
5642
  }
@@ -5821,11 +5799,6 @@ div{
5821
5799
  --tw-ring-color: rgb(234 88 12 / var(--tw-ring-opacity));
5822
5800
  }
5823
5801
 
5824
- .hover\:ring-primary-500:hover{
5825
- --tw-ring-opacity: 1;
5826
- --tw-ring-color: rgb(16 185 129 / var(--tw-ring-opacity));
5827
- }
5828
-
5829
5802
  .hover\:ring-primary-600:hover{
5830
5803
  --tw-ring-opacity: 1;
5831
5804
  --tw-ring-color: rgb(5 150 105 / var(--tw-ring-opacity));
@@ -5850,14 +5823,6 @@ div{
5850
5823
  background-color: rgb(236 253 245 / var(--tw-bg-opacity));
5851
5824
  }
5852
5825
 
5853
- .focus\:bg-primary-50\/30:focus{
5854
- background-color: rgb(236 253 245 / 0.3);
5855
- }
5856
-
5857
- .focus\:bg-primary-50\/50:focus{
5858
- background-color: rgb(236 253 245 / 0.5);
5859
- }
5860
-
5861
5826
  .focus\:bg-primary-600:focus{
5862
5827
  --tw-bg-opacity: 1;
5863
5828
  background-color: rgb(5 150 105 / var(--tw-bg-opacity));
@@ -6245,36 +6210,6 @@ div{
6245
6210
  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);
6246
6211
  }
6247
6212
 
6248
- .dark\:bg-white:is(.dark *){
6249
- --tw-bg-opacity: 1;
6250
- background-color: rgb(255 255 255 / var(--tw-bg-opacity));
6251
- }
6252
-
6253
- .dark\:text-general-800:is(.dark *){
6254
- --tw-text-opacity: 1;
6255
- color: rgb(32 30 41 / var(--tw-text-opacity));
6256
- }
6257
-
6258
- .dark\:ring-danger-500:is(.dark *){
6259
- --tw-ring-opacity: 1;
6260
- --tw-ring-color: rgb(255 0 34 / var(--tw-ring-opacity));
6261
- }
6262
-
6263
- .dark\:ring-general-200:is(.dark *){
6264
- --tw-ring-opacity: 1;
6265
- --tw-ring-color: rgb(181 179 199 / var(--tw-ring-opacity));
6266
- }
6267
-
6268
- .dark\:hover\:ring-primary-400:hover:is(.dark *){
6269
- --tw-ring-opacity: 1;
6270
- --tw-ring-color: rgb(52 211 153 / var(--tw-ring-opacity));
6271
- }
6272
-
6273
- .dark\:focus\:ring-primary-400:focus:is(.dark *){
6274
- --tw-ring-opacity: 1;
6275
- --tw-ring-color: rgb(52 211 153 / var(--tw-ring-opacity));
6276
- }
6277
-
6278
6213
  @media (min-width: 576px){
6279
6214
  .min-\[576px\]\:pr-32{
6280
6215
  padding-right: 8rem;
@@ -6527,14 +6462,6 @@ div{
6527
6462
  width: 100%;
6528
6463
  }
6529
6464
 
6530
- .\[\&\>\.icon\]\:\!h-4>.icon{
6531
- height: 1rem !important;
6532
- }
6533
-
6534
- .\[\&\>\.icon\]\:\!w-4>.icon{
6535
- width: 1rem !important;
6536
- }
6537
-
6538
6465
  .\[\&\>\[data-pc-name\=badge\]\]\:h-4>[data-pc-name=badge]{
6539
6466
  height: 1rem;
6540
6467
  }
@@ -1,2 +1,105 @@
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>;
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-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
+ }
2
105
  export default _default;
@@ -1,33 +1,27 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- var core_1 = require("@wangs-ui/core");
4
- exports.default = (0, core_1.definePreset)('WANGS-TAB-MENU', {
3
+ exports.default = {
5
4
  root: {
6
5
  class: 'overflow-x-auto',
6
+ style: 'scrollbar-width: none',
7
7
  },
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
- });
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
+ ],
24
18
  },
25
19
  menuitem: {
26
20
  class: 'mr-0',
27
21
  },
28
22
  action: function (_a) {
29
23
  var _b, _c;
30
- var props = _a.props, context = _a.context;
24
+ var context = _a.context, state = _a.state;
31
25
  return ({
32
26
  class: [
33
27
  'relative',
@@ -38,34 +32,28 @@ exports.default = (0, core_1.definePreset)('WANGS-TAB-MENU', {
38
32
  'flex items-center',
39
33
  // Spacing
40
34
  {
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,
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,
47
38
  },
48
39
  // Shape
49
40
  {
50
- 'border-b-2': props.type === 'tab',
41
+ 'border-b-2': context.type !== 'pill',
51
42
  },
52
43
  // Colors and Conditions
53
44
  {
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,
45
+ 'border-primary-700': state.active,
46
+ 'border-grayscale-400': !state.active,
47
+ 'text-grayscale-600': !state.active,
48
+ 'text-primary-700': state.active,
49
+ 'bg-primary-50 text-primary-700': 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,
63
52
  },
64
53
  // States
65
- { 'hover:bg-primary-50': props.type === 'tab' },
66
54
  'focus-visible:outline-none focus-visible:outline-offset-0',
67
55
  {
68
- 'focus-visible:border-primary-200 focus-visible:text-primary-400': !context.active,
56
+ 'focus-visible:border-primary-200 focus-visible:text-primary-400': !state.active,
69
57
  },
70
58
  // Disabled States
71
59
  {
@@ -86,17 +74,7 @@ exports.default = (0, core_1.definePreset)('WANGS-TAB-MENU', {
86
74
  icon: {
87
75
  class: 'mr-2',
88
76
  },
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
- });
77
+ inkbar: {
78
+ class: 'grow border-b-2 border-grayscale-400',
101
79
  },
102
- });
80
+ };
@@ -38,28 +38,6 @@ 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
- }
63
41
  function connector({ props }: {
64
42
  props: any;
65
43
  }): {
@@ -68,25 +68,6 @@ 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
- },
90
71
  connector: function (_a) {
91
72
  var props = _a.props;
92
73
  return ({
@@ -1,5 +1,4 @@
1
- export default button;
2
- declare namespace button {
1
+ declare namespace _default {
3
2
  let root: {
4
3
  class: string;
5
4
  'data-wv-name': string;
@@ -30,3 +29,4 @@ declare namespace button {
30
29
  'data-wv-section': string;
31
30
  };
32
31
  }
32
+ export default _default;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- var button = {
3
+ exports.default = {
4
4
  root: {
5
5
  'class': 'flex gap-2 items-center',
6
6
  'data-wv-name': 'buttonbulkaction',
@@ -33,4 +33,3 @@ var button = {
33
33
  'data-wv-section': 'buttonclearselection',
34
34
  },
35
35
  };
36
- exports.default = button;
@@ -14,9 +14,8 @@ declare namespace _default {
14
14
  'data-wv-name': string;
15
15
  'data-wv-section': string;
16
16
  };
17
- function box({ props, state }: {
17
+ function box({ props }: {
18
18
  props: any;
19
- state: any;
20
19
  }): {
21
20
  class: (string | {
22
21
  'bg-grayscale-900': boolean;
@@ -31,7 +31,7 @@ exports.default = {
31
31
  });
32
32
  },
33
33
  box: function (_a) {
34
- var props = _a.props, state = _a.state;
34
+ var props = _a.props;
35
35
  return ({
36
36
  class: [
37
37
  // Size
@@ -47,8 +47,12 @@ exports.default = {
47
47
  'transition duration-200 ease-in-out',
48
48
  // Colors
49
49
  {
50
- 'bg-grayscale-900': state.checked && props.value !== undefined && !props.disabled,
51
- 'bg-general-300': state.checked && props.value !== undefined && props.disabled,
50
+ 'bg-grayscale-900': props.value == props.modelValue &&
51
+ props.value !== undefined &&
52
+ !props.disabled,
53
+ 'bg-general-300': props.value == props.modelValue &&
54
+ props.value !== undefined &&
55
+ props.disabled,
52
56
  },
53
57
  // States
54
58
  {
@@ -4,13 +4,10 @@ declare namespace _default {
4
4
  'data-wv-name': string;
5
5
  'data-wv-section': string;
6
6
  };
7
- function label({ props, slots }: {
7
+ function label({ props }: {
8
8
  props: any;
9
- slots: any;
10
9
  }): {
11
- class: (any[] | {
12
- 'w-full': any;
13
- })[];
10
+ class: any[][];
14
11
  'data-wv-section': string;
15
12
  };
16
13
  namespace info {
@@ -9,13 +9,10 @@ exports.default = {
9
9
  'data-wv-section': 'root',
10
10
  },
11
11
  label: function (_a) {
12
- var props = _a.props, slots = _a.slots;
12
+ var props = _a.props;
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
- }
19
16
  ],
20
17
  'data-wv-section': 'fieldlabel',
21
18
  });
@@ -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/index.js';
177
177
  import dialog from './dialog/index.js';
178
178
  import dialogconfirm from './dialogconfirm/index.js';
179
179
  import dialogform from './dialogform/index.js';