quirk-ui 0.0.325 → 0.0.326
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.
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { jsx as e, jsxs as o, Fragment as p } from "react/jsx-runtime";
|
|
2
|
-
import { useState as
|
|
2
|
+
import { useState as I, useRef as z, useEffect as P } from "react";
|
|
3
3
|
import { useHeroContext as F } from "./HeroContext.js";
|
|
4
|
-
import { R as n, I } from "../../../index-Dc6Lwt_I.js";
|
|
4
|
+
import { R as n, I as R } from "../../../index-Dc6Lwt_I.js";
|
|
5
5
|
import { CallToActions as b } from "../../ui/CallToActions/index.js";
|
|
6
6
|
import { usePrefersReducedMotion as j } from "../../hooks/usePrefersReducedMotion.js";
|
|
7
|
-
import { c as
|
|
8
|
-
import { P as
|
|
7
|
+
import { c as E } from "../../../createLucideIcon-C8GTh_Qx.js";
|
|
8
|
+
import { P as H } from "../../../index-ClN4LY9C.js";
|
|
9
9
|
import '../../../assets/index45.css';/**
|
|
10
10
|
* @license lucide-react v0.488.0 - ISC
|
|
11
11
|
*
|
|
12
12
|
* This source code is licensed under the ISC license.
|
|
13
13
|
* See the LICENSE file in the root directory of this source tree.
|
|
14
14
|
*/
|
|
15
|
-
const
|
|
15
|
+
const L = [
|
|
16
16
|
["rect", { x: "14", y: "4", width: "4", height: "16", rx: "1", key: "zuxfzm" }],
|
|
17
17
|
["rect", { x: "6", y: "4", width: "4", height: "16", rx: "1", key: "1okwgv" }]
|
|
18
|
-
],
|
|
19
|
-
hero:
|
|
18
|
+
], S = E("pause", L), U = "_hero_c7i2h_1", T = "_container_c7i2h_7", M = "_eyebrow_c7i2h_27", V = "_disclaimer_c7i2h_31", Y = "_text_c7i2h_36", q = "_articleDetails_c7i2h_43", G = "_articleType_c7i2h_56", J = "_articleCategories_c7i2h_69", K = "_category_c7i2h_75", Q = "_number_c7i2h_90", W = "_blog_c7i2h_117", X = "_overlay_c7i2h_141", Z = "_fullBleed_c7i2h_211", O = "_split_c7i2h_305", A = "_videoControl_c7i2h_333", D = "_videoBackground_c7i2h_374", g = "_iframe_c7i2h_375", l = {
|
|
19
|
+
hero: U,
|
|
20
20
|
container: T,
|
|
21
21
|
eyebrow: M,
|
|
22
22
|
disclaimer: V,
|
|
@@ -44,7 +44,8 @@ function ne({
|
|
|
44
44
|
styleOptions: f
|
|
45
45
|
}) {
|
|
46
46
|
var $, B;
|
|
47
|
-
|
|
47
|
+
console.log("HERO", r);
|
|
48
|
+
const a = j(), [v, w] = I(!a), { setIsFullbleedHeroAtTop: N } = F(), m = z(null), d = (f == null ? void 0 : f.layout) ?? "default", _ = {
|
|
48
49
|
default: l.default,
|
|
49
50
|
split: l.split,
|
|
50
51
|
"full-bleed": l.fullBleed,
|
|
@@ -70,7 +71,7 @@ function ne({
|
|
|
70
71
|
i && (i.paused ? (i.play().catch(() => {
|
|
71
72
|
}), w(!0)) : (i.pause(), w(!1)));
|
|
72
73
|
},
|
|
73
|
-
children: v ? /* @__PURE__ */ e(
|
|
74
|
+
children: v ? /* @__PURE__ */ e(S, { size: 18 }) : /* @__PURE__ */ e(H, { size: 18 })
|
|
74
75
|
}
|
|
75
76
|
);
|
|
76
77
|
function C(i) {
|
|
@@ -142,7 +143,7 @@ function ne({
|
|
|
142
143
|
}
|
|
143
144
|
)
|
|
144
145
|
] }) : /* @__PURE__ */ e(
|
|
145
|
-
|
|
146
|
+
R,
|
|
146
147
|
{
|
|
147
148
|
src: (r == null ? void 0 : r.imageUrl) ?? "",
|
|
148
149
|
alt: (r == null ? void 0 : r.asset.altText) || (r == null ? void 0 : r.asset.description) || "Card image",
|
|
@@ -202,7 +203,7 @@ function ne({
|
|
|
202
203
|
}
|
|
203
204
|
)
|
|
204
205
|
] }) : /* @__PURE__ */ e(
|
|
205
|
-
|
|
206
|
+
R,
|
|
206
207
|
{
|
|
207
208
|
src: (r == null ? void 0 : r.imageUrl) ?? "",
|
|
208
209
|
alt: (r == null ? void 0 : r.asset.altText) || (r == null ? void 0 : r.asset.description) || "Card image",
|