@g9tm/lynxcontrols 2.5.7 → 2.5.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +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/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 +6947 -479
- 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/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 +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.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 +14 -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
|
@@ -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 />`
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
# `@g9tm/lynxcontrols-media` (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
|
-
- `src?`: string
|
|
16
|
-
|
|
17
|
-
Example: `<G9BlurhashView hash="hash" height={height} width={width} />`
|
|
18
|
-
|
|
19
|
-
# G9DropZone
|
|
20
|
-
|
|
21
|
-
`import { G9DropZone } from '@g9tm/lynxcontrols-media';`
|
|
22
|
-
|
|
23
|
-
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
|
|
24
|
-
|
|
25
|
-
Props:
|
|
26
|
-
- `label`: string
|
|
27
|
-
- `onFiles`: (files: readonly G9FileRef[]) => void
|
|
28
|
-
- `children?`: ReactNode
|
|
29
|
-
- `disabled?`: boolean
|
|
30
|
-
- `hint?`: string
|
|
31
|
-
- `accept?`: string
|
|
32
|
-
- `multiple?`: boolean = true
|
|
33
|
-
- `tapToPick?`: boolean
|
|
34
|
-
|
|
35
|
-
Example: `<G9DropZone label="Label" onFiles={() => {}} />`
|
|
36
|
-
|
|
37
|
-
# G9ImageCropper
|
|
38
|
-
|
|
39
|
-
`import { G9ImageCropper } from '@g9tm/lynxcontrols-media';`
|
|
40
|
-
|
|
41
|
-
Drag to place, − zoom + to scale (a pinch where the host reports it); the crop rectangle in image pixels comes out.
|
|
42
|
-
|
|
43
|
-
Props:
|
|
44
|
-
- `frame`: object
|
|
45
|
-
- `image`: object
|
|
46
|
-
- `src`: string
|
|
47
|
-
- `onChange?`: (crop: { readonly x: number; readonly y: number; readonly width: number; readonly height: number; }, state: G9CropState) => void
|
|
48
|
-
- `maxZoom?`: number
|
|
49
|
-
- `round?`: boolean
|
|
50
|
-
|
|
51
|
-
Example: `<G9ImageCropper frame={frame} image={image} src="src" />`
|
|
52
|
-
|
|
53
|
-
# G9Lightbox
|
|
54
|
-
|
|
55
|
-
`import { G9Lightbox } from '@g9tm/lynxcontrols-media';`
|
|
56
|
-
|
|
57
|
-
The photos full screen on black: swipe between them (Lynx's native `<viewpager>`, snapping), the position «۲ / ۵», a close button; fades in with opacity only.
|
|
58
|
-
|
|
59
|
-
Props:
|
|
60
|
-
- `index`: number
|
|
61
|
-
- `items`: object[]
|
|
62
|
-
- `onClose`: () => void
|
|
63
|
-
- `open`: boolean
|
|
64
|
-
- `onIndexChange?`: (index: number) => void
|
|
65
|
-
- `closeLabel?`: string
|
|
66
|
-
- `actions?`: ReactNode
|
|
67
|
-
|
|
68
|
-
Example: `<G9Lightbox index={1} items={items} onClose={() => {}} open />`
|
|
69
|
-
|
|
70
|
-
# G9MediaGrid
|
|
71
|
-
|
|
72
|
-
`import { G9MediaGrid } from '@g9tm/lynxcontrols-media';`
|
|
73
|
-
|
|
74
|
-
1–4 tiles (and «+k» on the fourth) in a chat or feed post; a tap opens the photo.
|
|
75
|
-
|
|
76
|
-
Props:
|
|
77
|
-
- `items`: object[]
|
|
78
|
-
- `width`: number
|
|
79
|
-
- `onOpen?`: (index: number) => void
|
|
80
|
-
- `radius?`: number
|
|
81
|
-
- `gap?`: number
|
|
82
|
-
- `height?`: number
|
|
83
|
-
|
|
84
|
-
Example: `<G9MediaGrid items={items} width={1} />`
|
|
85
|
-
|
|
86
|
-
# G9MediaPager
|
|
87
|
-
|
|
88
|
-
`import { G9MediaPager } from '@g9tm/lynxcontrols-media';`
|
|
89
|
-
|
|
90
|
-
Pictures one per page, swiped (Lynx's native `<viewpager>`, snapping), each fitted on the page.
|
|
91
|
-
|
|
92
|
-
Props:
|
|
93
|
-
- `index`: number
|
|
94
|
-
- `items`: object[]
|
|
95
|
-
- `onIndexChange?`: (index: number) => void
|
|
96
|
-
|
|
97
|
-
Example: `<G9MediaPager index={1} items={items} />`
|
|
98
|
-
|
|
99
|
-
# G9VoicePlayer
|
|
100
|
-
|
|
101
|
-
`import { G9VoicePlayer } from '@g9tm/lynxcontrols-media';`
|
|
102
|
-
|
|
103
|
-
A voice note: play/pause, the waveform filling as it plays, the time left.
|
|
104
|
-
|
|
105
|
-
Props:
|
|
106
|
-
- `duration`: number
|
|
107
|
-
- `onToggle`: () => void
|
|
108
|
-
- `playing`: boolean
|
|
109
|
-
- `position`: number
|
|
110
|
-
- `onSeek?`: (fraction: number) => void
|
|
111
|
-
- `pauseLabel?`: string
|
|
112
|
-
- `playLabel?`: string
|
|
113
|
-
- `bars?`: number
|
|
114
|
-
|
|
115
|
-
Example: `<G9VoicePlayer duration={1} onToggle={() => {}} playing position={1} />`
|