@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,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-500'?: undefined;
25
+ 'border-grayscale-400'?: undefined;
26
+ 'text-grayscale-600'?: undefined;
27
+ 'text-primary-500'?: undefined;
28
+ 'bg-primary-50 text-primary-500'?: 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-50 text-primary-500'?: 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-50 text-primary-500': 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-50 text-primary-500'?: 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-50 text-primary-500'?: 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,34 +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',
7
6
  style: 'scrollbar-width: none',
8
7
  },
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
- });
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
+ ],
25
18
  },
26
19
  menuitem: {
27
20
  class: 'mr-0',
28
21
  },
29
22
  action: function (_a) {
30
23
  var _b, _c;
31
- var context = _a.context, props = _a.props;
24
+ var context = _a.context, state = _a.state;
32
25
  return ({
33
26
  class: [
34
27
  'relative',
@@ -39,32 +32,28 @@ exports.default = (0, core_1.definePreset)('WANGS-TAB-MENU', {
39
32
  'flex items-center',
40
33
  // Spacing
41
34
  {
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,
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-500': context.active,
55
- 'border-grayscale-400': !context.active,
56
- 'text-grayscale-600': !context.active,
57
- 'text-primary-500': context.active,
58
- 'bg-primary-50 text-primary-500': 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,
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-50 text-primary-500': 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
54
  'focus-visible:outline-none focus-visible:outline-offset-0',
66
55
  {
67
- '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,
68
57
  },
69
58
  // Disabled States
70
59
  {
@@ -85,17 +74,7 @@ exports.default = (0, core_1.definePreset)('WANGS-TAB-MENU', {
85
74
  icon: {
86
75
  class: 'mr-2',
87
76
  },
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
- });
77
+ inkbar: {
78
+ class: 'grow border-b-2 border-primary-100',
100
79
  },
101
- });
80
+ };
@@ -30,36 +30,14 @@ declare namespace _default {
30
30
  }
31
31
  function markerArrow(item: any): {
32
32
  class: (string | {
33
- '!flex': boolean;
33
+ '!visible': boolean;
34
34
  'rotate-180'?: undefined;
35
35
  } | {
36
36
  'rotate-180': any;
37
- '!flex'?: undefined;
37
+ '!visible'?: undefined;
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
  }): {
@@ -53,44 +53,25 @@ exports.default = {
53
53
  },
54
54
  marker: {
55
55
  class: [
56
- 'w-[22px] h-[22px]',
56
+ 'w-max',
57
57
  'rounded-full',
58
58
  'bg-transparent',
59
- 'ring-1 ring-inset ring-general-100 p-0.5',
59
+ 'ring-2 ring-inset ring-primary-400 p-0.5',
60
60
  'flex items-center justify-center',
61
61
  ],
62
62
  },
63
63
  markerArrow: function (item) { return ({
64
64
  'class': [
65
- '!w-3 !h-3 hidden transition-transform duration-200 ease-in-out text-grayscale-900',
66
- { '!flex': item.detail && !isEmptyObject(item.detail) },
65
+ 'w-4 h-4 invisible transition-transform duration-200 ease-in-out text-grayscale-900',
66
+ { '!visible': item.detail && !isEmptyObject(item.detail) },
67
67
  { 'rotate-180': item.showDetail },
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 ({
93
- class: ['w-[1px] grow bg-general-100'],
74
+ class: ['w-[2px] grow bg-grayscale-900'],
94
75
  });
95
76
  },
96
77
  content: function (_a) {
@@ -9,7 +9,7 @@ var preset = {
9
9
  return ({
10
10
  class: [
11
11
  'text-xs font-medium cursor-pointer',
12
- { 'text-primary-500 cursor-pointer': props.type === 'icon' },
12
+ { 'text-primary-400 cursor-pointer': props.type === 'icon' },
13
13
  { 'text-general-800': props.type !== 'icon' },
14
14
  ],
15
15
  });
@@ -1,13 +1,12 @@
1
1
  declare namespace _default {
2
- function root({ props, state }: {
2
+ function root({ props }: {
3
3
  props: any;
4
- state: any;
5
4
  }): {
6
5
  class: (string | {
7
- 'bg-white': any;
6
+ 'bg-white': boolean;
8
7
  'bg-general-50': boolean;
9
8
  'ring-general-100': boolean;
10
- 'ring-primary-500': any;
9
+ 'ring-primary-500': boolean;
11
10
  'ring-general-200': any;
12
11
  '!ring-danger-500'?: undefined;
13
12
  } | {
@@ -21,9 +20,8 @@ declare namespace _default {
21
20
  'data-wv-name': string;
22
21
  'data-wv-section': string;
23
22
  };
24
- function box({ props, state }: {
23
+ function box({ props }: {
25
24
  props: any;
26
- state: any;
27
25
  }): {
28
26
  class: (string | {
29
27
  'bg-primary-500': 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, state = _a.state;
6
+ var props = _a.props;
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 || state.checked,
21
- 'bg-general-50': props.disabled && !state.checked,
22
- 'ring-general-100': !props.disabled && !state.checked,
23
- 'ring-primary-500': !props.disabled && state.checked,
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-500': !props.disabled && props.value == props.modelValue,
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, state = _a.state;
37
+ var props = _a.props;
38
38
  return ({
39
39
  class: [
40
40
  // Size
@@ -50,8 +50,12 @@ exports.default = {
50
50
  'transition duration-200 ease-in-out',
51
51
  // Colors
52
52
  {
53
- 'bg-primary-500': state.checked && props.value !== undefined && !props.disabled,
54
- 'bg-general-200': state.checked && props.value !== undefined && props.disabled,
53
+ 'bg-primary-500': 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,
55
59
  },
56
60
  // States
57
61
  {
@@ -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,16 +9,13 @@ 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
  [
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
- }
22
19
  ],
23
20
  'data-wv-section': 'fieldlabel',
24
21
  });
@@ -104,7 +104,7 @@ import card from './card/index.js';
104
104
  import menu from './menu/index.js';
105
105
  import steps from './steps/index.js';
106
106
  import breadcrumb from './breadcrumb/index.js';
107
- import tabmenu from './tabmenu/index';
107
+ import tabmenu from './tabmenu/index.js';
108
108
  import dialog from './dialog/index.js';
109
109
  import dialogconfirm from './dialogconfirm/index.js';
110
110
  import dialogform from './dialogform/index.js';