@nypl/design-system-react-components 1.0.7 → 1.1.0-rc2

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 (59) hide show
  1. package/dist/components/Accordion/Accordion.d.ts +5 -0
  2. package/dist/components/Footer/Footer.d.ts +14 -0
  3. package/dist/components/Footer/footerLinks.d.ts +12 -0
  4. package/dist/components/Form/Form.d.ts +2 -2
  5. package/dist/components/Header/Header.d.ts +20 -0
  6. package/dist/components/Header/components/HeaderLogin.d.ts +13 -0
  7. package/dist/components/Header/components/HeaderLoginButton.d.ts +11 -0
  8. package/dist/components/Header/components/HeaderLowerNav.d.ts +7 -0
  9. package/dist/components/Header/components/HeaderMobileIconNav.d.ts +7 -0
  10. package/dist/components/Header/components/HeaderMobileNav.d.ts +7 -0
  11. package/dist/components/Header/components/HeaderMobileNavButton.d.ts +7 -0
  12. package/dist/components/Header/components/HeaderSearchButton.d.ts +10 -0
  13. package/dist/components/Header/components/HeaderSearchForm.d.ts +10 -0
  14. package/dist/components/Header/components/HeaderSitewideAlerts.d.ts +8 -0
  15. package/dist/components/Header/components/HeaderUpperNav.d.ts +8 -0
  16. package/dist/components/Header/context/headerContext.d.ts +13 -0
  17. package/dist/components/Header/utils/authApiMockResponse.d.ts +49 -0
  18. package/dist/components/Header/utils/encoreCatalogLogOutTimer.d.ts +4 -0
  19. package/dist/components/Header/utils/encoreCatalogLogOutTimer.test.d.ts +1 -0
  20. package/dist/components/Header/utils/googleAnalyticsUtils.d.ts +16 -0
  21. package/dist/components/Header/utils/googleAnalyticsUtils.test.d.ts +1 -0
  22. package/dist/components/Header/utils/headerUtils.d.ts +90 -0
  23. package/dist/components/Header/utils/headerUtils.test.d.ts +1 -0
  24. package/dist/components/Header/utils/sitewideAlertsMocks.d.ts +98 -0
  25. package/dist/components/Image/Image.d.ts +3 -3
  26. package/dist/components/Link/Link.d.ts +1 -0
  27. package/dist/components/StyleGuide/ColorCard.d.ts +22 -18
  28. package/dist/components/Template/Template.d.ts +14 -4
  29. package/dist/components/Tooltip/Tooltip.d.ts +17 -0
  30. package/dist/design-system-react-components.cjs.development.js +4433 -1669
  31. package/dist/design-system-react-components.cjs.development.js.map +1 -1
  32. package/dist/design-system-react-components.cjs.production.min.js +1 -1
  33. package/dist/design-system-react-components.cjs.production.min.js.map +1 -1
  34. package/dist/design-system-react-components.esm.js +4431 -1670
  35. package/dist/design-system-react-components.esm.js.map +1 -1
  36. package/dist/hooks/useCloseDropDown.d.ts +6 -0
  37. package/dist/hooks/useNYPLTheme.d.ts +1 -0
  38. package/dist/index.d.ts +3 -0
  39. package/dist/styles.css +1 -1
  40. package/dist/theme/components/footer.d.ts +223 -0
  41. package/dist/theme/components/globalMixins.d.ts +24 -4
  42. package/dist/theme/components/header/header.d.ts +66 -0
  43. package/dist/theme/components/header/headerLogin.d.ts +299 -0
  44. package/dist/theme/components/header/headerLoginButton.d.ts +54 -0
  45. package/dist/theme/components/header/headerLowerNav.d.ts +38 -0
  46. package/dist/theme/components/header/headerMobileIconNav.d.ts +23 -0
  47. package/dist/theme/components/header/headerMobileNav.d.ts +79 -0
  48. package/dist/theme/components/header/headerMobileNavButton.d.ts +28 -0
  49. package/dist/theme/components/header/headerSearchButton.d.ts +56 -0
  50. package/dist/theme/components/header/headerSearchForm.d.ts +168 -0
  51. package/dist/theme/components/header/headerSitewideAlerts.d.ts +27 -0
  52. package/dist/theme/components/header/headerUpperNav.d.ts +57 -0
  53. package/dist/theme/components/radio.d.ts +12 -3
  54. package/dist/theme/components/skipNavigation.d.ts +2 -2
  55. package/dist/theme/components/template.d.ts +32 -57
  56. package/dist/theme/components/tooltip.d.ts +13 -0
  57. package/dist/theme/foundations/radii.d.ts +1 -0
  58. package/package.json +6 -1
  59. package/CHANGELOG.md +0 -1527
@@ -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
  };
@@ -12,10 +12,10 @@ declare const SkipNavigation: {
12
12
  top: string;
13
13
  width: string;
14
14
  _focus: {
15
- border: string;
16
15
  height: string;
17
16
  left: string;
18
- padding: string;
17
+ paddingX: string;
18
+ paddingY: string;
19
19
  top: string;
20
20
  width: string;
21
21
  };
@@ -1,74 +1,62 @@
1
+ /**
2
+ * Grid layout based on https://www.joshwcomeau.com/css/full-bleed/
3
+ */
1
4
  declare const _default: {
2
5
  Template: {
3
6
  baseStyle: {
4
7
  boxSizing: string;
5
8
  color: string;
6
- overflowX: string;
7
- "*": {
8
- boxSizing: string;
9
- };
10
- "*::after": {
11
- boxSizing: string;
12
- };
13
- "*::before": {
14
- boxSizing: string;
15
- };
9
+ display: string;
10
+ gridTemplateColumns: string;
11
+ rowGap: string;
16
12
  };
17
13
  sizes: {};
18
14
  defaultProps: {};
19
15
  };
20
- TemplateHeader: {
21
- baseStyle: {
22
- marginBottom: string;
23
- };
24
- };
25
16
  TemplateBreakout: {
26
17
  baseStyle: {
27
18
  width: string;
28
- marginBottom: string;
29
- marginEnd: string;
30
- marginStart: string;
19
+ gridColumn: string;
31
20
  };
32
21
  };
33
22
  TemplateContent: {
34
23
  baseStyle: {
24
+ gridColumn: string;
35
25
  display: string;
36
- marginBottom: string;
37
- marginY: number;
38
- marginX: string;
39
- maxWidth: string;
40
- paddingTop: number;
41
- paddingBottom: number;
42
- paddingEnd: string;
43
- paddingStart: string;
44
- width: string;
26
+ gridTemplateColumns: string;
27
+ paddingY: number;
28
+ paddingX: string;
29
+ gap: string;
45
30
  };
46
31
  variants: {
47
- sidebar: {
48
- display: string;
49
- flexFlow: {
50
- base: string;
32
+ left: {
33
+ gridTemplateColumns: {
34
+ md: string;
35
+ };
36
+ };
37
+ right: {
38
+ gridTemplateColumns: {
51
39
  md: string;
52
40
  };
53
41
  };
54
42
  };
55
43
  };
56
- TemplateContentTop: {
44
+ TemplateContentTopBottom: {
57
45
  baseStyle: {
58
- flex: string;
59
- marginBottom: string;
46
+ gridColumn: {
47
+ base: string;
48
+ md: string;
49
+ };
50
+ height: string;
60
51
  };
61
52
  };
62
53
  TemplateContentPrimary: {
63
- baseStyle: {
64
- flex: string;
65
- marginBottom: string;
66
- };
67
54
  variants: {
68
55
  left: {
69
- display: string;
70
- flexFlow: string;
71
- order: string;
56
+ gridColumn: {
57
+ base: string;
58
+ md: string;
59
+ };
72
60
  marginEnd: {
73
61
  md: number;
74
62
  };
@@ -79,26 +67,13 @@ declare const _default: {
79
67
  };
80
68
  };
81
69
  TemplateContentSidebar: {
82
- baseStyle: {
83
- flex: {
84
- base: string;
85
- md: string;
86
- };
87
- order: {
88
- md: string;
89
- };
90
- marginBottom: string;
91
- };
92
70
  variants: {
93
71
  left: {
94
- marginEnd: {
95
- base: number;
96
- md: string;
97
- };
72
+ gridColumn: string;
98
73
  };
99
74
  right: {
100
- marginStart: {
101
- base: number;
75
+ gridColumn: {
76
+ base: string;
102
77
  md: string;
103
78
  };
104
79
  };
@@ -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.7",
3
+ "version": "1.1.0-rc2",
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"