@zendeskgarden/react-typography 8.67.0 → 8.69.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.
package/dist/index.cjs.js
CHANGED
|
@@ -89,7 +89,7 @@ const fontStyles = props => {
|
|
|
89
89
|
};
|
|
90
90
|
const StyledFont = styled__default.default.div.attrs({
|
|
91
91
|
'data-garden-id': COMPONENT_ID$9,
|
|
92
|
-
'data-garden-version': '8.
|
|
92
|
+
'data-garden-version': '8.69.0'
|
|
93
93
|
}).withConfig({
|
|
94
94
|
displayName: "StyledFont",
|
|
95
95
|
componentId: "sc-1iildbo-0"
|
|
@@ -102,7 +102,7 @@ StyledFont.defaultProps = {
|
|
|
102
102
|
const COMPONENT_ID$8 = 'typography.blockquote';
|
|
103
103
|
const StyledBlockquote = styled__default.default.blockquote.attrs({
|
|
104
104
|
'data-garden-id': COMPONENT_ID$8,
|
|
105
|
-
'data-garden-version': '8.
|
|
105
|
+
'data-garden-version': '8.69.0'
|
|
106
106
|
}).withConfig({
|
|
107
107
|
displayName: "StyledBlockquote",
|
|
108
108
|
componentId: "sc-1tt3ye0-0"
|
|
@@ -121,7 +121,7 @@ const colorStyles$3 = props => {
|
|
|
121
121
|
};
|
|
122
122
|
const StyledCode = styled__default.default(StyledFont).attrs({
|
|
123
123
|
'data-garden-id': COMPONENT_ID$7,
|
|
124
|
-
'data-garden-version': '8.
|
|
124
|
+
'data-garden-version': '8.69.0',
|
|
125
125
|
as: 'code'
|
|
126
126
|
}).withConfig({
|
|
127
127
|
displayName: "StyledCode",
|
|
@@ -142,7 +142,7 @@ const colorStyles$2 = props => {
|
|
|
142
142
|
};
|
|
143
143
|
const StyledCodeBlock = styled__default.default.pre.attrs({
|
|
144
144
|
'data-garden-id': COMPONENT_ID$6,
|
|
145
|
-
'data-garden-version': '8.
|
|
145
|
+
'data-garden-version': '8.69.0'
|
|
146
146
|
}).withConfig({
|
|
147
147
|
displayName: "StyledCodeBlock",
|
|
148
148
|
componentId: "sc-5wky57-0"
|
|
@@ -154,11 +154,13 @@ StyledCodeBlock.defaultProps = {
|
|
|
154
154
|
const COMPONENT_ID$5 = 'typography.codeblock_container';
|
|
155
155
|
const StyledCodeBlockContainer = styled__default.default.div.attrs({
|
|
156
156
|
'data-garden-id': COMPONENT_ID$5,
|
|
157
|
-
'data-garden-version': '8.
|
|
157
|
+
'data-garden-version': '8.69.0'
|
|
158
158
|
}).withConfig({
|
|
159
159
|
displayName: "StyledCodeBlockContainer",
|
|
160
160
|
componentId: "sc-14zgbfw-0"
|
|
161
|
-
})(["
|
|
161
|
+
})(["transition:box-shadow 0.1s ease-in-out;overflow:auto;", " ", ";"], props => reactTheming.focusStyles({
|
|
162
|
+
theme: props.theme
|
|
163
|
+
}), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$5, props));
|
|
162
164
|
StyledCodeBlockContainer.defaultProps = {
|
|
163
165
|
theme: reactTheming.DEFAULT_THEME
|
|
164
166
|
};
|
|
@@ -215,7 +217,7 @@ const lineNumberStyles = props => {
|
|
|
215
217
|
};
|
|
216
218
|
const StyledCodeBlockLine = styled__default.default(StyledFont).attrs({
|
|
217
219
|
'data-garden-id': COMPONENT_ID$4,
|
|
218
|
-
'data-garden-version': '8.
|
|
220
|
+
'data-garden-version': '8.69.0',
|
|
219
221
|
as: 'code',
|
|
220
222
|
isMonospace: true
|
|
221
223
|
}).withConfig({
|
|
@@ -250,7 +252,7 @@ const colorStyles = props => {
|
|
|
250
252
|
};
|
|
251
253
|
const StyledCodeBlockToken = styled__default.default.span.attrs({
|
|
252
254
|
'data-garden-id': COMPONENT_ID$3,
|
|
253
|
-
'data-garden-version': '8.
|
|
255
|
+
'data-garden-version': '8.69.0'
|
|
254
256
|
}).withConfig({
|
|
255
257
|
displayName: "StyledCodeBlockToken",
|
|
256
258
|
componentId: "sc-1hkshdq-0"
|
|
@@ -262,7 +264,7 @@ StyledCodeBlockToken.defaultProps = {
|
|
|
262
264
|
const COMPONENT_ID$2 = 'typography.ellipsis';
|
|
263
265
|
const StyledEllipsis = styled__default.default.div.attrs({
|
|
264
266
|
'data-garden-id': COMPONENT_ID$2,
|
|
265
|
-
'data-garden-version': '8.
|
|
267
|
+
'data-garden-version': '8.69.0'
|
|
266
268
|
}).withConfig({
|
|
267
269
|
displayName: "StyledEllipsis",
|
|
268
270
|
componentId: "sc-1u4uqmy-0"
|
|
@@ -286,7 +288,7 @@ const StyledIcon = styled__default.default(_ref => {
|
|
|
286
288
|
return React__default.default.cloneElement(React.Children.only(children), props);
|
|
287
289
|
}).attrs({
|
|
288
290
|
'data-garden-id': COMPONENT_ID$1,
|
|
289
|
-
'data-garden-version': '8.
|
|
291
|
+
'data-garden-version': '8.69.0'
|
|
290
292
|
}).withConfig({
|
|
291
293
|
displayName: "StyledIcon",
|
|
292
294
|
componentId: "sc-10rfb5b-0"
|
|
@@ -302,7 +304,7 @@ const listStyles = props => {
|
|
|
302
304
|
const ORDERED_ID$1 = 'typography.ordered_list';
|
|
303
305
|
const StyledOrderedList = styled__default.default.ol.attrs({
|
|
304
306
|
'data-garden-id': ORDERED_ID$1,
|
|
305
|
-
'data-garden-version': '8.
|
|
307
|
+
'data-garden-version': '8.69.0'
|
|
306
308
|
}).withConfig({
|
|
307
309
|
displayName: "StyledList__StyledOrderedList",
|
|
308
310
|
componentId: "sc-jdbsfi-0"
|
|
@@ -313,7 +315,7 @@ StyledOrderedList.defaultProps = {
|
|
|
313
315
|
const UNORDERED_ID$1 = 'typography.unordered_list';
|
|
314
316
|
const StyledUnorderedList = styled__default.default.ul.attrs({
|
|
315
317
|
'data-garden-id': UNORDERED_ID$1,
|
|
316
|
-
'data-garden-version': '8.
|
|
318
|
+
'data-garden-version': '8.69.0'
|
|
317
319
|
}).withConfig({
|
|
318
320
|
displayName: "StyledList__StyledUnorderedList",
|
|
319
321
|
componentId: "sc-jdbsfi-1"
|
|
@@ -333,7 +335,7 @@ const listItemStyles = props => {
|
|
|
333
335
|
const ORDERED_ID = 'typography.ordered_list_item';
|
|
334
336
|
const StyledOrderedListItem = styled__default.default(StyledFont).attrs({
|
|
335
337
|
'data-garden-id': ORDERED_ID,
|
|
336
|
-
'data-garden-version': '8.
|
|
338
|
+
'data-garden-version': '8.69.0',
|
|
337
339
|
as: 'li'
|
|
338
340
|
}).withConfig({
|
|
339
341
|
displayName: "StyledListItem__StyledOrderedListItem",
|
|
@@ -346,7 +348,7 @@ StyledOrderedListItem.defaultProps = {
|
|
|
346
348
|
const UNORDERED_ID = 'typography.unordered_list_item';
|
|
347
349
|
const StyledUnorderedListItem = styled__default.default(StyledFont).attrs({
|
|
348
350
|
'data-garden-id': UNORDERED_ID,
|
|
349
|
-
'data-garden-version': '8.
|
|
351
|
+
'data-garden-version': '8.69.0',
|
|
350
352
|
as: 'li'
|
|
351
353
|
}).withConfig({
|
|
352
354
|
displayName: "StyledListItem__StyledUnorderedListItem",
|
|
@@ -360,7 +362,7 @@ StyledUnorderedListItem.defaultProps = {
|
|
|
360
362
|
const COMPONENT_ID = 'typography.paragraph';
|
|
361
363
|
const StyledParagraph = styled__default.default.p.attrs({
|
|
362
364
|
'data-garden-id': COMPONENT_ID,
|
|
363
|
-
'data-garden-version': '8.
|
|
365
|
+
'data-garden-version': '8.69.0'
|
|
364
366
|
}).withConfig({
|
|
365
367
|
displayName: "StyledParagraph",
|
|
366
368
|
componentId: "sc-zkuftz-0"
|
|
@@ -492,7 +494,7 @@ XXXL.defaultProps = {
|
|
|
492
494
|
tag: 'div'
|
|
493
495
|
};
|
|
494
496
|
|
|
495
|
-
const Blockquote =
|
|
497
|
+
const Blockquote = React.forwardRef((props, ref) => React__default.default.createElement(StyledBlockquote, _extends({
|
|
496
498
|
ref: ref
|
|
497
499
|
}, props)));
|
|
498
500
|
Blockquote.displayName = 'Blockquote';
|
package/dist/index.esm.js
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import React, { Children, forwardRef, useRef, useMemo, createContext, useContext } from 'react';
|
|
9
9
|
import PropTypes from 'prop-types';
|
|
10
10
|
import styled, { css } from 'styled-components';
|
|
11
|
-
import { retrieveComponentStyles, DEFAULT_THEME, getColor, getLineHeight } from '@zendeskgarden/react-theming';
|
|
11
|
+
import { retrieveComponentStyles, DEFAULT_THEME, getColor, focusStyles, getLineHeight } from '@zendeskgarden/react-theming';
|
|
12
12
|
import { math } from 'polished';
|
|
13
13
|
import Highlight, { Prism } from 'prism-react-renderer';
|
|
14
14
|
import { useScrollRegion } from '@zendeskgarden/container-scrollregion';
|
|
@@ -80,7 +80,7 @@ const fontStyles = props => {
|
|
|
80
80
|
};
|
|
81
81
|
const StyledFont = styled.div.attrs({
|
|
82
82
|
'data-garden-id': COMPONENT_ID$9,
|
|
83
|
-
'data-garden-version': '8.
|
|
83
|
+
'data-garden-version': '8.69.0'
|
|
84
84
|
}).withConfig({
|
|
85
85
|
displayName: "StyledFont",
|
|
86
86
|
componentId: "sc-1iildbo-0"
|
|
@@ -93,7 +93,7 @@ StyledFont.defaultProps = {
|
|
|
93
93
|
const COMPONENT_ID$8 = 'typography.blockquote';
|
|
94
94
|
const StyledBlockquote = styled.blockquote.attrs({
|
|
95
95
|
'data-garden-id': COMPONENT_ID$8,
|
|
96
|
-
'data-garden-version': '8.
|
|
96
|
+
'data-garden-version': '8.69.0'
|
|
97
97
|
}).withConfig({
|
|
98
98
|
displayName: "StyledBlockquote",
|
|
99
99
|
componentId: "sc-1tt3ye0-0"
|
|
@@ -112,7 +112,7 @@ const colorStyles$3 = props => {
|
|
|
112
112
|
};
|
|
113
113
|
const StyledCode = styled(StyledFont).attrs({
|
|
114
114
|
'data-garden-id': COMPONENT_ID$7,
|
|
115
|
-
'data-garden-version': '8.
|
|
115
|
+
'data-garden-version': '8.69.0',
|
|
116
116
|
as: 'code'
|
|
117
117
|
}).withConfig({
|
|
118
118
|
displayName: "StyledCode",
|
|
@@ -133,7 +133,7 @@ const colorStyles$2 = props => {
|
|
|
133
133
|
};
|
|
134
134
|
const StyledCodeBlock = styled.pre.attrs({
|
|
135
135
|
'data-garden-id': COMPONENT_ID$6,
|
|
136
|
-
'data-garden-version': '8.
|
|
136
|
+
'data-garden-version': '8.69.0'
|
|
137
137
|
}).withConfig({
|
|
138
138
|
displayName: "StyledCodeBlock",
|
|
139
139
|
componentId: "sc-5wky57-0"
|
|
@@ -145,11 +145,13 @@ StyledCodeBlock.defaultProps = {
|
|
|
145
145
|
const COMPONENT_ID$5 = 'typography.codeblock_container';
|
|
146
146
|
const StyledCodeBlockContainer = styled.div.attrs({
|
|
147
147
|
'data-garden-id': COMPONENT_ID$5,
|
|
148
|
-
'data-garden-version': '8.
|
|
148
|
+
'data-garden-version': '8.69.0'
|
|
149
149
|
}).withConfig({
|
|
150
150
|
displayName: "StyledCodeBlockContainer",
|
|
151
151
|
componentId: "sc-14zgbfw-0"
|
|
152
|
-
})(["
|
|
152
|
+
})(["transition:box-shadow 0.1s ease-in-out;overflow:auto;", " ", ";"], props => focusStyles({
|
|
153
|
+
theme: props.theme
|
|
154
|
+
}), props => retrieveComponentStyles(COMPONENT_ID$5, props));
|
|
153
155
|
StyledCodeBlockContainer.defaultProps = {
|
|
154
156
|
theme: DEFAULT_THEME
|
|
155
157
|
};
|
|
@@ -206,7 +208,7 @@ const lineNumberStyles = props => {
|
|
|
206
208
|
};
|
|
207
209
|
const StyledCodeBlockLine = styled(StyledFont).attrs({
|
|
208
210
|
'data-garden-id': COMPONENT_ID$4,
|
|
209
|
-
'data-garden-version': '8.
|
|
211
|
+
'data-garden-version': '8.69.0',
|
|
210
212
|
as: 'code',
|
|
211
213
|
isMonospace: true
|
|
212
214
|
}).withConfig({
|
|
@@ -241,7 +243,7 @@ const colorStyles = props => {
|
|
|
241
243
|
};
|
|
242
244
|
const StyledCodeBlockToken = styled.span.attrs({
|
|
243
245
|
'data-garden-id': COMPONENT_ID$3,
|
|
244
|
-
'data-garden-version': '8.
|
|
246
|
+
'data-garden-version': '8.69.0'
|
|
245
247
|
}).withConfig({
|
|
246
248
|
displayName: "StyledCodeBlockToken",
|
|
247
249
|
componentId: "sc-1hkshdq-0"
|
|
@@ -253,7 +255,7 @@ StyledCodeBlockToken.defaultProps = {
|
|
|
253
255
|
const COMPONENT_ID$2 = 'typography.ellipsis';
|
|
254
256
|
const StyledEllipsis = styled.div.attrs({
|
|
255
257
|
'data-garden-id': COMPONENT_ID$2,
|
|
256
|
-
'data-garden-version': '8.
|
|
258
|
+
'data-garden-version': '8.69.0'
|
|
257
259
|
}).withConfig({
|
|
258
260
|
displayName: "StyledEllipsis",
|
|
259
261
|
componentId: "sc-1u4uqmy-0"
|
|
@@ -277,7 +279,7 @@ const StyledIcon = styled(_ref => {
|
|
|
277
279
|
return React.cloneElement(Children.only(children), props);
|
|
278
280
|
}).attrs({
|
|
279
281
|
'data-garden-id': COMPONENT_ID$1,
|
|
280
|
-
'data-garden-version': '8.
|
|
282
|
+
'data-garden-version': '8.69.0'
|
|
281
283
|
}).withConfig({
|
|
282
284
|
displayName: "StyledIcon",
|
|
283
285
|
componentId: "sc-10rfb5b-0"
|
|
@@ -293,7 +295,7 @@ const listStyles = props => {
|
|
|
293
295
|
const ORDERED_ID$1 = 'typography.ordered_list';
|
|
294
296
|
const StyledOrderedList = styled.ol.attrs({
|
|
295
297
|
'data-garden-id': ORDERED_ID$1,
|
|
296
|
-
'data-garden-version': '8.
|
|
298
|
+
'data-garden-version': '8.69.0'
|
|
297
299
|
}).withConfig({
|
|
298
300
|
displayName: "StyledList__StyledOrderedList",
|
|
299
301
|
componentId: "sc-jdbsfi-0"
|
|
@@ -304,7 +306,7 @@ StyledOrderedList.defaultProps = {
|
|
|
304
306
|
const UNORDERED_ID$1 = 'typography.unordered_list';
|
|
305
307
|
const StyledUnorderedList = styled.ul.attrs({
|
|
306
308
|
'data-garden-id': UNORDERED_ID$1,
|
|
307
|
-
'data-garden-version': '8.
|
|
309
|
+
'data-garden-version': '8.69.0'
|
|
308
310
|
}).withConfig({
|
|
309
311
|
displayName: "StyledList__StyledUnorderedList",
|
|
310
312
|
componentId: "sc-jdbsfi-1"
|
|
@@ -324,7 +326,7 @@ const listItemStyles = props => {
|
|
|
324
326
|
const ORDERED_ID = 'typography.ordered_list_item';
|
|
325
327
|
const StyledOrderedListItem = styled(StyledFont).attrs({
|
|
326
328
|
'data-garden-id': ORDERED_ID,
|
|
327
|
-
'data-garden-version': '8.
|
|
329
|
+
'data-garden-version': '8.69.0',
|
|
328
330
|
as: 'li'
|
|
329
331
|
}).withConfig({
|
|
330
332
|
displayName: "StyledListItem__StyledOrderedListItem",
|
|
@@ -337,7 +339,7 @@ StyledOrderedListItem.defaultProps = {
|
|
|
337
339
|
const UNORDERED_ID = 'typography.unordered_list_item';
|
|
338
340
|
const StyledUnorderedListItem = styled(StyledFont).attrs({
|
|
339
341
|
'data-garden-id': UNORDERED_ID,
|
|
340
|
-
'data-garden-version': '8.
|
|
342
|
+
'data-garden-version': '8.69.0',
|
|
341
343
|
as: 'li'
|
|
342
344
|
}).withConfig({
|
|
343
345
|
displayName: "StyledListItem__StyledUnorderedListItem",
|
|
@@ -351,7 +353,7 @@ StyledUnorderedListItem.defaultProps = {
|
|
|
351
353
|
const COMPONENT_ID = 'typography.paragraph';
|
|
352
354
|
const StyledParagraph = styled.p.attrs({
|
|
353
355
|
'data-garden-id': COMPONENT_ID,
|
|
354
|
-
'data-garden-version': '8.
|
|
356
|
+
'data-garden-version': '8.69.0'
|
|
355
357
|
}).withConfig({
|
|
356
358
|
displayName: "StyledParagraph",
|
|
357
359
|
componentId: "sc-zkuftz-0"
|
|
@@ -483,7 +485,7 @@ XXXL.defaultProps = {
|
|
|
483
485
|
tag: 'div'
|
|
484
486
|
};
|
|
485
487
|
|
|
486
|
-
const Blockquote =
|
|
488
|
+
const Blockquote = forwardRef((props, ref) => React.createElement(StyledBlockquote, _extends({
|
|
487
489
|
ref: ref
|
|
488
490
|
}, props)));
|
|
489
491
|
Blockquote.displayName = 'Blockquote';
|
|
@@ -7,6 +7,6 @@
|
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import { IBlockquoteProps } from '../types';
|
|
9
9
|
/**
|
|
10
|
-
* @extends BlockquoteHTMLAttributes<
|
|
10
|
+
* @extends BlockquoteHTMLAttributes<HTMLQuoteElement>
|
|
11
11
|
*/
|
|
12
|
-
export declare const Blockquote: React.ForwardRefExoticComponent<IBlockquoteProps & React.RefAttributes<
|
|
12
|
+
export declare const Blockquote: React.ForwardRefExoticComponent<IBlockquoteProps & React.RefAttributes<HTMLQuoteElement>>;
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
* Use of this source code is governed under the Apache License, Version 2.0
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
|
-
import { HTMLAttributes } from 'react';
|
|
7
|
+
import React, { HTMLAttributes } from 'react';
|
|
8
8
|
/**
|
|
9
9
|
* @extends HTMLAttributes<HTMLElement>
|
|
10
10
|
*/
|
|
11
11
|
export declare const Icon: {
|
|
12
|
-
(props: HTMLAttributes<HTMLElement>): JSX.Element;
|
|
12
|
+
(props: HTMLAttributes<HTMLElement>): React.JSX.Element;
|
|
13
13
|
displayName: string;
|
|
14
14
|
};
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
* Use of this source code is governed under the Apache License, Version 2.0
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
|
-
import { HTMLAttributes } from 'react';
|
|
7
|
+
import React, { HTMLAttributes } from 'react';
|
|
8
8
|
/**
|
|
9
9
|
* @extends HTMLAttributes<HTMLElement>
|
|
10
10
|
*/
|
|
11
11
|
export declare const StartIcon: {
|
|
12
|
-
(props: HTMLAttributes<HTMLElement>): JSX.Element;
|
|
12
|
+
(props: HTMLAttributes<HTMLElement>): React.JSX.Element;
|
|
13
13
|
displayName: string;
|
|
14
14
|
};
|
|
@@ -23,7 +23,7 @@ export interface ITypescaleMonospaceProps extends ITypescaleProps {
|
|
|
23
23
|
/** Renders with monospace font */
|
|
24
24
|
isMonospace?: boolean;
|
|
25
25
|
}
|
|
26
|
-
export interface IBlockquoteProps extends BlockquoteHTMLAttributes<
|
|
26
|
+
export interface IBlockquoteProps extends BlockquoteHTMLAttributes<HTMLQuoteElement> {
|
|
27
27
|
/** Controls the spacing between sibling blockquotes and paragraphs */
|
|
28
28
|
size?: Size;
|
|
29
29
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zendeskgarden/react-typography",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.69.0",
|
|
4
4
|
"description": "Components relating to typography in the Garden Design System",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Zendesk Garden <garden@zendesk.com>",
|
|
@@ -27,13 +27,13 @@
|
|
|
27
27
|
"prop-types": "^15.5.7"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"@zendeskgarden/react-theming": "^8.
|
|
30
|
+
"@zendeskgarden/react-theming": "^8.67.0",
|
|
31
31
|
"react": ">=16.8.0",
|
|
32
32
|
"react-dom": ">=16.8.0",
|
|
33
33
|
"styled-components": "^4.2.0 || ^5.0.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@zendeskgarden/react-theming": "^8.
|
|
36
|
+
"@zendeskgarden/react-theming": "^8.69.0"
|
|
37
37
|
},
|
|
38
38
|
"keywords": [
|
|
39
39
|
"components",
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"access": "public"
|
|
46
46
|
},
|
|
47
47
|
"zendeskgarden:src": "src/index.ts",
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "0af9ddcc0516d455cd359ae4229c7121edf23060"
|
|
49
49
|
}
|