@planningcenter/topbar 11.1.0 → 11.1.2-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.
- 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 +11 -3
package/dist/topbar.umd.js
CHANGED
|
@@ -375,6 +375,62 @@
|
|
|
375
375
|
}));
|
|
376
376
|
}
|
|
377
377
|
|
|
378
|
+
const promoBackgroundSvg = `
|
|
379
|
+
<svg width="1724" height="1080" viewBox="0 0 1724 1080" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
380
|
+
<g filter="url(#filter0_f_154_9174)">
|
|
381
|
+
<rect
|
|
382
|
+
x="606.744"
|
|
383
|
+
y="1062.82"
|
|
384
|
+
width="649.488"
|
|
385
|
+
height="964.695"
|
|
386
|
+
rx="324.744"
|
|
387
|
+
transform="rotate(-120 606.744 1062.82)"
|
|
388
|
+
fill="url(#paint0_linear_154_9174)"
|
|
389
|
+
fill-opacity="0.5"
|
|
390
|
+
/>
|
|
391
|
+
</g>
|
|
392
|
+
<defs>
|
|
393
|
+
<filter
|
|
394
|
+
id="filter0_f_154_9174"
|
|
395
|
+
x="0.810547"
|
|
396
|
+
y="-263.19"
|
|
397
|
+
width="1722.57"
|
|
398
|
+
height="1607.2"
|
|
399
|
+
filterUnits="userSpaceOnUse"
|
|
400
|
+
color-interpolation-filters="sRGB"
|
|
401
|
+
>
|
|
402
|
+
<feFlood
|
|
403
|
+
flood-opacity="0"
|
|
404
|
+
result="BackgroundImageFix"
|
|
405
|
+
/>
|
|
406
|
+
<feBlend
|
|
407
|
+
mode="normal"
|
|
408
|
+
in="SourceGraphic"
|
|
409
|
+
in2="BackgroundImageFix"
|
|
410
|
+
result="shape"
|
|
411
|
+
/>
|
|
412
|
+
<feGaussianBlur
|
|
413
|
+
stdDeviation="200"
|
|
414
|
+
result="effect1_foregroundBlur_154_9174"
|
|
415
|
+
/>
|
|
416
|
+
</filter>
|
|
417
|
+
<linearGradient
|
|
418
|
+
id="paint0_linear_154_9174"
|
|
419
|
+
x1="1040.11"
|
|
420
|
+
y1="1031.29"
|
|
421
|
+
x2="1407.11"
|
|
422
|
+
y2="1806.85"
|
|
423
|
+
gradientUnits="userSpaceOnUse"
|
|
424
|
+
>
|
|
425
|
+
<stop offset="0.21875" stop-color="#FFD748"/>
|
|
426
|
+
<stop offset="0.541667" stop-color="#FF4242"/>
|
|
427
|
+
<stop offset="0.84375" stop-color="#657CF1"/>
|
|
428
|
+
</linearGradient>
|
|
429
|
+
</defs>
|
|
430
|
+
</svg>
|
|
431
|
+
`;
|
|
432
|
+
|
|
433
|
+
const promoBackgroundUrl = `url("data:image/svg+xml,${encodeURIComponent(promoBackgroundSvg)}")`;
|
|
378
434
|
const entries = function (obj) {
|
|
379
435
|
const ownProps = Object.keys(obj);
|
|
380
436
|
let i = ownProps.length;
|
|
@@ -430,7 +486,13 @@
|
|
|
430
486
|
const isPromo = variant === "promo";
|
|
431
487
|
return /*#__PURE__*/React.createElement("div", {
|
|
432
488
|
className: classnames(styles$b["announcement"], styles$b[`announcement--${variant !== null && variant !== void 0 ? variant : "platform"}`]),
|
|
433
|
-
"data-announcement-variant": variant !== null && variant !== void 0 ? variant : "platform"
|
|
489
|
+
"data-announcement-variant": variant !== null && variant !== void 0 ? variant : "platform",
|
|
490
|
+
style: isPromo ? {
|
|
491
|
+
backgroundImage: promoBackgroundUrl,
|
|
492
|
+
backgroundPosition: "center center",
|
|
493
|
+
backgroundRepeat: "no-repeat",
|
|
494
|
+
backgroundSize: "cover"
|
|
495
|
+
} : undefined
|
|
434
496
|
}, !isPromo && /*#__PURE__*/React.createElement(AnnouncementIcon, null), /*#__PURE__*/React.createElement("div", {
|
|
435
497
|
className: styles$b["announcement-content"],
|
|
436
498
|
style: style,
|