lilact 0.2.1 → 0.2.2

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 (35) hide show
  1. package/dist/lilact.development.min.js +198 -238
  2. package/dist/lilact.development.min.js.map +1 -1
  3. package/dist/lilact.production.min.js +8139 -1
  4. package/dist/lilact.production.min.js.map +1 -1
  5. package/docs/classes/accessories.ErrorBoundary.html +8 -8
  6. package/docs/classes/accessories.Suspense.html +7 -7
  7. package/docs/classes/components.Component.html +10 -10
  8. package/docs/classes/components.HTMLComponent.html +10 -10
  9. package/docs/classes/components.RootComponent.html +10 -10
  10. package/docs/functions/components.createComponent.html +1 -1
  11. package/docs/functions/components.createRoot.html +1 -1
  12. package/docs/functions/components.render.html +1 -1
  13. package/docs/functions/hooks.useActionState.html +3 -2
  14. package/docs/functions/hooks.useEffect.html +3 -2
  15. package/docs/functions/hooks.useImperativeHandle.html +1 -1
  16. package/docs/functions/hooks.useLayoutEffect.html +3 -2
  17. package/docs/functions/hooks.useLocalStorage.html +3 -2
  18. package/docs/functions/hooks.useMemo.html +3 -2
  19. package/docs/functions/hooks.useRef.html +3 -2
  20. package/docs/static/demos/pane.jsx +31 -0
  21. package/docs/static/index.html +1 -0
  22. package/docs/static/lilact.development.min.js +198 -238
  23. package/docs/static/lilact.production.min.js +8139 -1
  24. package/package.json +1 -1
  25. package/root/demos/pane.jsx +31 -0
  26. package/root/index.html +1 -0
  27. package/root/lilact.development.min.js +198 -238
  28. package/root/lilact.production.min.js +8139 -1
  29. package/src/components.jsx +4 -1
  30. package/src/hooks.jsx +15 -15
  31. package/src/misc.jsx +13 -1
  32. package/src/pane.jsx +207 -269
  33. package/webpack.config.js +1 -1
  34. package/docs/static/index 2.html +0 -95
  35. package/root/index 2.html +0 -95
@@ -1,95 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8"/>
5
- <title>Lilact Demo</title>
6
- <script src='./lilact.development.min.js' type="module"></script>
7
-
8
- <script src="prismjs/prism.min.js"></script>
9
- <script src="prismjs/prism-jsx.min.js"></script>
10
- <link rel="stylesheet" href="prismjs/prism.min.css">
11
-
12
- </head>
13
-
14
- <body></body>
15
-
16
- <script type='text/jsx'>
17
-
18
- const { useRef, useEffect, useState, Suspense, Spinner, run, render, lazy, require } = Lilact;
19
- const { css,cx,injectGlobal } = Lilact.emotion;
20
-
21
-
22
-
23
- injectGlobal({"*:not(code):not(code *)" : {fontFamily: "Ubuntu, 'Segoe UI', 'Noto Sans', helvetica, sans", fontSize: "14px"}});
24
-
25
-
26
- injectGlobal({ code: { whiteSpace: "pre !important",
27
- padding: "10px 0",
28
- fontSize: "14px !important",
29
- display: "block",
30
- overflowWrap: "anywhere" }
31
- });
32
-
33
- const outer = css({
34
- display: "flex",
35
- flexDirection: "row",
36
- gap: 2,
37
- alignItems: "stretch",
38
- width: "100%",
39
- });
40
-
41
- const collapsible = css({
42
- width: "100%",
43
- display: "block",
44
- fontSize: "16px",
45
- border: "1px solid #888",
46
- padding: "5px"
47
- });
48
-
49
- const responsiveOuter = css({
50
- "@media (max-width: 600px)": {
51
- flexDirection: "column",
52
- },
53
- });
54
-
55
- const pane = css({ flex: "1 1 0",
56
- border: "1px solid",
57
- height: "400px",
58
- minHeight: "400px",
59
- overflowY: "auto",
60
- padding: "10px"
61
- });
62
-
63
- const left = css({ float: "left" });
64
- const right = css({ float: "right" });
65
-
66
-
67
-
68
- const Mod = lazy( ()=>require('demos/stopwatch.jsx') );
69
-
70
- function DemoBlock({file})
71
- {
72
- return <>
73
- <div>
74
- <Suspense fallback={<Spinner/>}>
75
- <Mod/>
76
- </Suspense>
77
- </div>
78
- </>
79
- ;
80
- }
81
-
82
-
83
- function App()
84
- {
85
-
86
- return <>
87
- <DemoBlock/>
88
- </>
89
- }
90
-
91
- render(<App/>, document.body);
92
-
93
- </script>
94
-
95
- </html>
@@ -1,95 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8"/>
5
- <title>Lilact Demo</title>
6
- <script src='./lilact.development.min.js' type="module"></script>
7
-
8
- <script src="prismjs/prism.min.js"></script>
9
- <script src="prismjs/prism-jsx.min.js"></script>
10
- <link rel="stylesheet" href="prismjs/prism.min.css">
11
-
12
- </head>
13
-
14
- <body></body>
15
-
16
- <script type='text/jsx'>
17
-
18
- const { useRef, useEffect, useState, Suspense, Spinner, run, render, lazy, require } = Lilact;
19
- const { css,cx,injectGlobal } = Lilact.emotion;
20
-
21
-
22
-
23
- injectGlobal({"*:not(code):not(code *)" : {fontFamily: "Ubuntu, 'Segoe UI', 'Noto Sans', helvetica, sans", fontSize: "14px"}});
24
-
25
-
26
- injectGlobal({ code: { whiteSpace: "pre !important",
27
- padding: "10px 0",
28
- fontSize: "14px !important",
29
- display: "block",
30
- overflowWrap: "anywhere" }
31
- });
32
-
33
- const outer = css({
34
- display: "flex",
35
- flexDirection: "row",
36
- gap: 2,
37
- alignItems: "stretch",
38
- width: "100%",
39
- });
40
-
41
- const collapsible = css({
42
- width: "100%",
43
- display: "block",
44
- fontSize: "16px",
45
- border: "1px solid #888",
46
- padding: "5px"
47
- });
48
-
49
- const responsiveOuter = css({
50
- "@media (max-width: 600px)": {
51
- flexDirection: "column",
52
- },
53
- });
54
-
55
- const pane = css({ flex: "1 1 0",
56
- border: "1px solid",
57
- height: "400px",
58
- minHeight: "400px",
59
- overflowY: "auto",
60
- padding: "10px"
61
- });
62
-
63
- const left = css({ float: "left" });
64
- const right = css({ float: "right" });
65
-
66
-
67
-
68
- const Mod = lazy( ()=>require('demos/stopwatch.jsx') );
69
-
70
- function DemoBlock({file})
71
- {
72
- return <>
73
- <div>
74
- <Suspense fallback={<Spinner/>}>
75
- <Mod/>
76
- </Suspense>
77
- </div>
78
- </>
79
- ;
80
- }
81
-
82
-
83
- function App()
84
- {
85
-
86
- return <>
87
- <DemoBlock/>
88
- </>
89
- }
90
-
91
- render(<App/>, document.body);
92
-
93
- </script>
94
-
95
- </html>