@planningcenter/topbar 12.8.0 → 12.8.1-rc.0
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.js +61 -32
- package/dist/topbar.js.map +1 -1
- package/dist/topbar.modern.js +61 -31
- package/dist/topbar.modern.js.map +1 -1
- package/dist/topbar.module.js +61 -31
- package/dist/topbar.module.js.map +1 -1
- package/dist/topbar.umd.js +63 -34
- package/dist/topbar.umd.js.map +1 -1
- package/package.json +3 -2
package/dist/topbar.umd.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@planningcenter/tapestry'), require('react'), require('@planningcenter/url'), require('@planningcenter/icons/paths/general'), require('@planningcenter/jolt-client'), require('use-sync-external-store/shim'), require('@planningcenter/icons/paths/
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', '@planningcenter/tapestry', 'react', '@planningcenter/url', '@planningcenter/icons/paths/general', '@planningcenter/jolt-client', 'use-sync-external-store/shim', '@planningcenter/icons/paths/
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.PLANNINGCENTER = global.PLANNINGCENTER || {}, global.PLANNINGCENTER.Topbar = {}), global.tapestry, global.react, global.pcoUrl, global.general, global.Jolt, global.shim, global.accounts, global.toolbar,
|
|
5
|
-
})(this, (function (exports, tapestry, React, pcoUrl$1, general, Jolt, shim, accounts, toolbar,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@planningcenter/tapestry'), require('react'), require('@planningcenter/url'), require('@planningcenter/icons/paths/general'), require('@planningcenter/jolt-client'), require('use-sync-external-store/shim'), require('@planningcenter/icons/paths/church-center'), require('react/jsx-runtime'), require('@planningcenter/icons/paths/accounts'), require('@planningcenter/icons/paths/toolbar'), require('@planningcenter/datetime-fmt'), require('pluralize'), require('@planningcenter/icons/paths/logomark'), require('@planningcenter/tapestry-react'), require('react-dom'), require('@planningcenter/add-ons'), require('@planningcenter/icons/paths/people'), require('react-calendly'), require('algoliasearch'), require('react-instantsearch-core'), require('react-transition-group')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports', '@planningcenter/tapestry', 'react', '@planningcenter/url', '@planningcenter/icons/paths/general', '@planningcenter/jolt-client', 'use-sync-external-store/shim', '@planningcenter/icons/paths/church-center', 'react/jsx-runtime', '@planningcenter/icons/paths/accounts', '@planningcenter/icons/paths/toolbar', '@planningcenter/datetime-fmt', 'pluralize', '@planningcenter/icons/paths/logomark', '@planningcenter/tapestry-react', 'react-dom', '@planningcenter/add-ons', '@planningcenter/icons/paths/people', 'react-calendly', 'algoliasearch', 'react-instantsearch-core', 'react-transition-group'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.PLANNINGCENTER = global.PLANNINGCENTER || {}, global.PLANNINGCENTER.Topbar = {}), global.tapestry, global.react, global.pcoUrl, global.general, global.Jolt, global.shim, global.churchCenter, null, global.accounts, global.toolbar, global.datetimeFmt, global.pluralize, global.logomark, global.tapestryReact, global.ReactDOM, global.addOns, global.people, global.reactCalendly, global.algoliasearch, global.reactInstantsearchCore, global.reactTransitionGroup));
|
|
5
|
+
})(this, (function (exports, tapestry, React, pcoUrl$1, general, Jolt, shim, churchCenter, jsxRuntime, accounts, toolbar, datetimeFmt, pluralize, logomarks, tapestryReact, reactDom, addOns, people, reactCalendly, algoliasearch, reactInstantsearchCore, reactTransitionGroup) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopNamespaceDefault(e) {
|
|
8
8
|
var n = Object.create(null);
|
|
@@ -23,10 +23,10 @@
|
|
|
23
23
|
|
|
24
24
|
var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
25
25
|
var general__namespace = /*#__PURE__*/_interopNamespaceDefault(general);
|
|
26
|
+
var churchCenter__namespace = /*#__PURE__*/_interopNamespaceDefault(churchCenter);
|
|
26
27
|
var accounts__namespace = /*#__PURE__*/_interopNamespaceDefault(accounts);
|
|
27
28
|
var toolbar__namespace = /*#__PURE__*/_interopNamespaceDefault(toolbar);
|
|
28
29
|
var logomarks__namespace = /*#__PURE__*/_interopNamespaceDefault(logomarks);
|
|
29
|
-
var churchCenter__namespace = /*#__PURE__*/_interopNamespaceDefault(churchCenter);
|
|
30
30
|
var people__namespace = /*#__PURE__*/_interopNamespaceDefault(people);
|
|
31
31
|
|
|
32
32
|
var styles$r = {"accessibility-toolbar":"accessibility-toolbar-jgjUG"};
|
|
@@ -1767,36 +1767,30 @@
|
|
|
1767
1767
|
|
|
1768
1768
|
var styles$p = {"name":"name-UNqbW"};
|
|
1769
1769
|
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
const
|
|
1776
|
-
function
|
|
1777
|
-
|
|
1778
|
-
size = 16,
|
|
1779
|
-
style,
|
|
1780
|
-
theme,
|
|
1781
|
-
title,
|
|
1782
|
-
...props
|
|
1770
|
+
// Draws Church Center's 16-unit home icon inside a 20-unit box at the same
|
|
1771
|
+
// proportions as the app symbols, like Account settings' gear, which fill
|
|
1772
|
+
// about 14 of their 20 units. Callers' CSS that sizes the svg then scales it
|
|
1773
|
+
// in step with those symbols.
|
|
1774
|
+
const SCALE = 14 / 16;
|
|
1775
|
+
const OFFSET = 10 - 8 * SCALE;
|
|
1776
|
+
function ChurchCenterIcon({
|
|
1777
|
+
size
|
|
1783
1778
|
}) {
|
|
1784
|
-
const [collection, symbol] = name.split(".");
|
|
1785
1779
|
return /*#__PURE__*/React.createElement("svg", {
|
|
1786
|
-
"aria-hidden":
|
|
1780
|
+
"aria-hidden": true,
|
|
1787
1781
|
fill: "currentColor",
|
|
1788
1782
|
height: size,
|
|
1789
|
-
role: title ? "img" : undefined,
|
|
1790
1783
|
style: {
|
|
1791
|
-
color:
|
|
1792
|
-
|
|
1793
|
-
|
|
1784
|
+
color: "var(--t-icon-color)",
|
|
1785
|
+
display: "block",
|
|
1786
|
+
flexShrink: 0
|
|
1794
1787
|
},
|
|
1795
|
-
viewBox: "0 0
|
|
1788
|
+
viewBox: "0 0 20 20",
|
|
1796
1789
|
width: size,
|
|
1797
|
-
|
|
1798
|
-
},
|
|
1799
|
-
d:
|
|
1790
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
1791
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
1792
|
+
d: churchCenter.home,
|
|
1793
|
+
transform: `translate(${OFFSET} ${OFFSET}) scale(${SCALE})`
|
|
1800
1794
|
}));
|
|
1801
1795
|
}
|
|
1802
1796
|
|
|
@@ -1815,10 +1809,8 @@
|
|
|
1815
1809
|
}, "Account settings"));
|
|
1816
1810
|
}
|
|
1817
1811
|
if (appName === "Church Center") {
|
|
1818
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(
|
|
1819
|
-
|
|
1820
|
-
size: iconSize,
|
|
1821
|
-
theme: "--t-icon-color"
|
|
1812
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ChurchCenterIcon, {
|
|
1813
|
+
size: iconSize
|
|
1822
1814
|
}), /*#__PURE__*/React.createElement("span", {
|
|
1823
1815
|
className: styles$p.name
|
|
1824
1816
|
}, "Church Center"));
|
|
@@ -1852,6 +1844,8 @@
|
|
|
1852
1844
|
appName: "Accounts",
|
|
1853
1845
|
colors: colors,
|
|
1854
1846
|
size: 24
|
|
1847
|
+
})) : appName === "Church Center" ? (/*#__PURE__*/React.createElement(ChurchCenterIcon, {
|
|
1848
|
+
size: 24
|
|
1855
1849
|
})) : (/*#__PURE__*/React.createElement(ColorAppIcon, {
|
|
1856
1850
|
appName: appName.replace(/[\s-]/, ""),
|
|
1857
1851
|
size: 24
|
|
@@ -2727,6 +2721,39 @@ true;
|
|
|
2727
2721
|
});
|
|
2728
2722
|
}, []);
|
|
2729
2723
|
|
|
2724
|
+
const collections = {
|
|
2725
|
+
accounts: accounts__namespace,
|
|
2726
|
+
general: general__namespace,
|
|
2727
|
+
toolbar: toolbar__namespace
|
|
2728
|
+
};
|
|
2729
|
+
const paths = collections;
|
|
2730
|
+
function Icon({
|
|
2731
|
+
name,
|
|
2732
|
+
size = 16,
|
|
2733
|
+
style,
|
|
2734
|
+
theme,
|
|
2735
|
+
title,
|
|
2736
|
+
...props
|
|
2737
|
+
}) {
|
|
2738
|
+
const [collection, symbol] = name.split(".");
|
|
2739
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
2740
|
+
"aria-hidden": title ? undefined : true,
|
|
2741
|
+
fill: "currentColor",
|
|
2742
|
+
height: size,
|
|
2743
|
+
role: title ? "img" : undefined,
|
|
2744
|
+
style: {
|
|
2745
|
+
color: theme && `var(${theme})`,
|
|
2746
|
+
flexShrink: 0,
|
|
2747
|
+
...style
|
|
2748
|
+
},
|
|
2749
|
+
viewBox: "0 0 16 16",
|
|
2750
|
+
width: size,
|
|
2751
|
+
...props
|
|
2752
|
+
}, title && /*#__PURE__*/React.createElement("title", null, title), /*#__PURE__*/React.createElement("path", {
|
|
2753
|
+
d: paths[collection][symbol]
|
|
2754
|
+
}));
|
|
2755
|
+
}
|
|
2756
|
+
|
|
2730
2757
|
const SEARCHABLE_PRODUCTS = [{
|
|
2731
2758
|
appName: "Calendar",
|
|
2732
2759
|
slug: "calendar"
|
|
@@ -6676,9 +6703,11 @@ true;
|
|
|
6676
6703
|
className: styles$7.trigger,
|
|
6677
6704
|
onClick: onTriggerClick,
|
|
6678
6705
|
type: "button"
|
|
6679
|
-
}, /*#__PURE__*/React.createElement(
|
|
6706
|
+
}, appName === "Church Center" ? (/*#__PURE__*/React.createElement(ChurchCenterIcon, {
|
|
6707
|
+
size: 32
|
|
6708
|
+
})) : (/*#__PURE__*/React.createElement(ColorAppIcon, {
|
|
6680
6709
|
appName: appName.replace(/[\s-]/, "")
|
|
6681
|
-
})), /*#__PURE__*/reactDom.createPortal(/*#__PURE__*/React.createElement("div", {
|
|
6710
|
+
}))), /*#__PURE__*/reactDom.createPortal(/*#__PURE__*/React.createElement("div", {
|
|
6682
6711
|
ref: containerRef,
|
|
6683
6712
|
className: classnames(styles$7.layer, {
|
|
6684
6713
|
[styles$7["layer--visible"]]: visible
|