@spaced-out/ui-design-system 0.1.86 → 0.1.87

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 (73) hide show
  1. package/.cspell/custom-words.txt +5 -1
  2. package/.storybook/preview-head.html +4 -0
  3. package/CHANGELOG.md +20 -0
  4. package/design-tokens/color/app-color.json +26 -0
  5. package/design-tokens/font/base-font.json +1 -1
  6. package/design-tokens/size/base-size.json +12 -0
  7. package/lib/components/ChartWrapper/ChartWrapper.js +124 -0
  8. package/lib/components/ChartWrapper/ChartWrapper.js.flow +156 -0
  9. package/lib/components/ChartWrapper/ChartWrapper.module.css +19 -0
  10. package/lib/components/ChartWrapper/index.js +16 -0
  11. package/lib/components/ChartWrapper/index.js.flow +3 -0
  12. package/lib/components/Charts/ChartTooltip.js +18 -0
  13. package/lib/components/Charts/ChartTooltip.js.flow +15 -0
  14. package/lib/components/Charts/ChartTooltip.module.css +36 -0
  15. package/lib/components/Charts/index.js +71 -0
  16. package/lib/components/Charts/index.js.flow +8 -0
  17. package/lib/components/ColumnChart/ColumnChart.js +82 -0
  18. package/lib/components/ColumnChart/ColumnChart.js.flow +109 -0
  19. package/lib/components/ColumnChart/ColumnChart.module.css +12 -0
  20. package/lib/components/ColumnChart/index.js +16 -0
  21. package/lib/components/ColumnChart/index.js.flow +3 -0
  22. package/lib/components/DonutChart/DonutChart.js +97 -0
  23. package/lib/components/DonutChart/DonutChart.js.flow +147 -0
  24. package/lib/components/DonutChart/DonutChart.module.css +65 -0
  25. package/lib/components/DonutChart/index.js +16 -0
  26. package/lib/components/DonutChart/index.js.flow +3 -0
  27. package/lib/components/Grid/Grid.js +3 -2
  28. package/lib/components/Grid/Grid.js.flow +3 -2
  29. package/lib/components/Icon/index.js +31 -25
  30. package/lib/components/Icon/index.js.flow +3 -6
  31. package/lib/components/LineChart/LineChart.js +72 -0
  32. package/lib/components/LineChart/LineChart.js.flow +96 -0
  33. package/lib/components/LineChart/LineChart.module.css +17 -0
  34. package/lib/components/LineChart/index.js +16 -0
  35. package/lib/components/LineChart/index.js.flow +3 -0
  36. package/lib/components/SpiderChart/SpiderChart.js +88 -0
  37. package/lib/components/SpiderChart/SpiderChart.js.flow +123 -0
  38. package/lib/components/SpiderChart/SpiderChart.module.css +17 -0
  39. package/lib/components/SpiderChart/index.js +16 -0
  40. package/lib/components/SpiderChart/index.js.flow +3 -0
  41. package/lib/components/index.js +11 -0
  42. package/lib/components/index.js.flow +1 -0
  43. package/lib/styles/index.css +25 -1
  44. package/lib/styles/index.js +28 -4
  45. package/lib/styles/index.js.flow +25 -1
  46. package/lib/styles/variables/_color.css +16 -0
  47. package/lib/styles/variables/_color.js +17 -1
  48. package/lib/styles/variables/_color.js.flow +16 -0
  49. package/lib/styles/variables/_font.css +1 -1
  50. package/lib/styles/variables/_font.js +1 -1
  51. package/lib/styles/variables/_font.js.flow +1 -1
  52. package/lib/styles/variables/_size.css +8 -0
  53. package/lib/styles/variables/_size.js +9 -1
  54. package/lib/styles/variables/_size.js.flow +8 -0
  55. package/lib/types/charts.js +0 -0
  56. package/lib/types/charts.js.flow +151 -0
  57. package/lib/utils/charts/charts.js +71 -0
  58. package/lib/utils/charts/charts.js.flow +89 -0
  59. package/lib/utils/charts/columnChart.js +55 -0
  60. package/lib/utils/charts/columnChart.js.flow +59 -0
  61. package/lib/utils/charts/donutChart.js +114 -0
  62. package/lib/utils/charts/donutChart.js.flow +138 -0
  63. package/lib/utils/charts/helpers.js +65 -0
  64. package/lib/utils/charts/helpers.js.flow +68 -0
  65. package/lib/utils/charts/index.js +82 -0
  66. package/lib/utils/charts/index.js.flow +9 -0
  67. package/lib/utils/charts/lineChart.js +47 -0
  68. package/lib/utils/charts/lineChart.js.flow +49 -0
  69. package/lib/utils/charts/spiderChart.js +59 -0
  70. package/lib/utils/charts/spiderChart.js.flow +72 -0
  71. package/lib/utils/charts/typography.js +59 -0
  72. package/lib/utils/charts/typography.js.flow +67 -0
  73. 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.86",
3
+ "version": "0.1.87",
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",