@g9tm/lynxcontrols 2.5.5 → 2.5.7

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.
Files changed (167) hide show
  1. package/catalog/cards/G9AppBar.md +2 -2
  2. package/catalog/cards/G9Avatar.md +2 -1
  3. package/catalog/cards/G9CarryContexts.md +10 -0
  4. package/catalog/cards/G9CheckBox.md +1 -1
  5. package/catalog/cards/G9ChoiceList.md +1 -1
  6. package/catalog/cards/G9ConnectionBanner.md +4 -2
  7. package/catalog/cards/G9FlatTabBar.md +17 -0
  8. package/catalog/cards/G9FormField.md +2 -2
  9. package/catalog/cards/G9IconSlot.md +1 -1
  10. package/catalog/cards/G9ListRow.md +1 -1
  11. package/catalog/cards/G9RangeSlider.md +2 -2
  12. package/catalog/cards/G9Stepper.md +1 -1
  13. package/catalog/cards/G9SwitchRow.md +1 -1
  14. package/catalog/cards/G9UpdateBar.md +2 -1
  15. package/catalog/catalog.json +2418 -650
  16. package/catalog/index.md +5 -3
  17. package/dist/.tsbuildinfo +1 -1
  18. package/dist/base/selection-item.d.ts +5 -0
  19. package/dist/base/selection-item.d.ts.map +1 -1
  20. package/dist/button/button.d.ts +4 -0
  21. package/dist/button/button.d.ts.map +1 -1
  22. package/dist/button/button.jsx +8 -2
  23. package/dist/button/icon-button.d.ts +2 -0
  24. package/dist/button/icon-button.d.ts.map +1 -1
  25. package/dist/button/icon-button.jsx +3 -1
  26. package/dist/display/figures.d.ts +13 -0
  27. package/dist/display/figures.d.ts.map +1 -1
  28. package/dist/display/figures.jsx +53 -14
  29. package/dist/display/status.d.ts +1 -1
  30. package/dist/display/status.d.ts.map +1 -1
  31. package/dist/display/status.jsx +15 -3
  32. package/dist/effects/effects.css +6 -0
  33. package/dist/effects/effects.css.map +1 -1
  34. package/dist/effects/effects.d.ts +9 -0
  35. package/dist/effects/effects.d.ts.map +1 -1
  36. package/dist/effects/effects.jsx +55 -1
  37. package/dist/fields/editor.d.ts.map +1 -1
  38. package/dist/fields/editor.jsx +3 -0
  39. package/dist/fields/extra-entries.d.ts +2 -1
  40. package/dist/fields/extra-entries.d.ts.map +1 -1
  41. package/dist/fields/extra-entries.jsx +51 -17
  42. package/dist/fields/fields.css +21 -0
  43. package/dist/fields/fields.css.map +1 -1
  44. package/dist/fields/outlined-field.d.ts +14 -0
  45. package/dist/fields/outlined-field.d.ts.map +1 -1
  46. package/dist/fields/outlined-field.jsx +6 -1
  47. package/dist/fields/pin-entry.d.ts.map +1 -1
  48. package/dist/fields/pin-entry.jsx +36 -3
  49. package/dist/fields/text-entry.d.ts +4 -0
  50. package/dist/fields/text-entry.d.ts.map +1 -1
  51. package/dist/fields/text-entry.jsx +33 -26
  52. package/dist/fields/use-text-input.d.ts +3 -2
  53. package/dist/fields/use-text-input.d.ts.map +1 -1
  54. package/dist/fields/use-text-input.jsx +3 -0
  55. package/dist/header/app-bar.d.ts +13 -1
  56. package/dist/header/app-bar.d.ts.map +1 -1
  57. package/dist/header/app-bar.jsx +31 -11
  58. package/dist/header/header.css +12 -0
  59. package/dist/header/header.css.map +1 -1
  60. package/dist/host/bottom-overlays.d.ts +5 -0
  61. package/dist/host/bottom-overlays.d.ts.map +1 -1
  62. package/dist/host/bottom-overlays.jsx +17 -1
  63. package/dist/host/carry-contexts.d.ts +28 -0
  64. package/dist/host/carry-contexts.d.ts.map +1 -0
  65. package/dist/host/carry-contexts.jsx +62 -0
  66. package/dist/host/host.d.ts.map +1 -1
  67. package/dist/host/host.jsx +5 -1
  68. package/dist/host/index.d.ts +2 -0
  69. package/dist/host/index.d.ts.map +1 -1
  70. package/dist/host/index.jsx +2 -0
  71. package/dist/icon/icon.css +0 -1
  72. package/dist/icon/icon.css.map +1 -1
  73. package/dist/icon/icon.d.ts.map +1 -1
  74. package/dist/icon/icon.jsx +15 -10
  75. package/dist/icon/slot.d.ts +2 -0
  76. package/dist/icon/slot.d.ts.map +1 -1
  77. package/dist/icon/slot.jsx +2 -0
  78. package/dist/layout/containers.d.ts.map +1 -1
  79. package/dist/layout/containers.jsx +2 -1
  80. package/dist/layout/layout.css +5 -0
  81. package/dist/layout/layout.css.map +1 -1
  82. package/dist/layout/scroll-spy.d.ts.map +1 -1
  83. package/dist/layout/scroll-spy.jsx +4 -2
  84. package/dist/list/index.d.ts +1 -1
  85. package/dist/list/index.d.ts.map +1 -1
  86. package/dist/list/index.jsx +1 -1
  87. package/dist/list/list.css +28 -0
  88. package/dist/list/list.css.map +1 -1
  89. package/dist/list/rows.d.ts +13 -1
  90. package/dist/list/rows.d.ts.map +1 -1
  91. package/dist/list/rows.jsx +39 -20
  92. package/dist/list/virtual-list.d.ts +52 -1
  93. package/dist/list/virtual-list.d.ts.map +1 -1
  94. package/dist/list/virtual-list.jsx +123 -18
  95. package/dist/provider/direction-scope.d.ts +8 -0
  96. package/dist/provider/direction-scope.d.ts.map +1 -1
  97. package/dist/provider/direction-scope.jsx +13 -2
  98. package/dist/provider/index.d.ts +1 -1
  99. package/dist/provider/index.d.ts.map +1 -1
  100. package/dist/provider/provider.css +7 -0
  101. package/dist/provider/provider.css.map +1 -1
  102. package/dist/provider/settings.d.ts +14 -0
  103. package/dist/provider/settings.d.ts.map +1 -1
  104. package/dist/provider/settings.jsx +4 -1
  105. package/dist/range-slider/index.d.ts +1 -1
  106. package/dist/range-slider/index.d.ts.map +1 -1
  107. package/dist/range-slider/range-slider.css +69 -0
  108. package/dist/range-slider/range-slider.css.map +1 -1
  109. package/dist/range-slider/range-slider.d.ts +22 -0
  110. package/dist/range-slider/range-slider.d.ts.map +1 -1
  111. package/dist/range-slider/range-slider.jsx +34 -5
  112. package/dist/selection/selection-sheet.d.ts.map +1 -1
  113. package/dist/selection/selection-sheet.jsx +23 -10
  114. package/dist/selection/selection.css +16 -1
  115. package/dist/selection/selection.css.map +1 -1
  116. package/dist/shell/shell.css +7 -0
  117. package/dist/shell/shell.css.map +1 -1
  118. package/dist/shell/shell.d.ts +24 -3
  119. package/dist/shell/shell.d.ts.map +1 -1
  120. package/dist/shell/shell.jsx +12 -9
  121. package/dist/survey/survey.css +71 -0
  122. package/dist/survey/survey.css.map +1 -1
  123. package/dist/survey/survey.d.ts +15 -0
  124. package/dist/survey/survey.d.ts.map +1 -1
  125. package/dist/survey/survey.jsx +45 -2
  126. package/dist/tab-bar/flat.d.ts +18 -0
  127. package/dist/tab-bar/flat.d.ts.map +1 -0
  128. package/dist/tab-bar/flat.jsx +124 -0
  129. package/dist/tab-bar/index.d.ts +1 -0
  130. package/dist/tab-bar/index.d.ts.map +1 -1
  131. package/dist/tab-bar/index.jsx +1 -0
  132. package/dist/tab-bar/metrics.d.ts +8 -2
  133. package/dist/tab-bar/metrics.d.ts.map +1 -1
  134. package/dist/tab-bar/metrics.jsx +12 -1
  135. package/dist/tab-bar/tab-bar.css +77 -0
  136. package/dist/tab-bar/tab-bar.css.map +1 -1
  137. package/dist/tab-bar/tab-bar.d.ts.map +1 -1
  138. package/dist/tab-bar/tab-bar.jsx +32 -6
  139. package/dist/tabs/tab-view.jsx +10 -3
  140. package/dist/tabs/tabs.css +5 -0
  141. package/dist/tabs/tabs.css.map +1 -1
  142. package/dist/toggle/checkbox.d.ts +5 -0
  143. package/dist/toggle/checkbox.d.ts.map +1 -1
  144. package/dist/toggle/checkbox.jsx +7 -2
  145. package/dist/toggle/choice.css +8 -0
  146. package/dist/toggle/choice.css.map +1 -1
  147. package/dist/toggle/choice.d.ts +11 -0
  148. package/dist/toggle/choice.d.ts.map +1 -1
  149. package/dist/toggle/choice.jsx +25 -14
  150. package/package.json +2 -2
  151. package/skills/g9-lynx-app/references/catalog-index.md +3 -3
  152. package/skills/g9-lynx-app/references/components/barcode.md +3 -3
  153. package/skills/g9-lynx-app/references/components/charts.md +1 -1
  154. package/skills/g9-lynx-app/references/components/commerce.md +5 -5
  155. package/skills/g9-lynx-app/references/components/display-1.md +2 -1
  156. package/skills/g9-lynx-app/references/components/fields.md +2 -2
  157. package/skills/g9-lynx-app/references/components/header.md +2 -2
  158. package/skills/g9-lynx-app/references/components/host.md +11 -0
  159. package/skills/g9-lynx-app/references/components/icon.md +1 -1
  160. package/skills/g9-lynx-app/references/components/list.md +2 -2
  161. package/skills/g9-lynx-app/references/components/map.md +19 -1
  162. package/skills/g9-lynx-app/references/components/range-slider.md +2 -2
  163. package/skills/g9-lynx-app/references/components/shell.md +6 -3
  164. package/skills/g9-lynx-app/references/components/survey.md +1 -1
  165. package/skills/g9-lynx-app/references/components/tab-bar.md +18 -0
  166. package/skills/g9-lynx-app/references/components/toggle.md +2 -2
  167. package/skills/g9-lynx-app/references/provider-and-host.md +8 -0
@@ -1,5 +1,23 @@
1
1
  # `@g9tm/lynxcontrols-map` (generated)
2
2
 
3
+ # G9Map
4
+
5
+ `import { G9Map } from '@g9tm/lynxcontrols-map';`
6
+
7
+ The interactive tile map: drag, pinch, tap, tools; pins, lines (with casing) and zones as on G9StaticMap.
8
+
9
+ Props:
10
+ - `attribution`: string
11
+ - `height`: number
12
+ - `tileTemplate`: string
13
+ - `onPress?`: (at: G9LatLng) => void
14
+ - `onLocate?`: () => void
15
+ - `onPinPress?`: (pin: G9MapPin) => void
16
+ - `onViewChange?`: (view: G9MapCamera, reason: G9MapViewReason) => void
17
+ - `fitPadding?`: number = 36
18
+
19
+ Example: `<G9Map attribution="attribution" height={1} tileTemplate="tileTemplate" />`
20
+
3
21
  # G9StaticMap
4
22
 
5
23
  `import { G9StaticMap } from '@g9tm/lynxcontrols-map';`
@@ -11,9 +29,9 @@ Props:
11
29
  - `height`: number
12
30
  - `tileTemplate`: string
13
31
  - `onPinPress?`: (pin: G9MapPin) => void
32
+ - `fitPadding?`: number = 36
14
33
  - `center?`: object
15
34
  - `fit?`: boolean | G9LatLng[]
16
35
  - `pins?`: object[]
17
- - `shapes?`: object[]
18
36
 
19
37
  Example: `<G9StaticMap attribution="attribution" height={1} tileTemplate="tileTemplate" />`
@@ -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
 
@@ -22,14 +22,16 @@ Example: `<G9AppShell destinations={destinations} onChange={() => {}} value="val
22
22
 
23
23
  `import { G9ConnectionBanner } from '@g9tm/lynxcontrols/shell';`
24
24
 
25
- A slim line when the network is gone or coming back (G9Hub ConnectionBanner); a short «back online» then nothing.
25
+ A slim line when the network is gone, coming back, or slow (G9Hub ConnectionBanner); a short «back online» after it was gone, then nothing.
26
26
 
27
27
  Props:
28
28
  - `offlineText`: string
29
29
  - `reconnectingText`: string
30
- - `status`: 'online' | 'offline' | 'reconnecting'
30
+ - `status`: 'online' | 'offline' | 'reconnecting' | 'connecting' | 'poor'
31
31
  - `onRetry?`: () => void
32
32
  - `backOnlineText?`: string
33
+ - `connectingText?`: string = "reconnectingText"
34
+ - `poorText?`: string = "reconnectingText"
33
35
  - `retryText?`: string
34
36
 
35
37
  Example: `<G9ConnectionBanner offlineText="offlineText" reconnectingText="reconnectingText" status="online" />`
@@ -85,7 +87,7 @@ Example: `<G9TopBar />`
85
87
 
86
88
  `import { G9UpdateBar } from '@g9tm/lynxcontrols/shell';`
87
89
 
88
- «A new version is ready — restart» (SAC UpdatePrompt, live updates): a slim bar that slides down when shown.
90
+ «A new version is ready — restart» (SAC UpdatePrompt, live updates): a slim bar with the action and an optional dismissal.
89
91
 
90
92
  Props:
91
93
  - `actionText`: string
@@ -94,5 +96,6 @@ Props:
94
96
  - `text`: string
95
97
  - `onDismiss?`: () => void
96
98
  - `dismissText?`: string
99
+ - `placement?`: 'overlay' | 'inline'
97
100
 
98
101
  Example: `<G9UpdateBar actionText="actionText" onAction={() => {}} shown text="Label" />`
@@ -32,7 +32,7 @@ Props:
32
32
  - `disabled?`: boolean = false
33
33
  - `onPicked?`: (key: K) => void
34
34
  - `defaultValue?`: string[]
35
- - `max?`: number
35
+ - `layout?`: 'row' | 'cards'
36
36
 
37
37
  Example: `<G9ChoiceList options={options} />`
38
38
 
@@ -1,5 +1,23 @@
1
1
  # `@g9tm/lynxcontrols/tab-bar` (generated)
2
2
 
3
+ # G9FlatTabBar
4
+
5
+ `import { G9FlatTabBar } from '@g9tm/lynxcontrols/tab-bar';`
6
+
7
+ The flat style of `G9TabBar` (selected by `barStyle: 'flat'`).
8
+
9
+ Props:
10
+ - `items`: object[]
11
+ - `onCenterFloatingChange?`: (floating: boolean) => void
12
+ - `onFabOpenChange?`: (open: boolean) => void
13
+ - `onFabTapped?`: (args: G9TabBarFabTappedEventArgs) => void
14
+ - `onItemSelected?`: (args: G9TabBarClickContext) => void
15
+ - `onOverflowOpenChange?`: (open: boolean) => void
16
+ - `onSelectedIndexChange?`: (index: number) => void
17
+ - `overflowText?`: string
18
+
19
+ Example: `<G9FlatTabBar items={items} />`
20
+
3
21
  # G9TabBar
4
22
 
5
23
  `import { G9TabBar } from '@g9tm/lynxcontrols/tab-bar';`
@@ -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
 
@@ -120,9 +120,9 @@ Props:
120
120
  - `onChange?`: (value: number) => void
121
121
  - `disabled?`: boolean = false
122
122
  - `format?`: (value: number) => void
123
+ - `addLabel?`: string
123
124
  - `decreaseLabel?`: string
124
125
  - `increaseLabel?`: string
125
- - `valueLabel?`: string | (value: number) => void
126
126
 
127
127
  Example: `<G9Stepper />`
128
128
 
@@ -2,6 +2,14 @@
2
2
 
3
3
  > Sheets, popups, toasts and menus render in `G9Host`'s layers, outside your own root view: CSS variables your app
4
4
  > sets for its content belong on a view AROUND `G9Host`, or they are missing inside a sheet.
5
+ >
6
+ > **The same holds for React context.** A layer is a sibling of the page under `G9Host`, so a provider you mount
7
+ > INSIDE `G9Host` (around the page) does not reach a sheet's body: React's context hook there returns the default (SAC:
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: 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.
5
13
 
6
14
  ```tsx
7
15
  import { G9Host } from '@g9tm/lynxcontrols/host';