@nypl/design-system-react-components 1.2.0 → 1.2.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/CHANGELOG.md +24 -0
- package/dist/components/Link/Link.d.ts +1 -1
- package/dist/design-system-react-components.cjs.development.js +1602 -2744
- 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 +1602 -2744
- package/dist/design-system-react-components.esm.js.map +1 -1
- package/dist/theme/components/button.d.ts +42 -0
- package/dist/theme/components/checkbox.d.ts +16 -0
- package/dist/theme/components/global.d.ts +19 -1
- package/dist/theme/components/hero.d.ts +4 -0
- package/dist/theme/components/link.d.ts +6 -0
- package/dist/theme/components/radio.d.ts +22 -2
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,30 @@ Currently, this repo is in Prerelease. When it is released, this project will ad
|
|
|
8
8
|
|
|
9
9
|
## Prerelease
|
|
10
10
|
|
|
11
|
+
## 1.2.1 (October 27, 2022)
|
|
12
|
+
|
|
13
|
+
### Adds
|
|
14
|
+
|
|
15
|
+
- Adds the `"buttonPrimary"`, `"buttonSecondary"`, `"buttonPill"`, `"buttonCallout"`, `"buttonNoBrand"`, `"buttonDisabled"` variants for the the `Link` component, set through the `type` prop.
|
|
16
|
+
|
|
17
|
+
### Deprecates
|
|
18
|
+
|
|
19
|
+
- Deprecates the `"button"` `type` variant for the `Link` component. Use any of the new `"buttonX"` variants instead.
|
|
20
|
+
|
|
21
|
+
### Updates
|
|
22
|
+
|
|
23
|
+
- Updates the `AlphabetFilter` component by adding `aria-label=“Filter by letter"` attribute
|
|
24
|
+
and removing the `role` attribute on the `<nav>` element.
|
|
25
|
+
- Updates `AlphabetFilter` border color for the `active letter` indicator from
|
|
26
|
+
`ui.gray.medium` to `ui.gray.dark`.
|
|
27
|
+
- Updates background styles for `Hero` component's `primary` and `campaign` variants.
|
|
28
|
+
- Updates the hover styles for the `Checkbox` and `Radio` components.
|
|
29
|
+
- Improves `TagSet` `"filter"` type accessibility by adding an `aria-label` that includes `"click to remove filter"`, when `isDismissible` is true.
|
|
30
|
+
|
|
31
|
+
### Fixes
|
|
32
|
+
|
|
33
|
+
- Updates Storybook npm packages to fix copying documentation and table of contents heading linking.
|
|
34
|
+
|
|
11
35
|
## 1.2.0 (October 17, 2022)
|
|
12
36
|
|
|
13
37
|
### Adds
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
export declare type LinkTypes = "action" | "backwards" | "button" | "default" | "external" | "forwards";
|
|
2
|
+
export declare type LinkTypes = "action" | "backwards" | "button" | "buttonPrimary" | "buttonSecondary" | "buttonPill" | "buttonCallout" | "buttonNoBrand" | "buttonDisabled" | "default" | "external" | "forwards";
|
|
3
3
|
export interface LinkProps {
|
|
4
4
|
/** Any child node passed to the component. */
|
|
5
5
|
children: React.ReactNode;
|