@voicenter-team/voicenter-ui-plus 0.4.47 → 0.4.49
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.
- package/package.json +3 -2
- package/tailwind.config.js +165 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voicenter-team/voicenter-ui-plus",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.49",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"dev": "vite",
|
|
6
6
|
"build": "vite build",
|
|
@@ -22,7 +22,8 @@
|
|
|
22
22
|
"src/components/VcSelect/*.scss",
|
|
23
23
|
"src/enum",
|
|
24
24
|
"src/utils/makeDataTestAttributeValue.ts",
|
|
25
|
-
"src/theme"
|
|
25
|
+
"src/theme",
|
|
26
|
+
"tailwind.config.js"
|
|
26
27
|
],
|
|
27
28
|
"engines": {
|
|
28
29
|
"node": ">= 16",
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
const schemeColors = require('./src/theme/tailwindScheme.js')
|
|
2
|
+
|
|
3
|
+
/** @type {import('tailwindcss').Config} */
|
|
4
|
+
module.exports = {
|
|
5
|
+
content: [ './src/**/*.{vue,js,ts,scss}', './documentation/**/*.{vue,scss}' ],
|
|
6
|
+
plugins: [
|
|
7
|
+
require('tailwindcss/plugin')(({ addUtilities }) => {
|
|
8
|
+
addUtilities({
|
|
9
|
+
'.justify-normal': {
|
|
10
|
+
justifyContent: 'normal'
|
|
11
|
+
}
|
|
12
|
+
})
|
|
13
|
+
})
|
|
14
|
+
],
|
|
15
|
+
theme: {
|
|
16
|
+
screens: {
|
|
17
|
+
sm: '680px',
|
|
18
|
+
md: '960px',
|
|
19
|
+
lg: '1264px',
|
|
20
|
+
xl: '1680px',
|
|
21
|
+
xxl: '1900px'
|
|
22
|
+
},
|
|
23
|
+
colors: schemeColors,
|
|
24
|
+
borderColor: schemeColors,
|
|
25
|
+
backgroundColor: schemeColors,
|
|
26
|
+
boxShadow: {
|
|
27
|
+
none: 'none',
|
|
28
|
+
card: '0px 0px 5px var(--card-shadow-color)',
|
|
29
|
+
'card-no-active': '0px 0px 5px var(--inactive-elements)',
|
|
30
|
+
'table-header': '0 1px 0 0 var(--table-shadow-color)',
|
|
31
|
+
'focus-outer': '0 0 3px var(--active-elements--pressed)',
|
|
32
|
+
'focus-outer-off': '0 0 3px var(--inactive-elements--pressed)',
|
|
33
|
+
'focus-outer-primary': '0 0 3px var(--primary-actions--pressed)',
|
|
34
|
+
'focus-outer-secondary': '0 0 3px var(--secondary-actions--pressed)',
|
|
35
|
+
'focus-outer-destructive': '0 0 3px var(--destructive-actions--pressed)',
|
|
36
|
+
'focus-outer-success': '0 0 3px var(--success-actions--pressed)',
|
|
37
|
+
'focus-outer-warning': '0 0 3px var(--warning-actions--pressed)',
|
|
38
|
+
'focus-inner': 'inset 0 0 3px var(--active-elements--pressed)',
|
|
39
|
+
focus: '0 0 3px var(--active-elements--pressed), inset 0 0px 3px var(--active-elements--pressed)',
|
|
40
|
+
hover: '0 0 3px var(--active-elements--focus), inset 0 0px 3px var(--active-elements--focus)',
|
|
41
|
+
'focus-primary': '0 0 3px var(--primary-actions--pressed), inset 0 0px 3px var(--primary-actions--pressed)',
|
|
42
|
+
'hover-primary': '0 0 3px var(--primary-actions--focus), inset 0 0px 3px var(--primary-actions--focus)',
|
|
43
|
+
'focus-secondary': '0 0 3px var(--secondary-actions--pressed), inset 0 0px 3px var(--secondary-actions--pressed)',
|
|
44
|
+
'hover-secondary': '0 0 3px var(--secondary-actions--focus), inset 0 0px 3px var(--secondary-actions--focus)',
|
|
45
|
+
'focus-destructive': '0 0 3px var(--destructive-actions--pressed), inset 0 0px 3px var(--destructive-actions--pressed)',
|
|
46
|
+
'hover-destructive': '0 0 3px var(--destructive-actions--focus), inset 0 0px 3px var(--destructive-actions--focus)',
|
|
47
|
+
'focus-success': '0 0 3px var(--success-actions--pressed), inset 0 0px 3px var(--success-actions--pressed)',
|
|
48
|
+
'hover-success': '0 0 3px var(--success-actions--focus), inset 0 0px 3px var(--success-actions--focus)',
|
|
49
|
+
'focus-warning': '0 0 3px var(--warning-actions--pressed), inset 0 0px 3px var(--warning-actions--pressed)',
|
|
50
|
+
'hover-warning': '0 0 3px var(--warning-actions--focus), inset 0 0px 3px var(--warning-actions--focus)',
|
|
51
|
+
'hover-inner': 'inset 0 0 3px var(--active-elements--focus)',
|
|
52
|
+
'hover-outer': '0 0 3px var(--active-elements--focus)',
|
|
53
|
+
'hover-outer-off': '0 0 3px var(--inactive-elements--focus)',
|
|
54
|
+
'hover-outer-active': '0 0 3px var(--active-elements--focus)',
|
|
55
|
+
'hover-outer-primary': '0 0 3px var(--primary-actions--focus)',
|
|
56
|
+
'hover-outer-secondary': '0 0 3px var(--secondary-actions--focus)',
|
|
57
|
+
'hover-outer-destructive': '0 0 3px var(--destructive-actions--focus)',
|
|
58
|
+
'hover-outer-success': '0 0 3px var(--success-actions--focus)',
|
|
59
|
+
'hover-outer-warning': '0 0 3px var(--warning-actions--focus)',
|
|
60
|
+
'view-switcher': '0px 0px 4px var(--overlay-bg)',
|
|
61
|
+
'vertical-tab-scroll': 'inset 0 0 8px (--light-bg)',
|
|
62
|
+
'vertical-tab-item': '0 1px 6px var(--card-shadow-color)',
|
|
63
|
+
'vertical-tab-item-hover': '0 1px 6px var(--active-elements--focus)',
|
|
64
|
+
table: '0px 0px 5px var(--card-shadow-color)',
|
|
65
|
+
'table-row': '0 10px 10px -12px var(--table-shadow-color)'
|
|
66
|
+
},
|
|
67
|
+
fontSize: {
|
|
68
|
+
xxs: '0.65rem',
|
|
69
|
+
xs: '0.75rem',
|
|
70
|
+
sm: '0.875rem',
|
|
71
|
+
base: '1rem',
|
|
72
|
+
lg: '1.125rem',
|
|
73
|
+
xl: '1.25rem',
|
|
74
|
+
'2xl': '1.5rem',
|
|
75
|
+
'3xl': '2rem',
|
|
76
|
+
'4xl': '2.25rem',
|
|
77
|
+
'5xl': '2.5rem',
|
|
78
|
+
'6xl': '3rem'
|
|
79
|
+
},
|
|
80
|
+
fill: schemeColors,
|
|
81
|
+
stroke: {
|
|
82
|
+
'active-elements': 'var(--active-elements)',
|
|
83
|
+
current: 'currentColor'
|
|
84
|
+
},
|
|
85
|
+
borderRadius: {
|
|
86
|
+
none: '0',
|
|
87
|
+
xs: '0.125rem',
|
|
88
|
+
sm: '0.25rem',
|
|
89
|
+
md: '0.375rem',
|
|
90
|
+
lg: '0.5rem',
|
|
91
|
+
xl: '0.75rem',
|
|
92
|
+
xxl: '0.875rem',
|
|
93
|
+
full: '9999px',
|
|
94
|
+
tag: '2rem',
|
|
95
|
+
DEFAULT: '0.25rem',
|
|
96
|
+
'horizontal-tab-wrapper': '0px 6px 6px 6px',
|
|
97
|
+
'horizontal-tab-item': '6px 6px 0px 0px'
|
|
98
|
+
},
|
|
99
|
+
extend: {
|
|
100
|
+
inset: {
|
|
101
|
+
unset: 'unset'
|
|
102
|
+
},
|
|
103
|
+
minWidth: {
|
|
104
|
+
auto: 'auto',
|
|
105
|
+
xs: '20rem',
|
|
106
|
+
sm: '24rem',
|
|
107
|
+
md: '28rem',
|
|
108
|
+
lg: '32rem',
|
|
109
|
+
xl: '36rem',
|
|
110
|
+
'1/4': '25%',
|
|
111
|
+
'1/2': '50%',
|
|
112
|
+
'3/4': '75%',
|
|
113
|
+
screen: '100vw'
|
|
114
|
+
},
|
|
115
|
+
minHeight: {
|
|
116
|
+
2: '2rem',
|
|
117
|
+
5.5: '1.375rem',
|
|
118
|
+
6.5: '1.625rem',
|
|
119
|
+
8: '2rem',
|
|
120
|
+
screen: '100vh',
|
|
121
|
+
inherit: 'inherit'
|
|
122
|
+
},
|
|
123
|
+
maxWidth: {
|
|
124
|
+
'1/2': '50%',
|
|
125
|
+
screen: '100vw'
|
|
126
|
+
},
|
|
127
|
+
maxHeight: {
|
|
128
|
+
inherit: 'inherit'
|
|
129
|
+
},
|
|
130
|
+
height: {
|
|
131
|
+
0.5: '2px',
|
|
132
|
+
'fit-content': 'fit-content',
|
|
133
|
+
'modal-wizard': '680px'
|
|
134
|
+
},
|
|
135
|
+
spacing: {
|
|
136
|
+
15: '3.75rem',
|
|
137
|
+
unset: 'unset'
|
|
138
|
+
},
|
|
139
|
+
width: {},
|
|
140
|
+
lineHeight: {
|
|
141
|
+
'40px': '40px'
|
|
142
|
+
},
|
|
143
|
+
zIndex: {
|
|
144
|
+
1: 1
|
|
145
|
+
},
|
|
146
|
+
rotate: {
|
|
147
|
+
135: '135deg',
|
|
148
|
+
225: '225deg'
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
fontFamily: {
|
|
152
|
+
body: [ 'Montserrat', 'system-ui', 'sans-serif' ]
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
safelist: [
|
|
156
|
+
{
|
|
157
|
+
pattern: /text-(xxs|xs|sm|base|lg|2xl|3xl|4xl|5xl|6xl)/,
|
|
158
|
+
variants: [ 'hover', 'focus' ]
|
|
159
|
+
}
|
|
160
|
+
],
|
|
161
|
+
variants: {
|
|
162
|
+
backgroundColor: [ 'responsive', 'hover', 'focus', 'active' ]
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|