@nypl/design-system-react-components 3.0.0 → 3.0.1
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 +45 -45
- package/dist/design-system-react-components.js +3578 -3553
- package/dist/src/components/Icons/IconSvgs.d.ts +3 -0
- package/dist/src/components/Icons/iconVariables.d.ts +1 -1
- package/dist/src/hooks/useDSHeading.d.ts +3 -1
- package/dist/src/theme/components/button.d.ts +1 -1
- package/dist/src/theme/components/heading.d.ts +1 -1
- package/dist/src/theme/components/modal.d.ts +0 -4
- package/dist/src/theme/components/socialmedialinks.d.ts +36 -19
- package/package.json +1 -1
|
@@ -99,6 +99,9 @@ declare const _default: {
|
|
|
99
99
|
download: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
100
100
|
title?: string;
|
|
101
101
|
}>;
|
|
102
|
+
editorMode: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
103
|
+
title?: string;
|
|
104
|
+
}>;
|
|
102
105
|
errorFilled: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
103
106
|
title?: string;
|
|
104
107
|
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const iconAlignArray: readonly ["left", "right", "none"];
|
|
2
2
|
export declare const iconColorsArray: readonly ["transparent", "ui.black", "ui.white", "ui.disabled.primary", "ui.disabled.secondary", "ui.error.primary", "ui.error.secondary", "ui.focus", "ui.link.primary", "ui.link.primary-05", "ui.link.primary-10", "ui.link.secondary", "ui.link.tertiary", "ui.status.primary", "ui.status.secondary", "ui.success.primary", "ui.success.secondary", "ui.test", "ui.warning.primary", "ui.warning.secondary", "ui.bg.default", "ui.bg.hover", "ui.bg.active", "ui.border.default", "ui.border.hover", "ui.typography.heading", "ui.typography.body", "ui.typography.inverse.heading", "ui.typography.inverse.body", "ui.gray.xxxx-dark", "ui.gray.xxx-dark", "ui.gray.xx-dark", "ui.gray.x-dark", "ui.gray.dark", "ui.gray.semi-dark", "ui.gray.medium", "ui.gray.semi-medium", "ui.gray.light-cool", "ui.gray.x-light-cool", "ui.gray.xx-light-cool", "ui.gray.light-warm", "ui.gray.x-light-warm", "brand.primary", "brand.secondary", "section.blogs.primary", "section.blogs.secondary", "section.books-and-more.primary", "section.books-and-more.secondary", "section.connect.primary", "section.connect.secondary", "section.education.primary", "section.education.secondary", "section.locations.primary", "section.locations.secondary", "section.research.primary", "section.research.secondary", "section.research-library.lpa", "section.research-library.schomburg", "section.research-library.schwartzman", "section.whats-on.primary", "section.whats-on.secondary", "dark.brand.primary", "dark.brand.secondary", "dark.section.blogs.primary", "dark.section.blogs.secondary", "dark.section.books-and-more.primary", "dark.section.books-and-more.secondary", "dark.section.connect.primary", "dark.section.connect.secondary", "dark.section.education.primary", "dark.section.education.secondary", "dark.section.locations.primary", "dark.section.locations.secondary", "dark.section.research.primary", "dark.section.research.secondary", "dark.section.research-library.primary", "dark.section.research-library.secondary", "dark.section.whats-on.primary", "dark.section.whats-on.secondary", "dark.ui.disabled.primary", "dark.ui.disabled.secondary", "dark.ui.error.primary", "dark.ui.error.secondary", "dark.ui.focus", "dark.ui.link.primary", "dark.ui.link.primary-05", "dark.ui.link.primary-10", "dark.ui.link.secondary", "dark.ui.link.tertiary", "dark.ui.status.primary", "dark.ui.status.secondary", "dark.ui.success.primary", "dark.ui.success.secondary", "dark.ui.test", "dark.ui.warning.secondary", "dark.ui.warning.primary", "dark.ui.bg.page", "dark.ui.bg.default", "dark.ui.bg.hover", "dark.ui.bg.active", "dark.ui.border.default", "dark.ui.border.hover", "dark.ui.typography.heading", "dark.ui.typography.body", "dark.ui.typography.inverse.heading", "dark.ui.typography.inverse.body"];
|
|
3
|
-
export declare const iconNamesArray: readonly ["accessibilityFull", "accessibilityPartial", "actionCheckCircle", "actionCheckCircleFilled", "actionDelete", "actionExit", "actionHelpDefault", "actionHelpOutline", "actionHome", "actionIdentity", "actionIdentityFilled", "actionLaunch", "actionLockClosed", "actionPayment", "actionPower", "actionRegistration", "actionSearch", "actionSettings", "alertNotificationImportant", "alertWarningFilled", "alertWarningOutline", "arrow", "building", "check", "clock", "close", "communicationCall", "communicationChatBubble", "communicationEmail", "decorativeEnvelope", "decorativeLibraryCard", "decorativeShoppingBag", "download", "errorFilled", "errorOutline", "fileTypeAudio", "fileTypeDoc", "fileTypeGenericDoc", "fileTypeImage", "fileTypePdf", "fileTypeSpreadsheet", "fileTypeVideo", "headset", "legacyAccountFilled", "legacyAccountUnfilled", "legacySocialFacebook", "legacySocialInstagram", "legacySocialTwitter", "legacySocialYoutube", "locator", "mapsPlace", "minus", "moonCrescent", "navigationMoreVert", "plus", "search", "socialFacebook", "socialInstagram", "socialPinterest", "socialSoundCloud", "socialSpotify", "socialTikTok", "socialTumblr", "socialTwitter", "socialVimeo", "socialYoutube", "speakerNotes", "sunFull", "utilityAccountFilled", "utilityAccountUnfilled", "utilityHamburger", "utilitySearch"];
|
|
3
|
+
export declare const iconNamesArray: readonly ["accessibilityFull", "accessibilityPartial", "actionCheckCircle", "actionCheckCircleFilled", "actionDelete", "actionExit", "actionHelpDefault", "actionHelpOutline", "actionHome", "actionIdentity", "actionIdentityFilled", "actionLaunch", "actionLockClosed", "actionPayment", "actionPower", "actionRegistration", "actionSearch", "actionSettings", "alertNotificationImportant", "alertWarningFilled", "alertWarningOutline", "arrow", "building", "check", "clock", "close", "communicationCall", "communicationChatBubble", "communicationEmail", "decorativeEnvelope", "decorativeLibraryCard", "decorativeShoppingBag", "download", "editorMode", "errorFilled", "errorOutline", "fileTypeAudio", "fileTypeDoc", "fileTypeGenericDoc", "fileTypeImage", "fileTypePdf", "fileTypeSpreadsheet", "fileTypeVideo", "headset", "legacyAccountFilled", "legacyAccountUnfilled", "legacySocialFacebook", "legacySocialInstagram", "legacySocialTwitter", "legacySocialYoutube", "locator", "mapsPlace", "minus", "moonCrescent", "navigationMoreVert", "plus", "search", "socialFacebook", "socialInstagram", "socialPinterest", "socialSoundCloud", "socialSpotify", "socialTikTok", "socialTumblr", "socialTwitter", "socialVimeo", "socialYoutube", "speakerNotes", "sunFull", "utilityAccountFilled", "utilityAccountUnfilled", "utilityHamburger", "utilitySearch"];
|
|
4
4
|
export declare const iconRotationsArray: readonly ["rotate0", "rotate90", "rotate180", "rotate270"];
|
|
5
5
|
export declare const iconSizesArray: readonly ["default", "xsmall", "small", "medium", "large", "xlarge", "xxlarge", "xxxlarge"];
|
|
6
6
|
export declare const iconTypesArray: readonly ["default", "breadcrumbs"];
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { HeadingProps } from "../components/Heading/Heading";
|
|
2
3
|
interface UseDSHeadingProps {
|
|
3
4
|
title: string | JSX.Element;
|
|
4
5
|
id?: string;
|
|
@@ -6,11 +7,12 @@ interface UseDSHeadingProps {
|
|
|
6
7
|
additionalStyles?: {
|
|
7
8
|
[key: string]: any;
|
|
8
9
|
};
|
|
10
|
+
headingSize?: HeadingProps["size"];
|
|
9
11
|
}
|
|
10
12
|
/**
|
|
11
13
|
* DS internal helper hook to render a default `h2` heading element if the
|
|
12
14
|
* passed title is a string. Otherwise, it will return the title as is if it
|
|
13
15
|
* is a JSX element.
|
|
14
16
|
*/
|
|
15
|
-
declare function useDSHeading({ title, id, customDefaultHeading, additionalStyles, }: UseDSHeadingProps): string | JSX.Element;
|
|
17
|
+
declare function useDSHeading({ title, id, customDefaultHeading, additionalStyles, headingSize, }: UseDSHeadingProps): string | JSX.Element;
|
|
16
18
|
export default useDSHeading;
|
|
@@ -196,7 +196,7 @@ declare const Button: {
|
|
|
196
196
|
};
|
|
197
197
|
defaultProps?: {
|
|
198
198
|
size?: string | number;
|
|
199
|
-
variant?: "
|
|
199
|
+
variant?: "primary" | "secondary" | "callout" | "link" | "text" | "pill" | "iconOnly" | "noBrand";
|
|
200
200
|
colorScheme?: string;
|
|
201
201
|
};
|
|
202
202
|
parts: ("base" | "screenreaderOnly")[];
|
|
@@ -513,7 +513,7 @@ declare const Heading: {
|
|
|
513
513
|
};
|
|
514
514
|
defaultProps?: {
|
|
515
515
|
size?: string | number;
|
|
516
|
-
variant?: "
|
|
516
|
+
variant?: "display1" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "primary" | "secondary" | "tertiary" | "callout" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "one" | "two" | "three" | "four" | "five" | "six";
|
|
517
517
|
colorScheme?: string;
|
|
518
518
|
};
|
|
519
519
|
parts: ("base" | "headingWrapper")[];
|
|
@@ -1,19 +1,27 @@
|
|
|
1
1
|
import { StyleFunctionProps } from "@chakra-ui/react";
|
|
2
2
|
declare const SocialMediaLinks: {
|
|
3
|
-
baseStyle?: {
|
|
3
|
+
baseStyle?: (props: StyleFunctionProps) => {
|
|
4
4
|
display: string;
|
|
5
5
|
alignItems: string;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
flexDirection: {
|
|
7
|
+
base: "column" | "row";
|
|
8
|
+
md: any;
|
|
9
|
+
};
|
|
10
|
+
justifyContent: {
|
|
11
|
+
base: "center";
|
|
9
12
|
md: "unset";
|
|
10
13
|
};
|
|
14
|
+
flexWrap: string;
|
|
15
|
+
gap: {
|
|
16
|
+
base: string;
|
|
17
|
+
md: string;
|
|
18
|
+
};
|
|
11
19
|
marginBottom: string;
|
|
12
20
|
li: {
|
|
13
21
|
marginInlineEnd: string;
|
|
14
22
|
marginTop: string;
|
|
15
23
|
width: {
|
|
16
|
-
base: "100%";
|
|
24
|
+
base: "100%" | "unset";
|
|
17
25
|
md: "unset";
|
|
18
26
|
};
|
|
19
27
|
_notFirst: {
|
|
@@ -26,11 +34,11 @@ declare const SocialMediaLinks: {
|
|
|
26
34
|
alignContent: string;
|
|
27
35
|
flexWrap: string;
|
|
28
36
|
minWidth: {
|
|
29
|
-
base:
|
|
37
|
+
base: string;
|
|
30
38
|
md: "unset";
|
|
31
39
|
};
|
|
32
40
|
minHeight: {
|
|
33
|
-
base:
|
|
41
|
+
base: string;
|
|
34
42
|
md: "unset";
|
|
35
43
|
};
|
|
36
44
|
fontStyle: string;
|
|
@@ -75,13 +83,19 @@ declare const SocialMediaLinks: {
|
|
|
75
83
|
};
|
|
76
84
|
variants?: {
|
|
77
85
|
straight(props: StyleFunctionProps): {
|
|
78
|
-
flexDirection: {
|
|
79
|
-
base: "column";
|
|
80
|
-
md: any;
|
|
81
|
-
};
|
|
82
86
|
gap: string;
|
|
83
87
|
a: {
|
|
84
88
|
color: string;
|
|
89
|
+
".platLink": {
|
|
90
|
+
minHeight: {
|
|
91
|
+
base: string;
|
|
92
|
+
md: "0";
|
|
93
|
+
};
|
|
94
|
+
minWidth: {
|
|
95
|
+
base: string;
|
|
96
|
+
md: "0";
|
|
97
|
+
};
|
|
98
|
+
};
|
|
85
99
|
_hover: {
|
|
86
100
|
color: string;
|
|
87
101
|
};
|
|
@@ -105,6 +119,7 @@ declare const SocialMediaLinks: {
|
|
|
105
119
|
borderWidth: string;
|
|
106
120
|
borderStyle: string;
|
|
107
121
|
borderColor: string;
|
|
122
|
+
width: string;
|
|
108
123
|
_dark: {
|
|
109
124
|
borderColor: string;
|
|
110
125
|
};
|
|
@@ -118,13 +133,19 @@ declare const SocialMediaLinks: {
|
|
|
118
133
|
};
|
|
119
134
|
};
|
|
120
135
|
circular(props: StyleFunctionProps): {
|
|
121
|
-
flexDirection: {
|
|
122
|
-
base: "column";
|
|
123
|
-
md: any;
|
|
124
|
-
};
|
|
125
136
|
gap: string;
|
|
126
137
|
a: {
|
|
127
138
|
color: string;
|
|
139
|
+
".platLink": {
|
|
140
|
+
minHeight: {
|
|
141
|
+
base: string;
|
|
142
|
+
md: "0";
|
|
143
|
+
};
|
|
144
|
+
minWidth: {
|
|
145
|
+
base: string;
|
|
146
|
+
md: "0";
|
|
147
|
+
};
|
|
148
|
+
};
|
|
128
149
|
_hover: {
|
|
129
150
|
color: string;
|
|
130
151
|
};
|
|
@@ -159,10 +180,6 @@ declare const SocialMediaLinks: {
|
|
|
159
180
|
};
|
|
160
181
|
};
|
|
161
182
|
none(props: StyleFunctionProps): {
|
|
162
|
-
flexDirection: {
|
|
163
|
-
base: "column";
|
|
164
|
-
md: any;
|
|
165
|
-
};
|
|
166
183
|
a: {
|
|
167
184
|
color: string;
|
|
168
185
|
_hover: {
|