@g9tm/lynxcontrols 2.5.7 → 2.5.8

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 (251) hide show
  1. package/catalog/cards/G9AppearancePage.md +17 -0
  2. package/catalog/cards/G9Badge.md +1 -1
  3. package/catalog/cards/G9Button.md +2 -2
  4. package/catalog/cards/G9Card.md +1 -1
  5. package/catalog/cards/G9Chip.md +1 -1
  6. package/catalog/cards/G9ChipStrip.md +16 -0
  7. package/catalog/cards/G9CodeBlock.md +17 -0
  8. package/catalog/cards/G9CommandPalette.md +3 -1
  9. package/catalog/cards/G9ConnectionBanner.md +1 -1
  10. package/catalog/cards/G9ContrastPanel.md +15 -0
  11. package/catalog/cards/G9DashboardCustomizeSheet.md +17 -0
  12. package/catalog/cards/G9DashboardGrid.md +17 -0
  13. package/catalog/cards/G9DragList.md +4 -2
  14. package/catalog/cards/G9Editor.md +1 -1
  15. package/catalog/cards/G9ErrorBoundary.md +3 -2
  16. package/catalog/cards/G9Menu.md +1 -1
  17. package/catalog/cards/G9MenuList.md +2 -0
  18. package/catalog/cards/G9NotificationCenter.md +17 -0
  19. package/catalog/cards/G9NotificationCenterPanel.md +17 -0
  20. package/catalog/cards/G9PathNavigator.md +13 -0
  21. package/catalog/cards/G9PersonalThemeSheet.md +17 -0
  22. package/catalog/cards/G9Popover.md +1 -1
  23. package/catalog/cards/G9Provider.md +1 -1
  24. package/catalog/cards/G9ReaderSheet.md +17 -0
  25. package/catalog/cards/G9ReaderView.md +17 -0
  26. package/catalog/cards/G9SafeButton.md +2 -2
  27. package/catalog/cards/G9SearchEntry.md +1 -1
  28. package/catalog/cards/G9SecretValue.md +17 -0
  29. package/catalog/cards/G9ShortcutList.md +4 -0
  30. package/catalog/cards/G9ShortcutsSheet.md +3 -1
  31. package/catalog/cards/G9StatusPill.md +1 -1
  32. package/catalog/cards/G9Tag.md +1 -1
  33. package/catalog/cards/G9TextEntry.md +1 -1
  34. package/catalog/cards/G9VirtualList.md +1 -1
  35. package/catalog/cards/G9WallpaperSwatch.md +16 -0
  36. package/catalog/cards/G9WidgetSkeleton.md +9 -0
  37. package/catalog/cards/G9WidgetSlot.md +13 -0
  38. package/catalog/cards/PopupFrame.md +2 -2
  39. package/catalog/catalog.json +6947 -479
  40. package/catalog/index.md +18 -2
  41. package/dist/.tsbuildinfo +1 -1
  42. package/dist/appearance/appearance.css +264 -0
  43. package/dist/appearance/appearance.css.map +1 -0
  44. package/dist/appearance/appearance.d.ts +148 -0
  45. package/dist/appearance/appearance.d.ts.map +1 -0
  46. package/dist/appearance/appearance.jsx +604 -0
  47. package/dist/appearance/index.d.ts +2 -0
  48. package/dist/appearance/index.d.ts.map +1 -0
  49. package/dist/appearance/index.jsx +1 -0
  50. package/dist/base/control.d.ts +15 -0
  51. package/dist/base/control.d.ts.map +1 -1
  52. package/dist/base/control.jsx +13 -1
  53. package/dist/base/index.d.ts +1 -1
  54. package/dist/base/index.d.ts.map +1 -1
  55. package/dist/base/index.jsx +1 -1
  56. package/dist/button/button.css +4 -0
  57. package/dist/button/button.css.map +1 -1
  58. package/dist/cascade/cascade.css +2 -0
  59. package/dist/cascade/cascade.css.map +1 -1
  60. package/dist/commands/commands.css +46 -0
  61. package/dist/commands/commands.css.map +1 -1
  62. package/dist/commands/index.d.ts +2 -2
  63. package/dist/commands/index.d.ts.map +1 -1
  64. package/dist/commands/index.jsx +2 -2
  65. package/dist/commands/keys.d.ts +15 -1
  66. package/dist/commands/keys.d.ts.map +1 -1
  67. package/dist/commands/keys.jsx +20 -1
  68. package/dist/commands/palette.d.ts +73 -7
  69. package/dist/commands/palette.d.ts.map +1 -1
  70. package/dist/commands/palette.jsx +174 -20
  71. package/dist/dashboard/dashboard.css +101 -0
  72. package/dist/dashboard/dashboard.css.map +1 -0
  73. package/dist/dashboard/dashboard.d.ts +73 -0
  74. package/dist/dashboard/dashboard.d.ts.map +1 -0
  75. package/dist/dashboard/dashboard.jsx +297 -0
  76. package/dist/dashboard/index.d.ts +3 -0
  77. package/dist/dashboard/index.d.ts.map +1 -0
  78. package/dist/dashboard/index.jsx +2 -0
  79. package/dist/dashboard/model.d.ts +53 -0
  80. package/dist/dashboard/model.d.ts.map +1 -0
  81. package/dist/dashboard/model.jsx +76 -0
  82. package/dist/display/code.css +109 -0
  83. package/dist/display/code.css.map +1 -0
  84. package/dist/display/code.d.ts +43 -0
  85. package/dist/display/code.d.ts.map +1 -0
  86. package/dist/display/code.jsx +101 -0
  87. package/dist/display/extras.d.ts +7 -2
  88. package/dist/display/extras.d.ts.map +1 -1
  89. package/dist/display/extras.jsx +13 -4
  90. package/dist/display/index.d.ts +1 -0
  91. package/dist/display/index.d.ts.map +1 -1
  92. package/dist/display/index.jsx +1 -0
  93. package/dist/display/motion-figures.css +2 -0
  94. package/dist/display/motion-figures.css.map +1 -1
  95. package/dist/display/motion-figures.d.ts.map +1 -1
  96. package/dist/display/motion-figures.jsx +14 -7
  97. package/dist/display/theme-preview.css +4 -0
  98. package/dist/display/theme-preview.css.map +1 -1
  99. package/dist/fields/extra-entries.css +1 -0
  100. package/dist/fields/extra-entries.css.map +1 -1
  101. package/dist/fields/extra-entries.d.ts +2 -0
  102. package/dist/fields/extra-entries.d.ts.map +1 -1
  103. package/dist/fields/extra-entries.jsx +3 -2
  104. package/dist/header/header.css +2 -0
  105. package/dist/header/header.css.map +1 -1
  106. package/dist/host/carry-contexts.d.ts.map +1 -1
  107. package/dist/host/carry-contexts.jsx +22 -8
  108. package/dist/index.d.ts +4 -0
  109. package/dist/index.d.ts.map +1 -1
  110. package/dist/layout/layout.css +2 -0
  111. package/dist/layout/layout.css.map +1 -1
  112. package/dist/list/gestures.d.ts +39 -6
  113. package/dist/list/gestures.d.ts.map +1 -1
  114. package/dist/list/gestures.jsx +284 -89
  115. package/dist/list/index.d.ts +3 -2
  116. package/dist/list/index.d.ts.map +1 -1
  117. package/dist/list/index.jsx +2 -1
  118. package/dist/list/keyboard.d.ts +50 -0
  119. package/dist/list/keyboard.d.ts.map +1 -0
  120. package/dist/list/keyboard.jsx +117 -0
  121. package/dist/list/list.css +28 -5
  122. package/dist/list/list.css.map +1 -1
  123. package/dist/list/rows.d.ts.map +1 -1
  124. package/dist/list/rows.jsx +3 -3
  125. package/dist/list/virtual-list.d.ts +27 -1
  126. package/dist/list/virtual-list.d.ts.map +1 -1
  127. package/dist/list/virtual-list.jsx +49 -4
  128. package/dist/notifications/index.d.ts +3 -0
  129. package/dist/notifications/index.d.ts.map +1 -0
  130. package/dist/notifications/index.jsx +2 -0
  131. package/dist/notifications/model.d.ts +47 -0
  132. package/dist/notifications/model.d.ts.map +1 -0
  133. package/dist/notifications/model.jsx +51 -0
  134. package/dist/notifications/notification-center.d.ts +98 -0
  135. package/dist/notifications/notification-center.d.ts.map +1 -0
  136. package/dist/notifications/notification-center.jsx +424 -0
  137. package/dist/notifications/notifications.css +266 -0
  138. package/dist/notifications/notifications.css.map +1 -0
  139. package/dist/orb/orb.css +2 -0
  140. package/dist/orb/orb.css.map +1 -1
  141. package/dist/pickers/pickers.css +15 -0
  142. package/dist/pickers/pickers.css.map +1 -1
  143. package/dist/plus-button/plus-button.css +2 -0
  144. package/dist/plus-button/plus-button.css.map +1 -1
  145. package/dist/plus-button/plus-button.d.ts.map +1 -1
  146. package/dist/plus-button/plus-button.jsx +2 -1
  147. package/dist/popover/popover.css +23 -1
  148. package/dist/popover/popover.css.map +1 -1
  149. package/dist/popover/popover.d.ts +14 -0
  150. package/dist/popover/popover.d.ts.map +1 -1
  151. package/dist/popover/popover.jsx +73 -12
  152. package/dist/popover/position.d.ts +6 -2
  153. package/dist/popover/position.d.ts.map +1 -1
  154. package/dist/popover/position.jsx +15 -4
  155. package/dist/popup/popup.css +3 -0
  156. package/dist/popup/popup.css.map +1 -1
  157. package/dist/provider/provider.d.ts +6 -1
  158. package/dist/provider/provider.d.ts.map +1 -1
  159. package/dist/provider/provider.jsx +22 -2
  160. package/dist/reader/index.d.ts +2 -0
  161. package/dist/reader/index.d.ts.map +1 -0
  162. package/dist/reader/index.jsx +1 -0
  163. package/dist/reader/reader.css +74 -0
  164. package/dist/reader/reader.css.map +1 -0
  165. package/dist/reader/reader.d.ts +76 -0
  166. package/dist/reader/reader.d.ts.map +1 -0
  167. package/dist/reader/reader.jsx +149 -0
  168. package/dist/route/index.d.ts +2 -0
  169. package/dist/route/index.d.ts.map +1 -1
  170. package/dist/route/index.jsx +2 -0
  171. package/dist/route/path-navigator.css +42 -0
  172. package/dist/route/path-navigator.css.map +1 -0
  173. package/dist/route/path-navigator.d.ts +25 -0
  174. package/dist/route/path-navigator.d.ts.map +1 -0
  175. package/dist/route/path-navigator.jsx +98 -0
  176. package/dist/route/path-router.d.ts +162 -0
  177. package/dist/route/path-router.d.ts.map +1 -0
  178. package/dist/route/path-router.jsx +327 -0
  179. package/dist/selection/selection.css +2 -0
  180. package/dist/selection/selection.css.map +1 -1
  181. package/dist/sheet/frame.d.ts.map +1 -1
  182. package/dist/sheet/frame.jsx +9 -8
  183. package/dist/sheet/options.d.ts +6 -1
  184. package/dist/sheet/options.d.ts.map +1 -1
  185. package/dist/sheet/options.jsx +2 -1
  186. package/dist/sheet/panel-frame.d.ts.map +1 -1
  187. package/dist/sheet/panel-frame.jsx +5 -4
  188. package/dist/sheet/sizing.d.ts +3 -3
  189. package/dist/sheet/sizing.d.ts.map +1 -1
  190. package/dist/sheet/sizing.jsx +1 -0
  191. package/dist/shell/shell.css +12 -1
  192. package/dist/shell/shell.css.map +1 -1
  193. package/dist/shell/shell.d.ts.map +1 -1
  194. package/dist/shell/shell.jsx +7 -5
  195. package/dist/survey/survey.d.ts.map +1 -1
  196. package/dist/survey/survey.jsx +9 -6
  197. package/dist/swipe/swipe.css +2 -0
  198. package/dist/swipe/swipe.css.map +1 -1
  199. package/dist/tab-bar/flat.jsx +5 -4
  200. package/dist/tab-bar/tab-bar.css +2 -0
  201. package/dist/tab-bar/tab-bar.css.map +1 -1
  202. package/dist/toast/index.d.ts +1 -1
  203. package/dist/toast/index.d.ts.map +1 -1
  204. package/dist/toast/service.d.ts.map +1 -1
  205. package/dist/toast/service.jsx +18 -5
  206. package/dist/toast/store.d.ts +22 -0
  207. package/dist/toast/store.d.ts.map +1 -1
  208. package/dist/toast/store.jsx +35 -3
  209. package/dist/toast/toast.css +22 -0
  210. package/dist/toast/toast.css.map +1 -1
  211. package/dist/toggle/choice.css +27 -0
  212. package/dist/toggle/choice.css.map +1 -1
  213. package/dist/toggle/choice.d.ts +36 -0
  214. package/dist/toggle/choice.d.ts.map +1 -1
  215. package/dist/toggle/choice.jsx +77 -13
  216. package/dist/toggle/index.d.ts +1 -1
  217. package/dist/toggle/index.d.ts.map +1 -1
  218. package/dist/toggle/index.jsx +1 -1
  219. package/package.json +22 -2
  220. package/skills/g9-lynx-app/references/catalog-index.md +22 -6
  221. package/skills/g9-lynx-app/references/components/appearance.md +70 -0
  222. package/skills/g9-lynx-app/references/components/barcode.md +1 -1
  223. package/skills/g9-lynx-app/references/components/button.md +4 -4
  224. package/skills/g9-lynx-app/references/components/calendar-1.md +205 -0
  225. package/skills/g9-lynx-app/references/components/calendar-2.md +36 -0
  226. package/skills/g9-lynx-app/references/components/canvas.md +33 -0
  227. package/skills/g9-lynx-app/references/components/chat-1.md +199 -0
  228. package/skills/g9-lynx-app/references/components/chat-2.md +119 -0
  229. package/skills/g9-lynx-app/references/components/commands.md +10 -2
  230. package/skills/g9-lynx-app/references/components/dashboard.md +61 -0
  231. package/skills/g9-lynx-app/references/components/display-1.md +22 -21
  232. package/skills/g9-lynx-app/references/components/display-2.md +36 -39
  233. package/skills/g9-lynx-app/references/components/display-3.md +41 -2
  234. package/skills/g9-lynx-app/references/components/fields.md +3 -3
  235. package/skills/g9-lynx-app/references/components/layout-1.md +1 -1
  236. package/skills/g9-lynx-app/references/components/list.md +5 -3
  237. package/skills/g9-lynx-app/references/components/media-1.md +203 -0
  238. package/skills/g9-lynx-app/references/components/media-2.md +66 -0
  239. package/skills/g9-lynx-app/references/components/notifications.md +37 -0
  240. package/skills/g9-lynx-app/references/components/popover.md +4 -2
  241. package/skills/g9-lynx-app/references/components/popup.md +2 -2
  242. package/skills/g9-lynx-app/references/components/projects.md +73 -0
  243. package/skills/g9-lynx-app/references/components/provider.md +1 -1
  244. package/skills/g9-lynx-app/references/components/reader.md +37 -0
  245. package/skills/g9-lynx-app/references/components/richtext.md +54 -0
  246. package/skills/g9-lynx-app/references/components/route.md +14 -0
  247. package/skills/g9-lynx-app/references/components/shell.md +1 -1
  248. package/skills/g9-lynx-app/references/components/toggle.md +18 -1
  249. package/skills/g9-lynx-app/references/components/calendar.md +0 -128
  250. package/skills/g9-lynx-app/references/components/chat.md +0 -98
  251. package/skills/g9-lynx-app/references/components/media.md +0 -115
@@ -4,14 +4,16 @@
4
4
 
5
5
  `import { G9DragList } from '@g9tm/lynxcontrols/list';`
6
6
 
7
- Reorder by dragging (G9Hub board columns, ShopManager menu order): long-press lifts a row, it follows the finger, the rows it passes slide aside, release drops it.
7
+ Reorder by dragging (G9Hub's home customising, ShopManager menu order): a long press — or a touch on the row's handle (`handle`) — lifts a row, it follows the finger on the main thread, the rows it passes slide aside, re
8
8
 
9
9
  Props:
10
10
  - `getKey`: (item: T) => void
11
11
  - `items`: NonNullable<T>[]
12
12
  - `onReorder`: (items: T[]) => void
13
- - `renderItem`: (item, dragging) => ReactNode
13
+ - `renderItem`: (item, dragging, controls) => ReactNode
14
14
  - `disabled?`: boolean
15
+ - `onStart?`: (item: T, index: number) => void
16
+ - `handleLabel?`: string
15
17
  - `rowHeight?`: number = 56
16
18
 
17
19
  Example: `<G9DragList getKey={getKey} items={items} onReorder={() => {}} renderItem={renderItem} />`
@@ -106,7 +108,7 @@ A virtualised list on Lynx's native `<list>` (G9Hub VirtualList, SAC DataGrid ro
106
108
  Props:
107
109
  - `getKey`: (item: T, index: number) => void
108
110
  - `items`: NonNullable<T>[]
109
- - `renderItem`: (item, index) => ReactNode
111
+ - `renderItem`: (item, index, state) => ReactNode
110
112
  - `columns?`: number = 1
111
113
  - `isFullSpan?`: (item: T, index: number) => void
112
114
  - `isSticky?`: (item: T, index: number) => void
@@ -0,0 +1,203 @@
1
+ # `@g9tm/lynxcontrols-media` (part 1 of 2) (generated)
2
+
3
+ # G9BlurhashView
4
+
5
+ `import { G9BlurhashView } from '@g9tm/lynxcontrols-media';`
6
+
7
+ A blurhash placeholder under a photo that fades in on load (one SVG built per hash).
8
+
9
+ Props:
10
+ - `hash`: string
11
+ - `height`: string | number
12
+ - `width`: string | number
13
+ - `radius?`: number
14
+ - `mode?`: 'aspectFill' | 'aspectFit'
15
+ - `native?`: boolean
16
+ - `src?`: string
17
+
18
+ Example: `<G9BlurhashView hash="hash" height={height} width={width} />`
19
+
20
+ # G9CallControls
21
+
22
+ `import { G9CallControls } from '@g9tm/lynxcontrols-media';`
23
+
24
+ The control bar under a call: round buttons, the hang-up red.
25
+
26
+ Props:
27
+ - `controls`: object[]
28
+
29
+ Example: `<G9CallControls controls={controls} />`
30
+
31
+ # G9CallStage
32
+
33
+ `import { G9CallStage } from '@g9tm/lynxcontrols-media';`
34
+
35
+ The video stage of a call or a meeting: its layout from the people, shares and pin; only visible tiles drawn.
36
+
37
+ Props:
38
+ - `tiles`: object[]
39
+ - `onPinnedChange?`: (key: string | null) => void
40
+ - `activeSpeaker?`: string
41
+ - `direct?`: boolean
42
+ - `insetBottom?`: number
43
+ - `insetTop?`: number
44
+ - `labels?`: object
45
+ - `pinned?`: string
46
+
47
+ Example: `<G9CallStage tiles={tiles} />`
48
+
49
+ # G9CallTileView
50
+
51
+ `import { G9CallTileView } from '@g9tm/lynxcontrols-media';`
52
+
53
+ A participant: the video or the avatar with a speaking ring, the name plate, signal bars, a pin.
54
+
55
+ Props:
56
+ - `tile`: object
57
+ - `onPin?`: (key: string) => void
58
+ - `avatarSize?`: number = 72
59
+ - `compact?`: boolean
60
+ - `full?`: boolean
61
+ - `labels?`: object
62
+ - `pinned?`: boolean
63
+
64
+ Example: `<G9CallTileView tile={tile} />`
65
+
66
+ # G9Captcha
67
+
68
+ `import { G9Captcha } from '@g9tm/lynxcontrols-media';`
69
+
70
+ A proof-of-work check (ALTCHA): verifying, verified, or failed with a retry.
71
+
72
+ Props:
73
+ - `labels`: object
74
+ - `onSolution`: (payload: string) => void
75
+ - `solve`: (signal: AbortSignal) => void
76
+ - `round?`: number
77
+
78
+ Example: `<G9Captcha labels={labels} onSolution={() => {}} solve={solve} />`
79
+
80
+ # G9ClipPlayer
81
+
82
+ `import { G9ClipPlayer } from '@g9tm/lynxcontrols-media';`
83
+
84
+ An async video clip (G9Hub item 51, 2.5.8): the poster with its length and a play mark, the app's player in place.
85
+
86
+ Props:
87
+ - `seconds`: number
88
+ - `label?`: string
89
+ - `onPlay?`: () => void
90
+ - `caption?`: string
91
+ - `radius?`: number = 16
92
+ - `player?`: ReactNode
93
+ - `aspect?`: number = 16
94
+ - `poster?`: string
95
+
96
+ Example: `<G9ClipPlayer seconds={1} />`
97
+
98
+ # G9DropZone
99
+
100
+ `import { G9DropZone } from '@g9tm/lynxcontrols-media';`
101
+
102
+ Two uses: `<G9DropZone label onFiles />` is a tappable area that opens the chooser (the way in on a phone); `<G9DropZone label onFiles>{thread}</G9DropZone>` makes the content the target of files dropped on the window, w
103
+
104
+ Props:
105
+ - `label`: string
106
+ - `onFiles`: (files: readonly G9FileRef[]) => void
107
+ - `children?`: ReactNode
108
+ - `disabled?`: boolean
109
+ - `hint?`: string
110
+ - `accept?`: string
111
+ - `multiple?`: boolean = true
112
+ - `tapToPick?`: boolean
113
+
114
+ Example: `<G9DropZone label="Label" onFiles={() => {}} />`
115
+
116
+ # G9ImageCropper
117
+
118
+ `import { G9ImageCropper } from '@g9tm/lynxcontrols-media';`
119
+
120
+ Drag to place, pinch or the slider to zoom; the crop rectangle in image pixels comes out.
121
+
122
+ Props:
123
+ - `src`: string
124
+ - `onChange?`: (crop: { readonly x: number; readonly y: number; readonly width: number; readonly height: number; }, state: G9CropState) => void
125
+ - `zoomLabel?`: string
126
+ - `frame?`: object
127
+ - `image?`: object
128
+ - `maxZoom?`: number
129
+ - `round?`: boolean
130
+ - `zoomControl?`: 'slider' | 'stepper'
131
+
132
+ Example: `<G9ImageCropper src="src" />`
133
+
134
+ # G9IncomingCall
135
+
136
+ `import { G9IncomingCall } from '@g9tm/lynxcontrols-media';`
137
+
138
+ The incoming-call screen: who calls, decline, answer (and with video).
139
+
140
+ Props:
141
+ - `labels`: object
142
+ - `name`: string
143
+ - `onAccept`: (withVideo: boolean) => void
144
+ - `onDecline`: () => void
145
+ - `subtitle`: string
146
+ - `busy?`: boolean
147
+ - `canVideo?`: boolean
148
+ - `full?`: boolean
149
+
150
+ Example: `<G9IncomingCall labels={labels} name="name" onAccept={() => {}} onDecline={() => {}} subtitle="subtitle" />`
151
+
152
+ # G9Lightbox
153
+
154
+ `import { G9Lightbox } from '@g9tm/lynxcontrols-media';`
155
+
156
+ The photos full screen on black: swipe between them (Lynx's native `<viewpager>`, snapping), the position «۲ / ۵», a close button; fades in with opacity only.
157
+
158
+ Props:
159
+ - `index`: number
160
+ - `items`: object[]
161
+ - `onClose`: () => void
162
+ - `open`: boolean
163
+ - `renderItem?`: (item, index) => ReactNode
164
+ - `onError?`: (item: G9MediaItem, index: number) => void
165
+ - `onIndexChange?`: (index: number) => void
166
+ - `onPlay?`: (item: G9MediaItem, index: number) => void
167
+
168
+ Example: `<G9Lightbox index={1} items={items} onClose={() => {}} open />`
169
+
170
+ # G9MediaGrid
171
+
172
+ `import { G9MediaGrid } from '@g9tm/lynxcontrols-media';`
173
+
174
+ 1–4 tiles (and «+k» on the fourth) in a chat or feed post; a tap opens the photo.
175
+
176
+ Props:
177
+ - `items`: object[]
178
+ - `width`: number
179
+ - `onCancel?`: (index: number) => void
180
+ - `onOpen?`: (index: number) => void
181
+ - `cancelLabel?`: string
182
+ - `radius?`: number
183
+ - `gap?`: number
184
+ - `height?`: number
185
+
186
+ Example: `<G9MediaGrid items={items} width={1} />`
187
+
188
+ # G9MediaPager
189
+
190
+ `import { G9MediaPager } from '@g9tm/lynxcontrols-media';`
191
+
192
+ Pictures one per page, swiped (Lynx's native `<viewpager>`, snapping), each fitted on the page.
193
+
194
+ Props:
195
+ - `index`: number
196
+ - `items`: object[]
197
+ - `renderItem?`: (item, index) => ReactNode
198
+ - `onError?`: (item: G9MediaItem, index: number) => void
199
+ - `onIndexChange?`: (index: number) => void
200
+ - `onPlay?`: (item: G9MediaItem, index: number) => void
201
+ - `playLabel?`: string
202
+
203
+ Example: `<G9MediaPager index={1} items={items} />`
@@ -0,0 +1,66 @@
1
+ # `@g9tm/lynxcontrols-media` (part 2 of 2) (generated)
2
+
3
+ # G9QualityBars
4
+
5
+ `import { G9QualityBars } from '@g9tm/lynxcontrols-media';`
6
+
7
+ Four signal bars, the lit ones by quality.
8
+
9
+ Props:
10
+ - `quality`: 'poor' | 'excellent' | 'good' | 'lost'
11
+ - `size?`: number
12
+
13
+ Example: `<G9QualityBars quality="poor" />`
14
+
15
+ # G9SelfPip
16
+
17
+ `import { G9SelfPip } from '@g9tm/lynxcontrols-media';`
18
+
19
+ My video floating over a 1:1 call: dragged on the main thread, it glides to the nearest corner on release.
20
+
21
+ Props:
22
+ - `height`: number
23
+ - `width`: number
24
+ - `label?`: string
25
+ - `children?`: ReactNode
26
+ - `pipHeight?`: number
27
+ - `pipWidth?`: number = 104
28
+ - `bottomInset?`: number
29
+ - `topInset?`: number
30
+
31
+ Example: `<G9SelfPip height={1} width={1} />`
32
+
33
+ # G9VideoNote
34
+
35
+ `import { G9VideoNote } from '@g9tm/lynxcontrols-media';`
36
+
37
+ A round video message: the poster with its length, a play mark; while it uploads a ring.
38
+
39
+ Props:
40
+ - `seconds`: number
41
+ - `label?`: string
42
+ - `size?`: number = 200
43
+ - `onPlay?`: () => void
44
+ - `player?`: ReactNode
45
+ - `poster?`: string
46
+ - `progress?`: number
47
+
48
+ Example: `<G9VideoNote seconds={1} />`
49
+
50
+ # G9VoicePlayer
51
+
52
+ `import { G9VoicePlayer } from '@g9tm/lynxcontrols-media';`
53
+
54
+ A voice note: play/pause, the waveform filling as it plays, the time left.
55
+
56
+ Props:
57
+ - `duration`: number
58
+ - `onToggle`: () => void
59
+ - `playing`: boolean
60
+ - `position`: number
61
+ - `onSeek?`: (fraction: number) => void
62
+ - `onSpeedChange?`: (next: number) => void
63
+ - `pauseLabel?`: string
64
+ - `playLabel?`: string
65
+
66
+ Example: `<G9VoicePlayer duration={1} onToggle={() => {}} playing position={1} />`
@@ -0,0 +1,37 @@
1
+ # `@g9tm/lynxcontrols/notifications` (generated)
2
+
3
+ # G9NotificationCenter
4
+
5
+ `import { G9NotificationCenter } from '@g9tm/lynxcontrols/notifications';`
6
+
7
+ The notification center's content (inside a popover, a sheet or a page).
8
+
9
+ Props:
10
+ - `items`: object[]
11
+ - `variant?`: 'sheet' | 'panel'
12
+ - `groupTitle?`: (group: G9NotificationGroup) => void
13
+ - `onFilterChange?`: (key: string) => void
14
+ - `onMarkAllRead?`: () => void
15
+ - `onMarkRead?`: (ids: readonly string[]) => void
16
+ - `onMenuItem?`: (key: string) => void
17
+ - `onOpen?`: (entry: G9NotificationEntry) => void
18
+
19
+ Example: `<G9NotificationCenter items={items} />`
20
+
21
+ # G9NotificationCenterPanel
22
+
23
+ `import { G9NotificationCenterPanel } from '@g9tm/lynxcontrols/notifications';`
24
+
25
+ The center beside its bell (a popover) on wide windows, as a sheet on phones; opening an entry closes it.
26
+
27
+ Props:
28
+ - `items`: object[]
29
+ - `onClose`: () => void
30
+ - `open`: boolean
31
+ - `placement?`: 'end' | 'start' | 'top' | 'bottom' | 'bottom-start' | 'bottom-end' | 'top-start' | 'top-end' | 'start-start' | 'start-end' | 'end-start' | 'end-end' = "end-end"
32
+ - `groupTitle?`: (group: G9NotificationGroup) => void
33
+ - `onFilterChange?`: (key: string) => void
34
+ - `onMarkAllRead?`: () => void
35
+ - `onMarkRead?`: (ids: readonly string[]) => void
36
+
37
+ Example: `<G9NotificationCenterPanel items={items} onClose={() => {}} open />`
@@ -43,7 +43,7 @@ Props:
43
43
  - `onSelect`: (key: string) => void
44
44
  - `open`: boolean
45
45
  - `title?`: string
46
- - `placement?`: 'end' | 'start' | 'top' | 'bottom' | 'bottom-start' | 'bottom-end' | 'top-start' | 'top-end' = "bottom-start"
46
+ - `placement?`: 'end' | 'start' | 'top' | 'bottom' | 'bottom-start' | 'bottom-end' | 'top-start' | 'top-end' | 'start-start' | 'start-end' | 'end-start' | 'end-end' = "bottom-start"
47
47
  - `cancelText?`: string
48
48
  - `matchWidth?`: boolean
49
49
 
@@ -58,7 +58,9 @@ The entries of a menu (G9Hub MenuList): icon, label, shortcut, check; destructiv
58
58
  Props:
59
59
  - `items`: object[]
60
60
  - `onSelect`: (key: string) => void
61
+ - `backLabel?`: string
61
62
  - `density?`: 'sheet' | 'popover'
63
+ - `keyboard?`: boolean = false
62
64
 
63
65
  Example: `<G9MenuList items={items} onSelect={() => {}} />`
64
66
 
@@ -85,7 +87,7 @@ Props:
85
87
  - `onClose`: () => void
86
88
  - `open`: boolean
87
89
  - `children?`: ReactNode
88
- - `placement?`: 'end' | 'start' | 'top' | 'bottom' | 'bottom-start' | 'bottom-end' | 'top-start' | 'top-end' = "bottom-start"
90
+ - `placement?`: 'end' | 'start' | 'top' | 'bottom' | 'bottom-start' | 'bottom-end' | 'top-start' | 'top-end' | 'start-start' | 'start-end' | 'end-start' | 'end-end' = "bottom-start"
89
91
  - `matchWidth?`: boolean
90
92
  - `anchorId?`: string
91
93
  - `anchorNode?`: object
@@ -36,12 +36,12 @@ Scrim + card (MAUI `G9PopupView` visuals): the scrim fades on its own (also when
36
36
  Props:
37
37
  - `hostWidth`: number
38
38
  - `options`: object
39
- - `phase`: 'open' | 'enter' | 'leave'
39
+ - `phase`: 'enter' | 'open' | 'leave'
40
40
  - `children?`: ReactNode
41
41
  - `onBackgroundTap?`: () => void
42
42
  - `testId?`: string
43
43
 
44
- Example: `<PopupFrame hostWidth={1} options={options} phase="open" />`
44
+ Example: `<PopupFrame hostWidth={1} options={options} phase="enter" />`
45
45
 
46
46
  # PopupInputForm
47
47
 
@@ -0,0 +1,73 @@
1
+ # `@g9tm/lynxcontrols-projects` (generated)
2
+
3
+ # G9Board
4
+
5
+ `import { G9Board } from '@g9tm/lynxcontrols-projects';`
6
+
7
+ A board: columns of cards an app draws, dragged on the main thread, with a quick add per column.
8
+
9
+ Props:
10
+ - `columns`: object[]
11
+ - `getKey`: (item: T) => void
12
+ - `renderCard`: (item, state) => ReactNode
13
+ - `onAdd?`: (column: string, title: string) => void
14
+ - `onDragEnd?`: (key: string, moved: boolean) => void
15
+ - `onDragStart?`: (key: string) => void
16
+ - `onMove?`: (key: string, column: string, index: number, from: string) => void
17
+ - `addLabel?`: string
18
+
19
+ Example: `<G9Board columns={columns} getKey={getKey} renderCard={renderCard} />`
20
+
21
+ # G9RuleBuilder
22
+
23
+ `import { G9RuleBuilder } from '@g9tm/lynxcontrols-projects';`
24
+
25
+ An automation rule: When → If → Then, each step's editor the app's.
26
+
27
+ Props:
28
+ - `actionKinds`: object[]
29
+ - `actions`: NonNullable<A>[]
30
+ - `conditionKinds`: object[]
31
+ - `conditions`: NonNullable<C>[]
32
+ - `labels`: object
33
+ - `onAddAction`: (kind: string) => void
34
+ - `onAddCondition`: (kind: string) => void
35
+ - `onRemoveAction`: (index: number) => void
36
+
37
+ Example: `<G9RuleBuilder actionKinds={actionKinds} actions={actions} conditionKinds={conditionKinds} conditions={conditions} labels={labels} onAddAction={() => {}} onAddCondition={() => {}} onRemoveAction={() => {}} onRemoveCondition={() => {}} onTriggerChange={() => {}} renderAction={renderAction} renderCondition={renderCondition} trigger="trigger" triggers={triggers} />`
38
+
39
+ # G9TaskCard
40
+
41
+ `import { G9TaskCard } from '@g9tm/lynxcontrols-projects';`
42
+
43
+ A task on a board or in a list.
44
+
45
+ Props:
46
+ - `title`: string
47
+ - `onPress?`: () => void
48
+ - `onLongPress?`: () => void
49
+ - `blockedLabel?`: string
50
+ - `priorityLabel?`: string
51
+ - `priorityIcon?`: icon
52
+ - `blocked?`: boolean
53
+ - `checklist?`: object
54
+
55
+ Example: `<G9TaskCard title="Label" />`
56
+
57
+ # G9Timeline
58
+
59
+ `import { G9Timeline } from '@g9tm/lynxcontrols-projects';`
60
+
61
+ A Gantt chart: rows and bars an app keeps, moved and resized on the main thread, in the culture's calendar.
62
+
63
+ Props:
64
+ - `rows`: object[]
65
+ - `today`: number
66
+ - `barLabel?`: (row: G9TimelineRow) => void
67
+ - `onOpen?`: (key: string) => void
68
+ - `onSpanChange?`: (key: string, span: G9DaySpan) => void
69
+ - `onZoomChange?`: (zoom: G9TimelineZoom) => void
70
+ - `todayLabel?`: string
71
+ - `labelWidth?`: number = 160
72
+
73
+ Example: `<G9Timeline rows={rows} today={1} />`
@@ -44,11 +44,11 @@ The root every G9 component lives in (plan/specs/01 §5, MAUI `G9Theme`/`G9Cultu
44
44
  Props:
45
45
  - `services`: object
46
46
  - `children?`: ReactNode
47
+ - `themeExtras?`: (theme: G9ResolvedTheme) => void
47
48
  - `shape?`: object
48
49
  - `breakpoints?`: object
49
50
  - `culture?`: string | object | object = "en"
50
51
  - `diagnostics?`: object
51
52
  - `persistTheme?`: boolean = true
52
- - `preview?`: object
53
53
 
54
54
  Example: `<G9Provider services={services} />`
@@ -0,0 +1,37 @@
1
+ # `@g9tm/lynxcontrols/reader` (generated)
2
+
3
+ # G9ReaderSheet
4
+
5
+ `import { G9ReaderSheet } from '@g9tm/lynxcontrols/reader';`
6
+
7
+ A long text read in a sheet: title, author and reading time, A− / A+ and close, then the `G9ReaderView`.
8
+
9
+ Props:
10
+ - `onClose`: () => void
11
+ - `open`: boolean
12
+ - `text`: string
13
+ - `title?`: string
14
+ - `size?`: string
15
+ - `minutesLabel?`: (minutes: number) => void
16
+ - `onSizeChange?`: (size: string) => void
17
+ - `closeLabel?`: string
18
+
19
+ Example: `<G9ReaderSheet onClose={() => {}} open text="Label" />`
20
+
21
+ # G9ReaderView
22
+
23
+ `import { G9ReaderView } from '@g9tm/lynxcontrols/reader';`
24
+
25
+ The text alone at the reader's size, measure and direction (inside any page or sheet).
26
+
27
+ Props:
28
+ - `text`: string
29
+ - `size?`: string
30
+ - `maxWidth?`: number = 680
31
+ - `renderText?`: (text, style) => ReactNode
32
+ - `direction?`: 'ltr' | 'rtl' | 'auto'
33
+ - `lineHeightFactors?`: object
34
+ - `sizes?`: object[]
35
+ - `accessibilityLabel?`: string
36
+
37
+ Example: `<G9ReaderView text="Label" />`
@@ -0,0 +1,54 @@
1
+ # `@g9tm/lynxcontrols-richtext` (generated)
2
+
3
+ # G9RichLines
4
+
5
+ `import { G9RichLines } from '@g9tm/lynxcontrols-richtext';`
6
+
7
+ The styled lines of a text (`text` split at `\n`, one `RtLine` each).
8
+
9
+ Props:
10
+ - `lines`: object[]
11
+ - `text`: string
12
+ - `direction?`: 'ltr' | 'rtl' = "ltr"
13
+ - `onTapLine?`: (index: number) => void
14
+ - `onToggleCheck?`: (index: number) => void
15
+ - `renderLine?`: (index, line, text) => ReactNode
16
+ - `editing?`: number
17
+
18
+ Example: `<G9RichLines lines={lines} text="Label" />`
19
+
20
+ # G9RichText
21
+
22
+ `import { G9RichText } from '@g9tm/lynxcontrols-richtext';`
23
+
24
+ An editable rich text on the host's element (or drawn, on the desktop).
25
+
26
+ Props:
27
+ - `editable`: boolean
28
+ - `placeholder`: string
29
+ - `port`: object
30
+ - `session`: object
31
+ - `onFocusChange?`: (focused: boolean) => void
32
+ - `onTapObject?`: (pos: number) => void
33
+ - `bottomInset?`: number
34
+ - `palette?`: object
35
+
36
+ Example: `<G9RichText editable placeholder="placeholder" port={port} session={session} />`
37
+
38
+ # G9RichTextEditor
39
+
40
+ `import { G9RichTextEditor } from '@g9tm/lynxcontrols-richtext';`
41
+
42
+ The live document's editor: the element, the toolbar and the suggestions.
43
+
44
+ Props:
45
+ - `editable`: boolean
46
+ - `placeholder`: string
47
+ - `port`: object
48
+ - `session`: object
49
+ - `version`: number
50
+ - `links?`: (query: string) => void
51
+ - `onOpenLink?`: (href: string) => void
52
+ - `people?`: (query: string) => void
53
+
54
+ Example: `<G9RichTextEditor editable placeholder="placeholder" port={port} session={session} version={1} />`
@@ -1,5 +1,19 @@
1
1
  # `@g9tm/lynxcontrols/route` (generated)
2
2
 
3
+ # G9PathNavigator
4
+
5
+ `import { G9PathNavigator } from '@g9tm/lynxcontrols/route';`
6
+
7
+ Draws the router: the top page (and the one parked under it), or a list and its detail side by side.
8
+
9
+ Props:
10
+ - `router`: object
11
+ - `renderPage?`: (entry, page, pane) => ReactNode
12
+ - `leaveMs?`: number = 0
13
+ - `wide?`: boolean
14
+
15
+ Example: `<G9PathNavigator router={router} />`
16
+
3
17
  # G9Place
4
18
 
5
19
  `import { G9Place } from '@g9tm/lynxcontrols/route';`
@@ -27,7 +27,7 @@ A slim line when the network is gone, coming back, or slow (G9Hub ConnectionBann
27
27
  Props:
28
28
  - `offlineText`: string
29
29
  - `reconnectingText`: string
30
- - `status`: 'online' | 'offline' | 'reconnecting' | 'connecting' | 'poor'
30
+ - `status`: 'online' | 'connecting' | 'offline' | 'reconnecting' | 'poor'
31
31
  - `onRetry?`: () => void
32
32
  - `backOnlineText?`: string
33
33
  - `connectingText?`: string = "reconnectingText"
@@ -32,7 +32,7 @@ Props:
32
32
  - `onPress?`: () => void
33
33
  - `disabled?`: boolean = false
34
34
  - `tone?`: 'primary' | 'info' | 'success' | 'warning' | 'error' | 'accent' | 'neutral' = "primary"
35
- - `onRemove?`: () => void
35
+ - `nodeRef?`: (node: NodesRef | null) => void
36
36
 
37
37
  Example: `<G9Chip text="Label" />`
38
38
 
@@ -54,6 +54,23 @@ Props:
54
54
 
55
55
  Example: `<G9ChipGroup items={items} />`
56
56
 
57
+ # G9ChipStrip
58
+
59
+ `import { G9ChipStrip } from '@g9tm/lynxcontrols/toggle';`
60
+
61
+ One scrolling line of chips with one chosen (G9Hub's folder tabs: all, unread, mentions, my folders with their unread counts; 2.5.8): the chosen chip scrolls into view whenever it changes, in reading order.
62
+
63
+ Props:
64
+ - `items`: object[]
65
+ - `onChange`: (key: K) => void
66
+ - `value`: string
67
+ - `size?`: 'sm' | 'md' | 'lg'
68
+ - `appearance?`: 'solid' | 'outline' | 'dashed' | 'soft'
69
+ - `tone?`: 'primary' | 'info' | 'success' | 'warning' | 'error' | 'accent' | 'neutral'
70
+ - `haptic?`: boolean | string | string | string | string | string | string | string | string | string
71
+
72
+ Example: `<G9ChipStrip items={items} onChange={() => {}} value="value" />`
73
+
57
74
  # G9RadioGroup
58
75
 
59
76
  `import { G9RadioGroup } from '@g9tm/lynxcontrols/toggle';`