@automattic/charts 1.1.1 → 1.2.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/AGENTS.md +2 -2
- package/CHANGELOG.md +11 -0
- package/dist/index.cjs +219 -161
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +50 -56
- package/dist/index.css.map +1 -1
- package/dist/index.js +221 -163
- package/dist/index.js.map +1 -1
- package/package.json +10 -10
- package/src/charts/conversion-funnel-chart/conversion-funnel-chart.module.scss +25 -31
- package/src/charts/conversion-funnel-chart/conversion-funnel-chart.tsx +4 -2
- package/src/charts/leaderboard-chart/leaderboard-chart.module.scss +7 -3
- package/src/charts/line-chart/line-chart.module.scss +13 -10
- package/src/charts/pie-semi-circle-chart/pie-semi-circle-chart.module.scss +3 -3
- package/src/charts/private/svg-empty-state/svg-empty-state.module.scss +1 -1
- package/src/components/legend/private/base-legend.module.scss +3 -3
- package/src/components/tooltip/base-tooltip.module.scss +3 -3
- package/src/components/trend-indicator/trend-indicator.module.scss +2 -2
package/dist/index.js
CHANGED
|
@@ -1630,7 +1630,106 @@ import { Group } from "@visx/group";
|
|
|
1630
1630
|
import { LegendItem, LegendLabel, LegendOrdinal, LegendShape } from "@visx/legend";
|
|
1631
1631
|
import { scaleOrdinal } from "@visx/scale";
|
|
1632
1632
|
|
|
1633
|
-
// ../../../node_modules/.pnpm/@
|
|
1633
|
+
// ../../../node_modules/.pnpm/@wordpress+element@6.44.0/node_modules/@wordpress/element/build-module/react.mjs
|
|
1634
|
+
import {
|
|
1635
|
+
Children,
|
|
1636
|
+
cloneElement,
|
|
1637
|
+
Component,
|
|
1638
|
+
createContext as createContext3,
|
|
1639
|
+
createElement,
|
|
1640
|
+
createRef,
|
|
1641
|
+
forwardRef,
|
|
1642
|
+
Fragment,
|
|
1643
|
+
isValidElement,
|
|
1644
|
+
memo,
|
|
1645
|
+
PureComponent,
|
|
1646
|
+
StrictMode,
|
|
1647
|
+
useCallback as useCallback4,
|
|
1648
|
+
useContext as useContext4,
|
|
1649
|
+
useDebugValue,
|
|
1650
|
+
useDeferredValue,
|
|
1651
|
+
useEffect as useEffect5,
|
|
1652
|
+
useId as useId2,
|
|
1653
|
+
useMemo as useMemo9,
|
|
1654
|
+
useImperativeHandle,
|
|
1655
|
+
useInsertionEffect,
|
|
1656
|
+
useLayoutEffect as useLayoutEffect2,
|
|
1657
|
+
useReducer,
|
|
1658
|
+
useRef as useRef5,
|
|
1659
|
+
useState as useState5,
|
|
1660
|
+
useSyncExternalStore,
|
|
1661
|
+
useTransition,
|
|
1662
|
+
startTransition,
|
|
1663
|
+
lazy,
|
|
1664
|
+
Suspense
|
|
1665
|
+
} from "react";
|
|
1666
|
+
|
|
1667
|
+
// ../../../node_modules/.pnpm/is-plain-object@5.0.0/node_modules/is-plain-object/dist/is-plain-object.mjs
|
|
1668
|
+
function isObject(o) {
|
|
1669
|
+
return Object.prototype.toString.call(o) === "[object Object]";
|
|
1670
|
+
}
|
|
1671
|
+
function isPlainObject(o) {
|
|
1672
|
+
var ctor, prot;
|
|
1673
|
+
if (isObject(o) === false) return false;
|
|
1674
|
+
ctor = o.constructor;
|
|
1675
|
+
if (ctor === void 0) return true;
|
|
1676
|
+
prot = ctor.prototype;
|
|
1677
|
+
if (isObject(prot) === false) return false;
|
|
1678
|
+
if (prot.hasOwnProperty("isPrototypeOf") === false) {
|
|
1679
|
+
return false;
|
|
1680
|
+
}
|
|
1681
|
+
return true;
|
|
1682
|
+
}
|
|
1683
|
+
|
|
1684
|
+
// ../../../node_modules/.pnpm/lower-case@2.0.2/node_modules/lower-case/dist.es2015/index.js
|
|
1685
|
+
function lowerCase(str) {
|
|
1686
|
+
return str.toLowerCase();
|
|
1687
|
+
}
|
|
1688
|
+
|
|
1689
|
+
// ../../../node_modules/.pnpm/no-case@3.0.4/node_modules/no-case/dist.es2015/index.js
|
|
1690
|
+
var DEFAULT_SPLIT_REGEXP = [/([a-z0-9])([A-Z])/g, /([A-Z])([A-Z][a-z])/g];
|
|
1691
|
+
var DEFAULT_STRIP_REGEXP = /[^A-Z0-9]+/gi;
|
|
1692
|
+
function noCase(input, options) {
|
|
1693
|
+
if (options === void 0) {
|
|
1694
|
+
options = {};
|
|
1695
|
+
}
|
|
1696
|
+
var _a = options.splitRegexp, splitRegexp = _a === void 0 ? DEFAULT_SPLIT_REGEXP : _a, _b = options.stripRegexp, stripRegexp = _b === void 0 ? DEFAULT_STRIP_REGEXP : _b, _c = options.transform, transform = _c === void 0 ? lowerCase : _c, _d = options.delimiter, delimiter2 = _d === void 0 ? " " : _d;
|
|
1697
|
+
var result = replace(replace(input, splitRegexp, "$1\0$2"), stripRegexp, "\0");
|
|
1698
|
+
var start = 0;
|
|
1699
|
+
var end = result.length;
|
|
1700
|
+
while (result.charAt(start) === "\0")
|
|
1701
|
+
start++;
|
|
1702
|
+
while (result.charAt(end - 1) === "\0")
|
|
1703
|
+
end--;
|
|
1704
|
+
return result.slice(start, end).split("\0").map(transform).join(delimiter2);
|
|
1705
|
+
}
|
|
1706
|
+
function replace(input, re, value) {
|
|
1707
|
+
if (re instanceof RegExp)
|
|
1708
|
+
return input.replace(re, value);
|
|
1709
|
+
return re.reduce(function(input2, re2) {
|
|
1710
|
+
return input2.replace(re2, value);
|
|
1711
|
+
}, input);
|
|
1712
|
+
}
|
|
1713
|
+
|
|
1714
|
+
// ../../../node_modules/.pnpm/dot-case@3.0.4/node_modules/dot-case/dist.es2015/index.js
|
|
1715
|
+
import { __assign } from "tslib";
|
|
1716
|
+
function dotCase(input, options) {
|
|
1717
|
+
if (options === void 0) {
|
|
1718
|
+
options = {};
|
|
1719
|
+
}
|
|
1720
|
+
return noCase(input, __assign({ delimiter: "." }, options));
|
|
1721
|
+
}
|
|
1722
|
+
|
|
1723
|
+
// ../../../node_modules/.pnpm/param-case@3.0.4/node_modules/param-case/dist.es2015/index.js
|
|
1724
|
+
import { __assign as __assign2 } from "tslib";
|
|
1725
|
+
function paramCase(input, options) {
|
|
1726
|
+
if (options === void 0) {
|
|
1727
|
+
options = {};
|
|
1728
|
+
}
|
|
1729
|
+
return dotCase(input, __assign2({ delimiter: "-" }, options));
|
|
1730
|
+
}
|
|
1731
|
+
|
|
1732
|
+
// ../../../node_modules/.pnpm/@base-ui+utils@0.2.7_@types+react@18.3.28_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/utils/esm/useRefWithInit.js
|
|
1634
1733
|
import * as React from "react";
|
|
1635
1734
|
var UNINITIALIZED = {};
|
|
1636
1735
|
function useRefWithInit(init, initArg) {
|
|
@@ -1641,7 +1740,7 @@ function useRefWithInit(init, initArg) {
|
|
|
1641
1740
|
return ref;
|
|
1642
1741
|
}
|
|
1643
1742
|
|
|
1644
|
-
// ../../../node_modules/.pnpm/@base-ui+utils@0.2.
|
|
1743
|
+
// ../../../node_modules/.pnpm/@base-ui+utils@0.2.7_@types+react@18.3.28_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/utils/esm/warn.js
|
|
1645
1744
|
var set;
|
|
1646
1745
|
if (process.env.NODE_ENV !== "production") {
|
|
1647
1746
|
set = /* @__PURE__ */ new Set();
|
|
@@ -1656,7 +1755,7 @@ function warn(...messages) {
|
|
|
1656
1755
|
}
|
|
1657
1756
|
}
|
|
1658
1757
|
|
|
1659
|
-
// ../../../node_modules/.pnpm/@base-ui+utils@0.2.
|
|
1758
|
+
// ../../../node_modules/.pnpm/@base-ui+utils@0.2.7_@types+react@18.3.28_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/utils/esm/formatErrorMessage.js
|
|
1660
1759
|
function createFormatErrorMessage(baseUrl, prefix2) {
|
|
1661
1760
|
return function formatErrorMessage2(code, ...args) {
|
|
1662
1761
|
const url = new URL(baseUrl);
|
|
@@ -1668,10 +1767,10 @@ function createFormatErrorMessage(baseUrl, prefix2) {
|
|
|
1668
1767
|
var formatErrorMessage = createFormatErrorMessage("https://base-ui.com/production-error", "Base UI");
|
|
1669
1768
|
var formatErrorMessage_default = formatErrorMessage;
|
|
1670
1769
|
|
|
1671
|
-
// ../../../node_modules/.pnpm/@base-ui+react@1.
|
|
1770
|
+
// ../../../node_modules/.pnpm/@base-ui+react@1.4.0_@date-fns+tz@1.4.1_@types+react@18.3.28_date-fns@4.1.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/esm/utils/useRenderElement.js
|
|
1672
1771
|
import * as React4 from "react";
|
|
1673
1772
|
|
|
1674
|
-
// ../../../node_modules/.pnpm/@base-ui+utils@0.2.
|
|
1773
|
+
// ../../../node_modules/.pnpm/@base-ui+utils@0.2.7_@types+react@18.3.28_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/utils/esm/useMergedRefs.js
|
|
1675
1774
|
function useMergedRefs(a, b, c, d) {
|
|
1676
1775
|
const forkRef = useRefWithInit(createForkRef).current;
|
|
1677
1776
|
if (didChange(forkRef, a, b, c, d)) {
|
|
@@ -1760,17 +1859,17 @@ function update(forkRef, refs) {
|
|
|
1760
1859
|
};
|
|
1761
1860
|
}
|
|
1762
1861
|
|
|
1763
|
-
// ../../../node_modules/.pnpm/@base-ui+utils@0.2.
|
|
1862
|
+
// ../../../node_modules/.pnpm/@base-ui+utils@0.2.7_@types+react@18.3.28_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/utils/esm/getReactElementRef.js
|
|
1764
1863
|
import * as React3 from "react";
|
|
1765
1864
|
|
|
1766
|
-
// ../../../node_modules/.pnpm/@base-ui+utils@0.2.
|
|
1865
|
+
// ../../../node_modules/.pnpm/@base-ui+utils@0.2.7_@types+react@18.3.28_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/utils/esm/reactVersion.js
|
|
1767
1866
|
import * as React2 from "react";
|
|
1768
1867
|
var majorVersion = parseInt(React2.version, 10);
|
|
1769
1868
|
function isReactVersionAtLeast(reactVersionToCheck) {
|
|
1770
1869
|
return majorVersion >= reactVersionToCheck;
|
|
1771
1870
|
}
|
|
1772
1871
|
|
|
1773
|
-
// ../../../node_modules/.pnpm/@base-ui+utils@0.2.
|
|
1872
|
+
// ../../../node_modules/.pnpm/@base-ui+utils@0.2.7_@types+react@18.3.28_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/utils/esm/getReactElementRef.js
|
|
1774
1873
|
function getReactElementRef(element) {
|
|
1775
1874
|
if (!/* @__PURE__ */ React3.isValidElement(element)) {
|
|
1776
1875
|
return null;
|
|
@@ -1780,7 +1879,7 @@ function getReactElementRef(element) {
|
|
|
1780
1879
|
return (isReactVersionAtLeast(19) ? propsWithRef?.ref : reactElement.ref) ?? null;
|
|
1781
1880
|
}
|
|
1782
1881
|
|
|
1783
|
-
// ../../../node_modules/.pnpm/@base-ui+utils@0.2.
|
|
1882
|
+
// ../../../node_modules/.pnpm/@base-ui+utils@0.2.7_@types+react@18.3.28_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/utils/esm/mergeObjects.js
|
|
1784
1883
|
function mergeObjects(a, b) {
|
|
1785
1884
|
if (a && !b) {
|
|
1786
1885
|
return a;
|
|
@@ -1797,7 +1896,7 @@ function mergeObjects(a, b) {
|
|
|
1797
1896
|
return void 0;
|
|
1798
1897
|
}
|
|
1799
1898
|
|
|
1800
|
-
// ../../../node_modules/.pnpm/@base-ui+react@1.
|
|
1899
|
+
// ../../../node_modules/.pnpm/@base-ui+react@1.4.0_@date-fns+tz@1.4.1_@types+react@18.3.28_date-fns@4.1.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/esm/utils/getStateAttributesProps.js
|
|
1801
1900
|
function getStateAttributesProps(state, customMapping) {
|
|
1802
1901
|
const props = {};
|
|
1803
1902
|
for (const key in state) {
|
|
@@ -1818,33 +1917,34 @@ function getStateAttributesProps(state, customMapping) {
|
|
|
1818
1917
|
return props;
|
|
1819
1918
|
}
|
|
1820
1919
|
|
|
1821
|
-
// ../../../node_modules/.pnpm/@base-ui+react@1.
|
|
1920
|
+
// ../../../node_modules/.pnpm/@base-ui+react@1.4.0_@date-fns+tz@1.4.1_@types+react@18.3.28_date-fns@4.1.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/esm/utils/resolveClassName.js
|
|
1822
1921
|
function resolveClassName(className, state) {
|
|
1823
1922
|
return typeof className === "function" ? className(state) : className;
|
|
1824
1923
|
}
|
|
1825
1924
|
|
|
1826
|
-
// ../../../node_modules/.pnpm/@base-ui+react@1.
|
|
1925
|
+
// ../../../node_modules/.pnpm/@base-ui+react@1.4.0_@date-fns+tz@1.4.1_@types+react@18.3.28_date-fns@4.1.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/esm/utils/resolveStyle.js
|
|
1827
1926
|
function resolveStyle(style, state) {
|
|
1828
1927
|
return typeof style === "function" ? style(state) : style;
|
|
1829
1928
|
}
|
|
1830
1929
|
|
|
1831
|
-
// ../../../node_modules/.pnpm/@base-ui+react@1.
|
|
1930
|
+
// ../../../node_modules/.pnpm/@base-ui+react@1.4.0_@date-fns+tz@1.4.1_@types+react@18.3.28_date-fns@4.1.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/esm/merge-props/mergeProps.js
|
|
1832
1931
|
var EMPTY_PROPS = {};
|
|
1833
1932
|
function mergeProps(a, b, c, d, e) {
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
}
|
|
1933
|
+
if (!c && !d && !e && !a) {
|
|
1934
|
+
return createInitialMergedProps(b);
|
|
1935
|
+
}
|
|
1936
|
+
let merged = createInitialMergedProps(a);
|
|
1837
1937
|
if (b) {
|
|
1838
|
-
merged =
|
|
1938
|
+
merged = mergeInto(merged, b);
|
|
1839
1939
|
}
|
|
1840
1940
|
if (c) {
|
|
1841
|
-
merged =
|
|
1941
|
+
merged = mergeInto(merged, c);
|
|
1842
1942
|
}
|
|
1843
1943
|
if (d) {
|
|
1844
|
-
merged =
|
|
1944
|
+
merged = mergeInto(merged, d);
|
|
1845
1945
|
}
|
|
1846
1946
|
if (e) {
|
|
1847
|
-
merged =
|
|
1947
|
+
merged = mergeInto(merged, e);
|
|
1848
1948
|
}
|
|
1849
1949
|
return merged;
|
|
1850
1950
|
}
|
|
@@ -1853,22 +1953,40 @@ function mergePropsN(props) {
|
|
|
1853
1953
|
return EMPTY_PROPS;
|
|
1854
1954
|
}
|
|
1855
1955
|
if (props.length === 1) {
|
|
1856
|
-
return
|
|
1956
|
+
return createInitialMergedProps(props[0]);
|
|
1857
1957
|
}
|
|
1858
|
-
let merged =
|
|
1859
|
-
...resolvePropsGetter(props[0], EMPTY_PROPS)
|
|
1860
|
-
};
|
|
1958
|
+
let merged = createInitialMergedProps(props[0]);
|
|
1861
1959
|
for (let i = 1; i < props.length; i += 1) {
|
|
1862
|
-
merged =
|
|
1960
|
+
merged = mergeInto(merged, props[i]);
|
|
1863
1961
|
}
|
|
1864
1962
|
return merged;
|
|
1865
1963
|
}
|
|
1866
|
-
function
|
|
1964
|
+
function createInitialMergedProps(inputProps) {
|
|
1867
1965
|
if (isPropsGetter(inputProps)) {
|
|
1868
|
-
return
|
|
1966
|
+
return {
|
|
1967
|
+
...resolvePropsGetter(inputProps, EMPTY_PROPS)
|
|
1968
|
+
};
|
|
1969
|
+
}
|
|
1970
|
+
return copyInitialProps(inputProps);
|
|
1971
|
+
}
|
|
1972
|
+
function mergeInto(merged, inputProps) {
|
|
1973
|
+
if (isPropsGetter(inputProps)) {
|
|
1974
|
+
return resolvePropsGetter(inputProps, merged);
|
|
1869
1975
|
}
|
|
1870
1976
|
return mutablyMergeInto(merged, inputProps);
|
|
1871
1977
|
}
|
|
1978
|
+
function copyInitialProps(inputProps) {
|
|
1979
|
+
const copiedProps = {
|
|
1980
|
+
...inputProps
|
|
1981
|
+
};
|
|
1982
|
+
for (const propName in copiedProps) {
|
|
1983
|
+
const propValue = copiedProps[propName];
|
|
1984
|
+
if (isEventHandler(propName, propValue)) {
|
|
1985
|
+
copiedProps[propName] = wrapEventHandler(propValue);
|
|
1986
|
+
}
|
|
1987
|
+
}
|
|
1988
|
+
return copiedProps;
|
|
1989
|
+
}
|
|
1872
1990
|
function mutablyMergeInto(mergedProps, externalProps) {
|
|
1873
1991
|
if (!externalProps) {
|
|
1874
1992
|
return mergedProps;
|
|
@@ -1915,7 +2033,7 @@ function mergeEventHandlers(ourHandler, theirHandler) {
|
|
|
1915
2033
|
return ourHandler;
|
|
1916
2034
|
}
|
|
1917
2035
|
if (!ourHandler) {
|
|
1918
|
-
return theirHandler;
|
|
2036
|
+
return wrapEventHandler(theirHandler);
|
|
1919
2037
|
}
|
|
1920
2038
|
return (event) => {
|
|
1921
2039
|
if (isSyntheticEvent(event)) {
|
|
@@ -1932,6 +2050,17 @@ function mergeEventHandlers(ourHandler, theirHandler) {
|
|
|
1932
2050
|
return result;
|
|
1933
2051
|
};
|
|
1934
2052
|
}
|
|
2053
|
+
function wrapEventHandler(handler) {
|
|
2054
|
+
if (!handler) {
|
|
2055
|
+
return handler;
|
|
2056
|
+
}
|
|
2057
|
+
return (event) => {
|
|
2058
|
+
if (isSyntheticEvent(event)) {
|
|
2059
|
+
makeEventPreventable(event);
|
|
2060
|
+
}
|
|
2061
|
+
return handler(event);
|
|
2062
|
+
};
|
|
2063
|
+
}
|
|
1935
2064
|
function makeEventPreventable(event) {
|
|
1936
2065
|
event.preventBaseUIHandler = () => {
|
|
1937
2066
|
event.baseUIHandlerPrevented = true;
|
|
@@ -1951,17 +2080,17 @@ function isSyntheticEvent(event) {
|
|
|
1951
2080
|
return event != null && typeof event === "object" && "nativeEvent" in event;
|
|
1952
2081
|
}
|
|
1953
2082
|
|
|
1954
|
-
// ../../../node_modules/.pnpm/@base-ui+utils@0.2.
|
|
2083
|
+
// ../../../node_modules/.pnpm/@base-ui+utils@0.2.7_@types+react@18.3.28_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/utils/esm/empty.js
|
|
1955
2084
|
var EMPTY_ARRAY = Object.freeze([]);
|
|
1956
2085
|
var EMPTY_OBJECT = Object.freeze({});
|
|
1957
2086
|
|
|
1958
|
-
// ../../../node_modules/.pnpm/@base-ui+react@1.
|
|
2087
|
+
// ../../../node_modules/.pnpm/@base-ui+react@1.4.0_@date-fns+tz@1.4.1_@types+react@18.3.28_date-fns@4.1.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/esm/utils/constants.js
|
|
1959
2088
|
var BASE_UI_SWIPE_IGNORE_ATTRIBUTE = "data-base-ui-swipe-ignore";
|
|
1960
2089
|
var LEGACY_SWIPE_IGNORE_ATTRIBUTE = "data-swipe-ignore";
|
|
1961
2090
|
var BASE_UI_SWIPE_IGNORE_SELECTOR = `[${BASE_UI_SWIPE_IGNORE_ATTRIBUTE}]`;
|
|
1962
2091
|
var LEGACY_SWIPE_IGNORE_SELECTOR = `[${LEGACY_SWIPE_IGNORE_ATTRIBUTE}]`;
|
|
1963
2092
|
|
|
1964
|
-
// ../../../node_modules/.pnpm/@base-ui+react@1.
|
|
2093
|
+
// ../../../node_modules/.pnpm/@base-ui+react@1.4.0_@date-fns+tz@1.4.1_@types+react@18.3.28_date-fns@4.1.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/esm/utils/useRenderElement.js
|
|
1965
2094
|
import { createElement as _createElement } from "react";
|
|
1966
2095
|
function useRenderElement(element, componentProps, params = {}) {
|
|
1967
2096
|
const renderProp = componentProps.render;
|
|
@@ -1988,7 +2117,8 @@ function useRenderElementProps(componentProps, params = {}) {
|
|
|
1988
2117
|
const className = enabled ? resolveClassName(classNameProp, state) : void 0;
|
|
1989
2118
|
const style = enabled ? resolveStyle(styleProp, state) : void 0;
|
|
1990
2119
|
const stateProps = enabled ? getStateAttributesProps(state, stateAttributesMapping) : EMPTY_OBJECT;
|
|
1991
|
-
const
|
|
2120
|
+
const resolvedProps = enabled && props ? resolveRenderFunctionProps(props) : void 0;
|
|
2121
|
+
const outProps = enabled ? mergeObjects(stateProps, resolvedProps) ?? {} : EMPTY_OBJECT;
|
|
1992
2122
|
if (typeof document !== "undefined") {
|
|
1993
2123
|
if (!enabled) {
|
|
1994
2124
|
useMergedRefs(null, null);
|
|
@@ -2009,7 +2139,15 @@ function useRenderElementProps(componentProps, params = {}) {
|
|
|
2009
2139
|
}
|
|
2010
2140
|
return outProps;
|
|
2011
2141
|
}
|
|
2142
|
+
function resolveRenderFunctionProps(props) {
|
|
2143
|
+
if (Array.isArray(props)) {
|
|
2144
|
+
return mergePropsN(props);
|
|
2145
|
+
}
|
|
2146
|
+
return mergeProps(void 0, props);
|
|
2147
|
+
}
|
|
2012
2148
|
var REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy");
|
|
2149
|
+
var COMPONENT_IDENTIFIER_PATTERN = /^[A-Z][A-Za-z0-9$]*$/;
|
|
2150
|
+
var LOWERCASE_CHARACTER_PATTERN = /[a-z]/;
|
|
2013
2151
|
function evaluateRenderProp(element, render, props, state) {
|
|
2014
2152
|
if (render) {
|
|
2015
2153
|
if (typeof render === "function") {
|
|
@@ -2044,8 +2182,10 @@ function warnIfRenderPropLooksLikeComponent(renderFn) {
|
|
|
2044
2182
|
if (functionName.length === 0) {
|
|
2045
2183
|
return;
|
|
2046
2184
|
}
|
|
2047
|
-
|
|
2048
|
-
|
|
2185
|
+
if (!COMPONENT_IDENTIFIER_PATTERN.test(functionName)) {
|
|
2186
|
+
return;
|
|
2187
|
+
}
|
|
2188
|
+
if (!LOWERCASE_CHARACTER_PATTERN.test(functionName)) {
|
|
2049
2189
|
return;
|
|
2050
2190
|
}
|
|
2051
2191
|
warn(`The \`render\` prop received a function named \`${functionName}\` that starts with an uppercase letter.`, "This usually means a React component was passed directly as `render={Component}`.", "Base UI calls `render` as a plain function, which can break the Rules of Hooks during reconciliation.", "If this is an intentional render callback, rename it to start with a lowercase letter.", "Use `render={<Component />}` or `render={(props) => <Component {...props} />}` instead.", "https://base-ui.com/r/invalid-render-prop");
|
|
@@ -2068,132 +2208,46 @@ function renderTag(Tag, props) {
|
|
|
2068
2208
|
return /* @__PURE__ */ React4.createElement(Tag, props);
|
|
2069
2209
|
}
|
|
2070
2210
|
|
|
2071
|
-
// ../../../node_modules/.pnpm/@base-ui+react@1.
|
|
2211
|
+
// ../../../node_modules/.pnpm/@base-ui+react@1.4.0_@date-fns+tz@1.4.1_@types+react@18.3.28_date-fns@4.1.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/esm/use-render/useRender.js
|
|
2072
2212
|
function useRender(params) {
|
|
2073
2213
|
return useRenderElement(params.defaultTagName ?? "div", params, params);
|
|
2074
2214
|
}
|
|
2075
2215
|
|
|
2076
|
-
// ../../../node_modules/.pnpm/@wordpress+
|
|
2077
|
-
import {
|
|
2078
|
-
Children as Children2,
|
|
2079
|
-
cloneElement as cloneElement2,
|
|
2080
|
-
Component,
|
|
2081
|
-
createContext as createContext3,
|
|
2082
|
-
createElement as createElement2,
|
|
2083
|
-
createRef,
|
|
2084
|
-
forwardRef,
|
|
2085
|
-
Fragment,
|
|
2086
|
-
isValidElement as isValidElement3,
|
|
2087
|
-
memo,
|
|
2088
|
-
PureComponent,
|
|
2089
|
-
StrictMode,
|
|
2090
|
-
useCallback as useCallback4,
|
|
2091
|
-
useContext as useContext4,
|
|
2092
|
-
useDebugValue,
|
|
2093
|
-
useDeferredValue,
|
|
2094
|
-
useEffect as useEffect5,
|
|
2095
|
-
useId as useId2,
|
|
2096
|
-
useMemo as useMemo9,
|
|
2097
|
-
useImperativeHandle,
|
|
2098
|
-
useInsertionEffect,
|
|
2099
|
-
useLayoutEffect as useLayoutEffect2,
|
|
2100
|
-
useReducer,
|
|
2101
|
-
useRef as useRef6,
|
|
2102
|
-
useState as useState5,
|
|
2103
|
-
useSyncExternalStore,
|
|
2104
|
-
useTransition,
|
|
2105
|
-
startTransition,
|
|
2106
|
-
lazy,
|
|
2107
|
-
Suspense
|
|
2108
|
-
} from "react";
|
|
2109
|
-
|
|
2110
|
-
// ../../../node_modules/.pnpm/is-plain-object@5.0.0/node_modules/is-plain-object/dist/is-plain-object.mjs
|
|
2111
|
-
function isObject(o) {
|
|
2112
|
-
return Object.prototype.toString.call(o) === "[object Object]";
|
|
2113
|
-
}
|
|
2114
|
-
function isPlainObject(o) {
|
|
2115
|
-
var ctor, prot;
|
|
2116
|
-
if (isObject(o) === false) return false;
|
|
2117
|
-
ctor = o.constructor;
|
|
2118
|
-
if (ctor === void 0) return true;
|
|
2119
|
-
prot = ctor.prototype;
|
|
2120
|
-
if (isObject(prot) === false) return false;
|
|
2121
|
-
if (prot.hasOwnProperty("isPrototypeOf") === false) {
|
|
2122
|
-
return false;
|
|
2123
|
-
}
|
|
2124
|
-
return true;
|
|
2125
|
-
}
|
|
2126
|
-
|
|
2127
|
-
// ../../../node_modules/.pnpm/lower-case@2.0.2/node_modules/lower-case/dist.es2015/index.js
|
|
2128
|
-
function lowerCase(str) {
|
|
2129
|
-
return str.toLowerCase();
|
|
2130
|
-
}
|
|
2131
|
-
|
|
2132
|
-
// ../../../node_modules/.pnpm/no-case@3.0.4/node_modules/no-case/dist.es2015/index.js
|
|
2133
|
-
var DEFAULT_SPLIT_REGEXP = [/([a-z0-9])([A-Z])/g, /([A-Z])([A-Z][a-z])/g];
|
|
2134
|
-
var DEFAULT_STRIP_REGEXP = /[^A-Z0-9]+/gi;
|
|
2135
|
-
function noCase(input, options) {
|
|
2136
|
-
if (options === void 0) {
|
|
2137
|
-
options = {};
|
|
2138
|
-
}
|
|
2139
|
-
var _a = options.splitRegexp, splitRegexp = _a === void 0 ? DEFAULT_SPLIT_REGEXP : _a, _b = options.stripRegexp, stripRegexp = _b === void 0 ? DEFAULT_STRIP_REGEXP : _b, _c = options.transform, transform = _c === void 0 ? lowerCase : _c, _d = options.delimiter, delimiter2 = _d === void 0 ? " " : _d;
|
|
2140
|
-
var result = replace(replace(input, splitRegexp, "$1\0$2"), stripRegexp, "\0");
|
|
2141
|
-
var start = 0;
|
|
2142
|
-
var end = result.length;
|
|
2143
|
-
while (result.charAt(start) === "\0")
|
|
2144
|
-
start++;
|
|
2145
|
-
while (result.charAt(end - 1) === "\0")
|
|
2146
|
-
end--;
|
|
2147
|
-
return result.slice(start, end).split("\0").map(transform).join(delimiter2);
|
|
2148
|
-
}
|
|
2149
|
-
function replace(input, re, value) {
|
|
2150
|
-
if (re instanceof RegExp)
|
|
2151
|
-
return input.replace(re, value);
|
|
2152
|
-
return re.reduce(function(input2, re2) {
|
|
2153
|
-
return input2.replace(re2, value);
|
|
2154
|
-
}, input);
|
|
2155
|
-
}
|
|
2156
|
-
|
|
2157
|
-
// ../../../node_modules/.pnpm/dot-case@3.0.4/node_modules/dot-case/dist.es2015/index.js
|
|
2158
|
-
import { __assign } from "tslib";
|
|
2159
|
-
function dotCase(input, options) {
|
|
2160
|
-
if (options === void 0) {
|
|
2161
|
-
options = {};
|
|
2162
|
-
}
|
|
2163
|
-
return noCase(input, __assign({ delimiter: "." }, options));
|
|
2164
|
-
}
|
|
2165
|
-
|
|
2166
|
-
// ../../../node_modules/.pnpm/param-case@3.0.4/node_modules/param-case/dist.es2015/index.js
|
|
2167
|
-
import { __assign as __assign2 } from "tslib";
|
|
2168
|
-
function paramCase(input, options) {
|
|
2169
|
-
if (options === void 0) {
|
|
2170
|
-
options = {};
|
|
2171
|
-
}
|
|
2172
|
-
return dotCase(input, __assign2({ delimiter: "-" }, options));
|
|
2173
|
-
}
|
|
2174
|
-
|
|
2175
|
-
// ../../../node_modules/.pnpm/@wordpress+ui@0.10.0_@types+react@18.3.28_react-dom@18.3.1_react@18.3.1__react@18.3.1_stylelint@17.7.0/node_modules/@wordpress/ui/build-module/text/text.mjs
|
|
2216
|
+
// ../../../node_modules/.pnpm/@wordpress+ui@0.11.0_@types+react@18.3.28_react-dom@18.3.1_react@18.3.1__react@18.3.1_stylelint@17.7.0/node_modules/@wordpress/ui/build-module/text/text.mjs
|
|
2176
2217
|
import clsx from "clsx";
|
|
2177
|
-
if (typeof document !== "undefined" && process.env.NODE_ENV !== "test" && !document.head.querySelector("style[data-wp-hash='
|
|
2218
|
+
if (typeof document !== "undefined" && process.env.NODE_ENV !== "test" && !document.head.querySelector("style[data-wp-hash='4130d64bea']")) {
|
|
2178
2219
|
const style = document.createElement("style");
|
|
2179
|
-
style.setAttribute("data-wp-hash", "
|
|
2180
|
-
style.appendChild(document.createTextNode('@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._14437cfb77831647__heading-2xl{font-size:var(--wpds-font-size-2xl,32px);line-height:var(--wpds-
|
|
2220
|
+
style.setAttribute("data-wp-hash", "4130d64bea");
|
|
2221
|
+
style.appendChild(document.createTextNode('@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._83ed8a8da5dd50ea__text{margin:0}._14437cfb77831647__heading-2xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-2xl,32px);font-size:var(--wpds-typography-font-size-2xl,32px);line-height:var(--wpds-typography-line-height-2xl,40px)}._14437cfb77831647__heading-2xl,._3c78b7fa9b4072dd__heading-xl{font-family:var(--wpds-typography-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-medium,499)}._3c78b7fa9b4072dd__heading-xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-xl,20px);font-size:var(--wpds-typography-font-size-xl,20px);line-height:var(--wpds-typography-line-height-md,24px)}.aa58f227716bcde2__heading-lg{--_gcd-heading-font-size:var(--wpds-typography-font-size-lg,15px);font-size:var(--wpds-typography-font-size-lg,15px)}.aa58f227716bcde2__heading-lg,.fc4da56d8dfe52c4__heading-md{font-family:var(--wpds-typography-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-medium,499);line-height:var(--wpds-typography-line-height-sm,20px)}.fc4da56d8dfe52c4__heading-md{--_gcd-heading-font-size:var(--wpds-typography-font-size-md,13px);font-size:var(--wpds-typography-font-size-md,13px)}.a9b78c7c82e8dff7__heading-sm{--_gcd-heading-font-size:var(--wpds-typography-font-size-xs,11px);font-family:var(--wpds-typography-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-xs,11px);font-weight:var(--wpds-typography-font-weight-medium,499);line-height:var(--wpds-typography-line-height-xs,16px);text-transform:uppercase}._305ff559e52180d5__body-xl{--_gcd-p-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-p-line-height:var(--wpds-typography-line-height-xl,32px);font-size:var(--wpds-typography-font-size-xl,20px);line-height:var(--wpds-typography-line-height-xl,32px)}._305ff559e52180d5__body-xl,.ca1aa3fc2029e958__body-lg{font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-regular,400)}.ca1aa3fc2029e958__body-lg{--_gcd-p-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-p-line-height:var(--wpds-typography-line-height-md,24px);font-size:var(--wpds-typography-font-size-lg,15px);line-height:var(--wpds-typography-line-height-md,24px)}._131101940be12424__body-md{--_gcd-p-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-p-line-height:var(--wpds-typography-line-height-sm,20px);font-size:var(--wpds-typography-font-size-md,13px);line-height:var(--wpds-typography-line-height-sm,20px)}._0e8d87a42c1f75fa__body-sm,._131101940be12424__body-md{font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-regular,400)}._0e8d87a42c1f75fa__body-sm{--_gcd-p-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);font-size:var(--wpds-typography-font-size-sm,12px);line-height:var(--wpds-typography-line-height-xs,16px)}}'));
|
|
2181
2222
|
document.head.appendChild(style);
|
|
2182
2223
|
}
|
|
2183
|
-
var style_default = { "heading-2xl": "_14437cfb77831647__heading-2xl", "heading-xl": "_3c78b7fa9b4072dd__heading-xl", "heading-lg": "aa58f227716bcde2__heading-lg", "heading-md": "fc4da56d8dfe52c4__heading-md", "heading-sm": "a9b78c7c82e8dff7__heading-sm", "body-xl": "_305ff559e52180d5__body-xl", "body-lg": "ca1aa3fc2029e958__body-lg", "body-md": "_131101940be12424__body-md", "body-sm": "_0e8d87a42c1f75fa__body-sm" };
|
|
2224
|
+
var style_default = { "text": "_83ed8a8da5dd50ea__text", "heading-2xl": "_14437cfb77831647__heading-2xl", "heading-xl": "_3c78b7fa9b4072dd__heading-xl", "heading-lg": "aa58f227716bcde2__heading-lg", "heading-md": "fc4da56d8dfe52c4__heading-md", "heading-sm": "a9b78c7c82e8dff7__heading-sm", "body-xl": "_305ff559e52180d5__body-xl", "body-lg": "ca1aa3fc2029e958__body-lg", "body-md": "_131101940be12424__body-md", "body-sm": "_0e8d87a42c1f75fa__body-sm" };
|
|
2225
|
+
if (typeof document !== "undefined" && process.env.NODE_ENV !== "test" && !document.head.querySelector("style[data-wp-hash='1fb29d3a3c']")) {
|
|
2226
|
+
const style = document.createElement("style");
|
|
2227
|
+
style.setAttribute("data-wp-hash", "1fb29d3a3c");
|
|
2228
|
+
style.appendChild(document.createTextNode("._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,#0000);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 #0000);color:var(--_gcd-input-color,var(--wpds-color-fg-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,#0000);border-color:var(--_gcd-input-border-color-disabled,#0000);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-fg-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-fg-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid #0000)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-fg-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-medium,499));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid #0000);transition:var(--_gcd-a-transition,none)}"));
|
|
2229
|
+
document.head.appendChild(style);
|
|
2230
|
+
}
|
|
2231
|
+
var global_css_defense_default = { "button": "_6defc79820e382c6__button", "input": "d2cff2e5dea83bd1__input", "textarea": "_547d86373d02e108__textarea", "div": "_8c15fd0ed9f28ba4__div", "p": "_43cec3e1eec1066d__p", "heading": "e97669c6d9a38497__heading", "a": "_2c0831b0499dbd6e__a" };
|
|
2184
2232
|
var Text = forwardRef(function Text2({ variant = "body-md", render, className, ...props }, ref) {
|
|
2185
2233
|
const element = useRender({
|
|
2186
2234
|
render,
|
|
2187
2235
|
defaultTagName: "span",
|
|
2188
2236
|
ref,
|
|
2189
2237
|
props: mergeProps(props, {
|
|
2190
|
-
className: clsx(
|
|
2238
|
+
className: clsx(
|
|
2239
|
+
style_default.text,
|
|
2240
|
+
variant.startsWith("heading-") && global_css_defense_default.heading,
|
|
2241
|
+
variant.startsWith("body-") && global_css_defense_default.p,
|
|
2242
|
+
style_default[variant],
|
|
2243
|
+
className
|
|
2244
|
+
)
|
|
2191
2245
|
})
|
|
2192
2246
|
});
|
|
2193
2247
|
return element;
|
|
2194
2248
|
});
|
|
2195
2249
|
|
|
2196
|
-
// ../../../node_modules/.pnpm/@wordpress+ui@0.
|
|
2250
|
+
// ../../../node_modules/.pnpm/@wordpress+ui@0.11.0_@types+react@18.3.28_react-dom@18.3.1_react@18.3.1__react@18.3.1_stylelint@17.7.0/node_modules/@wordpress/ui/build-module/stack/stack.mjs
|
|
2197
2251
|
if (typeof document !== "undefined" && process.env.NODE_ENV !== "test" && !document.head.querySelector("style[data-wp-hash='b51ff41489']")) {
|
|
2198
2252
|
const style = document.createElement("style");
|
|
2199
2253
|
style.setAttribute("data-wp-hash", "b51ff41489");
|
|
@@ -4081,6 +4135,8 @@ var ConversionFunnelChartInternal = ({
|
|
|
4081
4135
|
if (!isDataValid) {
|
|
4082
4136
|
return /* @__PURE__ */ _jsx14(Stack, {
|
|
4083
4137
|
direction: "column",
|
|
4138
|
+
align: "center",
|
|
4139
|
+
justify: "center",
|
|
4084
4140
|
className: clsx4(conversion_funnel_chart_module_default["conversion-funnel-chart"], loading && conversion_funnel_chart_module_default["conversion-funnel-chart--loading"], className),
|
|
4085
4141
|
style: {
|
|
4086
4142
|
...style,
|
|
@@ -4131,7 +4187,9 @@ var ConversionFunnelChartInternal = ({
|
|
|
4131
4187
|
direction: "column",
|
|
4132
4188
|
className: clsx4(conversion_funnel_chart_module_default["funnel-step"], isColorPaletteResolved && conversion_funnel_chart_module_default["funnel-step--animated"], isBlurred && conversion_funnel_chart_module_default["funnel-step--blurred"]),
|
|
4133
4189
|
gap: "xl",
|
|
4134
|
-
children: [/* @__PURE__ */ _jsxs6(
|
|
4190
|
+
children: [/* @__PURE__ */ _jsxs6(Stack, {
|
|
4191
|
+
direction: "column",
|
|
4192
|
+
gap: "xs",
|
|
4135
4193
|
children: [renderStepLabel ? renderStepLabel({
|
|
4136
4194
|
step,
|
|
4137
4195
|
index,
|
|
@@ -4384,9 +4442,9 @@ var GeoChartWithProvider = (props) => {
|
|
|
4384
4442
|
GeoChartWithProvider.displayName = "GeoChart";
|
|
4385
4443
|
var GeoChartResponsive = withResponsive(GeoChartWithProvider);
|
|
4386
4444
|
|
|
4387
|
-
// ../../../node_modules/.pnpm/@wordpress+components@32.
|
|
4445
|
+
// ../../../node_modules/.pnpm/@wordpress+components@32.6.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/utils/hooks/use-update-effect.mjs
|
|
4388
4446
|
function useUpdateEffect(effect, deps) {
|
|
4389
|
-
const mountedRef =
|
|
4447
|
+
const mountedRef = useRef5(false);
|
|
4390
4448
|
useEffect5(() => {
|
|
4391
4449
|
if (mountedRef.current) {
|
|
4392
4450
|
return effect();
|
|
@@ -5838,7 +5896,7 @@ var css2 = _createEmotion.css;
|
|
|
5838
5896
|
var sheet = _createEmotion.sheet;
|
|
5839
5897
|
var cache = _createEmotion.cache;
|
|
5840
5898
|
|
|
5841
|
-
// ../../../node_modules/.pnpm/@wordpress+components@32.
|
|
5899
|
+
// ../../../node_modules/.pnpm/@wordpress+components@32.6.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/utils/hooks/use-cx.mjs
|
|
5842
5900
|
var isSerializedStyles = (o) => typeof o !== "undefined" && o !== null && ["name", "styles"].every((p) => typeof o[p] !== "undefined");
|
|
5843
5901
|
var useCx = () => {
|
|
5844
5902
|
const cache2 = __unsafe_useEmotionCache();
|
|
@@ -5925,7 +5983,7 @@ function memize(fn, options) {
|
|
|
5925
5983
|
return memoized;
|
|
5926
5984
|
}
|
|
5927
5985
|
|
|
5928
|
-
// ../../../node_modules/.pnpm/@wordpress+components@32.
|
|
5986
|
+
// ../../../node_modules/.pnpm/@wordpress+components@32.6.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/utils/colors-values.mjs
|
|
5929
5987
|
var white = "#fff";
|
|
5930
5988
|
var GRAY = {
|
|
5931
5989
|
900: "#1e1e1e",
|
|
@@ -6006,7 +6064,7 @@ var COLORS = Object.freeze({
|
|
|
6006
6064
|
ui: UI
|
|
6007
6065
|
});
|
|
6008
6066
|
|
|
6009
|
-
// ../../../node_modules/.pnpm/@wordpress+components@32.
|
|
6067
|
+
// ../../../node_modules/.pnpm/@wordpress+components@32.6.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/utils/config-values.mjs
|
|
6010
6068
|
var CONTROL_HEIGHT = "36px";
|
|
6011
6069
|
var CONTROL_PROPS = {
|
|
6012
6070
|
// These values should be shared with TextControl.
|
|
@@ -6074,14 +6132,14 @@ var config_values_default = Object.assign({}, CONTROL_PROPS, {
|
|
|
6074
6132
|
transitionTimingFunctionControl: "cubic-bezier(0.12, 0.8, 0.32, 1)"
|
|
6075
6133
|
});
|
|
6076
6134
|
|
|
6077
|
-
// ../../../node_modules/.pnpm/@wordpress+components@32.
|
|
6135
|
+
// ../../../node_modules/.pnpm/@wordpress+components@32.6.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/context/context-system-provider.mjs
|
|
6078
6136
|
var import_es6 = __toESM(require_es6(), 1);
|
|
6079
6137
|
import deepmerge2 from "deepmerge";
|
|
6080
6138
|
|
|
6081
|
-
// ../../../node_modules/.pnpm/@wordpress+warning@3.
|
|
6139
|
+
// ../../../node_modules/.pnpm/@wordpress+warning@3.44.0/node_modules/@wordpress/warning/build-module/utils.mjs
|
|
6082
6140
|
var logged = /* @__PURE__ */ new Set();
|
|
6083
6141
|
|
|
6084
|
-
// ../../../node_modules/.pnpm/@wordpress+warning@3.
|
|
6142
|
+
// ../../../node_modules/.pnpm/@wordpress+warning@3.44.0/node_modules/@wordpress/warning/build-module/index.mjs
|
|
6085
6143
|
function isDev() {
|
|
6086
6144
|
return globalThis.SCRIPT_DEBUG === true;
|
|
6087
6145
|
}
|
|
@@ -6095,12 +6153,12 @@ function warning(message) {
|
|
|
6095
6153
|
console.warn(message);
|
|
6096
6154
|
try {
|
|
6097
6155
|
throw Error(message);
|
|
6098
|
-
} catch
|
|
6156
|
+
} catch {
|
|
6099
6157
|
}
|
|
6100
6158
|
logged.add(message);
|
|
6101
6159
|
}
|
|
6102
6160
|
|
|
6103
|
-
// ../../../node_modules/.pnpm/@wordpress+components@32.
|
|
6161
|
+
// ../../../node_modules/.pnpm/@wordpress+components@32.6.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/context/context-system-provider.mjs
|
|
6104
6162
|
import { jsx as _jsx16 } from "react/jsx-runtime";
|
|
6105
6163
|
var ComponentsContext = createContext3(
|
|
6106
6164
|
/** @type {Record<string, any>} */
|
|
@@ -6112,7 +6170,7 @@ function useContextSystemBridge({
|
|
|
6112
6170
|
value
|
|
6113
6171
|
}) {
|
|
6114
6172
|
const parentContext = useComponentsContext();
|
|
6115
|
-
const valueRef =
|
|
6173
|
+
const valueRef = useRef5(value);
|
|
6116
6174
|
use_update_effect_default(() => {
|
|
6117
6175
|
if (
|
|
6118
6176
|
// Objects are equivalent.
|
|
@@ -6143,19 +6201,19 @@ var BaseContextSystemProvider = ({
|
|
|
6143
6201
|
};
|
|
6144
6202
|
var ContextSystemProvider = memo(BaseContextSystemProvider);
|
|
6145
6203
|
|
|
6146
|
-
// ../../../node_modules/.pnpm/@wordpress+components@32.
|
|
6204
|
+
// ../../../node_modules/.pnpm/@wordpress+components@32.6.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/context/constants.mjs
|
|
6147
6205
|
var COMPONENT_NAMESPACE = "data-wp-component";
|
|
6148
6206
|
var CONNECTED_NAMESPACE = "data-wp-c16t";
|
|
6149
6207
|
var CONNECT_STATIC_NAMESPACE = "__contextSystemKey__";
|
|
6150
6208
|
|
|
6151
|
-
// ../../../node_modules/.pnpm/@wordpress+components@32.
|
|
6209
|
+
// ../../../node_modules/.pnpm/@wordpress+components@32.6.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/context/get-styled-class-name-from-key.mjs
|
|
6152
6210
|
function getStyledClassName(namespace) {
|
|
6153
6211
|
const kebab = paramCase(namespace);
|
|
6154
6212
|
return `components-${kebab}`;
|
|
6155
6213
|
}
|
|
6156
6214
|
var getStyledClassNameFromKey = memize(getStyledClassName);
|
|
6157
6215
|
|
|
6158
|
-
// ../../../node_modules/.pnpm/@wordpress+components@32.
|
|
6216
|
+
// ../../../node_modules/.pnpm/@wordpress+components@32.6.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/context/context-connect.mjs
|
|
6159
6217
|
function contextConnect(Component2, namespace) {
|
|
6160
6218
|
return _contextConnect(Component2, namespace, {
|
|
6161
6219
|
forwardsRef: true
|
|
@@ -6180,7 +6238,7 @@ function _contextConnect(Component2, namespace, options) {
|
|
|
6180
6238
|
});
|
|
6181
6239
|
}
|
|
6182
6240
|
|
|
6183
|
-
// ../../../node_modules/.pnpm/@wordpress+components@32.
|
|
6241
|
+
// ../../../node_modules/.pnpm/@wordpress+components@32.6.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/context/utils.mjs
|
|
6184
6242
|
function getNamespace(componentName) {
|
|
6185
6243
|
return {
|
|
6186
6244
|
[COMPONENT_NAMESPACE]: componentName
|
|
@@ -6192,7 +6250,7 @@ function getConnectedNamespace() {
|
|
|
6192
6250
|
};
|
|
6193
6251
|
}
|
|
6194
6252
|
|
|
6195
|
-
// ../../../node_modules/.pnpm/@wordpress+components@32.
|
|
6253
|
+
// ../../../node_modules/.pnpm/@wordpress+components@32.6.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/context/use-context-system.mjs
|
|
6196
6254
|
function useContextSystem(props, namespace) {
|
|
6197
6255
|
const contextSystemProps = useComponentsContext();
|
|
6198
6256
|
if (typeof namespace === "undefined") {
|
|
@@ -6376,7 +6434,7 @@ var createStyled = function createStyled2(tag, options) {
|
|
|
6376
6434
|
};
|
|
6377
6435
|
};
|
|
6378
6436
|
|
|
6379
|
-
// ../../../node_modules/.pnpm/@wordpress+components@32.
|
|
6437
|
+
// ../../../node_modules/.pnpm/@wordpress+components@32.6.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/view/component.mjs
|
|
6380
6438
|
import { jsx as _jsx17 } from "react/jsx-runtime";
|
|
6381
6439
|
var PolymorphicDiv = /* @__PURE__ */ createStyled("div", process.env.NODE_ENV === "production" ? {
|
|
6382
6440
|
target: "e19lxcc00"
|
|
@@ -6399,7 +6457,7 @@ var View = Object.assign(forwardRef(UnforwardedView), {
|
|
|
6399
6457
|
});
|
|
6400
6458
|
var component_default = View;
|
|
6401
6459
|
|
|
6402
|
-
// ../../../node_modules/.pnpm/@wordpress+components@32.
|
|
6460
|
+
// ../../../node_modules/.pnpm/@wordpress+components@32.6.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/utils/use-responsive-value.mjs
|
|
6403
6461
|
var breakpoints = ["40em", "52em", "64em"];
|
|
6404
6462
|
var useBreakpointIndex = (options = {}) => {
|
|
6405
6463
|
const {
|
|
@@ -6442,7 +6500,7 @@ function useResponsiveValue(values, options = {}) {
|
|
|
6442
6500
|
return array[index >= array.length ? array.length - 1 : index];
|
|
6443
6501
|
}
|
|
6444
6502
|
|
|
6445
|
-
// ../../../node_modules/.pnpm/@wordpress+components@32.
|
|
6503
|
+
// ../../../node_modules/.pnpm/@wordpress+components@32.6.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/grid/utils.mjs
|
|
6446
6504
|
var ALIGNMENTS = {
|
|
6447
6505
|
bottom: {
|
|
6448
6506
|
alignItems: "flex-end",
|
|
@@ -6493,7 +6551,7 @@ function getAlignmentProps(alignment) {
|
|
|
6493
6551
|
return alignmentProps;
|
|
6494
6552
|
}
|
|
6495
6553
|
|
|
6496
|
-
// ../../../node_modules/.pnpm/@wordpress+components@32.
|
|
6554
|
+
// ../../../node_modules/.pnpm/@wordpress+components@32.6.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/grid/hook.mjs
|
|
6497
6555
|
function useGrid(props) {
|
|
6498
6556
|
const {
|
|
6499
6557
|
align,
|
|
@@ -6539,7 +6597,7 @@ function useGrid(props) {
|
|
|
6539
6597
|
};
|
|
6540
6598
|
}
|
|
6541
6599
|
|
|
6542
|
-
// ../../../node_modules/.pnpm/@wordpress+components@32.
|
|
6600
|
+
// ../../../node_modules/.pnpm/@wordpress+components@32.6.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/grid/component.mjs
|
|
6543
6601
|
import { jsx as _jsx18 } from "react/jsx-runtime";
|
|
6544
6602
|
function UnconnectedGrid(props, forwardedRef) {
|
|
6545
6603
|
const gridProps = useGrid(props);
|