@fewangsit/wangsvue-presets 1.0.99 → 1.0.100-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.
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 +663 -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 -49
  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 +14 -5
  18. package/fixedasset/tree/index.js +7 -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 -51
  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 -51
  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 -51
  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
@@ -2,6 +2,19 @@
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
+
5
18
  .ic-add {
6
19
  /* ri-add-line */
7
20
  --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");
@@ -893,57 +906,6 @@
893
906
  --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");
894
907
  }
895
908
 
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
-
943
- .\!pointer-events-none{
944
- pointer-events: none !important;
945
- }
946
-
947
909
  .pointer-events-none{
948
910
  pointer-events: none;
949
911
  }
@@ -1177,10 +1139,18 @@
1177
1139
  margin: 0px !important;
1178
1140
  }
1179
1141
 
1142
+ .\!m-\[2px\]{
1143
+ margin: 2px !important;
1144
+ }
1145
+
1180
1146
  .m-0{
1181
1147
  margin: 0px;
1182
1148
  }
1183
1149
 
1150
+ .m-\[3px\]{
1151
+ margin: 3px;
1152
+ }
1153
+
1184
1154
  .\!mx-auto{
1185
1155
  margin-left: auto !important;
1186
1156
  margin-right: auto !important;
@@ -1421,6 +1391,10 @@
1421
1391
  display: inline;
1422
1392
  }
1423
1393
 
1394
+ .\!flex{
1395
+ display: flex !important;
1396
+ }
1397
+
1424
1398
  .flex{
1425
1399
  display: flex;
1426
1400
  }
@@ -1461,6 +1435,10 @@
1461
1435
  height: 10px !important;
1462
1436
  }
1463
1437
 
1438
+ .\!h-\[26px\]{
1439
+ height: 26px !important;
1440
+ }
1441
+
1464
1442
  .\!h-\[28px\]{
1465
1443
  height: 28px !important;
1466
1444
  }
@@ -1570,6 +1548,10 @@
1570
1548
  height: 21px;
1571
1549
  }
1572
1550
 
1551
+ .h-\[22px\]{
1552
+ height: 22px;
1553
+ }
1554
+
1573
1555
  .h-\[26px\]{
1574
1556
  height: 26px;
1575
1557
  }
@@ -1812,6 +1794,10 @@
1812
1794
  width: 18px;
1813
1795
  }
1814
1796
 
1797
+ .w-\[1px\]{
1798
+ width: 1px;
1799
+ }
1800
+
1815
1801
  .w-\[200px\]{
1816
1802
  width: 200px;
1817
1803
  }
@@ -1820,6 +1806,10 @@
1820
1806
  width: 224px;
1821
1807
  }
1822
1808
 
1809
+ .w-\[22px\]{
1810
+ width: 22px;
1811
+ }
1812
+
1823
1813
  .w-\[272px\]{
1824
1814
  width: 272px;
1825
1815
  }
@@ -2559,6 +2549,12 @@
2559
2549
  scroll-behavior: smooth;
2560
2550
  }
2561
2551
 
2552
+ .truncate{
2553
+ overflow: hidden;
2554
+ text-overflow: ellipsis;
2555
+ white-space: nowrap;
2556
+ }
2557
+
2562
2558
  .overflow-ellipsis{
2563
2559
  text-overflow: ellipsis;
2564
2560
  }
@@ -4321,6 +4317,12 @@
4321
4317
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
4322
4318
  }
4323
4319
 
4320
+ .shadow-\[-2px_2px_2px_rgba\(0\2c 0\2c 0\2c 0\.25\)\]{
4321
+ --tw-shadow: -2px 2px 2px rgba(0,0,0,0.25);
4322
+ --tw-shadow-colored: -2px 2px 2px var(--tw-shadow-color);
4323
+ box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
4324
+ }
4325
+
4324
4326
  .shadow-\[-4px_4px_20px_0px_\#0000001A\]{
4325
4327
  --tw-shadow: -4px 4px 20px 0px #0000001A;
4326
4328
  --tw-shadow-colored: -4px 4px 20px 0px var(--tw-shadow-color);
@@ -5557,6 +5559,10 @@ h6,
5557
5559
  background-color: rgb(248 247 238 / var(--tw-bg-opacity));
5558
5560
  }
5559
5561
 
5562
+ .hover\:bg-primary-50\/30:hover{
5563
+ background-color: rgb(248 247 238 / 0.3);
5564
+ }
5565
+
5560
5566
  .hover\:bg-primary-50\/80:hover{
5561
5567
  background-color: rgb(248 247 238 / 0.8);
5562
5568
  }
@@ -5719,6 +5725,11 @@ h6,
5719
5725
  --tw-ring-color: rgb(234 88 12 / var(--tw-ring-opacity));
5720
5726
  }
5721
5727
 
5728
+ .hover\:ring-primary-500:hover{
5729
+ --tw-ring-opacity: 1;
5730
+ --tw-ring-color: rgb(159 124 60 / var(--tw-ring-opacity));
5731
+ }
5732
+
5722
5733
  .hover\:ring-primary-600:hover{
5723
5734
  --tw-ring-opacity: 1;
5724
5735
  --tw-ring-color: rgb(133 103 50 / var(--tw-ring-opacity));
@@ -5743,6 +5754,10 @@ h6,
5743
5754
  background-color: rgb(248 247 238 / var(--tw-bg-opacity));
5744
5755
  }
5745
5756
 
5757
+ .focus\:bg-primary-50\/30:focus{
5758
+ background-color: rgb(248 247 238 / 0.3);
5759
+ }
5760
+
5746
5761
  .focus\:bg-primary-600:focus{
5747
5762
  --tw-bg-opacity: 1;
5748
5763
  background-color: rgb(133 103 50 / var(--tw-bg-opacity));
@@ -6289,6 +6304,36 @@ h6,
6289
6304
  }
6290
6305
  }
6291
6306
 
6307
+ .dark\:bg-white:where(.dark, .dark *){
6308
+ --tw-bg-opacity: 1;
6309
+ background-color: rgb(255 255 255 / var(--tw-bg-opacity));
6310
+ }
6311
+
6312
+ .dark\:text-general-800:where(.dark, .dark *){
6313
+ --tw-text-opacity: 1;
6314
+ color: rgb(32 30 41 / var(--tw-text-opacity));
6315
+ }
6316
+
6317
+ .dark\:ring-danger-500:where(.dark, .dark *){
6318
+ --tw-ring-opacity: 1;
6319
+ --tw-ring-color: rgb(183 75 36 / var(--tw-ring-opacity));
6320
+ }
6321
+
6322
+ .dark\:ring-general-200:where(.dark, .dark *){
6323
+ --tw-ring-opacity: 1;
6324
+ --tw-ring-color: rgb(181 179 199 / var(--tw-ring-opacity));
6325
+ }
6326
+
6327
+ .dark\:hover\:ring-primary-400:hover:where(.dark, .dark *){
6328
+ --tw-ring-opacity: 1;
6329
+ --tw-ring-color: rgb(189 165 82 / var(--tw-ring-opacity));
6330
+ }
6331
+
6332
+ .dark\:focus\:ring-primary-400:focus:where(.dark, .dark *){
6333
+ --tw-ring-opacity: 1;
6334
+ --tw-ring-color: rgb(189 165 82 / var(--tw-ring-opacity));
6335
+ }
6336
+
6292
6337
  .\[\&\:\:-webkit-scrollbar\]\:hidden::-webkit-scrollbar{
6293
6338
  display: none;
6294
6339
  }
@@ -6382,6 +6427,14 @@ h6,
6382
6427
  width: 100%;
6383
6428
  }
6384
6429
 
6430
+ .\[\&\>\.icon\]\:\!h-4>.icon{
6431
+ height: 1rem !important;
6432
+ }
6433
+
6434
+ .\[\&\>\.icon\]\:\!w-4>.icon{
6435
+ width: 1rem !important;
6436
+ }
6437
+
6385
6438
  .\[\&\>\[data-pc-name\=badge\]\]\:h-4>[data-pc-name=badge]{
6386
6439
  height: 1rem;
6387
6440
  }
@@ -1,57 +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
- '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
- }
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>;
57
2
  export default _default;
@@ -1,11 +1,12 @@
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
+ menu: function () { return ({
9
10
  class: [
10
11
  // Flexbox
11
12
  'flex flex-1',
@@ -16,13 +17,13 @@ exports.default = {
16
17
  // Colors
17
18
  'text-general-100',
18
19
  ],
19
- },
20
+ }); },
20
21
  menuitem: {
21
22
  class: 'mr-0',
22
23
  },
23
24
  action: function (_a) {
24
25
  var _b, _c;
25
- var context = _a.context, state = _a.state;
26
+ var context = _a.context;
26
27
  return ({
27
28
  class: [
28
29
  'relative',
@@ -37,18 +38,18 @@ exports.default = {
37
38
  'border-b-2',
38
39
  // Colors and Conditions
39
40
  {
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,
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,
45
46
  },
46
47
  // States
47
48
  'hover:bg-primary-50',
48
49
  'focus-visible:outline-none focus-visible:outline-offset-0',
49
50
  'focus-visible:bg-primary-50',
50
51
  {
51
- 'focus-visible:border-primary-200 focus-visible:text-primary-400': state.d_activeIndex !== context.index,
52
+ 'focus-visible:border-primary-200 focus-visible:text-primary-400': !context.active,
52
53
  },
53
54
  // Disabled States
54
55
  {
@@ -69,7 +70,13 @@ exports.default = {
69
70
  icon: {
70
71
  class: 'mr-2',
71
72
  },
72
- inkbar: {
73
- class: 'grow border-b-2 border-primary-100',
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
+ });
74
81
  },
75
- };
82
+ });
@@ -38,6 +38,26 @@ 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
+ }
41
61
  function connector({ props }: {
42
62
  props: any;
43
63
  }): {
@@ -68,6 +68,22 @@ 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
+ },
71
87
  connector: function (_a) {
72
88
  var props = _a.props;
73
89
  return ({