@kubb/react-fabric 0.0.0-canary-20251020201500

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 (73) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +52 -0
  3. package/dist/devtools.cjs +10817 -0
  4. package/dist/devtools.cjs.map +1 -0
  5. package/dist/devtools.d.cts +1 -0
  6. package/dist/devtools.d.ts +1 -0
  7. package/dist/devtools.js +10817 -0
  8. package/dist/devtools.js.map +1 -0
  9. package/dist/globals-8sJ940pg.cjs +0 -0
  10. package/dist/globals-C6rGETh5.d.ts +166 -0
  11. package/dist/globals-CnATk-Sl.d.cts +166 -0
  12. package/dist/globals-Df5klKjG.js +1 -0
  13. package/dist/globals.cjs +1 -0
  14. package/dist/globals.d.cts +2 -0
  15. package/dist/globals.d.ts +2 -0
  16. package/dist/globals.js +3 -0
  17. package/dist/index.cjs +15924 -0
  18. package/dist/index.cjs.map +1 -0
  19. package/dist/index.d.cts +331 -0
  20. package/dist/index.d.ts +331 -0
  21. package/dist/index.js +15899 -0
  22. package/dist/index.js.map +1 -0
  23. package/dist/jsx-dev-runtime.cjs +9 -0
  24. package/dist/jsx-dev-runtime.d.cts +13 -0
  25. package/dist/jsx-dev-runtime.d.ts +13 -0
  26. package/dist/jsx-dev-runtime.js +6 -0
  27. package/dist/jsx-runtime-B3MMb3PL.cjs +233 -0
  28. package/dist/jsx-runtime-B3MMb3PL.cjs.map +1 -0
  29. package/dist/jsx-runtime-BPQkRAg2.js +228 -0
  30. package/dist/jsx-runtime-BPQkRAg2.js.map +1 -0
  31. package/dist/jsx-runtime-DmD5u6a-.js +13 -0
  32. package/dist/jsx-runtime-DmD5u6a-.js.map +1 -0
  33. package/dist/jsx-runtime-zKfRQHQD.cjs +36 -0
  34. package/dist/jsx-runtime-zKfRQHQD.cjs.map +1 -0
  35. package/dist/jsx-runtime.cjs +9 -0
  36. package/dist/jsx-runtime.js +6 -0
  37. package/dist/react-BBkwFtZV.js +1138 -0
  38. package/dist/react-BBkwFtZV.js.map +1 -0
  39. package/dist/react-Bq0UOw6S.cjs +1156 -0
  40. package/dist/react-Bq0UOw6S.cjs.map +1 -0
  41. package/dist/types-C3p0Ljxf.d.cts +85 -0
  42. package/dist/types-DEroxUW0.d.ts +85 -0
  43. package/dist/types.cjs +0 -0
  44. package/dist/types.d.cts +2 -0
  45. package/dist/types.d.ts +2 -0
  46. package/dist/types.js +1 -0
  47. package/package.json +115 -0
  48. package/src/ReactTemplate.tsx +229 -0
  49. package/src/components/App.tsx +27 -0
  50. package/src/components/Const.tsx +53 -0
  51. package/src/components/File.tsx +100 -0
  52. package/src/components/Function.tsx +139 -0
  53. package/src/components/Indent.tsx +53 -0
  54. package/src/components/Root.tsx +75 -0
  55. package/src/components/Type.tsx +40 -0
  56. package/src/createApp.ts +23 -0
  57. package/src/devtools.ts +118 -0
  58. package/src/dom.ts +75 -0
  59. package/src/globals.ts +52 -0
  60. package/src/hooks/useApp.ts +15 -0
  61. package/src/hooks/useFile.ts +14 -0
  62. package/src/hooks/useLifecycle.tsx +18 -0
  63. package/src/index.ts +24 -0
  64. package/src/jsx-runtime.ts +8 -0
  65. package/src/kubbRenderer.ts +175 -0
  66. package/src/types.ts +53 -0
  67. package/src/utils/createJSDoc.ts +9 -0
  68. package/src/utils/getFunctionParams.ts +236 -0
  69. package/src/utils/processFiles.ts +44 -0
  70. package/src/utils/squashExportNodes.ts +23 -0
  71. package/src/utils/squashImportNodes.ts +23 -0
  72. package/src/utils/squashSourceNodes.ts +40 -0
  73. package/src/utils/squashTextNodes.ts +82 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Stijn Van Hulle
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,52 @@
1
+ <div align="center">
2
+ <h1>React Fabric</h1>
3
+
4
+ <a href="https://kubb.dev" target="_blank" rel="noopener noreferrer">
5
+ <img width="180" src="https://raw.githubusercontent.com/kubb-labs/fabric/main/assets/logo.png" alt="Kubb fabric logo">
6
+ </a>
7
+
8
+ [![npm version][npm-version-src]][npm-version-href]
9
+ [![npm downloads][npm-downloads-src]][npm-downloads-href]
10
+ [![Coverage][coverage-src]][coverage-href]
11
+ [![License][license-src]][license-href]
12
+ [![Sponsors][sponsors-src]][sponsors-href]
13
+
14
+ <h4>
15
+ <a href="https://kubb.dev/" target="_blank">Documentation</a>
16
+ <span> · </span>
17
+ <a href="https://github.com/kubb-labs/fabric/issues/" target="_blank">Report Bug</a>
18
+ <span> · </span>
19
+ <a href="https://github.com/kubb-labs/fabric/issues/" target="_blank">Request Feature</a>
20
+ </h4>
21
+ </div>
22
+ <br />
23
+
24
+ ## Supporting Kubb
25
+
26
+ Kubb uses an MIT-licensed open source project with its ongoing development made possible entirely by the support of Sponsors. If you would like to become a sponsor, please consider:
27
+
28
+ - [Become a Sponsor on GitHub](https://github.com/sponsors/stijnvanhulle)
29
+
30
+ <p align="center">
31
+ <a href="https://github.com/sponsors/stijnvanhulle">
32
+ <img src="https://raw.githubusercontent.com/stijnvanhulle/sponsors/main/sponsors.svg" alt="My sponsors" />
33
+ </a>
34
+ </p>
35
+
36
+
37
+ <!-- Badges -->
38
+
39
+ [npm-version-src]: https://img.shields.io/npm/v/@kubb/react-fabric?flat&colorA=18181B&colorB=f58517
40
+ [npm-version-href]: https://npmjs.com/package/@kubb/react-fabric
41
+ [npm-downloads-src]: https://img.shields.io/npm/dm/@kubb/react-fabric?flat&colorA=18181B&colorB=f58517
42
+ [npm-downloads-href]: https://npmjs.com/package/@kubb/react-fabric
43
+ [license-src]: https://img.shields.io/github/license/kubb-labs/kubb.svg?flat&colorA=18181B&colorB=f58517
44
+ [license-href]: https://github.com/kubb-labs/kubb/blob/main/LICENSE
45
+ [build-src]: https://img.shields.io/github/actions/workflow/status/kubb-labs/kubb/ci.yaml?style=flat&colorA=18181B&colorB=f58517
46
+ [build-href]: https://www.npmjs.com/package/@kubb/react-fabric
47
+ [minified-src]: https://img.shields.io/bundlephobia/min/@kubb/react-fabric?style=flat&colorA=18181B&colorB=f58517
48
+ [minified-href]: https://www.npmjs.com/package/@kubb/react-fabric
49
+ [coverage-src]: https://img.shields.io/codecov/c/github/kubb-labs/kubb?style=flat&colorA=18181B&colorB=f58517
50
+ [coverage-href]: https://www.npmjs.com/package/@kubb/react-fabric
51
+ [sponsors-src]: https://img.shields.io/github/sponsors/stijnvanhulle?style=flat&colorA=18181B&colorB=f58517
52
+ [sponsors-href]: https://github.com/sponsors/stijnvanhulle/