@g9tm/lynxcontrols 2.8.4 → 2.9.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.
Files changed (81) hide show
  1. package/README.md +1 -0
  2. package/catalog/cards/G9Avatar.md +1 -1
  3. package/catalog/cards/G9Badge.md +1 -1
  4. package/catalog/cards/G9Button.md +1 -1
  5. package/catalog/cards/G9Chip.md +1 -1
  6. package/catalog/cards/G9ChipStrip.md +1 -1
  7. package/catalog/cards/G9ContextMenu.md +4 -2
  8. package/catalog/cards/G9DragChip.md +10 -0
  9. package/catalog/cards/G9DragSource.md +17 -0
  10. package/catalog/cards/G9DropTarget.md +15 -0
  11. package/catalog/cards/G9EmptyState.md +1 -1
  12. package/catalog/cards/G9IconButton.md +2 -2
  13. package/catalog/cards/G9InlineMessage.md +1 -1
  14. package/catalog/cards/G9KeyCapture.md +10 -0
  15. package/catalog/cards/G9Kpi.md +1 -1
  16. package/catalog/cards/G9ListRow.md +1 -1
  17. package/catalog/cards/G9LiveBadge.md +1 -1
  18. package/catalog/cards/G9LiveDot.md +1 -1
  19. package/catalog/cards/G9ProgressBar.md +1 -1
  20. package/catalog/cards/G9ProgressRing.md +1 -1
  21. package/catalog/cards/G9SafeButton.md +1 -1
  22. package/catalog/cards/G9SafeIconButton.md +2 -2
  23. package/catalog/cards/G9StatusPill.md +1 -1
  24. package/catalog/cards/G9StepTracker.md +1 -1
  25. package/catalog/cards/G9SwitchRow.md +1 -1
  26. package/catalog/cards/G9Tag.md +1 -1
  27. package/catalog/catalog.json +1069 -68
  28. package/catalog/index.md +6 -2
  29. package/dist/.tsbuildinfo +1 -1
  30. package/dist/commands/index.d.ts +1 -1
  31. package/dist/commands/index.d.ts.map +1 -1
  32. package/dist/commands/index.jsx +1 -1
  33. package/dist/commands/keys.d.ts +32 -1
  34. package/dist/commands/keys.d.ts.map +1 -1
  35. package/dist/commands/keys.jsx +92 -3
  36. package/dist/desktop/index.d.ts +3 -0
  37. package/dist/desktop/index.d.ts.map +1 -0
  38. package/dist/desktop/index.jsx +2 -0
  39. package/dist/desktop/keys.d.ts +26 -0
  40. package/dist/desktop/keys.d.ts.map +1 -0
  41. package/dist/desktop/keys.jsx +30 -0
  42. package/dist/desktop/window.d.ts +18 -0
  43. package/dist/desktop/window.d.ts.map +1 -0
  44. package/dist/desktop/window.jsx +28 -0
  45. package/dist/index.d.ts +2 -0
  46. package/dist/index.d.ts.map +1 -1
  47. package/dist/pointer/drag-session.d.ts +72 -0
  48. package/dist/pointer/drag-session.d.ts.map +1 -0
  49. package/dist/pointer/drag-session.jsx +148 -0
  50. package/dist/pointer/drag.d.ts +78 -0
  51. package/dist/pointer/drag.d.ts.map +1 -0
  52. package/dist/pointer/drag.jsx +186 -0
  53. package/dist/pointer/index.d.ts +5 -0
  54. package/dist/pointer/index.d.ts.map +1 -0
  55. package/dist/pointer/index.jsx +4 -0
  56. package/dist/pointer/point.d.ts +36 -0
  57. package/dist/pointer/point.d.ts.map +1 -0
  58. package/dist/pointer/point.jsx +34 -0
  59. package/dist/pointer/pointer.css +62 -0
  60. package/dist/pointer/pointer.css.map +1 -0
  61. package/dist/pointer/secondary.d.ts +54 -0
  62. package/dist/pointer/secondary.d.ts.map +1 -0
  63. package/dist/pointer/secondary.jsx +86 -0
  64. package/dist/popover/popover.d.ts +26 -2
  65. package/dist/popover/popover.d.ts.map +1 -1
  66. package/dist/popover/popover.jsx +47 -20
  67. package/package.json +12 -2
  68. package/skills/g9-lynx-app/SKILL.md +8 -0
  69. package/skills/g9-lynx-app/references/catalog-index.md +11 -0
  70. package/skills/g9-lynx-app/references/components/button.md +6 -6
  71. package/skills/g9-lynx-app/references/components/code-editor.md +19 -0
  72. package/skills/g9-lynx-app/references/components/code-log.md +19 -0
  73. package/skills/g9-lynx-app/references/components/desktop.md +12 -0
  74. package/skills/g9-lynx-app/references/components/display-1.md +4 -4
  75. package/skills/g9-lynx-app/references/components/display-2.md +5 -5
  76. package/skills/g9-lynx-app/references/components/display-3.md +3 -3
  77. package/skills/g9-lynx-app/references/components/graph.md +19 -0
  78. package/skills/g9-lynx-app/references/components/list.md +2 -2
  79. package/skills/g9-lynx-app/references/components/pointer.md +46 -0
  80. package/skills/g9-lynx-app/references/components/popover.md +4 -2
  81. package/skills/g9-lynx-app/references/components/toggle.md +2 -2
package/README.md CHANGED
@@ -19,6 +19,7 @@ entry `@g9tm/lynxcontrols` re-exports **types only**.
19
19
  | `/popover`, `/commands` | `G9Popover`, `G9Menu`, `G9ContextMenu`, `G9ActionSheet`, `G9CommandPalette`, key hooks | [overlays-commands-and-design.md](docs/overlays-commands-and-design.md) |
20
20
  | `/display`, `/effects` | KPIs, deltas, status pills, `G9Image`, success header, confetti, `useG9Fly` | [display-and-effects.md](docs/display-and-effects.md) |
21
21
  | `/toggle`, `/fields`, `/survey` | segmented, chips, radio group, stepper, number/time/tag entries, num pad, survey inputs | [choices-entries-and-surveys.md](docs/choices-entries-and-surveys.md) |
22
+ | `/pointer`, `/desktop` | the secondary click (right button, context-menu key, long press), drag between regions, the app's window, desktop key capture and shortcut maps | [desktop-and-pointer.md](docs/desktop-and-pointer.md) |
22
23
  | `/anchor`, `/route`, `/guide` | anchors, the router of open places, the guide and journeys | [anchors-route-guide.md](docs/anchors-route-guide.md) |
23
24
  | `/design` | design-only: the design probe (`snapshot`, `hitTest`, a per-frame subscription) and `G9DesignNode` anchors without ids | [design-probe.md](docs/design-probe.md) |
24
25
  | `/tailwind` | the Tailwind preset over the G9 tokens | [docs/theming.md](../../docs/theming.md) |
@@ -9,7 +9,7 @@ Props:
9
9
  - `size?`: number | string | string | string | string | string = "md"
10
10
  - `icon?`: icon
11
11
  - `shape?`: 'circle' | 'squircle'
12
- - `tone?`: 'primary' | 'info' | 'success' | 'warning' | 'error' | 'accent' | 'neutral'
12
+ - `tone?`: 'info' | 'error' | 'primary' | 'success' | 'warning' | 'accent' | 'neutral'
13
13
  - `gradient?`: boolean
14
14
  - `image?`: string
15
15
  - `ring?`: string
@@ -7,7 +7,7 @@ A count or a dot (G9Hub Counter/Badge, tab and bell counts).
7
7
  Props:
8
8
  - `value?`: string | number
9
9
  - `appearance?`: 'solid' | 'outline' | 'plain' | 'soft' = "solid"
10
- - `tone?`: 'primary' | 'info' | 'success' | 'warning' | 'error' | 'accent' | 'neutral' = "error"
10
+ - `tone?`: 'info' | 'error' | 'primary' | 'success' | 'warning' | 'accent' | 'neutral' = "error"
11
11
  - `dot?`: boolean
12
12
  - `hideZero?`: boolean = true
13
13
  - `max?`: number = 99
@@ -6,7 +6,7 @@ Text button (MAUI `G9Button`): variant fill (gradient for the solid variants), 1
6
6
 
7
7
  Props:
8
8
  - `text?`: string
9
- - `variant?`: 'text' | 'primary' | 'default' | 'secondary' | 'info' | 'success' | 'warning' | 'error' | 'surface' | 'outline' | 'accent' | 'tonal' | 'errorTonal' | 'ghost' | 'inverse' = "primary"
9
+ - `variant?`: 'info' | 'error' | 'text' | 'primary' | 'default' | 'secondary' | 'success' | 'warning' | 'surface' | 'outline' | 'accent' | 'tonal' | 'errorTonal' | 'ghost' | 'inverse' = "primary"
10
10
  - `size?`: 'small' | 'large' | 'medium' | 'hero' = "medium"
11
11
  - `leadingIcon?`: icon
12
12
  - `onPress?`: () => void
@@ -11,7 +11,7 @@ Props:
11
11
  - `icon?`: icon
12
12
  - `onPress?`: () => void
13
13
  - `disabled?`: boolean = false
14
- - `tone?`: 'primary' | 'info' | 'success' | 'warning' | 'error' | 'accent' | 'neutral' = "primary"
14
+ - `tone?`: 'info' | 'error' | 'primary' | 'success' | 'warning' | 'accent' | 'neutral' = "primary"
15
15
  - `nodeRef?`: (node: NodesRef | null) => void
16
16
 
17
17
  Example: `<G9Chip text="Label" />`
@@ -10,7 +10,7 @@ Props:
10
10
  - `value`: string
11
11
  - `size?`: 'sm' | 'md' | 'lg'
12
12
  - `appearance?`: 'solid' | 'outline' | 'dashed' | 'soft'
13
- - `tone?`: 'primary' | 'info' | 'success' | 'warning' | 'error' | 'accent' | 'neutral'
13
+ - `tone?`: 'info' | 'error' | 'primary' | 'success' | 'warning' | 'accent' | 'neutral'
14
14
  - `haptic?`: boolean | string | string | string | string | string | string | string | string | string
15
15
 
16
16
  Example: `<G9ChipStrip items={items} onChange={() => {}} value="value" />`
@@ -2,7 +2,7 @@
2
2
 
3
3
  `import { G9ContextMenu } from '@g9tm/lynxcontrols/popover';`
4
4
 
5
- A long-press menu on its child (G9Hub ContextMenu, a message, a row): a light haptic, then the menu by the child.
5
+ A context menu on its child (G9Hub ContextMenu, a message, a row): a long press on touch (a light haptic, the menu by the child), the right mouse button on a desktop (the menu at the pointer, 2.9.0) and the context-menu
6
6
 
7
7
  Props:
8
8
  - `items`: object[]
@@ -10,6 +10,8 @@ Props:
10
10
  - `title?`: string
11
11
  - `children?`: ReactNode
12
12
  - `disabled?`: boolean
13
- - `onOpen?`: () => void
13
+ - `onOpen?`: (source: G9SecondarySource) => void
14
+ - `keyboard?`: 'focus' | 'off' | 'global'
15
+ - `longPress?`: boolean = true
14
16
 
15
17
  Example: `<G9ContextMenu items={items} onSelect={() => {}} />`
@@ -0,0 +1,10 @@
1
+ # G9DragChip
2
+
3
+ `import { G9DragChip } from '@g9tm/lynxcontrols/pointer';`
4
+
5
+ The default preview: the payload's label in a chip.
6
+
7
+ Props:
8
+ - `payload`: object
9
+
10
+ Example: `<G9DragChip payload={payload} />`
@@ -0,0 +1,17 @@
1
+ # G9DragSource
2
+
3
+ `import { G9DragSource } from '@g9tm/lynxcontrols/pointer';`
4
+
5
+ A drag source around its children (a list row, a card): drawn faded while it is dragged.
6
+
7
+ Props:
8
+ - `payload`: object | () => void
9
+ - `children?`: ReactNode
10
+ - `onDragEnd?`: (drop: G9DropEvent<T> | null) => void
11
+ - `onDragStart?`: (payload: G9DragPayload<T>) => void
12
+ - `renderPreview?`: (payload) => ReactNode
13
+ - `enabled?`: boolean = true
14
+ - `longPress?`: boolean = true
15
+ - `threshold?`: number = 4
16
+
17
+ Example: `<G9DragSource payload={payload} />`
@@ -0,0 +1,15 @@
1
+ # G9DropTarget
2
+
3
+ `import { G9DropTarget } from '@g9tm/lynxcontrols/pointer';`
4
+
5
+ A drop target around its children: outlined while a drag it accepts runs, filled while the drag is over it.
6
+
7
+ Props:
8
+ - `onDrop`: (event: G9DropEvent<T>) => void
9
+ - `children?`: ReactNode
10
+ - `accepts?`: (payload: G9DragPayload<T>) => void
11
+ - `onEnter?`: (payload: G9DragPayload<T>) => void
12
+ - `onLeave?`: (payload: G9DragPayload<T>) => void
13
+ - `enabled?`: boolean = true
14
+
15
+ Example: `<G9DropTarget onDrop={() => {}} />`
@@ -10,7 +10,7 @@ Props:
10
10
  - `icon?`: icon = "search"
11
11
  - `message?`: string
12
12
  - `compact?`: boolean
13
- - `tone?`: 'primary' | 'info' | 'success' | 'warning' | 'error' | 'accent' | 'neutral'
13
+ - `tone?`: 'info' | 'error' | 'primary' | 'success' | 'warning' | 'accent' | 'neutral'
14
14
  - `art?`: ReactNode
15
15
  - `action?`: object
16
16
 
@@ -5,12 +5,12 @@
5
5
  Square icon button (MAUI `G9IconButton`): one icon, variant/ghost fill, optional circle, corner badge that is never dimmed (opacity applies to the frame only), loading spinner, minimum touch target.
6
6
 
7
7
  Props:
8
- - `variant?`: 'text' | 'primary' | 'default' | 'secondary' | 'info' | 'success' | 'warning' | 'error' | 'surface' | 'outline' | 'accent' | 'tonal' | 'errorTonal' | 'ghost' | 'inverse' = "surface"
8
+ - `variant?`: 'info' | 'error' | 'text' | 'primary' | 'default' | 'secondary' | 'success' | 'warning' | 'surface' | 'outline' | 'accent' | 'tonal' | 'errorTonal' | 'ghost' | 'inverse' = "surface"
9
9
  - `size?`: 'sm' | 'md' | 'lg'
10
10
  - `icon?`: icon
11
11
  - `onPress?`: () => void
12
12
  - `disabled?`: boolean = false
13
- - `activeVariant?`: 'text' | 'primary' | 'default' | 'secondary' | 'info' | 'success' | 'warning' | 'error' | 'surface' | 'outline' | 'accent' | 'tonal' | 'errorTonal' | 'ghost' | 'inverse' = "tonal"
13
+ - `activeVariant?`: 'info' | 'error' | 'text' | 'primary' | 'default' | 'secondary' | 'success' | 'warning' | 'surface' | 'outline' | 'accent' | 'tonal' | 'errorTonal' | 'ghost' | 'inverse' = "tonal"
14
14
  - `badgeText?`: string
15
15
  - `badgeColor?`: color = "var(--g9-error)"
16
16
 
@@ -9,7 +9,7 @@ Props:
9
9
  - `title?`: string
10
10
  - `children?`: ReactNode
11
11
  - `icon?`: icon
12
- - `tone?`: 'primary' | 'info' | 'success' | 'warning' | 'error' | 'accent' | 'neutral' = "info"
12
+ - `tone?`: 'info' | 'error' | 'primary' | 'success' | 'warning' | 'accent' | 'neutral' = "info"
13
13
  - `onDismiss?`: () => void
14
14
  - `action?`: object
15
15
 
@@ -0,0 +1,10 @@
1
+ # G9KeyCapture
2
+
3
+ `import { G9KeyCapture } from '@g9tm/lynxcontrols/desktop';`
4
+
5
+ Hears the keys pressed anywhere inside (desktop: Lynxtron) and hands them to the page's key handlers.
6
+
7
+ Props:
8
+ - `children?`: ReactNode
9
+
10
+ Example: `<G9KeyCapture />`
@@ -9,7 +9,7 @@ Props:
9
9
  - `value`: string
10
10
  - `icon?`: icon
11
11
  - `onPress?`: () => void
12
- - `tone?`: 'primary' | 'info' | 'success' | 'warning' | 'error' | 'accent' | 'neutral'
12
+ - `tone?`: 'info' | 'error' | 'primary' | 'success' | 'warning' | 'accent' | 'neutral'
13
13
  - `loading?`: boolean
14
14
  - `trend?`: ReactNode
15
15
  - `delta?`: object
@@ -11,7 +11,7 @@ Props:
11
11
  - `subtitle?`: string
12
12
  - `onPress?`: () => void
13
13
  - `disabled?`: boolean = false
14
- - `iconTone?`: 'primary' | 'info' | 'success' | 'warning' | 'error' | 'accent' | 'neutral' = "neutral"
14
+ - `iconTone?`: 'info' | 'error' | 'primary' | 'success' | 'warning' | 'accent' | 'neutral' = "neutral"
15
15
  - `pressFeedback?`: 'none' | 'tint' = "none"
16
16
 
17
17
  Example: `<G9ListRow title="Label" />`
@@ -6,6 +6,6 @@
6
6
 
7
7
  Props:
8
8
  - `text`: string
9
- - `tone?`: 'primary' | 'info' | 'success' | 'warning' | 'error' | 'accent' | 'neutral'
9
+ - `tone?`: 'info' | 'error' | 'primary' | 'success' | 'warning' | 'accent' | 'neutral'
10
10
 
11
11
  Example: `<G9LiveBadge text="Label" />`
@@ -6,7 +6,7 @@ A live dot with an expanding ring (Riskara Pulse, «online», a running sync).
6
6
 
7
7
  Props:
8
8
  - `size?`: number = 8
9
- - `tone?`: 'primary' | 'info' | 'success' | 'warning' | 'error' | 'accent' | 'neutral' = "success"
9
+ - `tone?`: 'info' | 'error' | 'primary' | 'success' | 'warning' | 'accent' | 'neutral' = "success"
10
10
  - `pulse?`: boolean = true
11
11
 
12
12
  Example: `<G9LiveDot />`
@@ -8,7 +8,7 @@ Props:
8
8
  - `value?`: number = 0
9
9
  - `disabled?`: boolean = false
10
10
  - `labelPlacement?`: 'none' | 'above' | 'end' = "none"
11
- - `progressType?`: 'primary' | 'success' | 'warning' | 'error' = "primary"
11
+ - `progressType?`: 'error' | 'primary' | 'success' | 'warning' = "primary"
12
12
  - `barHeight?`: number = 10
13
13
  - `cornerRadius?`: number = 999
14
14
  - `flat?`: boolean
@@ -8,7 +8,7 @@ Props:
8
8
  - `value`: number
9
9
  - `children?`: ReactNode
10
10
  - `size?`: number = 72
11
- - `tone?`: 'primary' | 'info' | 'success' | 'warning' | 'error' | 'accent' | 'neutral' = "primary"
11
+ - `tone?`: 'info' | 'error' | 'primary' | 'success' | 'warning' | 'accent' | 'neutral' = "primary"
12
12
  - `trackColor?`: color
13
13
  - `color?`: color
14
14
  - `thickness?`: number = 6
@@ -6,7 +6,7 @@ Button with guarded execution (MAUI `G9SafeButton`): a tap calls `onPress`, then
6
6
 
7
7
  Props:
8
8
  - `text?`: string
9
- - `variant?`: 'text' | 'primary' | 'default' | 'secondary' | 'info' | 'success' | 'warning' | 'error' | 'surface' | 'outline' | 'accent' | 'tonal' | 'errorTonal' | 'ghost' | 'inverse' = "primary"
9
+ - `variant?`: 'info' | 'error' | 'text' | 'primary' | 'default' | 'secondary' | 'success' | 'warning' | 'surface' | 'outline' | 'accent' | 'tonal' | 'errorTonal' | 'ghost' | 'inverse' = "primary"
10
10
  - `size?`: 'small' | 'large' | 'medium' | 'hero' = "medium"
11
11
  - `leadingIcon?`: icon
12
12
  - `onPress?`: () => void
@@ -5,12 +5,12 @@
5
5
  Icon button with guarded execution (MAUI `G9SafeIconButton`); see `G9SafeButton`.
6
6
 
7
7
  Props:
8
- - `variant?`: 'text' | 'primary' | 'default' | 'secondary' | 'info' | 'success' | 'warning' | 'error' | 'surface' | 'outline' | 'accent' | 'tonal' | 'errorTonal' | 'ghost' | 'inverse' = "surface"
8
+ - `variant?`: 'info' | 'error' | 'text' | 'primary' | 'default' | 'secondary' | 'success' | 'warning' | 'surface' | 'outline' | 'accent' | 'tonal' | 'errorTonal' | 'ghost' | 'inverse' = "surface"
9
9
  - `size?`: 'sm' | 'md' | 'lg'
10
10
  - `icon?`: icon
11
11
  - `onPress?`: () => void
12
12
  - `disabled?`: boolean = false
13
- - `activeVariant?`: 'text' | 'primary' | 'default' | 'secondary' | 'info' | 'success' | 'warning' | 'error' | 'surface' | 'outline' | 'accent' | 'tonal' | 'errorTonal' | 'ghost' | 'inverse' = "tonal"
13
+ - `activeVariant?`: 'info' | 'error' | 'text' | 'primary' | 'default' | 'secondary' | 'success' | 'warning' | 'surface' | 'outline' | 'accent' | 'tonal' | 'errorTonal' | 'ghost' | 'inverse' = "tonal"
14
14
  - `onExecute?`: (context: G9SafeRunContext) => void
15
15
  - `onResult?`: (result: G9SafeRunResult<unknown>) => void
16
16
 
@@ -9,7 +9,7 @@ Props:
9
9
  - `size?`: 'sm' | 'md' | 'lg'
10
10
  - `icon?`: icon
11
11
  - `appearance?`: 'solid' | 'outline' | 'plain' | 'soft' = "soft"
12
- - `tone?`: 'primary' | 'info' | 'success' | 'warning' | 'error' | 'accent' | 'neutral' = "neutral"
12
+ - `tone?`: 'info' | 'error' | 'primary' | 'success' | 'warning' | 'accent' | 'neutral' = "neutral"
13
13
  - `fillAlpha?`: number = 0.15
14
14
  - `bordered?`: boolean
15
15
  - `color?`: color
@@ -7,7 +7,7 @@ Where an order (a delivery, a wizard) is: done, current, to come (ShopManager St
7
7
  Props:
8
8
  - `current`: number
9
9
  - `steps`: string[]
10
- - `tone?`: 'primary' | 'info' | 'success' | 'warning' | 'error' | 'accent' | 'neutral' = "primary"
10
+ - `tone?`: 'info' | 'error' | 'primary' | 'success' | 'warning' | 'accent' | 'neutral' = "primary"
11
11
  - `failedAt?`: number
12
12
 
13
13
  Example: `<G9StepTracker current={1} steps={steps} />`
@@ -11,7 +11,7 @@ Props:
11
11
  - `icon?`: icon
12
12
  - `subtitle?`: string
13
13
  - `disabled?`: boolean = false
14
- - `iconTone?`: 'primary' | 'info' | 'success' | 'warning' | 'error' | 'accent' | 'neutral' = "neutral"
14
+ - `iconTone?`: 'info' | 'error' | 'primary' | 'success' | 'warning' | 'accent' | 'neutral' = "neutral"
15
15
  - `pressFeedback?`: 'none' | 'tint' = "none"
16
16
 
17
17
  Example: `<G9SwitchRow checked onCheckedChange={() => {}} title="Label" />`
@@ -8,7 +8,7 @@ Props:
8
8
  - `text`: string
9
9
  - `icon?`: icon
10
10
  - `appearance?`: 'solid' | 'outline' | 'plain' | 'soft'
11
- - `tone?`: 'primary' | 'info' | 'success' | 'warning' | 'error' | 'accent' | 'neutral'
11
+ - `tone?`: 'info' | 'error' | 'primary' | 'success' | 'warning' | 'accent' | 'neutral'
12
12
  - `emoji?`: string
13
13
 
14
14
  Example: `<G9Tag text="Label" />`