@zendeskgarden/react-typography 9.0.0-next.9 → 9.1.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.
@@ -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: React.ForwardRefExoticComponent<IOrderedListProps & React.RefAttributes<HTMLOListElement>> & {
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: React.ForwardRefExoticComponent<IUnorderedListProps & React.RefAttributes<HTMLUListElement>> & {
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: React.ForwardRefExoticComponent<ISpanProps & React.RefAttributes<HTMLSpanElement>> & {
15
+ export declare const Span: typeof SpanComponent & {
15
16
  Icon: typeof Icon;
16
17
  StartIcon: typeof StartIcon;
17
18
  };
19
+ export {};
@@ -8,12 +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?: string;
11
+ hue?: ICodeProps['hue'];
12
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
- } & IStyledCodeProps, "as" | "data-garden-id" | "data-garden-version">;
18
+ isMonospace: boolean;
19
+ } & IStyledCodeProps, "isMonospace" | "as" | "data-garden-id" | "data-garden-version">;
19
20
  export {};
@@ -5,10 +5,7 @@
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
7
  import { DefaultTheme } from 'styled-components';
8
- export interface IStyledCodeBlockProps {
9
- isLight?: boolean;
10
- }
11
8
  export declare const StyledCodeBlock: import("styled-components").StyledComponent<"pre", DefaultTheme, {
12
9
  'data-garden-id': string;
13
10
  'data-garden-version': string;
14
- } & IStyledCodeBlockProps, "data-garden-id" | "data-garden-version">;
11
+ }, "data-garden-id" | "data-garden-version">;
@@ -10,15 +10,10 @@ import { Diff, Size } from '../types';
10
10
  export interface IStyledCodeBlockLineProps {
11
11
  language?: Language;
12
12
  isHighlighted?: boolean;
13
- isLight?: boolean;
14
13
  isNumbered?: boolean;
15
14
  diff?: Diff;
16
15
  size?: Size;
17
16
  }
18
- /**
19
- * 1. Fix line display for mobile.
20
- * 2. Match parent padding for overflow scroll.
21
- */
22
17
  export declare const StyledCodeBlockLine: import("styled-components").StyledComponent<"code", DefaultTheme, {
23
18
  'data-garden-id': string;
24
19
  'data-garden-version': string;
@@ -5,10 +5,7 @@
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
7
  import { DefaultTheme } from 'styled-components';
8
- export interface IStyledCodeBlockTokenProps {
9
- isLight?: boolean;
10
- }
11
8
  export declare const StyledCodeBlockToken: import("styled-components").StyledComponent<"span", DefaultTheme, {
12
9
  'data-garden-id': string;
13
10
  'data-garden-version': string;
14
- } & IStyledCodeBlockTokenProps, "data-garden-id" | "data-garden-version">;
11
+ }, "data-garden-id" | "data-garden-version">;
@@ -4,12 +4,11 @@
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;
11
10
  }
12
- export declare const StyledIcon: import("styled-components").StyledComponent<({ children, theme, ...props }: any) => import("react").DetailedReactHTMLElement<any, HTMLElement>, DefaultTheme, {
11
+ export declare const StyledIcon: import("styled-components").StyledComponent<({ children, theme, ...props }: any) => React.DetailedReactHTMLElement<any, HTMLElement>, DefaultTheme, {
13
12
  'data-garden-id': string;
14
13
  'data-garden-version': string;
15
14
  } & IStyledIconProps, "data-garden-id" | "data-garden-version">;
@@ -10,7 +10,7 @@ export declare const SIZE: readonly ["small", "medium", "large"];
10
10
  export declare const INHERIT_SIZE: readonly ["inherit", "small", "medium", "large"];
11
11
  export declare const TYPE_ORDERED_LIST: readonly ["decimal", "decimal-leading-zero", "lower-alpha", "lower-roman", "upper-alpha", "upper-roman"];
12
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"];
13
+ export declare const LANGUAGES: readonly ["bash", "css", "diff", "graphql", "javascript", "json", "jsx", "markdown", "markup", "python", "typescript", "tsx", "yaml"];
14
14
  export type Diff = 'hunk' | 'add' | 'delete' | 'change';
15
15
  export type Size = (typeof SIZE)[number];
16
16
  export interface ITypescaleProps extends HTMLAttributes<HTMLDivElement> {
@@ -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 [PALETTE](/components/palette#palette) colors
81
- * when possible. Accepts all hex values.
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 */
@@ -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 { Size } from '../types';
9
8
  interface IOrderedListContext {
10
9
  size: Size;
@@ -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 { Size } from '../types';
9
8
  interface IUnorderedListContext {
10
9
  size: Size;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zendeskgarden/react-typography",
3
- "version": "9.0.0-next.9",
3
+ "version": "9.1.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>",
@@ -21,19 +21,19 @@
21
21
  "sideEffects": false,
22
22
  "types": "dist/typings/index.d.ts",
23
23
  "dependencies": {
24
- "@zendeskgarden/container-scrollregion": "^1.0.0",
25
- "polished": "^4.0.0",
26
- "prism-react-renderer": "^1.1.1",
24
+ "@zendeskgarden/container-scrollregion": "^1.0.9",
25
+ "polished": "^4.3.1",
26
+ "prism-react-renderer": "^1.3.5",
27
27
  "prop-types": "^15.5.7"
28
28
  },
29
29
  "peerDependencies": {
30
30
  "@zendeskgarden/react-theming": ">=9.0.0-next",
31
- "react": ">=16.8.0",
32
- "react-dom": ">=16.8.0",
31
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0",
32
+ "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0",
33
33
  "styled-components": "^5.3.1"
34
34
  },
35
35
  "devDependencies": {
36
- "@zendeskgarden/react-theming": "^9.0.0-next.9"
36
+ "@zendeskgarden/react-theming": "^9.1.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": "771281b562d376a6aee04b0cd71dd888b3ae4a1d"
48
+ "gitHead": "a2842d18615ad057d75988fde4df5a0c79d2714e"
49
49
  }