@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.
Files changed (237) hide show
  1. package/dist/components/accordion/accordion-cover.d.ts +12 -0
  2. package/dist/components/accordion/accordion-cover.d.ts.map +1 -0
  3. package/dist/components/accordion/accordion-cover.js +28 -28
  4. package/dist/components/accordion/accordion-group.d.ts +9 -0
  5. package/dist/components/accordion/accordion-group.d.ts.map +1 -0
  6. package/dist/components/accordion/accordion-group.js +1 -1
  7. package/dist/components/accordion/accordion-url-utils.d.ts +5 -0
  8. package/dist/components/accordion/accordion-url-utils.d.ts.map +1 -0
  9. package/dist/components/accordion/accordion.d.ts +35 -0
  10. package/dist/components/accordion/accordion.d.ts.map +1 -0
  11. package/dist/components/accordion/accordion.js +72 -65
  12. package/dist/components/accordion/index.d.ts +7 -0
  13. package/dist/components/accordion/index.d.ts.map +1 -0
  14. package/dist/components/badge/badge.d.ts +29 -0
  15. package/dist/components/badge/badge.d.ts.map +1 -0
  16. package/dist/components/badge/badge.js +18 -18
  17. package/dist/components/badge/index.d.ts +3 -0
  18. package/dist/components/badge/index.d.ts.map +1 -0
  19. package/dist/components/callout/callout.d.ts +24 -0
  20. package/dist/components/callout/callout.d.ts.map +1 -0
  21. package/dist/components/callout/callout.js +46 -46
  22. package/dist/components/callout/index.d.ts +3 -0
  23. package/dist/components/callout/index.d.ts.map +1 -0
  24. package/dist/components/card/card.d.ts +34 -0
  25. package/dist/components/card/card.d.ts.map +1 -0
  26. package/dist/components/card/card.js +59 -59
  27. package/dist/components/card/index.d.ts +3 -0
  28. package/dist/components/card/index.d.ts.map +1 -0
  29. package/dist/components/code-block/base-code-block.d.ts +9 -0
  30. package/dist/components/code-block/base-code-block.d.ts.map +1 -0
  31. package/dist/components/code-block/code-block.d.ts +74 -0
  32. package/dist/components/code-block/code-block.d.ts.map +1 -0
  33. package/dist/components/code-block/code-block.js +34 -34
  34. package/dist/components/code-block/code-footer.d.ts +8 -0
  35. package/dist/components/code-block/code-footer.d.ts.map +1 -0
  36. package/dist/components/code-block/code-footer.js +9 -9
  37. package/dist/components/code-block/code-header.d.ts +11 -0
  38. package/dist/components/code-block/code-header.d.ts.map +1 -0
  39. package/dist/components/code-block/code-header.js +20 -20
  40. package/dist/components/code-block/copy-button.d.ts +16 -0
  41. package/dist/components/code-block/copy-button.d.ts.map +1 -0
  42. package/dist/components/code-block/index.d.ts +5 -0
  43. package/dist/components/code-block/index.d.ts.map +1 -0
  44. package/dist/components/code-block/story-utils.d.ts +13 -0
  45. package/dist/components/code-block/story-utils.d.ts.map +1 -0
  46. package/dist/components/code-group/code-group.d.ts +23 -0
  47. package/dist/components/code-group/code-group.d.ts.map +1 -0
  48. package/dist/components/code-group/code-group.js +72 -72
  49. package/dist/components/code-group/code-select-dropdown.d.ts +10 -0
  50. package/dist/components/code-group/code-select-dropdown.d.ts.map +1 -0
  51. package/dist/components/code-group/code-snippet.d.ts +13 -0
  52. package/dist/components/code-group/code-snippet.d.ts.map +1 -0
  53. package/dist/components/code-group/dropdown.d.ts +34 -0
  54. package/dist/components/code-group/dropdown.d.ts.map +1 -0
  55. package/dist/components/code-group/dropdown.js +47 -47
  56. package/dist/components/code-group/index.d.ts +3 -0
  57. package/dist/components/code-group/index.d.ts.map +1 -0
  58. package/dist/components/code-group/language-dropdown.d.ts +10 -0
  59. package/dist/components/code-group/language-dropdown.d.ts.map +1 -0
  60. package/dist/components/code-group/language-dropdown.js +39 -39
  61. package/dist/components/code-group/language-icon.d.ts +7 -0
  62. package/dist/components/code-group/language-icon.d.ts.map +1 -0
  63. package/dist/components/color/color.d.ts +28 -0
  64. package/dist/components/color/color.d.ts.map +1 -0
  65. package/dist/components/color/color.js +37 -37
  66. package/dist/components/color/constants.d.ts +5 -0
  67. package/dist/components/color/constants.d.ts.map +1 -0
  68. package/dist/components/color/index.d.ts +4 -0
  69. package/dist/components/color/index.d.ts.map +1 -0
  70. package/dist/components/columns/columns.d.ts +11 -0
  71. package/dist/components/columns/columns.d.ts.map +1 -0
  72. package/dist/components/columns/constants.d.ts +5 -0
  73. package/dist/components/columns/constants.d.ts.map +1 -0
  74. package/dist/components/columns/index.d.ts +3 -0
  75. package/dist/components/columns/index.d.ts.map +1 -0
  76. package/dist/components/expandable/expandable.d.ts +21 -0
  77. package/dist/components/expandable/expandable.d.ts.map +1 -0
  78. package/dist/components/expandable/expandable.js +46 -46
  79. package/dist/components/expandable/index.d.ts +3 -0
  80. package/dist/components/expandable/index.d.ts.map +1 -0
  81. package/dist/components/frame/frame.d.ts +14 -0
  82. package/dist/components/frame/frame.d.ts.map +1 -0
  83. package/dist/components/frame/frame.js +21 -21
  84. package/dist/components/frame/index.d.ts +3 -0
  85. package/dist/components/frame/index.d.ts.map +1 -0
  86. package/dist/components/icon/icon.d.ts +19 -0
  87. package/dist/components/icon/icon.d.ts.map +1 -0
  88. package/dist/components/icon/icon.js +24 -24
  89. package/dist/components/icon/index.d.ts +3 -0
  90. package/dist/components/icon/index.d.ts.map +1 -0
  91. package/dist/components/index.d.ts +22 -0
  92. package/dist/components/index.d.ts.map +1 -0
  93. package/dist/components/mermaid/index.d.ts +7 -0
  94. package/dist/components/mermaid/index.d.ts.map +1 -0
  95. package/dist/components/mermaid/mermaid.d.ts +12 -0
  96. package/dist/components/mermaid/mermaid.d.ts.map +1 -0
  97. package/dist/components/mermaid/mermaid.js +38 -31
  98. package/dist/components/mermaid/use-pan-zoom.d.ts +13 -0
  99. package/dist/components/mermaid/use-pan-zoom.d.ts.map +1 -0
  100. package/dist/components/mermaid/zoom-controls.d.ts +13 -0
  101. package/dist/components/mermaid/zoom-controls.d.ts.map +1 -0
  102. package/dist/components/mermaid/zoom-controls.js +32 -32
  103. package/dist/components/panel/index.d.ts +3 -0
  104. package/dist/components/panel/index.d.ts.map +1 -0
  105. package/dist/components/panel/panel.d.ts +6 -0
  106. package/dist/components/panel/panel.d.ts.map +1 -0
  107. package/dist/components/property/index.d.ts +3 -0
  108. package/dist/components/property/index.d.ts.map +1 -0
  109. package/dist/components/property/param-head.d.ts +5 -0
  110. package/dist/components/property/param-head.d.ts.map +1 -0
  111. package/dist/components/property/param-head.js +40 -40
  112. package/dist/components/property/pills.d.ts +15 -0
  113. package/dist/components/property/pills.d.ts.map +1 -0
  114. package/dist/components/property/pills.js +13 -13
  115. package/dist/components/property/property.d.ts +24 -0
  116. package/dist/components/property/property.d.ts.map +1 -0
  117. package/dist/components/property/property.js +33 -33
  118. package/dist/components/steps/constants.d.ts +5 -0
  119. package/dist/components/steps/constants.d.ts.map +1 -0
  120. package/dist/components/steps/index.d.ts +5 -0
  121. package/dist/components/steps/index.d.ts.map +1 -0
  122. package/dist/components/steps/steps.d.ts +35 -0
  123. package/dist/components/steps/steps.d.ts.map +1 -0
  124. package/dist/components/steps/steps.js +157 -59
  125. package/dist/components/tabs/index.d.ts +3 -0
  126. package/dist/components/tabs/index.d.ts.map +1 -0
  127. package/dist/components/tabs/tabs.d.ts +36 -0
  128. package/dist/components/tabs/tabs.d.ts.map +1 -0
  129. package/dist/components/tabs/tabs.js +84 -78
  130. package/dist/components/tile/index.d.ts +3 -0
  131. package/dist/components/tile/index.d.ts.map +1 -0
  132. package/dist/components/tile/tile.d.ts +11 -0
  133. package/dist/components/tile/tile.d.ts.map +1 -0
  134. package/dist/components/tile/tile.js +27 -27
  135. package/dist/components/tooltip/index.d.ts +3 -0
  136. package/dist/components/tooltip/index.d.ts.map +1 -0
  137. package/dist/components/tooltip/tooltip.d.ts +14 -0
  138. package/dist/components/tooltip/tooltip.d.ts.map +1 -0
  139. package/dist/components/tooltip/tooltip.js +95 -84
  140. package/dist/components/tree/context.d.ts +9 -0
  141. package/dist/components/tree/context.d.ts.map +1 -0
  142. package/dist/components/tree/file.d.ts +7 -0
  143. package/dist/components/tree/file.d.ts.map +1 -0
  144. package/dist/components/tree/file.js +9 -9
  145. package/dist/components/tree/folder.d.ts +11 -0
  146. package/dist/components/tree/folder.d.ts.map +1 -0
  147. package/dist/components/tree/folder.js +21 -21
  148. package/dist/components/tree/index.d.ts +9 -0
  149. package/dist/components/tree/index.d.ts.map +1 -0
  150. package/dist/components/tree/root.d.ts +9 -0
  151. package/dist/components/tree/root.d.ts.map +1 -0
  152. package/dist/components/tree/tree-level-context.d.ts +8 -0
  153. package/dist/components/tree/tree-level-context.d.ts.map +1 -0
  154. package/dist/components/tree/use-tree-level.d.ts +3 -0
  155. package/dist/components/tree/use-tree-level.d.ts.map +1 -0
  156. package/dist/components/tree/utils.d.ts +9 -0
  157. package/dist/components/tree/utils.d.ts.map +1 -0
  158. package/dist/components/update/index.d.ts +3 -0
  159. package/dist/components/update/index.d.ts.map +1 -0
  160. package/dist/components/update/update.d.ts +22 -0
  161. package/dist/components/update/update.d.ts.map +1 -0
  162. package/dist/components/update/update.js +21 -21
  163. package/dist/components/view/index.d.ts +3 -0
  164. package/dist/components/view/index.d.ts.map +1 -0
  165. package/dist/components/view/view.d.ts +12 -0
  166. package/dist/components/view/view.d.ts.map +1 -0
  167. package/dist/components/view/view.js +29 -23
  168. package/dist/constants/brands.d.ts +3 -0
  169. package/dist/constants/brands.d.ts.map +1 -0
  170. package/dist/constants/index.d.ts +7 -0
  171. package/dist/constants/index.d.ts.map +1 -0
  172. package/dist/constants/selectors.d.ts +126 -0
  173. package/dist/constants/selectors.d.ts.map +1 -0
  174. package/dist/hooks/index.d.ts +2 -0
  175. package/dist/hooks/index.d.ts.map +1 -0
  176. package/dist/hooks/use-expandable-memory.d.ts +8 -0
  177. package/dist/hooks/use-expandable-memory.d.ts.map +1 -0
  178. package/dist/hooks/use-expandable.d.ts +13 -0
  179. package/dist/hooks/use-expandable.d.ts.map +1 -0
  180. package/dist/hooks/use-get-shiki-highlighted-html.d.ts +4 -0
  181. package/dist/hooks/use-get-shiki-highlighted-html.d.ts.map +1 -0
  182. package/dist/hooks/use-has-hover.d.ts +3 -0
  183. package/dist/hooks/use-has-hover.d.ts.map +1 -0
  184. package/dist/hooks/use-is-dark-theme.d.ts +5 -0
  185. package/dist/hooks/use-is-dark-theme.d.ts.map +1 -0
  186. package/dist/hooks/use-isomorphic-layout-effect.d.ts +4 -0
  187. package/dist/hooks/use-isomorphic-layout-effect.d.ts.map +1 -0
  188. package/dist/icons/index.d.ts +21 -0
  189. package/dist/icons/index.d.ts.map +1 -0
  190. package/dist/icons/index.js +2 -2
  191. package/dist/index.d.ts +3 -565
  192. package/dist/index.d.ts.map +1 -0
  193. package/dist/plugins/bg-grid.d.ts +3 -0
  194. package/dist/plugins/bg-grid.d.ts.map +1 -0
  195. package/dist/plugins/scrollbar.d.ts +3 -0
  196. package/dist/plugins/scrollbar.d.ts.map +1 -0
  197. package/dist/styles.css +2 -0
  198. package/dist/utils/cn.d.ts +4 -0
  199. package/dist/utils/cn.d.ts.map +1 -0
  200. package/dist/utils/copy-to-clipboard.d.ts +5 -0
  201. package/dist/utils/copy-to-clipboard.d.ts.map +1 -0
  202. package/dist/utils/enhance-video-props.d.ts +4 -0
  203. package/dist/utils/enhance-video-props.d.ts.map +1 -0
  204. package/dist/utils/get-node-text.d.ts +3 -0
  205. package/dist/utils/get-node-text.d.ts.map +1 -0
  206. package/dist/utils/icon-utils.d.ts +19 -0
  207. package/dist/utils/icon-utils.d.ts.map +1 -0
  208. package/dist/utils/is-absolute-url.d.ts +5 -0
  209. package/dist/utils/is-absolute-url.d.ts.map +1 -0
  210. package/dist/utils/is-remote-url.d.ts +3 -0
  211. package/dist/utils/is-remote-url.d.ts.map +1 -0
  212. package/dist/utils/make-marker-ids-unique.d.ts +3 -0
  213. package/dist/utils/make-marker-ids-unique.d.ts.map +1 -0
  214. package/dist/utils/make-marker-ids-unique.js +42 -0
  215. package/dist/utils/render-as-child.d.ts +4 -0
  216. package/dist/utils/render-as-child.d.ts.map +1 -0
  217. package/dist/utils/shiki/code-styling.d.ts +12 -0
  218. package/dist/utils/shiki/code-styling.d.ts.map +1 -0
  219. package/dist/utils/shiki/constants.d.ts +23 -0
  220. package/dist/utils/shiki/constants.d.ts.map +1 -0
  221. package/dist/utils/shiki/get-code-styling.d.ts +10 -0
  222. package/dist/utils/shiki/get-code-styling.d.ts.map +1 -0
  223. package/dist/utils/shiki/get-shiki-background-colors.d.ts +21 -0
  224. package/dist/utils/shiki/get-shiki-background-colors.d.ts.map +1 -0
  225. package/dist/utils/shiki/index.d.ts +31 -0
  226. package/dist/utils/shiki/index.d.ts.map +1 -0
  227. package/dist/utils/shiki/lib.d.ts +6 -0
  228. package/dist/utils/shiki/lib.d.ts.map +1 -0
  229. package/dist/utils/shiki/shiki-themes.d.ts +3 -0
  230. package/dist/utils/shiki/shiki-themes.d.ts.map +1 -0
  231. package/dist/utils/shiki/snippet-presets.d.ts +28 -0
  232. package/dist/utils/shiki/snippet-presets.d.ts.map +1 -0
  233. package/dist/utils/shiki/worker-client.d.ts +10 -0
  234. package/dist/utils/shiki/worker-client.d.ts.map +1 -0
  235. package/dist/utils/slugify.d.ts +3 -0
  236. package/dist/utils/slugify.d.ts.map +1 -0
  237. 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 T, useId as F, useEffect as c } from "react";
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 Z } from "../../hooks/use-is-dark-theme.js";
5
+ import { useIsDarkTheme as H } from "../../hooks/use-is-dark-theme.js";
6
6
  import { cn as I } from "../../utils/cn.js";
7
- import { usePanZoom as D } from "./use-pan-zoom.js";
8
- import { ZoomControls as H } from "./zoom-controls.js";
9
- const L = 120, K = ({
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: O = "Mermaid diagram",
13
- placement: w = "bottom-right",
13
+ ariaLabel: T = "Mermaid diagram",
14
+ placement: k = "bottom-right",
14
15
  actions: o
15
16
  }) => {
16
- const [R, p] = l(""), [h, a] = l(null), [k, E] = l(!1), g = T(null), v = F(), { isDarkTheme: b } = Z(), { style: M, zoomIn: S, zoomOut: _, reset: s, pan: z, panStep: N } = D();
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: i } = await C.render(r, u, e);
31
- t || (p(i), a(null));
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 i = r instanceof Error ? r.message : "Failed to render diagram";
35
- a(i), p("");
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 = g.current;
53
+ const t = h.current;
47
54
  if (!t)
48
55
  return;
49
- const d = new ResizeObserver((m) => {
56
+ const i = new ResizeObserver((m) => {
50
57
  for (const e of m) {
51
58
  const r = e.contentRect.height;
52
- E(r >= L);
59
+ w(r >= j);
53
60
  }
54
61
  });
55
- return d.observe(t), () => {
56
- d.disconnect();
62
+ return i.observe(t), () => {
63
+ i.disconnect();
57
64
  };
58
- }, [o]), h ? /* @__PURE__ */ y(
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: h })
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 && k) && /* @__PURE__ */ n(
83
- H,
89
+ (o === !0 || o === void 0 && _) && /* @__PURE__ */ n(
90
+ q,
84
91
  {
85
- onPan: z,
92
+ onPan: S,
86
93
  onReset: s,
87
- onZoomIn: S,
88
- onZoomOut: _,
94
+ onZoomIn: M,
95
+ onZoomOut: R,
89
96
  panStep: N,
90
- placement: w
97
+ placement: k
91
98
  }
92
99
  ),
93
100
  /* @__PURE__ */ n(
94
101
  "div",
95
102
  {
96
- "aria-label": O,
97
- dangerouslySetInnerHTML: { __html: R },
103
+ "aria-label": T,
104
+ dangerouslySetInnerHTML: { __html: O },
98
105
  "data-component-part": "mermaid-diagram",
99
- ref: g,
106
+ ref: h,
100
107
  role: "img",
101
- style: M
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
- K as Mermaid
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 r } from "react/jsx-runtime";
1
+ import { jsxs as m, jsx as t } from "react/jsx-runtime";
2
2
  import { cn as d } from "../../utils/cn.js";
3
- import h 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 s from "../../node_modules/.pnpm/lucide-react@0.453.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/zoom-in.js";
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 g 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 f 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 t = ({
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__ */ r(
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-gray-200 bg-white text-gray-900 transition-[transform] duration-100 hover:bg-gray-50 motion-safe:active:scale-95 dark:border-white/10 dark:bg-gray-900 dark:text-white dark:hover:bg-gray-800 [&_svg]:size-4",
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
- ), P = ({
25
+ ), N = ({
26
26
  onZoomIn: a,
27
27
  onZoomOut: n,
28
28
  onReset: l,
29
- onPan: o,
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__ */ r("div", { "aria-hidden": "true", className: "pointer-events-none" }),
49
- /* @__PURE__ */ r(
50
- t,
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: () => o(0, e),
53
+ onClick: () => r(0, e),
54
54
  title: "Pan up",
55
- children: /* @__PURE__ */ r(h, { "aria-hidden": "true" })
55
+ children: /* @__PURE__ */ t(s, { "aria-hidden": "true" })
56
56
  }
57
57
  ),
58
- /* @__PURE__ */ r(t, { "aria-label": "Zoom in", onClick: a, title: "Zoom in", children: /* @__PURE__ */ r(s, { "aria-hidden": "true" }) }),
59
- /* @__PURE__ */ r(
60
- t,
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: () => o(e, 0),
63
+ onClick: () => r(e, 0),
64
64
  title: "Pan left",
65
- children: /* @__PURE__ */ r(c, { "aria-hidden": "true" })
65
+ children: /* @__PURE__ */ t(c, { "aria-hidden": "true" })
66
66
  }
67
67
  ),
68
- /* @__PURE__ */ r(t, { "aria-label": "Reset view", onClick: l, title: "Reset view", children: /* @__PURE__ */ r(u, { "aria-hidden": "true" }) }),
69
- /* @__PURE__ */ r(
70
- t,
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: () => o(-e, 0),
73
+ onClick: () => r(-e, 0),
74
74
  title: "Pan right",
75
- children: /* @__PURE__ */ r(b, { "aria-hidden": "true" })
75
+ children: /* @__PURE__ */ t(b, { "aria-hidden": "true" })
76
76
  }
77
77
  ),
78
- /* @__PURE__ */ r("div", { "aria-hidden": "true", className: "pointer-events-none" }),
79
- /* @__PURE__ */ r(
80
- t,
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: () => o(0, -e),
83
+ onClick: () => r(0, -e),
84
84
  title: "Pan down",
85
- children: /* @__PURE__ */ r(g, { "aria-hidden": "true" })
85
+ children: /* @__PURE__ */ t(f, { "aria-hidden": "true" })
86
86
  }
87
87
  ),
88
- /* @__PURE__ */ r(t, { "aria-label": "Zoom out", onClick: n, title: "Zoom out", children: /* @__PURE__ */ r(f, { "aria-hidden": "true" }) })
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
- P as ZoomControls
94
+ N as ZoomControls
95
95
  };
@@ -0,0 +1,3 @@
1
+ export type { PanelProps } from './panel';
2
+ export { Panel } from './panel';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -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,3 @@
1
+ export type { PropertyProps } from './property';
2
+ export { Property } from './property';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -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 s } from "react/jsx-runtime";
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 y } from "../../utils/cn.js";
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: n,
9
+ name: o,
10
10
  type: m,
11
11
  location: p,
12
- required: k,
13
- deprecated: b,
14
- default: t,
15
- id: x,
16
- pre: o,
17
- post: d,
18
- onMount: l,
19
- navigateToHeaderAriaLabel: v,
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 = x ?? P(n ?? "", { decamelize: !0 }), g = j(() => {
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 a = () => {
31
+ const t = () => {
32
32
  const L = (r == null ? void 0 : r.offsetHeight) ?? 0;
33
33
  I(L > 28);
34
34
  };
35
- a();
36
- const h = new ResizeObserver(a);
37
- return h.observe(r), () => {
38
- h.unobserve(r);
35
+ t();
36
+ const g = new ResizeObserver(t);
37
+ return g.observe(r), () => {
38
+ g.unobserve(r);
39
39
  };
40
40
  }, []), u(() => {
41
- l == null || l();
42
- }, [l]), n == null ? null : /* @__PURE__ */ e(
41
+ n == null || n();
42
+ }, [n]), o == null ? null : /* @__PURE__ */ e(
43
43
  "div",
44
44
  {
45
- className: y(
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__ */ s("div", { className: "flex flex-wrap items-center gap-2", children: [
50
- i && /* @__PURE__ */ e("div", { className: "absolute -top-1.5 -left-9", children: /* @__PURE__ */ s(
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": v,
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: g,
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-gray-400 shadow-sm ring-1 ring-gray-400/30 hover:ring-gray-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-gray-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, {}) })
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
- o == null ? void 0 : o.map((r, a) => /* @__PURE__ */ e(
63
+ s == null ? void 0 : s.map((r, t) => /* @__PURE__ */ e(
64
64
  "div",
65
65
  {
66
- className: "rounded-md bg-gray-100/50 px-2 py-0.5 text-gray-600 dark:bg-white/5 dark:text-gray-200",
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
- a
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: g,
78
- children: n
77
+ onClick: h,
78
+ children: o
79
79
  }
80
80
  ),
81
- /* @__PURE__ */ s(
81
+ /* @__PURE__ */ d(
82
82
  "div",
83
83
  {
84
- className: y(
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
- t != null && /* @__PURE__ */ e(c, { prefix: w, children: typeof t == "string" ? (
93
+ a != null && /* @__PURE__ */ e(c, { prefix: w, children: typeof a == "string" ? (
94
94
  // biome-ignore lint/style/noNestedTernary: TODO
95
- t === "" ? '""' : t
96
- ) : JSON.stringify(t) }),
97
- k && /* @__PURE__ */ e($, { label: N }),
98
- b && /* @__PURE__ */ e(S, { label: z }),
99
- d == null ? void 0 : d.map((r, a) => /* @__PURE__ */ e(
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-gray-100/50 px-2 py-0.5 text-gray-600 dark:bg-white/5 dark:text-gray-200",
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
- a
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 d, jsx as r } from "react/jsx-runtime";
2
- import { cn as n } from "../../utils/cn.js";
3
- const p = ({ children: e, prefix: t, className: a }) => /* @__PURE__ */ d(
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: n(
7
- "flex items-center gap-1 break-all rounded-md bg-gray-100/50 px-2 py-0.5 font-medium text-gray-600 dark:bg-white/5 dark:text-gray-200",
8
- a
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
- t && /* @__PURE__ */ r("span", { className: "text-gray-400 dark:text-gray-500", children: t }),
13
- /* @__PURE__ */ r("span", { children: e })
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
- ), m = ({ label: e }) => e ? /* @__PURE__ */ r(
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, o = ({ label: e }) => e ? /* @__PURE__ */ r(
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
- o as DeprecatedPill,
33
- p as InfoPill,
34
- m as RequiredPill
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"}