@g9tm/lynxcontrols 2.5.7 → 2.5.9
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/catalog/cards/G9AppearancePage.md +17 -0
- package/catalog/cards/G9Badge.md +1 -1
- package/catalog/cards/G9Button.md +2 -2
- package/catalog/cards/G9Card.md +1 -1
- package/catalog/cards/G9Chip.md +1 -1
- package/catalog/cards/G9ChipStrip.md +16 -0
- package/catalog/cards/G9CodeBlock.md +17 -0
- package/catalog/cards/G9CommandPalette.md +3 -1
- package/catalog/cards/G9ConnectionBanner.md +1 -1
- package/catalog/cards/G9ContrastPanel.md +15 -0
- package/catalog/cards/G9DashboardCustomizeSheet.md +17 -0
- package/catalog/cards/G9DashboardGrid.md +17 -0
- package/catalog/cards/G9DragList.md +4 -2
- package/catalog/cards/G9Editor.md +1 -1
- package/catalog/cards/G9ErrorBoundary.md +3 -2
- package/catalog/cards/G9Menu.md +1 -1
- package/catalog/cards/G9MenuList.md +2 -0
- package/catalog/cards/G9NotificationCenter.md +17 -0
- package/catalog/cards/G9NotificationCenterPanel.md +17 -0
- package/catalog/cards/G9PathNavigator.md +17 -0
- package/catalog/cards/G9PersonalThemeSheet.md +17 -0
- package/catalog/cards/G9Popover.md +1 -1
- package/catalog/cards/G9Provider.md +1 -1
- package/catalog/cards/G9ReaderSheet.md +17 -0
- package/catalog/cards/G9ReaderView.md +17 -0
- package/catalog/cards/G9SafeButton.md +2 -2
- package/catalog/cards/G9SearchEntry.md +1 -1
- package/catalog/cards/G9SecretValue.md +17 -0
- package/catalog/cards/G9ShortcutList.md +4 -0
- package/catalog/cards/G9ShortcutsSheet.md +3 -1
- package/catalog/cards/G9StatusPill.md +1 -1
- package/catalog/cards/G9Tag.md +1 -1
- package/catalog/cards/G9TextEntry.md +1 -1
- package/catalog/cards/G9VirtualList.md +1 -1
- package/catalog/cards/G9WallpaperSwatch.md +16 -0
- package/catalog/cards/G9WidgetSkeleton.md +9 -0
- package/catalog/cards/G9WidgetSlot.md +13 -0
- package/catalog/cards/PopupFrame.md +2 -2
- package/catalog/catalog.json +6987 -446
- package/catalog/index.md +18 -2
- package/dist/.tsbuildinfo +1 -1
- package/dist/appearance/appearance.css +264 -0
- package/dist/appearance/appearance.css.map +1 -0
- package/dist/appearance/appearance.d.ts +148 -0
- package/dist/appearance/appearance.d.ts.map +1 -0
- package/dist/appearance/appearance.jsx +604 -0
- package/dist/appearance/index.d.ts +2 -0
- package/dist/appearance/index.d.ts.map +1 -0
- package/dist/appearance/index.jsx +1 -0
- package/dist/base/control.d.ts +15 -0
- package/dist/base/control.d.ts.map +1 -1
- package/dist/base/control.jsx +13 -1
- package/dist/base/index.d.ts +1 -1
- package/dist/base/index.d.ts.map +1 -1
- package/dist/base/index.jsx +1 -1
- package/dist/button/button.css +4 -0
- package/dist/button/button.css.map +1 -1
- package/dist/cascade/cascade.css +2 -0
- package/dist/cascade/cascade.css.map +1 -1
- package/dist/commands/commands.css +46 -0
- package/dist/commands/commands.css.map +1 -1
- package/dist/commands/index.d.ts +2 -2
- package/dist/commands/index.d.ts.map +1 -1
- package/dist/commands/index.jsx +2 -2
- package/dist/commands/keys.d.ts +15 -1
- package/dist/commands/keys.d.ts.map +1 -1
- package/dist/commands/keys.jsx +20 -1
- package/dist/commands/palette.d.ts +73 -7
- package/dist/commands/palette.d.ts.map +1 -1
- package/dist/commands/palette.jsx +174 -20
- package/dist/dashboard/dashboard.css +101 -0
- package/dist/dashboard/dashboard.css.map +1 -0
- package/dist/dashboard/dashboard.d.ts +73 -0
- package/dist/dashboard/dashboard.d.ts.map +1 -0
- package/dist/dashboard/dashboard.jsx +297 -0
- package/dist/dashboard/index.d.ts +3 -0
- package/dist/dashboard/index.d.ts.map +1 -0
- package/dist/dashboard/index.jsx +2 -0
- package/dist/dashboard/model.d.ts +53 -0
- package/dist/dashboard/model.d.ts.map +1 -0
- package/dist/dashboard/model.jsx +76 -0
- package/dist/display/code.css +109 -0
- package/dist/display/code.css.map +1 -0
- package/dist/display/code.d.ts +43 -0
- package/dist/display/code.d.ts.map +1 -0
- package/dist/display/code.jsx +101 -0
- package/dist/display/extras.d.ts +7 -2
- package/dist/display/extras.d.ts.map +1 -1
- package/dist/display/extras.jsx +13 -4
- package/dist/display/index.d.ts +1 -0
- package/dist/display/index.d.ts.map +1 -1
- package/dist/display/index.jsx +1 -0
- package/dist/display/motion-figures.css +2 -0
- package/dist/display/motion-figures.css.map +1 -1
- package/dist/display/motion-figures.d.ts.map +1 -1
- package/dist/display/motion-figures.jsx +14 -7
- package/dist/display/theme-preview.css +4 -0
- package/dist/display/theme-preview.css.map +1 -1
- package/dist/fields/extra-entries.css +1 -0
- package/dist/fields/extra-entries.css.map +1 -1
- package/dist/fields/extra-entries.d.ts +2 -0
- package/dist/fields/extra-entries.d.ts.map +1 -1
- package/dist/fields/extra-entries.jsx +3 -2
- package/dist/header/header.css +2 -0
- package/dist/header/header.css.map +1 -1
- package/dist/host/carry-contexts.d.ts.map +1 -1
- package/dist/host/carry-contexts.jsx +22 -8
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/layout/layout.css +2 -0
- package/dist/layout/layout.css.map +1 -1
- package/dist/list/gestures.d.ts +39 -6
- package/dist/list/gestures.d.ts.map +1 -1
- package/dist/list/gestures.jsx +284 -89
- package/dist/list/index.d.ts +3 -2
- package/dist/list/index.d.ts.map +1 -1
- package/dist/list/index.jsx +2 -1
- package/dist/list/keyboard.d.ts +50 -0
- package/dist/list/keyboard.d.ts.map +1 -0
- package/dist/list/keyboard.jsx +117 -0
- package/dist/list/list.css +28 -5
- package/dist/list/list.css.map +1 -1
- package/dist/list/rows.d.ts.map +1 -1
- package/dist/list/rows.jsx +3 -3
- package/dist/list/virtual-list.d.ts +27 -1
- package/dist/list/virtual-list.d.ts.map +1 -1
- package/dist/list/virtual-list.jsx +49 -4
- package/dist/notifications/index.d.ts +3 -0
- package/dist/notifications/index.d.ts.map +1 -0
- package/dist/notifications/index.jsx +2 -0
- package/dist/notifications/model.d.ts +47 -0
- package/dist/notifications/model.d.ts.map +1 -0
- package/dist/notifications/model.jsx +51 -0
- package/dist/notifications/notification-center.d.ts +98 -0
- package/dist/notifications/notification-center.d.ts.map +1 -0
- package/dist/notifications/notification-center.jsx +424 -0
- package/dist/notifications/notifications.css +266 -0
- package/dist/notifications/notifications.css.map +1 -0
- package/dist/orb/orb.css +2 -0
- package/dist/orb/orb.css.map +1 -1
- package/dist/pickers/pickers.css +15 -0
- package/dist/pickers/pickers.css.map +1 -1
- package/dist/plus-button/plus-button.css +2 -0
- package/dist/plus-button/plus-button.css.map +1 -1
- package/dist/plus-button/plus-button.d.ts.map +1 -1
- package/dist/plus-button/plus-button.jsx +2 -1
- package/dist/popover/popover.css +23 -1
- package/dist/popover/popover.css.map +1 -1
- package/dist/popover/popover.d.ts +14 -0
- package/dist/popover/popover.d.ts.map +1 -1
- package/dist/popover/popover.jsx +73 -12
- package/dist/popover/position.d.ts +6 -2
- package/dist/popover/position.d.ts.map +1 -1
- package/dist/popover/position.jsx +15 -4
- package/dist/popup/popup.css +3 -0
- package/dist/popup/popup.css.map +1 -1
- package/dist/provider/keep-alive.d.ts +2 -0
- package/dist/provider/keep-alive.d.ts.map +1 -1
- package/dist/provider/keep-alive.jsx +3 -1
- package/dist/provider/provider.d.ts +6 -1
- package/dist/provider/provider.d.ts.map +1 -1
- package/dist/provider/provider.jsx +22 -2
- package/dist/reader/index.d.ts +2 -0
- package/dist/reader/index.d.ts.map +1 -0
- package/dist/reader/index.jsx +1 -0
- package/dist/reader/reader.css +74 -0
- package/dist/reader/reader.css.map +1 -0
- package/dist/reader/reader.d.ts +76 -0
- package/dist/reader/reader.d.ts.map +1 -0
- package/dist/reader/reader.jsx +149 -0
- package/dist/route/index.d.ts +2 -0
- package/dist/route/index.d.ts.map +1 -1
- package/dist/route/index.jsx +2 -0
- package/dist/route/path-navigator.css +219 -0
- package/dist/route/path-navigator.css.map +1 -0
- package/dist/route/path-navigator.d.ts +49 -0
- package/dist/route/path-navigator.d.ts.map +1 -0
- package/dist/route/path-navigator.jsx +176 -0
- package/dist/route/path-router.d.ts +185 -0
- package/dist/route/path-router.d.ts.map +1 -0
- package/dist/route/path-router.jsx +369 -0
- package/dist/selection/selection.css +2 -0
- package/dist/selection/selection.css.map +1 -1
- package/dist/sheet/frame.d.ts.map +1 -1
- package/dist/sheet/frame.jsx +9 -8
- package/dist/sheet/options.d.ts +6 -1
- package/dist/sheet/options.d.ts.map +1 -1
- package/dist/sheet/options.jsx +2 -1
- package/dist/sheet/panel-frame.d.ts.map +1 -1
- package/dist/sheet/panel-frame.jsx +5 -4
- package/dist/sheet/sizing.d.ts +3 -3
- package/dist/sheet/sizing.d.ts.map +1 -1
- package/dist/sheet/sizing.jsx +1 -0
- package/dist/shell/shell.css +12 -1
- package/dist/shell/shell.css.map +1 -1
- package/dist/shell/shell.d.ts.map +1 -1
- package/dist/shell/shell.jsx +7 -5
- package/dist/survey/survey.d.ts.map +1 -1
- package/dist/survey/survey.jsx +9 -6
- package/dist/swipe/swipe.css +2 -0
- package/dist/swipe/swipe.css.map +1 -1
- package/dist/tab-bar/flat.jsx +5 -4
- package/dist/tab-bar/tab-bar.css +2 -0
- package/dist/tab-bar/tab-bar.css.map +1 -1
- package/dist/toast/index.d.ts +1 -1
- package/dist/toast/index.d.ts.map +1 -1
- package/dist/toast/service.d.ts.map +1 -1
- package/dist/toast/service.jsx +18 -5
- package/dist/toast/store.d.ts +22 -0
- package/dist/toast/store.d.ts.map +1 -1
- package/dist/toast/store.jsx +35 -3
- package/dist/toast/toast.css +22 -0
- package/dist/toast/toast.css.map +1 -1
- package/dist/toggle/choice.css +27 -0
- package/dist/toggle/choice.css.map +1 -1
- package/dist/toggle/choice.d.ts +36 -0
- package/dist/toggle/choice.d.ts.map +1 -1
- package/dist/toggle/choice.jsx +77 -13
- package/dist/toggle/index.d.ts +1 -1
- package/dist/toggle/index.d.ts.map +1 -1
- package/dist/toggle/index.jsx +1 -1
- package/package.json +22 -2
- package/skills/g9-lynx-app/references/catalog-index.md +22 -6
- package/skills/g9-lynx-app/references/components/appearance.md +70 -0
- package/skills/g9-lynx-app/references/components/barcode.md +1 -1
- package/skills/g9-lynx-app/references/components/button.md +4 -4
- package/skills/g9-lynx-app/references/components/calendar-1.md +205 -0
- package/skills/g9-lynx-app/references/components/calendar-2.md +36 -0
- package/skills/g9-lynx-app/references/components/canvas.md +33 -0
- package/skills/g9-lynx-app/references/components/chat-1.md +199 -0
- package/skills/g9-lynx-app/references/components/chat-2.md +119 -0
- package/skills/g9-lynx-app/references/components/commands.md +10 -2
- package/skills/g9-lynx-app/references/components/dashboard.md +61 -0
- package/skills/g9-lynx-app/references/components/display-1.md +22 -21
- package/skills/g9-lynx-app/references/components/display-2.md +36 -39
- package/skills/g9-lynx-app/references/components/display-3.md +41 -2
- package/skills/g9-lynx-app/references/components/fields.md +3 -3
- package/skills/g9-lynx-app/references/components/layout-1.md +1 -1
- package/skills/g9-lynx-app/references/components/list.md +5 -3
- package/skills/g9-lynx-app/references/components/media-1.md +203 -0
- package/skills/g9-lynx-app/references/components/media-2.md +66 -0
- package/skills/g9-lynx-app/references/components/notifications.md +37 -0
- package/skills/g9-lynx-app/references/components/popover.md +4 -2
- package/skills/g9-lynx-app/references/components/popup.md +2 -2
- package/skills/g9-lynx-app/references/components/projects.md +73 -0
- package/skills/g9-lynx-app/references/components/provider.md +1 -1
- package/skills/g9-lynx-app/references/components/reader.md +37 -0
- package/skills/g9-lynx-app/references/components/richtext.md +54 -0
- package/skills/g9-lynx-app/references/components/route.md +18 -0
- package/skills/g9-lynx-app/references/components/shell.md +1 -1
- package/skills/g9-lynx-app/references/components/toggle.md +18 -1
- package/skills/g9-lynx-app/references/components/calendar.md +0 -128
- package/skills/g9-lynx-app/references/components/chat.md +0 -98
- package/skills/g9-lynx-app/references/components/media.md +0 -115
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols/dashboard` (generated)
|
|
2
|
+
|
|
3
|
+
# G9DashboardCustomizeSheet
|
|
4
|
+
|
|
5
|
+
`import { G9DashboardCustomizeSheet } from '@g9tm/lynxcontrols/dashboard';`
|
|
6
|
+
|
|
7
|
+
Customize a dashboard: drag (or step) to reorder, show or hide each widget, pick half or full width, reset.
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `onChange`: (layout: { order: string[]; hidden: string[]; sizes: Record<string, G9WidgetSize>; }) => void
|
|
11
|
+
- `onClose`: () => void
|
|
12
|
+
- `open`: boolean
|
|
13
|
+
- `widgets`: object[]
|
|
14
|
+
- `layout?`: object
|
|
15
|
+
- `options?`: object
|
|
16
|
+
- `sizes?`: boolean = true
|
|
17
|
+
- `words?`: object
|
|
18
|
+
|
|
19
|
+
Example: `<G9DashboardCustomizeSheet onChange={() => {}} onClose={() => {}} open widgets={widgets} />`
|
|
20
|
+
|
|
21
|
+
# G9DashboardGrid
|
|
22
|
+
|
|
23
|
+
`import { G9DashboardGrid } from '@g9tm/lynxcontrols/dashboard';`
|
|
24
|
+
|
|
25
|
+
The dashboard: the person's widgets in their order and widths, full-width cards alone, half-width ones in two columns.
|
|
26
|
+
|
|
27
|
+
Props:
|
|
28
|
+
- `widgets`: object[]
|
|
29
|
+
- `columns?`: 1 | 2 | 'auto'
|
|
30
|
+
- `onWidgetError?`: (id: string, error: unknown) => void
|
|
31
|
+
- `empty?`: ReactNode
|
|
32
|
+
- `fallback?`: ReactNode
|
|
33
|
+
- `renderCard?`: (placed, content) => ReactNode
|
|
34
|
+
- `skeleton?`: ReactNode
|
|
35
|
+
- `gap?`: number = 12
|
|
36
|
+
|
|
37
|
+
Example: `<G9DashboardGrid widgets={widgets} />`
|
|
38
|
+
|
|
39
|
+
# G9WidgetSkeleton
|
|
40
|
+
|
|
41
|
+
`import { G9WidgetSkeleton } from '@g9tm/lynxcontrols/dashboard';`
|
|
42
|
+
|
|
43
|
+
The card shown while a widget's code loads.
|
|
44
|
+
|
|
45
|
+
Props:
|
|
46
|
+
|
|
47
|
+
Example: `<G9WidgetSkeleton />`
|
|
48
|
+
|
|
49
|
+
# G9WidgetSlot
|
|
50
|
+
|
|
51
|
+
`import { G9WidgetSlot } from '@g9tm/lynxcontrols/dashboard';`
|
|
52
|
+
|
|
53
|
+
One widget: drawn at once, or after its code arrives (a skeleton meanwhile); a failure leaves the slot.
|
|
54
|
+
|
|
55
|
+
Props:
|
|
56
|
+
- `widget`: object
|
|
57
|
+
- `onError?`: (id: string, error: unknown) => void
|
|
58
|
+
- `fallback?`: ReactNode
|
|
59
|
+
- `skeleton?`: ReactNode
|
|
60
|
+
|
|
61
|
+
Example: `<G9WidgetSlot widget={widget} />`
|
|
@@ -41,7 +41,7 @@ A count or a dot (G9Hub Counter/Badge, tab and bell counts).
|
|
|
41
41
|
|
|
42
42
|
Props:
|
|
43
43
|
- `value?`: string | number
|
|
44
|
-
- `appearance?`: '
|
|
44
|
+
- `appearance?`: 'solid' | 'outline' | 'plain' | 'soft' = "solid"
|
|
45
45
|
- `tone?`: 'primary' | 'info' | 'success' | 'warning' | 'error' | 'accent' | 'neutral' = "error"
|
|
46
46
|
- `dot?`: boolean
|
|
47
47
|
- `hideZero?`: boolean = true
|
|
@@ -59,6 +59,24 @@ Props:
|
|
|
59
59
|
|
|
60
60
|
Example: `<G9CameFromMark />`
|
|
61
61
|
|
|
62
|
+
# G9CodeBlock
|
|
63
|
+
|
|
64
|
+
`import { G9CodeBlock } from '@g9tm/lynxcontrols/display';`
|
|
65
|
+
|
|
66
|
+
A code sample: monospace, left to right, scrolled sideways (or wrapped), with line numbers and a copy button.
|
|
67
|
+
|
|
68
|
+
Props:
|
|
69
|
+
- `text`: string
|
|
70
|
+
- `onCopy?`: (text: string) => void
|
|
71
|
+
- `caption?`: string
|
|
72
|
+
- `copiedLabel?`: string
|
|
73
|
+
- `copyLabel?`: string
|
|
74
|
+
- `maxHeight?`: number
|
|
75
|
+
- `lineNumbers?`: boolean
|
|
76
|
+
- `wrap?`: boolean
|
|
77
|
+
|
|
78
|
+
Example: `<G9CodeBlock text="Label" />`
|
|
79
|
+
|
|
62
80
|
# G9CultureDateTimeLabel
|
|
63
81
|
|
|
64
82
|
`import { G9CultureDateTimeLabel } from '@g9tm/lynxcontrols/display';`
|
|
@@ -119,12 +137,13 @@ Example: `<G9EmptyState title="Label" />`
|
|
|
119
137
|
Keeps a failing part from taking the page down (SAC ErrorBoundary): a fallback with a retry, the error reported once.
|
|
120
138
|
|
|
121
139
|
Props:
|
|
122
|
-
- `fallback`: (error, retry) => ReactNode
|
|
123
140
|
- `children?`: ReactNode
|
|
124
141
|
- `onError?`: (error: unknown) => void
|
|
142
|
+
- `fallback?`: ReactNode
|
|
143
|
+
- `resetKey?`: {}
|
|
125
144
|
- `source?`: string
|
|
126
145
|
|
|
127
|
-
Example: `<G9ErrorBoundary
|
|
146
|
+
Example: `<G9ErrorBoundary />`
|
|
128
147
|
|
|
129
148
|
# G9Image
|
|
130
149
|
|
|
@@ -174,21 +193,3 @@ Props:
|
|
|
174
193
|
- `platform?`: 'mac' | 'other'
|
|
175
194
|
|
|
176
195
|
Example: `<G9Keycap combo="combo" />`
|
|
177
|
-
|
|
178
|
-
# G9Kpi
|
|
179
|
-
|
|
180
|
-
`import { G9Kpi } from '@g9tm/lynxcontrols/display';`
|
|
181
|
-
|
|
182
|
-
The KPI tile (SAC Kpi, ShopManager Tile, G9Hub StatTile, Riskara Kpi): label and icon, the value large, the change, a trend.
|
|
183
|
-
|
|
184
|
-
Props:
|
|
185
|
-
- `label`: string
|
|
186
|
-
- `value`: string
|
|
187
|
-
- `icon?`: icon
|
|
188
|
-
- `onPress?`: () => void
|
|
189
|
-
- `tone?`: 'primary' | 'info' | 'success' | 'warning' | 'error' | 'accent' | 'neutral'
|
|
190
|
-
- `loading?`: boolean
|
|
191
|
-
- `trend?`: ReactNode
|
|
192
|
-
- `delta?`: object
|
|
193
|
-
|
|
194
|
-
Example: `<G9Kpi label="Label" value="value" />`
|
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# `@g9tm/lynxcontrols/display` (part 2 of 3) (generated)
|
|
2
2
|
|
|
3
|
+
# G9Kpi
|
|
4
|
+
|
|
5
|
+
`import { G9Kpi } from '@g9tm/lynxcontrols/display';`
|
|
6
|
+
|
|
7
|
+
The KPI tile (SAC Kpi, ShopManager Tile, G9Hub StatTile, Riskara Kpi): label and icon, the value large, the change, a trend.
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `label`: string
|
|
11
|
+
- `value`: string
|
|
12
|
+
- `icon?`: icon
|
|
13
|
+
- `onPress?`: () => void
|
|
14
|
+
- `tone?`: 'primary' | 'info' | 'success' | 'warning' | 'error' | 'accent' | 'neutral'
|
|
15
|
+
- `loading?`: boolean
|
|
16
|
+
- `trend?`: ReactNode
|
|
17
|
+
- `delta?`: object
|
|
18
|
+
|
|
19
|
+
Example: `<G9Kpi label="Label" value="value" />`
|
|
20
|
+
|
|
3
21
|
# G9KpiGrid
|
|
4
22
|
|
|
5
23
|
`import { G9KpiGrid } from '@g9tm/lynxcontrols/display';`
|
|
@@ -138,6 +156,24 @@ Props:
|
|
|
138
156
|
|
|
139
157
|
Example: `<G9RevealText text="Label" />`
|
|
140
158
|
|
|
159
|
+
# G9SecretValue
|
|
160
|
+
|
|
161
|
+
`import { G9SecretValue } from '@g9tm/lynxcontrols/display';`
|
|
162
|
+
|
|
163
|
+
A secret (an API token, a webhook address) in a box with its copy button; dots until revealed when asked.
|
|
164
|
+
|
|
165
|
+
Props:
|
|
166
|
+
- `value`: string
|
|
167
|
+
- `label?`: string
|
|
168
|
+
- `onCopy?`: (value: string) => void
|
|
169
|
+
- `copiedLabel?`: string
|
|
170
|
+
- `copyLabel?`: string
|
|
171
|
+
- `hideLabel?`: string
|
|
172
|
+
- `revealLabel?`: string
|
|
173
|
+
- `wrap?`: (value) => ReactNode
|
|
174
|
+
|
|
175
|
+
Example: `<G9SecretValue value="value" />`
|
|
176
|
+
|
|
141
177
|
# G9Separator
|
|
142
178
|
|
|
143
179
|
`import { G9Separator } from '@g9tm/lynxcontrols/display';`
|
|
@@ -155,42 +191,3 @@ Props:
|
|
|
155
191
|
- `iconPath?`: string
|
|
156
192
|
|
|
157
193
|
Example: `<G9Separator title="Crops" />`
|
|
158
|
-
|
|
159
|
-
# G9SheetSkeleton
|
|
160
|
-
|
|
161
|
-
`import { G9SheetSkeleton } from '@g9tm/lynxcontrols/display';`
|
|
162
|
-
|
|
163
|
-
A sheet's loading skeleton with the shimmer band (MAUI `G9Shimmer.CreateSheetSkeleton`): form-field bars, or list rows (`'none'` renders list rows too, as MAUI).
|
|
164
|
-
|
|
165
|
-
Props:
|
|
166
|
-
- `skeleton`: 'none' | 'formFields' | 'listRows'
|
|
167
|
-
- `backgroundColor?`: color = "var(--g9-background)"
|
|
168
|
-
- `active?`: boolean = true
|
|
169
|
-
- `rowCount?`: number
|
|
170
|
-
|
|
171
|
-
Example: `<G9SheetSkeleton skeleton="none" />`
|
|
172
|
-
|
|
173
|
-
# G9ShimmerBand
|
|
174
|
-
|
|
175
|
-
`import { G9ShimmerBand } from '@g9tm/lynxcontrols/display';`
|
|
176
|
-
|
|
177
|
-
The highlight band that sweeps over skeleton shapes (MAUI `G9ShimmerBandView`): left to right every 1100 ms, white (peak 0.38) in light themes and black (peak 0.20) in dark ones, input-transparent.
|
|
178
|
-
|
|
179
|
-
Props:
|
|
180
|
-
- `active?`: boolean = true
|
|
181
|
-
|
|
182
|
-
Example: `<G9ShimmerBand />`
|
|
183
|
-
|
|
184
|
-
# G9Skeleton
|
|
185
|
-
|
|
186
|
-
`import { G9Skeleton } from '@g9tm/lynxcontrols/display';`
|
|
187
|
-
|
|
188
|
-
One placeholder bar (SAC Skeleton, Riskara Shimmer).
|
|
189
|
-
|
|
190
|
-
Props:
|
|
191
|
-
- `radius?`: number = 8
|
|
192
|
-
- `circle?`: boolean
|
|
193
|
-
- `height?`: string | number = 12
|
|
194
|
-
- `width?`: string | number = "100%"
|
|
195
|
-
|
|
196
|
-
Example: `<G9Skeleton />`
|
|
@@ -1,5 +1,44 @@
|
|
|
1
1
|
# `@g9tm/lynxcontrols/display` (part 3 of 3) (generated)
|
|
2
2
|
|
|
3
|
+
# G9SheetSkeleton
|
|
4
|
+
|
|
5
|
+
`import { G9SheetSkeleton } from '@g9tm/lynxcontrols/display';`
|
|
6
|
+
|
|
7
|
+
A sheet's loading skeleton with the shimmer band (MAUI `G9Shimmer.CreateSheetSkeleton`): form-field bars, or list rows (`'none'` renders list rows too, as MAUI).
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `skeleton`: 'none' | 'formFields' | 'listRows'
|
|
11
|
+
- `backgroundColor?`: color = "var(--g9-background)"
|
|
12
|
+
- `active?`: boolean = true
|
|
13
|
+
- `rowCount?`: number
|
|
14
|
+
|
|
15
|
+
Example: `<G9SheetSkeleton skeleton="none" />`
|
|
16
|
+
|
|
17
|
+
# G9ShimmerBand
|
|
18
|
+
|
|
19
|
+
`import { G9ShimmerBand } from '@g9tm/lynxcontrols/display';`
|
|
20
|
+
|
|
21
|
+
The highlight band that sweeps over skeleton shapes (MAUI `G9ShimmerBandView`): left to right every 1100 ms, white (peak 0.38) in light themes and black (peak 0.20) in dark ones, input-transparent.
|
|
22
|
+
|
|
23
|
+
Props:
|
|
24
|
+
- `active?`: boolean = true
|
|
25
|
+
|
|
26
|
+
Example: `<G9ShimmerBand />`
|
|
27
|
+
|
|
28
|
+
# G9Skeleton
|
|
29
|
+
|
|
30
|
+
`import { G9Skeleton } from '@g9tm/lynxcontrols/display';`
|
|
31
|
+
|
|
32
|
+
One placeholder bar (SAC Skeleton, Riskara Shimmer).
|
|
33
|
+
|
|
34
|
+
Props:
|
|
35
|
+
- `radius?`: number = 8
|
|
36
|
+
- `circle?`: boolean
|
|
37
|
+
- `height?`: string | number = 12
|
|
38
|
+
- `width?`: string | number = "100%"
|
|
39
|
+
|
|
40
|
+
Example: `<G9Skeleton />`
|
|
41
|
+
|
|
3
42
|
# G9SkeletonPage
|
|
4
43
|
|
|
5
44
|
`import { G9SkeletonPage } from '@g9tm/lynxcontrols/display';`
|
|
@@ -38,7 +77,7 @@ Props:
|
|
|
38
77
|
- `text`: string
|
|
39
78
|
- `size?`: 'sm' | 'md' | 'lg'
|
|
40
79
|
- `icon?`: icon
|
|
41
|
-
- `appearance?`: '
|
|
80
|
+
- `appearance?`: 'solid' | 'outline' | 'plain' | 'soft' = "soft"
|
|
42
81
|
- `tone?`: 'primary' | 'info' | 'success' | 'warning' | 'error' | 'accent' | 'neutral' = "neutral"
|
|
43
82
|
- `fillAlpha?`: number = 0.15
|
|
44
83
|
- `bordered?`: boolean
|
|
@@ -69,7 +108,7 @@ A small label on a card or row (menu item tags, statuses that are not states): t
|
|
|
69
108
|
Props:
|
|
70
109
|
- `text`: string
|
|
71
110
|
- `icon?`: icon
|
|
72
|
-
- `appearance?`: '
|
|
111
|
+
- `appearance?`: 'solid' | 'outline' | 'plain' | 'soft'
|
|
73
112
|
- `tone?`: 'primary' | 'info' | 'success' | 'warning' | 'error' | 'accent' | 'neutral'
|
|
74
113
|
- `emoji?`: string
|
|
75
114
|
|
|
@@ -13,7 +13,7 @@ Props:
|
|
|
13
13
|
- `placeholder?`: string
|
|
14
14
|
- `onValueChange?`: (value: string, details: G9ValueChangeDetails) => void
|
|
15
15
|
- `disabled?`: boolean = false
|
|
16
|
-
- `inputType?`: 'number' | '
|
|
16
|
+
- `inputType?`: 'number' | 'custom' | 'default' | 'email' | 'phone' | 'url' | 'letters' | 'decimal' | 'signedNumber' | 'signedDecimal' | 'lettersAndNumbers' | 'lettersNumbersSpace' | 'persianLetters' | 'persianLettersAndNumbers' | 'multilingualLettersAndNumbers' | 'noSpecialChars' = "default"
|
|
17
17
|
- `keyboardType?`: 'number' | 'default' | 'email' | 'phone' | 'password' | 'url' = "default"
|
|
18
18
|
|
|
19
19
|
Example: `<G9Editor />`
|
|
@@ -120,7 +120,7 @@ Props:
|
|
|
120
120
|
- `onValueChange?`: (value: string, details: G9ValueChangeDetails) => void
|
|
121
121
|
- `disabled?`: boolean = false
|
|
122
122
|
- `confirmType?`: 'search' | 'done' | 'send' | 'go' | 'next' = "done"
|
|
123
|
-
- `inputType?`: 'number' | '
|
|
123
|
+
- `inputType?`: 'number' | 'custom' | 'default' | 'email' | 'phone' | 'url' | 'letters' | 'decimal' | 'signedNumber' | 'signedDecimal' | 'lettersAndNumbers' | 'lettersNumbersSpace' | 'persianLetters' | 'persianLettersAndNumbers' | 'multilingualLettersAndNumbers' | 'noSpecialChars' = "default"
|
|
124
124
|
|
|
125
125
|
Example: `<G9SearchEntry />`
|
|
126
126
|
|
|
@@ -155,7 +155,7 @@ Props:
|
|
|
155
155
|
- `onValueChange?`: (value: string, details: G9ValueChangeDetails) => void
|
|
156
156
|
- `disabled?`: boolean = false
|
|
157
157
|
- `confirmType?`: 'search' | 'done' | 'send' | 'go' | 'next' = "done"
|
|
158
|
-
- `inputType?`: 'number' | '
|
|
158
|
+
- `inputType?`: 'number' | 'custom' | 'default' | 'email' | 'phone' | 'url' | 'letters' | 'decimal' | 'signedNumber' | 'signedDecimal' | 'lettersAndNumbers' | 'lettersNumbersSpace' | 'persianLetters' | 'persianLettersAndNumbers' | 'multilingualLettersAndNumbers' | 'noSpecialChars' = "default"
|
|
159
159
|
|
|
160
160
|
Example: `<G9TextEntry />`
|
|
161
161
|
|
|
@@ -36,7 +36,7 @@ Props:
|
|
|
36
36
|
- `children?`: ReactNode
|
|
37
37
|
- `onPress?`: () => void
|
|
38
38
|
- `disabled?`: boolean = false
|
|
39
|
-
- `appearance?`: '
|
|
39
|
+
- `appearance?`: 'glass' | 'outlined' | 'filled' | 'elevated'
|
|
40
40
|
- `edge?`: string
|
|
41
41
|
- `enterDelay?`: number
|
|
42
42
|
- `glow?`: string
|
|
@@ -4,14 +4,16 @@
|
|
|
4
4
|
|
|
5
5
|
`import { G9DragList } from '@g9tm/lynxcontrols/list';`
|
|
6
6
|
|
|
7
|
-
Reorder by dragging (G9Hub
|
|
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
|