@mintlify/components 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/accordion/accordion-cover.d.ts +12 -0
- package/dist/components/accordion/accordion-cover.d.ts.map +1 -0
- package/dist/components/accordion/accordion-cover.js +28 -28
- package/dist/components/accordion/accordion-group.d.ts +9 -0
- package/dist/components/accordion/accordion-group.d.ts.map +1 -0
- package/dist/components/accordion/accordion-group.js +1 -1
- package/dist/components/accordion/accordion-url-utils.d.ts +5 -0
- package/dist/components/accordion/accordion-url-utils.d.ts.map +1 -0
- package/dist/components/accordion/accordion.d.ts +35 -0
- package/dist/components/accordion/accordion.d.ts.map +1 -0
- package/dist/components/accordion/accordion.js +72 -65
- package/dist/components/accordion/index.d.ts +7 -0
- package/dist/components/accordion/index.d.ts.map +1 -0
- package/dist/components/badge/badge.d.ts +29 -0
- package/dist/components/badge/badge.d.ts.map +1 -0
- package/dist/components/badge/badge.js +18 -18
- package/dist/components/badge/index.d.ts +3 -0
- package/dist/components/badge/index.d.ts.map +1 -0
- package/dist/components/callout/callout.d.ts +24 -0
- package/dist/components/callout/callout.d.ts.map +1 -0
- package/dist/components/callout/callout.js +46 -46
- package/dist/components/callout/index.d.ts +3 -0
- package/dist/components/callout/index.d.ts.map +1 -0
- package/dist/components/card/card.d.ts +34 -0
- package/dist/components/card/card.d.ts.map +1 -0
- package/dist/components/card/card.js +59 -59
- package/dist/components/card/index.d.ts +3 -0
- package/dist/components/card/index.d.ts.map +1 -0
- package/dist/components/code-block/base-code-block.d.ts +9 -0
- package/dist/components/code-block/base-code-block.d.ts.map +1 -0
- package/dist/components/code-block/code-block.d.ts +74 -0
- package/dist/components/code-block/code-block.d.ts.map +1 -0
- package/dist/components/code-block/code-block.js +34 -34
- package/dist/components/code-block/code-footer.d.ts +8 -0
- package/dist/components/code-block/code-footer.d.ts.map +1 -0
- package/dist/components/code-block/code-footer.js +9 -9
- package/dist/components/code-block/code-header.d.ts +11 -0
- package/dist/components/code-block/code-header.d.ts.map +1 -0
- package/dist/components/code-block/code-header.js +20 -20
- package/dist/components/code-block/copy-button.d.ts +16 -0
- package/dist/components/code-block/copy-button.d.ts.map +1 -0
- package/dist/components/code-block/index.d.ts +5 -0
- package/dist/components/code-block/index.d.ts.map +1 -0
- package/dist/components/code-block/story-utils.d.ts +13 -0
- package/dist/components/code-block/story-utils.d.ts.map +1 -0
- package/dist/components/code-group/code-group.d.ts +23 -0
- package/dist/components/code-group/code-group.d.ts.map +1 -0
- package/dist/components/code-group/code-group.js +72 -72
- package/dist/components/code-group/code-select-dropdown.d.ts +10 -0
- package/dist/components/code-group/code-select-dropdown.d.ts.map +1 -0
- package/dist/components/code-group/code-snippet.d.ts +13 -0
- package/dist/components/code-group/code-snippet.d.ts.map +1 -0
- package/dist/components/code-group/dropdown.d.ts +34 -0
- package/dist/components/code-group/dropdown.d.ts.map +1 -0
- package/dist/components/code-group/dropdown.js +47 -47
- package/dist/components/code-group/index.d.ts +3 -0
- package/dist/components/code-group/index.d.ts.map +1 -0
- package/dist/components/code-group/language-dropdown.d.ts +10 -0
- package/dist/components/code-group/language-dropdown.d.ts.map +1 -0
- package/dist/components/code-group/language-dropdown.js +39 -39
- package/dist/components/code-group/language-icon.d.ts +7 -0
- package/dist/components/code-group/language-icon.d.ts.map +1 -0
- package/dist/components/color/color.d.ts +28 -0
- package/dist/components/color/color.d.ts.map +1 -0
- package/dist/components/color/color.js +37 -37
- package/dist/components/color/constants.d.ts +5 -0
- package/dist/components/color/constants.d.ts.map +1 -0
- package/dist/components/color/index.d.ts +4 -0
- package/dist/components/color/index.d.ts.map +1 -0
- package/dist/components/columns/columns.d.ts +11 -0
- package/dist/components/columns/columns.d.ts.map +1 -0
- package/dist/components/columns/constants.d.ts +5 -0
- package/dist/components/columns/constants.d.ts.map +1 -0
- package/dist/components/columns/index.d.ts +3 -0
- package/dist/components/columns/index.d.ts.map +1 -0
- package/dist/components/expandable/expandable.d.ts +21 -0
- package/dist/components/expandable/expandable.d.ts.map +1 -0
- package/dist/components/expandable/expandable.js +46 -46
- package/dist/components/expandable/index.d.ts +3 -0
- package/dist/components/expandable/index.d.ts.map +1 -0
- package/dist/components/frame/frame.d.ts +14 -0
- package/dist/components/frame/frame.d.ts.map +1 -0
- package/dist/components/frame/frame.js +21 -21
- package/dist/components/frame/index.d.ts +3 -0
- package/dist/components/frame/index.d.ts.map +1 -0
- package/dist/components/icon/icon.d.ts +19 -0
- package/dist/components/icon/icon.d.ts.map +1 -0
- package/dist/components/icon/icon.js +24 -24
- package/dist/components/icon/index.d.ts +3 -0
- package/dist/components/icon/index.d.ts.map +1 -0
- package/dist/components/index.d.ts +22 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/mermaid/index.d.ts +7 -0
- package/dist/components/mermaid/index.d.ts.map +1 -0
- package/dist/components/mermaid/mermaid.d.ts +12 -0
- package/dist/components/mermaid/mermaid.d.ts.map +1 -0
- package/dist/components/mermaid/mermaid.js +38 -31
- package/dist/components/mermaid/use-pan-zoom.d.ts +13 -0
- package/dist/components/mermaid/use-pan-zoom.d.ts.map +1 -0
- package/dist/components/mermaid/zoom-controls.d.ts +13 -0
- package/dist/components/mermaid/zoom-controls.d.ts.map +1 -0
- package/dist/components/mermaid/zoom-controls.js +32 -32
- package/dist/components/panel/index.d.ts +3 -0
- package/dist/components/panel/index.d.ts.map +1 -0
- package/dist/components/panel/panel.d.ts +6 -0
- package/dist/components/panel/panel.d.ts.map +1 -0
- package/dist/components/property/index.d.ts +3 -0
- package/dist/components/property/index.d.ts.map +1 -0
- package/dist/components/property/param-head.d.ts +5 -0
- package/dist/components/property/param-head.d.ts.map +1 -0
- package/dist/components/property/param-head.js +40 -40
- package/dist/components/property/pills.d.ts +15 -0
- package/dist/components/property/pills.d.ts.map +1 -0
- package/dist/components/property/pills.js +13 -13
- package/dist/components/property/property.d.ts +24 -0
- package/dist/components/property/property.d.ts.map +1 -0
- package/dist/components/property/property.js +33 -33
- package/dist/components/steps/constants.d.ts +5 -0
- package/dist/components/steps/constants.d.ts.map +1 -0
- package/dist/components/steps/index.d.ts +5 -0
- package/dist/components/steps/index.d.ts.map +1 -0
- package/dist/components/steps/steps.d.ts +35 -0
- package/dist/components/steps/steps.d.ts.map +1 -0
- package/dist/components/steps/steps.js +157 -59
- package/dist/components/tabs/index.d.ts +3 -0
- package/dist/components/tabs/index.d.ts.map +1 -0
- package/dist/components/tabs/tabs.d.ts +36 -0
- package/dist/components/tabs/tabs.d.ts.map +1 -0
- package/dist/components/tabs/tabs.js +84 -78
- package/dist/components/tile/index.d.ts +3 -0
- package/dist/components/tile/index.d.ts.map +1 -0
- package/dist/components/tile/tile.d.ts +11 -0
- package/dist/components/tile/tile.d.ts.map +1 -0
- package/dist/components/tile/tile.js +27 -27
- package/dist/components/tooltip/index.d.ts +3 -0
- package/dist/components/tooltip/index.d.ts.map +1 -0
- package/dist/components/tooltip/tooltip.d.ts +14 -0
- package/dist/components/tooltip/tooltip.d.ts.map +1 -0
- package/dist/components/tooltip/tooltip.js +95 -84
- package/dist/components/tree/context.d.ts +9 -0
- package/dist/components/tree/context.d.ts.map +1 -0
- package/dist/components/tree/file.d.ts +7 -0
- package/dist/components/tree/file.d.ts.map +1 -0
- package/dist/components/tree/file.js +9 -9
- package/dist/components/tree/folder.d.ts +11 -0
- package/dist/components/tree/folder.d.ts.map +1 -0
- package/dist/components/tree/folder.js +21 -21
- package/dist/components/tree/index.d.ts +9 -0
- package/dist/components/tree/index.d.ts.map +1 -0
- package/dist/components/tree/root.d.ts +9 -0
- package/dist/components/tree/root.d.ts.map +1 -0
- package/dist/components/tree/tree-level-context.d.ts +8 -0
- package/dist/components/tree/tree-level-context.d.ts.map +1 -0
- package/dist/components/tree/use-tree-level.d.ts +3 -0
- package/dist/components/tree/use-tree-level.d.ts.map +1 -0
- package/dist/components/tree/utils.d.ts +9 -0
- package/dist/components/tree/utils.d.ts.map +1 -0
- package/dist/components/update/index.d.ts +3 -0
- package/dist/components/update/index.d.ts.map +1 -0
- package/dist/components/update/update.d.ts +22 -0
- package/dist/components/update/update.d.ts.map +1 -0
- package/dist/components/update/update.js +21 -21
- package/dist/components/view/index.d.ts +3 -0
- package/dist/components/view/index.d.ts.map +1 -0
- package/dist/components/view/view.d.ts +12 -0
- package/dist/components/view/view.d.ts.map +1 -0
- package/dist/components/view/view.js +29 -23
- package/dist/constants/brands.d.ts +3 -0
- package/dist/constants/brands.d.ts.map +1 -0
- package/dist/constants/index.d.ts +7 -0
- package/dist/constants/index.d.ts.map +1 -0
- package/dist/constants/selectors.d.ts +126 -0
- package/dist/constants/selectors.d.ts.map +1 -0
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/use-expandable-memory.d.ts +8 -0
- package/dist/hooks/use-expandable-memory.d.ts.map +1 -0
- package/dist/hooks/use-expandable.d.ts +13 -0
- package/dist/hooks/use-expandable.d.ts.map +1 -0
- package/dist/hooks/use-get-shiki-highlighted-html.d.ts +4 -0
- package/dist/hooks/use-get-shiki-highlighted-html.d.ts.map +1 -0
- package/dist/hooks/use-has-hover.d.ts +3 -0
- package/dist/hooks/use-has-hover.d.ts.map +1 -0
- package/dist/hooks/use-is-dark-theme.d.ts +5 -0
- package/dist/hooks/use-is-dark-theme.d.ts.map +1 -0
- package/dist/hooks/use-isomorphic-layout-effect.d.ts +4 -0
- package/dist/hooks/use-isomorphic-layout-effect.d.ts.map +1 -0
- package/dist/icons/index.d.ts +21 -0
- package/dist/icons/index.d.ts.map +1 -0
- package/dist/icons/index.js +2 -2
- package/dist/index.d.ts +3 -565
- package/dist/index.d.ts.map +1 -0
- package/dist/plugins/bg-grid.d.ts +3 -0
- package/dist/plugins/bg-grid.d.ts.map +1 -0
- package/dist/plugins/scrollbar.d.ts +3 -0
- package/dist/plugins/scrollbar.d.ts.map +1 -0
- package/dist/styles.css +2 -0
- package/dist/utils/cn.d.ts +4 -0
- package/dist/utils/cn.d.ts.map +1 -0
- package/dist/utils/copy-to-clipboard.d.ts +5 -0
- package/dist/utils/copy-to-clipboard.d.ts.map +1 -0
- package/dist/utils/enhance-video-props.d.ts +4 -0
- package/dist/utils/enhance-video-props.d.ts.map +1 -0
- package/dist/utils/get-node-text.d.ts +3 -0
- package/dist/utils/get-node-text.d.ts.map +1 -0
- package/dist/utils/icon-utils.d.ts +19 -0
- package/dist/utils/icon-utils.d.ts.map +1 -0
- package/dist/utils/is-absolute-url.d.ts +5 -0
- package/dist/utils/is-absolute-url.d.ts.map +1 -0
- package/dist/utils/is-remote-url.d.ts +3 -0
- package/dist/utils/is-remote-url.d.ts.map +1 -0
- package/dist/utils/make-marker-ids-unique.d.ts +3 -0
- package/dist/utils/make-marker-ids-unique.d.ts.map +1 -0
- package/dist/utils/make-marker-ids-unique.js +42 -0
- package/dist/utils/render-as-child.d.ts +4 -0
- package/dist/utils/render-as-child.d.ts.map +1 -0
- package/dist/utils/shiki/code-styling.d.ts +12 -0
- package/dist/utils/shiki/code-styling.d.ts.map +1 -0
- package/dist/utils/shiki/constants.d.ts +23 -0
- package/dist/utils/shiki/constants.d.ts.map +1 -0
- package/dist/utils/shiki/get-code-styling.d.ts +10 -0
- package/dist/utils/shiki/get-code-styling.d.ts.map +1 -0
- package/dist/utils/shiki/get-shiki-background-colors.d.ts +21 -0
- package/dist/utils/shiki/get-shiki-background-colors.d.ts.map +1 -0
- package/dist/utils/shiki/index.d.ts +31 -0
- package/dist/utils/shiki/index.d.ts.map +1 -0
- package/dist/utils/shiki/lib.d.ts +6 -0
- package/dist/utils/shiki/lib.d.ts.map +1 -0
- package/dist/utils/shiki/shiki-themes.d.ts +3 -0
- package/dist/utils/shiki/shiki-themes.d.ts.map +1 -0
- package/dist/utils/shiki/snippet-presets.d.ts +28 -0
- package/dist/utils/shiki/snippet-presets.d.ts.map +1 -0
- package/dist/utils/shiki/worker-client.d.ts +10 -0
- package/dist/utils/shiki/worker-client.d.ts.map +1 -0
- package/dist/utils/slugify.d.ts +3 -0
- package/dist/utils/slugify.d.ts.map +1 -0
- package/package.json +4 -2
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import { jsxs as y, jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import C from "../../node_modules/.pnpm/mermaid@11.12.2/node_modules/mermaid/dist/mermaid.core.js";
|
|
3
|
-
import { useState as l, useRef as
|
|
3
|
+
import { useState as l, useRef as D, useId as F, useEffect as c } from "react";
|
|
4
4
|
import { Classes as x } from "../../constants/selectors.js";
|
|
5
|
-
import { useIsDarkTheme as
|
|
5
|
+
import { useIsDarkTheme as H } from "../../hooks/use-is-dark-theme.js";
|
|
6
6
|
import { cn as I } from "../../utils/cn.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
7
|
+
import { makeMarkerIdsUnique as L } from "../../utils/make-marker-ids-unique.js";
|
|
8
|
+
import { usePanZoom as Z } from "./use-pan-zoom.js";
|
|
9
|
+
import { ZoomControls as q } from "./zoom-controls.js";
|
|
10
|
+
const j = 120, A = 800, V = ({
|
|
10
11
|
chart: u,
|
|
11
12
|
className: f,
|
|
12
|
-
ariaLabel:
|
|
13
|
-
placement:
|
|
13
|
+
ariaLabel: T = "Mermaid diagram",
|
|
14
|
+
placement: k = "bottom-right",
|
|
14
15
|
actions: o
|
|
15
16
|
}) => {
|
|
16
|
-
const [
|
|
17
|
+
const [O, p] = l(""), [g, a] = l(null), [_, w] = l(!1), h = D(null), v = F(), { isDarkTheme: b } = H(), { style: E, zoomIn: M, zoomOut: R, reset: s, pan: S, panStep: N } = Z();
|
|
17
18
|
return c(() => {
|
|
18
19
|
s(), a(null);
|
|
19
20
|
}, [s]), c(() => {
|
|
@@ -22,17 +23,23 @@ const L = 120, K = ({
|
|
|
22
23
|
const m = {
|
|
23
24
|
startOnLoad: !1,
|
|
24
25
|
fontFamily: "inherit",
|
|
25
|
-
theme: b ? "dark" : "default"
|
|
26
|
+
theme: b ? "dark" : "default",
|
|
27
|
+
gantt: {
|
|
28
|
+
useWidth: A
|
|
29
|
+
}
|
|
26
30
|
}, e = document.createElement("div");
|
|
27
31
|
e.style.position = "absolute", e.style.left = "-9999px", e.style.top = "-9999px", document.body.appendChild(e);
|
|
28
32
|
try {
|
|
29
33
|
C.initialize(m);
|
|
30
|
-
const r = `mermaid-${v.replace(/:/g, "")}-${Date.now()}`, { svg:
|
|
31
|
-
|
|
34
|
+
const r = `mermaid-${v.replace(/:/g, "")}-${Date.now()}`, { svg: d } = await C.render(r, u, e);
|
|
35
|
+
if (!t) {
|
|
36
|
+
const z = L(d, r);
|
|
37
|
+
p(z), a(null);
|
|
38
|
+
}
|
|
32
39
|
} catch (r) {
|
|
33
40
|
if (console.error("Error while rendering mermaid", r), !t) {
|
|
34
|
-
const
|
|
35
|
-
a(
|
|
41
|
+
const d = r instanceof Error ? r.message : "Failed to render diagram";
|
|
42
|
+
a(d), p("");
|
|
36
43
|
}
|
|
37
44
|
} finally {
|
|
38
45
|
document.body.removeChild(e);
|
|
@@ -43,19 +50,19 @@ const L = 120, K = ({
|
|
|
43
50
|
}, [u, v, b]), c(() => {
|
|
44
51
|
if (o !== void 0)
|
|
45
52
|
return;
|
|
46
|
-
const t =
|
|
53
|
+
const t = h.current;
|
|
47
54
|
if (!t)
|
|
48
55
|
return;
|
|
49
|
-
const
|
|
56
|
+
const i = new ResizeObserver((m) => {
|
|
50
57
|
for (const e of m) {
|
|
51
58
|
const r = e.contentRect.height;
|
|
52
|
-
|
|
59
|
+
w(r >= j);
|
|
53
60
|
}
|
|
54
61
|
});
|
|
55
|
-
return
|
|
56
|
-
|
|
62
|
+
return i.observe(t), () => {
|
|
63
|
+
i.disconnect();
|
|
57
64
|
};
|
|
58
|
-
}, [o]),
|
|
65
|
+
}, [o]), g ? /* @__PURE__ */ y(
|
|
59
66
|
"div",
|
|
60
67
|
{
|
|
61
68
|
className: I(
|
|
@@ -67,7 +74,7 @@ const L = 120, K = ({
|
|
|
67
74
|
role: "alert",
|
|
68
75
|
children: [
|
|
69
76
|
/* @__PURE__ */ n("p", { className: "font-medium", "data-component-part": "mermaid-error-title", children: "Failed to render diagram" }),
|
|
70
|
-
/* @__PURE__ */ n("p", { className: "mt-1 text-xs", "data-component-part": "mermaid-error-message", children:
|
|
77
|
+
/* @__PURE__ */ n("p", { className: "mt-1 text-xs", "data-component-part": "mermaid-error-message", children: g })
|
|
71
78
|
]
|
|
72
79
|
}
|
|
73
80
|
) : /* @__PURE__ */ y(
|
|
@@ -79,26 +86,26 @@ const L = 120, K = ({
|
|
|
79
86
|
f
|
|
80
87
|
),
|
|
81
88
|
children: [
|
|
82
|
-
(o === !0 || o === void 0 &&
|
|
83
|
-
|
|
89
|
+
(o === !0 || o === void 0 && _) && /* @__PURE__ */ n(
|
|
90
|
+
q,
|
|
84
91
|
{
|
|
85
|
-
onPan:
|
|
92
|
+
onPan: S,
|
|
86
93
|
onReset: s,
|
|
87
|
-
onZoomIn:
|
|
88
|
-
onZoomOut:
|
|
94
|
+
onZoomIn: M,
|
|
95
|
+
onZoomOut: R,
|
|
89
96
|
panStep: N,
|
|
90
|
-
placement:
|
|
97
|
+
placement: k
|
|
91
98
|
}
|
|
92
99
|
),
|
|
93
100
|
/* @__PURE__ */ n(
|
|
94
101
|
"div",
|
|
95
102
|
{
|
|
96
|
-
"aria-label":
|
|
97
|
-
dangerouslySetInnerHTML: { __html:
|
|
103
|
+
"aria-label": T,
|
|
104
|
+
dangerouslySetInnerHTML: { __html: O },
|
|
98
105
|
"data-component-part": "mermaid-diagram",
|
|
99
|
-
ref:
|
|
106
|
+
ref: h,
|
|
100
107
|
role: "img",
|
|
101
|
-
style:
|
|
108
|
+
style: E
|
|
102
109
|
}
|
|
103
110
|
)
|
|
104
111
|
]
|
|
@@ -106,5 +113,5 @@ const L = 120, K = ({
|
|
|
106
113
|
);
|
|
107
114
|
};
|
|
108
115
|
export {
|
|
109
|
-
|
|
116
|
+
V as Mermaid
|
|
110
117
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
type UsePanZoomReturn = {
|
|
3
|
+
style: CSSProperties;
|
|
4
|
+
zoomIn: () => void;
|
|
5
|
+
zoomOut: () => void;
|
|
6
|
+
reset: () => void;
|
|
7
|
+
pan: (dx: number, dy: number) => void;
|
|
8
|
+
panStep: number;
|
|
9
|
+
};
|
|
10
|
+
declare const usePanZoom: () => UsePanZoomReturn;
|
|
11
|
+
export { usePanZoom };
|
|
12
|
+
export type { UsePanZoomReturn };
|
|
13
|
+
//# sourceMappingURL=use-pan-zoom.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-pan-zoom.d.ts","sourceRoot":"","sources":["../../../src/components/mermaid/use-pan-zoom.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAkC,MAAM,OAAO,CAAC;AAa3E,KAAK,gBAAgB,GAAG;IACtB,KAAK,EAAE,aAAa,CAAC;IACrB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,GAAG,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAIF,QAAA,MAAM,UAAU,QAAO,gBA8CtB,CAAC;AAEF,OAAO,EAAE,UAAU,EAAE,CAAC;AACtB,YAAY,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { MermaidPlacement } from './mermaid';
|
|
2
|
+
type ZoomControlsProps = {
|
|
3
|
+
onZoomIn: () => void;
|
|
4
|
+
onZoomOut: () => void;
|
|
5
|
+
onReset: () => void;
|
|
6
|
+
onPan: (dx: number, dy: number) => void;
|
|
7
|
+
panStep: number;
|
|
8
|
+
placement?: MermaidPlacement;
|
|
9
|
+
};
|
|
10
|
+
declare const ZoomControls: ({ onZoomIn, onZoomOut, onReset, onPan, panStep, placement, }: ZoomControlsProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export { ZoomControls };
|
|
12
|
+
export type { ZoomControlsProps };
|
|
13
|
+
//# sourceMappingURL=zoom-controls.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zoom-controls.d.ts","sourceRoot":"","sources":["../../../src/components/mermaid/zoom-controls.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAqBlD,KAAK,iBAAiB,GAAG;IACvB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,gBAAgB,CAAC;CAC9B,CAAC;AAEF,QAAA,MAAM,YAAY,GAAI,8DAOnB,iBAAiB,4CA4DnB,CAAC;AAEF,OAAO,EAAE,YAAY,EAAE,CAAC;AACxB,YAAY,EAAE,iBAAiB,EAAE,CAAC"}
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { jsxs as m, jsx as
|
|
1
|
+
import { jsxs as m, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { cn as d } from "../../utils/cn.js";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import s from "../../node_modules/.pnpm/lucide-react@0.453.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/chevron-up.js";
|
|
4
|
+
import h from "../../node_modules/.pnpm/lucide-react@0.453.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/zoom-in.js";
|
|
5
5
|
import c from "../../node_modules/.pnpm/lucide-react@0.453.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/chevron-left.js";
|
|
6
6
|
import u from "../../node_modules/.pnpm/lucide-react@0.453.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/rotate-ccw.js";
|
|
7
7
|
import b from "../../node_modules/.pnpm/lucide-react@0.453.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/chevron-right.js";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
const
|
|
8
|
+
import f from "../../node_modules/.pnpm/lucide-react@0.453.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/chevron-down.js";
|
|
9
|
+
import p from "../../node_modules/.pnpm/lucide-react@0.453.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/zoom-out.js";
|
|
10
|
+
const o = ({
|
|
11
11
|
children: a,
|
|
12
12
|
className: n,
|
|
13
13
|
...l
|
|
14
|
-
}) => /* @__PURE__ */
|
|
14
|
+
}) => /* @__PURE__ */ t(
|
|
15
15
|
"button",
|
|
16
16
|
{
|
|
17
17
|
className: d(
|
|
18
|
-
"flex size-7 cursor-pointer touch-manipulation items-center justify-center rounded-md border border-
|
|
18
|
+
"flex size-7 cursor-pointer touch-manipulation items-center justify-center rounded-md border border-stone-200 bg-white text-stone-900 transition-[transform] duration-100 hover:bg-stone-50 motion-safe:active:scale-95 dark:border-white/10 dark:bg-stone-900 dark:text-white dark:hover:bg-stone-800 [&_svg]:size-4",
|
|
19
19
|
n
|
|
20
20
|
),
|
|
21
21
|
type: "button",
|
|
22
22
|
...l,
|
|
23
23
|
children: a
|
|
24
24
|
}
|
|
25
|
-
),
|
|
25
|
+
), N = ({
|
|
26
26
|
onZoomIn: a,
|
|
27
27
|
onZoomOut: n,
|
|
28
28
|
onReset: l,
|
|
29
|
-
onPan:
|
|
29
|
+
onPan: r,
|
|
30
30
|
panStep: e,
|
|
31
31
|
placement: i
|
|
32
32
|
}) => (
|
|
@@ -45,51 +45,51 @@ const t = ({
|
|
|
45
45
|
"data-component-part": "zoom-controls",
|
|
46
46
|
role: "group",
|
|
47
47
|
children: [
|
|
48
|
-
/* @__PURE__ */
|
|
49
|
-
/* @__PURE__ */
|
|
50
|
-
|
|
48
|
+
/* @__PURE__ */ t("div", { "aria-hidden": "true", className: "pointer-events-none" }),
|
|
49
|
+
/* @__PURE__ */ t(
|
|
50
|
+
o,
|
|
51
51
|
{
|
|
52
52
|
"aria-label": "Pan up",
|
|
53
|
-
onClick: () =>
|
|
53
|
+
onClick: () => r(0, e),
|
|
54
54
|
title: "Pan up",
|
|
55
|
-
children: /* @__PURE__ */
|
|
55
|
+
children: /* @__PURE__ */ t(s, { "aria-hidden": "true" })
|
|
56
56
|
}
|
|
57
57
|
),
|
|
58
|
-
/* @__PURE__ */
|
|
59
|
-
/* @__PURE__ */
|
|
60
|
-
|
|
58
|
+
/* @__PURE__ */ t(o, { "aria-label": "Zoom in", onClick: a, title: "Zoom in", children: /* @__PURE__ */ t(h, { "aria-hidden": "true" }) }),
|
|
59
|
+
/* @__PURE__ */ t(
|
|
60
|
+
o,
|
|
61
61
|
{
|
|
62
62
|
"aria-label": "Pan left",
|
|
63
|
-
onClick: () =>
|
|
63
|
+
onClick: () => r(e, 0),
|
|
64
64
|
title: "Pan left",
|
|
65
|
-
children: /* @__PURE__ */
|
|
65
|
+
children: /* @__PURE__ */ t(c, { "aria-hidden": "true" })
|
|
66
66
|
}
|
|
67
67
|
),
|
|
68
|
-
/* @__PURE__ */
|
|
69
|
-
/* @__PURE__ */
|
|
70
|
-
|
|
68
|
+
/* @__PURE__ */ t(o, { "aria-label": "Reset view", onClick: l, title: "Reset view", children: /* @__PURE__ */ t(u, { "aria-hidden": "true" }) }),
|
|
69
|
+
/* @__PURE__ */ t(
|
|
70
|
+
o,
|
|
71
71
|
{
|
|
72
72
|
"aria-label": "Pan right",
|
|
73
|
-
onClick: () =>
|
|
73
|
+
onClick: () => r(-e, 0),
|
|
74
74
|
title: "Pan right",
|
|
75
|
-
children: /* @__PURE__ */
|
|
75
|
+
children: /* @__PURE__ */ t(b, { "aria-hidden": "true" })
|
|
76
76
|
}
|
|
77
77
|
),
|
|
78
|
-
/* @__PURE__ */
|
|
79
|
-
/* @__PURE__ */
|
|
80
|
-
|
|
78
|
+
/* @__PURE__ */ t("div", { "aria-hidden": "true", className: "pointer-events-none" }),
|
|
79
|
+
/* @__PURE__ */ t(
|
|
80
|
+
o,
|
|
81
81
|
{
|
|
82
82
|
"aria-label": "Pan down",
|
|
83
|
-
onClick: () =>
|
|
83
|
+
onClick: () => r(0, -e),
|
|
84
84
|
title: "Pan down",
|
|
85
|
-
children: /* @__PURE__ */
|
|
85
|
+
children: /* @__PURE__ */ t(f, { "aria-hidden": "true" })
|
|
86
86
|
}
|
|
87
87
|
),
|
|
88
|
-
/* @__PURE__ */
|
|
88
|
+
/* @__PURE__ */ t(o, { "aria-label": "Zoom out", onClick: n, title: "Zoom out", children: /* @__PURE__ */ t(p, { "aria-hidden": "true" }) })
|
|
89
89
|
]
|
|
90
90
|
}
|
|
91
91
|
)
|
|
92
92
|
);
|
|
93
93
|
export {
|
|
94
|
-
|
|
94
|
+
N as ZoomControls
|
|
95
95
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/panel/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
type PanelProps = ComponentProps<"div">;
|
|
3
|
+
declare const Panel: ({ children, className, ...props }: PanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export { Panel };
|
|
5
|
+
export type { PanelProps };
|
|
6
|
+
//# sourceMappingURL=panel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"panel.d.ts","sourceRoot":"","sources":["../../../src/components/panel/panel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5C,KAAK,UAAU,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAExC,QAAA,MAAM,KAAK,GAAI,mCAAmC,UAAU,4CAM3D,CAAC;AAEF,OAAO,EAAE,KAAK,EAAE,CAAC;AACjB,YAAY,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/property/index.tsx"],"names":[],"mappings":"AAAA,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { PropertyProps } from './property';
|
|
2
|
+
type ParamHeadProps = Omit<PropertyProps, "children">;
|
|
3
|
+
declare const ParamHead: ({ name, type, location, required, deprecated, default: defaultValue, id, pre, post, onMount, navigateToHeaderAriaLabel, defaultLabel, requiredLabel, deprecatedLabel, }: ParamHeadProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
4
|
+
export { ParamHead };
|
|
5
|
+
//# sourceMappingURL=param-head.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"param-head.d.ts","sourceRoot":"","sources":["../../../src/components/property/param-head.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD,KAAK,cAAc,GAAG,IAAI,CAAC,aAAa,EAAE,UAAU,CAAC,CAAC;AAEtD,QAAA,MAAM,SAAS,GAAI,yKAehB,cAAc,mDA4HhB,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -1,87 +1,87 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
1
|
+
import { jsx as e, jsxs as d } from "react/jsx-runtime";
|
|
2
2
|
import P from "../../node_modules/.pnpm/@sindresorhus_slugify@2.2.1/node_modules/@sindresorhus/slugify/index.js";
|
|
3
3
|
import { useRef as R, useState as _, useCallback as j, useEffect as u } from "react";
|
|
4
4
|
import { LinkIcon as H } from "../../icons/index.js";
|
|
5
|
-
import { cn as
|
|
5
|
+
import { cn as k } from "../../utils/cn.js";
|
|
6
6
|
import { copyToClipboard as O } from "../../utils/copy-to-clipboard.js";
|
|
7
7
|
import { InfoPill as c, RequiredPill as $, DeprecatedPill as S } from "./pills.js";
|
|
8
8
|
const F = ({
|
|
9
|
-
name:
|
|
9
|
+
name: o,
|
|
10
10
|
type: m,
|
|
11
11
|
location: p,
|
|
12
|
-
required:
|
|
13
|
-
deprecated:
|
|
14
|
-
default:
|
|
15
|
-
id:
|
|
16
|
-
pre:
|
|
17
|
-
post:
|
|
18
|
-
onMount:
|
|
19
|
-
navigateToHeaderAriaLabel:
|
|
12
|
+
required: b,
|
|
13
|
+
deprecated: x,
|
|
14
|
+
default: a,
|
|
15
|
+
id: v,
|
|
16
|
+
pre: s,
|
|
17
|
+
post: l,
|
|
18
|
+
onMount: n,
|
|
19
|
+
navigateToHeaderAriaLabel: y,
|
|
20
20
|
defaultLabel: w,
|
|
21
21
|
requiredLabel: N,
|
|
22
22
|
deprecatedLabel: z
|
|
23
23
|
}) => {
|
|
24
|
-
const f = R(null), [C, I] = _(!1), i =
|
|
24
|
+
const f = R(null), [C, I] = _(!1), i = v ?? P(o ?? "", { decamelize: !0 }), h = j(() => {
|
|
25
25
|
i && (O(`${window.location.href.split("#")[0]}#${i}`), window.location.hash = i);
|
|
26
26
|
}, [i]);
|
|
27
27
|
return u(() => {
|
|
28
28
|
const r = f.current;
|
|
29
29
|
if (!r)
|
|
30
30
|
return;
|
|
31
|
-
const
|
|
31
|
+
const t = () => {
|
|
32
32
|
const L = (r == null ? void 0 : r.offsetHeight) ?? 0;
|
|
33
33
|
I(L > 28);
|
|
34
34
|
};
|
|
35
|
-
|
|
36
|
-
const
|
|
37
|
-
return
|
|
38
|
-
|
|
35
|
+
t();
|
|
36
|
+
const g = new ResizeObserver(t);
|
|
37
|
+
return g.observe(r), () => {
|
|
38
|
+
g.unobserve(r);
|
|
39
39
|
};
|
|
40
40
|
}, []), u(() => {
|
|
41
|
-
|
|
42
|
-
}, [
|
|
41
|
+
n == null || n();
|
|
42
|
+
}, [n]), o == null ? null : /* @__PURE__ */ e(
|
|
43
43
|
"div",
|
|
44
44
|
{
|
|
45
|
-
className:
|
|
45
|
+
className: k(
|
|
46
46
|
"group/param-head param-head relative flex break-all font-mono text-sm"
|
|
47
47
|
),
|
|
48
48
|
id: i,
|
|
49
|
-
children: /* @__PURE__ */ e("div", { className: "mr-5 flex flex-1 flex-col content-start py-0.5", children: /* @__PURE__ */
|
|
50
|
-
i && /* @__PURE__ */ e("div", { className: "absolute -top-1.5 -left-9", children: /* @__PURE__ */
|
|
49
|
+
children: /* @__PURE__ */ e("div", { className: "mr-5 flex flex-1 flex-col content-start py-0.5", children: /* @__PURE__ */ d("div", { className: "flex flex-wrap items-center gap-2", children: [
|
|
50
|
+
i && /* @__PURE__ */ e("div", { className: "absolute -top-1.5 -left-9", children: /* @__PURE__ */ d(
|
|
51
51
|
"a",
|
|
52
52
|
{
|
|
53
|
-
"aria-label":
|
|
53
|
+
"aria-label": y,
|
|
54
54
|
className: "group/link flex items-center border-0 py-2 opacity-0 focus:opacity-100 focus:outline-0 group-hover/param-head:opacity-100",
|
|
55
55
|
href: `#${i}`,
|
|
56
|
-
onClick:
|
|
56
|
+
onClick: h,
|
|
57
57
|
children: [
|
|
58
58
|
"",
|
|
59
|
-
/* @__PURE__ */ e("div", { className: "flex size-6 items-center justify-center rounded-md bg-white text-
|
|
59
|
+
/* @__PURE__ */ e("div", { className: "flex size-6 items-center justify-center rounded-md bg-white text-stone-400 shadow-sm ring-1 ring-stone-400/30 hover:ring-stone-400/60 group-focus/link:border-2 group-focus/link:border-primary dark:bg-background-dark dark:text-white/50 dark:ring-1 dark:ring-stone-700/25 dark:brightness-[1.35] dark:group-focus/link:border-primary-light dark:hover:ring-white/20 dark:hover:brightness-150", children: /* @__PURE__ */ e(H, {}) })
|
|
60
60
|
]
|
|
61
61
|
}
|
|
62
62
|
) }),
|
|
63
|
-
|
|
63
|
+
s == null ? void 0 : s.map((r, t) => /* @__PURE__ */ e(
|
|
64
64
|
"div",
|
|
65
65
|
{
|
|
66
|
-
className: "rounded-md bg-
|
|
66
|
+
className: "rounded-md bg-stone-100/50 px-2 py-0.5 text-stone-600 dark:bg-white/5 dark:text-stone-200",
|
|
67
67
|
"data-component-part": "field-meta-pre",
|
|
68
68
|
children: r
|
|
69
69
|
},
|
|
70
|
-
|
|
70
|
+
t
|
|
71
71
|
)),
|
|
72
72
|
/* @__PURE__ */ e(
|
|
73
73
|
"div",
|
|
74
74
|
{
|
|
75
75
|
className: "overflow-wrap-anywhere cursor-pointer font-semibold text-primary dark:text-primary-light",
|
|
76
76
|
"data-component-part": "field-name",
|
|
77
|
-
onClick:
|
|
78
|
-
children:
|
|
77
|
+
onClick: h,
|
|
78
|
+
children: o
|
|
79
79
|
}
|
|
80
80
|
),
|
|
81
|
-
/* @__PURE__ */
|
|
81
|
+
/* @__PURE__ */ d(
|
|
82
82
|
"div",
|
|
83
83
|
{
|
|
84
|
-
className:
|
|
84
|
+
className: k(
|
|
85
85
|
"inline items-center gap-2 font-medium text-xs [&_div]:mr-2 [&_div]:inline",
|
|
86
86
|
C ? "[&_div]:leading-6" : "[&_div]:leading-5"
|
|
87
87
|
),
|
|
@@ -90,20 +90,20 @@ const F = ({
|
|
|
90
90
|
children: [
|
|
91
91
|
m && /* @__PURE__ */ e(c, { children: m }),
|
|
92
92
|
p && /* @__PURE__ */ e(c, { children: p }),
|
|
93
|
-
|
|
93
|
+
a != null && /* @__PURE__ */ e(c, { prefix: w, children: typeof a == "string" ? (
|
|
94
94
|
// biome-ignore lint/style/noNestedTernary: TODO
|
|
95
|
-
|
|
96
|
-
) : JSON.stringify(
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
95
|
+
a === "" ? '""' : a
|
|
96
|
+
) : JSON.stringify(a) }),
|
|
97
|
+
b && /* @__PURE__ */ e($, { label: N }),
|
|
98
|
+
x && /* @__PURE__ */ e(S, { label: z }),
|
|
99
|
+
l == null ? void 0 : l.map((r, t) => /* @__PURE__ */ e(
|
|
100
100
|
"div",
|
|
101
101
|
{
|
|
102
|
-
className: "rounded-md bg-
|
|
102
|
+
className: "rounded-md bg-stone-100/50 px-2 py-0.5 text-stone-600 dark:bg-white/5 dark:text-stone-200",
|
|
103
103
|
"data-component-part": "field-meta-post",
|
|
104
104
|
children: r
|
|
105
105
|
},
|
|
106
|
-
|
|
106
|
+
t
|
|
107
107
|
))
|
|
108
108
|
]
|
|
109
109
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
type InfoPillProps = {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
prefix?: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
};
|
|
7
|
+
declare const InfoPill: ({ children, prefix, className }: InfoPillProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare const RequiredPill: ({ label }: {
|
|
9
|
+
label?: string;
|
|
10
|
+
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
11
|
+
declare const DeprecatedPill: ({ label }: {
|
|
12
|
+
label?: string;
|
|
13
|
+
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
14
|
+
export { InfoPill, RequiredPill, DeprecatedPill };
|
|
15
|
+
//# sourceMappingURL=pills.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pills.d.ts","sourceRoot":"","sources":["../../../src/components/property/pills.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,KAAK,aAAa,GAAG;IACnB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,QAAA,MAAM,QAAQ,GAAI,iCAAiC,aAAa,4CAe/D,CAAC;AAEF,QAAA,MAAM,YAAY,GAAI,WAAW;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,mDAalD,CAAC;AAEF,QAAA,MAAM,cAAc,GAAI,WAAW;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,mDAapD,CAAC;AAEF,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { cn as
|
|
3
|
-
const
|
|
1
|
+
import { jsxs as n, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { cn as a } from "../../utils/cn.js";
|
|
3
|
+
const l = ({ children: e, prefix: r, className: d }) => /* @__PURE__ */ n(
|
|
4
4
|
"div",
|
|
5
5
|
{
|
|
6
|
-
className:
|
|
7
|
-
"flex items-center gap-1 break-all rounded-md bg-
|
|
8
|
-
|
|
6
|
+
className: a(
|
|
7
|
+
"flex items-center gap-1 break-all rounded-md bg-stone-100/50 px-2 py-0.5 font-medium text-stone-600 dark:bg-white/5 dark:text-stone-200",
|
|
8
|
+
d
|
|
9
9
|
),
|
|
10
10
|
"data-component-part": "field-info-pill",
|
|
11
11
|
children: [
|
|
12
|
-
|
|
13
|
-
/* @__PURE__ */
|
|
12
|
+
r && /* @__PURE__ */ t("span", { className: "text-stone-400 dark:text-stone-500", children: r }),
|
|
13
|
+
/* @__PURE__ */ t("span", { children: e })
|
|
14
14
|
]
|
|
15
15
|
}
|
|
16
|
-
),
|
|
16
|
+
), p = ({ label: e }) => e ? /* @__PURE__ */ t(
|
|
17
17
|
"div",
|
|
18
18
|
{
|
|
19
19
|
className: "whitespace-nowrap rounded-md bg-red-100/50 px-2 py-0.5 font-medium text-red-600 dark:bg-red-400/10 dark:text-red-300",
|
|
20
20
|
"data-component-part": "field-required-pill",
|
|
21
21
|
children: e
|
|
22
22
|
}
|
|
23
|
-
) : null,
|
|
23
|
+
) : null, m = ({ label: e }) => e ? /* @__PURE__ */ t(
|
|
24
24
|
"div",
|
|
25
25
|
{
|
|
26
26
|
className: "whitespace-nowrap rounded-md bg-amber-100/50 px-2 py-0.5 font-medium text-amber-600 dark:bg-amber-400/10 dark:text-amber-300",
|
|
@@ -29,7 +29,7 @@ const p = ({ children: e, prefix: t, className: a }) => /* @__PURE__ */ d(
|
|
|
29
29
|
}
|
|
30
30
|
) : null;
|
|
31
31
|
export {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
m as DeprecatedPill,
|
|
33
|
+
l as InfoPill,
|
|
34
|
+
p as RequiredPill
|
|
35
35
|
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
type PropertyProps = {
|
|
3
|
+
name: string;
|
|
4
|
+
type: string;
|
|
5
|
+
location?: string;
|
|
6
|
+
hidden?: boolean;
|
|
7
|
+
default?: unknown;
|
|
8
|
+
required?: boolean;
|
|
9
|
+
deprecated?: boolean;
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
id?: string;
|
|
12
|
+
pre?: string[];
|
|
13
|
+
post?: string[];
|
|
14
|
+
className?: string;
|
|
15
|
+
onMount?: () => void;
|
|
16
|
+
navigateToHeaderAriaLabel?: string;
|
|
17
|
+
defaultLabel?: string;
|
|
18
|
+
requiredLabel?: string;
|
|
19
|
+
deprecatedLabel?: string;
|
|
20
|
+
};
|
|
21
|
+
declare const Property: ({ name, type, location, hidden, default: defaultValue, required, deprecated, children, id, pre, post, className, onMount, navigateToHeaderAriaLabel, defaultLabel, requiredLabel, deprecatedLabel, }: PropertyProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
22
|
+
export { Property };
|
|
23
|
+
export type { PropertyProps };
|
|
24
|
+
//# sourceMappingURL=property.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"property.d.ts","sourceRoot":"","sources":["../../../src/components/property/property.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAW,MAAM,OAAO,CAAC;AAMhD,KAAK,aAAa,GAAG;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,SAAS,CAAC;IACpB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAOF,QAAA,MAAM,QAAQ,GAAI,sMAkBf,aAAa,mDAmEf,CAAC;AAEF,OAAO,EAAE,QAAQ,EAAE,CAAC;AACpB,YAAY,EAAE,aAAa,EAAE,CAAC"}
|