@vx-oss/docs-react 1.0.3 → 1.0.5
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/README.md +3 -3
- package/css/generated/docs.css +1 -1
- package/css/generated/flux.css +1 -1
- package/css/generated/glass.css +1 -1
- package/css/generated/home.css +1 -1
- package/css/generated/notebook.css +1 -1
- package/css/generated/shared.css +1 -1
- package/css/lib/base.css +0 -127
- package/css/preset.css +1 -2
- package/css/style.css +1 -0
- package/dist/components/accordion.js +1 -68
- package/dist/components/banner.js +1 -85
- package/dist/components/callout.js +1 -60
- package/dist/components/card.js +1 -39
- package/dist/components/codeblock.js +1 -126
- package/dist/components/codeblock.rsc.js +1 -22
- package/dist/components/dialog/search-algolia.js +2 -64
- package/dist/components/dialog/search-default.js +2 -66
- package/dist/components/dialog/search-orama.js +2 -69
- package/dist/components/dialog/search.js +1 -351
- package/dist/components/dynamic-codeblock.core.js +1 -51
- package/dist/components/dynamic-codeblock.js +1 -17
- package/dist/components/files.js +1 -40
- package/dist/components/github-info.js +1 -75
- package/dist/components/heading.js +1 -38
- package/dist/components/image-zoom.js +1 -32
- package/dist/components/inline-toc.js +1 -28
- package/dist/components/sidebar/base.js +1 -277
- package/dist/components/sidebar/link-item.js +1 -37
- package/dist/components/sidebar/page-tree.js +1 -69
- package/dist/components/sidebar/tabs/dropdown.js +1 -83
- package/dist/components/sidebar/tabs/index.js +1 -46
- package/dist/components/steps.js +1 -16
- package/dist/components/tabs.js +1 -95
- package/dist/components/toc/clerk.js +1 -227
- package/dist/components/toc/default.js +1 -260
- package/dist/components/toc/index.js +1 -45
- package/dist/components/type-table.js +1 -117
- package/dist/components/ui/accordion.js +1 -42
- package/dist/components/ui/button.js +1 -20
- package/dist/components/ui/collapsible.js +1 -21
- package/dist/components/ui/popover.js +1 -20
- package/dist/components/ui/scroll-area.js +1 -34
- package/dist/components/ui/tabs.js +1 -102
- package/dist/contexts/i18n.js +1 -37
- package/dist/contexts/search.js +1 -68
- package/dist/contexts/tree.js +1 -91
- package/dist/i18n.js +1 -38
- package/dist/index.js +1 -0
- package/dist/layouts/docs/index.js +1 -23
- package/dist/layouts/docs/page/index.js +1 -124
- package/dist/layouts/docs/page/slots/breadcrumb.js +1 -44
- package/dist/layouts/docs/page/slots/container.js +1 -22
- package/dist/layouts/docs/page/slots/footer.js +1 -56
- package/dist/layouts/docs/page/slots/toc.js +1 -182
- package/dist/layouts/docs/slots/container.js +1 -36
- package/dist/layouts/docs/slots/header.js +1 -38
- package/dist/layouts/docs/slots/sidebar.js +1 -268
- package/dist/layouts/flux/index.js +1 -146
- package/dist/layouts/flux/page/index.js +1 -104
- package/dist/layouts/flux/page/slots/breadcrumb.js +1 -44
- package/dist/layouts/flux/page/slots/container.js +1 -22
- package/dist/layouts/flux/page/slots/footer.js +1 -56
- package/dist/layouts/flux/page/slots/toc.js +1 -181
- package/dist/layouts/flux/slots/container.js +1 -13
- package/dist/layouts/flux/slots/sidebar.js +1 -243
- package/dist/layouts/flux/slots/tab-dropdown.js +1 -88
- package/dist/layouts/glass/index.js +1 -70
- package/dist/layouts/glass/page/index.js +1 -92
- package/dist/layouts/glass/page/slots/breadcrumb.js +1 -44
- package/dist/layouts/glass/page/slots/footer.js +1 -56
- package/dist/layouts/glass/page/slots/toc.js +1 -108
- package/dist/layouts/glass/slots/header.js +1 -68
- package/dist/layouts/glass/slots/sidebar.js +1 -267
- package/dist/layouts/home/index.js +1 -40
- package/dist/layouts/home/navbar.js +1 -34
- package/dist/layouts/home/not-found.js +1 -41
- package/dist/layouts/home/slots/container.js +1 -13
- package/dist/layouts/home/slots/header.js +1 -239
- package/dist/layouts/notebook/index.js +1 -23
- package/dist/layouts/notebook/page/index.js +1 -124
- package/dist/layouts/notebook/page/slots/breadcrumb.js +1 -44
- package/dist/layouts/notebook/page/slots/container.js +1 -22
- package/dist/layouts/notebook/page/slots/footer.js +1 -56
- package/dist/layouts/notebook/page/slots/toc.js +1 -181
- package/dist/layouts/notebook/slots/container.js +1 -38
- package/dist/layouts/notebook/slots/header.js +1 -204
- package/dist/layouts/notebook/slots/sidebar.js +1 -240
- package/dist/layouts/shared/index.js +1 -98
- package/dist/layouts/shared/slots/language-select.js +1 -43
- package/dist/layouts/shared/slots/search-trigger.js +1 -53
- package/dist/layouts/shared/slots/theme-switch.js +1 -70
- package/dist/mdx.d.ts +2 -44
- package/dist/mdx.js +2 -70
- package/dist/mdx.server.js +2 -20
- package/dist/og/takumi.js +1 -91
- package/dist/og.js +1 -91
- package/dist/page.js +1 -33
- package/dist/primitives/accordion.js +1 -0
- package/dist/primitives/collapsible.js +1 -0
- package/dist/primitives/dialog.js +1 -0
- package/dist/primitives/direction-provider.js +1 -0
- package/dist/primitives/drawer.js +1 -0
- package/dist/primitives/navigation-menu.js +1 -0
- package/dist/primitives/popover.js +1 -0
- package/dist/primitives/scroll-area.js +1 -0
- package/dist/primitives/shared.js +1 -0
- package/dist/primitives/tabs.js +1 -0
- package/dist/provider/astro.js +1 -20
- package/dist/provider/base.js +1 -73
- package/dist/provider/next.js +1 -17
- package/dist/provider/react-router.js +1 -17
- package/dist/provider/tanstack.js +1 -17
- package/dist/provider/waku.js +1 -17
- package/dist/style.css +11577 -310
- package/dist/utils/use-copy-button.js +1 -26
- package/dist/utils/use-footer-items.js +1 -24
- package/dist/utils/use-is-scroll-top.js +1 -20
- package/package.json +28 -66
- package/css/preset-legacy.css +0 -43
- package/dist/.translations/index.d.ts +0 -55
- package/dist/.translations/keys.js +0 -55
- package/dist/_virtual/_rolldown/runtime.js +0 -13
- package/dist/components/accordion.d.ts +0 -10
- package/dist/components/banner.d.ts +0 -25
- package/dist/components/callout.d.ts +0 -21
- package/dist/components/card.d.ts +0 -13
- package/dist/components/codeblock.d.ts +0 -45
- package/dist/components/codeblock.rsc.d.ts +0 -15
- package/dist/components/dialog/search-algolia.d.ts +0 -27
- package/dist/components/dialog/search-default.d.ts +0 -29
- package/dist/components/dialog/search-orama.d.ts +0 -32
- package/dist/components/dialog/search.d.ts +0 -76
- package/dist/components/dynamic-codeblock.core.d.ts +0 -26
- package/dist/components/dynamic-codeblock.d.ts +0 -8
- package/dist/components/files.d.ts +0 -21
- package/dist/components/github-info.d.ts +0 -20
- package/dist/components/heading.d.ts +0 -9
- package/dist/components/image-zoom.d.ts +0 -18
- package/dist/components/inline-toc.d.ts +0 -10
- package/dist/components/sidebar/base.d.ts +0 -85
- package/dist/components/sidebar/link-item.d.ts +0 -12
- package/dist/components/sidebar/page-tree.d.ts +0 -20
- package/dist/components/sidebar/tabs/dropdown.d.ts +0 -15
- package/dist/components/sidebar/tabs/index.d.ts +0 -8
- package/dist/components/steps.d.ts +0 -10
- package/dist/components/tabs.d.ts +0 -33
- package/dist/components/toc/clerk.d.ts +0 -11
- package/dist/components/toc/default.d.ts +0 -13
- package/dist/components/toc/index.d.ts +0 -10
- package/dist/components/type-table.d.ts +0 -37
- package/dist/components/ui/accordion.d.ts +0 -10
- package/dist/components/ui/button.d.ts +0 -10
- package/dist/components/ui/collapsible.d.ts +0 -11
- package/dist/components/ui/navigation-menu.d.ts +0 -14
- package/dist/components/ui/navigation-menu.js +0 -41
- package/dist/components/ui/popover.d.ts +0 -9
- package/dist/components/ui/scroll-area.d.ts +0 -9
- package/dist/components/ui/tabs.d.ts +0 -23
- package/dist/contexts/i18n.d.ts +0 -34
- package/dist/contexts/search.d.ts +0 -64
- package/dist/contexts/tree.d.ts +0 -29
- package/dist/i18n.d.ts +0 -15
- package/dist/layouts/docs/client.d.ts +0 -33
- package/dist/layouts/docs/client.js +0 -94
- package/dist/layouts/docs/index.d.ts +0 -32
- package/dist/layouts/docs/page/index.d.ts +0 -76
- package/dist/layouts/docs/page/slots/breadcrumb.d.ts +0 -7
- package/dist/layouts/docs/page/slots/container.d.ts +0 -5
- package/dist/layouts/docs/page/slots/footer.d.ts +0 -16
- package/dist/layouts/docs/page/slots/toc.d.ts +0 -47
- package/dist/layouts/docs/slots/container.d.ts +0 -5
- package/dist/layouts/docs/slots/header.d.ts +0 -5
- package/dist/layouts/docs/slots/sidebar.d.ts +0 -22
- package/dist/layouts/flux/index.d.ts +0 -61
- package/dist/layouts/flux/page/index.d.ts +0 -67
- package/dist/layouts/flux/page/slots/breadcrumb.d.ts +0 -7
- package/dist/layouts/flux/page/slots/container.d.ts +0 -5
- package/dist/layouts/flux/page/slots/footer.d.ts +0 -16
- package/dist/layouts/flux/page/slots/toc.d.ts +0 -29
- package/dist/layouts/flux/slots/container.d.ts +0 -5
- package/dist/layouts/flux/slots/sidebar.d.ts +0 -16
- package/dist/layouts/flux/slots/tab-dropdown.d.ts +0 -10
- package/dist/layouts/glass/index.d.ts +0 -39
- package/dist/layouts/glass/layout-tabs.js +0 -54
- package/dist/layouts/glass/page/index.d.ts +0 -31
- package/dist/layouts/glass/page/slots/breadcrumb.d.ts +0 -7
- package/dist/layouts/glass/page/slots/footer.d.ts +0 -16
- package/dist/layouts/glass/page/slots/toc.d.ts +0 -19
- package/dist/layouts/glass/slots/header.d.ts +0 -6
- package/dist/layouts/glass/slots/sidebar.d.ts +0 -21
- package/dist/layouts/home/index.d.ts +0 -27
- package/dist/layouts/home/navbar.d.ts +0 -9
- package/dist/layouts/home/not-found.d.ts +0 -7
- package/dist/layouts/home/slots/container.d.ts +0 -5
- package/dist/layouts/home/slots/header.d.ts +0 -8
- package/dist/layouts/notebook/client.d.ts +0 -35
- package/dist/layouts/notebook/client.js +0 -69
- package/dist/layouts/notebook/index.d.ts +0 -26
- package/dist/layouts/notebook/page/index.d.ts +0 -76
- package/dist/layouts/notebook/page/slots/breadcrumb.d.ts +0 -7
- package/dist/layouts/notebook/page/slots/container.d.ts +0 -5
- package/dist/layouts/notebook/page/slots/footer.d.ts +0 -16
- package/dist/layouts/notebook/page/slots/toc.d.ts +0 -47
- package/dist/layouts/notebook/slots/container.d.ts +0 -5
- package/dist/layouts/notebook/slots/header.d.ts +0 -5
- package/dist/layouts/notebook/slots/sidebar.d.ts +0 -23
- package/dist/layouts/shared/client.d.ts +0 -37
- package/dist/layouts/shared/client.js +0 -85
- package/dist/layouts/shared/index.d.ts +0 -169
- package/dist/layouts/shared/page-actions.d.ts +0 -27
- package/dist/layouts/shared/page-actions.js +0 -199
- package/dist/layouts/shared/slots/language-select.d.ts +0 -12
- package/dist/layouts/shared/slots/search-trigger.d.ts +0 -13
- package/dist/layouts/shared/slots/theme-switch.d.ts +0 -8
- package/dist/legacy/layout.d.ts +0 -29
- package/dist/legacy/layout.js +0 -44
- package/dist/legacy/sidebar.d.ts +0 -14
- package/dist/legacy/sidebar.js +0 -34
- package/dist/mdx.server.d.ts +0 -14
- package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/controlled.d.ts +0 -30
- package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/controlled.js +0 -461
- package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/index.d.ts +0 -3
- package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/uncontrolled.d.ts +0 -6
- package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/uncontrolled.js +0 -17
- package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/utils/adjust-svg-ids.js +0 -53
- package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/utils/compute-positioned-style.js +0 -25
- package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/utils/element-tests.js +0 -12
- package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/utils/get-div-img-style.js +0 -45
- package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/utils/get-img-alt.js +0 -10
- package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/utils/get-img-object-fit-style.js +0 -57
- package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/utils/get-img-regular-style.js +0 -21
- package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/utils/get-img-src.js +0 -14
- package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/utils/get-modal-img-transform.js +0 -22
- package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/utils/get-scale.js +0 -27
- package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/utils/get-style-ghost.js +0 -31
- package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/utils/get-style-modal-img.js +0 -75
- package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/utils/get-target-dimension.js +0 -4
- package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/utils/parse-position.js +0 -7
- package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/utils/test-has-scalable-src.js +0 -5
- package/dist/og/takumi.d.ts +0 -15
- package/dist/og.d.ts +0 -16
- package/dist/page.d.ts +0 -29
- package/dist/provider/astro.d.ts +0 -29
- package/dist/provider/base.d.ts +0 -48
- package/dist/provider/next.d.ts +0 -16
- package/dist/provider/react-router.d.ts +0 -16
- package/dist/provider/tanstack.d.ts +0 -16
- package/dist/provider/waku.d.ts +0 -16
- package/dist/utils/cn.js +0 -2
- package/dist/utils/merge-refs.js +0 -11
- package/dist/utils/urls.js +0 -15
- package/dist/utils/use-copy-button.d.ts +0 -5
- package/dist/utils/use-footer-items.d.ts +0 -8
- package/dist/utils/use-is-scroll-top.d.ts +0 -6
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { parsePosition } from "./parse-position.js";
|
|
2
|
-
import { computePositionedStyle } from "./compute-positioned-style.js";
|
|
3
|
-
//#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/utils/get-div-img-style.js
|
|
4
|
-
const getDivImgStyle = ({ backgroundPosition, backgroundSize, containerHeight, containerLeft, containerTop, containerWidth, hasScalableSrc, offset, targetHeight, targetWidth }) => {
|
|
5
|
-
const base = {
|
|
6
|
-
containerHeight,
|
|
7
|
-
containerLeft,
|
|
8
|
-
containerTop,
|
|
9
|
-
containerWidth,
|
|
10
|
-
hasScalableSrc,
|
|
11
|
-
offset,
|
|
12
|
-
position: backgroundPosition,
|
|
13
|
-
targetHeight,
|
|
14
|
-
targetWidth
|
|
15
|
-
};
|
|
16
|
-
if (backgroundSize === "cover" || backgroundSize === "contain") {
|
|
17
|
-
const widthRatio = containerWidth / targetWidth;
|
|
18
|
-
const heightRatio = containerHeight / targetHeight;
|
|
19
|
-
const ratio = backgroundSize === "cover" ? Math.max(widthRatio, heightRatio) : Math.min(widthRatio, heightRatio);
|
|
20
|
-
return computePositionedStyle({
|
|
21
|
-
...base,
|
|
22
|
-
visibleWidth: targetWidth * ratio,
|
|
23
|
-
visibleHeight: targetHeight * ratio
|
|
24
|
-
});
|
|
25
|
-
} else if (backgroundSize === "auto") return computePositionedStyle({
|
|
26
|
-
...base,
|
|
27
|
-
visibleWidth: targetWidth,
|
|
28
|
-
visibleHeight: targetHeight
|
|
29
|
-
});
|
|
30
|
-
else {
|
|
31
|
-
const [sizeW = "50%", sizeH = "50%"] = backgroundSize.split(" ");
|
|
32
|
-
const sizeWidth = parsePosition(sizeW, containerWidth);
|
|
33
|
-
const sizeHeight = parsePosition(sizeH, containerHeight);
|
|
34
|
-
const widthRatio = sizeWidth / targetWidth;
|
|
35
|
-
const heightRatio = sizeHeight / targetHeight;
|
|
36
|
-
const ratio = Math.min(widthRatio, heightRatio);
|
|
37
|
-
return computePositionedStyle({
|
|
38
|
-
...base,
|
|
39
|
-
visibleWidth: targetWidth * ratio,
|
|
40
|
-
visibleHeight: targetHeight * ratio
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
//#endregion
|
|
45
|
-
export { getDivImgStyle };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { testImg } from "./element-tests.js";
|
|
2
|
-
//#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/utils/get-img-alt.js
|
|
3
|
-
const getImgAlt = (imgEl) => {
|
|
4
|
-
if (imgEl !== null) {
|
|
5
|
-
if (testImg(imgEl)) return imgEl.alt;
|
|
6
|
-
else return imgEl.getAttribute("aria-label") ?? void 0;
|
|
7
|
-
}
|
|
8
|
-
};
|
|
9
|
-
//#endregion
|
|
10
|
-
export { getImgAlt };
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { getScale } from "./get-scale.js";
|
|
2
|
-
import { computePositionedStyle } from "./compute-positioned-style.js";
|
|
3
|
-
//#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/utils/get-img-object-fit-style.js
|
|
4
|
-
const getImgObjectFitStyle = ({ containerHeight, containerLeft, containerTop, containerWidth, hasScalableSrc, objectFit: objectFitParam, objectPosition, offset, targetHeight, targetWidth }) => {
|
|
5
|
-
let resolvedObjectFit = objectFitParam;
|
|
6
|
-
if (resolvedObjectFit === "scale-down") {
|
|
7
|
-
if (targetWidth <= containerWidth && targetHeight <= containerHeight) resolvedObjectFit = "none";
|
|
8
|
-
else resolvedObjectFit = "contain";
|
|
9
|
-
}
|
|
10
|
-
const base = {
|
|
11
|
-
containerHeight,
|
|
12
|
-
containerLeft,
|
|
13
|
-
containerTop,
|
|
14
|
-
containerWidth,
|
|
15
|
-
hasScalableSrc,
|
|
16
|
-
offset,
|
|
17
|
-
position: objectPosition,
|
|
18
|
-
targetHeight,
|
|
19
|
-
targetWidth
|
|
20
|
-
};
|
|
21
|
-
if (resolvedObjectFit === "cover" || resolvedObjectFit === "contain") {
|
|
22
|
-
const widthRatio = containerWidth / targetWidth;
|
|
23
|
-
const heightRatio = containerHeight / targetHeight;
|
|
24
|
-
const ratio = resolvedObjectFit === "cover" ? Math.max(widthRatio, heightRatio) : Math.min(widthRatio, heightRatio);
|
|
25
|
-
return computePositionedStyle({
|
|
26
|
-
...base,
|
|
27
|
-
visibleWidth: targetWidth * ratio,
|
|
28
|
-
visibleHeight: targetHeight * ratio
|
|
29
|
-
});
|
|
30
|
-
} else if (resolvedObjectFit === "none") return computePositionedStyle({
|
|
31
|
-
...base,
|
|
32
|
-
visibleWidth: targetWidth,
|
|
33
|
-
visibleHeight: targetHeight
|
|
34
|
-
});
|
|
35
|
-
else {
|
|
36
|
-
const widthRatio = containerWidth / targetWidth;
|
|
37
|
-
const heightRatio = containerHeight / targetHeight;
|
|
38
|
-
const ratio = Math.max(widthRatio, heightRatio);
|
|
39
|
-
const scale = getScale({
|
|
40
|
-
containerHeight: targetHeight * ratio,
|
|
41
|
-
containerWidth: targetWidth * ratio,
|
|
42
|
-
hasScalableSrc,
|
|
43
|
-
offset,
|
|
44
|
-
targetHeight,
|
|
45
|
-
targetWidth
|
|
46
|
-
});
|
|
47
|
-
return {
|
|
48
|
-
top: containerTop,
|
|
49
|
-
left: containerLeft,
|
|
50
|
-
width: containerWidth * scale,
|
|
51
|
-
height: containerHeight * scale,
|
|
52
|
-
initialTransform: `translate(0,0) scale(${1 / scale})`
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
//#endregion
|
|
57
|
-
export { getImgObjectFitStyle };
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { getScale } from "./get-scale.js";
|
|
2
|
-
//#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/utils/get-img-regular-style.js
|
|
3
|
-
const getImgRegularStyle = ({ containerHeight, containerLeft, containerTop, containerWidth, hasScalableSrc, offset, targetHeight, targetWidth }) => {
|
|
4
|
-
const scale = getScale({
|
|
5
|
-
containerHeight,
|
|
6
|
-
containerWidth,
|
|
7
|
-
hasScalableSrc,
|
|
8
|
-
offset,
|
|
9
|
-
targetHeight,
|
|
10
|
-
targetWidth
|
|
11
|
-
});
|
|
12
|
-
return {
|
|
13
|
-
top: containerTop,
|
|
14
|
-
left: containerLeft,
|
|
15
|
-
width: containerWidth * scale,
|
|
16
|
-
height: containerHeight * scale,
|
|
17
|
-
initialTransform: `translate(0,0) scale(${1 / scale})`
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
//#endregion
|
|
21
|
-
export { getImgRegularStyle };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { testDiv, testImg } from "./element-tests.js";
|
|
2
|
-
//#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/utils/get-img-src.js
|
|
3
|
-
const URL_REGEX = /url(?:\(['"]?)(?<url>.*?)(?:['"]?\))/;
|
|
4
|
-
const getImgSrc = (imgEl) => {
|
|
5
|
-
if (imgEl !== null) {
|
|
6
|
-
if (testImg(imgEl)) return imgEl.currentSrc === "" ? void 0 : imgEl.currentSrc;
|
|
7
|
-
else if (testDiv(imgEl)) {
|
|
8
|
-
const { backgroundImage: bgImg } = window.getComputedStyle(imgEl);
|
|
9
|
-
if (bgImg !== "") return URL_REGEX.exec(bgImg)?.[1];
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
};
|
|
13
|
-
//#endregion
|
|
14
|
-
export { getImgSrc };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/utils/get-modal-img-transform.js
|
|
2
|
-
const getModalImgTransform = ({ height, initialTransform, isZoomed, left, top, userTransform, width }) => {
|
|
3
|
-
let centeredUserTransform = "";
|
|
4
|
-
if (userTransform !== "none" && userTransform !== "") {
|
|
5
|
-
const halfWidth = width / 2;
|
|
6
|
-
const halfHeight = height / 2;
|
|
7
|
-
centeredUserTransform = `translate(${halfWidth}px,${halfHeight}px) ${userTransform} translate(${-halfWidth}px,${-halfHeight}px)`;
|
|
8
|
-
}
|
|
9
|
-
if (!isZoomed) {
|
|
10
|
-
if (centeredUserTransform === "") return initialTransform;
|
|
11
|
-
return `${initialTransform} ${centeredUserTransform}`;
|
|
12
|
-
}
|
|
13
|
-
const viewportX = window.innerWidth / 2;
|
|
14
|
-
const viewportY = window.innerHeight / 2;
|
|
15
|
-
const childCenterX = left + width / 2;
|
|
16
|
-
const childCenterY = top + height / 2;
|
|
17
|
-
const base = `translate(${viewportX - childCenterX}px,${viewportY - childCenterY}px) scale(1)`;
|
|
18
|
-
if (centeredUserTransform === "") return base;
|
|
19
|
-
return `${base} ${centeredUserTransform}`;
|
|
20
|
-
};
|
|
21
|
-
//#endregion
|
|
22
|
-
export { getModalImgTransform };
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/utils/get-scale.js
|
|
2
|
-
const getScaleToWindow = ({ height, offset, width }) => Math.min((window.innerWidth - offset * 2) / width, (window.innerHeight - offset * 2) / height);
|
|
3
|
-
const getScaleToWindowMax = ({ containerHeight, containerWidth, offset, targetHeight, targetWidth }) => {
|
|
4
|
-
const scale = getScaleToWindow({
|
|
5
|
-
height: targetHeight,
|
|
6
|
-
offset,
|
|
7
|
-
width: targetWidth
|
|
8
|
-
});
|
|
9
|
-
const ratio = targetWidth > targetHeight ? targetWidth / containerWidth : targetHeight / containerHeight;
|
|
10
|
-
return scale > 1 ? ratio : scale * ratio;
|
|
11
|
-
};
|
|
12
|
-
const getScale = ({ containerHeight, containerWidth, hasScalableSrc, offset, targetHeight, targetWidth }) => {
|
|
13
|
-
if (containerHeight === 0 || containerWidth === 0) return 1;
|
|
14
|
-
return !hasScalableSrc && targetHeight !== 0 && targetWidth !== 0 ? getScaleToWindowMax({
|
|
15
|
-
containerHeight,
|
|
16
|
-
containerWidth,
|
|
17
|
-
offset,
|
|
18
|
-
targetHeight,
|
|
19
|
-
targetWidth
|
|
20
|
-
}) : getScaleToWindow({
|
|
21
|
-
height: containerHeight,
|
|
22
|
-
offset,
|
|
23
|
-
width: containerWidth
|
|
24
|
-
});
|
|
25
|
-
};
|
|
26
|
-
//#endregion
|
|
27
|
-
export { getScale };
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { testSvg } from "./element-tests.js";
|
|
2
|
-
//#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/utils/get-style-ghost.js
|
|
3
|
-
const getStyleGhost = (imgEl) => {
|
|
4
|
-
if (imgEl == null) return {};
|
|
5
|
-
if (testSvg(imgEl)) {
|
|
6
|
-
const { parentElement: parentEl } = imgEl;
|
|
7
|
-
const rect = imgEl.getBoundingClientRect();
|
|
8
|
-
if (parentEl == null) return {
|
|
9
|
-
height: rect.height,
|
|
10
|
-
left: rect.left,
|
|
11
|
-
width: rect.width,
|
|
12
|
-
top: rect.top
|
|
13
|
-
};
|
|
14
|
-
else {
|
|
15
|
-
const parentRect = parentEl.getBoundingClientRect();
|
|
16
|
-
return {
|
|
17
|
-
height: rect.height,
|
|
18
|
-
left: parentRect.left - rect.left,
|
|
19
|
-
top: parentRect.top - rect.top,
|
|
20
|
-
width: rect.width
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
} else return {
|
|
24
|
-
height: imgEl.offsetHeight,
|
|
25
|
-
left: imgEl.offsetLeft,
|
|
26
|
-
width: imgEl.offsetWidth,
|
|
27
|
-
top: imgEl.offsetTop
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
//#endregion
|
|
31
|
-
export { getStyleGhost };
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { testDiv } from "./element-tests.js";
|
|
2
|
-
import { getImgRegularStyle } from "./get-img-regular-style.js";
|
|
3
|
-
import { getImgObjectFitStyle } from "./get-img-object-fit-style.js";
|
|
4
|
-
import { getDivImgStyle } from "./get-div-img-style.js";
|
|
5
|
-
import { getModalImgTransform } from "./get-modal-img-transform.js";
|
|
6
|
-
import { getTargetDimension } from "./get-target-dimension.js";
|
|
7
|
-
import { testHasScalableSrc } from "./test-has-scalable-src.js";
|
|
8
|
-
//#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/utils/get-style-modal-img.js
|
|
9
|
-
const getStyleModalImg = ({ hasZoomImg, imgSrc, isSvg, isZoomed, loadedImgEl, offset, shouldRefresh, targetEl }) => {
|
|
10
|
-
const hasScalableSrc = testHasScalableSrc({
|
|
11
|
-
hasZoomImg,
|
|
12
|
-
imgSrc,
|
|
13
|
-
isSvg
|
|
14
|
-
});
|
|
15
|
-
const imgRect = targetEl.getBoundingClientRect();
|
|
16
|
-
const targetElComputedStyle = window.getComputedStyle(targetEl);
|
|
17
|
-
const isDivImg = loadedImgEl != null && testDiv(targetEl);
|
|
18
|
-
const isImgObjectFit = loadedImgEl != null && !isDivImg;
|
|
19
|
-
const targetHeight = getTargetDimension({
|
|
20
|
-
fallback: imgRect.height,
|
|
21
|
-
natural: loadedImgEl?.naturalHeight
|
|
22
|
-
});
|
|
23
|
-
const targetWidth = getTargetDimension({
|
|
24
|
-
fallback: imgRect.width,
|
|
25
|
-
natural: loadedImgEl?.naturalWidth
|
|
26
|
-
});
|
|
27
|
-
const { height: containerHeight, left: containerLeft, top: containerTop, width: containerWidth } = imgRect;
|
|
28
|
-
const position = isDivImg ? getDivImgStyle({
|
|
29
|
-
backgroundPosition: targetElComputedStyle.backgroundPosition,
|
|
30
|
-
backgroundSize: targetElComputedStyle.backgroundSize,
|
|
31
|
-
containerHeight,
|
|
32
|
-
containerLeft,
|
|
33
|
-
containerTop,
|
|
34
|
-
containerWidth,
|
|
35
|
-
hasScalableSrc,
|
|
36
|
-
offset,
|
|
37
|
-
targetHeight,
|
|
38
|
-
targetWidth
|
|
39
|
-
}) : isImgObjectFit ? getImgObjectFitStyle({
|
|
40
|
-
containerHeight,
|
|
41
|
-
containerLeft,
|
|
42
|
-
containerTop,
|
|
43
|
-
containerWidth,
|
|
44
|
-
hasScalableSrc,
|
|
45
|
-
objectFit: targetElComputedStyle.objectFit,
|
|
46
|
-
objectPosition: targetElComputedStyle.objectPosition,
|
|
47
|
-
offset,
|
|
48
|
-
targetHeight,
|
|
49
|
-
targetWidth
|
|
50
|
-
}) : getImgRegularStyle({
|
|
51
|
-
containerHeight,
|
|
52
|
-
containerLeft,
|
|
53
|
-
containerTop,
|
|
54
|
-
containerWidth,
|
|
55
|
-
hasScalableSrc,
|
|
56
|
-
offset,
|
|
57
|
-
targetHeight,
|
|
58
|
-
targetWidth
|
|
59
|
-
});
|
|
60
|
-
const result = {
|
|
61
|
-
top: position.top,
|
|
62
|
-
left: position.left,
|
|
63
|
-
width: position.width,
|
|
64
|
-
height: position.height,
|
|
65
|
-
transform: getModalImgTransform({
|
|
66
|
-
...position,
|
|
67
|
-
isZoomed,
|
|
68
|
-
userTransform: targetElComputedStyle.transform
|
|
69
|
-
})
|
|
70
|
-
};
|
|
71
|
-
if (isZoomed && shouldRefresh) result.transitionDuration = "0.01ms";
|
|
72
|
-
return result;
|
|
73
|
-
};
|
|
74
|
-
//#endregion
|
|
75
|
-
export { getStyleModalImg };
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/utils/get-target-dimension.js
|
|
2
|
-
const getTargetDimension = ({ fallback, natural }) => natural !== void 0 && natural !== 0 ? natural : fallback;
|
|
3
|
-
//#endregion
|
|
4
|
-
export { getTargetDimension };
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/utils/parse-position.js
|
|
2
|
-
const parsePosition = (position, relativeNum) => {
|
|
3
|
-
const positionNum = parseFloat(position);
|
|
4
|
-
return position.endsWith("%") ? relativeNum * positionNum / 100 : positionNum;
|
|
5
|
-
};
|
|
6
|
-
//#endregion
|
|
7
|
-
export { parsePosition };
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/utils/test-has-scalable-src.js
|
|
2
|
-
const SRC_SVG_REGEX = /\.svg$/i;
|
|
3
|
-
const testHasScalableSrc = ({ hasZoomImg, imgSrc, isSvg }) => isSvg || imgSrc?.slice(0, 18) === "data:image/svg+xml" || hasZoomImg || imgSrc !== void 0 && SRC_SVG_REGEX.test(imgSrc);
|
|
4
|
-
//#endregion
|
|
5
|
-
export { testHasScalableSrc };
|
package/dist/og/takumi.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
2
|
-
import { ImageResponse, ImageResponseOptions } from "takumi-js/response";
|
|
3
|
-
//#region src/og/takumi.d.ts
|
|
4
|
-
interface GenerateProps {
|
|
5
|
-
title: ReactNode;
|
|
6
|
-
description?: ReactNode;
|
|
7
|
-
icon?: ReactNode;
|
|
8
|
-
primaryColor?: string;
|
|
9
|
-
primaryTextColor?: string;
|
|
10
|
-
site?: ReactNode;
|
|
11
|
-
}
|
|
12
|
-
declare function generateOGImage(options: GenerateProps & ImageResponseOptions): ImageResponse;
|
|
13
|
-
declare function generate({ primaryColor, primaryTextColor, icon, ...props }: GenerateProps): import("react").JSX.Element;
|
|
14
|
-
//#endregion
|
|
15
|
-
export { GenerateProps, generate, generateOGImage };
|
package/dist/og.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
2
|
-
import { ImageResponse } from "next/og.js";
|
|
3
|
-
import { ImageResponseOptions } from "next/dist/compiled/@vercel/og/types";
|
|
4
|
-
//#region src/og.d.ts
|
|
5
|
-
interface GenerateProps {
|
|
6
|
-
title: ReactNode;
|
|
7
|
-
description?: ReactNode;
|
|
8
|
-
icon?: ReactNode;
|
|
9
|
-
primaryColor?: string;
|
|
10
|
-
primaryTextColor?: string;
|
|
11
|
-
site?: ReactNode;
|
|
12
|
-
}
|
|
13
|
-
declare function generateOGImage(options: GenerateProps & ImageResponseOptions): ImageResponse;
|
|
14
|
-
declare function generate({ primaryColor, primaryTextColor, icon, ...props }: GenerateProps): import("react").JSX.Element;
|
|
15
|
-
//#endregion
|
|
16
|
-
export { generate, generateOGImage };
|
package/dist/page.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { Breadcrumb } from "./layouts/docs/page/slots/breadcrumb.js";
|
|
2
|
-
import { DocsBody, DocsDescription, DocsPageProps as DocsPageProps$1, DocsTitle, EditOnGitHub, PageLastUpdate } from "./layouts/docs/page/index.js";
|
|
3
|
-
import { ComponentProps } from "react";
|
|
4
|
-
//#region src/page.d.ts
|
|
5
|
-
interface EditOnGitHubOptions extends Omit<ComponentProps<'a'>, 'href' | 'children'> {
|
|
6
|
-
owner: string;
|
|
7
|
-
repo: string;
|
|
8
|
-
/**
|
|
9
|
-
* SHA or ref (branch or tag) name.
|
|
10
|
-
*
|
|
11
|
-
* @defaultValue main
|
|
12
|
-
*/
|
|
13
|
-
sha?: string;
|
|
14
|
-
/**
|
|
15
|
-
* File path in the repo
|
|
16
|
-
*/
|
|
17
|
-
path: string;
|
|
18
|
-
}
|
|
19
|
-
interface DocsPageProps extends DocsPageProps$1 {
|
|
20
|
-
editOnGithub?: EditOnGitHubOptions;
|
|
21
|
-
lastUpdate?: Date | string | number;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* For separate MDX page
|
|
25
|
-
*/
|
|
26
|
-
declare function withArticle(props: ComponentProps<'main'>): import("react").JSX.Element;
|
|
27
|
-
declare function DocsPage({ lastUpdate, editOnGithub, children, ...props }: DocsPageProps): import("react").JSX.Element;
|
|
28
|
-
//#endregion
|
|
29
|
-
export { DocsBody, DocsDescription, DocsPage, DocsPageProps, DocsTitle, EditOnGitHub, Breadcrumb as PageBreadcrumb, PageLastUpdate, withArticle };
|
package/dist/provider/astro.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { RootProvider as RootProvider$1 } from "./base.js";
|
|
2
|
-
import { Framework } from "@vx-oss/docs-core/framework";
|
|
3
|
-
import { ComponentProps } from "react";
|
|
4
|
-
import { AstroProviderProps } from "@vx-oss/docs-core/framework/astro";
|
|
5
|
-
//#region src/provider/astro.d.ts
|
|
6
|
-
interface RootProviderProps extends ComponentProps<typeof RootProvider$1> {
|
|
7
|
-
/**
|
|
8
|
-
* The current Astro pathname, usually `Astro.url.pathname`.
|
|
9
|
-
*/
|
|
10
|
-
pathname: AstroProviderProps['pathname'];
|
|
11
|
-
/**
|
|
12
|
-
* The current Astro route params, usually `Astro.params`.
|
|
13
|
-
*/
|
|
14
|
-
params?: AstroProviderProps['params'];
|
|
15
|
-
/**
|
|
16
|
-
* Optional Astro client navigation function from `astro:transitions/client`.
|
|
17
|
-
*/
|
|
18
|
-
navigate?: AstroProviderProps['navigate'];
|
|
19
|
-
/**
|
|
20
|
-
* Custom framework components to override Astro defaults
|
|
21
|
-
*/
|
|
22
|
-
components?: {
|
|
23
|
-
Link?: Framework['Link'];
|
|
24
|
-
Image?: Framework['Image'];
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
declare function RootProvider({ components, pathname, params, navigate, ...props }: RootProviderProps): import("react").JSX.Element;
|
|
28
|
-
//#endregion
|
|
29
|
-
export { RootProvider, RootProviderProps };
|
package/dist/provider/base.d.ts
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { SearchProviderProps } from "../contexts/search.js";
|
|
2
|
-
import { I18nProviderProps } from "../contexts/i18n.js";
|
|
3
|
-
import { ReactNode } from "react";
|
|
4
|
-
import { ThemeProviderProps, UseThemeProps, useTheme } from "next-themes";
|
|
5
|
-
//#region src/provider/base.d.ts
|
|
6
|
-
interface SearchOptions extends Omit<SearchProviderProps, 'children'> {
|
|
7
|
-
/**
|
|
8
|
-
* Enable search functionality
|
|
9
|
-
*
|
|
10
|
-
* @defaultValue `true`
|
|
11
|
-
*/
|
|
12
|
-
enabled?: boolean;
|
|
13
|
-
}
|
|
14
|
-
interface ThemeOptions extends ThemeProviderProps {
|
|
15
|
-
/**
|
|
16
|
-
* Enable `next-themes`
|
|
17
|
-
*
|
|
18
|
-
* @defaultValue true
|
|
19
|
-
*/
|
|
20
|
-
enabled?: boolean;
|
|
21
|
-
/**
|
|
22
|
-
* Hotkey for toggling between light/dark mode, pass `false` to disable it.
|
|
23
|
-
*
|
|
24
|
-
* It is ignored while typing in an editable element (e.g. `<input />`), or when a dialog is opened.
|
|
25
|
-
*
|
|
26
|
-
* @defaultValue `d`
|
|
27
|
-
*/
|
|
28
|
-
hotKey?: string | ((e: KeyboardEvent) => boolean) | false;
|
|
29
|
-
}
|
|
30
|
-
interface RootProviderProps {
|
|
31
|
-
/**
|
|
32
|
-
* `dir` option for Radix UI
|
|
33
|
-
*/
|
|
34
|
-
dir?: 'rtl' | 'ltr';
|
|
35
|
-
/**
|
|
36
|
-
* @remarks `SearchProviderProps`
|
|
37
|
-
*/
|
|
38
|
-
search?: Partial<SearchOptions>;
|
|
39
|
-
/**
|
|
40
|
-
* Customize options for `next-themes`
|
|
41
|
-
*/
|
|
42
|
-
theme?: ThemeOptions;
|
|
43
|
-
i18n?: Omit<I18nProviderProps, 'children'>;
|
|
44
|
-
children?: ReactNode;
|
|
45
|
-
}
|
|
46
|
-
declare function RootProvider({ children, dir, theme, search, i18n }: RootProviderProps): import("react").JSX.Element;
|
|
47
|
-
//#endregion
|
|
48
|
-
export { RootProvider, RootProviderProps, type UseThemeProps, useTheme };
|
package/dist/provider/next.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { RootProvider as RootProvider$1 } from "./base.js";
|
|
2
|
-
import { Framework } from "@vx-oss/docs-core/framework";
|
|
3
|
-
import { ComponentProps } from "react";
|
|
4
|
-
//#region src/provider/next.d.ts
|
|
5
|
-
interface RootProviderProps extends ComponentProps<typeof RootProvider$1> {
|
|
6
|
-
/**
|
|
7
|
-
* Custom framework components to override Next.js defaults
|
|
8
|
-
*/
|
|
9
|
-
components?: {
|
|
10
|
-
Link?: Framework['Link'];
|
|
11
|
-
Image?: Framework['Image'];
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
declare function RootProvider({ components, ...props }: RootProviderProps): import("react").JSX.Element;
|
|
15
|
-
//#endregion
|
|
16
|
-
export { RootProvider, RootProviderProps };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { RootProvider as RootProvider$1 } from "./base.js";
|
|
2
|
-
import { Framework } from "@vx-oss/docs-core/framework";
|
|
3
|
-
import { ComponentProps } from "react";
|
|
4
|
-
//#region src/provider/react-router.d.ts
|
|
5
|
-
interface RootProviderProps extends ComponentProps<typeof RootProvider$1> {
|
|
6
|
-
/**
|
|
7
|
-
* Custom framework components to override React Router defaults
|
|
8
|
-
*/
|
|
9
|
-
components?: {
|
|
10
|
-
Link?: Framework['Link'];
|
|
11
|
-
Image?: Framework['Image'];
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
declare function RootProvider({ components, ...props }: RootProviderProps): import("react").JSX.Element;
|
|
15
|
-
//#endregion
|
|
16
|
-
export { RootProvider, RootProviderProps };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { RootProvider as RootProvider$1 } from "./base.js";
|
|
2
|
-
import { Framework } from "@vx-oss/docs-core/framework";
|
|
3
|
-
import { ComponentProps } from "react";
|
|
4
|
-
//#region src/provider/tanstack.d.ts
|
|
5
|
-
interface RootProviderProps extends ComponentProps<typeof RootProvider$1> {
|
|
6
|
-
/**
|
|
7
|
-
* Custom framework components to override Tanstack Router defaults
|
|
8
|
-
*/
|
|
9
|
-
components?: {
|
|
10
|
-
Link?: Framework['Link'];
|
|
11
|
-
Image?: Framework['Image'];
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
declare function RootProvider({ components, ...props }: RootProviderProps): import("react").JSX.Element;
|
|
15
|
-
//#endregion
|
|
16
|
-
export { RootProvider, RootProviderProps };
|
package/dist/provider/waku.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { RootProvider as RootProvider$1 } from "./base.js";
|
|
2
|
-
import { Framework } from "@vx-oss/docs-core/framework";
|
|
3
|
-
import { ComponentProps } from "react";
|
|
4
|
-
//#region src/provider/waku.d.ts
|
|
5
|
-
interface RootProviderProps extends ComponentProps<typeof RootProvider$1> {
|
|
6
|
-
/**
|
|
7
|
-
* Custom framework components to override Waku defaults
|
|
8
|
-
*/
|
|
9
|
-
components?: {
|
|
10
|
-
Link?: Framework['Link'];
|
|
11
|
-
Image?: Framework['Image'];
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
declare function RootProvider({ components, ...props }: RootProviderProps): import("react").JSX.Element;
|
|
15
|
-
//#endregion
|
|
16
|
-
export { RootProvider, RootProviderProps };
|
package/dist/utils/cn.js
DELETED
package/dist/utils/merge-refs.js
DELETED
package/dist/utils/urls.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
//#region src/utils/urls.ts
|
|
2
|
-
function normalize(urlOrPath) {
|
|
3
|
-
if (urlOrPath.length > 1 && urlOrPath.endsWith("/")) return urlOrPath.slice(0, -1);
|
|
4
|
-
return urlOrPath;
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* @returns if `href` is matching the given pathname
|
|
8
|
-
*/
|
|
9
|
-
function isActive(href, pathname, nested = false) {
|
|
10
|
-
href = normalize(href);
|
|
11
|
-
pathname = normalize(pathname);
|
|
12
|
-
return href === pathname || nested && pathname.startsWith(`${href}/`);
|
|
13
|
-
}
|
|
14
|
-
//#endregion
|
|
15
|
-
export { isActive, normalize };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as PageTree from "@vx-oss/docs-core/page-tree";
|
|
2
|
-
//#region src/utils/use-footer-items.d.ts
|
|
3
|
-
/**
|
|
4
|
-
* @returns a list of page tree items (linear), that you can obtain footer items
|
|
5
|
-
*/
|
|
6
|
-
declare function useFooterItems(): PageTree.Item[];
|
|
7
|
-
//#endregion
|
|
8
|
-
export { useFooterItems };
|