@zendeskgarden/react-typography 8.69.2 → 8.69.4
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 +16 -16
- package/dist/index.esm.js +16 -16
- package/dist/typings/elements/Blockquote.d.ts +12 -12
- package/dist/typings/elements/Code.d.ts +12 -12
- package/dist/typings/elements/CodeBlock.d.ts +12 -12
- package/dist/typings/elements/Ellipsis.d.ts +12 -12
- package/dist/typings/elements/LG.d.ts +12 -12
- package/dist/typings/elements/MD.d.ts +12 -12
- package/dist/typings/elements/Paragraph.d.ts +12 -12
- package/dist/typings/elements/SM.d.ts +12 -12
- package/dist/typings/elements/XL.d.ts +12 -12
- package/dist/typings/elements/XXL.d.ts +12 -12
- package/dist/typings/elements/XXXL.d.ts +12 -12
- package/dist/typings/elements/lists/OrderedList.d.ts +15 -15
- package/dist/typings/elements/lists/OrderedListItem.d.ts +11 -11
- package/dist/typings/elements/lists/UnorderedList.d.ts +15 -15
- package/dist/typings/elements/lists/UnorderedListItem.d.ts +11 -11
- package/dist/typings/elements/span/Icon.d.ts +14 -14
- package/dist/typings/elements/span/Span.d.ts +17 -17
- package/dist/typings/elements/span/StartIcon.d.ts +14 -14
- package/dist/typings/index.d.ts +21 -21
- package/dist/typings/styled/StyledBlockquote.d.ts +11 -11
- package/dist/typings/styled/StyledCode.d.ts +19 -19
- package/dist/typings/styled/StyledCodeBlock.d.ts +14 -14
- package/dist/typings/styled/StyledCodeBlockContainer.d.ts +10 -10
- package/dist/typings/styled/StyledCodeBlockLine.d.ts +27 -27
- package/dist/typings/styled/StyledCodeBlockToken.d.ts +14 -14
- package/dist/typings/styled/StyledEllipsis.d.ts +10 -10
- package/dist/typings/styled/StyledFont.d.ts +23 -23
- package/dist/typings/styled/StyledIcon.d.ts +16 -16
- package/dist/typings/styled/StyledList.d.ts +23 -23
- package/dist/typings/styled/StyledListItem.d.ts +22 -22
- package/dist/typings/styled/StyledParagraph.d.ts +11 -11
- package/dist/typings/styled/index.d.ts +18 -18
- package/dist/typings/types/index.d.ts +84 -84
- package/dist/typings/utils/useOrderedListContext.d.ts +17 -17
- package/dist/typings/utils/useUnorderedListContext.d.ts +17 -17
- package/package.json +3 -3
|
@@ -1,84 +1,84 @@
|
|
|
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 { BlockquoteHTMLAttributes, HTMLAttributes, OlHTMLAttributes } from 'react';
|
|
8
|
-
export declare const HUE: readonly ["grey", "red", "green", "yellow"];
|
|
9
|
-
export declare const SIZE: readonly ["small", "medium", "large"];
|
|
10
|
-
export declare const INHERIT_SIZE: readonly ["inherit", "small", "medium", "large"];
|
|
11
|
-
export declare const TYPE_ORDERED_LIST: readonly ["decimal", "decimal-leading-zero", "lower-alpha", "lower-roman", "upper-alpha", "upper-roman"];
|
|
12
|
-
export declare const TYPE_UNORDERED_LIST: readonly ["circle", "disc", "square"];
|
|
13
|
-
export declare const LANGUAGES: readonly ["markup", "bash", "clike", "c", "cpp", "css", "javascript", "jsx", "coffeescript", "actionscript", "css-extr", "diff", "git", "go", "graphql", "handlebars", "json", "less", "makefile", "markdown", "objectivec", "ocaml", "python", "reason", "sass", "scss", "sql", "stylus", "tsx", "typescript", "wasm", "yaml"];
|
|
14
|
-
export type Diff = 'hunk' | 'add' | 'delete' | 'change';
|
|
15
|
-
export type Size = (typeof SIZE)[number];
|
|
16
|
-
export interface ITypescaleProps extends HTMLAttributes<HTMLDivElement> {
|
|
17
|
-
/** Updates the element's HTML tag */
|
|
18
|
-
tag?: any;
|
|
19
|
-
/** Applies bold font style */
|
|
20
|
-
isBold?: boolean;
|
|
21
|
-
}
|
|
22
|
-
export interface ITypescaleMonospaceProps extends ITypescaleProps {
|
|
23
|
-
/** Renders with monospace font */
|
|
24
|
-
isMonospace?: boolean;
|
|
25
|
-
}
|
|
26
|
-
export interface IBlockquoteProps extends BlockquoteHTMLAttributes<HTMLQuoteElement> {
|
|
27
|
-
/** Controls the spacing between sibling blockquotes and paragraphs */
|
|
28
|
-
size?: Size;
|
|
29
|
-
}
|
|
30
|
-
export interface ICodeProps extends HTMLAttributes<HTMLElement> {
|
|
31
|
-
/** Applies color to the background and the text */
|
|
32
|
-
hue?: (typeof HUE)[number];
|
|
33
|
-
/** Adjusts the font size. By default font size is inherited from the surrounding text. */
|
|
34
|
-
size?: (typeof INHERIT_SIZE)[number];
|
|
35
|
-
}
|
|
36
|
-
export interface ICodeBlockProps extends HTMLAttributes<HTMLPreElement> {
|
|
37
|
-
/** Selects the language used by the [Prism](https://prismjs.com/) tokenizer */
|
|
38
|
-
language?: (typeof LANGUAGES)[number];
|
|
39
|
-
/** Specifies the font size */
|
|
40
|
-
size?: Size;
|
|
41
|
-
/** Applies light mode styling */
|
|
42
|
-
isLight?: boolean;
|
|
43
|
-
/** Displays line numbers */
|
|
44
|
-
isNumbered?: boolean;
|
|
45
|
-
/** Determines the lines to highlight */
|
|
46
|
-
highlightLines?: number[];
|
|
47
|
-
/** Passes props to the code block container */
|
|
48
|
-
containerProps?: HTMLAttributes<HTMLDivElement>;
|
|
49
|
-
}
|
|
50
|
-
export interface IEllipsisProps extends HTMLAttributes<HTMLDivElement> {
|
|
51
|
-
/** Overrides the auto-generated `title` attribute */
|
|
52
|
-
title?: string;
|
|
53
|
-
/** Updates the element's HTML tag */
|
|
54
|
-
tag?: any;
|
|
55
|
-
}
|
|
56
|
-
export interface IParagraphProps extends HTMLAttributes<HTMLParagraphElement> {
|
|
57
|
-
/** Controls the spacing between sibling paragraphs */
|
|
58
|
-
size?: Size;
|
|
59
|
-
}
|
|
60
|
-
export interface IOrderedListProps extends Omit<OlHTMLAttributes<HTMLOListElement>, 'type'> {
|
|
61
|
-
/** Adjusts the vertical spacing between list items */
|
|
62
|
-
size?: Size;
|
|
63
|
-
/** Sets the marker style */
|
|
64
|
-
type?: (typeof TYPE_ORDERED_LIST)[number];
|
|
65
|
-
}
|
|
66
|
-
export interface IUnorderedListProps extends HTMLAttributes<HTMLUListElement> {
|
|
67
|
-
/** Adjusts the vertical spacing between list items */
|
|
68
|
-
size?: Size;
|
|
69
|
-
/** Sets the marker style */
|
|
70
|
-
type?: (typeof TYPE_UNORDERED_LIST)[number];
|
|
71
|
-
}
|
|
72
|
-
export interface ISpanProps extends HTMLAttributes<HTMLSpanElement> {
|
|
73
|
-
/** Updates the element's HTML tag */
|
|
74
|
-
tag?: any;
|
|
75
|
-
/** Applies bold font style. Font weight is inherited by default. */
|
|
76
|
-
isBold?: boolean;
|
|
77
|
-
/** Renders with monospace font */
|
|
78
|
-
isMonospace?: boolean;
|
|
79
|
-
/**
|
|
80
|
-
* Applies a font color. Use [PALETTE](/components/palette#palette) colors
|
|
81
|
-
* when possible. Accepts all hex values.
|
|
82
|
-
*/
|
|
83
|
-
hue?: string;
|
|
84
|
-
}
|
|
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 { BlockquoteHTMLAttributes, HTMLAttributes, OlHTMLAttributes } from 'react';
|
|
8
|
+
export declare const HUE: readonly ["grey", "red", "green", "yellow"];
|
|
9
|
+
export declare const SIZE: readonly ["small", "medium", "large"];
|
|
10
|
+
export declare const INHERIT_SIZE: readonly ["inherit", "small", "medium", "large"];
|
|
11
|
+
export declare const TYPE_ORDERED_LIST: readonly ["decimal", "decimal-leading-zero", "lower-alpha", "lower-roman", "upper-alpha", "upper-roman"];
|
|
12
|
+
export declare const TYPE_UNORDERED_LIST: readonly ["circle", "disc", "square"];
|
|
13
|
+
export declare const LANGUAGES: readonly ["markup", "bash", "clike", "c", "cpp", "css", "javascript", "jsx", "coffeescript", "actionscript", "css-extr", "diff", "git", "go", "graphql", "handlebars", "json", "less", "makefile", "markdown", "objectivec", "ocaml", "python", "reason", "sass", "scss", "sql", "stylus", "tsx", "typescript", "wasm", "yaml"];
|
|
14
|
+
export type Diff = 'hunk' | 'add' | 'delete' | 'change';
|
|
15
|
+
export type Size = (typeof SIZE)[number];
|
|
16
|
+
export interface ITypescaleProps extends HTMLAttributes<HTMLDivElement> {
|
|
17
|
+
/** Updates the element's HTML tag */
|
|
18
|
+
tag?: any;
|
|
19
|
+
/** Applies bold font style */
|
|
20
|
+
isBold?: boolean;
|
|
21
|
+
}
|
|
22
|
+
export interface ITypescaleMonospaceProps extends ITypescaleProps {
|
|
23
|
+
/** Renders with monospace font */
|
|
24
|
+
isMonospace?: boolean;
|
|
25
|
+
}
|
|
26
|
+
export interface IBlockquoteProps extends BlockquoteHTMLAttributes<HTMLQuoteElement> {
|
|
27
|
+
/** Controls the spacing between sibling blockquotes and paragraphs */
|
|
28
|
+
size?: Size;
|
|
29
|
+
}
|
|
30
|
+
export interface ICodeProps extends HTMLAttributes<HTMLElement> {
|
|
31
|
+
/** Applies color to the background and the text */
|
|
32
|
+
hue?: (typeof HUE)[number];
|
|
33
|
+
/** Adjusts the font size. By default font size is inherited from the surrounding text. */
|
|
34
|
+
size?: (typeof INHERIT_SIZE)[number];
|
|
35
|
+
}
|
|
36
|
+
export interface ICodeBlockProps extends HTMLAttributes<HTMLPreElement> {
|
|
37
|
+
/** Selects the language used by the [Prism](https://prismjs.com/) tokenizer */
|
|
38
|
+
language?: (typeof LANGUAGES)[number];
|
|
39
|
+
/** Specifies the font size */
|
|
40
|
+
size?: Size;
|
|
41
|
+
/** Applies light mode styling */
|
|
42
|
+
isLight?: boolean;
|
|
43
|
+
/** Displays line numbers */
|
|
44
|
+
isNumbered?: boolean;
|
|
45
|
+
/** Determines the lines to highlight */
|
|
46
|
+
highlightLines?: number[];
|
|
47
|
+
/** Passes props to the code block container */
|
|
48
|
+
containerProps?: HTMLAttributes<HTMLDivElement>;
|
|
49
|
+
}
|
|
50
|
+
export interface IEllipsisProps extends HTMLAttributes<HTMLDivElement> {
|
|
51
|
+
/** Overrides the auto-generated `title` attribute */
|
|
52
|
+
title?: string;
|
|
53
|
+
/** Updates the element's HTML tag */
|
|
54
|
+
tag?: any;
|
|
55
|
+
}
|
|
56
|
+
export interface IParagraphProps extends HTMLAttributes<HTMLParagraphElement> {
|
|
57
|
+
/** Controls the spacing between sibling paragraphs */
|
|
58
|
+
size?: Size;
|
|
59
|
+
}
|
|
60
|
+
export interface IOrderedListProps extends Omit<OlHTMLAttributes<HTMLOListElement>, 'type'> {
|
|
61
|
+
/** Adjusts the vertical spacing between list items */
|
|
62
|
+
size?: Size;
|
|
63
|
+
/** Sets the marker style */
|
|
64
|
+
type?: (typeof TYPE_ORDERED_LIST)[number];
|
|
65
|
+
}
|
|
66
|
+
export interface IUnorderedListProps extends HTMLAttributes<HTMLUListElement> {
|
|
67
|
+
/** Adjusts the vertical spacing between list items */
|
|
68
|
+
size?: Size;
|
|
69
|
+
/** Sets the marker style */
|
|
70
|
+
type?: (typeof TYPE_UNORDERED_LIST)[number];
|
|
71
|
+
}
|
|
72
|
+
export interface ISpanProps extends HTMLAttributes<HTMLSpanElement> {
|
|
73
|
+
/** Updates the element's HTML tag */
|
|
74
|
+
tag?: any;
|
|
75
|
+
/** Applies bold font style. Font weight is inherited by default. */
|
|
76
|
+
isBold?: boolean;
|
|
77
|
+
/** Renders with monospace font */
|
|
78
|
+
isMonospace?: boolean;
|
|
79
|
+
/**
|
|
80
|
+
* Applies a font color. Use [PALETTE](/components/palette#palette) colors
|
|
81
|
+
* when possible. Accepts all hex values.
|
|
82
|
+
*/
|
|
83
|
+
hue?: string;
|
|
84
|
+
}
|
|
@@ -1,17 +1,17 @@
|
|
|
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
|
-
/// <reference types="react" />
|
|
8
|
-
import { Size } from '../types';
|
|
9
|
-
interface IOrderedListContext {
|
|
10
|
-
size: Size;
|
|
11
|
-
}
|
|
12
|
-
export declare const OrderedListContext: import("react").Context<IOrderedListContext | undefined>;
|
|
13
|
-
/**
|
|
14
|
-
* Retrieve OrderedList component context
|
|
15
|
-
*/
|
|
16
|
-
declare const useOrderedListContext: () => IOrderedListContext;
|
|
17
|
-
export default useOrderedListContext;
|
|
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
|
+
/// <reference types="react" />
|
|
8
|
+
import { Size } from '../types';
|
|
9
|
+
interface IOrderedListContext {
|
|
10
|
+
size: Size;
|
|
11
|
+
}
|
|
12
|
+
export declare const OrderedListContext: import("react").Context<IOrderedListContext | undefined>;
|
|
13
|
+
/**
|
|
14
|
+
* Retrieve OrderedList component context
|
|
15
|
+
*/
|
|
16
|
+
declare const useOrderedListContext: () => IOrderedListContext;
|
|
17
|
+
export default useOrderedListContext;
|
|
@@ -1,17 +1,17 @@
|
|
|
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
|
-
/// <reference types="react" />
|
|
8
|
-
import { Size } from '../types';
|
|
9
|
-
interface IUnorderedListContext {
|
|
10
|
-
size: Size;
|
|
11
|
-
}
|
|
12
|
-
export declare const UnorderedListContext: import("react").Context<IUnorderedListContext | undefined>;
|
|
13
|
-
/**
|
|
14
|
-
* Retrieve UnorderedList component context
|
|
15
|
-
*/
|
|
16
|
-
declare const useUnorderedListContext: () => IUnorderedListContext;
|
|
17
|
-
export default useUnorderedListContext;
|
|
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
|
+
/// <reference types="react" />
|
|
8
|
+
import { Size } from '../types';
|
|
9
|
+
interface IUnorderedListContext {
|
|
10
|
+
size: Size;
|
|
11
|
+
}
|
|
12
|
+
export declare const UnorderedListContext: import("react").Context<IUnorderedListContext | undefined>;
|
|
13
|
+
/**
|
|
14
|
+
* Retrieve UnorderedList component context
|
|
15
|
+
*/
|
|
16
|
+
declare const useUnorderedListContext: () => IUnorderedListContext;
|
|
17
|
+
export default useUnorderedListContext;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zendeskgarden/react-typography",
|
|
3
|
-
"version": "8.69.
|
|
3
|
+
"version": "8.69.4",
|
|
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.69.
|
|
36
|
+
"@zendeskgarden/react-theming": "^8.69.4"
|
|
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": "4911fa867a3c7e72f0c78dcea8748893c3070c17"
|
|
49
49
|
}
|