@umami/shiso 1.12.0 → 1.14.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/bin/shiso.mjs +0 -0
- package/dist/chunks/App.js +166 -139
- package/dist/chunks/abnfDiagram-VCTEODGH.js +109 -0
- package/dist/chunks/arc.js +130 -0
- package/dist/chunks/architecture-7GRP2DOG.js +4 -0
- package/dist/chunks/architectureDiagram-5GKGNRK7.js +7466 -0
- package/dist/chunks/array.js +8 -0
- package/dist/chunks/blockDiagram-I7D4REHJ.js +2546 -0
- package/dist/chunks/c4Diagram-7LVT6UL2.js +3654 -0
- package/dist/chunks/channel.js +9 -0
- package/dist/chunks/chunk-2Q5K7J3B.js +21 -0
- package/dist/chunks/chunk-4HAMMTFA.js +6106 -0
- package/dist/chunks/chunk-5VM5RSS4.js +21 -0
- package/dist/chunks/chunk-75Z2AOVW.js +2185 -0
- package/dist/chunks/chunk-DU6HZSFF.js +8729 -0
- package/dist/chunks/chunk-F27PBJKO.js +95 -0
- package/dist/chunks/chunk-FOHPRMQF.js +27162 -0
- package/dist/chunks/chunk-GMAD6QVW.js +2369 -0
- package/dist/chunks/chunk-GVQU2GXP.js +58 -0
- package/dist/chunks/chunk-IMKFNOWR.js +2593 -0
- package/dist/chunks/chunk-JWPE2WC7.js +12 -0
- package/dist/chunks/chunk-L3NEJ4N5.js +420 -0
- package/dist/chunks/chunk-OSK3NFVY.js +1029 -0
- package/dist/chunks/chunk-P2QGCYS3.js +95 -0
- package/dist/chunks/chunk-POPQ4Y6H.js +33 -0
- package/dist/chunks/chunk-PWAF6VOD.js +467 -0
- package/dist/chunks/chunk-SHT3W25Y.js +4813 -0
- package/dist/chunks/chunk-SVP7TREG.js +686 -0
- package/dist/chunks/chunk-TICWLB2K.js +3800 -0
- package/dist/chunks/chunk-XXDRQBXY.js +12 -0
- package/dist/chunks/chunk-Y2CYZVJY.js +15 -0
- package/dist/chunks/classDiagram-ZZMXUADV.js +33 -0
- package/dist/chunks/classDiagram-v2-VYDZK3BY.js +33 -0
- package/dist/chunks/cose-bilkent-JH36ORCC.js +4268 -0
- package/dist/chunks/cynefin-OW5HDTMX.js +4 -0
- package/dist/chunks/cynefinDiagram-5FMLGOSQ.js +482 -0
- package/dist/chunks/cytoscape.esm.js +28282 -0
- package/dist/chunks/dagre-GXQ25YYZ.js +583 -0
- package/dist/chunks/dagre.js +4235 -0
- package/dist/chunks/defaultLocale.js +246 -0
- package/dist/chunks/diagram-S7CK7UJ4.js +402 -0
- package/dist/chunks/diagram-UQ7AKVKN.js +291 -0
- package/dist/chunks/diagram-VSXAHHWV.js +553 -0
- package/dist/chunks/diagram-VX7I27RA.js +798 -0
- package/dist/chunks/diagram-Z3DM3KII.js +186 -0
- package/dist/chunks/dist.js +92 -0
- package/dist/chunks/docs.js +1163 -347
- package/dist/chunks/ebnfDiagram-PWID7BFC.js +123 -0
- package/dist/chunks/erDiagram-RLTQ6QDP.js +2295 -0
- package/dist/chunks/eventmodeling-NTZA5JFV.js +4 -0
- package/dist/chunks/flowDiagram-HODETNUW.js +17 -0
- package/dist/chunks/ganttDiagram-EL5Y4UJY.js +3928 -0
- package/dist/chunks/gitGraph-4MIJSDKK.js +4 -0
- package/dist/chunks/gitGraphDiagram-WWUBYQGX.js +1153 -0
- package/dist/chunks/graphlib.js +4194 -0
- package/dist/chunks/info-A6RAGUB7.js +4 -0
- package/dist/chunks/infoDiagram-27XIBGKW.js +25 -0
- package/dist/chunks/init.js +14 -0
- package/dist/chunks/ishikawaDiagram-5VMMS53U.js +971 -0
- package/dist/chunks/journeyDiagram-3NMN7TZE.js +1226 -0
- package/dist/chunks/kanban-definition-UXKFOSKX.js +1241 -0
- package/dist/chunks/katex.js +26463 -0
- package/dist/chunks/line.js +48 -0
- package/dist/chunks/linear.js +391 -0
- package/dist/chunks/mermaid-parser.core.js +754 -0
- package/dist/chunks/mermaid.core.js +4898 -0
- package/dist/chunks/mindmap-definition-YA3MSWOX.js +1309 -0
- package/dist/chunks/ordinal.js +84 -0
- package/dist/chunks/packet-AYTQ26CC.js +4 -0
- package/dist/chunks/path.js +106 -0
- package/dist/chunks/pegDiagram-XKGWAZYB.js +115 -0
- package/dist/chunks/pie-WAS4IAKB.js +4 -0
- package/dist/chunks/pieDiagram-E7YTZNPT.js +297 -0
- package/dist/chunks/quadrantDiagram-AXDQQJYC.js +2234 -0
- package/dist/chunks/radar-RG4KPBEZ.js +4 -0
- package/dist/chunks/railroad-74A4TZTK.js +4 -0
- package/dist/chunks/railroad-abnf-HS5TGJTU.js +4 -0
- package/dist/chunks/railroad-ebnf-LZEXJU2U.js +4 -0
- package/dist/chunks/railroad-peg-WCYAUIDC.js +4 -0
- package/dist/chunks/railroadDiagram-O6MQD6OU.js +89 -0
- package/dist/chunks/requirementDiagram-BXWQKSXE.js +2464 -0
- package/dist/chunks/rough.esm.js +1396 -0
- package/dist/chunks/sankeyDiagram-P5KCCOFB.js +1308 -0
- package/dist/chunks/sequenceDiagram-WJ2MYXX4.js +5445 -0
- package/dist/chunks/sizeCapture-INFHLROL.js +56 -0
- package/dist/chunks/src.js +2653 -0
- package/dist/chunks/stateDiagram-D77RDMKH.js +368 -0
- package/dist/chunks/stateDiagram-v2-MP3YSRHH.js +33 -0
- package/dist/chunks/swimlanes-42K2YHIH.js +6925 -0
- package/dist/chunks/swimlanesDiagram-VR7AAH4N.js +32 -0
- package/dist/chunks/timeline-definition-24CTP7MA.js +1507 -0
- package/dist/chunks/treeView-Q6P3EWNA.js +4 -0
- package/dist/chunks/treemap-WGGIJYW6.js +4 -0
- package/dist/chunks/vennDiagram-4TSXK5OY.js +2803 -0
- package/dist/chunks/wardley-WFR3VGLG.js +4 -0
- package/dist/chunks/wardleyDiagram-VM6X3IG4.js +877 -0
- package/dist/chunks/xychartDiagram-S5SC5T6Z.js +2698 -0
- package/dist/components.js +2 -2
- package/dist/entry-client.js +1 -1
- package/dist/entry-server.js +2 -2
- package/docs.schema.json +1 -1
- package/package.json +2 -1
- package/scripts/expand-navigation-globs.mjs +77 -8
- package/scripts/lib/openapi.mjs +24 -13
- package/src/components/CodeBlock.tsx +36 -0
- package/src/components/Docs.tsx +44 -21
- package/src/components/OpenApiOperation.tsx +39 -52
- package/src/components/SideNav.tsx +8 -3
- package/src/components/docs/Changelog.tsx +163 -0
- package/src/components/docs/Mermaid.tsx +164 -0
- package/src/components/docs/Panel.tsx +23 -0
- package/src/components/docs/Param.tsx +6 -0
- package/src/components/docs/PropertiesTable.tsx +52 -36
- package/src/components/docs/Tiles.tsx +59 -0
- package/src/components/docs/Tree.tsx +359 -0
- package/src/components/docs/Update.tsx +72 -0
- package/src/components/docs/index.ts +8 -2
- package/src/components/docs/panel-context.tsx +25 -0
- package/src/components/docs/styles.ts +47 -6
- package/src/components/icons/index.ts +4 -0
- package/src/lib/openapi.ts +17 -1
- package/src/lib/rehype-shiki.ts +18 -1
- package/types/components.d.ts +83 -14
- package/src/components/docs/ParamField.tsx +0 -45
- package/src/components/docs/ResponseField.tsx +0 -36
package/dist/chunks/docs.js
CHANGED
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
import { Children, cloneElement, createContext, createElement, forwardRef, isValidElement, useContext, useDebugValue, useEffect, useLayoutEffect, useMemo, useRef, useState, useSyncExternalStore, useSyncExternalStore as useSyncExternalStore$1 } from "react";
|
|
3
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Children, Fragment, cloneElement, createContext, createElement, forwardRef, isValidElement, useContext, useDebugValue, useEffect, useId, useLayoutEffect, useMemo, useRef, useState, useSyncExternalStore, useSyncExternalStore as useSyncExternalStore$1 } from "react";
|
|
3
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import * as ReactDOM from "react-dom";
|
|
5
5
|
import { ICON_REGISTRY } from "@/lib/icon-registry.generated";
|
|
6
6
|
|
|
7
7
|
//#region \0rolldown/runtime.js
|
|
8
|
+
var __create = Object.create;
|
|
8
9
|
var __defProp = Object.defineProperty;
|
|
10
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
11
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
12
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
13
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
14
|
+
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
9
15
|
var __exportAll = (all, no_symbols) => {
|
|
10
16
|
let target = {};
|
|
11
17
|
for (var name in all) {
|
|
@@ -19,9 +25,27 @@ var __exportAll = (all, no_symbols) => {
|
|
|
19
25
|
}
|
|
20
26
|
return target;
|
|
21
27
|
};
|
|
28
|
+
var __copyProps = (to, from, except, desc) => {
|
|
29
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
30
|
+
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
31
|
+
key = keys[i];
|
|
32
|
+
if (!__hasOwnProp.call(to, key) && key !== except) {
|
|
33
|
+
__defProp(to, key, {
|
|
34
|
+
get: ((k) => from[k]).bind(null, key),
|
|
35
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return to;
|
|
41
|
+
};
|
|
42
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
|
|
43
|
+
value: mod,
|
|
44
|
+
enumerable: true
|
|
45
|
+
}) : target, mod));
|
|
22
46
|
|
|
23
47
|
//#endregion
|
|
24
|
-
//#region ../../node_modules/.pnpm/react-router@8.3.0_react-
|
|
48
|
+
//#region ../../node_modules/.pnpm/react-router@8.3.0_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-router/dist/production/lib/router/url.js
|
|
25
49
|
/**
|
|
26
50
|
* react-router v8.3.0
|
|
27
51
|
*
|
|
@@ -39,7 +63,7 @@ function normalizeProtocolRelativeUrl(url, protocol) {
|
|
|
39
63
|
}
|
|
40
64
|
|
|
41
65
|
//#endregion
|
|
42
|
-
//#region ../../node_modules/.pnpm/react-router@8.3.0_react-
|
|
66
|
+
//#region ../../node_modules/.pnpm/react-router@8.3.0_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-router/dist/production/lib/router/history.js
|
|
43
67
|
/**
|
|
44
68
|
* react-router v8.3.0
|
|
45
69
|
*
|
|
@@ -271,7 +295,7 @@ function createBrowserURLImpl(windowImpl, to, isAbsolute = false) {
|
|
|
271
295
|
}
|
|
272
296
|
|
|
273
297
|
//#endregion
|
|
274
|
-
//#region ../../node_modules/.pnpm/react-router@8.3.0_react-
|
|
298
|
+
//#region ../../node_modules/.pnpm/react-router@8.3.0_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-router/dist/production/lib/router/utils.js
|
|
275
299
|
/**
|
|
276
300
|
* react-router v8.3.0
|
|
277
301
|
*
|
|
@@ -685,7 +709,7 @@ function parseToInfo(_to, basename) {
|
|
|
685
709
|
}
|
|
686
710
|
|
|
687
711
|
//#endregion
|
|
688
|
-
//#region ../../node_modules/.pnpm/react-router@8.3.0_react-
|
|
712
|
+
//#region ../../node_modules/.pnpm/react-router@8.3.0_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-router/dist/production/lib/router/router.js
|
|
689
713
|
/**
|
|
690
714
|
* react-router v8.3.0
|
|
691
715
|
*
|
|
@@ -726,7 +750,7 @@ function hasInvalidProtocol(location) {
|
|
|
726
750
|
}
|
|
727
751
|
|
|
728
752
|
//#endregion
|
|
729
|
-
//#region ../../node_modules/.pnpm/react-router@8.3.0_react-
|
|
753
|
+
//#region ../../node_modules/.pnpm/react-router@8.3.0_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-router/dist/production/lib/context.js
|
|
730
754
|
/**
|
|
731
755
|
* react-router v8.3.0
|
|
732
756
|
*
|
|
@@ -765,7 +789,7 @@ const RouteErrorContext = React$1.createContext(null);
|
|
|
765
789
|
RouteErrorContext.displayName = "RouteError";
|
|
766
790
|
|
|
767
791
|
//#endregion
|
|
768
|
-
//#region ../../node_modules/.pnpm/react-router@8.3.0_react-
|
|
792
|
+
//#region ../../node_modules/.pnpm/react-router@8.3.0_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-router/dist/production/lib/errors.js
|
|
769
793
|
/**
|
|
770
794
|
* react-router v8.3.0
|
|
771
795
|
*
|
|
@@ -793,7 +817,7 @@ function decodeRouteErrorResponseDigest(digest) {
|
|
|
793
817
|
}
|
|
794
818
|
|
|
795
819
|
//#endregion
|
|
796
|
-
//#region ../../node_modules/.pnpm/react-router@8.3.0_react-
|
|
820
|
+
//#region ../../node_modules/.pnpm/react-router@8.3.0_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-router/dist/production/lib/hooks.js
|
|
797
821
|
/**
|
|
798
822
|
* react-router v8.3.0
|
|
799
823
|
*
|
|
@@ -1509,7 +1533,7 @@ function warningOnce(key, cond, message) {
|
|
|
1509
1533
|
}
|
|
1510
1534
|
|
|
1511
1535
|
//#endregion
|
|
1512
|
-
//#region ../../node_modules/.pnpm/react-router@8.3.0_react-
|
|
1536
|
+
//#region ../../node_modules/.pnpm/react-router@8.3.0_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-router/dist/production/lib/components.js
|
|
1513
1537
|
/**
|
|
1514
1538
|
* react-router v8.3.0
|
|
1515
1539
|
*
|
|
@@ -1825,7 +1849,7 @@ function createRoutesFromChildren(children, parentPath = []) {
|
|
|
1825
1849
|
}
|
|
1826
1850
|
|
|
1827
1851
|
//#endregion
|
|
1828
|
-
//#region ../../node_modules/.pnpm/react-router@8.3.0_react-
|
|
1852
|
+
//#region ../../node_modules/.pnpm/react-router@8.3.0_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-router/dist/production/lib/dom/dom.js
|
|
1829
1853
|
/**
|
|
1830
1854
|
* react-router v8.3.0
|
|
1831
1855
|
*
|
|
@@ -1855,6 +1879,47 @@ function isModifiedEvent(event) {
|
|
|
1855
1879
|
function shouldProcessLinkClick(event, target) {
|
|
1856
1880
|
return event.button === 0 && (!target || target === "_self") && !isModifiedEvent(event);
|
|
1857
1881
|
}
|
|
1882
|
+
/**
|
|
1883
|
+
* Creates a URLSearchParams object using the given initializer.
|
|
1884
|
+
*
|
|
1885
|
+
* This is identical to `new URLSearchParams(init)` except it also supports
|
|
1886
|
+
* arrays as values in the object form of the initializer instead of just
|
|
1887
|
+
* strings. This is convenient when you need multiple values for a given key,
|
|
1888
|
+
* but don't want to use an array initializer.
|
|
1889
|
+
*
|
|
1890
|
+
* @example
|
|
1891
|
+
* // Instead of:
|
|
1892
|
+
* let searchParams = new URLSearchParams([
|
|
1893
|
+
* ["sort", "name"],
|
|
1894
|
+
* ["sort", "price"],
|
|
1895
|
+
* ]);
|
|
1896
|
+
*
|
|
1897
|
+
* // You can do:
|
|
1898
|
+
* let searchParams = createSearchParams({
|
|
1899
|
+
* sort: ["name", "price"],
|
|
1900
|
+
* });
|
|
1901
|
+
*
|
|
1902
|
+
* @public
|
|
1903
|
+
* @category Utils
|
|
1904
|
+
* @param init The value used to initialize the URL search parameters.
|
|
1905
|
+
* @returns A URLSearchParams object containing the initialized search
|
|
1906
|
+
* parameters.
|
|
1907
|
+
*/
|
|
1908
|
+
function createSearchParams(init = "") {
|
|
1909
|
+
return new URLSearchParams(typeof init === "string" || Array.isArray(init) || init instanceof URLSearchParams ? init : Object.keys(init).reduce((memo, key) => {
|
|
1910
|
+
let value = init[key];
|
|
1911
|
+
return memo.concat(Array.isArray(value) ? value.map((v) => [key, v]) : [[key, value]]);
|
|
1912
|
+
}, []));
|
|
1913
|
+
}
|
|
1914
|
+
function getSearchParamsForLocation(locationSearch, defaultSearchParams) {
|
|
1915
|
+
let searchParams = createSearchParams(locationSearch);
|
|
1916
|
+
if (defaultSearchParams) defaultSearchParams.forEach((_, key) => {
|
|
1917
|
+
if (!searchParams.has(key)) defaultSearchParams.getAll(key).forEach((value) => {
|
|
1918
|
+
searchParams.append(key, value);
|
|
1919
|
+
});
|
|
1920
|
+
});
|
|
1921
|
+
return searchParams;
|
|
1922
|
+
}
|
|
1858
1923
|
let _formDataSupportsSubmitter = null;
|
|
1859
1924
|
function isFormDataSubmitterSupported() {
|
|
1860
1925
|
if (_formDataSupportsSubmitter === null) try {
|
|
@@ -1926,7 +1991,7 @@ function getFormSubmissionInfo(target, basename) {
|
|
|
1926
1991
|
}
|
|
1927
1992
|
|
|
1928
1993
|
//#endregion
|
|
1929
|
-
//#region ../../node_modules/.pnpm/react-router@8.3.0_react-
|
|
1994
|
+
//#region ../../node_modules/.pnpm/react-router@8.3.0_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-router/dist/production/lib/dom/ssr/invariant.js
|
|
1930
1995
|
/**
|
|
1931
1996
|
* react-router v8.3.0
|
|
1932
1997
|
*
|
|
@@ -1942,7 +2007,7 @@ function invariant(value, message) {
|
|
|
1942
2007
|
}
|
|
1943
2008
|
|
|
1944
2009
|
//#endregion
|
|
1945
|
-
//#region ../../node_modules/.pnpm/react-router@8.3.0_react-
|
|
2010
|
+
//#region ../../node_modules/.pnpm/react-router@8.3.0_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-router/dist/production/lib/dom/ssr/markup.js
|
|
1946
2011
|
/**
|
|
1947
2012
|
* react-router v8.3.0
|
|
1948
2013
|
*
|
|
@@ -1966,7 +2031,7 @@ function escapeHtml(html) {
|
|
|
1966
2031
|
}
|
|
1967
2032
|
|
|
1968
2033
|
//#endregion
|
|
1969
|
-
//#region ../../node_modules/.pnpm/react-router@8.3.0_react-
|
|
2034
|
+
//#region ../../node_modules/.pnpm/react-router@8.3.0_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-router/dist/production/lib/dom/ssr/single-fetch.js
|
|
1970
2035
|
/**
|
|
1971
2036
|
* react-router v8.3.0
|
|
1972
2037
|
*
|
|
@@ -1985,7 +2050,7 @@ function singleFetchUrl(reqUrl, extension) {
|
|
|
1985
2050
|
}
|
|
1986
2051
|
|
|
1987
2052
|
//#endregion
|
|
1988
|
-
//#region ../../node_modules/.pnpm/react-router@8.3.0_react-
|
|
2053
|
+
//#region ../../node_modules/.pnpm/react-router@8.3.0_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-router/dist/production/lib/dom/ssr/routeModules.js
|
|
1989
2054
|
/**
|
|
1990
2055
|
* react-router v8.3.0
|
|
1991
2056
|
*
|
|
@@ -2016,7 +2081,7 @@ async function loadRouteModule(route, routeModulesCache) {
|
|
|
2016
2081
|
}
|
|
2017
2082
|
|
|
2018
2083
|
//#endregion
|
|
2019
|
-
//#region ../../node_modules/.pnpm/react-router@8.3.0_react-
|
|
2084
|
+
//#region ../../node_modules/.pnpm/react-router@8.3.0_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-router/dist/production/lib/dom/ssr/links.js
|
|
2020
2085
|
/**
|
|
2021
2086
|
* react-router v8.3.0
|
|
2022
2087
|
*
|
|
@@ -2118,7 +2183,7 @@ function dedupeLinkDescriptors(descriptors, preloads) {
|
|
|
2118
2183
|
}
|
|
2119
2184
|
|
|
2120
2185
|
//#endregion
|
|
2121
|
-
//#region ../../node_modules/.pnpm/react-router@8.3.0_react-
|
|
2186
|
+
//#region ../../node_modules/.pnpm/react-router@8.3.0_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-router/dist/production/lib/dom/ssr/components.js
|
|
2122
2187
|
/**
|
|
2123
2188
|
* react-router v8.3.0
|
|
2124
2189
|
*
|
|
@@ -2378,7 +2443,7 @@ function mergeRefs(...refs) {
|
|
|
2378
2443
|
}
|
|
2379
2444
|
|
|
2380
2445
|
//#endregion
|
|
2381
|
-
//#region ../../node_modules/.pnpm/react-router@8.3.0_react-
|
|
2446
|
+
//#region ../../node_modules/.pnpm/react-router@8.3.0_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-router/dist/production/lib/dom/lib.js
|
|
2382
2447
|
/**
|
|
2383
2448
|
* react-router v8.3.0
|
|
2384
2449
|
*
|
|
@@ -2873,6 +2938,115 @@ function useLinkClickHandler(to, { target, replace: replaceProp, mask, state, pr
|
|
|
2873
2938
|
useTransitions
|
|
2874
2939
|
]);
|
|
2875
2940
|
}
|
|
2941
|
+
/**
|
|
2942
|
+
* Returns a tuple of the current URL's [`URLSearchParams`](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams)
|
|
2943
|
+
* and a function to update them. Setting the search params causes a navigation.
|
|
2944
|
+
*
|
|
2945
|
+
* ```tsx
|
|
2946
|
+
* import { useSearchParams } from "react-router";
|
|
2947
|
+
*
|
|
2948
|
+
* export function SomeComponent() {
|
|
2949
|
+
* const [searchParams, setSearchParams] = useSearchParams();
|
|
2950
|
+
* // ...
|
|
2951
|
+
* }
|
|
2952
|
+
* ```
|
|
2953
|
+
*
|
|
2954
|
+
* ### `setSearchParams` function
|
|
2955
|
+
*
|
|
2956
|
+
* The second element of the tuple is a function that can be used to update the
|
|
2957
|
+
* search params. It accepts the same types as `defaultInit` and will cause a
|
|
2958
|
+
* navigation to the new URL.
|
|
2959
|
+
*
|
|
2960
|
+
* ```tsx
|
|
2961
|
+
* let [searchParams, setSearchParams] = useSearchParams();
|
|
2962
|
+
*
|
|
2963
|
+
* // a search param string
|
|
2964
|
+
* setSearchParams("?tab=1");
|
|
2965
|
+
*
|
|
2966
|
+
* // a shorthand object
|
|
2967
|
+
* setSearchParams({ tab: "1" });
|
|
2968
|
+
*
|
|
2969
|
+
* // object keys can be arrays for multiple values on the key
|
|
2970
|
+
* setSearchParams({ brand: ["nike", "reebok"] });
|
|
2971
|
+
*
|
|
2972
|
+
* // an array of tuples
|
|
2973
|
+
* setSearchParams([["tab", "1"]]);
|
|
2974
|
+
*
|
|
2975
|
+
* // a `URLSearchParams` object
|
|
2976
|
+
* setSearchParams(new URLSearchParams("?tab=1"));
|
|
2977
|
+
* ```
|
|
2978
|
+
*
|
|
2979
|
+
* It also supports a function callback like React's
|
|
2980
|
+
* [`setState`](https://react.dev/reference/react/useState#setstate):
|
|
2981
|
+
*
|
|
2982
|
+
* ```tsx
|
|
2983
|
+
* setSearchParams((searchParams) => {
|
|
2984
|
+
* searchParams.set("tab", "2");
|
|
2985
|
+
* return searchParams;
|
|
2986
|
+
* });
|
|
2987
|
+
* ```
|
|
2988
|
+
*
|
|
2989
|
+
* <docs-warning>The function callback version of `setSearchParams` does not support
|
|
2990
|
+
* the [queueing](https://react.dev/reference/react/useState#setstate-parameters)
|
|
2991
|
+
* logic that React's `setState` implements. Multiple calls to `setSearchParams`
|
|
2992
|
+
* in the same tick will not build on the prior value. If you need this behavior,
|
|
2993
|
+
* you can use `setState` manually.</docs-warning>
|
|
2994
|
+
*
|
|
2995
|
+
* ### Notes
|
|
2996
|
+
*
|
|
2997
|
+
* Note that `searchParams` is a stable reference, so you can reliably use it
|
|
2998
|
+
* as a dependency in React's [`useEffect`](https://react.dev/reference/react/useEffect)
|
|
2999
|
+
* hooks.
|
|
3000
|
+
*
|
|
3001
|
+
* ```tsx
|
|
3002
|
+
* useEffect(() => {
|
|
3003
|
+
* console.log(searchParams.get("tab"));
|
|
3004
|
+
* }, [searchParams]);
|
|
3005
|
+
* ```
|
|
3006
|
+
*
|
|
3007
|
+
* However, this also means it's mutable. If you change the object without
|
|
3008
|
+
* calling `setSearchParams`, its values will change between renders if some
|
|
3009
|
+
* other state causes the component to re-render and URL will not reflect the
|
|
3010
|
+
* values.
|
|
3011
|
+
*
|
|
3012
|
+
* @public
|
|
3013
|
+
* @category Hooks
|
|
3014
|
+
* @param defaultInit
|
|
3015
|
+
* You can initialize the search params with a default value, though it **will
|
|
3016
|
+
* not** change the URL on the first render.
|
|
3017
|
+
*
|
|
3018
|
+
* ```tsx
|
|
3019
|
+
* // a search param string
|
|
3020
|
+
* useSearchParams("?tab=1");
|
|
3021
|
+
*
|
|
3022
|
+
* // a shorthand object
|
|
3023
|
+
* useSearchParams({ tab: "1" });
|
|
3024
|
+
*
|
|
3025
|
+
* // object keys can be arrays for multiple values on the key
|
|
3026
|
+
* useSearchParams({ brand: ["nike", "reebok"] });
|
|
3027
|
+
*
|
|
3028
|
+
* // an array of tuples
|
|
3029
|
+
* useSearchParams([["tab", "1"]]);
|
|
3030
|
+
*
|
|
3031
|
+
* // a `URLSearchParams` object
|
|
3032
|
+
* useSearchParams(new URLSearchParams("?tab=1"));
|
|
3033
|
+
* ```
|
|
3034
|
+
* @returns A tuple of the current [`URLSearchParams`](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams)
|
|
3035
|
+
* and a function to update them.
|
|
3036
|
+
*/
|
|
3037
|
+
function useSearchParams(defaultInit) {
|
|
3038
|
+
warning(typeof URLSearchParams !== "undefined", "You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");
|
|
3039
|
+
let defaultSearchParamsRef = React$1.useRef(createSearchParams(defaultInit));
|
|
3040
|
+
let hasSetSearchParamsRef = React$1.useRef(false);
|
|
3041
|
+
let location = useLocation();
|
|
3042
|
+
let searchParams = React$1.useMemo(() => getSearchParamsForLocation(location.search, hasSetSearchParamsRef.current ? null : defaultSearchParamsRef.current), [location.search]);
|
|
3043
|
+
let navigate = useNavigate();
|
|
3044
|
+
return [searchParams, React$1.useCallback((nextInit, navigateOptions) => {
|
|
3045
|
+
const newSearchParams = createSearchParams(typeof nextInit === "function" ? nextInit(new URLSearchParams(searchParams)) : nextInit);
|
|
3046
|
+
hasSetSearchParamsRef.current = true;
|
|
3047
|
+
navigate("?" + newSearchParams, navigateOptions);
|
|
3048
|
+
}, [navigate, searchParams])];
|
|
3049
|
+
}
|
|
2876
3050
|
let fetcherId = 0;
|
|
2877
3051
|
let getUniqueFetcherId = () => `__${String(++fetcherId)}__`;
|
|
2878
3052
|
/**
|
|
@@ -3280,11 +3454,11 @@ const createLucideIcon = (iconName, iconNode) => {
|
|
|
3280
3454
|
* This source code is licensed under the ISC license.
|
|
3281
3455
|
* See the LICENSE file in the root directory of this source tree.
|
|
3282
3456
|
*/
|
|
3283
|
-
const __iconNode$
|
|
3457
|
+
const __iconNode$12 = [["path", {
|
|
3284
3458
|
d: "M20 6 9 17l-5-5",
|
|
3285
3459
|
key: "1gmf2c"
|
|
3286
3460
|
}]];
|
|
3287
|
-
const Check$1 = createLucideIcon("check", __iconNode$
|
|
3461
|
+
const Check$1 = createLucideIcon("check", __iconNode$12);
|
|
3288
3462
|
|
|
3289
3463
|
//#endregion
|
|
3290
3464
|
//#region ../../node_modules/.pnpm/lucide-react@1.28.0_react@19.2.8/node_modules/lucide-react/dist/esm/icons/chevron-down.mjs
|
|
@@ -3294,11 +3468,11 @@ const Check$1 = createLucideIcon("check", __iconNode$9);
|
|
|
3294
3468
|
* This source code is licensed under the ISC license.
|
|
3295
3469
|
* See the LICENSE file in the root directory of this source tree.
|
|
3296
3470
|
*/
|
|
3297
|
-
const __iconNode$
|
|
3471
|
+
const __iconNode$11 = [["path", {
|
|
3298
3472
|
d: "m6 9 6 6 6-6",
|
|
3299
3473
|
key: "qrunsl"
|
|
3300
3474
|
}]];
|
|
3301
|
-
const ChevronDown = createLucideIcon("chevron-down", __iconNode$
|
|
3475
|
+
const ChevronDown = createLucideIcon("chevron-down", __iconNode$11);
|
|
3302
3476
|
|
|
3303
3477
|
//#endregion
|
|
3304
3478
|
//#region ../../node_modules/.pnpm/lucide-react@1.28.0_react@19.2.8/node_modules/lucide-react/dist/esm/icons/chevron-right.mjs
|
|
@@ -3308,11 +3482,11 @@ const ChevronDown = createLucideIcon("chevron-down", __iconNode$8);
|
|
|
3308
3482
|
* This source code is licensed under the ISC license.
|
|
3309
3483
|
* See the LICENSE file in the root directory of this source tree.
|
|
3310
3484
|
*/
|
|
3311
|
-
const __iconNode$
|
|
3485
|
+
const __iconNode$10 = [["path", {
|
|
3312
3486
|
d: "m9 18 6-6-6-6",
|
|
3313
3487
|
key: "mthhwq"
|
|
3314
3488
|
}]];
|
|
3315
|
-
const ChevronRight = createLucideIcon("chevron-right", __iconNode$
|
|
3489
|
+
const ChevronRight = createLucideIcon("chevron-right", __iconNode$10);
|
|
3316
3490
|
|
|
3317
3491
|
//#endregion
|
|
3318
3492
|
//#region ../../node_modules/.pnpm/lucide-react@1.28.0_react@19.2.8/node_modules/lucide-react/dist/esm/icons/chevron-up.mjs
|
|
@@ -3322,11 +3496,11 @@ const ChevronRight = createLucideIcon("chevron-right", __iconNode$7);
|
|
|
3322
3496
|
* This source code is licensed under the ISC license.
|
|
3323
3497
|
* See the LICENSE file in the root directory of this source tree.
|
|
3324
3498
|
*/
|
|
3325
|
-
const __iconNode$
|
|
3499
|
+
const __iconNode$9 = [["path", {
|
|
3326
3500
|
d: "m18 15-6-6-6 6",
|
|
3327
3501
|
key: "153udz"
|
|
3328
3502
|
}]];
|
|
3329
|
-
const ChevronUp = createLucideIcon("chevron-up", __iconNode$
|
|
3503
|
+
const ChevronUp = createLucideIcon("chevron-up", __iconNode$9);
|
|
3330
3504
|
|
|
3331
3505
|
//#endregion
|
|
3332
3506
|
//#region ../../node_modules/.pnpm/lucide-react@1.28.0_react@19.2.8/node_modules/lucide-react/dist/esm/icons/circle-alert.mjs
|
|
@@ -3336,7 +3510,7 @@ const ChevronUp = createLucideIcon("chevron-up", __iconNode$6);
|
|
|
3336
3510
|
* This source code is licensed under the ISC license.
|
|
3337
3511
|
* See the LICENSE file in the root directory of this source tree.
|
|
3338
3512
|
*/
|
|
3339
|
-
const __iconNode$
|
|
3513
|
+
const __iconNode$8 = [
|
|
3340
3514
|
["circle", {
|
|
3341
3515
|
cx: "12",
|
|
3342
3516
|
cy: "12",
|
|
@@ -3358,7 +3532,52 @@ const __iconNode$5 = [
|
|
|
3358
3532
|
key: "4dfq90"
|
|
3359
3533
|
}]
|
|
3360
3534
|
];
|
|
3361
|
-
const CircleAlert = createLucideIcon("circle-alert", __iconNode$
|
|
3535
|
+
const CircleAlert = createLucideIcon("circle-alert", __iconNode$8);
|
|
3536
|
+
|
|
3537
|
+
//#endregion
|
|
3538
|
+
//#region ../../node_modules/.pnpm/lucide-react@1.28.0_react@19.2.8/node_modules/lucide-react/dist/esm/icons/file.mjs
|
|
3539
|
+
/**
|
|
3540
|
+
* @license lucide-react v1.28.0 - ISC
|
|
3541
|
+
*
|
|
3542
|
+
* This source code is licensed under the ISC license.
|
|
3543
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
3544
|
+
*/
|
|
3545
|
+
const __iconNode$7 = [["path", {
|
|
3546
|
+
d: "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",
|
|
3547
|
+
key: "1oefj6"
|
|
3548
|
+
}], ["path", {
|
|
3549
|
+
d: "M14 2v5a1 1 0 0 0 1 1h5",
|
|
3550
|
+
key: "wfsgrz"
|
|
3551
|
+
}]];
|
|
3552
|
+
const File = createLucideIcon("file", __iconNode$7);
|
|
3553
|
+
|
|
3554
|
+
//#endregion
|
|
3555
|
+
//#region ../../node_modules/.pnpm/lucide-react@1.28.0_react@19.2.8/node_modules/lucide-react/dist/esm/icons/folder-open.mjs
|
|
3556
|
+
/**
|
|
3557
|
+
* @license lucide-react v1.28.0 - ISC
|
|
3558
|
+
*
|
|
3559
|
+
* This source code is licensed under the ISC license.
|
|
3560
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
3561
|
+
*/
|
|
3562
|
+
const __iconNode$6 = [["path", {
|
|
3563
|
+
d: "m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",
|
|
3564
|
+
key: "usdka0"
|
|
3565
|
+
}]];
|
|
3566
|
+
const FolderOpen = createLucideIcon("folder-open", __iconNode$6);
|
|
3567
|
+
|
|
3568
|
+
//#endregion
|
|
3569
|
+
//#region ../../node_modules/.pnpm/lucide-react@1.28.0_react@19.2.8/node_modules/lucide-react/dist/esm/icons/folder.mjs
|
|
3570
|
+
/**
|
|
3571
|
+
* @license lucide-react v1.28.0 - ISC
|
|
3572
|
+
*
|
|
3573
|
+
* This source code is licensed under the ISC license.
|
|
3574
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
3575
|
+
*/
|
|
3576
|
+
const __iconNode$5 = [["path", {
|
|
3577
|
+
d: "M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",
|
|
3578
|
+
key: "1kt360"
|
|
3579
|
+
}]];
|
|
3580
|
+
const Folder = createLucideIcon("folder", __iconNode$5);
|
|
3362
3581
|
|
|
3363
3582
|
//#endregion
|
|
3364
3583
|
//#region ../../node_modules/.pnpm/lucide-react@1.28.0_react@19.2.8/node_modules/lucide-react/dist/esm/icons/hand.mjs
|
|
@@ -3594,7 +3813,7 @@ function getFrameElement(win) {
|
|
|
3594
3813
|
}
|
|
3595
3814
|
|
|
3596
3815
|
//#endregion
|
|
3597
|
-
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.2_@
|
|
3816
|
+
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.2_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/utils/safeReact.mjs
|
|
3598
3817
|
/**
|
|
3599
3818
|
* A clone of the React namespace for reading APIs that may be missing in older
|
|
3600
3819
|
* supported React versions. Bundlers can rewrite direct `React.someNewApi`
|
|
@@ -3606,7 +3825,7 @@ function getFrameElement(win) {
|
|
|
3606
3825
|
const SafeReact = { ...React$1 };
|
|
3607
3826
|
|
|
3608
3827
|
//#endregion
|
|
3609
|
-
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.2_@
|
|
3828
|
+
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.2_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/utils/useRefWithInit.mjs
|
|
3610
3829
|
const UNINITIALIZED = {};
|
|
3611
3830
|
/**
|
|
3612
3831
|
* A React.useRef() that is initialized with a function. Note that it accepts an optional
|
|
@@ -3622,7 +3841,7 @@ function useRefWithInit(init, initArg) {
|
|
|
3622
3841
|
}
|
|
3623
3842
|
|
|
3624
3843
|
//#endregion
|
|
3625
|
-
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.2_@
|
|
3844
|
+
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.2_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/utils/useStableCallback.mjs
|
|
3626
3845
|
const useInsertionEffect = SafeReact.useInsertionEffect;
|
|
3627
3846
|
const useSafeInsertionEffect = useInsertionEffect && useInsertionEffect !== SafeReact.useLayoutEffect ? useInsertionEffect : (fn) => fn();
|
|
3628
3847
|
/**
|
|
@@ -3657,7 +3876,7 @@ function assertNotCalled() {
|
|
|
3657
3876
|
}
|
|
3658
3877
|
|
|
3659
3878
|
//#endregion
|
|
3660
|
-
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.2_@
|
|
3879
|
+
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.2_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/utils/error.mjs
|
|
3661
3880
|
let set$1;
|
|
3662
3881
|
set$1 = /* @__PURE__ */ new Set();
|
|
3663
3882
|
function error(...messages) {
|
|
@@ -3671,12 +3890,12 @@ function error(...messages) {
|
|
|
3671
3890
|
}
|
|
3672
3891
|
|
|
3673
3892
|
//#endregion
|
|
3674
|
-
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.2_@
|
|
3893
|
+
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.2_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/utils/useIsoLayoutEffect.mjs
|
|
3675
3894
|
const noop = () => {};
|
|
3676
3895
|
const useIsoLayoutEffect = typeof document !== "undefined" ? React$1.useLayoutEffect : noop;
|
|
3677
3896
|
|
|
3678
3897
|
//#endregion
|
|
3679
|
-
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.2_@
|
|
3898
|
+
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.2_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/utils/mergeObjects.mjs
|
|
3680
3899
|
function mergeObjects(a, b) {
|
|
3681
3900
|
if (a && !b) return a;
|
|
3682
3901
|
if (!a && b) return b;
|
|
@@ -3687,7 +3906,7 @@ function mergeObjects(a, b) {
|
|
|
3687
3906
|
}
|
|
3688
3907
|
|
|
3689
3908
|
//#endregion
|
|
3690
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
3909
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/merge-props/mergeProps.mjs
|
|
3691
3910
|
const EMPTY_PROPS = {};
|
|
3692
3911
|
/**
|
|
3693
3912
|
* Merges multiple sets of React props. It follows the Object.assign pattern where the rightmost object's fields overwrite
|
|
@@ -3839,7 +4058,7 @@ function isSyntheticEvent(event) {
|
|
|
3839
4058
|
}
|
|
3840
4059
|
|
|
3841
4060
|
//#endregion
|
|
3842
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
4061
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/internals/composite/root/CompositeRootContext.mjs
|
|
3843
4062
|
const CompositeRootContext = /*#__PURE__*/ React$1.createContext(void 0);
|
|
3844
4063
|
CompositeRootContext.displayName = "CompositeRootContext";
|
|
3845
4064
|
function useCompositeRootContext(optional = false) {
|
|
@@ -3849,7 +4068,7 @@ function useCompositeRootContext(optional = false) {
|
|
|
3849
4068
|
}
|
|
3850
4069
|
|
|
3851
4070
|
//#endregion
|
|
3852
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
4071
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/utils/useFocusableWhenDisabled.mjs
|
|
3853
4072
|
function useFocusableWhenDisabled(parameters) {
|
|
3854
4073
|
const { focusableWhenDisabled, disabled, composite = false, tabIndex: tabIndexProp = 0, isNativeButton } = parameters;
|
|
3855
4074
|
const isFocusableComposite = composite && focusableWhenDisabled !== false;
|
|
@@ -3877,13 +4096,13 @@ function useFocusableWhenDisabled(parameters) {
|
|
|
3877
4096
|
}
|
|
3878
4097
|
|
|
3879
4098
|
//#endregion
|
|
3880
|
-
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.2_@
|
|
4099
|
+
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.2_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/utils/owner.mjs
|
|
3881
4100
|
function ownerDocument(node) {
|
|
3882
4101
|
return node?.ownerDocument || document;
|
|
3883
4102
|
}
|
|
3884
4103
|
|
|
3885
4104
|
//#endregion
|
|
3886
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
4105
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/utils/dispatchClickWithModifiers.mjs
|
|
3887
4106
|
/**
|
|
3888
4107
|
* Dispatches a constructed click on the target so it carries the source event's
|
|
3889
4108
|
* modifier state, which `click()` always reports as unpressed. Like `click()`,
|
|
@@ -3907,7 +4126,7 @@ function dispatchClickWithModifiers(target, sourceEvent, { detail = 0 } = {}) {
|
|
|
3907
4126
|
}
|
|
3908
4127
|
|
|
3909
4128
|
//#endregion
|
|
3910
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
4129
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/internals/use-button/useButton.mjs
|
|
3911
4130
|
function useButton(parameters = {}) {
|
|
3912
4131
|
const { disabled = false, focusableWhenDisabled, tabIndex = 0, native: isNativeButton = true, composite: compositeProp } = parameters;
|
|
3913
4132
|
const elementRef = React$1.useRef(null);
|
|
@@ -4033,7 +4252,7 @@ function isValidLinkElement(elem) {
|
|
|
4033
4252
|
}
|
|
4034
4253
|
|
|
4035
4254
|
//#endregion
|
|
4036
|
-
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.2_@
|
|
4255
|
+
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.2_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/utils/useMergedRefs.mjs
|
|
4037
4256
|
/**
|
|
4038
4257
|
* Merges refs into a single memoized callback ref or `null`.
|
|
4039
4258
|
* This makes sure multiple refs are updated together and have the same value.
|
|
@@ -4119,14 +4338,14 @@ function update(forkRef, refs) {
|
|
|
4119
4338
|
}
|
|
4120
4339
|
|
|
4121
4340
|
//#endregion
|
|
4122
|
-
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.2_@
|
|
4341
|
+
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.2_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/utils/reactVersion.mjs
|
|
4123
4342
|
const majorVersion = parseInt(React$1.version, 10);
|
|
4124
4343
|
function isReactVersionAtLeast(reactVersionToCheck) {
|
|
4125
4344
|
return majorVersion >= reactVersionToCheck;
|
|
4126
4345
|
}
|
|
4127
4346
|
|
|
4128
4347
|
//#endregion
|
|
4129
|
-
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.2_@
|
|
4348
|
+
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.2_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/utils/getReactElementRef.mjs
|
|
4130
4349
|
/**
|
|
4131
4350
|
* Extracts the `ref` from a React element, handling different React versions.
|
|
4132
4351
|
*/
|
|
@@ -4138,7 +4357,7 @@ function getReactElementRef(element) {
|
|
|
4138
4357
|
}
|
|
4139
4358
|
|
|
4140
4359
|
//#endregion
|
|
4141
|
-
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.2_@
|
|
4360
|
+
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.2_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/utils/warn.mjs
|
|
4142
4361
|
let set;
|
|
4143
4362
|
set = /* @__PURE__ */ new Set();
|
|
4144
4363
|
function warn(...messages) {
|
|
@@ -4152,13 +4371,13 @@ function warn(...messages) {
|
|
|
4152
4371
|
}
|
|
4153
4372
|
|
|
4154
4373
|
//#endregion
|
|
4155
|
-
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.2_@
|
|
4374
|
+
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.2_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/utils/empty.mjs
|
|
4156
4375
|
function NOOP() {}
|
|
4157
4376
|
const EMPTY_ARRAY$1 = Object.freeze([]);
|
|
4158
4377
|
const EMPTY_OBJECT = Object.freeze({});
|
|
4159
4378
|
|
|
4160
4379
|
//#endregion
|
|
4161
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
4380
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/internals/getStateAttributesProps.mjs
|
|
4162
4381
|
function getStateAttributesProps(state, customMapping) {
|
|
4163
4382
|
const props = {};
|
|
4164
4383
|
for (const key in state) {
|
|
@@ -4175,7 +4394,7 @@ function getStateAttributesProps(state, customMapping) {
|
|
|
4175
4394
|
}
|
|
4176
4395
|
|
|
4177
4396
|
//#endregion
|
|
4178
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
4397
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/utils/resolveClassName.mjs
|
|
4179
4398
|
/**
|
|
4180
4399
|
* If the provided className is a string, it will be returned as is.
|
|
4181
4400
|
* Otherwise, the function will call the className function with the state as the first argument.
|
|
@@ -4188,7 +4407,7 @@ function resolveClassName(className, state) {
|
|
|
4188
4407
|
}
|
|
4189
4408
|
|
|
4190
4409
|
//#endregion
|
|
4191
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
4410
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/utils/resolveStyle.mjs
|
|
4192
4411
|
/**
|
|
4193
4412
|
* If the provided style is an object, it will be returned as is.
|
|
4194
4413
|
* Otherwise, the function will call the style function with the state as the first argument.
|
|
@@ -4201,7 +4420,7 @@ function resolveStyle(style, state) {
|
|
|
4201
4420
|
}
|
|
4202
4421
|
|
|
4203
4422
|
//#endregion
|
|
4204
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
4423
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/internals/useRenderElement.mjs
|
|
4205
4424
|
/**
|
|
4206
4425
|
* Renders a Base UI element.
|
|
4207
4426
|
*
|
|
@@ -4289,7 +4508,7 @@ function renderTag(Tag, props) {
|
|
|
4289
4508
|
}
|
|
4290
4509
|
|
|
4291
4510
|
//#endregion
|
|
4292
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
4511
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/button/Button.mjs
|
|
4293
4512
|
/**
|
|
4294
4513
|
* A button component that can be used to trigger actions.
|
|
4295
4514
|
* Renders a `<button>` element.
|
|
@@ -7811,7 +8030,7 @@ function Button$1({ className, variant = "default", size = "default", ...props }
|
|
|
7811
8030
|
}
|
|
7812
8031
|
|
|
7813
8032
|
//#endregion
|
|
7814
|
-
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.2_@
|
|
8033
|
+
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.2_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/utils/useOnMount.mjs
|
|
7815
8034
|
/**
|
|
7816
8035
|
* A React.useEffect equivalent that runs once, when the component is mounted.
|
|
7817
8036
|
*/
|
|
@@ -7820,7 +8039,7 @@ function useOnMount(fn) {
|
|
|
7820
8039
|
}
|
|
7821
8040
|
|
|
7822
8041
|
//#endregion
|
|
7823
|
-
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.2_@
|
|
8042
|
+
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.2_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/utils/useTimeout.mjs
|
|
7824
8043
|
const EMPTY$1 = 0;
|
|
7825
8044
|
var Timeout = class Timeout {
|
|
7826
8045
|
static create() {
|
|
@@ -7860,7 +8079,7 @@ function useTimeout() {
|
|
|
7860
8079
|
}
|
|
7861
8080
|
|
|
7862
8081
|
//#endregion
|
|
7863
|
-
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.2_@
|
|
8082
|
+
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.2_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/utils/useId.mjs
|
|
7864
8083
|
let globalId = 0;
|
|
7865
8084
|
function useGlobalId(idOverride, prefix = "mui") {
|
|
7866
8085
|
const [defaultId, setDefaultId] = React$1.useState(idOverride);
|
|
@@ -7880,7 +8099,7 @@ const maybeReactUseId = SafeReact.useId;
|
|
|
7880
8099
|
* @param idOverride
|
|
7881
8100
|
* @returns {string}
|
|
7882
8101
|
*/
|
|
7883
|
-
function useId(idOverride, prefix) {
|
|
8102
|
+
function useId$1(idOverride, prefix) {
|
|
7884
8103
|
if (maybeReactUseId !== void 0) {
|
|
7885
8104
|
const reactId = maybeReactUseId();
|
|
7886
8105
|
return idOverride ?? (prefix ? `${prefix}-${reactId}` : reactId);
|
|
@@ -7889,18 +8108,18 @@ function useId(idOverride, prefix) {
|
|
|
7889
8108
|
}
|
|
7890
8109
|
|
|
7891
8110
|
//#endregion
|
|
7892
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
8111
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/internals/useBaseUiId.mjs
|
|
7893
8112
|
/**
|
|
7894
8113
|
* Wraps `useId` and prefixes generated `id`s with `base-ui-`
|
|
7895
8114
|
* @param {string | undefined} idOverride overrides the generated id when provided
|
|
7896
8115
|
* @returns {string | undefined}
|
|
7897
8116
|
*/
|
|
7898
8117
|
function useBaseUiId(idOverride) {
|
|
7899
|
-
return useId(idOverride, "base-ui");
|
|
8118
|
+
return useId$1(idOverride, "base-ui");
|
|
7900
8119
|
}
|
|
7901
8120
|
|
|
7902
8121
|
//#endregion
|
|
7903
|
-
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.2_@
|
|
8122
|
+
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.2_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/utils/platform/shared.mjs
|
|
7904
8123
|
/**
|
|
7905
8124
|
* Reads `navigator.userAgent` / `navigator.platform` (legacy but universally
|
|
7906
8125
|
* supported) into a normalized shape. In development, prefers the modern
|
|
@@ -7936,7 +8155,7 @@ const lowerUserAgent = userAgent.toLowerCase();
|
|
|
7936
8155
|
const lowerPlatform = platform$1.toLowerCase();
|
|
7937
8156
|
|
|
7938
8157
|
//#endregion
|
|
7939
|
-
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.2_@
|
|
8158
|
+
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.2_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/utils/platform/os.mjs
|
|
7940
8159
|
/** iPhone, iPad (including iPadOS 13+ reporting as macOS), iPod. */
|
|
7941
8160
|
const ios = /^i(os$|p)/.test(lowerPlatform) || lowerPlatform === "macintel" && maxTouchPoints > 1;
|
|
7942
8161
|
/** Android phones, tablets, and embedded Android browsers. */
|
|
@@ -7952,7 +8171,7 @@ const linux = !android && /^(linux|chrome os)/.test(lowerPlatform);
|
|
|
7952
8171
|
const apple = mac || ios;
|
|
7953
8172
|
|
|
7954
8173
|
//#endregion
|
|
7955
|
-
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.2_@
|
|
8174
|
+
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.2_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/utils/platform/engine.mjs
|
|
7956
8175
|
/** WebKit: Safari, all iOS browsers, GNOME Web. Excludes Blink. */
|
|
7957
8176
|
const webkit = typeof CSS !== "undefined" && !!CSS.supports?.("-webkit-backdrop-filter:none");
|
|
7958
8177
|
/** Gecko: Firefox. */
|
|
@@ -7961,7 +8180,7 @@ const gecko = !webkit && lowerUserAgent.includes("firefox");
|
|
|
7961
8180
|
const blink = !webkit && lowerUserAgent.includes("chrom");
|
|
7962
8181
|
|
|
7963
8182
|
//#endregion
|
|
7964
|
-
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.2_@
|
|
8183
|
+
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.2_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/utils/platform/screen-reader.mjs
|
|
7965
8184
|
/**
|
|
7966
8185
|
* The user *may* be using VoiceOver — actual activation is not detectable.
|
|
7967
8186
|
* True on any Apple platform (macOS, iOS, iPadOS).
|
|
@@ -7969,12 +8188,12 @@ const blink = !webkit && lowerUserAgent.includes("chrom");
|
|
|
7969
8188
|
const voiceOver = apple;
|
|
7970
8189
|
|
|
7971
8190
|
//#endregion
|
|
7972
|
-
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.2_@
|
|
8191
|
+
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.2_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/utils/platform/env.mjs
|
|
7973
8192
|
/** Running in jsdom or HappyDOM (used by unit tests). */
|
|
7974
8193
|
const jsdom = /jsdom|happydom/.test(lowerUserAgent);
|
|
7975
8194
|
|
|
7976
8195
|
//#endregion
|
|
7977
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
8196
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/floating-ui-react/utils/constants.mjs
|
|
7978
8197
|
const FOCUSABLE_ATTRIBUTE = "data-base-ui-focusable";
|
|
7979
8198
|
const TYPEABLE_SELECTOR = "input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";
|
|
7980
8199
|
const ARROW_LEFT$1 = "ArrowLeft";
|
|
@@ -7983,7 +8202,7 @@ const ARROW_UP$1 = "ArrowUp";
|
|
|
7983
8202
|
const ARROW_DOWN$1 = "ArrowDown";
|
|
7984
8203
|
|
|
7985
8204
|
//#endregion
|
|
7986
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
8205
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/internals/shadowDom.mjs
|
|
7987
8206
|
function activeElement(doc) {
|
|
7988
8207
|
let element = doc.activeElement;
|
|
7989
8208
|
while (element?.shadowRoot?.activeElement != null) element = element.shadowRoot.activeElement;
|
|
@@ -8008,7 +8227,7 @@ function getTarget(event) {
|
|
|
8008
8227
|
}
|
|
8009
8228
|
|
|
8010
8229
|
//#endregion
|
|
8011
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
8230
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/floating-ui-react/utils/element.mjs
|
|
8012
8231
|
function isTargetInsideEnabledTrigger(target, triggerElements) {
|
|
8013
8232
|
if (!isElement(target)) return false;
|
|
8014
8233
|
const targetElement = target;
|
|
@@ -8049,7 +8268,7 @@ function getFloatingFocusElement(floatingElement) {
|
|
|
8049
8268
|
}
|
|
8050
8269
|
|
|
8051
8270
|
//#endregion
|
|
8052
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
8271
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/floating-ui-react/utils/nodes.mjs
|
|
8053
8272
|
function getNodeChildren(nodes, id, onlyOpenChildren = true) {
|
|
8054
8273
|
return nodes.filter((node) => node.parentId === id).flatMap((child) => [...!onlyOpenChildren || child.context?.open ? [child] : [], ...getNodeChildren(nodes, child.id, onlyOpenChildren)]);
|
|
8055
8274
|
}
|
|
@@ -8065,7 +8284,7 @@ function getNodeAncestors(nodes, id) {
|
|
|
8065
8284
|
}
|
|
8066
8285
|
|
|
8067
8286
|
//#endregion
|
|
8068
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
8287
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/floating-ui-react/utils/event.mjs
|
|
8069
8288
|
function stopEvent(event) {
|
|
8070
8289
|
event.preventDefault();
|
|
8071
8290
|
event.stopPropagation();
|
|
@@ -8213,7 +8432,7 @@ function rectToClientRect(rect) {
|
|
|
8213
8432
|
}
|
|
8214
8433
|
|
|
8215
8434
|
//#endregion
|
|
8216
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
8435
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/floating-ui-react/utils/composite.mjs
|
|
8217
8436
|
function isIndexOutOfListBounds(list, index) {
|
|
8218
8437
|
return index < 0 || index >= list.length;
|
|
8219
8438
|
}
|
|
@@ -8252,7 +8471,7 @@ function isElementVisible(element, styles = element ? getComputedStyle$1(element
|
|
|
8252
8471
|
}
|
|
8253
8472
|
|
|
8254
8473
|
//#endregion
|
|
8255
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
8474
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/floating-ui-react/utils/tabbable.mjs
|
|
8256
8475
|
const CANDIDATE_SELECTOR = "a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable=\"false\"]),audio[controls],video[controls]";
|
|
8257
8476
|
function getParentElement(element) {
|
|
8258
8477
|
const assignedSlot = element.assignedSlot;
|
|
@@ -8398,7 +8617,7 @@ function enableFocusInside(container) {
|
|
|
8398
8617
|
}
|
|
8399
8618
|
|
|
8400
8619
|
//#endregion
|
|
8401
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
8620
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/internals/direction-context/DirectionContext.mjs
|
|
8402
8621
|
const DirectionContext = /*#__PURE__*/ React$1.createContext(void 0);
|
|
8403
8622
|
DirectionContext.displayName = "DirectionContext";
|
|
8404
8623
|
function useDirection() {
|
|
@@ -8406,7 +8625,7 @@ function useDirection() {
|
|
|
8406
8625
|
}
|
|
8407
8626
|
|
|
8408
8627
|
//#endregion
|
|
8409
|
-
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.2_@
|
|
8628
|
+
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.2_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/utils/addEventListener.mjs
|
|
8410
8629
|
/**
|
|
8411
8630
|
* Adds an event listener and returns a cleanup function to remove it.
|
|
8412
8631
|
*/
|
|
@@ -8418,7 +8637,231 @@ function addEventListener(target, type, listener, options) {
|
|
|
8418
8637
|
}
|
|
8419
8638
|
|
|
8420
8639
|
//#endregion
|
|
8421
|
-
//#region
|
|
8640
|
+
//#region src/components/docs/styles.ts
|
|
8641
|
+
/** Shared Tailwind utility groups for the built-in MDX components. */
|
|
8642
|
+
const styles = {
|
|
8643
|
+
accordion: "my-3 [&_h3:has(>[data-slot=accordion-trigger])]:m-0",
|
|
8644
|
+
accordionGroup: "my-4 [&_h3:has(>[data-slot=accordion-trigger])]:m-0",
|
|
8645
|
+
accordionItem: "",
|
|
8646
|
+
accordionTrigger: "text-foreground",
|
|
8647
|
+
accordionContent: "text-muted-foreground [&_p]:mt-0 [&_p:last-child]:mb-0",
|
|
8648
|
+
expandableTrigger: "items-center py-3 text-sm font-normal text-foreground hover:no-underline",
|
|
8649
|
+
expandableContent: "pl-6",
|
|
8650
|
+
callout: "my-4 flex items-start gap-3 rounded-lg border px-3 py-2.5 text-sm leading-6",
|
|
8651
|
+
calloutIcon: "flex h-6 w-5 shrink-0 items-center justify-center [&_svg]:block [&_svg]:size-4",
|
|
8652
|
+
calloutBody: "flex min-w-0 flex-1 flex-col gap-[0.35rem] [&>:first-child]:mt-0 [&>:last-child]:mb-0 [&_:where(p,ul,ol)]:my-[0.35rem] [&>:where(p,ul,ol):first-child]:mt-0 [&>:where(p,ul,ol):last-child]:mb-0",
|
|
8653
|
+
calloutDescription: "text-sm text-inherit leading-6 [&>:first-child]:mt-0 [&>:last-child]:mb-0",
|
|
8654
|
+
calloutTitle: "font-semibold leading-6",
|
|
8655
|
+
note: "border-border bg-muted/50 text-foreground",
|
|
8656
|
+
info: "border-blue-300 bg-blue-50 text-blue-900 dark:border-blue-400/40 dark:bg-blue-400/10 dark:text-blue-300",
|
|
8657
|
+
warning: "border-amber-300 bg-amber-50 text-amber-900 dark:border-amber-400/40 dark:bg-amber-400/10 dark:text-amber-300",
|
|
8658
|
+
tip: "border-green-300 bg-green-50 text-green-900 dark:border-green-400/40 dark:bg-green-400/10 dark:text-green-300",
|
|
8659
|
+
check: "border-emerald-300 bg-emerald-50 text-emerald-900 dark:border-emerald-400/40 dark:bg-emerald-400/10 dark:text-emerald-300",
|
|
8660
|
+
danger: "border-destructive/40 bg-destructive/10 text-destructive",
|
|
8661
|
+
card: "block h-full gap-0 rounded-lg border border-border p-4 text-sm ring-0 hover:border-primary",
|
|
8662
|
+
cardPlain: "bg-card",
|
|
8663
|
+
cardHorizontal: "[&_[data-slot=card-inner]]:items-center [&_[data-slot=card-main]]:flex-row [&_[data-slot=card-main]]:items-center [&_[data-slot=card-main]]:gap-3 [&_[data-slot=card-body]]:m-0 [&_[data-slot=card-header]]:flex-row [&_[data-slot=card-header]]:items-center [&_[data-slot=card-header]]:gap-2",
|
|
8664
|
+
cardTyped: "[&_[data-slot=card-title]]:text-inherit [&_[data-slot=card-body]]:text-inherit [&_[data-slot=card-cta]]:text-inherit [&_[data-slot=card-arrow]]:text-inherit",
|
|
8665
|
+
cardImageLayout: "p-0 [&_[data-slot=card-inner]]:p-6",
|
|
8666
|
+
cardImage: "block aspect-video w-full border-border border-b object-cover",
|
|
8667
|
+
cardInner: "flex items-start justify-between gap-3",
|
|
8668
|
+
cardMain: "flex min-w-0 flex-col gap-2",
|
|
8669
|
+
cardHeader: "flex flex-col items-start gap-3",
|
|
8670
|
+
cardIcon: "inline-flex shrink-0 items-center justify-center [&_img]:size-6 [&_svg]:size-6",
|
|
8671
|
+
cardTitle: "text-sm font-semibold text-foreground",
|
|
8672
|
+
cardBody: "text-muted-foreground [&>:first-child]:mt-0 [&>:last-child]:mb-0",
|
|
8673
|
+
cardCta: "flex shrink-0 items-center gap-[0.35rem] text-[0.9rem] font-medium text-muted-foreground",
|
|
8674
|
+
cardArrow: "shrink-0 text-muted-foreground",
|
|
8675
|
+
grid: "my-4 grid grid-cols-1 gap-4",
|
|
8676
|
+
gridCols1: "md:grid-cols-1",
|
|
8677
|
+
gridCols2: "md:grid-cols-2",
|
|
8678
|
+
gridCols3: "md:grid-cols-3",
|
|
8679
|
+
gridCols4: "md:grid-cols-4",
|
|
8680
|
+
column: "min-w-0 [&>:first-child]:mt-0 [&>:last-child]:mb-0",
|
|
8681
|
+
icon: "inline-block align-[-0.145em]",
|
|
8682
|
+
tabs: "my-4 gap-0",
|
|
8683
|
+
frameWrapper: "my-4",
|
|
8684
|
+
frameHint: "mb-4 flex items-start gap-2 text-sm font-medium leading-5 text-foreground",
|
|
8685
|
+
frameHintIcon: "flex h-5 shrink-0 items-center text-muted-foreground [&_svg]:size-4 [&_svg]:fill-current",
|
|
8686
|
+
frame: "relative overflow-hidden rounded-2xl border border-border bg-muted/25 p-2",
|
|
8687
|
+
frameContent: "relative flex justify-center overflow-hidden rounded-xl [&_p]:m-0 [&_img]:m-0 [&_img]:w-full [&_video]:w-full [&_[data-slot=zoomable-image]]:m-0 [&_[data-slot=zoomable-image]]:w-full",
|
|
8688
|
+
frameCaption: "relative mt-3 px-4 pb-1 text-center text-sm leading-5 text-muted-foreground [&_p]:m-0 [&_a]:font-semibold",
|
|
8689
|
+
code: "rounded-sm bg-[color-mix(in_srgb,currentColor_4%,transparent)] px-[0.35rem] py-[0.1rem] text-sm text-foreground font-mono",
|
|
8690
|
+
steps: "relative my-4 flex flex-col gap-5 before:absolute before:top-4 before:bottom-4 before:left-4 before:w-px before:-translate-x-1/2 before:bg-border before:content-['']",
|
|
8691
|
+
step: "relative flex items-start gap-4",
|
|
8692
|
+
stepNumber: "relative z-[1] flex size-8 shrink-0 items-center justify-center rounded-full border border-border bg-card text-[0.9rem] font-semibold text-foreground",
|
|
8693
|
+
stepContent: "flex min-w-0 grow flex-col gap-2",
|
|
8694
|
+
stepTitle: "text-[1.1rem] font-semibold text-foreground",
|
|
8695
|
+
tooltipTrigger: "peer cursor-help border-0 border-muted-foreground border-b border-dotted bg-transparent p-0 text-inherit [font:inherit]",
|
|
8696
|
+
update: "my-8 grid scroll-mt-24 grid-cols-1 gap-4 border-border border-t pt-6 md:grid-cols-[220px_minmax(0,1fr)]",
|
|
8697
|
+
updateMeta: "flex min-w-0 flex-col items-start gap-2 md:sticky md:top-24 md:self-start",
|
|
8698
|
+
updateLabel: "w-fit text-lg font-semibold text-foreground hover:text-primary hover:underline [&:hover]:decoration-primary",
|
|
8699
|
+
updateDescription: "text-sm text-muted-foreground leading-6",
|
|
8700
|
+
updateTags: "flex flex-wrap gap-1.5",
|
|
8701
|
+
updateBody: "min-w-0 [&>:first-child]:mt-0 [&>:last-child]:mb-0 [&_:where(p,ul,ol)]:leading-7",
|
|
8702
|
+
changelog: "my-4 flex flex-col",
|
|
8703
|
+
changelogFilters: "mb-2 flex flex-wrap items-center gap-1",
|
|
8704
|
+
changelogFilterButton: "rounded-md p-0.5 outline-none focus-visible:ring-2 focus-visible:ring-ring [&>[data-slot=badge]]:cursor-pointer",
|
|
8705
|
+
changelogClear: "ml-1 text-xs font-medium text-muted-foreground hover:text-foreground hover:underline",
|
|
8706
|
+
changelogEmpty: "my-6 text-sm text-muted-foreground",
|
|
8707
|
+
mermaid: "my-4",
|
|
8708
|
+
mermaidTitle: "mb-2 text-sm font-semibold text-foreground",
|
|
8709
|
+
mermaidViewport: "relative overflow-auto rounded-lg border border-border bg-card p-4 [&_svg]:mx-auto [&_svg]:max-w-full [&_svg]:shrink-0",
|
|
8710
|
+
mermaidSvg: "origin-top-left transition-transform duration-150 [&_svg]:h-auto [&_svg]:max-w-none",
|
|
8711
|
+
mermaidFallback: "bg-transparent p-0 font-mono text-xs text-muted-foreground whitespace-pre-wrap",
|
|
8712
|
+
mermaidError: "mt-2 text-sm text-destructive",
|
|
8713
|
+
mermaidControls: "absolute flex items-center gap-1 rounded-md border border-border bg-background/90 p-1 shadow-sm [&_button]:flex [&_button]:size-6 [&_button]:items-center [&_button]:justify-center [&_button]:rounded [&_button]:text-sm [&_button]:text-muted-foreground [&_button:hover]:bg-muted [&_button:hover]:text-foreground",
|
|
8714
|
+
panel: "flex min-w-0 flex-col gap-4 text-sm [&>:first-child]:mt-0 [&>:last-child]:mb-0",
|
|
8715
|
+
panelInline: "my-4 lg:hidden",
|
|
8716
|
+
tile: "block h-full overflow-hidden rounded-lg border border-border bg-card hover:border-primary",
|
|
8717
|
+
tilePreview: "flex h-36 items-center justify-center gap-2 overflow-hidden border-border border-b bg-muted/40 bg-[radial-gradient(circle_at_1px_1px,var(--border)_1px,transparent_0)] bg-[size:16px_16px] p-4 [&_img]:max-h-full [&_img]:w-auto [&_img]:max-w-full [&_img]:object-contain",
|
|
8718
|
+
tileBody: "flex flex-col gap-1 p-4",
|
|
8719
|
+
tileTitle: "text-sm font-semibold text-foreground",
|
|
8720
|
+
tileDescription: "text-sm text-muted-foreground leading-6",
|
|
8721
|
+
tree: "not-prose my-4 overflow-hidden rounded-lg border border-border bg-card text-sm",
|
|
8722
|
+
treeList: "flex flex-col gap-0.5 p-3",
|
|
8723
|
+
treeGroup: "my-0 ml-[15px] flex list-none flex-col gap-px border-border border-l pl-1",
|
|
8724
|
+
treeItem: "my-0 min-w-0 list-none p-0 [&::marker]:content-none",
|
|
8725
|
+
treeRow: "flex w-full min-w-0 items-center gap-1.5 rounded-md px-2 py-1 text-left text-foreground hover:bg-muted [&:focus-visible]:bg-muted [&:focus-visible]:ring-2 [&:focus-visible]:ring-ring [&:focus-visible]:outline-none",
|
|
8726
|
+
treeChevron: "shrink-0 text-muted-foreground transition-transform [&[data-open]]:rotate-90",
|
|
8727
|
+
treeIcon: "shrink-0 text-muted-foreground",
|
|
8728
|
+
treeName: "min-w-0 flex-1 truncate font-mono text-[0.85rem]",
|
|
8729
|
+
treeHighlight: "bg-primary/10 text-primary [&_svg]:text-primary"
|
|
8730
|
+
};
|
|
8731
|
+
|
|
8732
|
+
//#endregion
|
|
8733
|
+
//#region src/components/docs/Mermaid.tsx
|
|
8734
|
+
function childrenToText(node) {
|
|
8735
|
+
if (typeof node === "string" || typeof node === "number") return String(node);
|
|
8736
|
+
if (Array.isArray(node)) return node.map(childrenToText).join("");
|
|
8737
|
+
if (node && typeof node === "object" && "props" in node) {
|
|
8738
|
+
const props = node.props;
|
|
8739
|
+
return childrenToText(props?.children);
|
|
8740
|
+
}
|
|
8741
|
+
return "";
|
|
8742
|
+
}
|
|
8743
|
+
/** Extracts raw diagram source from MDX children (string or <code> element). */
|
|
8744
|
+
function mermaidSource(chart, children) {
|
|
8745
|
+
return (typeof chart === "string" && chart.trim() ? chart : childrenToText(children)).replace(/^\n+|\n+$/g, "").replace(/\\n$/, "");
|
|
8746
|
+
}
|
|
8747
|
+
function isDarkMode() {
|
|
8748
|
+
if (typeof document === "undefined") return false;
|
|
8749
|
+
return document.documentElement.classList.contains("dark");
|
|
8750
|
+
}
|
|
8751
|
+
const PLACEMENT_CLASS = {
|
|
8752
|
+
"top-left": "top-2 left-2",
|
|
8753
|
+
"top-right": "top-2 right-2",
|
|
8754
|
+
"bottom-left": "bottom-2 left-2",
|
|
8755
|
+
"bottom-right": "bottom-2 right-2"
|
|
8756
|
+
};
|
|
8757
|
+
/**
|
|
8758
|
+
* Renders a Mermaid diagram. Server/prerender output is the raw definition in
|
|
8759
|
+
* a <pre> so search indexing and no-JS still see the content; the client
|
|
8760
|
+
* replaces it with SVG via a lazy `mermaid` import (kept out of the SSR bundle).
|
|
8761
|
+
*/
|
|
8762
|
+
function Mermaid({ chart, title, actions, placement = "bottom-right", children }) {
|
|
8763
|
+
const source = mermaidSource(chart, children);
|
|
8764
|
+
const containerRef = useRef(null);
|
|
8765
|
+
const svgHostRef = useRef(null);
|
|
8766
|
+
const diagramId = useId().replace(/[^a-zA-Z0-9]/g, "");
|
|
8767
|
+
const [svg, setSvg] = useState(null);
|
|
8768
|
+
const [error, setError] = useState(false);
|
|
8769
|
+
const [zoom, setZoom] = useState(1);
|
|
8770
|
+
const [dark, setDark] = useState(false);
|
|
8771
|
+
useEffect(() => {
|
|
8772
|
+
setDark(isDarkMode());
|
|
8773
|
+
const observer = new MutationObserver(() => setDark(isDarkMode()));
|
|
8774
|
+
observer.observe(document.documentElement, {
|
|
8775
|
+
attributes: true,
|
|
8776
|
+
attributeFilter: ["class"]
|
|
8777
|
+
});
|
|
8778
|
+
return () => observer.disconnect();
|
|
8779
|
+
}, []);
|
|
8780
|
+
useEffect(() => {
|
|
8781
|
+
if (!source.trim() || typeof window === "undefined") return;
|
|
8782
|
+
let cancelled = false;
|
|
8783
|
+
setError(false);
|
|
8784
|
+
setSvg(null);
|
|
8785
|
+
(async () => {
|
|
8786
|
+
try {
|
|
8787
|
+
const { default: mermaid } = await import("./mermaid.core.js");
|
|
8788
|
+
if (cancelled) return;
|
|
8789
|
+
mermaid.initialize({
|
|
8790
|
+
startOnLoad: false,
|
|
8791
|
+
theme: dark ? "dark" : "neutral",
|
|
8792
|
+
securityLevel: "strict"
|
|
8793
|
+
});
|
|
8794
|
+
const { svg: rendered } = await mermaid.render(`shiso-mermaid-${diagramId}`, source);
|
|
8795
|
+
if (!cancelled) setSvg(rendered);
|
|
8796
|
+
} catch {
|
|
8797
|
+
if (!cancelled) setError(true);
|
|
8798
|
+
}
|
|
8799
|
+
})();
|
|
8800
|
+
return () => {
|
|
8801
|
+
cancelled = true;
|
|
8802
|
+
};
|
|
8803
|
+
}, [
|
|
8804
|
+
source,
|
|
8805
|
+
diagramId,
|
|
8806
|
+
dark
|
|
8807
|
+
]);
|
|
8808
|
+
const showControls = actions ?? true;
|
|
8809
|
+
return /* @__PURE__ */ jsxs("figure", {
|
|
8810
|
+
className: styles.mermaid,
|
|
8811
|
+
"data-dark": dark ? "" : void 0,
|
|
8812
|
+
children: [title ? /* @__PURE__ */ jsx("figcaption", {
|
|
8813
|
+
className: styles.mermaidTitle,
|
|
8814
|
+
children: title
|
|
8815
|
+
}) : null, /* @__PURE__ */ jsxs("div", {
|
|
8816
|
+
ref: containerRef,
|
|
8817
|
+
className: styles.mermaidViewport,
|
|
8818
|
+
children: [
|
|
8819
|
+
svg && !error ? /* @__PURE__ */ jsx("div", {
|
|
8820
|
+
ref: svgHostRef,
|
|
8821
|
+
className: styles.mermaidSvg,
|
|
8822
|
+
style: { transform: `scale(${zoom})` },
|
|
8823
|
+
dangerouslySetInnerHTML: { __html: svg },
|
|
8824
|
+
role: "img",
|
|
8825
|
+
"aria-label": title ? String(title) : "Diagram"
|
|
8826
|
+
}) : /* @__PURE__ */ jsx("pre", {
|
|
8827
|
+
className: styles.mermaidFallback,
|
|
8828
|
+
title: "Diagram source",
|
|
8829
|
+
children: source
|
|
8830
|
+
}),
|
|
8831
|
+
error ? /* @__PURE__ */ jsx("p", {
|
|
8832
|
+
className: styles.mermaidError,
|
|
8833
|
+
children: "Could not render this diagram."
|
|
8834
|
+
}) : null,
|
|
8835
|
+
showControls && svg && !error ? /* @__PURE__ */ jsxs("div", {
|
|
8836
|
+
className: `${styles.mermaidControls} ${PLACEMENT_CLASS[placement]}`,
|
|
8837
|
+
children: [
|
|
8838
|
+
/* @__PURE__ */ jsx("button", {
|
|
8839
|
+
type: "button",
|
|
8840
|
+
"aria-label": "Zoom out",
|
|
8841
|
+
onClick: () => setZoom((z) => Math.max(.5, +(z - .25).toFixed(2))),
|
|
8842
|
+
children: "−"
|
|
8843
|
+
}),
|
|
8844
|
+
/* @__PURE__ */ jsx("button", {
|
|
8845
|
+
type: "button",
|
|
8846
|
+
"aria-label": "Reset view",
|
|
8847
|
+
onClick: () => setZoom(1),
|
|
8848
|
+
children: "⟳"
|
|
8849
|
+
}),
|
|
8850
|
+
/* @__PURE__ */ jsx("button", {
|
|
8851
|
+
type: "button",
|
|
8852
|
+
"aria-label": "Zoom in",
|
|
8853
|
+
onClick: () => setZoom((z) => Math.min(2.5, +(z + .25).toFixed(2))),
|
|
8854
|
+
children: "+"
|
|
8855
|
+
})
|
|
8856
|
+
]
|
|
8857
|
+
}) : null
|
|
8858
|
+
]
|
|
8859
|
+
})]
|
|
8860
|
+
});
|
|
8861
|
+
}
|
|
8862
|
+
|
|
8863
|
+
//#endregion
|
|
8864
|
+
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.2_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/utils/useControlled.mjs
|
|
8422
8865
|
function useControlled({ controlled, default: defaultProp, name, state = "value" }) {
|
|
8423
8866
|
const { current: isControlled } = React$1.useRef(controlled !== void 0);
|
|
8424
8867
|
const [valueState, setValue] = React$1.useState(defaultProp);
|
|
@@ -8467,7 +8910,7 @@ function serializeToDevModeString(input) {
|
|
|
8467
8910
|
}
|
|
8468
8911
|
|
|
8469
8912
|
//#endregion
|
|
8470
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
8913
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/internals/composite/list/CompositeListContext.mjs
|
|
8471
8914
|
const CompositeListContext = /*#__PURE__*/ React$1.createContext({
|
|
8472
8915
|
register: () => {},
|
|
8473
8916
|
unregister: () => {},
|
|
@@ -8480,7 +8923,7 @@ function useCompositeListContext() {
|
|
|
8480
8923
|
}
|
|
8481
8924
|
|
|
8482
8925
|
//#endregion
|
|
8483
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
8926
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/internals/composite/list/CompositeList.mjs
|
|
8484
8927
|
/**
|
|
8485
8928
|
* Provides context for a list of items in a composite component.
|
|
8486
8929
|
*/
|
|
@@ -8647,7 +9090,7 @@ function sortByDocumentPosition(a, b) {
|
|
|
8647
9090
|
}
|
|
8648
9091
|
|
|
8649
9092
|
//#endregion
|
|
8650
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
9093
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/accordion/root/AccordionRootContext.mjs
|
|
8651
9094
|
const AccordionRootContext = /*#__PURE__*/ React$1.createContext(void 0);
|
|
8652
9095
|
AccordionRootContext.displayName = "AccordionRootContext";
|
|
8653
9096
|
function useAccordionRootContext() {
|
|
@@ -8657,7 +9100,7 @@ function useAccordionRootContext() {
|
|
|
8657
9100
|
}
|
|
8658
9101
|
|
|
8659
9102
|
//#endregion
|
|
8660
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
9103
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/accordion/root/AccordionRoot.mjs
|
|
8661
9104
|
const rootStateAttributesMapping = { value: () => null };
|
|
8662
9105
|
/**
|
|
8663
9106
|
* Groups all parts of the accordion.
|
|
@@ -8740,7 +9183,7 @@ const AccordionRoot = /*#__PURE__*/ React$1.forwardRef(function AccordionRoot(co
|
|
|
8740
9183
|
AccordionRoot.displayName = "AccordionRoot";
|
|
8741
9184
|
|
|
8742
9185
|
//#endregion
|
|
8743
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
9186
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/internals/reason-parts.mjs
|
|
8744
9187
|
const none = "none";
|
|
8745
9188
|
const triggerPress = "trigger-press";
|
|
8746
9189
|
const triggerHover = "trigger-hover";
|
|
@@ -8759,7 +9202,7 @@ const initial = "initial";
|
|
|
8759
9202
|
const imperativeAction = "imperative-action";
|
|
8760
9203
|
|
|
8761
9204
|
//#endregion
|
|
8762
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
9205
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/internals/createBaseUIEventDetails.mjs
|
|
8763
9206
|
/**
|
|
8764
9207
|
* Maps a change `reason` string to the corresponding native event type.
|
|
8765
9208
|
*/
|
|
@@ -8798,7 +9241,7 @@ function createChangeEventDetails(reason, event, trigger, customProperties) {
|
|
|
8798
9241
|
}
|
|
8799
9242
|
|
|
8800
9243
|
//#endregion
|
|
8801
|
-
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.2_@
|
|
9244
|
+
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.2_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/utils/useAnimationFrame.mjs
|
|
8802
9245
|
/** Unlike `setTimeout`, rAF doesn't guarantee a positive integer return value, so we can't have
|
|
8803
9246
|
* a monomorphic `uint` type with `0` meaning empty.
|
|
8804
9247
|
* See warning note at:
|
|
@@ -8881,7 +9324,7 @@ function useAnimationFrame() {
|
|
|
8881
9324
|
}
|
|
8882
9325
|
|
|
8883
9326
|
//#endregion
|
|
8884
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
9327
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/internals/useTransitionStatus.mjs
|
|
8885
9328
|
/**
|
|
8886
9329
|
* Provides a status string for CSS animations.
|
|
8887
9330
|
* @param open - a boolean that determines if the element is open.
|
|
@@ -8943,7 +9386,7 @@ function useTransitionStatus(open, enableIdleState = false, deferEndingState = f
|
|
|
8943
9386
|
}
|
|
8944
9387
|
|
|
8945
9388
|
//#endregion
|
|
8946
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
9389
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/collapsible/root/useCollapsibleRoot.mjs
|
|
8947
9390
|
function useCollapsibleRoot(parameters) {
|
|
8948
9391
|
const { open: openParam, defaultOpen, onOpenChange, disabled } = parameters;
|
|
8949
9392
|
const [open, setOpen] = useControlled({
|
|
@@ -8989,7 +9432,7 @@ function useCollapsibleRoot(parameters) {
|
|
|
8989
9432
|
}
|
|
8990
9433
|
|
|
8991
9434
|
//#endregion
|
|
8992
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
9435
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/collapsible/root/CollapsibleRootContext.mjs
|
|
8993
9436
|
const CollapsibleRootContext = /*#__PURE__*/ React$1.createContext(void 0);
|
|
8994
9437
|
CollapsibleRootContext.displayName = "CollapsibleRootContext";
|
|
8995
9438
|
function useCollapsibleRootContext() {
|
|
@@ -8999,7 +9442,7 @@ function useCollapsibleRootContext() {
|
|
|
8999
9442
|
}
|
|
9000
9443
|
|
|
9001
9444
|
//#endregion
|
|
9002
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
9445
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/internals/composite/list/useCompositeListItem.mjs
|
|
9003
9446
|
/**
|
|
9004
9447
|
* Used to register a list item and its index (DOM position) in the `CompositeList`.
|
|
9005
9448
|
*/
|
|
@@ -9049,7 +9492,7 @@ function useCompositeListItem(params = {}) {
|
|
|
9049
9492
|
}
|
|
9050
9493
|
|
|
9051
9494
|
//#endregion
|
|
9052
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
9495
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/accordion/item/AccordionItemContext.mjs
|
|
9053
9496
|
const AccordionItemContext = /*#__PURE__*/ React$1.createContext(void 0);
|
|
9054
9497
|
AccordionItemContext.displayName = "AccordionItemContext";
|
|
9055
9498
|
function useAccordionItemContext() {
|
|
@@ -9059,7 +9502,7 @@ function useAccordionItemContext() {
|
|
|
9059
9502
|
}
|
|
9060
9503
|
|
|
9061
9504
|
//#endregion
|
|
9062
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
9505
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/internals/stateAttributesMapping.mjs
|
|
9063
9506
|
let TransitionStatusDataAttributes = /*#__PURE__*/ function(TransitionStatusDataAttributes) {
|
|
9064
9507
|
/**
|
|
9065
9508
|
* Present when the component begins animating in.
|
|
@@ -9080,7 +9523,7 @@ const transitionStatusMapping = { transitionStatus(value) {
|
|
|
9080
9523
|
} };
|
|
9081
9524
|
|
|
9082
9525
|
//#endregion
|
|
9083
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
9526
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/collapsible/panel/CollapsiblePanelDataAttributes.mjs
|
|
9084
9527
|
let CollapsiblePanelDataAttributes = function(CollapsiblePanelDataAttributes) {
|
|
9085
9528
|
/**
|
|
9086
9529
|
* Present when the collapsible panel is open.
|
|
@@ -9102,7 +9545,7 @@ let CollapsiblePanelDataAttributes = function(CollapsiblePanelDataAttributes) {
|
|
|
9102
9545
|
}({});
|
|
9103
9546
|
|
|
9104
9547
|
//#endregion
|
|
9105
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
9548
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/collapsible/trigger/CollapsibleTriggerDataAttributes.mjs
|
|
9106
9549
|
let CollapsibleTriggerDataAttributes = /*#__PURE__*/ function(CollapsibleTriggerDataAttributes) {
|
|
9107
9550
|
/**
|
|
9108
9551
|
* Present when the collapsible panel is open.
|
|
@@ -9112,7 +9555,7 @@ let CollapsibleTriggerDataAttributes = /*#__PURE__*/ function(CollapsibleTrigger
|
|
|
9112
9555
|
}({});
|
|
9113
9556
|
|
|
9114
9557
|
//#endregion
|
|
9115
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
9558
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/utils/collapsibleOpenStateMapping.mjs
|
|
9116
9559
|
const PANEL_OPEN_HOOK = { [CollapsiblePanelDataAttributes.open]: "" };
|
|
9117
9560
|
const PANEL_CLOSED_HOOK = { [CollapsiblePanelDataAttributes.closed]: "" };
|
|
9118
9561
|
const triggerOpenStateMapping$1 = { open(value) {
|
|
@@ -9125,7 +9568,7 @@ const collapsibleOpenStateMapping = { open(value) {
|
|
|
9125
9568
|
} };
|
|
9126
9569
|
|
|
9127
9570
|
//#endregion
|
|
9128
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
9571
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/accordion/item/AccordionItemDataAttributes.mjs
|
|
9129
9572
|
let AccordionItemDataAttributes = /*#__PURE__*/ function(AccordionItemDataAttributes) {
|
|
9130
9573
|
/**
|
|
9131
9574
|
* Indicates the index of the accordion item.
|
|
@@ -9144,7 +9587,7 @@ let AccordionItemDataAttributes = /*#__PURE__*/ function(AccordionItemDataAttrib
|
|
|
9144
9587
|
}({});
|
|
9145
9588
|
|
|
9146
9589
|
//#endregion
|
|
9147
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
9590
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/accordion/item/stateAttributesMapping.mjs
|
|
9148
9591
|
const accordionStateAttributesMapping = {
|
|
9149
9592
|
...collapsibleOpenStateMapping,
|
|
9150
9593
|
index: (value) => ({ [AccordionItemDataAttributes.index]: String(value) }),
|
|
@@ -9153,7 +9596,7 @@ const accordionStateAttributesMapping = {
|
|
|
9153
9596
|
};
|
|
9154
9597
|
|
|
9155
9598
|
//#endregion
|
|
9156
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
9599
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/accordion/item/AccordionItem.mjs
|
|
9157
9600
|
/**
|
|
9158
9601
|
* Groups an accordion header with the corresponding panel.
|
|
9159
9602
|
* Renders a `<div>` element.
|
|
@@ -9243,7 +9686,7 @@ const AccordionItem$1 = /*#__PURE__*/ React$1.forwardRef(function AccordionItem(
|
|
|
9243
9686
|
AccordionItem$1.displayName = "AccordionItem";
|
|
9244
9687
|
|
|
9245
9688
|
//#endregion
|
|
9246
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
9689
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/accordion/header/AccordionHeader.mjs
|
|
9247
9690
|
/**
|
|
9248
9691
|
* A heading that labels the corresponding panel.
|
|
9249
9692
|
* Renders an `<h3>` element.
|
|
@@ -9263,7 +9706,7 @@ const AccordionHeader = /*#__PURE__*/ React$1.forwardRef(function AccordionHeade
|
|
|
9263
9706
|
AccordionHeader.displayName = "AccordionHeader";
|
|
9264
9707
|
|
|
9265
9708
|
//#endregion
|
|
9266
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
9709
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/accordion/trigger/AccordionTrigger.mjs
|
|
9267
9710
|
/**
|
|
9268
9711
|
* A button that opens and closes the corresponding panel.
|
|
9269
9712
|
* Renders a `<button>` element.
|
|
@@ -9306,7 +9749,7 @@ const AccordionTrigger$1 = /*#__PURE__*/ React$1.forwardRef(function AccordionTr
|
|
|
9306
9749
|
AccordionTrigger$1.displayName = "AccordionTrigger";
|
|
9307
9750
|
|
|
9308
9751
|
//#endregion
|
|
9309
|
-
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.2_@
|
|
9752
|
+
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.2_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/utils/useValueAsRef.mjs
|
|
9310
9753
|
/**
|
|
9311
9754
|
* Untracks the provided value by turning it into a ref to remove its reactivity.
|
|
9312
9755
|
*
|
|
@@ -9330,7 +9773,7 @@ function createLatestRef(value) {
|
|
|
9330
9773
|
}
|
|
9331
9774
|
|
|
9332
9775
|
//#endregion
|
|
9333
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
9776
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/utils/resolveRef.mjs
|
|
9334
9777
|
/**
|
|
9335
9778
|
* If the provided argument is a ref object, returns its `current` value.
|
|
9336
9779
|
* Otherwise, returns the argument itself.
|
|
@@ -9341,7 +9784,7 @@ function resolveRef(maybeRef) {
|
|
|
9341
9784
|
}
|
|
9342
9785
|
|
|
9343
9786
|
//#endregion
|
|
9344
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
9787
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/internals/useAnimationsFinished.mjs
|
|
9345
9788
|
/**
|
|
9346
9789
|
* Executes a function once all animations have finished on the provided element.
|
|
9347
9790
|
* If an animation is canceled, waits for any replacement animations before executing.
|
|
@@ -9399,7 +9842,7 @@ function useAnimationsFinished(elementOrRef, waitForStartingStyleRemoved = false
|
|
|
9399
9842
|
}
|
|
9400
9843
|
|
|
9401
9844
|
//#endregion
|
|
9402
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
9845
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/internals/useOpenChangeComplete.mjs
|
|
9403
9846
|
/**
|
|
9404
9847
|
* Calls the provided function when the CSS open/close animation or transition completes.
|
|
9405
9848
|
*/
|
|
@@ -9423,7 +9866,7 @@ function useOpenChangeComplete(parameters) {
|
|
|
9423
9866
|
}
|
|
9424
9867
|
|
|
9425
9868
|
//#endregion
|
|
9426
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
9869
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/collapsible/panel/useCollapsiblePanel.mjs
|
|
9427
9870
|
const EMPTY_DIMENSIONS = {
|
|
9428
9871
|
height: void 0,
|
|
9429
9872
|
width: void 0
|
|
@@ -9689,7 +10132,7 @@ function resetLayoutStyles(element) {
|
|
|
9689
10132
|
}
|
|
9690
10133
|
|
|
9691
10134
|
//#endregion
|
|
9692
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
10135
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/accordion/panel/AccordionPanelCssVars.mjs
|
|
9693
10136
|
let AccordionPanelCssVars = /*#__PURE__*/ function(AccordionPanelCssVars) {
|
|
9694
10137
|
/**
|
|
9695
10138
|
* The accordion panel's height.
|
|
@@ -9705,7 +10148,7 @@ let AccordionPanelCssVars = /*#__PURE__*/ function(AccordionPanelCssVars) {
|
|
|
9705
10148
|
}({});
|
|
9706
10149
|
|
|
9707
10150
|
//#endregion
|
|
9708
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
10151
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/accordion/panel/AccordionPanel.mjs
|
|
9709
10152
|
/**
|
|
9710
10153
|
* A collapsible panel with the accordion item contents.
|
|
9711
10154
|
* Renders a `<div>` element.
|
|
@@ -9823,71 +10266,6 @@ function AccordionContent({ className, children, ...props }) {
|
|
|
9823
10266
|
});
|
|
9824
10267
|
}
|
|
9825
10268
|
|
|
9826
|
-
//#endregion
|
|
9827
|
-
//#region src/components/docs/styles.ts
|
|
9828
|
-
/** Shared Tailwind utility groups for the built-in MDX components. */
|
|
9829
|
-
const styles = {
|
|
9830
|
-
accordion: "my-3 [&_h3:has(>[data-slot=accordion-trigger])]:m-0",
|
|
9831
|
-
accordionGroup: "my-4 [&_h3:has(>[data-slot=accordion-trigger])]:m-0",
|
|
9832
|
-
accordionItem: "",
|
|
9833
|
-
accordionTrigger: "text-foreground",
|
|
9834
|
-
accordionContent: "text-muted-foreground [&_p]:mt-0 [&_p:last-child]:mb-0",
|
|
9835
|
-
expandableTrigger: "items-center py-3 text-sm font-normal text-foreground hover:no-underline",
|
|
9836
|
-
expandableContent: "pl-6",
|
|
9837
|
-
callout: "my-4 flex items-start gap-3 rounded-lg border px-3 py-2.5 text-sm leading-6",
|
|
9838
|
-
calloutIcon: "flex h-6 w-5 shrink-0 items-center justify-center [&_svg]:block [&_svg]:size-4",
|
|
9839
|
-
calloutBody: "flex min-w-0 flex-1 flex-col gap-[0.35rem] [&>:first-child]:mt-0 [&>:last-child]:mb-0 [&_:where(p,ul,ol)]:my-[0.35rem] [&>:where(p,ul,ol):first-child]:mt-0 [&>:where(p,ul,ol):last-child]:mb-0",
|
|
9840
|
-
calloutDescription: "text-sm text-inherit leading-6 [&>:first-child]:mt-0 [&>:last-child]:mb-0",
|
|
9841
|
-
calloutTitle: "font-semibold leading-6",
|
|
9842
|
-
note: "border-border bg-muted/50 text-foreground",
|
|
9843
|
-
info: "border-blue-300 bg-blue-50 text-blue-900 dark:border-blue-400/40 dark:bg-blue-400/10 dark:text-blue-300",
|
|
9844
|
-
warning: "border-amber-300 bg-amber-50 text-amber-900 dark:border-amber-400/40 dark:bg-amber-400/10 dark:text-amber-300",
|
|
9845
|
-
tip: "border-green-300 bg-green-50 text-green-900 dark:border-green-400/40 dark:bg-green-400/10 dark:text-green-300",
|
|
9846
|
-
check: "border-emerald-300 bg-emerald-50 text-emerald-900 dark:border-emerald-400/40 dark:bg-emerald-400/10 dark:text-emerald-300",
|
|
9847
|
-
danger: "border-destructive/40 bg-destructive/10 text-destructive",
|
|
9848
|
-
card: "block h-full gap-0 rounded-lg border border-border p-4 text-sm ring-0 hover:border-primary",
|
|
9849
|
-
cardPlain: "bg-card",
|
|
9850
|
-
cardHorizontal: "[&_[data-slot=card-inner]]:items-center [&_[data-slot=card-main]]:flex-row [&_[data-slot=card-main]]:items-center [&_[data-slot=card-main]]:gap-3 [&_[data-slot=card-body]]:m-0 [&_[data-slot=card-header]]:flex-row [&_[data-slot=card-header]]:items-center [&_[data-slot=card-header]]:gap-2",
|
|
9851
|
-
cardTyped: "[&_[data-slot=card-title]]:text-inherit [&_[data-slot=card-body]]:text-inherit [&_[data-slot=card-cta]]:text-inherit [&_[data-slot=card-arrow]]:text-inherit",
|
|
9852
|
-
cardImageLayout: "p-0 [&_[data-slot=card-inner]]:p-6",
|
|
9853
|
-
cardImage: "block aspect-video w-full border-border border-b object-cover",
|
|
9854
|
-
cardInner: "flex items-start justify-between gap-3",
|
|
9855
|
-
cardMain: "flex min-w-0 flex-col gap-2",
|
|
9856
|
-
cardHeader: "flex flex-col items-start gap-3",
|
|
9857
|
-
cardIcon: "inline-flex shrink-0 items-center justify-center [&_img]:size-6 [&_svg]:size-6",
|
|
9858
|
-
cardTitle: "text-sm font-semibold text-foreground",
|
|
9859
|
-
cardBody: "text-muted-foreground [&>:first-child]:mt-0 [&>:last-child]:mb-0",
|
|
9860
|
-
cardCta: "flex shrink-0 items-center gap-[0.35rem] text-[0.9rem] font-medium text-muted-foreground",
|
|
9861
|
-
cardArrow: "shrink-0 text-muted-foreground",
|
|
9862
|
-
grid: "my-4 grid grid-cols-1 gap-4",
|
|
9863
|
-
gridCols1: "md:grid-cols-1",
|
|
9864
|
-
gridCols2: "md:grid-cols-2",
|
|
9865
|
-
gridCols3: "md:grid-cols-3",
|
|
9866
|
-
gridCols4: "md:grid-cols-4",
|
|
9867
|
-
column: "min-w-0 [&>:first-child]:mt-0 [&>:last-child]:mb-0",
|
|
9868
|
-
icon: "inline-block align-[-0.145em]",
|
|
9869
|
-
tabs: "my-4 gap-0",
|
|
9870
|
-
frameWrapper: "my-4",
|
|
9871
|
-
frameHint: "mb-4 flex items-start gap-2 text-sm font-medium leading-5 text-foreground",
|
|
9872
|
-
frameHintIcon: "flex h-5 shrink-0 items-center text-muted-foreground [&_svg]:size-4 [&_svg]:fill-current",
|
|
9873
|
-
frame: "relative overflow-hidden rounded-2xl border border-border bg-muted/25 p-2",
|
|
9874
|
-
frameContent: "relative flex justify-center overflow-hidden rounded-xl [&_p]:m-0 [&_img]:m-0 [&_img]:w-full [&_video]:w-full [&_[data-slot=zoomable-image]]:m-0 [&_[data-slot=zoomable-image]]:w-full",
|
|
9875
|
-
frameCaption: "relative mt-3 px-4 pb-1 text-center text-sm leading-5 text-muted-foreground [&_p]:m-0 [&_a]:font-semibold",
|
|
9876
|
-
field: "my-3",
|
|
9877
|
-
paramField: "my-3",
|
|
9878
|
-
fieldHeader: "flex flex-wrap items-center gap-2",
|
|
9879
|
-
fieldBody: "mt-3",
|
|
9880
|
-
fieldType: "text-[0.9rem] text-muted-foreground",
|
|
9881
|
-
fieldName: "font-bold text-foreground",
|
|
9882
|
-
code: "rounded-sm bg-[color-mix(in_srgb,currentColor_4%,transparent)] px-[0.35rem] py-[0.1rem] text-sm text-foreground font-mono",
|
|
9883
|
-
steps: "relative my-4 flex flex-col gap-5 before:absolute before:top-4 before:bottom-4 before:left-4 before:w-px before:-translate-x-1/2 before:bg-border before:content-['']",
|
|
9884
|
-
step: "relative flex items-start gap-4",
|
|
9885
|
-
stepNumber: "relative z-[1] flex size-8 shrink-0 items-center justify-center rounded-full border border-border bg-card text-[0.9rem] font-semibold text-foreground",
|
|
9886
|
-
stepContent: "flex min-w-0 grow flex-col gap-2",
|
|
9887
|
-
stepTitle: "text-[1.1rem] font-semibold text-foreground",
|
|
9888
|
-
tooltipTrigger: "peer cursor-help border-0 border-muted-foreground border-b border-dotted bg-transparent p-0 text-inherit [font:inherit]"
|
|
9889
|
-
};
|
|
9890
|
-
|
|
9891
10269
|
//#endregion
|
|
9892
10270
|
//#region src/lib/icons.ts
|
|
9893
10271
|
/** `circle-check`, `circle_check`, `CircleCheck` all resolve to the same icon. */
|
|
@@ -10023,7 +10401,7 @@ function AccordionGroup({ children, defaultOpen = false }) {
|
|
|
10023
10401
|
}
|
|
10024
10402
|
|
|
10025
10403
|
//#endregion
|
|
10026
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
10404
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/use-render/useRender.mjs
|
|
10027
10405
|
/**
|
|
10028
10406
|
* Renders a Base UI element.
|
|
10029
10407
|
*
|
|
@@ -10165,7 +10543,7 @@ function Badge({ color, size = "md", shape = "rounded", icon, stroke = false, di
|
|
|
10165
10543
|
*/
|
|
10166
10544
|
function Button({ href, variant = "default", size = "default", icon, className, children }) {
|
|
10167
10545
|
const resolvedIcon = resolveIcon(icon, 16);
|
|
10168
|
-
const content = /* @__PURE__ */ jsxs(Fragment, { children: [resolvedIcon, children] });
|
|
10546
|
+
const content = /* @__PURE__ */ jsxs(Fragment$1, { children: [resolvedIcon, children] });
|
|
10169
10547
|
const baseClassName = cn(resolvedIcon ? "gap-2" : "", "[&_p]:m-0", className);
|
|
10170
10548
|
if (!href) return /* @__PURE__ */ jsx(Button$1, {
|
|
10171
10549
|
variant,
|
|
@@ -10416,7 +10794,162 @@ function CardGroup({ children, cols = 2 }) {
|
|
|
10416
10794
|
}
|
|
10417
10795
|
|
|
10418
10796
|
//#endregion
|
|
10419
|
-
//#region
|
|
10797
|
+
//#region src/components/docs/Update.tsx
|
|
10798
|
+
function normalizeTags(tags) {
|
|
10799
|
+
if (!Array.isArray(tags)) return [];
|
|
10800
|
+
const seen = /* @__PURE__ */ new Set();
|
|
10801
|
+
for (const tag of tags) {
|
|
10802
|
+
if (typeof tag !== "string") continue;
|
|
10803
|
+
const trimmed = tag.trim();
|
|
10804
|
+
if (trimmed && !seen.has(trimmed)) seen.add(trimmed);
|
|
10805
|
+
}
|
|
10806
|
+
return [...seen];
|
|
10807
|
+
}
|
|
10808
|
+
function Update({ label, description, tags, rss: _rss, children }) {
|
|
10809
|
+
const id = slugify(label, "update");
|
|
10810
|
+
const normalizedTags = normalizeTags(tags);
|
|
10811
|
+
return /* @__PURE__ */ jsxs("section", {
|
|
10812
|
+
id,
|
|
10813
|
+
"aria-label": label,
|
|
10814
|
+
className: styles.update,
|
|
10815
|
+
"data-tags": normalizedTags.join(","),
|
|
10816
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
10817
|
+
className: styles.updateMeta,
|
|
10818
|
+
children: [
|
|
10819
|
+
/* @__PURE__ */ jsx("a", {
|
|
10820
|
+
href: `#${id}`,
|
|
10821
|
+
className: styles.updateLabel,
|
|
10822
|
+
children: label
|
|
10823
|
+
}),
|
|
10824
|
+
description ? /* @__PURE__ */ jsx("div", {
|
|
10825
|
+
className: styles.updateDescription,
|
|
10826
|
+
children: description
|
|
10827
|
+
}) : null,
|
|
10828
|
+
normalizedTags.length > 0 ? /* @__PURE__ */ jsx("div", {
|
|
10829
|
+
className: styles.updateTags,
|
|
10830
|
+
children: normalizedTags.map((tag) => /* @__PURE__ */ jsx(Badge, {
|
|
10831
|
+
size: "sm",
|
|
10832
|
+
children: tag
|
|
10833
|
+
}, tag))
|
|
10834
|
+
}) : null
|
|
10835
|
+
]
|
|
10836
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
10837
|
+
className: styles.updateBody,
|
|
10838
|
+
children
|
|
10839
|
+
})]
|
|
10840
|
+
});
|
|
10841
|
+
}
|
|
10842
|
+
|
|
10843
|
+
//#endregion
|
|
10844
|
+
//#region src/components/docs/Changelog.tsx
|
|
10845
|
+
/** Flattens fragments so <Update> entries are found however MDX nests them. */
|
|
10846
|
+
function flatElements(children) {
|
|
10847
|
+
const flat = [];
|
|
10848
|
+
Children.forEach(children, (child) => {
|
|
10849
|
+
if (!isValidElement(child)) return;
|
|
10850
|
+
if (child.type === Fragment) flat.push(...flatElements(child.props.children));
|
|
10851
|
+
else flat.push(child);
|
|
10852
|
+
});
|
|
10853
|
+
return flat;
|
|
10854
|
+
}
|
|
10855
|
+
/** Reads `tags` off <Update> children without rendering them. */
|
|
10856
|
+
function updateInfo(children) {
|
|
10857
|
+
const info = /* @__PURE__ */ new Map();
|
|
10858
|
+
flatElements(children).forEach((child, index) => {
|
|
10859
|
+
if (child.type !== Update) return;
|
|
10860
|
+
const key = String(child.key ?? `update-${index}`);
|
|
10861
|
+
const raw = child.props.tags;
|
|
10862
|
+
const tags = Array.isArray(raw) ? [...new Set(raw.filter((tag) => typeof tag === "string" && tag.trim()))].map((tag) => tag.trim()) : [];
|
|
10863
|
+
info.set(key, {
|
|
10864
|
+
key,
|
|
10865
|
+
tags
|
|
10866
|
+
});
|
|
10867
|
+
});
|
|
10868
|
+
return info;
|
|
10869
|
+
}
|
|
10870
|
+
/**
|
|
10871
|
+
* Groups <Update> entries with Mintlify-style tag filtering.
|
|
10872
|
+
* Selected tags sync to `?tags=a,b` so filtered views are shareable.
|
|
10873
|
+
* Pages without any tagged updates render as a plain list.
|
|
10874
|
+
*/
|
|
10875
|
+
function Changelog({ children }) {
|
|
10876
|
+
const [searchParams, setSearchParams] = useSearchParams();
|
|
10877
|
+
const allTags = useMemo(() => {
|
|
10878
|
+
const seen = /* @__PURE__ */ new Map();
|
|
10879
|
+
for (const { tags } of updateInfo(children).values()) for (const tag of tags) {
|
|
10880
|
+
const key = tag.toLowerCase();
|
|
10881
|
+
if (!seen.has(key)) seen.set(key, tag);
|
|
10882
|
+
}
|
|
10883
|
+
return [...seen.values()];
|
|
10884
|
+
}, [children]);
|
|
10885
|
+
const selected = useMemo(() => {
|
|
10886
|
+
const param = searchParams.get("tags");
|
|
10887
|
+
if (!param) return [];
|
|
10888
|
+
const wanted = new Set(param.split(",").map((tag) => tag.trim().toLowerCase()).filter(Boolean));
|
|
10889
|
+
return allTags.filter((tag) => wanted.has(tag.toLowerCase()));
|
|
10890
|
+
}, [searchParams, allTags]);
|
|
10891
|
+
const infoByKey = useMemo(() => updateInfo(children), [children]);
|
|
10892
|
+
if (allTags.length === 0) return /* @__PURE__ */ jsx("div", {
|
|
10893
|
+
className: styles.changelog,
|
|
10894
|
+
children
|
|
10895
|
+
});
|
|
10896
|
+
const toggle = (tag) => {
|
|
10897
|
+
const lower = tag.toLowerCase();
|
|
10898
|
+
const next = selected.some((item) => item.toLowerCase() === lower) ? selected.filter((item) => item.toLowerCase() !== lower) : [...selected, tag];
|
|
10899
|
+
setSearchParams(next.length ? { tags: next.join(",") } : {}, { preventScrollReset: true });
|
|
10900
|
+
};
|
|
10901
|
+
const clear = () => {
|
|
10902
|
+
setSearchParams({}, { preventScrollReset: true });
|
|
10903
|
+
};
|
|
10904
|
+
const selectedSet = new Set(selected.map((tag) => tag.toLowerCase()));
|
|
10905
|
+
const filtered = flatElements(children).map((child, index) => {
|
|
10906
|
+
if (child.type !== Update) return child;
|
|
10907
|
+
const key = String(child.key ?? `update-${index}`);
|
|
10908
|
+
const tags = infoByKey.get(key)?.tags ?? [];
|
|
10909
|
+
if (selectedSet.size === 0) return child;
|
|
10910
|
+
const lower = tags.map((tag) => tag.toLowerCase());
|
|
10911
|
+
return [...selectedSet].every((tag) => lower.includes(tag)) ? child : null;
|
|
10912
|
+
});
|
|
10913
|
+
const visibleUpdates = filtered.filter((child) => child && child.type === Update).length;
|
|
10914
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
10915
|
+
className: styles.changelog,
|
|
10916
|
+
children: [
|
|
10917
|
+
/* @__PURE__ */ jsxs("div", {
|
|
10918
|
+
className: styles.changelogFilters,
|
|
10919
|
+
role: "group",
|
|
10920
|
+
"aria-label": "Filter updates by tag",
|
|
10921
|
+
children: [allTags.map((tag) => {
|
|
10922
|
+
const active = selectedSet.has(tag.toLowerCase());
|
|
10923
|
+
return /* @__PURE__ */ jsx("button", {
|
|
10924
|
+
type: "button",
|
|
10925
|
+
onClick: () => toggle(tag),
|
|
10926
|
+
"aria-pressed": active,
|
|
10927
|
+
className: styles.changelogFilterButton,
|
|
10928
|
+
"data-active": active ? "" : void 0,
|
|
10929
|
+
children: /* @__PURE__ */ jsx(Badge, {
|
|
10930
|
+
size: "sm",
|
|
10931
|
+
color: active ? "primary" : void 0,
|
|
10932
|
+
children: tag
|
|
10933
|
+
})
|
|
10934
|
+
}, tag);
|
|
10935
|
+
}), selected.length > 0 ? /* @__PURE__ */ jsx("button", {
|
|
10936
|
+
type: "button",
|
|
10937
|
+
onClick: clear,
|
|
10938
|
+
className: styles.changelogClear,
|
|
10939
|
+
children: "Clear"
|
|
10940
|
+
}) : null]
|
|
10941
|
+
}),
|
|
10942
|
+
visibleUpdates === 0 ? /* @__PURE__ */ jsx("p", {
|
|
10943
|
+
className: styles.changelogEmpty,
|
|
10944
|
+
children: "No updates match the selected tags."
|
|
10945
|
+
}) : null,
|
|
10946
|
+
filtered
|
|
10947
|
+
]
|
|
10948
|
+
});
|
|
10949
|
+
}
|
|
10950
|
+
|
|
10951
|
+
//#endregion
|
|
10952
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/tabs/root/TabsRootContext.mjs
|
|
10420
10953
|
/**
|
|
10421
10954
|
* @internal
|
|
10422
10955
|
*/
|
|
@@ -10429,11 +10962,11 @@ function useTabsRootContext() {
|
|
|
10429
10962
|
}
|
|
10430
10963
|
|
|
10431
10964
|
//#endregion
|
|
10432
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
10965
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/tabs/root/stateAttributesMapping.mjs
|
|
10433
10966
|
const tabsStateAttributesMapping = { tabActivationDirection: (dir) => ({ "data-activation-direction": dir }) };
|
|
10434
10967
|
|
|
10435
10968
|
//#endregion
|
|
10436
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
10969
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/tabs/root/TabsRoot.mjs
|
|
10437
10970
|
/**
|
|
10438
10971
|
* Groups the tabs and the corresponding panels.
|
|
10439
10972
|
* Renders a `<div>` element.
|
|
@@ -10634,11 +11167,11 @@ function computeActivationDirection(oldValue, newValue, orientation, tabMap) {
|
|
|
10634
11167
|
}
|
|
10635
11168
|
|
|
10636
11169
|
//#endregion
|
|
10637
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
11170
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/internals/composite/constants.mjs
|
|
10638
11171
|
const ACTIVE_COMPOSITE_ITEM = "data-composite-item-active";
|
|
10639
11172
|
|
|
10640
11173
|
//#endregion
|
|
10641
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
11174
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/internals/composite/item/useCompositeItem.mjs
|
|
10642
11175
|
function useCompositeItem(params = {}) {
|
|
10643
11176
|
const { highlightItemOnHover, highlightedIndex, onHighlightedIndexChange } = useCompositeRootContext();
|
|
10644
11177
|
const { ref, index } = useCompositeListItem(params);
|
|
@@ -10664,7 +11197,7 @@ function useCompositeItem(params = {}) {
|
|
|
10664
11197
|
}
|
|
10665
11198
|
|
|
10666
11199
|
//#endregion
|
|
10667
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
11200
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/tabs/list/TabsListContext.mjs
|
|
10668
11201
|
const TabsListContext = /*#__PURE__*/ React$1.createContext(void 0);
|
|
10669
11202
|
TabsListContext.displayName = "TabsListContext";
|
|
10670
11203
|
function useTabsListContext() {
|
|
@@ -10674,7 +11207,7 @@ function useTabsListContext() {
|
|
|
10674
11207
|
}
|
|
10675
11208
|
|
|
10676
11209
|
//#endregion
|
|
10677
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
11210
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/tabs/tab/TabsTab.mjs
|
|
10678
11211
|
/**
|
|
10679
11212
|
* An individual interactive tab button that toggles the corresponding panel.
|
|
10680
11213
|
* Renders a `<button>` element.
|
|
@@ -10794,14 +11327,14 @@ const TabsTab = /*#__PURE__*/ React$1.forwardRef(function TabsTab(componentProps
|
|
|
10794
11327
|
TabsTab.displayName = "TabsTab";
|
|
10795
11328
|
|
|
10796
11329
|
//#endregion
|
|
10797
|
-
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.2_@
|
|
11330
|
+
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.2_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/utils/inertValue.mjs
|
|
10798
11331
|
function inertValue(value) {
|
|
10799
11332
|
if (isReactVersionAtLeast(19)) return value;
|
|
10800
11333
|
return value ? "true" : void 0;
|
|
10801
11334
|
}
|
|
10802
11335
|
|
|
10803
11336
|
//#endregion
|
|
10804
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
11337
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/tabs/panel/TabsPanel.mjs
|
|
10805
11338
|
const stateAttributesMapping$1 = {
|
|
10806
11339
|
...tabsStateAttributesMapping,
|
|
10807
11340
|
...transitionStatusMapping
|
|
@@ -10869,13 +11402,13 @@ const TabsPanel = /*#__PURE__*/ React$1.forwardRef(function TabsPanel(componentP
|
|
|
10869
11402
|
TabsPanel.displayName = "TabsPanel";
|
|
10870
11403
|
|
|
10871
11404
|
//#endregion
|
|
10872
|
-
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.2_@
|
|
11405
|
+
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.2_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/utils/isElementDisabled.mjs
|
|
10873
11406
|
function isElementDisabled(element) {
|
|
10874
11407
|
return element == null || element.hasAttribute("disabled") || element.getAttribute("aria-disabled") === "true";
|
|
10875
11408
|
}
|
|
10876
11409
|
|
|
10877
11410
|
//#endregion
|
|
10878
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
11411
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/internals/composite/composite.mjs
|
|
10879
11412
|
const ARROW_UP = "ArrowUp";
|
|
10880
11413
|
const ARROW_DOWN = "ArrowDown";
|
|
10881
11414
|
const ARROW_LEFT = "ArrowLeft";
|
|
@@ -10962,7 +11495,7 @@ function getStyles(element) {
|
|
|
10962
11495
|
}
|
|
10963
11496
|
|
|
10964
11497
|
//#endregion
|
|
10965
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
11498
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/internals/composite/root/useCompositeRoot.mjs
|
|
10966
11499
|
const EMPTY_ARRAY = [];
|
|
10967
11500
|
function useCompositeRoot(params) {
|
|
10968
11501
|
const { loopFocus = true, orientation = "both", grid, onLoop, direction, highlightedIndex: externalHighlightedIndex, onHighlightedIndexChange: externalSetHighlightedIndex, rootRef: externalRef, enableHomeAndEndKeys = false, stopEventPropagation, disabledIndices, modifierKeys = EMPTY_ARRAY } = params;
|
|
@@ -11098,7 +11631,7 @@ function isModifierKeySet(event, ignoredModifierKeys) {
|
|
|
11098
11631
|
}
|
|
11099
11632
|
|
|
11100
11633
|
//#endregion
|
|
11101
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
11634
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/internals/composite/root/CompositeRoot.mjs
|
|
11102
11635
|
function CompositeRoot(componentProps) {
|
|
11103
11636
|
const { render, className, style, refs = EMPTY_ARRAY$1, props = EMPTY_ARRAY$1, state = EMPTY_OBJECT, stateAttributesMapping, highlightedIndex: highlightedIndexProp, onHighlightedIndexChange: onHighlightedIndexChangeProp, orientation, grid, loopFocus, onLoop, enableHomeAndEndKeys, onMapChange: onMapChangeProp, stopEventPropagation = true, rootRef, disabledIndices, modifierKeys, highlightItemOnHover = false, tag = "div", ...elementProps } = componentProps;
|
|
11104
11637
|
const direction = useDirection();
|
|
@@ -11151,7 +11684,7 @@ function CompositeRoot(componentProps) {
|
|
|
11151
11684
|
}
|
|
11152
11685
|
|
|
11153
11686
|
//#endregion
|
|
11154
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
11687
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/tabs/list/TabsList.mjs
|
|
11155
11688
|
/**
|
|
11156
11689
|
* Groups the individual tab buttons.
|
|
11157
11690
|
* Renders a `<div>` element.
|
|
@@ -11339,14 +11872,14 @@ function Column({ children }) {
|
|
|
11339
11872
|
}
|
|
11340
11873
|
|
|
11341
11874
|
//#endregion
|
|
11342
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
11875
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/collapsible/root/stateAttributesMapping.mjs
|
|
11343
11876
|
const collapsibleStateAttributesMapping = {
|
|
11344
11877
|
...collapsibleOpenStateMapping,
|
|
11345
11878
|
...transitionStatusMapping
|
|
11346
11879
|
};
|
|
11347
11880
|
|
|
11348
11881
|
//#endregion
|
|
11349
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
11882
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/collapsible/root/CollapsibleRoot.mjs
|
|
11350
11883
|
/**
|
|
11351
11884
|
* Groups all parts of the collapsible.
|
|
11352
11885
|
* Renders a `<div>` element.
|
|
@@ -11394,7 +11927,7 @@ const CollapsibleRoot = /*#__PURE__*/ React$1.forwardRef(function CollapsibleRoo
|
|
|
11394
11927
|
CollapsibleRoot.displayName = "CollapsibleRoot";
|
|
11395
11928
|
|
|
11396
11929
|
//#endregion
|
|
11397
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
11930
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/collapsible/trigger/CollapsibleTrigger.mjs
|
|
11398
11931
|
const stateAttributesMapping = {
|
|
11399
11932
|
...triggerOpenStateMapping$1,
|
|
11400
11933
|
...transitionStatusMapping
|
|
@@ -11431,7 +11964,7 @@ const CollapsibleTrigger$1 = /*#__PURE__*/ React$1.forwardRef(function Collapsib
|
|
|
11431
11964
|
CollapsibleTrigger$1.displayName = "CollapsibleTrigger";
|
|
11432
11965
|
|
|
11433
11966
|
//#endregion
|
|
11434
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
11967
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/collapsible/panel/CollapsiblePanelCssVars.mjs
|
|
11435
11968
|
let CollapsiblePanelCssVars = /*#__PURE__*/ function(CollapsiblePanelCssVars) {
|
|
11436
11969
|
/**
|
|
11437
11970
|
* The collapsible panel's height.
|
|
@@ -11447,7 +11980,7 @@ let CollapsiblePanelCssVars = /*#__PURE__*/ function(CollapsiblePanelCssVars) {
|
|
|
11447
11980
|
}({});
|
|
11448
11981
|
|
|
11449
11982
|
//#endregion
|
|
11450
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
11983
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/collapsible/panel/CollapsiblePanel.mjs
|
|
11451
11984
|
/**
|
|
11452
11985
|
* A panel with the collapsible contents.
|
|
11453
11986
|
* Renders a `<div>` element.
|
|
@@ -11681,35 +12214,52 @@ function Link(props) {
|
|
|
11681
12214
|
}
|
|
11682
12215
|
|
|
11683
12216
|
//#endregion
|
|
11684
|
-
//#region src/components/docs/
|
|
11685
|
-
|
|
11686
|
-
|
|
11687
|
-
|
|
11688
|
-
|
|
11689
|
-
|
|
11690
|
-
|
|
11691
|
-
|
|
11692
|
-
|
|
11693
|
-
|
|
11694
|
-
|
|
11695
|
-
|
|
11696
|
-
|
|
11697
|
-
|
|
11698
|
-
|
|
11699
|
-
|
|
11700
|
-
|
|
11701
|
-
|
|
11702
|
-
|
|
11703
|
-
|
|
11704
|
-
|
|
11705
|
-
|
|
11706
|
-
|
|
11707
|
-
|
|
11708
|
-
|
|
12217
|
+
//#region src/components/docs/panel-context.tsx
|
|
12218
|
+
const PanelContext = createContext({
|
|
12219
|
+
content: null,
|
|
12220
|
+
setContent: () => {}
|
|
12221
|
+
});
|
|
12222
|
+
function PanelProvider({ children }) {
|
|
12223
|
+
const [content, setContent] = useState(null);
|
|
12224
|
+
return /* @__PURE__ */ jsx(PanelContext.Provider, {
|
|
12225
|
+
value: {
|
|
12226
|
+
content,
|
|
12227
|
+
setContent
|
|
12228
|
+
},
|
|
12229
|
+
children
|
|
12230
|
+
});
|
|
12231
|
+
}
|
|
12232
|
+
function usePanelContent() {
|
|
12233
|
+
return useContext(PanelContext).content;
|
|
12234
|
+
}
|
|
12235
|
+
function useSetPanelContent() {
|
|
12236
|
+
return useContext(PanelContext).setContent;
|
|
12237
|
+
}
|
|
12238
|
+
|
|
12239
|
+
//#endregion
|
|
12240
|
+
//#region src/components/docs/Panel.tsx
|
|
12241
|
+
/**
|
|
12242
|
+
* Pins supplementary content to the right rail (replacing the table of
|
|
12243
|
+
* contents on desktop). On small screens the content renders inline where it
|
|
12244
|
+
* is written. Only one Panel per page is supported; the last one wins.
|
|
12245
|
+
*/
|
|
12246
|
+
function Panel({ children }) {
|
|
12247
|
+
const setContent = useSetPanelContent();
|
|
12248
|
+
useEffect(() => {
|
|
12249
|
+
setContent(children ? /* @__PURE__ */ jsx("div", {
|
|
12250
|
+
className: styles.panel,
|
|
11709
12251
|
children
|
|
11710
|
-
}) : null
|
|
12252
|
+
}) : null);
|
|
12253
|
+
return () => setContent(null);
|
|
12254
|
+
}, [children, setContent]);
|
|
12255
|
+
return /* @__PURE__ */ jsx("div", {
|
|
12256
|
+
className: styles.panelInline,
|
|
12257
|
+
children
|
|
11711
12258
|
});
|
|
11712
12259
|
}
|
|
12260
|
+
|
|
12261
|
+
//#endregion
|
|
12262
|
+
//#region src/components/docs/Param.tsx
|
|
11713
12263
|
function Param({ children }) {
|
|
11714
12264
|
return /* @__PURE__ */ jsx("code", {
|
|
11715
12265
|
className: styles.code,
|
|
@@ -11732,81 +12282,52 @@ function PropertiesTable({ children }) {
|
|
|
11732
12282
|
className: "m-0 min-w-[40rem] table-fixed",
|
|
11733
12283
|
children: [/* @__PURE__ */ jsx("thead", { children: /* @__PURE__ */ jsxs("tr", { children: [
|
|
11734
12284
|
/* @__PURE__ */ jsx("th", {
|
|
11735
|
-
className: "w-
|
|
12285
|
+
className: "w-[30%]",
|
|
11736
12286
|
children: "Name"
|
|
11737
12287
|
}),
|
|
11738
12288
|
/* @__PURE__ */ jsx("th", {
|
|
11739
|
-
className: "w-
|
|
12289
|
+
className: "w-[15%]",
|
|
11740
12290
|
children: "Type"
|
|
11741
12291
|
}),
|
|
11742
12292
|
/* @__PURE__ */ jsx("th", { children: "Description" })
|
|
11743
|
-
] }) }), /* @__PURE__ */ jsx("tbody", { children: rows
|
|
11744
|
-
const { name, type, required, deprecated, children: description } = row.props;
|
|
11745
|
-
const defaultValue = displayValue(row.props.default);
|
|
11746
|
-
return /* @__PURE__ */ jsxs("tr", { children: [
|
|
11747
|
-
/* @__PURE__ */ jsx("td", { children: /* @__PURE__ */ jsxs("span", {
|
|
11748
|
-
className: "inline-flex flex-wrap items-center gap-2",
|
|
11749
|
-
children: [
|
|
11750
|
-
name,
|
|
11751
|
-
required ? /* @__PURE__ */ jsx(Badge, {
|
|
11752
|
-
size: "xs",
|
|
11753
|
-
tone: "primary",
|
|
11754
|
-
children: "required"
|
|
11755
|
-
}) : null,
|
|
11756
|
-
deprecated ? /* @__PURE__ */ jsx(Badge, {
|
|
11757
|
-
size: "xs",
|
|
11758
|
-
children: "deprecated"
|
|
11759
|
-
}) : null
|
|
11760
|
-
]
|
|
11761
|
-
}) }),
|
|
11762
|
-
/* @__PURE__ */ jsx("td", { children: displayValue(type) }),
|
|
11763
|
-
/* @__PURE__ */ jsxs("td", {
|
|
11764
|
-
className: "[&_p]:m-0",
|
|
11765
|
-
children: [description, defaultValue ? /* @__PURE__ */ jsxs("span", {
|
|
11766
|
-
className: "mt-1 block text-muted-foreground",
|
|
11767
|
-
children: ["Default: ", defaultValue]
|
|
11768
|
-
}) : null]
|
|
11769
|
-
})
|
|
11770
|
-
] }, row.key ?? name);
|
|
11771
|
-
}) })]
|
|
12293
|
+
] }) }), /* @__PURE__ */ jsx("tbody", { children: rows })]
|
|
11772
12294
|
})
|
|
11773
12295
|
});
|
|
11774
12296
|
}
|
|
11775
|
-
|
|
11776
|
-
|
|
11777
|
-
|
|
11778
|
-
|
|
11779
|
-
|
|
11780
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
11781
|
-
className: styles.field,
|
|
11782
|
-
children: [/* @__PURE__ */ jsxs("div", {
|
|
11783
|
-
className: styles.fieldHeader,
|
|
12297
|
+
function PropertiesTableRow({ name, type, required, deprecated, default: value, children }) {
|
|
12298
|
+
const defaultValue = displayValue(value);
|
|
12299
|
+
return /* @__PURE__ */ jsxs("tr", { children: [
|
|
12300
|
+
/* @__PURE__ */ jsx("td", { children: /* @__PURE__ */ jsxs("span", {
|
|
12301
|
+
className: "inline-flex flex-wrap items-center gap-2",
|
|
11784
12302
|
children: [
|
|
11785
|
-
|
|
11786
|
-
className: styles.fieldName,
|
|
11787
|
-
children: name
|
|
11788
|
-
}),
|
|
11789
|
-
normalizedType ? /* @__PURE__ */ jsx("span", {
|
|
11790
|
-
className: styles.fieldType,
|
|
11791
|
-
children: normalizedType
|
|
11792
|
-
}) : null,
|
|
12303
|
+
name,
|
|
11793
12304
|
required ? /* @__PURE__ */ jsx(Badge, {
|
|
12305
|
+
size: "sm",
|
|
11794
12306
|
tone: "primary",
|
|
11795
12307
|
children: "required"
|
|
11796
12308
|
}) : null,
|
|
11797
|
-
deprecated ? /* @__PURE__ */ jsx(Badge, {
|
|
12309
|
+
deprecated ? /* @__PURE__ */ jsx(Badge, {
|
|
12310
|
+
size: "sm",
|
|
12311
|
+
children: "deprecated"
|
|
12312
|
+
}) : null
|
|
11798
12313
|
]
|
|
11799
|
-
})
|
|
11800
|
-
|
|
11801
|
-
|
|
11802
|
-
|
|
11803
|
-
|
|
12314
|
+
}) }),
|
|
12315
|
+
/* @__PURE__ */ jsx("td", { children: displayValue(type) }),
|
|
12316
|
+
/* @__PURE__ */ jsxs("td", {
|
|
12317
|
+
className: "[&_p]:m-0",
|
|
12318
|
+
children: [children, defaultValue ? /* @__PURE__ */ jsxs("span", {
|
|
12319
|
+
className: "mt-1 block text-muted-foreground",
|
|
12320
|
+
children: ["Default: ", defaultValue]
|
|
12321
|
+
}) : null]
|
|
12322
|
+
})
|
|
12323
|
+
] });
|
|
11804
12324
|
}
|
|
12325
|
+
PropertiesTable.Row = PropertiesTableRow;
|
|
11805
12326
|
|
|
11806
12327
|
//#endregion
|
|
11807
12328
|
//#region src/components/docs/Steps.tsx
|
|
11808
12329
|
function Step({ children }) {
|
|
11809
|
-
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
12330
|
+
return /* @__PURE__ */ jsx(Fragment$1, { children });
|
|
11810
12331
|
}
|
|
11811
12332
|
function Steps({ children }) {
|
|
11812
12333
|
const steps = useMemo(() => {
|
|
@@ -11839,7 +12360,7 @@ function Steps({ children }) {
|
|
|
11839
12360
|
//#endregion
|
|
11840
12361
|
//#region src/components/docs/Tabs.tsx
|
|
11841
12362
|
function Tab({ children }) {
|
|
11842
|
-
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
12363
|
+
return /* @__PURE__ */ jsx(Fragment$1, { children });
|
|
11843
12364
|
}
|
|
11844
12365
|
function Tabs({ children, group }) {
|
|
11845
12366
|
const tabs = useMemo(() => {
|
|
@@ -11911,7 +12432,50 @@ function Tabs({ children, group }) {
|
|
|
11911
12432
|
}
|
|
11912
12433
|
|
|
11913
12434
|
//#endregion
|
|
11914
|
-
//#region
|
|
12435
|
+
//#region src/components/docs/Tiles.tsx
|
|
12436
|
+
function Tile({ href, title, description, children, target }) {
|
|
12437
|
+
const external = /^https?:\/\//i.test(href);
|
|
12438
|
+
const resolvedTarget = target ?? (external ? "_blank" : void 0);
|
|
12439
|
+
const content = /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("div", {
|
|
12440
|
+
className: styles.tilePreview,
|
|
12441
|
+
"data-slot": "tile-preview",
|
|
12442
|
+
children
|
|
12443
|
+
}), title || description ? /* @__PURE__ */ jsxs("div", {
|
|
12444
|
+
className: styles.tileBody,
|
|
12445
|
+
"data-slot": "tile-body",
|
|
12446
|
+
children: [title ? /* @__PURE__ */ jsx("div", {
|
|
12447
|
+
className: styles.tileTitle,
|
|
12448
|
+
children: title
|
|
12449
|
+
}) : null, description ? /* @__PURE__ */ jsx("div", {
|
|
12450
|
+
className: styles.tileDescription,
|
|
12451
|
+
children: description
|
|
12452
|
+
}) : null]
|
|
12453
|
+
}) : null] });
|
|
12454
|
+
const className = `${styles.tile} no-underline hover:no-underline active:no-underline`;
|
|
12455
|
+
if (external) return /* @__PURE__ */ jsx("a", {
|
|
12456
|
+
href,
|
|
12457
|
+
className,
|
|
12458
|
+
target: resolvedTarget,
|
|
12459
|
+
rel: "noreferrer",
|
|
12460
|
+
children: content
|
|
12461
|
+
});
|
|
12462
|
+
return /* @__PURE__ */ jsx(Link$1, {
|
|
12463
|
+
to: href,
|
|
12464
|
+
className,
|
|
12465
|
+
target: resolvedTarget,
|
|
12466
|
+
children: content
|
|
12467
|
+
});
|
|
12468
|
+
}
|
|
12469
|
+
/** Grid wrapper for <Tile> when <Columns> is not used directly. */
|
|
12470
|
+
function Tiles({ children, cols = 2 }) {
|
|
12471
|
+
return /* @__PURE__ */ jsx("div", {
|
|
12472
|
+
className: `${styles.grid} ${styles[gridColsClass(cols)]}`,
|
|
12473
|
+
children
|
|
12474
|
+
});
|
|
12475
|
+
}
|
|
12476
|
+
|
|
12477
|
+
//#endregion
|
|
12478
|
+
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.2_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/utils/fastHooks.mjs
|
|
11915
12479
|
const hooks = [];
|
|
11916
12480
|
let currentInstance = void 0;
|
|
11917
12481
|
function getInstance() {
|
|
@@ -12004,7 +12568,7 @@ function createInstance() {
|
|
|
12004
12568
|
}
|
|
12005
12569
|
|
|
12006
12570
|
//#endregion
|
|
12007
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
12571
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/tooltip/root/TooltipRootContext.mjs
|
|
12008
12572
|
const TooltipRootContext = /*#__PURE__*/ React$1.createContext(void 0);
|
|
12009
12573
|
TooltipRootContext.displayName = "TooltipRootContext";
|
|
12010
12574
|
function useTooltipRootContext(optional) {
|
|
@@ -12014,7 +12578,7 @@ function useTooltipRootContext(optional) {
|
|
|
12014
12578
|
}
|
|
12015
12579
|
|
|
12016
12580
|
//#endregion
|
|
12017
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
12581
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/floating-ui-react/hooks/useHoverShared.mjs
|
|
12018
12582
|
function resolveValue(value, pointerType) {
|
|
12019
12583
|
if (pointerType != null && !isMouseLikePointerType(pointerType)) return 0;
|
|
12020
12584
|
if (typeof value === "function") return value();
|
|
@@ -12037,7 +12601,7 @@ function isHoverOpenEvent(openEventType) {
|
|
|
12037
12601
|
}
|
|
12038
12602
|
|
|
12039
12603
|
//#endregion
|
|
12040
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
12604
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/floating-ui-react/components/FloatingDelayGroup.mjs
|
|
12041
12605
|
const FloatingDelayGroupContext = /*#__PURE__*/ React$1.createContext({
|
|
12042
12606
|
hasProvider: false,
|
|
12043
12607
|
timeoutMs: 0,
|
|
@@ -12209,7 +12773,7 @@ function useDelayGroup(context, options = { open: false }) {
|
|
|
12209
12773
|
}
|
|
12210
12774
|
|
|
12211
12775
|
//#endregion
|
|
12212
|
-
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.2_@
|
|
12776
|
+
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.2_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/utils/mergeCleanups.mjs
|
|
12213
12777
|
/**
|
|
12214
12778
|
* Combines multiple cleanup functions into a single cleanup function.
|
|
12215
12779
|
*/
|
|
@@ -12223,7 +12787,7 @@ function mergeCleanups(...cleanups) {
|
|
|
12223
12787
|
}
|
|
12224
12788
|
|
|
12225
12789
|
//#endregion
|
|
12226
|
-
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.2_@
|
|
12790
|
+
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.2_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/utils/visuallyHidden.mjs
|
|
12227
12791
|
const visuallyHiddenBase = {
|
|
12228
12792
|
clipPath: "inset(50%)",
|
|
12229
12793
|
overflow: "hidden",
|
|
@@ -12246,7 +12810,7 @@ const visuallyHiddenInput = {
|
|
|
12246
12810
|
};
|
|
12247
12811
|
|
|
12248
12812
|
//#endregion
|
|
12249
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
12813
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/utils/FocusGuard.mjs
|
|
12250
12814
|
/**
|
|
12251
12815
|
* @internal
|
|
12252
12816
|
*/
|
|
@@ -12271,13 +12835,13 @@ const FocusGuard = /*#__PURE__*/ React$1.forwardRef(function FocusGuard(props, r
|
|
|
12271
12835
|
FocusGuard.displayName = "FocusGuard";
|
|
12272
12836
|
|
|
12273
12837
|
//#endregion
|
|
12274
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
12838
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/floating-ui-react/utils/createAttribute.mjs
|
|
12275
12839
|
function createAttribute(name) {
|
|
12276
12840
|
return `data-base-ui-${name}`;
|
|
12277
12841
|
}
|
|
12278
12842
|
|
|
12279
12843
|
//#endregion
|
|
12280
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
12844
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/floating-ui-react/utils/enqueueFocus.mjs
|
|
12281
12845
|
let rafId = 0;
|
|
12282
12846
|
function enqueueFocus(el, options = {}) {
|
|
12283
12847
|
const { preventScroll = false, sync = false, shouldFocus } = options;
|
|
@@ -12301,7 +12865,7 @@ function enqueueFocus(el, options = {}) {
|
|
|
12301
12865
|
}
|
|
12302
12866
|
|
|
12303
12867
|
//#endregion
|
|
12304
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
12868
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/floating-ui-react/utils/markOthers.mjs
|
|
12305
12869
|
const counters = {
|
|
12306
12870
|
inert: /* @__PURE__ */ new WeakMap(),
|
|
12307
12871
|
"aria-hidden": /* @__PURE__ */ new WeakMap()
|
|
@@ -12415,7 +12979,7 @@ function markOthers(avoidElements, options = {}) {
|
|
|
12415
12979
|
}
|
|
12416
12980
|
|
|
12417
12981
|
//#endregion
|
|
12418
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
12982
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/internals/constants.mjs
|
|
12419
12983
|
const DISABLED_TRANSITIONS_STYLE = { style: { transition: "none" } };
|
|
12420
12984
|
const CLICK_TRIGGER_IDENTIFIER = "data-base-ui-click-trigger";
|
|
12421
12985
|
const BASE_UI_SWIPE_IGNORE_ATTRIBUTE = "data-base-ui-swipe-ignore";
|
|
@@ -12446,14 +13010,14 @@ const ownerVisuallyHidden = {
|
|
|
12446
13010
|
};
|
|
12447
13011
|
|
|
12448
13012
|
//#endregion
|
|
12449
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
13013
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/floating-ui-react/components/FloatingPortal.mjs
|
|
12450
13014
|
const PortalContext = /*#__PURE__*/ React$1.createContext(null);
|
|
12451
13015
|
PortalContext.displayName = "PortalContext";
|
|
12452
13016
|
const usePortalContext = () => React$1.useContext(PortalContext);
|
|
12453
13017
|
const attr = createAttribute("portal");
|
|
12454
13018
|
function useFloatingPortalNode(props = {}) {
|
|
12455
13019
|
const { ref, container: containerProp, componentProps = EMPTY_OBJECT, elementProps } = props;
|
|
12456
|
-
const uniqueId = useId();
|
|
13020
|
+
const uniqueId = useId$1();
|
|
12457
13021
|
const parentPortalNode = usePortalContext()?.portalNode;
|
|
12458
13022
|
const [containerElement, setContainerElement] = React$1.useState(null);
|
|
12459
13023
|
const [portalNode, setPortalNode] = React$1.useState(null);
|
|
@@ -12590,7 +13154,7 @@ const FloatingPortal = /*#__PURE__*/ React$1.forwardRef(function FloatingPortal(
|
|
|
12590
13154
|
FloatingPortal.displayName = "FloatingPortal";
|
|
12591
13155
|
|
|
12592
13156
|
//#endregion
|
|
12593
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
13157
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/floating-ui-react/utils/createEventEmitter.mjs
|
|
12594
13158
|
function createEventEmitter() {
|
|
12595
13159
|
const map = /* @__PURE__ */ new Map();
|
|
12596
13160
|
return {
|
|
@@ -12608,7 +13172,7 @@ function createEventEmitter() {
|
|
|
12608
13172
|
}
|
|
12609
13173
|
|
|
12610
13174
|
//#endregion
|
|
12611
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
13175
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/floating-ui-react/components/FloatingTreeStore.mjs
|
|
12612
13176
|
/**
|
|
12613
13177
|
* Stores and manages floating elements in a tree structure.
|
|
12614
13178
|
* This is a backing store for the `FloatingTree` component.
|
|
@@ -12626,7 +13190,7 @@ var FloatingTreeStore = class {
|
|
|
12626
13190
|
};
|
|
12627
13191
|
|
|
12628
13192
|
//#endregion
|
|
12629
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
13193
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/floating-ui-react/components/FloatingTree.mjs
|
|
12630
13194
|
const FloatingNodeContext = /*#__PURE__*/ React$1.createContext(null);
|
|
12631
13195
|
FloatingNodeContext.displayName = "FloatingNodeContext";
|
|
12632
13196
|
const FloatingTreeContext = /*#__PURE__*/ React$1.createContext(null);
|
|
@@ -12644,7 +13208,7 @@ const useFloatingTree = (externalTree) => {
|
|
|
12644
13208
|
* @see https://floating-ui.com/docs/FloatingTree
|
|
12645
13209
|
*/
|
|
12646
13210
|
function useFloatingNodeId(externalTree) {
|
|
12647
|
-
const id = useId();
|
|
13211
|
+
const id = useId$1();
|
|
12648
13212
|
const tree = useFloatingTree(externalTree);
|
|
12649
13213
|
const parentId = useFloatingParentNodeId();
|
|
12650
13214
|
useIsoLayoutEffect(() => {
|
|
@@ -12701,7 +13265,7 @@ function FloatingTree(props) {
|
|
|
12701
13265
|
}
|
|
12702
13266
|
|
|
12703
13267
|
//#endregion
|
|
12704
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
13268
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/floating-ui-react/components/FloatingFocusManager.mjs
|
|
12705
13269
|
function getEventType(event, lastInteractionType) {
|
|
12706
13270
|
const win = getWindow(getTarget(event));
|
|
12707
13271
|
if (event instanceof win.KeyboardEvent) return "keyboard";
|
|
@@ -13148,7 +13712,7 @@ function FloatingFocusManager(props) {
|
|
|
13148
13712
|
}
|
|
13149
13713
|
|
|
13150
13714
|
//#endregion
|
|
13151
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
13715
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/floating-ui-react/hooks/useClick.mjs
|
|
13152
13716
|
/**
|
|
13153
13717
|
* Opens or closes the floating element when clicking the reference element.
|
|
13154
13718
|
* @see https://floating-ui.com/docs/useClick
|
|
@@ -13227,7 +13791,7 @@ function useClick(context, props = {}) {
|
|
|
13227
13791
|
}
|
|
13228
13792
|
|
|
13229
13793
|
//#endregion
|
|
13230
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
13794
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/floating-ui-react/hooks/useClientPoint.mjs
|
|
13231
13795
|
function createVirtualElement(domElement, data) {
|
|
13232
13796
|
let offsetX = null;
|
|
13233
13797
|
let offsetY = null;
|
|
@@ -13375,7 +13939,7 @@ function useClientPoint(context, props = {}) {
|
|
|
13375
13939
|
}
|
|
13376
13940
|
|
|
13377
13941
|
//#endregion
|
|
13378
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
13942
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/floating-ui-react/hooks/useDismiss.mjs
|
|
13379
13943
|
function alwaysFalse() {
|
|
13380
13944
|
return false;
|
|
13381
13945
|
}
|
|
@@ -14664,7 +15228,7 @@ const computePosition = (reference, floating, options) => {
|
|
|
14664
15228
|
};
|
|
14665
15229
|
|
|
14666
15230
|
//#endregion
|
|
14667
|
-
//#region ../../node_modules/.pnpm/@floating-ui+react-dom@2.1.
|
|
15231
|
+
//#region ../../node_modules/.pnpm/@floating-ui+react-dom@2.1.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs
|
|
14668
15232
|
var index = typeof document !== "undefined" ? useLayoutEffect : function noop() {};
|
|
14669
15233
|
function deepEqual(a, b) {
|
|
14670
15234
|
if (a === b) return true;
|
|
@@ -14978,7 +15542,7 @@ function useSyncExternalStoreWithSelector(subscribe, getSnapshot, getServerSnaps
|
|
|
14978
15542
|
}
|
|
14979
15543
|
|
|
14980
15544
|
//#endregion
|
|
14981
|
-
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.2_@
|
|
15545
|
+
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.2_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/utils/store/useStore.mjs
|
|
14982
15546
|
const useStoreImplementation = isReactVersionAtLeast(19) ? useStoreFast : useStoreLegacy;
|
|
14983
15547
|
function useStore(store, selector, a1, a2, a3) {
|
|
14984
15548
|
return useStoreImplementation(store, selector, a1, a2, a3);
|
|
@@ -15068,7 +15632,7 @@ function useStoreLegacy(store, selector, a1, a2, a3) {
|
|
|
15068
15632
|
}
|
|
15069
15633
|
|
|
15070
15634
|
//#endregion
|
|
15071
|
-
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.2_@
|
|
15635
|
+
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.2_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/utils/store/Store.mjs
|
|
15072
15636
|
/**
|
|
15073
15637
|
* A data store implementation that allows subscribing to state changes and updating the state.
|
|
15074
15638
|
* It uses an observer pattern to notify subscribers when the state changes.
|
|
@@ -15159,7 +15723,7 @@ var Store = class {
|
|
|
15159
15723
|
};
|
|
15160
15724
|
|
|
15161
15725
|
//#endregion
|
|
15162
|
-
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.2_@
|
|
15726
|
+
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.2_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/utils/store/ReactStore.mjs
|
|
15163
15727
|
/**
|
|
15164
15728
|
* A Store that supports controlled state keys, non-reactive values and provides utility methods for React.
|
|
15165
15729
|
*/
|
|
@@ -15329,7 +15893,7 @@ var ReactStore = class extends Store {
|
|
|
15329
15893
|
};
|
|
15330
15894
|
|
|
15331
15895
|
//#endregion
|
|
15332
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
15896
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/floating-ui-react/components/FloatingRootStore.mjs
|
|
15333
15897
|
const selectors$2 = {
|
|
15334
15898
|
open: (state) => state.open,
|
|
15335
15899
|
transitionStatus: (state) => state.transitionStatus,
|
|
@@ -15391,7 +15955,7 @@ var FloatingRootStore = class extends ReactStore {
|
|
|
15391
15955
|
};
|
|
15392
15956
|
|
|
15393
15957
|
//#endregion
|
|
15394
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
15958
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/floating-ui-react/hooks/useSyncedFloatingRootContext.mjs
|
|
15395
15959
|
/**
|
|
15396
15960
|
* Keeps a FloatingRootStore in sync with the provided PopupStore.
|
|
15397
15961
|
* Uses the provided FloatingRootStore when one exists, otherwise creates one once and updates it on every render.
|
|
@@ -15440,7 +16004,7 @@ function useSyncedFloatingRootContext(options) {
|
|
|
15440
16004
|
}
|
|
15441
16005
|
|
|
15442
16006
|
//#endregion
|
|
15443
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
16007
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/utils/popups/popupStoreUtils.mjs
|
|
15444
16008
|
const FOCUSABLE_POPUP_PROPS = {
|
|
15445
16009
|
tabIndex: -1,
|
|
15446
16010
|
[FOCUSABLE_ATTRIBUTE]: ""
|
|
@@ -15468,7 +16032,7 @@ function createDefaultInitialFocus(popupRef) {
|
|
|
15468
16032
|
* floating element instead of the default positioner.
|
|
15469
16033
|
*/
|
|
15470
16034
|
function usePopupRootStore(createStore, treatPopupAsFloatingElement = false) {
|
|
15471
|
-
const floatingId = useId();
|
|
16035
|
+
const floatingId = useId$1();
|
|
15472
16036
|
const nested = useFloatingParentNodeId() != null;
|
|
15473
16037
|
const store = useRefWithInit(() => createStore(floatingId, nested)).current;
|
|
15474
16038
|
useSyncedFloatingRootContext({
|
|
@@ -15777,7 +16341,7 @@ function usePopupRootSync(store, open) {
|
|
|
15777
16341
|
}
|
|
15778
16342
|
|
|
15779
16343
|
//#endregion
|
|
15780
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
16344
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/utils/popups/popupTriggerMap.mjs
|
|
15781
16345
|
/**
|
|
15782
16346
|
* Development-only reverse index of element to registered id, keyed by the owning map.
|
|
15783
16347
|
*
|
|
@@ -15873,7 +16437,7 @@ var PopupTriggerMap = class {
|
|
|
15873
16437
|
};
|
|
15874
16438
|
|
|
15875
16439
|
//#endregion
|
|
15876
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
16440
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/floating-ui-react/utils/getEmptyRootContext.mjs
|
|
15877
16441
|
function getEmptyRootContext() {
|
|
15878
16442
|
return new FloatingRootStore({
|
|
15879
16443
|
open: false,
|
|
@@ -15889,7 +16453,7 @@ function getEmptyRootContext() {
|
|
|
15889
16453
|
}
|
|
15890
16454
|
|
|
15891
16455
|
//#endregion
|
|
15892
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
16456
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/utils/popups/store.mjs
|
|
15893
16457
|
/**
|
|
15894
16458
|
* State common to all popup stores.
|
|
15895
16459
|
*/
|
|
@@ -15983,7 +16547,7 @@ const popupStoreSelectors = {
|
|
|
15983
16547
|
* that an inert store can be passed while detached.
|
|
15984
16548
|
*/
|
|
15985
16549
|
//#endregion
|
|
15986
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
16550
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/utils/popups/usePopupHandleStore.mjs
|
|
15987
16551
|
/**
|
|
15988
16552
|
* Reads the store currently exposed by a popup handle and subscribes to store-pointer changes.
|
|
15989
16553
|
* Detached triggers use this to follow a handle as a root attaches or detaches: while no root is
|
|
@@ -16006,7 +16570,7 @@ function usePopupHandleStore(handle) {
|
|
|
16006
16570
|
}
|
|
16007
16571
|
|
|
16008
16572
|
//#endregion
|
|
16009
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
16573
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/floating-ui-react/hooks/useFloating.mjs
|
|
16010
16574
|
/**
|
|
16011
16575
|
* Base UI's private `useFloating` path. The caller must supply the root store, so this skips the
|
|
16012
16576
|
* internal root-context hook used by the public Floating UI-compatible API.
|
|
@@ -16127,7 +16691,7 @@ function useFloatingWithStore(options, store) {
|
|
|
16127
16691
|
}
|
|
16128
16692
|
|
|
16129
16693
|
//#endregion
|
|
16130
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
16694
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/floating-ui-react/hooks/useFocus.mjs
|
|
16131
16695
|
const isMacSafari = mac && webkit;
|
|
16132
16696
|
/**
|
|
16133
16697
|
* Opens the floating element while the reference element has focus, like CSS
|
|
@@ -16239,7 +16803,7 @@ function useFocus(context, props = {}) {
|
|
|
16239
16803
|
}
|
|
16240
16804
|
|
|
16241
16805
|
//#endregion
|
|
16242
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
16806
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/floating-ui-react/hooks/useHoverInteractionSharedState.mjs
|
|
16243
16807
|
var HoverInteraction = class HoverInteraction {
|
|
16244
16808
|
constructor() {
|
|
16245
16809
|
this.pointerType = void 0;
|
|
@@ -16304,7 +16868,7 @@ function useHoverInteractionSharedState(store) {
|
|
|
16304
16868
|
}
|
|
16305
16869
|
|
|
16306
16870
|
//#endregion
|
|
16307
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
16871
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/floating-ui-react/hooks/useHoverFloatingInteraction.mjs
|
|
16308
16872
|
/**
|
|
16309
16873
|
* Provides hover interactions that should be attached to the floating element.
|
|
16310
16874
|
*/
|
|
@@ -16451,7 +17015,7 @@ function useHoverFloatingInteraction(context, parameters = {}) {
|
|
|
16451
17015
|
}
|
|
16452
17016
|
|
|
16453
17017
|
//#endregion
|
|
16454
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
17018
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/floating-ui-react/hooks/useHoverReferenceInteraction.mjs
|
|
16455
17019
|
const EMPTY_REF = { current: null };
|
|
16456
17020
|
/**
|
|
16457
17021
|
* Provides hover interactions that should be attached to reference or trigger
|
|
@@ -16691,7 +17255,7 @@ function useHoverReferenceInteraction(context, props = {}) {
|
|
|
16691
17255
|
}
|
|
16692
17256
|
|
|
16693
17257
|
//#endregion
|
|
16694
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
17258
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/floating-ui-react/safePolygon.mjs
|
|
16695
17259
|
const CURSOR_SPEED_THRESHOLD = .1;
|
|
16696
17260
|
const CURSOR_SPEED_THRESHOLD_SQUARED = CURSOR_SPEED_THRESHOLD * CURSOR_SPEED_THRESHOLD;
|
|
16697
17261
|
const POLYGON_BUFFER = .5;
|
|
@@ -16868,7 +17432,7 @@ function safePolygon(options = {}) {
|
|
|
16868
17432
|
}
|
|
16869
17433
|
|
|
16870
17434
|
//#endregion
|
|
16871
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
17435
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/tooltip/store/TooltipStore.mjs
|
|
16872
17436
|
const selectors$1 = {
|
|
16873
17437
|
...popupStoreSelectors,
|
|
16874
17438
|
disabled: (state) => state.disabled,
|
|
@@ -16928,7 +17492,7 @@ function createInitialContext$1(triggerElements) {
|
|
|
16928
17492
|
}
|
|
16929
17493
|
|
|
16930
17494
|
//#endregion
|
|
16931
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
17495
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/tooltip/root/TooltipRoot.mjs
|
|
16932
17496
|
/**
|
|
16933
17497
|
* Groups all parts of the tooltip.
|
|
16934
17498
|
* Doesn't render its own HTML element.
|
|
@@ -17036,7 +17600,7 @@ function TooltipInteractions({ store, disabled, trackCursorAxis }) {
|
|
|
17036
17600
|
}
|
|
17037
17601
|
|
|
17038
17602
|
//#endregion
|
|
17039
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
17603
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/utils/popupStateMapping.mjs
|
|
17040
17604
|
let CommonPopupDataAttributes = function(CommonPopupDataAttributes) {
|
|
17041
17605
|
/**
|
|
17042
17606
|
* Present when the popup is open.
|
|
@@ -17102,7 +17666,7 @@ const popupTransitionStateMapping = {
|
|
|
17102
17666
|
};
|
|
17103
17667
|
|
|
17104
17668
|
//#endregion
|
|
17105
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
17669
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/tooltip/provider/TooltipProviderContext.mjs
|
|
17106
17670
|
/**
|
|
17107
17671
|
* Holds the provider's `delay` value. `closeDelay` is handled by the delay group.
|
|
17108
17672
|
*/
|
|
@@ -17113,7 +17677,7 @@ function useTooltipProviderContext() {
|
|
|
17113
17677
|
}
|
|
17114
17678
|
|
|
17115
17679
|
//#endregion
|
|
17116
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
17680
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/tooltip/trigger/TooltipTrigger.mjs
|
|
17117
17681
|
const TOOLTIP_TRIGGER_IDENTIFIER = "data-base-ui-tooltip-trigger";
|
|
17118
17682
|
function getTargetElement(event) {
|
|
17119
17683
|
if ("composedPath" in event) {
|
|
@@ -17279,7 +17843,7 @@ const TooltipTrigger$1 = fastComponentRef(function TooltipTrigger(componentProps
|
|
|
17279
17843
|
TooltipTrigger$1.displayName = "TooltipTrigger";
|
|
17280
17844
|
|
|
17281
17845
|
//#endregion
|
|
17282
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
17846
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/tooltip/portal/TooltipPortalContext.mjs
|
|
17283
17847
|
const TooltipPortalContext = /*#__PURE__*/ React$1.createContext(void 0);
|
|
17284
17848
|
TooltipPortalContext.displayName = "TooltipPortalContext";
|
|
17285
17849
|
function useTooltipPortalContext() {
|
|
@@ -17289,7 +17853,7 @@ function useTooltipPortalContext() {
|
|
|
17289
17853
|
}
|
|
17290
17854
|
|
|
17291
17855
|
//#endregion
|
|
17292
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
17856
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/utils/FloatingPortalLite.mjs
|
|
17293
17857
|
/**
|
|
17294
17858
|
* `FloatingPortal` includes tabbable logic handling for focus management.
|
|
17295
17859
|
* For components that don't need tabbable logic, use `FloatingPortalLite`.
|
|
@@ -17309,7 +17873,7 @@ const FloatingPortalLite = /*#__PURE__*/ React$1.forwardRef(function FloatingPor
|
|
|
17309
17873
|
FloatingPortalLite.displayName = "FloatingPortalLite";
|
|
17310
17874
|
|
|
17311
17875
|
//#endregion
|
|
17312
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
17876
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/tooltip/portal/TooltipPortal.mjs
|
|
17313
17877
|
/**
|
|
17314
17878
|
* A portal element that moves the popup to a different part of the DOM.
|
|
17315
17879
|
* By default, the portal element is appended to `<body>`.
|
|
@@ -17331,7 +17895,7 @@ const TooltipPortal = /*#__PURE__*/ React$1.forwardRef(function TooltipPortal(pr
|
|
|
17331
17895
|
TooltipPortal.displayName = "TooltipPortal";
|
|
17332
17896
|
|
|
17333
17897
|
//#endregion
|
|
17334
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
17898
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/tooltip/positioner/TooltipPositionerContext.mjs
|
|
17335
17899
|
const TooltipPositionerContext = /*#__PURE__*/ React$1.createContext(void 0);
|
|
17336
17900
|
TooltipPositionerContext.displayName = "TooltipPositionerContext";
|
|
17337
17901
|
function useTooltipPositionerContext() {
|
|
@@ -17341,7 +17905,7 @@ function useTooltipPositionerContext() {
|
|
|
17341
17905
|
}
|
|
17342
17906
|
|
|
17343
17907
|
//#endregion
|
|
17344
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
17908
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/floating-ui-react/middleware/arrow.mjs
|
|
17345
17909
|
/**
|
|
17346
17910
|
* Fork of the original `arrow` middleware from Floating UI that allows
|
|
17347
17911
|
* configuring the offset parent.
|
|
@@ -17403,7 +17967,7 @@ const arrow = (options, deps) => ({
|
|
|
17403
17967
|
});
|
|
17404
17968
|
|
|
17405
17969
|
//#endregion
|
|
17406
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
17970
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/utils/hideMiddleware.mjs
|
|
17407
17971
|
const hide = {
|
|
17408
17972
|
name: "hide",
|
|
17409
17973
|
async fn(state) {
|
|
@@ -17415,14 +17979,14 @@ const hide = {
|
|
|
17415
17979
|
};
|
|
17416
17980
|
|
|
17417
17981
|
//#endregion
|
|
17418
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
17982
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/utils/adaptiveOriginConstants.mjs
|
|
17419
17983
|
const DEFAULT_SIDES = {
|
|
17420
17984
|
sideX: "left",
|
|
17421
17985
|
sideY: "top"
|
|
17422
17986
|
};
|
|
17423
17987
|
|
|
17424
17988
|
//#endregion
|
|
17425
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
17989
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/internals/useAnchorPositioning.mjs
|
|
17426
17990
|
const AVAILABLE_WIDTH_VAR = "--available-width";
|
|
17427
17991
|
const AVAILABLE_HEIGHT_VAR = "--available-height";
|
|
17428
17992
|
function getLogicalSide(sideParam, renderedSide, isRtl) {
|
|
@@ -17752,13 +18316,13 @@ function isRef(param) {
|
|
|
17752
18316
|
}
|
|
17753
18317
|
|
|
17754
18318
|
//#endregion
|
|
17755
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
18319
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/internals/getDisabledMountTransitionStyles.mjs
|
|
17756
18320
|
function getDisabledMountTransitionStyles(transitionStatus) {
|
|
17757
18321
|
return transitionStatus === "starting" ? DISABLED_TRANSITIONS_STYLE : EMPTY_OBJECT;
|
|
17758
18322
|
}
|
|
17759
18323
|
|
|
17760
18324
|
//#endregion
|
|
17761
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
18325
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/utils/usePositioner.mjs
|
|
17762
18326
|
/**
|
|
17763
18327
|
* Renders the shared outer Positioner element used by popup components.
|
|
17764
18328
|
* Applies the common role, hidden state, transition styles, state attributes, and optional inert styling.
|
|
@@ -17783,7 +18347,7 @@ function usePositioner(componentProps, state, { styles, transitionStatus, props,
|
|
|
17783
18347
|
}
|
|
17784
18348
|
|
|
17785
18349
|
//#endregion
|
|
17786
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
18350
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/tooltip/positioner/TooltipPositioner.mjs
|
|
17787
18351
|
/**
|
|
17788
18352
|
* Positions the tooltip against the trigger.
|
|
17789
18353
|
* Renders a `<div>` element.
|
|
@@ -17850,7 +18414,7 @@ const TooltipPositioner = /*#__PURE__*/ React$1.forwardRef(function TooltipPosit
|
|
|
17850
18414
|
TooltipPositioner.displayName = "TooltipPositioner";
|
|
17851
18415
|
|
|
17852
18416
|
//#endregion
|
|
17853
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
18417
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/tooltip/popup/TooltipPopup.mjs
|
|
17854
18418
|
/**
|
|
17855
18419
|
* A container for the tooltip contents.
|
|
17856
18420
|
* Renders a `<div>` element.
|
|
@@ -17905,7 +18469,7 @@ const TooltipPopup = /*#__PURE__*/ React$1.forwardRef(function TooltipPopup(comp
|
|
|
17905
18469
|
TooltipPopup.displayName = "TooltipPopup";
|
|
17906
18470
|
|
|
17907
18471
|
//#endregion
|
|
17908
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
18472
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/tooltip/arrow/TooltipArrow.mjs
|
|
17909
18473
|
/**
|
|
17910
18474
|
* Displays an element positioned against the tooltip anchor.
|
|
17911
18475
|
* Renders a `<div>` element.
|
|
@@ -17936,7 +18500,7 @@ const TooltipArrow = /*#__PURE__*/ React$1.forwardRef(function TooltipArrow(comp
|
|
|
17936
18500
|
TooltipArrow.displayName = "TooltipArrow";
|
|
17937
18501
|
|
|
17938
18502
|
//#endregion
|
|
17939
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
18503
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/tooltip/provider/TooltipProvider.mjs
|
|
17940
18504
|
/**
|
|
17941
18505
|
* Provides a shared delay for multiple tooltips. The grouping logic ensures that
|
|
17942
18506
|
* once a tooltip becomes visible, the adjacent tooltips will be shown instantly.
|
|
@@ -18007,7 +18571,245 @@ function Tooltip({ tip, children }) {
|
|
|
18007
18571
|
}
|
|
18008
18572
|
|
|
18009
18573
|
//#endregion
|
|
18010
|
-
//#region
|
|
18574
|
+
//#region src/components/docs/Tree.tsx
|
|
18575
|
+
function elementText(node) {
|
|
18576
|
+
if (typeof node === "string" || typeof node === "number") return String(node);
|
|
18577
|
+
if (Array.isArray(node)) return node.map(elementText).join("");
|
|
18578
|
+
if (isValidElement(node)) return elementText(node.props.children);
|
|
18579
|
+
return "";
|
|
18580
|
+
}
|
|
18581
|
+
function isListElement(node) {
|
|
18582
|
+
return isValidElement(node) && (node.type === "ul" || node.type === "ol");
|
|
18583
|
+
}
|
|
18584
|
+
/** Stable key for MDX-generated list wrappers (static content, never reordered). */
|
|
18585
|
+
function listFingerprint(node) {
|
|
18586
|
+
const text = elementText(node).replace(/\s+/g, " ").trim().slice(0, 64);
|
|
18587
|
+
let hash = 0;
|
|
18588
|
+
for (let i = 0; i < text.length; i += 1) hash = hash * 31 + text.charCodeAt(i) | 0;
|
|
18589
|
+
return `mdx-list-${text.length}-${hash}`;
|
|
18590
|
+
}
|
|
18591
|
+
/** Split an MDX <li> into its label (inline content) and an optional nested list. */
|
|
18592
|
+
function splitListItem(li) {
|
|
18593
|
+
let nested = null;
|
|
18594
|
+
const labelParts = [];
|
|
18595
|
+
Children.forEach(li.props.children, (child) => {
|
|
18596
|
+
if (isListElement(child)) nested = child;
|
|
18597
|
+
else labelParts.push(child);
|
|
18598
|
+
});
|
|
18599
|
+
return {
|
|
18600
|
+
label: elementText(labelParts).trim(),
|
|
18601
|
+
nested
|
|
18602
|
+
};
|
|
18603
|
+
}
|
|
18604
|
+
function ListItemsAsNodes({ items }) {
|
|
18605
|
+
const nodes = [];
|
|
18606
|
+
let index = 0;
|
|
18607
|
+
Children.forEach(items, (li) => {
|
|
18608
|
+
if (!isValidElement(li) || li.type !== "li") return;
|
|
18609
|
+
const { label, nested } = splitListItem(li);
|
|
18610
|
+
if (!label && !nested) return;
|
|
18611
|
+
const name = label || "untitled";
|
|
18612
|
+
const isFolder = name.endsWith("/") || Boolean(nested);
|
|
18613
|
+
index += 1;
|
|
18614
|
+
if (isFolder) nodes.push(/* @__PURE__ */ jsx(TreeFolder, {
|
|
18615
|
+
name,
|
|
18616
|
+
defaultOpen: Boolean(nested),
|
|
18617
|
+
children: nested ? /* @__PURE__ */ jsx(ListItemsAsNodes, { items: nested.props.children }) : null
|
|
18618
|
+
}, `${name}-${index}`));
|
|
18619
|
+
else nodes.push(/* @__PURE__ */ jsx(TreeFile, { name }, `${name}-${index}`));
|
|
18620
|
+
});
|
|
18621
|
+
return /* @__PURE__ */ jsx(Fragment$1, { children: nodes });
|
|
18622
|
+
}
|
|
18623
|
+
function containsList(children) {
|
|
18624
|
+
let found = false;
|
|
18625
|
+
Children.forEach(children, (child) => {
|
|
18626
|
+
if (isListElement(child)) found = true;
|
|
18627
|
+
});
|
|
18628
|
+
return found;
|
|
18629
|
+
}
|
|
18630
|
+
function TreeFolder({ name, defaultOpen = false, openable = true, highlight = false, children }) {
|
|
18631
|
+
const [open, setOpen] = useState(defaultOpen);
|
|
18632
|
+
const expanded = openable ? open : true;
|
|
18633
|
+
const Icon = expanded ? FolderOpen : Folder;
|
|
18634
|
+
return /* @__PURE__ */ jsxs("li", {
|
|
18635
|
+
role: "treeitem",
|
|
18636
|
+
"aria-expanded": openable ? expanded : void 0,
|
|
18637
|
+
"data-highlight": highlight ? "" : void 0,
|
|
18638
|
+
className: styles.treeItem,
|
|
18639
|
+
children: [openable ? /* @__PURE__ */ jsxs("button", {
|
|
18640
|
+
type: "button",
|
|
18641
|
+
"data-tree-focus": true,
|
|
18642
|
+
onClick: () => setOpen((value) => !value),
|
|
18643
|
+
className: `${styles.treeRow} ${highlight ? styles.treeHighlight : ""}`,
|
|
18644
|
+
children: [
|
|
18645
|
+
/* @__PURE__ */ jsx(ChevronRight, {
|
|
18646
|
+
size: 14,
|
|
18647
|
+
className: styles.treeChevron,
|
|
18648
|
+
"data-open": expanded ? "" : void 0,
|
|
18649
|
+
"aria-hidden": true
|
|
18650
|
+
}),
|
|
18651
|
+
/* @__PURE__ */ jsx(Icon, {
|
|
18652
|
+
size: 15,
|
|
18653
|
+
className: styles.treeIcon,
|
|
18654
|
+
"aria-hidden": true
|
|
18655
|
+
}),
|
|
18656
|
+
/* @__PURE__ */ jsx("span", {
|
|
18657
|
+
className: styles.treeName,
|
|
18658
|
+
children: name
|
|
18659
|
+
})
|
|
18660
|
+
]
|
|
18661
|
+
}) : /* @__PURE__ */ jsxs("span", {
|
|
18662
|
+
"data-tree-focus": true,
|
|
18663
|
+
tabIndex: -1,
|
|
18664
|
+
className: `${styles.treeRow} ${highlight ? styles.treeHighlight : ""}`,
|
|
18665
|
+
children: [/* @__PURE__ */ jsx(Icon, {
|
|
18666
|
+
size: 15,
|
|
18667
|
+
className: styles.treeIcon,
|
|
18668
|
+
"aria-hidden": true
|
|
18669
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
18670
|
+
className: styles.treeName,
|
|
18671
|
+
children: name
|
|
18672
|
+
})]
|
|
18673
|
+
}), children ? /* @__PURE__ */ jsx("ul", {
|
|
18674
|
+
role: "group",
|
|
18675
|
+
hidden: openable && !expanded ? true : void 0,
|
|
18676
|
+
className: styles.treeGroup,
|
|
18677
|
+
children
|
|
18678
|
+
}) : null]
|
|
18679
|
+
});
|
|
18680
|
+
}
|
|
18681
|
+
function TreeFile({ name, highlight = false }) {
|
|
18682
|
+
return /* @__PURE__ */ jsx("li", {
|
|
18683
|
+
role: "treeitem",
|
|
18684
|
+
"data-highlight": highlight ? "" : void 0,
|
|
18685
|
+
className: styles.treeItem,
|
|
18686
|
+
children: /* @__PURE__ */ jsxs("span", {
|
|
18687
|
+
"data-tree-focus": true,
|
|
18688
|
+
tabIndex: -1,
|
|
18689
|
+
className: `${styles.treeRow} ${highlight ? styles.treeHighlight : ""}`,
|
|
18690
|
+
children: [/* @__PURE__ */ jsx(File, {
|
|
18691
|
+
size: 15,
|
|
18692
|
+
className: styles.treeIcon,
|
|
18693
|
+
"aria-hidden": true
|
|
18694
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
18695
|
+
className: styles.treeName,
|
|
18696
|
+
children: name
|
|
18697
|
+
})]
|
|
18698
|
+
})
|
|
18699
|
+
});
|
|
18700
|
+
}
|
|
18701
|
+
function visibleFocusables(root) {
|
|
18702
|
+
return [...root.querySelectorAll("[data-tree-focus]")].filter((element) => !element.closest("[hidden]"));
|
|
18703
|
+
}
|
|
18704
|
+
function TreeRoot({ children, style, className }) {
|
|
18705
|
+
const rootRef = useRef(null);
|
|
18706
|
+
const searchRef = useRef({
|
|
18707
|
+
text: "",
|
|
18708
|
+
timer: 0
|
|
18709
|
+
});
|
|
18710
|
+
const onKeyDown = (event) => {
|
|
18711
|
+
const root = rootRef.current;
|
|
18712
|
+
const target = event.target;
|
|
18713
|
+
if (!root || !target.closest("[data-tree-focus]")) return;
|
|
18714
|
+
const items = visibleFocusables(root);
|
|
18715
|
+
const index = items.indexOf(target);
|
|
18716
|
+
const focusAt = (next) => {
|
|
18717
|
+
event.preventDefault();
|
|
18718
|
+
items[(next + items.length) % items.length]?.focus();
|
|
18719
|
+
};
|
|
18720
|
+
switch (event.key) {
|
|
18721
|
+
case "ArrowDown":
|
|
18722
|
+
focusAt(index + 1);
|
|
18723
|
+
break;
|
|
18724
|
+
case "ArrowUp":
|
|
18725
|
+
focusAt(index - 1);
|
|
18726
|
+
break;
|
|
18727
|
+
case "Home":
|
|
18728
|
+
focusAt(0);
|
|
18729
|
+
break;
|
|
18730
|
+
case "End":
|
|
18731
|
+
focusAt(items.length - 1);
|
|
18732
|
+
break;
|
|
18733
|
+
case "ArrowRight": {
|
|
18734
|
+
const row = target.closest("[role=\"treeitem\"]");
|
|
18735
|
+
const toggle = row?.querySelector(":scope > [data-tree-focus]");
|
|
18736
|
+
if (toggle && toggle.tagName === "BUTTON" && toggle.getAttribute("aria-expanded") === "false") {
|
|
18737
|
+
event.preventDefault();
|
|
18738
|
+
toggle.click();
|
|
18739
|
+
} else {
|
|
18740
|
+
const firstChild = row?.querySelector(":scope > ul [data-tree-focus]");
|
|
18741
|
+
if (firstChild) {
|
|
18742
|
+
event.preventDefault();
|
|
18743
|
+
firstChild.focus();
|
|
18744
|
+
}
|
|
18745
|
+
}
|
|
18746
|
+
break;
|
|
18747
|
+
}
|
|
18748
|
+
case "ArrowLeft": {
|
|
18749
|
+
const row = target.closest("[role=\"treeitem\"]");
|
|
18750
|
+
const toggle = row?.querySelector(":scope > [data-tree-focus]");
|
|
18751
|
+
if (toggle && toggle.tagName === "BUTTON" && toggle.getAttribute("aria-expanded") === "true") {
|
|
18752
|
+
event.preventDefault();
|
|
18753
|
+
toggle.click();
|
|
18754
|
+
} else {
|
|
18755
|
+
const parentFocus = (row?.parentElement?.closest("[role=\"treeitem\"]"))?.querySelector(":scope > [data-tree-focus]");
|
|
18756
|
+
if (parentFocus) {
|
|
18757
|
+
event.preventDefault();
|
|
18758
|
+
parentFocus.focus();
|
|
18759
|
+
}
|
|
18760
|
+
}
|
|
18761
|
+
break;
|
|
18762
|
+
}
|
|
18763
|
+
case "*":
|
|
18764
|
+
target.closest("ul")?.querySelectorAll(":scope > [role=\"treeitem\"] > button[aria-expanded=\"false\"]").forEach((button) => {
|
|
18765
|
+
button.click();
|
|
18766
|
+
});
|
|
18767
|
+
break;
|
|
18768
|
+
default: if (event.key.length === 1 && !event.ctrlKey && !event.metaKey) {
|
|
18769
|
+
const state = searchRef.current;
|
|
18770
|
+
window.clearTimeout(state.timer);
|
|
18771
|
+
state.text += event.key.toLowerCase();
|
|
18772
|
+
state.timer = window.setTimeout(() => {
|
|
18773
|
+
state.text = "";
|
|
18774
|
+
}, 500);
|
|
18775
|
+
const match = items.find((item) => (item.textContent || "").trim().toLowerCase().startsWith(state.text));
|
|
18776
|
+
if (match) {
|
|
18777
|
+
event.preventDefault();
|
|
18778
|
+
match.focus();
|
|
18779
|
+
}
|
|
18780
|
+
}
|
|
18781
|
+
}
|
|
18782
|
+
};
|
|
18783
|
+
const content = containsList(children) ? Children.map(children, (child) => isListElement(child) ? /* @__PURE__ */ jsx(ListItemsAsNodes, { items: child.props.children }, listFingerprint(child)) : child) : children;
|
|
18784
|
+
return /* @__PURE__ */ jsx("div", {
|
|
18785
|
+
ref: rootRef,
|
|
18786
|
+
style,
|
|
18787
|
+
className: `${styles.tree} ${className || ""}`,
|
|
18788
|
+
onKeyDown,
|
|
18789
|
+
children: /* @__PURE__ */ jsx("ul", {
|
|
18790
|
+
role: "tree",
|
|
18791
|
+
"aria-label": "File tree",
|
|
18792
|
+
className: styles.treeList,
|
|
18793
|
+
children: content
|
|
18794
|
+
})
|
|
18795
|
+
});
|
|
18796
|
+
}
|
|
18797
|
+
function Tree(props) {
|
|
18798
|
+
return /* @__PURE__ */ jsx(TreeRoot, { ...props });
|
|
18799
|
+
}
|
|
18800
|
+
/** Alias: <Tree> and <FileTree> are interchangeable, like Mintlify. */
|
|
18801
|
+
function FileTree(props) {
|
|
18802
|
+
return /* @__PURE__ */ jsx(TreeRoot, { ...props });
|
|
18803
|
+
}
|
|
18804
|
+
Tree.Folder = TreeFolder;
|
|
18805
|
+
Tree.File = TreeFile;
|
|
18806
|
+
FileTree.Folder = TreeFolder;
|
|
18807
|
+
FileTree.File = TreeFile;
|
|
18808
|
+
const FileTreeFolder = TreeFolder;
|
|
18809
|
+
const FileTreeFile = TreeFile;
|
|
18810
|
+
|
|
18811
|
+
//#endregion
|
|
18812
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/dialog/root/DialogRootContext.mjs
|
|
18011
18813
|
const DialogRootContext = /*#__PURE__*/ React$1.createContext(void 0);
|
|
18012
18814
|
DialogRootContext.displayName = "DialogRootContext";
|
|
18013
18815
|
function useDialogRootContext(optional) {
|
|
@@ -18017,7 +18819,7 @@ function useDialogRootContext(optional) {
|
|
|
18017
18819
|
}
|
|
18018
18820
|
|
|
18019
18821
|
//#endregion
|
|
18020
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
18822
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/dialog/backdrop/DialogBackdrop.mjs
|
|
18021
18823
|
/**
|
|
18022
18824
|
* An overlay displayed beneath the popup.
|
|
18023
18825
|
* Renders a `<div>` element.
|
|
@@ -18052,7 +18854,7 @@ const DialogBackdrop = /*#__PURE__*/ React$1.forwardRef(function DialogBackdrop(
|
|
|
18052
18854
|
DialogBackdrop.displayName = "DialogBackdrop";
|
|
18053
18855
|
|
|
18054
18856
|
//#endregion
|
|
18055
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
18857
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/dialog/close/DialogClose.mjs
|
|
18056
18858
|
/**
|
|
18057
18859
|
* A button that closes the dialog.
|
|
18058
18860
|
* Renders a `<button>` element.
|
|
@@ -18084,7 +18886,7 @@ const DialogClose = /*#__PURE__*/ React$1.forwardRef(function DialogClose(compon
|
|
|
18084
18886
|
DialogClose.displayName = "DialogClose";
|
|
18085
18887
|
|
|
18086
18888
|
//#endregion
|
|
18087
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
18889
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/dialog/portal/DialogPortalContext.mjs
|
|
18088
18890
|
const DialogPortalContext = /*#__PURE__*/ React$1.createContext(void 0);
|
|
18089
18891
|
DialogPortalContext.displayName = "DialogPortalContext";
|
|
18090
18892
|
function useDialogPortalContext() {
|
|
@@ -18094,7 +18896,7 @@ function useDialogPortalContext() {
|
|
|
18094
18896
|
}
|
|
18095
18897
|
|
|
18096
18898
|
//#endregion
|
|
18097
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
18899
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/dialog/utils/stateAttributesMapping.mjs
|
|
18098
18900
|
/**
|
|
18099
18901
|
* Shared by `Dialog.Popup` and `Dialog.Viewport`, whose states have the same shape.
|
|
18100
18902
|
* `nested` is not mapped: unmapped `true` booleans already render as `data-nested`.
|
|
@@ -18108,7 +18910,7 @@ const dialogStateAttributesMapping = {
|
|
|
18108
18910
|
};
|
|
18109
18911
|
|
|
18110
18912
|
//#endregion
|
|
18111
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
18913
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/dialog/popup/DialogPopup.mjs
|
|
18112
18914
|
/**
|
|
18113
18915
|
* A container for the dialog contents.
|
|
18114
18916
|
* Renders a `<div>` element.
|
|
@@ -18188,7 +18990,7 @@ const DialogPopup = /*#__PURE__*/ React$1.forwardRef(function DialogPopup(compon
|
|
|
18188
18990
|
DialogPopup.displayName = "DialogPopup";
|
|
18189
18991
|
|
|
18190
18992
|
//#endregion
|
|
18191
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
18993
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/utils/InternalBackdrop.mjs
|
|
18192
18994
|
/**
|
|
18193
18995
|
* @internal
|
|
18194
18996
|
*/
|
|
@@ -18216,7 +19018,7 @@ const InternalBackdrop = /*#__PURE__*/ React$1.forwardRef(function InternalBackd
|
|
|
18216
19018
|
InternalBackdrop.displayName = "InternalBackdrop";
|
|
18217
19019
|
|
|
18218
19020
|
//#endregion
|
|
18219
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
19021
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/dialog/portal/DialogPortal.mjs
|
|
18220
19022
|
/**
|
|
18221
19023
|
* A portal element that moves the popup to a different part of the DOM.
|
|
18222
19024
|
* By default, the portal element is appended to `<body>`.
|
|
@@ -18246,7 +19048,7 @@ const DialogPortal$1 = /*#__PURE__*/ React$1.forwardRef(function DialogPortal(pr
|
|
|
18246
19048
|
DialogPortal$1.displayName = "DialogPortal";
|
|
18247
19049
|
|
|
18248
19050
|
//#endregion
|
|
18249
|
-
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.2_@
|
|
19051
|
+
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.2_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/utils/useScrollLock.mjs
|
|
18250
19052
|
let originalHtmlStyles = {};
|
|
18251
19053
|
let originalBodyStyles = {};
|
|
18252
19054
|
let originalHtmlScrollBehavior = "";
|
|
@@ -18443,7 +19245,7 @@ function useScrollLock(enabled = true, referenceElement = null) {
|
|
|
18443
19245
|
}
|
|
18444
19246
|
|
|
18445
19247
|
//#endregion
|
|
18446
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
19248
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/dialog/root/useDialogRoot.mjs
|
|
18447
19249
|
function DialogInteractions({ store, parentContext, isDrawer }) {
|
|
18448
19250
|
const open = store.useState("open");
|
|
18449
19251
|
const disablePointerDismissal = store.useState("disablePointerDismissal");
|
|
@@ -18511,7 +19313,7 @@ function DialogInteractions({ store, parentContext, isDrawer }) {
|
|
|
18511
19313
|
}
|
|
18512
19314
|
|
|
18513
19315
|
//#endregion
|
|
18514
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
19316
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/dialog/store/DialogStore.mjs
|
|
18515
19317
|
const selectors = {
|
|
18516
19318
|
...popupStoreSelectors,
|
|
18517
19319
|
modal: (state) => state.modal,
|
|
@@ -18580,7 +19382,7 @@ function createInitialContext(triggerElements) {
|
|
|
18580
19382
|
}
|
|
18581
19383
|
|
|
18582
19384
|
//#endregion
|
|
18583
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
19385
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/dialog/root/useRenderDialogRoot.mjs
|
|
18584
19386
|
function useRenderDialogRoot(mode, props) {
|
|
18585
19387
|
const { children, open: openProp, defaultOpen = false, onOpenChange, onOpenChangeComplete, disablePointerDismissal: disablePointerDismissalProp = false, modal: modalProp = true, actionsRef, handle, triggerId: triggerIdProp, defaultTriggerId: defaultTriggerIdProp = null } = props;
|
|
18586
19388
|
const isDrawer = mode === "drawer";
|
|
@@ -18636,7 +19438,7 @@ function useRenderDialogRoot(mode, props) {
|
|
|
18636
19438
|
}
|
|
18637
19439
|
|
|
18638
19440
|
//#endregion
|
|
18639
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
19441
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/dialog/root/DialogRoot.mjs
|
|
18640
19442
|
/**
|
|
18641
19443
|
* Groups all parts of the dialog.
|
|
18642
19444
|
* Doesn't render its own HTML element.
|
|
@@ -18648,7 +19450,7 @@ function DialogRoot(props) {
|
|
|
18648
19450
|
}
|
|
18649
19451
|
|
|
18650
19452
|
//#endregion
|
|
18651
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
19453
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/dialog/title/DialogTitle.mjs
|
|
18652
19454
|
/**
|
|
18653
19455
|
* A heading that labels the dialog.
|
|
18654
19456
|
* Renders an `<h2>` element.
|
|
@@ -18668,7 +19470,7 @@ const DialogTitle$1 = /*#__PURE__*/ React$1.forwardRef(function DialogTitle(comp
|
|
|
18668
19470
|
DialogTitle$1.displayName = "DialogTitle";
|
|
18669
19471
|
|
|
18670
19472
|
//#endregion
|
|
18671
|
-
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.2_@
|
|
19473
|
+
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.2_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/utils/useEnhancedClickHandler.mjs
|
|
18672
19474
|
/**
|
|
18673
19475
|
* Provides a cross-browser way to determine the type of the pointer used to click.
|
|
18674
19476
|
* Safari and Firefox do not provide the PointerEvent to the click handler (they use MouseEvent) yet.
|
|
@@ -18698,7 +19500,7 @@ function useEnhancedClickHandler(handler) {
|
|
|
18698
19500
|
}
|
|
18699
19501
|
|
|
18700
19502
|
//#endregion
|
|
18701
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
19503
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/internals/useValueChanged.mjs
|
|
18702
19504
|
function useValueChanged(value, onChange) {
|
|
18703
19505
|
const valueRef = React$1.useRef(value);
|
|
18704
19506
|
const onChangeCallback = useStableCallback(onChange);
|
|
@@ -18709,7 +19511,7 @@ function useValueChanged(value, onChange) {
|
|
|
18709
19511
|
}
|
|
18710
19512
|
|
|
18711
19513
|
//#endregion
|
|
18712
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
19514
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/utils/useOpenInteractionType.mjs
|
|
18713
19515
|
function useOpenMethodTriggerProps(open, setOpenMethod) {
|
|
18714
19516
|
const handleTriggerClick = useStableCallback((_, interactionType) => {
|
|
18715
19517
|
if (!(typeof open === "function" ? open() : open)) setOpenMethod(interactionType || (ios ? "touch" : ""));
|
|
@@ -18738,7 +19540,7 @@ function useOpenInteractionType(open) {
|
|
|
18738
19540
|
}
|
|
18739
19541
|
|
|
18740
19542
|
//#endregion
|
|
18741
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
19543
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/dialog/trigger/DialogTrigger.mjs
|
|
18742
19544
|
/**
|
|
18743
19545
|
* A button that opens the dialog.
|
|
18744
19546
|
* Renders a `<button>` element.
|
|
@@ -18896,31 +19698,45 @@ var docs_exports = /* @__PURE__ */ __exportAll({
|
|
|
18896
19698
|
Callout: () => Callout,
|
|
18897
19699
|
Card: () => Card,
|
|
18898
19700
|
CardGroup: () => CardGroup,
|
|
19701
|
+
Changelog: () => Changelog,
|
|
18899
19702
|
Check: () => Check,
|
|
18900
19703
|
CodeGroup: () => CodeGroup,
|
|
18901
19704
|
Column: () => Column,
|
|
18902
19705
|
Columns: () => Columns,
|
|
18903
19706
|
Danger: () => Danger,
|
|
18904
19707
|
Expandable: () => Expandable,
|
|
19708
|
+
FileTree: () => FileTree,
|
|
19709
|
+
FileTreeFile: () => FileTreeFile,
|
|
19710
|
+
FileTreeFolder: () => FileTreeFolder,
|
|
18905
19711
|
Frame: () => Frame,
|
|
18906
19712
|
Icon: () => Icon,
|
|
18907
19713
|
Info: () => Info,
|
|
18908
19714
|
Link: () => Link,
|
|
19715
|
+
Mermaid: () => Mermaid,
|
|
18909
19716
|
Note: () => Note,
|
|
19717
|
+
Panel: () => Panel,
|
|
19718
|
+
PanelProvider: () => PanelProvider,
|
|
18910
19719
|
Param: () => Param,
|
|
18911
|
-
ParamField: () => ParamField,
|
|
18912
19720
|
PropertiesTable: () => PropertiesTable,
|
|
18913
|
-
ResponseField: () => ResponseField,
|
|
18914
19721
|
Step: () => Step,
|
|
18915
19722
|
Steps: () => Steps,
|
|
18916
19723
|
Tab: () => Tab,
|
|
18917
19724
|
Tabs: () => Tabs,
|
|
19725
|
+
Tile: () => Tile,
|
|
19726
|
+
Tiles: () => Tiles,
|
|
18918
19727
|
Tip: () => Tip,
|
|
18919
19728
|
Tooltip: () => Tooltip,
|
|
19729
|
+
Tree: () => Tree,
|
|
19730
|
+
TreeFile: () => TreeFile,
|
|
19731
|
+
TreeFolder: () => TreeFolder,
|
|
19732
|
+
Update: () => Update,
|
|
18920
19733
|
Warning: () => Warning,
|
|
18921
19734
|
WarningBanner: () => WarningBanner,
|
|
18922
|
-
ZoomableImage: () => ZoomableImage
|
|
19735
|
+
ZoomableImage: () => ZoomableImage,
|
|
19736
|
+
mermaidSource: () => mermaidSource,
|
|
19737
|
+
usePanelContent: () => usePanelContent,
|
|
19738
|
+
useSetPanelContent: () => useSetPanelContent
|
|
18923
19739
|
});
|
|
18924
19740
|
|
|
18925
19741
|
//#endregion
|
|
18926
|
-
export {
|
|
19742
|
+
export { useFloatingNodeId as $, useRenderElement as $n, resolveIcon as $t, safePolygon as A, isElementVisible as An, __commonJSMin as Ar, Column as At, attachPreventUnmountOnClose as B, getTarget as Bn, Callout as Bt, Tooltip as C, getNextTabbable as Cn, Router as Cr, Icon as Ct, useAnchorPositioning as D, findNonDisabledListIndex as Dn, createPath as Dr, Collapsible as Dt, getDisabledMountTransitionStyles as E, isOutsideEvent as En, useNavigate as Er, Expandable as Et, createInitialPopupStoreState as F, stopEvent as Fn, useCompositeItem as Ft, useTriggerDataForwarding as G, jsdom as Gn, Tip as Gt, useImplicitActiveTrigger as H, ARROW_LEFT$1 as Hn, Danger as Ht, popupStoreSelectors as I, getFloatingFocusElement as In, Changelog as It, useDismiss as J, useBaseUiId as Jn, Button as Jt, useSyncedFloatingRootContext as K, webkit as Kn, Warning as Kt, PopupTriggerMap as L, isTypeableCombobox as Ln, Update as Lt, useHoverFloatingInteraction as M, isListIndexDisabled as Mn, CodeGroup as Mt, useFocus as N, isVirtualClick as Nn, COMPOSITE_KEYS as Nt, popupTransitionStateMapping as O, getMaxListIndex as On, parsePath as Or, CollapsibleContent as Ot, usePopupHandleStore as P, isVirtualPointerEvent as Pn, inertValue as Pt, FloatingTree as Q, cn as Qn, AccordionGroup as Qt, FOCUSABLE_POPUP_PROPS as R, activeElement as Rn, Card as Rt, TreeFolder as S, useDirection as Sn, Route as Sr, Link as St, usePositioner as T, getTabbableBeforeElement as Tn, useLocation as Tr, renderInlineMarkdown as Tt, useOpenStateTransitions as U, ARROW_RIGHT$1 as Un, Info as Ut, setPopupOpenState as V, ARROW_DOWN$1 as Vn, Check as Vt, usePopupInteractionProps as W, ARROW_UP$1 as Wn, Note as Wt, FloatingFocusManager as X, useTimeout as Xn, Badge$1 as Xt, useClick as Y, useId$1 as Yn, Badge as Yt, FloatingNode as Z, Button$1 as Zn, Accordion as Zt, FileTree as _, triggerPress as _n, Check$1 as _r, Param as _t, DialogTitle as a, useAnimationFrame as an, ownerDocument as ar, POPUP_COLLISION_AVOIDANCE as at, Tree as b, mermaidSource as bn, Link$1 as br, usePanelContent as bt, useOpenInteractionType as c, escapeKey as cn, useIsoLayoutEffect as cr, fastComponent as ct, useScrollLock as d, itemPress as dn, getParentNode as dr, Tiles as dt, getIcon as en, EMPTY_ARRAY$1 as er, useFloatingParentNodeId as et, DialogPortal$1 as f, listNavigation as fn, getWindow as fr, Tab as ft, DialogBackdrop as g, triggerHover as gn, ChevronRight as gr, PropertiesTable as gt, DialogClose as h, triggerFocus as hn, X as hr, Steps as ht, DialogContent as i, useCompositeListItem as in, dispatchClickWithModifiers as ir, DROPDOWN_COLLISION_AVOIDANCE as it, useHoverReferenceInteraction as j, isIndexOutOfListBounds as jn, __toESM as jr, Columns as jt, pressableTriggerOpenStateMapping as k, getMinListIndex as kn, ABSOLUTE_URL_REGEX as kr, CollapsibleTrigger as kt, DialogTitle$1 as l, focusOut as ln, useStableCallback as lr, fastComponentRef as lt, DialogPopup as m, siblingOpen as mn, isLastTraversableNode as mr, Step as mt, ZoomableImage as n, useAnimationsFinished as nn, useMergedRefs as nr, FloatingTreeStore as nt, DialogTrigger as o, createChangeEventDetails as on, useCompositeRootContext as or, enqueueFocus as ot, InternalBackdrop as p, outsidePress as pn, isHTMLElement as pr, Tabs as pt, ReactStore as q, mac as qn, WarningBanner as qt, Dialog as r, useValueAsRef as rn, useButton as rr, FloatingPortal as rt, DialogTrigger$1 as s, cancelOpen as sn, mergeProps as sr, FocusGuard as st, docs_exports as t, useOpenChangeComplete as tn, EMPTY_OBJECT as tr, useFloatingTree as tt, DialogRoot as u, imperativeAction as un, useRefWithInit as ur, Tile as ut, FileTreeFile as v, CompositeList as vn, createLucideIcon as vr, Panel as vt, TooltipProvider as w, getTabbableAfterElement as wn, Routes as wr, Frame as wt, TreeFile as x, addEventListener as xn, Navigate as xr, useSetPanelContent as xt, FileTreeFolder as y, Mermaid as yn, BrowserRouter as yr, PanelProvider as yt, PopupHandleAttachment as z, contains as zn, CardGroup as zt };
|