@contentful/f36-typography 4.0.1-beta.2555 → 4.0.1-beta.2694
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/dist/main.js +48 -32
- package/dist/main.js.map +1 -1
- package/dist/module.js +36 -20
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +269 -7
- package/dist/types.d.ts.map +1 -1
- package/package.json +4 -4
package/dist/main.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
var $5fdCT$reactjsxruntime = require("react/jsx-runtime");
|
|
1
2
|
var $5fdCT$react = require("react");
|
|
2
3
|
var $5fdCT$emotion = require("emotion");
|
|
3
4
|
var $5fdCT$contentfulf36tokens = require("@contentful/f36-tokens");
|
|
@@ -23,6 +24,8 @@ $parcel$export(module.exports, "Text", () => $dd9fe96501c8d4c8$export$5f1af8db98
|
|
|
23
24
|
|
|
24
25
|
|
|
25
26
|
|
|
27
|
+
|
|
28
|
+
|
|
26
29
|
const $dd9fe96501c8d4c8$var$TEXT_DEFAULT_TAG = 'span';
|
|
27
30
|
function $dd9fe96501c8d4c8$var$truncatedStyle() {
|
|
28
31
|
return(/*#__PURE__*/ $5fdCT$emotion.css({
|
|
@@ -32,27 +35,28 @@ function $dd9fe96501c8d4c8$var$truncatedStyle() {
|
|
|
32
35
|
}
|
|
33
36
|
function $dd9fe96501c8d4c8$var$_Text({ fontSize: fontSize = 'fontSizeM' , fontStack: fontStack = 'fontStackPrimary' , fontWeight: fontWeight = 'fontWeightNormal' , fontColor: fontColor = 'gray800' , lineHeight: lineHeight = 'lineHeightM' , children: children , isTruncated: isTruncated , as: as , className: className , margin: margin = 'none' , ...otherProps }, ref) {
|
|
34
37
|
const Element = as || $dd9fe96501c8d4c8$var$TEXT_DEFAULT_TAG;
|
|
35
|
-
return(/*#__PURE__*/ $
|
|
38
|
+
return(/*#__PURE__*/ $5fdCT$reactjsxruntime.jsx($5fdCT$contentfulf36core.Box, {
|
|
36
39
|
...otherProps,
|
|
37
40
|
as: Element,
|
|
38
41
|
className: $5fdCT$emotion.cx(/*#__PURE__*/ $5fdCT$emotion.css({
|
|
39
42
|
padding: 0,
|
|
40
|
-
fontFamily: $parcel$interopDefault($5fdCT$contentfulf36tokens)[fontStack],
|
|
41
|
-
fontWeight: $parcel$interopDefault($5fdCT$contentfulf36tokens)[fontWeight],
|
|
42
|
-
color: $parcel$interopDefault($5fdCT$contentfulf36tokens)[fontColor],
|
|
43
|
-
fontSize: $parcel$interopDefault($5fdCT$contentfulf36tokens)[fontSize],
|
|
44
|
-
lineHeight: $parcel$interopDefault($5fdCT$contentfulf36tokens)[lineHeight]
|
|
43
|
+
fontFamily: ($parcel$interopDefault($5fdCT$contentfulf36tokens))[fontStack],
|
|
44
|
+
fontWeight: ($parcel$interopDefault($5fdCT$contentfulf36tokens))[fontWeight],
|
|
45
|
+
color: ($parcel$interopDefault($5fdCT$contentfulf36tokens))[fontColor],
|
|
46
|
+
fontSize: ($parcel$interopDefault($5fdCT$contentfulf36tokens))[fontSize],
|
|
47
|
+
lineHeight: ($parcel$interopDefault($5fdCT$contentfulf36tokens))[lineHeight]
|
|
45
48
|
}), isTruncated ? $dd9fe96501c8d4c8$var$truncatedStyle() : null, className),
|
|
46
49
|
margin: margin,
|
|
47
|
-
ref: ref
|
|
48
|
-
|
|
50
|
+
ref: ref,
|
|
51
|
+
children: children
|
|
52
|
+
}));
|
|
49
53
|
}
|
|
50
|
-
const $dd9fe96501c8d4c8$export$5f1af8db9871e1d6 = /*#__PURE__*/ $parcel$interopDefault($5fdCT$react).forwardRef($dd9fe96501c8d4c8$var$_Text);
|
|
54
|
+
const $dd9fe96501c8d4c8$export$5f1af8db9871e1d6 = /*#__PURE__*/ ($parcel$interopDefault($5fdCT$react)).forwardRef($dd9fe96501c8d4c8$var$_Text);
|
|
51
55
|
|
|
52
56
|
|
|
53
57
|
const $edf6509e8a752df1$var$HEADING_DEFAULT_TAG = 'h1';
|
|
54
58
|
function $edf6509e8a752df1$var$_Heading({ children: children , testId: testId = 'cf-ui-heading' , ...otherProps }, ref) {
|
|
55
|
-
return(/*#__PURE__*/ $
|
|
59
|
+
return(/*#__PURE__*/ $5fdCT$reactjsxruntime.jsx($dd9fe96501c8d4c8$export$5f1af8db9871e1d6, {
|
|
56
60
|
as: $edf6509e8a752df1$var$HEADING_DEFAULT_TAG,
|
|
57
61
|
testId: testId,
|
|
58
62
|
marginBottom: "spacingM",
|
|
@@ -61,17 +65,19 @@ function $edf6509e8a752df1$var$_Heading({ children: children , testId: testId =
|
|
|
61
65
|
fontSize: "fontSizeXl",
|
|
62
66
|
lineHeight: "lineHeightXl",
|
|
63
67
|
...otherProps,
|
|
64
|
-
ref: ref
|
|
65
|
-
|
|
68
|
+
ref: ref,
|
|
69
|
+
children: children
|
|
70
|
+
}));
|
|
66
71
|
}
|
|
67
|
-
const $edf6509e8a752df1$export$a8a3e93435678ff9 = /*#__PURE__*/ $parcel$interopDefault($5fdCT$react).forwardRef($edf6509e8a752df1$var$_Heading);
|
|
72
|
+
const $edf6509e8a752df1$export$a8a3e93435678ff9 = /*#__PURE__*/ ($parcel$interopDefault($5fdCT$react)).forwardRef($edf6509e8a752df1$var$_Heading);
|
|
73
|
+
|
|
68
74
|
|
|
69
75
|
|
|
70
76
|
|
|
71
77
|
|
|
72
78
|
const $831292c032eb183f$var$SUBHEADING_DEFAULT_TAG = 'h3';
|
|
73
79
|
function $831292c032eb183f$var$_Subheading({ children: children , testId: testId = 'cf-ui-subheading' , ...otherProps }, ref) {
|
|
74
|
-
return(/*#__PURE__*/ $
|
|
80
|
+
return(/*#__PURE__*/ $5fdCT$reactjsxruntime.jsx($dd9fe96501c8d4c8$export$5f1af8db9871e1d6, {
|
|
75
81
|
as: $831292c032eb183f$var$SUBHEADING_DEFAULT_TAG,
|
|
76
82
|
testId: testId,
|
|
77
83
|
marginBottom: "spacingM",
|
|
@@ -80,10 +86,12 @@ function $831292c032eb183f$var$_Subheading({ children: children , testId: testId
|
|
|
80
86
|
fontWeight: "fontWeightDemiBold",
|
|
81
87
|
fontColor: "gray900",
|
|
82
88
|
...otherProps,
|
|
83
|
-
ref: ref
|
|
84
|
-
|
|
89
|
+
ref: ref,
|
|
90
|
+
children: children
|
|
91
|
+
}));
|
|
85
92
|
}
|
|
86
|
-
const $831292c032eb183f$export$5404b1d39162d870 = /*#__PURE__*/ $parcel$interopDefault($5fdCT$react).forwardRef($831292c032eb183f$var$_Subheading);
|
|
93
|
+
const $831292c032eb183f$export$5404b1d39162d870 = /*#__PURE__*/ ($parcel$interopDefault($5fdCT$react)).forwardRef($831292c032eb183f$var$_Subheading);
|
|
94
|
+
|
|
87
95
|
|
|
88
96
|
|
|
89
97
|
|
|
@@ -91,14 +99,17 @@ function $d22050ec5fdf0a29$export$1c6175f3aa4394b7(props) {
|
|
|
91
99
|
$5fdCT$react.useEffect(()=>{
|
|
92
100
|
console.warn('Forma 36: Typography component is deprecated. You can safely remove it from your components.');
|
|
93
101
|
}, []);
|
|
94
|
-
return(/*#__PURE__*/ $
|
|
102
|
+
return(/*#__PURE__*/ $5fdCT$reactjsxruntime.jsx($5fdCT$reactjsxruntime.Fragment, {
|
|
103
|
+
children: props.children
|
|
104
|
+
}));
|
|
95
105
|
}
|
|
96
106
|
|
|
97
107
|
|
|
98
108
|
|
|
99
109
|
|
|
110
|
+
|
|
100
111
|
const $2918aeb7dafaacc0$var$DISPLAY_TEXT_DEFAULT_TAG = 'h2';
|
|
101
|
-
function $2918aeb7dafaacc0$var$_DisplayText({ children: children , size: size = 'default' , testId: testId = 'cf-ui-display-text' ,
|
|
112
|
+
function $2918aeb7dafaacc0$var$_DisplayText({ children: children , size: size = 'default' , testId: testId = 'cf-ui-display-text' , ...otherProps }, ref) {
|
|
102
113
|
let fontSize = 'fontSize2Xl';
|
|
103
114
|
let lineHeight = 'lineHeight2Xl';
|
|
104
115
|
if (size === 'huge') {
|
|
@@ -108,7 +119,7 @@ function $2918aeb7dafaacc0$var$_DisplayText({ children: children , size: size =
|
|
|
108
119
|
fontSize = 'fontSize3Xl';
|
|
109
120
|
lineHeight = 'lineHeight3Xl';
|
|
110
121
|
}
|
|
111
|
-
return(/*#__PURE__*/ $
|
|
122
|
+
return(/*#__PURE__*/ $5fdCT$reactjsxruntime.jsx($dd9fe96501c8d4c8$export$5f1af8db9871e1d6, {
|
|
112
123
|
as: $2918aeb7dafaacc0$var$DISPLAY_TEXT_DEFAULT_TAG,
|
|
113
124
|
testId: testId,
|
|
114
125
|
marginBottom: size === 'default' ? 'spacingL' : 'spacingXl',
|
|
@@ -117,10 +128,12 @@ function $2918aeb7dafaacc0$var$_DisplayText({ children: children , size: size =
|
|
|
117
128
|
fontColor: "gray900",
|
|
118
129
|
fontWeight: "fontWeightDemiBold",
|
|
119
130
|
...otherProps,
|
|
120
|
-
ref: ref
|
|
121
|
-
|
|
131
|
+
ref: ref,
|
|
132
|
+
children: children
|
|
133
|
+
}));
|
|
122
134
|
}
|
|
123
|
-
const $2918aeb7dafaacc0$export$60374ee25b7d5e87 = /*#__PURE__*/ $parcel$interopDefault($5fdCT$react).forwardRef($2918aeb7dafaacc0$var$_DisplayText);
|
|
135
|
+
const $2918aeb7dafaacc0$export$60374ee25b7d5e87 = /*#__PURE__*/ ($parcel$interopDefault($5fdCT$react)).forwardRef($2918aeb7dafaacc0$var$_DisplayText);
|
|
136
|
+
|
|
124
137
|
|
|
125
138
|
|
|
126
139
|
|
|
@@ -130,7 +143,7 @@ const $2918aeb7dafaacc0$export$60374ee25b7d5e87 = /*#__PURE__*/ $parcel$interopD
|
|
|
130
143
|
|
|
131
144
|
const $6b033735b9eed406$var$SECTION_HEADING_DEFAULT_TAG = 'h2';
|
|
132
145
|
function $6b033735b9eed406$var$_SectionHeading({ children: children , className: className , testId: testId = 'cf-ui-section-heading' , ...otherProps }, ref) {
|
|
133
|
-
return(/*#__PURE__*/ $
|
|
146
|
+
return(/*#__PURE__*/ $5fdCT$reactjsxruntime.jsx($dd9fe96501c8d4c8$export$5f1af8db9871e1d6, {
|
|
134
147
|
as: $6b033735b9eed406$var$SECTION_HEADING_DEFAULT_TAG,
|
|
135
148
|
testId: testId,
|
|
136
149
|
marginBottom: "spacingL",
|
|
@@ -139,27 +152,30 @@ function $6b033735b9eed406$var$_SectionHeading({ children: children , className:
|
|
|
139
152
|
fontSize: "fontSizeS",
|
|
140
153
|
lineHeight: "lineHeightS",
|
|
141
154
|
className: $5fdCT$emotion.cx(/*#__PURE__*/ $5fdCT$emotion.css({
|
|
142
|
-
letterSpacing: $parcel$interopDefault($5fdCT$contentfulf36tokens).letterSpacingWide,
|
|
155
|
+
letterSpacing: ($parcel$interopDefault($5fdCT$contentfulf36tokens)).letterSpacingWide,
|
|
143
156
|
textTransform: 'uppercase'
|
|
144
157
|
}), className),
|
|
145
158
|
...otherProps,
|
|
146
|
-
ref: ref
|
|
147
|
-
|
|
159
|
+
ref: ref,
|
|
160
|
+
children: children
|
|
161
|
+
}));
|
|
148
162
|
}
|
|
149
|
-
const $6b033735b9eed406$export$72d7ca7a5d1d4807 = /*#__PURE__*/ $parcel$interopDefault($5fdCT$react).forwardRef($6b033735b9eed406$var$_SectionHeading);
|
|
163
|
+
const $6b033735b9eed406$export$72d7ca7a5d1d4807 = /*#__PURE__*/ ($parcel$interopDefault($5fdCT$react)).forwardRef($6b033735b9eed406$var$_SectionHeading);
|
|
164
|
+
|
|
150
165
|
|
|
151
166
|
|
|
152
167
|
|
|
153
168
|
|
|
154
|
-
const $4236a7ca048922f6$export$358a232cca1ab2ac = /*#__PURE__*/ $parcel$interopDefault($5fdCT$react).forwardRef(({ children: children , testId: testId = 'cf-ui-paragraph' , ...otherProps }, ref)=>{
|
|
155
|
-
return(/*#__PURE__*/ $
|
|
169
|
+
const $4236a7ca048922f6$export$358a232cca1ab2ac = /*#__PURE__*/ ($parcel$interopDefault($5fdCT$react)).forwardRef(({ children: children , testId: testId = 'cf-ui-paragraph' , ...otherProps }, ref)=>{
|
|
170
|
+
return(/*#__PURE__*/ $5fdCT$reactjsxruntime.jsx($dd9fe96501c8d4c8$export$5f1af8db9871e1d6, {
|
|
156
171
|
as: "p",
|
|
157
172
|
testId: testId,
|
|
158
173
|
marginBottom: "spacingM",
|
|
159
174
|
lineHeight: "lineHeightM",
|
|
160
175
|
...otherProps,
|
|
161
|
-
ref: ref
|
|
162
|
-
|
|
176
|
+
ref: ref,
|
|
177
|
+
children: children
|
|
178
|
+
}));
|
|
163
179
|
});
|
|
164
180
|
$4236a7ca048922f6$export$358a232cca1ab2ac.displayName = 'Paragraph';
|
|
165
181
|
|
package/dist/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AE2BA,KAAA,CAAM+C,sCAAgB,GAAG,CAAzB;SAESC,oCAAT,GAA0B,CAA1B;IACE,MAAA,CAAA,EAAO,AAAP,SAAO,AAAP,EAAO,CAAA,kBAAP,CAAA,CAAA;QAAO,IAAA,EAAA,CAAA;QAAA,MAAA,EAAA,CAAA;IAAA,CAAA;AAKR,CAAA;SAMQC,2BAAK,CACZ,CADF,WAEIP,QAAQ,GAAG,CADb,wBAEEE,SAAS,GAAG,CAFd,gCAGEC,UAAU,GAAG,CAHf,+BAIEC,SAAS,GAAG,CAJd,uBAKEH,UAAU,GAAG,CALf,yBAMEpB,QANF,gBAOEE,WAPF,OAQEH,EARF,cASE4B,SATF,WAUEC,MAAM,GAAG,CAVX,WAWKrB,UAAH,CACU,CAbd,EAcEC,GAdF,EAeE,CAdA;IAeA,KAAA,CAAMqB,OAAO,GAAsB9B,EAAE,IAAIyB,sCAAzC;IAEA,MAAA,kEACG,4BAAD;WACMjB,UAAJ;QACA,EAAA,EAAIsB,OAAD;QACH,SAAA,EAAW,iBAAA,CAAA,EACT,AADS,SACT,AADS,EACT,CAAA,kBAAA,CAAI,CALV;YAMQC,OAAO,EAAE,CADP;YAEFC,UAAU,EAAEpB,kDAAM,CAACU,SAAD;YAClBC,UAAU,EAAEX,kDAAM,CAAC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AAG,CAApC;SAWSE,qCAAe,CAGtB,CAHF,WAII9C,QADF,cAEE2B,SAFF,WAGErB,MAAM,GAAG,CAHX,4BAIKC,UAAH,CACoB,CARxB,EASEC,GATF,EAUE,CAPA;IAQA,MAAA,kEACG,yCAAD;QACE,EAAA,EAAIoC,iDAAD;QACH,MAAA,EAAQtC,MAAD;QACP,YAAA,EAAa,CAHf;QAIE,UAAA,EAAW,CAJb;QAKE,SAAA,EAAU,CALZ;QAME,QAAA,EAAS,CANX;QAOE,UAAA,EAAW,CAPb;QAQE,SAAA,EAAW,iBAAA,CAAA,EACT,AADS,SACT,AADS,EACT,CAAA,kBAAA,CAAI,CAVV;YAWQyC,aAAa,EAAEpC,kDAAM,CAACqC,iBADpB;YAEFC,aAAa,EAAE,CAAfA;QAFE,CAAJ,GAIAtB,SALS;WAOPpB,UAAJ;QACA,GAAA,EAAKC,GAAD;OAEHR,QAAD;AAGL,CAAA;AAEM,KAAA,CAAMd,yCAAc,iBAGvBM,oCAAK,CAACkB,UAAN,CAAiBoC,qCAAjB;;;;;AC7CG,KAAA,CAAM1D,yCAAS,iBAAGI,oCAAK,CAACkB,UAAU,EACtC,CADH,WACKV,QAAF,WAAYM,MAAM,GAAG,CAArB,sBAA2CC,UAAH,CAAxC,CAAD,EAA0DC,GAA1D,GAAkE,CAAjE;IACC,MAAA,kEACG,yCAAD;QACE,EAAA,EAAG,CADL;QAEE,MAAA,EAAQF,MAAD;QACP,YAAA,EAAa,CAHf;QAIE,UAAA,EAAW,CAJb;WAKMC,UAAJ;QACA,GAAA,EAAKC,GAAD;OAEHR,QAAD;AAGL,CAdsB;AAiBzBZ,yCAAS,CAACiE,WAAV,GAAwB,CAAxB;;","sources":["packages/components/typography/src/index.ts","packages/components/typography/src/Heading.tsx","packages/components/typography/src/Text.tsx","packages/components/typography/src/Subheading.tsx","packages/components/typography/src/Typography.tsx","packages/components/typography/src/DisplayText.tsx","packages/components/typography/src/SectionHeading.tsx","packages/components/typography/src/Paragraph.tsx"],"sourcesContent":["export { Heading } from './Heading';\nexport type { HeadingProps, HeadingElement } from './Heading';\nexport { Subheading } from './Subheading';\nexport type { SubheadingProps } from './Subheading';\nexport { Typography } from './Typography';\nexport type { TypographyProps } from './Typography';\nexport { DisplayText } from './DisplayText';\nexport type { DisplayTextProps } from './DisplayText';\nexport { SectionHeading } from './SectionHeading';\nexport type { SectionHeadingProps } from './SectionHeading';\nexport { Paragraph } from './Paragraph';\nexport type { ParagraphProps } from './Paragraph';\nexport { Text } from './Text';\nexport type { TextProps } from './Text';\n","import React from 'react';\nimport {\n CommonProps,\n MarginProps,\n PolymorphicComponent,\n PolymorphicProps,\n} from '@contentful/f36-core';\nimport { Text } from './Text';\n\nconst HEADING_DEFAULT_TAG = 'h1';\n\nexport type HeadingElement = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';\n\nexport interface HeadingInternalProps extends CommonProps, MarginProps {\n as?: HeadingElement;\n children?: React.ReactNode;\n isTruncated?: boolean;\n}\n\nexport type HeadingProps<\n E extends React.ElementType = typeof HEADING_DEFAULT_TAG\n> = PolymorphicProps<HeadingInternalProps, E>;\n\nfunction _Heading<E extends React.ElementType = typeof HEADING_DEFAULT_TAG>(\n { children, testId = 'cf-ui-heading', ...otherProps }: HeadingProps<E>,\n ref: React.Ref<any>,\n) {\n return (\n <Text\n as={HEADING_DEFAULT_TAG}\n testId={testId}\n marginBottom=\"spacingM\"\n fontWeight=\"fontWeightDemiBold\"\n fontColor=\"gray900\"\n fontSize=\"fontSizeXl\"\n lineHeight=\"lineHeightXl\"\n {...otherProps}\n ref={ref}\n >\n {children}\n </Text>\n );\n}\n\nexport const Heading: PolymorphicComponent<\n HeadingInternalProps,\n typeof HEADING_DEFAULT_TAG\n> = React.forwardRef(_Heading);\n","import React from 'react';\nimport tokens, {\n FontSizeTokens,\n LineHeightTokens,\n FontWeightTokens,\n FontStackTokens,\n ColorTokens,\n} from '@contentful/f36-tokens';\nimport { css, cx } from 'emotion';\nimport {\n PolymorphicComponent,\n CommonProps,\n MarginProps,\n PolymorphicProps,\n Box,\n} from '@contentful/f36-core';\n\nexport interface TextInternalProps extends CommonProps, MarginProps {\n children?: React.ReactNode;\n fontSize?: FontSizeTokens;\n lineHeight?: LineHeightTokens;\n fontStack?: FontStackTokens;\n fontWeight?: FontWeightTokens;\n fontColor?: ColorTokens;\n isTruncated?: boolean;\n}\n\nconst TEXT_DEFAULT_TAG = 'span';\n\nfunction truncatedStyle() {\n return css({\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n });\n}\n\nexport type TextProps<\n E extends React.ElementType = typeof TEXT_DEFAULT_TAG\n> = PolymorphicProps<TextInternalProps, E>;\n\nfunction _Text<E extends React.ElementType = typeof TEXT_DEFAULT_TAG>(\n {\n fontSize = 'fontSizeM',\n fontStack = 'fontStackPrimary',\n fontWeight = 'fontWeightNormal',\n fontColor = 'gray800',\n lineHeight = 'lineHeightM',\n children,\n isTruncated,\n as,\n className,\n margin = 'none',\n ...otherProps\n }: TextProps<E>,\n ref: React.Ref<any>,\n) {\n const Element: React.ElementType = as || TEXT_DEFAULT_TAG;\n\n return (\n <Box\n {...otherProps}\n as={Element}\n className={cx(\n css({\n padding: 0,\n fontFamily: tokens[fontStack],\n fontWeight: tokens[fontWeight],\n color: tokens[fontColor],\n fontSize: tokens[fontSize],\n lineHeight: tokens[lineHeight],\n }),\n isTruncated ? truncatedStyle() : null,\n className,\n )}\n margin={margin}\n ref={ref}\n >\n {children}\n </Box>\n );\n}\n\nexport const Text: PolymorphicComponent<\n TextInternalProps,\n typeof TEXT_DEFAULT_TAG\n> = React.forwardRef(_Text);\n","import React from 'react';\nimport {\n CommonProps,\n MarginProps,\n PolymorphicComponent,\n PolymorphicProps,\n} from '@contentful/f36-core';\nimport type { HeadingElement } from './Heading';\nimport { Text } from './Text';\n\nconst SUBHEADING_DEFAULT_TAG = 'h3';\n\nexport interface SubheadingInternalProps extends CommonProps, MarginProps {\n as?: HeadingElement;\n isTruncated?: boolean;\n}\n\nexport type SubheadingProps<\n E extends React.ElementType = typeof SUBHEADING_DEFAULT_TAG\n> = PolymorphicProps<SubheadingInternalProps, E>;\n\nfunction _Subheading<\n E extends React.ElementType = typeof SUBHEADING_DEFAULT_TAG\n>(\n { children, testId = 'cf-ui-subheading', ...otherProps }: SubheadingProps<E>,\n ref: React.Ref<any>,\n) {\n return (\n <Text\n as={SUBHEADING_DEFAULT_TAG}\n testId={testId}\n marginBottom=\"spacingM\"\n fontSize=\"fontSizeL\"\n lineHeight=\"lineHeightL\"\n fontWeight=\"fontWeightDemiBold\"\n fontColor=\"gray900\"\n {...otherProps}\n ref={ref}\n >\n {children}\n </Text>\n );\n}\n\nexport const Subheading: PolymorphicComponent<\n SubheadingInternalProps,\n typeof SUBHEADING_DEFAULT_TAG\n> = React.forwardRef(_Subheading);\n","import React, { useEffect } from 'react';\n\nexport interface TypographyProps {\n children?: React.ReactNode;\n}\n\n/**\n * @deprecated\n */\nexport function Typography(props: TypographyProps) {\n useEffect(() => {\n console.warn(\n 'Forma 36: Typography component is deprecated. You can safely remove it from your components.',\n );\n }, []);\n return <>{props.children}</>;\n}\n","import React from 'react';\nimport { FontSizeTokens, LineHeightTokens } from '@contentful/f36-tokens';\nimport {\n CommonProps,\n MarginProps,\n PolymorphicComponent,\n PolymorphicProps,\n} from '@contentful/f36-core';\nimport { Text } from './Text';\nimport type { HeadingElement } from './Heading';\n\nconst DISPLAY_TEXT_DEFAULT_TAG = 'h2';\n\nexport interface DisplayTextInternalProps extends CommonProps, MarginProps {\n size?: 'default' | 'large' | 'huge';\n as?: HeadingElement;\n isTruncated?: boolean;\n}\n\nexport type DisplayTextProps<\n E extends React.ElementType = typeof DISPLAY_TEXT_DEFAULT_TAG\n> = PolymorphicProps<DisplayTextInternalProps, E>;\n\nfunction _DisplayText<\n E extends React.ElementType = typeof DISPLAY_TEXT_DEFAULT_TAG\n>(\n {\n children,\n size = 'default',\n testId = 'cf-ui-display-text',\n as,\n ...otherProps\n }: DisplayTextProps<E>,\n ref: React.Ref<any>,\n) {\n let fontSize: FontSizeTokens = 'fontSize2Xl';\n let lineHeight: LineHeightTokens = 'lineHeight2Xl';\n\n if (size === 'huge') {\n fontSize = 'fontSize4Xl';\n lineHeight = 'lineHeight4Xl';\n } else if (size === 'large') {\n fontSize = 'fontSize3Xl';\n lineHeight = 'lineHeight3Xl';\n }\n\n return (\n <Text\n as={DISPLAY_TEXT_DEFAULT_TAG}\n testId={testId}\n marginBottom={size === 'default' ? 'spacingL' : 'spacingXl'}\n fontSize={fontSize}\n lineHeight={lineHeight}\n fontColor=\"gray900\"\n fontWeight=\"fontWeightDemiBold\"\n {...otherProps}\n ref={ref}\n >\n {children}\n </Text>\n );\n}\n\nexport const DisplayText: PolymorphicComponent<\n DisplayTextInternalProps,\n typeof DISPLAY_TEXT_DEFAULT_TAG\n> = React.forwardRef(_DisplayText);\n","import React from 'react';\nimport tokens from '@contentful/f36-tokens';\nimport { css, cx } from 'emotion';\nimport {\n CommonProps,\n MarginProps,\n PolymorphicComponent,\n PolymorphicProps,\n} from '@contentful/f36-core';\nimport type { HeadingElement } from './Heading';\nimport { Text } from './Text';\n\nconst SECTION_HEADING_DEFAULT_TAG = 'h2';\n\nexport interface SectionHeadingInternalProps extends CommonProps, MarginProps {\n as?: HeadingElement;\n isTruncated?: boolean;\n}\n\nexport type SectionHeadingProps<\n E extends React.ElementType = typeof SECTION_HEADING_DEFAULT_TAG\n> = PolymorphicProps<SectionHeadingInternalProps, E>;\n\nfunction _SectionHeading<\n E extends React.ElementType = typeof SECTION_HEADING_DEFAULT_TAG\n>(\n {\n children,\n className,\n testId = 'cf-ui-section-heading',\n ...otherProps\n }: SectionHeadingProps<E>,\n ref: React.Ref<any>,\n) {\n return (\n <Text\n as={SECTION_HEADING_DEFAULT_TAG}\n testId={testId}\n marginBottom=\"spacingL\"\n fontWeight=\"fontWeightDemiBold\"\n fontColor=\"gray900\"\n fontSize=\"fontSizeS\"\n lineHeight=\"lineHeightS\"\n className={cx(\n css({\n letterSpacing: tokens.letterSpacingWide,\n textTransform: 'uppercase',\n }),\n className,\n )}\n {...otherProps}\n ref={ref}\n >\n {children}\n </Text>\n );\n}\n\nexport const SectionHeading: PolymorphicComponent<\n SectionHeadingInternalProps,\n typeof SECTION_HEADING_DEFAULT_TAG\n> = React.forwardRef(_SectionHeading);\n","import React from 'react';\nimport {\n PropsWithHTMLElement,\n CommonProps,\n MarginProps,\n} from '@contentful/f36-core';\nimport { Text } from './Text';\n\nexport type ParagraphInternalProps = CommonProps &\n MarginProps & {\n children: React.ReactNode;\n isTruncated?: boolean;\n };\n\nexport type ParagraphProps = PropsWithHTMLElement<ParagraphInternalProps, 'p'>;\n\nexport const Paragraph = React.forwardRef<HTMLParagraphElement, ParagraphProps>(\n ({ children, testId = 'cf-ui-paragraph', ...otherProps }, ref) => {\n return (\n <Text\n as=\"p\"\n testId={testId}\n marginBottom=\"spacingM\"\n lineHeight=\"lineHeightM\"\n {...otherProps}\n ref={ref}\n >\n {children}\n </Text>\n );\n },\n);\n\nParagraph.displayName = 'Paragraph';\n"],"names":["Heading","HeadingProps","HeadingElement","Subheading","SubheadingProps","Typography","TypographyProps","DisplayText","DisplayTextProps","SectionHeading","SectionHeadingProps","Paragraph","ParagraphProps","Text","TextProps","React","CommonProps","MarginProps","PolymorphicComponent","PolymorphicProps","HEADING_DEFAULT_TAG","HeadingInternalProps","as","children","ReactNode","isTruncated","ElementType","E","_Heading","testId","otherProps","ref","Ref","forwardRef","tokens","FontSizeTokens","LineHeightTokens","FontWeightTokens","FontStackTokens","ColorTokens","Box","TextInternalProps","fontSize","lineHeight","fontStack","fontWeight","fontColor","TEXT_DEFAULT_TAG","truncatedStyle","_Text","className","margin","Element","padding","fontFamily","color","SUBHEADING_DEFAULT_TAG","SubheadingInternalProps","_Subheading","useEffect","props","console","warn","DISPLAY_TEXT_DEFAULT_TAG","DisplayTextInternalProps","size","_DisplayText","SECTION_HEADING_DEFAULT_TAG","SectionHeadingInternalProps","_SectionHeading","letterSpacing","letterSpacingWide","textTransform","PropsWithHTMLElement","ParagraphInternalProps","HTMLParagraphElement","displayName"],"version":3,"file":"main.js.map"}
|
|
1
|
+
{"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AE4BA,KAAA,CAAMgD,sCAAgB,GAAG,CAAzB;SAESC,oCAAT,GAA0B,CAA1B;IACE,MAAA,CAAA,EAAO,AAAP,SAAO,AAAP,EAAO,CAAA,kBAAP,CAAA,CAAA;QAAO,IAAA,EAAA,CAAA;QAAA,MAAA,EAAA,CAAA;IAAA,CAAA;AAKR,CAAA;SAMQC,2BAAK,CACZ,CADF,WAEIP,QAAQ,GAAG,CADb,wBAEEE,SAAS,GAAG,CAFd,gCAGEC,UAAU,GAAG,CAHf,+BAIEC,SAAS,GAAG,CAJd,uBAKEH,UAAU,GAAG,CALf,yBAMEpB,QANF,gBAOEE,WAPF,OAQEH,EARF,cASE4B,SATF,WAUEC,MAAM,GAAG,CAVX,WAWKrB,UAAH,CACU,CAbd,EAcEC,GAdF,EAeE,CAdA;IAeA,KAAA,CAAMqB,OAAO,GAAsB9B,EAAE,IAAIyB,sCAAzC;IAEA,MAAA,0CACG,4BAAD;WACMjB,UAAJ;QACA,EAAA,EAAIsB,OAAD;QACH,SAAA,EAAW,iBAAA,CAAA,EACT,AADS,SACT,AADS,EACT,CAAA,kBAAA,CAAI,CALV;YAMQC,OAAO,EAAE,CADP;YAEFC,UAAU,EAAEpB,oDAAM,CAACU,SAAD;YAClBC,UAAU,EAAEX,oDAAM,CAACW,UAAD;YAClBU,KAAK,EAAErB,oDAAM,CAACY,SAAD;YACbJ,QAAQ,EAAER,oDAAM,CAACQ,QAAD;YAChBC,UAAU,EAAET,oDAAM,CAACS,UAAD;QANhB,CAAJ,GAQAlB,WAAW,GAAGuB,oCAAc,KAAK,IATxB,EAUTE,SAVS;QAYX,MAAA,EAAQC,MAAD;QACP,GAAA,EAAKpB,GAAD;kBAEHR,QAAD;;AAGL,C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,SAAA,EAAU,CALZ;QAME,QAAA,EAAS,CANX;QAOE,UAAA,EAAW,CAPb;QAQE,SAAA,EAAW,iBAAA,CAAA,EACT,AADS,SACT,AADS,EACT,CAAA,kBAAA,CAAI,CAVV;YAWQyC,aAAa,EAAEpC,oDAAM,CAACqC,iBADpB;YAEFC,aAAa,EAAE,CAAfA;QAFE,CAAJ,GAIAtB,SALS;WAOPpB,UAAJ;QACA,GAAA,EAAKC,GAAD;kBAEHR,QAAD;;AAGL,CAAA;AAEM,KAAA,CAAMf,yCAAc,iBAGvBM,sCAAK,CAACmB,UAAN,CAAiBoC,qCAAjB;;;;;;AC7CG,KAAA,CAAM3D,yCAAS,iBAAGI,sCAAK,CAACmB,UAAU,EAGtC,CAHH,WAGKV,QAAF,WAAYM,MAAM,GAAG,CAArB,sBAA2CC,UAAH,CAAxC,CAAD,EAA0DC,GAA1D,GAAkE,CAAjE;IACD,MAAA,0CACG,yCAAD;QACE,EAAA,EAAG,CADL;QAEE,MAAA,EAAQF,MAAD;QACP,YAAA,EAAa,CAHf;QAIE,UAAA,EAAW,CAJb;WAKMC,UAAJ;QACA,GAAA,EAAKC,GAAD;kBAEHR,QAAD;;AAGL,CAhBwB;AAkBzBb,yCAAS,CAACkE,WAAV,GAAwB,CAAxB;;","sources":["packages/components/typography/src/index.ts","packages/components/typography/src/Heading.tsx","packages/components/typography/src/Text.tsx","packages/components/typography/src/Subheading.tsx","packages/components/typography/src/Typography.tsx","packages/components/typography/src/DisplayText.tsx","packages/components/typography/src/SectionHeading.tsx","packages/components/typography/src/Paragraph.tsx"],"sourcesContent":["export { Heading } from './Heading';\nexport type { HeadingProps, HeadingElement } from './Heading';\nexport { Subheading } from './Subheading';\nexport type { SubheadingProps } from './Subheading';\nexport { Typography } from './Typography';\nexport type { TypographyProps } from './Typography';\nexport { DisplayText } from './DisplayText';\nexport type { DisplayTextProps } from './DisplayText';\nexport { SectionHeading } from './SectionHeading';\nexport type { SectionHeadingProps } from './SectionHeading';\nexport { Paragraph } from './Paragraph';\nexport type { ParagraphProps } from './Paragraph';\nexport { Text } from './Text';\nexport type { TextProps } from './Text';\n","import React from 'react';\nimport {\n CommonProps,\n MarginProps,\n PolymorphicComponent,\n PolymorphicProps,\n ExpandProps,\n} from '@contentful/f36-core';\nimport { Text } from './Text';\n\nconst HEADING_DEFAULT_TAG = 'h1';\n\nexport type HeadingElement = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';\n\nexport interface HeadingInternalProps extends CommonProps, MarginProps {\n as?: HeadingElement;\n children?: React.ReactNode;\n isTruncated?: boolean;\n}\n\nexport type HeadingProps<\n E extends React.ElementType = typeof HEADING_DEFAULT_TAG\n> = PolymorphicProps<HeadingInternalProps, E>;\n\nfunction _Heading<E extends React.ElementType = typeof HEADING_DEFAULT_TAG>(\n { children, testId = 'cf-ui-heading', ...otherProps }: HeadingProps<E>,\n ref: React.Ref<any>,\n) {\n return (\n <Text\n as={HEADING_DEFAULT_TAG}\n testId={testId}\n marginBottom=\"spacingM\"\n fontWeight=\"fontWeightDemiBold\"\n fontColor=\"gray900\"\n fontSize=\"fontSizeXl\"\n lineHeight=\"lineHeightXl\"\n {...otherProps}\n ref={ref}\n >\n {children}\n </Text>\n );\n}\n\nexport const Heading: PolymorphicComponent<\n ExpandProps<HeadingInternalProps>,\n typeof HEADING_DEFAULT_TAG\n> = React.forwardRef(_Heading);\n","import React from 'react';\nimport tokens, {\n FontSizeTokens,\n LineHeightTokens,\n FontWeightTokens,\n FontStackTokens,\n ColorTokens,\n} from '@contentful/f36-tokens';\nimport { css, cx } from 'emotion';\nimport {\n PolymorphicComponent,\n CommonProps,\n MarginProps,\n PolymorphicProps,\n Box,\n ExpandProps,\n} from '@contentful/f36-core';\n\nexport interface TextInternalProps extends CommonProps, MarginProps {\n children?: React.ReactNode;\n fontSize?: FontSizeTokens;\n lineHeight?: LineHeightTokens;\n fontStack?: FontStackTokens;\n fontWeight?: FontWeightTokens;\n fontColor?: ColorTokens;\n isTruncated?: boolean;\n}\n\nconst TEXT_DEFAULT_TAG = 'span';\n\nfunction truncatedStyle() {\n return css({\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n });\n}\n\nexport type TextProps<\n E extends React.ElementType = typeof TEXT_DEFAULT_TAG\n> = PolymorphicProps<TextInternalProps, E>;\n\nfunction _Text<E extends React.ElementType = typeof TEXT_DEFAULT_TAG>(\n {\n fontSize = 'fontSizeM',\n fontStack = 'fontStackPrimary',\n fontWeight = 'fontWeightNormal',\n fontColor = 'gray800',\n lineHeight = 'lineHeightM',\n children,\n isTruncated,\n as,\n className,\n margin = 'none',\n ...otherProps\n }: TextProps<E>,\n ref: React.Ref<any>,\n) {\n const Element: React.ElementType = as || TEXT_DEFAULT_TAG;\n\n return (\n <Box\n {...otherProps}\n as={Element}\n className={cx(\n css({\n padding: 0,\n fontFamily: tokens[fontStack],\n fontWeight: tokens[fontWeight],\n color: tokens[fontColor],\n fontSize: tokens[fontSize],\n lineHeight: tokens[lineHeight],\n }),\n isTruncated ? truncatedStyle() : null,\n className,\n )}\n margin={margin}\n ref={ref}\n >\n {children}\n </Box>\n );\n}\n\nexport const Text: PolymorphicComponent<\n ExpandProps<TextInternalProps>,\n typeof TEXT_DEFAULT_TAG\n> = React.forwardRef(_Text);\n","import React from 'react';\nimport {\n CommonProps,\n MarginProps,\n PolymorphicComponent,\n PolymorphicProps,\n ExpandProps,\n} from '@contentful/f36-core';\nimport type { HeadingElement } from './Heading';\nimport { Text } from './Text';\n\nconst SUBHEADING_DEFAULT_TAG = 'h3';\n\nexport interface SubheadingInternalProps extends CommonProps, MarginProps {\n as?: HeadingElement;\n isTruncated?: boolean;\n}\n\nexport type SubheadingProps<\n E extends React.ElementType = typeof SUBHEADING_DEFAULT_TAG\n> = PolymorphicProps<SubheadingInternalProps, E>;\n\nfunction _Subheading<\n E extends React.ElementType = typeof SUBHEADING_DEFAULT_TAG\n>(\n { children, testId = 'cf-ui-subheading', ...otherProps }: SubheadingProps<E>,\n ref: React.Ref<any>,\n) {\n return (\n <Text\n as={SUBHEADING_DEFAULT_TAG}\n testId={testId}\n marginBottom=\"spacingM\"\n fontSize=\"fontSizeL\"\n lineHeight=\"lineHeightL\"\n fontWeight=\"fontWeightDemiBold\"\n fontColor=\"gray900\"\n {...otherProps}\n ref={ref}\n >\n {children}\n </Text>\n );\n}\n\nexport const Subheading: PolymorphicComponent<\n ExpandProps<SubheadingInternalProps>,\n typeof SUBHEADING_DEFAULT_TAG\n> = React.forwardRef(_Subheading);\n","import React, { useEffect } from 'react';\n\nexport interface TypographyProps {\n children?: React.ReactNode;\n}\n\n/**\n * @deprecated\n */\nexport function Typography(props: TypographyProps) {\n useEffect(() => {\n console.warn(\n 'Forma 36: Typography component is deprecated. You can safely remove it from your components.',\n );\n }, []);\n return <>{props.children}</>;\n}\n","import React from 'react';\nimport { FontSizeTokens, LineHeightTokens } from '@contentful/f36-tokens';\nimport {\n CommonProps,\n MarginProps,\n PolymorphicComponent,\n PolymorphicProps,\n ExpandProps,\n} from '@contentful/f36-core';\nimport { Text } from './Text';\nimport type { HeadingElement } from './Heading';\n\nconst DISPLAY_TEXT_DEFAULT_TAG = 'h2';\n\nexport interface DisplayTextInternalProps extends CommonProps, MarginProps {\n size?: 'default' | 'large' | 'huge';\n as?: HeadingElement;\n isTruncated?: boolean;\n}\n\nexport type DisplayTextProps<\n E extends React.ElementType = typeof DISPLAY_TEXT_DEFAULT_TAG\n> = PolymorphicProps<DisplayTextInternalProps, E>;\n\nfunction _DisplayText<\n E extends React.ElementType = typeof DISPLAY_TEXT_DEFAULT_TAG\n>(\n {\n children,\n size = 'default',\n testId = 'cf-ui-display-text',\n ...otherProps\n }: DisplayTextProps<E>,\n ref: React.Ref<any>,\n) {\n let fontSize: FontSizeTokens = 'fontSize2Xl';\n let lineHeight: LineHeightTokens = 'lineHeight2Xl';\n\n if (size === 'huge') {\n fontSize = 'fontSize4Xl';\n lineHeight = 'lineHeight4Xl';\n } else if (size === 'large') {\n fontSize = 'fontSize3Xl';\n lineHeight = 'lineHeight3Xl';\n }\n\n return (\n <Text\n as={DISPLAY_TEXT_DEFAULT_TAG}\n testId={testId}\n marginBottom={size === 'default' ? 'spacingL' : 'spacingXl'}\n fontSize={fontSize}\n lineHeight={lineHeight}\n fontColor=\"gray900\"\n fontWeight=\"fontWeightDemiBold\"\n {...otherProps}\n ref={ref}\n >\n {children}\n </Text>\n );\n}\n\nexport const DisplayText: PolymorphicComponent<\n ExpandProps<DisplayTextInternalProps>,\n typeof DISPLAY_TEXT_DEFAULT_TAG\n> = React.forwardRef(_DisplayText);\n","import React from 'react';\nimport tokens from '@contentful/f36-tokens';\nimport { css, cx } from 'emotion';\nimport {\n CommonProps,\n MarginProps,\n PolymorphicComponent,\n PolymorphicProps,\n ExpandProps,\n} from '@contentful/f36-core';\nimport type { HeadingElement } from './Heading';\nimport { Text } from './Text';\n\nconst SECTION_HEADING_DEFAULT_TAG = 'h2';\n\nexport interface SectionHeadingInternalProps extends CommonProps, MarginProps {\n as?: HeadingElement;\n isTruncated?: boolean;\n}\n\nexport type SectionHeadingProps<\n E extends React.ElementType = typeof SECTION_HEADING_DEFAULT_TAG\n> = PolymorphicProps<SectionHeadingInternalProps, E>;\n\nfunction _SectionHeading<\n E extends React.ElementType = typeof SECTION_HEADING_DEFAULT_TAG\n>(\n {\n children,\n className,\n testId = 'cf-ui-section-heading',\n ...otherProps\n }: SectionHeadingProps<E>,\n ref: React.Ref<any>,\n) {\n return (\n <Text\n as={SECTION_HEADING_DEFAULT_TAG}\n testId={testId}\n marginBottom=\"spacingL\"\n fontWeight=\"fontWeightDemiBold\"\n fontColor=\"gray900\"\n fontSize=\"fontSizeS\"\n lineHeight=\"lineHeightS\"\n className={cx(\n css({\n letterSpacing: tokens.letterSpacingWide,\n textTransform: 'uppercase',\n }),\n className,\n )}\n {...otherProps}\n ref={ref}\n >\n {children}\n </Text>\n );\n}\n\nexport const SectionHeading: PolymorphicComponent<\n ExpandProps<SectionHeadingInternalProps>,\n typeof SECTION_HEADING_DEFAULT_TAG\n> = React.forwardRef(_SectionHeading);\n","import React from 'react';\nimport {\n PropsWithHTMLElement,\n CommonProps,\n MarginProps,\n ExpandProps,\n} from '@contentful/f36-core';\nimport { Text } from './Text';\n\nexport type ParagraphInternalProps = CommonProps &\n MarginProps & {\n children: React.ReactNode;\n isTruncated?: boolean;\n };\n\nexport type ParagraphProps = PropsWithHTMLElement<ParagraphInternalProps, 'p'>;\n\nexport const Paragraph = React.forwardRef<\n HTMLParagraphElement,\n ExpandProps<ParagraphProps>\n>(({ children, testId = 'cf-ui-paragraph', ...otherProps }, ref) => {\n return (\n <Text\n as=\"p\"\n testId={testId}\n marginBottom=\"spacingM\"\n lineHeight=\"lineHeightM\"\n {...otherProps}\n ref={ref}\n >\n {children}\n </Text>\n );\n});\n\nParagraph.displayName = 'Paragraph';\n"],"names":["Heading","HeadingProps","HeadingElement","Subheading","SubheadingProps","Typography","TypographyProps","DisplayText","DisplayTextProps","SectionHeading","SectionHeadingProps","Paragraph","ParagraphProps","Text","TextProps","React","CommonProps","MarginProps","PolymorphicComponent","PolymorphicProps","ExpandProps","HEADING_DEFAULT_TAG","HeadingInternalProps","as","children","ReactNode","isTruncated","ElementType","E","_Heading","testId","otherProps","ref","Ref","forwardRef","tokens","FontSizeTokens","LineHeightTokens","FontWeightTokens","FontStackTokens","ColorTokens","Box","TextInternalProps","fontSize","lineHeight","fontStack","fontWeight","fontColor","TEXT_DEFAULT_TAG","truncatedStyle","_Text","className","margin","Element","padding","fontFamily","color","SUBHEADING_DEFAULT_TAG","SubheadingInternalProps","_Subheading","useEffect","props","console","warn","DISPLAY_TEXT_DEFAULT_TAG","DisplayTextInternalProps","size","_DisplayText","SECTION_HEADING_DEFAULT_TAG","SectionHeadingInternalProps","_SectionHeading","letterSpacing","letterSpacingWide","textTransform","PropsWithHTMLElement","ParagraphInternalProps","HTMLParagraphElement","displayName"],"version":3,"file":"main.js.map"}
|
package/dist/module.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import {jsx as $4MbOE$jsx, Fragment as $4MbOE$Fragment} from "react/jsx-runtime";
|
|
1
2
|
import $4MbOE$react, {useEffect as $4MbOE$useEffect} from "react";
|
|
2
3
|
import {css as $4MbOE$css, cx as $4MbOE$cx} from "emotion";
|
|
3
4
|
import $4MbOE$contentfulf36tokens from "@contentful/f36-tokens";
|
|
@@ -9,6 +10,8 @@ import {Box as $4MbOE$Box} from "@contentful/f36-core";
|
|
|
9
10
|
|
|
10
11
|
|
|
11
12
|
|
|
13
|
+
|
|
14
|
+
|
|
12
15
|
const $6ed778543c9a7861$var$TEXT_DEFAULT_TAG = 'span';
|
|
13
16
|
function $6ed778543c9a7861$var$truncatedStyle() {
|
|
14
17
|
return(/*#__PURE__*/ $4MbOE$css({
|
|
@@ -18,7 +21,7 @@ function $6ed778543c9a7861$var$truncatedStyle() {
|
|
|
18
21
|
}
|
|
19
22
|
function $6ed778543c9a7861$var$_Text({ fontSize: fontSize = 'fontSizeM' , fontStack: fontStack = 'fontStackPrimary' , fontWeight: fontWeight = 'fontWeightNormal' , fontColor: fontColor = 'gray800' , lineHeight: lineHeight = 'lineHeightM' , children: children , isTruncated: isTruncated , as: as , className: className , margin: margin = 'none' , ...otherProps }, ref) {
|
|
20
23
|
const Element = as || $6ed778543c9a7861$var$TEXT_DEFAULT_TAG;
|
|
21
|
-
return(/*#__PURE__*/ $4MbOE$
|
|
24
|
+
return(/*#__PURE__*/ $4MbOE$jsx($4MbOE$Box, {
|
|
22
25
|
...otherProps,
|
|
23
26
|
as: Element,
|
|
24
27
|
className: $4MbOE$cx(/*#__PURE__*/ $4MbOE$css({
|
|
@@ -30,15 +33,16 @@ function $6ed778543c9a7861$var$_Text({ fontSize: fontSize = 'fontSizeM' , fontSt
|
|
|
30
33
|
lineHeight: $4MbOE$contentfulf36tokens[lineHeight]
|
|
31
34
|
}), isTruncated ? $6ed778543c9a7861$var$truncatedStyle() : null, className),
|
|
32
35
|
margin: margin,
|
|
33
|
-
ref: ref
|
|
34
|
-
|
|
36
|
+
ref: ref,
|
|
37
|
+
children: children
|
|
38
|
+
}));
|
|
35
39
|
}
|
|
36
40
|
const $6ed778543c9a7861$export$5f1af8db9871e1d6 = /*#__PURE__*/ $4MbOE$react.forwardRef($6ed778543c9a7861$var$_Text);
|
|
37
41
|
|
|
38
42
|
|
|
39
43
|
const $2757f13134d7f609$var$HEADING_DEFAULT_TAG = 'h1';
|
|
40
44
|
function $2757f13134d7f609$var$_Heading({ children: children , testId: testId = 'cf-ui-heading' , ...otherProps }, ref) {
|
|
41
|
-
return(/*#__PURE__*/ $4MbOE$
|
|
45
|
+
return(/*#__PURE__*/ $4MbOE$jsx($6ed778543c9a7861$export$5f1af8db9871e1d6, {
|
|
42
46
|
as: $2757f13134d7f609$var$HEADING_DEFAULT_TAG,
|
|
43
47
|
testId: testId,
|
|
44
48
|
marginBottom: "spacingM",
|
|
@@ -47,17 +51,19 @@ function $2757f13134d7f609$var$_Heading({ children: children , testId: testId =
|
|
|
47
51
|
fontSize: "fontSizeXl",
|
|
48
52
|
lineHeight: "lineHeightXl",
|
|
49
53
|
...otherProps,
|
|
50
|
-
ref: ref
|
|
51
|
-
|
|
54
|
+
ref: ref,
|
|
55
|
+
children: children
|
|
56
|
+
}));
|
|
52
57
|
}
|
|
53
58
|
const $2757f13134d7f609$export$a8a3e93435678ff9 = /*#__PURE__*/ $4MbOE$react.forwardRef($2757f13134d7f609$var$_Heading);
|
|
54
59
|
|
|
55
60
|
|
|
56
61
|
|
|
57
62
|
|
|
63
|
+
|
|
58
64
|
const $7d17967797388737$var$SUBHEADING_DEFAULT_TAG = 'h3';
|
|
59
65
|
function $7d17967797388737$var$_Subheading({ children: children , testId: testId = 'cf-ui-subheading' , ...otherProps }, ref) {
|
|
60
|
-
return(/*#__PURE__*/ $4MbOE$
|
|
66
|
+
return(/*#__PURE__*/ $4MbOE$jsx($6ed778543c9a7861$export$5f1af8db9871e1d6, {
|
|
61
67
|
as: $7d17967797388737$var$SUBHEADING_DEFAULT_TAG,
|
|
62
68
|
testId: testId,
|
|
63
69
|
marginBottom: "spacingM",
|
|
@@ -66,25 +72,30 @@ function $7d17967797388737$var$_Subheading({ children: children , testId: testId
|
|
|
66
72
|
fontWeight: "fontWeightDemiBold",
|
|
67
73
|
fontColor: "gray900",
|
|
68
74
|
...otherProps,
|
|
69
|
-
ref: ref
|
|
70
|
-
|
|
75
|
+
ref: ref,
|
|
76
|
+
children: children
|
|
77
|
+
}));
|
|
71
78
|
}
|
|
72
79
|
const $7d17967797388737$export$5404b1d39162d870 = /*#__PURE__*/ $4MbOE$react.forwardRef($7d17967797388737$var$_Subheading);
|
|
73
80
|
|
|
74
81
|
|
|
75
82
|
|
|
83
|
+
|
|
76
84
|
function $3e422817efdc58c6$export$1c6175f3aa4394b7(props) {
|
|
77
85
|
$4MbOE$useEffect(()=>{
|
|
78
86
|
console.warn('Forma 36: Typography component is deprecated. You can safely remove it from your components.');
|
|
79
87
|
}, []);
|
|
80
|
-
return(/*#__PURE__*/ $4MbOE$
|
|
88
|
+
return(/*#__PURE__*/ $4MbOE$jsx($4MbOE$Fragment, {
|
|
89
|
+
children: props.children
|
|
90
|
+
}));
|
|
81
91
|
}
|
|
82
92
|
|
|
83
93
|
|
|
84
94
|
|
|
85
95
|
|
|
96
|
+
|
|
86
97
|
const $222901889a3a3efa$var$DISPLAY_TEXT_DEFAULT_TAG = 'h2';
|
|
87
|
-
function $222901889a3a3efa$var$_DisplayText({ children: children , size: size = 'default' , testId: testId = 'cf-ui-display-text' ,
|
|
98
|
+
function $222901889a3a3efa$var$_DisplayText({ children: children , size: size = 'default' , testId: testId = 'cf-ui-display-text' , ...otherProps }, ref) {
|
|
88
99
|
let fontSize = 'fontSize2Xl';
|
|
89
100
|
let lineHeight = 'lineHeight2Xl';
|
|
90
101
|
if (size === 'huge') {
|
|
@@ -94,7 +105,7 @@ function $222901889a3a3efa$var$_DisplayText({ children: children , size: size =
|
|
|
94
105
|
fontSize = 'fontSize3Xl';
|
|
95
106
|
lineHeight = 'lineHeight3Xl';
|
|
96
107
|
}
|
|
97
|
-
return(/*#__PURE__*/ $4MbOE$
|
|
108
|
+
return(/*#__PURE__*/ $4MbOE$jsx($6ed778543c9a7861$export$5f1af8db9871e1d6, {
|
|
98
109
|
as: $222901889a3a3efa$var$DISPLAY_TEXT_DEFAULT_TAG,
|
|
99
110
|
testId: testId,
|
|
100
111
|
marginBottom: size === 'default' ? 'spacingL' : 'spacingXl',
|
|
@@ -103,8 +114,9 @@ function $222901889a3a3efa$var$_DisplayText({ children: children , size: size =
|
|
|
103
114
|
fontColor: "gray900",
|
|
104
115
|
fontWeight: "fontWeightDemiBold",
|
|
105
116
|
...otherProps,
|
|
106
|
-
ref: ref
|
|
107
|
-
|
|
117
|
+
ref: ref,
|
|
118
|
+
children: children
|
|
119
|
+
}));
|
|
108
120
|
}
|
|
109
121
|
const $222901889a3a3efa$export$60374ee25b7d5e87 = /*#__PURE__*/ $4MbOE$react.forwardRef($222901889a3a3efa$var$_DisplayText);
|
|
110
122
|
|
|
@@ -114,9 +126,10 @@ const $222901889a3a3efa$export$60374ee25b7d5e87 = /*#__PURE__*/ $4MbOE$react.for
|
|
|
114
126
|
|
|
115
127
|
|
|
116
128
|
|
|
129
|
+
|
|
117
130
|
const $7382fd5d78575daf$var$SECTION_HEADING_DEFAULT_TAG = 'h2';
|
|
118
131
|
function $7382fd5d78575daf$var$_SectionHeading({ children: children , className: className , testId: testId = 'cf-ui-section-heading' , ...otherProps }, ref) {
|
|
119
|
-
return(/*#__PURE__*/ $4MbOE$
|
|
132
|
+
return(/*#__PURE__*/ $4MbOE$jsx($6ed778543c9a7861$export$5f1af8db9871e1d6, {
|
|
120
133
|
as: $7382fd5d78575daf$var$SECTION_HEADING_DEFAULT_TAG,
|
|
121
134
|
testId: testId,
|
|
122
135
|
marginBottom: "spacingL",
|
|
@@ -129,23 +142,26 @@ function $7382fd5d78575daf$var$_SectionHeading({ children: children , className:
|
|
|
129
142
|
textTransform: 'uppercase'
|
|
130
143
|
}), className),
|
|
131
144
|
...otherProps,
|
|
132
|
-
ref: ref
|
|
133
|
-
|
|
145
|
+
ref: ref,
|
|
146
|
+
children: children
|
|
147
|
+
}));
|
|
134
148
|
}
|
|
135
149
|
const $7382fd5d78575daf$export$72d7ca7a5d1d4807 = /*#__PURE__*/ $4MbOE$react.forwardRef($7382fd5d78575daf$var$_SectionHeading);
|
|
136
150
|
|
|
137
151
|
|
|
138
152
|
|
|
139
153
|
|
|
154
|
+
|
|
140
155
|
const $8c581f9822f07d46$export$358a232cca1ab2ac = /*#__PURE__*/ $4MbOE$react.forwardRef(({ children: children , testId: testId = 'cf-ui-paragraph' , ...otherProps }, ref)=>{
|
|
141
|
-
return(/*#__PURE__*/ $4MbOE$
|
|
156
|
+
return(/*#__PURE__*/ $4MbOE$jsx($6ed778543c9a7861$export$5f1af8db9871e1d6, {
|
|
142
157
|
as: "p",
|
|
143
158
|
testId: testId,
|
|
144
159
|
marginBottom: "spacingM",
|
|
145
160
|
lineHeight: "lineHeightM",
|
|
146
161
|
...otherProps,
|
|
147
|
-
ref: ref
|
|
148
|
-
|
|
162
|
+
ref: ref,
|
|
163
|
+
children: children
|
|
164
|
+
}));
|
|
149
165
|
});
|
|
150
166
|
$8c581f9822f07d46$export$358a232cca1ab2ac.displayName = 'Paragraph';
|
|
151
167
|
|
package/dist/module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";;;;;;;;;;;AE2BA,KAAA,CAAM+C,sCAAgB,GAAG,CAAzB;SAESC,oCAAT,GAA0B,CAA1B;IACE,MAAA,CAAA,EAAO,AAAP,SAAO,AAAP,EAAO,CAAA,UAAP,CAAA,CAAA;QAAO,IAAA,EAAA,CAAA;QAAA,MAAA,EAAA,CAAA;IAAA,CAAA;AAKR,CAAA;SAMQC,2BAAK,CACZ,CADF,WAEIP,QAAQ,GAAG,CADb,wBAEEE,SAAS,GAAG,CAFd,gCAGE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AM,GAAG,CAArB,sBAA2CC,UAAH,CAAxC,CAAD,EAA0DC,GAA1D,GAAkE,CAAjE;IACC,MAAA,0CACG,yCAAD;QACE,EAAA,EAAG,CADL;QAEE,MAAA,EAAQF,MAAD;QACP,YAAA,EAAa,CAHf;QAIE,UAAA,EAAW,CAJb;WAKMC,UAAJ;QACA,GAAA,EAAKC,GAAD;OAEHR,QAAD;AAGL,CAdsB;AAiBzBZ,yCAAS,CAACiE,WAAV,GAAwB,CAAxB;;","sources":["packages/components/typography/src/index.ts","packages/components/typography/src/Heading.tsx","packages/components/typography/src/Text.tsx","packages/components/typography/src/Subheading.tsx","packages/components/typography/src/Typography.tsx","packages/components/typography/src/DisplayText.tsx","packages/components/typography/src/SectionHeading.tsx","packages/components/typography/src/Paragraph.tsx"],"sourcesContent":["export { Heading } from './Heading';\nexport type { HeadingProps, HeadingElement } from './Heading';\nexport { Subheading } from './Subheading';\nexport type { SubheadingProps } from './Subheading';\nexport { Typography } from './Typography';\nexport type { TypographyProps } from './Typography';\nexport { DisplayText } from './DisplayText';\nexport type { DisplayTextProps } from './DisplayText';\nexport { SectionHeading } from './SectionHeading';\nexport type { SectionHeadingProps } from './SectionHeading';\nexport { Paragraph } from './Paragraph';\nexport type { ParagraphProps } from './Paragraph';\nexport { Text } from './Text';\nexport type { TextProps } from './Text';\n","import React from 'react';\nimport {\n CommonProps,\n MarginProps,\n PolymorphicComponent,\n PolymorphicProps,\n} from '@contentful/f36-core';\nimport { Text } from './Text';\n\nconst HEADING_DEFAULT_TAG = 'h1';\n\nexport type HeadingElement = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';\n\nexport interface HeadingInternalProps extends CommonProps, MarginProps {\n as?: HeadingElement;\n children?: React.ReactNode;\n isTruncated?: boolean;\n}\n\nexport type HeadingProps<\n E extends React.ElementType = typeof HEADING_DEFAULT_TAG\n> = PolymorphicProps<HeadingInternalProps, E>;\n\nfunction _Heading<E extends React.ElementType = typeof HEADING_DEFAULT_TAG>(\n { children, testId = 'cf-ui-heading', ...otherProps }: HeadingProps<E>,\n ref: React.Ref<any>,\n) {\n return (\n <Text\n as={HEADING_DEFAULT_TAG}\n testId={testId}\n marginBottom=\"spacingM\"\n fontWeight=\"fontWeightDemiBold\"\n fontColor=\"gray900\"\n fontSize=\"fontSizeXl\"\n lineHeight=\"lineHeightXl\"\n {...otherProps}\n ref={ref}\n >\n {children}\n </Text>\n );\n}\n\nexport const Heading: PolymorphicComponent<\n HeadingInternalProps,\n typeof HEADING_DEFAULT_TAG\n> = React.forwardRef(_Heading);\n","import React from 'react';\nimport tokens, {\n FontSizeTokens,\n LineHeightTokens,\n FontWeightTokens,\n FontStackTokens,\n ColorTokens,\n} from '@contentful/f36-tokens';\nimport { css, cx } from 'emotion';\nimport {\n PolymorphicComponent,\n CommonProps,\n MarginProps,\n PolymorphicProps,\n Box,\n} from '@contentful/f36-core';\n\nexport interface TextInternalProps extends CommonProps, MarginProps {\n children?: React.ReactNode;\n fontSize?: FontSizeTokens;\n lineHeight?: LineHeightTokens;\n fontStack?: FontStackTokens;\n fontWeight?: FontWeightTokens;\n fontColor?: ColorTokens;\n isTruncated?: boolean;\n}\n\nconst TEXT_DEFAULT_TAG = 'span';\n\nfunction truncatedStyle() {\n return css({\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n });\n}\n\nexport type TextProps<\n E extends React.ElementType = typeof TEXT_DEFAULT_TAG\n> = PolymorphicProps<TextInternalProps, E>;\n\nfunction _Text<E extends React.ElementType = typeof TEXT_DEFAULT_TAG>(\n {\n fontSize = 'fontSizeM',\n fontStack = 'fontStackPrimary',\n fontWeight = 'fontWeightNormal',\n fontColor = 'gray800',\n lineHeight = 'lineHeightM',\n children,\n isTruncated,\n as,\n className,\n margin = 'none',\n ...otherProps\n }: TextProps<E>,\n ref: React.Ref<any>,\n) {\n const Element: React.ElementType = as || TEXT_DEFAULT_TAG;\n\n return (\n <Box\n {...otherProps}\n as={Element}\n className={cx(\n css({\n padding: 0,\n fontFamily: tokens[fontStack],\n fontWeight: tokens[fontWeight],\n color: tokens[fontColor],\n fontSize: tokens[fontSize],\n lineHeight: tokens[lineHeight],\n }),\n isTruncated ? truncatedStyle() : null,\n className,\n )}\n margin={margin}\n ref={ref}\n >\n {children}\n </Box>\n );\n}\n\nexport const Text: PolymorphicComponent<\n TextInternalProps,\n typeof TEXT_DEFAULT_TAG\n> = React.forwardRef(_Text);\n","import React from 'react';\nimport {\n CommonProps,\n MarginProps,\n PolymorphicComponent,\n PolymorphicProps,\n} from '@contentful/f36-core';\nimport type { HeadingElement } from './Heading';\nimport { Text } from './Text';\n\nconst SUBHEADING_DEFAULT_TAG = 'h3';\n\nexport interface SubheadingInternalProps extends CommonProps, MarginProps {\n as?: HeadingElement;\n isTruncated?: boolean;\n}\n\nexport type SubheadingProps<\n E extends React.ElementType = typeof SUBHEADING_DEFAULT_TAG\n> = PolymorphicProps<SubheadingInternalProps, E>;\n\nfunction _Subheading<\n E extends React.ElementType = typeof SUBHEADING_DEFAULT_TAG\n>(\n { children, testId = 'cf-ui-subheading', ...otherProps }: SubheadingProps<E>,\n ref: React.Ref<any>,\n) {\n return (\n <Text\n as={SUBHEADING_DEFAULT_TAG}\n testId={testId}\n marginBottom=\"spacingM\"\n fontSize=\"fontSizeL\"\n lineHeight=\"lineHeightL\"\n fontWeight=\"fontWeightDemiBold\"\n fontColor=\"gray900\"\n {...otherProps}\n ref={ref}\n >\n {children}\n </Text>\n );\n}\n\nexport const Subheading: PolymorphicComponent<\n SubheadingInternalProps,\n typeof SUBHEADING_DEFAULT_TAG\n> = React.forwardRef(_Subheading);\n","import React, { useEffect } from 'react';\n\nexport interface TypographyProps {\n children?: React.ReactNode;\n}\n\n/**\n * @deprecated\n */\nexport function Typography(props: TypographyProps) {\n useEffect(() => {\n console.warn(\n 'Forma 36: Typography component is deprecated. You can safely remove it from your components.',\n );\n }, []);\n return <>{props.children}</>;\n}\n","import React from 'react';\nimport { FontSizeTokens, LineHeightTokens } from '@contentful/f36-tokens';\nimport {\n CommonProps,\n MarginProps,\n PolymorphicComponent,\n PolymorphicProps,\n} from '@contentful/f36-core';\nimport { Text } from './Text';\nimport type { HeadingElement } from './Heading';\n\nconst DISPLAY_TEXT_DEFAULT_TAG = 'h2';\n\nexport interface DisplayTextInternalProps extends CommonProps, MarginProps {\n size?: 'default' | 'large' | 'huge';\n as?: HeadingElement;\n isTruncated?: boolean;\n}\n\nexport type DisplayTextProps<\n E extends React.ElementType = typeof DISPLAY_TEXT_DEFAULT_TAG\n> = PolymorphicProps<DisplayTextInternalProps, E>;\n\nfunction _DisplayText<\n E extends React.ElementType = typeof DISPLAY_TEXT_DEFAULT_TAG\n>(\n {\n children,\n size = 'default',\n testId = 'cf-ui-display-text',\n as,\n ...otherProps\n }: DisplayTextProps<E>,\n ref: React.Ref<any>,\n) {\n let fontSize: FontSizeTokens = 'fontSize2Xl';\n let lineHeight: LineHeightTokens = 'lineHeight2Xl';\n\n if (size === 'huge') {\n fontSize = 'fontSize4Xl';\n lineHeight = 'lineHeight4Xl';\n } else if (size === 'large') {\n fontSize = 'fontSize3Xl';\n lineHeight = 'lineHeight3Xl';\n }\n\n return (\n <Text\n as={DISPLAY_TEXT_DEFAULT_TAG}\n testId={testId}\n marginBottom={size === 'default' ? 'spacingL' : 'spacingXl'}\n fontSize={fontSize}\n lineHeight={lineHeight}\n fontColor=\"gray900\"\n fontWeight=\"fontWeightDemiBold\"\n {...otherProps}\n ref={ref}\n >\n {children}\n </Text>\n );\n}\n\nexport const DisplayText: PolymorphicComponent<\n DisplayTextInternalProps,\n typeof DISPLAY_TEXT_DEFAULT_TAG\n> = React.forwardRef(_DisplayText);\n","import React from 'react';\nimport tokens from '@contentful/f36-tokens';\nimport { css, cx } from 'emotion';\nimport {\n CommonProps,\n MarginProps,\n PolymorphicComponent,\n PolymorphicProps,\n} from '@contentful/f36-core';\nimport type { HeadingElement } from './Heading';\nimport { Text } from './Text';\n\nconst SECTION_HEADING_DEFAULT_TAG = 'h2';\n\nexport interface SectionHeadingInternalProps extends CommonProps, MarginProps {\n as?: HeadingElement;\n isTruncated?: boolean;\n}\n\nexport type SectionHeadingProps<\n E extends React.ElementType = typeof SECTION_HEADING_DEFAULT_TAG\n> = PolymorphicProps<SectionHeadingInternalProps, E>;\n\nfunction _SectionHeading<\n E extends React.ElementType = typeof SECTION_HEADING_DEFAULT_TAG\n>(\n {\n children,\n className,\n testId = 'cf-ui-section-heading',\n ...otherProps\n }: SectionHeadingProps<E>,\n ref: React.Ref<any>,\n) {\n return (\n <Text\n as={SECTION_HEADING_DEFAULT_TAG}\n testId={testId}\n marginBottom=\"spacingL\"\n fontWeight=\"fontWeightDemiBold\"\n fontColor=\"gray900\"\n fontSize=\"fontSizeS\"\n lineHeight=\"lineHeightS\"\n className={cx(\n css({\n letterSpacing: tokens.letterSpacingWide,\n textTransform: 'uppercase',\n }),\n className,\n )}\n {...otherProps}\n ref={ref}\n >\n {children}\n </Text>\n );\n}\n\nexport const SectionHeading: PolymorphicComponent<\n SectionHeadingInternalProps,\n typeof SECTION_HEADING_DEFAULT_TAG\n> = React.forwardRef(_SectionHeading);\n","import React from 'react';\nimport {\n PropsWithHTMLElement,\n CommonProps,\n MarginProps,\n} from '@contentful/f36-core';\nimport { Text } from './Text';\n\nexport type ParagraphInternalProps = CommonProps &\n MarginProps & {\n children: React.ReactNode;\n isTruncated?: boolean;\n };\n\nexport type ParagraphProps = PropsWithHTMLElement<ParagraphInternalProps, 'p'>;\n\nexport const Paragraph = React.forwardRef<HTMLParagraphElement, ParagraphProps>(\n ({ children, testId = 'cf-ui-paragraph', ...otherProps }, ref) => {\n return (\n <Text\n as=\"p\"\n testId={testId}\n marginBottom=\"spacingM\"\n lineHeight=\"lineHeightM\"\n {...otherProps}\n ref={ref}\n >\n {children}\n </Text>\n );\n },\n);\n\nParagraph.displayName = 'Paragraph';\n"],"names":["Heading","HeadingProps","HeadingElement","Subheading","SubheadingProps","Typography","TypographyProps","DisplayText","DisplayTextProps","SectionHeading","SectionHeadingProps","Paragraph","ParagraphProps","Text","TextProps","React","CommonProps","MarginProps","PolymorphicComponent","PolymorphicProps","HEADING_DEFAULT_TAG","HeadingInternalProps","as","children","ReactNode","isTruncated","ElementType","E","_Heading","testId","otherProps","ref","Ref","forwardRef","tokens","FontSizeTokens","LineHeightTokens","FontWeightTokens","FontStackTokens","ColorTokens","Box","TextInternalProps","fontSize","lineHeight","fontStack","fontWeight","fontColor","TEXT_DEFAULT_TAG","truncatedStyle","_Text","className","margin","Element","padding","fontFamily","color","SUBHEADING_DEFAULT_TAG","SubheadingInternalProps","_Subheading","useEffect","props","console","warn","DISPLAY_TEXT_DEFAULT_TAG","DisplayTextInternalProps","size","_DisplayText","SECTION_HEADING_DEFAULT_TAG","SectionHeadingInternalProps","_SectionHeading","letterSpacing","letterSpacingWide","textTransform","PropsWithHTMLElement","ParagraphInternalProps","HTMLParagraphElement","displayName"],"version":3,"file":"module.js.map"}
|
|
1
|
+
{"mappings":";;;;;;;;;;;;;;AE4BA,KAAA,CAAMgD,sCAAgB,GAAG,CAAzB;SAESC,oCAAT,GAA0B,CAA1B;IACE,MAAA,CAAA,EAAO,AAAP,SAAO,AAAP,EAAO,CAAA,UAAP,CAAA,CAAA;QAAO,IAAA,EAAA,CAAA;QAAA,MAAA,EAAA,CAAA;IAAA,CAAA;AAKR,CAAA;SAMQC,2BAAK,CACZ,CADF,WAEIP,QAAQ,GAAG,CADb,wBAEEE,SAAS,GAAG,CAFd,gCAGEC,UAAU,GAAG,CAHf,+BAIEC,SAAS,GAAG,CAJd,uBAKEH,UAAU,GAAG,CALf,yBAMEpB,QANF,gBAOEE,WAPF,OAQEH,EARF,cASE4B,SATF,WAUEC,MAAM,GAAG,CAVX,WAWKrB,UAAH,CACU,CAbd,EAcEC,GAdF,EAeE,CAdA;IAeA,KAAA,CAAMqB,OAAO,GAAsB9B,EAAE,IAAIyB,sCAAzC;IAEA,MAAA,0BACG,UAAD;WACMjB,UAAJ;QAC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AAwB,CAAxB;;","sources":["packages/components/typography/src/index.ts","packages/components/typography/src/Heading.tsx","packages/components/typography/src/Text.tsx","packages/components/typography/src/Subheading.tsx","packages/components/typography/src/Typography.tsx","packages/components/typography/src/DisplayText.tsx","packages/components/typography/src/SectionHeading.tsx","packages/components/typography/src/Paragraph.tsx"],"sourcesContent":["export { Heading } from './Heading';\nexport type { HeadingProps, HeadingElement } from './Heading';\nexport { Subheading } from './Subheading';\nexport type { SubheadingProps } from './Subheading';\nexport { Typography } from './Typography';\nexport type { TypographyProps } from './Typography';\nexport { DisplayText } from './DisplayText';\nexport type { DisplayTextProps } from './DisplayText';\nexport { SectionHeading } from './SectionHeading';\nexport type { SectionHeadingProps } from './SectionHeading';\nexport { Paragraph } from './Paragraph';\nexport type { ParagraphProps } from './Paragraph';\nexport { Text } from './Text';\nexport type { TextProps } from './Text';\n","import React from 'react';\nimport {\n CommonProps,\n MarginProps,\n PolymorphicComponent,\n PolymorphicProps,\n ExpandProps,\n} from '@contentful/f36-core';\nimport { Text } from './Text';\n\nconst HEADING_DEFAULT_TAG = 'h1';\n\nexport type HeadingElement = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';\n\nexport interface HeadingInternalProps extends CommonProps, MarginProps {\n as?: HeadingElement;\n children?: React.ReactNode;\n isTruncated?: boolean;\n}\n\nexport type HeadingProps<\n E extends React.ElementType = typeof HEADING_DEFAULT_TAG\n> = PolymorphicProps<HeadingInternalProps, E>;\n\nfunction _Heading<E extends React.ElementType = typeof HEADING_DEFAULT_TAG>(\n { children, testId = 'cf-ui-heading', ...otherProps }: HeadingProps<E>,\n ref: React.Ref<any>,\n) {\n return (\n <Text\n as={HEADING_DEFAULT_TAG}\n testId={testId}\n marginBottom=\"spacingM\"\n fontWeight=\"fontWeightDemiBold\"\n fontColor=\"gray900\"\n fontSize=\"fontSizeXl\"\n lineHeight=\"lineHeightXl\"\n {...otherProps}\n ref={ref}\n >\n {children}\n </Text>\n );\n}\n\nexport const Heading: PolymorphicComponent<\n ExpandProps<HeadingInternalProps>,\n typeof HEADING_DEFAULT_TAG\n> = React.forwardRef(_Heading);\n","import React from 'react';\nimport tokens, {\n FontSizeTokens,\n LineHeightTokens,\n FontWeightTokens,\n FontStackTokens,\n ColorTokens,\n} from '@contentful/f36-tokens';\nimport { css, cx } from 'emotion';\nimport {\n PolymorphicComponent,\n CommonProps,\n MarginProps,\n PolymorphicProps,\n Box,\n ExpandProps,\n} from '@contentful/f36-core';\n\nexport interface TextInternalProps extends CommonProps, MarginProps {\n children?: React.ReactNode;\n fontSize?: FontSizeTokens;\n lineHeight?: LineHeightTokens;\n fontStack?: FontStackTokens;\n fontWeight?: FontWeightTokens;\n fontColor?: ColorTokens;\n isTruncated?: boolean;\n}\n\nconst TEXT_DEFAULT_TAG = 'span';\n\nfunction truncatedStyle() {\n return css({\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n });\n}\n\nexport type TextProps<\n E extends React.ElementType = typeof TEXT_DEFAULT_TAG\n> = PolymorphicProps<TextInternalProps, E>;\n\nfunction _Text<E extends React.ElementType = typeof TEXT_DEFAULT_TAG>(\n {\n fontSize = 'fontSizeM',\n fontStack = 'fontStackPrimary',\n fontWeight = 'fontWeightNormal',\n fontColor = 'gray800',\n lineHeight = 'lineHeightM',\n children,\n isTruncated,\n as,\n className,\n margin = 'none',\n ...otherProps\n }: TextProps<E>,\n ref: React.Ref<any>,\n) {\n const Element: React.ElementType = as || TEXT_DEFAULT_TAG;\n\n return (\n <Box\n {...otherProps}\n as={Element}\n className={cx(\n css({\n padding: 0,\n fontFamily: tokens[fontStack],\n fontWeight: tokens[fontWeight],\n color: tokens[fontColor],\n fontSize: tokens[fontSize],\n lineHeight: tokens[lineHeight],\n }),\n isTruncated ? truncatedStyle() : null,\n className,\n )}\n margin={margin}\n ref={ref}\n >\n {children}\n </Box>\n );\n}\n\nexport const Text: PolymorphicComponent<\n ExpandProps<TextInternalProps>,\n typeof TEXT_DEFAULT_TAG\n> = React.forwardRef(_Text);\n","import React from 'react';\nimport {\n CommonProps,\n MarginProps,\n PolymorphicComponent,\n PolymorphicProps,\n ExpandProps,\n} from '@contentful/f36-core';\nimport type { HeadingElement } from './Heading';\nimport { Text } from './Text';\n\nconst SUBHEADING_DEFAULT_TAG = 'h3';\n\nexport interface SubheadingInternalProps extends CommonProps, MarginProps {\n as?: HeadingElement;\n isTruncated?: boolean;\n}\n\nexport type SubheadingProps<\n E extends React.ElementType = typeof SUBHEADING_DEFAULT_TAG\n> = PolymorphicProps<SubheadingInternalProps, E>;\n\nfunction _Subheading<\n E extends React.ElementType = typeof SUBHEADING_DEFAULT_TAG\n>(\n { children, testId = 'cf-ui-subheading', ...otherProps }: SubheadingProps<E>,\n ref: React.Ref<any>,\n) {\n return (\n <Text\n as={SUBHEADING_DEFAULT_TAG}\n testId={testId}\n marginBottom=\"spacingM\"\n fontSize=\"fontSizeL\"\n lineHeight=\"lineHeightL\"\n fontWeight=\"fontWeightDemiBold\"\n fontColor=\"gray900\"\n {...otherProps}\n ref={ref}\n >\n {children}\n </Text>\n );\n}\n\nexport const Subheading: PolymorphicComponent<\n ExpandProps<SubheadingInternalProps>,\n typeof SUBHEADING_DEFAULT_TAG\n> = React.forwardRef(_Subheading);\n","import React, { useEffect } from 'react';\n\nexport interface TypographyProps {\n children?: React.ReactNode;\n}\n\n/**\n * @deprecated\n */\nexport function Typography(props: TypographyProps) {\n useEffect(() => {\n console.warn(\n 'Forma 36: Typography component is deprecated. You can safely remove it from your components.',\n );\n }, []);\n return <>{props.children}</>;\n}\n","import React from 'react';\nimport { FontSizeTokens, LineHeightTokens } from '@contentful/f36-tokens';\nimport {\n CommonProps,\n MarginProps,\n PolymorphicComponent,\n PolymorphicProps,\n ExpandProps,\n} from '@contentful/f36-core';\nimport { Text } from './Text';\nimport type { HeadingElement } from './Heading';\n\nconst DISPLAY_TEXT_DEFAULT_TAG = 'h2';\n\nexport interface DisplayTextInternalProps extends CommonProps, MarginProps {\n size?: 'default' | 'large' | 'huge';\n as?: HeadingElement;\n isTruncated?: boolean;\n}\n\nexport type DisplayTextProps<\n E extends React.ElementType = typeof DISPLAY_TEXT_DEFAULT_TAG\n> = PolymorphicProps<DisplayTextInternalProps, E>;\n\nfunction _DisplayText<\n E extends React.ElementType = typeof DISPLAY_TEXT_DEFAULT_TAG\n>(\n {\n children,\n size = 'default',\n testId = 'cf-ui-display-text',\n ...otherProps\n }: DisplayTextProps<E>,\n ref: React.Ref<any>,\n) {\n let fontSize: FontSizeTokens = 'fontSize2Xl';\n let lineHeight: LineHeightTokens = 'lineHeight2Xl';\n\n if (size === 'huge') {\n fontSize = 'fontSize4Xl';\n lineHeight = 'lineHeight4Xl';\n } else if (size === 'large') {\n fontSize = 'fontSize3Xl';\n lineHeight = 'lineHeight3Xl';\n }\n\n return (\n <Text\n as={DISPLAY_TEXT_DEFAULT_TAG}\n testId={testId}\n marginBottom={size === 'default' ? 'spacingL' : 'spacingXl'}\n fontSize={fontSize}\n lineHeight={lineHeight}\n fontColor=\"gray900\"\n fontWeight=\"fontWeightDemiBold\"\n {...otherProps}\n ref={ref}\n >\n {children}\n </Text>\n );\n}\n\nexport const DisplayText: PolymorphicComponent<\n ExpandProps<DisplayTextInternalProps>,\n typeof DISPLAY_TEXT_DEFAULT_TAG\n> = React.forwardRef(_DisplayText);\n","import React from 'react';\nimport tokens from '@contentful/f36-tokens';\nimport { css, cx } from 'emotion';\nimport {\n CommonProps,\n MarginProps,\n PolymorphicComponent,\n PolymorphicProps,\n ExpandProps,\n} from '@contentful/f36-core';\nimport type { HeadingElement } from './Heading';\nimport { Text } from './Text';\n\nconst SECTION_HEADING_DEFAULT_TAG = 'h2';\n\nexport interface SectionHeadingInternalProps extends CommonProps, MarginProps {\n as?: HeadingElement;\n isTruncated?: boolean;\n}\n\nexport type SectionHeadingProps<\n E extends React.ElementType = typeof SECTION_HEADING_DEFAULT_TAG\n> = PolymorphicProps<SectionHeadingInternalProps, E>;\n\nfunction _SectionHeading<\n E extends React.ElementType = typeof SECTION_HEADING_DEFAULT_TAG\n>(\n {\n children,\n className,\n testId = 'cf-ui-section-heading',\n ...otherProps\n }: SectionHeadingProps<E>,\n ref: React.Ref<any>,\n) {\n return (\n <Text\n as={SECTION_HEADING_DEFAULT_TAG}\n testId={testId}\n marginBottom=\"spacingL\"\n fontWeight=\"fontWeightDemiBold\"\n fontColor=\"gray900\"\n fontSize=\"fontSizeS\"\n lineHeight=\"lineHeightS\"\n className={cx(\n css({\n letterSpacing: tokens.letterSpacingWide,\n textTransform: 'uppercase',\n }),\n className,\n )}\n {...otherProps}\n ref={ref}\n >\n {children}\n </Text>\n );\n}\n\nexport const SectionHeading: PolymorphicComponent<\n ExpandProps<SectionHeadingInternalProps>,\n typeof SECTION_HEADING_DEFAULT_TAG\n> = React.forwardRef(_SectionHeading);\n","import React from 'react';\nimport {\n PropsWithHTMLElement,\n CommonProps,\n MarginProps,\n ExpandProps,\n} from '@contentful/f36-core';\nimport { Text } from './Text';\n\nexport type ParagraphInternalProps = CommonProps &\n MarginProps & {\n children: React.ReactNode;\n isTruncated?: boolean;\n };\n\nexport type ParagraphProps = PropsWithHTMLElement<ParagraphInternalProps, 'p'>;\n\nexport const Paragraph = React.forwardRef<\n HTMLParagraphElement,\n ExpandProps<ParagraphProps>\n>(({ children, testId = 'cf-ui-paragraph', ...otherProps }, ref) => {\n return (\n <Text\n as=\"p\"\n testId={testId}\n marginBottom=\"spacingM\"\n lineHeight=\"lineHeightM\"\n {...otherProps}\n ref={ref}\n >\n {children}\n </Text>\n );\n});\n\nParagraph.displayName = 'Paragraph';\n"],"names":["Heading","HeadingProps","HeadingElement","Subheading","SubheadingProps","Typography","TypographyProps","DisplayText","DisplayTextProps","SectionHeading","SectionHeadingProps","Paragraph","ParagraphProps","Text","TextProps","React","CommonProps","MarginProps","PolymorphicComponent","PolymorphicProps","ExpandProps","HEADING_DEFAULT_TAG","HeadingInternalProps","as","children","ReactNode","isTruncated","ElementType","E","_Heading","testId","otherProps","ref","Ref","forwardRef","tokens","FontSizeTokens","LineHeightTokens","FontWeightTokens","FontStackTokens","ColorTokens","Box","TextInternalProps","fontSize","lineHeight","fontStack","fontWeight","fontColor","TEXT_DEFAULT_TAG","truncatedStyle","_Text","className","margin","Element","padding","fontFamily","color","SUBHEADING_DEFAULT_TAG","SubheadingInternalProps","_Subheading","useEffect","props","console","warn","DISPLAY_TEXT_DEFAULT_TAG","DisplayTextInternalProps","size","_DisplayText","SECTION_HEADING_DEFAULT_TAG","SectionHeadingInternalProps","_SectionHeading","letterSpacing","letterSpacingWide","textTransform","PropsWithHTMLElement","ParagraphInternalProps","HTMLParagraphElement","displayName"],"version":3,"file":"module.js.map"}
|
package/dist/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { FontSizeTokens, LineHeightTokens, FontWeightTokens, FontStackTokens, ColorTokens } from "@contentful/f36-tokens";
|
|
3
|
-
import { PolymorphicComponent, CommonProps, MarginProps, PolymorphicProps, PropsWithHTMLElement } from "@contentful/f36-core";
|
|
3
|
+
import { PolymorphicComponent, CommonProps, MarginProps, PolymorphicProps, ExpandProps, PropsWithHTMLElement } from "@contentful/f36-core";
|
|
4
4
|
interface TextInternalProps extends CommonProps, MarginProps {
|
|
5
5
|
children?: React.ReactNode;
|
|
6
6
|
fontSize?: FontSizeTokens;
|
|
@@ -12,7 +12,7 @@ interface TextInternalProps extends CommonProps, MarginProps {
|
|
|
12
12
|
}
|
|
13
13
|
declare const TEXT_DEFAULT_TAG = "span";
|
|
14
14
|
export type TextProps<E extends React.ElementType = typeof TEXT_DEFAULT_TAG> = PolymorphicProps<TextInternalProps, E>;
|
|
15
|
-
export const Text: PolymorphicComponent<TextInternalProps
|
|
15
|
+
export const Text: PolymorphicComponent<ExpandProps<TextInternalProps>, typeof TEXT_DEFAULT_TAG>;
|
|
16
16
|
declare const HEADING_DEFAULT_TAG = "h1";
|
|
17
17
|
export type HeadingElement = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
18
18
|
interface HeadingInternalProps extends CommonProps, MarginProps {
|
|
@@ -21,14 +21,14 @@ interface HeadingInternalProps extends CommonProps, MarginProps {
|
|
|
21
21
|
isTruncated?: boolean;
|
|
22
22
|
}
|
|
23
23
|
export type HeadingProps<E extends React.ElementType = typeof HEADING_DEFAULT_TAG> = PolymorphicProps<HeadingInternalProps, E>;
|
|
24
|
-
export const Heading: PolymorphicComponent<HeadingInternalProps
|
|
24
|
+
export const Heading: PolymorphicComponent<ExpandProps<HeadingInternalProps>, typeof HEADING_DEFAULT_TAG>;
|
|
25
25
|
declare const SUBHEADING_DEFAULT_TAG = "h3";
|
|
26
26
|
interface SubheadingInternalProps extends CommonProps, MarginProps {
|
|
27
27
|
as?: HeadingElement;
|
|
28
28
|
isTruncated?: boolean;
|
|
29
29
|
}
|
|
30
30
|
export type SubheadingProps<E extends React.ElementType = typeof SUBHEADING_DEFAULT_TAG> = PolymorphicProps<SubheadingInternalProps, E>;
|
|
31
|
-
export const Subheading: PolymorphicComponent<SubheadingInternalProps
|
|
31
|
+
export const Subheading: PolymorphicComponent<ExpandProps<SubheadingInternalProps>, typeof SUBHEADING_DEFAULT_TAG>;
|
|
32
32
|
export interface TypographyProps {
|
|
33
33
|
children?: React.ReactNode;
|
|
34
34
|
}
|
|
@@ -43,20 +43,282 @@ interface DisplayTextInternalProps extends CommonProps, MarginProps {
|
|
|
43
43
|
isTruncated?: boolean;
|
|
44
44
|
}
|
|
45
45
|
export type DisplayTextProps<E extends React.ElementType = typeof DISPLAY_TEXT_DEFAULT_TAG> = PolymorphicProps<DisplayTextInternalProps, E>;
|
|
46
|
-
export const DisplayText: PolymorphicComponent<DisplayTextInternalProps
|
|
46
|
+
export const DisplayText: PolymorphicComponent<ExpandProps<DisplayTextInternalProps>, typeof DISPLAY_TEXT_DEFAULT_TAG>;
|
|
47
47
|
declare const SECTION_HEADING_DEFAULT_TAG = "h2";
|
|
48
48
|
interface SectionHeadingInternalProps extends CommonProps, MarginProps {
|
|
49
49
|
as?: HeadingElement;
|
|
50
50
|
isTruncated?: boolean;
|
|
51
51
|
}
|
|
52
52
|
export type SectionHeadingProps<E extends React.ElementType = typeof SECTION_HEADING_DEFAULT_TAG> = PolymorphicProps<SectionHeadingInternalProps, E>;
|
|
53
|
-
export const SectionHeading: PolymorphicComponent<SectionHeadingInternalProps
|
|
53
|
+
export const SectionHeading: PolymorphicComponent<ExpandProps<SectionHeadingInternalProps>, typeof SECTION_HEADING_DEFAULT_TAG>;
|
|
54
54
|
type ParagraphInternalProps = CommonProps & MarginProps & {
|
|
55
55
|
children: React.ReactNode;
|
|
56
56
|
isTruncated?: boolean;
|
|
57
57
|
};
|
|
58
58
|
export type ParagraphProps = PropsWithHTMLElement<ParagraphInternalProps, 'p'>;
|
|
59
|
-
export const Paragraph: React.ForwardRefExoticComponent<
|
|
59
|
+
export const Paragraph: React.ForwardRefExoticComponent<{
|
|
60
|
+
hidden?: boolean;
|
|
61
|
+
color?: string;
|
|
62
|
+
translate?: "no" | "yes";
|
|
63
|
+
slot?: string;
|
|
64
|
+
title?: string;
|
|
65
|
+
id?: string;
|
|
66
|
+
lang?: string;
|
|
67
|
+
role?: string;
|
|
68
|
+
tabIndex?: number;
|
|
69
|
+
'aria-activedescendant'?: string;
|
|
70
|
+
'aria-atomic'?: boolean | "true" | "false";
|
|
71
|
+
'aria-autocomplete'?: "none" | "list" | "inline" | "both";
|
|
72
|
+
'aria-busy'?: boolean | "true" | "false";
|
|
73
|
+
'aria-checked'?: boolean | "true" | "false" | "mixed";
|
|
74
|
+
'aria-colcount'?: number;
|
|
75
|
+
'aria-colindex'?: number;
|
|
76
|
+
'aria-colspan'?: number;
|
|
77
|
+
'aria-controls'?: string;
|
|
78
|
+
'aria-current'?: boolean | "time" | "true" | "false" | "step" | "page" | "location" | "date";
|
|
79
|
+
'aria-describedby'?: string;
|
|
80
|
+
'aria-details'?: string;
|
|
81
|
+
'aria-disabled'?: boolean | "true" | "false";
|
|
82
|
+
'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup";
|
|
83
|
+
'aria-errormessage'?: string;
|
|
84
|
+
'aria-expanded'?: boolean | "true" | "false";
|
|
85
|
+
'aria-flowto'?: string;
|
|
86
|
+
'aria-grabbed'?: boolean | "true" | "false";
|
|
87
|
+
'aria-haspopup'?: boolean | "grid" | "dialog" | "menu" | "true" | "false" | "listbox" | "tree";
|
|
88
|
+
'aria-hidden'?: boolean | "true" | "false";
|
|
89
|
+
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling";
|
|
90
|
+
'aria-keyshortcuts'?: string;
|
|
91
|
+
'aria-label'?: string;
|
|
92
|
+
'aria-labelledby'?: string;
|
|
93
|
+
'aria-level'?: number;
|
|
94
|
+
'aria-live'?: "off" | "assertive" | "polite";
|
|
95
|
+
'aria-modal'?: boolean | "true" | "false";
|
|
96
|
+
'aria-multiline'?: boolean | "true" | "false";
|
|
97
|
+
'aria-multiselectable'?: boolean | "true" | "false";
|
|
98
|
+
'aria-orientation'?: "horizontal" | "vertical";
|
|
99
|
+
'aria-owns'?: string;
|
|
100
|
+
'aria-placeholder'?: string;
|
|
101
|
+
'aria-posinset'?: number;
|
|
102
|
+
'aria-pressed'?: boolean | "true" | "false" | "mixed";
|
|
103
|
+
'aria-readonly'?: boolean | "true" | "false";
|
|
104
|
+
'aria-relevant'?: "all" | "text" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals";
|
|
105
|
+
'aria-required'?: boolean | "true" | "false";
|
|
106
|
+
'aria-roledescription'?: string;
|
|
107
|
+
'aria-rowcount'?: number;
|
|
108
|
+
'aria-rowindex'?: number;
|
|
109
|
+
'aria-rowspan'?: number;
|
|
110
|
+
'aria-selected'?: boolean | "true" | "false";
|
|
111
|
+
'aria-setsize'?: number;
|
|
112
|
+
'aria-sort'?: "none" | "ascending" | "descending" | "other";
|
|
113
|
+
'aria-valuemax'?: number;
|
|
114
|
+
'aria-valuemin'?: number;
|
|
115
|
+
'aria-valuenow'?: number;
|
|
116
|
+
'aria-valuetext'?: string;
|
|
117
|
+
dangerouslySetInnerHTML?: {
|
|
118
|
+
__html: string;
|
|
119
|
+
};
|
|
120
|
+
onCopy?: React.ClipboardEventHandler<HTMLParagraphElement>;
|
|
121
|
+
onCopyCapture?: React.ClipboardEventHandler<HTMLParagraphElement>;
|
|
122
|
+
onCut?: React.ClipboardEventHandler<HTMLParagraphElement>;
|
|
123
|
+
onCutCapture?: React.ClipboardEventHandler<HTMLParagraphElement>;
|
|
124
|
+
onPaste?: React.ClipboardEventHandler<HTMLParagraphElement>;
|
|
125
|
+
onPasteCapture?: React.ClipboardEventHandler<HTMLParagraphElement>;
|
|
126
|
+
onCompositionEnd?: React.CompositionEventHandler<HTMLParagraphElement>;
|
|
127
|
+
onCompositionEndCapture?: React.CompositionEventHandler<HTMLParagraphElement>;
|
|
128
|
+
onCompositionStart?: React.CompositionEventHandler<HTMLParagraphElement>;
|
|
129
|
+
onCompositionStartCapture?: React.CompositionEventHandler<HTMLParagraphElement>;
|
|
130
|
+
onCompositionUpdate?: React.CompositionEventHandler<HTMLParagraphElement>;
|
|
131
|
+
onCompositionUpdateCapture?: React.CompositionEventHandler<HTMLParagraphElement>;
|
|
132
|
+
onFocus?: React.FocusEventHandler<HTMLParagraphElement>;
|
|
133
|
+
onFocusCapture?: React.FocusEventHandler<HTMLParagraphElement>;
|
|
134
|
+
onBlur?: React.FocusEventHandler<HTMLParagraphElement>;
|
|
135
|
+
onBlurCapture?: React.FocusEventHandler<HTMLParagraphElement>;
|
|
136
|
+
onChange?: React.FormEventHandler<HTMLParagraphElement>;
|
|
137
|
+
onChangeCapture?: React.FormEventHandler<HTMLParagraphElement>;
|
|
138
|
+
onBeforeInput?: React.FormEventHandler<HTMLParagraphElement>;
|
|
139
|
+
onBeforeInputCapture?: React.FormEventHandler<HTMLParagraphElement>;
|
|
140
|
+
onInput?: React.FormEventHandler<HTMLParagraphElement>;
|
|
141
|
+
onInputCapture?: React.FormEventHandler<HTMLParagraphElement>;
|
|
142
|
+
onReset?: React.FormEventHandler<HTMLParagraphElement>;
|
|
143
|
+
onResetCapture?: React.FormEventHandler<HTMLParagraphElement>;
|
|
144
|
+
onSubmit?: React.FormEventHandler<HTMLParagraphElement>;
|
|
145
|
+
onSubmitCapture?: React.FormEventHandler<HTMLParagraphElement>;
|
|
146
|
+
onInvalid?: React.FormEventHandler<HTMLParagraphElement>;
|
|
147
|
+
onInvalidCapture?: React.FormEventHandler<HTMLParagraphElement>;
|
|
148
|
+
onLoad?: React.ReactEventHandler<HTMLParagraphElement>;
|
|
149
|
+
onLoadCapture?: React.ReactEventHandler<HTMLParagraphElement>;
|
|
150
|
+
onError?: React.ReactEventHandler<HTMLParagraphElement>;
|
|
151
|
+
onErrorCapture?: React.ReactEventHandler<HTMLParagraphElement>;
|
|
152
|
+
onKeyDown?: React.KeyboardEventHandler<HTMLParagraphElement>;
|
|
153
|
+
onKeyDownCapture?: React.KeyboardEventHandler<HTMLParagraphElement>;
|
|
154
|
+
onKeyPress?: React.KeyboardEventHandler<HTMLParagraphElement>;
|
|
155
|
+
onKeyPressCapture?: React.KeyboardEventHandler<HTMLParagraphElement>;
|
|
156
|
+
onKeyUp?: React.KeyboardEventHandler<HTMLParagraphElement>;
|
|
157
|
+
onKeyUpCapture?: React.KeyboardEventHandler<HTMLParagraphElement>;
|
|
158
|
+
onAbort?: React.ReactEventHandler<HTMLParagraphElement>;
|
|
159
|
+
onAbortCapture?: React.ReactEventHandler<HTMLParagraphElement>;
|
|
160
|
+
onCanPlay?: React.ReactEventHandler<HTMLParagraphElement>;
|
|
161
|
+
onCanPlayCapture?: React.ReactEventHandler<HTMLParagraphElement>;
|
|
162
|
+
onCanPlayThrough?: React.ReactEventHandler<HTMLParagraphElement>;
|
|
163
|
+
onCanPlayThroughCapture?: React.ReactEventHandler<HTMLParagraphElement>;
|
|
164
|
+
onDurationChange?: React.ReactEventHandler<HTMLParagraphElement>;
|
|
165
|
+
onDurationChangeCapture?: React.ReactEventHandler<HTMLParagraphElement>;
|
|
166
|
+
onEmptied?: React.ReactEventHandler<HTMLParagraphElement>;
|
|
167
|
+
onEmptiedCapture?: React.ReactEventHandler<HTMLParagraphElement>;
|
|
168
|
+
onEncrypted?: React.ReactEventHandler<HTMLParagraphElement>;
|
|
169
|
+
onEncryptedCapture?: React.ReactEventHandler<HTMLParagraphElement>;
|
|
170
|
+
onEnded?: React.ReactEventHandler<HTMLParagraphElement>;
|
|
171
|
+
onEndedCapture?: React.ReactEventHandler<HTMLParagraphElement>;
|
|
172
|
+
onLoadedData?: React.ReactEventHandler<HTMLParagraphElement>;
|
|
173
|
+
onLoadedDataCapture?: React.ReactEventHandler<HTMLParagraphElement>;
|
|
174
|
+
onLoadedMetadata?: React.ReactEventHandler<HTMLParagraphElement>;
|
|
175
|
+
onLoadedMetadataCapture?: React.ReactEventHandler<HTMLParagraphElement>;
|
|
176
|
+
onLoadStart?: React.ReactEventHandler<HTMLParagraphElement>;
|
|
177
|
+
onLoadStartCapture?: React.ReactEventHandler<HTMLParagraphElement>;
|
|
178
|
+
onPause?: React.ReactEventHandler<HTMLParagraphElement>;
|
|
179
|
+
onPauseCapture?: React.ReactEventHandler<HTMLParagraphElement>;
|
|
180
|
+
onPlay?: React.ReactEventHandler<HTMLParagraphElement>;
|
|
181
|
+
onPlayCapture?: React.ReactEventHandler<HTMLParagraphElement>;
|
|
182
|
+
onPlaying?: React.ReactEventHandler<HTMLParagraphElement>;
|
|
183
|
+
onPlayingCapture?: React.ReactEventHandler<HTMLParagraphElement>;
|
|
184
|
+
onProgress?: React.ReactEventHandler<HTMLParagraphElement>;
|
|
185
|
+
onProgressCapture?: React.ReactEventHandler<HTMLParagraphElement>;
|
|
186
|
+
onRateChange?: React.ReactEventHandler<HTMLParagraphElement>;
|
|
187
|
+
onRateChangeCapture?: React.ReactEventHandler<HTMLParagraphElement>;
|
|
188
|
+
onSeeked?: React.ReactEventHandler<HTMLParagraphElement>;
|
|
189
|
+
onSeekedCapture?: React.ReactEventHandler<HTMLParagraphElement>;
|
|
190
|
+
onSeeking?: React.ReactEventHandler<HTMLParagraphElement>;
|
|
191
|
+
onSeekingCapture?: React.ReactEventHandler<HTMLParagraphElement>;
|
|
192
|
+
onStalled?: React.ReactEventHandler<HTMLParagraphElement>;
|
|
193
|
+
onStalledCapture?: React.ReactEventHandler<HTMLParagraphElement>;
|
|
194
|
+
onSuspend?: React.ReactEventHandler<HTMLParagraphElement>;
|
|
195
|
+
onSuspendCapture?: React.ReactEventHandler<HTMLParagraphElement>;
|
|
196
|
+
onTimeUpdate?: React.ReactEventHandler<HTMLParagraphElement>;
|
|
197
|
+
onTimeUpdateCapture?: React.ReactEventHandler<HTMLParagraphElement>;
|
|
198
|
+
onVolumeChange?: React.ReactEventHandler<HTMLParagraphElement>;
|
|
199
|
+
onVolumeChangeCapture?: React.ReactEventHandler<HTMLParagraphElement>;
|
|
200
|
+
onWaiting?: React.ReactEventHandler<HTMLParagraphElement>;
|
|
201
|
+
onWaitingCapture?: React.ReactEventHandler<HTMLParagraphElement>;
|
|
202
|
+
onAuxClick?: React.MouseEventHandler<HTMLParagraphElement>;
|
|
203
|
+
onAuxClickCapture?: React.MouseEventHandler<HTMLParagraphElement>;
|
|
204
|
+
onClick?: React.MouseEventHandler<HTMLParagraphElement>;
|
|
205
|
+
onClickCapture?: React.MouseEventHandler<HTMLParagraphElement>;
|
|
206
|
+
onContextMenu?: React.MouseEventHandler<HTMLParagraphElement>;
|
|
207
|
+
onContextMenuCapture?: React.MouseEventHandler<HTMLParagraphElement>;
|
|
208
|
+
onDoubleClick?: React.MouseEventHandler<HTMLParagraphElement>;
|
|
209
|
+
onDoubleClickCapture?: React.MouseEventHandler<HTMLParagraphElement>;
|
|
210
|
+
onDrag?: React.DragEventHandler<HTMLParagraphElement>;
|
|
211
|
+
onDragCapture?: React.DragEventHandler<HTMLParagraphElement>;
|
|
212
|
+
onDragEnd?: React.DragEventHandler<HTMLParagraphElement>;
|
|
213
|
+
onDragEndCapture?: React.DragEventHandler<HTMLParagraphElement>;
|
|
214
|
+
onDragEnter?: React.DragEventHandler<HTMLParagraphElement>;
|
|
215
|
+
onDragEnterCapture?: React.DragEventHandler<HTMLParagraphElement>;
|
|
216
|
+
onDragExit?: React.DragEventHandler<HTMLParagraphElement>;
|
|
217
|
+
onDragExitCapture?: React.DragEventHandler<HTMLParagraphElement>;
|
|
218
|
+
onDragLeave?: React.DragEventHandler<HTMLParagraphElement>;
|
|
219
|
+
onDragLeaveCapture?: React.DragEventHandler<HTMLParagraphElement>;
|
|
220
|
+
onDragOver?: React.DragEventHandler<HTMLParagraphElement>;
|
|
221
|
+
onDragOverCapture?: React.DragEventHandler<HTMLParagraphElement>;
|
|
222
|
+
onDragStart?: React.DragEventHandler<HTMLParagraphElement>;
|
|
223
|
+
onDragStartCapture?: React.DragEventHandler<HTMLParagraphElement>;
|
|
224
|
+
onDrop?: React.DragEventHandler<HTMLParagraphElement>;
|
|
225
|
+
onDropCapture?: React.DragEventHandler<HTMLParagraphElement>;
|
|
226
|
+
onMouseDown?: React.MouseEventHandler<HTMLParagraphElement>;
|
|
227
|
+
onMouseDownCapture?: React.MouseEventHandler<HTMLParagraphElement>;
|
|
228
|
+
onMouseEnter?: React.MouseEventHandler<HTMLParagraphElement>;
|
|
229
|
+
onMouseLeave?: React.MouseEventHandler<HTMLParagraphElement>;
|
|
230
|
+
onMouseMove?: React.MouseEventHandler<HTMLParagraphElement>;
|
|
231
|
+
onMouseMoveCapture?: React.MouseEventHandler<HTMLParagraphElement>;
|
|
232
|
+
onMouseOut?: React.MouseEventHandler<HTMLParagraphElement>;
|
|
233
|
+
onMouseOutCapture?: React.MouseEventHandler<HTMLParagraphElement>;
|
|
234
|
+
onMouseOver?: React.MouseEventHandler<HTMLParagraphElement>;
|
|
235
|
+
onMouseOverCapture?: React.MouseEventHandler<HTMLParagraphElement>;
|
|
236
|
+
onMouseUp?: React.MouseEventHandler<HTMLParagraphElement>;
|
|
237
|
+
onMouseUpCapture?: React.MouseEventHandler<HTMLParagraphElement>;
|
|
238
|
+
onSelect?: React.ReactEventHandler<HTMLParagraphElement>;
|
|
239
|
+
onSelectCapture?: React.ReactEventHandler<HTMLParagraphElement>;
|
|
240
|
+
onTouchCancel?: React.TouchEventHandler<HTMLParagraphElement>;
|
|
241
|
+
onTouchCancelCapture?: React.TouchEventHandler<HTMLParagraphElement>;
|
|
242
|
+
onTouchEnd?: React.TouchEventHandler<HTMLParagraphElement>;
|
|
243
|
+
onTouchEndCapture?: React.TouchEventHandler<HTMLParagraphElement>;
|
|
244
|
+
onTouchMove?: React.TouchEventHandler<HTMLParagraphElement>;
|
|
245
|
+
onTouchMoveCapture?: React.TouchEventHandler<HTMLParagraphElement>;
|
|
246
|
+
onTouchStart?: React.TouchEventHandler<HTMLParagraphElement>;
|
|
247
|
+
onTouchStartCapture?: React.TouchEventHandler<HTMLParagraphElement>;
|
|
248
|
+
onPointerDown?: React.PointerEventHandler<HTMLParagraphElement>;
|
|
249
|
+
onPointerDownCapture?: React.PointerEventHandler<HTMLParagraphElement>;
|
|
250
|
+
onPointerMove?: React.PointerEventHandler<HTMLParagraphElement>;
|
|
251
|
+
onPointerMoveCapture?: React.PointerEventHandler<HTMLParagraphElement>;
|
|
252
|
+
onPointerUp?: React.PointerEventHandler<HTMLParagraphElement>;
|
|
253
|
+
onPointerUpCapture?: React.PointerEventHandler<HTMLParagraphElement>;
|
|
254
|
+
onPointerCancel?: React.PointerEventHandler<HTMLParagraphElement>;
|
|
255
|
+
onPointerCancelCapture?: React.PointerEventHandler<HTMLParagraphElement>;
|
|
256
|
+
onPointerEnter?: React.PointerEventHandler<HTMLParagraphElement>;
|
|
257
|
+
onPointerEnterCapture?: React.PointerEventHandler<HTMLParagraphElement>;
|
|
258
|
+
onPointerLeave?: React.PointerEventHandler<HTMLParagraphElement>;
|
|
259
|
+
onPointerLeaveCapture?: React.PointerEventHandler<HTMLParagraphElement>;
|
|
260
|
+
onPointerOver?: React.PointerEventHandler<HTMLParagraphElement>;
|
|
261
|
+
onPointerOverCapture?: React.PointerEventHandler<HTMLParagraphElement>;
|
|
262
|
+
onPointerOut?: React.PointerEventHandler<HTMLParagraphElement>;
|
|
263
|
+
onPointerOutCapture?: React.PointerEventHandler<HTMLParagraphElement>;
|
|
264
|
+
onGotPointerCapture?: React.PointerEventHandler<HTMLParagraphElement>;
|
|
265
|
+
onGotPointerCaptureCapture?: React.PointerEventHandler<HTMLParagraphElement>;
|
|
266
|
+
onLostPointerCapture?: React.PointerEventHandler<HTMLParagraphElement>;
|
|
267
|
+
onLostPointerCaptureCapture?: React.PointerEventHandler<HTMLParagraphElement>;
|
|
268
|
+
onScroll?: React.UIEventHandler<HTMLParagraphElement>;
|
|
269
|
+
onScrollCapture?: React.UIEventHandler<HTMLParagraphElement>;
|
|
270
|
+
onWheel?: React.WheelEventHandler<HTMLParagraphElement>;
|
|
271
|
+
onWheelCapture?: React.WheelEventHandler<HTMLParagraphElement>;
|
|
272
|
+
onAnimationStart?: React.AnimationEventHandler<HTMLParagraphElement>;
|
|
273
|
+
onAnimationStartCapture?: React.AnimationEventHandler<HTMLParagraphElement>;
|
|
274
|
+
onAnimationEnd?: React.AnimationEventHandler<HTMLParagraphElement>;
|
|
275
|
+
onAnimationEndCapture?: React.AnimationEventHandler<HTMLParagraphElement>;
|
|
276
|
+
onAnimationIteration?: React.AnimationEventHandler<HTMLParagraphElement>;
|
|
277
|
+
onAnimationIterationCapture?: React.AnimationEventHandler<HTMLParagraphElement>;
|
|
278
|
+
onTransitionEnd?: React.TransitionEventHandler<HTMLParagraphElement>;
|
|
279
|
+
onTransitionEndCapture?: React.TransitionEventHandler<HTMLParagraphElement>;
|
|
280
|
+
key?: React.Key;
|
|
281
|
+
defaultChecked?: boolean;
|
|
282
|
+
defaultValue?: string | number | readonly string[];
|
|
283
|
+
suppressContentEditableWarning?: boolean;
|
|
284
|
+
suppressHydrationWarning?: boolean;
|
|
285
|
+
accessKey?: string;
|
|
286
|
+
contentEditable?: "inherit" | (boolean | "true" | "false");
|
|
287
|
+
contextMenu?: string;
|
|
288
|
+
dir?: string;
|
|
289
|
+
draggable?: boolean | "true" | "false";
|
|
290
|
+
placeholder?: string;
|
|
291
|
+
spellCheck?: boolean | "true" | "false";
|
|
292
|
+
radioGroup?: string;
|
|
293
|
+
about?: string;
|
|
294
|
+
datatype?: string;
|
|
295
|
+
inlist?: any;
|
|
296
|
+
prefix?: string;
|
|
297
|
+
property?: string;
|
|
298
|
+
resource?: string;
|
|
299
|
+
typeof?: string;
|
|
300
|
+
vocab?: string;
|
|
301
|
+
autoCapitalize?: string;
|
|
302
|
+
autoCorrect?: string;
|
|
303
|
+
autoSave?: string;
|
|
304
|
+
itemProp?: string;
|
|
305
|
+
itemScope?: boolean;
|
|
306
|
+
itemType?: string;
|
|
307
|
+
itemID?: string;
|
|
308
|
+
itemRef?: string;
|
|
309
|
+
results?: number;
|
|
310
|
+
security?: string;
|
|
311
|
+
unselectable?: "on" | "off";
|
|
312
|
+
inputMode?: "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | "search";
|
|
313
|
+
is?: string;
|
|
314
|
+
className?: string;
|
|
315
|
+
testId?: string;
|
|
316
|
+
style?: React.CSSProperties;
|
|
317
|
+
margin?: import("@contentful/f36-core").Spacing;
|
|
318
|
+
marginTop?: import("@contentful/f36-core").Spacing;
|
|
319
|
+
marginRight?: import("@contentful/f36-core").Spacing;
|
|
320
|
+
marginBottom?: import("@contentful/f36-core").Spacing;
|
|
321
|
+
marginLeft?: import("@contentful/f36-core").Spacing;
|
|
60
322
|
children: React.ReactNode;
|
|
61
323
|
isTruncated?: boolean;
|
|
62
324
|
} & React.RefAttributes<HTMLParagraphElement>>;
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";;;
|
|
1
|
+
{"mappings":";;;AAkBA,2BAAmC,SAAQ,WAAW,EAAE,WAAW;I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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cANC,MAAM,SAAS;kBACX,OAAO;8CAqBvB,CAAC","sources":["packages/components/typography/src/src/Text.tsx","packages/components/typography/src/src/Heading.tsx","packages/components/typography/src/src/Subheading.tsx","packages/components/typography/src/src/Typography.tsx","packages/components/typography/src/src/DisplayText.tsx","packages/components/typography/src/src/SectionHeading.tsx","packages/components/typography/src/src/Paragraph.tsx","packages/components/typography/src/src/index.ts","packages/components/typography/src/index.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,"export { Heading } from './Heading';\nexport type { HeadingProps, HeadingElement } from './Heading';\nexport { Subheading } from './Subheading';\nexport type { SubheadingProps } from './Subheading';\nexport { Typography } from './Typography';\nexport type { TypographyProps } from './Typography';\nexport { DisplayText } from './DisplayText';\nexport type { DisplayTextProps } from './DisplayText';\nexport { SectionHeading } from './SectionHeading';\nexport type { SectionHeadingProps } from './SectionHeading';\nexport { Paragraph } from './Paragraph';\nexport type { ParagraphProps } from './Paragraph';\nexport { Text } from './Text';\nexport type { TextProps } from './Text';\n"],"names":[],"version":3,"file":"types.d.ts.map"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/f36-typography",
|
|
3
|
-
"version": "4.0.1-beta.
|
|
3
|
+
"version": "4.0.1-beta.2694+5eee5f80",
|
|
4
4
|
"description": "Forma 36: typography React Component",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@babel/runtime": "^7.6.2",
|
|
24
|
-
"@contentful/f36-core": "4.0.1-beta.
|
|
25
|
-
"@contentful/f36-tokens": "4.0.1-beta.
|
|
24
|
+
"@contentful/f36-core": "4.0.1-beta.2694+5eee5f80",
|
|
25
|
+
"@contentful/f36-tokens": "4.0.1-beta.2694+5eee5f80",
|
|
26
26
|
"emotion": "^10.0.17"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"publishConfig": {
|
|
32
32
|
"access": "public"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "5eee5f8092c3d92b9ba054c00baa1bc484511c69"
|
|
35
35
|
}
|