@nypl/design-system-react-components 2.1.5-rc3 → 2.1.5

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.
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ /// <reference types="react" />
2
2
  export declare const feedbackBoxViewTypeArray: readonly ["form", "confirmation", "error"];
3
3
  export type FeedbackBoxViewType = typeof feedbackBoxViewTypeArray[number];
4
4
  interface FeedbackBoxProps {
@@ -54,7 +54,7 @@ interface FeedbackBoxProps {
54
54
  * submitted data; that feature is the responsibility of the consuming
55
55
  * application.
56
56
  */
57
- export declare const FeedbackBox: import("@chakra-ui/react").ChakraComponent<React.ForwardRefExoticComponent<FeedbackBoxProps & React.RefAttributes<any>>, {}>;
57
+ export declare const FeedbackBox: import("@chakra-ui/react").ChakraComponent<import("react").ForwardRefExoticComponent<FeedbackBoxProps & import("react").RefAttributes<any>>, {}>;
58
58
  export declare function useFeedbackBox(): {
59
59
  isOpen: boolean;
60
60
  onClose: () => void;
@@ -159,6 +159,9 @@ declare const _default: {
159
159
  moonCrescent: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
160
160
  title?: string;
161
161
  }>;
162
+ navigationMoreVert: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
163
+ title?: string;
164
+ }>;
162
165
  plus: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
163
166
  title?: string;
164
167
  }>;
@@ -1,6 +1,6 @@
1
1
  export declare const iconAlignArray: readonly ["left", "right", "none"];
2
2
  export declare const iconColorsArray: readonly ["ui.black", "ui.white", "brand.primary", "brand.secondary", "ui.error.primary", "ui.error.secondary", "ui.status.primary", "ui.status.secondary", "ui.success.primary", "ui.success.secondary", "ui.warning.primary", "ui.warning.secondary", "section.blogs.primary", "section.blogs.secondary", "section.books-and-more.primary", "section.books-and-more.secondary", "section.education.primary", "section.education.secondary", "section.locations.primary", "section.locations.secondary", "section.research.primary", "section.research.secondary", "section.research-library.lpa", "section.research-library.schomburg", "section.research-library.schwartzman", "section.whats-on.primary", "section.whats-on.secondary", "dark.ui.error.primary", "dark.ui.error.secondary", "dark.ui.status.primary", "dark.ui.status.secondary", "dark.ui.success.primary", "dark.ui.success.secondary", "dark.ui.warning.primary", "dark.ui.warning.secondary"];
3
- export declare const iconNamesArray: readonly ["accessibilityFull", "accessibilityPartial", "actionCheckCircle", "actionCheckCircleFilled", "actionDelete", "actionExit", "actionHelpDefault", "actionHelpOutline", "actionHome", "actionIdentity", "actionIdentityFilled", "actionLaunch", "actionLockClosed", "actionPayment", "actionPower", "actionRegistration", "actionSearch", "actionSettings", "alertNotificationImportant", "alertWarningFilled", "alertWarningOutline", "arrow", "building", "check", "clock", "close", "communicationCall", "communicationChatBubble", "communicationEmail", "decorativeEnvelope", "decorativeLibraryCard", "decorativeShoppingBag", "download", "errorFilled", "errorOutline", "fileTypeAudio", "fileTypeDoc", "fileTypeGenericDoc", "fileTypeImage", "fileTypePdf", "fileTypeSpreadsheet", "fileTypeVideo", "headset", "legacyAccountFilled", "legacyAccountUnfilled", "legacySocialFacebook", "legacySocialInstagram", "legacySocialTwitter", "legacySocialYoutube", "locator", "mapsPlace", "minus", "moonCrescent", "plus", "search", "socialFacebook", "socialInstagram", "socialPinterest", "socialSoundCloud", "socialSpotify", "socialTikTok", "socialTumblr", "socialTwitter", "socialVimeo", "socialYoutube", "speakerNotes", "sunFull", "utilityAccountFilled", "utilityAccountUnfilled", "utilityHamburger", "utilitySearch"];
3
+ export declare const iconNamesArray: readonly ["accessibilityFull", "accessibilityPartial", "actionCheckCircle", "actionCheckCircleFilled", "actionDelete", "actionExit", "actionHelpDefault", "actionHelpOutline", "actionHome", "actionIdentity", "actionIdentityFilled", "actionLaunch", "actionLockClosed", "actionPayment", "actionPower", "actionRegistration", "actionSearch", "actionSettings", "alertNotificationImportant", "alertWarningFilled", "alertWarningOutline", "arrow", "building", "check", "clock", "close", "communicationCall", "communicationChatBubble", "communicationEmail", "decorativeEnvelope", "decorativeLibraryCard", "decorativeShoppingBag", "download", "errorFilled", "errorOutline", "fileTypeAudio", "fileTypeDoc", "fileTypeGenericDoc", "fileTypeImage", "fileTypePdf", "fileTypeSpreadsheet", "fileTypeVideo", "headset", "legacyAccountFilled", "legacyAccountUnfilled", "legacySocialFacebook", "legacySocialInstagram", "legacySocialTwitter", "legacySocialYoutube", "locator", "mapsPlace", "minus", "moonCrescent", "navigationMoreVert", "plus", "search", "socialFacebook", "socialInstagram", "socialPinterest", "socialSoundCloud", "socialSpotify", "socialTikTok", "socialTumblr", "socialTwitter", "socialVimeo", "socialYoutube", "speakerNotes", "sunFull", "utilityAccountFilled", "utilityAccountUnfilled", "utilityHamburger", "utilitySearch"];
4
4
  export declare const iconRotationsArray: readonly ["rotate0", "rotate90", "rotate180", "rotate270"];
5
5
  export declare const iconSizesArray: readonly ["default", "xsmall", "small", "medium", "large", "xlarge", "xxlarge", "xxxlarge"];
6
6
  export declare const iconTypesArray: readonly ["default", "breadcrumbs"];
@@ -9,7 +9,5 @@ declare const useNYPLBreakpoints: () => {
9
9
  isLargerThanMobile: any;
10
10
  isLargerThanLarge: any;
11
11
  isLargerThanXLarge: any;
12
- isSmallerThanMedium: any;
13
- isSmallerThanDesktop: any;
14
12
  };
15
13
  export default useNYPLBreakpoints;
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ /**
3
+ * DS internal helper hook for the Tabs component to scroll
4
+ * the selected tab into view using useEffect and querySelector.
5
+ *
6
+ * Returns a ref for the TabList component.
7
+ */
8
+ export declare const useScrollTabIntoView: (index: number) => React.MutableRefObject<HTMLDivElement>;
9
+ export default useScrollTabIntoView;
@@ -94,6 +94,9 @@ declare const FeedbackBox: {
94
94
  bottom: string;
95
95
  right: string;
96
96
  zIndex: string;
97
+ _focus: {
98
+ boxShadow: string;
99
+ };
97
100
  };
98
101
  };
99
102
  };
@@ -142,14 +142,10 @@ declare const CustomTabs: {
142
142
  base: string;
143
143
  md: string;
144
144
  };
145
- paddingStart: {
146
- base: string;
147
- md: string;
148
- };
145
+ paddingStart: string;
149
146
  paddingEnd: string;
150
147
  paddingTop: {
151
148
  base: string;
152
- md: string;
153
149
  };
154
150
  right: {
155
151
  base: string;
@@ -157,8 +153,12 @@ declare const CustomTabs: {
157
153
  };
158
154
  top: {
159
155
  base: string;
160
- md: string;
161
156
  };
157
+ scrollbarWidth: string;
158
+ "::-webkit-scrollbar": {
159
+ display: string;
160
+ };
161
+ overflowY: string;
162
162
  overflowX: {
163
163
  base: string;
164
164
  md: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nypl/design-system-react-components",
3
- "version": "2.1.5-rc3",
3
+ "version": "2.1.5",
4
4
  "description": "NYPL Reservoir Design System React Components",
5
5
  "repository": {
6
6
  "type": "git",
@@ -138,7 +138,7 @@
138
138
  "style-loader": "2.0.0",
139
139
  "ts-jest": "29.0.5",
140
140
  "tslib": "2.3.0",
141
- "vite": "4.3.9",
141
+ "vite": "4.5.2",
142
142
  "vite-plugin-dts": "2.1.0"
143
143
  }
144
144
  }