@nypl/design-system-react-components 2.2.0-react-chakra-rc → 3.0.0-react-chakra-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.
- package/dist/design-system-react-components.cjs +58 -58
- package/dist/design-system-react-components.js +17460 -16512
- package/dist/src/components/Accordion/Accordion.d.ts +2 -1
- package/dist/src/components/AlphabetFilter/AlphabetFilter.d.ts +6 -3
- package/dist/src/components/AudioPlayer/AudioPlayer.d.ts +6 -3
- package/dist/src/components/Breadcrumbs/Breadcrumbs.d.ts +2 -1
- package/dist/src/components/Button/Button.d.ts +23 -1
- package/dist/src/components/ButtonGroup/ButtonGroup.d.ts +15 -1
- package/dist/src/components/Card/Card.d.ts +2 -1
- package/dist/src/components/Checkbox/Checkbox.d.ts +2 -1
- package/dist/src/components/CheckboxGroup/CheckboxGroup.d.ts +2 -1
- package/dist/src/components/ComponentWrapper/ComponentWrapper.d.ts +4 -2
- package/dist/src/components/DatePicker/DatePicker.d.ts +14 -6
- package/dist/src/components/FeaturedContent/FeaturedContent.d.ts +2 -1
- package/dist/src/components/FeedbackBox/FeedbackBox.d.ts +48 -2
- package/dist/src/components/Fieldset/Fieldset.d.ts +17 -1
- package/dist/src/components/Form/Form.d.ts +4 -3
- package/dist/src/components/Grid/SimpleGrid.d.ts +2 -1
- package/dist/src/components/Heading/Heading.d.ts +2 -1
- package/dist/src/components/HelperErrorText/HelperErrorText.d.ts +26 -1
- package/dist/src/components/Hero/Hero.d.ts +6 -1
- package/dist/src/components/HorizontalRule/HorizontalRule.d.ts +2 -1
- package/dist/src/components/Icons/Icon.d.ts +2 -1
- package/dist/src/components/Icons/IconSvgs.d.ts +24 -0
- package/dist/src/components/Icons/iconVariables.d.ts +2 -2
- package/dist/src/components/Image/Image.d.ts +9 -2
- package/dist/src/components/Label/Label.d.ts +19 -1
- package/dist/src/components/Link/Link.d.ts +2 -1
- package/dist/src/components/List/List.d.ts +6 -4
- package/dist/src/components/Logo/Logo.d.ts +5 -4
- package/dist/src/components/Logo/logoVariables.d.ts +0 -1
- package/dist/src/components/Menu/Menu.d.ts +58 -0
- package/dist/src/components/Modal/Modal.d.ts +13 -4
- package/dist/src/components/NewsletterSignup/NewsletterSignup.d.ts +42 -1
- package/dist/src/components/Notification/Notification.d.ts +11 -5
- package/dist/src/components/Pagination/Pagination.d.ts +2 -1
- package/dist/src/components/ProgressIndicator/ProgressIndicator.d.ts +2 -1
- package/dist/src/components/Radio/Radio.d.ts +2 -1
- package/dist/src/components/RadioGroup/RadioGroup.d.ts +2 -1
- package/dist/src/components/SearchBar/SearchBar.d.ts +4 -2
- package/dist/src/components/Select/Select.d.ts +2 -1
- package/dist/src/components/SkeletonLoader/SkeletonLoader.d.ts +2 -1
- package/dist/src/components/SkipNavigation/SkipNavigation.d.ts +10 -1
- package/dist/src/components/Slider/Slider.d.ts +2 -1
- package/dist/src/components/SocialMediaLinks/SocialMediaLinks.d.ts +2 -1
- package/dist/src/components/StatusBadge/StatusBadge.d.ts +15 -6
- package/dist/src/components/StructuredContent/StructuredContent.d.ts +7 -4
- package/dist/src/components/StyleGuide/ColorCard.d.ts +2 -1
- package/dist/src/components/StyledList/StyledList.d.ts +2 -1
- package/dist/src/components/Table/Table.d.ts +2 -1
- package/dist/src/components/Tabs/Tabs.d.ts +2 -2
- package/dist/src/components/TagSet/TagSet.d.ts +2 -1
- 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 +3 -2
- package/dist/src/components/Text/Text.d.ts +2 -1
- package/dist/src/components/TextInput/TextInput.d.ts +2 -1
- package/dist/src/components/Toggle/Toggle.d.ts +2 -1
- package/dist/src/components/Tooltip/Tooltip.d.ts +2 -1
- package/dist/src/components/VideoPlayer/VideoPlayer.d.ts +6 -3
- package/dist/src/helpers/types.d.ts +2 -0
- package/dist/src/hooks/useDSHeading.d.ts +16 -0
- package/dist/src/hooks/useScrollTabIntoView.d.ts +9 -0
- package/dist/src/hooks/useStateWithDependencies.d.ts +4 -2
- package/dist/src/index.d.ts +3 -1
- package/dist/src/theme/components/accordion.d.ts +22 -2
- package/dist/src/theme/components/alphabetFilter.d.ts +24 -8
- package/dist/src/theme/components/audioPlayer.d.ts +18 -1
- package/dist/src/theme/components/breadcrumb.d.ts +24 -16
- package/dist/src/theme/components/button.d.ts +39 -0
- package/dist/src/theme/components/buttonGroup.d.ts +12 -3
- package/dist/src/theme/components/card.d.ts +104 -235
- package/dist/src/theme/components/checkbox.d.ts +44 -34
- package/dist/src/theme/components/checkboxGroup.d.ts +18 -4
- package/dist/src/theme/components/datePicker.d.ts +17 -6
- package/dist/src/theme/components/featuredContent.d.ts +75 -36
- package/dist/src/theme/components/feedbackBox.d.ts +28 -9
- package/dist/src/theme/components/fieldset.d.ts +14 -2
- package/dist/src/theme/components/global.d.ts +1 -0
- package/dist/src/theme/components/heading.d.ts +596 -249
- package/dist/src/theme/components/helperErrorText.d.ts +19 -3
- package/dist/src/theme/components/hero.d.ts +198 -176
- package/dist/src/theme/components/horizontalRule.d.ts +14 -2
- package/dist/src/theme/components/icon.d.ts +13 -4
- package/dist/src/theme/components/image.d.ts +326 -223
- package/dist/src/theme/components/label.d.ts +14 -2
- package/dist/src/theme/components/link.d.ts +40 -197
- package/dist/src/theme/components/list.d.ts +130 -101
- package/dist/src/theme/components/logo.d.ts +17 -5
- package/dist/src/theme/components/menu.d.ts +169 -0
- package/dist/src/theme/components/modal.d.ts +19 -4
- package/dist/src/theme/components/newsletterSignup.d.ts +37 -29
- package/dist/src/theme/components/notification.d.ts +51 -116
- package/dist/src/theme/components/notificationContent.d.ts +58 -0
- package/dist/src/theme/components/notificationHeading.d.ts +57 -0
- package/dist/src/theme/components/pagination.d.ts +17 -2
- package/dist/src/theme/components/progressIndicator.d.ts +21 -5
- package/dist/src/theme/components/radio.d.ts +25 -6
- package/dist/src/theme/components/radioGroup.d.ts +18 -4
- package/dist/src/theme/components/searchBar.d.ts +24 -6
- package/dist/src/theme/components/select.d.ts +21 -13
- package/dist/src/theme/components/skeletonLoader.d.ts +34 -12
- package/dist/src/theme/components/skipNavigation.d.ts +12 -1
- package/dist/src/theme/components/slider.d.ts +49 -33
- package/dist/src/theme/components/socialmedialinks.d.ts +22 -16
- package/dist/src/theme/components/statusBadge.d.ts +66 -10
- package/dist/src/theme/components/structuredContent.d.ts +233 -102
- package/dist/src/theme/components/styledList.d.ts +12 -6
- package/dist/src/theme/components/tabs.d.ts +27 -13
- package/dist/src/theme/components/tagSet.d.ts +83 -42
- package/dist/src/theme/components/template.d.ts +76 -25
- package/dist/src/theme/components/text.d.ts +27 -12
- package/dist/src/theme/components/textInput.d.ts +52 -44
- package/dist/src/theme/components/toggle.d.ts +33 -11
- package/dist/src/theme/components/tooltip.d.ts +13 -1
- package/dist/src/theme/components/videoPlayer.d.ts +32 -21
- package/dist/src/theme/foundations/global.d.ts +6 -0
- package/dist/styles.css +1 -1
- package/package.json +6 -9
|
@@ -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.
|
|
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
|
-
|
|
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.
|
|
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,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
|
|
5
|
-
*
|
|
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;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -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,6 +40,8 @@ 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";
|
|
44
46
|
export { default as NewsletterSignup } from "./components/NewsletterSignup/NewsletterSignup";
|
|
45
47
|
export type { NewsletterSignupViewType } from "./components/NewsletterSignup/NewsletterSignup";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
declare const Accordion: {
|
|
2
|
-
|
|
3
|
-
baseStyle: {
|
|
2
|
+
baseStyle?: {
|
|
4
3
|
container: {
|
|
5
4
|
border: string;
|
|
6
5
|
width: string;
|
|
@@ -11,6 +10,11 @@ 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;
|
|
16
20
|
_dark: {
|
|
@@ -30,5 +34,21 @@ declare const Accordion: {
|
|
|
30
34
|
};
|
|
31
35
|
};
|
|
32
36
|
};
|
|
37
|
+
sizes?: {
|
|
38
|
+
[key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
|
|
39
|
+
keys: ("button" | "container" | "panel")[];
|
|
40
|
+
}>;
|
|
41
|
+
};
|
|
42
|
+
variants?: {
|
|
43
|
+
[key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
|
|
44
|
+
keys: ("button" | "container" | "panel")[];
|
|
45
|
+
}>;
|
|
46
|
+
};
|
|
47
|
+
defaultProps?: {
|
|
48
|
+
size?: string | number;
|
|
49
|
+
variant?: string | number;
|
|
50
|
+
colorScheme?: string;
|
|
51
|
+
};
|
|
52
|
+
parts: ("button" | "container" | "panel")[];
|
|
33
53
|
};
|
|
34
54
|
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:
|
|
6
|
+
md: "auto";
|
|
7
7
|
};
|
|
8
8
|
height: {
|
|
9
9
|
base: string;
|
|
10
|
-
md:
|
|
10
|
+
md: "auto";
|
|
11
11
|
};
|
|
12
12
|
padding: string;
|
|
13
13
|
margin: string;
|
|
14
14
|
fontWeight: string;
|
|
15
15
|
fontSize: {
|
|
16
|
-
base:
|
|
17
|
-
md:
|
|
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:
|
|
25
|
-
md:
|
|
24
|
+
base: "s";
|
|
25
|
+
md: "xs";
|
|
26
26
|
};
|
|
27
27
|
py: {
|
|
28
28
|
base: any;
|
|
29
|
-
md:
|
|
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:
|
|
16
|
-
md:
|
|
15
|
+
base: "center";
|
|
16
|
+
md: "unset";
|
|
17
17
|
};
|
|
18
18
|
display: {
|
|
19
|
-
base:
|
|
20
|
-
md:
|
|
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:
|
|
36
|
-
md:
|
|
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:
|
|
57
|
-
md:
|
|
56
|
+
base: "none";
|
|
57
|
+
md: "inline-block";
|
|
58
58
|
};
|
|
59
59
|
a: {
|
|
60
60
|
marginEnd: {
|
|
61
|
-
base:
|
|
62
|
-
md:
|
|
61
|
+
base: "xs";
|
|
62
|
+
md: "0";
|
|
63
63
|
};
|
|
64
64
|
};
|
|
65
65
|
".icon": {
|
|
66
66
|
display: {
|
|
67
|
-
base:
|
|
68
|
-
md:
|
|
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:
|
|
81
|
-
md:
|
|
80
|
+
base: "none";
|
|
81
|
+
md: "inline";
|
|
82
82
|
};
|
|
83
83
|
};
|
|
84
84
|
};
|
|
85
85
|
};
|
|
86
|
-
|
|
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
|
|
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;
|