@alfalab/core-components-typography 3.2.1 → 4.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.css +20 -20
- package/colors.module-1c06b16d.js +6 -0
- package/common.module-00fb3f71.js +6 -0
- package/component.js +2 -2
- package/cssm/text/component.d.ts +1 -1
- package/cssm/title-responsive/index.module.css +14 -64
- package/esm/colors.css +20 -20
- package/esm/colors.module-d9f55bc3.js +4 -0
- package/esm/common.module-39c4c6a5.js +4 -0
- package/esm/component.js +2 -2
- package/esm/index.js +2 -2
- package/esm/text/component.d.ts +1 -1
- package/esm/text/component.js +2 -2
- package/esm/text/index.css +18 -19
- package/esm/text/index.js +1 -1
- package/esm/title/common.css +5 -5
- package/esm/title/component.js +1 -1
- package/esm/title/index.css +19 -19
- package/esm/title/index.js +3 -3
- package/esm/title-mobile/component.js +3 -3
- package/esm/title-mobile/index.css +11 -11
- package/esm/title-mobile/index.js +2 -2
- package/esm/title-responsive/component.js +3 -3
- package/esm/title-responsive/index.css +44 -94
- package/esm/title-responsive/index.js +2 -2
- package/index.js +2 -2
- package/modern/colors.css +20 -20
- package/modern/colors.module-d0f9b310.js +4 -0
- package/modern/common.module-47d6bc91.js +4 -0
- package/modern/component.js +2 -2
- package/modern/index.js +2 -2
- package/modern/text/component.d.ts +1 -1
- package/modern/text/component.js +2 -2
- package/modern/text/index.css +18 -19
- package/modern/text/index.js +1 -1
- package/modern/title/common.css +5 -5
- package/modern/title/component.js +1 -1
- package/modern/title/index.css +19 -19
- package/modern/title/index.js +3 -3
- package/modern/title-mobile/component.js +3 -3
- package/modern/title-mobile/index.css +11 -11
- package/modern/title-mobile/index.js +2 -2
- package/modern/title-responsive/component.js +3 -3
- package/modern/title-responsive/index.css +44 -94
- package/modern/title-responsive/index.js +2 -2
- package/package.json +1 -4
- package/src/colors.module.css +79 -0
- package/src/colors.ts +23 -0
- package/src/component.tsx +19 -0
- package/src/index.ts +5 -0
- package/src/margins.module.css +11 -0
- package/src/presets.ts +17 -0
- package/src/text/component.tsx +116 -0
- package/src/text/index.module.css +76 -0
- package/src/text/index.ts +1 -0
- package/src/title/common.module.css +16 -0
- package/src/title/component.tsx +105 -0
- package/src/title/index.module.css +75 -0
- package/src/title/index.tsx +17 -0
- package/src/title-mobile/component.tsx +16 -0
- package/src/title-mobile/index.module.css +42 -0
- package/src/title-mobile/index.tsx +1 -0
- package/src/title-responsive/component.tsx +14 -0
- package/src/title-responsive/index.module.css +126 -0
- package/src/title-responsive/index.tsx +1 -0
- package/src/types.ts +1 -0
- package/text/component.d.ts +1 -1
- package/text/component.js +2 -2
- package/text/index.css +18 -19
- package/text/index.js +1 -1
- package/title/common.css +5 -5
- package/title/component.js +1 -1
- package/title/index.css +19 -19
- package/title/index.js +3 -3
- package/title-mobile/component.js +3 -3
- package/title-mobile/index.css +11 -11
- package/title-mobile/index.js +2 -2
- package/title-responsive/component.js +3 -3
- package/title-responsive/index.css +44 -94
- package/title-responsive/index.js +2 -2
- package/colors.module-5ace86c0.js +0 -6
- package/common.module-141e6c42.js +0 -6
- package/esm/colors.module-5c7093c3.js +0 -4
- package/esm/common.module-b1986a07.js +0 -4
- package/modern/colors.module-fb1ac5bf.js +0 -4
- package/modern/common.module-3dd593c8.js +0 -4
- package/send-stats.js +0 -82
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var colors = {"tertiary":"typography__tertiary_1sn8k","disabled":"typography__disabled_1sn8k","accent":"typography__accent_1sn8k","primary":"typography__primary_1sn8k","attention":"typography__attention_1sn8k","positive":"typography__positive_1sn8k","secondary":"typography__secondary_1sn8k","tertiary-inverted":"typography__tertiary-inverted_1sn8k","primary-inverted":"typography__primary-inverted_1sn8k","secondary-inverted":"typography__secondary-inverted_1sn8k","link":"typography__link_1sn8k","negative":"typography__negative_1sn8k","static-primary-light":"typography__static-primary-light_1sn8k","static-secondary-light":"typography__static-secondary-light_1sn8k","static-tertiary-light":"typography__static-tertiary-light_1sn8k","static-primary-dark":"typography__static-primary-dark_1sn8k","static-secondary-dark":"typography__static-secondary-dark_1sn8k","static-tertiary-dark":"typography__static-tertiary-dark_1sn8k","static-accent":"typography__static-accent_1sn8k"};
|
|
4
|
-
require('./colors.css')
|
|
5
|
-
|
|
6
|
-
exports.colors = colors;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
var colors = {"tertiary":"typography__tertiary_1sn8k","disabled":"typography__disabled_1sn8k","accent":"typography__accent_1sn8k","primary":"typography__primary_1sn8k","attention":"typography__attention_1sn8k","positive":"typography__positive_1sn8k","secondary":"typography__secondary_1sn8k","tertiary-inverted":"typography__tertiary-inverted_1sn8k","primary-inverted":"typography__primary-inverted_1sn8k","secondary-inverted":"typography__secondary-inverted_1sn8k","link":"typography__link_1sn8k","negative":"typography__negative_1sn8k","static-primary-light":"typography__static-primary-light_1sn8k","static-secondary-light":"typography__static-secondary-light_1sn8k","static-tertiary-light":"typography__static-tertiary-light_1sn8k","static-primary-dark":"typography__static-primary-dark_1sn8k","static-secondary-dark":"typography__static-secondary-dark_1sn8k","static-tertiary-dark":"typography__static-tertiary-dark_1sn8k","static-accent":"typography__static-accent_1sn8k"};
|
|
2
|
-
require('./colors.css')
|
|
3
|
-
|
|
4
|
-
export { colors as c };
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
const colors = {"tertiary":"typography__tertiary_1sn8k","disabled":"typography__disabled_1sn8k","accent":"typography__accent_1sn8k","primary":"typography__primary_1sn8k","attention":"typography__attention_1sn8k","positive":"typography__positive_1sn8k","secondary":"typography__secondary_1sn8k","tertiary-inverted":"typography__tertiary-inverted_1sn8k","primary-inverted":"typography__primary-inverted_1sn8k","secondary-inverted":"typography__secondary-inverted_1sn8k","link":"typography__link_1sn8k","negative":"typography__negative_1sn8k","static-primary-light":"typography__static-primary-light_1sn8k","static-secondary-light":"typography__static-secondary-light_1sn8k","static-tertiary-light":"typography__static-tertiary-light_1sn8k","static-primary-dark":"typography__static-primary-dark_1sn8k","static-secondary-dark":"typography__static-secondary-dark_1sn8k","static-tertiary-dark":"typography__static-tertiary-dark_1sn8k","static-accent":"typography__static-accent_1sn8k"};
|
|
2
|
-
require('./colors.css')
|
|
3
|
-
|
|
4
|
-
export { colors as c };
|
package/send-stats.js
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
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
|
-
});
|