@semos-labs/create-glyph 0.1.77 → 0.1.78

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 (2) hide show
  1. package/dist/index.js +17 -22
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -193,23 +193,21 @@ function App() {
193
193
  <Progress value={progress} />
194
194
 
195
195
  {/* Add todo */}
196
- <Box style={{ flexDirection: "row", gap: 1 }}>
197
- <Box style={{ flexGrow: 1 }}>
198
- <Input
199
- ref={inputRef}
200
- value={newTodo}
201
- onChange={setNewTodo}
202
- onKeyPress={handleInputKey}
203
- placeholder="What needs to be done?"
204
- style={{ border: "round", borderColor: "blackBright", paddingX: 1 }}
205
- focusedStyle={{ border: "round", borderColor: "cyan", color: "white", paddingX: 1 }}
206
- />
207
- </Box>
196
+ <Box style={{ flexDirection: "row", gap: 1, alignItems: "stretch" }}>
197
+ <Input
198
+ ref={inputRef}
199
+ value={newTodo}
200
+ onChange={setNewTodo}
201
+ onKeyPress={handleInputKey}
202
+ placeholder="What needs to be done?"
203
+ style={{ flexGrow: 1, border: "round", borderColor: "blackBright", paddingX: 1 }}
204
+ focusedStyle={{ border: "round", borderColor: "cyan", color: "white", paddingX: 1 }}
205
+ />
208
206
  <Button
209
- label=" add "
207
+ label=" add "
210
208
  onPress={handleAdd}
211
- style={{ border: "round", borderColor: "blackBright", paddingX: 1 }}
212
- focusedStyle={{ border: "round", borderColor: "cyan", bg: "cyan", color: "black", paddingX: 1 }}
209
+ style={{ border: "round", borderColor: "blackBright", paddingX: 2 }}
210
+ focusedStyle={{ border: "round", borderColor: "cyan", bg: "cyan", color: "black", paddingX: 2 }}
213
211
  />
214
212
  </Box>
215
213
 
@@ -225,14 +223,14 @@ function App() {
225
223
  onChange={() => handleToggle(todo.id)}
226
224
  label={todo.text}
227
225
  style={todo.done ? { dim: true, color: "blackBright" } : { color: "white" }}
228
- focusedStyle={{ color: "cyanBright" }}
226
+ focusedStyle={{ color: "black", bg: "cyan", bold: true }}
229
227
  />
230
228
  <Spacer />
231
229
  <Button
232
230
  label=" \xD7 "
233
231
  onPress={() => handleDelete(todo.id)}
234
232
  style={{ color: "blackBright" }}
235
- focusedStyle={{ color: "redBright" }}
233
+ focusedStyle={{ color: "black", bg: "red", bold: true }}
236
234
  />
237
235
  </Box>
238
236
  ))}
@@ -343,12 +341,9 @@ function main() {
343
341
  console.log(` ${cyan("cd")} ${dirName} && ${cyan(getInstallCommand(pm))}`);
344
342
  }
345
343
  console.log();
346
- console.log(` ${green("\u2713")} ${bold(dirName)} is ready!`);
347
- console.log();
348
- console.log(` ${bold("Get started:")}`);
344
+ console.log(` ${green("\u2713")} ${bold(dirName)} is ready! Run this to get started:`);
349
345
  console.log();
350
- console.log(` ${cyan("cd")} ${dirName}`);
351
- console.log(` ${cyan(getRunCommand(pm))}`);
346
+ console.log(` ${bold(cyan(`cd ${dirName} && ${getRunCommand(pm)}`))}`);
352
347
  console.log();
353
348
  console.log(` ${dim("Happy hacking! \u2726")}`);
354
349
  console.log();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@semos-labs/create-glyph",
3
- "version": "0.1.77",
3
+ "version": "0.1.78",
4
4
  "description": "Scaffold a new Glyph terminal UI app",
5
5
  "type": "module",
6
6
  "bin": {