eco-vue-js 0.11.43 → 0.11.45

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.
@@ -0,0 +1,230 @@
1
+ import plugin from 'tailwindcss/plugin.js'
2
+
3
+ const pluginDefault = plugin(function ({addBase, theme, config}) {
4
+ addBase({
5
+ '*': {
6
+ '--w-left-inner': 'calc(var(--nav-bar-width, 0px) + var(--inner-margin, 0px))',
7
+ '--w-right-inner': 'calc(var(--actions-bar-width, 0px) + var(--inner-margin, 0px))',
8
+ '--w-width-inner': 'calc(100vw - var(--w-left-inner, 0px) - var(--w-right-inner, 0px) - var(--scroll-bar-width, 0px))',
9
+
10
+ '--w-top-inner': 'calc(var(--header-height, 0px) + var(--infinite-list-header-height, 0px))',
11
+ '--w-bottom-inner': 'var(--scroll-bar-width, 0px)',
12
+ '--w-height-inner': 'calc(100vh - var(--w-top-inner, 0px) - var(--w-bottom-inner, 0px))',
13
+ },
14
+ '.w-modal-wrapper *': {
15
+ '--w-left-inner': 'var(--w-modal-wrapper-padding, 0px)',
16
+ '--w-right-inner': 'calc(var(--w-modal-wrapper-padding, 0px))',
17
+ '--w-width-inner': 'calc(var(--w-modal-wrapper-width, 35rem) - var(--w-left-inner, 0px) - var(--w-right-inner, 0px) - var(--scroll-bar-width, 0px))',
18
+
19
+ '--w-top-inner': 'calc(var(--w-modal-header-height, 0px) + var(--infinite-list-header-height, 0px))',
20
+ '--w-bottom-inner': 'calc(var(--w-modal-footer-height, 0px) + var(--scroll-bar-width, 0px))',
21
+ '--w-height-inner': 'calc(var(--w-modal-content-height, 0px) - var(--w-top-inner, 0px) - var(--w-bottom-inner, 0px))',
22
+ },
23
+ })
24
+
25
+ addBase({
26
+ '.w-input': {
27
+ outline: 'none',
28
+
29
+ '--input-autofill-bg': theme('colors.default'),
30
+ '--input-autofull-text': theme('colors.black.default'),
31
+ [config('darkMode')[1][0]]: {
32
+ '--input-autofill-bg': theme('colors.default-dark'),
33
+ '--input-autofull-text': theme('colors.gray.100'),
34
+ },
35
+
36
+ '&:focus-visible': {
37
+ outline: 'none',
38
+ },
39
+
40
+ '&[autocomplete="off"]': {
41
+ '&::-webkit-contacts-auto-fill-button, &::-webkit-credentials-auto-fill-button': {
42
+ visibility: 'hidden',
43
+ display: 'none !important',
44
+ 'pointer-events': 'none',
45
+ height: '0',
46
+ width: '0',
47
+ margin: '0',
48
+ },
49
+ },
50
+
51
+ '&::-webkit-outer-spin-button, &::-webkit-inner-spin-button': {
52
+ '-webkit-appearance': 'none',
53
+ appearance: 'none',
54
+ margin: '0',
55
+ },
56
+
57
+ '&:-webkit-autofill': {
58
+ '&, &:hover, &:focus, &:active': {
59
+ '-webkit-box-shadow': '0 0 0 30px var(--input-autofill-bg) inset !important',
60
+ '-webkit-text-fill-color': 'var(--input-autofull-text) !important;',
61
+ },
62
+ },
63
+
64
+ '&[type=number]': {
65
+ '-moz-appearance': 'textfield',
66
+ appearance: 'textfield',
67
+ },
68
+
69
+ '&::-webkit-textfield-decoration-container, &:focus::-webkit-textfield-decoration-container': {
70
+ visibility: 'hidden',
71
+ 'pointer-events': 'none',
72
+ },
73
+ },
74
+ })
75
+
76
+ addBase({
77
+ '.w-scrollbar': {
78
+ '&::-webkit-scrollbar, & ::-webkit-scrollbar': {
79
+ width: '12px',
80
+ height: '12px',
81
+ 'z-index': '500',
82
+ },
83
+ '&::-webkit-scrollbar-button, & ::-webkit-scrollbar-button': {
84
+ display: 'none',
85
+ },
86
+ '&::-webkit-scrollbar-thumb, & ::-webkit-scrollbar-thumb': {
87
+ 'border-radius': '5px',
88
+ 'border-color': 'transparent',
89
+ 'border-style': 'solid',
90
+ 'border-width': '2px',
91
+ 'background-clip': 'padding-box',
92
+ 'background-color': 'var(--w-scroll-bar-color)',
93
+ '&:hover': {
94
+ 'background-color': 'var(--w-scroll-bar-color-hover)',
95
+ },
96
+ },
97
+ '&::-webkit-scrollbar-track, & ::-webkit-scrollbar-track, &::-webkit-scrollbar-corner, & ::-webkit-scrollbar-corner': {
98
+ background: 'transparent',
99
+ },
100
+ },
101
+ 'html.w-scrollbar': {
102
+ '@supports (overflow: overlay)': {
103
+ 'overflow-y': 'overlay',
104
+ },
105
+ '@supports (not (overflow: overlay))': {
106
+ 'overflow-y': 'auto',
107
+ },
108
+ },
109
+ '*::-webkit-resizer': {
110
+ transform: 'scale(2)',
111
+ 'transform-origin': 'top left',
112
+ 'background-size': '7px 7px',
113
+ 'background-position': 'top',
114
+ 'background-image': 'linear-gradient(135deg, currentColor 10%, transparent 10%, transparent 50%, currentColor 50%, currentColor 60%, transparent 60%, transparent 100%)',
115
+ color: theme('colors.gray.300'),
116
+ [config('darkMode')[1][0]]: {
117
+ color: theme('colors.gray.700'),
118
+ },
119
+ },
120
+ '*:focus-visible': {
121
+ outline: 'none',
122
+ },
123
+ })
124
+
125
+ addBase({
126
+ '.w-option': {
127
+ 'min-height': 'var(--w-option-height)',
128
+ 'border-radius': 'var(--w-option-rounded)',
129
+
130
+ '--w-skeleton-height': 'var(--w-option-height)',
131
+ '--w-skeleton-rounded': 'var(--w-option-rounded)',
132
+ },
133
+ '.w-option-has-bg, *:has(.w-option-has-bg) + .w-option-has-bg-input, .w-option-has-bg + .w-option-has-bg-input': {
134
+ 'padding-left': 'var(--w-option-padding)',
135
+ 'padding-right': 'var(--w-option-padding)',
136
+ },
137
+ '.w-option-has-bg .w-option-button': {
138
+ 'margin-right': 'calc(var(--w-option-rounded) * -1)',
139
+ },
140
+ '.w-select-option': {
141
+ padding: 'calc(var(--w-select-option-padding) / 2) var(--w-select-option-padding)',
142
+ },
143
+ '*': {
144
+ '--w-option-height': 'calc(var(--w-input-height,2.75rem) - (var(--w-input-gap,0.25rem) * 2) - 2px)',
145
+ '--w-option-rounded': 'calc(var(--w-input-rounded,0.75rem) - var(--w-input-gap,0.25rem) - 1px)',
146
+ '--w-option-padding': 'var(--w-input-rounded,0.75rem)',
147
+ '--w-select-option-padding': 'calc(var(--w-option-padding) + var(--w-input-gap) + 1px)',
148
+ },
149
+ })
150
+
151
+ addBase({
152
+ '.w-tooltip-center-x': {
153
+ transform: 'translate(calc(min(100vw - var(--dropdown-x, 0px) - 50% - 12px, max((var(--dropdown-x, 0px) - 50% - 12px) * -1, 0px))), 0)',
154
+ },
155
+ '.w-tooltip-center-y': {
156
+ transform: 'translate(0, calc(min(100vh - var(--dropdown-y, 0px) - 50% - 12px, max((var(--dropdown-y, 0px) - 50% - 12px) * -1, 0px))))',
157
+ },
158
+ })
159
+
160
+ addBase({
161
+ '.w-shine': {},
162
+ '.w-shine-hidden': {
163
+ '.w-shine': {display: 'none'},
164
+ },
165
+ })
166
+
167
+ addBase({
168
+ '.w-progress-striped': {
169
+ '&::before': {
170
+ content: '""',
171
+ 'background-image': 'linear-gradient(135deg, hsla(0,0%,100%,.125) 25%, transparent 0, transparent 50%, hsla(0,0%,100%,.125) 0, hsla(0,0%,100%,.125) 75%, transparent 0, transparent)',
172
+ position: 'absolute',
173
+ top: '0',
174
+ left: '0',
175
+ width: 'calc(100% + 40px)',
176
+ height: '100%',
177
+ 'background-repeat': 'repeat',
178
+ 'background-size': '40px 40px',
179
+ animation: theme('animation.move-horizontal'),
180
+ },
181
+ [config('darkMode')[1][0]]: {
182
+ '&::before': {
183
+ 'background-image': 'linear-gradient(135deg, hsla(0,0%,10%,.125) 25%, transparent 0, transparent 50%, hsla(0,0%,10%,.125) 0, hsla(0,0%,10%,.125) 75%, transparent 0, transparent)',
184
+ },
185
+ },
186
+ },
187
+ })
188
+
189
+ addBase({
190
+ '.w-select-field': {
191
+ 'padding-top': '0.3125rem',
192
+ 'padding-bottom': '0.3125rem',
193
+ 'align-items': 'center',
194
+ 'white-space': 'nowrap',
195
+ overflow: 'hidden',
196
+ 'text-overflow': 'ellipsis',
197
+ },
198
+ '.group\\/model .w-select-field': {
199
+ 'padding-left': '0.75rem',
200
+ 'padding-right': '0.75rem',
201
+ },
202
+
203
+ '.w-skeleton': {
204
+ position: 'relative',
205
+ width: 'var(--skeleton-width,var(--skeleton-width-internal,70%))',
206
+ height: 'var(--skeleton-height,1em)',
207
+ 'border-radius': 'var(--w-skeleton-rounded,0.5rem)',
208
+ overflow: 'hidden',
209
+ cursor: 'progress',
210
+ display: 'inline-block',
211
+ '&:not(.w-skeleton-static):before': {
212
+ content: '""',
213
+ position: 'absolute',
214
+ top: '0',
215
+ width: '100%',
216
+ height: '100%',
217
+ 'background-image': 'linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255, var(--w-skeleton-opacity)), rgba(255,255,255,0))',
218
+ animation: theme('animation.ticker'),
219
+ },
220
+ },
221
+ '.w-skeleton-static': {
222
+ '& .w-skeleton:before, &.w-skeleton:before': {
223
+ display: 'none',
224
+ animation: 'none',
225
+ },
226
+ },
227
+ })
228
+ })
229
+
230
+ export default pluginDefault
@@ -0,0 +1,112 @@
1
+ import flattenColorPalette from 'tailwindcss/lib/util/flattenColorPalette'
2
+ import plugin from 'tailwindcss/plugin.js'
3
+
4
+ const pluginDefault = plugin(function ({matchUtilities, theme}) {
5
+ matchUtilities(
6
+ {
7
+ 'w-scroll-bar-color': value => ({'--w-scroll-bar-color': value}),
8
+ 'w-scroll-bar-color-hover': value => ({'--w-scroll-bar-color-hover': value}),
9
+ 'w-has-changes-color': value => ({'--has-changes-bg': value}),
10
+ 'w-input-bg': value => ({'--w-input-bg': value}),
11
+ 'w-slider-from': value => ({'--w-slider-from': value}),
12
+ 'w-slider-to': value => ({'--w-slider-to': value}),
13
+ },
14
+ {values: flattenColorPalette(theme('colors'))},
15
+ )
16
+
17
+ matchUtilities(
18
+ {
19
+ 'w-ripple-opacity': value => ({'--w-ripple-opacity': value}),
20
+ 'w-hover-circle-opacity': value => ({'--w-hover-circle-opacity': value}),
21
+ 'w-skeleton-opacity': value => ({'--w-skeleton-opacity': value}),
22
+ },
23
+ {values: theme('opacity')},
24
+ )
25
+
26
+ matchUtilities(
27
+ {
28
+ 'w-skeleton-w': value => ({'--skeleton-width': value}),
29
+ 'w-list-card-w': value => ({'--w-list-card-width': value}),
30
+ 'w-checkbox-size': value => ({'--w-checkbox-size': value}),
31
+ 'w-input-gap': value => ({'--w-input-gap': value}),
32
+ 'w-spinner-size': value => ({'--w-spinner-size': value}),
33
+ 'w-modal-wrapper-p': value => ({'--w-modal-wrapper-padding': value}),
34
+ 'w-modal-wrapper-w': value => ({'--w-modal-wrapper-width': value}),
35
+ 'w-list-header-h': value => ({'--w-list-header-height': value}),
36
+ 'w-list-padding': value => ({'--w-list-padding': value}),
37
+ 'w-modal-confirm-w': value => ({'--w-modal-confirm-width': value}),
38
+ 'grid-cols-fill': value => ({'grid-template-columns': `repeat(auto-fill, minmax(${ value }, 1fr))`}),
39
+ 'grid-cols-fit': value => ({'grid-template-columns': `repeat(auto-fit, minmax(${ value }, 1fr))`}),
40
+ 'w-tabs-side-width': value => ({'--w-tabs-side-width': value}),
41
+ 'w-dropdown-x-min': value => ({'--w-dropdown-x-min': value}),
42
+ 'w-dropdown-x-max': value => ({'--w-dropdown-x-max': value}),
43
+ 'w-chart-size': value => ({'--w-chart-size': value}),
44
+ },
45
+ {values: theme('width')},
46
+ )
47
+
48
+ matchUtilities(
49
+ {
50
+ 'w-skeleton-h': value => ({'--skeleton-height': value}),
51
+ 'w-input-h': value => ({'--w-input-height': value}),
52
+ 'w-input-min-h': value => ({'--w-input-min-height': value}),
53
+ 'w-textarea-h': value => ({'--w-textarea-height': value}),
54
+ 'w-button-h': value => ({'--w-button-height': value}),
55
+ 'w-dropdown-y-min': value => ({'--w-dropdown-y-min': value}),
56
+ 'w-dropdown-y-max': value => ({'--w-dropdown-y-max': value}),
57
+ },
58
+ {values: theme('height')},
59
+ )
60
+
61
+ matchUtilities(
62
+ {
63
+ 'w-input-rounded': value => ({'--w-input-rounded': value}),
64
+ 'w-button-rounded': value => ({'--w-button-rounded': value}),
65
+ 'w-skeleton-rounded': value => ({'--w-skeleton-rounded': value}),
66
+ 'w-ripple-rounded': value => ({'--w-ripple-rounded': value}),
67
+ 'w-list-rounded': value => ({'--w-list-rounded': value}),
68
+ 'w-option-rounded': value => ({'--w-option-rounded': value}),
69
+ 'w-modal-wrapper-rounded': value => ({'--w-modal-wrapper-rounded': value}),
70
+ 'w-list-header-rounded': value => ({'--w-list-header-rounded': value}),
71
+ },
72
+ {values: theme('borderRadius')},
73
+ )
74
+
75
+ matchUtilities(
76
+ {
77
+ 'w-button-border': value => ({'--w-button-border': value}),
78
+ },
79
+ {values: theme('borderWidth')},
80
+ )
81
+
82
+ matchUtilities(
83
+ {
84
+ 'w-svg-stroke-width': value => ({'& path': {'stroke-width': value}}),
85
+ },
86
+ {
87
+ values: {
88
+ '3xs': '0.5',
89
+ '2xs': '0.75',
90
+ xs: '1',
91
+ sm: '1.25',
92
+ md: '1.5',
93
+ },
94
+ },
95
+ )
96
+
97
+ matchUtilities(
98
+ {
99
+ 'w-list-gap': value => ({'--w-list-gap': value}),
100
+ },
101
+ {values: theme('gap')},
102
+ )
103
+
104
+ matchUtilities(
105
+ {
106
+ 'w-expansion-duration': (value) => ({'--expansion-duration': value}),
107
+ },
108
+ {values: theme('transitionDuration')},
109
+ )
110
+ })
111
+
112
+ export default pluginDefault
@@ -0,0 +1,10 @@
1
+ import plugin from 'tailwindcss/plugin.js'
2
+
3
+ const pluginDefault = plugin(function ({addVariant}) {
4
+ addVariant('card', ['.w-card &'])
5
+ addVariant('card-l', ['&.w-card'])
6
+ addVariant('list', ['.w-list &'])
7
+ addVariant('list-l', ['&.w-list'])
8
+ })
9
+
10
+ export default pluginDefault
@@ -0,0 +1,51 @@
1
+ import plugin from 'tailwindcss/plugin.js'
2
+
3
+ const pluginDefault = plugin(function ({addBase, theme, config}) {
4
+ addBase({
5
+ '.text-accent': {
6
+ color: theme('colors.black.default'),
7
+ [config('darkMode')[1][0]]: {
8
+ color: theme('colors.default'),
9
+ },
10
+ },
11
+ '.text-description': {
12
+ color: theme('colors.gray.400'),
13
+ [config('darkMode')[1][0]]: {
14
+ color: theme('colors.gray.500'),
15
+ },
16
+ },
17
+ '.text-secure': {
18
+ 'text-security': 'disc',
19
+ '-webkit-text-security': 'disc',
20
+ },
21
+ })
22
+
23
+ addBase({
24
+ '.code-inline': {
25
+ fontFamily: theme('fontFamily.mono'),
26
+ paddingLeft: theme('spacing.1'),
27
+ paddingRight: theme('spacing.1'),
28
+ backgroundColor: 'rgb(229 231 235 / 0.5)',
29
+ borderRadius: theme('borderRadius.DEFAULT'),
30
+ userSelect: 'text',
31
+ fontWeight: theme('fontWeight.normal'),
32
+ [config('darkMode')[1][0]]: {
33
+ backgroundColor: 'rgb(75 85 99 / 0.5)',
34
+ },
35
+ },
36
+ '.code-inline.bg-positive': {
37
+ backgroundColor: `${ theme('colors.positive') }4d`,
38
+ [config('darkMode')[1][0]]: {
39
+ backgroundColor: `${ theme('colors.positive-dark') }4d`,
40
+ },
41
+ },
42
+ '.code-inline.bg-negative': {
43
+ backgroundColor: `${ theme('colors.negative') }4d`,
44
+ [config('darkMode')[1][0]]: {
45
+ backgroundColor: `${ theme('colors.negative-dark') }4d`,
46
+ },
47
+ },
48
+ })
49
+ })
50
+
51
+ export default pluginDefault
@@ -0,0 +1,38 @@
1
+ import plugin from 'tailwindcss/plugin.js'
2
+
3
+ const pluginDefault = plugin(function ({addBase}) {
4
+ addBase({
5
+ '.w-hover-circle': {
6
+ '&::after': {
7
+ content: '""',
8
+ position: 'absolute',
9
+ top: '0',
10
+ left: '0',
11
+ height: '100%',
12
+ width: '100%',
13
+ 'border-radius': '9999px',
14
+ 'z-index': '1',
15
+ 'background-color': 'currentColor',
16
+ 'pointer-events': 'none',
17
+ 'user-select': 'none',
18
+ opacity: '0',
19
+ transform: 'scaleX(0.5) scaleY(0.5)',
20
+ 'transition-property': 'opacity transform',
21
+ 'transition-timing-function': 'cubic-bezier(0.4, 0, 0.2, 1)',
22
+ 'transition-duration': '200ms',
23
+ },
24
+
25
+ '&:hover::after, .w-hover-circle-trigger:hover &::after, &:focus::after, .w-hover-circle-trigger:focus &::after': {
26
+ opacity: 'var(--w-hover-circle-opacity, 0.10)',
27
+ transform: 'scaleX(2.2) scaleY(2.2)',
28
+ },
29
+
30
+ '&:active::after, .w-hover-circle-trigger:active &::after': {
31
+ opacity: 'var(--w-hover-circle-opacity, 0.10)',
32
+ transform: 'scaleX(1.8) scaleY(1.8)',
33
+ },
34
+ },
35
+ })
36
+ })
37
+
38
+ export default pluginDefault