@nypl/design-system-react-components 2.1.2 → 2.2.0-react-chakra-rc-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.
- package/dist/design-system-react-components.cjs +77 -400
- package/dist/design-system-react-components.js +24102 -22655
- package/dist/src/components/Accordion/Accordion.d.ts +1 -1
- package/dist/src/components/AlphabetFilter/AlphabetFilter.d.ts +1 -1
- package/dist/src/components/AudioPlayer/AudioPlayer.d.ts +1 -3
- package/dist/src/components/Breadcrumbs/Breadcrumbs.d.ts +1 -1
- package/dist/src/components/Button/Button.d.ts +1 -24
- package/dist/src/components/ButtonGroup/ButtonGroup.d.ts +1 -16
- package/dist/src/components/Card/Card.d.ts +4 -16
- package/dist/src/components/Checkbox/Checkbox.d.ts +1 -1
- package/dist/src/components/CheckboxGroup/CheckboxGroup.d.ts +1 -1
- package/dist/src/components/ComponentWrapper/ComponentWrapper.d.ts +1 -3
- package/dist/src/components/DatePicker/DatePicker.d.ts +1 -1
- package/dist/src/components/FeaturedContent/FeaturedContent.d.ts +1 -3
- package/dist/src/components/FeedbackBox/FeedbackBox.d.ts +2 -52
- package/dist/src/components/Fieldset/Fieldset.d.ts +1 -18
- package/dist/src/components/Form/Form.d.ts +3 -5
- package/dist/src/components/Grid/SimpleGrid.d.ts +1 -3
- package/dist/src/components/Heading/Heading.d.ts +1 -3
- package/dist/src/components/HelperErrorText/HelperErrorText.d.ts +1 -25
- package/dist/src/components/Hero/Hero.d.ts +1 -3
- package/dist/src/components/HorizontalRule/HorizontalRule.d.ts +1 -1
- package/dist/src/components/Icons/Icon.d.ts +1 -3
- package/dist/src/components/Image/Image.d.ts +1 -1
- package/dist/src/components/Label/Label.d.ts +1 -20
- package/dist/src/components/Link/Link.d.ts +3 -1
- package/dist/src/components/List/List.d.ts +1 -3
- package/dist/src/components/Logo/Logo.d.ts +1 -3
- package/dist/src/components/Modal/Modal.d.ts +2 -8
- package/dist/src/components/NewsletterSignup/NewsletterSignup.d.ts +1 -39
- package/dist/src/components/Notification/Notification.d.ts +4 -6
- package/dist/src/components/Pagination/Pagination.d.ts +1 -1
- package/dist/src/components/ProgressIndicator/ProgressIndicator.d.ts +1 -1
- package/dist/src/components/Radio/Radio.d.ts +1 -1
- package/dist/src/components/RadioGroup/RadioGroup.d.ts +1 -3
- package/dist/src/components/SearchBar/SearchBar.d.ts +1 -1
- package/dist/src/components/Select/Select.d.ts +1 -3
- package/dist/src/components/SkeletonLoader/SkeletonLoader.d.ts +1 -3
- package/dist/src/components/SkipNavigation/SkipNavigation.d.ts +1 -11
- package/dist/src/components/Slider/Slider.d.ts +1 -3
- package/dist/src/components/SocialMediaLinks/SocialMediaLinks.d.ts +1 -1
- package/dist/src/components/StatusBadge/StatusBadge.d.ts +1 -3
- package/dist/src/components/StructuredContent/StructuredContent.d.ts +1 -3
- package/dist/src/components/StyleGuide/ColorCard.d.ts +3 -3
- package/dist/src/components/StyledList/StyledList.d.ts +1 -1
- package/dist/src/components/Table/Table.d.ts +1 -3
- package/dist/src/components/Tabs/Tabs.d.ts +1 -3
- package/dist/src/components/TagSet/TagSet.d.ts +1 -1
- package/dist/src/components/TagSet/TagSetExplore.d.ts +2 -2
- package/dist/src/components/TagSet/TagSetFilter.d.ts +2 -1
- package/dist/src/components/TagSet/TooltipWrapper.d.ts +1 -3
- package/dist/src/components/Template/Template.d.ts +11 -15
- package/dist/src/components/Text/Text.d.ts +1 -3
- package/dist/src/components/TextInput/TextInput.d.ts +1 -1
- package/dist/src/components/Toggle/Toggle.d.ts +1 -1
- package/dist/src/components/Tooltip/Tooltip.d.ts +1 -1
- package/dist/src/components/VideoPlayer/VideoPlayer.d.ts +1 -3
- package/dist/src/theme/components/button.d.ts +115 -102
- package/dist/src/theme/components/card.d.ts +36 -48
- package/dist/src/theme/components/heading.d.ts +9 -12
- package/dist/src/theme/components/link.d.ts +283 -94
- package/dist/src/theme/components/searchBar.d.ts +3 -0
- package/dist/src/theme/components/structuredContent.d.ts +9 -13
- package/dist/src/theme/foundations/breakpoints.d.ts +2 -2
- package/dist/src/theme/provider.d.ts +2 -2
- package/package.json +20 -20
- package/dist/src/theme/internalChakraProvider.d.ts +0 -67
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nypl/design-system-react-components",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0-react-chakra-rc-2",
|
|
4
4
|
"description": "NYPL Reservoir Design System React Components",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"./dist/styles.css": "./dist/styles.css"
|
|
22
22
|
},
|
|
23
23
|
"engines": {
|
|
24
|
-
"node": ">=
|
|
24
|
+
"node": ">=18"
|
|
25
25
|
},
|
|
26
26
|
"author": "NYPL",
|
|
27
27
|
"license": "Apache-2.0",
|
|
@@ -56,14 +56,14 @@
|
|
|
56
56
|
"types-ramda": "0.29.4"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@chakra-ui/focus-lock": "
|
|
60
|
-
"@chakra-ui/react": "
|
|
61
|
-
"@chakra-ui/system": "
|
|
59
|
+
"@chakra-ui/focus-lock": "2.1.0",
|
|
60
|
+
"@chakra-ui/react": "2.8.1",
|
|
61
|
+
"@chakra-ui/system": "2.6.2",
|
|
62
62
|
"@charlietango/use-native-lazy-loading": "1.10.0",
|
|
63
|
-
"@emotion/react": "11.
|
|
64
|
-
"@emotion/styled": "11.
|
|
63
|
+
"@emotion/react": "11.11.1",
|
|
64
|
+
"@emotion/styled": "11.11.0",
|
|
65
65
|
"downshift": "6.1.7",
|
|
66
|
-
"framer-motion": "
|
|
66
|
+
"framer-motion": "10.16.4",
|
|
67
67
|
"react-datepicker": "4.14.1",
|
|
68
68
|
"react-intersection-observer": "9.2.2",
|
|
69
69
|
"system-font-css": "2.0.2",
|
|
@@ -72,14 +72,14 @@
|
|
|
72
72
|
"vite-plugin-svgr": "2.4.0"
|
|
73
73
|
},
|
|
74
74
|
"peerDependencies": {
|
|
75
|
-
"@chakra-ui/focus-lock": ">=
|
|
76
|
-
"@chakra-ui/
|
|
77
|
-
"@chakra-ui/
|
|
78
|
-
"@emotion/react": "11.
|
|
79
|
-
"@emotion/styled": "11.
|
|
80
|
-
"framer-motion": "
|
|
81
|
-
"react": ">=
|
|
82
|
-
"react-dom": ">=
|
|
75
|
+
"@chakra-ui/focus-lock": ">=2.1.0",
|
|
76
|
+
"@chakra-ui/system": ">=2.6.2",
|
|
77
|
+
"@chakra-ui/react": ">=2.8.1",
|
|
78
|
+
"@emotion/react": ">=11.11.1",
|
|
79
|
+
"@emotion/styled": ">=11.11.0",
|
|
80
|
+
"framer-motion": ">=10.16.4",
|
|
81
|
+
"react": ">=17",
|
|
82
|
+
"react-dom": ">=17",
|
|
83
83
|
"typescript": "4.9.5"
|
|
84
84
|
},
|
|
85
85
|
"devDependencies": {
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
"@types/jest": "29.4.0",
|
|
106
106
|
"@types/jest-axe": "3.5.3",
|
|
107
107
|
"@types/node": "18.13.0",
|
|
108
|
-
"@types/react": "
|
|
108
|
+
"@types/react": "18.2.21",
|
|
109
109
|
"@types/testing-library__jest-dom": "5.14.1",
|
|
110
110
|
"@typescript-eslint/eslint-plugin": "5.57.0",
|
|
111
111
|
"@typescript-eslint/parser": "5.57.0",
|
|
@@ -125,11 +125,11 @@
|
|
|
125
125
|
"normalize.css": "8.0.1",
|
|
126
126
|
"prettier": "2.4.1",
|
|
127
127
|
"prop-types": "15.8.1",
|
|
128
|
-
"react": "
|
|
128
|
+
"react": "18.2.0",
|
|
129
|
+
"react-dom": "18.2.0",
|
|
129
130
|
"react-autosuggest": "10.0.2",
|
|
130
131
|
"react-docgen-typescript-loader": "3.7.2",
|
|
131
|
-
"react-
|
|
132
|
-
"react-test-renderer": "17.0.2",
|
|
132
|
+
"react-test-renderer": "18.2.0",
|
|
133
133
|
"remark-gfm": "3.0.1",
|
|
134
134
|
"sass": "1.60.0",
|
|
135
135
|
"sass-loader": "10.0.0",
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* DS Maintainer note:
|
|
3
|
-
* This file is a copy of the ChakraProvider component from the Chakra UI v1.8.8
|
|
4
|
-
* library. The fixes we want are available in v2.7.0 but that is not compatible
|
|
5
|
-
* with our current implementation. The workaround is to copy the entire component
|
|
6
|
-
* and add the fixes ourselves. The prop names are kept the same as the fixed
|
|
7
|
-
* 2.7.0 version to allow an easier upgrade path in the future.
|
|
8
|
-
*
|
|
9
|
-
* https://github.com/chakra-ui/chakra-ui/blob/%40chakra-ui/react%401.8.8/packages/provider/src/chakra-provider.tsx
|
|
10
|
-
*/
|
|
11
|
-
import { ColorModeProviderProps, ThemeProviderProps } from "@chakra-ui/system";
|
|
12
|
-
import { Dict } from "@chakra-ui/utils";
|
|
13
|
-
import { EnvironmentProviderProps } from "@chakra-ui/react-env";
|
|
14
|
-
import * as React from "react";
|
|
15
|
-
export interface ChakraProviderProps extends Pick<ThemeProviderProps, "cssVarsRoot"> {
|
|
16
|
-
/**
|
|
17
|
-
* a theme. if omitted, uses the default theme provided by chakra
|
|
18
|
-
*/
|
|
19
|
-
theme?: Dict;
|
|
20
|
-
/**
|
|
21
|
-
* Common z-index to use for `Portal`
|
|
22
|
-
*
|
|
23
|
-
* @default undefined
|
|
24
|
-
*/
|
|
25
|
-
portalZIndex?: number;
|
|
26
|
-
/**
|
|
27
|
-
* If `true`, `CSSReset` component will be mounted to help
|
|
28
|
-
* you reset browser styles
|
|
29
|
-
*
|
|
30
|
-
* @default true
|
|
31
|
-
*/
|
|
32
|
-
resetCSS?: boolean;
|
|
33
|
-
/**
|
|
34
|
-
* The selector to scope the css reset styles to.
|
|
35
|
-
*/
|
|
36
|
-
resetScope?: string;
|
|
37
|
-
/**
|
|
38
|
-
* manager to persist a users color mode preference in
|
|
39
|
-
*
|
|
40
|
-
* omit if you don't render server-side
|
|
41
|
-
* for SSR: choose `cookieStorageManager`
|
|
42
|
-
*
|
|
43
|
-
* @default localStorageManager
|
|
44
|
-
*/
|
|
45
|
-
colorModeManager?: ColorModeProviderProps["colorModeManager"];
|
|
46
|
-
/**
|
|
47
|
-
* Your application content
|
|
48
|
-
*/
|
|
49
|
-
children?: React.ReactNode;
|
|
50
|
-
/**
|
|
51
|
-
* The environment (`window` and `document`) to be used by
|
|
52
|
-
* all components and hooks.
|
|
53
|
-
*
|
|
54
|
-
* By default, we smartly determine the ownerDocument and defaultView
|
|
55
|
-
* based on where `ChakraProvider` is rendered.
|
|
56
|
-
*/
|
|
57
|
-
environment?: EnvironmentProviderProps["environment"];
|
|
58
|
-
/**
|
|
59
|
-
* If `true`, Chakra will not mount the global styles defined in the theme.
|
|
60
|
-
*/
|
|
61
|
-
disableGlobalStyle?: boolean;
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* The global provider that must be added to make all Chakra components
|
|
65
|
-
* work correctly
|
|
66
|
-
*/
|
|
67
|
-
export declare const ChakraProvider: React.FC<ChakraProviderProps>;
|