Skip to content

Commit 43f2a0c

Browse files
Merge pull request #1412 from NYPL/development
Release v1.7.2
2 parents b2321af + 0617090 commit 43f2a0c

18 files changed

+158
-37
lines changed

CHANGELOG.md

+12
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,18 @@ Currently, this repo is in Prerelease. When it is released, this project will ad
88

99
## Prerelease
1010

11+
## 1.7.2 (August 31 , 2023)
12+
13+
### Adds
14+
15+
- Adds the `"actionIdentity"`, `"actionIdentityFilled"`, `"actionSearch"`, `"mapsPlace"`, `"socialSpotify"`, and `"socialVimeo"` options to the `Icon` component.
16+
17+
### Updates
18+
19+
- Updates `List` styling so the bottom border on description lists matches other borders.
20+
- Updates type `IconRotationTypes` to `IconRotations`.`IconRotationTypes` will still work for now, but is deprecated and will be removed in a later version.
21+
- Updates `Modal` component documentation.
22+
1123
## 1.7.1 (August 17, 2023)
1224

1325
### Adds

icons/svg/action-identity-filled.svg

+3
Loading

icons/svg/action-identity.svg

+3
Loading

icons/svg/action-search.svg

+3
Loading

icons/svg/maps-place.svg

+3
Loading

icons/svg/social-spotify.svg

+3
Loading

icons/svg/social-vimeo.svg

+3
Loading

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nypl/design-system-react-components",
3-
"version": "1.7.1",
3+
"version": "1.7.2",
44
"description": "NYPL Reservoir Design System React Components",
55
"repository": {
66
"type": "git",

src/components/Icons/Icon.mdx

+16-14
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import Link from "../Link/Link";
1010
| Component Version | DS Version |
1111
| ----------------- | ---------- |
1212
| Added | `0.0.4` |
13-
| Latest | `1.7.1` |
13+
| Latest | `1.7.2` |
1414

1515
## Table of Contents
1616

@@ -53,7 +53,7 @@ Resources:
5353

5454
## Rotations
5555

56-
Passing an `iconRotation` prop with a value from `IconRotationTypes` allows
56+
Passing an `iconRotation` prop with a value from `IconRotations` allows
5757
the icon to be rotated when it is rendered. The values are:
5858
`"rotate0"`, `"rotate90"`, `"rotate180"`, and `"rotate270"`.
5959

@@ -121,21 +121,23 @@ fill the full width of the parent element.
121121

122122
The following icons are for generic purposes. All the available icon names can
123123
be found in the `IconNames` type. They are: `"accessibilityFull"`,
124-
`"accessibilityPartial"`, `"actionCheckCircle"`, `"actionExit"`,
125-
`"actionHelpDefault"`, `"actionHelpOutline"`, `"alertNotificationImportant"`,
126-
`"actionLaunch"`, `"actionPower"`, `"actionSettings"`, `"arrow"`, `"building"`,
127-
`"check"`, `"clock"`, `"close"`, `"decorativeEnvelope"`,
128-
`"decorativeLibraryCard"`, `"decorativeShoppingBag"`, `"download"`,
129-
`"errorFilled"`, `"errorOutline"`, `"fileTypeAudio"`, `"fileTypeDoc"`,
130-
`"fileTypeGenericDoc"`, `"fileTypeImage"`, `"fileTypePdf"`,
124+
`"accessibilityPartial"`, `"actionCheckCircle"`, `"actionCheckCircleFilled"`,
125+
`"actionExit"`, `"actionHelpDefault"`, `"actionHelpOutline"`,
126+
`"actionIdentity"`, `"actionIdentityFilled"`, `"actionLaunch"`, `"actionPower"`,
127+
`"actionRegistration"`, `"actionSearch"`, `"actionSettings"`,
128+
`"alertNotificationImportant"`, `"alertWarningFilled"`, `"alertWarningOutline"`,
129+
`"arrow"`, `"building"`, `"check"`, `"clock"`, `"close"`,
130+
`"decorativeEnvelope"`, `"decorativeLibraryCard"`, `"decorativeShoppingBag"`,
131+
`"download"`, `"errorFilled"`, `"errorOutline"`, `"fileTypeAudio"`,
132+
`"fileTypeDoc"`, `"fileTypeGenericDoc"`, `"fileTypeImage"`, `"fileTypePdf"`,
131133
`"fileTypeSpreadsheet"`, `"fileTypeVideo"`, `"headset"`,
132134
`"legacyAccountFilled"`, `"legacyAccountUnfilled"`, `"legacySocialFacebook"`,
133135
`"legacySocialInstagram"`, `"legacySocialTwitter"`, `"legacySocialYoutube"`,
134-
`"locator"`, `"minus"`,`"plus"`, `"search"`, `"socialFacebook"`,
135-
`"socialInstagram"`,`"socialPinterest"`, `"socialSoundCloud"`, `"socialTiktok"`,
136-
`"socialTumblr"`, `"socialTwitter"`, `"socialYoutube"`, `"speakerNotes"`,
137-
`"utilityAccountFilled"`, `"utilityAccountUnfilled"`, `"utilityHamburger"`,
138-
`"utilitySearch"`.
136+
`"locator"`, `"mapsPlace"`, `"minus"`, `"plus"`, `"search"`, `"socialFacebook"`,
137+
`"socialInstagram"`, `"socialPinterest"`, `"socialSoundCloud"`,
138+
`"socialSpotify"`, `"socialTikTok"`, `"socialTumblr"`, `"socialTwitter"`,
139+
`"socialVimeo"`, `"socialYoutube"`, `"speakerNotes"`, `"utilityAccountFilled"`,
140+
`"utilityAccountUnfilled"`, `"utilityHamburger"`, `"utilitySearch"`.
139141

140142
Note: All of the examples below have been rendered with the `size` prop set to
141143
`xxlarge`.

src/components/Icons/Icon.stories.tsx

+6-11
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
iconAlignArray,
88
iconColorsArray,
99
iconNamesArray,
10-
iconRotationTypesArray,
10+
iconRotationsArray,
1111
iconSizesArray,
1212
} from "./iconVariables";
1313

@@ -30,7 +30,7 @@ const meta: Meta<typeof Icon> = {
3030
},
3131
iconRotation: {
3232
control: { type: "radio" },
33-
options: iconRotationTypesArray,
33+
options: iconRotationsArray,
3434
table: { defaultValue: { summary: "rotate0" } },
3535
},
3636
id: { control: false },
@@ -134,12 +134,7 @@ const colors = [];
134134
const sizes = [];
135135
const iconColorsValues = iconColorsArray;
136136
const iconNamesValues = iconNamesArray;
137-
const iconRotationTypesValues = [
138-
"rotate0",
139-
"rotate90",
140-
"rotate180",
141-
"rotate270",
142-
];
137+
const iconRotationsValues = ["rotate0", "rotate90", "rotate180", "rotate270"];
143138
const iconSizesValues = [
144139
{ size: "default", display: "default (100%)" },
145140
{ size: "small", display: "small (14px)" },
@@ -157,11 +152,11 @@ for (const icon in iconNamesValues) {
157152
})
158153
);
159154
}
160-
for (const iconRotation in iconRotationTypesValues) {
155+
for (const iconRotation in iconRotationsValues) {
161156
rotations.push(
162157
iconRow("arrow", {
163-
displayValue: iconRotationTypesValues[iconRotation],
164-
iconRotation: iconRotationTypesValues[iconRotation],
158+
displayValue: iconRotationsValues[iconRotation],
159+
iconRotation: iconRotationsValues[iconRotation],
165160
size: "xxlarge",
166161
})
167162
);

src/components/Icons/Icon.tsx

+5-3
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,17 @@ import {
1111
iconAlignArray,
1212
iconColorsArray,
1313
iconNamesArray,
14-
iconRotationTypesArray,
14+
iconRotationsArray,
1515
iconSizesArray,
1616
iconTypesArray,
1717
} from "./iconVariables";
1818

1919
export type IconAlign = typeof iconAlignArray[number];
2020
export type IconColors = typeof iconColorsArray[number];
2121
export type IconNames = typeof iconNamesArray[number];
22-
export type IconRotationTypes = typeof iconRotationTypesArray[number];
22+
export type IconRotations = typeof iconRotationsArray[number];
23+
// `IconRotationTypes` is deprecated; `IconRotations` should be used instead
24+
export type IconRotationTypes = typeof iconRotationsArray[number];
2325
export type IconSizes = typeof iconSizesArray[number];
2426
export type IconTypes = typeof iconTypesArray[number];
2527

@@ -34,7 +36,7 @@ export interface IconProps {
3436
* by default. */
3537
decorative?: boolean;
3638
/** Rotates the icon clockwise in increments of 90deg */
37-
iconRotation?: IconRotationTypes;
39+
iconRotation?: IconRotations;
3840
/** ID that other components can cross reference for accessibility purposes */
3941
id?: string;
4042
/** The name of the icon you want to use. */

src/components/Icons/IconSvgs.tsx

+12
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,12 @@ import { ReactComponent as actionCheckCircleFilled } from "../../../icons/svg/ac
66
import { ReactComponent as actionExit } from "../../../icons/svg/action-exit.svg";
77
import { ReactComponent as actionHelpDefault } from "../../../icons/svg/action-help-default.svg";
88
import { ReactComponent as actionHelpOutline } from "../../../icons/svg/action-help-outline.svg";
9+
import { ReactComponent as actionIdentity } from "../../../icons/svg/action-identity.svg";
10+
import { ReactComponent as actionIdentityFilled } from "../../../icons/svg/action-identity-filled.svg";
911
import { ReactComponent as actionLaunch } from "../../../icons/svg/action-launch.svg";
1012
import { ReactComponent as actionPower } from "../../../icons/svg/action-power.svg";
1113
import { ReactComponent as actionRegistration } from "../../../icons/svg/action-registration.svg";
14+
import { ReactComponent as actionSearch } from "../../../icons/svg/action-search.svg";
1215
import { ReactComponent as actionSettings } from "../../../icons/svg/action-settings.svg";
1316
import { ReactComponent as alertNotificationImportant } from "../../../icons/svg/alert-notification-important.svg";
1417
import { ReactComponent as alertWarningFilled } from "../../../icons/svg/alert-warning-filled.svg";
@@ -39,16 +42,19 @@ import { ReactComponent as legacySocialInstagram } from "../../../icons/svg/lega
3942
import { ReactComponent as legacySocialTwitter } from "../../../icons/svg/legacy-social-twitter.svg";
4043
import { ReactComponent as legacySocialYoutube } from "../../../icons/svg/legacy-social-youtube.svg";
4144
import { ReactComponent as locator } from "../../../icons/svg/locator.svg";
45+
import { ReactComponent as mapsPlace } from "../../../icons/svg/maps-place.svg";
4246
import { ReactComponent as minus } from "../../../icons/svg/minus.svg";
4347
import { ReactComponent as plus } from "../../../icons/svg/plus.svg";
4448
import { ReactComponent as search } from "../../../icons/svg/search.svg";
4549
import { ReactComponent as socialFacebook } from "../../../icons/svg/social-facebook.svg";
4650
import { ReactComponent as socialInstagram } from "../../../icons/svg/social-instagram.svg";
4751
import { ReactComponent as socialPinterest } from "../../../icons/svg/social-pinterest.svg";
4852
import { ReactComponent as socialSoundCloud } from "../../../icons/svg/social-soundcloud.svg";
53+
import { ReactComponent as socialSpotify } from "../../../icons/svg/social-spotify.svg";
4954
import { ReactComponent as socialTikTok } from "../../../icons/svg/social-tiktok.svg";
5055
import { ReactComponent as socialTumblr } from "../../../icons/svg/social-tumblr.svg";
5156
import { ReactComponent as socialTwitter } from "../../../icons/svg/social-twitter.svg";
57+
import { ReactComponent as socialVimeo } from "../../../icons/svg/social-vimeo.svg";
5258
import { ReactComponent as socialYoutube } from "../../../icons/svg/social-youtube.svg";
5359
import { ReactComponent as speakerNotes } from "../../../icons/svg/speaker-notes.svg";
5460
import { ReactComponent as utilityAccountFilled } from "../../../icons/svg/utility-account-filled.svg";
@@ -64,9 +70,12 @@ export default {
6470
actionExit,
6571
actionHelpDefault,
6672
actionHelpOutline,
73+
actionIdentity,
74+
actionIdentityFilled,
6775
actionLaunch,
6876
actionPower,
6977
actionRegistration,
78+
actionSearch,
7079
actionSettings,
7180
alertNotificationImportant,
7281
alertWarningFilled,
@@ -97,16 +106,19 @@ export default {
97106
legacySocialTwitter,
98107
legacySocialYoutube,
99108
locator,
109+
mapsPlace,
100110
minus,
101111
plus,
102112
search,
103113
socialFacebook,
104114
socialInstagram,
105115
socialPinterest,
106116
socialSoundCloud,
117+
socialSpotify,
107118
socialTikTok,
108119
socialTumblr,
109120
socialTwitter,
121+
socialVimeo,
110122
socialYoutube,
111123
speakerNotes,
112124
utilityAccountFilled,

src/components/Icons/iconVariables.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,12 @@ export const iconNamesArray = [
4444
"actionExit",
4545
"actionHelpDefault",
4646
"actionHelpOutline",
47+
"actionIdentity",
48+
"actionIdentityFilled",
4749
"actionLaunch",
4850
"actionPower",
4951
"actionRegistration",
52+
"actionSearch",
5053
"actionSettings",
5154
"alertNotificationImportant",
5255
"alertWarningFilled",
@@ -77,24 +80,27 @@ export const iconNamesArray = [
7780
"legacySocialTwitter",
7881
"legacySocialYoutube",
7982
"locator",
83+
"mapsPlace",
8084
"minus",
8185
"plus",
8286
"search",
8387
"socialFacebook",
8488
"socialInstagram",
8589
"socialPinterest",
8690
"socialSoundCloud",
91+
"socialSpotify",
8792
"socialTikTok",
8893
"socialTumblr",
8994
"socialTwitter",
95+
"socialVimeo",
9096
"socialYoutube",
9197
"speakerNotes",
9298
"utilityAccountFilled",
9399
"utilityAccountUnfilled",
94100
"utilityHamburger",
95101
"utilitySearch",
96102
] as const;
97-
export const iconRotationTypesArray = [
103+
export const iconRotationsArray = [
98104
"rotate0",
99105
"rotate90",
100106
"rotate180",

src/components/List/List.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import Link from "../Link/Link";
1010
| Component Version | DS Version |
1111
| ----------------- | ---------- |
1212
| Added | `0.7.0` |
13-
| Latest | `1.5.3` |
13+
| Latest | `1.7.2` |
1414

1515
## Table of Contents
1616

0 commit comments

Comments
 (0)