@zendeskgarden/react-typography 9.0.0-next.21 → 9.0.0-next.23
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/esm/elements/CodeBlock.js +3 -2
- package/dist/esm/styled/StyledBlockquote.js +1 -1
- package/dist/esm/styled/StyledCode.js +1 -1
- package/dist/esm/styled/StyledCodeBlock.js +1 -1
- package/dist/esm/styled/StyledCodeBlockContainer.js +1 -1
- package/dist/esm/styled/StyledCodeBlockLine.js +1 -1
- package/dist/esm/styled/StyledCodeBlockToken.js +1 -1
- package/dist/esm/styled/StyledEllipsis.js +1 -1
- package/dist/esm/styled/StyledFont.js +8 -4
- package/dist/esm/styled/StyledIcon.js +1 -1
- package/dist/esm/styled/StyledList.js +2 -2
- package/dist/esm/styled/StyledListItem.js +3 -3
- package/dist/esm/styled/StyledParagraph.js +1 -1
- package/dist/index.cjs.js +25 -20
- package/dist/typings/elements/lists/OrderedList.d.ts +3 -1
- package/dist/typings/elements/lists/UnorderedList.d.ts +3 -1
- package/dist/typings/elements/span/Span.d.ts +3 -1
- package/dist/typings/styled/StyledIcon.d.ts +0 -1
- package/dist/typings/types/index.d.ts +4 -2
- package/dist/typings/utils/useOrderedListContext.d.ts +0 -1
- package/dist/typings/utils/useUnorderedListContext.d.ts +0 -1
- package/package.json +5 -5
|
@@ -101,12 +101,13 @@ const CodeBlock = React.forwardRef((_ref, ref) => {
|
|
|
101
101
|
}, React.createElement(StyledCodeBlock, Object.assign({
|
|
102
102
|
className: className,
|
|
103
103
|
ref: ref
|
|
104
|
-
}, other), tokens.map((line, index) =>
|
|
104
|
+
}, other), tokens.map((line, index) =>
|
|
105
|
+
React.createElement(StyledCodeBlockLine, Object.assign({}, getLineProps({
|
|
105
106
|
line
|
|
106
107
|
}), {
|
|
107
108
|
key: index,
|
|
108
109
|
language: language,
|
|
109
|
-
isHighlighted: highlightLines
|
|
110
|
+
isHighlighted: highlightLines?.includes(index + 1),
|
|
110
111
|
isNumbered: isNumbered,
|
|
111
112
|
diff: getDiff(line),
|
|
112
113
|
size: size,
|
|
@@ -11,7 +11,7 @@ import { THEME_SIZES } from './StyledFont.js';
|
|
|
11
11
|
const COMPONENT_ID = 'typography.blockquote';
|
|
12
12
|
const StyledBlockquote = styled.blockquote.attrs({
|
|
13
13
|
'data-garden-id': COMPONENT_ID,
|
|
14
|
-
'data-garden-version': '9.0.0-next.
|
|
14
|
+
'data-garden-version': '9.0.0-next.23'
|
|
15
15
|
}).withConfig({
|
|
16
16
|
displayName: "StyledBlockquote",
|
|
17
17
|
componentId: "sc-1tt3ye0-0"
|
|
@@ -50,7 +50,7 @@ const colorStyles = _ref => {
|
|
|
50
50
|
};
|
|
51
51
|
const StyledCode = styled(StyledFont).attrs({
|
|
52
52
|
'data-garden-id': COMPONENT_ID,
|
|
53
|
-
'data-garden-version': '9.0.0-next.
|
|
53
|
+
'data-garden-version': '9.0.0-next.23',
|
|
54
54
|
as: 'code',
|
|
55
55
|
isMonospace: true
|
|
56
56
|
}).withConfig({
|
|
@@ -24,7 +24,7 @@ const colorStyles = _ref => {
|
|
|
24
24
|
};
|
|
25
25
|
const StyledCodeBlock = styled.pre.attrs({
|
|
26
26
|
'data-garden-id': COMPONENT_ID,
|
|
27
|
-
'data-garden-version': '9.0.0-next.
|
|
27
|
+
'data-garden-version': '9.0.0-next.23'
|
|
28
28
|
}).withConfig({
|
|
29
29
|
displayName: "StyledCodeBlock",
|
|
30
30
|
componentId: "sc-5wky57-0"
|
|
@@ -10,7 +10,7 @@ import { focusStyles, retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgar
|
|
|
10
10
|
const COMPONENT_ID = 'typography.codeblock_container';
|
|
11
11
|
const StyledCodeBlockContainer = styled.div.attrs({
|
|
12
12
|
'data-garden-id': COMPONENT_ID,
|
|
13
|
-
'data-garden-version': '9.0.0-next.
|
|
13
|
+
'data-garden-version': '9.0.0-next.23'
|
|
14
14
|
}).withConfig({
|
|
15
15
|
displayName: "StyledCodeBlockContainer",
|
|
16
16
|
componentId: "sc-14zgbfw-0"
|
|
@@ -86,7 +86,7 @@ const lineNumberStyles = _ref2 => {
|
|
|
86
86
|
};
|
|
87
87
|
const StyledCodeBlockLine = styled(StyledFont).attrs({
|
|
88
88
|
'data-garden-id': COMPONENT_ID,
|
|
89
|
-
'data-garden-version': '9.0.0-next.
|
|
89
|
+
'data-garden-version': '9.0.0-next.23',
|
|
90
90
|
as: 'code',
|
|
91
91
|
isMonospace: true
|
|
92
92
|
}).withConfig({
|
|
@@ -171,7 +171,7 @@ const colorStyles = _ref => {
|
|
|
171
171
|
};
|
|
172
172
|
const StyledCodeBlockToken = styled.span.attrs({
|
|
173
173
|
'data-garden-id': COMPONENT_ID,
|
|
174
|
-
'data-garden-version': '9.0.0-next.
|
|
174
|
+
'data-garden-version': '9.0.0-next.23'
|
|
175
175
|
}).withConfig({
|
|
176
176
|
displayName: "StyledCodeBlockToken",
|
|
177
177
|
componentId: "sc-1hkshdq-0"
|
|
@@ -10,7 +10,7 @@ import { retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-the
|
|
|
10
10
|
const COMPONENT_ID = 'typography.ellipsis';
|
|
11
11
|
const StyledEllipsis = styled.div.attrs({
|
|
12
12
|
'data-garden-id': COMPONENT_ID,
|
|
13
|
-
'data-garden-version': '9.0.0-next.
|
|
13
|
+
'data-garden-version': '9.0.0-next.23'
|
|
14
14
|
}).withConfig({
|
|
15
15
|
displayName: "StyledEllipsis",
|
|
16
16
|
componentId: "sc-1u4uqmy-0"
|
|
@@ -54,16 +54,20 @@ const fontStyles = _ref => {
|
|
|
54
54
|
fontWeight = theme.fontWeights.regular;
|
|
55
55
|
}
|
|
56
56
|
if (hue) {
|
|
57
|
-
|
|
57
|
+
const options = hue.includes('.') ? {
|
|
58
|
+
variable: hue,
|
|
59
|
+
theme
|
|
60
|
+
} : {
|
|
58
61
|
hue,
|
|
59
62
|
theme
|
|
60
|
-
}
|
|
63
|
+
};
|
|
64
|
+
color = getColor(options);
|
|
61
65
|
}
|
|
62
|
-
return css(["line-height:", ";color:", ";font-family:", ";font-size:", ";font-weight:", ";direction:", ";"], lineHeight, color, fontFamily, fontSize, fontWeight, direction);
|
|
66
|
+
return css(["transition:color 0.1s ease-in-out;line-height:", ";color:", ";font-family:", ";font-size:", ";font-weight:", ";direction:", ";"], lineHeight, color, fontFamily, fontSize, fontWeight, direction);
|
|
63
67
|
};
|
|
64
68
|
const StyledFont = styled.div.attrs({
|
|
65
69
|
'data-garden-id': COMPONENT_ID,
|
|
66
|
-
'data-garden-version': '9.0.0-next.
|
|
70
|
+
'data-garden-version': '9.0.0-next.23'
|
|
67
71
|
}).withConfig({
|
|
68
72
|
displayName: "StyledFont",
|
|
69
73
|
componentId: "sc-1iildbo-0"
|
|
@@ -15,7 +15,7 @@ const sizeStyles = props => {
|
|
|
15
15
|
};
|
|
16
16
|
const StyledIcon = styled(StyledBaseIcon).attrs({
|
|
17
17
|
'data-garden-id': COMPONENT_ID,
|
|
18
|
-
'data-garden-version': '9.0.0-next.
|
|
18
|
+
'data-garden-version': '9.0.0-next.23'
|
|
19
19
|
}).withConfig({
|
|
20
20
|
displayName: "StyledIcon",
|
|
21
21
|
componentId: "sc-10rfb5b-0"
|
|
@@ -14,7 +14,7 @@ const listStyles = props => {
|
|
|
14
14
|
const ORDERED_ID = 'typography.ordered_list';
|
|
15
15
|
const StyledOrderedList = styled.ol.attrs({
|
|
16
16
|
'data-garden-id': ORDERED_ID,
|
|
17
|
-
'data-garden-version': '9.0.0-next.
|
|
17
|
+
'data-garden-version': '9.0.0-next.23'
|
|
18
18
|
}).withConfig({
|
|
19
19
|
displayName: "StyledList__StyledOrderedList",
|
|
20
20
|
componentId: "sc-jdbsfi-0"
|
|
@@ -25,7 +25,7 @@ StyledOrderedList.defaultProps = {
|
|
|
25
25
|
const UNORDERED_ID = 'typography.unordered_list';
|
|
26
26
|
const StyledUnorderedList = styled.ul.attrs({
|
|
27
27
|
'data-garden-id': UNORDERED_ID,
|
|
28
|
-
'data-garden-version': '9.0.0-next.
|
|
28
|
+
'data-garden-version': '9.0.0-next.23'
|
|
29
29
|
}).withConfig({
|
|
30
30
|
displayName: "StyledList__StyledUnorderedList",
|
|
31
31
|
componentId: "sc-jdbsfi-1"
|
|
@@ -13,7 +13,7 @@ import { StyledFont } from './StyledFont.js';
|
|
|
13
13
|
const listItemPaddingStyles = props => {
|
|
14
14
|
const base = props.theme.space.base;
|
|
15
15
|
const paddingTop = props.space === 'large' ? `${base * 2}px` : `${base}px`;
|
|
16
|
-
return css(["padding-top:", ";", " > &:first-child,", " > &:first-child{padding-top:0;}", " ", " > &:first-child,", " ", " > &:first-child,", " ", " > &:first-child,", " ", " > &:first-child{padding-top:", ";}"], paddingTop, StyledOrderedList, StyledUnorderedList, StyledOrderedList, StyledOrderedList, StyledOrderedList, StyledUnorderedList, StyledUnorderedList, StyledUnorderedList, StyledUnorderedList,
|
|
16
|
+
return css(["padding-top:", ";", " > &:first-child,", " > &:first-child{padding-top:0;}", " ", " > &:first-child,", " ", " > &:first-child,", " ", " > &:first-child,", " ", " > &:first-child{padding-top:", ";}"], paddingTop, StyledOrderedList, StyledUnorderedList, StyledOrderedList, StyledOrderedList, StyledOrderedList, StyledUnorderedList, StyledUnorderedList, StyledUnorderedList, StyledUnorderedList, StyledOrderedList, paddingTop);
|
|
17
17
|
};
|
|
18
18
|
const listItemStyles = props => {
|
|
19
19
|
return css(["line-height:", ";", ";"], getLineHeight(props.theme.lineHeights.md, props.theme.fontSizes.md), props.space !== 'small' && listItemPaddingStyles(props));
|
|
@@ -21,7 +21,7 @@ const listItemStyles = props => {
|
|
|
21
21
|
const ORDERED_ID = 'typography.ordered_list_item';
|
|
22
22
|
const StyledOrderedListItem = styled(StyledFont).attrs({
|
|
23
23
|
'data-garden-id': ORDERED_ID,
|
|
24
|
-
'data-garden-version': '9.0.0-next.
|
|
24
|
+
'data-garden-version': '9.0.0-next.23',
|
|
25
25
|
as: 'li'
|
|
26
26
|
}).withConfig({
|
|
27
27
|
displayName: "StyledListItem__StyledOrderedListItem",
|
|
@@ -34,7 +34,7 @@ StyledOrderedListItem.defaultProps = {
|
|
|
34
34
|
const UNORDERED_ID = 'typography.unordered_list_item';
|
|
35
35
|
const StyledUnorderedListItem = styled(StyledFont).attrs({
|
|
36
36
|
'data-garden-id': UNORDERED_ID,
|
|
37
|
-
'data-garden-version': '9.0.0-next.
|
|
37
|
+
'data-garden-version': '9.0.0-next.23',
|
|
38
38
|
as: 'li'
|
|
39
39
|
}).withConfig({
|
|
40
40
|
displayName: "StyledListItem__StyledUnorderedListItem",
|
|
@@ -11,7 +11,7 @@ import { THEME_SIZES } from './StyledFont.js';
|
|
|
11
11
|
const COMPONENT_ID = 'typography.paragraph';
|
|
12
12
|
const StyledParagraph = styled.p.attrs({
|
|
13
13
|
'data-garden-id': COMPONENT_ID,
|
|
14
|
-
'data-garden-version': '9.0.0-next.
|
|
14
|
+
'data-garden-version': '9.0.0-next.23'
|
|
15
15
|
}).withConfig({
|
|
16
16
|
displayName: "StyledParagraph",
|
|
17
17
|
componentId: "sc-zkuftz-0"
|
package/dist/index.cjs.js
CHANGED
|
@@ -72,16 +72,20 @@ const fontStyles = _ref => {
|
|
|
72
72
|
fontWeight = theme.fontWeights.regular;
|
|
73
73
|
}
|
|
74
74
|
if (hue) {
|
|
75
|
-
|
|
75
|
+
const options = hue.includes('.') ? {
|
|
76
|
+
variable: hue,
|
|
77
|
+
theme
|
|
78
|
+
} : {
|
|
76
79
|
hue,
|
|
77
80
|
theme
|
|
78
|
-
}
|
|
81
|
+
};
|
|
82
|
+
color = reactTheming.getColor(options);
|
|
79
83
|
}
|
|
80
|
-
return styled.css(["line-height:", ";color:", ";font-family:", ";font-size:", ";font-weight:", ";direction:", ";"], lineHeight, color, fontFamily, fontSize, fontWeight, direction);
|
|
84
|
+
return styled.css(["transition:color 0.1s ease-in-out;line-height:", ";color:", ";font-family:", ";font-size:", ";font-weight:", ";direction:", ";"], lineHeight, color, fontFamily, fontSize, fontWeight, direction);
|
|
81
85
|
};
|
|
82
86
|
const StyledFont = styled__default.default.div.attrs({
|
|
83
87
|
'data-garden-id': COMPONENT_ID$9,
|
|
84
|
-
'data-garden-version': '9.0.0-next.
|
|
88
|
+
'data-garden-version': '9.0.0-next.23'
|
|
85
89
|
}).withConfig({
|
|
86
90
|
displayName: "StyledFont",
|
|
87
91
|
componentId: "sc-1iildbo-0"
|
|
@@ -94,7 +98,7 @@ StyledFont.defaultProps = {
|
|
|
94
98
|
const COMPONENT_ID$8 = 'typography.blockquote';
|
|
95
99
|
const StyledBlockquote = styled__default.default.blockquote.attrs({
|
|
96
100
|
'data-garden-id': COMPONENT_ID$8,
|
|
97
|
-
'data-garden-version': '9.0.0-next.
|
|
101
|
+
'data-garden-version': '9.0.0-next.23'
|
|
98
102
|
}).withConfig({
|
|
99
103
|
displayName: "StyledBlockquote",
|
|
100
104
|
componentId: "sc-1tt3ye0-0"
|
|
@@ -148,7 +152,7 @@ const colorStyles$3 = _ref => {
|
|
|
148
152
|
};
|
|
149
153
|
const StyledCode = styled__default.default(StyledFont).attrs({
|
|
150
154
|
'data-garden-id': COMPONENT_ID$7,
|
|
151
|
-
'data-garden-version': '9.0.0-next.
|
|
155
|
+
'data-garden-version': '9.0.0-next.23',
|
|
152
156
|
as: 'code',
|
|
153
157
|
isMonospace: true
|
|
154
158
|
}).withConfig({
|
|
@@ -178,7 +182,7 @@ const colorStyles$2 = _ref => {
|
|
|
178
182
|
};
|
|
179
183
|
const StyledCodeBlock = styled__default.default.pre.attrs({
|
|
180
184
|
'data-garden-id': COMPONENT_ID$6,
|
|
181
|
-
'data-garden-version': '9.0.0-next.
|
|
185
|
+
'data-garden-version': '9.0.0-next.23'
|
|
182
186
|
}).withConfig({
|
|
183
187
|
displayName: "StyledCodeBlock",
|
|
184
188
|
componentId: "sc-5wky57-0"
|
|
@@ -190,7 +194,7 @@ StyledCodeBlock.defaultProps = {
|
|
|
190
194
|
const COMPONENT_ID$5 = 'typography.codeblock_container';
|
|
191
195
|
const StyledCodeBlockContainer = styled__default.default.div.attrs({
|
|
192
196
|
'data-garden-id': COMPONENT_ID$5,
|
|
193
|
-
'data-garden-version': '9.0.0-next.
|
|
197
|
+
'data-garden-version': '9.0.0-next.23'
|
|
194
198
|
}).withConfig({
|
|
195
199
|
displayName: "StyledCodeBlockContainer",
|
|
196
200
|
componentId: "sc-14zgbfw-0"
|
|
@@ -279,7 +283,7 @@ const lineNumberStyles = _ref2 => {
|
|
|
279
283
|
};
|
|
280
284
|
const StyledCodeBlockLine = styled__default.default(StyledFont).attrs({
|
|
281
285
|
'data-garden-id': COMPONENT_ID$4,
|
|
282
|
-
'data-garden-version': '9.0.0-next.
|
|
286
|
+
'data-garden-version': '9.0.0-next.23',
|
|
283
287
|
as: 'code',
|
|
284
288
|
isMonospace: true
|
|
285
289
|
}).withConfig({
|
|
@@ -453,7 +457,7 @@ const colorStyles = _ref => {
|
|
|
453
457
|
};
|
|
454
458
|
const StyledCodeBlockToken = styled__default.default.span.attrs({
|
|
455
459
|
'data-garden-id': COMPONENT_ID$3,
|
|
456
|
-
'data-garden-version': '9.0.0-next.
|
|
460
|
+
'data-garden-version': '9.0.0-next.23'
|
|
457
461
|
}).withConfig({
|
|
458
462
|
displayName: "StyledCodeBlockToken",
|
|
459
463
|
componentId: "sc-1hkshdq-0"
|
|
@@ -465,7 +469,7 @@ StyledCodeBlockToken.defaultProps = {
|
|
|
465
469
|
const COMPONENT_ID$2 = 'typography.ellipsis';
|
|
466
470
|
const StyledEllipsis = styled__default.default.div.attrs({
|
|
467
471
|
'data-garden-id': COMPONENT_ID$2,
|
|
468
|
-
'data-garden-version': '9.0.0-next.
|
|
472
|
+
'data-garden-version': '9.0.0-next.23'
|
|
469
473
|
}).withConfig({
|
|
470
474
|
displayName: "StyledEllipsis",
|
|
471
475
|
componentId: "sc-1u4uqmy-0"
|
|
@@ -482,7 +486,7 @@ const sizeStyles = props => {
|
|
|
482
486
|
};
|
|
483
487
|
const StyledIcon = styled__default.default(reactTheming.StyledBaseIcon).attrs({
|
|
484
488
|
'data-garden-id': COMPONENT_ID$1,
|
|
485
|
-
'data-garden-version': '9.0.0-next.
|
|
489
|
+
'data-garden-version': '9.0.0-next.23'
|
|
486
490
|
}).withConfig({
|
|
487
491
|
displayName: "StyledIcon",
|
|
488
492
|
componentId: "sc-10rfb5b-0"
|
|
@@ -498,7 +502,7 @@ const listStyles = props => {
|
|
|
498
502
|
const ORDERED_ID$1 = 'typography.ordered_list';
|
|
499
503
|
const StyledOrderedList = styled__default.default.ol.attrs({
|
|
500
504
|
'data-garden-id': ORDERED_ID$1,
|
|
501
|
-
'data-garden-version': '9.0.0-next.
|
|
505
|
+
'data-garden-version': '9.0.0-next.23'
|
|
502
506
|
}).withConfig({
|
|
503
507
|
displayName: "StyledList__StyledOrderedList",
|
|
504
508
|
componentId: "sc-jdbsfi-0"
|
|
@@ -509,7 +513,7 @@ StyledOrderedList.defaultProps = {
|
|
|
509
513
|
const UNORDERED_ID$1 = 'typography.unordered_list';
|
|
510
514
|
const StyledUnorderedList = styled__default.default.ul.attrs({
|
|
511
515
|
'data-garden-id': UNORDERED_ID$1,
|
|
512
|
-
'data-garden-version': '9.0.0-next.
|
|
516
|
+
'data-garden-version': '9.0.0-next.23'
|
|
513
517
|
}).withConfig({
|
|
514
518
|
displayName: "StyledList__StyledUnorderedList",
|
|
515
519
|
componentId: "sc-jdbsfi-1"
|
|
@@ -521,7 +525,7 @@ StyledUnorderedList.defaultProps = {
|
|
|
521
525
|
const listItemPaddingStyles = props => {
|
|
522
526
|
const base = props.theme.space.base;
|
|
523
527
|
const paddingTop = props.space === 'large' ? `${base * 2}px` : `${base}px`;
|
|
524
|
-
return styled.css(["padding-top:", ";", " > &:first-child,", " > &:first-child{padding-top:0;}", " ", " > &:first-child,", " ", " > &:first-child,", " ", " > &:first-child,", " ", " > &:first-child{padding-top:", ";}"], paddingTop, StyledOrderedList, StyledUnorderedList, StyledOrderedList, StyledOrderedList, StyledOrderedList, StyledUnorderedList, StyledUnorderedList, StyledUnorderedList, StyledUnorderedList,
|
|
528
|
+
return styled.css(["padding-top:", ";", " > &:first-child,", " > &:first-child{padding-top:0;}", " ", " > &:first-child,", " ", " > &:first-child,", " ", " > &:first-child,", " ", " > &:first-child{padding-top:", ";}"], paddingTop, StyledOrderedList, StyledUnorderedList, StyledOrderedList, StyledOrderedList, StyledOrderedList, StyledUnorderedList, StyledUnorderedList, StyledUnorderedList, StyledUnorderedList, StyledOrderedList, paddingTop);
|
|
525
529
|
};
|
|
526
530
|
const listItemStyles = props => {
|
|
527
531
|
return styled.css(["line-height:", ";", ";"], reactTheming.getLineHeight(props.theme.lineHeights.md, props.theme.fontSizes.md), props.space !== 'small' && listItemPaddingStyles(props));
|
|
@@ -529,7 +533,7 @@ const listItemStyles = props => {
|
|
|
529
533
|
const ORDERED_ID = 'typography.ordered_list_item';
|
|
530
534
|
const StyledOrderedListItem = styled__default.default(StyledFont).attrs({
|
|
531
535
|
'data-garden-id': ORDERED_ID,
|
|
532
|
-
'data-garden-version': '9.0.0-next.
|
|
536
|
+
'data-garden-version': '9.0.0-next.23',
|
|
533
537
|
as: 'li'
|
|
534
538
|
}).withConfig({
|
|
535
539
|
displayName: "StyledListItem__StyledOrderedListItem",
|
|
@@ -542,7 +546,7 @@ StyledOrderedListItem.defaultProps = {
|
|
|
542
546
|
const UNORDERED_ID = 'typography.unordered_list_item';
|
|
543
547
|
const StyledUnorderedListItem = styled__default.default(StyledFont).attrs({
|
|
544
548
|
'data-garden-id': UNORDERED_ID,
|
|
545
|
-
'data-garden-version': '9.0.0-next.
|
|
549
|
+
'data-garden-version': '9.0.0-next.23',
|
|
546
550
|
as: 'li'
|
|
547
551
|
}).withConfig({
|
|
548
552
|
displayName: "StyledListItem__StyledUnorderedListItem",
|
|
@@ -556,7 +560,7 @@ StyledUnorderedListItem.defaultProps = {
|
|
|
556
560
|
const COMPONENT_ID = 'typography.paragraph';
|
|
557
561
|
const StyledParagraph = styled__default.default.p.attrs({
|
|
558
562
|
'data-garden-id': COMPONENT_ID,
|
|
559
|
-
'data-garden-version': '9.0.0-next.
|
|
563
|
+
'data-garden-version': '9.0.0-next.23'
|
|
560
564
|
}).withConfig({
|
|
561
565
|
displayName: "StyledParagraph",
|
|
562
566
|
componentId: "sc-zkuftz-0"
|
|
@@ -798,12 +802,13 @@ const CodeBlock = React__default.default.forwardRef((_ref, ref) => {
|
|
|
798
802
|
}, React__default.default.createElement(StyledCodeBlock, Object.assign({
|
|
799
803
|
className: className,
|
|
800
804
|
ref: ref
|
|
801
|
-
}, other), tokens.map((line, index) =>
|
|
805
|
+
}, other), tokens.map((line, index) =>
|
|
806
|
+
React__default.default.createElement(StyledCodeBlockLine, Object.assign({}, getLineProps({
|
|
802
807
|
line
|
|
803
808
|
}), {
|
|
804
809
|
key: index,
|
|
805
810
|
language: language,
|
|
806
|
-
isHighlighted: highlightLines
|
|
811
|
+
isHighlighted: highlightLines?.includes(index + 1),
|
|
807
812
|
isNumbered: isNumbered,
|
|
808
813
|
diff: getDiff(line),
|
|
809
814
|
size: size,
|
|
@@ -7,9 +7,11 @@
|
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import { Item } from './OrderedListItem';
|
|
9
9
|
import { IOrderedListProps } from '../../types';
|
|
10
|
+
declare const OrderedListComponent: React.ForwardRefExoticComponent<IOrderedListProps & React.RefAttributes<HTMLOListElement>>;
|
|
10
11
|
/**
|
|
11
12
|
* @extends OlHTMLAttributes<HTMLOListElement>
|
|
12
13
|
*/
|
|
13
|
-
export declare const OrderedList:
|
|
14
|
+
export declare const OrderedList: typeof OrderedListComponent & {
|
|
14
15
|
Item: typeof Item;
|
|
15
16
|
};
|
|
17
|
+
export {};
|
|
@@ -7,9 +7,11 @@
|
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import { Item } from './UnorderedListItem';
|
|
9
9
|
import { IUnorderedListProps } from '../../types';
|
|
10
|
+
declare const UnorderedListComponent: React.ForwardRefExoticComponent<IUnorderedListProps & React.RefAttributes<HTMLUListElement>>;
|
|
10
11
|
/**
|
|
11
12
|
* @extends HTMLAttributes<HTMLUListElement>
|
|
12
13
|
*/
|
|
13
|
-
export declare const UnorderedList:
|
|
14
|
+
export declare const UnorderedList: typeof UnorderedListComponent & {
|
|
14
15
|
Item: typeof Item;
|
|
15
16
|
};
|
|
17
|
+
export {};
|
|
@@ -8,10 +8,12 @@ import React from 'react';
|
|
|
8
8
|
import { ISpanProps } from '../../types';
|
|
9
9
|
import { StartIcon } from './StartIcon';
|
|
10
10
|
import { Icon } from './Icon';
|
|
11
|
+
declare const SpanComponent: React.ForwardRefExoticComponent<ISpanProps & React.RefAttributes<HTMLSpanElement>>;
|
|
11
12
|
/**
|
|
12
13
|
* @extends HTMLAttributes<HTMLSpanElement>
|
|
13
14
|
*/
|
|
14
|
-
export declare const Span:
|
|
15
|
+
export declare const Span: typeof SpanComponent & {
|
|
15
16
|
Icon: typeof Icon;
|
|
16
17
|
StartIcon: typeof StartIcon;
|
|
17
18
|
};
|
|
19
|
+
export {};
|
|
@@ -4,7 +4,6 @@
|
|
|
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
|
-
/// <reference types="react" />
|
|
8
7
|
import { DefaultTheme } from 'styled-components';
|
|
9
8
|
interface IStyledIconProps {
|
|
10
9
|
$isStart?: boolean;
|
|
@@ -77,8 +77,10 @@ export interface ISpanProps extends HTMLAttributes<HTMLSpanElement> {
|
|
|
77
77
|
/** Renders with monospace font */
|
|
78
78
|
isMonospace?: boolean;
|
|
79
79
|
/**
|
|
80
|
-
* Applies a font color. Use [
|
|
81
|
-
*
|
|
80
|
+
* Applies a font color. Use a [color
|
|
81
|
+
* variable](/components/theme-object#colors) key (i.e. `foreground.subtle`)
|
|
82
|
+
* or [PALETTE](/components/palette#palette) colors when possible. Accepts all
|
|
83
|
+
* hex values.
|
|
82
84
|
*/
|
|
83
85
|
hue?: string;
|
|
84
86
|
/** Hides the span visually without hiding it from screen readers */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zendeskgarden/react-typography",
|
|
3
|
-
"version": "9.0.0-next.
|
|
3
|
+
"version": "9.0.0-next.23",
|
|
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>",
|
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"@zendeskgarden/react-theming": ">=9.0.0-next",
|
|
32
|
-
"react": "
|
|
33
|
-
"react-dom": "
|
|
32
|
+
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
|
33
|
+
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
|
34
34
|
"styled-components": "^5.3.1"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@zendeskgarden/react-theming": "^9.0.0-next.
|
|
37
|
+
"@zendeskgarden/react-theming": "^9.0.0-next.23"
|
|
38
38
|
},
|
|
39
39
|
"keywords": [
|
|
40
40
|
"components",
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"access": "public"
|
|
47
47
|
},
|
|
48
48
|
"zendeskgarden:src": "src/index.ts",
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "5e7d2ed69a1615e09406a3f9285359346bb90cc7"
|
|
50
50
|
}
|