@g9tm/lynxcontrols 2.5.17 → 2.6.1
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/G9Tooltip.md +17 -0
- package/catalog/catalog.json +306 -1
- package/catalog/index.md +2 -1
- package/dist/.tsbuildinfo +1 -1
- package/dist/popover/index.d.ts +1 -0
- package/dist/popover/index.d.ts.map +1 -1
- package/dist/popover/index.jsx +1 -0
- package/dist/popover/tooltip.d.ts +48 -0
- package/dist/popover/tooltip.d.ts.map +1 -0
- package/dist/popover/tooltip.jsx +77 -0
- package/package.json +2 -2
- package/skills/g9-lynx-app/references/catalog-index.md +1 -1
- package/skills/g9-lynx-app/references/components/popover.md +18 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# G9Tooltip
|
|
2
|
+
|
|
3
|
+
`import { G9Tooltip } from '@g9tm/lynxcontrols/popover';`
|
|
4
|
+
|
|
5
|
+
A short explanation pointing at a control (a value a card leaves out, shown on a tap): drawn in the popup layer like `G9Popover` — measured, placed above the control and flipped or clamped into the window — as a compact
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `onClose`: () => void
|
|
9
|
+
- `open`: boolean
|
|
10
|
+
- `text`: string
|
|
11
|
+
- `placement?`: 'end' | 'start' | 'top' | 'bottom' | 'bottom-start' | 'bottom-end' | 'top-start' | 'top-end' | 'start-start' | 'start-end' | 'end-start' | 'end-end' = "top"
|
|
12
|
+
- `align?`: 'end' | 'start'
|
|
13
|
+
- `anchorId?`: string
|
|
14
|
+
- `anchorNode?`: object
|
|
15
|
+
- `anchorRect?`: object
|
|
16
|
+
|
|
17
|
+
Example: `<G9Tooltip onClose={() => {}} open text="Label" />`
|
package/catalog/catalog.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"catalogVersion": 1,
|
|
3
3
|
"package": "@g9tm/lynxcontrols",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.6.1",
|
|
5
5
|
"generatedBy": "node scripts/check-docs.mjs --write",
|
|
6
6
|
"components": [
|
|
7
7
|
{
|
|
@@ -47029,6 +47029,287 @@
|
|
|
47029
47029
|
"from": "generated"
|
|
47030
47030
|
}
|
|
47031
47031
|
},
|
|
47032
|
+
{
|
|
47033
|
+
"id": "controls.popover.G9Tooltip",
|
|
47034
|
+
"export": "G9Tooltip",
|
|
47035
|
+
"from": "@g9tm/lynxcontrols/popover",
|
|
47036
|
+
"kind": "component",
|
|
47037
|
+
"family": "popover",
|
|
47038
|
+
"summary": "A short explanation pointing at a control (a value a card leaves out, shown on a tap): drawn in the popup layer like `G9Popover` — measured, placed above the control and flipped or clamped into the window — as a compact inverse-surface bubble. It closes by itself after `autoHideMs`, on a tap anywhere, or on Back. Toggle it from the control with `useG9Tooltip`, so a second tap on the control closes it.",
|
|
47039
|
+
"since": null,
|
|
47040
|
+
"props": [
|
|
47041
|
+
{
|
|
47042
|
+
"name": "align",
|
|
47043
|
+
"type": {
|
|
47044
|
+
"kind": "enum",
|
|
47045
|
+
"values": [
|
|
47046
|
+
"end",
|
|
47047
|
+
"start"
|
|
47048
|
+
]
|
|
47049
|
+
},
|
|
47050
|
+
"required": false,
|
|
47051
|
+
"serializable": true,
|
|
47052
|
+
"role": "appearance",
|
|
47053
|
+
"doc": "`inline`: which end of the control the bubble lines up with (default `'start'`, the reading start)."
|
|
47054
|
+
},
|
|
47055
|
+
{
|
|
47056
|
+
"name": "anchorId",
|
|
47057
|
+
"type": {
|
|
47058
|
+
"kind": "string"
|
|
47059
|
+
},
|
|
47060
|
+
"required": false,
|
|
47061
|
+
"serializable": true,
|
|
47062
|
+
"role": "behaviour",
|
|
47063
|
+
"doc": "The `id` of the control it explains (any control registered as an anchor)…"
|
|
47064
|
+
},
|
|
47065
|
+
{
|
|
47066
|
+
"name": "anchorNode",
|
|
47067
|
+
"type": {
|
|
47068
|
+
"kind": "object",
|
|
47069
|
+
"fields": [
|
|
47070
|
+
{
|
|
47071
|
+
"name": "invoke",
|
|
47072
|
+
"required": true,
|
|
47073
|
+
"type": {
|
|
47074
|
+
"kind": "event",
|
|
47075
|
+
"payload": "options: uiMethodOptions",
|
|
47076
|
+
"returns": "SelectorQuery"
|
|
47077
|
+
},
|
|
47078
|
+
"serializable": false
|
|
47079
|
+
},
|
|
47080
|
+
{
|
|
47081
|
+
"name": "path",
|
|
47082
|
+
"required": true,
|
|
47083
|
+
"type": {
|
|
47084
|
+
"kind": "event",
|
|
47085
|
+
"payload": "callback: PathCallback",
|
|
47086
|
+
"returns": "SelectorQuery"
|
|
47087
|
+
},
|
|
47088
|
+
"serializable": false
|
|
47089
|
+
},
|
|
47090
|
+
{
|
|
47091
|
+
"name": "fields",
|
|
47092
|
+
"required": true,
|
|
47093
|
+
"type": {
|
|
47094
|
+
"kind": "event",
|
|
47095
|
+
"payload": "fields: Required<FieldsParams> extends Record<keyof T, boolean> ? T : FieldsParams, callback: (data: { [K in keyof Required<FieldsParams> as T[K] extends true ? K : never]: FieldsData[K]; } | null, status: { data: string; code: number; }) => void",
|
|
47096
|
+
"returns": "SelectorQuery"
|
|
47097
|
+
},
|
|
47098
|
+
"serializable": false
|
|
47099
|
+
},
|
|
47100
|
+
{
|
|
47101
|
+
"name": "animate",
|
|
47102
|
+
"required": true,
|
|
47103
|
+
"type": {
|
|
47104
|
+
"kind": "event",
|
|
47105
|
+
"payload": "animations: AnimationV2 | AnimationV2[]",
|
|
47106
|
+
"returns": "SelectorQuery"
|
|
47107
|
+
},
|
|
47108
|
+
"serializable": false
|
|
47109
|
+
},
|
|
47110
|
+
{
|
|
47111
|
+
"name": "playAnimation",
|
|
47112
|
+
"required": true,
|
|
47113
|
+
"type": {
|
|
47114
|
+
"kind": "event",
|
|
47115
|
+
"payload": "ids: string | string[]",
|
|
47116
|
+
"returns": "SelectorQuery"
|
|
47117
|
+
},
|
|
47118
|
+
"serializable": false
|
|
47119
|
+
},
|
|
47120
|
+
{
|
|
47121
|
+
"name": "pauseAnimation",
|
|
47122
|
+
"required": true,
|
|
47123
|
+
"type": {
|
|
47124
|
+
"kind": "event",
|
|
47125
|
+
"payload": "ids: string | string[]",
|
|
47126
|
+
"returns": "SelectorQuery"
|
|
47127
|
+
},
|
|
47128
|
+
"serializable": false
|
|
47129
|
+
},
|
|
47130
|
+
{
|
|
47131
|
+
"name": "cancelAnimation",
|
|
47132
|
+
"required": true,
|
|
47133
|
+
"type": {
|
|
47134
|
+
"kind": "event",
|
|
47135
|
+
"payload": "ids: string | string[]",
|
|
47136
|
+
"returns": "SelectorQuery"
|
|
47137
|
+
},
|
|
47138
|
+
"serializable": false
|
|
47139
|
+
},
|
|
47140
|
+
{
|
|
47141
|
+
"name": "setNativeProps",
|
|
47142
|
+
"required": true,
|
|
47143
|
+
"type": {
|
|
47144
|
+
"kind": "event",
|
|
47145
|
+
"payload": "nativeProps: Record<string, any>",
|
|
47146
|
+
"returns": "SelectorQuery"
|
|
47147
|
+
},
|
|
47148
|
+
"serializable": false
|
|
47149
|
+
}
|
|
47150
|
+
]
|
|
47151
|
+
},
|
|
47152
|
+
"required": false,
|
|
47153
|
+
"serializable": false,
|
|
47154
|
+
"role": "behaviour",
|
|
47155
|
+
"doc": "…or an element ref's node."
|
|
47156
|
+
},
|
|
47157
|
+
{
|
|
47158
|
+
"name": "anchorRect",
|
|
47159
|
+
"type": {
|
|
47160
|
+
"kind": "object",
|
|
47161
|
+
"fields": [
|
|
47162
|
+
{
|
|
47163
|
+
"name": "x",
|
|
47164
|
+
"required": true,
|
|
47165
|
+
"type": {
|
|
47166
|
+
"kind": "number"
|
|
47167
|
+
},
|
|
47168
|
+
"serializable": true
|
|
47169
|
+
},
|
|
47170
|
+
{
|
|
47171
|
+
"name": "y",
|
|
47172
|
+
"required": true,
|
|
47173
|
+
"type": {
|
|
47174
|
+
"kind": "number"
|
|
47175
|
+
},
|
|
47176
|
+
"serializable": true
|
|
47177
|
+
},
|
|
47178
|
+
{
|
|
47179
|
+
"name": "width",
|
|
47180
|
+
"required": true,
|
|
47181
|
+
"type": {
|
|
47182
|
+
"kind": "number"
|
|
47183
|
+
},
|
|
47184
|
+
"serializable": true
|
|
47185
|
+
},
|
|
47186
|
+
{
|
|
47187
|
+
"name": "height",
|
|
47188
|
+
"required": true,
|
|
47189
|
+
"type": {
|
|
47190
|
+
"kind": "number"
|
|
47191
|
+
},
|
|
47192
|
+
"serializable": true
|
|
47193
|
+
}
|
|
47194
|
+
]
|
|
47195
|
+
},
|
|
47196
|
+
"required": false,
|
|
47197
|
+
"serializable": true,
|
|
47198
|
+
"role": "behaviour",
|
|
47199
|
+
"doc": "…or a rect…"
|
|
47200
|
+
},
|
|
47201
|
+
{
|
|
47202
|
+
"name": "autoHideMs",
|
|
47203
|
+
"type": {
|
|
47204
|
+
"kind": "number"
|
|
47205
|
+
},
|
|
47206
|
+
"required": false,
|
|
47207
|
+
"serializable": true,
|
|
47208
|
+
"role": "behaviour",
|
|
47209
|
+
"doc": "Closes by itself after this many ms (default {@link G9_TOOLTIP_DEFAULT_HIDE_MS}); `0` = only a tap closes it."
|
|
47210
|
+
},
|
|
47211
|
+
{
|
|
47212
|
+
"name": "id",
|
|
47213
|
+
"type": {
|
|
47214
|
+
"kind": "string"
|
|
47215
|
+
},
|
|
47216
|
+
"required": false,
|
|
47217
|
+
"serializable": true,
|
|
47218
|
+
"role": "identity"
|
|
47219
|
+
},
|
|
47220
|
+
{
|
|
47221
|
+
"name": "inline",
|
|
47222
|
+
"type": {
|
|
47223
|
+
"kind": "boolean"
|
|
47224
|
+
},
|
|
47225
|
+
"required": false,
|
|
47226
|
+
"serializable": true,
|
|
47227
|
+
"role": "behaviour",
|
|
47228
|
+
"doc": "Draw the bubble IN PLACE, inside the control it explains (rendered as that control's last child, absolutely placed above it), instead of in the host's popup layer. For a control inside a G9 sheet: Lynx paints a sheet (a fixed element) above every in-flow layer, the popup layer included, so a popup-layer bubble over a sheet is hidden behind it. The parent must be positioned (`position: relative`); no anchor props are needed."
|
|
47229
|
+
},
|
|
47230
|
+
{
|
|
47231
|
+
"name": "onClose",
|
|
47232
|
+
"type": {
|
|
47233
|
+
"kind": "event",
|
|
47234
|
+
"payload": null
|
|
47235
|
+
},
|
|
47236
|
+
"required": true,
|
|
47237
|
+
"serializable": false,
|
|
47238
|
+
"role": "event"
|
|
47239
|
+
},
|
|
47240
|
+
{
|
|
47241
|
+
"name": "open",
|
|
47242
|
+
"type": {
|
|
47243
|
+
"kind": "boolean"
|
|
47244
|
+
},
|
|
47245
|
+
"required": true,
|
|
47246
|
+
"serializable": true,
|
|
47247
|
+
"role": "state"
|
|
47248
|
+
},
|
|
47249
|
+
{
|
|
47250
|
+
"name": "placement",
|
|
47251
|
+
"type": {
|
|
47252
|
+
"kind": "enum",
|
|
47253
|
+
"values": [
|
|
47254
|
+
"end",
|
|
47255
|
+
"start",
|
|
47256
|
+
"top",
|
|
47257
|
+
"bottom",
|
|
47258
|
+
"bottom-start",
|
|
47259
|
+
"bottom-end",
|
|
47260
|
+
"top-start",
|
|
47261
|
+
"top-end",
|
|
47262
|
+
"start-start",
|
|
47263
|
+
"start-end",
|
|
47264
|
+
"end-start",
|
|
47265
|
+
"end-end"
|
|
47266
|
+
]
|
|
47267
|
+
},
|
|
47268
|
+
"required": false,
|
|
47269
|
+
"default": "top",
|
|
47270
|
+
"serializable": true,
|
|
47271
|
+
"role": "behaviour",
|
|
47272
|
+
"doc": "Default `'top'`; flips below when there is no room above."
|
|
47273
|
+
},
|
|
47274
|
+
{
|
|
47275
|
+
"name": "text",
|
|
47276
|
+
"type": {
|
|
47277
|
+
"kind": "string"
|
|
47278
|
+
},
|
|
47279
|
+
"required": true,
|
|
47280
|
+
"serializable": true,
|
|
47281
|
+
"role": "content",
|
|
47282
|
+
"doc": "The text of the bubble (one or more lines)."
|
|
47283
|
+
}
|
|
47284
|
+
],
|
|
47285
|
+
"anchor": null,
|
|
47286
|
+
"accessibility": {
|
|
47287
|
+
"labelFrom": [
|
|
47288
|
+
"text"
|
|
47289
|
+
],
|
|
47290
|
+
"labelRequired": false
|
|
47291
|
+
},
|
|
47292
|
+
"targets": {
|
|
47293
|
+
"android": "unmeasured",
|
|
47294
|
+
"ios": "unmeasured",
|
|
47295
|
+
"windows": "unmeasured",
|
|
47296
|
+
"macos": "unmeasured",
|
|
47297
|
+
"web": "verified"
|
|
47298
|
+
},
|
|
47299
|
+
"evidence": {
|
|
47300
|
+
"ledger": [
|
|
47301
|
+
"N-115"
|
|
47302
|
+
]
|
|
47303
|
+
},
|
|
47304
|
+
"tokens": [
|
|
47305
|
+
"InverseOnSurface",
|
|
47306
|
+
"InverseSurface"
|
|
47307
|
+
],
|
|
47308
|
+
"example": {
|
|
47309
|
+
"line": "<G9Tooltip onClose={() => {}} open text=\"Label\" />",
|
|
47310
|
+
"from": "generated"
|
|
47311
|
+
}
|
|
47312
|
+
},
|
|
47032
47313
|
{
|
|
47033
47314
|
"id": "controls.shell.G9TopBar",
|
|
47034
47315
|
"export": "G9TopBar",
|
|
@@ -50772,6 +51053,14 @@
|
|
|
50772
51053
|
"signature": "(): G9SheetOptions",
|
|
50773
51054
|
"summary": "MAUI `FullScreenWithoutHandleOptions()`."
|
|
50774
51055
|
},
|
|
51056
|
+
{
|
|
51057
|
+
"id": "controls.popover.G9_TOOLTIP_DEFAULT_HIDE_MS",
|
|
51058
|
+
"export": "G9_TOOLTIP_DEFAULT_HIDE_MS",
|
|
51059
|
+
"from": "@g9tm/lynxcontrols/popover",
|
|
51060
|
+
"kind": "constant",
|
|
51061
|
+
"signature": "4000",
|
|
51062
|
+
"summary": "How long a tooltip stays when nothing closes it first (ms)."
|
|
51063
|
+
},
|
|
50775
51064
|
{
|
|
50776
51065
|
"id": "controls.layout.G9ActionRowProps",
|
|
50777
51066
|
"export": "G9ActionRowProps",
|
|
@@ -55788,6 +56077,14 @@
|
|
|
55788
56077
|
"signature": "24",
|
|
55789
56078
|
"summary": "MAUI `G9LayoutMetrics.ToolbarIconSize` / `ToolbarButtonSize`."
|
|
55790
56079
|
},
|
|
56080
|
+
{
|
|
56081
|
+
"id": "controls.popover.G9TooltipProps",
|
|
56082
|
+
"export": "G9TooltipProps",
|
|
56083
|
+
"from": "@g9tm/lynxcontrols/popover",
|
|
56084
|
+
"kind": "interface",
|
|
56085
|
+
"signature": "G9TooltipProps",
|
|
56086
|
+
"summary": "Props of `G9Tooltip`."
|
|
56087
|
+
},
|
|
55791
56088
|
{
|
|
55792
56089
|
"id": "controls.shell.G9TopBarProps",
|
|
55793
56090
|
"export": "G9TopBarProps",
|
|
@@ -57932,6 +58229,14 @@
|
|
|
57932
58229
|
"signature": "(): G9ToastService",
|
|
57933
58230
|
"summary": "The toasts of the nearest `G9Host` (MAUI `G9ToastHelper`), in its `feedback` layer above popups and sheets."
|
|
57934
58231
|
},
|
|
58232
|
+
{
|
|
58233
|
+
"id": "controls.popover.useG9Tooltip",
|
|
58234
|
+
"export": "useG9Tooltip",
|
|
58235
|
+
"from": "@g9tm/lynxcontrols/popover",
|
|
58236
|
+
"kind": "hook",
|
|
58237
|
+
"signature": "(): { readonly open: boolean; readonly show: () => void; readonly close: () => void; readonly toggle: () => void; }",
|
|
58238
|
+
"summary": "Open / close / toggle state for a `G9Tooltip`: a tap on its control calls `toggle`."
|
|
58239
|
+
},
|
|
57935
58240
|
{
|
|
57936
58241
|
"id": "controls.provider.useG9Window",
|
|
57937
58242
|
"export": "useG9Window",
|
package/catalog/index.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Catalog index: `@g9tm/lynxcontrols` 2.
|
|
1
|
+
# Catalog index: `@g9tm/lynxcontrols` 2.6.1
|
|
2
2
|
|
|
3
3
|
One line per component; the card (`cards/<Export>.md`) has its props and an example.
|
|
4
4
|
|
|
@@ -161,6 +161,7 @@ One line per component; the card (`cards/<Export>.md`) has its props and an exam
|
|
|
161
161
|
- G9TimeEntry — A time typed as people type it (SAC TimeIn): «۷۳۰» becomes ۰۷:۳۰ on blur; an impossible time is shown as an error.
|
|
162
162
|
- G9TimeSpanPicker — A duration in an outlined box (MAUI `G9TimeSpanPicker`): a tap opens the drum sheet; Done writes the value and fires `onTimeSpanSelected`, Cancel and dismissals
|
|
163
163
|
- G9TitleWithLine — A 16 px title over a 1 px line (MAUI `G9TitleWithLine`).
|
|
164
|
+
- G9Tooltip — A short explanation pointing at a control (a value a card leaves out, shown on a tap): drawn in the popup layer like `G9Popover` — measured, placed above the co
|
|
164
165
|
- G9TopBar — The desktop global bar over the content (SAC TopBar, Riskara StatusStrip).
|
|
165
166
|
- G9UnsavedBar — A bar that appears while a form has unsaved changes (G9Hub UnsavedBar, SAC SaveBar): the message, discard, save.
|
|
166
167
|
- G9UpdateBar — «A new version is ready — restart» (SAC UpdatePrompt, live updates): a slim bar with the action and an optional dismissal.
|