@nypl/design-system-react-components 2.2.0-react-chakra-rc → 3.0.0-link-test-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 (125) hide show
  1. package/dist/design-system-react-components.cjs +59 -59
  2. package/dist/design-system-react-components.js +18645 -17492
  3. package/dist/src/components/Accordion/Accordion.d.ts +9 -2
  4. package/dist/src/components/AlphabetFilter/AlphabetFilter.d.ts +6 -3
  5. package/dist/src/components/AudioPlayer/AudioPlayer.d.ts +6 -3
  6. package/dist/src/components/Breadcrumbs/Breadcrumbs.d.ts +2 -1
  7. package/dist/src/components/Button/Button.d.ts +23 -1
  8. package/dist/src/components/ButtonGroup/ButtonGroup.d.ts +15 -1
  9. package/dist/src/components/Card/Card.d.ts +2 -1
  10. package/dist/src/components/Checkbox/Checkbox.d.ts +2 -1
  11. package/dist/src/components/CheckboxGroup/CheckboxGroup.d.ts +2 -1
  12. package/dist/src/components/ComponentWrapper/ComponentWrapper.d.ts +4 -2
  13. package/dist/src/components/DatePicker/DatePicker.d.ts +14 -6
  14. package/dist/src/components/FeaturedContent/FeaturedContent.d.ts +2 -1
  15. package/dist/src/components/FeedbackBox/FeedbackBox.d.ts +48 -2
  16. package/dist/src/components/Fieldset/Fieldset.d.ts +17 -1
  17. package/dist/src/components/Form/Form.d.ts +4 -3
  18. package/dist/src/components/Grid/SimpleGrid.d.ts +2 -1
  19. package/dist/src/components/Heading/Heading.d.ts +2 -1
  20. package/dist/src/components/HelperErrorText/HelperErrorText.d.ts +26 -1
  21. package/dist/src/components/Hero/Hero.d.ts +6 -1
  22. package/dist/src/components/HorizontalRule/HorizontalRule.d.ts +2 -1
  23. package/dist/src/components/Icons/Icon.d.ts +2 -1
  24. package/dist/src/components/Icons/IconSvgs.d.ts +24 -0
  25. package/dist/src/components/Icons/iconVariables.d.ts +2 -2
  26. package/dist/src/components/Image/Image.d.ts +9 -2
  27. package/dist/src/components/Label/Label.d.ts +19 -1
  28. package/dist/src/components/Link/Link.d.ts +5 -6
  29. package/dist/src/components/List/List.d.ts +6 -4
  30. package/dist/src/components/Logo/Logo.d.ts +5 -4
  31. package/dist/src/components/Logo/logoVariables.d.ts +0 -1
  32. package/dist/src/components/Menu/Menu.d.ts +58 -0
  33. package/dist/src/components/Modal/Modal.d.ts +13 -4
  34. package/dist/src/components/MultiSelect/MultiSelect.d.ts +55 -0
  35. package/dist/src/components/MultiSelect/MultiSelectItemsCountButton.d.ts +29 -0
  36. package/dist/src/components/NewsletterSignup/NewsletterSignup.d.ts +42 -1
  37. package/dist/src/components/Notification/Notification.d.ts +11 -5
  38. package/dist/src/components/Pagination/Pagination.d.ts +2 -1
  39. package/dist/src/components/ProgressIndicator/ProgressIndicator.d.ts +2 -1
  40. package/dist/src/components/Radio/Radio.d.ts +2 -1
  41. package/dist/src/components/RadioGroup/RadioGroup.d.ts +2 -1
  42. package/dist/src/components/SearchBar/SearchBar.d.ts +4 -2
  43. package/dist/src/components/Select/Select.d.ts +2 -1
  44. package/dist/src/components/SkeletonLoader/SkeletonLoader.d.ts +2 -1
  45. package/dist/src/components/SkipNavigation/SkipNavigation.d.ts +10 -1
  46. package/dist/src/components/Slider/Slider.d.ts +2 -1
  47. package/dist/src/components/SocialMediaLinks/SocialMediaLinks.d.ts +2 -1
  48. package/dist/src/components/StatusBadge/StatusBadge.d.ts +15 -6
  49. package/dist/src/components/StructuredContent/StructuredContent.d.ts +7 -4
  50. package/dist/src/components/StyleGuide/ColorCard.d.ts +2 -1
  51. package/dist/src/components/StyledList/StyledList.d.ts +2 -1
  52. package/dist/src/components/Table/Table.d.ts +2 -1
  53. package/dist/src/components/Tabs/Tabs.d.ts +2 -2
  54. package/dist/src/components/TagSet/TagSet.d.ts +2 -1
  55. package/dist/src/components/TagSet/TagSetExplore.d.ts +1 -1
  56. package/dist/src/components/TagSet/TagSetFilter.d.ts +1 -1
  57. package/dist/src/components/Template/Template.d.ts +3 -2
  58. package/dist/src/components/Text/Text.d.ts +2 -1
  59. package/dist/src/components/TextInput/TextInput.d.ts +2 -1
  60. package/dist/src/components/Toggle/Toggle.d.ts +2 -1
  61. package/dist/src/components/Tooltip/Tooltip.d.ts +2 -1
  62. package/dist/src/components/VideoPlayer/VideoPlayer.d.ts +6 -3
  63. package/dist/src/helpers/types.d.ts +2 -0
  64. package/dist/src/hooks/useDSHeading.d.ts +16 -0
  65. package/dist/src/hooks/useMultiSelect.d.ts +18 -0
  66. package/dist/src/hooks/useScrollTabIntoView.d.ts +9 -0
  67. package/dist/src/hooks/useStateWithDependencies.d.ts +4 -2
  68. package/dist/src/index.d.ts +6 -1
  69. package/dist/src/theme/components/accordion.d.ts +25 -2
  70. package/dist/src/theme/components/alphabetFilter.d.ts +24 -8
  71. package/dist/src/theme/components/audioPlayer.d.ts +18 -1
  72. package/dist/src/theme/components/breadcrumb.d.ts +24 -16
  73. package/dist/src/theme/components/button.d.ts +39 -0
  74. package/dist/src/theme/components/buttonGroup.d.ts +12 -3
  75. package/dist/src/theme/components/card.d.ts +104 -235
  76. package/dist/src/theme/components/checkbox.d.ts +44 -34
  77. package/dist/src/theme/components/checkboxGroup.d.ts +18 -4
  78. package/dist/src/theme/components/datePicker.d.ts +17 -6
  79. package/dist/src/theme/components/featuredContent.d.ts +75 -36
  80. package/dist/src/theme/components/feedbackBox.d.ts +28 -9
  81. package/dist/src/theme/components/fieldset.d.ts +14 -2
  82. package/dist/src/theme/components/global.d.ts +1 -0
  83. package/dist/src/theme/components/heading.d.ts +596 -249
  84. package/dist/src/theme/components/helperErrorText.d.ts +19 -3
  85. package/dist/src/theme/components/hero.d.ts +198 -176
  86. package/dist/src/theme/components/horizontalRule.d.ts +14 -2
  87. package/dist/src/theme/components/icon.d.ts +13 -4
  88. package/dist/src/theme/components/image.d.ts +326 -223
  89. package/dist/src/theme/components/label.d.ts +14 -2
  90. package/dist/src/theme/components/link.d.ts +40 -197
  91. package/dist/src/theme/components/list.d.ts +130 -101
  92. package/dist/src/theme/components/logo.d.ts +17 -5
  93. package/dist/src/theme/components/menu.d.ts +169 -0
  94. package/dist/src/theme/components/modal.d.ts +19 -4
  95. package/dist/src/theme/components/multiSelect.d.ts +106 -12
  96. package/dist/src/theme/components/multiSelectItemsCountButton.d.ts +52 -0
  97. package/dist/src/theme/components/newsletterSignup.d.ts +37 -29
  98. package/dist/src/theme/components/notification.d.ts +51 -116
  99. package/dist/src/theme/components/notificationContent.d.ts +58 -0
  100. package/dist/src/theme/components/notificationHeading.d.ts +57 -0
  101. package/dist/src/theme/components/pagination.d.ts +17 -2
  102. package/dist/src/theme/components/progressIndicator.d.ts +21 -5
  103. package/dist/src/theme/components/radio.d.ts +25 -6
  104. package/dist/src/theme/components/radioGroup.d.ts +18 -4
  105. package/dist/src/theme/components/searchBar.d.ts +24 -6
  106. package/dist/src/theme/components/select.d.ts +21 -13
  107. package/dist/src/theme/components/skeletonLoader.d.ts +34 -12
  108. package/dist/src/theme/components/skipNavigation.d.ts +12 -1
  109. package/dist/src/theme/components/slider.d.ts +49 -33
  110. package/dist/src/theme/components/socialmedialinks.d.ts +22 -16
  111. package/dist/src/theme/components/statusBadge.d.ts +66 -10
  112. package/dist/src/theme/components/structuredContent.d.ts +233 -102
  113. package/dist/src/theme/components/styledList.d.ts +12 -6
  114. package/dist/src/theme/components/tabs.d.ts +27 -13
  115. package/dist/src/theme/components/tagSet.d.ts +83 -42
  116. package/dist/src/theme/components/template.d.ts +76 -25
  117. package/dist/src/theme/components/text.d.ts +27 -12
  118. package/dist/src/theme/components/textInput.d.ts +52 -44
  119. package/dist/src/theme/components/toggle.d.ts +33 -11
  120. package/dist/src/theme/components/tooltip.d.ts +13 -1
  121. package/dist/src/theme/components/videoPlayer.d.ts +32 -21
  122. package/dist/src/theme/foundations/global.d.ts +6 -0
  123. package/dist/styles.css +1 -1
  124. package/package.json +6 -9
  125. package/dist/src/theme/components/multiSelectMenuButton.d.ts +0 -99
@@ -1,3 +1,4 @@
1
+ import { ChakraComponent } from "@chakra-ui/react";
1
2
  import React from "react";
2
3
  export interface TableProps {
3
4
  /** Additional class name for the `Table` component. */
@@ -26,5 +27,5 @@ export interface TableProps {
26
27
  * Basic `Table` component used to organize and display tabular data in
27
28
  * rows and columns.
28
29
  */
29
- export declare const Table: React.FC<any>;
30
+ export declare const Table: ChakraComponent<React.ForwardRefExoticComponent<React.PropsWithChildren<TableProps> & React.RefAttributes<HTMLTableElement>>, React.PropsWithChildren<TableProps>>;
30
31
  export default Table;
@@ -1,4 +1,4 @@
1
- import { Tab, TabList, TabPanels, TabPanel } from "@chakra-ui/react";
1
+ import { Tab, TabList, TabPanels, TabPanel, ChakraComponent } from "@chakra-ui/react";
2
2
  import React from "react";
3
3
  export interface TabsDataProps {
4
4
  label: string;
@@ -21,6 +21,6 @@ export interface TabsProps {
21
21
  * Renders Chakra's `Tab` component with specific variants, props,
22
22
  * and controlled styling.
23
23
  */
24
- export declare const Tabs: React.FC<any>;
24
+ export declare const Tabs: ChakraComponent<React.ForwardRefExoticComponent<React.PropsWithChildren<TabsProps> & React.RefAttributes<HTMLDivElement>>, React.PropsWithChildren<TabsProps>>;
25
25
  export { TabList, Tab, TabPanels, TabPanel };
26
26
  export default Tabs;
@@ -1,3 +1,4 @@
1
+ import { ChakraComponent } from "@chakra-ui/react";
1
2
  import React from "react";
2
3
  import { TagSetExploreProps } from "./TagSetExplore";
3
4
  import { TagSetFilterProps } from "./TagSetFilter";
@@ -20,5 +21,5 @@ export declare function isFilterType(type: TagSetProps["type"]): type is "filter
20
21
  * The full label text will be automatically revealed when the tag is hovered
21
22
  * with a DS `Tooltip` component.
22
23
  */
23
- export declare const TagSet: React.FC<any>;
24
+ export declare const TagSet: ChakraComponent<React.ForwardRefExoticComponent<TagSetProps & React.RefAttributes<HTMLDivElement>>, TagSetProps>;
24
25
  export default TagSet;
@@ -24,5 +24,5 @@ export interface TagSetExploreProps {
24
24
  * The `label` property in the `tagSetData` prop should be set to a link-type
25
25
  * JSX component for linking to specific content.
26
26
  */
27
- export declare const TagSetExplore: React.FC<any>;
27
+ export declare const TagSetExplore: React.FC<TagSetExploreProps>;
28
28
  export default TagSetExplore;
@@ -22,5 +22,5 @@ export interface TagSetFilterProps {
22
22
  * The "filter" `TagSet` variant will display tags that can be removed when
23
23
  * `isDismissible` is true and they are clicked.
24
24
  */
25
- export declare const TagSetFilter: React.FC<any>;
25
+ export declare const TagSetFilter: React.FC<TagSetFilterProps>;
26
26
  export default TagSetFilter;
@@ -1,3 +1,4 @@
1
+ import { ChakraComponent } from "@chakra-ui/react";
1
2
  import React from "react";
2
3
  export interface TemplateProps {
3
4
  }
@@ -47,7 +48,7 @@ export interface TemplateAppContainerProps extends TemplateFooterProps, Template
47
48
  * The main top-level parent component that wraps all template-related
48
49
  * components.
49
50
  */
50
- declare const Template: React.FC<any>;
51
+ declare const Template: ChakraComponent<React.ForwardRefExoticComponent<React.PropsWithChildren<TemplateProps> & React.RefAttributes<HTMLDivElement>>, React.PropsWithChildren<TemplateProps>>;
51
52
  /**
52
53
  * This optional component renders its children from edge-to-edge and should
53
54
  * be used for alerts or notifications that are typically site-wide. This must
@@ -131,6 +132,6 @@ declare const TemplateFooter: React.FC<any>;
131
132
  * be rendered. For example, if you want to render content in the
132
133
  * `TemplateContentPrimary` section, then pass it as a prop to `contentPrimary`.
133
134
  */
134
- export declare const TemplateAppContainer: React.FC<any>;
135
+ export declare const TemplateAppContainer: ChakraComponent<React.ForwardRefExoticComponent<React.PropsWithChildren<TemplateAppContainerProps> & React.RefAttributes<HTMLDivElement>>, React.PropsWithChildren<TemplateAppContainerProps>>;
135
136
  export { Template, TemplateAboveHeader, TemplateBreakout, TemplateContent, TemplateContentBottom, TemplateContentPrimary, TemplateContentSidebar, TemplateContentTop, TemplateFooter, TemplateHeader, };
136
137
  export default TemplateAppContainer;
@@ -1,3 +1,4 @@
1
+ import { ChakraComponent } from "@chakra-ui/react";
1
2
  import React from "react";
2
3
  export declare const textSizesArray: readonly ["default", "body1", "body2", "caption", "tag", "mini", "overline1", "overline2", "subtitle1", "subtitle2"];
3
4
  export type TextSizes = typeof textSizesArray[number];
@@ -21,5 +22,5 @@ export interface TextProps {
21
22
  /** Optional prop to control the text styling */
22
23
  size?: TextSizes;
23
24
  }
24
- export declare const Text: React.FC<any>;
25
+ export declare const Text: ChakraComponent<React.ForwardRefExoticComponent<React.PropsWithChildren<TextProps> & React.RefAttributes<HTMLDivElement>>, React.PropsWithChildren<TextProps>>;
25
26
  export default Text;
@@ -1,3 +1,4 @@
1
+ import { ChakraComponent } from "@chakra-ui/react";
1
2
  import React from "react";
2
3
  import { HelperErrorTextType } from "../HelperErrorText/HelperErrorText";
3
4
  export declare const autoCompleteValuesArray: readonly ["on", "off", "additional-name", "address-level1", "address-level2", "address-level3", "address-level4", "address-line1", "address-line2", "address-line3", "bday-day", "bday-month", "bday-year", "bday", "cc-additional-name", "cc-csc", "cc-exp-month", "cc-exp-year", "cc-exp", "cc-family-name", "cc-given-name", "cc-name", "cc-number", "cc-type", "country-name", "country", "current-password", "email", "family-name", "given-name", "honorific-prefix", "honorific-suffix", "impp", "language", "name", "new-password", "nickname", "organization-title", "organization", "photo", "postal-code", "sex", "street-address", "tel-area-code", "tel-country-code", "tel-extension", "tel-local-prefix", "tel-local-suffix", "tel-local", "tel-national", "tel", "transaction-amount", "transaction-currency", "url", "username"];
@@ -94,5 +95,5 @@ export type TextInputRefType = HTMLInputElement & HTMLTextAreaElement;
94
95
  * element. All types will render an accessible `Label` component and an
95
96
  * optional `HelperErrorText` component.
96
97
  */
97
- export declare const TextInput: React.FC<any>;
98
+ export declare const TextInput: ChakraComponent<React.ForwardRefExoticComponent<InputProps & React.RefAttributes<TextInputRefType>>, InputProps>;
98
99
  export default TextInput;
@@ -1,3 +1,4 @@
1
+ import { ChakraComponent } from "@chakra-ui/react";
1
2
  import React from "react";
2
3
  import { HelperErrorTextType } from "../HelperErrorText/HelperErrorText";
3
4
  export declare const toggleSizesArray: readonly ["default", "small"];
@@ -39,5 +40,5 @@ export declare const onChangeDefault: () => void;
39
40
  /**
40
41
  * Component that renders Chakra's `Switch` component along with NYPL defaults.
41
42
  */
42
- export declare const Toggle: React.FC<any>;
43
+ export declare const Toggle: ChakraComponent<React.ForwardRefExoticComponent<ToggleProps & React.RefAttributes<HTMLInputElement>>, ToggleProps>;
43
44
  export default Toggle;
@@ -1,4 +1,5 @@
1
1
  import React from "react";
2
+ import { ChakraComponent } from "@chakra-ui/react";
2
3
  export interface TooltipProps {
3
4
  /** Any child node passed to the component. */
4
5
  children: React.ReactNode;
@@ -13,5 +14,5 @@ export interface TooltipProps {
13
14
  /** Wraps the children of the tooltip in `ComponentWrapper` with `tabIndex=0` when true. */
14
15
  shouldWrapChildren?: boolean;
15
16
  }
16
- export declare const Tooltip: React.FC<any>;
17
+ export declare const Tooltip: ChakraComponent<React.ForwardRefExoticComponent<React.PropsWithChildren<TooltipProps> & React.RefAttributes<HTMLDivElement>>, React.PropsWithChildren<TooltipProps>>;
17
18
  export default Tooltip;
@@ -1,3 +1,4 @@
1
+ import { ChakraComponent } from "@chakra-ui/react";
1
2
  import React from "react";
2
3
  import { HelperErrorTextType } from "../HelperErrorText/HelperErrorText";
3
4
  export declare const VideoPlayerAspectRatiosArray: readonly ["fourByThree", "sixteenByNine", "square"];
@@ -16,8 +17,10 @@ export interface VideoPlayerProps {
16
17
  * `videoPlayer` component will accept the `embedCode` prop or the `videoId`
17
18
  * and `videoType` props */
18
19
  embedCode?: string;
19
- /** Optional string to set the text for a `Heading` component */
20
- headingText?: string;
20
+ /** Optional string value used to set the text for a `Heading` component, or
21
+ * a DS Heading component that can be passed in.
22
+ */
23
+ headingText?: string | JSX.Element;
21
24
  /** Optional string to set the text for a `HelperErrorText` component */
22
25
  helperText?: HelperErrorTextType;
23
26
  /** ID that other components can cross reference for accessibility purposes */
@@ -36,5 +39,5 @@ export interface VideoPlayerProps {
36
39
  /** Required. Used to specify which video service is being used. */
37
40
  videoType?: VideoPlayerTypes;
38
41
  }
39
- export declare const VideoPlayer: React.FC<any>;
42
+ export declare const VideoPlayer: ChakraComponent<React.ForwardRefExoticComponent<React.PropsWithChildren<VideoPlayerProps> & React.RefAttributes<HTMLDivElement>>, VideoPlayerProps>;
40
43
  export default VideoPlayer;
@@ -48,3 +48,5 @@ export declare const sectionColorsDataMap: {
48
48
  };
49
49
  export declare const sectionTypeArray: string[];
50
50
  export type SectionTypes = typeof sectionTypeArray[number];
51
+ export declare const dimensionTypeArray: readonly ["height", "width"];
52
+ export type DimensionTypes = typeof dimensionTypeArray[number];
@@ -0,0 +1,16 @@
1
+ /// <reference types="react" />
2
+ interface UseDSHeadingProps {
3
+ title: string | JSX.Element;
4
+ id?: string;
5
+ customDefaultHeading?: string | JSX.Element;
6
+ additionalStyles?: {
7
+ [key: string]: any;
8
+ };
9
+ }
10
+ /**
11
+ * DS internal helper hook to render a default `h2` heading element if the
12
+ * passed title is a string. Otherwise, it will return the title as is if it
13
+ * is a JSX element.
14
+ */
15
+ declare function useDSHeading({ title, id, customDefaultHeading, additionalStyles, }: UseDSHeadingProps): string | JSX.Element;
16
+ export default useDSHeading;
@@ -0,0 +1,18 @@
1
+ import { MultiSelectItem, SelectedItems } from "../components/MultiSelect/MultiSelect";
2
+ /**
3
+ * The useMultiSelect hook returns an object containing all the functions and
4
+ * state needed to handle the selectedItems of a `MultiSelect` component. It can
5
+ * be used in conjunction with one single `MultiSelect` component as well as a
6
+ * group of `MultiSelect`s in the `MultiSelectGroup` component. The returned
7
+ * object includes the functions onChange, onClear, onMixedStateChange for
8
+ * handling any changes to the selection of items and the current state of the
9
+ * selection: selectedItems.
10
+ */
11
+ export default function useMultiSelect(initialState?: SelectedItems): {
12
+ selectedItems: {} | SelectedItems;
13
+ setSelectedItems: (newState: SelectedItems) => void;
14
+ onChange: (itemId: string, multiSelectId: string) => void;
15
+ onMixedStateChange: (parentId: string, multiSelectId: string, items: MultiSelectItem[]) => void;
16
+ onClear: (multiSelectId: string) => void;
17
+ onClearAll: () => void;
18
+ };
@@ -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;
@@ -1,8 +1,10 @@
1
1
  /**
2
2
  * DS internal helper hook to use state with prop dependencies.
3
3
  *
4
- * This hook should NOT be used by consuming apps. DS components should use this hook rather than useState() whenever
5
- * a change in state is expected for a given prop from a consuming app. The hook updates the DS component with useEffect().
4
+ * This hook should NOT be used by consuming apps. DS components should use
5
+ * this hook rather than useState() whenever a change in state is expected
6
+ * for a given prop from a consuming app. The hook updates the DS component
7
+ * with useEffect().
6
8
  */
7
9
  declare function useStateWithDependencies(initialValue: any): typeof initialValue;
8
10
  export default useStateWithDependencies;
@@ -1,4 +1,4 @@
1
- export { Box, Center, Circle, ColorModeScript, cookieStorageManager, Flex, Grid, GridItem, HStack, localStorageManager, Spacer, Square, Stack, useColorMode, useColorModeValue, VStack, } from "@chakra-ui/react";
1
+ export { Box, Center, Circle, ColorModeScript, cookieStorageManager, cookieStorageManagerSSR, Flex, Grid, GridItem, HStack, localStorageManager, Spacer, Square, Stack, useColorMode, useColorModeValue, VStack, } from "@chakra-ui/react";
2
2
  export { default as Accordion } from "./components/Accordion/Accordion";
3
3
  export type { AccordionTypes } from "./components/Accordion/Accordion";
4
4
  export { default as AlphabetFilter } from "./components/AlphabetFilter/AlphabetFilter";
@@ -40,7 +40,11 @@ export { default as List } from "./components/List/List";
40
40
  export type { DescriptionProps, ListTypes } from "./components/List/List";
41
41
  export { default as Logo } from "./components/Logo/Logo";
42
42
  export type { LogoNames, LogoSizes } from "./components/Logo/Logo";
43
+ export { default as Menu } from "./components/Menu/Menu";
44
+ export type { ListItemsData, ActionItem, GroupItem, DividerItem, } from "./components/Menu/Menu";
43
45
  export { ModalTrigger, useModal } from "./components/Modal/Modal";
46
+ export { default as MultiSelect } from "./components/MultiSelect/MultiSelect";
47
+ export type { MultiSelectItem, SelectedItems, } from "./components/MultiSelect/MultiSelect";
44
48
  export { default as NewsletterSignup } from "./components/NewsletterSignup/NewsletterSignup";
45
49
  export type { NewsletterSignupViewType } from "./components/NewsletterSignup/NewsletterSignup";
46
50
  export { default as Notification } from "./components/Notification/Notification";
@@ -78,6 +82,7 @@ export { default as Toggle } from "./components/Toggle/Toggle";
78
82
  export type { ToggleSizes } from "./components/Toggle/Toggle";
79
83
  export { default as useCarouselStyles } from "./hooks/useCarouselStyles";
80
84
  export { default as useCloseDropDown } from "./hooks/useCloseDropDown";
85
+ export { default as useMultiSelect } from "./hooks/useMultiSelect";
81
86
  export { default as useNYPLBreakpoints } from "./hooks/useNYPLBreakpoints";
82
87
  export { default as useNYPLTheme } from "./hooks/useNYPLTheme";
83
88
  export { default as useWindowSize } from "./hooks/useWindowSize";
@@ -1,6 +1,5 @@
1
1
  declare const Accordion: {
2
- parts: string[];
3
- baseStyle: {
2
+ baseStyle?: {
4
3
  container: {
5
4
  border: string;
6
5
  width: string;
@@ -11,8 +10,16 @@ declare const Accordion: {
11
10
  };
12
11
  button: {
13
12
  borderWidth: string;
13
+ " > span ": {
14
+ display: string;
15
+ alignItems: string;
16
+ minHeight: string;
17
+ };
14
18
  color: string;
15
19
  fontWeight: string;
20
+ svg: {
21
+ marginStart: string;
22
+ };
16
23
  _dark: {
17
24
  bg: string;
18
25
  color: string;
@@ -30,5 +37,21 @@ declare const Accordion: {
30
37
  };
31
38
  };
32
39
  };
40
+ sizes?: {
41
+ [key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
42
+ keys: ("button" | "container" | "panel")[];
43
+ }>;
44
+ };
45
+ variants?: {
46
+ [key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
47
+ keys: ("button" | "container" | "panel")[];
48
+ }>;
49
+ };
50
+ defaultProps?: {
51
+ size?: string | number;
52
+ variant?: string | number;
53
+ colorScheme?: string;
54
+ };
55
+ parts: ("button" | "container" | "panel")[];
33
56
  };
34
57
  export default Accordion;
@@ -1,32 +1,32 @@
1
1
  declare const AlphabetFilter: {
2
- baseStyle: {
2
+ baseStyle?: {
3
3
  button: {
4
4
  minWidth: {
5
5
  base: string;
6
- md: string;
6
+ md: "auto";
7
7
  };
8
8
  height: {
9
9
  base: string;
10
- md: string;
10
+ md: "auto";
11
11
  };
12
12
  padding: string;
13
13
  margin: string;
14
14
  fontWeight: string;
15
15
  fontSize: {
16
- base: string;
17
- md: string;
16
+ base: "mobile.subtitle.subtitle1";
17
+ md: "desktop.subtitle.subtitle1";
18
18
  };
19
19
  lineHeight: string;
20
20
  _last: {
21
21
  fontSize: string;
22
22
  fontWeight: string;
23
23
  px: {
24
- base: string;
25
- md: string;
24
+ base: "s";
25
+ md: "xs";
26
26
  };
27
27
  py: {
28
28
  base: any;
29
- md: string;
29
+ md: "xxs";
30
30
  };
31
31
  whiteSpace: string;
32
32
  };
@@ -36,5 +36,21 @@ declare const AlphabetFilter: {
36
36
  };
37
37
  };
38
38
  };
39
+ sizes?: {
40
+ [key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
41
+ keys: "button"[];
42
+ }>;
43
+ };
44
+ variants?: {
45
+ [key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
46
+ keys: "button"[];
47
+ }>;
48
+ };
49
+ defaultProps?: {
50
+ size?: string | number;
51
+ variant?: string | number;
52
+ colorScheme?: string;
53
+ };
54
+ parts: "button"[];
39
55
  };
40
56
  export default AlphabetFilter;
@@ -1,5 +1,6 @@
1
1
  declare const AudioPlayer: {
2
- baseStyle: {
2
+ baseStyle?: {
3
+ base: {};
3
4
  invalid: {
4
5
  backgroundColor: string;
5
6
  border: string;
@@ -12,5 +13,21 @@ declare const AudioPlayer: {
12
13
  };
13
14
  };
14
15
  };
16
+ sizes?: {
17
+ [key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
18
+ keys: ("invalid" | "base")[];
19
+ }>;
20
+ };
21
+ variants?: {
22
+ [key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
23
+ keys: ("invalid" | "base")[];
24
+ }>;
25
+ };
26
+ defaultProps?: {
27
+ size?: string | number;
28
+ variant?: string | number;
29
+ colorScheme?: string;
30
+ };
31
+ parts: ("invalid" | "base")[];
15
32
  };
16
33
  export default AudioPlayer;
@@ -1,5 +1,5 @@
1
1
  declare const Breadcrumb: {
2
- baseStyle: {
2
+ baseStyle?: {
3
3
  bg: string;
4
4
  color: string;
5
5
  fontSize: string;
@@ -12,12 +12,12 @@ declare const Breadcrumb: {
12
12
  };
13
13
  ol: {
14
14
  alignItems: {
15
- base: string;
16
- md: string;
15
+ base: "center";
16
+ md: "unset";
17
17
  };
18
18
  display: {
19
- base: string;
20
- md: string;
19
+ base: "flex";
20
+ md: "block";
21
21
  };
22
22
  margin: string;
23
23
  maxWidth: string;
@@ -32,8 +32,8 @@ declare const Breadcrumb: {
32
32
  };
33
33
  "li:last-child": {
34
34
  fontWeight: {
35
- base: string;
36
- md: string;
35
+ base: "breadcrumbs.default";
36
+ md: "breadcrumbs.lastChild";
37
37
  };
38
38
  ".chakra-breadcrumb__link": {
39
39
  _hover: {
@@ -53,19 +53,19 @@ declare const Breadcrumb: {
53
53
  };
54
54
  "li:not(:last-child)": {
55
55
  display: {
56
- base: string;
57
- md: string;
56
+ base: "none";
57
+ md: "inline-block";
58
58
  };
59
59
  a: {
60
60
  marginEnd: {
61
- base: string;
62
- md: string;
61
+ base: "xs";
62
+ md: "0";
63
63
  };
64
64
  };
65
65
  ".icon": {
66
66
  display: {
67
- base: string;
68
- md: string;
67
+ base: "inline";
68
+ md: "none";
69
69
  };
70
70
  };
71
71
  "span:not(.breadcrumb-label)": {
@@ -77,13 +77,16 @@ declare const Breadcrumb: {
77
77
  display: string;
78
78
  span: {
79
79
  display: {
80
- base: string;
81
- md: string;
80
+ base: "none";
81
+ md: "inline";
82
82
  };
83
83
  };
84
84
  };
85
85
  };
86
- variants: {
86
+ sizes?: {
87
+ [key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
88
+ };
89
+ variants?: {
87
90
  blogs: {
88
91
  bg: string;
89
92
  color: string;
@@ -154,5 +157,10 @@ declare const Breadcrumb: {
154
157
  };
155
158
  };
156
159
  };
160
+ defaultProps?: {
161
+ size?: string | number;
162
+ variant?: "blogs" | "booksAndMore" | "brand" | "connect" | "education" | "locations" | "research" | "whatsOn";
163
+ colorScheme?: string;
164
+ };
157
165
  };
158
166
  export default Breadcrumb;
@@ -1,3 +1,38 @@
1
+ export declare const baseButtonStyle: {
2
+ alignItems: string;
3
+ borderRadius: string;
4
+ display: string;
5
+ cursor: string;
6
+ color: string;
7
+ fontWeight: string;
8
+ height: string;
9
+ justifyContent: string;
10
+ lineHeight: string;
11
+ minWidth: string;
12
+ textDecoration: string;
13
+ wordWrap: string;
14
+ svg: {
15
+ fill: string;
16
+ };
17
+ _hover: {
18
+ bg: string;
19
+ };
20
+ _visited: {
21
+ color: string;
22
+ };
23
+ _disabled: {
24
+ bg: string;
25
+ color: string;
26
+ opacity: string;
27
+ pointerEvents: string;
28
+ };
29
+ _dark: {
30
+ _disabled: {
31
+ bg: string;
32
+ color: string;
33
+ };
34
+ };
35
+ };
1
36
  export declare const buttonBaseStyle: {
2
37
  base: {
3
38
  alignItems: string;
@@ -6,8 +41,10 @@ export declare const buttonBaseStyle: {
6
41
  cursor: string;
7
42
  color: string;
8
43
  fontWeight: string;
44
+ height: string;
9
45
  justifyContent: string;
10
46
  lineHeight: string;
47
+ minWidth: string;
11
48
  textDecoration: string;
12
49
  wordWrap: string;
13
50
  svg: {
@@ -77,8 +114,10 @@ declare const Button: {
77
114
  cursor: string;
78
115
  color: string;
79
116
  fontWeight: string;
117
+ height: string;
80
118
  justifyContent: string;
81
119
  lineHeight: string;
120
+ minWidth: string;
82
121
  textDecoration: string;
83
122
  wordWrap: string;
84
123
  svg: {
@@ -1,11 +1,20 @@
1
1
  declare const ButtonGroup: {
2
- baseStyle: ({ buttonWidth }: {
3
- buttonWidth: any;
4
- }) => {
2
+ baseStyle?: ({ buttonWidth }: import("@chakra-ui/styled-system").StyleFunctionProps) => {
5
3
  width: string;
6
4
  button: {
7
5
  flexGrow: string;
8
6
  };
9
7
  };
8
+ sizes?: {
9
+ [key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
10
+ };
11
+ variants?: {
12
+ [key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
13
+ };
14
+ defaultProps?: {
15
+ size?: string | number;
16
+ variant?: string | number;
17
+ colorScheme?: string;
18
+ };
10
19
  };
11
20
  export default ButtonGroup;