create-halation 0.1.1 → 0.2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-halation",
3
- "version": "0.1.1",
3
+ "version": "0.2.0",
4
4
  "description": "Start a new React project with Halation: the styles, the components, and an agent kit that keeps every page on-brand.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -211,6 +211,12 @@ export function App({ children }) {
211
211
  | A person | `<Avatar name="..." src={...} />` |
212
212
  | An icon | `<icons.CheckIcon />` and the rest, never emoji |
213
213
  | The project's mark, credits, share image | `<Seal>`, `<Colophon>`, `<ShareCard>` |
214
+ | Search and jump anywhere (⌘K) | `<Lens>` with `useLensShortcut` |
215
+ | Let people set a keyboard shortcut | `<ShortcutRecorder>` |
216
+ | Pick a time of day | `<Sundial>` |
217
+ | Tune a value by feel | `<Dial>` |
218
+ | Let people pick an accent | `<AccentForge>` |
219
+ | Upload photos or files | `<LightTable>` |
214
220
 
215
221
  ## Components
216
222
 
@@ -262,6 +268,15 @@ All from `@halation/react`.
262
268
  - **useDevelop**: Develops an element like a print, once per visitor. For a landing hero. `const hero = useRef(null); useDevelop(hero)`
263
269
  - **darkroom**: Opens or closes the darkroom inspector from code. `darkroom.enter()`
264
270
  - **useDarkroom**: Whether the darkroom is open, for a button that enters and leaves it. `const open = useDarkroom()`
271
+ - **Lens**: A command palette that pulls focus: a lit carriage on the chosen row, the rest softening with distance. For any app with more than a handful of places to go. `<Lens open={open} onOpenChange={setOpen} groups={[{ name: "Copies", items: [{ id: "work", title: "Claude Work", onSelect: openWork }] }]} />`
272
+ - **useLensShortcut**: Opens Lens on ⌘K (Ctrl+K elsewhere). `useLensShortcut(() => setOpen(true))`
273
+ - **ShortcutRecorder**: Records a key combination with keycaps that go down while held. Refuses taken shortcuts and keys with no modifier, in words. Label it with what the shortcut does. `<ShortcutRecorder value={keys} onValueChange={setKeys} label="Switches to Claude Work" onMessage={setNote} />`
274
+ - **TAKEN_SHORTCUTS**: The shortcuts macOS keeps for itself, with the reason for each. Spread it into your own list of taken shortcuts. `taken={{ ...TAKEN_SHORTCUTS, "⌘N": "⌘N makes a new copy." }}`
275
+ - **Sundial**: A time-of-day picker set by moving the sun, showing the real sky for that minute. For schedules and quiet hours; value is minutes after midnight. `<Sundial value={minutes} onValueChange={setMinutes} label="Quiet hours begin at" />`
276
+ - **LitTabs**: Tabs whose selection is a carriage of light; labels gain weight as it passes. Use for a page's main sections. `<LitTabs aria-label="Sections" items={[{ value: "all", label: "Overview", content: <Overview /> }]} />`
277
+ - **Dial**: A rotary knob with detents that click, lit ticks and a rolling number. For intensity, volume, zoom: a value tuned by feel. `<Dial value={level} onValueChange={setLevel} label="Intensity" />`
278
+ - **AccentForge**: An accent picker that derives every accent role from a hue and shows each pair's contrast in both modes. Purple hues are closed. `<AccentForge hue={hue} onHueChange={setHue} />`
279
+ - **LightTable**: A file drop zone that backlights under the dragged file; dropped photos land as prints that develop. For uploads, avatars and imports. `<LightTable onFiles={upload} />`
265
280
  - **icons**: The system's glyphs: CheckIcon, PlayIcon, WrenchIcon, StopIcon, PencilIcon, InfoIcon, AlertIcon, ChevronIcon, CloseIcon. Use these or a real icon set, never emoji. `<icons.CheckIcon />`
266
281
 
267
282
  ## The ten text styles
@@ -11,12 +11,12 @@
11
11
  "check": "halation check http://localhost:5173"
12
12
  },
13
13
  "dependencies": {
14
- "@halation/react": "^0.1.1",
14
+ "@halation/react": "^0.2.0",
15
15
  "react": "^19.3.0",
16
16
  "react-dom": "^19.3.0"
17
17
  },
18
18
  "devDependencies": {
19
- "@halation/cli": "^0.1.1",
19
+ "@halation/cli": "^0.2.0",
20
20
  "@types/react": "^19.2.18",
21
21
  "@types/react-dom": "^19.2.7",
22
22
  "@vitejs/plugin-react": "^6.1.1",