@nypl/design-system-react-components 2.2.0-react-chakra-rc-2 → 3.0.0-react-chakra-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 +59 -59
- package/dist/design-system-react-components.js +18230 -17049
- package/dist/src/components/Accordion/Accordion.d.ts +9 -2
- 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/MultiSelect/MultiSelect.d.ts +55 -0
- package/dist/src/components/MultiSelect/MultiSelectItemsCountButton.d.ts +29 -0
- 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/useMultiSelect.d.ts +18 -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 +6 -1
- package/dist/src/theme/components/accordion.d.ts +25 -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/multiSelect.d.ts +106 -12
- package/dist/src/theme/components/multiSelectItemsCountButton.d.ts +52 -0
- 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 +4 -7
- package/dist/src/theme/components/multiSelectMenuButton.d.ts +0 -99
|
@@ -1,28 +1,59 @@
|
|
|
1
|
-
|
|
1
|
+
import { StyleFunctionProps } from "@chakra-ui/system";
|
|
2
|
+
interface FeaturedContentBaseStyleProps extends StyleFunctionProps {
|
|
2
3
|
imagePosition: string;
|
|
3
4
|
imageWidth: string;
|
|
4
5
|
isFullWidth: boolean;
|
|
5
6
|
}
|
|
6
7
|
declare const FeaturedContent: {
|
|
7
|
-
baseStyle
|
|
8
|
-
|
|
9
|
-
_dark: {
|
|
8
|
+
baseStyle?: ({ imagePosition, imageWidth, isFullWidth, }: FeaturedContentBaseStyleProps) => {
|
|
9
|
+
base: {
|
|
10
10
|
bgColor: string;
|
|
11
|
+
left: string;
|
|
12
|
+
marginLeft: string;
|
|
13
|
+
marginRight: string;
|
|
14
|
+
position: string;
|
|
15
|
+
right: string;
|
|
16
|
+
width: string;
|
|
17
|
+
_dark: {
|
|
18
|
+
bgColor: string;
|
|
19
|
+
};
|
|
20
|
+
img: {
|
|
21
|
+
clip: string;
|
|
22
|
+
height: {
|
|
23
|
+
base: string;
|
|
24
|
+
md: string;
|
|
25
|
+
};
|
|
26
|
+
overflow: string;
|
|
27
|
+
position: {
|
|
28
|
+
base: string;
|
|
29
|
+
md: string;
|
|
30
|
+
};
|
|
31
|
+
width: {
|
|
32
|
+
base: string;
|
|
33
|
+
md: string;
|
|
34
|
+
};
|
|
35
|
+
wordWrap: string;
|
|
36
|
+
};
|
|
11
37
|
};
|
|
12
|
-
width: string;
|
|
13
|
-
left: string;
|
|
14
|
-
right: string;
|
|
15
|
-
position: string;
|
|
16
|
-
marginLeft: string;
|
|
17
|
-
marginRight: string;
|
|
18
38
|
wrapper: {
|
|
19
|
-
minHeight: string;
|
|
20
|
-
maxWidth: string;
|
|
21
|
-
display: string;
|
|
22
39
|
alignItems: string;
|
|
40
|
+
display: string;
|
|
23
41
|
flexDirection: {
|
|
24
|
-
sm:
|
|
25
|
-
md:
|
|
42
|
+
sm: "column-reverse";
|
|
43
|
+
md: "row-reverse";
|
|
44
|
+
} | {
|
|
45
|
+
sm: "column";
|
|
46
|
+
md: "row";
|
|
47
|
+
};
|
|
48
|
+
maxWidth: string;
|
|
49
|
+
minHeight: string;
|
|
50
|
+
paddingLeft: {
|
|
51
|
+
base: any;
|
|
52
|
+
md: "s";
|
|
53
|
+
};
|
|
54
|
+
paddingRight: {
|
|
55
|
+
base: any;
|
|
56
|
+
md: "s";
|
|
26
57
|
};
|
|
27
58
|
marginY: string;
|
|
28
59
|
marginX: string;
|
|
@@ -31,40 +62,48 @@ declare const FeaturedContent: {
|
|
|
31
62
|
};
|
|
32
63
|
text: {
|
|
33
64
|
display: string;
|
|
34
|
-
padding: string;
|
|
35
65
|
flex: number;
|
|
36
66
|
flexDirection: string;
|
|
37
67
|
justifyContent: string;
|
|
68
|
+
padding: string;
|
|
69
|
+
/** The `paddingLeft` attribute is used to adjust the spacing around the
|
|
70
|
+
* text when the image is positioned at the end. For aesthetic reasons,
|
|
71
|
+
* we opted to not adjust the spacing around the text when the image is
|
|
72
|
+
* positioned at the start.
|
|
73
|
+
* */
|
|
74
|
+
paddingStart: {
|
|
75
|
+
base: any;
|
|
76
|
+
md: number;
|
|
77
|
+
};
|
|
38
78
|
};
|
|
39
79
|
imgWrapper: {
|
|
40
80
|
backgroundPosition: string;
|
|
41
81
|
backgroundSize: string;
|
|
42
82
|
height: {
|
|
43
|
-
sm:
|
|
44
|
-
md:
|
|
45
|
-
};
|
|
46
|
-
width: {
|
|
47
|
-
sm: string;
|
|
48
|
-
md: string;
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
img: {
|
|
52
|
-
clip: string;
|
|
53
|
-
height: {
|
|
54
|
-
base: string;
|
|
55
|
-
md: string;
|
|
56
|
-
};
|
|
57
|
-
overflow: string;
|
|
58
|
-
position: {
|
|
59
|
-
base: string;
|
|
60
|
-
md: string;
|
|
83
|
+
sm: "320px";
|
|
84
|
+
md: "auto";
|
|
61
85
|
};
|
|
62
86
|
width: {
|
|
63
|
-
|
|
87
|
+
sm: "100%";
|
|
64
88
|
md: string;
|
|
65
89
|
};
|
|
66
|
-
wordWrap: string;
|
|
67
90
|
};
|
|
68
91
|
};
|
|
92
|
+
sizes?: {
|
|
93
|
+
[key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
|
|
94
|
+
keys: ("text" | "imgWrapper" | "wrapper")[];
|
|
95
|
+
}>;
|
|
96
|
+
};
|
|
97
|
+
variants?: {
|
|
98
|
+
[key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
|
|
99
|
+
keys: ("text" | "imgWrapper" | "wrapper")[];
|
|
100
|
+
}>;
|
|
101
|
+
};
|
|
102
|
+
defaultProps?: {
|
|
103
|
+
size?: string | number;
|
|
104
|
+
variant?: string | number;
|
|
105
|
+
colorScheme?: string;
|
|
106
|
+
};
|
|
107
|
+
parts: ("text" | "imgWrapper" | "wrapper")[];
|
|
69
108
|
};
|
|
70
109
|
export default FeaturedContent;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
declare const FeedbackBox: {
|
|
2
|
-
|
|
3
|
-
baseStyle: {
|
|
2
|
+
baseStyle?: {
|
|
4
3
|
closeButton: {
|
|
5
4
|
/** This is overriding the default min-height value in order to keep the
|
|
6
5
|
* button spacing symmetrical. */
|
|
7
6
|
minHeight: string;
|
|
7
|
+
minWidth: string;
|
|
8
8
|
right: string;
|
|
9
9
|
p: string;
|
|
10
10
|
position: string;
|
|
@@ -35,11 +35,11 @@ declare const FeedbackBox: {
|
|
|
35
35
|
drawerBody: {
|
|
36
36
|
borderLeft: {
|
|
37
37
|
base: any;
|
|
38
|
-
md:
|
|
38
|
+
md: "1px solid";
|
|
39
39
|
};
|
|
40
40
|
borderColor: {
|
|
41
41
|
base: any;
|
|
42
|
-
md:
|
|
42
|
+
md: "ui.border.default";
|
|
43
43
|
};
|
|
44
44
|
paddingTop: string;
|
|
45
45
|
paddingBottom: string;
|
|
@@ -47,15 +47,15 @@ declare const FeedbackBox: {
|
|
|
47
47
|
background: string;
|
|
48
48
|
borderColor: {
|
|
49
49
|
base: any;
|
|
50
|
-
md:
|
|
50
|
+
md: "dark.ui.border.default";
|
|
51
51
|
};
|
|
52
52
|
};
|
|
53
53
|
};
|
|
54
54
|
drawerContent: {
|
|
55
55
|
marginStart: string;
|
|
56
56
|
width: {
|
|
57
|
-
base:
|
|
58
|
-
md:
|
|
57
|
+
base: "100%";
|
|
58
|
+
md: "375px";
|
|
59
59
|
};
|
|
60
60
|
aside: {
|
|
61
61
|
color: string;
|
|
@@ -70,7 +70,7 @@ declare const FeedbackBox: {
|
|
|
70
70
|
borderBottomWidth: string;
|
|
71
71
|
borderLeftWidth: {
|
|
72
72
|
base: any;
|
|
73
|
-
md:
|
|
73
|
+
md: "1px";
|
|
74
74
|
};
|
|
75
75
|
borderTopWidth: string;
|
|
76
76
|
color: string;
|
|
@@ -80,7 +80,7 @@ declare const FeedbackBox: {
|
|
|
80
80
|
paddingTop: string;
|
|
81
81
|
paddingBottom: string;
|
|
82
82
|
p: {
|
|
83
|
-
marginBottom:
|
|
83
|
+
marginBottom: "0";
|
|
84
84
|
};
|
|
85
85
|
_dark: {
|
|
86
86
|
background: string;
|
|
@@ -94,7 +94,26 @@ declare const FeedbackBox: {
|
|
|
94
94
|
bottom: string;
|
|
95
95
|
right: string;
|
|
96
96
|
zIndex: string;
|
|
97
|
+
_focus: {
|
|
98
|
+
boxShadow: string;
|
|
99
|
+
};
|
|
97
100
|
};
|
|
98
101
|
};
|
|
102
|
+
sizes?: {
|
|
103
|
+
[key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
|
|
104
|
+
keys: ("closeButton" | "drawerBody" | "drawerContent" | "drawerHeader" | "openButton")[];
|
|
105
|
+
}>;
|
|
106
|
+
};
|
|
107
|
+
variants?: {
|
|
108
|
+
[key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
|
|
109
|
+
keys: ("closeButton" | "drawerBody" | "drawerContent" | "drawerHeader" | "openButton")[];
|
|
110
|
+
}>;
|
|
111
|
+
};
|
|
112
|
+
defaultProps?: {
|
|
113
|
+
size?: string | number;
|
|
114
|
+
variant?: string | number;
|
|
115
|
+
colorScheme?: string;
|
|
116
|
+
};
|
|
117
|
+
parts: ("closeButton" | "drawerBody" | "drawerContent" | "drawerHeader" | "openButton")[];
|
|
99
118
|
};
|
|
100
119
|
export default FeedbackBox;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import { StyleFunctionProps } from "@chakra-ui/react";
|
|
2
|
+
interface FieldSetProps extends StyleFunctionProps {
|
|
2
3
|
isLegendHidden?: boolean;
|
|
3
4
|
}
|
|
4
5
|
declare const Fieldset: {
|
|
5
|
-
baseStyle
|
|
6
|
+
baseStyle?: (props: FieldSetProps) => {
|
|
6
7
|
border: number;
|
|
7
8
|
padding: number;
|
|
8
9
|
legend: {
|
|
@@ -20,5 +21,16 @@ declare const Fieldset: {
|
|
|
20
21
|
};
|
|
21
22
|
};
|
|
22
23
|
};
|
|
24
|
+
sizes?: {
|
|
25
|
+
[key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
|
|
26
|
+
};
|
|
27
|
+
variants?: {
|
|
28
|
+
[key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
|
|
29
|
+
};
|
|
30
|
+
defaultProps?: {
|
|
31
|
+
size?: string | number;
|
|
32
|
+
variant?: string | number;
|
|
33
|
+
colorScheme?: string;
|
|
34
|
+
};
|
|
23
35
|
};
|
|
24
36
|
export default Fieldset;
|