lilact 0.13.0 → 0.14.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.
- package/dist/lilact.development.js +269 -250
- 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 +12 -6
- 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/modules/accessories.html +1 -1
- package/docs/modules.html +1 -1
- package/docs/static/demos/capture.jsx +26 -0
- package/docs/static/index.html +4 -1
- package/docs/static/lilact.development.js +269 -250
- package/docs/static/lilact.development.min.js +1 -1
- package/docs/static/lilact.production.min.js +1 -1
- package/docs/variables/{pane.SplitPane.html → accessories.SplitPane.html} +3 -3
- package/package.json +1 -1
- package/root/demos/capture.jsx +26 -0
- package/root/index.html +4 -1
- package/root/lilact.development.js +269 -250
- package/root/lilact.development.min.js +1 -1
- package/root/lilact.production.min.js +1 -1
- package/src/accessories.jsx +293 -12
- package/src/components.jsx +7 -0
- package/src/lilact.jsx +1 -5
- package/src/misc.jsx +6 -1
- package/typedoc.json +0 -1
- package/docs/modules/pane.html +0 -1
- package/src/pane.jsx +0 -270
package/package.json
CHANGED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
const { useEffect } = Lilact;
|
|
2
|
+
|
|
3
|
+
module.exports = function Demo() {
|
|
4
|
+
useEffect(() => {
|
|
5
|
+
// Just to make it obvious in the console that this is running once
|
|
6
|
+
console.log("Mount");
|
|
7
|
+
}, []);
|
|
8
|
+
|
|
9
|
+
return <>
|
|
10
|
+
<p>See console for the logs.</p>
|
|
11
|
+
<div
|
|
12
|
+
style={{ padding: 20, border: "2px solid black" }}
|
|
13
|
+
onClick={() => console.log("div bubble")}
|
|
14
|
+
onClickCapture={() => console.log("div capture")}
|
|
15
|
+
>
|
|
16
|
+
Div
|
|
17
|
+
<button
|
|
18
|
+
style={{ marginLeft: 20 }}
|
|
19
|
+
onClick={() => console.log("button bubble")}
|
|
20
|
+
onClickCapture={() => console.log("button capture")}
|
|
21
|
+
>
|
|
22
|
+
Button
|
|
23
|
+
</button>
|
|
24
|
+
</div>
|
|
25
|
+
</>;
|
|
26
|
+
}
|
package/root/index.html
CHANGED
|
@@ -206,13 +206,15 @@ function App()
|
|
|
206
206
|
['usetransition.jsx', '( useTransition, useState, useCallback, useId ), emotion:( css, cx )'],
|
|
207
207
|
['reducer.jsx', '( useReducer )'],
|
|
208
208
|
['context.jsx', '( createContext, useContext, useState ), emotion:( css, cx )'],
|
|
209
|
+
|
|
209
210
|
"API",
|
|
211
|
+
['capture.jsx', '-- Event Capture and Bubble --'],
|
|
210
212
|
['lazy.jsx', '( lazy, require, Suspene, Spinner )'],
|
|
211
213
|
['proptypes.jsx', '( PropTypes )'],
|
|
212
214
|
['redux.jsx', '( Provider, useSelector, useDispatch, connect ), redux:( createStore )'],
|
|
213
215
|
['transition.jsx', '( useState, Transition )'],
|
|
216
|
+
|
|
214
217
|
"Components",
|
|
215
|
-
<!-- ['switch-transition.jsx', '( SwitchTransition, useState )'], -->
|
|
216
218
|
['router.jsx', '( HashRouter, NavLink, Routes, Route, useNavigate, useLocation )'],
|
|
217
219
|
['modal.jsx', '( useEffect, useRef, useState )'],
|
|
218
220
|
['pane.jsx', '( useRef, useState, SplitPane )'],
|
|
@@ -220,6 +222,7 @@ function App()
|
|
|
220
222
|
['switch-transition.jsx', '( SwitchTransition )'],
|
|
221
223
|
['suspense.jsx', '( Suspense, Spinner )'],
|
|
222
224
|
['form-elements.jsx', '()'],
|
|
225
|
+
|
|
223
226
|
"Error Report and Handling",
|
|
224
227
|
['error-boundary.jsx', '( ErrorBoundary, useState )'],
|
|
225
228
|
['error-parser.jsx', '-- JSX Parser Error --'],
|