@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
|
@@ -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`: '
|
|
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="
|
|
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} />`
|
|
@@ -7,14 +7,14 @@
|
|
|
7
7
|
One- or two-thumb slider (MAUI `G9RangeSlider`) on lynx-ui `SliderRoot`: lynx-ui owns the gesture (main-thread drag, thumbs that meet but never cross); G9 maps minimum/maximum/step onto its normalized value, snaps with t
|
|
8
8
|
|
|
9
9
|
Props:
|
|
10
|
+
- `label?`: string
|
|
10
11
|
- `value?`: number
|
|
11
12
|
- `onValueChange?`: (value: number) => void
|
|
12
13
|
- `disabled?`: boolean
|
|
13
14
|
- `mode?`: 'single' | 'range' = "range"
|
|
15
|
+
- `formatValue?`: (value: number) => void
|
|
14
16
|
- `onRangeChange?`: (start: number, end: number) => void
|
|
15
17
|
- `onValueChanged?`: (value: number) => void
|
|
16
|
-
- `defaultValue?`: number
|
|
17
|
-
- `bands?`: object[]
|
|
18
18
|
|
|
19
19
|
Example: `<G9RangeSlider />`
|
|
20
20
|
|
|
@@ -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' | '
|
|
30
|
+
- `status`: 'online' | 'connecting' | 'offline' | 'reconnecting' | 'poor'
|
|
31
31
|
- `onRetry?`: () => void
|
|
32
32
|
- `backOnlineText?`: string
|
|
33
33
|
- `connectingText?`: string = "reconnectingText"
|
|
@@ -87,7 +87,7 @@ Example: `<G9TopBar />`
|
|
|
87
87
|
|
|
88
88
|
`import { G9UpdateBar } from '@g9tm/lynxcontrols/shell';`
|
|
89
89
|
|
|
90
|
-
«A new version is ready — restart» (SAC UpdatePrompt, live updates): a slim bar
|
|
90
|
+
«A new version is ready — restart» (SAC UpdatePrompt, live updates): a slim bar with the action and an optional dismissal.
|
|
91
91
|
|
|
92
92
|
Props:
|
|
93
93
|
- `actionText`: string
|
|
@@ -96,5 +96,6 @@ Props:
|
|
|
96
96
|
- `text`: string
|
|
97
97
|
- `onDismiss?`: () => void
|
|
98
98
|
- `dismissText?`: string
|
|
99
|
+
- `placement?`: 'overlay' | 'inline'
|
|
99
100
|
|
|
100
101
|
Example: `<G9UpdateBar actionText="actionText" onAction={() => {}} shown text="Label" />`
|
|
@@ -13,8 +13,8 @@ Props:
|
|
|
13
13
|
- `disabled?`: boolean = false
|
|
14
14
|
- `onCheckedChange?`: (checked: boolean) => void
|
|
15
15
|
- `onIndeterminateChange?`: (indeterminate: boolean) => void
|
|
16
|
+
- `labelGap?`: number = 2
|
|
16
17
|
- `defaultChecked?`: boolean
|
|
17
|
-
- `defaultIndeterminate?`: boolean
|
|
18
18
|
|
|
19
19
|
Example: `<G9CheckBox text="I agree" checked={agree} onCheckedChange={setAgree} />`
|
|
20
20
|
|
|
@@ -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
|
-
- `
|
|
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';`
|
|
@@ -120,9 +137,9 @@ Props:
|
|
|
120
137
|
- `onChange?`: (value: number) => void
|
|
121
138
|
- `disabled?`: boolean = false
|
|
122
139
|
- `format?`: (value: number) => void
|
|
140
|
+
- `addLabel?`: string
|
|
123
141
|
- `decreaseLabel?`: string
|
|
124
142
|
- `increaseLabel?`: string
|
|
125
|
-
- `removeLabel?`: string = "decreaseLabel"
|
|
126
143
|
|
|
127
144
|
Example: `<G9Stepper />`
|
|
128
145
|
|
|
@@ -6,9 +6,10 @@
|
|
|
6
6
|
> **The same holds for React context.** A layer is a sibling of the page under `G9Host`, so a provider you mount
|
|
7
7
|
> INSIDE `G9Host` (around the page) does not reach a sheet's body: React's context hook there returns the default (SAC:
|
|
8
8
|
> a tray sheet's own guest hook threw «GuestContext missing» and the sheet never opened). Mount app providers ABOVE
|
|
9
|
-
> `G9Host` (between `G9Provider` and `G9Host`). A provider that itself needs `useG9Host` must stay below:
|
|
10
|
-
>
|
|
11
|
-
>
|
|
9
|
+
> `G9Host` (between `G9Provider` and `G9Host`). A provider that itself needs `useG9Host` must stay below: put
|
|
10
|
+
> `<G9CarryContexts contexts={[GuestContext, CartContext]} />` (`/host`, 2.5.7) under those providers, and every
|
|
11
|
+
> layer (sheets, popups, toasts, menus) reads them with their live values. Keep that list the same from render to
|
|
12
|
+
> render. A body that only receives values from its opener is safe either way.
|
|
12
13
|
|
|
13
14
|
```tsx
|
|
14
15
|
import { G9Host } from '@g9tm/lynxcontrols/host';
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
# `@g9tm/lynxcontrols-calendar` (generated)
|
|
2
|
-
|
|
3
|
-
# G9AgendaView
|
|
4
|
-
|
|
5
|
-
`import { G9AgendaView } from '@g9tm/lynxcontrols-calendar';`
|
|
6
|
-
|
|
7
|
-
Days with events, each a sticky header over its events (time, title), on the recycler.
|
|
8
|
-
|
|
9
|
-
Props:
|
|
10
|
-
- `events`: object[]
|
|
11
|
-
- `today`: object
|
|
12
|
-
- `onSelectEvent?`: (event: G9CalendarEvent) => void
|
|
13
|
-
- `allDayText?`: string
|
|
14
|
-
- `empty?`: ReactNode
|
|
15
|
-
|
|
16
|
-
Example: `<G9AgendaView events={events} today={today} />`
|
|
17
|
-
|
|
18
|
-
# G9DateInput
|
|
19
|
-
|
|
20
|
-
`import { G9DateInput } from '@g9tm/lynxcontrols-calendar';`
|
|
21
|
-
|
|
22
|
-
A date typed the way people say it — «فردا», «۱۵ مهر», «2026-03-21», «next friday» — read on blur (parseNaturalDate), with a month to tap under it.
|
|
23
|
-
|
|
24
|
-
Props:
|
|
25
|
-
- `label`: string
|
|
26
|
-
- `onChange`: (date: G9LocalDate | null) => void
|
|
27
|
-
- `today`: object
|
|
28
|
-
- `value`: object
|
|
29
|
-
- `invalidText?`: string
|
|
30
|
-
- `max?`: object
|
|
31
|
-
- `min?`: object
|
|
32
|
-
|
|
33
|
-
Example: `<G9DateInput label="Label" onChange={() => {}} today={today} value={value} />`
|
|
34
|
-
|
|
35
|
-
# G9MiniMonth
|
|
36
|
-
|
|
37
|
-
`import { G9MiniMonth } from '@g9tm/lynxcontrols-calendar';`
|
|
38
|
-
|
|
39
|
-
A compact month: header with arrows, weekday initials, 6×7 days; today ringed, the value filled, a range tinted.
|
|
40
|
-
|
|
41
|
-
Props:
|
|
42
|
-
- `today`: object
|
|
43
|
-
- `value?`: object
|
|
44
|
-
- `onSelect?`: (date: G9LocalDate) => void
|
|
45
|
-
- `marked?`: (date: G9LocalDate) => void
|
|
46
|
-
- `initialMonth?`: object
|
|
47
|
-
- `max?`: object
|
|
48
|
-
- `min?`: object
|
|
49
|
-
- `range?`: object
|
|
50
|
-
|
|
51
|
-
Example: `<G9MiniMonth today={today} />`
|
|
52
|
-
|
|
53
|
-
# G9MonthDayPicker
|
|
54
|
-
|
|
55
|
-
`import { G9MonthDayPicker } from '@g9tm/lynxcontrols-calendar';`
|
|
56
|
-
|
|
57
|
-
Two rows of chips: the twelve months of the culture's calendar, then the chosen month's days.
|
|
58
|
-
|
|
59
|
-
Props:
|
|
60
|
-
- `onChange`: (value: G9MonthDay | null) => void
|
|
61
|
-
- `value`: object
|
|
62
|
-
|
|
63
|
-
Example: `<G9MonthDayPicker onChange={() => {}} value={value} />`
|
|
64
|
-
|
|
65
|
-
# G9MonthView
|
|
66
|
-
|
|
67
|
-
`import { G9MonthView } from '@g9tm/lynxcontrols-calendar';`
|
|
68
|
-
|
|
69
|
-
A full month with each day's first events as chips and «+n» for the rest.
|
|
70
|
-
|
|
71
|
-
Props:
|
|
72
|
-
- `events`: object[]
|
|
73
|
-
- `month`: object
|
|
74
|
-
- `today`: object
|
|
75
|
-
- `onSelectDay?`: (date: G9LocalDate) => void
|
|
76
|
-
- `onSelectEvent?`: (event: G9CalendarEvent) => void
|
|
77
|
-
- `perDay?`: number = 2
|
|
78
|
-
|
|
79
|
-
Example: `<G9MonthView events={events} month={month} today={today} />`
|
|
80
|
-
|
|
81
|
-
# G9RepeatPicker
|
|
82
|
-
|
|
83
|
-
`import { G9RepeatPicker } from '@g9tm/lynxcontrols-calendar';`
|
|
84
|
-
|
|
85
|
-
Never / daily / weekly (with weekday chips) / monthly / yearly.
|
|
86
|
-
|
|
87
|
-
Props:
|
|
88
|
-
- `labels`: object
|
|
89
|
-
- `onChange`: (rule: G9Recurrence | null) => void
|
|
90
|
-
- `value`: object
|
|
91
|
-
|
|
92
|
-
Example: `<G9RepeatPicker labels={labels} onChange={() => {}} value={value} />`
|
|
93
|
-
|
|
94
|
-
# G9TimeGrid
|
|
95
|
-
|
|
96
|
-
`import { G9TimeGrid } from '@g9tm/lynxcontrols-calendar';`
|
|
97
|
-
|
|
98
|
-
Hours down the side, a column per day, timed events packed into lanes where they overlap, the now line.
|
|
99
|
-
|
|
100
|
-
Props:
|
|
101
|
-
- `events`: object[]
|
|
102
|
-
- `start`: object
|
|
103
|
-
- `today`: object
|
|
104
|
-
- `onSelectEvent?`: (event: G9CalendarEvent) => void
|
|
105
|
-
- `onSelectSlot?`: (date: G9LocalDate, minutes: number) => void
|
|
106
|
-
- `hourHeight?`: number
|
|
107
|
-
- `days?`: number
|
|
108
|
-
- `fromHour?`: number
|
|
109
|
-
|
|
110
|
-
Example: `<G9TimeGrid events={events} start={start} today={today} />`
|
|
111
|
-
|
|
112
|
-
# G9ZonePicker
|
|
113
|
-
|
|
114
|
-
`import { G9ZonePicker } from '@g9tm/lynxcontrols-calendar';`
|
|
115
|
-
|
|
116
|
-
A searchable time-zone picker: the rows are windowed, so ~420 zones open as fast as ten.
|
|
117
|
-
|
|
118
|
-
Props:
|
|
119
|
-
- `onChange`: (zone: string) => void
|
|
120
|
-
- `value`: string
|
|
121
|
-
- `zones`: string[]
|
|
122
|
-
- `label?`: string
|
|
123
|
-
- `leadingIcon?`: icon
|
|
124
|
-
- `placeholder?`: string
|
|
125
|
-
- `disabled?`: boolean = false
|
|
126
|
-
- `offsetOf?`: (zone: string) => void
|
|
127
|
-
|
|
128
|
-
Example: `<G9ZonePicker onChange={() => {}} value="value" zones={zones} />`
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
# `@g9tm/lynxcontrols-chat` (generated)
|
|
2
|
-
|
|
3
|
-
# G9ChatComposer
|
|
4
|
-
|
|
5
|
-
`import { G9ChatComposer } from '@g9tm/lynxcontrols-chat';`
|
|
6
|
-
|
|
7
|
-
The message box: a growing text area (up to 5 lines), attach and emoji at the start, send at the end — send only when there is text; Enter on a hardware keyboard sends, Shift+Enter breaks the line.
|
|
8
|
-
|
|
9
|
-
Props:
|
|
10
|
-
- `onSend`: (text: string) => void
|
|
11
|
-
- `placeholder`: string
|
|
12
|
-
- `value?`: string
|
|
13
|
-
- `onChange?`: (text: string) => void
|
|
14
|
-
- `disabled?`: boolean
|
|
15
|
-
- `onAttach?`: () => void
|
|
16
|
-
- `onEmoji?`: () => void
|
|
17
|
-
- `attachLabel?`: string
|
|
18
|
-
|
|
19
|
-
Example: `<G9ChatComposer onSend={() => {}} placeholder="placeholder" />`
|
|
20
|
-
|
|
21
|
-
# G9ChatThread
|
|
22
|
-
|
|
23
|
-
`import { G9ChatThread } from '@g9tm/lynxcontrols-chat';`
|
|
24
|
-
|
|
25
|
-
A conversation on the recycler: starts at the newest message, day dividers sticky, rows rendered as they come into view (deferred list items), older pages asked for near the top.
|
|
26
|
-
|
|
27
|
-
Props:
|
|
28
|
-
- `me`: string
|
|
29
|
-
- `messages`: object[]
|
|
30
|
-
- `dayLabel?`: (dayStartMs: number) => void
|
|
31
|
-
- `onLoadOlder?`: () => void
|
|
32
|
-
- `onLongPress?`: (message: G9Message) => void
|
|
33
|
-
- `onRetry?`: (message: G9Message) => void
|
|
34
|
-
- `renderAttachment?`: (message) => ReactNode
|
|
35
|
-
- `names?`: object
|
|
36
|
-
|
|
37
|
-
Example: `<G9ChatThread me="me" messages={messages} />`
|
|
38
|
-
|
|
39
|
-
# G9ConversationRow
|
|
40
|
-
|
|
41
|
-
`import { G9ConversationRow } from '@g9tm/lynxcontrols-chat';`
|
|
42
|
-
|
|
43
|
-
A conversation in the inbox: avatar (with presence), name, the last message or «typing…», its time, unread count.
|
|
44
|
-
|
|
45
|
-
Props:
|
|
46
|
-
- `at`: number
|
|
47
|
-
- `name`: string
|
|
48
|
-
- `preview`: string
|
|
49
|
-
- `onPress?`: () => void
|
|
50
|
-
- `typingText?`: string
|
|
51
|
-
- `avatar?`: string
|
|
52
|
-
- `muted?`: boolean
|
|
53
|
-
- `online?`: boolean
|
|
54
|
-
|
|
55
|
-
Example: `<G9ConversationRow at={1} name="name" preview="preview" />`
|
|
56
|
-
|
|
57
|
-
# G9EmojiPicker
|
|
58
|
-
|
|
59
|
-
`import { G9EmojiPicker } from '@g9tm/lynxcontrols-chat';`
|
|
60
|
-
|
|
61
|
-
Emoji by category: tabs over a grid of 44 dp targets.
|
|
62
|
-
|
|
63
|
-
Props:
|
|
64
|
-
- `onPick`: (emoji: string) => void
|
|
65
|
-
- `columns?`: number
|
|
66
|
-
- `labels?`: object
|
|
67
|
-
- `sets?`: object
|
|
68
|
-
|
|
69
|
-
Example: `<G9EmojiPicker onPick={() => {}} />`
|
|
70
|
-
|
|
71
|
-
# G9MessageBubble
|
|
72
|
-
|
|
73
|
-
`import { G9MessageBubble } from '@g9tm/lynxcontrols-chat';`
|
|
74
|
-
|
|
75
|
-
One message: mine on the end side in the primary container colour, theirs on the start side on the surface; the corner toward the sender is tightened inside a run (first/middle/last), the time and the status ticks under
|
|
76
|
-
|
|
77
|
-
Props:
|
|
78
|
-
- `message`: object
|
|
79
|
-
- `mine`: boolean
|
|
80
|
-
- `onLongPress?`: (message: G9Message) => void
|
|
81
|
-
- `onRetry?`: (message: G9Message) => void
|
|
82
|
-
- `attachment?`: ReactNode
|
|
83
|
-
- `position?`: 'single' | 'last' | 'first' | 'middle'
|
|
84
|
-
- `senderName?`: string
|
|
85
|
-
- `showTime?`: boolean
|
|
86
|
-
|
|
87
|
-
Example: `<G9MessageBubble message={message} mine />`
|
|
88
|
-
|
|
89
|
-
# G9TypingDots
|
|
90
|
-
|
|
91
|
-
`import { G9TypingDots } from '@g9tm/lynxcontrols-chat';`
|
|
92
|
-
|
|
93
|
-
Three dots that rise in turn (CSS animation: nothing runs in script).
|
|
94
|
-
|
|
95
|
-
Props:
|
|
96
|
-
- `label?`: string
|
|
97
|
-
|
|
98
|
-
Example: `<G9TypingDots />`
|