@kubb/renderer-jsx 5.0.0-alpha.33
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/LICENSE +14 -0
- package/dist/chunk-CErwXX-a.js +28 -0
- package/dist/index.cjs +18090 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +330 -0
- package/dist/index.js +18075 -0
- package/dist/index.js.map +1 -0
- package/dist/jsx-dev-runtime.cjs +11 -0
- package/dist/jsx-dev-runtime.cjs.map +1 -0
- package/dist/jsx-dev-runtime.d.ts +14 -0
- package/dist/jsx-dev-runtime.js +10 -0
- package/dist/jsx-dev-runtime.js.map +1 -0
- package/dist/jsx-namespace-Cx1KMEbe.d.ts +39 -0
- package/dist/jsx-runtime-CeMde2cR.cjs +1503 -0
- package/dist/jsx-runtime-CeMde2cR.cjs.map +1 -0
- package/dist/jsx-runtime-Dmf9wTKR.js +1448 -0
- package/dist/jsx-runtime-Dmf9wTKR.js.map +1 -0
- package/dist/jsx-runtime.cjs +15 -0
- package/dist/jsx-runtime.cjs.map +1 -0
- package/dist/jsx-runtime.d.ts +16 -0
- package/dist/jsx-runtime.js +12 -0
- package/dist/jsx-runtime.js.map +1 -0
- package/dist/types-C7FD9BLg.d.ts +119 -0
- package/dist/types.cjs +0 -0
- package/dist/types.d.ts +2 -0
- package/dist/types.js +1 -0
- package/package.json +121 -0
- package/src/Renderer.ts +184 -0
- package/src/Runtime.tsx +171 -0
- package/src/components/Const.tsx +44 -0
- package/src/components/File.tsx +106 -0
- package/src/components/Function.tsx +107 -0
- package/src/components/Jsx.tsx +34 -0
- package/src/components/Root.tsx +64 -0
- package/src/components/Type.tsx +40 -0
- package/src/context/KubbContext.ts +15 -0
- package/src/context/OasContext.ts +9 -0
- package/src/createRenderer.tsx +32 -0
- package/src/dom.ts +91 -0
- package/src/globals.ts +34 -0
- package/src/index.ts +10 -0
- package/src/jsx-dev-runtime.ts +10 -0
- package/src/jsx-namespace.d.ts +53 -0
- package/src/jsx-runtime.ts +12 -0
- package/src/types.ts +113 -0
- package/src/utils.ts +301 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_jsx_runtime$1 = require("./jsx-runtime-CeMde2cR.cjs");
|
|
3
|
+
//#region src/jsx-dev-runtime.ts
|
|
4
|
+
var import_jsx_runtime = /* @__PURE__ */ require_jsx_runtime$1.__toESM(require_jsx_runtime$1.require_jsx_runtime(), 1);
|
|
5
|
+
const Fragment = import_jsx_runtime.Fragment;
|
|
6
|
+
const jsxDEV = import_jsx_runtime.jsx;
|
|
7
|
+
//#endregion
|
|
8
|
+
exports.Fragment = Fragment;
|
|
9
|
+
exports.jsxDEV = jsxDEV;
|
|
10
|
+
|
|
11
|
+
//# sourceMappingURL=jsx-dev-runtime.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jsx-dev-runtime.cjs","names":[],"sources":["../src/jsx-dev-runtime.ts"],"sourcesContent":["import * as React from 'react/jsx-runtime'\nimport type { KubbReactElement, KubbReactNode } from './types.ts'\n\nexport const Fragment = React.Fragment\nexport const jsxDEV = React.jsx\n\nexport type * from './jsx-namespace.d.ts'\n\nexport type JSXElement = KubbReactElement\nexport type ReactNode = KubbReactNode\n"],"mappings":";;;;AAGA,MAAa,WAAA,mBAAiB;AAC9B,MAAa,SAAA,mBAAe"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { n as __name } from "./chunk-CErwXX-a.js";
|
|
2
|
+
import { h as KubbReactNode, m as KubbReactElement } from "./types-C7FD9BLg.js";
|
|
3
|
+
import { t as JSX } from "./jsx-namespace-Cx1KMEbe.js";
|
|
4
|
+
import * as _$react from "react";
|
|
5
|
+
import * as React$1 from "react/jsx-runtime";
|
|
6
|
+
|
|
7
|
+
//#region src/jsx-dev-runtime.d.ts
|
|
8
|
+
declare const Fragment: _$react.ExoticComponent<_$react.FragmentProps>;
|
|
9
|
+
declare const jsxDEV: typeof React$1.jsx;
|
|
10
|
+
type JSXElement = KubbReactElement;
|
|
11
|
+
type ReactNode = KubbReactNode;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { Fragment, JSX, JSXElement, ReactNode, jsxDEV };
|
|
14
|
+
//# sourceMappingURL=jsx-dev-runtime.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { r as __toESM } from "./chunk-CErwXX-a.js";
|
|
2
|
+
import { t as require_jsx_runtime } from "./jsx-runtime-Dmf9wTKR.js";
|
|
3
|
+
//#region src/jsx-dev-runtime.ts
|
|
4
|
+
var import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime(), 1);
|
|
5
|
+
const Fragment = import_jsx_runtime.Fragment;
|
|
6
|
+
const jsxDEV = import_jsx_runtime.jsx;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { Fragment, jsxDEV };
|
|
9
|
+
|
|
10
|
+
//# sourceMappingURL=jsx-dev-runtime.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jsx-dev-runtime.js","names":[],"sources":["../src/jsx-dev-runtime.ts"],"sourcesContent":["import * as React from 'react/jsx-runtime'\nimport type { KubbReactElement, KubbReactNode } from './types.ts'\n\nexport const Fragment = React.Fragment\nexport const jsxDEV = React.jsx\n\nexport type * from './jsx-namespace.d.ts'\n\nexport type JSXElement = KubbReactElement\nexport type ReactNode = KubbReactNode\n"],"mappings":";;;;AAGA,MAAa,WAAA,mBAAiB;AAC9B,MAAa,SAAA,mBAAe"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { n as __name } from "./chunk-CErwXX-a.js";
|
|
2
|
+
import { _ as KubbTextProps, c as KubbConstProps, d as KubbFunctionProps, f as KubbImportProps, g as KubbSourceProps, h as KubbReactNode, l as KubbExportProps, m as KubbReactElement, p as KubbJsxProps, s as KubbArrowFunctionProps, u as KubbFileProps, v as KubbTypeProps, y as LineBreakProps } from "./types-C7FD9BLg.js";
|
|
3
|
+
import React from "react";
|
|
4
|
+
|
|
5
|
+
//#region src/jsx-namespace.d.ts
|
|
6
|
+
declare namespace JSX$1 {
|
|
7
|
+
type ElementType = React.JSX.ElementType;
|
|
8
|
+
type Element = KubbReactElement;
|
|
9
|
+
interface ElementClass extends React.JSX.ElementClass {
|
|
10
|
+
render(): KubbReactNode;
|
|
11
|
+
}
|
|
12
|
+
interface ElementAttributesProperty {
|
|
13
|
+
props: {};
|
|
14
|
+
}
|
|
15
|
+
interface ElementChildrenAttribute {
|
|
16
|
+
children: {};
|
|
17
|
+
}
|
|
18
|
+
interface IntrinsicElements extends React.JSX.IntrinsicElements {
|
|
19
|
+
'kubb-jsx': KubbJsxProps;
|
|
20
|
+
'kubb-text': KubbTextProps;
|
|
21
|
+
'kubb-file': KubbFileProps;
|
|
22
|
+
'kubb-source': KubbSourceProps;
|
|
23
|
+
'kubb-import': KubbImportProps;
|
|
24
|
+
'kubb-export': KubbExportProps;
|
|
25
|
+
'kubb-function': KubbFunctionProps;
|
|
26
|
+
'kubb-arrow-function': KubbArrowFunctionProps;
|
|
27
|
+
'kubb-const': KubbConstProps;
|
|
28
|
+
'kubb-type': KubbTypeProps;
|
|
29
|
+
br: LineBreakProps;
|
|
30
|
+
indent: {};
|
|
31
|
+
dedent: {};
|
|
32
|
+
}
|
|
33
|
+
type LibraryManagedAttributes<C, P> = React.JSX.LibraryManagedAttributes<C, P>;
|
|
34
|
+
interface IntrinsicClassAttributes<T> extends React.JSX.IntrinsicClassAttributes<T> {}
|
|
35
|
+
interface IntrinsicElements extends React.JSX.IntrinsicElements {}
|
|
36
|
+
}
|
|
37
|
+
//#endregion
|
|
38
|
+
export { JSX$1 as t };
|
|
39
|
+
//# sourceMappingURL=jsx-namespace-Cx1KMEbe.d.ts.map
|