@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.
Files changed (67) hide show
  1. package/dist/design-system-react-components.cjs +77 -400
  2. package/dist/design-system-react-components.js +24102 -22655
  3. package/dist/src/components/Accordion/Accordion.d.ts +1 -1
  4. package/dist/src/components/AlphabetFilter/AlphabetFilter.d.ts +1 -1
  5. package/dist/src/components/AudioPlayer/AudioPlayer.d.ts +1 -3
  6. package/dist/src/components/Breadcrumbs/Breadcrumbs.d.ts +1 -1
  7. package/dist/src/components/Button/Button.d.ts +1 -24
  8. package/dist/src/components/ButtonGroup/ButtonGroup.d.ts +1 -16
  9. package/dist/src/components/Card/Card.d.ts +4 -16
  10. package/dist/src/components/Checkbox/Checkbox.d.ts +1 -1
  11. package/dist/src/components/CheckboxGroup/CheckboxGroup.d.ts +1 -1
  12. package/dist/src/components/ComponentWrapper/ComponentWrapper.d.ts +1 -3
  13. package/dist/src/components/DatePicker/DatePicker.d.ts +1 -1
  14. package/dist/src/components/FeaturedContent/FeaturedContent.d.ts +1 -3
  15. package/dist/src/components/FeedbackBox/FeedbackBox.d.ts +2 -52
  16. package/dist/src/components/Fieldset/Fieldset.d.ts +1 -18
  17. package/dist/src/components/Form/Form.d.ts +3 -5
  18. package/dist/src/components/Grid/SimpleGrid.d.ts +1 -3
  19. package/dist/src/components/Heading/Heading.d.ts +1 -3
  20. package/dist/src/components/HelperErrorText/HelperErrorText.d.ts +1 -25
  21. package/dist/src/components/Hero/Hero.d.ts +1 -3
  22. package/dist/src/components/HorizontalRule/HorizontalRule.d.ts +1 -1
  23. package/dist/src/components/Icons/Icon.d.ts +1 -3
  24. package/dist/src/components/Image/Image.d.ts +1 -1
  25. package/dist/src/components/Label/Label.d.ts +1 -20
  26. package/dist/src/components/Link/Link.d.ts +3 -1
  27. package/dist/src/components/List/List.d.ts +1 -3
  28. package/dist/src/components/Logo/Logo.d.ts +1 -3
  29. package/dist/src/components/Modal/Modal.d.ts +2 -8
  30. package/dist/src/components/NewsletterSignup/NewsletterSignup.d.ts +1 -39
  31. package/dist/src/components/Notification/Notification.d.ts +4 -6
  32. package/dist/src/components/Pagination/Pagination.d.ts +1 -1
  33. package/dist/src/components/ProgressIndicator/ProgressIndicator.d.ts +1 -1
  34. package/dist/src/components/Radio/Radio.d.ts +1 -1
  35. package/dist/src/components/RadioGroup/RadioGroup.d.ts +1 -3
  36. package/dist/src/components/SearchBar/SearchBar.d.ts +1 -1
  37. package/dist/src/components/Select/Select.d.ts +1 -3
  38. package/dist/src/components/SkeletonLoader/SkeletonLoader.d.ts +1 -3
  39. package/dist/src/components/SkipNavigation/SkipNavigation.d.ts +1 -11
  40. package/dist/src/components/Slider/Slider.d.ts +1 -3
  41. package/dist/src/components/SocialMediaLinks/SocialMediaLinks.d.ts +1 -1
  42. package/dist/src/components/StatusBadge/StatusBadge.d.ts +1 -3
  43. package/dist/src/components/StructuredContent/StructuredContent.d.ts +1 -3
  44. package/dist/src/components/StyleGuide/ColorCard.d.ts +3 -3
  45. package/dist/src/components/StyledList/StyledList.d.ts +1 -1
  46. package/dist/src/components/Table/Table.d.ts +1 -3
  47. package/dist/src/components/Tabs/Tabs.d.ts +1 -3
  48. package/dist/src/components/TagSet/TagSet.d.ts +1 -1
  49. package/dist/src/components/TagSet/TagSetExplore.d.ts +2 -2
  50. package/dist/src/components/TagSet/TagSetFilter.d.ts +2 -1
  51. package/dist/src/components/TagSet/TooltipWrapper.d.ts +1 -3
  52. package/dist/src/components/Template/Template.d.ts +11 -15
  53. package/dist/src/components/Text/Text.d.ts +1 -3
  54. package/dist/src/components/TextInput/TextInput.d.ts +1 -1
  55. package/dist/src/components/Toggle/Toggle.d.ts +1 -1
  56. package/dist/src/components/Tooltip/Tooltip.d.ts +1 -1
  57. package/dist/src/components/VideoPlayer/VideoPlayer.d.ts +1 -3
  58. package/dist/src/theme/components/button.d.ts +115 -102
  59. package/dist/src/theme/components/card.d.ts +36 -48
  60. package/dist/src/theme/components/heading.d.ts +9 -12
  61. package/dist/src/theme/components/link.d.ts +283 -94
  62. package/dist/src/theme/components/searchBar.d.ts +3 -0
  63. package/dist/src/theme/components/structuredContent.d.ts +9 -13
  64. package/dist/src/theme/foundations/breakpoints.d.ts +2 -2
  65. package/dist/src/theme/provider.d.ts +2 -2
  66. package/package.json +20 -20
  67. 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.1.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": ">=14 <=16"
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": ">=1.2.6 <2.0.0",
60
- "@chakra-ui/react": ">=1.8.5 <=1.8.9",
61
- "@chakra-ui/system": ">=1.11.0 <=1.12.1",
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.4.1",
64
- "@emotion/styled": "11.3.0",
63
+ "@emotion/react": "11.11.1",
64
+ "@emotion/styled": "11.11.0",
65
65
  "downshift": "6.1.7",
66
- "framer-motion": "4.1.17",
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": ">=1.2.6 <2.0.0",
76
- "@chakra-ui/react": ">=1.8.5 <=1.8.9",
77
- "@chakra-ui/system": ">=1.11.0 <=1.12.1",
78
- "@emotion/react": "11.4.1",
79
- "@emotion/styled": "11.3.0",
80
- "framer-motion": "4.1.17",
81
- "react": ">=16.13.0",
82
- "react-dom": ">=16.13.0",
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": "16.9.41",
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": "17.0.2",
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-dom": "17.0.2",
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>;