@nypl/design-system-react-components 1.4.2 → 1.5.0-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/CHANGELOG.md +32 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +1 -1
- package/dist/components/Header/components/HeaderSearchButton.d.ts +2 -2
- package/dist/components/Notification/Notification.d.ts +8 -7
- package/dist/components/ProgressIndicator/ProgressIndicator.d.ts +1 -1
- package/dist/design-system-react-components.cjs.development.js +1185 -203
- package/dist/design-system-react-components.cjs.development.js.map +1 -1
- package/dist/design-system-react-components.cjs.production.min.js +1 -1
- package/dist/design-system-react-components.cjs.production.min.js.map +1 -1
- package/dist/design-system-react-components.esm.js +1188 -206
- package/dist/design-system-react-components.esm.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/theme/components/accordion.d.ts +14 -0
- package/dist/theme/components/audioPlayer.d.ts +7 -0
- package/dist/theme/components/breadcrumb.d.ts +28 -0
- package/dist/theme/components/button.d.ts +12 -0
- package/dist/theme/components/card.d.ts +40 -0
- package/dist/theme/components/checkbox.d.ts +67 -0
- package/dist/theme/components/customTable.d.ts +103 -2
- package/dist/theme/components/feedbackBox.d.ts +22 -0
- package/dist/theme/components/fieldset.d.ts +3 -0
- package/dist/theme/components/filterBar.d.ts +16 -0
- package/dist/theme/components/footer.d.ts +18 -0
- package/dist/theme/components/global.d.ts +46 -0
- package/dist/theme/components/header/header.d.ts +7 -0
- package/dist/theme/components/header/headerLogin.d.ts +18 -0
- package/dist/theme/components/header/headerLoginButton.d.ts +15 -0
- package/dist/theme/components/header/headerLowerNav.d.ts +32 -0
- package/dist/theme/components/header/headerMobileIconNav.d.ts +5 -0
- package/dist/theme/components/header/headerMobileNavButton.d.ts +6 -0
- package/dist/theme/components/header/headerSearchButton.d.ts +26 -0
- package/dist/theme/components/header/headerSearchForm.d.ts +9 -0
- package/dist/theme/components/header/headerSitewideAlerts.d.ts +12 -0
- package/dist/theme/components/header/headerUpperNav.d.ts +12 -0
- package/dist/theme/components/heading.d.ts +9 -0
- package/dist/theme/components/helperErrorText.d.ts +3 -0
- package/dist/theme/components/hero.d.ts +42 -5
- package/dist/theme/components/horizontalRule.d.ts +3 -0
- package/dist/theme/components/image.d.ts +54 -0
- package/dist/theme/components/label.d.ts +3 -0
- package/dist/theme/components/link.d.ts +20 -4
- package/dist/theme/components/list.d.ts +46 -0
- package/dist/theme/components/modal.d.ts +21 -0
- package/dist/theme/components/multiSelectMenuButton.d.ts +23 -0
- package/dist/theme/components/notification.d.ts +62 -21
- package/dist/theme/components/progressIndicator.d.ts +16 -0
- package/dist/theme/components/radio.d.ts +63 -0
- package/dist/theme/components/searchBar.d.ts +11 -1
- package/dist/theme/components/select.d.ts +39 -0
- package/dist/theme/components/skeletonLoader.d.ts +4 -1
- package/dist/theme/components/slider.d.ts +21 -2
- package/dist/theme/components/statusBadge.d.ts +12 -0
- package/dist/theme/components/structuredContent.d.ts +63 -4
- package/dist/theme/components/styledList.d.ts +10 -0
- package/dist/theme/components/tabs.d.ts +37 -1
- package/dist/theme/components/tagSet.d.ts +39 -0
- package/dist/theme/components/template.d.ts +3 -0
- package/dist/theme/components/textInput.d.ts +194 -0
- package/dist/theme/components/toggle.d.ts +39 -3
- package/dist/theme/components/tooltip.d.ts +6 -1
- package/dist/theme/components/videoPlayer.d.ts +7 -0
- package/dist/theme/foundations/global.d.ts +10 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,26 @@ Currently, this repo is in Prerelease. When it is released, this project will ad
|
|
|
8
8
|
|
|
9
9
|
## Prerelease
|
|
10
10
|
|
|
11
|
+
### Adds
|
|
12
|
+
|
|
13
|
+
- Adds `dark` color mode support for `background-color` and `color` global styles.
|
|
14
|
+
- Adds `dark` color mode support for the `HelperErrorText` and `StatusBadge` components.
|
|
15
|
+
- Adds `dark` color mode support for the `Button`, `Checkbox`, `DatePicker`, `ProgressIndicator`, `Radio`, `SearchBar`, `Select`, `Slider` and `Toggle` components.
|
|
16
|
+
- Adds `dark` color mode support for the `Card` and `Hero` components.
|
|
17
|
+
- Adds `dark` color mode support for the `Heading` and `List` components.
|
|
18
|
+
- Adds `dark` color mode support for the `Footer`, `Header`, `HorizontalRule` and `Table` components.
|
|
19
|
+
- Adds `dark` color mode support for the `Notification`, `ProgressIndicator`, and `SkeletonLoader` components.
|
|
20
|
+
- Adds `dark` color mode support for the `Breadcrumbs`, `Link Types`, and `Pagination` components.
|
|
21
|
+
- Adds `dark` color mode support for the `Accordion`, `Modal`, `Tabs`, and `Tooltip` components.
|
|
22
|
+
- Adds `dark` color mode support for the `AlphabetFilter`, `AudioPlayer`, and `TagSet` components.
|
|
23
|
+
- Adds `dark` color mode support for the `FeedbackBox` and `StyledList` components.
|
|
24
|
+
- Adds `dark` color mode support for the `FilterBar` and `MultiSelect` components.
|
|
25
|
+
- Adds `Supporting Dark Mode` under the `Development Guide`.
|
|
26
|
+
|
|
27
|
+
### Updates
|
|
28
|
+
|
|
29
|
+
- Updates the `Design Tokens Style Guide` to include more detailed information about the available tokens.
|
|
30
|
+
|
|
11
31
|
## 1.4.2 (March 2, 2023)
|
|
12
32
|
|
|
13
33
|
### Updates
|
|
@@ -151,6 +171,16 @@ This release is exactly the same as the `1.3.0-rc` release candidate published o
|
|
|
151
171
|
|
|
152
172
|
### Adds
|
|
153
173
|
|
|
174
|
+
- Adds `brand` as a `breadcrumbsType` to the `Breadcrumbs` component.
|
|
175
|
+
|
|
176
|
+
### Updates
|
|
177
|
+
|
|
178
|
+
- Updates the hex value for `dark.ui.error.primary`.
|
|
179
|
+
|
|
180
|
+
## 1.2.1 (October 27, 2022)
|
|
181
|
+
|
|
182
|
+
### Adds
|
|
183
|
+
|
|
154
184
|
- Adds the `"buttonPrimary"`, `"buttonSecondary"`, `"buttonPill"`, `"buttonCallout"`, `"buttonNoBrand"`, `"buttonDisabled"` variants for the the `Link` component, set through the `type` prop.
|
|
155
185
|
|
|
156
186
|
### Deprecates
|
|
@@ -227,6 +257,7 @@ This release is exactly the same as the `1.3.0-rc` release candidate published o
|
|
|
227
257
|
### Deprecates
|
|
228
258
|
|
|
229
259
|
- Deprecates the `link` variant in the `Button` component.
|
|
260
|
+
- Deprecates the `darkMode` prop in the `ProgressIndicator` component.
|
|
230
261
|
|
|
231
262
|
## 1.1.0 (August 30, 2022)
|
|
232
263
|
|
|
@@ -270,6 +301,7 @@ This release is exactly the same as the `1.1.0-rc5` release candidate which was
|
|
|
270
301
|
- Updates the `onClick` event type for the `Pagination` links `onClick` function.
|
|
271
302
|
- Updates the `Link` component's `onClick` event type.
|
|
272
303
|
- Makes small, clarifying update to `Color Mode` story in Storybook.
|
|
304
|
+
- Updates background color values available in Storybook.
|
|
273
305
|
|
|
274
306
|
### Fixes
|
|
275
307
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
export declare type BreadcrumbsTypes = "blogs" | "booksAndMore" | "education" | "locations" | "research" | "whatsOn";
|
|
2
|
+
export declare type BreadcrumbsTypes = "blogs" | "booksAndMore" | "brand" | "education" | "locations" | "research" | "whatsOn";
|
|
3
3
|
export interface BreadcrumbsDataProps {
|
|
4
4
|
url: string;
|
|
5
5
|
text: string | React.ReactNode;
|
|
@@ -3,8 +3,8 @@ export interface HeaderSearchButtonProps {
|
|
|
3
3
|
isMobile?: boolean;
|
|
4
4
|
}
|
|
5
5
|
/**
|
|
6
|
-
* This is the button that will render the search form when it is clicked
|
|
7
|
-
*
|
|
6
|
+
* This is the button that will render the search form when it is clicked and
|
|
7
|
+
* keep focus trapped within the menu.
|
|
8
8
|
*/
|
|
9
9
|
declare const HeaderSearchButton: import("@chakra-ui/react").ChakraComponent<({ isMobile }: HeaderSearchButtonProps) => JSX.Element, {}>;
|
|
10
10
|
export default HeaderSearchButton;
|
|
@@ -9,12 +9,17 @@ interface BaseProps {
|
|
|
9
9
|
id?: string;
|
|
10
10
|
/** Optional prop to control horizontal alignment of the `Notification` content */
|
|
11
11
|
isCentered?: boolean;
|
|
12
|
+
/** Content to be rendered in a `NotificationHeading` component. */
|
|
13
|
+
notificationHeading?: string;
|
|
12
14
|
/** Optional prop to control the coloring of the `Notification` text and the
|
|
13
15
|
* visibility of an applicable icon. */
|
|
14
16
|
notificationType?: NotificationTypes;
|
|
17
|
+
/** Prop to display the `Notification` icon. Defaults to `true`. */
|
|
18
|
+
showIcon?: boolean;
|
|
15
19
|
}
|
|
20
|
+
declare type NotificationHeadingProps = Omit<BasePropsWithoutAlignText, "notificationHeading" | "showIcon">;
|
|
21
|
+
declare type NotificationContentProps = Omit<BaseProps, "icon">;
|
|
16
22
|
declare type BasePropsWithoutAlignText = Omit<BaseProps, "alignText">;
|
|
17
|
-
declare type BasePropsWithoutIsCentered = Omit<BaseProps, "isCentered">;
|
|
18
23
|
export interface NotificationProps extends BasePropsWithoutAlignText {
|
|
19
24
|
/** Label used to describe the `Notification`'s aside HTML element. */
|
|
20
25
|
ariaLabel?: string;
|
|
@@ -29,19 +34,15 @@ export interface NotificationProps extends BasePropsWithoutAlignText {
|
|
|
29
34
|
noMargin?: boolean;
|
|
30
35
|
/** Content to be rendered in a `NotificationContent` component. */
|
|
31
36
|
notificationContent: string | JSX.Element;
|
|
32
|
-
/** Content to be rendered in a `NotificationHeading` component. */
|
|
33
|
-
notificationHeading?: string;
|
|
34
|
-
/** Prop to display the `Notification` icon. Defaults to `true`. */
|
|
35
|
-
showIcon?: boolean;
|
|
36
37
|
}
|
|
37
38
|
/**
|
|
38
39
|
* NotificationHeading child-component.
|
|
39
40
|
*/
|
|
40
|
-
export declare const NotificationHeading: import("@chakra-ui/react").ChakraComponent<(props: React.PropsWithChildren<
|
|
41
|
+
export declare const NotificationHeading: import("@chakra-ui/react").ChakraComponent<(props: React.PropsWithChildren<NotificationHeadingProps>) => JSX.Element, {}>;
|
|
41
42
|
/**
|
|
42
43
|
* NotificationContent child-component.
|
|
43
44
|
*/
|
|
44
|
-
export declare const NotificationContent: import("@chakra-ui/react").ChakraComponent<(props: React.PropsWithChildren<
|
|
45
|
+
export declare const NotificationContent: import("@chakra-ui/react").ChakraComponent<(props: React.PropsWithChildren<NotificationContentProps>) => JSX.Element, {}>;
|
|
45
46
|
/**
|
|
46
47
|
* Component used to present users with three different levels of notifications:
|
|
47
48
|
* standard, announcement, and warning.
|
|
@@ -2,7 +2,7 @@ import React from "react";
|
|
|
2
2
|
export declare type ProgressIndicatorSizes = "default" | "small";
|
|
3
3
|
export declare type ProgressIndicatorTypes = "circular" | "linear";
|
|
4
4
|
export interface ProgressIndicatorProps {
|
|
5
|
-
/**
|
|
5
|
+
/** The darkMode prop is deprecated and should no longer be used. */
|
|
6
6
|
darkMode?: boolean;
|
|
7
7
|
/** ID that other components can cross reference for accessibility purposes. */
|
|
8
8
|
id: string;
|