@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
|
-
*
|
|
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
|
-
|
|
41247
|
-
|
|
41248
|
-
|
|
41249
|
-
|
|
41250
|
-
|
|
41251
|
-
|
|
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
|
|
41254
|
-
isOutlined:
|
|
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":
|
|
41260
|
-
className:
|
|
41261
|
-
href:
|
|
41262
|
-
id:
|
|
41259
|
+
"aria-current": i ? "page" : null,
|
|
41260
|
+
className: i ? "ds-subNav-selectedItem" : "",
|
|
41261
|
+
href: p,
|
|
41262
|
+
id: a,
|
|
41263
41263
|
isUnderlined: !1,
|
|
41264
|
-
screenreaderOnlyText:
|
|
41264
|
+
screenreaderOnlyText: C,
|
|
41265
41265
|
type: "action",
|
|
41266
|
-
sx:
|
|
41267
|
-
|
|
41266
|
+
sx: v.outLine,
|
|
41267
|
+
as: r,
|
|
41268
|
+
children: o
|
|
41268
41269
|
},
|
|
41269
|
-
|
|
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 {
|