@nypl/design-system-react-components 1.0.8 → 1.1.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.
Files changed (51) hide show
  1. package/dist/components/Footer/Footer.d.ts +14 -0
  2. package/dist/components/Footer/footerLinks.d.ts +12 -0
  3. package/dist/components/Form/Form.d.ts +2 -2
  4. package/dist/components/Header/Header.d.ts +20 -0
  5. package/dist/components/Header/components/HeaderLogin.d.ts +13 -0
  6. package/dist/components/Header/components/HeaderLoginButton.d.ts +11 -0
  7. package/dist/components/Header/components/HeaderLowerNav.d.ts +7 -0
  8. package/dist/components/Header/components/HeaderMobileIconNav.d.ts +7 -0
  9. package/dist/components/Header/components/HeaderMobileNav.d.ts +7 -0
  10. package/dist/components/Header/components/HeaderMobileNavButton.d.ts +7 -0
  11. package/dist/components/Header/components/HeaderSearchButton.d.ts +10 -0
  12. package/dist/components/Header/components/HeaderSearchForm.d.ts +10 -0
  13. package/dist/components/Header/components/HeaderSitewideAlerts.d.ts +8 -0
  14. package/dist/components/Header/components/HeaderUpperNav.d.ts +8 -0
  15. package/dist/components/Header/context/headerContext.d.ts +13 -0
  16. package/dist/components/Header/utils/authApiMockResponse.d.ts +49 -0
  17. package/dist/components/Header/utils/encoreCatalogLogOutTimer.d.ts +4 -0
  18. package/dist/components/Header/utils/encoreCatalogLogOutTimer.test.d.ts +1 -0
  19. package/dist/components/Header/utils/googleAnalyticsUtils.d.ts +16 -0
  20. package/dist/components/Header/utils/googleAnalyticsUtils.test.d.ts +1 -0
  21. package/dist/components/Header/utils/headerUtils.d.ts +90 -0
  22. package/dist/components/Header/utils/headerUtils.test.d.ts +1 -0
  23. package/dist/components/Header/utils/sitewideAlertsMocks.d.ts +98 -0
  24. package/dist/components/Link/Link.d.ts +1 -0
  25. package/dist/components/Tooltip/Tooltip.d.ts +17 -0
  26. package/dist/design-system-react-components.cjs.development.js +3939 -1462
  27. package/dist/design-system-react-components.cjs.development.js.map +1 -1
  28. package/dist/design-system-react-components.cjs.production.min.js +1 -1
  29. package/dist/design-system-react-components.cjs.production.min.js.map +1 -1
  30. package/dist/design-system-react-components.esm.js +3940 -1465
  31. package/dist/design-system-react-components.esm.js.map +1 -1
  32. package/dist/hooks/useCloseDropDown.d.ts +6 -0
  33. package/dist/index.d.ts +2 -0
  34. package/dist/theme/components/footer.d.ts +223 -0
  35. package/dist/theme/components/globalMixins.d.ts +24 -4
  36. package/dist/theme/components/header/header.d.ts +66 -0
  37. package/dist/theme/components/header/headerLogin.d.ts +299 -0
  38. package/dist/theme/components/header/headerLoginButton.d.ts +54 -0
  39. package/dist/theme/components/header/headerLowerNav.d.ts +38 -0
  40. package/dist/theme/components/header/headerMobileIconNav.d.ts +23 -0
  41. package/dist/theme/components/header/headerMobileNav.d.ts +79 -0
  42. package/dist/theme/components/header/headerMobileNavButton.d.ts +28 -0
  43. package/dist/theme/components/header/headerSearchButton.d.ts +56 -0
  44. package/dist/theme/components/header/headerSearchForm.d.ts +168 -0
  45. package/dist/theme/components/header/headerSitewideAlerts.d.ts +27 -0
  46. package/dist/theme/components/header/headerUpperNav.d.ts +57 -0
  47. package/dist/theme/components/radio.d.ts +12 -3
  48. package/dist/theme/components/tooltip.d.ts +13 -0
  49. package/dist/theme/foundations/radii.d.ts +1 -0
  50. package/package.json +6 -1
  51. package/CHANGELOG.md +0 -1548
@@ -0,0 +1,38 @@
1
+ declare const HeaderLowerNav: {
2
+ baseStyle: {
3
+ ul: {
4
+ alignItems: string;
5
+ fontSize: string;
6
+ marginBottom: string;
7
+ marginLeft: string;
8
+ whiteSpace: string;
9
+ };
10
+ li: {
11
+ letterSpacing: string;
12
+ marginLeft: string;
13
+ };
14
+ "li > a": {
15
+ color: string;
16
+ fontWeight: string;
17
+ textDecoration: string;
18
+ _hover: {
19
+ borderBottom: string;
20
+ color: string;
21
+ paddingBottom: string;
22
+ textDecoration: string;
23
+ };
24
+ _focus: {
25
+ borderBottom: string;
26
+ color: string;
27
+ paddingBottom: string;
28
+ textDecoration: string;
29
+ borderRadius: string;
30
+ outlineColor: string;
31
+ outlineOffset: string;
32
+ outlineStyle: string;
33
+ outlineWidth: string;
34
+ };
35
+ };
36
+ };
37
+ };
38
+ export default HeaderLowerNav;
@@ -0,0 +1,23 @@
1
+ declare const HeaderMobileIconNav: {
2
+ baseStyle: {
3
+ button: {
4
+ minHeight: string;
5
+ minWidth: string;
6
+ };
7
+ "> a": {
8
+ display: string;
9
+ alignItems: string;
10
+ justifyContent: string;
11
+ minHeight: string;
12
+ minWidth: string;
13
+ _focus: {
14
+ borderRadius: string;
15
+ outlineColor: string;
16
+ outlineOffset: string;
17
+ outlineStyle: string;
18
+ outlineWidth: string;
19
+ };
20
+ };
21
+ };
22
+ };
23
+ export default HeaderMobileIconNav;
@@ -0,0 +1,79 @@
1
+ declare const HeaderMobileNav: {
2
+ parts: string[];
3
+ baseStyle: () => {
4
+ backgroundColor: string;
5
+ color: string;
6
+ left: string;
7
+ minHeight: string;
8
+ position: string;
9
+ whiteSpace: string;
10
+ width: string;
11
+ zIndex: string;
12
+ logo: {
13
+ marginTop: string;
14
+ marginLeft: string;
15
+ };
16
+ sideNav: {
17
+ lineHeight: string;
18
+ marginBottom: string;
19
+ padding: string;
20
+ textAlign: string;
21
+ "li:not(:first-child)": {
22
+ marginTop: string;
23
+ };
24
+ a: {
25
+ color: string;
26
+ fontSize: string;
27
+ fontWeight: string;
28
+ textDecoration: string;
29
+ _hover: {
30
+ color: string;
31
+ textDecoration: string;
32
+ };
33
+ _focus: {
34
+ outlineColor: string;
35
+ borderRadius: string;
36
+ outlineOffset: string;
37
+ outlineStyle: string;
38
+ outlineWidth: string;
39
+ };
40
+ };
41
+ };
42
+ bottomLinks: {
43
+ display: string;
44
+ gridTemplateColumns: string;
45
+ a: {
46
+ alignItems: string;
47
+ color: string;
48
+ display: string;
49
+ fontWeight: string;
50
+ justifyContent: string;
51
+ textDecoration: string;
52
+ paddingY: string;
53
+ paddingLeft: string;
54
+ svg: {
55
+ marginRight: string;
56
+ };
57
+ _hover: {
58
+ color: string;
59
+ backgroundColor: string;
60
+ textDecoration: string;
61
+ };
62
+ _focus: {
63
+ outlineColor: string;
64
+ borderRadius: string;
65
+ outlineOffset: string;
66
+ outlineStyle: string;
67
+ outlineWidth: string;
68
+ };
69
+ _last: {
70
+ backgroundColor: string;
71
+ _hover: {
72
+ backgroundColor: string;
73
+ };
74
+ };
75
+ };
76
+ };
77
+ };
78
+ };
79
+ export default HeaderMobileNav;
@@ -0,0 +1,28 @@
1
+ declare const HeaderMobileNavButton: {
2
+ baseStyle: ({ isOpen }: {
3
+ isOpen: any;
4
+ }) => {
5
+ alignItems: string;
6
+ backgroundColor: string;
7
+ border: string;
8
+ borderRadius: string;
9
+ svg: {
10
+ fill: string;
11
+ marginLeft: string;
12
+ };
13
+ _hover: {
14
+ backgroundColor: string;
15
+ svg: {
16
+ fill: string;
17
+ };
18
+ };
19
+ _focus: {
20
+ borderRadius: string;
21
+ outlineColor: string;
22
+ outlineOffset: string;
23
+ outlineStyle: string;
24
+ outlineWidth: string;
25
+ };
26
+ };
27
+ };
28
+ export default HeaderMobileNavButton;
@@ -0,0 +1,56 @@
1
+ declare const HeaderSearchButton: {
2
+ baseStyle: ({ isOpen }: {
3
+ isOpen: any;
4
+ }) => {
5
+ alignItems: string;
6
+ borderRadius: string;
7
+ backgroundColor: string;
8
+ color: string;
9
+ fontSize: string;
10
+ fontWeight: string;
11
+ minHeight: {
12
+ md: string;
13
+ };
14
+ minWidth: {
15
+ md: string;
16
+ };
17
+ textDecoration: string;
18
+ span: {
19
+ alignItems: string;
20
+ borderBottom: {
21
+ md: string;
22
+ };
23
+ display: string;
24
+ lineHeight: string;
25
+ };
26
+ svg: {
27
+ marginLeft: {
28
+ base: string;
29
+ md: string;
30
+ };
31
+ color: {
32
+ base: string;
33
+ md: string;
34
+ };
35
+ };
36
+ _hover: {
37
+ backgroundColor: string;
38
+ color: string;
39
+ textDecoration: string;
40
+ svg: {
41
+ fill: {
42
+ base: string;
43
+ md: string;
44
+ };
45
+ };
46
+ };
47
+ _focus: {
48
+ borderRadius: string;
49
+ outlineColor: string;
50
+ outlineOffset: string;
51
+ outlineStyle: string;
52
+ outlineWidth: string;
53
+ };
54
+ };
55
+ };
56
+ export default HeaderSearchButton;
@@ -0,0 +1,168 @@
1
+ declare const HeaderSearchForm: {
2
+ parts: string[];
3
+ baseStyle: {
4
+ color: string;
5
+ backgroundColor: string;
6
+ left: string;
7
+ minHeight: {
8
+ base: string;
9
+ md: string;
10
+ };
11
+ position: string;
12
+ whiteSpace: string;
13
+ width: string;
14
+ zIndex: string;
15
+ svg: {
16
+ color: string;
17
+ fill: string;
18
+ marginTop: string;
19
+ };
20
+ form: {
21
+ margin: {
22
+ md: string;
23
+ };
24
+ maxWidth: {
25
+ md: string;
26
+ };
27
+ whiteSpace: string;
28
+ "> div": {
29
+ marginLeft: {
30
+ md: string;
31
+ lg: string;
32
+ };
33
+ marginRight: {
34
+ md: string;
35
+ };
36
+ };
37
+ };
38
+ fieldset: {
39
+ margin: {
40
+ base: string;
41
+ md: string;
42
+ };
43
+ };
44
+ textInput: {
45
+ label: {
46
+ fontSize: {
47
+ md: string;
48
+ };
49
+ };
50
+ input: {
51
+ borderRadius: {
52
+ md: string;
53
+ };
54
+ color: string;
55
+ minHeight: {
56
+ base: string;
57
+ md: string;
58
+ };
59
+ paddingLeft: {
60
+ base: string;
61
+ md: string;
62
+ };
63
+ _placeholder: {
64
+ fontSize: {
65
+ base: string;
66
+ };
67
+ fontStyle: string;
68
+ };
69
+ _focus: {
70
+ borderRadius: string;
71
+ outlineColor: string;
72
+ outlineOffset: string;
73
+ outlineStyle: string;
74
+ outlineWidth: string;
75
+ };
76
+ _hover: {
77
+ borderRadius: string;
78
+ outlineColor: string;
79
+ outlineOffset: string;
80
+ outlineStyle: string;
81
+ outlineWidth: string;
82
+ };
83
+ };
84
+ };
85
+ mobileSearchIcon: {
86
+ display: {
87
+ md: string;
88
+ };
89
+ fill: string;
90
+ left: string;
91
+ position: string;
92
+ top: string;
93
+ };
94
+ desktopSearchBtn: {
95
+ alignSelf: string;
96
+ backgroundColor: string;
97
+ borderRadius: string;
98
+ borderWidth: string;
99
+ height: string;
100
+ maxHeight: string;
101
+ width: string;
102
+ _focus: {
103
+ borderRadius: string;
104
+ outlineColor: string;
105
+ outlineOffset: string;
106
+ outlineStyle: string;
107
+ outlineWidth: string;
108
+ };
109
+ _hover: {
110
+ borderRadius: string;
111
+ outlineColor: string;
112
+ outlineOffset: string;
113
+ outlineStyle: string;
114
+ outlineWidth: string;
115
+ backgroundColor: string;
116
+ };
117
+ };
118
+ radio: {
119
+ backgroundColor: string;
120
+ border: string;
121
+ _focus: {
122
+ borderRadius: string;
123
+ outlineColor: string;
124
+ outlineOffset: string;
125
+ outlineStyle: string;
126
+ outlineWidth: string;
127
+ };
128
+ _hover: {
129
+ borderRadius: string;
130
+ outlineColor: string;
131
+ outlineOffset: string;
132
+ outlineStyle: string;
133
+ outlineWidth: string;
134
+ };
135
+ };
136
+ ".chakra-radio": {
137
+ alignItems: string;
138
+ };
139
+ ".chakra-radio__label": {
140
+ fontSize: string;
141
+ fontWeight: string;
142
+ };
143
+ mobileBtns: {
144
+ alignItems: string;
145
+ backgroundColor: string;
146
+ borderRadius: string;
147
+ display: string;
148
+ fontSize: string;
149
+ flex: string;
150
+ padding: string;
151
+ svg: {
152
+ fill: string;
153
+ marginLeft: string;
154
+ };
155
+ _hover: {
156
+ backgroundColor: string;
157
+ };
158
+ _focus: {
159
+ borderRadius: string;
160
+ outlineColor: string;
161
+ outlineOffset: string;
162
+ outlineStyle: string;
163
+ outlineWidth: string;
164
+ };
165
+ };
166
+ };
167
+ };
168
+ export default HeaderSearchForm;
@@ -0,0 +1,27 @@
1
+ declare const SitewideAlerts: {
2
+ baseStyle: {
3
+ backgroundColor: string;
4
+ borderBottom: {
5
+ base: string;
6
+ md: string;
7
+ };
8
+ fontSize: string;
9
+ fontWeight: string;
10
+ lineHeight: string;
11
+ minHeight: {
12
+ base: string;
13
+ md: string;
14
+ };
15
+ paddingX: string;
16
+ ul: {
17
+ marginBottom: string;
18
+ a: {
19
+ textDecoration: string;
20
+ };
21
+ p: {
22
+ marginBottom: string;
23
+ };
24
+ };
25
+ };
26
+ };
27
+ export default SitewideAlerts;
@@ -0,0 +1,57 @@
1
+ declare const HeaderUpperNav: {
2
+ parts: string[];
3
+ baseStyle: {
4
+ ul: {
5
+ alignItems: string;
6
+ display: string;
7
+ marginTop: string;
8
+ whiteSpace: string;
9
+ };
10
+ li: {
11
+ fontSize: string;
12
+ fontWeight: number;
13
+ letterSpacing: string;
14
+ marginRight: string;
15
+ position: string;
16
+ textTransform: string;
17
+ };
18
+ a: {
19
+ color: string;
20
+ padding: string;
21
+ position: string;
22
+ textDecoration: string;
23
+ _hover: {
24
+ color: string;
25
+ textDecoration: string;
26
+ };
27
+ _focus: {
28
+ borderRadius: string;
29
+ outlineColor: string;
30
+ outlineOffset: string;
31
+ outlineStyle: string;
32
+ outlineWidth: string;
33
+ };
34
+ };
35
+ svg: {
36
+ marginTop: string;
37
+ };
38
+ emailUpdatesLink: {
39
+ display: string;
40
+ alignItems: string;
41
+ };
42
+ donateLink: {
43
+ alignItems: string;
44
+ bg: string;
45
+ borderRadius: string;
46
+ color: string;
47
+ fontWeight: string;
48
+ maxHeight: string;
49
+ paddingX: string;
50
+ width: string;
51
+ _hover: {
52
+ bg: string;
53
+ };
54
+ };
55
+ };
56
+ };
57
+ export default HeaderUpperNav;
@@ -85,10 +85,19 @@ declare const Radio: {
85
85
  };
86
86
  hiddenLabel: {
87
87
  clip: string;
88
- height: string;
88
+ height: {
89
+ base: string;
90
+ md: string;
91
+ };
89
92
  overflow: string;
90
- position: string;
91
- width: string;
93
+ position: {
94
+ base: string;
95
+ md: string;
96
+ };
97
+ width: {
98
+ base: string;
99
+ md: string;
100
+ };
92
101
  wordWrap: string;
93
102
  };
94
103
  };
@@ -0,0 +1,13 @@
1
+ declare const Tooltip: {
2
+ baseStyle: {
3
+ [x: string]: string;
4
+ borderRadius: string;
5
+ color: string;
6
+ fontSize: string;
7
+ marginBottom: string;
8
+ maxWidth: string;
9
+ px: string;
10
+ py: string;
11
+ };
12
+ };
13
+ export default Tooltip;
@@ -1,5 +1,6 @@
1
1
  declare const radii: {
2
2
  checkbox: string;
3
+ headerDonate: string;
3
4
  pill: string;
4
5
  round: string;
5
6
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nypl/design-system-react-components",
3
- "version": "1.0.8",
3
+ "version": "1.1.0-rc",
4
4
  "description": "NYPL Reservoir Design System React Components",
5
5
  "repository": {
6
6
  "type": "git",
@@ -56,18 +56,22 @@
56
56
  }
57
57
  ],
58
58
  "dependencies": {
59
+ "@chakra-ui/focus-lock": ">=1.2.6 <2.0.0",
59
60
  "@chakra-ui/react": ">=1.8.5 <=1.8.8",
60
61
  "@chakra-ui/system": ">=1.11.0 <=1.12.1",
61
62
  "@charlietango/use-native-lazy-loading": "1.10.0",
62
63
  "@emotion/react": ">=11.4.1",
63
64
  "@emotion/styled": ">=11.3.0",
64
65
  "framer-motion": "^4.1.17",
66
+ "js-cookie": "3.0.1",
65
67
  "react-datepicker": "4.1.1",
68
+ "react-ga": "^3.3.1",
66
69
  "react-intersection-observer": "9.2.2",
67
70
  "system-font-css": "2.0.2",
68
71
  "typescript": "*"
69
72
  },
70
73
  "peerDependencies": {
74
+ "@chakra-ui/focus-lock": ">=1.2.6 <2.0.0",
71
75
  "@chakra-ui/react": ">=1.8.5 <=1.8.8",
72
76
  "@chakra-ui/system": ">=1.11.0 <=1.12.1",
73
77
  "@emotion/react": ">=11.4.1",
@@ -136,6 +140,7 @@
136
140
  "size-limit": "5.0.1",
137
141
  "storybook-addon-designs": "6.2.1",
138
142
  "style-loader": "2.0.0",
143
+ "tough-cookie": "4.0.0",
139
144
  "ts-jest": "27.0.4",
140
145
  "tsdx": "0.14.1",
141
146
  "tslib": "2.3.0"