@factorearth/component-library 4.3.3-alpha.0 → 4.3.4-alpha.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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
type TypographyVariants = "Jumbo" | "Heading 1" | "Heading 2" | "Heading 3" | "Heading 4" | "Paragraphy Body" | "Small" | "Legal" | "Label";
|
|
2
|
+
type TypographyVariants = "Jumbo" | "Heading 1" | "Heading 2" | "Heading 3" | "Heading 4" | "Heading 5" | "Paragraphy Body" | "Small" | "Legal" | "Label";
|
|
3
3
|
interface TypographyProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement> {
|
|
4
4
|
textColor: string;
|
|
5
5
|
variant: TypographyVariants;
|
|
@@ -6,8 +6,8 @@ const StyledText = styled.p `
|
|
|
6
6
|
font-size: ${({ text }) => text.fontSize};
|
|
7
7
|
line-height: ${({ text }) => text.lineHeight};
|
|
8
8
|
font-weight: ${({ text }) => text.fontWeight};
|
|
9
|
-
padding:
|
|
10
|
-
margin:
|
|
9
|
+
padding: none,
|
|
10
|
+
margin: 0px,
|
|
11
11
|
`;
|
|
12
12
|
export const Typography = (props) => {
|
|
13
13
|
const { textColor, variant, content, children, ...htmlProps } = props;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Typography.js","sourceRoot":"","sources":["../../../lib/Atoms/Typography/Typography.tsx"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"Typography.js","sourceRoot":"","sources":["../../../lib/Atoms/Typography/Typography.tsx"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,yBAAyB,CAAC;AAkC7C,MAAM,UAAU,GAAG,MAAM,CAAC,CAAC,CAA+C;UAChE,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,SAAS;cACxB,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ;gBACzB,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,UAAU;gBAC7B,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,UAAU;;;CAG5C,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,KAAsB,EAAE,EAAE;IACpD,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,SAAS,EAAE,GAAG,KAAK,CAAC;IAEtE,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,KAAyB,CAAC;IAEzE,OAAO,CACN,oBAAC,UAAU,OACN,SAAS,EACb,SAAS,EAAE,SAAS,EACpB,IAAI,EAAE,IAAI,EACV,IAAI,EAAE,IAAI,CAAC,IAAI,gBACH,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,IAErE,OAAO,IAAI,QAAQ,CACR,CACb,CAAC;AACH,CAAC,CAAC"}
|
package/dist/Theme/tokens.json
CHANGED
|
@@ -220,6 +220,17 @@
|
|
|
220
220
|
},
|
|
221
221
|
"type": "typography"
|
|
222
222
|
},
|
|
223
|
+
"Heading 5": {
|
|
224
|
+
"value": {
|
|
225
|
+
"role": "heading",
|
|
226
|
+
"ariaLevel": "5",
|
|
227
|
+
"fontSize": "16px",
|
|
228
|
+
"lineHeight": "150%",
|
|
229
|
+
"letterSpacing": "0",
|
|
230
|
+
"fontWeight": "700"
|
|
231
|
+
},
|
|
232
|
+
"type": "typography"
|
|
233
|
+
},
|
|
223
234
|
"Paragraphy Body": {
|
|
224
235
|
"value": {
|
|
225
236
|
"role": "paragraph",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@factorearth/component-library",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.4-alpha.0",
|
|
4
4
|
"description": " A storybook component library for FactorEarth",
|
|
5
5
|
"author": "madtrx <marlin.makori@gmail.com>",
|
|
6
6
|
"homepage": "https://github.com/FactorEarth/RecordMiddleware#readme",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"access": "public",
|
|
47
47
|
"registry": "https://registry.npmjs.org/"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "24719cecc03cbe027e739c57a350b2ccbbfbbe01",
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@emotion/react": "^11.13.0",
|
|
52
52
|
"@emotion/styled": "^11.13.0",
|