@fewangsit/wangsvue-presets 1.0.98 → 1.0.99-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 (52) hide show
  1. package/fixedasset/fieldwrapper/index.d.ts +5 -2
  2. package/fixedasset/fieldwrapper/index.js +4 -1
  3. package/fixedasset/index.d.ts +3 -3
  4. package/fixedasset/index.js +95 -95
  5. package/fixedasset/index.system.js +2 -2
  6. package/fixedasset/inputotp/index.d.ts +1 -136
  7. package/fixedasset/inputotp/index.js +50 -53
  8. package/fixedasset/style.css +90 -47
  9. package/fixedasset/tabmenu/index.d.ts +1 -104
  10. package/fixedasset/tabmenu/index.js +24 -17
  11. package/fixedasset/timeline/index.d.ts +24 -2
  12. package/fixedasset/timeline/index.js +24 -5
  13. package/fixedasset/username/index.js +1 -1
  14. package/globalsettings/fieldwrapper/index.d.ts +5 -2
  15. package/globalsettings/fieldwrapper/index.js +4 -1
  16. package/globalsettings/index.d.ts +2 -2
  17. package/globalsettings/index.js +27 -27
  18. package/globalsettings/index.system.js +2 -2
  19. package/globalsettings/style.css +90 -47
  20. package/globalsettings/tabmenu/index.d.ts +1 -104
  21. package/globalsettings/tabmenu/index.js +24 -17
  22. package/globalsettings/timeline/index.d.ts +22 -0
  23. package/globalsettings/timeline/index.js +19 -0
  24. package/package.json +1 -1
  25. package/supplyasset/fieldwrapper/index.d.ts +5 -2
  26. package/supplyasset/fieldwrapper/index.js +4 -1
  27. package/supplyasset/index.d.ts +2 -2
  28. package/supplyasset/index.js +25 -25
  29. package/supplyasset/index.system.js +2 -2
  30. package/supplyasset/style.css +90 -47
  31. package/supplyasset/tabmenu/index.d.ts +1 -104
  32. package/supplyasset/tabmenu/index.js +26 -18
  33. package/supplyasset/timeline/index.d.ts +22 -0
  34. package/supplyasset/timeline/index.js +19 -0
  35. package/wangsvue/buttonbulkaction/index.d.ts +2 -2
  36. package/wangsvue/buttonbulkaction/index.js +2 -1
  37. package/wangsvue/fieldwrapper/index.d.ts +5 -2
  38. package/wangsvue/fieldwrapper/index.js +4 -1
  39. package/wangsvue/index.d.ts +1 -1
  40. package/wangsvue/index.js +44 -44
  41. package/wangsvue/index.system.js +2 -2
  42. package/wangsvue/style.css +82 -47
  43. package/wangsvue/tabmenu/index.d.ts +1 -56
  44. package/wangsvue/tabmenu/index.js +18 -11
  45. package/wangsvue/timeline/index.d.ts +20 -0
  46. package/wangsvue/timeline/index.js +16 -0
  47. /package/fixedasset/{customColumn → customcolumn}/index.d.ts +0 -0
  48. /package/fixedasset/{customColumn → customcolumn}/index.js +0 -0
  49. /package/globalsettings/{customColumn → customcolumn}/index.d.ts +0 -0
  50. /package/globalsettings/{customColumn → customcolumn}/index.js +0 -0
  51. /package/supplyasset/{customColumn → customcolumn}/index.d.ts +0 -0
  52. /package/supplyasset/{customColumn → customcolumn}/index.js +0 -0
@@ -1,137 +1,2 @@
1
- declare namespace _default {
2
- namespace root {
3
- let _class: string[];
4
- export { _class as class };
5
- }
6
- namespace input {
7
- export function root_1({ props, context, parent }: {
8
- props: any;
9
- context: any;
10
- parent: any;
11
- }): {
12
- class: (string | {
13
- 'flex-1 w-[1%]': boolean;
14
- 'p-3'?: undefined;
15
- 'rounded-md'?: undefined;
16
- 'first:rounded-l-md rounded-none last:rounded-r-md'?: undefined;
17
- 'border-0 border-y border-l last:border-r'?: undefined;
18
- 'first:ml-0 ml-[-1px]'?: undefined;
19
- 'border-general-200'?: undefined;
20
- 'border-danger-500'?: undefined;
21
- 'focus:outline-none focus:outline-offset-0'?: undefined;
22
- 'opacity-60 select-none pointer-events-none cursor-default'?: undefined;
23
- filled?: undefined;
24
- } | {
25
- 'p-3': boolean;
26
- 'flex-1 w-[1%]'?: undefined;
27
- 'rounded-md'?: undefined;
28
- 'first:rounded-l-md rounded-none last:rounded-r-md'?: undefined;
29
- 'border-0 border-y border-l last:border-r'?: undefined;
30
- 'first:ml-0 ml-[-1px]'?: undefined;
31
- 'border-general-200'?: undefined;
32
- 'border-danger-500'?: undefined;
33
- 'focus:outline-none focus:outline-offset-0'?: undefined;
34
- 'opacity-60 select-none pointer-events-none cursor-default'?: undefined;
35
- filled?: undefined;
36
- } | {
37
- 'rounded-md': boolean;
38
- 'flex-1 w-[1%]'?: undefined;
39
- 'p-3'?: undefined;
40
- 'first:rounded-l-md rounded-none last:rounded-r-md'?: undefined;
41
- 'border-0 border-y border-l last:border-r'?: undefined;
42
- 'first:ml-0 ml-[-1px]'?: undefined;
43
- 'border-general-200'?: undefined;
44
- 'border-danger-500'?: undefined;
45
- 'focus:outline-none focus:outline-offset-0'?: undefined;
46
- 'opacity-60 select-none pointer-events-none cursor-default'?: undefined;
47
- filled?: undefined;
48
- } | {
49
- 'first:rounded-l-md rounded-none last:rounded-r-md': boolean;
50
- 'flex-1 w-[1%]'?: undefined;
51
- 'p-3'?: undefined;
52
- 'rounded-md'?: undefined;
53
- 'border-0 border-y border-l last:border-r'?: undefined;
54
- 'first:ml-0 ml-[-1px]'?: undefined;
55
- 'border-general-200'?: undefined;
56
- 'border-danger-500'?: undefined;
57
- 'focus:outline-none focus:outline-offset-0'?: undefined;
58
- 'opacity-60 select-none pointer-events-none cursor-default'?: undefined;
59
- filled?: undefined;
60
- } | {
61
- 'border-0 border-y border-l last:border-r': boolean;
62
- 'flex-1 w-[1%]'?: undefined;
63
- 'p-3'?: undefined;
64
- 'rounded-md'?: undefined;
65
- 'first:rounded-l-md rounded-none last:rounded-r-md'?: undefined;
66
- 'first:ml-0 ml-[-1px]'?: undefined;
67
- 'border-general-200'?: undefined;
68
- 'border-danger-500'?: undefined;
69
- 'focus:outline-none focus:outline-offset-0'?: undefined;
70
- 'opacity-60 select-none pointer-events-none cursor-default'?: undefined;
71
- filled?: undefined;
72
- } | {
73
- 'first:ml-0 ml-[-1px]': boolean;
74
- 'flex-1 w-[1%]'?: undefined;
75
- 'p-3'?: undefined;
76
- 'rounded-md'?: undefined;
77
- 'first:rounded-l-md rounded-none last:rounded-r-md'?: undefined;
78
- 'border-0 border-y border-l last:border-r'?: undefined;
79
- 'border-general-200'?: undefined;
80
- 'border-danger-500'?: undefined;
81
- 'focus:outline-none focus:outline-offset-0'?: undefined;
82
- 'opacity-60 select-none pointer-events-none cursor-default'?: undefined;
83
- filled?: undefined;
84
- } | {
85
- 'border-general-200': boolean;
86
- 'flex-1 w-[1%]'?: undefined;
87
- 'p-3'?: undefined;
88
- 'rounded-md'?: undefined;
89
- 'first:rounded-l-md rounded-none last:rounded-r-md'?: undefined;
90
- 'border-0 border-y border-l last:border-r'?: undefined;
91
- 'first:ml-0 ml-[-1px]'?: undefined;
92
- 'border-danger-500'?: undefined;
93
- 'focus:outline-none focus:outline-offset-0'?: undefined;
94
- 'opacity-60 select-none pointer-events-none cursor-default'?: undefined;
95
- filled?: undefined;
96
- } | {
97
- 'border-danger-500': any;
98
- 'flex-1 w-[1%]'?: undefined;
99
- 'p-3'?: undefined;
100
- 'rounded-md'?: undefined;
101
- 'first:rounded-l-md rounded-none last:rounded-r-md'?: undefined;
102
- 'border-0 border-y border-l last:border-r'?: undefined;
103
- 'first:ml-0 ml-[-1px]'?: undefined;
104
- 'border-general-200'?: undefined;
105
- 'focus:outline-none focus:outline-offset-0'?: undefined;
106
- 'opacity-60 select-none pointer-events-none cursor-default'?: undefined;
107
- filled?: undefined;
108
- } | {
109
- 'focus:outline-none focus:outline-offset-0': boolean;
110
- 'opacity-60 select-none pointer-events-none cursor-default': any;
111
- 'flex-1 w-[1%]'?: undefined;
112
- 'p-3'?: undefined;
113
- 'rounded-md'?: undefined;
114
- 'first:rounded-l-md rounded-none last:rounded-r-md'?: undefined;
115
- 'border-0 border-y border-l last:border-r'?: undefined;
116
- 'first:ml-0 ml-[-1px]'?: undefined;
117
- 'border-general-200'?: undefined;
118
- 'border-danger-500'?: undefined;
119
- filled?: undefined;
120
- } | {
121
- filled: any;
122
- 'flex-1 w-[1%]'?: undefined;
123
- 'p-3'?: undefined;
124
- 'rounded-md'?: undefined;
125
- 'first:rounded-l-md rounded-none last:rounded-r-md'?: undefined;
126
- 'border-0 border-y border-l last:border-r'?: undefined;
127
- 'first:ml-0 ml-[-1px]'?: undefined;
128
- 'border-general-200'?: undefined;
129
- 'border-danger-500'?: undefined;
130
- 'focus:outline-none focus:outline-offset-0'?: undefined;
131
- 'opacity-60 select-none pointer-events-none cursor-default'?: undefined;
132
- })[];
133
- };
134
- export { root_1 as root };
135
- }
136
- }
1
+ declare const _default: import("@wangs-ui/core/dist/types/themes/preset-definitions").ToRawPreset<import("@wangs-ui/core/dist/types/components/inputotp/inputotp.type").InputOtpPreset, import("@wangs-ui/core/dist/types/components/inputotp/inputotp.type").InputOtpPresetMethodOptions>;
137
2
  export default _default;
@@ -1,63 +1,60 @@
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-INPUT-OTP', {
4
5
  root: {
5
6
  class: [
6
7
  // Alignment
7
8
  'flex items-center',
8
9
  'gap-[6px]',
10
+ 'w-max',
9
11
  ],
10
12
  },
11
- input: {
12
- root: function (_a) {
13
- var _b;
14
- var props = _a.props, context = _a.context, parent = _a.parent;
15
- return ({
16
- class: [
17
- // Font
18
- 'leading-none font-medium',
19
- // Flex & Alignment
20
- { 'flex-1 w-[1%]': parent.instance.$name == 'InputGroup' },
21
- 'text-center',
22
- // Spacing
23
- 'm-0',
24
- {
25
- 'p-3': props.size == null,
26
- },
27
- // Size
28
- 'w-[42px] h-[42px] text-base',
29
- // Shape
30
- { 'rounded-md': parent.instance.$name !== 'InputGroup' },
31
- {
32
- 'first:rounded-l-md rounded-none last:rounded-r-md': parent.instance.$name == 'InputGroup',
33
- },
34
- {
35
- 'border-0 border-y border-l last:border-r': parent.instance.$name == 'InputGroup',
36
- },
37
- {
38
- 'first:ml-0 ml-[-1px]': parent.instance.$name == 'InputGroup' && !props.showButtons,
39
- },
40
- // Colors
41
- 'text-general-800',
42
- 'placeholder:text-surface-400',
43
- 'bg-white',
44
- 'border',
45
- { 'border-general-200': !props.invalid },
46
- // Invalid State
47
- { 'border-danger-500': props.invalid },
48
- // States
49
- {
50
- // 'hover:border-primary-500': !context.disabled && !props.invalid,
51
- 'focus:outline-none focus:outline-offset-0': !context.disabled,
52
- 'opacity-60 select-none pointer-events-none cursor-default': context.disabled,
53
- },
54
- // Filled State *for FloatLabel
55
- { filled: ((_b = parent.instance) === null || _b === void 0 ? void 0 : _b.$name) == 'FloatLabel' && context.filled },
56
- // Misc
57
- 'appearance-none',
58
- 'transition-colors duration-200',
59
- ],
60
- });
61
- },
13
+ input: function (_a) {
14
+ var props = _a.props, context = _a.context, parent = _a.parent;
15
+ return ({
16
+ class: [
17
+ // Font
18
+ 'text-[14px] leading-none font-medium',
19
+ // Flex & Alignment
20
+ { 'flex-1 w-[1%]': parent.tagName == 'WANGS-INPUT-GROUP' },
21
+ 'text-center',
22
+ // Spacing
23
+ 'm-0',
24
+ // Size
25
+ 'w-[42px] h-[42px]',
26
+ // Shape
27
+ { 'rounded-md': parent.tagName !== 'WANGS-INPUT-GROUP' },
28
+ {
29
+ 'first:rounded-l-md rounded-none last:rounded-r-md': parent.tagName == 'WANGS-INPUT-GROUP',
30
+ },
31
+ {
32
+ 'border-0 border-y border-l last:border-r': parent.tagName == 'WANGS-INPUT-GROUP',
33
+ },
34
+ // Colors
35
+ 'text-general-800 dark:text-general-800',
36
+ 'placeholder:text-surface-400 dark:placeholder:text-surface-500',
37
+ 'bg-white dark:bg-white',
38
+ {
39
+ 'ring-1': navigator.userAgent.includes('Firefox'),
40
+ 'ring-[0.5px]': !navigator.userAgent.includes('Firefox'),
41
+ },
42
+ { 'ring-general-200 dark:ring-general-200': !props.invalid },
43
+ // Invalid State
44
+ { 'ring-danger-500 dark:ring-danger-500': props.invalid },
45
+ // States
46
+ {
47
+ 'hover:bg-primary-50/30 hover:ring-primary-500 dark:hover:ring-primary-400': !context.disabled && !props.invalid,
48
+ 'focus:bg-primary-50/30 focus:ring-primary-500 dark:focus:ring-primary-400': !context.disabled && !props.invalid,
49
+ 'focus:outline-none focus:outline-offset-0': !context.disabled,
50
+ 'opacity-60 select-none pointer-events-none cursor-default': context.disabled,
51
+ },
52
+ // Filled State *for FloatLabel
53
+ { filled: parent.tagName == 'WANGS-FLOAT-LABEL' && context.filled },
54
+ // Misc
55
+ 'appearance-none',
56
+ 'transition-colors duration-200',
57
+ ],
58
+ });
62
59
  },
63
- };
60
+ });
@@ -1,5 +1,18 @@
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
+
3
16
  .ic-add {
4
17
  /* ri-add-line */
5
18
  --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");
@@ -883,53 +896,6 @@
883
896
  --svg: url('data:image/svg+xml,%3Csvg%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cmask%20id%3D%22path-1-inside-1_2574_6016%22%20fill%3D%22white%22%3E%3Cpath%20d%3D%22M11.7813%206.55003C11.8994%206.68541%2011.8779%206.89327%2011.7282%206.9926C10.7409%207.64773%209.55387%208.00167%208.33333%207.99999C7.0669%207.99999%205.89478%207.62672%204.93853%206.99246C4.78887%206.89319%204.76731%206.68539%204.88536%206.55004C4.99164%206.42819%205.17341%206.40983%205.30798%206.49947C6.18706%207.08504%207.24525%207.40147%208.33333%207.39994C9.46243%207.39994%2010.507%207.06633%2011.3586%206.49933C11.4932%206.40972%2011.675%206.42816%2011.7813%206.55003ZM10.9539%205.46304C10.971%205.56793%2010.9289%205.67429%2010.8413%205.73447C10.1174%206.23181%209.23807%206.5011%208.33333%206.49985C7.45294%206.49985%206.63549%206.25%205.95923%205.82272C5.80729%205.72672%205.78578%205.51847%205.90397%205.38307C6.01028%205.26129%206.19182%205.24338%206.32857%205.32958C6.91765%205.70091%207.61605%205.90084%208.33333%205.89979C9.11447%205.89979%209.83712%205.66725%2010.4247%205.27305C10.5195%205.20944%2010.6388%205.1914%2010.7457%205.23153L10.7725%205.24157C10.8683%205.27755%2010.9375%205.36203%2010.9539%205.46304ZM9.79268%204.24963C9.88616%204.36863%209.864%204.54253%209.73396%204.61992C9.31793%204.8675%208.83191%205.00035%208.33333%204.9997C7.83841%204.9997%207.37579%204.87143%206.98223%204.64877C6.82582%204.56027%206.8044%204.35137%206.92258%204.21598C7.0289%204.09418%207.21019%204.07744%207.35237%204.1544C7.64843%204.31466%207.98684%204.40014%208.33333%204.39964C8.6701%204.39964%208.98696%204.32042%209.26321%204.18103C9.4385%204.09258%209.65746%204.10728%209.79268%204.24963Z%22%2F%3E%3C%2Fmask%3E%3Cpath%20d%3D%22M11.7813%206.55003C11.8994%206.68541%2011.8779%206.89327%2011.7282%206.9926C10.7409%207.64773%209.55387%208.00167%208.33333%207.99999C7.0669%207.99999%205.89478%207.62672%204.93853%206.99246C4.78887%206.89319%204.76731%206.68539%204.88536%206.55004C4.99164%206.42819%205.17341%206.40983%205.30798%206.49947C6.18706%207.08504%207.24525%207.40147%208.33333%207.39994C9.46243%207.39994%2010.507%207.06633%2011.3586%206.49933C11.4932%206.40972%2011.675%206.42816%2011.7813%206.55003ZM10.9539%205.46304C10.971%205.56793%2010.9289%205.67429%2010.8413%205.73447C10.1174%206.23181%209.23807%206.5011%208.33333%206.49985C7.45294%206.49985%206.63549%206.25%205.95923%205.82272C5.80729%205.72672%205.78578%205.51847%205.90397%205.38307C6.01028%205.26129%206.19182%205.24338%206.32857%205.32958C6.91765%205.70091%207.61605%205.90084%208.33333%205.89979C9.11447%205.89979%209.83712%205.66725%2010.4247%205.27305C10.5195%205.20944%2010.6388%205.1914%2010.7457%205.23153L10.7725%205.24157C10.8683%205.27755%2010.9375%205.36203%2010.9539%205.46304ZM9.79268%204.24963C9.88616%204.36863%209.864%204.54253%209.73396%204.61992C9.31793%204.8675%208.83191%205.00035%208.33333%204.9997C7.83841%204.9997%207.37579%204.87143%206.98223%204.64877C6.82582%204.56027%206.8044%204.35137%206.92258%204.21598C7.0289%204.09418%207.21019%204.07744%207.35237%204.1544C7.64843%204.31466%207.98684%204.40014%208.33333%204.39964C8.6701%204.39964%208.98696%204.32042%209.26321%204.18103C9.4385%204.09258%209.65746%204.10728%209.79268%204.24963Z%22%20fill%3D%22%23201E29%22%2F%3E%3Cpath%20d%3D%22M8.33333%207.99999L8.3347%206.99999H8.33333V7.99999ZM8.33333%207.39994V6.39993L8.33193%206.39994L8.33333%207.39994ZM8.33333%206.49985L8.33472%205.49985H8.33333V6.49985ZM8.33333%205.89979V4.89979L8.33187%204.89979L8.33333%205.89979ZM8.33333%204.9997L8.33465%203.9997H8.33333V4.9997ZM8.33333%204.39964V3.39964L8.3319%203.39964L8.33333%204.39964ZM9.26321%204.18103L9.71369%205.07382L9.26321%204.18103ZM7.35237%204.1544L7.82838%203.27497L7.35237%204.1544ZM6.98223%204.64877L7.47466%203.77841L6.98223%204.64877ZM10.7725%205.24157L10.4209%206.17775L10.7725%205.24157ZM5.95923%205.82272L5.42509%206.66811L5.95923%205.82272ZM10.8413%205.73447L11.4075%206.5587L10.8413%205.73447ZM5.30798%206.49947L4.7536%207.33173L5.30798%206.49947ZM9.73396%204.61992L9.22256%203.76058L9.73396%204.61992ZM4.93853%206.99246L4.38579%207.82581L4.93853%206.99246ZM11.3586%206.49933L11.9128%207.33174L11.3586%206.49933ZM10.4247%205.27305L9.86758%204.44262L10.4247%205.27305ZM11.1753%206.15937C10.3563%206.70284%209.3629%207.0014%208.3347%206.99999L8.33196%208.99999C9.74483%209.00193%2011.1256%208.59262%2012.2811%207.82582L11.1753%206.15937ZM8.33333%206.99999C7.26462%206.99999%206.28457%206.68529%205.49128%206.15911L4.38579%207.82581C5.50498%208.56815%206.86919%208.99999%208.33333%208.99999V6.99999ZM4.7536%207.33173C5.8013%208.02963%207.05377%208.40174%208.33474%208.39993L8.33193%206.39994C7.43673%206.4012%206.57283%206.14046%205.86237%205.66721L4.7536%207.33173ZM8.33333%208.39994C9.6607%208.39994%2010.8979%208.00743%2011.9128%207.33174L10.8045%205.66693C10.1161%206.12522%209.26416%206.39994%208.33333%206.39994V8.39994ZM10.275%204.91024C9.72251%205.28982%209.04218%205.50083%208.33472%205.49985L8.33194%207.49985C9.43396%207.50137%2010.5122%207.1738%2011.4075%206.5587L10.275%204.91024ZM8.33333%205.49985C7.64331%205.49985%207.01087%205.30429%206.49337%204.97732L5.42509%206.66811C6.26011%207.1957%207.26258%207.49985%208.33333%207.49985V5.49985ZM5.79532%206.17554C6.54791%206.64994%207.4324%206.90111%208.3348%206.89979L8.33187%204.89979C7.79971%204.90057%207.2874%204.75189%206.86183%204.48363L5.79532%206.17554ZM8.33333%206.89979C9.31415%206.89979%2010.2305%206.60753%2010.9818%206.10348L9.86758%204.44262C9.44373%204.72698%208.9148%204.89979%208.33333%204.89979V6.89979ZM10.3942%206.16771L10.4209%206.17775L11.124%204.3054L11.0973%204.29536L10.3942%206.16771ZM9.22256%203.76058C8.96449%203.91415%208.65615%204.00012%208.33465%203.9997L8.33202%205.9997C9.00768%206.00059%209.67136%205.82085%2010.2454%205.47927L9.22256%203.76058ZM8.33333%203.9997C8.01218%203.9997%207.71905%203.91668%207.47466%203.77841L6.4898%205.51912C7.03252%205.82618%207.66464%205.9997%208.33333%205.9997V3.9997ZM6.87635%205.03383C7.32113%205.27459%207.82397%205.40037%208.33477%205.39964L8.3319%203.39964C8.14972%203.3999%207.97574%203.35473%207.82838%203.27497L6.87635%205.03383ZM8.33333%205.39964C8.82773%205.39964%209.29877%205.28317%209.71369%205.07382L8.81274%203.28824C8.67516%203.35766%208.51247%203.39964%208.33333%203.39964V5.39964ZM9.71369%205.07382C9.58925%205.1366%209.30326%205.1864%209.06763%204.93833L10.5177%203.56093C10.0117%203.02816%209.28775%203.04856%208.81274%203.28824L9.71369%205.07382ZM7.67594%204.87359C7.41927%205.16762%207.06636%205.13669%206.87635%205.03383L7.82838%203.27497C7.35402%203.0182%206.63852%203.02074%206.16923%203.55836L7.67594%204.87359ZM7.47466%203.77841C7.94776%204.04609%207.91283%204.60221%207.67594%204.87359L6.16923%203.55836C5.69597%204.10052%205.70387%205.07445%206.4898%205.51912L7.47466%203.77841ZM10.4209%206.17775C10.1812%206.08774%2010.008%205.87635%209.96692%205.62364L11.941%205.30244C11.867%204.84772%2011.5553%204.46735%2011.124%204.3054L10.4209%206.17775ZM6.65733%206.04069C6.40781%206.32654%206.0329%206.3253%205.79532%206.17554L6.86183%204.48363C6.35074%204.16146%205.61275%204.19605%205.15061%204.72546L6.65733%206.04069ZM6.49337%204.97732C6.90612%205.23811%206.90593%205.75589%206.65733%206.04069L5.15061%204.72546C4.66564%205.28105%204.70847%206.21533%205.42509%206.66811L6.49337%204.97732ZM11.4075%206.5587C11.8333%206.26618%2012.0164%205.76587%2011.941%205.30244L9.96692%205.62364C9.92564%205.36998%2010.0244%205.08241%2010.275%204.91024L11.4075%206.5587ZM5.63898%207.20736C5.39271%207.4897%205.00814%207.50128%204.7536%207.33173L5.86237%205.66721C5.33869%205.31837%204.59057%205.36668%204.13174%205.89273L5.63898%207.20736ZM10.2454%205.47927C10.9563%205.05619%2010.999%204.16643%2010.5791%203.63189L9.00629%204.86737C8.77335%204.57083%208.7717%204.02888%209.22256%203.76058L10.2454%205.47927ZM5.49128%206.15911C5.87791%206.41556%205.89204%206.91722%205.63898%207.20736L4.13174%205.89273C3.64258%206.45356%203.69982%207.37083%204.38579%207.82581L5.49128%206.15911ZM11.9128%207.33174C11.658%207.50136%2011.2736%207.48933%2011.0277%207.20735L12.5349%205.89272C12.0764%205.36699%2011.3285%205.31807%2010.8045%205.66693L11.9128%207.33174ZM10.9818%206.10348C10.8322%206.20389%2010.6152%206.25068%2010.3942%206.16771L11.0973%204.29536C10.6625%204.13212%2010.2069%204.21499%209.86758%204.44262L10.9818%206.10348ZM12.2811%207.82582C12.9671%207.37061%2013.0239%206.45337%2012.5349%205.89272L11.0277%207.20735C10.7748%206.91746%2010.7886%206.41593%2011.1753%206.15937L12.2811%207.82582Z%22%20fill%3D%22%23201E29%22%20mask%3D%22url(%23path-1-inside-1_2574_6016)%22%2F%3E%3Crect%20x%3D%224.5%22%20y%3D%220.5%22%20width%3D%227.66667%22%20height%3D%222.33333%22%20fill%3D%22%23201E29%22%20stroke%3D%22%23201E29%22%2F%3E%3Cellipse%20cx%3D%228.33366%22%20cy%3D%221.66667%22%20rx%3D%220.666667%22%20ry%3D%220.666667%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M13.333%200H13.6663C14.2186%200%2014.6663%200.447715%2014.6663%201V15.5C14.6663%2015.7761%2014.4425%2016%2014.1663%2016H13.333V0Z%22%20fill%3D%22%23201E29%22%2F%3E%3Cpath%20d%3D%22M3.33301%200H2.99967C2.44739%200%201.99967%200.447715%201.99967%201V15.5C1.99967%2015.7761%202.22353%2016%202.49967%2016H3.33301V0Z%22%20fill%3D%22%23201E29%22%2F%3E%3C%2Fsvg%3E');
884
897
  }
885
898
 
886
- .container{
887
- width: 100%;
888
- }
889
-
890
- @media (min-width: 640px){
891
- .container{
892
- max-width: 640px;
893
- }
894
- }
895
-
896
- @media (min-width: 768px){
897
- .container{
898
- max-width: 768px;
899
- }
900
- }
901
-
902
- @media (min-width: 1024px){
903
- .container{
904
- max-width: 1024px;
905
- }
906
- }
907
-
908
- @media (min-width: 1280px){
909
- .container{
910
- max-width: 1280px;
911
- }
912
- }
913
-
914
- @media (min-width: 1536px){
915
- .container{
916
- max-width: 1536px;
917
- }
918
- }
919
-
920
- .icon{
921
- display: flex;
922
- height: 1em;
923
- width: 1em;
924
- background-color: currentColor;
925
- -webkit-mask-image: var(--svg);
926
- mask-image: var(--svg);
927
- -webkit-mask-repeat: no-repeat;
928
- mask-repeat: no-repeat;
929
- -webkit-mask-size: 100% 100%;
930
- mask-size: 100% 100%;
931
- }
932
-
933
899
  .\!pointer-events-none{
934
900
  pointer-events: none !important;
935
901
  }
@@ -1171,6 +1137,10 @@
1171
1137
  margin: 0px;
1172
1138
  }
1173
1139
 
1140
+ .m-\[3px\]{
1141
+ margin: 3px;
1142
+ }
1143
+
1174
1144
  .\!mx-auto{
1175
1145
  margin-left: auto !important;
1176
1146
  margin-right: auto !important;
@@ -1415,6 +1385,10 @@
1415
1385
  display: inline;
1416
1386
  }
1417
1387
 
1388
+ .\!flex{
1389
+ display: flex !important;
1390
+ }
1391
+
1418
1392
  .flex{
1419
1393
  display: flex;
1420
1394
  }
@@ -1568,6 +1542,10 @@
1568
1542
  height: 21px;
1569
1543
  }
1570
1544
 
1545
+ .h-\[22px\]{
1546
+ height: 22px;
1547
+ }
1548
+
1571
1549
  .h-\[26px\]{
1572
1550
  height: 26px;
1573
1551
  }
@@ -1814,6 +1792,10 @@
1814
1792
  width: 18px;
1815
1793
  }
1816
1794
 
1795
+ .w-\[1px\]{
1796
+ width: 1px;
1797
+ }
1798
+
1817
1799
  .w-\[200px\]{
1818
1800
  width: 200px;
1819
1801
  }
@@ -1822,6 +1804,10 @@
1822
1804
  width: 224px;
1823
1805
  }
1824
1806
 
1807
+ .w-\[22px\]{
1808
+ width: 22px;
1809
+ }
1810
+
1825
1811
  .w-\[272px\]{
1826
1812
  width: 272px;
1827
1813
  }
@@ -2561,6 +2547,12 @@
2561
2547
  scroll-behavior: smooth;
2562
2548
  }
2563
2549
 
2550
+ .truncate{
2551
+ overflow: hidden;
2552
+ text-overflow: ellipsis;
2553
+ white-space: nowrap;
2554
+ }
2555
+
2564
2556
  .overflow-ellipsis{
2565
2557
  text-overflow: ellipsis;
2566
2558
  }
@@ -5562,6 +5554,14 @@ h6,
5562
5554
  background-color: rgb(229 240 255 / var(--tw-bg-opacity));
5563
5555
  }
5564
5556
 
5557
+ .hover\:bg-primary-50\/30:hover{
5558
+ background-color: rgb(229 240 255 / 0.3);
5559
+ }
5560
+
5561
+ .hover\:bg-primary-50\/50:hover{
5562
+ background-color: rgb(229 240 255 / 0.5);
5563
+ }
5564
+
5565
5565
  .hover\:bg-primary-50\/80:hover{
5566
5566
  background-color: rgb(229 240 255 / 0.8);
5567
5567
  }
@@ -5724,6 +5724,11 @@ h6,
5724
5724
  --tw-ring-color: rgb(234 88 12 / var(--tw-ring-opacity));
5725
5725
  }
5726
5726
 
5727
+ .hover\:ring-primary-500:hover{
5728
+ --tw-ring-opacity: 1;
5729
+ --tw-ring-color: rgb(0 99 247 / var(--tw-ring-opacity));
5730
+ }
5731
+
5727
5732
  .hover\:ring-primary-600:hover{
5728
5733
  --tw-ring-opacity: 1;
5729
5734
  --tw-ring-color: rgb(0 80 199 / var(--tw-ring-opacity));
@@ -5748,6 +5753,14 @@ h6,
5748
5753
  background-color: rgb(229 240 255 / var(--tw-bg-opacity));
5749
5754
  }
5750
5755
 
5756
+ .focus\:bg-primary-50\/30:focus{
5757
+ background-color: rgb(229 240 255 / 0.3);
5758
+ }
5759
+
5760
+ .focus\:bg-primary-50\/50:focus{
5761
+ background-color: rgb(229 240 255 / 0.5);
5762
+ }
5763
+
5751
5764
  .focus\:bg-primary-600:focus{
5752
5765
  --tw-bg-opacity: 1;
5753
5766
  background-color: rgb(0 80 199 / var(--tw-bg-opacity));
@@ -6294,6 +6307,36 @@ h6,
6294
6307
  }
6295
6308
  }
6296
6309
 
6310
+ .dark\:bg-white:where(.dark, .dark *){
6311
+ --tw-bg-opacity: 1;
6312
+ background-color: rgb(255 255 255 / var(--tw-bg-opacity));
6313
+ }
6314
+
6315
+ .dark\:text-general-800:where(.dark, .dark *){
6316
+ --tw-text-opacity: 1;
6317
+ color: rgb(32 30 41 / var(--tw-text-opacity));
6318
+ }
6319
+
6320
+ .dark\:ring-danger-500:where(.dark, .dark *){
6321
+ --tw-ring-opacity: 1;
6322
+ --tw-ring-color: rgb(255 0 34 / var(--tw-ring-opacity));
6323
+ }
6324
+
6325
+ .dark\:ring-general-200:where(.dark, .dark *){
6326
+ --tw-ring-opacity: 1;
6327
+ --tw-ring-color: rgb(181 179 199 / var(--tw-ring-opacity));
6328
+ }
6329
+
6330
+ .dark\:hover\:ring-primary-400:hover:where(.dark, .dark *){
6331
+ --tw-ring-opacity: 1;
6332
+ --tw-ring-color: rgb(46 130 255 / var(--tw-ring-opacity));
6333
+ }
6334
+
6335
+ .dark\:focus\:ring-primary-400:focus:where(.dark, .dark *){
6336
+ --tw-ring-opacity: 1;
6337
+ --tw-ring-color: rgb(46 130 255 / var(--tw-ring-opacity));
6338
+ }
6339
+
6297
6340
  .\[\&\:\:-webkit-scrollbar\]\:hidden::-webkit-scrollbar{
6298
6341
  display: none;
6299
6342
  }
@@ -1,105 +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
- '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
- }
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> | import("@wangs-ui/core/dist/types/themes/preset-definitions").ToRawPreset<import("@wangs-ui/core/dist/types/components/inputotp/inputotp.type").InputOtpPreset, import("@wangs-ui/core/dist/types/components/inputotp/inputotp.type").InputOtpPresetMethodOptions>;
105
2
  export default _default;
@@ -1,6 +1,7 @@
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-TABMENU', {
4
5
  root: {
5
6
  class: 'overflow-x-auto',
6
7
  style: 'scrollbar-width: none',
@@ -21,7 +22,7 @@ exports.default = {
21
22
  },
22
23
  action: function (_a) {
23
24
  var _b, _c;
24
- var context = _a.context, state = _a.state;
25
+ var context = _a.context, props = _a.props;
25
26
  return ({
26
27
  class: [
27
28
  'relative',
@@ -32,28 +33,28 @@ exports.default = {
32
33
  'flex items-center',
33
34
  // Spacing
34
35
  {
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,
36
+ 'rounded-xl py-1 px-3': props.type === 'pill',
37
+ 'p-2 pb-1.5 pt-0.5 !h-6': props.type !== 'pill',
38
+ 'ml-1': props.type === 'pill' && context.index !== 0,
38
39
  },
39
40
  // Shape
40
41
  {
41
- 'border-b-2': context.type !== 'pill',
42
+ 'border-b-2': props.type !== 'pill',
42
43
  },
43
44
  // Colors and Conditions
44
45
  {
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,
46
+ 'border-primary-500': context.active,
47
+ 'border-grayscale-400': !context.active,
48
+ 'text-grayscale-600': !context.active,
49
+ 'text-primary-500': context.active,
50
+ 'bg-primary-50 text-primary-500': props.type === 'pill' && context.active,
51
+ 'bg-grayscale-200 text-grayscale-800': props.type === 'pill' && !context.active,
52
+ 'bg-transparent ': props.type !== 'pill' && !context.active,
52
53
  },
53
54
  // States
54
55
  'focus-visible:outline-none focus-visible:outline-offset-0',
55
56
  {
56
- 'focus-visible:border-primary-200 focus-visible:text-primary-400': !state.active,
57
+ 'focus-visible:border-primary-200 focus-visible:text-primary-400': !context.active,
57
58
  },
58
59
  // Disabled States
59
60
  {
@@ -74,7 +75,13 @@ exports.default = {
74
75
  icon: {
75
76
  class: 'mr-2',
76
77
  },
77
- inkbar: {
78
- class: 'grow border-b-2 border-primary-100',
78
+ inkbar: function (_a) {
79
+ var props = _a.props;
80
+ return ({
81
+ class: [
82
+ 'grow border-b-2 border-primary-100',
83
+ { hidden: props.type === 'pill' || props.useTrailingLine === false },
84
+ ],
85
+ });
79
86
  },
80
- };
87
+ });