@nypl/design-system-react-components 4.0.0-alpha-rc4 → 4.0.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 (40) hide show
  1. package/README.md +125 -201
  2. package/dist/design-system-react-components.cjs +39 -39
  3. package/dist/design-system-react-components.js +4507 -4571
  4. package/dist/readme/componentheader.png +0 -0
  5. package/dist/src/components/Accordion/Accordion.d.ts +1 -1
  6. package/dist/src/components/Banner/Banner.d.ts +2 -3
  7. package/dist/src/components/Button/Button.d.ts +1 -1
  8. package/dist/src/components/CheckboxGroup/CheckboxGroup.d.ts +2 -2
  9. package/dist/src/components/Form/Form.d.ts +6 -1
  10. package/dist/src/components/MultiSelect/MultiSelect.d.ts +7 -6
  11. package/dist/src/components/NewsletterSignup/NewsletterSignup.d.ts +1 -1
  12. package/dist/src/components/Notification/Notification.d.ts +2 -2
  13. package/dist/src/components/ProgressIndicator/ProgressIndicator.d.ts +1 -1
  14. package/dist/src/components/RadioGroup/RadioGroup.d.ts +4 -3
  15. package/dist/src/components/SearchBar/SearchBar.d.ts +2 -2
  16. package/dist/src/components/TagSet/TagSet.d.ts +2 -5
  17. package/dist/src/components/Text/Text.d.ts +1 -1
  18. package/dist/src/index.d.ts +1 -3
  19. package/dist/src/theme/components/breadcrumb.d.ts +1 -1
  20. package/dist/src/theme/components/feedbackBox.d.ts +1 -1
  21. package/dist/src/theme/components/heading.d.ts +5 -3
  22. package/dist/src/theme/components/hero.d.ts +14 -15
  23. package/dist/src/theme/components/newsletterSignup.d.ts +1 -1
  24. package/dist/src/theme/components/searchBar.d.ts +2 -2
  25. package/dist/src/theme/components/select.d.ts +7 -3
  26. package/dist/src/theme/components/socialmedialinks.d.ts +2 -2
  27. package/dist/src/theme/components/structuredContent.d.ts +1 -1
  28. package/dist/src/theme/components/subnav.d.ts +1 -1
  29. package/dist/src/theme/components/template.d.ts +6 -11
  30. package/dist/useNextjsImage/aspectRatio.png +0 -0
  31. package/dist/useNextjsImage/containedImageExamples.png +0 -0
  32. package/dist/useNextjsImage/croppedImageExamples.png +0 -0
  33. package/dist/useNextjsImage/customWidth.png +0 -0
  34. package/dist/useNextjsImage/fallbackImageDark.png +0 -0
  35. package/dist/useNextjsImage/fallbackImageLight.png +0 -0
  36. package/dist/useNextjsImage/focalPointExamples01.png +0 -0
  37. package/dist/useNextjsImage/focalPointExamples02.png +0 -0
  38. package/package.json +1 -1
  39. package/dist/src/hooks/useCarouselStyles.d.ts +0 -17
  40. package/dist/src/hooks/useWindowSize.d.ts +0 -10
Binary file
@@ -3,12 +3,12 @@ import { BoxProps, ChakraComponent } from "@chakra-ui/react";
3
3
  export declare const accordionVariantsArray: readonly ["default", "warning", "error"];
4
4
  export type AccordionVariants = typeof accordionVariantsArray[number];
5
5
  export interface AccordionDataProps {
6
- variant?: AccordionVariants;
7
6
  ariaLabel?: string;
8
7
  /** Ref to the DOM element of the AccordionButton. */
9
8
  buttonInteractionRef?: any;
10
9
  label: string | JSX.Element;
11
10
  panel: string | React.ReactNode;
11
+ variant?: AccordionVariants;
12
12
  }
13
13
  export interface AccordionProps extends Omit<BoxProps, "onChange"> {
14
14
  /** Array of data to display, and an optional variant */
@@ -26,10 +26,9 @@ export interface BannerProps extends Omit<BoxProps, "content"> {
26
26
  variant?: BannerVariants;
27
27
  }
28
28
  /**
29
- * The `Banner` component is a non-modal semantic dialog used to communicate a
29
+ * The `Banner` component is a non-modal, semantic dialog used to communicate a
30
30
  * general status event or to promote a feature, providing contextual feedback
31
- * messages for typical user actions. They are displayed contextually within a
32
- * page flow and they will often prompt a user to take action.
31
+ * messages for typical user actions within a page flow.
33
32
  */
34
33
  export declare const Banner: ChakraComponent<React.ForwardRefExoticComponent<BannerProps & React.RefAttributes<HTMLDivElement>>, BannerProps>;
35
34
  export default Banner;
@@ -21,7 +21,7 @@ export interface ButtonProps extends Pick<BoxProps, keyof ChakraProps>, Omit<But
21
21
  variant?: ButtonVariants;
22
22
  }
23
23
  /**
24
- * Renders a simple `button` element with custom variant styles.
24
+ * Renders a simple `button` element with custom `variant` styles.
25
25
  */
26
26
  export declare const Button: ChakraComponent<React.ForwardRefExoticComponent<React.PropsWithChildren<ButtonProps> & React.RefAttributes<HTMLButtonElement>>, React.PropsWithChildren<ButtonProps>>;
27
27
  export default Button;
@@ -41,8 +41,8 @@ export interface CheckboxGroupProps extends Omit<BoxProps, "onChange"> {
41
41
  /**
42
42
  * Wrapper component to wrap `Checkbox` components. Can be displayed in a
43
43
  * column or in a row. The `CheckboxGroup` component renders all the necessary
44
- * wrapping and associated text elements, but the checkbox input elements
45
- * _need_ to be child `Checkbox` components from the NYPL Design System.
44
+ * wrapping and associated text elements. We highly recommend using DS
45
+ * `Checkbox` components as children.
46
46
  */
47
47
  export declare const CheckboxGroup: ChakraComponent<React.ForwardRefExoticComponent<React.PropsWithChildren<CheckboxGroupProps> & React.RefAttributes<HTMLDivElement>>, React.PropsWithChildren<CheckboxGroupProps>>;
48
48
  export default CheckboxGroup;
@@ -15,6 +15,11 @@ export interface FormProps extends FormBaseProps, Omit<FormHTMLAttributes<HTMLFo
15
15
  export declare const FormRow: ChakraComponent<React.ForwardRefExoticComponent<React.PropsWithChildren<FormChildProps> & React.RefAttributes<HTMLDivElement>>, FormChildProps>;
16
16
  /** FormField child-component */
17
17
  export declare const FormField: ChakraComponent<React.ForwardRefExoticComponent<React.PropsWithChildren<FormChildProps> & React.RefAttributes<HTMLDivElement>>, FormChildProps>;
18
- /** Main Form component */
18
+ /**
19
+ * The `Form` component renders a standard `<form>` element and should be used
20
+ * to handle layout and spacing for child input fields. `FormRow` and `FormField`
21
+ * components should be used to build the `<form>` structure and to arrange input
22
+ * fields as needed.
23
+ */
19
24
  export declare const Form: ChakraComponent<React.ForwardRefExoticComponent<React.PropsWithChildren<FormProps> & React.RefAttributes<HTMLDivElement & HTMLFormElement>>, React.PropsWithChildren<FormProps>>;
20
25
  export default Form;
@@ -25,12 +25,6 @@ export interface MultiSelectProps extends BoxProps {
25
25
  /** The number of items that will be visible in the list when the component
26
26
  * first loads. */
27
27
  defaultItemsVisible?: number;
28
- /** The action to perform for the clear/reset button of individual MultiSelects. */
29
- onClear?: () => void;
30
- /** The action to perform on the checkbox's onChange function. */
31
- onChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
32
- /** The action to perform for a mixed state checkbox (parent checkbox). */
33
- onMixedStateChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
34
28
  /** Boolean value used to control how the MultiSelect component will render
35
29
  * within the page and interact with other DOM elements. The default value is false. */
36
30
  isBlockElement?: boolean;
@@ -44,6 +38,13 @@ export interface MultiSelectProps extends BoxProps {
44
38
  /** listOverflow is a property indicating how the list should handle overflow,
45
39
  * with options limited to either "scroll" or "expand." */
46
40
  listOverflow?: MultiSelectListOverflowTypes;
41
+ /** The action to perform for the clear/reset button of individual MultiSelects. */
42
+ onClear?: () => void;
43
+ /** The action to perform on the checkbox's onChange function. Note, if using
44
+ * this prop, it must be of the type listed below. */
45
+ onChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
46
+ /** The action to perform for a mixed state checkbox (parent checkbox). */
47
+ onMixedStateChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
47
48
  /** The selected items state (items that were checked by user). */
48
49
  selectedItems: SelectedItems;
49
50
  /** Value used to set the width for the MultiSelect component. */
@@ -41,7 +41,7 @@ export declare const newsletterHighlightColorsArray: string[];
41
41
  export type HighlightColorTypes = typeof newsletterHighlightColorsArray[number];
42
42
  export type NewsletterSignupViewType = "form" | "submitting" | "confirmation" | "error";
43
43
  /**
44
- * The NewsletterSignup component provides a way for patrons to register for an
44
+ * The `NewsletterSignup` component provides a way for patrons to register for an
45
45
  * email-based newsletter distribution list.
46
46
  */
47
47
  export declare const NewsletterSignup: ChakraComponent<React.ForwardRefExoticComponent<React.PropsWithChildren<NewsletterSignupProps> & React.RefAttributes<HTMLDivElement>>, React.PropsWithChildren<NewsletterSignupProps>>;
@@ -41,8 +41,8 @@ export declare const NotificationHeading: ChakraComponent<React.ForwardRefExotic
41
41
  */
42
42
  export declare const NotificationContent: ChakraComponent<React.ForwardRefExoticComponent<React.PropsWithChildren<NotificationContentProps> & React.RefAttributes<HTMLDivElement>>, NotificationContentProps>;
43
43
  /**
44
- * Component used to present users with three different levels of notifications:
45
- * standard, announcement, and warning.
44
+ * `Notification` is a component used to present users with three different levels
45
+ * of notifications: standard, announcement, and warning.
46
46
  */
47
47
  export declare const Notification: ChakraComponent<React.ForwardRefExoticComponent<NotificationProps & React.RefAttributes<HTMLDivElement>>, NotificationProps>;
48
48
  export default Notification;
@@ -33,7 +33,7 @@ interface CircularProgressIndicatorProps extends BaseProgressIndicatorProps {
33
33
  }
34
34
  export type ProgressIndicatorProps = LinearProgressIndicatorProps | CircularProgressIndicatorProps;
35
35
  /**
36
- * A component that displays a progress status for any task that takes a long
36
+ * `ProgressIndicator` displays a progress status for any task that takes a long
37
37
  * time to complete or consists of multiple steps. Examples include downloading,
38
38
  * uploading, or processing.
39
39
  */
@@ -38,9 +38,10 @@ export interface RadioGroupProps extends Omit<BoxProps, "onChange"> {
38
38
  }
39
39
  /**
40
40
  * `RadioGroup` is a wrapper for DS `Radio` components that render together
41
- * along with an optional helper text. The `name` prop is essential for this
42
- * form group element and is not needed for individual DS `Radio`
43
- * components when `RadioGroup` is used.
41
+ * along with an optional helper text.
42
+ *
43
+ * The `name` prop is essential for this form group element and is not needed
44
+ * for individual DS `Radio` components when `RadioGroup` is used.
44
45
  */
45
46
  export declare const RadioGroup: ChakraComponent<React.ForwardRefExoticComponent<React.PropsWithChildren<RadioGroupProps> & React.RefAttributes<HTMLDivElement>>, React.PropsWithChildren<RadioGroupProps>>;
46
47
  export default RadioGroup;
@@ -44,8 +44,8 @@ export interface SearchBarProps extends Pick<BoxProps, keyof ChakraProps>, Omit<
44
44
  textInputProps?: TextInputProps | undefined;
45
45
  }
46
46
  /**
47
- * Renders a wrapper `form` element to be used with `Select` (optional),
48
- * `Input`, and `Button` components together.
47
+ * `SearchBar` renders a wrapper `form` element containing an `Input`, `Button`,
48
+ * and optional `Select`.
49
49
  */
50
50
  export declare const SearchBar: ChakraComponent<React.ForwardRefExoticComponent<SearchBarProps & React.RefAttributes<HTMLDivElement>>, SearchBarProps>;
51
51
  export default SearchBar;
@@ -1,11 +1,8 @@
1
- import { BoxProps, ChakraComponent } from "@chakra-ui/react";
1
+ import { ChakraComponent } from "@chakra-ui/react";
2
2
  import React from "react";
3
3
  import { TagSetExploreProps } from "./TagSetExplore";
4
4
  import { TagSetFilterProps } from "./TagSetFilter";
5
- export interface BaseTagSetProps extends BoxProps {
6
- }
7
- export type TagSetTypeProps = TagSetFilterProps | TagSetExploreProps;
8
- export type TagSetProps = BaseTagSetProps & TagSetTypeProps;
5
+ export type TagSetProps = TagSetFilterProps | TagSetExploreProps;
9
6
  export declare function isFilterVariant(variant: TagSetProps["variant"]): variant is "filter";
10
7
  /**
11
8
  * The `TagSet` component renders a group of individual tags which have two
@@ -5,7 +5,7 @@ export type TextSizes = typeof textSizesArray[number];
5
5
  export interface TextProps extends BoxProps {
6
6
  /** Optional prop used to show bolded text */
7
7
  isBold?: boolean;
8
- /** Optional prop used to show itlicized text */
8
+ /** Optional prop used to show italicized text */
9
9
  isItalic?: boolean;
10
10
  /** Optional prop used to show capitalized text */
11
11
  isCapitalized?: boolean;
@@ -103,7 +103,7 @@ export type { TableProps } from "./components/Table/Table";
103
103
  export { default as Tabs, TabList, Tab, TabPanels, TabPanel, } from "./components/Tabs/Tabs";
104
104
  export type { TabsDataProps, TabsProps } from "./components/Tabs/Tabs";
105
105
  export { default as TagSet } from "./components/TagSet/TagSet";
106
- export type { TagSetProps, TagSetTypeProps } from "./components/TagSet/TagSet";
106
+ export type { TagSetProps } from "./components/TagSet/TagSet";
107
107
  export type { TagSetExploreDataProps, TagSetExploreProps, } from "./components/TagSet/TagSetExplore";
108
108
  export type { TagSetFilterDataProps, TagSetFilterProps, } from "./components/TagSet/TagSetFilter";
109
109
  export { Template, TemplateBreakout, TemplateContent, TemplateFooter, TemplateFull, TemplateHeader, TemplateMain, TemplateSidebar, } from "./components/Template/Template";
@@ -117,7 +117,6 @@ export { default as Tooltip } from "./components/Tooltip/Tooltip";
117
117
  export type { TooltipProps } from "./components/Tooltip/Tooltip";
118
118
  export { default as VideoPlayer } from "./components/VideoPlayer/VideoPlayer";
119
119
  export type { VideoPlayerAspectRatios, VideoPlayerProps, VideoPlayerTypes, } from "./components/VideoPlayer/VideoPlayer";
120
- export { default as useCarouselStyles } from "./hooks/useCarouselStyles";
121
120
  export { default as useCloseDropDown } from "./hooks/useCloseDropDown";
122
121
  export { default as useFormatNumber } from "./hooks/useFormatNumber";
123
122
  export { default as useMultiSelect } from "./hooks/useMultiSelect";
@@ -125,5 +124,4 @@ export { default as useNYPLBreakpoints } from "./hooks/useNYPLBreakpoints";
125
124
  export { default as useNYPLTheme } from "./hooks/useNYPLTheme";
126
125
  export { default as useResponsiveSpacing } from "./hooks/useResponsiveSpacing";
127
126
  export { default as useScrollFadeStyles } from "./hooks/useScrollFadeStyles";
128
- export { default as useWindowSize } from "./hooks/useWindowSize";
129
127
  export type { AutoCompleteValues } from "./utils/constantValues";
@@ -85,7 +85,7 @@ declare const Breadcrumb: {
85
85
  md: "none";
86
86
  };
87
87
  };
88
- "span:not(.breadcrumb-label)": {
88
+ "span:not(.ds-breadcrumbs-link-label)": {
89
89
  clip: string;
90
90
  height: {
91
91
  base: string;
@@ -101,7 +101,7 @@ declare const FeedbackBox: {
101
101
  };
102
102
  };
103
103
  radioGroup: {
104
- ".radioGroupStack": {
104
+ ".ds-radioGroup-stack": {
105
105
  flexDirection: {
106
106
  base: "column";
107
107
  md: "row";
@@ -169,9 +169,11 @@ declare const Heading: {
169
169
  color: string;
170
170
  textUnderlineOffset: string;
171
171
  };
172
- color: string;
173
172
  margin: string;
174
173
  textTransform: string;
174
+ };
175
+ defaultColorStyle: {
176
+ color: string;
175
177
  _dark: {
176
178
  color: string;
177
179
  };
@@ -179,7 +181,7 @@ declare const Heading: {
179
181
  };
180
182
  sizes?: {
181
183
  [key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
182
- keys: ("base" | "headingWrapper")[];
184
+ keys: ("base" | "defaultColorStyle")[];
183
185
  }>;
184
186
  };
185
187
  variants?: {
@@ -438,6 +440,6 @@ declare const Heading: {
438
440
  variant?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "display1" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "heading7" | "heading8";
439
441
  colorScheme?: string;
440
442
  };
441
- parts: ("base" | "headingWrapper")[];
443
+ parts: ("base" | "defaultColorStyle")[];
442
444
  };
443
445
  export default Heading;
@@ -4,7 +4,7 @@ declare const Hero: {
4
4
  baseStyle?: {};
5
5
  sizes?: {
6
6
  [key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
7
- keys: ("base" | "content" | "imgWrapper" | "bodyText" | "heading" | "interior")[];
7
+ keys: ("base" | "content" | "grid" | "imgWrapper" | "bodyText" | "heading" | "interior")[];
8
8
  }>;
9
9
  };
10
10
  variants?: {
@@ -13,6 +13,11 @@ declare const Hero: {
13
13
  alignItems: string;
14
14
  backgroundSize: string;
15
15
  backgroundPosition: string;
16
+ display: string;
17
+ minHeight: string;
18
+ py: string;
19
+ };
20
+ grid: {
16
21
  display: string;
17
22
  gridTemplateColumns: string;
18
23
  gap: {
@@ -20,9 +25,12 @@ declare const Hero: {
20
25
  md: string;
21
26
  xl: string;
22
27
  };
23
- minHeight: string;
24
- p: string;
25
- paddingInline: string;
28
+ margin: string;
29
+ maxWidth: string;
30
+ px: {
31
+ base: "l";
32
+ md: "s";
33
+ };
26
34
  };
27
35
  content: {
28
36
  bg: string;
@@ -32,16 +40,7 @@ declare const Hero: {
32
40
  md: "2 / 12";
33
41
  lg: "3 / 11";
34
42
  };
35
- padding: {
36
- base: "inset.default";
37
- lg: "inset.wide";
38
- };
39
- paddingEnd: {
40
- lg: "inset.wide";
41
- };
42
- paddingStart: {
43
- lg: "inset.wide";
44
- };
43
+ p: string;
45
44
  a: {
46
45
  color: string;
47
46
  display: string;
@@ -738,6 +737,6 @@ declare const Hero: {
738
737
  variant?: "primary" | "secondary" | "secondaryBooksAndMore" | "secondaryLocations" | "secondaryResearch" | "secondaryWhatsOn" | "tertiary" | "campaign" | "fiftyFifty";
739
738
  colorScheme?: string;
740
739
  };
741
- parts: ("base" | "content" | "imgWrapper" | "bodyText" | "heading" | "interior")[];
740
+ parts: ("base" | "content" | "grid" | "imgWrapper" | "bodyText" | "heading" | "interior")[];
742
741
  };
743
742
  export default Hero;
@@ -62,7 +62,7 @@ declare const NewsletterSignup: {
62
62
  form: {
63
63
  width: string;
64
64
  };
65
- "#newsletter-form-parent": {
65
+ ".ds-newslettersignup-form > div": {
66
66
  gridTemplateColumns: {
67
67
  base: any;
68
68
  lg: string;
@@ -1,13 +1,13 @@
1
1
  declare const SearchBar: {
2
2
  baseStyle?: ({ hasSelectElem }: import("@chakra-ui/styled-system").StyleFunctionProps) => {
3
- ".textInput": {
3
+ ".ds-searchBar-textInput": {
4
4
  flexGrow: number;
5
5
  "div > input": {
6
6
  borderRight: number;
7
7
  borderRightRadius: number;
8
8
  };
9
9
  };
10
- ".searchButton": {
10
+ ".ds-searchBar-button": {
11
11
  minWidth: string;
12
12
  borderLeftRadius: string;
13
13
  lineHeight: string;
@@ -1,9 +1,10 @@
1
1
  import { StyleFunctionProps } from "@chakra-ui/system";
2
2
  interface SelectBaseStyle extends StyleFunctionProps {
3
3
  labelPosition: string;
4
+ showLabel: boolean;
4
5
  }
5
6
  declare const Select: {
6
- baseStyle?: ({ labelPosition }: SelectBaseStyle) => {
7
+ baseStyle?: ({ labelPosition, labelWidth, showLabel }: SelectBaseStyle) => {
7
8
  inline: {
8
9
  display: {
9
10
  md: "flex";
@@ -108,10 +109,13 @@ declare const Select: {
108
109
  };
109
110
  };
110
111
  };
112
+ "div[data-testid='ds-helperErrorText']": {
113
+ marginLeft: string;
114
+ };
111
115
  };
112
116
  sizes?: {
113
117
  [key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
114
- keys: ("select" | "inline" | "helperText")[];
118
+ keys: ("select" | "inline")[];
115
119
  }>;
116
120
  };
117
121
  variants?: {
@@ -126,6 +130,6 @@ declare const Select: {
126
130
  variant?: "searchbar";
127
131
  colorScheme?: string;
128
132
  };
129
- parts: ("select" | "inline" | "helperText")[];
133
+ parts: ("select" | "inline")[];
130
134
  };
131
135
  export default Select;
@@ -86,7 +86,7 @@ declare const SocialMediaLinks: {
86
86
  gap: string;
87
87
  a: {
88
88
  color: string;
89
- ".platLink": {
89
+ ".ds-socialMediaLinks-icon": {
90
90
  minHeight: {
91
91
  base: string;
92
92
  md: "0";
@@ -136,7 +136,7 @@ declare const SocialMediaLinks: {
136
136
  gap: string;
137
137
  a: {
138
138
  color: string;
139
- ".platLink": {
139
+ ".ds-socialMediaLinks-icon": {
140
140
  minHeight: {
141
141
  base: string;
142
142
  md: "0";
@@ -180,7 +180,7 @@ declare const StructuredContent: {
180
180
  * not rendered from the Reservoir DS. Typically, these HTML elements
181
181
  * are added from an API response.
182
182
  */
183
- ".structuredcontent-body > div": {
183
+ ".ds-structuredContent-body > div": {
184
184
  marginTop: string;
185
185
  marginInlineEnd: string;
186
186
  marginBottom: string;
@@ -9,7 +9,7 @@ interface SubNavChildrenStyleProps extends StyleFunctionProps {
9
9
  declare const SubNav: {
10
10
  baseStyle?: ({ backgroundColor, highlightColor }: SubNavStyleProps) => {
11
11
  base: {
12
- ".selectedItem": {
12
+ ".ds-subNav-selectedItem": {
13
13
  color: string;
14
14
  fontWeight: string;
15
15
  backgroundColor: string;
@@ -32,7 +32,7 @@ declare const _default: {
32
32
  * for the "content" and "sidebar" ragions in order to simplify how
33
33
  * variants are handled.
34
34
  * */
35
- "& .reservoir-template-content": {
35
+ "& .ds-template-content": {
36
36
  gridColumn: {
37
37
  base: "1 / -1";
38
38
  };
@@ -43,14 +43,14 @@ declare const _default: {
43
43
  };
44
44
  variants?: {
45
45
  sidebarLeft: {
46
- "& .reservoir-template-content": {
46
+ "& .ds-template-content": {
47
47
  gridColumn: {
48
48
  sm: "7 / -1";
49
49
  md: "5 / -1";
50
50
  lg: "4 / -1";
51
51
  };
52
52
  };
53
- "& .reservoir-template-sidebar": {
53
+ "& .ds-template-sidebar": {
54
54
  gridColumn: {
55
55
  base: "1 / -1";
56
56
  sm: "1 / 7";
@@ -60,14 +60,14 @@ declare const _default: {
60
60
  };
61
61
  };
62
62
  sidebarRight: {
63
- "& .reservoir-template-content": {
63
+ "& .ds-template-content": {
64
64
  gridColumn: {
65
65
  sm: "1 / 7";
66
66
  md: "1 / 9";
67
67
  lg: "1 / 10";
68
68
  };
69
69
  };
70
- "& .reservoir-template-sidebar": {
70
+ "& .ds-template-sidebar": {
71
71
  gridColumn: {
72
72
  base: "1 / -1";
73
73
  sm: "7 / -1";
@@ -77,7 +77,7 @@ declare const _default: {
77
77
  };
78
78
  };
79
79
  narrow: {
80
- "& .reservoir-template-content": {
80
+ "& .ds-template-content": {
81
81
  gridColumn: {
82
82
  base: "1 / -1";
83
83
  md: "2 / 12";
@@ -96,11 +96,6 @@ declare const _default: {
96
96
  baseStyle?: () => {
97
97
  gridColumn: string;
98
98
  ml: string;
99
- px: {
100
- base: string;
101
- md: string;
102
- xl: string;
103
- };
104
99
  width: string;
105
100
  };
106
101
  sizes?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nypl/design-system-react-components",
3
- "version": "4.0.0-alpha-rc4",
3
+ "version": "4.0.0-rc",
4
4
  "description": "NYPL Reservoir Design System React Components",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,17 +0,0 @@
1
- /**
2
- * Custom hook that controls the sliding function for the carousel wrapper.
3
- * This returns functions to use for the "previous" and "next" buttons as well
4
- * as a CSS style object that should be use to transition between slides. There
5
- * is also a function to programmatically slide to the first slide.
6
- * Inspired by: https://codesandbox.io/s/fxjeo
7
- */
8
- export declare const useCarouselStyles: (slidesCount?: number, slideWidth?: number) => {
9
- prevSlide: () => void;
10
- nextSlide: () => void;
11
- carouselStyle: {
12
- transition: string;
13
- marginStart: string;
14
- };
15
- goToStart: () => void;
16
- };
17
- export default useCarouselStyles;
@@ -1,10 +0,0 @@
1
- interface WindowSize {
2
- width: number;
3
- height: number;
4
- }
5
- /**
6
- * React hook used to get the window size on device resizing.
7
- * Based on https://usehooks-typescript.com/react-hook/use-window-size
8
- */
9
- declare function useWindowSize(): WindowSize;
10
- export default useWindowSize;