@nypl/design-system-react-components 1.2.2 → 1.3.0-rc

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,5 @@
1
+ /**
2
+ * DS internal helper hook to use state with prop dependencies.
3
+ */
4
+ declare function useStateWithDependencies(initialValue: any): typeof initialValue;
5
+ export default useStateWithDependencies;
package/dist/index.d.ts CHANGED
@@ -41,6 +41,7 @@ export { default as SkipNavigation } from "./components/SkipNavigation/SkipNavig
41
41
  export { default as Slider } from "./components/Slider/Slider";
42
42
  export { default as StatusBadge, StatusBadgeTypes, } from "./components/StatusBadge/StatusBadge";
43
43
  export { default as StructuredContent, StructuredContentImagePosition, } from "./components/StructuredContent/StructuredContent";
44
+ export { default as StyledList } from "./components/StyledList/StyledList";
44
45
  export { default as Tabs, TabList, Tab, TabPanels, TabPanel, } from "./components/Tabs/Tabs";
45
46
  export { default as TagSet } from "./components/TagSet/TagSet";
46
47
  export { TagSetExploreDataProps } from "./components/TagSet/TagSetExplore";
@@ -0,0 +1,57 @@
1
+ declare const FeedbackBox: {
2
+ parts: string[];
3
+ baseStyle: {
4
+ closeButton: {
5
+ p: string;
6
+ span: {
7
+ clip: string;
8
+ height: {
9
+ base: string;
10
+ md: string;
11
+ };
12
+ overflow: string;
13
+ position: {
14
+ base: string;
15
+ md: string;
16
+ };
17
+ width: {
18
+ base: string;
19
+ md: string;
20
+ };
21
+ wordWrap: string;
22
+ };
23
+ };
24
+ drawerBody: {
25
+ paddingTop: string;
26
+ paddingBottom: string;
27
+ };
28
+ drawerContent: {
29
+ marginStart: string;
30
+ width: {
31
+ base: string;
32
+ md: string;
33
+ };
34
+ };
35
+ drawerHeader: {
36
+ alignItems: string;
37
+ background: string;
38
+ borderBottomWidth: string;
39
+ display: string;
40
+ fontSize: string;
41
+ px: string;
42
+ paddingTop: string;
43
+ paddingBottom: string;
44
+ p: {
45
+ marginBottom: string;
46
+ };
47
+ };
48
+ openButton: {
49
+ position: string;
50
+ borderRadius: string;
51
+ bottom: string;
52
+ right: string;
53
+ zIndex: string;
54
+ };
55
+ };
56
+ };
57
+ export default FeedbackBox;
@@ -0,0 +1,41 @@
1
+ declare const StyledList: {
2
+ baseStyle: ({ textSize }: {
3
+ textSize?: string;
4
+ }) => {
5
+ listStyle: string;
6
+ li: {
7
+ _before: {
8
+ color: string;
9
+ content: string;
10
+ display: string;
11
+ fontWeight: string;
12
+ fontSize: string;
13
+ lineHeight: string;
14
+ marginStart: string;
15
+ width: string;
16
+ };
17
+ };
18
+ margin: string;
19
+ marginBottom: string;
20
+ marginInlineStart: string;
21
+ paddingStart: string;
22
+ padding: string;
23
+ display: string;
24
+ fontSize: string;
25
+ };
26
+ variants: {
27
+ capped: {
28
+ li: {
29
+ borderStart: string;
30
+ borderEnd: {
31
+ base: string;
32
+ md: string;
33
+ };
34
+ borderColor: string;
35
+ my: string;
36
+ px: string;
37
+ };
38
+ };
39
+ };
40
+ };
41
+ export default StyledList;
@@ -12,7 +12,7 @@ declare const _default: import("@chakra-ui/theme-tools").Breakpoints<{
12
12
  * Chakra Value | DS Variable | EM/PX value
13
13
  * ------------------------------------------------------
14
14
  * sm | --nypl-breakpoint-small | 20em/320px
15
- * md | --nypl-breakpoint-medium | 38em/600px
15
+ * md | --nypl-breakpoint-medium | 37.5em/600px
16
16
  * lg | --nypl-breakpoint-large | 60em/960px
17
17
  * xl | --nypl-breakpoint-xl | 80em/1280px
18
18
  * 2xl | N/A | 96em/1536px
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nypl/design-system-react-components",
3
- "version": "1.2.2",
3
+ "version": "1.3.0-rc",
4
4
  "description": "NYPL Reservoir Design System React Components",
5
5
  "repository": {
6
6
  "type": "git",
@@ -32,7 +32,7 @@
32
32
  "analyze": "size-limit --why",
33
33
  "generate-sass-resources": "gulp",
34
34
  "storybook": "start-storybook -p 6006 -s ./.storybook/public",
35
- "build-storybook:v1": "npm run prebuild:storybook && build-storybook -c .storybook -o ./reservoir/v1",
35
+ "build-storybook:v1": "npm run prebuild:storybook && NODE_OPTIONS=--openssl-legacy-provider build-storybook -c .storybook -o ./reservoir/v1",
36
36
  "prebuild:storybook": "npm run test:generate-output"
37
37
  },
38
38
  "lint-staged": {
@@ -62,11 +62,11 @@
62
62
  "@charlietango/use-native-lazy-loading": "1.10.0",
63
63
  "@emotion/react": ">=11.4.1",
64
64
  "@emotion/styled": ">=11.3.0",
65
- "downshift": "^6.1.7",
66
- "framer-motion": "^4.1.17",
65
+ "downshift": "6.1.7",
66
+ "framer-motion": "4.1.17",
67
67
  "js-cookie": "3.0.1",
68
68
  "react-datepicker": "4.1.1",
69
- "react-ga": "^3.3.1",
69
+ "react-ga": "3.3.1",
70
70
  "react-intersection-observer": "9.2.2",
71
71
  "system-font-css": "2.0.2",
72
72
  "tough-cookie": "4.0.0",
@@ -78,7 +78,7 @@
78
78
  "@chakra-ui/system": ">=1.11.0 <=1.12.1",
79
79
  "@emotion/react": ">=11.4.1",
80
80
  "@emotion/styled": ">=11.3.0",
81
- "framer-motion": "^4.1.17",
81
+ "framer-motion": "4.1.17",
82
82
  "react": ">=16.13.0",
83
83
  "react-dom": ">=16.13.0",
84
84
  "typescript": "*"
@@ -120,8 +120,8 @@
120
120
  "eslint-plugin-react-hooks": "4.2.0",
121
121
  "eslint-plugin-storybook": "0.5.12",
122
122
  "gulp": "4.0.2",
123
- "gulp-concat": "^2.6.1",
124
- "husky": "^7.0.4",
123
+ "gulp-concat": "2.6.1",
124
+ "husky": "7.0.4",
125
125
  "import-glob-loader": "1.1.0",
126
126
  "jest": "27.3.1",
127
127
  "jest-axe": "5.0.1",