@zendeskgarden/react-typography 8.46.0 → 8.48.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.
@@ -4,9 +4,8 @@
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 React, { LiHTMLAttributes } from 'react';
8
- declare const UnorderedListItem: React.FunctionComponent<LiHTMLAttributes<HTMLLIElement> & React.RefAttributes<HTMLLIElement>>;
7
+ import React from 'react';
9
8
  /**
10
9
  * @extends LiHTMLAttributes<HTMLLIElement>
11
10
  */
12
- export default UnorderedListItem;
11
+ export declare const Item: React.ForwardRefExoticComponent<React.LiHTMLAttributes<HTMLLIElement> & React.RefAttributes<HTMLLIElement>>;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Copyright Zendesk, Inc.
3
+ *
4
+ * Use of this source code is governed under the Apache License, Version 2.0
5
+ * found at http://www.apache.org/licenses/LICENSE-2.0.
6
+ */
7
+ import { HTMLAttributes } from 'react';
8
+ /**
9
+ * @extends HTMLAttributes<HTMLElement>
10
+ */
11
+ export declare const Icon: {
12
+ (props: HTMLAttributes<HTMLElement>): JSX.Element;
13
+ displayName: string;
14
+ };
@@ -5,7 +5,9 @@
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
7
  import React, { HTMLAttributes } from 'react';
8
- interface ISpanProps extends HTMLAttributes<HTMLSpanElement> {
8
+ import { StartIcon } from './StartIcon';
9
+ import { Icon } from './Icon';
10
+ export interface ISpanProps extends HTMLAttributes<HTMLSpanElement> {
9
11
  /** Updates the element's HTML tag */
10
12
  tag?: any;
11
13
  /** Applies bold font style. Font weight is inherited by default. */
@@ -19,16 +21,10 @@ interface ISpanProps extends HTMLAttributes<HTMLSpanElement> {
19
21
  */
20
22
  hue?: string;
21
23
  }
22
- interface IIconProps extends HTMLAttributes<HTMLElement> {
23
- children: any;
24
- }
25
- declare const StartIcon: (props: IIconProps) => JSX.Element;
26
- declare const Icon: (props: IIconProps) => JSX.Element;
27
- declare const _default: React.FunctionComponent<ISpanProps & React.RefAttributes<HTMLSpanElement>> & {
28
- StartIcon: typeof StartIcon;
29
- Icon: typeof Icon;
30
- };
31
24
  /**
32
25
  * @extends HTMLAttributes<HTMLSpanElement>
33
26
  */
34
- export default _default;
27
+ export declare const Span: React.ForwardRefExoticComponent<ISpanProps & React.RefAttributes<HTMLSpanElement>> & {
28
+ Icon: typeof Icon;
29
+ StartIcon: typeof StartIcon;
30
+ };
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Copyright Zendesk, Inc.
3
+ *
4
+ * Use of this source code is governed under the Apache License, Version 2.0
5
+ * found at http://www.apache.org/licenses/LICENSE-2.0.
6
+ */
7
+ import { HTMLAttributes } from 'react';
8
+ /**
9
+ * @extends HTMLAttributes<HTMLElement>
10
+ */
11
+ export declare const StartIcon: {
12
+ (props: HTMLAttributes<HTMLElement>): JSX.Element;
13
+ displayName: string;
14
+ };
@@ -4,17 +4,31 @@
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
- export { default as SM } from './elements/SM';
8
- export { default as MD } from './elements/MD';
9
- export { default as LG } from './elements/LG';
10
- export { default as XL } from './elements/XL';
11
- export { default as XXL } from './elements/XXL';
12
- export { default as XXXL } from './elements/XXXL';
13
- export { default as Code } from './elements/Code';
7
+ export { SM } from './elements/SM';
8
+ export { MD } from './elements/MD';
9
+ export { LG } from './elements/LG';
10
+ export { XL } from './elements/XL';
11
+ export { XXL } from './elements/XXL';
12
+ export { XXXL } from './elements/XXXL';
14
13
  export { Blockquote } from './elements/Blockquote';
14
+ export { Code } from './elements/Code';
15
15
  export { CodeBlock } from './elements/CodeBlock';
16
- export { default as Span } from './elements/Span';
17
- export { default as Ellipsis } from './elements/Ellipsis';
18
- export { default as Paragraph } from './elements/Paragraph';
19
- export { default as OrderedList } from './elements/lists/OrderedList';
20
- export { default as UnorderedList } from './elements/lists/UnorderedList';
16
+ export { Ellipsis } from './elements/Ellipsis';
17
+ export { Paragraph } from './elements/Paragraph';
18
+ export { OrderedList } from './elements/lists/OrderedList';
19
+ export { UnorderedList } from './elements/lists/UnorderedList';
20
+ export { Span } from './elements/span/Span';
21
+ export type { ISMProps } from './elements/SM';
22
+ export type { IMDProps } from './elements/MD';
23
+ export type { ILGProps } from './elements/LG';
24
+ export type { IXLProps } from './elements/XL';
25
+ export type { IXXLProps } from './elements/XXL';
26
+ export type { IXXXLProps } from './elements/XXXL';
27
+ export type { IBlockquoteProps } from './elements/Blockquote';
28
+ export type { ICodeProps } from './elements/Code';
29
+ export type { ICodeBlockProps } from './elements/CodeBlock';
30
+ export type { IEllipsisProps } from './elements/Ellipsis';
31
+ export type { IParagraphProps } from './elements/Paragraph';
32
+ export type { IOrderedListProps } from './elements/lists/OrderedList';
33
+ export type { IUnorderedListProps } from './elements/lists/UnorderedList';
34
+ export type { ISpanProps } from './elements/span/Span';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zendeskgarden/react-typography",
3
- "version": "8.46.0",
3
+ "version": "8.48.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>",
@@ -33,7 +33,7 @@
33
33
  "styled-components": "^4.2.0 || ^5.0.0"
34
34
  },
35
35
  "devDependencies": {
36
- "@zendeskgarden/react-theming": "^8.46.0"
36
+ "@zendeskgarden/react-theming": "^8.48.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": "9e577b188009344c7ad0a035749930a4e19e400a"
48
+ "gitHead": "75f36aee62043004650c3eb2e1583b98a87d71f8"
49
49
  }