@g9tm/lynxcontrols 2.5.6 → 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.
- package/catalog/cards/G9AppBar.md +1 -1
- 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/G9CarryContexts.md +10 -0
- package/catalog/cards/G9CheckBox.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/G9FormField.md +2 -2
- package/catalog/cards/G9ListRow.md +1 -1
- 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 +13 -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/G9RangeSlider.md +2 -2
- 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/G9Stepper.md +1 -1
- package/catalog/cards/G9SwitchRow.md +1 -1
- package/catalog/cards/G9Tag.md +1 -1
- package/catalog/cards/G9TextEntry.md +1 -1
- package/catalog/cards/G9UpdateBar.md +2 -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 +9460 -2155
- package/catalog/index.md +20 -3
- 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/base/selection-item.d.ts +5 -0
- package/dist/base/selection-item.d.ts.map +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/figures.d.ts.map +1 -1
- package/dist/display/figures.jsx +10 -2
- 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/status.d.ts +1 -1
- package/dist/display/status.d.ts.map +1 -1
- package/dist/display/status.jsx +15 -3
- package/dist/display/theme-preview.css +4 -0
- package/dist/display/theme-preview.css.map +1 -1
- package/dist/effects/effects.d.ts.map +1 -1
- package/dist/effects/effects.jsx +8 -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 +4 -1
- package/dist/fields/extra-entries.d.ts.map +1 -1
- package/dist/fields/extra-entries.jsx +54 -19
- package/dist/fields/fields.css +21 -0
- package/dist/fields/fields.css.map +1 -1
- package/dist/fields/outlined-field.d.ts +9 -0
- package/dist/fields/outlined-field.d.ts.map +1 -1
- package/dist/fields/outlined-field.jsx +6 -1
- package/dist/fields/pin-entry.d.ts.map +1 -1
- package/dist/fields/pin-entry.jsx +36 -3
- package/dist/fields/text-entry.d.ts +4 -0
- package/dist/fields/text-entry.d.ts.map +1 -1
- package/dist/fields/text-entry.jsx +32 -25
- package/dist/fields/use-text-input.d.ts +3 -2
- package/dist/fields/use-text-input.d.ts.map +1 -1
- package/dist/fields/use-text-input.jsx +3 -0
- package/dist/header/app-bar.d.ts +6 -0
- package/dist/header/app-bar.d.ts.map +1 -1
- package/dist/header/app-bar.jsx +22 -8
- package/dist/header/header.css +14 -0
- package/dist/header/header.css.map +1 -1
- package/dist/host/bottom-overlays.d.ts +5 -0
- package/dist/host/bottom-overlays.d.ts.map +1 -1
- package/dist/host/bottom-overlays.jsx +17 -1
- package/dist/host/carry-contexts.d.ts +28 -0
- package/dist/host/carry-contexts.d.ts.map +1 -0
- package/dist/host/carry-contexts.jsx +76 -0
- package/dist/host/host.d.ts.map +1 -1
- package/dist/host/host.jsx +5 -1
- package/dist/host/index.d.ts +2 -0
- package/dist/host/index.d.ts.map +1 -1
- package/dist/host/index.jsx +2 -0
- package/dist/icon/icon.d.ts.map +1 -1
- package/dist/icon/icon.jsx +13 -9
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/layout/containers.d.ts.map +1 -1
- package/dist/layout/containers.jsx +2 -1
- package/dist/layout/layout.css +7 -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 +50 -5
- package/dist/list/list.css.map +1 -1
- package/dist/list/rows.d.ts +13 -1
- package/dist/list/rows.d.ts.map +1 -1
- package/dist/list/rows.jsx +42 -23
- 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/direction-scope.d.ts +8 -0
- package/dist/provider/direction-scope.d.ts.map +1 -1
- package/dist/provider/direction-scope.jsx +13 -2
- package/dist/provider/index.d.ts +1 -1
- package/dist/provider/index.d.ts.map +1 -1
- package/dist/provider/provider.css +7 -0
- package/dist/provider/provider.css.map +1 -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/provider/settings.d.ts +14 -0
- package/dist/provider/settings.d.ts.map +1 -1
- package/dist/provider/settings.jsx +4 -1
- package/dist/range-slider/index.d.ts +1 -1
- package/dist/range-slider/index.d.ts.map +1 -1
- package/dist/range-slider/range-slider.css +69 -0
- package/dist/range-slider/range-slider.css.map +1 -1
- package/dist/range-slider/range-slider.d.ts +22 -0
- package/dist/range-slider/range-slider.d.ts.map +1 -1
- package/dist/range-slider/range-slider.jsx +34 -5
- 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 +42 -0
- package/dist/route/path-navigator.css.map +1 -0
- package/dist/route/path-navigator.d.ts +25 -0
- package/dist/route/path-navigator.d.ts.map +1 -0
- package/dist/route/path-navigator.jsx +98 -0
- package/dist/route/path-router.d.ts +162 -0
- package/dist/route/path-router.d.ts.map +1 -0
- package/dist/route/path-router.jsx +327 -0
- package/dist/selection/selection-sheet.d.ts.map +1 -1
- package/dist/selection/selection-sheet.jsx +23 -10
- package/dist/selection/selection.css +18 -1
- 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 +18 -1
- package/dist/shell/shell.css.map +1 -1
- package/dist/shell/shell.d.ts +10 -1
- package/dist/shell/shell.d.ts.map +1 -1
- package/dist/shell/shell.jsx +13 -9
- package/dist/survey/survey.css +15 -0
- package/dist/survey/survey.css.map +1 -1
- package/dist/survey/survey.d.ts +6 -0
- package/dist/survey/survey.d.ts.map +1 -1
- package/dist/survey/survey.jsx +24 -6
- package/dist/swipe/swipe.css +2 -0
- package/dist/swipe/swipe.css.map +1 -1
- package/dist/tab-bar/flat.d.ts.map +1 -1
- package/dist/tab-bar/flat.jsx +53 -38
- package/dist/tab-bar/tab-bar.css +2 -0
- package/dist/tab-bar/tab-bar.css.map +1 -1
- package/dist/tab-bar/tab-bar.d.ts.map +1 -1
- package/dist/tab-bar/tab-bar.jsx +28 -6
- package/dist/tabs/tab-view.jsx +10 -3
- package/dist/tabs/tabs.css +5 -0
- package/dist/tabs/tabs.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/checkbox.d.ts +5 -0
- package/dist/toggle/checkbox.d.ts.map +1 -1
- package/dist/toggle/checkbox.jsx +7 -2
- package/dist/toggle/choice.css +35 -0
- package/dist/toggle/choice.css.map +1 -1
- package/dist/toggle/choice.d.ts +45 -0
- package/dist/toggle/choice.d.ts.map +1 -1
- package/dist/toggle/choice.jsx +97 -23
- 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 +24 -8
- 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/commerce.md +1 -1
- 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 +5 -5
- package/skills/g9-lynx-app/references/components/header.md +1 -1
- package/skills/g9-lynx-app/references/components/host.md +11 -0
- package/skills/g9-lynx-app/references/components/layout-1.md +1 -1
- package/skills/g9-lynx-app/references/components/list.md +7 -5
- package/skills/g9-lynx-app/references/components/map.md +19 -1
- 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/range-slider.md +2 -2
- 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 +14 -0
- package/skills/g9-lynx-app/references/components/shell.md +3 -2
- package/skills/g9-lynx-app/references/components/toggle.md +20 -3
- package/skills/g9-lynx-app/references/provider-and-host.md +4 -3
- 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
|
@@ -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 />`
|
|
@@ -25,14 +25,14 @@ Example: `<G9Editor />`
|
|
|
25
25
|
A label above any control, a hint or an error below (SAC Field, G9Hub Field): for controls without a floating label.
|
|
26
26
|
|
|
27
27
|
Props:
|
|
28
|
-
- `label
|
|
28
|
+
- `label?`: string
|
|
29
29
|
- `children?`: ReactNode
|
|
30
30
|
- `hint?`: string
|
|
31
31
|
- `aside?`: ReactNode
|
|
32
32
|
- `error?`: string
|
|
33
33
|
- `required?`: boolean
|
|
34
34
|
|
|
35
|
-
Example: `<G9FormField
|
|
35
|
+
Example: `<G9FormField />`
|
|
36
36
|
|
|
37
37
|
# G9NumberEntry
|
|
38
38
|
|
|
@@ -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
|
|
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# `@g9tm/lynxcontrols/host` (generated)
|
|
2
2
|
|
|
3
|
+
# G9CarryContexts
|
|
4
|
+
|
|
5
|
+
`import { G9CarryContexts } from '@g9tm/lynxcontrols/host';`
|
|
6
|
+
|
|
7
|
+
Carries React context into the nearest G9Host's layers: sheets, popups, toasts and menus then read `contexts` with their live values, though they render outside the page (SAC's tray sheet read «GuestContext missing» with
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `contexts`: object[]
|
|
11
|
+
|
|
12
|
+
Example: `<G9CarryContexts contexts={contexts} />`
|
|
13
|
+
|
|
3
14
|
# G9Host
|
|
4
15
|
|
|
5
16
|
`import { G9Host } from '@g9tm/lynxcontrols/host';`
|
|
@@ -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} />`
|
|
@@ -30,7 +32,7 @@ Props:
|
|
|
30
32
|
- `onPress?`: () => void
|
|
31
33
|
- `disabled?`: boolean = false
|
|
32
34
|
- `iconTone?`: 'primary' | 'info' | 'success' | 'warning' | 'error' | 'accent' | 'neutral' = "neutral"
|
|
33
|
-
- `
|
|
35
|
+
- `pressFeedback?`: 'none' | 'tint' = "none"
|
|
34
36
|
|
|
35
37
|
Example: `<G9ListRow title="Label" />`
|
|
36
38
|
|
|
@@ -93,7 +95,7 @@ Props:
|
|
|
93
95
|
- `subtitle?`: string
|
|
94
96
|
- `disabled?`: boolean = false
|
|
95
97
|
- `iconTone?`: 'primary' | 'info' | 'success' | 'warning' | 'error' | 'accent' | 'neutral' = "neutral"
|
|
96
|
-
- `
|
|
98
|
+
- `pressFeedback?`: 'none' | 'tint' = "none"
|
|
97
99
|
|
|
98
100
|
Example: `<G9SwitchRow checked onCheckedChange={() => {}} title="Label" />`
|
|
99
101
|
|
|
@@ -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
|
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# `@g9tm/lynxcontrols-map` (generated)
|
|
2
2
|
|
|
3
|
+
# G9Map
|
|
4
|
+
|
|
5
|
+
`import { G9Map } from '@g9tm/lynxcontrols-map';`
|
|
6
|
+
|
|
7
|
+
The interactive tile map: drag, pinch, tap, tools; pins, lines (with casing) and zones as on G9StaticMap.
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `attribution`: string
|
|
11
|
+
- `height`: number
|
|
12
|
+
- `tileTemplate`: string
|
|
13
|
+
- `onPress?`: (at: G9LatLng) => void
|
|
14
|
+
- `onLocate?`: () => void
|
|
15
|
+
- `onPinPress?`: (pin: G9MapPin) => void
|
|
16
|
+
- `onViewChange?`: (view: G9MapCamera, reason: G9MapViewReason) => void
|
|
17
|
+
- `fitPadding?`: number = 36
|
|
18
|
+
|
|
19
|
+
Example: `<G9Map attribution="attribution" height={1} tileTemplate="tileTemplate" />`
|
|
20
|
+
|
|
3
21
|
# G9StaticMap
|
|
4
22
|
|
|
5
23
|
`import { G9StaticMap } from '@g9tm/lynxcontrols-map';`
|
|
@@ -11,9 +29,9 @@ Props:
|
|
|
11
29
|
- `height`: number
|
|
12
30
|
- `tileTemplate`: string
|
|
13
31
|
- `onPinPress?`: (pin: G9MapPin) => void
|
|
32
|
+
- `fitPadding?`: number = 36
|
|
14
33
|
- `center?`: object
|
|
15
34
|
- `fit?`: boolean | G9LatLng[]
|
|
16
35
|
- `pins?`: object[]
|
|
17
|
-
- `shapes?`: object[]
|
|
18
36
|
|
|
19
37
|
Example: `<G9StaticMap attribution="attribution" height={1} tileTemplate="tileTemplate" />`
|
|
@@ -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} />`
|