@zendeskgarden/react-typography 9.1.1 → 9.1.2

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.
Files changed (32) hide show
  1. package/dist/esm/elements/Code.js +3 -1
  2. package/dist/esm/elements/CodeBlock.js +5 -5
  3. package/dist/esm/elements/LG.js +6 -2
  4. package/dist/esm/elements/MD.js +6 -2
  5. package/dist/esm/elements/SM.js +5 -1
  6. package/dist/esm/elements/XL.js +4 -2
  7. package/dist/esm/elements/XXL.js +4 -2
  8. package/dist/esm/elements/XXXL.js +6 -3
  9. package/dist/esm/elements/lists/OrderedList.js +1 -1
  10. package/dist/esm/elements/lists/OrderedListItem.js +1 -1
  11. package/dist/esm/elements/lists/UnorderedList.js +1 -1
  12. package/dist/esm/elements/lists/UnorderedListItem.js +1 -1
  13. package/dist/esm/elements/span/Span.js +8 -2
  14. package/dist/esm/styled/StyledBlockquote.js +1 -1
  15. package/dist/esm/styled/StyledCode.js +6 -6
  16. package/dist/esm/styled/StyledCodeBlock.js +1 -1
  17. package/dist/esm/styled/StyledCodeBlockContainer.js +1 -1
  18. package/dist/esm/styled/StyledCodeBlockLine.js +13 -13
  19. package/dist/esm/styled/StyledCodeBlockToken.js +1 -1
  20. package/dist/esm/styled/StyledEllipsis.js +1 -1
  21. package/dist/esm/styled/StyledFont.js +18 -19
  22. package/dist/esm/styled/StyledIcon.js +1 -1
  23. package/dist/esm/styled/StyledList.js +3 -3
  24. package/dist/esm/styled/StyledListItem.js +6 -6
  25. package/dist/esm/styled/StyledParagraph.js +1 -1
  26. package/dist/index.cjs.js +103 -77
  27. package/dist/typings/styled/StyledCode.d.ts +4 -4
  28. package/dist/typings/styled/StyledCodeBlockLine.d.ts +7 -7
  29. package/dist/typings/styled/StyledFont.d.ts +4 -4
  30. package/dist/typings/styled/StyledList.d.ts +2 -2
  31. package/dist/typings/styled/StyledListItem.d.ts +1 -1
  32. package/package.json +3 -3
@@ -23,11 +23,13 @@ import '../styled/StyledParagraph.js';
23
23
  const Code = forwardRef((_ref, ref) => {
24
24
  let {
25
25
  hue,
26
+ size,
26
27
  ...other
27
28
  } = _ref;
28
29
  return React.createElement(StyledCode, Object.assign({
29
30
  ref: ref,
30
- hue: hue
31
+ $hue: hue,
32
+ $size: size
31
33
  }, other));
32
34
  });
33
35
  Code.displayName = 'Code';
@@ -88,11 +88,11 @@ const CodeBlock = React.forwardRef((_ref, ref) => {
88
88
  line
89
89
  }), {
90
90
  key: index,
91
- language: language,
92
- isHighlighted: highlightLines?.includes(index + 1),
93
- isNumbered: isNumbered,
94
- diff: getDiff(line),
95
- size: size,
91
+ $language: language,
92
+ $isHighlighted: highlightLines?.includes(index + 1),
93
+ $isNumbered: isNumbered,
94
+ $diff: getDiff(line),
95
+ $size: size,
96
96
  style: undefined
97
97
  }), line.map((token, tokenKey) => React.createElement(StyledCodeBlockToken, Object.assign({}, getTokenProps({
98
98
  token
@@ -21,13 +21,17 @@ import '../styled/StyledParagraph.js';
21
21
 
22
22
  const LG = forwardRef((_ref, ref) => {
23
23
  let {
24
+ isBold,
25
+ isMonospace,
24
26
  tag,
25
27
  ...other
26
28
  } = _ref;
27
29
  return React.createElement(StyledFont, Object.assign({
30
+ $isBold: isBold,
31
+ $isMonospace: isMonospace,
32
+ $size: "large",
28
33
  as: tag,
29
- ref: ref,
30
- size: "large"
34
+ ref: ref
31
35
  }, other));
32
36
  });
33
37
  LG.displayName = 'LG';
@@ -21,13 +21,17 @@ import '../styled/StyledParagraph.js';
21
21
 
22
22
  const MD = forwardRef((_ref, ref) => {
23
23
  let {
24
+ isBold,
25
+ isMonospace,
24
26
  tag,
25
27
  ...other
26
28
  } = _ref;
27
29
  return React.createElement(StyledFont, Object.assign({
30
+ $isBold: isBold,
31
+ $isMonospace: isMonospace,
32
+ $size: "medium",
28
33
  as: tag,
29
- ref: ref,
30
- size: "medium"
34
+ ref: ref
31
35
  }, other));
32
36
  });
33
37
  MD.displayName = 'MD';
@@ -21,13 +21,17 @@ import '../styled/StyledParagraph.js';
21
21
 
22
22
  const SM = forwardRef((_ref, ref) => {
23
23
  let {
24
+ isBold,
25
+ isMonospace,
24
26
  tag,
25
27
  ...other
26
28
  } = _ref;
27
29
  return React.createElement(StyledFont, Object.assign({
30
+ $isBold: isBold,
31
+ $isMonospace: isMonospace,
28
32
  as: tag,
29
33
  ref: ref,
30
- size: "small"
34
+ $size: "small"
31
35
  }, other));
32
36
  });
33
37
  SM.displayName = 'SM';
@@ -21,13 +21,15 @@ import '../styled/StyledParagraph.js';
21
21
 
22
22
  const XL = forwardRef((_ref, ref) => {
23
23
  let {
24
+ isBold,
24
25
  tag,
25
26
  ...other
26
27
  } = _ref;
27
28
  return React.createElement(StyledFont, Object.assign({
28
- as: tag,
29
+ $size: "extralarge",
30
+ $isBold: isBold,
29
31
  ref: ref,
30
- size: "extralarge"
32
+ as: tag
31
33
  }, other));
32
34
  });
33
35
  XL.displayName = 'XL';
@@ -21,13 +21,15 @@ import '../styled/StyledParagraph.js';
21
21
 
22
22
  const XXL = forwardRef((_ref, ref) => {
23
23
  let {
24
+ isBold,
24
25
  tag,
25
26
  ...other
26
27
  } = _ref;
27
28
  return React.createElement(StyledFont, Object.assign({
28
- as: tag,
29
+ $size: "2xlarge",
30
+ $isBold: isBold,
29
31
  ref: ref,
30
- size: "2xlarge"
32
+ as: tag
31
33
  }, other));
32
34
  });
33
35
  XXL.displayName = 'XXL';
@@ -21,14 +21,17 @@ import '../styled/StyledParagraph.js';
21
21
 
22
22
  const XXXL = forwardRef((_ref, ref) => {
23
23
  let {
24
+ isBold,
24
25
  tag,
25
26
  ...other
26
27
  } = _ref;
27
28
  return React.createElement(StyledFont, Object.assign({
29
+ $isBold: isBold,
30
+ $size: "3xlarge"
31
+ }, other, {
28
32
  as: tag,
29
- ref: ref,
30
- size: "3xlarge"
31
- }, other));
33
+ ref: ref
34
+ }));
32
35
  });
33
36
  XXXL.displayName = 'XXXL';
34
37
  XXXL.propTypes = {
@@ -35,7 +35,7 @@ const OrderedListComponent = React.forwardRef((_ref, ref) => {
35
35
  value: value
36
36
  }, React.createElement(StyledOrderedList, Object.assign({
37
37
  ref: ref,
38
- listType: type
38
+ $listType: type
39
39
  }, other)));
40
40
  });
41
41
  OrderedListComponent.displayName = 'OrderedList';
@@ -25,7 +25,7 @@ const OrderedListItem = forwardRef((props, ref) => {
25
25
  } = useOrderedListContext();
26
26
  return React.createElement(StyledOrderedListItem, Object.assign({
27
27
  ref: ref,
28
- space: size
28
+ $space: size
29
29
  }, props));
30
30
  });
31
31
  OrderedListItem.displayName = 'OrderedList.Item';
@@ -35,7 +35,7 @@ const UnorderedListComponent = forwardRef((_ref, ref) => {
35
35
  value: value
36
36
  }, React.createElement(StyledUnorderedList, Object.assign({
37
37
  ref: ref,
38
- listType: type
38
+ $listType: type
39
39
  }, other)));
40
40
  });
41
41
  UnorderedListComponent.displayName = 'UnorderedList';
@@ -25,7 +25,7 @@ const UnorderedListItem = forwardRef((props, ref) => {
25
25
  } = useUnorderedListContext();
26
26
  return React.createElement(StyledUnorderedListItem, Object.assign({
27
27
  ref: ref,
28
- space: size
28
+ $space: size
29
29
  }, props));
30
30
  });
31
31
  UnorderedListItem.displayName = 'UnorderedList.Item';
@@ -23,13 +23,19 @@ import { Icon } from './Icon.js';
23
23
 
24
24
  const SpanComponent = forwardRef((_ref, ref) => {
25
25
  let {
26
+ hue,
27
+ isBold,
28
+ isMonospace,
26
29
  tag,
27
30
  ...other
28
31
  } = _ref;
29
32
  return React.createElement(StyledFont, Object.assign({
33
+ $hue: hue,
34
+ $isBold: isBold,
35
+ $isMonospace: isMonospace,
36
+ $size: "inherit",
30
37
  as: tag,
31
- ref: ref,
32
- size: "inherit"
38
+ ref: ref
33
39
  }, other));
34
40
  });
35
41
  SpanComponent.displayName = 'Span';
@@ -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.1.1'
14
+ 'data-garden-version': '9.1.2'
15
15
  }).withConfig({
16
16
  displayName: "StyledBlockquote",
17
17
  componentId: "sc-1tt3ye0-0"
@@ -11,7 +11,7 @@ import { StyledFont } from './StyledFont.js';
11
11
  const COMPONENT_ID = 'typography.code';
12
12
  const colorStyles = _ref => {
13
13
  let {
14
- hue,
14
+ $hue,
15
15
  theme
16
16
  } = _ref;
17
17
  const bgColorArgs = {
@@ -26,7 +26,7 @@ const colorStyles = _ref => {
26
26
  const fgColorArgs = {
27
27
  theme
28
28
  };
29
- switch (hue) {
29
+ switch ($hue) {
30
30
  case 'green':
31
31
  bgColorArgs.variable = 'background.success';
32
32
  fgColorArgs.variable = 'foreground.successEmphasis';
@@ -50,17 +50,17 @@ const colorStyles = _ref => {
50
50
  };
51
51
  const StyledCode = styled(StyledFont).attrs({
52
52
  'data-garden-id': COMPONENT_ID,
53
- 'data-garden-version': '9.1.1',
53
+ 'data-garden-version': '9.1.2',
54
54
  as: 'code',
55
- isMonospace: true
55
+ $isMonospace: true
56
56
  }).withConfig({
57
57
  displayName: "StyledCode",
58
58
  componentId: "sc-l8yvmf-0"
59
59
  })(["border-radius:", ";padding:1.5px;", ";", ";"], props => props.theme.borderRadii.sm, props => colorStyles(props), props => retrieveComponentStyles(COMPONENT_ID, props));
60
60
  StyledCode.defaultProps = {
61
61
  theme: DEFAULT_THEME,
62
- hue: 'grey',
63
- size: 'inherit'
62
+ $hue: 'grey',
63
+ $size: 'inherit'
64
64
  };
65
65
 
66
66
  export { StyledCode };
@@ -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.1.1'
27
+ 'data-garden-version': '9.1.2'
28
28
  }).withConfig({
29
29
  displayName: "StyledCodeBlock",
30
30
  componentId: "sc-5wky57-0"
@@ -10,7 +10,7 @@ import { focusStyles, retrieveComponentStyles } from '@zendeskgarden/react-themi
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.1.1'
13
+ 'data-garden-version': '9.1.2'
14
14
  }).withConfig({
15
15
  displayName: "StyledCodeBlockContainer",
16
16
  componentId: "sc-14zgbfw-0"
@@ -12,11 +12,11 @@ const COMPONENT_ID = 'typography.codeblock_code';
12
12
  const colorStyles = _ref => {
13
13
  let {
14
14
  theme,
15
- diff,
16
- isHighlighted
15
+ $diff,
16
+ $isHighlighted
17
17
  } = _ref;
18
18
  let backgroundColor;
19
- if (diff) {
19
+ if ($diff) {
20
20
  const hues = {
21
21
  hunk: 'royal',
22
22
  add: 'lime',
@@ -25,7 +25,7 @@ const colorStyles = _ref => {
25
25
  };
26
26
  backgroundColor = getColor({
27
27
  theme,
28
- hue: hues[diff],
28
+ hue: hues[$diff],
29
29
  dark: {
30
30
  shade: 600
31
31
  },
@@ -34,7 +34,7 @@ const colorStyles = _ref => {
34
34
  },
35
35
  transparency: theme.opacity[300]
36
36
  });
37
- } else if (isHighlighted) {
37
+ } else if ($isHighlighted) {
38
38
  backgroundColor = getColor({
39
39
  theme,
40
40
  dark: {
@@ -52,8 +52,8 @@ const colorStyles = _ref => {
52
52
  const lineNumberStyles = _ref2 => {
53
53
  let {
54
54
  theme,
55
- language,
56
- size
55
+ $language,
56
+ $size
57
57
  } = _ref2;
58
58
  const color = getColor({
59
59
  theme,
@@ -63,11 +63,11 @@ const lineNumberStyles = _ref2 => {
63
63
  }
64
64
  });
65
65
  let padding;
66
- if (language && language === 'diff') {
66
+ if ($language && $language === 'diff') {
67
67
  padding = 0;
68
- } else if (size === 'small') {
68
+ } else if ($size === 'small') {
69
69
  padding = theme.space.base * 4;
70
- } else if (size === 'large') {
70
+ } else if ($size === 'large') {
71
71
  padding = theme.space.base * 7;
72
72
  } else {
73
73
  padding = theme.space.base * 6;
@@ -86,12 +86,12 @@ const lineNumberStyles = _ref2 => {
86
86
  };
87
87
  const StyledCodeBlockLine = styled(StyledFont).attrs({
88
88
  'data-garden-id': COMPONENT_ID,
89
- 'data-garden-version': '9.1.1',
89
+ 'data-garden-version': '9.1.2',
90
90
  as: 'code',
91
- isMonospace: true
91
+ $isMonospace: true
92
92
  }).withConfig({
93
93
  displayName: "StyledCodeBlockLine",
94
94
  componentId: "sc-1goay17-0"
95
- })(["display:table-row;height:", ";direction:ltr;", ";", ";&::after{display:inline-block;width:", "px;content:'';}", ";"], props => props.theme.lineHeights[THEME_SIZES[props.size]], colorStyles, props => props.isNumbered && lineNumberStyles(props), props => props.theme.space.base * 3, props => retrieveComponentStyles(COMPONENT_ID, props));
95
+ })(["display:table-row;height:", ";direction:ltr;", ";", ";&::after{display:inline-block;width:", "px;content:'';}", ";"], props => props.theme.lineHeights[THEME_SIZES[props.$size]], colorStyles, props => props.$isNumbered && lineNumberStyles(props), props => props.theme.space.base * 3, props => retrieveComponentStyles(COMPONENT_ID, props));
96
96
 
97
97
  export { StyledCodeBlockLine };
@@ -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.1.1'
174
+ 'data-garden-version': '9.1.2'
175
175
  }).withConfig({
176
176
  displayName: "StyledCodeBlockToken",
177
177
  componentId: "sc-1hkshdq-0"
@@ -10,7 +10,7 @@ import { retrieveComponentStyles } from '@zendeskgarden/react-theming';
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.1.1'
13
+ 'data-garden-version': '9.1.2'
14
14
  }).withConfig({
15
15
  displayName: "StyledEllipsis",
16
16
  componentId: "sc-1u4uqmy-0"
@@ -6,7 +6,7 @@
6
6
  */
7
7
  import styled, { css } from 'styled-components';
8
8
  import { hideVisually, math } from 'polished';
9
- import { retrieveComponentStyles, DEFAULT_THEME, getColor } from '@zendeskgarden/react-theming';
9
+ import { retrieveComponentStyles, getColor } from '@zendeskgarden/react-theming';
10
10
  import { SIZE } from '../types/index.js';
11
11
 
12
12
  const COMPONENT_ID = 'typography.font';
@@ -21,13 +21,13 @@ const THEME_SIZES = {
21
21
  };
22
22
  const fontStyles = _ref => {
23
23
  let {
24
- hue,
25
- isBold,
26
- isMonospace,
27
- size,
24
+ $hue,
25
+ $isBold,
26
+ $isMonospace,
27
+ $size,
28
28
  theme
29
29
  } = _ref;
30
- const monospace = isMonospace && ['inherit', 'small', 'medium', 'large'].indexOf(size) !== -1;
30
+ const monospace = $isMonospace && ['inherit', 'small', 'medium', 'large'].indexOf($size) !== -1;
31
31
  const fontFamily = monospace && theme.fonts.mono;
32
32
  const direction = theme.rtl ? 'rtl' : 'ltr';
33
33
  let fontSize;
@@ -35,30 +35,30 @@ const fontStyles = _ref => {
35
35
  let lineHeight;
36
36
  let color;
37
37
  if (monospace) {
38
- if (size === 'inherit') {
38
+ if ($size === 'inherit') {
39
39
  fontSize = 'calc(1em - 1px)';
40
40
  lineHeight = 'normal';
41
41
  } else {
42
- const themeSize = THEME_SIZES[size];
42
+ const themeSize = THEME_SIZES[$size];
43
43
  fontSize = math(`${theme.fontSizes[themeSize]} - 1px`);
44
44
  lineHeight = math(`${theme.lineHeights[themeSize]} - 1px`);
45
45
  }
46
- } else if (size !== 'inherit') {
47
- const themeSize = THEME_SIZES[size];
46
+ } else if ($size !== 'inherit') {
47
+ const themeSize = THEME_SIZES[$size];
48
48
  fontSize = theme.fontSizes[themeSize];
49
49
  lineHeight = theme.lineHeights[themeSize];
50
50
  }
51
- if (isBold === true) {
51
+ if ($isBold === true) {
52
52
  fontWeight = theme.fontWeights.semibold;
53
- } else if (isBold === false || size !== 'inherit') {
53
+ } else if ($isBold === false || $size !== 'inherit') {
54
54
  fontWeight = theme.fontWeights.regular;
55
55
  }
56
- if (hue) {
57
- const options = hue.includes('.') ? {
58
- variable: hue,
56
+ if ($hue) {
57
+ const options = $hue.includes('.') ? {
58
+ variable: $hue,
59
59
  theme
60
60
  } : {
61
- hue,
61
+ hue: $hue,
62
62
  theme
63
63
  };
64
64
  color = getColor(options);
@@ -67,14 +67,13 @@ const fontStyles = _ref => {
67
67
  };
68
68
  const StyledFont = styled.div.attrs({
69
69
  'data-garden-id': COMPONENT_ID,
70
- 'data-garden-version': '9.1.1'
70
+ 'data-garden-version': '9.1.2'
71
71
  }).withConfig({
72
72
  displayName: "StyledFont",
73
73
  componentId: "sc-1iildbo-0"
74
74
  })(["", ";&[hidden]{display:inline;", ";}", ";"], props => !props.hidden && fontStyles(props), hideVisually(), props => retrieveComponentStyles(COMPONENT_ID, props));
75
75
  StyledFont.defaultProps = {
76
- theme: DEFAULT_THEME,
77
- size: 'inherit'
76
+ $size: 'inherit'
78
77
  };
79
78
 
80
79
  export { StyledFont, THEME_SIZES };
@@ -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.1.1'
18
+ 'data-garden-version': '9.1.2'
19
19
  }).withConfig({
20
20
  displayName: "StyledIcon",
21
21
  componentId: "sc-10rfb5b-0"
@@ -9,12 +9,12 @@ import { retrieveComponentStyles } from '@zendeskgarden/react-theming';
9
9
 
10
10
  const listStyles = props => {
11
11
  const rtl = props.theme.rtl;
12
- return css(["direction:", ";margin:0;margin-", ":24px;padding:0;list-style-position:outside;list-style-type:", ";"], rtl ? 'rtl' : 'ltr', rtl ? 'right' : 'left', props.listType);
12
+ return css(["direction:", ";margin:0;margin-", ":24px;padding:0;list-style-position:outside;list-style-type:", ";"], rtl ? 'rtl' : 'ltr', rtl ? 'right' : 'left', props.$listType);
13
13
  };
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.1.1'
17
+ 'data-garden-version': '9.1.2'
18
18
  }).withConfig({
19
19
  displayName: "StyledList__StyledOrderedList",
20
20
  componentId: "sc-jdbsfi-0"
@@ -22,7 +22,7 @@ const StyledOrderedList = styled.ol.attrs({
22
22
  const UNORDERED_ID = 'typography.unordered_list';
23
23
  const StyledUnorderedList = styled.ul.attrs({
24
24
  'data-garden-id': UNORDERED_ID,
25
- 'data-garden-version': '9.1.1'
25
+ 'data-garden-version': '9.1.2'
26
26
  }).withConfig({
27
27
  displayName: "StyledList__StyledUnorderedList",
28
28
  componentId: "sc-jdbsfi-1"
@@ -12,36 +12,36 @@ import { StyledFont } from './StyledFont.js';
12
12
 
13
13
  const listItemPaddingStyles = props => {
14
14
  const base = props.theme.space.base;
15
- const paddingTop = props.space === 'large' ? `${base * 2}px` : `${base}px`;
15
+ const paddingTop = props.$space === 'large' ? `${base * 2}px` : `${base}px`;
16
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
- return css(["line-height:", ";", ";"], getLineHeight(props.theme.lineHeights.md, props.theme.fontSizes.md), props.space !== 'small' && listItemPaddingStyles(props));
19
+ return css(["line-height:", ";", ";"], getLineHeight(props.theme.lineHeights.md, props.theme.fontSizes.md), props.$space !== 'small' && listItemPaddingStyles(props));
20
20
  };
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.1.1',
24
+ 'data-garden-version': '9.1.2',
25
25
  as: 'li'
26
26
  }).withConfig({
27
27
  displayName: "StyledListItem__StyledOrderedListItem",
28
28
  componentId: "sc-9rsipg-0"
29
29
  })(["margin-", ":", ";padding-", ":", ";", ";", ";"], props => props.theme.rtl ? 'right' : 'left', props => math(`${props.theme.space.base} * -1px`), props => props.theme.rtl ? 'right' : 'left', props => math(`${props.theme.space.base} * 1px`), props => listItemStyles(props), props => retrieveComponentStyles(ORDERED_ID, props));
30
30
  StyledOrderedListItem.defaultProps = {
31
- space: 'medium',
31
+ $space: 'medium',
32
32
  theme: DEFAULT_THEME
33
33
  };
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.1.1',
37
+ 'data-garden-version': '9.1.2',
38
38
  as: 'li'
39
39
  }).withConfig({
40
40
  displayName: "StyledListItem__StyledUnorderedListItem",
41
41
  componentId: "sc-9rsipg-1"
42
42
  })(["", ";", ";"], props => listItemStyles(props), props => retrieveComponentStyles(UNORDERED_ID, props));
43
43
  StyledUnorderedListItem.defaultProps = {
44
- space: 'medium',
44
+ $space: 'medium',
45
45
  theme: DEFAULT_THEME
46
46
  };
47
47
 
@@ -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.1.1'
14
+ 'data-garden-version': '9.1.2'
15
15
  }).withConfig({
16
16
  displayName: "StyledParagraph",
17
17
  componentId: "sc-zkuftz-0"
package/dist/index.cjs.js CHANGED
@@ -40,13 +40,13 @@ const THEME_SIZES = {
40
40
  };
41
41
  const fontStyles = _ref => {
42
42
  let {
43
- hue,
44
- isBold,
45
- isMonospace,
46
- size,
43
+ $hue,
44
+ $isBold,
45
+ $isMonospace,
46
+ $size,
47
47
  theme
48
48
  } = _ref;
49
- const monospace = isMonospace && ['inherit', 'small', 'medium', 'large'].indexOf(size) !== -1;
49
+ const monospace = $isMonospace && ['inherit', 'small', 'medium', 'large'].indexOf($size) !== -1;
50
50
  const fontFamily = monospace && theme.fonts.mono;
51
51
  const direction = theme.rtl ? 'rtl' : 'ltr';
52
52
  let fontSize;
@@ -54,30 +54,30 @@ const fontStyles = _ref => {
54
54
  let lineHeight;
55
55
  let color;
56
56
  if (monospace) {
57
- if (size === 'inherit') {
57
+ if ($size === 'inherit') {
58
58
  fontSize = 'calc(1em - 1px)';
59
59
  lineHeight = 'normal';
60
60
  } else {
61
- const themeSize = THEME_SIZES[size];
61
+ const themeSize = THEME_SIZES[$size];
62
62
  fontSize = polished.math(`${theme.fontSizes[themeSize]} - 1px`);
63
63
  lineHeight = polished.math(`${theme.lineHeights[themeSize]} - 1px`);
64
64
  }
65
- } else if (size !== 'inherit') {
66
- const themeSize = THEME_SIZES[size];
65
+ } else if ($size !== 'inherit') {
66
+ const themeSize = THEME_SIZES[$size];
67
67
  fontSize = theme.fontSizes[themeSize];
68
68
  lineHeight = theme.lineHeights[themeSize];
69
69
  }
70
- if (isBold === true) {
70
+ if ($isBold === true) {
71
71
  fontWeight = theme.fontWeights.semibold;
72
- } else if (isBold === false || size !== 'inherit') {
72
+ } else if ($isBold === false || $size !== 'inherit') {
73
73
  fontWeight = theme.fontWeights.regular;
74
74
  }
75
- if (hue) {
76
- const options = hue.includes('.') ? {
77
- variable: hue,
75
+ if ($hue) {
76
+ const options = $hue.includes('.') ? {
77
+ variable: $hue,
78
78
  theme
79
79
  } : {
80
- hue,
80
+ hue: $hue,
81
81
  theme
82
82
  };
83
83
  color = reactTheming.getColor(options);
@@ -86,20 +86,19 @@ const fontStyles = _ref => {
86
86
  };
87
87
  const StyledFont = styled__default.default.div.attrs({
88
88
  'data-garden-id': COMPONENT_ID$9,
89
- 'data-garden-version': '9.1.1'
89
+ 'data-garden-version': '9.1.2'
90
90
  }).withConfig({
91
91
  displayName: "StyledFont",
92
92
  componentId: "sc-1iildbo-0"
93
93
  })(["", ";&[hidden]{display:inline;", ";}", ";"], props => !props.hidden && fontStyles(props), polished.hideVisually(), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$9, props));
94
94
  StyledFont.defaultProps = {
95
- theme: reactTheming.DEFAULT_THEME,
96
- size: 'inherit'
95
+ $size: 'inherit'
97
96
  };
98
97
 
99
98
  const COMPONENT_ID$8 = 'typography.blockquote';
100
99
  const StyledBlockquote = styled__default.default.blockquote.attrs({
101
100
  'data-garden-id': COMPONENT_ID$8,
102
- 'data-garden-version': '9.1.1'
101
+ 'data-garden-version': '9.1.2'
103
102
  }).withConfig({
104
103
  displayName: "StyledBlockquote",
105
104
  componentId: "sc-1tt3ye0-0"
@@ -111,7 +110,7 @@ const StyledBlockquote = styled__default.default.blockquote.attrs({
111
110
  const COMPONENT_ID$7 = 'typography.code';
112
111
  const colorStyles$3 = _ref => {
113
112
  let {
114
- hue,
113
+ $hue,
115
114
  theme
116
115
  } = _ref;
117
116
  const bgColorArgs = {
@@ -126,7 +125,7 @@ const colorStyles$3 = _ref => {
126
125
  const fgColorArgs = {
127
126
  theme
128
127
  };
129
- switch (hue) {
128
+ switch ($hue) {
130
129
  case 'green':
131
130
  bgColorArgs.variable = 'background.success';
132
131
  fgColorArgs.variable = 'foreground.successEmphasis';
@@ -150,17 +149,17 @@ const colorStyles$3 = _ref => {
150
149
  };
151
150
  const StyledCode = styled__default.default(StyledFont).attrs({
152
151
  'data-garden-id': COMPONENT_ID$7,
153
- 'data-garden-version': '9.1.1',
152
+ 'data-garden-version': '9.1.2',
154
153
  as: 'code',
155
- isMonospace: true
154
+ $isMonospace: true
156
155
  }).withConfig({
157
156
  displayName: "StyledCode",
158
157
  componentId: "sc-l8yvmf-0"
159
158
  })(["border-radius:", ";padding:1.5px;", ";", ";"], props => props.theme.borderRadii.sm, props => colorStyles$3(props), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$7, props));
160
159
  StyledCode.defaultProps = {
161
160
  theme: reactTheming.DEFAULT_THEME,
162
- hue: 'grey',
163
- size: 'inherit'
161
+ $hue: 'grey',
162
+ $size: 'inherit'
164
163
  };
165
164
 
166
165
  const COMPONENT_ID$6 = 'typography.codeblock';
@@ -180,7 +179,7 @@ const colorStyles$2 = _ref => {
180
179
  };
181
180
  const StyledCodeBlock = styled__default.default.pre.attrs({
182
181
  'data-garden-id': COMPONENT_ID$6,
183
- 'data-garden-version': '9.1.1'
182
+ 'data-garden-version': '9.1.2'
184
183
  }).withConfig({
185
184
  displayName: "StyledCodeBlock",
186
185
  componentId: "sc-5wky57-0"
@@ -189,7 +188,7 @@ const StyledCodeBlock = styled__default.default.pre.attrs({
189
188
  const COMPONENT_ID$5 = 'typography.codeblock_container';
190
189
  const StyledCodeBlockContainer = styled__default.default.div.attrs({
191
190
  'data-garden-id': COMPONENT_ID$5,
192
- 'data-garden-version': '9.1.1'
191
+ 'data-garden-version': '9.1.2'
193
192
  }).withConfig({
194
193
  displayName: "StyledCodeBlockContainer",
195
194
  componentId: "sc-14zgbfw-0"
@@ -201,11 +200,11 @@ const COMPONENT_ID$4 = 'typography.codeblock_code';
201
200
  const colorStyles$1 = _ref => {
202
201
  let {
203
202
  theme,
204
- diff,
205
- isHighlighted
203
+ $diff,
204
+ $isHighlighted
206
205
  } = _ref;
207
206
  let backgroundColor;
208
- if (diff) {
207
+ if ($diff) {
209
208
  const hues = {
210
209
  hunk: 'royal',
211
210
  add: 'lime',
@@ -214,7 +213,7 @@ const colorStyles$1 = _ref => {
214
213
  };
215
214
  backgroundColor = reactTheming.getColor({
216
215
  theme,
217
- hue: hues[diff],
216
+ hue: hues[$diff],
218
217
  dark: {
219
218
  shade: 600
220
219
  },
@@ -223,7 +222,7 @@ const colorStyles$1 = _ref => {
223
222
  },
224
223
  transparency: theme.opacity[300]
225
224
  });
226
- } else if (isHighlighted) {
225
+ } else if ($isHighlighted) {
227
226
  backgroundColor = reactTheming.getColor({
228
227
  theme,
229
228
  dark: {
@@ -241,8 +240,8 @@ const colorStyles$1 = _ref => {
241
240
  const lineNumberStyles = _ref2 => {
242
241
  let {
243
242
  theme,
244
- language,
245
- size
243
+ $language,
244
+ $size
246
245
  } = _ref2;
247
246
  const color = reactTheming.getColor({
248
247
  theme,
@@ -252,11 +251,11 @@ const lineNumberStyles = _ref2 => {
252
251
  }
253
252
  });
254
253
  let padding;
255
- if (language && language === 'diff') {
254
+ if ($language && $language === 'diff') {
256
255
  padding = 0;
257
- } else if (size === 'small') {
256
+ } else if ($size === 'small') {
258
257
  padding = theme.space.base * 4;
259
- } else if (size === 'large') {
258
+ } else if ($size === 'large') {
260
259
  padding = theme.space.base * 7;
261
260
  } else {
262
261
  padding = theme.space.base * 6;
@@ -275,13 +274,13 @@ const lineNumberStyles = _ref2 => {
275
274
  };
276
275
  const StyledCodeBlockLine = styled__default.default(StyledFont).attrs({
277
276
  'data-garden-id': COMPONENT_ID$4,
278
- 'data-garden-version': '9.1.1',
277
+ 'data-garden-version': '9.1.2',
279
278
  as: 'code',
280
- isMonospace: true
279
+ $isMonospace: true
281
280
  }).withConfig({
282
281
  displayName: "StyledCodeBlockLine",
283
282
  componentId: "sc-1goay17-0"
284
- })(["display:table-row;height:", ";direction:ltr;", ";", ";&::after{display:inline-block;width:", "px;content:'';}", ";"], props => props.theme.lineHeights[THEME_SIZES[props.size]], colorStyles$1, props => props.isNumbered && lineNumberStyles(props), props => props.theme.space.base * 3, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$4, props));
283
+ })(["display:table-row;height:", ";direction:ltr;", ";", ";&::after{display:inline-block;width:", "px;content:'';}", ";"], props => props.theme.lineHeights[THEME_SIZES[props.$size]], colorStyles$1, props => props.$isNumbered && lineNumberStyles(props), props => props.theme.space.base * 3, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$4, props));
285
284
 
286
285
  const COMPONENT_ID$3 = 'typography.codeblock_token';
287
286
  const colorStyles = _ref => {
@@ -446,7 +445,7 @@ const colorStyles = _ref => {
446
445
  };
447
446
  const StyledCodeBlockToken = styled__default.default.span.attrs({
448
447
  'data-garden-id': COMPONENT_ID$3,
449
- 'data-garden-version': '9.1.1'
448
+ 'data-garden-version': '9.1.2'
450
449
  }).withConfig({
451
450
  displayName: "StyledCodeBlockToken",
452
451
  componentId: "sc-1hkshdq-0"
@@ -455,7 +454,7 @@ const StyledCodeBlockToken = styled__default.default.span.attrs({
455
454
  const COMPONENT_ID$2 = 'typography.ellipsis';
456
455
  const StyledEllipsis = styled__default.default.div.attrs({
457
456
  'data-garden-id': COMPONENT_ID$2,
458
- 'data-garden-version': '9.1.1'
457
+ 'data-garden-version': '9.1.2'
459
458
  }).withConfig({
460
459
  displayName: "StyledEllipsis",
461
460
  componentId: "sc-1u4uqmy-0"
@@ -469,7 +468,7 @@ const sizeStyles = props => {
469
468
  };
470
469
  const StyledIcon = styled__default.default(reactTheming.StyledBaseIcon).attrs({
471
470
  'data-garden-id': COMPONENT_ID$1,
472
- 'data-garden-version': '9.1.1'
471
+ 'data-garden-version': '9.1.2'
473
472
  }).withConfig({
474
473
  displayName: "StyledIcon",
475
474
  componentId: "sc-10rfb5b-0"
@@ -477,12 +476,12 @@ const StyledIcon = styled__default.default(reactTheming.StyledBaseIcon).attrs({
477
476
 
478
477
  const listStyles = props => {
479
478
  const rtl = props.theme.rtl;
480
- return styled.css(["direction:", ";margin:0;margin-", ":24px;padding:0;list-style-position:outside;list-style-type:", ";"], rtl ? 'rtl' : 'ltr', rtl ? 'right' : 'left', props.listType);
479
+ return styled.css(["direction:", ";margin:0;margin-", ":24px;padding:0;list-style-position:outside;list-style-type:", ";"], rtl ? 'rtl' : 'ltr', rtl ? 'right' : 'left', props.$listType);
481
480
  };
482
481
  const ORDERED_ID$1 = 'typography.ordered_list';
483
482
  const StyledOrderedList = styled__default.default.ol.attrs({
484
483
  'data-garden-id': ORDERED_ID$1,
485
- 'data-garden-version': '9.1.1'
484
+ 'data-garden-version': '9.1.2'
486
485
  }).withConfig({
487
486
  displayName: "StyledList__StyledOrderedList",
488
487
  componentId: "sc-jdbsfi-0"
@@ -490,7 +489,7 @@ const StyledOrderedList = styled__default.default.ol.attrs({
490
489
  const UNORDERED_ID$1 = 'typography.unordered_list';
491
490
  const StyledUnorderedList = styled__default.default.ul.attrs({
492
491
  'data-garden-id': UNORDERED_ID$1,
493
- 'data-garden-version': '9.1.1'
492
+ 'data-garden-version': '9.1.2'
494
493
  }).withConfig({
495
494
  displayName: "StyledList__StyledUnorderedList",
496
495
  componentId: "sc-jdbsfi-1"
@@ -498,43 +497,43 @@ const StyledUnorderedList = styled__default.default.ul.attrs({
498
497
 
499
498
  const listItemPaddingStyles = props => {
500
499
  const base = props.theme.space.base;
501
- const paddingTop = props.space === 'large' ? `${base * 2}px` : `${base}px`;
500
+ const paddingTop = props.$space === 'large' ? `${base * 2}px` : `${base}px`;
502
501
  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);
503
502
  };
504
503
  const listItemStyles = props => {
505
- return styled.css(["line-height:", ";", ";"], reactTheming.getLineHeight(props.theme.lineHeights.md, props.theme.fontSizes.md), props.space !== 'small' && listItemPaddingStyles(props));
504
+ return styled.css(["line-height:", ";", ";"], reactTheming.getLineHeight(props.theme.lineHeights.md, props.theme.fontSizes.md), props.$space !== 'small' && listItemPaddingStyles(props));
506
505
  };
507
506
  const ORDERED_ID = 'typography.ordered_list_item';
508
507
  const StyledOrderedListItem = styled__default.default(StyledFont).attrs({
509
508
  'data-garden-id': ORDERED_ID,
510
- 'data-garden-version': '9.1.1',
509
+ 'data-garden-version': '9.1.2',
511
510
  as: 'li'
512
511
  }).withConfig({
513
512
  displayName: "StyledListItem__StyledOrderedListItem",
514
513
  componentId: "sc-9rsipg-0"
515
514
  })(["margin-", ":", ";padding-", ":", ";", ";", ";"], props => props.theme.rtl ? 'right' : 'left', props => polished.math(`${props.theme.space.base} * -1px`), props => props.theme.rtl ? 'right' : 'left', props => polished.math(`${props.theme.space.base} * 1px`), props => listItemStyles(props), props => reactTheming.retrieveComponentStyles(ORDERED_ID, props));
516
515
  StyledOrderedListItem.defaultProps = {
517
- space: 'medium',
516
+ $space: 'medium',
518
517
  theme: reactTheming.DEFAULT_THEME
519
518
  };
520
519
  const UNORDERED_ID = 'typography.unordered_list_item';
521
520
  const StyledUnorderedListItem = styled__default.default(StyledFont).attrs({
522
521
  'data-garden-id': UNORDERED_ID,
523
- 'data-garden-version': '9.1.1',
522
+ 'data-garden-version': '9.1.2',
524
523
  as: 'li'
525
524
  }).withConfig({
526
525
  displayName: "StyledListItem__StyledUnorderedListItem",
527
526
  componentId: "sc-9rsipg-1"
528
527
  })(["", ";", ";"], props => listItemStyles(props), props => reactTheming.retrieveComponentStyles(UNORDERED_ID, props));
529
528
  StyledUnorderedListItem.defaultProps = {
530
- space: 'medium',
529
+ $space: 'medium',
531
530
  theme: reactTheming.DEFAULT_THEME
532
531
  };
533
532
 
534
533
  const COMPONENT_ID = 'typography.paragraph';
535
534
  const StyledParagraph = styled__default.default.p.attrs({
536
535
  'data-garden-id': COMPONENT_ID,
537
- 'data-garden-version': '9.1.1'
536
+ 'data-garden-version': '9.1.2'
538
537
  }).withConfig({
539
538
  displayName: "StyledParagraph",
540
539
  componentId: "sc-zkuftz-0"
@@ -542,13 +541,17 @@ const StyledParagraph = styled__default.default.p.attrs({
542
541
 
543
542
  const SM = React.forwardRef((_ref, ref) => {
544
543
  let {
544
+ isBold,
545
+ isMonospace,
545
546
  tag,
546
547
  ...other
547
548
  } = _ref;
548
549
  return React__default.default.createElement(StyledFont, Object.assign({
550
+ $isBold: isBold,
551
+ $isMonospace: isMonospace,
549
552
  as: tag,
550
553
  ref: ref,
551
- size: "small"
554
+ $size: "small"
552
555
  }, other));
553
556
  });
554
557
  SM.displayName = 'SM';
@@ -563,13 +566,17 @@ SM.defaultProps = {
563
566
 
564
567
  const MD = React.forwardRef((_ref, ref) => {
565
568
  let {
569
+ isBold,
570
+ isMonospace,
566
571
  tag,
567
572
  ...other
568
573
  } = _ref;
569
574
  return React__default.default.createElement(StyledFont, Object.assign({
575
+ $isBold: isBold,
576
+ $isMonospace: isMonospace,
577
+ $size: "medium",
570
578
  as: tag,
571
- ref: ref,
572
- size: "medium"
579
+ ref: ref
573
580
  }, other));
574
581
  });
575
582
  MD.displayName = 'MD';
@@ -584,13 +591,17 @@ MD.defaultProps = {
584
591
 
585
592
  const LG = React.forwardRef((_ref, ref) => {
586
593
  let {
594
+ isBold,
595
+ isMonospace,
587
596
  tag,
588
597
  ...other
589
598
  } = _ref;
590
599
  return React__default.default.createElement(StyledFont, Object.assign({
600
+ $isBold: isBold,
601
+ $isMonospace: isMonospace,
602
+ $size: "large",
591
603
  as: tag,
592
- ref: ref,
593
- size: "large"
604
+ ref: ref
594
605
  }, other));
595
606
  });
596
607
  LG.displayName = 'LG';
@@ -605,13 +616,15 @@ LG.defaultProps = {
605
616
 
606
617
  const XL = React.forwardRef((_ref, ref) => {
607
618
  let {
619
+ isBold,
608
620
  tag,
609
621
  ...other
610
622
  } = _ref;
611
623
  return React__default.default.createElement(StyledFont, Object.assign({
612
- as: tag,
624
+ $size: "extralarge",
625
+ $isBold: isBold,
613
626
  ref: ref,
614
- size: "extralarge"
627
+ as: tag
615
628
  }, other));
616
629
  });
617
630
  XL.displayName = 'XL';
@@ -625,13 +638,15 @@ XL.defaultProps = {
625
638
 
626
639
  const XXL = React.forwardRef((_ref, ref) => {
627
640
  let {
641
+ isBold,
628
642
  tag,
629
643
  ...other
630
644
  } = _ref;
631
645
  return React__default.default.createElement(StyledFont, Object.assign({
632
- as: tag,
646
+ $size: "2xlarge",
647
+ $isBold: isBold,
633
648
  ref: ref,
634
- size: "2xlarge"
649
+ as: tag
635
650
  }, other));
636
651
  });
637
652
  XXL.displayName = 'XXL';
@@ -645,14 +660,17 @@ XXL.defaultProps = {
645
660
 
646
661
  const XXXL = React.forwardRef((_ref, ref) => {
647
662
  let {
663
+ isBold,
648
664
  tag,
649
665
  ...other
650
666
  } = _ref;
651
667
  return React__default.default.createElement(StyledFont, Object.assign({
668
+ $isBold: isBold,
669
+ $size: "3xlarge"
670
+ }, other, {
652
671
  as: tag,
653
- ref: ref,
654
- size: "3xlarge"
655
- }, other));
672
+ ref: ref
673
+ }));
656
674
  });
657
675
  XXXL.displayName = 'XXXL';
658
676
  XXXL.propTypes = {
@@ -677,11 +695,13 @@ Blockquote.defaultProps = {
677
695
  const Code = React.forwardRef((_ref, ref) => {
678
696
  let {
679
697
  hue,
698
+ size,
680
699
  ...other
681
700
  } = _ref;
682
701
  return React__default.default.createElement(StyledCode, Object.assign({
683
702
  ref: ref,
684
- hue: hue
703
+ $hue: hue,
704
+ $size: size
685
705
  }, other));
686
706
  });
687
707
  Code.displayName = 'Code';
@@ -760,11 +780,11 @@ const CodeBlock = React__default.default.forwardRef((_ref, ref) => {
760
780
  line
761
781
  }), {
762
782
  key: index,
763
- language: language,
764
- isHighlighted: highlightLines?.includes(index + 1),
765
- isNumbered: isNumbered,
766
- diff: getDiff(line),
767
- size: size,
783
+ $language: language,
784
+ $isHighlighted: highlightLines?.includes(index + 1),
785
+ $isNumbered: isNumbered,
786
+ $diff: getDiff(line),
787
+ $size: size,
768
788
  style: undefined
769
789
  }), line.map((token, tokenKey) => React__default.default.createElement(StyledCodeBlockToken, Object.assign({}, getTokenProps({
770
790
  token
@@ -830,7 +850,7 @@ const OrderedListItem = React.forwardRef((props, ref) => {
830
850
  } = useOrderedListContext();
831
851
  return React__default.default.createElement(StyledOrderedListItem, Object.assign({
832
852
  ref: ref,
833
- space: size
853
+ $space: size
834
854
  }, props));
835
855
  });
836
856
  OrderedListItem.displayName = 'OrderedList.Item';
@@ -849,7 +869,7 @@ const OrderedListComponent = React__default.default.forwardRef((_ref, ref) => {
849
869
  value: value
850
870
  }, React__default.default.createElement(StyledOrderedList, Object.assign({
851
871
  ref: ref,
852
- listType: type
872
+ $listType: type
853
873
  }, other)));
854
874
  });
855
875
  OrderedListComponent.displayName = 'OrderedList';
@@ -879,7 +899,7 @@ const UnorderedListItem = React.forwardRef((props, ref) => {
879
899
  } = useUnorderedListContext();
880
900
  return React__default.default.createElement(StyledUnorderedListItem, Object.assign({
881
901
  ref: ref,
882
- space: size
902
+ $space: size
883
903
  }, props));
884
904
  });
885
905
  UnorderedListItem.displayName = 'UnorderedList.Item';
@@ -898,7 +918,7 @@ const UnorderedListComponent = React.forwardRef((_ref, ref) => {
898
918
  value: value
899
919
  }, React__default.default.createElement(StyledUnorderedList, Object.assign({
900
920
  ref: ref,
901
- listType: type
921
+ $listType: type
902
922
  }, other)));
903
923
  });
904
924
  UnorderedListComponent.displayName = 'UnorderedList';
@@ -925,13 +945,19 @@ const Icon = IconComponent;
925
945
 
926
946
  const SpanComponent = React.forwardRef((_ref, ref) => {
927
947
  let {
948
+ hue,
949
+ isBold,
950
+ isMonospace,
928
951
  tag,
929
952
  ...other
930
953
  } = _ref;
931
954
  return React__default.default.createElement(StyledFont, Object.assign({
955
+ $hue: hue,
956
+ $isBold: isBold,
957
+ $isMonospace: isMonospace,
958
+ $size: "inherit",
932
959
  as: tag,
933
- ref: ref,
934
- size: "inherit"
960
+ ref: ref
935
961
  }, other));
936
962
  });
937
963
  SpanComponent.displayName = 'Span';
@@ -8,13 +8,13 @@ import { DefaultTheme } from 'styled-components';
8
8
  import { IStyledFontProps } from './StyledFont';
9
9
  import { ICodeProps } from '../types';
10
10
  interface IStyledCodeProps extends Omit<IStyledFontProps, 'size'> {
11
- hue?: ICodeProps['hue'];
12
- size?: ICodeProps['size'];
11
+ $hue?: ICodeProps['hue'];
12
+ $size?: ICodeProps['size'];
13
13
  }
14
14
  export declare const StyledCode: import("styled-components").StyledComponent<"code", DefaultTheme, {
15
15
  'data-garden-id': string;
16
16
  'data-garden-version': string;
17
17
  as: string;
18
- isMonospace: boolean;
19
- } & IStyledCodeProps, "isMonospace" | "as" | "data-garden-id" | "data-garden-version">;
18
+ $isMonospace: boolean;
19
+ } & IStyledCodeProps, "$isMonospace" | "as" | "data-garden-id" | "data-garden-version">;
20
20
  export {};
@@ -8,15 +8,15 @@ import { DefaultTheme } from 'styled-components';
8
8
  import { Language } from 'prism-react-renderer';
9
9
  import { Diff, Size } from '../types';
10
10
  export interface IStyledCodeBlockLineProps {
11
- language?: Language;
12
- isHighlighted?: boolean;
13
- isNumbered?: boolean;
14
- diff?: Diff;
15
- size?: Size;
11
+ $language?: Language;
12
+ $isHighlighted?: boolean;
13
+ $isNumbered?: boolean;
14
+ $diff?: Diff;
15
+ $size?: Size;
16
16
  }
17
17
  export declare const StyledCodeBlockLine: import("styled-components").StyledComponent<"code", DefaultTheme, {
18
18
  'data-garden-id': string;
19
19
  'data-garden-version': string;
20
20
  as: string;
21
- isMonospace: boolean;
22
- } & IStyledCodeBlockLineProps, "as" | "data-garden-id" | "data-garden-version" | "isMonospace">;
21
+ $isMonospace: boolean;
22
+ } & IStyledCodeBlockLineProps, "as" | "data-garden-id" | "data-garden-version" | "$isMonospace">;
@@ -11,10 +11,10 @@ type TypographySize = (typeof TYPOGRAPHY_SIZE)[number];
11
11
  type ThemeSize = keyof DefaultTheme['lineHeights'];
12
12
  export declare const THEME_SIZES: Record<TypographySize, ThemeSize>;
13
13
  export interface IStyledFontProps {
14
- isBold?: boolean;
15
- isMonospace?: boolean;
16
- size?: (typeof FONT_SIZE)[number];
17
- hue?: string;
14
+ $isBold?: boolean;
15
+ $isMonospace?: boolean;
16
+ $size?: (typeof FONT_SIZE)[number];
17
+ $hue?: string;
18
18
  }
19
19
  export declare const StyledFont: import("styled-components").StyledComponent<"div", DefaultTheme, {
20
20
  'data-garden-id': string;
@@ -7,14 +7,14 @@
7
7
  import { DefaultTheme } from 'styled-components';
8
8
  import { IOrderedListProps, IUnorderedListProps } from '../types';
9
9
  interface IStyledListProps {
10
- listType?: IOrderedListProps['type'];
10
+ $listType?: IOrderedListProps['type'];
11
11
  }
12
12
  export declare const StyledOrderedList: import("styled-components").StyledComponent<"ol", DefaultTheme, {
13
13
  'data-garden-id': string;
14
14
  'data-garden-version': string;
15
15
  } & IStyledListProps, "data-garden-id" | "data-garden-version">;
16
16
  interface IStyledUnorderedListProps {
17
- listType?: IUnorderedListProps['type'];
17
+ $listType?: IUnorderedListProps['type'];
18
18
  }
19
19
  export declare const StyledUnorderedList: import("styled-components").StyledComponent<"ul", DefaultTheme, {
20
20
  'data-garden-id': string;
@@ -7,7 +7,7 @@
7
7
  import { DefaultTheme } from 'styled-components';
8
8
  import { Size } from '../types';
9
9
  interface IStyledListItemProps {
10
- space?: Size;
10
+ $space?: Size;
11
11
  }
12
12
  export declare const StyledOrderedListItem: import("styled-components").StyledComponent<"li", DefaultTheme, {
13
13
  'data-garden-id': string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zendeskgarden/react-typography",
3
- "version": "9.1.1",
3
+ "version": "9.1.2",
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>",
@@ -33,7 +33,7 @@
33
33
  "styled-components": "^5.3.1"
34
34
  },
35
35
  "devDependencies": {
36
- "@zendeskgarden/react-theming": "^9.1.1"
36
+ "@zendeskgarden/react-theming": "^9.1.2"
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": "21eaf7b57f27f1a846ed332f1b8e655d6bc0a13b"
48
+ "gitHead": "dd7b2e7fb6747ef39a028b4e7b9924c2098deea0"
49
49
  }