@nypl/design-system-react-components 4.0.2 → 4.0.3

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.
@@ -41243,30 +41243,32 @@ const qI = ({
41243
41243
  }
41244
41244
  ) });
41245
41245
  }, GI = ({
41246
- id: r,
41247
- children: a,
41248
- isOutlined: o,
41249
- isSelected: s,
41250
- href: i,
41251
- screenreaderOnlyText: p = ""
41246
+ as: r = "a",
41247
+ id: a,
41248
+ children: o,
41249
+ isOutlined: s,
41250
+ isSelected: i,
41251
+ href: p,
41252
+ screenreaderOnlyText: C = ""
41252
41253
  }) => {
41253
- const C = O2("SubNavChildren", {
41254
- isOutlined: o
41254
+ const v = O2("SubNavChildren", {
41255
+ isOutlined: s
41255
41256
  });
41256
41257
  return /* @__PURE__ */ x.jsx("li", { children: /* @__PURE__ */ x.jsx(
41257
41258
  L9,
41258
41259
  {
41259
- "aria-current": s ? "page" : null,
41260
- className: s ? "ds-subNav-selectedItem" : "",
41261
- href: i,
41262
- id: r,
41260
+ "aria-current": i ? "page" : null,
41261
+ className: i ? "ds-subNav-selectedItem" : "",
41262
+ href: p,
41263
+ id: a,
41263
41264
  isUnderlined: !1,
41264
- screenreaderOnlyText: p,
41265
+ screenreaderOnlyText: C,
41265
41266
  type: "action",
41266
- sx: C.outLine,
41267
- children: a
41267
+ sx: v.outLine,
41268
+ as: r,
41269
+ children: o
41268
41270
  },
41269
- r
41271
+ a
41270
41272
  ) });
41271
41273
  }, XI = P1(
41272
41274
  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 {
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.0.3",
4
4
  "description": "NYPL Reservoir Design System React Components",
5
5
  "repository": {
6
6
  "type": "git",