@bigbinary/neetoui-rn 0.0.12 → 0.0.13

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/README.md CHANGED
@@ -1,6 +1,5 @@
1
- [![Netlify Status](https://api.netlify.com/api/v1/badges/1772e21c-61b9-4100-9b2e-9b0d1ce6a210/deploy-status)](https://app.netlify.com/sites/neetoui-rn/deploys) [![Netlify Status](https://api.netlify.com/api/v1/badges/717761ba-353e-4417-9860-86e49b78ac36/deploy-status)](https://app.netlify.com/sites/neetoui-rn-docs/deploys)
2
-
3
-
1
+ [![Netlify Status](https://api.netlify.com/api/v1/badges/1772e21c-61b9-4100-9b2e-9b0d1ce6a210/deploy-status)](https://app.netlify.com/sites/neetoui-rn/deploys)
2
+ [![Netlify Status](https://api.netlify.com/api/v1/badges/717761ba-353e-4417-9860-86e49b78ac36/deploy-status)](https://app.netlify.com/sites/neetoui-rn-docs/deploys)
4
3
 
5
4
  **NeetoUI-RN** is the library that drives the experience in all Neeto React
6
5
  Native products built at [BigBinary](https://www.bigbinary.com).
@@ -43,11 +42,10 @@ folder with static files.
43
42
 
44
43
  Run `yarn serve` to serve storybook locally.
45
44
 
45
+ ## Building Component Documentation
46
46
 
47
- ## Building Component Documentation
48
-
49
- Run `cd docs`, `yarn build` to build component documentation locally, this would create `dist`
50
- folder with static files in `docs` folder.
47
+ Run `cd docs`, `yarn build` to build component documentation locally, this would
48
+ create `dist` folder with static files in `docs` folder.
51
49
 
52
50
  ## Documentation
53
51
 
@@ -28,7 +28,7 @@ import { Typography } from "./Typography";
28
28
  * @extends StyledSystems props /styled-system
29
29
  */
30
30
 
31
- export const Body = ({ children, rest }) => {
31
+ export const Body = ({ children, ...rest }) => {
32
32
  return (
33
33
  <Typography fontSize="body" fontFamily="regular" {...rest}>
34
34
  {children}
@@ -28,7 +28,7 @@ import { Typography } from "./Typography";
28
28
  * @extends StyledSystems props /styled-system
29
29
  */
30
30
 
31
- export const Callout = ({ children, rest }) => {
31
+ export const Callout = ({ children, ...rest }) => {
32
32
  return (
33
33
  <Typography fontSize="callout" fontFamily="bold" {...rest}>
34
34
  {children}
@@ -28,7 +28,7 @@ import { Typography } from "./Typography";
28
28
  * @extends StyledSystems props /styled-system
29
29
  */
30
30
 
31
- export const Caption1 = ({ children, rest }) => {
31
+ export const Caption1 = ({ children, ...rest }) => {
32
32
  return (
33
33
  <Typography fontSize="caption1" fontFamily="regular" {...rest}>
34
34
  {children}
@@ -28,7 +28,7 @@ import { Typography } from "./Typography";
28
28
  * @extends StyledSystems props /styled-system
29
29
  */
30
30
 
31
- export const Headline = ({ children, rest }) => {
31
+ export const Headline = ({ children, ...rest }) => {
32
32
  return (
33
33
  <Typography fontSize="headline" fontFamily="bold" {...rest}>
34
34
  {children}
@@ -28,7 +28,7 @@ import { Typography } from "./Typography";
28
28
  * @extends StyledSystems props /styled-system
29
29
  */
30
30
 
31
- export const Title1 = ({ children, rest }) => {
31
+ export const Title1 = ({ children, ...rest }) => {
32
32
  return (
33
33
  <Typography fontSize="title1" fontFamily="bold" {...rest}>
34
34
  {children}
@@ -28,7 +28,7 @@ import { Typography } from "./Typography";
28
28
  * @extends StyledSystems props /styled-system
29
29
  */
30
30
 
31
- export const Title2 = ({ children, rest }) => {
31
+ export const Title2 = ({ children, ...rest }) => {
32
32
  return (
33
33
  <Typography fontSize="title2" fontFamily="bold" {...rest}>
34
34
  {children}
@@ -28,7 +28,7 @@ import { Typography } from "./Typography";
28
28
  * @extends StyledSystems props /styled-system
29
29
  */
30
30
 
31
- export const Title3 = ({ children, rest }) => {
31
+ export const Title3 = ({ children, ...rest }) => {
32
32
  return (
33
33
  <Typography fontSize="title3" fontFamily="regular" {...rest}>
34
34
  {children}
@@ -1,12 +1,20 @@
1
1
  import * as React from "react";
2
2
  import styled from "styled-components/native";
3
- import { space, layout, typography, color, textStyle } from "styled-system";
3
+ import {
4
+ space,
5
+ layout,
6
+ flexbox,
7
+ typography,
8
+ color,
9
+ textStyle,
10
+ } from "styled-system";
4
11
  import propTypes from "@styled-system/prop-types";
5
12
  import PropTypes from "prop-types";
6
13
 
7
14
  export const Text = styled.Text`
8
15
  ${space}
9
16
  ${layout}
17
+ ${flexbox}
10
18
  ${typography}
11
19
  ${color}
12
20
  ${textStyle}
@@ -22,6 +30,7 @@ export const Text = styled.Text`
22
30
  * <ul>
23
31
  * <li>space</li>
24
32
  * <li>layout</li>
33
+ * <li>flexbox</li>
25
34
  * <li>typography</li>
26
35
  * <li>color</li>
27
36
  * <li>textStyle</li>
@@ -59,6 +68,7 @@ export const Typography = ({ children, ...rest }) => {
59
68
  Typography.propTypes = {
60
69
  ...propTypes.space,
61
70
  ...propTypes.layout,
71
+ ...propTypes.flexbox,
62
72
  ...propTypes.typography,
63
73
  ...propTypes.color,
64
74
  ...propTypes.textStyle,
@@ -7,7 +7,7 @@ const baseTheme = {
7
7
  base: "#2F3941",
8
8
  primary: "#1B1F23",
9
9
  secondary: "#676767",
10
- danger: "#FE295C",
10
+ danger: "#FF6969",
11
11
  },
12
12
  background: {
13
13
  default: "#FFFFFF",
@@ -25,7 +25,7 @@ const baseTheme = {
25
25
  default: "#FFFFFF",
26
26
  base: "#2F3941",
27
27
  primary: "#E4E4E7",
28
- danger: "#FE295C",
28
+ danger: "#FF6969",
29
29
  },
30
30
  },
31
31
  fonts: {
@@ -43,6 +43,7 @@ const baseTheme = {
43
43
  regular: "Inter-Regular",
44
44
  bold: "Inter-Bold",
45
45
  },
46
+ lineHeights: [24],
46
47
  fontSizes: {
47
48
  largeTitle: moderateScale(32),
48
49
  title1: moderateScale(24),
@@ -56,6 +57,9 @@ const baseTheme = {
56
57
  },
57
58
  };
58
59
 
60
+ //aliases
61
+ baseTheme.lineHeights.note = baseTheme.lineHeights[0] + "px";
62
+
59
63
  export const theme = {
60
64
  ...baseTheme,
61
65
  buttons: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigbinary/neetoui-rn",
3
- "version": "0.0.12",
3
+ "version": "0.0.13",
4
4
  "main": "lib/index.js",
5
5
  "author": "BigBinary",
6
6
  "license": "MIT",