create-peachy 0.0.5 → 0.0.7

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/index.mjs CHANGED
@@ -5,7 +5,7 @@ import { dirname, resolve } from "node:path";
5
5
  import h from "handlebars";
6
6
 
7
7
  //#region package.json
8
- var version = "0.0.5";
8
+ var version = "0.0.7";
9
9
 
10
10
  //#endregion
11
11
  //#region src/index.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-peachy",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "type": "module",
5
5
  "description": "Bootstrap a peachy application",
6
6
  "bin": "./dist/index.mjs",
@@ -6,10 +6,13 @@ export function Counter() {
6
6
  const [count, setCount] = useState(0);
7
7
 
8
8
  return (
9
- <Gtk.Box>
10
- <Gtk.Button onClicked={() => setCount(count - 1)}>-</Gtk.Button>
11
- <Gtk.Label hexpand label={count.toString()} />
12
- <Gtk.Button onClicked={() => setCount(count + 1)}>+</Gtk.Button>
13
- </Gtk.Box>
9
+ <Adw.ToolbarView>
10
+ <Adw.HeaderBar childType="top" />
11
+ <Gtk.Box>
12
+ <Gtk.Button onClicked={() => setCount(count - 1)}>-</Gtk.Button>
13
+ <Gtk.Label hexpand label={count.toString()} />
14
+ <Gtk.Button onClicked={() => setCount(count + 1)}>+</Gtk.Button>
15
+ </Gtk.Box>
16
+ </Adw.ToolbarView>
14
17
  );
15
18
  }