@planningcenter/topbar 11.1.0 → 11.1.1
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.
- package/dist/topbar.css +9 -44
- package/dist/topbar.css.map +1 -1
- package/dist/topbar.js +63 -1
- package/dist/topbar.js.map +1 -1
- package/dist/topbar.modern.js +63 -1
- package/dist/topbar.modern.js.map +1 -1
- package/dist/topbar.module.js +63 -1
- package/dist/topbar.module.js.map +1 -1
- package/dist/topbar.umd.js +63 -1
- package/dist/topbar.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/topbar.modern.js
CHANGED
|
@@ -364,6 +364,62 @@ function AnnouncementIcon() {
|
|
|
364
364
|
}));
|
|
365
365
|
}
|
|
366
366
|
|
|
367
|
+
const promoBackgroundSvg = `
|
|
368
|
+
<svg width="1724" height="1080" viewBox="0 0 1724 1080" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
369
|
+
<g filter="url(#filter0_f_154_9174)">
|
|
370
|
+
<rect
|
|
371
|
+
x="606.744"
|
|
372
|
+
y="1062.82"
|
|
373
|
+
width="649.488"
|
|
374
|
+
height="964.695"
|
|
375
|
+
rx="324.744"
|
|
376
|
+
transform="rotate(-120 606.744 1062.82)"
|
|
377
|
+
fill="url(#paint0_linear_154_9174)"
|
|
378
|
+
fill-opacity="0.5"
|
|
379
|
+
/>
|
|
380
|
+
</g>
|
|
381
|
+
<defs>
|
|
382
|
+
<filter
|
|
383
|
+
id="filter0_f_154_9174"
|
|
384
|
+
x="0.810547"
|
|
385
|
+
y="-263.19"
|
|
386
|
+
width="1722.57"
|
|
387
|
+
height="1607.2"
|
|
388
|
+
filterUnits="userSpaceOnUse"
|
|
389
|
+
color-interpolation-filters="sRGB"
|
|
390
|
+
>
|
|
391
|
+
<feFlood
|
|
392
|
+
flood-opacity="0"
|
|
393
|
+
result="BackgroundImageFix"
|
|
394
|
+
/>
|
|
395
|
+
<feBlend
|
|
396
|
+
mode="normal"
|
|
397
|
+
in="SourceGraphic"
|
|
398
|
+
in2="BackgroundImageFix"
|
|
399
|
+
result="shape"
|
|
400
|
+
/>
|
|
401
|
+
<feGaussianBlur
|
|
402
|
+
stdDeviation="200"
|
|
403
|
+
result="effect1_foregroundBlur_154_9174"
|
|
404
|
+
/>
|
|
405
|
+
</filter>
|
|
406
|
+
<linearGradient
|
|
407
|
+
id="paint0_linear_154_9174"
|
|
408
|
+
x1="1040.11"
|
|
409
|
+
y1="1031.29"
|
|
410
|
+
x2="1407.11"
|
|
411
|
+
y2="1806.85"
|
|
412
|
+
gradientUnits="userSpaceOnUse"
|
|
413
|
+
>
|
|
414
|
+
<stop offset="0.21875" stop-color="#FFD748"/>
|
|
415
|
+
<stop offset="0.541667" stop-color="#FF4242"/>
|
|
416
|
+
<stop offset="0.84375" stop-color="#657CF1"/>
|
|
417
|
+
</linearGradient>
|
|
418
|
+
</defs>
|
|
419
|
+
</svg>
|
|
420
|
+
`;
|
|
421
|
+
|
|
422
|
+
const promoBackgroundUrl = `url("data:image/svg+xml,${encodeURIComponent(promoBackgroundSvg)}")`;
|
|
367
423
|
const entries = function (obj) {
|
|
368
424
|
const ownProps = Object.keys(obj);
|
|
369
425
|
let i = ownProps.length;
|
|
@@ -419,7 +475,13 @@ let StyledAnnouncement$1 = class StyledAnnouncement extends React__default.Compo
|
|
|
419
475
|
const isPromo = variant === "promo";
|
|
420
476
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
421
477
|
className: classnames(styles$b["announcement"], styles$b[`announcement--${variant !== null && variant !== void 0 ? variant : "platform"}`]),
|
|
422
|
-
"data-announcement-variant": variant !== null && variant !== void 0 ? variant : "platform"
|
|
478
|
+
"data-announcement-variant": variant !== null && variant !== void 0 ? variant : "platform",
|
|
479
|
+
style: isPromo ? {
|
|
480
|
+
backgroundImage: promoBackgroundUrl,
|
|
481
|
+
backgroundPosition: "center center",
|
|
482
|
+
backgroundRepeat: "no-repeat",
|
|
483
|
+
backgroundSize: "cover"
|
|
484
|
+
} : undefined
|
|
423
485
|
}, !isPromo && /*#__PURE__*/React__default.createElement(AnnouncementIcon, null), /*#__PURE__*/React__default.createElement("div", {
|
|
424
486
|
className: styles$b["announcement-content"],
|
|
425
487
|
style: style,
|