Skip to content

Commit 924c04a

Browse files
Merge pull request #1941 from NYPL/development
Release v4.1.1
2 parents f003865 + 05e962a commit 924c04a

File tree

12 files changed

+242
-25
lines changed

12 files changed

+242
-25
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
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+
## 4.1.1 (December 11, 2025)
12+
13+
### Adds
14+
15+
- Adds `Text case` to the `Style Guide`.
16+
- Adds the `"utilityGridView"` and `"utilityListView"` options to the `Icon` component.
17+
18+
### Updates
19+
20+
- Updates to `Reservoir v4 Migration Guide` to include details about the `Hero` component.
21+
- Updates the docs for the `Hero` component to no longer show `backgroundColor` in the props table.
22+
1123
## 4.1.0 (November 20, 2025)
1224

1325
### Adds

icons/svg/utility-list-view.svg

Lines changed: 8 additions & 0 deletions
Loading

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

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

src/components/DevelopmentGuide/V4MigrationGuide.mdx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,10 +283,15 @@ as expected on smaller screen sizes and will need to be adjusted.
283283
</Box>
284284
</Flex>
285285

286+
#### If using `Hero`, rename `backgroundColor` to `textBackgroundColor`.
287+
288+
We updated the `backgroundColor` prop in `Hero` to `textBackgroundColor` so the
289+
name of the prop aligns more closely with the way it is used in the component.
290+
286291
#### If using `Table`, rename `tableTextSize` to `fontSize`.
287292

288293
We updated the `tableTextSize` prop in `Table` to `fontSize` to align more
289-
closely with the CSS property.
294+
closely with the native CSS property.
290295

291296
#### If using the `onMixedStateChange` function, update the argument to use object destructuring.
292297

src/components/Hero/Hero.mdx

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,20 @@ the `backgroundImageSrc` will take precedence.
381381
Use the `textBackgroundColor` prop to set a custom background color for the text
382382
content.
383383

384+
<Banner
385+
content={
386+
<>
387+
<strong>IMPORTANT:</strong> The <code>textBackgroundColor</code> prop
388+
should be used where the <code>backgroundColor</code> prop was used
389+
previously to set the color behind the text in the <code>Hero</code>{" "}
390+
component.
391+
</>
392+
}
393+
mt="l"
394+
mb="l"
395+
variant="informative"
396+
/>
397+
384398
<Story of={HeroStories.TextBackgroundColor} />
385399

386400
<Source
@@ -389,7 +403,7 @@ content.
389403
backgroundImageSrc="https://iiif.nypl.org/iiif/2/5164274/full/!900,900/0/default.jpg"
390404
heading={
391405
<Heading
392-
id="primary-hero"
406+
id="primary-hero-textbackgroundcolor"
393407
level="h1"
394408
overline="Hero Example"
395409
subtitle="Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Donec sed odio dui. Vestibulum id ligula porta felis euismod semper. Aenean eu leo quam."
@@ -410,13 +424,12 @@ content.
410424
heading={
411425
<Heading
412426
level="h1"
413-
id="tertiary-hero-subtitle-subheading"
414-
size="heading2"
415-
subtitle="This is the subtitle"
416-
text="Hero Tertiary with Subtitle & Sub-Heading"
427+
id="tertiary-hero-textbackgroundcolor"
428+
overline="Hero Example"
429+
text="Hero Tertiary"
417430
/>
418431
}
419-
subHeaderText={otherSubHeaderText}
432+
subHeaderText="Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Donec sed odio dui. Vestibulum id ligula porta felis euismod semper. Aenean eu leo quam."
420433
textColor="ui.white"
421434
textBackgroundColor="brand.primary"
422435
variant="tertiary"
@@ -428,11 +441,12 @@ content.
428441
<Source
429442
code={`
430443
<Hero
431-
backgroundImageSrc={getPlaceholderImage()}
444+
backgroundImageSrc="https://iiif.nypl.org/iiif/2/5164274/full/!900,900/0/default.jpg"
432445
heading={
433446
<Heading
434447
level="h1"
435-
id="campaign-hero-default-heading"
448+
id="campaign-hero-textbackgroundcolor"
449+
overline="Hero Example"
436450
text="Hero Campaign"
437451
mb="s"
438452
/>
@@ -441,7 +455,8 @@ content.
441455
alt: "",
442456
src: "https://iiif.nypl.org/iiif/2/5164274/full/!900,900/0/default.jpg",
443457
}}
444-
subHeaderText={otherSubHeaderText}
458+
isDarkBackgroundImage
459+
subHeaderText="Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Donec sed odio dui. Vestibulum id ligula porta felis euismod semper. Aenean eu leo quam."
445460
textColor="ui.white"
446461
textBackgroundColor="brand.primary"
447462
variant="campaign"

src/components/Hero/Hero.stories.tsx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ const meta: Meta<typeof Hero> = {
6565
component: Hero,
6666
argTypes: {
6767
backdropBackgroundColor: { control: { type: "color" } },
68-
backgroundColor: { control: { type: "color" } },
68+
backgroundColor: { table: { disable: true } },
6969
foregroundColor: { control: { type: "color" } },
7070
heading: { control: false },
7171
imageProps: { control: false },
@@ -98,7 +98,6 @@ type Story = StoryObj<typeof Hero>;
9898
export const WithControls: Story = {
9999
args: {
100100
backdropBackgroundColor: undefined,
101-
backgroundColor: undefined,
102101
backgroundImageSrc: undefined,
103102
foregroundColor: undefined,
104103
heading: undefined,
@@ -326,7 +325,7 @@ export const TextBackgroundColor: Story = {
326325
backgroundImageSrc="https://iiif.nypl.org/iiif/2/5164274/full/!900,900/0/default.jpg"
327326
heading={
328327
<Heading
329-
id="primary-hero"
328+
id="primary-hero-textbackgroundcolor"
330329
level="h1"
331330
overline="Hero Example"
332331
subtitle="Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Donec sed odio dui. Vestibulum id ligula porta felis euismod semper. Aenean eu leo quam."
@@ -343,25 +342,25 @@ export const TextBackgroundColor: Story = {
343342
heading={
344343
<Heading
345344
level="h1"
346-
id="tertiary-hero-subtitle-subheading"
347-
size="heading2"
348-
subtitle="This is the subtitle"
349-
text="Hero Tertiary with Subtitle & Sub-Heading"
345+
id="tertiary-hero-textbackgroundcolor"
346+
overline="Hero Example"
347+
text="Hero Tertiary"
350348
/>
351349
}
352-
subHeaderText={otherSubHeaderText}
350+
subHeaderText="Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Donec sed odio dui. Vestibulum id ligula porta felis euismod semper. Aenean eu leo quam."
353351
textBackgroundColor="brand.primary"
354352
textColor="ui.white"
355353
variant="tertiary"
356354
/>
357355
</div>
358356
<div>
359357
<Hero
360-
backgroundImageSrc={getPlaceholderImage()}
358+
backgroundImageSrc="https://iiif.nypl.org/iiif/2/5164274/full/!900,900/0/default.jpg"
361359
heading={
362360
<Heading
363361
level="h1"
364-
id="campaign-hero-default-heading"
362+
id="campaign-hero-textbackgroundcolor"
363+
overline="Hero Example"
365364
text="Hero Campaign"
366365
mb="s"
367366
/>
@@ -370,7 +369,8 @@ export const TextBackgroundColor: Story = {
370369
alt: "",
371370
src: "https://iiif.nypl.org/iiif/2/5164274/full/!900,900/0/default.jpg",
372371
}}
373-
subHeaderText={otherSubHeaderText}
372+
isDarkBackgroundImage
373+
subHeaderText="Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Donec sed odio dui. Vestibulum id ligula porta felis euismod semper. Aenean eu leo quam."
374374
textBackgroundColor="brand.primary"
375375
textColor="ui.white"
376376
variant="campaign"

src/components/Icons/Icon.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import { changelogData } from "./iconChangelogData";
1919
componentName="Icon"
2020
summary="Renders commonly used icons in SVG format"
2121
versionAdded="0.0.4"
22-
versionLatest="4.0.2"
22+
versionLatest="4.1.1"
2323
/>
2424

2525
<Canvas of={IconStories.WithControls} />

src/components/Icons/IconSvgs.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ import utilityAccountFilled from "../../../icons/svg/utility-account-filled.svg"
8282
import utilityAccountUnfilled from "../../../icons/svg/utility-account-unfilled.svg";
8383
import utilityCheck from "../../../icons/svg/utility-check.svg";
8484
import utilityHamburger from "../../../icons/svg/utility-hamburger.svg";
85+
import utilityListView from "../../../icons/svg/utility-list-view.svg";
8586
import utilitySearch from "../../../icons/svg/search.svg";
8687

8788
export default {
@@ -167,6 +168,8 @@ export default {
167168
utilityAccountFilled,
168169
utilityAccountUnfilled,
169170
utilityCheck,
171+
utilityGridView: navigationApps, // Reusing existing icon
170172
utilityHamburger,
173+
utilityListView,
171174
utilitySearch,
172175
};

src/components/Icons/iconChangelogData.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@
99
import { ChangelogData } from "../../utils/ComponentChangelogTable";
1010

1111
export const changelogData: ChangelogData[] = [
12+
{
13+
date: "2025-12-11",
14+
version: "4.1.1",
15+
type: "Update",
16+
affects: ["Functionality"],
17+
notes: ["Added the `utilityGridView` and `utilityListView` icons."],
18+
},
1219
{
1320
date: "2025-09-30",
1421
version: "4.0.2",

0 commit comments

Comments
 (0)