@hero-design/rn 6.7.0 → 6.7.1

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/es/index.js CHANGED
@@ -9750,6 +9750,7 @@ var palette = {
9750
9750
  dodgerBlue: '#4568fb',
9751
9751
  dodgerBlueDark30: '#3049b0',
9752
9752
  dodgerBlueLight30: '#7d95fc',
9753
+ dodgerBlueLight75: '#d1d9fe',
9753
9754
  dodgerBlueLight90: '#ecf0ff',
9754
9755
  green: '#01b39c',
9755
9756
  greenDark15: '#019885',
@@ -9758,6 +9759,7 @@ var palette = {
9758
9759
  greenLight30: '#4dcaba',
9759
9760
  greenLight90: '#e6f7f5',
9760
9761
  grey: '#a3a6ac',
9762
+ greyDark15: '#8b8d92',
9761
9763
  greyDark30: '#727478',
9762
9764
  greyDark45: '#5a5b5f',
9763
9765
  greyDark60: '#414245',
@@ -9767,6 +9769,7 @@ var palette = {
9767
9769
  greyLight75: '#e8e9ea',
9768
9770
  greyLight85: '#f1f2f3',
9769
9771
  greyLight90: '#f6f6f7',
9772
+ greyLight95: '#fafbfb',
9770
9773
  grotesqueGreen: '#6af293',
9771
9774
  grotesqueGreenDark45: '#3a8551',
9772
9775
  grotesqueGreenLight60: '#c3fad4',
@@ -9794,6 +9797,7 @@ var palette = {
9794
9797
  redDark30: '#9b2508',
9795
9798
  redDark75: '#380d03',
9796
9799
  redLight30: '#e87254',
9800
+ redLight60: '#f2ae9d',
9797
9801
  redLight75: '#f7cdc2',
9798
9802
  redLight90: '#fcebe7',
9799
9803
  smalt: '#003580',
@@ -9817,7 +9821,7 @@ var palette = {
9817
9821
  yellowLight60: '#fdf1a1',
9818
9822
  yellowLight90: '#fffbe8'
9819
9823
  };
9820
- var systemPalette = {
9824
+ ({
9821
9825
  primary: palette.violet,
9822
9826
  primaryDark: palette.violetDark30,
9823
9827
  primaryLight: palette.violetLight30,
@@ -9851,23 +9855,69 @@ var systemPalette = {
9851
9855
  disabledText: palette.grey,
9852
9856
  outline: palette.greyLight60,
9853
9857
  disabledBackground: palette.greyLight60
9858
+ });
9859
+
9860
+ var systemPalette = {
9861
+ primary: palette.violet,
9862
+ primaryLight: palette.violetLight60,
9863
+ info: palette.dodgerBlue,
9864
+ infoLight: palette.dodgerBlueLight75,
9865
+ infoBackground: palette.dodgerBlueLight90,
9866
+ success: palette.green,
9867
+ successDark: palette.greenDark30,
9868
+ successLight: palette.greenDark75,
9869
+ successBackground: palette.grotesqueGreenLight90,
9870
+ danger: palette.red,
9871
+ dangerLight: palette.redLight60,
9872
+ dangerBackground: palette.redLight90,
9873
+ warning: palette.orange,
9874
+ warningDark: palette.orangeDark15,
9875
+ warningBackground: palette.orangeLight90,
9876
+ platformBackground: palette.greyLight95,
9877
+ backgroundDark: palette.greyDark75,
9878
+ text: palette.greyDark75,
9879
+ disabledText: palette.greyDark15,
9880
+ invertedText: palette.white
9854
9881
  };
9855
9882
 
9856
- var BASE = 8;
9883
+ var BASE$1 = 8;
9857
9884
  var space = {
9858
- xxsmall: BASE * 0.25,
9859
- xsmall: BASE * 0.5,
9860
- small: BASE,
9861
- medium: BASE * 2,
9862
- large: BASE * 3,
9863
- xlarge: BASE * 4,
9864
- xxlarge: BASE * 5,
9865
- xxxlarge: BASE * 6,
9866
- xxxxlarge: BASE * 7
9885
+ xxsmall: BASE$1 * 0.25,
9886
+ xsmall: BASE$1 * 0.5,
9887
+ small: BASE$1,
9888
+ medium: BASE$1 * 2,
9889
+ large: BASE$1 * 3,
9890
+ xlarge: BASE$1 * 4,
9891
+ xxlarge: BASE$1 * 5,
9892
+ xxxlarge: BASE$1 * 6,
9893
+ xxxxlarge: BASE$1 * 7
9894
+ };
9895
+
9896
+ var BASE = 16;
9897
+ var fontSizes = {
9898
+ xlarge: BASE * 1.125,
9899
+ large: BASE,
9900
+ medium: BASE * 0.875,
9901
+ small: BASE * 0.75,
9902
+ xsmall: BASE * 0.625 // 10
9903
+
9904
+ };
9905
+ var fontWeights = {
9906
+ light: 200,
9907
+ regular: 400,
9908
+ semiBold: 600,
9909
+ bold: 700
9910
+ };
9911
+ var lineHeights = {
9912
+ xlarge: fontSizes.xlarge + 8,
9913
+ large: fontSizes.large + 8,
9914
+ medium: fontSizes.medium + 8,
9915
+ small: fontSizes.small + 8,
9916
+ xsmall: fontSizes.xsmall + 8
9867
9917
  };
9868
9918
 
9869
9919
  var demoStyleColors = {
9870
- primaryBg: systemPalette.primaryBackground,
9920
+ primaryBg: systemPalette.primaryLight,
9871
9921
  dangerBg: systemPalette.dangerBackground,
9872
9922
  warningBg: systemPalette.warningBackground
9873
9923
  };
@@ -9883,7 +9933,10 @@ var theme = {
9883
9933
  }),
9884
9934
  space: _objectSpread2(_objectSpread2({}, space), {}, {
9885
9935
  demoStyle: demoStyleSpace
9886
- })
9936
+ }),
9937
+ fontSizes: fontSizes,
9938
+ fontWeights: fontWeights,
9939
+ lineHeights: lineHeights
9887
9940
  };
9888
9941
 
9889
9942
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10;
package/lib/index.js CHANGED
@@ -9758,6 +9758,7 @@ var palette = {
9758
9758
  dodgerBlue: '#4568fb',
9759
9759
  dodgerBlueDark30: '#3049b0',
9760
9760
  dodgerBlueLight30: '#7d95fc',
9761
+ dodgerBlueLight75: '#d1d9fe',
9761
9762
  dodgerBlueLight90: '#ecf0ff',
9762
9763
  green: '#01b39c',
9763
9764
  greenDark15: '#019885',
@@ -9766,6 +9767,7 @@ var palette = {
9766
9767
  greenLight30: '#4dcaba',
9767
9768
  greenLight90: '#e6f7f5',
9768
9769
  grey: '#a3a6ac',
9770
+ greyDark15: '#8b8d92',
9769
9771
  greyDark30: '#727478',
9770
9772
  greyDark45: '#5a5b5f',
9771
9773
  greyDark60: '#414245',
@@ -9775,6 +9777,7 @@ var palette = {
9775
9777
  greyLight75: '#e8e9ea',
9776
9778
  greyLight85: '#f1f2f3',
9777
9779
  greyLight90: '#f6f6f7',
9780
+ greyLight95: '#fafbfb',
9778
9781
  grotesqueGreen: '#6af293',
9779
9782
  grotesqueGreenDark45: '#3a8551',
9780
9783
  grotesqueGreenLight60: '#c3fad4',
@@ -9802,6 +9805,7 @@ var palette = {
9802
9805
  redDark30: '#9b2508',
9803
9806
  redDark75: '#380d03',
9804
9807
  redLight30: '#e87254',
9808
+ redLight60: '#f2ae9d',
9805
9809
  redLight75: '#f7cdc2',
9806
9810
  redLight90: '#fcebe7',
9807
9811
  smalt: '#003580',
@@ -9825,7 +9829,7 @@ var palette = {
9825
9829
  yellowLight60: '#fdf1a1',
9826
9830
  yellowLight90: '#fffbe8'
9827
9831
  };
9828
- var systemPalette = {
9832
+ ({
9829
9833
  primary: palette.violet,
9830
9834
  primaryDark: palette.violetDark30,
9831
9835
  primaryLight: palette.violetLight30,
@@ -9859,23 +9863,69 @@ var systemPalette = {
9859
9863
  disabledText: palette.grey,
9860
9864
  outline: palette.greyLight60,
9861
9865
  disabledBackground: palette.greyLight60
9866
+ });
9867
+
9868
+ var systemPalette = {
9869
+ primary: palette.violet,
9870
+ primaryLight: palette.violetLight60,
9871
+ info: palette.dodgerBlue,
9872
+ infoLight: palette.dodgerBlueLight75,
9873
+ infoBackground: palette.dodgerBlueLight90,
9874
+ success: palette.green,
9875
+ successDark: palette.greenDark30,
9876
+ successLight: palette.greenDark75,
9877
+ successBackground: palette.grotesqueGreenLight90,
9878
+ danger: palette.red,
9879
+ dangerLight: palette.redLight60,
9880
+ dangerBackground: palette.redLight90,
9881
+ warning: palette.orange,
9882
+ warningDark: palette.orangeDark15,
9883
+ warningBackground: palette.orangeLight90,
9884
+ platformBackground: palette.greyLight95,
9885
+ backgroundDark: palette.greyDark75,
9886
+ text: palette.greyDark75,
9887
+ disabledText: palette.greyDark15,
9888
+ invertedText: palette.white
9862
9889
  };
9863
9890
 
9864
- var BASE = 8;
9891
+ var BASE$1 = 8;
9865
9892
  var space = {
9866
- xxsmall: BASE * 0.25,
9867
- xsmall: BASE * 0.5,
9868
- small: BASE,
9869
- medium: BASE * 2,
9870
- large: BASE * 3,
9871
- xlarge: BASE * 4,
9872
- xxlarge: BASE * 5,
9873
- xxxlarge: BASE * 6,
9874
- xxxxlarge: BASE * 7
9893
+ xxsmall: BASE$1 * 0.25,
9894
+ xsmall: BASE$1 * 0.5,
9895
+ small: BASE$1,
9896
+ medium: BASE$1 * 2,
9897
+ large: BASE$1 * 3,
9898
+ xlarge: BASE$1 * 4,
9899
+ xxlarge: BASE$1 * 5,
9900
+ xxxlarge: BASE$1 * 6,
9901
+ xxxxlarge: BASE$1 * 7
9902
+ };
9903
+
9904
+ var BASE = 16;
9905
+ var fontSizes = {
9906
+ xlarge: BASE * 1.125,
9907
+ large: BASE,
9908
+ medium: BASE * 0.875,
9909
+ small: BASE * 0.75,
9910
+ xsmall: BASE * 0.625 // 10
9911
+
9912
+ };
9913
+ var fontWeights = {
9914
+ light: 200,
9915
+ regular: 400,
9916
+ semiBold: 600,
9917
+ bold: 700
9918
+ };
9919
+ var lineHeights = {
9920
+ xlarge: fontSizes.xlarge + 8,
9921
+ large: fontSizes.large + 8,
9922
+ medium: fontSizes.medium + 8,
9923
+ small: fontSizes.small + 8,
9924
+ xsmall: fontSizes.xsmall + 8
9875
9925
  };
9876
9926
 
9877
9927
  var demoStyleColors = {
9878
- primaryBg: systemPalette.primaryBackground,
9928
+ primaryBg: systemPalette.primaryLight,
9879
9929
  dangerBg: systemPalette.dangerBackground,
9880
9930
  warningBg: systemPalette.warningBackground
9881
9931
  };
@@ -9891,7 +9941,10 @@ var theme = {
9891
9941
  }),
9892
9942
  space: _objectSpread2(_objectSpread2({}, space), {}, {
9893
9943
  demoStyle: demoStyleSpace
9894
- })
9944
+ }),
9945
+ fontSizes: fontSizes,
9946
+ fontWeights: fontWeights,
9947
+ lineHeights: lineHeights
9895
9948
  };
9896
9949
 
9897
9950
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10;
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "@hero-design/rn",
3
- "version": "6.7.0",
3
+ "version": "6.7.1",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
7
+ "types": "types/index.d.ts",
7
8
  "scripts": {
8
9
  "lint": "eslint src --ext .js,.jsx,.ts,.tsx --ignore-path ../../.gitignore",
9
10
  "type-check": "tsc --noEmit",
@@ -11,10 +12,11 @@
11
12
  "test": "jest --runInBand",
12
13
  "build:js": "rollup -c",
13
14
  "build:types": "tsc --noEmit false --emitDeclarationOnly",
14
- "build": "yarn build:js && yarn build:types"
15
+ "build": "yarn build:js && yarn build:types",
16
+ "publish:npm": "npm publish --access public"
15
17
  },
16
18
  "dependencies": {
17
- "@hero-design/colors": "^6.7.0",
19
+ "@hero-design/colors": "6.7.1",
18
20
  "styled-components": "6.0.0-alpha.5"
19
21
  },
20
22
  "peerDependencies": {
@@ -0,0 +1,26 @@
1
+ import { palette } from '@hero-design/colors';
2
+
3
+ const systemPalette = {
4
+ primary: palette.violet,
5
+ primaryLight: palette.violetLight60,
6
+ info: palette.dodgerBlue,
7
+ infoLight: palette.dodgerBlueLight75,
8
+ infoBackground: palette.dodgerBlueLight90,
9
+ success: palette.green,
10
+ successDark: palette.greenDark30,
11
+ successLight: palette.greenDark75,
12
+ successBackground: palette.grotesqueGreenLight90,
13
+ danger: palette.red,
14
+ dangerLight: palette.redLight60,
15
+ dangerBackground: palette.redLight90,
16
+ warning: palette.orange,
17
+ warningDark: palette.orangeDark15,
18
+ warningBackground: palette.orangeLight90,
19
+ platformBackground: palette.greyLight95,
20
+ backgroundDark: palette.greyDark75,
21
+ text: palette.greyDark75,
22
+ disabledText: palette.greyDark15,
23
+ invertedText: palette.white,
24
+ }
25
+
26
+ export { palette, systemPalette };
@@ -1,8 +1,8 @@
1
- import { systemPalette } from '../global/colors';
2
- import { space } from '../global/space';
1
+ import { systemPalette } from '../colors';
2
+ import { space } from '../space';
3
3
 
4
4
  const demoStyleColors = {
5
- primaryBg: systemPalette.primaryBackground,
5
+ primaryBg: systemPalette.primaryLight,
6
6
  dangerBg: systemPalette.dangerBackground,
7
7
  warningBg: systemPalette.warningBackground,
8
8
  };
@@ -1,5 +1,6 @@
1
- import { palette, systemPalette } from './global/colors';
2
- import { space } from './global/space';
1
+ import { palette, systemPalette } from './colors';
2
+ import { space } from './space';
3
+ import { fontSizes, fontWeights, lineHeights } from './typography';
3
4
 
4
5
  import { demoStyleColors, demoStyleSpace } from './components/demoStyle';
5
6
 
@@ -13,6 +14,9 @@ const theme = {
13
14
  ...space,
14
15
  demoStyle: demoStyleSpace,
15
16
  },
17
+ fontSizes,
18
+ fontWeights,
19
+ lineHeights,
16
20
  };
17
21
 
18
22
  type Theme = typeof theme;
File without changes
@@ -0,0 +1,26 @@
1
+ const BASE = 16;
2
+
3
+ const fontSizes = {
4
+ xlarge: BASE * 1.125, // 18
5
+ large: BASE, // 16
6
+ medium: BASE * 0.875, // 14
7
+ small: BASE * 0.75, // 12
8
+ xsmall: BASE * 0.625, // 10
9
+ };
10
+
11
+ const fontWeights = {
12
+ light: 200,
13
+ regular: 400,
14
+ semiBold: 600,
15
+ bold: 700,
16
+ };
17
+
18
+ const lineHeights = {
19
+ xlarge: fontSizes.xlarge + 8,
20
+ large: fontSizes.large + 8,
21
+ medium: fontSizes.medium + 8,
22
+ small: fontSizes.small + 8,
23
+ xsmall: fontSizes.xsmall + 8,
24
+ };
25
+
26
+ export { fontSizes, fontWeights, lineHeights };
@@ -0,0 +1,24 @@
1
+ import { palette } from '@hero-design/colors';
2
+ declare const systemPalette: {
3
+ primary: string;
4
+ primaryLight: string;
5
+ info: string;
6
+ infoLight: string;
7
+ infoBackground: string;
8
+ success: string;
9
+ successDark: string;
10
+ successLight: string;
11
+ successBackground: string;
12
+ danger: string;
13
+ dangerLight: string;
14
+ dangerBackground: string;
15
+ warning: string;
16
+ warningDark: string;
17
+ warningBackground: string;
18
+ platformBackground: string;
19
+ backgroundDark: string;
20
+ text: string;
21
+ disabledText: string;
22
+ invertedText: string;
23
+ };
24
+ export { palette, systemPalette };
@@ -6,14 +6,8 @@ declare const theme: {
6
6
  warningBg: string;
7
7
  };
8
8
  primary: string;
9
- primaryDark: string;
10
9
  primaryLight: string;
11
- primaryBackground: string;
12
- platformBackground: string;
13
- backgroundDark: string;
14
- backgroundLight: string;
15
10
  info: string;
16
- infoDark: string;
17
11
  infoLight: string;
18
12
  infoBackground: string;
19
13
  success: string;
@@ -21,23 +15,16 @@ declare const theme: {
21
15
  successLight: string;
22
16
  successBackground: string;
23
17
  danger: string;
24
- dangerDark: string;
25
18
  dangerLight: string;
26
19
  dangerBackground: string;
27
20
  warning: string;
28
21
  warningDark: string;
29
- warningLight: string;
30
22
  warningBackground: string;
31
- error: string;
32
- errorDark: string;
33
- errorLight: string;
34
- errorBackground: string;
35
- headingText: string;
23
+ platformBackground: string;
24
+ backgroundDark: string;
36
25
  text: string;
37
- subduedText: string;
38
26
  disabledText: string;
39
- outline: string;
40
- disabledBackground: string;
27
+ invertedText: string;
41
28
  black: string;
42
29
  blue: string;
43
30
  blueDark30: string;
@@ -48,6 +35,7 @@ declare const theme: {
48
35
  dodgerBlue: string;
49
36
  dodgerBlueDark30: string;
50
37
  dodgerBlueLight30: string;
38
+ dodgerBlueLight75: string;
51
39
  dodgerBlueLight90: string;
52
40
  green: string;
53
41
  greenDark15: string;
@@ -56,6 +44,7 @@ declare const theme: {
56
44
  greenLight30: string;
57
45
  greenLight90: string;
58
46
  grey: string;
47
+ greyDark15: string;
59
48
  greyDark30: string;
60
49
  greyDark45: string;
61
50
  greyDark60: string;
@@ -65,6 +54,7 @@ declare const theme: {
65
54
  greyLight75: string;
66
55
  greyLight85: string;
67
56
  greyLight90: string;
57
+ greyLight95: string;
68
58
  grotesqueGreen: string;
69
59
  grotesqueGreenDark45: string;
70
60
  grotesqueGreenLight60: string;
@@ -92,6 +82,7 @@ declare const theme: {
92
82
  redDark30: string;
93
83
  redDark75: string;
94
84
  redLight30: string;
85
+ redLight60: string;
95
86
  redLight75: string;
96
87
  redLight90: string;
97
88
  smalt: string;
@@ -131,6 +122,26 @@ declare const theme: {
131
122
  xxxlarge: number;
132
123
  xxxxlarge: number;
133
124
  };
125
+ fontSizes: {
126
+ xlarge: number;
127
+ large: number;
128
+ medium: number;
129
+ small: number;
130
+ xsmall: number;
131
+ };
132
+ fontWeights: {
133
+ light: number;
134
+ regular: number;
135
+ semiBold: number;
136
+ bold: number;
137
+ };
138
+ lineHeights: {
139
+ xlarge: number;
140
+ large: number;
141
+ medium: number;
142
+ small: number;
143
+ xsmall: number;
144
+ };
134
145
  };
135
146
  declare type Theme = typeof theme;
136
147
  export { Theme };
File without changes
@@ -0,0 +1,21 @@
1
+ declare const fontSizes: {
2
+ xlarge: number;
3
+ large: number;
4
+ medium: number;
5
+ small: number;
6
+ xsmall: number;
7
+ };
8
+ declare const fontWeights: {
9
+ light: number;
10
+ regular: number;
11
+ semiBold: number;
12
+ bold: number;
13
+ };
14
+ declare const lineHeights: {
15
+ xlarge: number;
16
+ large: number;
17
+ medium: number;
18
+ small: number;
19
+ xsmall: number;
20
+ };
21
+ export { fontSizes, fontWeights, lineHeights };
@@ -1,3 +0,0 @@
1
- import { palette, systemPalette } from '@hero-design/colors';
2
-
3
- export { palette, systemPalette };
@@ -1,2 +0,0 @@
1
- import { palette, systemPalette } from '@hero-design/colors';
2
- export { palette, systemPalette };