lilact 0.11.5 → 0.13.1

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 (44) hide show
  1. package/README.md +3 -2
  2. package/dist/lilact.development.js +369 -243
  3. package/dist/lilact.development.js.map +1 -1
  4. package/dist/lilact.development.min.js +1 -1
  5. package/dist/lilact.development.min.js.LICENSE.txt +1 -1
  6. package/dist/lilact.development.min.js.map +1 -1
  7. package/dist/lilact.production.min.js +1 -1
  8. package/dist/lilact.production.min.js.map +1 -1
  9. package/docs/assets/hierarchy.js +1 -1
  10. package/docs/assets/highlight.css +4 -4
  11. package/docs/assets/navigation.js +1 -1
  12. package/docs/assets/search.js +1 -1
  13. package/docs/classes/accessories.ErrorBoundary.html +11 -11
  14. package/docs/classes/accessories.Suspense.html +10 -10
  15. package/docs/classes/components.Component.html +11 -11
  16. package/docs/classes/components.HTMLComponent.html +11 -11
  17. package/docs/classes/components.RootComponent.html +12 -12
  18. package/docs/functions/accessories.DragHandle.html +6 -0
  19. package/docs/functions/accessories.Spinner.html +1 -1
  20. package/docs/functions/components.createComponent.html +1 -1
  21. package/docs/functions/components.createRoot.html +1 -1
  22. package/docs/functions/components.render.html +1 -1
  23. package/docs/hierarchy.html +1 -1
  24. package/docs/index.html +3 -2
  25. package/docs/modules/accessories.html +1 -1
  26. package/docs/modules.html +1 -1
  27. package/docs/static/demos/pane.jsx +3 -3
  28. package/docs/static/index.html +1 -1
  29. package/docs/static/lilact.development.js +369 -243
  30. package/docs/static/lilact.development.min.js +1 -1
  31. package/docs/static/lilact.production.min.js +1 -1
  32. package/docs/variables/{pane.ResizablePane.html → accessories.SplitPane.html} +3 -3
  33. package/package.json +1 -1
  34. package/root/demos/pane.jsx +3 -3
  35. package/root/index.html +1 -1
  36. package/root/lilact.development.js +369 -243
  37. package/root/lilact.development.min.js +1 -1
  38. package/root/lilact.production.min.js +1 -1
  39. package/src/accessories.jsx +391 -0
  40. package/src/components.jsx +24 -4
  41. package/src/lilact.jsx +1 -5
  42. package/typedoc.json +0 -1
  43. package/docs/modules/pane.html +0 -1
  44. package/src/pane.jsx +0 -270
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lilact",
3
- "version": "0.11.5",
3
+ "version": "0.13.1",
4
4
  "description": "A Little React/JSX Runtime Implementation for Browser",
5
5
  "repository": "github:arashkazemi/lilact",
6
6
  "homepage": "https://arashkazemi.github.io/lilact/",
@@ -1,4 +1,4 @@
1
- const { useRef, useState, ResizablePane } = Lilact;
1
+ const { useRef, useState, SplitPane } = Lilact;
2
2
 
3
3
  module.exports = function Demo() {
4
4
  const ref = useRef(null);
@@ -13,7 +13,7 @@ module.exports = function Demo() {
13
13
  <button onClick={() => ref.current?.setPosition(0.5)}>Center</button>
14
14
 
15
15
  <div style={{ height: "calc(100% - 2em)", width: "calc(100% - 2em)", border: "1px solid" }}>
16
- <ResizablePane
16
+ <SplitPane
17
17
  ref={ref}
18
18
  mode={mode}
19
19
  position={position}
@@ -24,7 +24,7 @@ module.exports = function Demo() {
24
24
  >
25
25
  <div style={{ padding: 12 }}>Left/Top</div>
26
26
  <div style={{ padding: 12 }}>Right/Bottom</div>
27
- </ResizablePane>
27
+ </SplitPane>
28
28
  </div>
29
29
  </>
30
30
  );
package/root/index.html CHANGED
@@ -215,7 +215,7 @@ function App()
215
215
  <!-- ['switch-transition.jsx', '( SwitchTransition, useState )'], -->
216
216
  ['router.jsx', '( HashRouter, NavLink, Routes, Route, useNavigate, useLocation )'],
217
217
  ['modal.jsx', '( useEffect, useRef, useState )'],
218
- ['pane.jsx', '( useRef, useState, ResizablePane )'],
218
+ ['pane.jsx', '( useRef, useState, SplitPane )'],
219
219
  ['css-transition.jsx', '( CSSTransition, useState, useRef )'],
220
220
  ['switch-transition.jsx', '( SwitchTransition )'],
221
221
  ['suspense.jsx', '( Suspense, Spinner )'],