@zendeskgarden/react-theming 8.67.0 → 8.68.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,10 +4,10 @@
|
|
|
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 { PropsWithChildren } from 'react';
|
|
7
|
+
import React, { PropsWithChildren } from 'react';
|
|
8
8
|
import { IThemeProviderProps } from '../types';
|
|
9
9
|
export declare const ThemeProvider: {
|
|
10
|
-
({ theme, focusVisibleRef, children, ...other }: PropsWithChildren<IThemeProviderProps>): JSX.Element;
|
|
10
|
+
({ theme, focusVisibleRef, children, ...other }: PropsWithChildren<IThemeProviderProps>): React.JSX.Element;
|
|
11
11
|
defaultProps: {
|
|
12
12
|
theme: import("../types").IGardenTheme;
|
|
13
13
|
};
|
|
@@ -4,6 +4,7 @@
|
|
|
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" />
|
|
7
8
|
import { ThemeProps } from 'styled-components';
|
|
8
9
|
export declare const ARROW_POSITION: readonly ["top", "top-left", "top-right", "right", "right-top", "right-bottom", "bottom", "bottom-left", "bottom-right", "left", "left-top", "left-bottom"];
|
|
9
10
|
export type ArrowPosition = (typeof ARROW_POSITION)[number];
|
|
@@ -18,9 +18,11 @@ type FocusStylesParameters = FocusBoxShadowParameters & {
|
|
|
18
18
|
* @param {boolean} [options.condition=true] Supplies an optional condition that can be used to prevent the focus `box-shadow`
|
|
19
19
|
* @param {boolean} [options.inset=false] Determines whether the `box-shadow` is inset
|
|
20
20
|
* @param {string|Object} [options.hue='primaryHue'] Provides a theme object `palette` hue or `color` key, or any valid CSS color notation
|
|
21
|
-
* @param {string} [options.selector=SELECTOR_FOCUS_VISIBLE] Provides a
|
|
21
|
+
* @param {string} [options.selector=SELECTOR_FOCUS_VISIBLE] Provides a substitute `:focus-visible` pseudo-class CSS selector.
|
|
22
22
|
* @param {number} [options.shade=600] Selects a shade for the given hue
|
|
23
23
|
* @param {string} [options.shadowWidth='md'] Provides a theme object `shadowWidth` key for the cumulative width of the `box-shadow`
|
|
24
|
+
* @param {string|Object} [options.spacerHue='background'] Provides a theme object `palette` hue or `color` key, or any valid CSS color notation
|
|
25
|
+
* @param {number} [options.spacerShade=600] Selects a shade for the given `spacerHue`
|
|
24
26
|
* @param {string} [options.spacerWidth='xs'] Provides a theme object `shadowWidth` for the white spacer, or `null` to remove
|
|
25
27
|
* @param {Object} [options.styles] Adds CSS property values to be rendered with `:focus-visible`
|
|
26
28
|
* @param {Object} options.theme Provides values used to resolve the desired color
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zendeskgarden/react-theming",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.68.0",
|
|
4
4
|
"description": "Theming utilities and components within the Garden Design System",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Zendesk Garden <garden@zendesk.com>",
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"access": "public"
|
|
46
46
|
},
|
|
47
47
|
"zendeskgarden:src": "src/index.ts",
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "e05a28d586f47d95e0570fe2d529915aa4285845"
|
|
49
49
|
}
|