create-asciitorium 0.1.14 → 0.1.15

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.
@@ -7,11 +7,11 @@ import {
7
7
  AsciiArt,
8
8
  TextInput,
9
9
  PerfMonitor,
10
+ CelticBorder,
10
11
  HorizontalLine,
11
12
  loadAsciiAsset
12
13
  } from 'asciitorium';
13
14
 
14
-
15
15
  const appWidth = 64;
16
16
  const appHeight = 30;
17
17
 
@@ -22,21 +22,23 @@ const titleArt = await loadAsciiAsset('./art/asciitorium.txt');
22
22
 
23
23
  // Construct the app
24
24
  const app = (
25
- <App width={appWidth} height={appHeight} border>
26
-
27
- <AsciiArt content={titleArt} align="center" label="Asciitorium" />
28
- <HorizontalLine length={48} align="center" />
29
- <Text value="a ui framework for cli and web" align="top" gap={3} />
30
-
31
- <Box align="center" layout="horizontal" gap={3} >
32
- <Text value="Text Input:" align="center" />
33
- <TextInput width={30} value={helloWorld} />
25
+ <App width={appWidth} height={appHeight} layout="relaxed">
26
+ <CelticBorder edge="top-left" align="top-left" />
27
+ <CelticBorder edge="top-right" align="top-right" />
28
+ <CelticBorder edge="bottom-left" align="bottom-left" />
29
+ <CelticBorder edge="bottom-right" align="bottom-right" />
30
+
31
+ <Box align="top" layout="vertical" gap={2}>
32
+ <AsciiArt content={titleArt} align="top" />
33
+ <HorizontalLine length={48} align="center" />
34
+ <Text value="a ui framework for cli and web" align="top" gap={3} />
34
35
  </Box>
35
36
 
36
- <Text value={helloWorld} width={appWidth - 24} align="center" gap={3} />
37
+ <TextInput label="TextInput:" width={30} value={helloWorld} gap={2} align="center" />
37
38
 
38
- <PerfMonitor align="center" time memory fps cpu />
39
+ <Text value={helloWorld} width={appWidth - 24} align="bottom" gap={8} />
40
+ <PerfMonitor align="bottom-right" gap={1} time memory fps cpu />
39
41
  </App>
40
42
  );
41
43
 
42
- await app.start();
44
+ await app.start();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-asciitorium",
3
- "version": "0.1.14",
3
+ "version": "0.1.15",
4
4
  "private": false,
5
5
  "description": "Scaffold a Vite + TypeScript project prewired for asciitorium (web + cli).",
6
6
  "bin": {