@nypl/design-system-react-components 3.6.2 → 4.0.0-alpha-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 (158) hide show
  1. package/dist/design-system-react-components.cjs +61 -64
  2. package/dist/design-system-react-components.js +22341 -24139
  3. package/dist/filteringStyleGuide/activeFiltersList.png +0 -0
  4. package/dist/filteringStyleGuide/exampleColumn.png +0 -0
  5. package/dist/filteringStyleGuide/examplePopup.png +0 -0
  6. package/dist/filteringStyleGuide/exampleRow.png +0 -0
  7. package/dist/filteringStyleGuide/filterBar.png +0 -0
  8. package/dist/filteringStyleGuide/focusClearingFilters.gif +0 -0
  9. package/dist/filteringStyleGuide/focusKeywordSearch.gif +0 -0
  10. package/dist/filteringStyleGuide/focusLiveFiltering.gif +0 -0
  11. package/dist/filteringStyleGuide/focusPagination.gif +0 -0
  12. package/dist/filteringStyleGuide/focusSorting.gif +0 -0
  13. package/dist/filteringStyleGuide/fullPageExample.png +0 -0
  14. package/dist/filteringStyleGuide/keywordSearchField.png +0 -0
  15. package/dist/filteringStyleGuide/paginationMenu.png +0 -0
  16. package/dist/filteringStyleGuide/resultsList.png +0 -0
  17. package/dist/filteringStyleGuide/sortingMenu.png +0 -0
  18. package/dist/filteringStyleGuide/totalResultsHeading.png +0 -0
  19. package/dist/responsiveGrid/breakpointRangeDesktop.png +0 -0
  20. package/dist/responsiveGrid/breakpointRangeMobileLarge.png +0 -0
  21. package/dist/responsiveGrid/breakpointRangeMobileSmall.png +0 -0
  22. package/dist/responsiveGrid/breakpointRangeTabletLarge.png +0 -0
  23. package/dist/responsiveGrid/breakpointRangeTabletSmall.png +0 -0
  24. package/dist/responsiveGrid/cardGridDesktop4Cols.png +0 -0
  25. package/dist/responsiveGrid/cardGridLargeMobile1Col.png +0 -0
  26. package/dist/responsiveGrid/cardGridLargeMobile2Cols.png +0 -0
  27. package/dist/responsiveGrid/cardGridSmallMobile1Col.png +0 -0
  28. package/dist/responsiveGrid/cardGridSmallTablet1Col.png +0 -0
  29. package/dist/responsiveGrid/cardGridSmallTablet3Cols.png +0 -0
  30. package/dist/responsiveGrid/cardGridSmallTablet3ColsSidebar.png +0 -0
  31. package/dist/responsiveGrid/gridColumns.png +0 -0
  32. package/dist/responsiveGrid/gridGutters.png +0 -0
  33. package/dist/responsiveGrid/gridMargins.png +0 -0
  34. package/dist/responsiveGrid/gridPerceivedColumns1.png +0 -0
  35. package/dist/responsiveGrid/gridPerceivedColumns2.png +0 -0
  36. package/dist/responsiveGrid/gridPerceivedColumns3.png +0 -0
  37. package/dist/responsiveGrid/gridPerceivedColumns4.png +0 -0
  38. package/dist/src/components/Accordion/Accordion.d.ts +2 -5
  39. package/dist/src/components/AlphabetFilter/AlphabetFilter.d.ts +2 -4
  40. package/dist/src/components/AudioPlayer/AudioPlayer.d.ts +2 -4
  41. package/dist/src/components/Banner/Banner.d.ts +6 -12
  42. package/dist/src/components/Breadcrumbs/Breadcrumbs.d.ts +3 -5
  43. package/dist/src/components/Button/Button.d.ts +6 -12
  44. package/dist/src/components/ButtonGroup/ButtonGroup.d.ts +2 -4
  45. package/dist/src/components/Card/Card.d.ts +2 -4
  46. package/dist/src/components/Checkbox/Checkbox.d.ts +3 -10
  47. package/dist/src/components/CheckboxGroup/CheckboxGroup.d.ts +2 -4
  48. package/dist/src/components/ComponentWrapper/ComponentWrapper.d.ts +2 -5
  49. package/dist/src/components/DatePicker/DatePicker.d.ts +2 -4
  50. package/dist/src/components/FeaturedContent/FeaturedContent.d.ts +3 -5
  51. package/dist/src/components/FeedbackBox/FeedbackBox.d.ts +2 -4
  52. package/dist/src/components/Fieldset/Fieldset.d.ts +2 -4
  53. package/dist/src/components/FilterBarInline/FilterBarInline.d.ts +2 -4
  54. package/dist/src/components/FilterBarPopup/FilterBarPopup.d.ts +2 -4
  55. package/dist/src/components/Form/Form.d.ts +4 -12
  56. package/dist/src/components/Grid/SimpleGrid.d.ts +2 -4
  57. package/dist/src/components/Heading/Heading.d.ts +4 -6
  58. package/dist/src/components/HelperErrorText/HelperErrorText.d.ts +2 -16
  59. package/dist/src/components/Hero/Hero.d.ts +7 -11
  60. package/dist/src/components/HorizontalRule/HorizontalRule.d.ts +2 -4
  61. package/dist/src/components/Icons/Icon.d.ts +2 -5
  62. package/dist/src/components/Icons/iconVariables.d.ts +1 -1
  63. package/dist/src/components/Image/Image.d.ts +2 -10
  64. package/dist/src/components/Label/Label.d.ts +3 -7
  65. package/dist/src/components/Link/Link.d.ts +8 -16
  66. package/dist/src/components/List/List.d.ts +7 -5
  67. package/dist/src/components/Logo/Logo.d.ts +2 -4
  68. package/dist/src/components/Menu/Menu.d.ts +2 -4
  69. package/dist/src/components/Modal/Modal.d.ts +4 -3
  70. package/dist/src/components/MultiSelect/MultiSelect.d.ts +2 -2
  71. package/dist/src/components/MultiSelectGroup/MultiSelectGroup.d.ts +2 -4
  72. package/dist/src/components/NewsletterSignup/NewsletterSignup.d.ts +5 -8
  73. package/dist/src/components/Notification/Notification.d.ts +2 -8
  74. package/dist/src/components/Pagination/Pagination.d.ts +2 -4
  75. package/dist/src/components/ProgressIndicator/ProgressIndicator.d.ts +2 -4
  76. package/dist/src/components/Radio/Radio.d.ts +3 -9
  77. package/dist/src/components/RadioGroup/RadioGroup.d.ts +2 -4
  78. package/dist/src/components/SearchBar/SearchBar.d.ts +3 -11
  79. package/dist/src/components/Select/Select.d.ts +2 -12
  80. package/dist/src/components/SkeletonLoader/SkeletonLoader.d.ts +2 -4
  81. package/dist/src/components/SkipNavigation/SkipNavigation.d.ts +2 -4
  82. package/dist/src/components/Slider/Slider.d.ts +3 -5
  83. package/dist/src/components/SocialMediaLinks/SocialMediaLinks.d.ts +4 -6
  84. package/dist/src/components/StatusBadge/StatusBadge.d.ts +4 -11
  85. package/dist/src/components/StructuredContent/StructuredContent.d.ts +2 -4
  86. package/dist/src/components/StyledList/StyledList.d.ts +3 -7
  87. package/dist/src/components/SubNav/SubNav.d.ts +4 -8
  88. package/dist/src/components/Table/Table.d.ts +3 -5
  89. package/dist/src/components/Tabs/Tabs.d.ts +2 -2
  90. package/dist/src/components/TagSet/TagSet.d.ts +2 -4
  91. package/dist/src/components/Template/Template.d.ts +38 -117
  92. package/dist/src/components/Text/Text.d.ts +2 -6
  93. package/dist/src/components/TextInput/TextInput.d.ts +8 -31
  94. package/dist/src/components/Toggle/Toggle.d.ts +3 -8
  95. package/dist/src/components/Tooltip/Tooltip.d.ts +2 -6
  96. package/dist/src/components/VideoPlayer/VideoPlayer.d.ts +2 -4
  97. package/dist/src/hooks/useMultiSelect.d.ts +5 -1
  98. package/dist/src/hooks/useNYPLBreakpoints.d.ts +6 -1
  99. package/dist/src/hooks/useResponsiveSpacing.d.ts +23 -0
  100. package/dist/src/index.d.ts +6 -7
  101. package/dist/src/theme/components/breadcrumb.d.ts +1 -1
  102. package/dist/src/theme/components/button.d.ts +1 -4
  103. package/dist/src/theme/components/heading.d.ts +1 -125
  104. package/dist/src/theme/components/hero.d.ts +11 -11
  105. package/dist/src/theme/components/link.d.ts +1 -40
  106. package/dist/src/theme/components/newsletterSignup.d.ts +3 -3
  107. package/dist/src/theme/components/notification.d.ts +1 -4
  108. package/dist/src/theme/components/progressIndicator.d.ts +1 -2
  109. package/dist/src/theme/components/slider.d.ts +8 -4
  110. package/dist/src/theme/components/statusBadge.d.ts +1 -14
  111. package/dist/src/theme/components/structuredContent.d.ts +2 -5
  112. package/dist/src/theme/components/{customTable.d.ts → table.d.ts} +6 -6
  113. package/dist/src/theme/components/template.d.ts +49 -125
  114. package/dist/src/theme/components/text.d.ts +1 -9
  115. package/dist/src/theme/foundations/breakpoints.d.ts +21 -8
  116. package/dist/src/theme/sharedTypes.d.ts +4 -0
  117. package/dist/src/utils/utils.d.ts +8 -1
  118. package/dist/styles.css +1 -1
  119. package/dist/template/templateBottom.png +0 -0
  120. package/dist/template/templateBreakout.png +0 -0
  121. package/dist/template/templateFluidColumns1.png +0 -0
  122. package/dist/template/templateFluidColumns2.png +0 -0
  123. package/dist/template/templateFluidColumns3.png +0 -0
  124. package/dist/template/templateFluidColumns4.png +0 -0
  125. package/dist/template/templateFullPageLayout.png +0 -0
  126. package/dist/template/templateMain.png +0 -0
  127. package/dist/template/templateMainNarrow.png +0 -0
  128. package/dist/template/templateMainWide.png +0 -0
  129. package/dist/template/templateSidebarLeft.png +0 -0
  130. package/dist/template/templateSidebarNone.png +0 -0
  131. package/dist/template/templateSidebarRight.png +0 -0
  132. package/dist/template/templateTop.png +0 -0
  133. package/package.json +1 -1
  134. package/dist/src/components/Header/Header.d.ts +0 -13
  135. package/dist/src/components/Header/components/HeaderLogin.d.ts +0 -12
  136. package/dist/src/components/Header/components/HeaderLoginButton.d.ts +0 -10
  137. package/dist/src/components/Header/components/HeaderLowerNav.d.ts +0 -6
  138. package/dist/src/components/Header/components/HeaderMobileIconNav.d.ts +0 -6
  139. package/dist/src/components/Header/components/HeaderMobileNav.d.ts +0 -6
  140. package/dist/src/components/Header/components/HeaderMobileNavButton.d.ts +0 -6
  141. package/dist/src/components/Header/components/HeaderSearchButton.d.ts +0 -9
  142. package/dist/src/components/Header/components/HeaderSearchForm.d.ts +0 -10
  143. package/dist/src/components/Header/components/HeaderSitewideAlerts.d.ts +0 -7
  144. package/dist/src/components/Header/components/HeaderUpperNav.d.ts +0 -7
  145. package/dist/src/components/Header/context/headerContext.d.ts +0 -13
  146. package/dist/src/components/Header/utils/encoreCatalogLogOutTimer.d.ts +0 -4
  147. package/dist/src/components/Header/utils/headerUtils.d.ts +0 -70
  148. package/dist/src/theme/components/header.d.ts +0 -100
  149. package/dist/src/theme/components/headerLogin.d.ts +0 -333
  150. package/dist/src/theme/components/headerLoginButton.d.ts +0 -72
  151. package/dist/src/theme/components/headerLowerNav.d.ts +0 -78
  152. package/dist/src/theme/components/headerMobileIconNav.d.ts +0 -28
  153. package/dist/src/theme/components/headerMobileNav.d.ts +0 -92
  154. package/dist/src/theme/components/headerMobileNavButton.d.ts +0 -36
  155. package/dist/src/theme/components/headerSearchButton.d.ts +0 -85
  156. package/dist/src/theme/components/headerSearchForm.d.ts +0 -185
  157. package/dist/src/theme/components/headerSitewideAlerts.d.ts +0 -43
  158. package/dist/src/theme/components/headerUpperNav.d.ts +0 -60
@@ -14,23 +14,23 @@ declare const Hero: {
14
14
  backgroundSize: string;
15
15
  backgroundPosition: string;
16
16
  display: string;
17
- flexFlow: {
18
- base: "column nowrap";
19
- md: "row nowrap";
17
+ gridTemplateColumns: string;
18
+ gap: {
19
+ base: string;
20
+ md: string;
21
+ xl: string;
20
22
  };
21
- justifyContent: string;
22
23
  minHeight: string;
23
24
  p: string;
25
+ paddingInline: string;
24
26
  };
25
27
  content: {
26
28
  bg: string;
27
29
  color: any;
28
- flex: {
29
- base: string;
30
- md: string;
31
- };
32
- maxWidth: {
33
- md: "860px";
30
+ gridColumn: {
31
+ base: "1 / -1";
32
+ md: "2 / 12";
33
+ lg: "3 / 11";
34
34
  };
35
35
  padding: {
36
36
  base: "inset.default";
@@ -735,7 +735,7 @@ declare const Hero: {
735
735
  };
736
736
  defaultProps?: {
737
737
  size?: string | number;
738
- variant?: "primary" | "secondary" | "tertiary" | "secondaryBooksAndMore" | "secondaryLocations" | "secondaryResearch" | "secondaryWhatsOn" | "campaign" | "fiftyFifty";
738
+ variant?: "primary" | "secondary" | "secondaryBooksAndMore" | "secondaryLocations" | "secondaryResearch" | "secondaryWhatsOn" | "tertiary" | "campaign" | "fiftyFifty";
739
739
  colorScheme?: string;
740
740
  };
741
741
  parts: ("base" | "content" | "imgWrapper" | "bodyText" | "heading" | "interior")[];
@@ -90,45 +90,6 @@ declare const Link: {
90
90
  }>;
91
91
  };
92
92
  variants?: {
93
- button: {
94
- base: {
95
- width: string;
96
- borderRadius: string;
97
- lineHeight: string;
98
- display: string;
99
- cursor: string;
100
- color: string;
101
- justifyContent: string;
102
- py: string;
103
- px: string;
104
- textDecoration: string;
105
- fontWeight: string;
106
- bg: string;
107
- _dark: {
108
- color: string;
109
- bg: string;
110
- };
111
- _hover: {
112
- color: string;
113
- bg: string;
114
- textDecoration: string;
115
- textDecorationStyle: string;
116
- textDecorationThickness: string;
117
- _dark: {
118
- color: string;
119
- bg: string;
120
- };
121
- };
122
- _visited: {
123
- color: string;
124
- _dark: {
125
- _visited: {
126
- color: string;
127
- };
128
- };
129
- };
130
- };
131
- };
132
93
  buttonCallout: ({ hasVisitedState }: CustomLinkStyleProps) => {
133
94
  base: any;
134
95
  };
@@ -182,7 +143,7 @@ declare const Link: {
182
143
  };
183
144
  defaultProps?: {
184
145
  size?: string | number;
185
- variant?: "button" | "buttonCallout" | "buttonDisabled" | "buttonNoBrand" | "buttonPill" | "buttonPrimary" | "buttonSecondary" | "moreLink";
146
+ variant?: "buttonCallout" | "buttonDisabled" | "buttonNoBrand" | "buttonPill" | "buttonPrimary" | "buttonSecondary" | "moreLink";
186
147
  colorScheme?: string;
187
148
  };
188
149
  parts: ("base" | "screenreaderOnly")[];
@@ -13,10 +13,10 @@ declare const NewsletterSignup: {
13
13
  pitch: {
14
14
  bg: string;
15
15
  borderLeftColor: {
16
- md: "section.blogs.secondary" | "section.books-and-more.primary" | "brand.primary" | "section.connect.primary" | "section.education.primary" | "section.locations.primary" | "section.research.primary" | "section.research-library.lpa" | "section.research-library.schomburg" | "section.whats-on.primary" | "ui.gray.medium" | "section.research-library.schwartzman";
16
+ md: string;
17
17
  };
18
18
  borderTopColor: {
19
- base: "section.blogs.secondary" | "section.books-and-more.primary" | "brand.primary" | "section.connect.primary" | "section.education.primary" | "section.locations.primary" | "section.research.primary" | "section.research-library.lpa" | "section.research-library.schomburg" | "section.whats-on.primary" | "ui.gray.medium" | "section.research-library.schwartzman";
19
+ base: string;
20
20
  md: "ui.border.default";
21
21
  };
22
22
  borderWidth: {
@@ -35,7 +35,7 @@ declare const NewsletterSignup: {
35
35
  md: "dark.ui.border.default";
36
36
  };
37
37
  borderLeftColor: {
38
- md: "dark.section.blogs.secondary" | "dark.section.locations.primary" | "dark.brand.primary" | "dark.section.books-and-more.primary" | "dark.section.connect.primary" | "dark.section.education.primary" | "dark.section.research.primary" | "dark.section.research-library.lpa" | "dark.section.research-library.schomburg" | "dark.section.whats-on.primary" | "dark.ui.gray.medium" | "dark.section.research-library.schwartzman";
38
+ md: `dark.${string}`;
39
39
  };
40
40
  };
41
41
  padding: {
@@ -2,18 +2,15 @@ import { NotificationTypes } from "../../components/Notification/Notification";
2
2
  import { StyleFunctionProps } from "@chakra-ui/system";
3
3
  interface NotificationBaseStyle extends StyleFunctionProps {
4
4
  isCentered: boolean;
5
- noMargin: boolean;
6
5
  notificationHeading: string;
7
6
  notificationType: NotificationTypes;
8
7
  showIcon: boolean;
9
8
  }
10
9
  declare const Notification: {
11
- baseStyle?: ({ isCentered, noMargin, notificationHeading, notificationType, }: NotificationBaseStyle) => {
10
+ baseStyle?: ({ isCentered, notificationHeading, notificationType, }: NotificationBaseStyle) => {
12
11
  bg: string;
13
- borderRadius: string;
14
12
  display: string;
15
13
  fontSize: string;
16
- m: string;
17
14
  position: string;
18
15
  p: string;
19
16
  textAlign: string;
@@ -1,12 +1,11 @@
1
1
  import { ProgressIndicatorLabelPlacements, ProgressIndicatorSizes } from "../../components/ProgressIndicator/ProgressIndicator";
2
2
  import { StyleFunctionProps } from "@chakra-ui/system";
3
3
  interface ProgressIndicatorBaseStyle extends StyleFunctionProps {
4
- darkMode: boolean;
5
4
  size: ProgressIndicatorSizes;
6
5
  labelPlacement: ProgressIndicatorLabelPlacements;
7
6
  }
8
7
  declare const ProgressIndicator: {
9
- baseStyle?: ({ darkMode, size, labelPlacement }: ProgressIndicatorBaseStyle) => {
8
+ baseStyle?: ({ size, labelPlacement }: ProgressIndicatorBaseStyle) => {
10
9
  color: string;
11
10
  fontSize: string;
12
11
  _dark: {
@@ -7,7 +7,7 @@ interface CustomSliderBaseStyle extends StyleFunctionProps {
7
7
  showValues: boolean;
8
8
  }
9
9
  declare const CustomSlider: {
10
- baseStyle?: ({ isDarkMode, isDisabled, isInvalid, showBoxes, showValues, }: CustomSliderBaseStyle) => {
10
+ baseStyle?: ({ isDisabled, isInvalid, showBoxes, showValues, }: CustomSliderBaseStyle) => {
11
11
  container: {
12
12
  display: string;
13
13
  alignItems: string;
@@ -40,6 +40,7 @@ declare const CustomSlider: {
40
40
  };
41
41
  _dark: {
42
42
  bgColor: string;
43
+ borderColor: string;
43
44
  _disabled: {
44
45
  bgColor: string;
45
46
  borderColor: string;
@@ -48,6 +49,9 @@ declare const CustomSlider: {
48
49
  };
49
50
  filledTrack: {
50
51
  bgColor: string;
52
+ _dark: {
53
+ bgColor: string;
54
+ };
51
55
  };
52
56
  leftValue: {
53
57
  color: string;
@@ -79,12 +83,12 @@ declare const CustomSlider: {
79
83
  };
80
84
  sizes?: {
81
85
  [key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
82
- keys: ("track" | "container" | "textInput" | "thumb" | "filledTrack" | "leftValue" | "rightValue" | "sliderContainer")[];
86
+ keys: ("track" | "container" | "thumb" | "filledTrack" | "leftValue" | "rightValue" | "textInput" | "sliderContainer")[];
83
87
  }>;
84
88
  };
85
89
  variants?: {
86
90
  [key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
87
- keys: ("track" | "container" | "textInput" | "thumb" | "filledTrack" | "leftValue" | "rightValue" | "sliderContainer")[];
91
+ keys: ("track" | "container" | "thumb" | "filledTrack" | "leftValue" | "rightValue" | "textInput" | "sliderContainer")[];
88
92
  }>;
89
93
  };
90
94
  defaultProps?: {
@@ -92,6 +96,6 @@ declare const CustomSlider: {
92
96
  variant?: string | number;
93
97
  colorScheme?: string;
94
98
  };
95
- parts: ("track" | "container" | "textInput" | "thumb" | "filledTrack" | "leftValue" | "rightValue" | "sliderContainer")[];
99
+ parts: ("track" | "container" | "thumb" | "filledTrack" | "leftValue" | "rightValue" | "textInput" | "sliderContainer")[];
96
100
  };
97
101
  export default CustomSlider;
@@ -70,19 +70,6 @@ declare const StatusBadge: {
70
70
  [key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
71
71
  };
72
72
  variants?: {
73
- low: {};
74
- medium: {
75
- borderColor: string;
76
- _dark: {
77
- borderColor: string;
78
- };
79
- };
80
- high: {
81
- borderColor: string;
82
- _dark: {
83
- borderColor: string;
84
- };
85
- };
86
73
  neutral: {
87
74
  borderColor: string;
88
75
  _dark: {
@@ -132,7 +119,7 @@ declare const StatusBadge: {
132
119
  };
133
120
  defaultProps?: {
134
121
  size?: string | number;
135
- variant?: "medium" | "neutral" | "informative" | "positive" | "negative" | "warning" | "recommendation" | "low" | "high";
122
+ variant?: "neutral" | "informative" | "positive" | "negative" | "warning" | "recommendation";
136
123
  colorScheme?: string;
137
124
  };
138
125
  };
@@ -344,10 +344,7 @@ declare const StructuredContent: {
344
344
  base: string;
345
345
  md: string;
346
346
  };
347
- paddingTop: string; /** The following styles are meant to target HTML elements that are
348
- * not rendered from the Reservoir DS. Typically, these HTML elements
349
- * are added from an API response.
350
- */
347
+ paddingTop: string;
351
348
  _dark: {
352
349
  borderColor: string;
353
350
  color: string;
@@ -470,7 +467,7 @@ declare const StructuredContent: {
470
467
  base: string;
471
468
  md: string;
472
469
  };
473
- fontSize: string;
470
+ fontSize: any;
474
471
  gap: string;
475
472
  letterSpacing: string;
476
473
  lineHeight: number;
@@ -65,7 +65,7 @@ export declare const baseCellStyles: (columnHeadersBackgroundColor?: string, col
65
65
  base: string;
66
66
  md: string;
67
67
  };
68
- fontSize: string;
68
+ fontSize: any;
69
69
  gap: string;
70
70
  letterSpacing: string;
71
71
  lineHeight: number;
@@ -203,7 +203,7 @@ export declare const baseTDStyles: (columnHeadersBackgroundColor?: string, colum
203
203
  base: string;
204
204
  md: string;
205
205
  };
206
- fontSize: string;
206
+ fontSize: any;
207
207
  gap: string;
208
208
  letterSpacing: string;
209
209
  lineHeight: number;
@@ -280,7 +280,7 @@ export declare const baseStyle: ({ columnHeadersBackgroundColor, columnHeadersTe
280
280
  };
281
281
  color: string;
282
282
  fontWeight: string;
283
- fontSize: string;
283
+ fontSize: any;
284
284
  textTransform: string;
285
285
  verticalAlign: string;
286
286
  _dark: {
@@ -424,7 +424,7 @@ export declare const baseStyle: ({ columnHeadersBackgroundColor, columnHeadersTe
424
424
  base: string;
425
425
  md: string;
426
426
  };
427
- fontSize: string;
427
+ fontSize: any;
428
428
  gap: string;
429
429
  letterSpacing: string;
430
430
  lineHeight: number;
@@ -522,7 +522,7 @@ declare const CustomTable: {
522
522
  };
523
523
  color: string;
524
524
  fontWeight: string;
525
- fontSize: string;
525
+ fontSize: any;
526
526
  textTransform: string;
527
527
  verticalAlign: string;
528
528
  _dark: {
@@ -666,7 +666,7 @@ declare const CustomTable: {
666
666
  base: string;
667
667
  md: string;
668
668
  };
669
- fontSize: string;
669
+ fontSize: any;
670
670
  gap: string;
671
671
  letterSpacing: string;
672
672
  lineHeight: number;
@@ -1,69 +1,59 @@
1
1
  declare const _default: {
2
2
  Template: {
3
- baseStyle?: {
3
+ baseStyle?: () => {
4
4
  boxSizing: string;
5
5
  color: string;
6
6
  display: string;
7
- gridTemplateColumns: string;
8
- rowGap: string;
9
- _dark: {
10
- color: string;
7
+ maxWidth: string;
8
+ minWidth: string;
9
+ m: string;
10
+ p: {
11
+ base: string;
12
+ md: string;
13
+ xl: string;
11
14
  };
12
- };
13
- sizes?: {};
14
- variants?: {
15
- [key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
16
- };
17
- defaultProps?: {
18
- size?: never;
19
- variant?: string | number;
20
- colorScheme?: string;
21
- };
22
- };
23
- TemplateBreakout: {
24
- baseStyle?: {
25
- width: string;
26
- gridColumn: string;
27
- };
28
- sizes?: {
29
- [key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
30
- };
31
- variants?: {
32
- [key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
33
- };
34
- defaultProps?: {
35
- size?: string | number;
36
- variant?: string | number;
37
- colorScheme?: string;
38
- };
39
- };
40
- TemplateContent: {
41
- baseStyle?: {
42
- gridColumn: string;
43
- display: {
44
- base: "flex";
45
- md: "grid";
15
+ gridTemplateAreas: string;
16
+ gridTemplateColumns: string;
17
+ gridTemplateRows: string;
18
+ columnGap: {
19
+ base: string;
20
+ md: string;
21
+ xl: string;
46
22
  };
47
- flexDirection: {
48
- base: "column";
49
- md: any;
23
+ "& > *:not(:last-child)": {
24
+ mb: {
25
+ base: string;
26
+ md: string;
27
+ xl: string;
28
+ };
50
29
  };
51
- gridTemplateColumns: string;
52
- paddingY: number;
53
- rowGap: string;
54
30
  };
55
31
  sizes?: {
56
32
  [key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
57
33
  };
58
34
  variants?: {
59
35
  left: {
36
+ gridTemplateAreas: {
37
+ base: "\"breakout\" \"top\" \"sidebar\" \"main\" \"bottom\"";
38
+ md: "\"breakout breakout\" \"top top\" \"sidebar main\" \"bottom bottom\"";
39
+ };
60
40
  gridTemplateColumns: {
61
- md: "271px 1fr";
41
+ base: "100%";
42
+ md: "repeat(2, minmax(100px, 1fr))";
43
+ lg: "minmax(100px, 1fr) minmax(200px, 2fr)";
44
+ xl: "minmax(100px, 1fr) minmax(300px, 3fr)";
62
45
  };
63
46
  };
64
47
  right: {
48
+ gridTemplateAreas: {
49
+ base: "\"breakout\" \"top\" \"main\" \"sidebar\" \"bottom\"";
50
+ md: "\"breakout breakout\" \"top top\" \"main sidebar\" \"bottom bottom\"";
51
+ };
65
52
  gridTemplateColumns: {
66
- md: "1fr 271px";
53
+ base: "100%";
54
+ md: "repeat(2, minmax(100px, 1fr))";
55
+ lg: "minmax(200px, 2fr) minmax(100px, 1fr)";
56
+ xl: "minmax(300px, 3fr) minmax(100px, 1fr)";
67
57
  };
68
58
  };
69
59
  };
@@ -73,14 +63,15 @@ declare const _default: {
73
63
  colorScheme?: string;
74
64
  };
75
65
  };
76
- TemplateContentTopBottom: {
77
- baseStyle?: {
78
- gridColumn: {
79
- base: "1";
80
- md: "1 / span 2";
66
+ TemplateBreakout: {
67
+ baseStyle?: () => {
68
+ width: string;
69
+ ml: string;
70
+ px: {
71
+ base: string;
72
+ md: string;
73
+ xl: string;
81
74
  };
82
- height: string;
83
- paddingX: string;
84
75
  };
85
76
  sizes?: {
86
77
  [key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
@@ -94,87 +85,20 @@ declare const _default: {
94
85
  colorScheme?: string;
95
86
  };
96
87
  };
97
- TemplateContentPrimary: {
88
+ TemplateMainNarrow: {
98
89
  baseStyle?: {
99
- gridColumn: {
100
- base: "1";
101
- md: "1 / span 2";
102
- };
103
- paddingX: string;
90
+ maxWidth: string;
91
+ m: string;
104
92
  };
105
93
  sizes?: {
106
94
  [key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
107
95
  };
108
96
  variants?: {
109
- left: {
110
- gridColumn: {
111
- base: "1";
112
- md: "2";
113
- };
114
- marginEnd: {
115
- md: number;
116
- };
117
- minWidth: {
118
- md: number;
119
- };
120
- paddingRight: string;
121
- paddingLeft: {
122
- base: "s";
123
- md: "l";
124
- };
125
- overflow: {
126
- base: "unset";
127
- md: "hidden";
128
- };
129
- };
130
- right: {
131
- gridColumn: string;
132
- paddingRight: {
133
- base: "s";
134
- md: "l";
135
- };
136
- paddingLeft: string;
137
- overflow: {
138
- base: "unset";
139
- md: "hidden";
140
- };
141
- };
142
- };
143
- defaultProps?: {
144
- size?: string | number;
145
- variant?: "right" | "left";
146
- colorScheme?: string;
147
- };
148
- };
149
- TemplateContentSidebar: {
150
- baseStyle?: import("@chakra-ui/styled-system").SystemStyleInterpolation;
151
- sizes?: {
152
97
  [key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
153
98
  };
154
- variants?: {
155
- left: {
156
- gridColumn: string;
157
- paddingLeft: string;
158
- paddingRight: {
159
- base: "s";
160
- md: number;
161
- };
162
- };
163
- right: {
164
- gridColumn: {
165
- base: "1";
166
- md: "2";
167
- };
168
- paddingLeft: {
169
- base: "s";
170
- md: number;
171
- };
172
- paddingRight: string;
173
- };
174
- };
175
99
  defaultProps?: {
176
100
  size?: string | number;
177
- variant?: "right" | "left";
101
+ variant?: string | number;
178
102
  colorScheme?: string;
179
103
  };
180
104
  };
@@ -56,18 +56,10 @@ declare const Text: {
56
56
  fontWeight: string;
57
57
  lineHeight: number;
58
58
  };
59
- tag: {
60
- fontSize: string;
61
- fontWeight: string;
62
- };
63
- mini: {
64
- fontSize: string;
65
- fontWeight: string;
66
- };
67
59
  };
68
60
  defaultProps?: {
69
61
  size?: string | number;
70
- variant?: "caption" | "default" | "body1" | "body2" | "tag" | "mini" | "overline1" | "overline2" | "subtitle1" | "subtitle2";
62
+ variant?: "caption" | "default" | "body1" | "body2" | "overline1" | "overline2" | "subtitle1" | "subtitle2";
71
63
  colorScheme?: string;
72
64
  };
73
65
  };
@@ -3,19 +3,26 @@ export declare const headerBreakpoints: {
3
3
  lh: string;
4
4
  };
5
5
  /**
6
- * Breakpoints from "src/styles/base/_01-breakpoints.scss"
7
6
  * How to use Chakra responsive styles: https://chakra-ui.com/docs/features/responsive-styles
8
7
  *
9
- * Chakra Value | DS Variable | EM/PX value
10
- * ------------------------------------------------------
11
- * sm | --nypl-breakpoint-small | 20em/320px
12
- * md | --nypl-breakpoint-medium | 37.5em/600px
13
- * lg | --nypl-breakpoint-large | 60em/960px
14
- * xl | --nypl-breakpoint-xl | 80em/1280px
15
- * 2xl | N/A | 96em/1536px
8
+ * Chakra Value | DS Variable | EM/PX value | NYPL reference
9
+ * --------------------------------------------------------------------------
10
+ * sm | --nypl-breakpoint-small | 30em / 480px | small mobile
11
+ * md | --nypl-breakpoint-medium | 48em / 768px | large mobile
12
+ * lg | --nypl-breakpoint-large | 64em / 1024px | small tablet
13
+ * xl | --nypl-breakpoint-xl | 80em / 1280px | large tablet
14
+ * 2xl | n/a | 96em / 1536px | n/a
16
15
  *
17
16
  * @Note Chakra provides a 2xl option while the DS does not. We don't
18
17
  * recommend using this value until further notice.
18
+ *
19
+ * ------------ | ------------------------------- | -------------- | --------------
20
+ * smallMobile | --nypl-breakpoint-smallMobile | 30em / 480px | small mobile
21
+ * largeMobile | --nypl-breakpoint-largeMobile | 48em / 768px | large mobile
22
+ * mobile | --nypl-breakpoint-mobile | 48em / 768px | mobile
23
+ * smallTablet | --nypl-breakpoint-smallTablet | 64em / 1024px | small tablet
24
+ * largeTablet | --nypl-breakpoint-xlargeTablet | 80em / 1280px | large tablet
25
+ * tablet | --nypl-breakpoint-tablet | 80em / 1280px | tablet
19
26
  */
20
27
  declare const _default: {
21
28
  sm: string;
@@ -25,5 +32,11 @@ declare const _default: {
25
32
  lh: string;
26
33
  xl: string;
27
34
  "2xl": string;
35
+ smallMobile: string;
36
+ largeMobile: string;
37
+ mobile: string;
38
+ smallTablet: string;
39
+ largeTablet: string;
40
+ tablet: string;
28
41
  };
29
42
  export default _default;
@@ -0,0 +1,4 @@
1
+ export declare const bgColorsArray: readonly ["brand.primary-05", "section.blogs.primary-05", "section.books-and-more.primary-05", "section.connect.primary-05", "section.education.primary-05", "section.locations.primary-05", "section.research.primary-05", "section.research-library.lpa-05", "section.research-library.schomburg-05", "section.research-library.schwarzman-05", "section.whats-on.primary-05", "dark.brand.primary-05", "dark.section.blogs.primary-05", "dark.section.books-and-more.primary-05", "dark.section.connect.primary-05", "dark.section.education.primary-05", "dark.section.locations.primary-05", "dark.section.research.secondary-05", "dark.section.research-library.lpa-05", "dark.section.research-library.schomburg-05", "dark.section.research-library.schwarzman-05", "dark.section.whats-on.primary-05"];
2
+ export declare const highlightColorsArray: string[];
3
+ export declare const messageVariantsArray: readonly ["informative", "negative", "neutral", "positive", "recommendation", "warning"];
4
+ export declare const sizesArray: readonly ["small", "medium", "large"];
@@ -1,11 +1,16 @@
1
1
  import { HelperErrorTextType } from "../components/HelperErrorText/HelperErrorText";
2
+ import { SidebarPlacement } from "../components/Template/Template";
2
3
  import { AriaAttributes } from "./interfaces";
3
4
  /**
4
5
  * range
5
6
  * Get an array of values from `start` to `stop` - 1 with an optional
6
7
  * `step` between values.
7
8
  */
8
- export declare const range: (start: number, stop: number, step?: number) => number[];
9
+ export declare const range: ({ start, stop, step, }: {
10
+ start: number;
11
+ stop: number;
12
+ step?: number;
13
+ }) => number[];
9
14
  /**
10
15
  * Given a pagination's pageCount, this will return (1) a page number,
11
16
  * derived from the current URL, and (2) a function that, when passed to
@@ -43,6 +48,8 @@ export declare const sanitizeStringForAttribute: (str: string) => string;
43
48
  /** Provides a random image to use as a placeholder. */
44
49
  export type GetPlaceholderImageProps = "smaller" | "default";
45
50
  export declare const getPlaceholderImage: (size?: GetPlaceholderImageProps, index?: number) => string;
51
+ /** Creates the correct sidebar label in Template stories or tests */
52
+ export declare const sidebarLabel: (sidebar: SidebarPlacement) => string;
46
53
  /** The default styles for images added as examples within doc pages. */
47
54
  export declare const exampleWrapperStyles: {
48
55
  bgColor: string;