wacomm 1.6.5 → 1.7.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/CommentEditor.d.ts +8 -0
- package/dist/{index-BkMSlXSq.js → index-BrUo36uq.js} +3 -3
- package/dist/{index-GGsFDZia.mjs → index-DykjGGtD.mjs} +73 -67
- package/dist/index.d.ts +1 -1
- package/dist/{mapbox-gl-D9fFpaPP.mjs → mapbox-gl-B1zK3TQb.mjs} +1 -1
- package/dist/{mapbox-gl-B6CwVzlu.js → mapbox-gl-BnurK_QI.js} +1 -1
- package/dist/wacomm.cjs.js +1 -1
- package/dist/wacomm.es.js +70 -70
- package/package.json +1 -1
- package/dist/TextSender.d.ts +0 -8
|
@@ -2,7 +2,7 @@ var qb = Object.defineProperty;
|
|
|
2
2
|
var Hb = (e, t, o) => t in e ? qb(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o;
|
|
3
3
|
var Ds = (e, t, o) => Hb(e, typeof t != "symbol" ? t + "" : t, o);
|
|
4
4
|
import * as T from "react";
|
|
5
|
-
import ze, { useState as ot, useEffect as Je, useCallback as eo, useRef as
|
|
5
|
+
import ze, { useState as ot, useEffect as Je, useCallback as eo, useRef as yt, useContext as xr, forwardRef as Gi, useLayoutEffect as hu, createContext as Ey, useMemo as Ho, Fragment as Rc, Component as Ny, isValidElement as Ma, Children as Zb, cloneElement as ka, useImperativeHandle as Wi, memo as Cr } from "react";
|
|
6
6
|
import * as Yb from "react-dom";
|
|
7
7
|
import Jr, { createPortal as gu } from "react-dom";
|
|
8
8
|
import { Autocomplete as Ub, TextField as Jb } from "@mui/material";
|
|
@@ -2830,7 +2830,7 @@ Kn(yo, "IsZeroArray", (e) => W1(e)), Kn(yo, "RemoveItem", (e, t) => yo.IsZeroArr
|
|
|
2830
2830
|
), e)), Kn(yo, "PrependItem", (e, t) => yo.IsZeroArray(e) ? [t] : [t, ...e]), Kn(yo, "AppendArray", (e, t) => yo.IsZeroArray(e) ? t : [...e, ...t]), Kn(yo, "Union", (e, t) => e.concat(t.filter((o) => e.indexOf(o) < 0)));
|
|
2831
2831
|
let q1 = yo;
|
|
2832
2832
|
const H1 = (e) => {
|
|
2833
|
-
const t =
|
|
2833
|
+
const t = yt(null);
|
|
2834
2834
|
return Je(() => {
|
|
2835
2835
|
const o = (n) => {
|
|
2836
2836
|
t.current && !t.current.contains(n.target) && e();
|
|
@@ -9822,7 +9822,7 @@ var qh = function(t) {
|
|
|
9822
9822
|
marginTop: a.menuGutter
|
|
9823
9823
|
});
|
|
9824
9824
|
}, Hh = /* @__PURE__ */ Ey(null), VP = function(t) {
|
|
9825
|
-
var o = t.children, n = t.minMenuHeight, r = t.maxMenuHeight, s = t.menuPlacement, i = t.menuPosition, a = t.menuShouldScrollIntoView, l = t.theme, c = xr(Hh) || {}, u = c.setPortalPlacement, p =
|
|
9825
|
+
var o = t.children, n = t.minMenuHeight, r = t.maxMenuHeight, s = t.menuPlacement, i = t.menuPosition, a = t.menuShouldScrollIntoView, l = t.theme, c = xr(Hh) || {}, u = c.setPortalPlacement, p = yt(null), d = ot(r), f = Cn(d, 2), m = f[0], y = f[1], h = ot(null), g = Cn(h, 2), C = g[0], w = g[1], P = l.spacing.controlHeight;
|
|
9826
9826
|
return Zc(function() {
|
|
9827
9827
|
var I = p.current;
|
|
9828
9828
|
if (I) {
|
|
@@ -9907,7 +9907,7 @@ var qh = function(t) {
|
|
|
9907
9907
|
zIndex: 1
|
|
9908
9908
|
};
|
|
9909
9909
|
}, QP = function(t) {
|
|
9910
|
-
var o = t.appendTo, n = t.children, r = t.controlElement, s = t.innerProps, i = t.menuPlacement, a = t.menuPosition, l =
|
|
9910
|
+
var o = t.appendTo, n = t.children, r = t.controlElement, s = t.innerProps, i = t.menuPlacement, a = t.menuPosition, l = yt(null), c = yt(null), u = ot(qh(i)), p = Cn(u, 2), d = p[0], f = p[1], m = Ho(function() {
|
|
9911
9911
|
return {
|
|
9912
9912
|
setPortalPlacement: f
|
|
9913
9913
|
};
|
|
@@ -10885,7 +10885,7 @@ var c5 = function(t) {
|
|
|
10885
10885
|
t.cancelable && t.preventDefault(), t.stopPropagation();
|
|
10886
10886
|
};
|
|
10887
10887
|
function u5(e) {
|
|
10888
|
-
var t = e.isEnabled, o = e.onBottomArrive, n = e.onBottomLeave, r = e.onTopArrive, s = e.onTopLeave, i =
|
|
10888
|
+
var t = e.isEnabled, o = e.onBottomArrive, n = e.onBottomLeave, r = e.onTopArrive, s = e.onTopLeave, i = yt(!1), a = yt(!1), l = yt(0), c = yt(null), u = eo(function(h, g) {
|
|
10889
10889
|
if (c.current !== null) {
|
|
10890
10890
|
var C = c.current, w = C.scrollTop, P = C.scrollHeight, I = C.clientHeight, A = c.current, N = g > 0, E = P - I - w, B = !1;
|
|
10891
10891
|
E > g && i.current && (n && n(h), i.current = !1), N && a.current && (s && s(h), a.current = !1), N && g > E ? (o && !i.current && o(h), A.scrollTop = P, B = !0, i.current = !0) : !N && -g > w && (r && !a.current && r(h), A.scrollTop = 0, B = !0, a.current = !0), B && c5(h);
|
|
@@ -10943,7 +10943,7 @@ var lf = !!(typeof window < "u" && window.document && window.document.createElem
|
|
|
10943
10943
|
passive: !1
|
|
10944
10944
|
};
|
|
10945
10945
|
function p5(e) {
|
|
10946
|
-
var t = e.isEnabled, o = e.accountForScrollbars, n = o === void 0 ? !0 : o, r =
|
|
10946
|
+
var t = e.isEnabled, o = e.accountForScrollbars, n = o === void 0 ? !0 : o, r = yt({}), s = yt(null), i = eo(function(l) {
|
|
10947
10947
|
if (lf) {
|
|
10948
10948
|
var c = document.body, u = c && c.style;
|
|
10949
10949
|
if (n && tf.forEach(function(m) {
|
|
@@ -13743,7 +13743,7 @@ function FN({ count: e, content: t, onClick: o }) {
|
|
|
13743
13743
|
] });
|
|
13744
13744
|
}
|
|
13745
13745
|
function VN({ tabs: e, classNames: t, onClick: o, pickedTab: n }) {
|
|
13746
|
-
const r =
|
|
13746
|
+
const r = yt(e.length), s = ({ label: i, value: a }, l) => {
|
|
13747
13747
|
let c = "w-16 h-fit text-center py-0 px-2 border border-gray-300 w-fit text-center";
|
|
13748
13748
|
if (n === a && (c = Ze(c, "bg-blue-200 text-blue-500", t == null ? void 0 : t.picked)), t) {
|
|
13749
13749
|
const { tab: u, left: p, mid: d, right: f } = t;
|
|
@@ -13870,21 +13870,27 @@ function ZN({
|
|
|
13870
13870
|
className: o = "",
|
|
13871
13871
|
rows: n = 2
|
|
13872
13872
|
}) {
|
|
13873
|
-
const
|
|
13874
|
-
|
|
13873
|
+
const r = yt(null);
|
|
13874
|
+
Je(() => {
|
|
13875
|
+
var l;
|
|
13876
|
+
(l = r.current) == null || l.focus();
|
|
13877
|
+
}, []);
|
|
13878
|
+
const [s, i] = ot(""), a = () => {
|
|
13879
|
+
s.trim() && (e(s), i(""));
|
|
13875
13880
|
};
|
|
13876
13881
|
return /* @__PURE__ */ v.jsxs("div", { className: `relative w-full ${o}`, children: [
|
|
13877
13882
|
/* @__PURE__ */ v.jsx(
|
|
13878
13883
|
"textarea",
|
|
13879
13884
|
{
|
|
13885
|
+
ref: r,
|
|
13880
13886
|
className: "w-full border rounded px-2 py-1 pr-10",
|
|
13881
|
-
value:
|
|
13882
|
-
onChange: (
|
|
13887
|
+
value: s,
|
|
13888
|
+
onChange: (l) => i(l.target.value),
|
|
13883
13889
|
rows: n,
|
|
13884
13890
|
placeholder: t
|
|
13885
13891
|
}
|
|
13886
13892
|
),
|
|
13887
|
-
/* @__PURE__ */ v.jsx("div", { className: "absolute right-2 top-1/2", children: /* @__PURE__ */ v.jsx(NT, { onClick:
|
|
13893
|
+
/* @__PURE__ */ v.jsx("div", { className: "absolute right-2 top-1/2", children: /* @__PURE__ */ v.jsx(NT, { onClick: a, isHighlighted: !!s.trim(), className: "cursor-pointer" }) })
|
|
13888
13894
|
] });
|
|
13889
13895
|
}
|
|
13890
13896
|
var ri = { exports: {} }, SC = ri.exports, Af;
|
|
@@ -14888,12 +14894,12 @@ function iw(e, t) {
|
|
|
14888
14894
|
const o = Qc(e), n = Qc(t);
|
|
14889
14895
|
return (Math.max(o, n) + 0.05) / (Math.min(o, n) + 0.05);
|
|
14890
14896
|
}
|
|
14891
|
-
function
|
|
14897
|
+
function gt(e, t) {
|
|
14892
14898
|
return e = Yn(e), t = Zu(t), (e.type === "rgb" || e.type === "hsl") && (e.type += "a"), e.type === "color" ? e.values[3] = `/${t}` : e.values[3] = t, Ml(e);
|
|
14893
14899
|
}
|
|
14894
14900
|
function ya(e, t, o) {
|
|
14895
14901
|
try {
|
|
14896
|
-
return
|
|
14902
|
+
return gt(e, t);
|
|
14897
14903
|
} catch {
|
|
14898
14904
|
return e;
|
|
14899
14905
|
}
|
|
@@ -23857,7 +23863,7 @@ const dj = Ie("MuiPaper", ["root", "rounded", "outlined", "elevation", "elevatio
|
|
|
23857
23863
|
"--Paper-overlay": (f = r.vars.overlays) == null ? void 0 : f[a]
|
|
23858
23864
|
},
|
|
23859
23865
|
...!r.vars && r.palette.mode === "dark" && {
|
|
23860
|
-
"--Paper-overlay": `linear-gradient(${
|
|
23866
|
+
"--Paper-overlay": `linear-gradient(${gt("#fff", _c(a))}, ${gt("#fff", _c(a))})`
|
|
23861
23867
|
}
|
|
23862
23868
|
},
|
|
23863
23869
|
...u.style
|
|
@@ -25740,7 +25746,7 @@ const Em = Ie("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
|
|
|
25740
25746
|
variants: [{
|
|
25741
25747
|
props: (t) => !t.disableRipple,
|
|
25742
25748
|
style: {
|
|
25743
|
-
"--IconButton-hoverBg": e.vars ? `rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})` :
|
|
25749
|
+
"--IconButton-hoverBg": e.vars ? `rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})` : gt(e.palette.action.active, e.palette.action.hoverOpacity),
|
|
25744
25750
|
"&:hover": {
|
|
25745
25751
|
backgroundColor: "var(--IconButton-hoverBg)",
|
|
25746
25752
|
// Reset on touch devices, it doesn't add specificity
|
|
@@ -25802,7 +25808,7 @@ const Em = Ie("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
|
|
|
25802
25808
|
color: t
|
|
25803
25809
|
},
|
|
25804
25810
|
style: {
|
|
25805
|
-
"--IconButton-hoverBg": e.vars ? `rgba(${(e.vars || e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})` :
|
|
25811
|
+
"--IconButton-hoverBg": e.vars ? `rgba(${(e.vars || e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})` : gt((e.vars || e).palette[t].main, e.palette.action.hoverOpacity)
|
|
25806
25812
|
}
|
|
25807
25813
|
})), {
|
|
25808
25814
|
props: {
|
|
@@ -27778,15 +27784,15 @@ const sr = Ie("MuiButton", ["root", "text", "textInherit", "textPrimary", "textS
|
|
|
27778
27784
|
style: {
|
|
27779
27785
|
"--variant-textColor": (e.vars || e).palette[n].main,
|
|
27780
27786
|
"--variant-outlinedColor": (e.vars || e).palette[n].main,
|
|
27781
|
-
"--variant-outlinedBorder": e.vars ? `rgba(${e.vars.palette[n].mainChannel} / 0.5)` :
|
|
27787
|
+
"--variant-outlinedBorder": e.vars ? `rgba(${e.vars.palette[n].mainChannel} / 0.5)` : gt(e.palette[n].main, 0.5),
|
|
27782
27788
|
"--variant-containedColor": (e.vars || e).palette[n].contrastText,
|
|
27783
27789
|
"--variant-containedBg": (e.vars || e).palette[n].main,
|
|
27784
27790
|
"@media (hover: hover)": {
|
|
27785
27791
|
"&:hover": {
|
|
27786
27792
|
"--variant-containedBg": (e.vars || e).palette[n].dark,
|
|
27787
|
-
"--variant-textBg": e.vars ? `rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})` :
|
|
27793
|
+
"--variant-textBg": e.vars ? `rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})` : gt(e.palette[n].main, e.palette.action.hoverOpacity),
|
|
27788
27794
|
"--variant-outlinedBorder": (e.vars || e).palette[n].main,
|
|
27789
|
-
"--variant-outlinedBg": e.vars ? `rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})` :
|
|
27795
|
+
"--variant-outlinedBg": e.vars ? `rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})` : gt(e.palette[n].main, e.palette.action.hoverOpacity)
|
|
27790
27796
|
}
|
|
27791
27797
|
}
|
|
27792
27798
|
}
|
|
@@ -27801,8 +27807,8 @@ const sr = Ie("MuiButton", ["root", "text", "textInherit", "textPrimary", "textS
|
|
|
27801
27807
|
"@media (hover: hover)": {
|
|
27802
27808
|
"&:hover": {
|
|
27803
27809
|
"--variant-containedBg": e.vars ? e.vars.palette.Button.inheritContainedHoverBg : o,
|
|
27804
|
-
"--variant-textBg": e.vars ? `rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})` :
|
|
27805
|
-
"--variant-outlinedBg": e.vars ? `rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})` :
|
|
27810
|
+
"--variant-textBg": e.vars ? `rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})` : gt(e.palette.text.primary, e.palette.action.hoverOpacity),
|
|
27811
|
+
"--variant-outlinedBg": e.vars ? `rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})` : gt(e.palette.text.primary, e.palette.action.hoverOpacity)
|
|
27806
27812
|
}
|
|
27807
27813
|
}
|
|
27808
27814
|
}
|
|
@@ -30462,16 +30468,16 @@ const xj = Z(pn, {
|
|
|
30462
30468
|
}
|
|
30463
30469
|
},
|
|
30464
30470
|
[`&.${Ur.selected}`]: {
|
|
30465
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` :
|
|
30471
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : gt(e.palette.primary.main, e.palette.action.selectedOpacity),
|
|
30466
30472
|
[`&.${Ur.focusVisible}`]: {
|
|
30467
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` :
|
|
30473
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : gt(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.focusOpacity)
|
|
30468
30474
|
}
|
|
30469
30475
|
},
|
|
30470
30476
|
[`&.${Ur.selected}:hover`]: {
|
|
30471
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` :
|
|
30477
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` : gt(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
|
|
30472
30478
|
// Reset on touch devices, it doesn't add specificity
|
|
30473
30479
|
"@media (hover: none)": {
|
|
30474
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` :
|
|
30480
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : gt(e.palette.primary.main, e.palette.action.selectedOpacity)
|
|
30475
30481
|
}
|
|
30476
30482
|
},
|
|
30477
30483
|
[`&.${Ur.focusVisible}`]: {
|
|
@@ -30889,12 +30895,12 @@ const rt = Ie("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "co
|
|
|
30889
30895
|
},
|
|
30890
30896
|
[`& .${rt.deleteIcon}`]: {
|
|
30891
30897
|
WebkitTapHighlightColor: "transparent",
|
|
30892
|
-
color: e.vars ? `rgba(${e.vars.palette.text.primaryChannel} / 0.26)` :
|
|
30898
|
+
color: e.vars ? `rgba(${e.vars.palette.text.primaryChannel} / 0.26)` : gt(e.palette.text.primary, 0.26),
|
|
30893
30899
|
fontSize: 22,
|
|
30894
30900
|
cursor: "pointer",
|
|
30895
30901
|
margin: "0 5px 0 -6px",
|
|
30896
30902
|
"&:hover": {
|
|
30897
|
-
color: e.vars ? `rgba(${e.vars.palette.text.primaryChannel} / 0.4)` :
|
|
30903
|
+
color: e.vars ? `rgba(${e.vars.palette.text.primaryChannel} / 0.4)` : gt(e.palette.text.primary, 0.4)
|
|
30898
30904
|
}
|
|
30899
30905
|
},
|
|
30900
30906
|
variants: [{
|
|
@@ -30922,7 +30928,7 @@ const rt = Ie("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "co
|
|
|
30922
30928
|
backgroundColor: (e.vars || e).palette[o].main,
|
|
30923
30929
|
color: (e.vars || e).palette[o].contrastText,
|
|
30924
30930
|
[`& .${rt.deleteIcon}`]: {
|
|
30925
|
-
color: e.vars ? `rgba(${e.vars.palette[o].contrastTextChannel} / 0.7)` :
|
|
30931
|
+
color: e.vars ? `rgba(${e.vars.palette[o].contrastTextChannel} / 0.7)` : gt(e.palette[o].contrastText, 0.7),
|
|
30926
30932
|
"&:hover, &:active": {
|
|
30927
30933
|
color: (e.vars || e).palette[o].contrastText
|
|
30928
30934
|
}
|
|
@@ -30948,7 +30954,7 @@ const rt = Ie("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "co
|
|
|
30948
30954
|
},
|
|
30949
30955
|
style: {
|
|
30950
30956
|
[`&.${rt.focusVisible}`]: {
|
|
30951
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` :
|
|
30957
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : gt(e.palette.action.selected, e.palette.action.selectedOpacity + e.palette.action.focusOpacity)
|
|
30952
30958
|
}
|
|
30953
30959
|
}
|
|
30954
30960
|
}, ...Object.entries(e.palette).filter(bo(["dark"])).map(([o]) => ({
|
|
@@ -30970,10 +30976,10 @@ const rt = Ie("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "co
|
|
|
30970
30976
|
WebkitTapHighlightColor: "transparent",
|
|
30971
30977
|
cursor: "pointer",
|
|
30972
30978
|
"&:hover": {
|
|
30973
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` :
|
|
30979
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` : gt(e.palette.action.selected, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity)
|
|
30974
30980
|
},
|
|
30975
30981
|
[`&.${rt.focusVisible}`]: {
|
|
30976
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` :
|
|
30982
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : gt(e.palette.action.selected, e.palette.action.selectedOpacity + e.palette.action.focusOpacity)
|
|
30977
30983
|
},
|
|
30978
30984
|
"&:active": {
|
|
30979
30985
|
boxShadow: (e.vars || e).shadows[1]
|
|
@@ -31028,15 +31034,15 @@ const rt = Ie("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "co
|
|
|
31028
31034
|
},
|
|
31029
31035
|
style: {
|
|
31030
31036
|
color: (e.vars || e).palette[o].main,
|
|
31031
|
-
border: `1px solid ${e.vars ? `rgba(${e.vars.palette[o].mainChannel} / 0.7)` :
|
|
31037
|
+
border: `1px solid ${e.vars ? `rgba(${e.vars.palette[o].mainChannel} / 0.7)` : gt(e.palette[o].main, 0.7)}`,
|
|
31032
31038
|
[`&.${rt.clickable}:hover`]: {
|
|
31033
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette[o].mainChannel} / ${e.vars.palette.action.hoverOpacity})` :
|
|
31039
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette[o].mainChannel} / ${e.vars.palette.action.hoverOpacity})` : gt(e.palette[o].main, e.palette.action.hoverOpacity)
|
|
31034
31040
|
},
|
|
31035
31041
|
[`&.${rt.focusVisible}`]: {
|
|
31036
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette[o].mainChannel} / ${e.vars.palette.action.focusOpacity})` :
|
|
31042
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette[o].mainChannel} / ${e.vars.palette.action.focusOpacity})` : gt(e.palette[o].main, e.palette.action.focusOpacity)
|
|
31037
31043
|
},
|
|
31038
31044
|
[`& .${rt.deleteIcon}`]: {
|
|
31039
|
-
color: e.vars ? `rgba(${e.vars.palette[o].mainChannel} / 0.7)` :
|
|
31045
|
+
color: e.vars ? `rgba(${e.vars.palette[o].mainChannel} / 0.7)` : gt(e.palette[o].main, 0.7),
|
|
31040
31046
|
"&:hover, &:active": {
|
|
31041
31047
|
color: (e.vars || e).palette[o].main
|
|
31042
31048
|
}
|
|
@@ -32455,7 +32461,7 @@ const ny = Ie("MuiDivider", ["root", "absolute", "fullWidth", "inset", "middle",
|
|
|
32455
32461
|
light: !0
|
|
32456
32462
|
},
|
|
32457
32463
|
style: {
|
|
32458
|
-
borderColor: e.vars ? `rgba(${e.vars.palette.dividerChannel} / 0.08)` :
|
|
32464
|
+
borderColor: e.vars ? `rgba(${e.vars.palette.dividerChannel} / 0.08)` : gt(e.palette.divider, 0.08)
|
|
32459
32465
|
}
|
|
32460
32466
|
}, {
|
|
32461
32467
|
props: {
|
|
@@ -32749,16 +32755,16 @@ const $s = Ie("MuiMenuItem", ["root", "focusVisible", "dense", "disabled", "divi
|
|
|
32749
32755
|
}
|
|
32750
32756
|
},
|
|
32751
32757
|
[`&.${$s.selected}`]: {
|
|
32752
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` :
|
|
32758
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : gt(e.palette.primary.main, e.palette.action.selectedOpacity),
|
|
32753
32759
|
[`&.${$s.focusVisible}`]: {
|
|
32754
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` :
|
|
32760
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : gt(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.focusOpacity)
|
|
32755
32761
|
}
|
|
32756
32762
|
},
|
|
32757
32763
|
[`&.${$s.selected}:hover`]: {
|
|
32758
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` :
|
|
32764
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` : gt(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
|
|
32759
32765
|
// Reset on touch devices, it doesn't add specificity
|
|
32760
32766
|
"@media (hover: none)": {
|
|
32761
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` :
|
|
32767
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : gt(e.palette.primary.main, e.palette.action.selectedOpacity)
|
|
32762
32768
|
}
|
|
32763
32769
|
},
|
|
32764
32770
|
[`&.${$s.focusVisible}`]: {
|
|
@@ -41679,7 +41685,7 @@ function ZD(e, t) {
|
|
|
41679
41685
|
}
|
|
41680
41686
|
const _l = T.createContext(null);
|
|
41681
41687
|
function YD(e, t, o) {
|
|
41682
|
-
const n = xr(ED), [r, s] = ot(null), i =
|
|
41688
|
+
const n = xr(ED), [r, s] = ot(null), i = yt(), { current: a } = yt({ mapLib: null, map: null });
|
|
41683
41689
|
Je(() => {
|
|
41684
41690
|
const u = e.mapLib;
|
|
41685
41691
|
let p = !0, d;
|
|
@@ -41734,7 +41740,7 @@ function Or(e, t) {
|
|
|
41734
41740
|
}
|
|
41735
41741
|
}
|
|
41736
41742
|
function JD(e, t) {
|
|
41737
|
-
const { map: o, mapLib: n } = xr(_l), r =
|
|
41743
|
+
const { map: o, mapLib: n } = xr(_l), r = yt({ props: e });
|
|
41738
41744
|
r.current.props = e;
|
|
41739
41745
|
const s = Ho(() => {
|
|
41740
41746
|
let y = !1;
|
|
@@ -41779,7 +41785,7 @@ function Ty(e) {
|
|
|
41779
41785
|
return new Set(e ? e.trim().split(/\s+/) : []);
|
|
41780
41786
|
}
|
|
41781
41787
|
function QD(e, t) {
|
|
41782
|
-
const { map: o, mapLib: n } = xr(_l), r = Ho(() => document.createElement("div"), []), s =
|
|
41788
|
+
const { map: o, mapLib: n } = xr(_l), r = Ho(() => document.createElement("div"), []), s = yt({ props: e });
|
|
41783
41789
|
s.current.props = e;
|
|
41784
41790
|
const i = Ho(() => {
|
|
41785
41791
|
const a = { ...e }, l = new n.Popup(a);
|
|
@@ -41837,7 +41843,7 @@ function KD(e) {
|
|
|
41837
41843
|
}
|
|
41838
41844
|
const Qj = Cr(KD);
|
|
41839
41845
|
function _D(e, t) {
|
|
41840
|
-
const o =
|
|
41846
|
+
const o = yt({ props: e }), n = ia(({ mapLib: r }) => {
|
|
41841
41847
|
const s = new r.GeolocateControl(e), i = s._setupUI;
|
|
41842
41848
|
return s._setupUI = (a) => {
|
|
41843
41849
|
s._container.hasChildNodes() || i(a);
|
|
@@ -41875,7 +41881,7 @@ const tE = Cr(eE);
|
|
|
41875
41881
|
function oE(e) {
|
|
41876
41882
|
const t = ia(({ mapLib: s }) => new s.ScaleControl(e), {
|
|
41877
41883
|
position: e.position
|
|
41878
|
-
}), o =
|
|
41884
|
+
}), o = yt(e), n = o.current;
|
|
41879
41885
|
o.current = e;
|
|
41880
41886
|
const { style: r } = e;
|
|
41881
41887
|
return e.maxWidth !== void 0 && e.maxWidth !== n.maxWidth && (t.options.maxWidth = e.maxWidth), e.unit !== void 0 && e.unit !== n.unit && t.setUnit(e.unit), Je(() => {
|
|
@@ -41883,7 +41889,7 @@ function oE(e) {
|
|
|
41883
41889
|
}, [r]), null;
|
|
41884
41890
|
}
|
|
41885
41891
|
const Kj = Cr(oE);
|
|
41886
|
-
const nE = import("./mapbox-gl-
|
|
41892
|
+
const nE = import("./mapbox-gl-B1zK3TQb.mjs").then((e) => e.m), rE = T.forwardRef(function(t, o) {
|
|
41887
41893
|
return YD(t, o, nE);
|
|
41888
41894
|
}), kb = XD;
|
|
41889
41895
|
const sE = tE;
|
|
@@ -41900,7 +41906,7 @@ const _j = ({
|
|
|
41900
41906
|
mapStyle: r,
|
|
41901
41907
|
navigationControl: s
|
|
41902
41908
|
}) => {
|
|
41903
|
-
const i =
|
|
41909
|
+
const i = yt(null), [a, l] = ot({
|
|
41904
41910
|
longitude: e,
|
|
41905
41911
|
latitude: t,
|
|
41906
41912
|
zoom: 10
|
|
@@ -42813,7 +42819,7 @@ function Bb(e = GE) {
|
|
|
42813
42819
|
var Zr = { tooltip: "core-styles-module_tooltip__3vRRp", fixed: "core-styles-module_fixed__pcSol", arrow: "core-styles-module_arrow__cvMwQ", noArrow: "core-styles-module_noArrow__xock6", clickable: "core-styles-module_clickable__ZuTTB", show: "core-styles-module_show__Nt9eE", closing: "core-styles-module_closing__sGnxF" }, Oc = { tooltip: "styles-module_tooltip__mnnfp", arrow: "styles-module_arrow__K0L3T", dark: "styles-module_dark__xNqje", light: "styles-module_light__Z6W-X", success: "styles-module_success__A2AKt", warning: "styles-module_warning__SCK0X", error: "styles-module_error__JvumD", info: "styles-module_info__BWdHW" };
|
|
42814
42820
|
const HE = ({ forwardRef: e, id: t, className: o, classNameArrow: n, variant: r = "dark", anchorId: s, anchorSelect: i, place: a = "top", offset: l = 10, events: c = ["hover"], openOnClick: u = !1, positionStrategy: p = "absolute", middlewares: d, wrapper: f, delayShow: m = 0, delayHide: y = 0, float: h = !1, hidden: g = !1, noArrow: C = !1, clickable: w = !1, closeOnEsc: P = !1, closeOnScroll: I = !1, closeOnResize: A = !1, openEvents: N, closeEvents: E, globalCloseEvents: B, imperativeModeOnly: x, style: j, position: M, afterShow: F, afterHide: D, disableTooltip: S, content: O, contentWrapperRef: k, isOpen: R, defaultIsOpen: V = !1, setIsOpen: H, activeAnchor: W, setActiveAnchor: U, border: Y, opacity: K, arrowColor: X, arrowSize: ee = 8, role: Q = "tooltip" }) => {
|
|
42815
42821
|
var de;
|
|
42816
|
-
const ie =
|
|
42822
|
+
const ie = yt(null), $ = yt(null), J = yt(null), _ = yt(null), te = yt(null), [ue, be] = ot({ tooltipStyles: {}, tooltipArrowStyles: {}, place: a }), [le, ye] = ot(!1), [re, pe] = ot(!1), [L, G] = ot(null), q = yt(!1), ne = yt(null), { anchorRefs: se, setActiveAnchor: ce } = Bb(t), me = yt(!1), [De, Ve] = ot([]), Se = yt(!1), Ge = u || c.includes("click"), Ae = Ge || (N == null ? void 0 : N.click) || (N == null ? void 0 : N.dblclick) || (N == null ? void 0 : N.mousedown), Xe = N ? { ...N } : { mouseover: !0, focus: !0, mouseenter: !1, click: !1, dblclick: !1, mousedown: !1 };
|
|
42817
42823
|
!N && Ge && Object.assign(Xe, { mouseenter: !1, focus: !1, mouseover: !1, click: !0 });
|
|
42818
42824
|
const nt = E ? { ...E } : { mouseout: !0, blur: !0, mouseleave: !1, click: !1, dblclick: !1, mouseup: !1 };
|
|
42819
42825
|
!E && Ge && Object.assign(nt, { mouseleave: !1, blur: !1, mouseout: !1 });
|
|
@@ -42896,8 +42902,8 @@ const HE = ({ forwardRef: e, id: t, className: o, classNameArrow: n, variant: r
|
|
|
42896
42902
|
Je(() => {
|
|
42897
42903
|
var fe, xe;
|
|
42898
42904
|
const Ee = new Set(se);
|
|
42899
|
-
De.forEach((
|
|
42900
|
-
S != null && S(
|
|
42905
|
+
De.forEach((ht) => {
|
|
42906
|
+
S != null && S(ht) || Ee.add({ current: ht });
|
|
42901
42907
|
});
|
|
42902
42908
|
const ft = document.querySelector(`[id='${s}']`);
|
|
42903
42909
|
ft && !(S != null && S(ft)) && Ee.add({ current: ft });
|
|
@@ -42907,33 +42913,33 @@ const HE = ({ forwardRef: e, id: t, className: o, classNameArrow: n, variant: r
|
|
|
42907
42913
|
Ke.scroll && (window.addEventListener("scroll", St), $t == null || $t.addEventListener("scroll", St), mo == null || mo.addEventListener("scroll", St));
|
|
42908
42914
|
let Gt = null;
|
|
42909
42915
|
Ke.resize ? window.addEventListener("resize", St) : W && ie.current && (Gt = OE(W, ie.current, We, { ancestorResize: !0, elementResize: !0, layoutShift: !0 }));
|
|
42910
|
-
const wo = (
|
|
42911
|
-
|
|
42916
|
+
const wo = (ht) => {
|
|
42917
|
+
ht.key === "Escape" && Qe(!1);
|
|
42912
42918
|
};
|
|
42913
42919
|
Ke.escape && window.addEventListener("keydown", wo), Ke.clickOutsideAnchor && window.addEventListener("click", yn);
|
|
42914
|
-
const At = [], Rr = (
|
|
42915
|
-
le && Rr(
|
|
42916
|
-
}, Gb = (
|
|
42917
|
-
le && Rr(
|
|
42920
|
+
const At = [], Rr = (ht) => !!(ht != null && ht.target && (W != null && W.contains(ht.target))), Vb = (ht) => {
|
|
42921
|
+
le && Rr(ht) || ut(ht);
|
|
42922
|
+
}, Gb = (ht) => {
|
|
42923
|
+
le && Rr(ht) && Ot();
|
|
42918
42924
|
}, td = ["mouseover", "mouseout", "mouseenter", "mouseleave", "focus", "blur"], od = ["click", "dblclick", "mousedown", "mouseup"];
|
|
42919
|
-
Object.entries(Xe).forEach(([
|
|
42920
|
-
hn && (td.includes(
|
|
42921
|
-
}), Object.entries(nt).forEach(([
|
|
42922
|
-
hn && (td.includes(
|
|
42925
|
+
Object.entries(Xe).forEach(([ht, hn]) => {
|
|
42926
|
+
hn && (td.includes(ht) ? At.push({ event: ht, listener: no }) : od.includes(ht) && At.push({ event: ht, listener: Vb }));
|
|
42927
|
+
}), Object.entries(nt).forEach(([ht, hn]) => {
|
|
42928
|
+
hn && (td.includes(ht) ? At.push({ event: ht, listener: He }) : od.includes(ht) && At.push({ event: ht, listener: Gb }));
|
|
42923
42929
|
}), h && At.push({ event: "pointermove", listener: Rt });
|
|
42924
42930
|
const nd = () => {
|
|
42925
42931
|
me.current = !0;
|
|
42926
42932
|
}, rd = () => {
|
|
42927
42933
|
me.current = !1, Ot();
|
|
42928
42934
|
}, sd = w && (nt.mouseout || nt.mouseleave);
|
|
42929
|
-
return sd && ((fe = ie.current) === null || fe === void 0 || fe.addEventListener("mouseover", nd), (xe = ie.current) === null || xe === void 0 || xe.addEventListener("mouseout", rd)), At.forEach(({ event:
|
|
42935
|
+
return sd && ((fe = ie.current) === null || fe === void 0 || fe.addEventListener("mouseover", nd), (xe = ie.current) === null || xe === void 0 || xe.addEventListener("mouseout", rd)), At.forEach(({ event: ht, listener: hn }) => {
|
|
42930
42936
|
Ee.forEach((ec) => {
|
|
42931
42937
|
var Rs;
|
|
42932
|
-
(Rs = ec.current) === null || Rs === void 0 || Rs.addEventListener(
|
|
42938
|
+
(Rs = ec.current) === null || Rs === void 0 || Rs.addEventListener(ht, hn);
|
|
42933
42939
|
});
|
|
42934
42940
|
}), () => {
|
|
42935
|
-
var
|
|
42936
|
-
Ke.scroll && (window.removeEventListener("scroll", St), $t == null || $t.removeEventListener("scroll", St), mo == null || mo.removeEventListener("scroll", St)), Ke.resize ? window.removeEventListener("resize", St) : Gt == null || Gt(), Ke.clickOutsideAnchor && window.removeEventListener("click", yn), Ke.escape && window.removeEventListener("keydown", wo), sd && ((
|
|
42941
|
+
var ht, hn;
|
|
42942
|
+
Ke.scroll && (window.removeEventListener("scroll", St), $t == null || $t.removeEventListener("scroll", St), mo == null || mo.removeEventListener("scroll", St)), Ke.resize ? window.removeEventListener("resize", St) : Gt == null || Gt(), Ke.clickOutsideAnchor && window.removeEventListener("click", yn), Ke.escape && window.removeEventListener("keydown", wo), sd && ((ht = ie.current) === null || ht === void 0 || ht.removeEventListener("mouseover", nd), (hn = ie.current) === null || hn === void 0 || hn.removeEventListener("mouseout", rd)), At.forEach(({ event: ec, listener: Rs }) => {
|
|
42937
42943
|
Ee.forEach((Wb) => {
|
|
42938
42944
|
var tc;
|
|
42939
42945
|
(tc = Wb.current) === null || tc === void 0 || tc.removeEventListener(ec, Rs);
|
|
@@ -43012,7 +43018,7 @@ const HE = ({ forwardRef: e, id: t, className: o, classNameArrow: n, variant: r
|
|
|
43012
43018
|
ko(te), le || fe.propertyName !== "opacity" || (pe(!1), G(null), D == null || D());
|
|
43013
43019
|
}, style: { ...j, ...ue.tooltipStyles, opacity: K !== void 0 && ke ? K : void 0 }, ref: ie }, ge, ze.createElement(f, { className: mu("react-tooltip-arrow", Zr.arrow, Oc.arrow, n, C && Zr.noArrow), style: { ...ue.tooltipArrowStyles, background: X ? `linear-gradient(to right bottom, transparent 50%, ${X} 50%)` : void 0, "--rt-arrow-size": `${ee}px` }, ref: $ })) : null;
|
|
43014
43020
|
}, ZE = ({ content: e }) => ze.createElement("span", { dangerouslySetInnerHTML: { __html: e } }), YE = ze.forwardRef(({ id: e, anchorId: t, anchorSelect: o, content: n, html: r, render: s, className: i, classNameArrow: a, variant: l = "dark", place: c = "top", offset: u = 10, wrapper: p = "div", children: d = null, events: f = ["hover"], openOnClick: m = !1, positionStrategy: y = "absolute", middlewares: h, delayShow: g = 0, delayHide: C = 0, float: w = !1, hidden: P = !1, noArrow: I = !1, clickable: A = !1, closeOnEsc: N = !1, closeOnScroll: E = !1, closeOnResize: B = !1, openEvents: x, closeEvents: j, globalCloseEvents: M, imperativeModeOnly: F = !1, style: D, position: S, isOpen: O, defaultIsOpen: k = !1, disableStyleInjection: R = !1, border: V, opacity: H, arrowColor: W, arrowSize: U, setIsOpen: Y, afterShow: K, afterHide: X, disableTooltip: ee, role: Q = "tooltip" }, de) => {
|
|
43015
|
-
const [ie, $] = ot(n), [J, _] = ot(r), [te, ue] = ot(c), [be, le] = ot(l), [ye, re] = ot(u), [pe, L] = ot(g), [G, q] = ot(C), [ne, se] = ot(w), [ce, me] = ot(P), [De, Ve] = ot(p), [Se, Ge] = ot(f), [Ae, Xe] = ot(y), [nt, Ke] = ot(null), [Qe, Ce] = ot(null), we =
|
|
43021
|
+
const [ie, $] = ot(n), [J, _] = ot(r), [te, ue] = ot(c), [be, le] = ot(l), [ye, re] = ot(u), [pe, L] = ot(g), [G, q] = ot(C), [ne, se] = ot(w), [ce, me] = ot(P), [De, Ve] = ot(p), [Se, Ge] = ot(f), [Ae, Xe] = ot(y), [nt, Ke] = ot(null), [Qe, Ce] = ot(null), we = yt(R), { anchorRefs: Ue, activeAnchor: ut } = Bb(e), Ot = (Dt) => Dt == null ? void 0 : Dt.getAttributeNames().reduce((no, He) => {
|
|
43016
43022
|
var We;
|
|
43017
43023
|
return He.startsWith("data-tooltip-") && (no[He.replace(/^data-tooltip-/, "")] = (We = Dt == null ? void 0 : Dt.getAttribute(He)) !== null && We !== void 0 ? We : null), no;
|
|
43018
43024
|
}, {}), fo = (Dt) => {
|
|
@@ -43109,7 +43115,7 @@ const HE = ({ forwardRef: e, id: t, className: o, classNameArrow: n, variant: r
|
|
|
43109
43115
|
D != null && D.border && console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."), V && !ky("border", `${V}`) && console.warn(`[react-tooltip] "${V}" is not a valid \`border\`.`), D != null && D.opacity && console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."), H && !ky("opacity", `${H}`) && console.warn(`[react-tooltip] "${H}" is not a valid \`opacity\`.`);
|
|
43110
43116
|
}, []);
|
|
43111
43117
|
let Rt = d;
|
|
43112
|
-
const yn =
|
|
43118
|
+
const yn = yt(null);
|
|
43113
43119
|
if (s) {
|
|
43114
43120
|
const Dt = s({ content: (Qe == null ? void 0 : Qe.getAttribute("data-tooltip-content")) || ie || null, activeAnchor: Qe });
|
|
43115
43121
|
Rt = Dt ? ze.createElement("div", { ref: yn, className: "react-tooltip-content-wrapper" }, Dt) : null;
|
package/dist/index.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export { default as NavArrows } from './NavArrows';
|
|
|
16
16
|
export { default as NotFound } from './NotFound';
|
|
17
17
|
export { default as H1 } from './H1';
|
|
18
18
|
export { default as Autocomplete } from './Autocomplete';
|
|
19
|
-
export { default as
|
|
19
|
+
export { default as CommentEditor } from './CommentEditor';
|
|
20
20
|
export { SvgSize } from 'wasvg';
|
|
21
21
|
export * from './expandableContainer';
|
|
22
22
|
export * from './loadingIndicator';
|