@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.
Files changed (87) hide show
  1. package/colors.css +20 -20
  2. package/colors.module-1c06b16d.js +6 -0
  3. package/common.module-00fb3f71.js +6 -0
  4. package/component.js +2 -2
  5. package/cssm/text/component.d.ts +1 -1
  6. package/cssm/title-responsive/index.module.css +14 -64
  7. package/esm/colors.css +20 -20
  8. package/esm/colors.module-d9f55bc3.js +4 -0
  9. package/esm/common.module-39c4c6a5.js +4 -0
  10. package/esm/component.js +2 -2
  11. package/esm/index.js +2 -2
  12. package/esm/text/component.d.ts +1 -1
  13. package/esm/text/component.js +2 -2
  14. package/esm/text/index.css +18 -19
  15. package/esm/text/index.js +1 -1
  16. package/esm/title/common.css +5 -5
  17. package/esm/title/component.js +1 -1
  18. package/esm/title/index.css +19 -19
  19. package/esm/title/index.js +3 -3
  20. package/esm/title-mobile/component.js +3 -3
  21. package/esm/title-mobile/index.css +11 -11
  22. package/esm/title-mobile/index.js +2 -2
  23. package/esm/title-responsive/component.js +3 -3
  24. package/esm/title-responsive/index.css +44 -94
  25. package/esm/title-responsive/index.js +2 -2
  26. package/index.js +2 -2
  27. package/modern/colors.css +20 -20
  28. package/modern/colors.module-d0f9b310.js +4 -0
  29. package/modern/common.module-47d6bc91.js +4 -0
  30. package/modern/component.js +2 -2
  31. package/modern/index.js +2 -2
  32. package/modern/text/component.d.ts +1 -1
  33. package/modern/text/component.js +2 -2
  34. package/modern/text/index.css +18 -19
  35. package/modern/text/index.js +1 -1
  36. package/modern/title/common.css +5 -5
  37. package/modern/title/component.js +1 -1
  38. package/modern/title/index.css +19 -19
  39. package/modern/title/index.js +3 -3
  40. package/modern/title-mobile/component.js +3 -3
  41. package/modern/title-mobile/index.css +11 -11
  42. package/modern/title-mobile/index.js +2 -2
  43. package/modern/title-responsive/component.js +3 -3
  44. package/modern/title-responsive/index.css +44 -94
  45. package/modern/title-responsive/index.js +2 -2
  46. package/package.json +1 -4
  47. package/src/colors.module.css +79 -0
  48. package/src/colors.ts +23 -0
  49. package/src/component.tsx +19 -0
  50. package/src/index.ts +5 -0
  51. package/src/margins.module.css +11 -0
  52. package/src/presets.ts +17 -0
  53. package/src/text/component.tsx +116 -0
  54. package/src/text/index.module.css +76 -0
  55. package/src/text/index.ts +1 -0
  56. package/src/title/common.module.css +16 -0
  57. package/src/title/component.tsx +105 -0
  58. package/src/title/index.module.css +75 -0
  59. package/src/title/index.tsx +17 -0
  60. package/src/title-mobile/component.tsx +16 -0
  61. package/src/title-mobile/index.module.css +42 -0
  62. package/src/title-mobile/index.tsx +1 -0
  63. package/src/title-responsive/component.tsx +14 -0
  64. package/src/title-responsive/index.module.css +126 -0
  65. package/src/title-responsive/index.tsx +1 -0
  66. package/src/types.ts +1 -0
  67. package/text/component.d.ts +1 -1
  68. package/text/component.js +2 -2
  69. package/text/index.css +18 -19
  70. package/text/index.js +1 -1
  71. package/title/common.css +5 -5
  72. package/title/component.js +1 -1
  73. package/title/index.css +19 -19
  74. package/title/index.js +3 -3
  75. package/title-mobile/component.js +3 -3
  76. package/title-mobile/index.css +11 -11
  77. package/title-mobile/index.js +2 -2
  78. package/title-responsive/component.js +3 -3
  79. package/title-responsive/index.css +44 -94
  80. package/title-responsive/index.js +2 -2
  81. package/colors.module-5ace86c0.js +0 -6
  82. package/common.module-141e6c42.js +0 -6
  83. package/esm/colors.module-5c7093c3.js +0 -4
  84. package/esm/common.module-b1986a07.js +0 -4
  85. package/modern/colors.module-fb1ac5bf.js +0 -4
  86. package/modern/common.module-3dd593c8.js +0 -4
  87. 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,6 +0,0 @@
1
- 'use strict';
2
-
3
- var commonStyles = {"component":"typography__component_jmw1n","bold":"typography__bold_jmw1n","medium":"typography__medium_jmw1n","regular":"typography__regular_jmw1n"};
4
- require('./title/common.css')
5
-
6
- exports.commonStyles = commonStyles;
@@ -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
- var commonStyles = {"component":"typography__component_jmw1n","bold":"typography__bold_jmw1n","medium":"typography__medium_jmw1n","regular":"typography__regular_jmw1n"};
2
- require('./title/common.css')
3
-
4
- export { commonStyles 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 };
@@ -1,4 +0,0 @@
1
- const commonStyles = {"component":"typography__component_jmw1n","bold":"typography__bold_jmw1n","medium":"typography__medium_jmw1n","regular":"typography__regular_jmw1n"};
2
- require('./title/common.css')
3
-
4
- export { commonStyles 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
- });