lecom-ui 5.4.31 → 5.4.32
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/README.md +1 -1
- package/dist/components/Combobox/Combobox.js +42 -178
- package/dist/components/DataTable/DataTable.js +2 -2
- package/dist/components/DataTable/DataTable.utils.js +1 -1
- package/dist/components/DataTable/Table.js +1 -1
- package/dist/components/Header/SearchInput.js +1 -4
- package/dist/components/Input/Input.js +2 -2
- package/dist/components/Layout/Layout.js +0 -3
- package/dist/components/MultiSelect/MultiSelect.js +124 -238
- package/dist/components/Pagination/Pagination.js +5 -20
- package/dist/components/ScrollArea/ScrollArea.js +1 -1
- package/dist/components/TagInput/TagInput.js +12 -36
- package/dist/i18n/locales/en_us.js +2 -4
- package/dist/i18n/locales/es_es.js +2 -4
- package/dist/i18n/locales/pt_br.js +2 -4
- package/dist/index.d.ts +5 -11
- package/dist/plugin/extend.js +79 -79
- package/dist/plugin/fontFaces.js +172 -172
- package/dist/plugin/general.js +12 -12
- package/dist/plugin/pluginDev.cjs +5 -5
- package/dist/plugin/pluginNext.cjs +5 -5
- package/dist/plugin/pluginNextTurbo.cjs +5 -5
- package/dist/plugin/pluginVite.cjs +5 -5
- package/dist/plugin/template.js +31 -31
- package/dist/plugin/typographies.js +152 -152
- package/dist/plugin/varsTheme.js +79 -79
- package/dist/style.min.css +1 -1
- package/package.json +1 -1
- package/dist/components/Collapse/Collapse.js +0 -94
- package/dist/components/CustomIcon/Icons/CadastroFacil.js +0 -23
- package/dist/components/CustomIcon/Icons/LogoLecom.js +0 -30
- package/dist/components/CustomIcon/Icons/LogoLecomBrand.js +0 -23
- package/dist/components/CustomIcon/Icons/ModoTeste.js +0 -23
- package/dist/components/CustomIcon/Icons/Rpa.js +0 -23
- package/dist/components/CustomIcon/Icons/SairModoTeste.js +0 -31
- package/dist/components/IconHandler/IconHandler.js +0 -99
package/dist/plugin/fontFaces.js
CHANGED
|
@@ -1,172 +1,172 @@
|
|
|
1
|
-
const fontFaces = (publicPath) => [
|
|
2
|
-
{
|
|
3
|
-
fontFamily: 'Roboto',
|
|
4
|
-
fontStyle: 'italic',
|
|
5
|
-
fontWeight: '100',
|
|
6
|
-
fontDisplay: 'swap',
|
|
7
|
-
src: `url('${publicPath}/fonts/Roboto/thin-100-italic.woff2')`,
|
|
8
|
-
},
|
|
9
|
-
{
|
|
10
|
-
fontFamily: 'Roboto',
|
|
11
|
-
fontStyle: 'italic',
|
|
12
|
-
fontWeight: '300',
|
|
13
|
-
fontDisplay: 'swap',
|
|
14
|
-
src: `url('${publicPath}/fonts/Roboto/light-300-italic.woff2')`,
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
fontFamily: 'Roboto',
|
|
18
|
-
fontStyle: 'italic',
|
|
19
|
-
fontWeight: '400',
|
|
20
|
-
fontDisplay: 'swap',
|
|
21
|
-
src: `url('${publicPath}/fonts/Roboto/regular-400-italic.woff2')`,
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
fontFamily: 'Roboto',
|
|
25
|
-
fontStyle: 'italic',
|
|
26
|
-
fontWeight: '500',
|
|
27
|
-
fontDisplay: 'swap',
|
|
28
|
-
src: `url('${publicPath}/fonts/Roboto/medium-500-italic.woff2')`,
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
fontFamily: 'Roboto',
|
|
32
|
-
fontStyle: 'italic',
|
|
33
|
-
fontWeight: '700',
|
|
34
|
-
fontDisplay: 'swap',
|
|
35
|
-
src: `url('${publicPath}/fonts/Roboto/bold-700-italic.woff2')`,
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
fontFamily: 'Roboto',
|
|
39
|
-
fontStyle: 'italic',
|
|
40
|
-
fontWeight: '900',
|
|
41
|
-
fontDisplay: 'swap',
|
|
42
|
-
src: `url('${publicPath}/fonts/Roboto/black-900-italic.woff2')`,
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
fontFamily: 'Roboto',
|
|
46
|
-
fontStyle: 'normal',
|
|
47
|
-
fontWeight: '100',
|
|
48
|
-
fontDisplay: 'swap',
|
|
49
|
-
src: `url('${publicPath}/fonts/Roboto/thin-100.woff2')`,
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
fontFamily: 'Roboto',
|
|
53
|
-
fontStyle: 'normal',
|
|
54
|
-
fontWeight: '300',
|
|
55
|
-
fontDisplay: 'swap',
|
|
56
|
-
src: `url('${publicPath}/fonts/Roboto/light-300.woff2')`,
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
fontFamily: 'Roboto',
|
|
60
|
-
fontStyle: 'normal',
|
|
61
|
-
fontWeight: '400',
|
|
62
|
-
fontDisplay: 'swap',
|
|
63
|
-
src: `url('${publicPath}/fonts/Roboto/regular-400.woff2')`,
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
fontFamily: 'Roboto',
|
|
67
|
-
fontStyle: 'normal',
|
|
68
|
-
fontWeight: '500',
|
|
69
|
-
fontDisplay: 'swap',
|
|
70
|
-
src: `url('${publicPath}/fonts/Roboto/medium-500.woff2')`,
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
fontFamily: 'Roboto',
|
|
74
|
-
fontStyle: 'normal',
|
|
75
|
-
fontWeight: '700',
|
|
76
|
-
fontDisplay: 'swap',
|
|
77
|
-
src: `url('${publicPath}/fonts/Roboto/bold-700.woff2')`,
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
fontFamily: 'Roboto',
|
|
81
|
-
fontStyle: 'normal',
|
|
82
|
-
fontWeight: '900',
|
|
83
|
-
fontDisplay: 'swap',
|
|
84
|
-
src: `url('${publicPath}/fonts/Roboto/black-900.woff2')`,
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
fontFamily: 'Montserrat',
|
|
88
|
-
fontStyle: 'italic',
|
|
89
|
-
fontWeight: '100 900',
|
|
90
|
-
fontDisplay: 'swap',
|
|
91
|
-
src: `url('${publicPath}/fonts/Montserrat/italic.woff2')`,
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
fontFamily: 'Montserrat',
|
|
95
|
-
fontStyle: 'normal',
|
|
96
|
-
fontWeight: '100 900',
|
|
97
|
-
fontDisplay: 'swap',
|
|
98
|
-
src: `url('${publicPath}/fonts/Montserrat/normal.woff2')`,
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
fontFamily: 'IBM Plex Mono',
|
|
102
|
-
fontStyle: 'italic',
|
|
103
|
-
fontWeight: '100',
|
|
104
|
-
fontDisplay: 'swap',
|
|
105
|
-
src: `url('${publicPath}/fonts/Ibm/thin-100-italic.woff2')`,
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
fontFamily: 'IBM Plex Mono',
|
|
109
|
-
fontStyle: 'italic',
|
|
110
|
-
fontWeight: '300',
|
|
111
|
-
fontDisplay: 'swap',
|
|
112
|
-
src: `url('${publicPath}/fonts/Ibm/light-300-italic.woff2')`,
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
fontFamily: 'IBM Plex Mono',
|
|
116
|
-
fontStyle: 'italic',
|
|
117
|
-
fontWeight: '400',
|
|
118
|
-
fontDisplay: 'swap',
|
|
119
|
-
src: `url('${publicPath}/fonts/Ibm/regular-400-italic.woff2')`,
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
fontFamily: 'IBM Plex Mono',
|
|
123
|
-
fontStyle: 'italic',
|
|
124
|
-
fontWeight: '500',
|
|
125
|
-
fontDisplay: 'swap',
|
|
126
|
-
src: `url('${publicPath}/fonts/Ibm/medium-500-italic.woff2')`,
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
fontFamily: 'IBM Plex Mono',
|
|
130
|
-
fontStyle: 'italic',
|
|
131
|
-
fontWeight: '700',
|
|
132
|
-
fontDisplay: 'swap',
|
|
133
|
-
src: `url('${publicPath}/fonts/Ibm/bold-700-italic.woff2')`,
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
fontFamily: 'IBM Plex Mono',
|
|
137
|
-
fontStyle: 'normal',
|
|
138
|
-
fontWeight: '100',
|
|
139
|
-
fontDisplay: 'swap',
|
|
140
|
-
src: `url('${publicPath}/fonts/Ibm/thin-100.woff2')`,
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
fontFamily: 'IBM Plex Mono',
|
|
144
|
-
fontStyle: 'normal',
|
|
145
|
-
fontWeight: '300',
|
|
146
|
-
fontDisplay: 'swap',
|
|
147
|
-
src: `url('${publicPath}/fonts/Ibm/light-300.woff2')`,
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
fontFamily: 'IBM Plex Mono',
|
|
151
|
-
fontStyle: 'normal',
|
|
152
|
-
fontWeight: '400',
|
|
153
|
-
fontDisplay: 'swap',
|
|
154
|
-
src: `url('${publicPath}/fonts/Ibm/regular-400.woff2')`,
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
fontFamily: 'IBM Plex Mono',
|
|
158
|
-
fontStyle: 'normal',
|
|
159
|
-
fontWeight: '500',
|
|
160
|
-
fontDisplay: 'swap',
|
|
161
|
-
src: `url('${publicPath}/fonts/Ibm/medium-500.woff2')`,
|
|
162
|
-
},
|
|
163
|
-
{
|
|
164
|
-
fontFamily: 'IBM Plex Mono',
|
|
165
|
-
fontStyle: 'normal',
|
|
166
|
-
fontWeight: '700',
|
|
167
|
-
fontDisplay: 'swap',
|
|
168
|
-
src: `url('${publicPath}/fonts/Ibm/bold-700.woff2')`,
|
|
169
|
-
},
|
|
170
|
-
];
|
|
171
|
-
|
|
172
|
-
export { fontFaces };
|
|
1
|
+
const fontFaces = (publicPath) => [
|
|
2
|
+
{
|
|
3
|
+
fontFamily: 'Roboto',
|
|
4
|
+
fontStyle: 'italic',
|
|
5
|
+
fontWeight: '100',
|
|
6
|
+
fontDisplay: 'swap',
|
|
7
|
+
src: `url('${publicPath}/fonts/Roboto/thin-100-italic.woff2')`,
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
fontFamily: 'Roboto',
|
|
11
|
+
fontStyle: 'italic',
|
|
12
|
+
fontWeight: '300',
|
|
13
|
+
fontDisplay: 'swap',
|
|
14
|
+
src: `url('${publicPath}/fonts/Roboto/light-300-italic.woff2')`,
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
fontFamily: 'Roboto',
|
|
18
|
+
fontStyle: 'italic',
|
|
19
|
+
fontWeight: '400',
|
|
20
|
+
fontDisplay: 'swap',
|
|
21
|
+
src: `url('${publicPath}/fonts/Roboto/regular-400-italic.woff2')`,
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
fontFamily: 'Roboto',
|
|
25
|
+
fontStyle: 'italic',
|
|
26
|
+
fontWeight: '500',
|
|
27
|
+
fontDisplay: 'swap',
|
|
28
|
+
src: `url('${publicPath}/fonts/Roboto/medium-500-italic.woff2')`,
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
fontFamily: 'Roboto',
|
|
32
|
+
fontStyle: 'italic',
|
|
33
|
+
fontWeight: '700',
|
|
34
|
+
fontDisplay: 'swap',
|
|
35
|
+
src: `url('${publicPath}/fonts/Roboto/bold-700-italic.woff2')`,
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
fontFamily: 'Roboto',
|
|
39
|
+
fontStyle: 'italic',
|
|
40
|
+
fontWeight: '900',
|
|
41
|
+
fontDisplay: 'swap',
|
|
42
|
+
src: `url('${publicPath}/fonts/Roboto/black-900-italic.woff2')`,
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
fontFamily: 'Roboto',
|
|
46
|
+
fontStyle: 'normal',
|
|
47
|
+
fontWeight: '100',
|
|
48
|
+
fontDisplay: 'swap',
|
|
49
|
+
src: `url('${publicPath}/fonts/Roboto/thin-100.woff2')`,
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
fontFamily: 'Roboto',
|
|
53
|
+
fontStyle: 'normal',
|
|
54
|
+
fontWeight: '300',
|
|
55
|
+
fontDisplay: 'swap',
|
|
56
|
+
src: `url('${publicPath}/fonts/Roboto/light-300.woff2')`,
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
fontFamily: 'Roboto',
|
|
60
|
+
fontStyle: 'normal',
|
|
61
|
+
fontWeight: '400',
|
|
62
|
+
fontDisplay: 'swap',
|
|
63
|
+
src: `url('${publicPath}/fonts/Roboto/regular-400.woff2')`,
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
fontFamily: 'Roboto',
|
|
67
|
+
fontStyle: 'normal',
|
|
68
|
+
fontWeight: '500',
|
|
69
|
+
fontDisplay: 'swap',
|
|
70
|
+
src: `url('${publicPath}/fonts/Roboto/medium-500.woff2')`,
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
fontFamily: 'Roboto',
|
|
74
|
+
fontStyle: 'normal',
|
|
75
|
+
fontWeight: '700',
|
|
76
|
+
fontDisplay: 'swap',
|
|
77
|
+
src: `url('${publicPath}/fonts/Roboto/bold-700.woff2')`,
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
fontFamily: 'Roboto',
|
|
81
|
+
fontStyle: 'normal',
|
|
82
|
+
fontWeight: '900',
|
|
83
|
+
fontDisplay: 'swap',
|
|
84
|
+
src: `url('${publicPath}/fonts/Roboto/black-900.woff2')`,
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
fontFamily: 'Montserrat',
|
|
88
|
+
fontStyle: 'italic',
|
|
89
|
+
fontWeight: '100 900',
|
|
90
|
+
fontDisplay: 'swap',
|
|
91
|
+
src: `url('${publicPath}/fonts/Montserrat/italic.woff2')`,
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
fontFamily: 'Montserrat',
|
|
95
|
+
fontStyle: 'normal',
|
|
96
|
+
fontWeight: '100 900',
|
|
97
|
+
fontDisplay: 'swap',
|
|
98
|
+
src: `url('${publicPath}/fonts/Montserrat/normal.woff2')`,
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
fontFamily: 'IBM Plex Mono',
|
|
102
|
+
fontStyle: 'italic',
|
|
103
|
+
fontWeight: '100',
|
|
104
|
+
fontDisplay: 'swap',
|
|
105
|
+
src: `url('${publicPath}/fonts/Ibm/thin-100-italic.woff2')`,
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
fontFamily: 'IBM Plex Mono',
|
|
109
|
+
fontStyle: 'italic',
|
|
110
|
+
fontWeight: '300',
|
|
111
|
+
fontDisplay: 'swap',
|
|
112
|
+
src: `url('${publicPath}/fonts/Ibm/light-300-italic.woff2')`,
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
fontFamily: 'IBM Plex Mono',
|
|
116
|
+
fontStyle: 'italic',
|
|
117
|
+
fontWeight: '400',
|
|
118
|
+
fontDisplay: 'swap',
|
|
119
|
+
src: `url('${publicPath}/fonts/Ibm/regular-400-italic.woff2')`,
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
fontFamily: 'IBM Plex Mono',
|
|
123
|
+
fontStyle: 'italic',
|
|
124
|
+
fontWeight: '500',
|
|
125
|
+
fontDisplay: 'swap',
|
|
126
|
+
src: `url('${publicPath}/fonts/Ibm/medium-500-italic.woff2')`,
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
fontFamily: 'IBM Plex Mono',
|
|
130
|
+
fontStyle: 'italic',
|
|
131
|
+
fontWeight: '700',
|
|
132
|
+
fontDisplay: 'swap',
|
|
133
|
+
src: `url('${publicPath}/fonts/Ibm/bold-700-italic.woff2')`,
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
fontFamily: 'IBM Plex Mono',
|
|
137
|
+
fontStyle: 'normal',
|
|
138
|
+
fontWeight: '100',
|
|
139
|
+
fontDisplay: 'swap',
|
|
140
|
+
src: `url('${publicPath}/fonts/Ibm/thin-100.woff2')`,
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
fontFamily: 'IBM Plex Mono',
|
|
144
|
+
fontStyle: 'normal',
|
|
145
|
+
fontWeight: '300',
|
|
146
|
+
fontDisplay: 'swap',
|
|
147
|
+
src: `url('${publicPath}/fonts/Ibm/light-300.woff2')`,
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
fontFamily: 'IBM Plex Mono',
|
|
151
|
+
fontStyle: 'normal',
|
|
152
|
+
fontWeight: '400',
|
|
153
|
+
fontDisplay: 'swap',
|
|
154
|
+
src: `url('${publicPath}/fonts/Ibm/regular-400.woff2')`,
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
fontFamily: 'IBM Plex Mono',
|
|
158
|
+
fontStyle: 'normal',
|
|
159
|
+
fontWeight: '500',
|
|
160
|
+
fontDisplay: 'swap',
|
|
161
|
+
src: `url('${publicPath}/fonts/Ibm/medium-500.woff2')`,
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
fontFamily: 'IBM Plex Mono',
|
|
165
|
+
fontStyle: 'normal',
|
|
166
|
+
fontWeight: '700',
|
|
167
|
+
fontDisplay: 'swap',
|
|
168
|
+
src: `url('${publicPath}/fonts/Ibm/bold-700.woff2')`,
|
|
169
|
+
},
|
|
170
|
+
];
|
|
171
|
+
|
|
172
|
+
export { fontFaces };
|
package/dist/plugin/general.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
const general = {
|
|
2
|
-
'*': {
|
|
3
|
-
borderColor: 'hsl(var(--border))',
|
|
4
|
-
},
|
|
5
|
-
body: {
|
|
6
|
-
backgroundColor: 'hsl(var(--background))',
|
|
7
|
-
fontFamily: 'Roboto, sans-serif',
|
|
8
|
-
color: 'hsl(var(--foreground))',
|
|
9
|
-
},
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
export { general };
|
|
1
|
+
const general = {
|
|
2
|
+
'*': {
|
|
3
|
+
borderColor: 'hsl(var(--border))',
|
|
4
|
+
},
|
|
5
|
+
body: {
|
|
6
|
+
backgroundColor: 'hsl(var(--background))',
|
|
7
|
+
fontFamily: 'Roboto, sans-serif',
|
|
8
|
+
color: 'hsl(var(--foreground))',
|
|
9
|
+
},
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export { general };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-require-imports */
|
|
2
|
-
|
|
3
|
-
const buildPlugin = require('./template').buildPlugin;
|
|
4
|
-
|
|
5
|
-
module.exports = buildPlugin('../public');
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-require-imports */
|
|
2
|
+
|
|
3
|
+
const buildPlugin = require('./template').buildPlugin;
|
|
4
|
+
|
|
5
|
+
module.exports = buildPlugin('../public');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-require-imports */
|
|
2
|
-
|
|
3
|
-
const buildPlugin = require('./template').buildPlugin;
|
|
4
|
-
|
|
5
|
-
module.exports = buildPlugin('~/node_modules/lecom-ui/dist/public');
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-require-imports */
|
|
2
|
+
|
|
3
|
+
const buildPlugin = require('./template').buildPlugin;
|
|
4
|
+
|
|
5
|
+
module.exports = buildPlugin('~/node_modules/lecom-ui/dist/public');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-require-imports */
|
|
2
|
-
|
|
3
|
-
const buildPlugin = require('./template').buildPlugin;
|
|
4
|
-
|
|
5
|
-
module.exports = buildPlugin('node_modules/lecom-ui/dist/public');
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-require-imports */
|
|
2
|
+
|
|
3
|
+
const buildPlugin = require('./template').buildPlugin;
|
|
4
|
+
|
|
5
|
+
module.exports = buildPlugin('node_modules/lecom-ui/dist/public');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-require-imports */
|
|
2
|
-
|
|
3
|
-
const buildPlugin = require('./template').buildPlugin;
|
|
4
|
-
|
|
5
|
-
module.exports = buildPlugin('/node_modules/lecom-ui/dist/public');
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-require-imports */
|
|
2
|
+
|
|
3
|
+
const buildPlugin = require('./template').buildPlugin;
|
|
4
|
+
|
|
5
|
+
module.exports = buildPlugin('/node_modules/lecom-ui/dist/public');
|
package/dist/plugin/template.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import Plugin from 'tailwindcss/plugin';
|
|
2
|
-
|
|
3
|
-
import { colors } from '../tokens/colors';
|
|
4
|
-
import { fonts } from '../tokens/fonts';
|
|
5
|
-
|
|
6
|
-
import { extend } from './extend';
|
|
7
|
-
import { fontFaces } from './fontFaces';
|
|
8
|
-
import { general } from './general';
|
|
9
|
-
import { typographies } from './typographies';
|
|
10
|
-
import { varsTheme } from './varsTheme';
|
|
11
|
-
|
|
12
|
-
const buildPlugin = (publicPath) =>
|
|
13
|
-
Plugin(
|
|
14
|
-
({ addBase, addComponents }) => {
|
|
15
|
-
addBase(varsTheme);
|
|
16
|
-
fontFaces(publicPath).map((fontFace) =>
|
|
17
|
-
addBase({ '@font-face': fontFace })
|
|
18
|
-
);
|
|
19
|
-
addBase(general);
|
|
20
|
-
addComponents(typographies);
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
theme: {
|
|
24
|
-
fontFamily: fonts,
|
|
25
|
-
colors,
|
|
26
|
-
extend,
|
|
27
|
-
},
|
|
28
|
-
}
|
|
29
|
-
);
|
|
30
|
-
|
|
31
|
-
export { buildPlugin };
|
|
1
|
+
import Plugin from 'tailwindcss/plugin';
|
|
2
|
+
|
|
3
|
+
import { colors } from '../tokens/colors';
|
|
4
|
+
import { fonts } from '../tokens/fonts';
|
|
5
|
+
|
|
6
|
+
import { extend } from './extend';
|
|
7
|
+
import { fontFaces } from './fontFaces';
|
|
8
|
+
import { general } from './general';
|
|
9
|
+
import { typographies } from './typographies';
|
|
10
|
+
import { varsTheme } from './varsTheme';
|
|
11
|
+
|
|
12
|
+
const buildPlugin = (publicPath) =>
|
|
13
|
+
Plugin(
|
|
14
|
+
({ addBase, addComponents }) => {
|
|
15
|
+
addBase(varsTheme);
|
|
16
|
+
fontFaces(publicPath).map((fontFace) =>
|
|
17
|
+
addBase({ '@font-face': fontFace })
|
|
18
|
+
);
|
|
19
|
+
addBase(general);
|
|
20
|
+
addComponents(typographies);
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
theme: {
|
|
24
|
+
fontFamily: fonts,
|
|
25
|
+
colors,
|
|
26
|
+
extend,
|
|
27
|
+
},
|
|
28
|
+
}
|
|
29
|
+
);
|
|
30
|
+
|
|
31
|
+
export { buildPlugin };
|