@nypl/design-system-react-components 2.1.0-rc → 2.1.0-rc-2
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.
|
@@ -32842,15 +32842,11 @@ function fC(n, r) {
|
|
|
32842
32842
|
const vP = {
|
|
32843
32843
|
parts: ["pitch", "privacy", "action"],
|
|
32844
32844
|
baseStyle: ({ newsletterSignupType: n }) => ({
|
|
32845
|
-
alignItems: "center",
|
|
32846
32845
|
borderWidth: { base: "0px 1px 1px 1px", md: "1px 1px 1px 0px" },
|
|
32847
|
-
maxWidth: "1280px",
|
|
32848
32846
|
width: "100%",
|
|
32849
32847
|
pitch: {
|
|
32850
|
-
|
|
32851
|
-
width: { base: "100%", md: "50%" },
|
|
32848
|
+
alignItems: "flex-start",
|
|
32852
32849
|
bg: "ui.bg.default",
|
|
32853
|
-
borderWidth: { base: ".75rem 0px 0px 0px", md: "0px 0px 0px .75rem" },
|
|
32854
32850
|
borderLeftColor: {
|
|
32855
32851
|
md: fC(
|
|
32856
32852
|
n,
|
|
@@ -32864,6 +32860,11 @@ const vP = {
|
|
|
32864
32860
|
),
|
|
32865
32861
|
md: "ui.border.default"
|
|
32866
32862
|
},
|
|
32863
|
+
borderWidth: { base: ".75rem 0px 0px 0px", md: "0px 0px 0px .75rem" },
|
|
32864
|
+
gap: "xs",
|
|
32865
|
+
justifyContent: "center",
|
|
32866
|
+
width: { base: "100%", md: "50%" },
|
|
32867
|
+
// It's a two-column layout >md
|
|
32867
32868
|
_dark: {
|
|
32868
32869
|
bg: "dark.ui.bg.default",
|
|
32869
32870
|
borderTopColor: { md: "dark.ui.border.default" },
|
|
@@ -32878,18 +32879,17 @@ const vP = {
|
|
|
32878
32879
|
base: "var(--nypl-space-s) var(--nypl-space-l) var(--nypl-space-l) var(--nypl-space-l)",
|
|
32879
32880
|
md: "l",
|
|
32880
32881
|
lg: "var(--nypl-space-l) var(--nypl-space-xxl) var(--nypl-space-l) var(--nypl-space-xl)"
|
|
32881
|
-
}
|
|
32882
|
-
alignItems: "flex-start",
|
|
32883
|
-
gap: "xs"
|
|
32882
|
+
}
|
|
32884
32883
|
},
|
|
32885
32884
|
privacy: {
|
|
32886
32885
|
fontSize: "desktop.caption",
|
|
32887
32886
|
fontWeight: "caption"
|
|
32888
32887
|
},
|
|
32889
32888
|
action: {
|
|
32889
|
+
justifyContent: "center",
|
|
32890
32890
|
padding: { base: "l", lg: "var(--nypl-space-l) var(--nypl-space-xxl)" },
|
|
32891
|
-
// It's a two-column layout >md
|
|
32892
32891
|
width: { base: "100%", md: "50%" }
|
|
32892
|
+
// It's a two-column layout >md
|
|
32893
32893
|
},
|
|
32894
32894
|
form: {
|
|
32895
32895
|
width: "100%"
|
|
@@ -34826,47 +34826,47 @@ function MA(n) {
|
|
|
34826
34826
|
}
|
|
34827
34827
|
const hF = q1(
|
|
34828
34828
|
u2(
|
|
34829
|
-
(n) => {
|
|
34829
|
+
(n, r) => {
|
|
34830
34830
|
const {
|
|
34831
|
-
textContent:
|
|
34832
|
-
isFullWidth:
|
|
34833
|
-
imageProps:
|
|
34831
|
+
textContent: l,
|
|
34832
|
+
isFullWidth: o,
|
|
34833
|
+
imageProps: a = {
|
|
34834
34834
|
alt: "",
|
|
34835
34835
|
position: "end",
|
|
34836
34836
|
width: "oneHalf",
|
|
34837
34837
|
src: ""
|
|
34838
34838
|
},
|
|
34839
|
-
...
|
|
34840
|
-
} = n,
|
|
34841
|
-
imagePosition:
|
|
34842
|
-
imageWidth:
|
|
34843
|
-
isFullWidth:
|
|
34839
|
+
...C
|
|
34840
|
+
} = n, c = F2("FeaturedContent", {
|
|
34841
|
+
imagePosition: a.position,
|
|
34842
|
+
imageWidth: a.width,
|
|
34843
|
+
isFullWidth: o
|
|
34844
34844
|
});
|
|
34845
|
-
return
|
|
34845
|
+
return a.src || console.warn(
|
|
34846
34846
|
"NYPL Reservoir FeaturedContent: A value for 'imageProps.src' is required."
|
|
34847
|
-
),
|
|
34847
|
+
), a.alt || console.warn(
|
|
34848
34848
|
"NYPL Reservoir FeaturedContent: A value for 'imageProps.alt' is required."
|
|
34849
|
-
),
|
|
34849
|
+
), l || console.warn(
|
|
34850
34850
|
"NYPL Reservoir FeaturedContent: The 'textContent' prop is required."
|
|
34851
|
-
), /* @__PURE__ */ _(b1, { "data-testid": "featuredcontent", __css:
|
|
34851
|
+
), /* @__PURE__ */ _(b1, { "data-testid": "featuredcontent", __css: c, ref: r, ...C, children: /* @__PURE__ */ c1(b1, { __css: c.wrapper, children: [
|
|
34852
34852
|
/* @__PURE__ */ _(
|
|
34853
34853
|
b1,
|
|
34854
34854
|
{
|
|
34855
34855
|
"data-testid": "featuredcontent-bg-image",
|
|
34856
34856
|
__css: {
|
|
34857
|
-
...
|
|
34858
|
-
backgroundImage: `url(${
|
|
34857
|
+
...c.imgWrapper,
|
|
34858
|
+
backgroundImage: `url(${a.src})`
|
|
34859
34859
|
},
|
|
34860
34860
|
children: /* @__PURE__ */ _(
|
|
34861
34861
|
MA,
|
|
34862
34862
|
{
|
|
34863
|
-
alt:
|
|
34864
|
-
src:
|
|
34863
|
+
alt: a.alt,
|
|
34864
|
+
src: a.src ? a.src : void 0
|
|
34865
34865
|
}
|
|
34866
34866
|
)
|
|
34867
34867
|
}
|
|
34868
34868
|
),
|
|
34869
|
-
/* @__PURE__ */ _(b1, { __css:
|
|
34869
|
+
/* @__PURE__ */ _(b1, { __css: c.text, children: l })
|
|
34870
34870
|
] }) });
|
|
34871
34871
|
}
|
|
34872
34872
|
)
|
|
@@ -5,23 +5,14 @@ interface NewsLetterStyleProps {
|
|
|
5
5
|
declare const NewsletterSignup: {
|
|
6
6
|
parts: string[];
|
|
7
7
|
baseStyle: ({ newsletterSignupType }: NewsLetterStyleProps) => {
|
|
8
|
-
alignItems: string;
|
|
9
8
|
borderWidth: {
|
|
10
9
|
base: string;
|
|
11
10
|
md: string;
|
|
12
11
|
};
|
|
13
|
-
maxWidth: string;
|
|
14
12
|
width: string;
|
|
15
13
|
pitch: {
|
|
16
|
-
|
|
17
|
-
base: string;
|
|
18
|
-
md: string;
|
|
19
|
-
};
|
|
14
|
+
alignItems: string;
|
|
20
15
|
bg: string;
|
|
21
|
-
borderWidth: {
|
|
22
|
-
base: string;
|
|
23
|
-
md: string;
|
|
24
|
-
};
|
|
25
16
|
borderLeftColor: {
|
|
26
17
|
md: string | {
|
|
27
18
|
primary: string;
|
|
@@ -35,6 +26,16 @@ declare const NewsletterSignup: {
|
|
|
35
26
|
};
|
|
36
27
|
md: string;
|
|
37
28
|
};
|
|
29
|
+
borderWidth: {
|
|
30
|
+
base: string;
|
|
31
|
+
md: string;
|
|
32
|
+
};
|
|
33
|
+
gap: string;
|
|
34
|
+
justifyContent: string;
|
|
35
|
+
width: {
|
|
36
|
+
base: string;
|
|
37
|
+
md: string;
|
|
38
|
+
};
|
|
38
39
|
_dark: {
|
|
39
40
|
bg: string;
|
|
40
41
|
borderTopColor: {
|
|
@@ -52,14 +53,13 @@ declare const NewsletterSignup: {
|
|
|
52
53
|
md: string;
|
|
53
54
|
lg: string;
|
|
54
55
|
};
|
|
55
|
-
alignItems: string;
|
|
56
|
-
gap: string;
|
|
57
56
|
};
|
|
58
57
|
privacy: {
|
|
59
58
|
fontSize: string;
|
|
60
59
|
fontWeight: string;
|
|
61
60
|
};
|
|
62
61
|
action: {
|
|
62
|
+
justifyContent: string;
|
|
63
63
|
padding: {
|
|
64
64
|
base: string;
|
|
65
65
|
lg: string;
|