@zendeskgarden/react-theming 9.0.0-next.2 → 9.0.0-next.3
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
CHANGED
|
@@ -718,9 +718,9 @@ const ARROW_POSITION = ['top', 'top-left', 'top-right', 'right', 'right-top', 'r
|
|
|
718
718
|
const MENU_POSITION = ['top', 'right', 'bottom', 'left'];
|
|
719
719
|
const PLACEMENT = ['top', 'top-start', 'top-end', 'bottom', 'bottom-start', 'bottom-end', 'end', 'end-top', 'end-bottom', 'start', 'start-top', 'start-bottom'];
|
|
720
720
|
|
|
721
|
-
exports.
|
|
722
|
-
exports.ARRAY_MENU_POSITION = MENU_POSITION;
|
|
721
|
+
exports.ARROW_POSITION = ARROW_POSITION;
|
|
723
722
|
exports.DEFAULT_THEME = DEFAULT_THEME;
|
|
723
|
+
exports.MENU_POSITION = MENU_POSITION;
|
|
724
724
|
exports.PALETTE = PALETTE;
|
|
725
725
|
exports.PLACEMENT = PLACEMENT;
|
|
726
726
|
exports.SELECTOR_FOCUS_VISIBLE = SELECTOR_FOCUS_VISIBLE;
|
|
@@ -736,7 +736,6 @@ exports.getMenuPosition = getMenuPosition;
|
|
|
736
736
|
exports.mediaQuery = mediaQuery;
|
|
737
737
|
exports.menuStyles = menuStyles;
|
|
738
738
|
exports.retrieveComponentStyles = retrieveComponentStyles;
|
|
739
|
-
exports.retrieveTheme = retrieveComponentStyles;
|
|
740
739
|
exports.useDocument = useDocument;
|
|
741
740
|
exports.useText = useText;
|
|
742
741
|
exports.useWindow = useWindow;
|
package/dist/index.esm.js
CHANGED
|
@@ -711,4 +711,4 @@ const ARROW_POSITION = ['top', 'top-left', 'top-right', 'right', 'right-top', 'r
|
|
|
711
711
|
const MENU_POSITION = ['top', 'right', 'bottom', 'left'];
|
|
712
712
|
const PLACEMENT = ['top', 'top-start', 'top-end', 'bottom', 'bottom-start', 'bottom-end', 'end', 'end-top', 'end-bottom', 'start', 'start-top', 'start-bottom'];
|
|
713
713
|
|
|
714
|
-
export { ARROW_POSITION
|
|
714
|
+
export { ARROW_POSITION, DEFAULT_THEME, MENU_POSITION, PALETTE, PLACEMENT, SELECTOR_FOCUS_VISIBLE, ThemeProvider, arrowStyles, focusStyles, getArrowPosition, getColor, getFloatingPlacements, getFocusBoxShadow, getLineHeight, getMenuPosition, mediaQuery, menuStyles, retrieveComponentStyles, useDocument, useText, useWindow };
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
import React, { PropsWithChildren } from 'react';
|
|
8
|
-
import { IThemeProviderProps } from '../types';
|
|
8
|
+
import { IGardenTheme, IThemeProviderProps } from '../types';
|
|
9
9
|
export declare const ThemeProvider: {
|
|
10
10
|
({ theme, focusVisibleRef, children, ...other }: PropsWithChildren<IThemeProviderProps>): React.JSX.Element;
|
|
11
11
|
defaultProps: {
|
|
12
|
-
theme:
|
|
12
|
+
theme: IGardenTheme;
|
|
13
13
|
};
|
|
14
14
|
};
|
package/dist/typings/index.d.ts
CHANGED
|
@@ -7,9 +7,7 @@
|
|
|
7
7
|
export { ThemeProvider } from './elements/ThemeProvider';
|
|
8
8
|
export { default as DEFAULT_THEME } from './elements/theme';
|
|
9
9
|
export { default as PALETTE } from './elements/palette';
|
|
10
|
-
export { default as retrieveComponentStyles
|
|
11
|
-
/** `retrieveTheme` is a deprecated usage for v7 compatability */
|
|
12
|
-
default as retrieveTheme } from './utils/retrieveComponentStyles';
|
|
10
|
+
export { default as retrieveComponentStyles } from './utils/retrieveComponentStyles';
|
|
13
11
|
export { getArrowPosition } from './utils/getArrowPosition';
|
|
14
12
|
export { getColor } from './utils/getColor';
|
|
15
13
|
export { getFloatingPlacements } from './utils/getFloatingPlacements';
|
|
@@ -23,4 +21,4 @@ export { useWindow } from './utils/useWindow';
|
|
|
23
21
|
export { useText } from './utils/useText';
|
|
24
22
|
export { default as menuStyles } from './utils/menuStyles';
|
|
25
23
|
export { focusStyles, SELECTOR_FOCUS_VISIBLE } from './utils/focusStyles';
|
|
26
|
-
export { ARROW_POSITION
|
|
24
|
+
export { ARROW_POSITION, MENU_POSITION, PLACEMENT, type IGardenTheme, type IThemeProviderProps, type ArrowPosition, type MenuPosition, type Placement } from './types';
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
/// <reference types="react" />
|
|
8
|
-
import {
|
|
8
|
+
import { ThemeProviderProps } from 'styled-components';
|
|
9
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"];
|
|
10
10
|
export type ArrowPosition = (typeof ARROW_POSITION)[number];
|
|
11
11
|
export declare const MENU_POSITION: readonly ["top", "right", "bottom", "left"];
|
|
@@ -111,13 +111,13 @@ export interface IGardenTheme {
|
|
|
111
111
|
};
|
|
112
112
|
palette: Record<string, Hue>;
|
|
113
113
|
}
|
|
114
|
-
export interface IThemeProviderProps extends Partial<
|
|
114
|
+
export interface IThemeProviderProps extends Partial<ThemeProviderProps<IGardenTheme>> {
|
|
115
115
|
/**
|
|
116
116
|
* Provides values for component styling. See styled-components
|
|
117
117
|
* [`ThemeProvider`](https://styled-components.com/docs/api#themeprovider)
|
|
118
118
|
* for details.
|
|
119
119
|
*/
|
|
120
|
-
theme?: IGardenTheme;
|
|
120
|
+
theme?: IGardenTheme | ((theme: IGardenTheme) => IGardenTheme);
|
|
121
121
|
/**
|
|
122
122
|
* Provides a reference to the DOM node used to scope a `:focus-visible`
|
|
123
123
|
* polyfill. If left `undefined`, a scoping `<div>` will be rendered.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zendeskgarden/react-theming",
|
|
3
|
-
"version": "9.0.0-next.
|
|
3
|
+
"version": "9.0.0-next.3",
|
|
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>",
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"access": "public"
|
|
47
47
|
},
|
|
48
48
|
"zendeskgarden:src": "src/index.ts",
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "d5086e8a3ae0c8608361966954bf434ef03005ec"
|
|
50
50
|
}
|