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.
- package/README.md +3 -2
- package/dist/lilact.development.js +369 -243
- package/dist/lilact.development.js.map +1 -1
- package/dist/lilact.development.min.js +1 -1
- package/dist/lilact.development.min.js.LICENSE.txt +1 -1
- package/dist/lilact.development.min.js.map +1 -1
- package/dist/lilact.production.min.js +1 -1
- package/dist/lilact.production.min.js.map +1 -1
- package/docs/assets/hierarchy.js +1 -1
- package/docs/assets/highlight.css +4 -4
- package/docs/assets/navigation.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/accessories.ErrorBoundary.html +11 -11
- package/docs/classes/accessories.Suspense.html +10 -10
- package/docs/classes/components.Component.html +11 -11
- package/docs/classes/components.HTMLComponent.html +11 -11
- package/docs/classes/components.RootComponent.html +12 -12
- package/docs/functions/accessories.DragHandle.html +6 -0
- package/docs/functions/accessories.Spinner.html +1 -1
- package/docs/functions/components.createComponent.html +1 -1
- package/docs/functions/components.createRoot.html +1 -1
- package/docs/functions/components.render.html +1 -1
- package/docs/hierarchy.html +1 -1
- package/docs/index.html +3 -2
- package/docs/modules/accessories.html +1 -1
- package/docs/modules.html +1 -1
- package/docs/static/demos/pane.jsx +3 -3
- package/docs/static/index.html +1 -1
- package/docs/static/lilact.development.js +369 -243
- package/docs/static/lilact.development.min.js +1 -1
- package/docs/static/lilact.production.min.js +1 -1
- package/docs/variables/{pane.ResizablePane.html → accessories.SplitPane.html} +3 -3
- package/package.json +1 -1
- package/root/demos/pane.jsx +3 -3
- package/root/index.html +1 -1
- package/root/lilact.development.js +369 -243
- package/root/lilact.development.min.js +1 -1
- package/root/lilact.production.min.js +1 -1
- package/src/accessories.jsx +391 -0
- package/src/components.jsx +24 -4
- package/src/lilact.jsx +1 -5
- package/typedoc.json +0 -1
- package/docs/modules/pane.html +0 -1
- package/src/pane.jsx +0 -270
package/package.json
CHANGED
package/root/demos/pane.jsx
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const { useRef, useState,
|
|
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
|
-
<
|
|
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
|
-
</
|
|
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,
|
|
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 )'],
|