@spaced-out/ui-design-system 0.1.86 → 0.1.87-beta.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/.cspell/custom-words.txt +5 -1
- package/.storybook/preview-head.html +4 -0
- package/CHANGELOG.md +7 -0
- package/design-tokens/color/app-color.json +26 -0
- package/design-tokens/font/base-font.json +1 -1
- package/design-tokens/size/base-size.json +12 -0
- package/lib/components/ChartWrapper/ChartWrapper.js +124 -0
- package/lib/components/ChartWrapper/ChartWrapper.js.flow +156 -0
- package/lib/components/ChartWrapper/ChartWrapper.module.css +19 -0
- package/lib/components/ChartWrapper/index.js +16 -0
- package/lib/components/ChartWrapper/index.js.flow +3 -0
- package/lib/components/Charts/ChartTooltip.js +18 -0
- package/lib/components/Charts/ChartTooltip.js.flow +15 -0
- package/lib/components/Charts/ChartTooltip.module.css +36 -0
- package/lib/components/Charts/index.js +71 -0
- package/lib/components/Charts/index.js.flow +8 -0
- package/lib/components/ColumnChart/ColumnChart.js +79 -0
- package/lib/components/ColumnChart/ColumnChart.js.flow +108 -0
- package/lib/components/ColumnChart/ColumnChart.module.css +12 -0
- package/lib/components/ColumnChart/index.js +16 -0
- package/lib/components/ColumnChart/index.js.flow +3 -0
- package/lib/components/DonutChart/DonutChart.js +94 -0
- package/lib/components/DonutChart/DonutChart.js.flow +146 -0
- package/lib/components/DonutChart/DonutChart.module.css +65 -0
- package/lib/components/DonutChart/index.js +16 -0
- package/lib/components/DonutChart/index.js.flow +3 -0
- package/lib/components/Icon/index.js +31 -25
- package/lib/components/Icon/index.js.flow +3 -6
- package/lib/components/LineChart/LineChart.js +64 -0
- package/lib/components/LineChart/LineChart.js.flow +85 -0
- package/lib/components/LineChart/LineChart.module.css +17 -0
- package/lib/components/LineChart/index.js +16 -0
- package/lib/components/LineChart/index.js.flow +3 -0
- package/lib/components/SpiderChart/SpiderChart.js +88 -0
- package/lib/components/SpiderChart/SpiderChart.js.flow +123 -0
- package/lib/components/SpiderChart/SpiderChart.module.css +17 -0
- package/lib/components/SpiderChart/index.js +16 -0
- package/lib/components/SpiderChart/index.js.flow +3 -0
- package/lib/components/index.js +11 -0
- package/lib/components/index.js.flow +1 -0
- package/lib/styles/index.css +25 -1
- package/lib/styles/index.js +28 -4
- package/lib/styles/index.js.flow +25 -1
- package/lib/styles/variables/_color.css +16 -0
- package/lib/styles/variables/_color.js +17 -1
- package/lib/styles/variables/_color.js.flow +16 -0
- package/lib/styles/variables/_font.css +1 -1
- package/lib/styles/variables/_font.js +1 -1
- package/lib/styles/variables/_font.js.flow +1 -1
- package/lib/styles/variables/_size.css +8 -0
- package/lib/styles/variables/_size.js +9 -1
- package/lib/styles/variables/_size.js.flow +8 -0
- package/lib/types/charts.js +0 -0
- package/lib/types/charts.js.flow +151 -0
- package/lib/utils/charts/charts.js +71 -0
- package/lib/utils/charts/charts.js.flow +89 -0
- package/lib/utils/charts/columnChart.js +55 -0
- package/lib/utils/charts/columnChart.js.flow +59 -0
- package/lib/utils/charts/donutChart.js +114 -0
- package/lib/utils/charts/donutChart.js.flow +138 -0
- package/lib/utils/charts/helpers.js +65 -0
- package/lib/utils/charts/helpers.js.flow +68 -0
- package/lib/utils/charts/index.js +82 -0
- package/lib/utils/charts/index.js.flow +9 -0
- package/lib/utils/charts/lineChart.js +47 -0
- package/lib/utils/charts/lineChart.js.flow +49 -0
- package/lib/utils/charts/spiderChart.js +59 -0
- package/lib/utils/charts/spiderChart.js.flow +72 -0
- package/lib/utils/charts/typography.js +59 -0
- package/lib/utils/charts/typography.js.flow +67 -0
- package/package.json +4 -1
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.underline = exports.subTitleExtraSmall = exports.jumboMedium = exports.formLabelSmall = exports.buttonTextExtraSmall = exports.bodySmall = exports.baseType = void 0;
|
|
7
|
+
var _color = require("../../styles/variables/_color");
|
|
8
|
+
var _font = require("../../styles/variables/_font");
|
|
9
|
+
|
|
10
|
+
const baseType = {
|
|
11
|
+
fontFamily: 'Centra No 2',
|
|
12
|
+
fontStyle: 'normal',
|
|
13
|
+
lineHeight: _font.fontLineHeight120,
|
|
14
|
+
margin: 0,
|
|
15
|
+
color: _color.colorTextPrimary,
|
|
16
|
+
letterSpacing: _font.fontLetterSpacing0,
|
|
17
|
+
fontWeight: _font.fontWeightMedium,
|
|
18
|
+
display: 'flex',
|
|
19
|
+
alignItems: 'center'
|
|
20
|
+
};
|
|
21
|
+
exports.baseType = baseType;
|
|
22
|
+
const jumboMedium = {
|
|
23
|
+
...baseType,
|
|
24
|
+
fontSize: _font.fontSize36,
|
|
25
|
+
lineHeight: _font.fontLineHeight100,
|
|
26
|
+
letterSpacing: _font.fontLetterSpacingMinus3
|
|
27
|
+
};
|
|
28
|
+
exports.jumboMedium = jumboMedium;
|
|
29
|
+
const bodySmall = {
|
|
30
|
+
...baseType,
|
|
31
|
+
fontSize: _font.fontSize12,
|
|
32
|
+
fontWeight: _font.fontWeightBook,
|
|
33
|
+
lineHeight: _font.fontLineHeight130,
|
|
34
|
+
letterSpacing: _font.fontLetterSpacing4
|
|
35
|
+
};
|
|
36
|
+
exports.bodySmall = bodySmall;
|
|
37
|
+
const formLabelSmall = {
|
|
38
|
+
...baseType,
|
|
39
|
+
fontSize: _font.fontSize12,
|
|
40
|
+
lineHeight: _font.fontLineHeight140
|
|
41
|
+
};
|
|
42
|
+
exports.formLabelSmall = formLabelSmall;
|
|
43
|
+
const buttonTextExtraSmall = {
|
|
44
|
+
...baseType,
|
|
45
|
+
fontSize: _font.fontSize12,
|
|
46
|
+
letterSpacing: _font.fontLetterSpacing1
|
|
47
|
+
};
|
|
48
|
+
exports.buttonTextExtraSmall = buttonTextExtraSmall;
|
|
49
|
+
const underline = {
|
|
50
|
+
textDecoration: 'underline'
|
|
51
|
+
};
|
|
52
|
+
exports.underline = underline;
|
|
53
|
+
const subTitleExtraSmall = {
|
|
54
|
+
...baseType,
|
|
55
|
+
fontSize: _font.fontSize12,
|
|
56
|
+
letterSpacing: _font.fontLetterSpacing0,
|
|
57
|
+
lineHeight: _font.fontLineHeight140
|
|
58
|
+
};
|
|
59
|
+
exports.subTitleExtraSmall = subTitleExtraSmall;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
// @flow strict
|
|
2
|
+
import {colorTextPrimary} from '../../styles/variables/_color';
|
|
3
|
+
import {
|
|
4
|
+
fontLetterSpacing0,
|
|
5
|
+
fontLetterSpacing1,
|
|
6
|
+
fontLetterSpacing4,
|
|
7
|
+
fontLetterSpacingMinus3,
|
|
8
|
+
fontLineHeight100,
|
|
9
|
+
fontLineHeight120,
|
|
10
|
+
fontLineHeight130,
|
|
11
|
+
fontLineHeight140,
|
|
12
|
+
fontSize12,
|
|
13
|
+
fontSize36,
|
|
14
|
+
fontWeightBook,
|
|
15
|
+
fontWeightMedium,
|
|
16
|
+
} from '../../styles/variables/_font';
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
export const baseType = {
|
|
20
|
+
fontFamily: 'Centra No 2',
|
|
21
|
+
fontStyle: 'normal',
|
|
22
|
+
lineHeight: fontLineHeight120,
|
|
23
|
+
margin: 0,
|
|
24
|
+
color: colorTextPrimary,
|
|
25
|
+
letterSpacing: fontLetterSpacing0,
|
|
26
|
+
fontWeight: fontWeightMedium,
|
|
27
|
+
display: 'flex',
|
|
28
|
+
alignItems: 'center',
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export const jumboMedium = {
|
|
32
|
+
...baseType,
|
|
33
|
+
fontSize: fontSize36,
|
|
34
|
+
lineHeight: fontLineHeight100,
|
|
35
|
+
letterSpacing: fontLetterSpacingMinus3,
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
export const bodySmall = {
|
|
39
|
+
...baseType,
|
|
40
|
+
fontSize: fontSize12,
|
|
41
|
+
fontWeight: fontWeightBook,
|
|
42
|
+
lineHeight: fontLineHeight130,
|
|
43
|
+
letterSpacing: fontLetterSpacing4,
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
export const formLabelSmall = {
|
|
47
|
+
...baseType,
|
|
48
|
+
fontSize: fontSize12,
|
|
49
|
+
lineHeight: fontLineHeight140,
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
export const buttonTextExtraSmall = {
|
|
53
|
+
...baseType,
|
|
54
|
+
fontSize: fontSize12,
|
|
55
|
+
letterSpacing: fontLetterSpacing1,
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
export const underline = {
|
|
59
|
+
textDecoration: 'underline',
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
export const subTitleExtraSmall = {
|
|
63
|
+
...baseType,
|
|
64
|
+
fontSize: fontSize12,
|
|
65
|
+
letterSpacing: fontLetterSpacing0,
|
|
66
|
+
lineHeight: fontLineHeight140,
|
|
67
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spaced-out/ui-design-system",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.87-beta.0",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"description": "Sense UI components library",
|
|
6
6
|
"author": {
|
|
@@ -93,6 +93,9 @@
|
|
|
93
93
|
"gulp-babel": "^8.0.0",
|
|
94
94
|
"gulp-rename": "^2.0.0",
|
|
95
95
|
"gulp-replace": "^1.1.3",
|
|
96
|
+
"highcharts": "^11.4.1",
|
|
97
|
+
"highcharts-more": "^0.1.7",
|
|
98
|
+
"highcharts-react-official": "^3.2.1",
|
|
96
99
|
"husky": "2.1.0",
|
|
97
100
|
"invariant": "^2.2.4",
|
|
98
101
|
"jest": "^29.3.1",
|