@hanzo/build 0.2.53 → 0.2.54

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/lib/panel.d.ts CHANGED
@@ -9,10 +9,11 @@ export interface Kind {
9
9
  bleed?: boolean;
10
10
  }
11
11
  /**
12
- * The header's Panel button: a word beside the mark while the panel is shut on
13
- * a laptop, because a glyph alone was a control nobody found; the mark alone
14
- * below `lg`, where the header has no room for the word, and while it is open,
15
- * when the panel and its own close are in view (below `lg` it steps aside).
12
+ * The header's Panel button: an icon among the header's icons, the summary's
13
+ * mark rather than a sidebar's, because the window's own sidebar toggle is the
14
+ * one at its top-left and two of that glyph read as one control drawn twice.
15
+ * Its name and its keys say what it does; lit while the panel is open. Below
16
+ * `lg`, open, it steps aside: the panel and its own close are in view.
16
17
  */
17
18
  export declare function PanelToggle({ open, onToggle }: {
18
19
  open: boolean;
package/lib/panel.js CHANGED
@@ -8,7 +8,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
8
8
  * the panel is a sheet over the page instead (`sheet`).
9
9
  */
10
10
  import { SizableText, XStack, YStack } from '@hanzo/gui';
11
- import { ExternalLink, PanelRight, PanelRightClose, Plus, RotateCw, X } from '@hanzogui/lucide-icons-2';
11
+ import { ExternalLink, PanelRightClose, Plus, RotateCw, TableOfContents, X } from '@hanzogui/lucide-icons-2';
12
12
  import { DropdownMenu } from '@hanzo/ui';
13
13
  import { useEffect, useMemo, useState } from 'react';
14
14
  import { createPortal } from 'react-dom';
@@ -16,13 +16,14 @@ import { address, PAGE } from './tabs.js';
16
16
  /** The shortcut, as this platform writes it. */
17
17
  const KEY = typeof navigator !== 'undefined' && /Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent) ? '⌘.' : 'Ctrl+.';
18
18
  /**
19
- * The header's Panel button: a word beside the mark while the panel is shut on
20
- * a laptop, because a glyph alone was a control nobody found; the mark alone
21
- * below `lg`, where the header has no room for the word, and while it is open,
22
- * when the panel and its own close are in view (below `lg` it steps aside).
19
+ * The header's Panel button: an icon among the header's icons, the summary's
20
+ * mark rather than a sidebar's, because the window's own sidebar toggle is the
21
+ * one at its top-left and two of that glyph read as one control drawn twice.
22
+ * Its name and its keys say what it does; lit while the panel is open. Below
23
+ * `lg`, open, it steps aside: the panel and its own close are in view.
23
24
  */
24
25
  export function PanelToggle({ open, onToggle }) {
25
- return (_jsxs(XStack, { render: "button", role: "button", "data-slot": "side-toggle", "aria-label": open ? 'Close the side panel' : 'Open the side panel', "aria-pressed": open, "aria-keyshortcuts": "Meta+Period Control+Period", ...{ title: `${open ? 'Close' : 'Open'} the side panel (${KEY})` }, onPress: onToggle, items: "center", gap: "$1.5", px: "$2", $lg: { px: open ? '$2' : '$2.5' }, "$max-lg": open ? { display: 'none' } : undefined, height: 30, rounded: "$3", borderWidth: 1, borderColor: "$borderColor", bg: open ? '$hover' : 'transparent', cursor: "pointer", shrink: 0, hoverStyle: { bg: '$hover' }, children: [open ? _jsx(PanelRightClose, { size: 14 }) : _jsx(PanelRight, { size: 14 }), open ? null : (_jsx(SizableText, { size: "$2", color: "$ink", "$max-lg": { display: 'none' }, children: "Panel" }))] }));
26
+ return (_jsx(XStack, { render: "button", role: "button", "data-slot": "side-toggle", "aria-label": open ? 'Close the side panel' : 'Open the side panel', "aria-pressed": open, "aria-keyshortcuts": "Meta+Period Control+Period", ...{ title: `${open ? 'Close' : 'Open'} the side panel (${KEY})` }, onPress: onToggle, items: "center", justify: "center", width: 32, height: 32, "$max-lg": open ? { display: 'none' } : undefined, rounded: "$3", bg: open ? '$hover' : 'transparent', cursor: "pointer", shrink: 0, hoverStyle: { bg: '$hover' }, focusVisibleStyle: { outlineWidth: 2, outlineStyle: 'solid', outlineColor: '$outlineColor' }, children: _jsx(TableOfContents, { size: 16 }) }));
26
27
  }
27
28
  const suffix = (s) => {
28
29
  const dot = s.lastIndexOf('.');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hanzo/build",
3
- "version": "0.2.53",
3
+ "version": "0.2.54",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0 OR MIT",
6
6
  "description": "Hanzo Build — say what you want, watch it built, deployed and running. The builder as a component, mounted by the Hanzo app at hanzo.ai.",