@nypl/design-system-react-components 1.6.0 → 1.6.1-test-provider-2
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.
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { ColorModeProviderProps, ThemeProviderProps } from "@chakra-ui/system";
|
|
2
|
+
import { Dict } from "@chakra-ui/utils";
|
|
3
|
+
import { EnvironmentProviderProps } from "@chakra-ui/react-env";
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
export interface ChakraProviderProps extends Pick<ThemeProviderProps, "cssVarsRoot"> {
|
|
6
|
+
/**
|
|
7
|
+
* a theme. if omitted, uses the default theme provided by chakra
|
|
8
|
+
*/
|
|
9
|
+
theme?: Dict;
|
|
10
|
+
/**
|
|
11
|
+
* Common z-index to use for `Portal`
|
|
12
|
+
*
|
|
13
|
+
* @default undefined
|
|
14
|
+
*/
|
|
15
|
+
portalZIndex?: number;
|
|
16
|
+
/**
|
|
17
|
+
* If `true`, `CSSReset` component will be mounted to help
|
|
18
|
+
* you reset browser styles
|
|
19
|
+
*
|
|
20
|
+
* @default true
|
|
21
|
+
*/
|
|
22
|
+
resetCSS?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* The selector to scope the css reset styles to.
|
|
25
|
+
*/
|
|
26
|
+
resetScope?: string;
|
|
27
|
+
/**
|
|
28
|
+
* manager to persist a users color mode preference in
|
|
29
|
+
*
|
|
30
|
+
* omit if you don't render server-side
|
|
31
|
+
* for SSR: choose `cookieStorageManager`
|
|
32
|
+
*
|
|
33
|
+
* @default localStorageManager
|
|
34
|
+
*/
|
|
35
|
+
colorModeManager?: ColorModeProviderProps["colorModeManager"];
|
|
36
|
+
/**
|
|
37
|
+
* Your application content
|
|
38
|
+
*/
|
|
39
|
+
children?: React.ReactNode;
|
|
40
|
+
/**
|
|
41
|
+
* The environment (`window` and `document`) to be used by
|
|
42
|
+
* all components and hooks.
|
|
43
|
+
*
|
|
44
|
+
* By default, we smartly determine the ownerDocument and defaultView
|
|
45
|
+
* based on where `ChakraProvider` is rendered.
|
|
46
|
+
*/
|
|
47
|
+
environment?: EnvironmentProviderProps["environment"];
|
|
48
|
+
/**
|
|
49
|
+
* If `true`, Chakra will not mount the global styles defined in the theme.
|
|
50
|
+
*/
|
|
51
|
+
disableGlobalStyle?: boolean;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* The global provider that must be added to make all Chakra components
|
|
55
|
+
* work correctly
|
|
56
|
+
*/
|
|
57
|
+
export declare const ChakraProvider: React.FC<ChakraProviderProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { ChakraProviderProps } from "
|
|
3
|
-
declare const DSProvider: ({ children, colorModeManager, }: React.PropsWithChildren<ChakraProviderProps>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
2
|
+
import { ChakraProviderProps } from "./internalProvider";
|
|
3
|
+
declare const DSProvider: ({ children, colorModeManager, disableGlobalStyle, resetCSS, theme, }: React.PropsWithChildren<ChakraProviderProps>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
4
4
|
export default DSProvider;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nypl/design-system-react-components",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.1-test-provider-2",
|
|
4
4
|
"description": "NYPL Reservoir Design System React Components",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"lint": "eslint src --ext=ts,tsx --cache",
|
|
39
39
|
"prepare": "npm run build && husky install",
|
|
40
40
|
"storybook": "storybook dev -p 6006",
|
|
41
|
-
"build-storybook:v1": "
|
|
41
|
+
"build-storybook:v1": "storybook build -c .storybook -o ./reservoir/v1",
|
|
42
42
|
"prebuild:storybook": "npm run test:generate-output",
|
|
43
43
|
"build-storybook": "storybook build"
|
|
44
44
|
},
|