@alfalab/core-components-vars 3.1.0 → 5.0.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.
- package/colors-addons.css +7 -0
- package/colors-bluetint.css +45 -27
- package/colors-bluetint.d.ts +2 -0
- package/colors-bluetint.js +12 -0
- package/colors-indigo.css +26 -4
- package/colors-indigo.d.ts +2 -0
- package/colors-indigo.js +12 -0
- package/cssm/border-radius.css +9 -0
- package/cssm/colors-addons.css +62 -0
- package/cssm/colors-bluetint.css +250 -0
- package/cssm/colors-bluetint.d.ts +2 -0
- package/cssm/colors-bluetint.js +12 -0
- package/cssm/colors-indigo.css +268 -0
- package/cssm/colors-indigo.d.ts +2 -0
- package/cssm/colors-indigo.js +12 -0
- package/cssm/colors-transparent.css +22 -0
- package/cssm/colors.css +71 -0
- package/cssm/gaps.css +30 -0
- package/cssm/index.css +506 -0
- package/cssm/mixins.css +1 -0
- package/cssm/shadows-indigo.css +38 -0
- package/cssm/typography.css +6 -0
- package/esm/colors-bluetint.d.ts +2 -0
- package/esm/colors-bluetint.js +6 -0
- package/esm/colors-indigo.d.ts +2 -0
- package/esm/colors-indigo.js +6 -0
- package/modern/colors-bluetint.d.ts +2 -0
- package/modern/colors-bluetint.js +6 -0
- package/modern/colors-indigo.d.ts +2 -0
- package/modern/colors-indigo.js +6 -0
- package/package.json +1 -1
- package/send-stats.js +82 -0
- package/typography.css +36 -0
package/send-stats.js
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
const http = require('http');
|
|
2
|
+
const fs = require('fs');
|
|
3
|
+
const { promisify } = require('util');
|
|
4
|
+
const path = require('path');
|
|
5
|
+
|
|
6
|
+
const readFile = promisify(fs.readFile);
|
|
7
|
+
|
|
8
|
+
async function main() {
|
|
9
|
+
const remoteHost = process.env.NIS_HOST || 'digital';
|
|
10
|
+
const remotePort = process.env.NIS_PORT || 80;
|
|
11
|
+
const remotePath = process.env.NIS_PATH || '/npm-install-stats/api/install-stats';
|
|
12
|
+
|
|
13
|
+
try {
|
|
14
|
+
const [_, node, os, arch] =
|
|
15
|
+
/node\/v(\d+\.\d+\.\d+) (\w+) (\w+)/.exec(process.env.npm_config_user_agent) || [];
|
|
16
|
+
const [__, npm] = /npm\/(\d+\.\d+\.\d+)/.exec(process.env.npm_config_user_agent) || [];
|
|
17
|
+
const [___, yarn] = /yarn\/(\d+\.\d+\.\d+)/.exec(process.env.npm_config_user_agent) || [];
|
|
18
|
+
|
|
19
|
+
let ownPackageJson, packageJson;
|
|
20
|
+
|
|
21
|
+
try {
|
|
22
|
+
const result = await Promise.all([
|
|
23
|
+
readFile(path.join(process.cwd(), 'package.json'), 'utf-8'),
|
|
24
|
+
readFile(path.join(process.cwd(), '../../../package.json'), 'utf-8'),
|
|
25
|
+
]);
|
|
26
|
+
|
|
27
|
+
ownPackageJson = JSON.parse(result[0]);
|
|
28
|
+
packageJson = JSON.parse(result[1]);
|
|
29
|
+
} catch (err) {
|
|
30
|
+
ownPackageJson = '';
|
|
31
|
+
packageJson = '';
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
const data = {
|
|
35
|
+
node,
|
|
36
|
+
npm,
|
|
37
|
+
yarn,
|
|
38
|
+
os,
|
|
39
|
+
arch,
|
|
40
|
+
ownPackageJson: JSON.stringify(ownPackageJson),
|
|
41
|
+
packageJson: JSON.stringify(packageJson),
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
const body = JSON.stringify(data);
|
|
45
|
+
|
|
46
|
+
const options = {
|
|
47
|
+
host: remoteHost,
|
|
48
|
+
port: remotePort,
|
|
49
|
+
path: remotePath,
|
|
50
|
+
method: 'POST',
|
|
51
|
+
headers: {
|
|
52
|
+
'Content-Type': 'application/json',
|
|
53
|
+
'Content-Length': body.length,
|
|
54
|
+
},
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
return new Promise((resolve, reject) => {
|
|
58
|
+
const req = http.request(options, res => {
|
|
59
|
+
res.on('end', () => {
|
|
60
|
+
resolve();
|
|
61
|
+
});
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
req.on('error', () => {
|
|
65
|
+
reject();
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
req.write(body);
|
|
69
|
+
req.end();
|
|
70
|
+
});
|
|
71
|
+
} catch (error) {
|
|
72
|
+
throw error;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
main()
|
|
77
|
+
.then(() => {
|
|
78
|
+
process.exit(0);
|
|
79
|
+
})
|
|
80
|
+
.catch(() => {
|
|
81
|
+
process.exit(0);
|
|
82
|
+
});
|
package/typography.css
CHANGED
|
@@ -87,6 +87,18 @@
|
|
|
87
87
|
font-weight: 400;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
+
@define-mixin paragraph_component_primary {
|
|
91
|
+
font-size: 16px;
|
|
92
|
+
line-height: 20px;
|
|
93
|
+
font-weight: 400;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
@define-mixin paragraph_component_secondary {
|
|
97
|
+
font-size: 14px;
|
|
98
|
+
line-height: 18px;
|
|
99
|
+
font-weight: 400;
|
|
100
|
+
}
|
|
101
|
+
|
|
90
102
|
@define-mixin paragraph_caps {
|
|
91
103
|
font-size: 12px;
|
|
92
104
|
line-height: 16px;
|
|
@@ -137,6 +149,18 @@
|
|
|
137
149
|
font-weight: 700;
|
|
138
150
|
}
|
|
139
151
|
|
|
152
|
+
@define-mixin accent_component_primary {
|
|
153
|
+
font-size: 16px;
|
|
154
|
+
line-height: 20px;
|
|
155
|
+
font-weight: 700;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
@define-mixin accent_component_secondary {
|
|
159
|
+
font-size: 14px;
|
|
160
|
+
line-height: 18px;
|
|
161
|
+
font-weight: 700;
|
|
162
|
+
}
|
|
163
|
+
|
|
140
164
|
@define-mixin accent_caps {
|
|
141
165
|
font-size: 12px;
|
|
142
166
|
line-height: 16px;
|
|
@@ -217,6 +241,18 @@
|
|
|
217
241
|
font-weight: 500;
|
|
218
242
|
}
|
|
219
243
|
|
|
244
|
+
@define-mixin action_component_primary {
|
|
245
|
+
font-size: 16px;
|
|
246
|
+
line-height: 20px;
|
|
247
|
+
font-weight: 500;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
@define-mixin action_component_secondary {
|
|
251
|
+
font-size: 14px;
|
|
252
|
+
line-height: 18px;
|
|
253
|
+
font-weight: 500;
|
|
254
|
+
}
|
|
255
|
+
|
|
220
256
|
@define-mixin action_caps {
|
|
221
257
|
font-size: 12px;
|
|
222
258
|
line-height: 16px;
|