lilact 0.0.0 → 0.2.0

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 (87) hide show
  1. package/README.md +13 -2
  2. package/dist/{lilact.development.js → lilact.development.min.js} +690 -315
  3. package/dist/lilact.development.min.js.LICENSE.txt +77 -0
  4. package/dist/lilact.development.min.js.map +1 -0
  5. package/dist/lilact.production.min.js +1 -1
  6. package/dist/lilact.production.min.js.map +1 -1
  7. package/docs/assets/navigation.js +1 -1
  8. package/docs/assets/search.js +1 -1
  9. package/docs/classes/accessories.ErrorBoundary.html +11 -10
  10. package/docs/classes/accessories.Suspense.html +12 -22
  11. package/docs/classes/components.Component.html +11 -10
  12. package/docs/classes/components.HTMLComponent.html +11 -10
  13. package/docs/classes/components.RootComponent.html +11 -10
  14. package/docs/functions/accessories.Spinner.html +1 -1
  15. package/docs/functions/components.createComponent.html +1 -1
  16. package/docs/functions/components.createRoot.html +1 -1
  17. package/docs/functions/components.render.html +1 -1
  18. package/docs/functions/hooks.createContext.html +1 -1
  19. package/docs/functions/hooks.forwardRef.html +4 -0
  20. package/docs/functions/hooks.useActionState.html +1 -1
  21. package/docs/functions/hooks.useImperativeHandle.html +7 -0
  22. package/docs/functions/hooks.useReducer.html +1 -1
  23. package/docs/functions/hooks.useState.html +2 -2
  24. package/docs/functions/hooks.useTransition.html +1 -1
  25. package/docs/functions/jsx.transpileJSX.html +1 -1
  26. package/docs/functions/run.lazy.html +7 -0
  27. package/docs/functions/run.require.html +11 -11
  28. package/docs/functions/run.run.html +3 -5
  29. package/docs/functions/run.runScripts.html +1 -1
  30. package/docs/functions/run.traceError.html +1 -1
  31. package/docs/functions/transition.CSSTransition.html +1 -1
  32. package/docs/functions/transition.Transition.html +15 -0
  33. package/docs/functions/transition.TransitionGroup.html +1 -1
  34. package/docs/index.html +8 -2
  35. package/docs/modules/hooks.html +1 -1
  36. package/docs/modules/jsx.html +1 -1
  37. package/docs/modules/run.html +1 -1
  38. package/docs/modules/transition.html +1 -1
  39. package/docs/static/demos/actionstate.jsx +5 -7
  40. package/docs/static/demos/context.jsx +2 -4
  41. package/docs/static/demos/css-transition.jsx +1 -1
  42. package/docs/static/demos/lazy.jsx +14 -0
  43. package/docs/static/demos/modal.jsx +14 -16
  44. package/docs/static/demos/proptypes.jsx +6 -9
  45. package/docs/static/demos/reducer.jsx +22 -24
  46. package/docs/static/demos/redux.jsx +1 -1
  47. package/docs/static/demos/router.jsx +1 -8
  48. package/docs/static/demos/stopwatch.jsx +1 -1
  49. package/docs/static/demos/suspense.jsx +5 -7
  50. package/docs/static/demos/transition.jsx +25 -25
  51. package/{root/demos/use-differed.jsx → docs/static/demos/use-deffered.jsx} +1 -1
  52. package/docs/static/demos/usetransition.jsx +2 -4
  53. package/docs/static/index 2.html +95 -0
  54. package/docs/static/index.html +27 -29
  55. package/docs/static/{lilact.development.js → lilact.development.min.js} +690 -315
  56. package/docs/static/lilact.production.min.js +1 -1
  57. package/package.json +2 -2
  58. package/root/demos/actionstate.jsx +5 -7
  59. package/root/demos/context.jsx +2 -4
  60. package/root/demos/css-transition.jsx +1 -1
  61. package/root/demos/lazy.jsx +14 -0
  62. package/root/demos/modal.jsx +14 -16
  63. package/root/demos/proptypes.jsx +6 -9
  64. package/root/demos/reducer.jsx +22 -24
  65. package/root/demos/redux.jsx +1 -1
  66. package/root/demos/router.jsx +1 -8
  67. package/root/demos/stopwatch.jsx +1 -1
  68. package/root/demos/suspense.jsx +5 -7
  69. package/root/demos/transition.jsx +25 -25
  70. package/{docs/static/demos/use-differed.jsx → root/demos/use-deffered.jsx} +1 -1
  71. package/root/demos/usetransition.jsx +2 -4
  72. package/root/index 2.html +95 -0
  73. package/root/index.html +27 -29
  74. package/root/{lilact.development.js → lilact.development.min.js} +690 -315
  75. package/root/lilact.production.min.js +1 -1
  76. package/src/accessories.jsx +12 -11
  77. package/src/components.jsx +11 -5
  78. package/src/hooks.jsx +47 -6
  79. package/src/jsx.js +1 -0
  80. package/src/lilact.jsx +5 -7
  81. package/src/pane.jsx +287 -0
  82. package/src/run.jsx +91 -43
  83. package/src/transition.jsx +32 -21
  84. package/webpack.config.js +2 -12
  85. package/dist/lilact.development.js.map +0 -1
  86. package/docs/classes/transition.Transition.html +0 -31
  87. package/docs/variables/jsx.transpilerConfig.html +0 -1
package/README.md CHANGED
@@ -4,6 +4,17 @@
4
4
 
5
5
  ### A Little JSX/React Runtime Implementation for Browser
6
6
 
7
+ [Docs on GitHub Pages](https://arashkazemi.github.io/lilact/) - [Demos on GitHub Pages](https://arashkazemi.github.io/lilact/static)
8
+
9
+ [Lilact repo on GitHub](https://github.com/arashkazemi/lilact) - [Lilact on npm](https://www.npmjs.com/package/lilact)
10
+
11
+ ---
12
+
13
+ If you find Lilact useful, please consider sponsoring. Your support funds ongoing maintenance,
14
+ performance improvements, and new features. [Sponsor me on GitHub](https://github.com/sponsors/arashkazemi)
15
+
16
+ ---
17
+
7
18
  `Lilact` is an extremely lightweight implementation of the React API that is
8
19
  designed to work in the browser. It can be used as a single script
9
20
  that is around `70kb` minified and around `25kb` gzipped and includes everything.
@@ -54,7 +65,7 @@ To use in other node projects, install `Lilact` from npm public repository:
54
65
 
55
66
  It is also available via unpkg CDN and can be included in HTML files using
56
67
 
57
- <script src="https://unpkg.com/lilact/dist/lilact.development.js"></script>
68
+ <script src="https://unpkg.com/lilact/dist/lilact.development.min.js"></script>
58
69
 
59
70
  or
60
71
 
@@ -83,7 +94,7 @@ As a simple example Lilact can be used like this:
83
94
  <head>
84
95
  <meta charset="utf-8"/>
85
96
  <title>Lilact Demo</title>
86
- <script src='./lilact.development.js' type="module"></script>
97
+ <script src='./lilact.development.min.js' type="module"></script>
87
98
  </head>
88
99
  <body></body>
89
100
  <script type='text/jsx'>