@fewangsit/wangsvue-presets 1.0.101 → 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.
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 +660 -321
  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 +10 -5
  18. package/fixedasset/tree/index.js +8 -5
  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 +535 -191
  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 +544 -199
  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 +106 -49
  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,51 +906,8 @@
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%;
909
+ .ic-fingerprint-line {
910
+ --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='M17 13v1c0 2.77-.664 5.445-1.915 7.846l-.227.42l-1.746-.974a14.9 14.9 0 0 0 1.881-6.836L15 14v-1zm-6-3h2v4l-.005.379a12.94 12.94 0 0 1-2.691 7.549l-.231.29l-1.549-1.264a10.94 10.94 0 0 0 2.47-6.588L11 14zm1-4a5 5 0 0 1 5 5h-2a3 3 0 0 0-6 0v3c0 2.235-.82 4.344-2.27 5.977l-.212.23l-1.448-1.38a6.97 6.97 0 0 0 1.924-4.524L7 14v-3a5 5 0 0 1 5-5m0-4a9 9 0 0 1 9 9v3c0 1.698-.201 3.37-.596 4.99l-.14.539l-1.93-.526c.392-1.437.614-2.922.658-4.435L19 14v-3A7 7 0 0 0 7.808 5.394L6.383 3.968A8.96 8.96 0 0 1 12 2M4.968 5.383l1.426 1.425a6.97 6.97 0 0 0-1.39 3.951L5 11l.004 2c0 1.12-.264 2.203-.761 3.177l-.157.29l-1.736-.992c.379-.665.6-1.407.645-2.183L3.004 13v-2a8.94 8.94 0 0 1 1.964-5.617'/%3E%3C/svg%3E");
941
911
  }
942
912
 
943
913
  .\!pointer-events-none{
@@ -1177,10 +1147,18 @@
1177
1147
  margin: 0px !important;
1178
1148
  }
1179
1149
 
1150
+ .\!m-\[2px\]{
1151
+ margin: 2px !important;
1152
+ }
1153
+
1180
1154
  .m-0{
1181
1155
  margin: 0px;
1182
1156
  }
1183
1157
 
1158
+ .m-\[3px\]{
1159
+ margin: 3px;
1160
+ }
1161
+
1184
1162
  .\!mx-auto{
1185
1163
  margin-left: auto !important;
1186
1164
  margin-right: auto !important;
@@ -1421,6 +1399,10 @@
1421
1399
  display: inline;
1422
1400
  }
1423
1401
 
1402
+ .\!flex{
1403
+ display: flex !important;
1404
+ }
1405
+
1424
1406
  .flex{
1425
1407
  display: flex;
1426
1408
  }
@@ -1461,6 +1443,10 @@
1461
1443
  height: 10px !important;
1462
1444
  }
1463
1445
 
1446
+ .\!h-\[26px\]{
1447
+ height: 26px !important;
1448
+ }
1449
+
1464
1450
  .\!h-\[28px\]{
1465
1451
  height: 28px !important;
1466
1452
  }
@@ -1570,6 +1556,10 @@
1570
1556
  height: 21px;
1571
1557
  }
1572
1558
 
1559
+ .h-\[22px\]{
1560
+ height: 22px;
1561
+ }
1562
+
1573
1563
  .h-\[26px\]{
1574
1564
  height: 26px;
1575
1565
  }
@@ -1812,6 +1802,10 @@
1812
1802
  width: 18px;
1813
1803
  }
1814
1804
 
1805
+ .w-\[1px\]{
1806
+ width: 1px;
1807
+ }
1808
+
1815
1809
  .w-\[200px\]{
1816
1810
  width: 200px;
1817
1811
  }
@@ -1820,6 +1814,10 @@
1820
1814
  width: 224px;
1821
1815
  }
1822
1816
 
1817
+ .w-\[22px\]{
1818
+ width: 22px;
1819
+ }
1820
+
1823
1821
  .w-\[272px\]{
1824
1822
  width: 272px;
1825
1823
  }
@@ -2559,6 +2557,12 @@
2559
2557
  scroll-behavior: smooth;
2560
2558
  }
2561
2559
 
2560
+ .truncate{
2561
+ overflow: hidden;
2562
+ text-overflow: ellipsis;
2563
+ white-space: nowrap;
2564
+ }
2565
+
2562
2566
  .overflow-ellipsis{
2563
2567
  text-overflow: ellipsis;
2564
2568
  }
@@ -4274,10 +4278,6 @@
4274
4278
  caret-color: #785930;
4275
4279
  }
4276
4280
 
4277
- .\!opacity-60{
4278
- opacity: 0.6 !important;
4279
- }
4280
-
4281
4281
  .opacity-0{
4282
4282
  opacity: 0;
4283
4283
  }
@@ -4316,6 +4316,12 @@
4316
4316
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
4317
4317
  }
4318
4318
 
4319
+ .shadow-\[-2px_2px_2px_rgba\(0\2c 0\2c 0\2c 0\.25\)\]{
4320
+ --tw-shadow: -2px 2px 2px rgba(0,0,0,0.25);
4321
+ --tw-shadow-colored: -2px 2px 2px var(--tw-shadow-color);
4322
+ box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
4323
+ }
4324
+
4319
4325
  .shadow-\[-4px_4px_20px_0px_\#0000001A\]{
4320
4326
  --tw-shadow: -4px 4px 20px 0px #0000001A;
4321
4327
  --tw-shadow-colored: -4px 4px 20px 0px var(--tw-shadow-color);
@@ -5552,6 +5558,10 @@ h6,
5552
5558
  background-color: rgb(248 247 238 / var(--tw-bg-opacity));
5553
5559
  }
5554
5560
 
5561
+ .hover\:bg-primary-50\/30:hover{
5562
+ background-color: rgb(248 247 238 / 0.3);
5563
+ }
5564
+
5555
5565
  .hover\:bg-primary-50\/80:hover{
5556
5566
  background-color: rgb(248 247 238 / 0.8);
5557
5567
  }
@@ -5714,6 +5724,11 @@ h6,
5714
5724
  --tw-ring-color: rgb(234 88 12 / var(--tw-ring-opacity));
5715
5725
  }
5716
5726
 
5727
+ .hover\:ring-primary-500:hover{
5728
+ --tw-ring-opacity: 1;
5729
+ --tw-ring-color: rgb(159 124 60 / var(--tw-ring-opacity));
5730
+ }
5731
+
5717
5732
  .hover\:ring-primary-600:hover{
5718
5733
  --tw-ring-opacity: 1;
5719
5734
  --tw-ring-color: rgb(133 103 50 / var(--tw-ring-opacity));
@@ -5738,6 +5753,10 @@ h6,
5738
5753
  background-color: rgb(248 247 238 / var(--tw-bg-opacity));
5739
5754
  }
5740
5755
 
5756
+ .focus\:bg-primary-50\/30:focus{
5757
+ background-color: rgb(248 247 238 / 0.3);
5758
+ }
5759
+
5741
5760
  .focus\:bg-primary-600:focus{
5742
5761
  --tw-bg-opacity: 1;
5743
5762
  background-color: rgb(133 103 50 / var(--tw-bg-opacity));
@@ -6284,6 +6303,36 @@ h6,
6284
6303
  }
6285
6304
  }
6286
6305
 
6306
+ .dark\:bg-white:where(.dark, .dark *){
6307
+ --tw-bg-opacity: 1;
6308
+ background-color: rgb(255 255 255 / var(--tw-bg-opacity));
6309
+ }
6310
+
6311
+ .dark\:text-general-800:where(.dark, .dark *){
6312
+ --tw-text-opacity: 1;
6313
+ color: rgb(32 30 41 / var(--tw-text-opacity));
6314
+ }
6315
+
6316
+ .dark\:ring-danger-500:where(.dark, .dark *){
6317
+ --tw-ring-opacity: 1;
6318
+ --tw-ring-color: rgb(183 75 36 / var(--tw-ring-opacity));
6319
+ }
6320
+
6321
+ .dark\:ring-general-200:where(.dark, .dark *){
6322
+ --tw-ring-opacity: 1;
6323
+ --tw-ring-color: rgb(181 179 199 / var(--tw-ring-opacity));
6324
+ }
6325
+
6326
+ .dark\:hover\:ring-primary-400:hover:where(.dark, .dark *){
6327
+ --tw-ring-opacity: 1;
6328
+ --tw-ring-color: rgb(189 165 82 / var(--tw-ring-opacity));
6329
+ }
6330
+
6331
+ .dark\:focus\:ring-primary-400:focus:where(.dark, .dark *){
6332
+ --tw-ring-opacity: 1;
6333
+ --tw-ring-color: rgb(189 165 82 / var(--tw-ring-opacity));
6334
+ }
6335
+
6287
6336
  .\[\&\:\:-webkit-scrollbar\]\:hidden::-webkit-scrollbar{
6288
6337
  display: none;
6289
6338
  }
@@ -6377,6 +6426,14 @@ h6,
6377
6426
  width: 100%;
6378
6427
  }
6379
6428
 
6429
+ .\[\&\>\.icon\]\:\!h-4>.icon{
6430
+ height: 1rem !important;
6431
+ }
6432
+
6433
+ .\[\&\>\.icon\]\:\!w-4>.icon{
6434
+ width: 1rem !important;
6435
+ }
6436
+
6380
6437
  .\[\&\>\[data-pc-name\=badge\]\]\:h-4>[data-pc-name=badge]{
6381
6438
  height: 1rem;
6382
6439
  }
@@ -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 ({