@fewangsit/wangsvue-presets 1.0.99-alpha.7 → 1.0.99-rc.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.
Files changed (55) 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.js +94 -94
  7. package/fixedasset/index.system.js +2 -2
  8. package/fixedasset/inputotp/index.d.ts +136 -1
  9. package/fixedasset/inputotp/index.js +53 -50
  10. package/fixedasset/password/index.js +0 -1
  11. package/fixedasset/style.css +45 -133
  12. package/fixedasset/tabmenu/index.d.ts +104 -1
  13. package/fixedasset/tabmenu/index.js +28 -49
  14. package/fixedasset/timeline/index.d.ts +2 -24
  15. package/fixedasset/timeline/index.js +5 -24
  16. package/fixedasset/username/index.js +1 -1
  17. package/globalsettings/buttonradio/index.d.ts +4 -6
  18. package/globalsettings/buttonradio/index.js +12 -8
  19. package/globalsettings/fieldwrapper/index.d.ts +2 -5
  20. package/globalsettings/fieldwrapper/index.js +1 -4
  21. package/globalsettings/index.d.ts +1 -1
  22. package/globalsettings/index.js +26 -26
  23. package/globalsettings/index.system.js +2 -2
  24. package/globalsettings/style.css +47 -116
  25. package/globalsettings/tabmenu/index.d.ts +104 -1
  26. package/globalsettings/tabmenu/index.js +28 -49
  27. package/globalsettings/timeline/index.d.ts +0 -22
  28. package/globalsettings/timeline/index.js +0 -19
  29. package/package.json +1 -1
  30. package/supplyasset/buttonradio/index.d.ts +4 -6
  31. package/supplyasset/buttonradio/index.js +12 -8
  32. package/supplyasset/fieldwrapper/index.d.ts +2 -5
  33. package/supplyasset/fieldwrapper/index.js +1 -4
  34. package/supplyasset/index.d.ts +1 -1
  35. package/supplyasset/index.js +24 -24
  36. package/supplyasset/index.system.js +2 -2
  37. package/supplyasset/style.css +47 -116
  38. package/supplyasset/tabmenu/index.d.ts +104 -1
  39. package/supplyasset/tabmenu/index.js +29 -51
  40. package/supplyasset/timeline/index.d.ts +0 -22
  41. package/supplyasset/timeline/index.js +0 -19
  42. package/wangsvue/buttonbulkaction/index.d.ts +2 -2
  43. package/wangsvue/buttonbulkaction/index.js +1 -2
  44. package/wangsvue/buttonradio/index.d.ts +1 -2
  45. package/wangsvue/buttonradio/index.js +7 -3
  46. package/wangsvue/fieldwrapper/index.d.ts +2 -5
  47. package/wangsvue/fieldwrapper/index.js +1 -4
  48. package/wangsvue/index.d.ts +1 -1
  49. package/wangsvue/index.js +44 -44
  50. package/wangsvue/index.system.js +2 -2
  51. package/wangsvue/style.css +47 -104
  52. package/wangsvue/tabmenu/index.d.ts +56 -1
  53. package/wangsvue/tabmenu/index.js +13 -20
  54. package/wangsvue/timeline/index.d.ts +0 -20
  55. package/wangsvue/timeline/index.js +0 -16
@@ -2,19 +2,6 @@
2
2
 
3
3
  @import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro&display=swap');
4
4
 
5
- .icon{
6
- display: flex;
7
- height: 1em;
8
- width: 1em;
9
- background-color: currentColor;
10
- -webkit-mask-image: var(--svg);
11
- mask-image: var(--svg);
12
- -webkit-mask-repeat: no-repeat;
13
- mask-repeat: no-repeat;
14
- -webkit-mask-size: 100% 100%;
15
- mask-size: 100% 100%;
16
- }
17
-
18
5
  .ic-add {
19
6
  /* ri-add-line */
20
7
  --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");
@@ -906,6 +893,53 @@
906
893
  --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M19 10h1a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V11a1 1 0 0 1 1-1h1V9a7 7 0 0 1 14 0zM5 12v8h14v-8zm6 2h2v4h-2zm6-4V9A5 5 0 0 0 7 9v1z'/%3E%3C/svg%3E");
907
894
  }
908
895
 
896
+ .container{
897
+ width: 100%;
898
+ }
899
+
900
+ @media (min-width: 640px){
901
+ .container{
902
+ max-width: 640px;
903
+ }
904
+ }
905
+
906
+ @media (min-width: 768px){
907
+ .container{
908
+ max-width: 768px;
909
+ }
910
+ }
911
+
912
+ @media (min-width: 1024px){
913
+ .container{
914
+ max-width: 1024px;
915
+ }
916
+ }
917
+
918
+ @media (min-width: 1280px){
919
+ .container{
920
+ max-width: 1280px;
921
+ }
922
+ }
923
+
924
+ @media (min-width: 1536px){
925
+ .container{
926
+ max-width: 1536px;
927
+ }
928
+ }
929
+
930
+ .icon{
931
+ display: flex;
932
+ height: 1em;
933
+ width: 1em;
934
+ background-color: currentColor;
935
+ -webkit-mask-image: var(--svg);
936
+ mask-image: var(--svg);
937
+ -webkit-mask-repeat: no-repeat;
938
+ mask-repeat: no-repeat;
939
+ -webkit-mask-size: 100% 100%;
940
+ mask-size: 100% 100%;
941
+ }
942
+
909
943
  .\!pointer-events-none{
910
944
  pointer-events: none !important;
911
945
  }
@@ -1147,10 +1181,6 @@
1147
1181
  margin: 0px;
1148
1182
  }
1149
1183
 
1150
- .m-\[3px\]{
1151
- margin: 3px;
1152
- }
1153
-
1154
1184
  .\!mx-auto{
1155
1185
  margin-left: auto !important;
1156
1186
  margin-right: auto !important;
@@ -1391,10 +1421,6 @@
1391
1421
  display: inline;
1392
1422
  }
1393
1423
 
1394
- .\!flex{
1395
- display: flex !important;
1396
- }
1397
-
1398
1424
  .flex{
1399
1425
  display: flex;
1400
1426
  }
@@ -1435,10 +1461,6 @@
1435
1461
  height: 10px !important;
1436
1462
  }
1437
1463
 
1438
- .\!h-\[26px\]{
1439
- height: 26px !important;
1440
- }
1441
-
1442
1464
  .\!h-\[28px\]{
1443
1465
  height: 28px !important;
1444
1466
  }
@@ -1548,10 +1570,6 @@
1548
1570
  height: 21px;
1549
1571
  }
1550
1572
 
1551
- .h-\[22px\]{
1552
- height: 22px;
1553
- }
1554
-
1555
1573
  .h-\[26px\]{
1556
1574
  height: 26px;
1557
1575
  }
@@ -1794,10 +1812,6 @@
1794
1812
  width: 18px;
1795
1813
  }
1796
1814
 
1797
- .w-\[1px\]{
1798
- width: 1px;
1799
- }
1800
-
1801
1815
  .w-\[200px\]{
1802
1816
  width: 200px;
1803
1817
  }
@@ -1806,10 +1820,6 @@
1806
1820
  width: 224px;
1807
1821
  }
1808
1822
 
1809
- .w-\[22px\]{
1810
- width: 22px;
1811
- }
1812
-
1813
1823
  .w-\[272px\]{
1814
1824
  width: 272px;
1815
1825
  }
@@ -2537,10 +2547,6 @@
2537
2547
  overflow-y: hidden;
2538
2548
  }
2539
2549
 
2540
- .overflow-x-visible{
2541
- overflow-x: visible;
2542
- }
2543
-
2544
2550
  .overscroll-auto{
2545
2551
  overscroll-behavior: auto;
2546
2552
  }
@@ -2553,12 +2559,6 @@
2553
2559
  scroll-behavior: smooth;
2554
2560
  }
2555
2561
 
2556
- .truncate{
2557
- overflow: hidden;
2558
- text-overflow: ellipsis;
2559
- white-space: nowrap;
2560
- }
2561
-
2562
2562
  .overflow-ellipsis{
2563
2563
  text-overflow: ellipsis;
2564
2564
  }
@@ -4321,12 +4321,6 @@
4321
4321
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
4322
4322
  }
4323
4323
 
4324
- .shadow-\[-2px_2px_2px_rgba\(0\2c 0\2c 0\2c 0\.25\)\]{
4325
- --tw-shadow: -2px 2px 2px rgba(0,0,0,0.25);
4326
- --tw-shadow-colored: -2px 2px 2px var(--tw-shadow-color);
4327
- box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
4328
- }
4329
-
4330
4324
  .shadow-\[-4px_4px_20px_0px_\#0000001A\]{
4331
4325
  --tw-shadow: -4px 4px 20px 0px #0000001A;
4332
4326
  --tw-shadow-colored: -4px 4px 20px 0px var(--tw-shadow-color);
@@ -5563,10 +5557,6 @@ h6,
5563
5557
  background-color: rgb(248 247 238 / var(--tw-bg-opacity));
5564
5558
  }
5565
5559
 
5566
- .hover\:bg-primary-50\/30:hover{
5567
- background-color: rgb(248 247 238 / 0.3);
5568
- }
5569
-
5570
5560
  .hover\:bg-primary-50\/80:hover{
5571
5561
  background-color: rgb(248 247 238 / 0.8);
5572
5562
  }
@@ -5729,11 +5719,6 @@ h6,
5729
5719
  --tw-ring-color: rgb(234 88 12 / var(--tw-ring-opacity));
5730
5720
  }
5731
5721
 
5732
- .hover\:ring-primary-500:hover{
5733
- --tw-ring-opacity: 1;
5734
- --tw-ring-color: rgb(159 124 60 / var(--tw-ring-opacity));
5735
- }
5736
-
5737
5722
  .hover\:ring-primary-600:hover{
5738
5723
  --tw-ring-opacity: 1;
5739
5724
  --tw-ring-color: rgb(133 103 50 / var(--tw-ring-opacity));
@@ -5758,10 +5743,6 @@ h6,
5758
5743
  background-color: rgb(248 247 238 / var(--tw-bg-opacity));
5759
5744
  }
5760
5745
 
5761
- .focus\:bg-primary-50\/30:focus{
5762
- background-color: rgb(248 247 238 / 0.3);
5763
- }
5764
-
5765
5746
  .focus\:bg-primary-600:focus{
5766
5747
  --tw-bg-opacity: 1;
5767
5748
  background-color: rgb(133 103 50 / var(--tw-bg-opacity));
@@ -6308,36 +6289,6 @@ h6,
6308
6289
  }
6309
6290
  }
6310
6291
 
6311
- .dark\:bg-white:where(.dark, .dark *){
6312
- --tw-bg-opacity: 1;
6313
- background-color: rgb(255 255 255 / var(--tw-bg-opacity));
6314
- }
6315
-
6316
- .dark\:text-general-800:where(.dark, .dark *){
6317
- --tw-text-opacity: 1;
6318
- color: rgb(32 30 41 / var(--tw-text-opacity));
6319
- }
6320
-
6321
- .dark\:ring-danger-500:where(.dark, .dark *){
6322
- --tw-ring-opacity: 1;
6323
- --tw-ring-color: rgb(183 75 36 / var(--tw-ring-opacity));
6324
- }
6325
-
6326
- .dark\:ring-general-200:where(.dark, .dark *){
6327
- --tw-ring-opacity: 1;
6328
- --tw-ring-color: rgb(181 179 199 / var(--tw-ring-opacity));
6329
- }
6330
-
6331
- .dark\:hover\:ring-primary-400:hover:where(.dark, .dark *){
6332
- --tw-ring-opacity: 1;
6333
- --tw-ring-color: rgb(189 165 82 / var(--tw-ring-opacity));
6334
- }
6335
-
6336
- .dark\:focus\:ring-primary-400:focus:where(.dark, .dark *){
6337
- --tw-ring-opacity: 1;
6338
- --tw-ring-color: rgb(189 165 82 / var(--tw-ring-opacity));
6339
- }
6340
-
6341
6292
  .\[\&\:\:-webkit-scrollbar\]\:hidden::-webkit-scrollbar{
6342
6293
  display: none;
6343
6294
  }
@@ -6431,14 +6382,6 @@ h6,
6431
6382
  width: 100%;
6432
6383
  }
6433
6384
 
6434
- .\[\&\>\.icon\]\:\!h-4>.icon{
6435
- height: 1rem !important;
6436
- }
6437
-
6438
- .\[\&\>\.icon\]\:\!w-4>.icon{
6439
- width: 1rem !important;
6440
- }
6441
-
6442
6385
  .\[\&\>\[data-pc-name\=badge\]\]\:h-4>[data-pc-name=badge]{
6443
6386
  height: 1rem;
6444
6387
  }
@@ -1,2 +1,57 @@
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
+ 'bg-transparent ': boolean;
21
+ 'text-grayscale-900': boolean;
22
+ 'border-primary-400': boolean;
23
+ 'border-primary-100': boolean;
24
+ 'text-primary-500': boolean;
25
+ 'focus-visible:border-primary-200 focus-visible:text-primary-400'?: undefined;
26
+ 'pointer-events-none'?: undefined;
27
+ 'opacity-60'?: undefined;
28
+ } | {
29
+ 'focus-visible:border-primary-200 focus-visible:text-primary-400': boolean;
30
+ 'bg-transparent '?: undefined;
31
+ 'text-grayscale-900'?: undefined;
32
+ 'border-primary-400'?: undefined;
33
+ 'border-primary-100'?: undefined;
34
+ 'text-primary-500'?: undefined;
35
+ 'pointer-events-none'?: undefined;
36
+ 'opacity-60'?: undefined;
37
+ } | {
38
+ 'pointer-events-none': any;
39
+ 'opacity-60': any;
40
+ 'bg-transparent '?: undefined;
41
+ 'text-grayscale-900'?: undefined;
42
+ 'border-primary-400'?: undefined;
43
+ 'border-primary-100'?: undefined;
44
+ 'text-primary-500'?: undefined;
45
+ 'focus-visible:border-primary-200 focus-visible:text-primary-400'?: undefined;
46
+ })[];
47
+ };
48
+ namespace icon {
49
+ let _class_3: string;
50
+ export { _class_3 as class };
51
+ }
52
+ namespace inkbar {
53
+ let _class_4: string;
54
+ export { _class_4 as class };
55
+ }
56
+ }
2
57
  export default _default;
@@ -1,12 +1,11 @@
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',
7
6
  style: 'scrollbar-width: none',
8
7
  },
9
- menu: function () { return ({
8
+ menu: {
10
9
  class: [
11
10
  // Flexbox
12
11
  'flex flex-1',
@@ -17,13 +16,13 @@ exports.default = (0, core_1.definePreset)('WANGS-TAB-MENU', {
17
16
  // Colors
18
17
  'text-general-100',
19
18
  ],
20
- }); },
19
+ },
21
20
  menuitem: {
22
21
  class: 'mr-0',
23
22
  },
24
23
  action: function (_a) {
25
24
  var _b, _c;
26
- var context = _a.context;
25
+ var context = _a.context, state = _a.state;
27
26
  return ({
28
27
  class: [
29
28
  'relative',
@@ -38,18 +37,18 @@ exports.default = (0, core_1.definePreset)('WANGS-TAB-MENU', {
38
37
  'border-b-2',
39
38
  // Colors and Conditions
40
39
  {
41
- 'bg-transparent ': !context.active,
42
- 'text-grayscale-900': !context.active,
43
- 'border-primary-400': context.active,
44
- 'border-primary-100': !context.active,
45
- 'text-primary-500': context.active,
40
+ 'bg-transparent ': state.d_activeIndex !== context.index,
41
+ 'text-grayscale-900': state.d_activeIndex !== context.index,
42
+ 'border-primary-400': state.d_activeIndex === context.index,
43
+ 'border-primary-100': state.d_activeIndex !== context.index,
44
+ 'text-primary-500': state.d_activeIndex === context.index,
46
45
  },
47
46
  // States
48
47
  'hover:bg-primary-50',
49
48
  'focus-visible:outline-none focus-visible:outline-offset-0',
50
49
  'focus-visible:bg-primary-50',
51
50
  {
52
- 'focus-visible:border-primary-200 focus-visible:text-primary-400': !context.active,
51
+ 'focus-visible:border-primary-200 focus-visible:text-primary-400': state.d_activeIndex !== context.index,
53
52
  },
54
53
  // Disabled States
55
54
  {
@@ -70,13 +69,7 @@ exports.default = (0, core_1.definePreset)('WANGS-TAB-MENU', {
70
69
  icon: {
71
70
  class: 'mr-2',
72
71
  },
73
- inkbar: function (_a) {
74
- var props = _a.props;
75
- return ({
76
- class: [
77
- 'grow border-b-2 border-primary-100',
78
- { hidden: props.type === 'pill' || props.useTrailingLine === false },
79
- ],
80
- });
72
+ inkbar: {
73
+ class: 'grow border-b-2 border-primary-100',
81
74
  },
82
- });
75
+ };
@@ -38,26 +38,6 @@ declare namespace _default {
38
38
  })[];
39
39
  'data-wv-section': string;
40
40
  };
41
- function markerDot(item: any): {
42
- class: string[];
43
- 'data-wv-section': string;
44
- };
45
- namespace contentHeader {
46
- let _class_1: string[];
47
- export { _class_1 as class };
48
- }
49
- namespace contentDetailKey {
50
- let _class_2: string[];
51
- export { _class_2 as class };
52
- }
53
- namespace contentDetailValue {
54
- let _class_3: string[];
55
- export { _class_3 as class };
56
- }
57
- namespace contentDate {
58
- let _class_4: string[];
59
- export { _class_4 as class };
60
- }
61
41
  function connector({ props }: {
62
42
  props: any;
63
43
  }): {
@@ -68,22 +68,6 @@ exports.default = {
68
68
  ],
69
69
  'data-wv-section': 'markerArrow',
70
70
  }); },
71
- markerDot: function (item) { return ({
72
- 'class': ['hidden'],
73
- 'data-wv-section': 'markerDot',
74
- }); },
75
- contentHeader: {
76
- class: ['leading-5 cursor-pointer truncate !text-xs'],
77
- },
78
- contentDetailKey: {
79
- class: ['font-semibold whitespace-nowrap'],
80
- },
81
- contentDetailValue: {
82
- class: ['text-xs'],
83
- },
84
- contentDate: {
85
- class: [''],
86
- },
87
71
  connector: function (_a) {
88
72
  var props = _a.props;
89
73
  return ({