@zendeskgarden/react-typography 8.47.0 → 8.48.1
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 +169 -158
- package/dist/index.esm.js +113 -102
- package/dist/typings/elements/Code.d.ts +1 -2
- package/dist/typings/elements/Ellipsis.d.ts +2 -3
- package/dist/typings/elements/LG.d.ts +2 -3
- package/dist/typings/elements/MD.d.ts +2 -3
- package/dist/typings/elements/Paragraph.d.ts +1 -2
- package/dist/typings/elements/SM.d.ts +2 -3
- package/dist/typings/elements/XL.d.ts +2 -3
- package/dist/typings/elements/XXL.d.ts +2 -3
- package/dist/typings/elements/XXXL.d.ts +2 -3
- package/dist/typings/elements/lists/OrderedList.d.ts +7 -8
- package/dist/typings/elements/lists/OrderedListItem.d.ts +2 -3
- package/dist/typings/elements/lists/UnorderedList.d.ts +5 -6
- package/dist/typings/elements/lists/UnorderedListItem.d.ts +2 -3
- package/dist/typings/elements/span/Icon.d.ts +14 -0
- package/dist/typings/elements/{Span.d.ts → span/Span.d.ts} +7 -11
- package/dist/typings/elements/span/StartIcon.d.ts +14 -0
- package/dist/typings/index.d.ts +26 -12
- package/package.json +3 -3
|
@@ -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
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
+
};
|
package/dist/typings/index.d.ts
CHANGED
|
@@ -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 {
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
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 {
|
|
17
|
-
export {
|
|
18
|
-
export {
|
|
19
|
-
export {
|
|
20
|
-
export {
|
|
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.
|
|
3
|
+
"version": "8.48.1",
|
|
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.
|
|
36
|
+
"@zendeskgarden/react-theming": "^8.48.1"
|
|
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": "82c621bfbc943904baa6647a2f5e89d3271d7edf"
|
|
49
49
|
}
|