@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
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols-chat` (part 1 of 2) (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 something to send; 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
|
+
- `mentionSearch?`: (query: string) => void
|
|
16
|
+
- `onArrowUpEmpty?`: () => void
|
|
17
|
+
- `onAttach?`: () => void
|
|
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
|
+
- `bubble?`: 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 (icon, verified, muted), the ticks of my last message, the time, then the last message, my draft or «typing…» with the counts (unread, mentions) or a pin.
|
|
44
|
+
|
|
45
|
+
Props:
|
|
46
|
+
- `at`: number
|
|
47
|
+
- `name`: string
|
|
48
|
+
- `preview`: string
|
|
49
|
+
- `icon?`: icon
|
|
50
|
+
- `onPress?`: () => void
|
|
51
|
+
- `onLongPress?`: () => void
|
|
52
|
+
- `unreadLabel?`: (count: number) => void
|
|
53
|
+
- `draftLabel?`: string
|
|
54
|
+
|
|
55
|
+
Example: `<G9ConversationRow at={1} name="name" preview="preview" />`
|
|
56
|
+
|
|
57
|
+
# G9EmojiLibrary
|
|
58
|
+
|
|
59
|
+
`import { G9EmojiLibrary } from '@g9tm/lynxcontrols-chat';`
|
|
60
|
+
|
|
61
|
+
The app's custom emoji (or stickers): upload one (the app picks and scales the file), name it with a shortcode and a group, rename, regroup or remove; a search when there are many.
|
|
62
|
+
|
|
63
|
+
Props:
|
|
64
|
+
- `items`: object[]
|
|
65
|
+
- `labels`: object
|
|
66
|
+
- `columns?`: number
|
|
67
|
+
- `errorText?`: (error: unknown) => void
|
|
68
|
+
- `onAdd?`: (file: G9PickedEmojiFile, code: string, group: string) => void
|
|
69
|
+
- `onPickFile?`: () => void
|
|
70
|
+
- `onRemove?`: (item: G9CustomEmoji) => void
|
|
71
|
+
- `onUpdate?`: (item: G9CustomEmoji, code: string, group: string) => void
|
|
72
|
+
|
|
73
|
+
Example: `<G9EmojiLibrary items={items} labels={labels} />`
|
|
74
|
+
|
|
75
|
+
# G9EmojiPicker
|
|
76
|
+
|
|
77
|
+
`import { G9EmojiPicker } from '@g9tm/lynxcontrols-chat';`
|
|
78
|
+
|
|
79
|
+
Emoji by category: tabs over a grid of 44 dp targets, or the full catalogue with search, tones and recents.
|
|
80
|
+
|
|
81
|
+
Props:
|
|
82
|
+
- `onPick`: (emoji: string) => void
|
|
83
|
+
- `columns?`: number
|
|
84
|
+
- `onSkinToneChange?`: (tone: G9SkinTone) => void
|
|
85
|
+
- `emptyText?`: string
|
|
86
|
+
- `catalog?`: object[]
|
|
87
|
+
- `categoryNames?`: object
|
|
88
|
+
- `height?`: number = 320
|
|
89
|
+
- `labels?`: object
|
|
90
|
+
|
|
91
|
+
Example: `<G9EmojiPicker onPick={() => {}} />`
|
|
92
|
+
|
|
93
|
+
# G9FileCard
|
|
94
|
+
|
|
95
|
+
`import { G9FileCard } from '@g9tm/lynxcontrols-chat';`
|
|
96
|
+
|
|
97
|
+
A file in a message: its kind's badge (the extension), name, size, a progress ring with cancel while it moves.
|
|
98
|
+
|
|
99
|
+
Props:
|
|
100
|
+
- `name`: string
|
|
101
|
+
- `size?`: number
|
|
102
|
+
- `icon?`: icon
|
|
103
|
+
- `onCancel?`: () => void
|
|
104
|
+
- `onOpen?`: () => void
|
|
105
|
+
- `cancelLabel?`: string
|
|
106
|
+
- `mine?`: boolean
|
|
107
|
+
- `progress?`: number
|
|
108
|
+
|
|
109
|
+
Example: `<G9FileCard name="name" />`
|
|
110
|
+
|
|
111
|
+
# G9GifPicker
|
|
112
|
+
|
|
113
|
+
`import { G9GifPicker } from '@g9tm/lynxcontrols-chat';`
|
|
114
|
+
|
|
115
|
+
GIFs: the `G9StickerPicker` in two columns that keep each GIF's ratio, a search usually given.
|
|
116
|
+
|
|
117
|
+
Props:
|
|
118
|
+
- `onPick`: (item: G9StickerItem, packId: string | null) => void
|
|
119
|
+
- `packs`: object[]
|
|
120
|
+
- `columns?`: number
|
|
121
|
+
- `onItemLongPress?`: (item: G9StickerItem, packId: string | null) => void
|
|
122
|
+
- `search?`: (query: string, signal: AbortSignal) => void
|
|
123
|
+
- `emptyText?`: string
|
|
124
|
+
- `errorText?`: string
|
|
125
|
+
- `loadingText?`: string
|
|
126
|
+
|
|
127
|
+
Example: `<G9GifPicker onPick={() => {}} packs={packs} />`
|
|
128
|
+
|
|
129
|
+
# G9LinkPreview
|
|
130
|
+
|
|
131
|
+
`import { G9LinkPreview } from '@g9tm/lynxcontrols-chat';`
|
|
132
|
+
|
|
133
|
+
A link's preview (site, title, description, picture) under a message or above the composer.
|
|
134
|
+
|
|
135
|
+
Props:
|
|
136
|
+
- `url`: string
|
|
137
|
+
- `title?`: string
|
|
138
|
+
- `onDismiss?`: () => void
|
|
139
|
+
- `onOpen?`: (url: string) => void
|
|
140
|
+
- `description?`: string
|
|
141
|
+
- `dismissLabel?`: string
|
|
142
|
+
- `compact?`: boolean
|
|
143
|
+
- `image?`: string
|
|
144
|
+
|
|
145
|
+
Example: `<G9LinkPreview url="url" />`
|
|
146
|
+
|
|
147
|
+
# G9MessageBubble
|
|
148
|
+
|
|
149
|
+
`import { G9MessageBubble } from '@g9tm/lynxcontrols-chat';`
|
|
150
|
+
|
|
151
|
+
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
|
|
152
|
+
|
|
153
|
+
Props:
|
|
154
|
+
- `message`: object
|
|
155
|
+
- `mine`: boolean
|
|
156
|
+
- `customEmoji?`: (shortcode: string) => void
|
|
157
|
+
- `forwardedLabel?`: (from: string) => void
|
|
158
|
+
- `onAddReaction?`: (message: G9Message) => void
|
|
159
|
+
- `onEdited?`: (message: G9Message) => void
|
|
160
|
+
- `onLongPress?`: (message: G9Message) => void
|
|
161
|
+
- `onMention?`: (id: string) => void
|
|
162
|
+
|
|
163
|
+
Example: `<G9MessageBubble message={message} mine />`
|
|
164
|
+
|
|
165
|
+
# G9MessageMenu
|
|
166
|
+
|
|
167
|
+
`import { G9MessageMenu } from '@g9tm/lynxcontrols-chat';`
|
|
168
|
+
|
|
169
|
+
A message's long-press menu: a row of quick reactions (and «+» for the full picker) above the actions.
|
|
170
|
+
|
|
171
|
+
Props:
|
|
172
|
+
- `items`: object[]
|
|
173
|
+
- `onClose`: () => void
|
|
174
|
+
- `onSelect`: (key: string) => void
|
|
175
|
+
- `open`: boolean
|
|
176
|
+
- `title?`: string
|
|
177
|
+
- `onReact?`: (emoji: string) => void
|
|
178
|
+
- `cancelText?`: string
|
|
179
|
+
- `moreLabel?`: string
|
|
180
|
+
|
|
181
|
+
Example: `<G9MessageMenu items={items} onClose={() => {}} onSelect={() => {}} open />`
|
|
182
|
+
|
|
183
|
+
# G9MessageMeta
|
|
184
|
+
|
|
185
|
+
`import { G9MessageMeta } from '@g9tm/lynxcontrols-chat';`
|
|
186
|
+
|
|
187
|
+
A message's meta line: marks (pinned, silent, reminder, waiting), «edited», the time and my ticks.
|
|
188
|
+
|
|
189
|
+
Props:
|
|
190
|
+
- `time`: string | number
|
|
191
|
+
- `onEdited?`: () => void
|
|
192
|
+
- `onRetry?`: () => void
|
|
193
|
+
- `editedLabel?`: string
|
|
194
|
+
- `markIcons?`: icon
|
|
195
|
+
- `edited?`: boolean
|
|
196
|
+
- `marks?`: 'pinned' | 'silent' | 'reminder' | 'waiting'[]
|
|
197
|
+
- `mine?`: boolean
|
|
198
|
+
|
|
199
|
+
Example: `<G9MessageMeta time={time} />`
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols-chat` (part 2 of 2) (generated)
|
|
2
|
+
|
|
3
|
+
# G9MessageText
|
|
4
|
+
|
|
5
|
+
`import { G9MessageText } from '@g9tm/lynxcontrols-chat';`
|
|
6
|
+
|
|
7
|
+
A message's text: links open through the app (`onOpenLink`; nothing here fetches them), mentions highlighted (the reader's own on a tint), light formatting, inline code and code blocks (left to right), the app's `:emoji:
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `text`: string
|
|
11
|
+
- `customEmoji?`: (shortcode: string) => void
|
|
12
|
+
- `onMention?`: (id: string) => void
|
|
13
|
+
- `onOpenLink?`: (href: string) => void
|
|
14
|
+
- `bigEmoji?`: boolean = true
|
|
15
|
+
- `trailing?`: ReactNode
|
|
16
|
+
- `color?`: color
|
|
17
|
+
- `direction?`: 'ltr' | 'rtl' | 'auto'
|
|
18
|
+
|
|
19
|
+
Example: `<G9MessageText text="Label" />`
|
|
20
|
+
|
|
21
|
+
# G9PersonPicker
|
|
22
|
+
|
|
23
|
+
`import { G9PersonPicker } from '@g9tm/lynxcontrols-chat';`
|
|
24
|
+
|
|
25
|
+
People found as the person types; one pick, or several as chips with avatars; «show more» for the next page.
|
|
26
|
+
|
|
27
|
+
Props:
|
|
28
|
+
- `labels`: object
|
|
29
|
+
- `search`: (query: string, offset: number, signal: { readonly aborted: boolean; }) => void
|
|
30
|
+
- `selected?`: object[]
|
|
31
|
+
- `errorText?`: (error: unknown) => void
|
|
32
|
+
- `onPick?`: (person: G9Person) => void
|
|
33
|
+
- `onSelectedChange?`: (people: G9Person[]) => void
|
|
34
|
+
- `exclude?`: string[]
|
|
35
|
+
- `multiple?`: boolean = false
|
|
36
|
+
|
|
37
|
+
Example: `<G9PersonPicker labels={labels} search={search} />`
|
|
38
|
+
|
|
39
|
+
# G9PinnedBar
|
|
40
|
+
|
|
41
|
+
`import { G9PinnedBar } from '@g9tm/lynxcontrols-chat';`
|
|
42
|
+
|
|
43
|
+
The pinned messages under a conversation's header, one at a time with a bar per message (up to four).
|
|
44
|
+
|
|
45
|
+
Props:
|
|
46
|
+
- `items`: object[]
|
|
47
|
+
- `label`: string
|
|
48
|
+
- `onJump`: (item: G9PinnedItem) => void
|
|
49
|
+
- `countLabel?`: (index: number, total: number) => void
|
|
50
|
+
- `onUnpin?`: (item: G9PinnedItem) => void
|
|
51
|
+
- `unpinLabel?`: string
|
|
52
|
+
|
|
53
|
+
Example: `<G9PinnedBar items={items} label="Label" onJump={() => {}} />`
|
|
54
|
+
|
|
55
|
+
# G9ReactionBar
|
|
56
|
+
|
|
57
|
+
`import { G9ReactionBar } from '@g9tm/lynxcontrols-chat';`
|
|
58
|
+
|
|
59
|
+
Reactions under a message: emoji and count, mine on the accent; a tap toggles, a long press shows who.
|
|
60
|
+
|
|
61
|
+
Props:
|
|
62
|
+
- `reactions`: object[]
|
|
63
|
+
- `customEmoji?`: (shortcode: string) => void
|
|
64
|
+
- `onAdd?`: () => void
|
|
65
|
+
- `onDetails?`: (emoji: string) => void
|
|
66
|
+
- `onToggle?`: (emoji: string) => void
|
|
67
|
+
- `addLabel?`: string
|
|
68
|
+
- `mine?`: boolean
|
|
69
|
+
- `selectedWord?`: string
|
|
70
|
+
|
|
71
|
+
Example: `<G9ReactionBar reactions={reactions} />`
|
|
72
|
+
|
|
73
|
+
# G9SlashSuggestions
|
|
74
|
+
|
|
75
|
+
`import { G9SlashSuggestions } from '@g9tm/lynxcontrols-chat';`
|
|
76
|
+
|
|
77
|
+
The commands matching the composer's `/name`, above it.
|
|
78
|
+
|
|
79
|
+
Props:
|
|
80
|
+
- `commands`: object[]
|
|
81
|
+
- `onPick`: (command: G9SlashCommand) => void
|
|
82
|
+
- `text`: string
|
|
83
|
+
- `title?`: string
|
|
84
|
+
- `onDismiss?`: () => void
|
|
85
|
+
- `builtInLabel?`: string
|
|
86
|
+
- `keyboard?`: boolean = true
|
|
87
|
+
|
|
88
|
+
Example: `<G9SlashSuggestions commands={commands} onPick={() => {}} text="Label" />`
|
|
89
|
+
|
|
90
|
+
# G9StickerPicker
|
|
91
|
+
|
|
92
|
+
`import { G9StickerPicker } from '@g9tm/lynxcontrols-chat';`
|
|
93
|
+
|
|
94
|
+
Stickers by pack (tabs) or GIFs, in a virtual grid, with an optional search; each cell spoken by its label.
|
|
95
|
+
|
|
96
|
+
Props:
|
|
97
|
+
- `onPick`: (item: G9StickerItem, packId: string | null) => void
|
|
98
|
+
- `packs`: object[]
|
|
99
|
+
- `columns?`: number
|
|
100
|
+
- `variant?`: 'sticker' | 'gif'
|
|
101
|
+
- `onItemLongPress?`: (item: G9StickerItem, packId: string | null) => void
|
|
102
|
+
- `search?`: (query: string, signal: AbortSignal) => void
|
|
103
|
+
- `emptyText?`: string
|
|
104
|
+
- `errorText?`: string
|
|
105
|
+
|
|
106
|
+
Example: `<G9StickerPicker onPick={() => {}} packs={packs} />`
|
|
107
|
+
|
|
108
|
+
# G9TypingDots
|
|
109
|
+
|
|
110
|
+
`import { G9TypingDots } from '@g9tm/lynxcontrols-chat';`
|
|
111
|
+
|
|
112
|
+
Three dots that rise in turn (CSS animation: nothing runs in script).
|
|
113
|
+
|
|
114
|
+
Props:
|
|
115
|
+
- `label?`: string
|
|
116
|
+
- `variant?`: 'bubble' | 'inline'
|
|
117
|
+
- `color?`: color
|
|
118
|
+
|
|
119
|
+
Example: `<G9TypingDots />`
|
|
@@ -11,8 +11,10 @@ Props:
|
|
|
11
11
|
- `onClose`: () => void
|
|
12
12
|
- `open`: boolean
|
|
13
13
|
- `placeholder?`: string
|
|
14
|
+
- `onQueryChange?`: (query: string) => void
|
|
15
|
+
- `onRun?`: (command: G9Command) => void
|
|
14
16
|
- `emptyText?`: string
|
|
15
|
-
- `
|
|
17
|
+
- `loadingText?`: string
|
|
16
18
|
|
|
17
19
|
Example: `<G9CommandPalette commands={commands} onClose={() => {}} open />`
|
|
18
20
|
|
|
@@ -24,6 +26,10 @@ The keyboard shortcuts as a readable list (G9Hub ShortcutsSheet; open it on `?`)
|
|
|
24
26
|
|
|
25
27
|
Props:
|
|
26
28
|
- `groups`: object[]
|
|
29
|
+
- `columns?`: 1 | 2 | 'auto'
|
|
30
|
+
- `hint?`: string
|
|
31
|
+
- `orText?`: string
|
|
32
|
+
- `thenText?`: string
|
|
27
33
|
- `platform?`: 'mac' | 'other'
|
|
28
34
|
|
|
29
35
|
Example: `<G9ShortcutList groups={groups} />`
|
|
@@ -39,7 +45,9 @@ Props:
|
|
|
39
45
|
- `onClose`: () => void
|
|
40
46
|
- `open`: boolean
|
|
41
47
|
- `title`: string
|
|
48
|
+
- `columns?`: 1 | 2 | 'auto'
|
|
42
49
|
- `closeText?`: string
|
|
43
|
-
- `
|
|
50
|
+
- `hint?`: string
|
|
51
|
+
- `orText?`: string
|
|
44
52
|
|
|
45
53
|
Example: `<G9ShortcutsSheet groups={groups} onClose={() => {}} open title="Label" />`
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols/dashboard` (generated)
|
|
2
|
+
|
|
3
|
+
# G9DashboardCustomizeSheet
|
|
4
|
+
|
|
5
|
+
`import { G9DashboardCustomizeSheet } from '@g9tm/lynxcontrols/dashboard';`
|
|
6
|
+
|
|
7
|
+
Customize a dashboard: drag (or step) to reorder, show or hide each widget, pick half or full width, reset.
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `onChange`: (layout: { order: string[]; hidden: string[]; sizes: Record<string, G9WidgetSize>; }) => void
|
|
11
|
+
- `onClose`: () => void
|
|
12
|
+
- `open`: boolean
|
|
13
|
+
- `widgets`: object[]
|
|
14
|
+
- `layout?`: object
|
|
15
|
+
- `options?`: object
|
|
16
|
+
- `sizes?`: boolean = true
|
|
17
|
+
- `words?`: object
|
|
18
|
+
|
|
19
|
+
Example: `<G9DashboardCustomizeSheet onChange={() => {}} onClose={() => {}} open widgets={widgets} />`
|
|
20
|
+
|
|
21
|
+
# G9DashboardGrid
|
|
22
|
+
|
|
23
|
+
`import { G9DashboardGrid } from '@g9tm/lynxcontrols/dashboard';`
|
|
24
|
+
|
|
25
|
+
The dashboard: the person's widgets in their order and widths, full-width cards alone, half-width ones in two columns.
|
|
26
|
+
|
|
27
|
+
Props:
|
|
28
|
+
- `widgets`: object[]
|
|
29
|
+
- `columns?`: 1 | 2 | 'auto'
|
|
30
|
+
- `onWidgetError?`: (id: string, error: unknown) => void
|
|
31
|
+
- `empty?`: ReactNode
|
|
32
|
+
- `fallback?`: ReactNode
|
|
33
|
+
- `renderCard?`: (placed, content) => ReactNode
|
|
34
|
+
- `skeleton?`: ReactNode
|
|
35
|
+
- `gap?`: number = 12
|
|
36
|
+
|
|
37
|
+
Example: `<G9DashboardGrid widgets={widgets} />`
|
|
38
|
+
|
|
39
|
+
# G9WidgetSkeleton
|
|
40
|
+
|
|
41
|
+
`import { G9WidgetSkeleton } from '@g9tm/lynxcontrols/dashboard';`
|
|
42
|
+
|
|
43
|
+
The card shown while a widget's code loads.
|
|
44
|
+
|
|
45
|
+
Props:
|
|
46
|
+
|
|
47
|
+
Example: `<G9WidgetSkeleton />`
|
|
48
|
+
|
|
49
|
+
# G9WidgetSlot
|
|
50
|
+
|
|
51
|
+
`import { G9WidgetSlot } from '@g9tm/lynxcontrols/dashboard';`
|
|
52
|
+
|
|
53
|
+
One widget: drawn at once, or after its code arrives (a skeleton meanwhile); a failure leaves the slot.
|
|
54
|
+
|
|
55
|
+
Props:
|
|
56
|
+
- `widget`: object
|
|
57
|
+
- `onError?`: (id: string, error: unknown) => void
|
|
58
|
+
- `fallback?`: ReactNode
|
|
59
|
+
- `skeleton?`: ReactNode
|
|
60
|
+
|
|
61
|
+
Example: `<G9WidgetSlot widget={widget} />`
|
|
@@ -41,7 +41,7 @@ A count or a dot (G9Hub Counter/Badge, tab and bell counts).
|
|
|
41
41
|
|
|
42
42
|
Props:
|
|
43
43
|
- `value?`: string | number
|
|
44
|
-
- `appearance?`: '
|
|
44
|
+
- `appearance?`: 'solid' | 'outline' | 'plain' | 'soft' = "solid"
|
|
45
45
|
- `tone?`: 'primary' | 'info' | 'success' | 'warning' | 'error' | 'accent' | 'neutral' = "error"
|
|
46
46
|
- `dot?`: boolean
|
|
47
47
|
- `hideZero?`: boolean = true
|
|
@@ -59,6 +59,24 @@ Props:
|
|
|
59
59
|
|
|
60
60
|
Example: `<G9CameFromMark />`
|
|
61
61
|
|
|
62
|
+
# G9CodeBlock
|
|
63
|
+
|
|
64
|
+
`import { G9CodeBlock } from '@g9tm/lynxcontrols/display';`
|
|
65
|
+
|
|
66
|
+
A code sample: monospace, left to right, scrolled sideways (or wrapped), with line numbers and a copy button.
|
|
67
|
+
|
|
68
|
+
Props:
|
|
69
|
+
- `text`: string
|
|
70
|
+
- `onCopy?`: (text: string) => void
|
|
71
|
+
- `caption?`: string
|
|
72
|
+
- `copiedLabel?`: string
|
|
73
|
+
- `copyLabel?`: string
|
|
74
|
+
- `maxHeight?`: number
|
|
75
|
+
- `lineNumbers?`: boolean
|
|
76
|
+
- `wrap?`: boolean
|
|
77
|
+
|
|
78
|
+
Example: `<G9CodeBlock text="Label" />`
|
|
79
|
+
|
|
62
80
|
# G9CultureDateTimeLabel
|
|
63
81
|
|
|
64
82
|
`import { G9CultureDateTimeLabel } from '@g9tm/lynxcontrols/display';`
|
|
@@ -119,12 +137,13 @@ Example: `<G9EmptyState title="Label" />`
|
|
|
119
137
|
Keeps a failing part from taking the page down (SAC ErrorBoundary): a fallback with a retry, the error reported once.
|
|
120
138
|
|
|
121
139
|
Props:
|
|
122
|
-
- `fallback`: (error, retry) => ReactNode
|
|
123
140
|
- `children?`: ReactNode
|
|
124
141
|
- `onError?`: (error: unknown) => void
|
|
142
|
+
- `fallback?`: ReactNode
|
|
143
|
+
- `resetKey?`: {}
|
|
125
144
|
- `source?`: string
|
|
126
145
|
|
|
127
|
-
Example: `<G9ErrorBoundary
|
|
146
|
+
Example: `<G9ErrorBoundary />`
|
|
128
147
|
|
|
129
148
|
# G9Image
|
|
130
149
|
|
|
@@ -174,21 +193,3 @@ Props:
|
|
|
174
193
|
- `platform?`: 'mac' | 'other'
|
|
175
194
|
|
|
176
195
|
Example: `<G9Keycap combo="combo" />`
|
|
177
|
-
|
|
178
|
-
# G9Kpi
|
|
179
|
-
|
|
180
|
-
`import { G9Kpi } from '@g9tm/lynxcontrols/display';`
|
|
181
|
-
|
|
182
|
-
The KPI tile (SAC Kpi, ShopManager Tile, G9Hub StatTile, Riskara Kpi): label and icon, the value large, the change, a trend.
|
|
183
|
-
|
|
184
|
-
Props:
|
|
185
|
-
- `label`: string
|
|
186
|
-
- `value`: string
|
|
187
|
-
- `icon?`: icon
|
|
188
|
-
- `onPress?`: () => void
|
|
189
|
-
- `tone?`: 'primary' | 'info' | 'success' | 'warning' | 'error' | 'accent' | 'neutral'
|
|
190
|
-
- `loading?`: boolean
|
|
191
|
-
- `trend?`: ReactNode
|
|
192
|
-
- `delta?`: object
|
|
193
|
-
|
|
194
|
-
Example: `<G9Kpi label="Label" value="value" />`
|
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# `@g9tm/lynxcontrols/display` (part 2 of 3) (generated)
|
|
2
2
|
|
|
3
|
+
# G9Kpi
|
|
4
|
+
|
|
5
|
+
`import { G9Kpi } from '@g9tm/lynxcontrols/display';`
|
|
6
|
+
|
|
7
|
+
The KPI tile (SAC Kpi, ShopManager Tile, G9Hub StatTile, Riskara Kpi): label and icon, the value large, the change, a trend.
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `label`: string
|
|
11
|
+
- `value`: string
|
|
12
|
+
- `icon?`: icon
|
|
13
|
+
- `onPress?`: () => void
|
|
14
|
+
- `tone?`: 'primary' | 'info' | 'success' | 'warning' | 'error' | 'accent' | 'neutral'
|
|
15
|
+
- `loading?`: boolean
|
|
16
|
+
- `trend?`: ReactNode
|
|
17
|
+
- `delta?`: object
|
|
18
|
+
|
|
19
|
+
Example: `<G9Kpi label="Label" value="value" />`
|
|
20
|
+
|
|
3
21
|
# G9KpiGrid
|
|
4
22
|
|
|
5
23
|
`import { G9KpiGrid } from '@g9tm/lynxcontrols/display';`
|
|
@@ -138,6 +156,24 @@ Props:
|
|
|
138
156
|
|
|
139
157
|
Example: `<G9RevealText text="Label" />`
|
|
140
158
|
|
|
159
|
+
# G9SecretValue
|
|
160
|
+
|
|
161
|
+
`import { G9SecretValue } from '@g9tm/lynxcontrols/display';`
|
|
162
|
+
|
|
163
|
+
A secret (an API token, a webhook address) in a box with its copy button; dots until revealed when asked.
|
|
164
|
+
|
|
165
|
+
Props:
|
|
166
|
+
- `value`: string
|
|
167
|
+
- `label?`: string
|
|
168
|
+
- `onCopy?`: (value: string) => void
|
|
169
|
+
- `copiedLabel?`: string
|
|
170
|
+
- `copyLabel?`: string
|
|
171
|
+
- `hideLabel?`: string
|
|
172
|
+
- `revealLabel?`: string
|
|
173
|
+
- `wrap?`: (value) => ReactNode
|
|
174
|
+
|
|
175
|
+
Example: `<G9SecretValue value="value" />`
|
|
176
|
+
|
|
141
177
|
# G9Separator
|
|
142
178
|
|
|
143
179
|
`import { G9Separator } from '@g9tm/lynxcontrols/display';`
|
|
@@ -155,42 +191,3 @@ Props:
|
|
|
155
191
|
- `iconPath?`: string
|
|
156
192
|
|
|
157
193
|
Example: `<G9Separator title="Crops" />`
|
|
158
|
-
|
|
159
|
-
# G9SheetSkeleton
|
|
160
|
-
|
|
161
|
-
`import { G9SheetSkeleton } from '@g9tm/lynxcontrols/display';`
|
|
162
|
-
|
|
163
|
-
A sheet's loading skeleton with the shimmer band (MAUI `G9Shimmer.CreateSheetSkeleton`): form-field bars, or list rows (`'none'` renders list rows too, as MAUI).
|
|
164
|
-
|
|
165
|
-
Props:
|
|
166
|
-
- `skeleton`: 'none' | 'formFields' | 'listRows'
|
|
167
|
-
- `backgroundColor?`: color = "var(--g9-background)"
|
|
168
|
-
- `active?`: boolean = true
|
|
169
|
-
- `rowCount?`: number
|
|
170
|
-
|
|
171
|
-
Example: `<G9SheetSkeleton skeleton="none" />`
|
|
172
|
-
|
|
173
|
-
# G9ShimmerBand
|
|
174
|
-
|
|
175
|
-
`import { G9ShimmerBand } from '@g9tm/lynxcontrols/display';`
|
|
176
|
-
|
|
177
|
-
The highlight band that sweeps over skeleton shapes (MAUI `G9ShimmerBandView`): left to right every 1100 ms, white (peak 0.38) in light themes and black (peak 0.20) in dark ones, input-transparent.
|
|
178
|
-
|
|
179
|
-
Props:
|
|
180
|
-
- `active?`: boolean = true
|
|
181
|
-
|
|
182
|
-
Example: `<G9ShimmerBand />`
|
|
183
|
-
|
|
184
|
-
# G9Skeleton
|
|
185
|
-
|
|
186
|
-
`import { G9Skeleton } from '@g9tm/lynxcontrols/display';`
|
|
187
|
-
|
|
188
|
-
One placeholder bar (SAC Skeleton, Riskara Shimmer).
|
|
189
|
-
|
|
190
|
-
Props:
|
|
191
|
-
- `radius?`: number = 8
|
|
192
|
-
- `circle?`: boolean
|
|
193
|
-
- `height?`: string | number = 12
|
|
194
|
-
- `width?`: string | number = "100%"
|
|
195
|
-
|
|
196
|
-
Example: `<G9Skeleton />`
|
|
@@ -1,5 +1,44 @@
|
|
|
1
1
|
# `@g9tm/lynxcontrols/display` (part 3 of 3) (generated)
|
|
2
2
|
|
|
3
|
+
# G9SheetSkeleton
|
|
4
|
+
|
|
5
|
+
`import { G9SheetSkeleton } from '@g9tm/lynxcontrols/display';`
|
|
6
|
+
|
|
7
|
+
A sheet's loading skeleton with the shimmer band (MAUI `G9Shimmer.CreateSheetSkeleton`): form-field bars, or list rows (`'none'` renders list rows too, as MAUI).
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `skeleton`: 'none' | 'formFields' | 'listRows'
|
|
11
|
+
- `backgroundColor?`: color = "var(--g9-background)"
|
|
12
|
+
- `active?`: boolean = true
|
|
13
|
+
- `rowCount?`: number
|
|
14
|
+
|
|
15
|
+
Example: `<G9SheetSkeleton skeleton="none" />`
|
|
16
|
+
|
|
17
|
+
# G9ShimmerBand
|
|
18
|
+
|
|
19
|
+
`import { G9ShimmerBand } from '@g9tm/lynxcontrols/display';`
|
|
20
|
+
|
|
21
|
+
The highlight band that sweeps over skeleton shapes (MAUI `G9ShimmerBandView`): left to right every 1100 ms, white (peak 0.38) in light themes and black (peak 0.20) in dark ones, input-transparent.
|
|
22
|
+
|
|
23
|
+
Props:
|
|
24
|
+
- `active?`: boolean = true
|
|
25
|
+
|
|
26
|
+
Example: `<G9ShimmerBand />`
|
|
27
|
+
|
|
28
|
+
# G9Skeleton
|
|
29
|
+
|
|
30
|
+
`import { G9Skeleton } from '@g9tm/lynxcontrols/display';`
|
|
31
|
+
|
|
32
|
+
One placeholder bar (SAC Skeleton, Riskara Shimmer).
|
|
33
|
+
|
|
34
|
+
Props:
|
|
35
|
+
- `radius?`: number = 8
|
|
36
|
+
- `circle?`: boolean
|
|
37
|
+
- `height?`: string | number = 12
|
|
38
|
+
- `width?`: string | number = "100%"
|
|
39
|
+
|
|
40
|
+
Example: `<G9Skeleton />`
|
|
41
|
+
|
|
3
42
|
# G9SkeletonPage
|
|
4
43
|
|
|
5
44
|
`import { G9SkeletonPage } from '@g9tm/lynxcontrols/display';`
|
|
@@ -38,7 +77,7 @@ Props:
|
|
|
38
77
|
- `text`: string
|
|
39
78
|
- `size?`: 'sm' | 'md' | 'lg'
|
|
40
79
|
- `icon?`: icon
|
|
41
|
-
- `appearance?`: '
|
|
80
|
+
- `appearance?`: 'solid' | 'outline' | 'plain' | 'soft' = "soft"
|
|
42
81
|
- `tone?`: 'primary' | 'info' | 'success' | 'warning' | 'error' | 'accent' | 'neutral' = "neutral"
|
|
43
82
|
- `fillAlpha?`: number = 0.15
|
|
44
83
|
- `bordered?`: boolean
|
|
@@ -69,7 +108,7 @@ A small label on a card or row (menu item tags, statuses that are not states): t
|
|
|
69
108
|
Props:
|
|
70
109
|
- `text`: string
|
|
71
110
|
- `icon?`: icon
|
|
72
|
-
- `appearance?`: '
|
|
111
|
+
- `appearance?`: 'solid' | 'outline' | 'plain' | 'soft'
|
|
73
112
|
- `tone?`: 'primary' | 'info' | 'success' | 'warning' | 'error' | 'accent' | 'neutral'
|
|
74
113
|
- `emoji?`: string
|
|
75
114
|
|
|
@@ -13,7 +13,7 @@ Props:
|
|
|
13
13
|
- `placeholder?`: string
|
|
14
14
|
- `onValueChange?`: (value: string, details: G9ValueChangeDetails) => void
|
|
15
15
|
- `disabled?`: boolean = false
|
|
16
|
-
- `inputType?`: 'number' | '
|
|
16
|
+
- `inputType?`: 'number' | 'custom' | 'default' | 'email' | 'phone' | 'url' | 'letters' | 'decimal' | 'signedNumber' | 'signedDecimal' | 'lettersAndNumbers' | 'lettersNumbersSpace' | 'persianLetters' | 'persianLettersAndNumbers' | 'multilingualLettersAndNumbers' | 'noSpecialChars' = "default"
|
|
17
17
|
- `keyboardType?`: 'number' | 'default' | 'email' | 'phone' | 'password' | 'url' = "default"
|
|
18
18
|
|
|
19
19
|
Example: `<G9Editor />`
|
|
@@ -120,7 +120,7 @@ Props:
|
|
|
120
120
|
- `onValueChange?`: (value: string, details: G9ValueChangeDetails) => void
|
|
121
121
|
- `disabled?`: boolean = false
|
|
122
122
|
- `confirmType?`: 'search' | 'done' | 'send' | 'go' | 'next' = "done"
|
|
123
|
-
- `inputType?`: 'number' | '
|
|
123
|
+
- `inputType?`: 'number' | 'custom' | 'default' | 'email' | 'phone' | 'url' | 'letters' | 'decimal' | 'signedNumber' | 'signedDecimal' | 'lettersAndNumbers' | 'lettersNumbersSpace' | 'persianLetters' | 'persianLettersAndNumbers' | 'multilingualLettersAndNumbers' | 'noSpecialChars' = "default"
|
|
124
124
|
|
|
125
125
|
Example: `<G9SearchEntry />`
|
|
126
126
|
|
|
@@ -155,7 +155,7 @@ Props:
|
|
|
155
155
|
- `onValueChange?`: (value: string, details: G9ValueChangeDetails) => void
|
|
156
156
|
- `disabled?`: boolean = false
|
|
157
157
|
- `confirmType?`: 'search' | 'done' | 'send' | 'go' | 'next' = "done"
|
|
158
|
-
- `inputType?`: 'number' | '
|
|
158
|
+
- `inputType?`: 'number' | 'custom' | 'default' | 'email' | 'phone' | 'url' | 'letters' | 'decimal' | 'signedNumber' | 'signedDecimal' | 'lettersAndNumbers' | 'lettersNumbersSpace' | 'persianLetters' | 'persianLettersAndNumbers' | 'multilingualLettersAndNumbers' | 'noSpecialChars' = "default"
|
|
159
159
|
|
|
160
160
|
Example: `<G9TextEntry />`
|
|
161
161
|
|
|
@@ -36,7 +36,7 @@ Props:
|
|
|
36
36
|
- `children?`: ReactNode
|
|
37
37
|
- `onPress?`: () => void
|
|
38
38
|
- `disabled?`: boolean = false
|
|
39
|
-
- `appearance?`: '
|
|
39
|
+
- `appearance?`: 'glass' | 'outlined' | 'filled' | 'elevated'
|
|
40
40
|
- `edge?`: string
|
|
41
41
|
- `enterDelay?`: number
|
|
42
42
|
- `glow?`: string
|