@nypl/design-system-react-components 3.6.3 → 4.0.0-alpha-rc2
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.
- package/dist/design-system-react-components.cjs +61 -64
- package/dist/design-system-react-components.js +36164 -37998
- package/dist/filteringStyleGuide/activeFiltersList.png +0 -0
- package/dist/filteringStyleGuide/exampleColumn.png +0 -0
- package/dist/filteringStyleGuide/examplePopup.png +0 -0
- package/dist/filteringStyleGuide/exampleRow.png +0 -0
- package/dist/filteringStyleGuide/filterBar.png +0 -0
- package/dist/filteringStyleGuide/focusClearingFilters.gif +0 -0
- package/dist/filteringStyleGuide/focusKeywordSearch.gif +0 -0
- package/dist/filteringStyleGuide/focusLiveFiltering.gif +0 -0
- package/dist/filteringStyleGuide/focusPagination.gif +0 -0
- package/dist/filteringStyleGuide/focusSorting.gif +0 -0
- package/dist/filteringStyleGuide/fullPageExample.png +0 -0
- package/dist/filteringStyleGuide/keywordSearchField.png +0 -0
- package/dist/filteringStyleGuide/paginationMenu.png +0 -0
- package/dist/filteringStyleGuide/resultsList.png +0 -0
- package/dist/filteringStyleGuide/sortingMenu.png +0 -0
- package/dist/filteringStyleGuide/totalResultsHeading.png +0 -0
- package/dist/responsiveGrid/breakpointRangeDesktop.png +0 -0
- package/dist/responsiveGrid/breakpointRangeMobileLarge.png +0 -0
- package/dist/responsiveGrid/breakpointRangeMobileSmall.png +0 -0
- package/dist/responsiveGrid/breakpointRangeTabletLarge.png +0 -0
- package/dist/responsiveGrid/breakpointRangeTabletSmall.png +0 -0
- package/dist/responsiveGrid/cardGridDesktop4Cols.png +0 -0
- package/dist/responsiveGrid/cardGridLargeMobile1Col.png +0 -0
- package/dist/responsiveGrid/cardGridLargeMobile2Cols.png +0 -0
- package/dist/responsiveGrid/cardGridSmallMobile1Col.png +0 -0
- package/dist/responsiveGrid/cardGridSmallTablet1Col.png +0 -0
- package/dist/responsiveGrid/cardGridSmallTablet3Cols.png +0 -0
- package/dist/responsiveGrid/cardGridSmallTablet3ColsSidebar.png +0 -0
- package/dist/responsiveGrid/gridColumns.png +0 -0
- package/dist/responsiveGrid/gridGutters.png +0 -0
- package/dist/responsiveGrid/gridMargins.png +0 -0
- package/dist/responsiveGrid/gridPerceivedColumns1.png +0 -0
- package/dist/responsiveGrid/gridPerceivedColumns2.png +0 -0
- package/dist/responsiveGrid/gridPerceivedColumns3.png +0 -0
- package/dist/responsiveGrid/gridPerceivedColumns4.png +0 -0
- package/dist/src/components/Accordion/Accordion.d.ts +6 -8
- package/dist/src/components/AlphabetFilter/AlphabetFilter.d.ts +2 -4
- package/dist/src/components/AudioPlayer/AudioPlayer.d.ts +2 -4
- package/dist/src/components/Banner/Banner.d.ts +7 -13
- package/dist/src/components/Breadcrumbs/Breadcrumbs.d.ts +7 -9
- package/dist/src/components/Button/Button.d.ts +9 -14
- package/dist/src/components/ButtonGroup/ButtonGroup.d.ts +2 -4
- package/dist/src/components/Card/Card.d.ts +2 -4
- package/dist/src/components/Checkbox/Checkbox.d.ts +3 -10
- package/dist/src/components/CheckboxGroup/CheckboxGroup.d.ts +2 -4
- package/dist/src/components/ComponentWrapper/ComponentWrapper.d.ts +2 -5
- package/dist/src/components/DatePicker/DatePicker.d.ts +2 -4
- package/dist/src/components/FeaturedContent/FeaturedContent.d.ts +3 -5
- package/dist/src/components/FeedbackBox/FeedbackBox.d.ts +2 -4
- package/dist/src/components/Fieldset/Fieldset.d.ts +2 -4
- package/dist/src/components/FilterBarInline/FilterBarInline.d.ts +2 -4
- package/dist/src/components/FilterBarPopup/FilterBarPopup.d.ts +2 -4
- package/dist/src/components/Form/Form.d.ts +4 -12
- package/dist/src/components/Grid/SimpleGrid.d.ts +2 -4
- package/dist/src/components/Heading/Heading.d.ts +4 -6
- package/dist/src/components/HelperErrorText/HelperErrorText.d.ts +2 -16
- package/dist/src/components/Hero/Hero.d.ts +13 -17
- package/dist/src/components/HorizontalRule/HorizontalRule.d.ts +2 -4
- package/dist/src/components/Icons/Icon.d.ts +5 -8
- package/dist/src/components/Icons/IconSvgs.d.ts +0 -3
- package/dist/src/components/Icons/iconVariables.d.ts +3 -3
- package/dist/src/components/Image/Image.d.ts +2 -10
- package/dist/src/components/Label/Label.d.ts +3 -7
- package/dist/src/components/Link/Link.d.ts +10 -18
- package/dist/src/components/List/List.d.ts +10 -8
- package/dist/src/components/Logo/Logo.d.ts +2 -4
- package/dist/src/components/Menu/Menu.d.ts +2 -4
- package/dist/src/components/Modal/Modal.d.ts +7 -6
- package/dist/src/components/MultiSelect/MultiSelect.d.ts +2 -2
- package/dist/src/components/MultiSelectGroup/MultiSelectGroup.d.ts +2 -4
- package/dist/src/components/NewsletterSignup/NewsletterSignup.d.ts +5 -8
- package/dist/src/components/Notification/Notification.d.ts +5 -11
- package/dist/src/components/Pagination/Pagination.d.ts +2 -4
- package/dist/src/components/ProgressIndicator/ProgressIndicator.d.ts +2 -4
- package/dist/src/components/Radio/Radio.d.ts +3 -9
- package/dist/src/components/RadioGroup/RadioGroup.d.ts +2 -4
- package/dist/src/components/SearchBar/SearchBar.d.ts +3 -11
- package/dist/src/components/Select/Select.d.ts +6 -16
- package/dist/src/components/SkeletonLoader/SkeletonLoader.d.ts +2 -4
- package/dist/src/components/SkipNavigation/SkipNavigation.d.ts +2 -4
- package/dist/src/components/Slider/Slider.d.ts +3 -5
- package/dist/src/components/SocialMediaLinks/SocialMediaLinks.d.ts +4 -6
- package/dist/src/components/StatusBadge/StatusBadge.d.ts +5 -12
- package/dist/src/components/StructuredContent/StructuredContent.d.ts +2 -4
- package/dist/src/components/StyledList/StyledList.d.ts +3 -7
- package/dist/src/components/SubNav/SubNav.d.ts +4 -8
- package/dist/src/components/Table/Table.d.ts +2 -10
- package/dist/src/components/Tabs/Tabs.d.ts +2 -2
- package/dist/src/components/TagSet/TagSet.d.ts +3 -5
- package/dist/src/components/TagSet/TagSetExplore.d.ts +1 -1
- package/dist/src/components/TagSet/TagSetFilter.d.ts +1 -1
- package/dist/src/components/Template/Template.d.ts +38 -117
- package/dist/src/components/Text/Text.d.ts +2 -6
- package/dist/src/components/TextInput/TextInput.d.ts +9 -32
- package/dist/src/components/Toggle/Toggle.d.ts +3 -8
- package/dist/src/components/Tooltip/Tooltip.d.ts +2 -6
- package/dist/src/components/VideoPlayer/VideoPlayer.d.ts +2 -4
- package/dist/src/hooks/useMultiSelect.d.ts +5 -1
- package/dist/src/hooks/useNYPLBreakpoints.d.ts +6 -1
- package/dist/src/hooks/useResponsiveSpacing.d.ts +23 -0
- package/dist/src/index.d.ts +16 -17
- package/dist/src/theme/components/breadcrumb.d.ts +1 -1
- package/dist/src/theme/components/button.d.ts +1 -4
- package/dist/src/theme/components/heading.d.ts +1 -125
- package/dist/src/theme/components/hero.d.ts +11 -11
- package/dist/src/theme/components/link.d.ts +1 -40
- package/dist/src/theme/components/newsletterSignup.d.ts +3 -3
- package/dist/src/theme/components/notification.d.ts +3 -6
- package/dist/src/theme/components/notificationContent.d.ts +3 -3
- package/dist/src/theme/components/notificationHeading.d.ts +3 -3
- package/dist/src/theme/components/progressIndicator.d.ts +1 -2
- package/dist/src/theme/components/slider.d.ts +8 -4
- package/dist/src/theme/components/statusBadge.d.ts +1 -14
- package/dist/src/theme/components/structuredContent.d.ts +1 -5
- package/dist/src/theme/components/{customTable.d.ts → table.d.ts} +7 -13
- package/dist/src/theme/components/template.d.ts +49 -125
- package/dist/src/theme/components/text.d.ts +1 -9
- package/dist/src/theme/foundations/breakpoints.d.ts +21 -8
- package/dist/src/theme/sharedTypes.d.ts +4 -0
- package/dist/src/utils/utils.d.ts +8 -1
- package/dist/styles.css +1 -1
- package/dist/template/templateBottom.png +0 -0
- package/dist/template/templateBreakout.png +0 -0
- package/dist/template/templateFluidColumns1.png +0 -0
- package/dist/template/templateFluidColumns2.png +0 -0
- package/dist/template/templateFluidColumns3.png +0 -0
- package/dist/template/templateFluidColumns4.png +0 -0
- package/dist/template/templateFullPageLayout.png +0 -0
- package/dist/template/templateMain.png +0 -0
- package/dist/template/templateMainNarrow.png +0 -0
- package/dist/template/templateMainWide.png +0 -0
- package/dist/template/templateSidebarLeft.png +0 -0
- package/dist/template/templateSidebarNone.png +0 -0
- package/dist/template/templateSidebarRight.png +0 -0
- package/dist/template/templateTop.png +0 -0
- package/package.json +1 -1
- package/dist/src/components/Header/Header.d.ts +0 -13
- package/dist/src/components/Header/components/HeaderLogin.d.ts +0 -12
- package/dist/src/components/Header/components/HeaderLoginButton.d.ts +0 -10
- package/dist/src/components/Header/components/HeaderLowerNav.d.ts +0 -6
- package/dist/src/components/Header/components/HeaderMobileIconNav.d.ts +0 -6
- package/dist/src/components/Header/components/HeaderMobileNav.d.ts +0 -6
- package/dist/src/components/Header/components/HeaderMobileNavButton.d.ts +0 -6
- package/dist/src/components/Header/components/HeaderSearchButton.d.ts +0 -9
- package/dist/src/components/Header/components/HeaderSearchForm.d.ts +0 -10
- package/dist/src/components/Header/components/HeaderSitewideAlerts.d.ts +0 -7
- package/dist/src/components/Header/components/HeaderUpperNav.d.ts +0 -7
- package/dist/src/components/Header/context/headerContext.d.ts +0 -13
- package/dist/src/components/Header/utils/encoreCatalogLogOutTimer.d.ts +0 -4
- package/dist/src/components/Header/utils/headerUtils.d.ts +0 -70
- package/dist/src/theme/components/header.d.ts +0 -100
- package/dist/src/theme/components/headerLogin.d.ts +0 -333
- package/dist/src/theme/components/headerLoginButton.d.ts +0 -72
- package/dist/src/theme/components/headerLowerNav.d.ts +0 -78
- package/dist/src/theme/components/headerMobileIconNav.d.ts +0 -28
- package/dist/src/theme/components/headerMobileNav.d.ts +0 -92
- package/dist/src/theme/components/headerMobileNavButton.d.ts +0 -36
- package/dist/src/theme/components/headerSearchButton.d.ts +0 -85
- package/dist/src/theme/components/headerSearchForm.d.ts +0 -185
- package/dist/src/theme/components/headerSitewideAlerts.d.ts +0 -43
- package/dist/src/theme/components/headerUpperNav.d.ts +0 -60
package/dist/src/index.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
export { Box, Center, chakra, Circle, ColorModeScript, cookieStorageManager, cookieStorageManagerSSR, FocusLock, Flex, Grid, GridItem, HStack, localStorageManager, Spacer, Square, Stack, useColorMode, useColorModeValue, useStyleConfig, useMediaQuery, useMultiStyleConfig, VStack, } from "@chakra-ui/react";
|
|
2
2
|
export { default as DSProvider } from "./theme/provider";
|
|
3
3
|
export { default as Accordion } from "./components/Accordion/Accordion";
|
|
4
|
-
export type {
|
|
4
|
+
export type { AccordionVariants, AccordionDataProps, } from "./components/Accordion/Accordion";
|
|
5
5
|
export { default as AlphabetFilter } from "./components/AlphabetFilter/AlphabetFilter";
|
|
6
6
|
export type { AlphabetFilterProps } from "./components/AlphabetFilter/AlphabetFilter";
|
|
7
7
|
export { default as AudioPlayer } from "./components/AudioPlayer/AudioPlayer";
|
|
8
8
|
export type { AudioType, AudioPlayerProps, } from "./components/AudioPlayer/AudioPlayer";
|
|
9
9
|
export { default as Banner } from "./components/Banner/Banner";
|
|
10
|
-
export type {
|
|
10
|
+
export type { BannerVariants, BannerBgColors, BannerHighlightColors, BannerProps, } from "./components/Banner/Banner";
|
|
11
11
|
export { default as Breadcrumbs } from "./components/Breadcrumbs/Breadcrumbs";
|
|
12
|
-
export type {
|
|
12
|
+
export type { BreadcrumbsVariants, BreadcrumbProps, BreadcrumbsDataProps, } from "./components/Breadcrumbs/Breadcrumbs";
|
|
13
13
|
export { default as Button } from "./components/Button/Button";
|
|
14
|
-
export type { ButtonElementType, ButtonProps, ButtonSizes,
|
|
14
|
+
export type { ButtonElementType, ButtonProps, ButtonSizes, ButtonVariants, } from "./components/Button/Button";
|
|
15
15
|
export { default as ButtonGroup } from "./components/ButtonGroup/ButtonGroup";
|
|
16
16
|
export type { ButtonGroupProps } from "./components/ButtonGroup/ButtonGroup";
|
|
17
17
|
export { default as Card, CardActions, CardContent, CardHeading, } from "./components/Card/Card";
|
|
@@ -35,26 +35,25 @@ export { default as FilterBarPopup, useFilterBarPopup, } from "./components/Filt
|
|
|
35
35
|
export type { FilterBarPopupProps } from "./components/FilterBarPopup/FilterBarPopup";
|
|
36
36
|
export { default as Form, FormField, FormRow } from "./components/Form/Form";
|
|
37
37
|
export type { FormProps } from "./components/Form/Form";
|
|
38
|
-
export { default as Header } from "./components/Header/Header";
|
|
39
38
|
export { default as Heading } from "./components/Heading/Heading";
|
|
40
39
|
export type { HeadingLevels, HeadingProps, HeadingSizes, } from "./components/Heading/Heading";
|
|
41
40
|
export { default as HelperErrorText } from "./components/HelperErrorText/HelperErrorText";
|
|
42
41
|
export type { HelperErrorTextProps } from "./components/HelperErrorText/HelperErrorText";
|
|
43
42
|
export { default as Hero } from "./components/Hero/Hero";
|
|
44
|
-
export type { HeroProps,
|
|
43
|
+
export type { HeroProps, HeroVariants } from "./components/Hero/Hero";
|
|
45
44
|
export { default as HorizontalRule } from "./components/HorizontalRule/HorizontalRule";
|
|
46
45
|
export type { HorizontalRuleProps } from "./components/HorizontalRule/HorizontalRule";
|
|
47
46
|
export { default as Icon } from "./components/Icons/Icon";
|
|
48
|
-
export type { IconAlign, IconColors, IconNames, IconRotations,
|
|
47
|
+
export type { IconAlign, IconColors, IconNames, IconRotations, IconSizes, IconVariants, IconProps, } from "./components/Icons/Icon";
|
|
49
48
|
export { default as Image } from "./components/Image/Image";
|
|
50
49
|
export type { ComponentImageProps, ImageProps, ImageRatios, ImageSizes, ImageTypes, } from "./components/Image/Image";
|
|
51
50
|
export { default as Label } from "./components/Label/Label";
|
|
52
51
|
export type { LabelProps } from "./components/Label/Label";
|
|
53
52
|
export type { DimensionTypes, LayoutTypes, SectionTypes, } from "./helpers/types";
|
|
54
53
|
export { default as Link } from "./components/Link/Link";
|
|
55
|
-
export type { LinkProps,
|
|
54
|
+
export type { LinkProps, LinkVariants } from "./components/Link/Link";
|
|
56
55
|
export { default as List } from "./components/List/List";
|
|
57
|
-
export type { DescriptionProps, ListProps,
|
|
56
|
+
export type { DescriptionProps, ListProps, ListVariants, } from "./components/List/List";
|
|
58
57
|
export { default as Logo } from "./components/Logo/Logo";
|
|
59
58
|
export type { LogoNames, LogoProps, LogoSizes } from "./components/Logo/Logo";
|
|
60
59
|
export { default as MatchMedia } from "../src/__tests__/mediaMatchMock";
|
|
@@ -69,7 +68,7 @@ export type { MultiSelectGroupProps } from "./components/MultiSelectGroup/MultiS
|
|
|
69
68
|
export { default as NewsletterSignup } from "./components/NewsletterSignup/NewsletterSignup";
|
|
70
69
|
export type { HighlightColorTypes, NewsletterSignupProps, NewsletterSignupViewType, } from "./components/NewsletterSignup/NewsletterSignup";
|
|
71
70
|
export { default as Notification } from "./components/Notification/Notification";
|
|
72
|
-
export type { NotificationProps,
|
|
71
|
+
export type { NotificationProps, NotificationVariants, } from "./components/Notification/Notification";
|
|
73
72
|
export { default as Pagination } from "./components/Pagination/Pagination";
|
|
74
73
|
export type { PaginationProps } from "./components/Pagination/Pagination";
|
|
75
74
|
export { default as ProgressIndicator } from "./components/ProgressIndicator/ProgressIndicator";
|
|
@@ -81,7 +80,7 @@ export type { RadioGroupProps } from "./components/RadioGroup/RadioGroup";
|
|
|
81
80
|
export { default as SearchBar } from "./components/SearchBar/SearchBar";
|
|
82
81
|
export type { SearchBarProps } from "./components/SearchBar/SearchBar";
|
|
83
82
|
export { default as Select } from "./components/Select/Select";
|
|
84
|
-
export type { LabelPositions, SelectProps,
|
|
83
|
+
export type { LabelPositions, SelectProps, SelectVariants, } from "./components/Select/Select";
|
|
85
84
|
export { default as SimpleGrid } from "./components/Grid/SimpleGrid";
|
|
86
85
|
export type { GridGaps, SimpleGridProps } from "./components/Grid/SimpleGrid";
|
|
87
86
|
export { default as SkeletonLoader } from "./components/SkeletonLoader/SkeletonLoader";
|
|
@@ -93,22 +92,21 @@ export type { SliderProps } from "./components/Slider/Slider";
|
|
|
93
92
|
export { default as SocialMediaLinks } from "./components/SocialMediaLinks/SocialMediaLinks";
|
|
94
93
|
export type { SocialMediaLinkDataProps } from "./components/SocialMediaLinks/SocialMediaLinks";
|
|
95
94
|
export { default as StatusBadge } from "./components/StatusBadge/StatusBadge";
|
|
96
|
-
export type {
|
|
95
|
+
export type { StatusBadgeProps, StatusBadgeVariants, } from "./components/StatusBadge/StatusBadge";
|
|
97
96
|
export { default as StructuredContent } from "./components/StructuredContent/StructuredContent";
|
|
98
97
|
export type { StructuredContentImagePosition, StructuredContentProps, } from "./components/StructuredContent/StructuredContent";
|
|
99
98
|
export { default as StyledList } from "./components/StyledList/StyledList";
|
|
100
99
|
export type { StyledListProps, StyledListTextSizes, } from "./components/StyledList/StyledList";
|
|
101
100
|
export { default as SubNav, SubNavButton, SubNavLink, } from "./components/SubNav/SubNav";
|
|
102
101
|
export { default as Table } from "./components/Table/Table";
|
|
103
|
-
export type {
|
|
102
|
+
export type { TableProps } from "./components/Table/Table";
|
|
104
103
|
export { default as Tabs, TabList, Tab, TabPanels, TabPanel, } from "./components/Tabs/Tabs";
|
|
105
104
|
export type { TabsDataProps, TabsProps } from "./components/Tabs/Tabs";
|
|
106
105
|
export { default as TagSet } from "./components/TagSet/TagSet";
|
|
107
106
|
export type { TagSetProps, TagSetTypeProps } from "./components/TagSet/TagSet";
|
|
108
107
|
export type { TagSetExploreDataProps, TagSetExploreProps, } from "./components/TagSet/TagSetExplore";
|
|
109
108
|
export type { TagSetFilterDataProps, TagSetFilterProps, } from "./components/TagSet/TagSetFilter";
|
|
110
|
-
export {
|
|
111
|
-
export type { TemplateAppContainerProps, TemplateProps, TemplateContentProps, TemplateFooterProps, TemplateHeaderProps, TemplateSidebarProps, } from "./components/Template/Template";
|
|
109
|
+
export { Template, TemplateBreakout, TemplateTop, TemplateMain, TemplateMainNarrow, TemplateSidebar, TemplateBottom, } from "./components/Template/Template";
|
|
112
110
|
export { default as Text } from "./components/Text/Text";
|
|
113
111
|
export type { TextProps, TextSizes } from "./components/Text/Text";
|
|
114
112
|
export { default as TextInput } from "./components/TextInput/TextInput";
|
|
@@ -121,10 +119,11 @@ export { default as VideoPlayer } from "./components/VideoPlayer/VideoPlayer";
|
|
|
121
119
|
export type { VideoPlayerAspectRatios, VideoPlayerProps, VideoPlayerTypes, } from "./components/VideoPlayer/VideoPlayer";
|
|
122
120
|
export { default as useCarouselStyles } from "./hooks/useCarouselStyles";
|
|
123
121
|
export { default as useCloseDropDown } from "./hooks/useCloseDropDown";
|
|
122
|
+
export { default as useFormatNumber } from "./hooks/useFormatNumber";
|
|
124
123
|
export { default as useMultiSelect } from "./hooks/useMultiSelect";
|
|
125
124
|
export { default as useNYPLBreakpoints } from "./hooks/useNYPLBreakpoints";
|
|
126
125
|
export { default as useNYPLTheme } from "./hooks/useNYPLTheme";
|
|
127
|
-
export { default as
|
|
126
|
+
export { default as useResponsiveSpacing } from "./hooks/useResponsiveSpacing";
|
|
128
127
|
export { default as useScrollFadeStyles } from "./hooks/useScrollFadeStyles";
|
|
129
|
-
export { default as
|
|
128
|
+
export { default as useWindowSize } from "./hooks/useWindowSize";
|
|
130
129
|
export type { AutoCompleteValues } from "./utils/constantValues";
|
|
@@ -257,7 +257,7 @@ declare const Breadcrumb: {
|
|
|
257
257
|
};
|
|
258
258
|
defaultProps?: {
|
|
259
259
|
size?: string | number;
|
|
260
|
-
variant?: "blogs" | "
|
|
260
|
+
variant?: "blogs" | "research" | "whatsOn" | "connect" | "booksAndMore" | "brand" | "digitalCollections" | "education" | "locations";
|
|
261
261
|
colorScheme?: string;
|
|
262
262
|
};
|
|
263
263
|
};
|
|
@@ -181,9 +181,6 @@ declare const Button: {
|
|
|
181
181
|
text: ({ buttonSize }: any) => {
|
|
182
182
|
base: any;
|
|
183
183
|
};
|
|
184
|
-
link: ({ buttonSize }: any) => {
|
|
185
|
-
base: any;
|
|
186
|
-
};
|
|
187
184
|
pill: ({ buttonSize }: any) => {
|
|
188
185
|
base: any;
|
|
189
186
|
};
|
|
@@ -199,7 +196,7 @@ declare const Button: {
|
|
|
199
196
|
};
|
|
200
197
|
defaultProps?: {
|
|
201
198
|
size?: string | number;
|
|
202
|
-
variant?: "
|
|
199
|
+
variant?: "text" | "primary" | "secondary" | "pill" | "iconOnly" | "callout" | "noBrand";
|
|
203
200
|
colorScheme?: string;
|
|
204
201
|
};
|
|
205
202
|
parts: ("base" | "screenreaderOnly")[];
|
|
@@ -353,79 +353,6 @@ declare const Heading: {
|
|
|
353
353
|
width: string;
|
|
354
354
|
};
|
|
355
355
|
};
|
|
356
|
-
one: {
|
|
357
|
-
base: {
|
|
358
|
-
width: string;
|
|
359
|
-
a: {
|
|
360
|
-
textUnderlineOffset: string;
|
|
361
|
-
};
|
|
362
|
-
marginTop: string;
|
|
363
|
-
marginStart: string;
|
|
364
|
-
marginEnd: string;
|
|
365
|
-
fontSize: string;
|
|
366
|
-
fontWeight: string;
|
|
367
|
-
letterSpacing: string;
|
|
368
|
-
lineHeight: string;
|
|
369
|
-
};
|
|
370
|
-
};
|
|
371
|
-
two: {
|
|
372
|
-
base: {
|
|
373
|
-
width: string;
|
|
374
|
-
a: {
|
|
375
|
-
textUnderlineOffset: string;
|
|
376
|
-
};
|
|
377
|
-
marginTop: string;
|
|
378
|
-
marginStart: string;
|
|
379
|
-
marginEnd: string;
|
|
380
|
-
fontSize: string;
|
|
381
|
-
fontWeight: string;
|
|
382
|
-
lineHeight: string;
|
|
383
|
-
};
|
|
384
|
-
};
|
|
385
|
-
three: {
|
|
386
|
-
base: {
|
|
387
|
-
width: string;
|
|
388
|
-
marginTop: string;
|
|
389
|
-
marginStart: string;
|
|
390
|
-
marginEnd: string;
|
|
391
|
-
fontSize: string;
|
|
392
|
-
fontWeight: string;
|
|
393
|
-
lineHeight: string;
|
|
394
|
-
};
|
|
395
|
-
};
|
|
396
|
-
four: {
|
|
397
|
-
base: {
|
|
398
|
-
width: string;
|
|
399
|
-
marginTop: string;
|
|
400
|
-
marginStart: string;
|
|
401
|
-
marginEnd: string;
|
|
402
|
-
fontSize: string;
|
|
403
|
-
fontWeight: string;
|
|
404
|
-
lineHeight: string;
|
|
405
|
-
};
|
|
406
|
-
};
|
|
407
|
-
five: {
|
|
408
|
-
base: {
|
|
409
|
-
width: string;
|
|
410
|
-
marginTop: string;
|
|
411
|
-
marginStart: string;
|
|
412
|
-
marginEnd: string;
|
|
413
|
-
fontSize: string;
|
|
414
|
-
fontWeight: string;
|
|
415
|
-
lineHeight: string;
|
|
416
|
-
};
|
|
417
|
-
};
|
|
418
|
-
six: {
|
|
419
|
-
base: {
|
|
420
|
-
width: string;
|
|
421
|
-
marginTop: string;
|
|
422
|
-
marginStart: string;
|
|
423
|
-
marginEnd: string;
|
|
424
|
-
fontSize: string;
|
|
425
|
-
fontWeight: string;
|
|
426
|
-
lineHeight: string;
|
|
427
|
-
};
|
|
428
|
-
};
|
|
429
356
|
display1: {
|
|
430
357
|
base: {
|
|
431
358
|
fontSize: {
|
|
@@ -573,61 +500,10 @@ declare const Heading: {
|
|
|
573
500
|
width: string;
|
|
574
501
|
};
|
|
575
502
|
};
|
|
576
|
-
primary: {
|
|
577
|
-
base: {
|
|
578
|
-
width: string;
|
|
579
|
-
a: {
|
|
580
|
-
textUnderlineOffset: string;
|
|
581
|
-
};
|
|
582
|
-
marginTop: string;
|
|
583
|
-
marginStart: string;
|
|
584
|
-
marginEnd: string;
|
|
585
|
-
fontSize: string;
|
|
586
|
-
fontWeight: string;
|
|
587
|
-
letterSpacing: string;
|
|
588
|
-
lineHeight: string;
|
|
589
|
-
};
|
|
590
|
-
};
|
|
591
|
-
secondary: {
|
|
592
|
-
base: {
|
|
593
|
-
width: string;
|
|
594
|
-
a: {
|
|
595
|
-
textUnderlineOffset: string;
|
|
596
|
-
};
|
|
597
|
-
marginTop: string;
|
|
598
|
-
marginStart: string;
|
|
599
|
-
marginEnd: string;
|
|
600
|
-
fontSize: string;
|
|
601
|
-
fontWeight: string;
|
|
602
|
-
lineHeight: string;
|
|
603
|
-
};
|
|
604
|
-
};
|
|
605
|
-
tertiary: {
|
|
606
|
-
base: {
|
|
607
|
-
width: string;
|
|
608
|
-
marginTop: string;
|
|
609
|
-
marginStart: string;
|
|
610
|
-
marginEnd: string;
|
|
611
|
-
fontSize: string;
|
|
612
|
-
fontWeight: string;
|
|
613
|
-
lineHeight: string;
|
|
614
|
-
};
|
|
615
|
-
};
|
|
616
|
-
callout: {
|
|
617
|
-
base: {
|
|
618
|
-
width: string;
|
|
619
|
-
marginTop: string;
|
|
620
|
-
marginStart: string;
|
|
621
|
-
marginEnd: string;
|
|
622
|
-
fontSize: string;
|
|
623
|
-
fontWeight: string;
|
|
624
|
-
lineHeight: string;
|
|
625
|
-
};
|
|
626
|
-
};
|
|
627
503
|
};
|
|
628
504
|
defaultProps?: {
|
|
629
505
|
size?: string | number;
|
|
630
|
-
variant?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "display1" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "heading7" | "heading8"
|
|
506
|
+
variant?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "display1" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "heading7" | "heading8";
|
|
631
507
|
colorScheme?: string;
|
|
632
508
|
};
|
|
633
509
|
parts: ("base" | "headingWrapper")[];
|
|
@@ -14,23 +14,23 @@ declare const Hero: {
|
|
|
14
14
|
backgroundSize: string;
|
|
15
15
|
backgroundPosition: string;
|
|
16
16
|
display: string;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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
|
-
|
|
29
|
-
base:
|
|
30
|
-
md:
|
|
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" | "
|
|
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?: "
|
|
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:
|
|
16
|
+
md: string;
|
|
17
17
|
};
|
|
18
18
|
borderTopColor: {
|
|
19
|
-
base:
|
|
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:
|
|
38
|
+
md: `dark.${string}`;
|
|
39
39
|
};
|
|
40
40
|
};
|
|
41
41
|
padding: {
|
|
@@ -1,19 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NotificationVariants } 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
|
+
variant: NotificationVariants;
|
|
8
7
|
showIcon: boolean;
|
|
9
8
|
}
|
|
10
9
|
declare const Notification: {
|
|
11
|
-
baseStyle?: ({ isCentered,
|
|
10
|
+
baseStyle?: ({ isCentered, notificationHeading, variant }: 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,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NotificationVariants } from "../../components/Notification/Notification";
|
|
2
2
|
import { StyleFunctionProps } from "@chakra-ui/system";
|
|
3
3
|
interface NotificationContentBaseStyle extends StyleFunctionProps {
|
|
4
4
|
alignText: boolean;
|
|
5
5
|
isCentered: boolean;
|
|
6
6
|
notificationHeading: string;
|
|
7
|
-
|
|
7
|
+
variant: NotificationVariants;
|
|
8
8
|
showIcon: boolean;
|
|
9
9
|
}
|
|
10
10
|
declare const NotificationContent: {
|
|
11
|
-
baseStyle?: ({ isCentered, notificationHeading,
|
|
11
|
+
baseStyle?: ({ isCentered, notificationHeading, variant, showIcon, }: NotificationContentBaseStyle) => {
|
|
12
12
|
display: string;
|
|
13
13
|
justifyContent: string;
|
|
14
14
|
content: {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NotificationVariants } from "../../components/Notification/Notification";
|
|
2
2
|
import { StyleFunctionProps } from "@chakra-ui/system";
|
|
3
3
|
interface NotificationHeadingBaseStyle extends StyleFunctionProps {
|
|
4
4
|
icon: boolean;
|
|
5
5
|
isCentered: boolean;
|
|
6
|
-
|
|
6
|
+
variant: NotificationVariants;
|
|
7
7
|
}
|
|
8
8
|
declare const NotificationHeading: {
|
|
9
|
-
baseStyle?: ({ icon, isCentered,
|
|
9
|
+
baseStyle?: ({ icon, isCentered, variant }: NotificationHeadingBaseStyle) => {
|
|
10
10
|
display: string;
|
|
11
11
|
flexDirection: string;
|
|
12
12
|
m: 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?: ({
|
|
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?: ({
|
|
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" | "
|
|
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" | "
|
|
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" | "
|
|
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?: "
|
|
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;
|
|
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,6 @@ declare const StructuredContent: {
|
|
|
470
467
|
base: string;
|
|
471
468
|
md: string;
|
|
472
469
|
};
|
|
473
|
-
fontSize: string;
|
|
474
470
|
gap: string;
|
|
475
471
|
letterSpacing: string;
|
|
476
472
|
lineHeight: number;
|