@nypl/design-system-react-components 1.0.6 → 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 (62) 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/SearchBar/SearchBar.d.ts +6 -1
  28. package/dist/components/StyleGuide/ColorCard.d.ts +22 -18
  29. package/dist/components/Template/Template.d.ts +14 -4
  30. package/dist/components/Tooltip/Tooltip.d.ts +17 -0
  31. package/dist/design-system-react-components.cjs.development.js +5941 -3293
  32. package/dist/design-system-react-components.cjs.development.js.map +1 -1
  33. package/dist/design-system-react-components.cjs.production.min.js +1 -1
  34. package/dist/design-system-react-components.cjs.production.min.js.map +1 -1
  35. package/dist/design-system-react-components.esm.js +5940 -3294
  36. package/dist/design-system-react-components.esm.js.map +1 -1
  37. package/dist/hooks/useCloseDropDown.d.ts +6 -0
  38. package/dist/hooks/useNYPLTheme.d.ts +1 -0
  39. package/dist/index.d.ts +2 -0
  40. package/dist/styles.css +1 -1
  41. package/dist/theme/components/footer.d.ts +223 -0
  42. package/dist/theme/components/globalMixins.d.ts +24 -4
  43. package/dist/theme/components/header/header.d.ts +66 -0
  44. package/dist/theme/components/header/headerLogin.d.ts +299 -0
  45. package/dist/theme/components/header/headerLoginButton.d.ts +54 -0
  46. package/dist/theme/components/header/headerLowerNav.d.ts +38 -0
  47. package/dist/theme/components/header/headerMobileIconNav.d.ts +23 -0
  48. package/dist/theme/components/header/headerMobileNav.d.ts +79 -0
  49. package/dist/theme/components/header/headerMobileNavButton.d.ts +28 -0
  50. package/dist/theme/components/header/headerSearchButton.d.ts +56 -0
  51. package/dist/theme/components/header/headerSearchForm.d.ts +168 -0
  52. package/dist/theme/components/header/headerSitewideAlerts.d.ts +27 -0
  53. package/dist/theme/components/header/headerUpperNav.d.ts +57 -0
  54. package/dist/theme/components/hero.d.ts +138 -84
  55. package/dist/theme/components/list.d.ts +2 -2
  56. package/dist/theme/components/radio.d.ts +12 -3
  57. package/dist/theme/components/skipNavigation.d.ts +2 -2
  58. package/dist/theme/components/template.d.ts +32 -57
  59. package/dist/theme/components/tooltip.d.ts +13 -0
  60. package/dist/theme/foundations/radii.d.ts +1 -0
  61. package/package.json +6 -1
  62. package/CHANGELOG.md +0 -1518
@@ -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.6",
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"