@nypl/design-system-react-components 4.0.2 → 4.1.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.
@@ -1679,7 +1679,7 @@ const Lb = /* @__PURE__ */ Io(tT), v7 = (r = !1) => ({
1679
1679
  /** Blogs is used for the Blogs section. */
1680
1680
  blogs: qy.light,
1681
1681
  /** Books and More is used for the Catalog, Staff Picks, Recommendations,
1682
- * New Arrivals, and E-Book Central. */
1682
+ * and E-Book Central. */
1683
1683
  "books-and-more": Gy.light,
1684
1684
  /** Connect is used for the Connect and Get Help section fronts. */
1685
1685
  connect: Xy.light,
@@ -8561,7 +8561,6 @@ const NZ = ie({
8561
8561
  }, aO = ie({
8562
8562
  baseStyle: L2(() => ({
8563
8563
  boxSizing: "border-box",
8564
- color: "ui.typography.body",
8565
8564
  display: "flex",
8566
8565
  gap: m7.gridGap,
8567
8566
  flexDirection: "column",
@@ -41243,30 +41242,32 @@ const qI = ({
41243
41242
  }
41244
41243
  ) });
41245
41244
  }, GI = ({
41246
- id: r,
41247
- children: a,
41248
- isOutlined: o,
41249
- isSelected: s,
41250
- href: i,
41251
- screenreaderOnlyText: p = ""
41245
+ as: r = "a",
41246
+ id: a,
41247
+ children: o,
41248
+ isOutlined: s,
41249
+ isSelected: i,
41250
+ href: p,
41251
+ screenreaderOnlyText: C = ""
41252
41252
  }) => {
41253
- const C = O2("SubNavChildren", {
41254
- isOutlined: o
41253
+ const v = O2("SubNavChildren", {
41254
+ isOutlined: s
41255
41255
  });
41256
41256
  return /* @__PURE__ */ x.jsx("li", { children: /* @__PURE__ */ x.jsx(
41257
41257
  L9,
41258
41258
  {
41259
- "aria-current": s ? "page" : null,
41260
- className: s ? "ds-subNav-selectedItem" : "",
41261
- href: i,
41262
- id: r,
41259
+ "aria-current": i ? "page" : null,
41260
+ className: i ? "ds-subNav-selectedItem" : "",
41261
+ href: p,
41262
+ id: a,
41263
41263
  isUnderlined: !1,
41264
- screenreaderOnlyText: p,
41264
+ screenreaderOnlyText: C,
41265
41265
  type: "action",
41266
- sx: C.outLine,
41267
- children: a
41266
+ sx: v.outLine,
41267
+ as: r,
41268
+ children: o
41268
41269
  },
41269
- r
41270
+ a
41270
41271
  ) });
41271
41272
  }, XI = P1(
41272
41273
  u2(
@@ -33,7 +33,7 @@ interface SubNavItemProps {
33
33
  isSelected?: boolean;
34
34
  screenreaderOnlyText?: string;
35
35
  }
36
- interface SubNavLinkProps extends SubNavItemProps {
36
+ interface SubNavLinkProps extends SubNavItemProps, Pick<BoxProps, "as"> {
37
37
  href: string;
38
38
  }
39
39
  interface SubNavButtonProps extends SubNavItemProps {
@@ -2,7 +2,6 @@ declare const _default: {
2
2
  Template: {
3
3
  baseStyle?: () => {
4
4
  boxSizing: string;
5
- color: string;
6
5
  display: string;
7
6
  gap: {
8
7
  base: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nypl/design-system-react-components",
3
- "version": "4.0.2",
3
+ "version": "4.1.0-rc",
4
4
  "description": "NYPL Reservoir Design System React Components",
5
5
  "repository": {
6
6
  "type": "git",