@nypl/design-system-react-components 3.6.0 → 3.6.1-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.
|
@@ -2022,7 +2022,6 @@ const Yb = /* @__PURE__ */ el(_T), G6 = (n = !1) => ({
|
|
|
2022
2022
|
// 16px
|
|
2023
2023
|
}
|
|
2024
2024
|
}, te = {
|
|
2025
|
-
thin: 200,
|
|
2026
2025
|
light: 300,
|
|
2027
2026
|
regular: 400,
|
|
2028
2027
|
regularImportant: "400 !important",
|
|
@@ -2192,15 +2191,15 @@ const Yb = /* @__PURE__ */ el(_T), G6 = (n = !1) => ({
|
|
|
2192
2191
|
caption: te.regular,
|
|
2193
2192
|
default: te.regularImportant,
|
|
2194
2193
|
heading: {
|
|
2195
|
-
display1: te.
|
|
2196
|
-
heading1: te.
|
|
2197
|
-
heading2: te.
|
|
2198
|
-
heading3: te.
|
|
2199
|
-
heading4: te.
|
|
2200
|
-
heading5: te.
|
|
2201
|
-
heading6: te.
|
|
2202
|
-
heading7: te.
|
|
2203
|
-
heading8: te.
|
|
2194
|
+
display1: te.light,
|
|
2195
|
+
heading1: te.light,
|
|
2196
|
+
heading2: te.light,
|
|
2197
|
+
heading3: te.regular,
|
|
2198
|
+
heading4: te.medium,
|
|
2199
|
+
heading5: te.semibold,
|
|
2200
|
+
heading6: te.semibold,
|
|
2201
|
+
heading7: te.bold,
|
|
2202
|
+
heading8: te.bold,
|
|
2204
2203
|
// deprecated tokens
|
|
2205
2204
|
primary: te.light,
|
|
2206
2205
|
secondary: te.medium,
|
|
@@ -7415,7 +7414,7 @@ const { defineMultiStyleConfig: mZ, definePartsStyle: vZ } = B2([
|
|
|
7415
7414
|
display: "flex",
|
|
7416
7415
|
justifyContent: "center",
|
|
7417
7416
|
content: {
|
|
7418
|
-
color: o === "warning" ? "
|
|
7417
|
+
color: o === "warning" ? "ui.error.primary" : "currentColor",
|
|
7419
7418
|
paddingStart: !n && l ? a ? "l" : "xs" : "0",
|
|
7420
7419
|
pt: n ? "0" : "xxs",
|
|
7421
7420
|
w: "100%",
|
|
@@ -7447,7 +7446,7 @@ const { defineMultiStyleConfig: mZ, definePartsStyle: vZ } = B2([
|
|
|
7447
7446
|
}), { defineMultiStyleConfig: PZ, definePartsStyle: jZ } = B2(["heading"]), FZ = jZ(
|
|
7448
7447
|
({ icon: n, isCentered: a, notificationType: o }) => {
|
|
7449
7448
|
let l = "ui.typography.heading";
|
|
7450
|
-
return o === "announcement" ? l = "
|
|
7449
|
+
return o === "announcement" ? l = "ui.success.primary" : o === "warning" && (l = "ui.error.primary"), {
|
|
7451
7450
|
display: "flex",
|
|
7452
7451
|
flexDirection: a ? "column" : "row",
|
|
7453
7452
|
m: a ? "auto" : "null",
|
|
@@ -8259,6 +8258,7 @@ const { defineMultiStyleConfig: mZ, definePartsStyle: vZ } = B2([
|
|
|
8259
8258
|
".textInput": {
|
|
8260
8259
|
flexGrow: 1,
|
|
8261
8260
|
"div > input": {
|
|
8261
|
+
borderRight: 0,
|
|
8262
8262
|
borderRightRadius: 0
|
|
8263
8263
|
}
|
|
8264
8264
|
},
|
|
@@ -8325,9 +8325,10 @@ const { defineMultiStyleConfig: mZ, definePartsStyle: vZ } = B2([
|
|
|
8325
8325
|
...a ? { ...SO } : {}
|
|
8326
8326
|
},
|
|
8327
8327
|
button: {
|
|
8328
|
-
|
|
8329
|
-
|
|
8328
|
+
borderRadius: "20px",
|
|
8329
|
+
height: "40px",
|
|
8330
8330
|
maxWidth: "160px",
|
|
8331
|
+
overflow: "hidden",
|
|
8331
8332
|
width: "100%"
|
|
8332
8333
|
},
|
|
8333
8334
|
container: {
|
|
@@ -9667,7 +9668,7 @@ const {
|
|
|
9667
9668
|
[PL.variable]: "colors.ui.gray.xx-dark",
|
|
9668
9669
|
borderRadius: "4px",
|
|
9669
9670
|
boxShadow: "none",
|
|
9670
|
-
color: "ui.typography.inverse.
|
|
9671
|
+
color: "ui.typography.inverse.heading",
|
|
9671
9672
|
fontSize: "desktop.caption",
|
|
9672
9673
|
marginBottom: "xxs",
|
|
9673
9674
|
maxWidth: "240px",
|
|
@@ -39229,7 +39230,7 @@ const W$ = T1(
|
|
|
39229
39230
|
});
|
|
39230
39231
|
const v1 = {
|
|
39231
39232
|
announcement: {
|
|
39232
|
-
color: N === "dark" ? "dark.ui.success.primary" : "
|
|
39233
|
+
color: N === "dark" ? "dark.ui.success.primary" : "ui.success.primary",
|
|
39233
39234
|
name: "speakerNotes",
|
|
39234
39235
|
title: "Notification announcement icon"
|
|
39235
39236
|
},
|
|
@@ -39239,7 +39240,7 @@ const W$ = T1(
|
|
|
39239
39240
|
title: "Notification standard icon"
|
|
39240
39241
|
},
|
|
39241
39242
|
warning: {
|
|
39242
|
-
color: N === "dark" ? "dark.ui.error.primary" : "
|
|
39243
|
+
color: N === "dark" ? "dark.ui.error.primary" : "ui.error.primary",
|
|
39243
39244
|
name: "errorFilled",
|
|
39244
39245
|
title: "Notification warning icon"
|
|
39245
39246
|
}
|
|
@@ -42957,7 +42958,7 @@ const c$ = s2((n, a) => {
|
|
|
42957
42958
|
/* @__PURE__ */ x.jsxs(c1, { className: y, __css: O.container, children: [
|
|
42958
42959
|
M && /* @__PURE__ */ x.jsx(c1, { __css: O.section, children: N("heading", i, "80%") }),
|
|
42959
42960
|
V && /* @__PURE__ */ x.jsx(c1, { __css: O.section, children: N("content", l, "30%") }),
|
|
42960
|
-
L && /* @__PURE__ */ x.jsx(c1, { __css: { ...O.section, ...O.button }, children: /* @__PURE__ */ x.jsx(xp, {
|
|
42961
|
+
L && /* @__PURE__ */ x.jsx(c1, { __css: { ...O.section, ...O.button }, children: /* @__PURE__ */ x.jsx(xp, { sx: O.loader, borderRadius: "20px", children: /* @__PURE__ */ x.jsx(c1, { __css: O.button }) }) })
|
|
42961
42962
|
] })
|
|
42962
42963
|
]
|
|
42963
42964
|
}
|