@g9tm/lynxcontrols 2.5.6 → 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.
- package/catalog/cards/G9AppBar.md +1 -1
- package/catalog/cards/G9CarryContexts.md +10 -0
- package/catalog/cards/G9CheckBox.md +1 -1
- package/catalog/cards/G9FormField.md +2 -2
- package/catalog/cards/G9ListRow.md +1 -1
- package/catalog/cards/G9RangeSlider.md +2 -2
- package/catalog/cards/G9Stepper.md +1 -1
- package/catalog/cards/G9SwitchRow.md +1 -1
- package/catalog/cards/G9UpdateBar.md +2 -1
- package/catalog/catalog.json +879 -42
- package/catalog/index.md +3 -2
- package/dist/.tsbuildinfo +1 -1
- package/dist/base/selection-item.d.ts +5 -0
- package/dist/base/selection-item.d.ts.map +1 -1
- package/dist/display/figures.d.ts.map +1 -1
- package/dist/display/figures.jsx +10 -2
- package/dist/display/status.d.ts +1 -1
- package/dist/display/status.d.ts.map +1 -1
- package/dist/display/status.jsx +15 -3
- package/dist/effects/effects.d.ts.map +1 -1
- package/dist/effects/effects.jsx +8 -1
- package/dist/fields/extra-entries.d.ts +2 -1
- package/dist/fields/extra-entries.d.ts.map +1 -1
- package/dist/fields/extra-entries.jsx +51 -17
- package/dist/fields/fields.css +21 -0
- package/dist/fields/fields.css.map +1 -1
- package/dist/fields/outlined-field.d.ts +9 -0
- package/dist/fields/outlined-field.d.ts.map +1 -1
- package/dist/fields/outlined-field.jsx +6 -1
- package/dist/fields/pin-entry.d.ts.map +1 -1
- package/dist/fields/pin-entry.jsx +36 -3
- package/dist/fields/text-entry.d.ts +4 -0
- package/dist/fields/text-entry.d.ts.map +1 -1
- package/dist/fields/text-entry.jsx +32 -25
- package/dist/fields/use-text-input.d.ts +3 -2
- package/dist/fields/use-text-input.d.ts.map +1 -1
- package/dist/fields/use-text-input.jsx +3 -0
- package/dist/header/app-bar.d.ts +6 -0
- package/dist/header/app-bar.d.ts.map +1 -1
- package/dist/header/app-bar.jsx +22 -8
- package/dist/header/header.css +12 -0
- package/dist/header/header.css.map +1 -1
- package/dist/host/bottom-overlays.d.ts +5 -0
- package/dist/host/bottom-overlays.d.ts.map +1 -1
- package/dist/host/bottom-overlays.jsx +17 -1
- package/dist/host/carry-contexts.d.ts +28 -0
- package/dist/host/carry-contexts.d.ts.map +1 -0
- package/dist/host/carry-contexts.jsx +62 -0
- package/dist/host/host.d.ts.map +1 -1
- package/dist/host/host.jsx +5 -1
- package/dist/host/index.d.ts +2 -0
- package/dist/host/index.d.ts.map +1 -1
- package/dist/host/index.jsx +2 -0
- package/dist/icon/icon.d.ts.map +1 -1
- package/dist/icon/icon.jsx +13 -9
- package/dist/layout/containers.d.ts.map +1 -1
- package/dist/layout/containers.jsx +2 -1
- package/dist/layout/layout.css +5 -0
- package/dist/layout/layout.css.map +1 -1
- package/dist/list/list.css +22 -0
- package/dist/list/list.css.map +1 -1
- package/dist/list/rows.d.ts +13 -1
- package/dist/list/rows.d.ts.map +1 -1
- package/dist/list/rows.jsx +39 -20
- package/dist/provider/direction-scope.d.ts +8 -0
- package/dist/provider/direction-scope.d.ts.map +1 -1
- package/dist/provider/direction-scope.jsx +13 -2
- package/dist/provider/index.d.ts +1 -1
- package/dist/provider/index.d.ts.map +1 -1
- package/dist/provider/provider.css +7 -0
- package/dist/provider/provider.css.map +1 -1
- package/dist/provider/settings.d.ts +14 -0
- package/dist/provider/settings.d.ts.map +1 -1
- package/dist/provider/settings.jsx +4 -1
- package/dist/range-slider/index.d.ts +1 -1
- package/dist/range-slider/index.d.ts.map +1 -1
- package/dist/range-slider/range-slider.css +69 -0
- package/dist/range-slider/range-slider.css.map +1 -1
- package/dist/range-slider/range-slider.d.ts +22 -0
- package/dist/range-slider/range-slider.d.ts.map +1 -1
- package/dist/range-slider/range-slider.jsx +34 -5
- package/dist/selection/selection-sheet.d.ts.map +1 -1
- package/dist/selection/selection-sheet.jsx +23 -10
- package/dist/selection/selection.css +16 -1
- package/dist/selection/selection.css.map +1 -1
- package/dist/shell/shell.css +6 -0
- package/dist/shell/shell.css.map +1 -1
- package/dist/shell/shell.d.ts +10 -1
- package/dist/shell/shell.d.ts.map +1 -1
- package/dist/shell/shell.jsx +6 -4
- package/dist/survey/survey.css +15 -0
- package/dist/survey/survey.css.map +1 -1
- package/dist/survey/survey.d.ts +6 -0
- package/dist/survey/survey.d.ts.map +1 -1
- package/dist/survey/survey.jsx +17 -2
- package/dist/tab-bar/flat.d.ts.map +1 -1
- package/dist/tab-bar/flat.jsx +49 -35
- package/dist/tab-bar/tab-bar.d.ts.map +1 -1
- package/dist/tab-bar/tab-bar.jsx +28 -6
- package/dist/tabs/tab-view.jsx +10 -3
- package/dist/tabs/tabs.css +5 -0
- package/dist/tabs/tabs.css.map +1 -1
- package/dist/toggle/checkbox.d.ts +5 -0
- package/dist/toggle/checkbox.d.ts.map +1 -1
- package/dist/toggle/checkbox.jsx +7 -2
- package/dist/toggle/choice.css +8 -0
- package/dist/toggle/choice.css.map +1 -1
- package/dist/toggle/choice.d.ts +9 -0
- package/dist/toggle/choice.d.ts.map +1 -1
- package/dist/toggle/choice.jsx +24 -14
- package/package.json +2 -2
- package/skills/g9-lynx-app/references/catalog-index.md +2 -2
- package/skills/g9-lynx-app/references/components/commerce.md +1 -1
- package/skills/g9-lynx-app/references/components/fields.md +2 -2
- package/skills/g9-lynx-app/references/components/header.md +1 -1
- package/skills/g9-lynx-app/references/components/host.md +11 -0
- package/skills/g9-lynx-app/references/components/list.md +2 -2
- package/skills/g9-lynx-app/references/components/map.md +19 -1
- package/skills/g9-lynx-app/references/components/range-slider.md +2 -2
- package/skills/g9-lynx-app/references/components/shell.md +2 -1
- package/skills/g9-lynx-app/references/components/toggle.md +2 -2
- package/skills/g9-lynx-app/references/provider-and-host.md +4 -3
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# G9CarryContexts
|
|
2
|
+
|
|
3
|
+
`import { G9CarryContexts } from '@g9tm/lynxcontrols/host';`
|
|
4
|
+
|
|
5
|
+
Carries React context into the nearest G9Host's layers: sheets, popups, toasts and menus then read `contexts` with their live values, though they render outside the page (SAC's tray sheet read «GuestContext missing» with
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `contexts`: object[]
|
|
9
|
+
|
|
10
|
+
Example: `<G9CarryContexts contexts={contexts} />`
|
|
@@ -11,7 +11,7 @@ Props:
|
|
|
11
11
|
- `disabled?`: boolean = false
|
|
12
12
|
- `onCheckedChange?`: (checked: boolean) => void
|
|
13
13
|
- `onIndeterminateChange?`: (indeterminate: boolean) => void
|
|
14
|
+
- `labelGap?`: number = 2
|
|
14
15
|
- `defaultChecked?`: boolean
|
|
15
|
-
- `defaultIndeterminate?`: boolean
|
|
16
16
|
|
|
17
17
|
Example: `<G9CheckBox text="I agree" checked={agree} onCheckedChange={setAgree} />`
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
A label above any control, a hint or an error below (SAC Field, G9Hub Field): for controls without a floating label.
|
|
6
6
|
|
|
7
7
|
Props:
|
|
8
|
-
- `label
|
|
8
|
+
- `label?`: string
|
|
9
9
|
- `children?`: ReactNode
|
|
10
10
|
- `hint?`: string
|
|
11
11
|
- `aside?`: ReactNode
|
|
12
12
|
- `error?`: string
|
|
13
13
|
- `required?`: boolean
|
|
14
14
|
|
|
15
|
-
Example: `<G9FormField
|
|
15
|
+
Example: `<G9FormField />`
|
|
@@ -12,6 +12,6 @@ Props:
|
|
|
12
12
|
- `onPress?`: () => void
|
|
13
13
|
- `disabled?`: boolean = false
|
|
14
14
|
- `iconTone?`: 'primary' | 'info' | 'success' | 'warning' | 'error' | 'accent' | 'neutral' = "neutral"
|
|
15
|
-
- `
|
|
15
|
+
- `pressFeedback?`: 'none' | 'tint' = "none"
|
|
16
16
|
|
|
17
17
|
Example: `<G9ListRow title="Label" />`
|
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
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
|
|
6
6
|
|
|
7
7
|
Props:
|
|
8
|
+
- `label?`: string
|
|
8
9
|
- `value?`: number
|
|
9
10
|
- `onValueChange?`: (value: number) => void
|
|
10
11
|
- `disabled?`: boolean
|
|
11
12
|
- `mode?`: 'single' | 'range' = "range"
|
|
13
|
+
- `formatValue?`: (value: number) => void
|
|
12
14
|
- `onRangeChange?`: (start: number, end: number) => void
|
|
13
15
|
- `onValueChanged?`: (value: number) => void
|
|
14
|
-
- `defaultValue?`: number
|
|
15
|
-
- `bands?`: object[]
|
|
16
16
|
|
|
17
17
|
Example: `<G9RangeSlider />`
|
|
@@ -10,8 +10,8 @@ Props:
|
|
|
10
10
|
- `onChange?`: (value: number) => void
|
|
11
11
|
- `disabled?`: boolean = false
|
|
12
12
|
- `format?`: (value: number) => void
|
|
13
|
+
- `addLabel?`: string
|
|
13
14
|
- `decreaseLabel?`: string
|
|
14
15
|
- `increaseLabel?`: string
|
|
15
|
-
- `removeLabel?`: string = "decreaseLabel"
|
|
16
16
|
|
|
17
17
|
Example: `<G9Stepper />`
|
|
@@ -12,6 +12,6 @@ Props:
|
|
|
12
12
|
- `subtitle?`: string
|
|
13
13
|
- `disabled?`: boolean = false
|
|
14
14
|
- `iconTone?`: 'primary' | 'info' | 'success' | 'warning' | 'error' | 'accent' | 'neutral' = "neutral"
|
|
15
|
-
- `
|
|
15
|
+
- `pressFeedback?`: 'none' | 'tint' = "none"
|
|
16
16
|
|
|
17
17
|
Example: `<G9SwitchRow checked onCheckedChange={() => {}} title="Label" />`
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
`import { G9UpdateBar } from '@g9tm/lynxcontrols/shell';`
|
|
4
4
|
|
|
5
|
-
«A new version is ready — restart» (SAC UpdatePrompt, live updates): a slim bar
|
|
5
|
+
«A new version is ready — restart» (SAC UpdatePrompt, live updates): a slim bar with the action and an optional dismissal.
|
|
6
6
|
|
|
7
7
|
Props:
|
|
8
8
|
- `actionText`: string
|
|
@@ -11,5 +11,6 @@ Props:
|
|
|
11
11
|
- `text`: string
|
|
12
12
|
- `onDismiss?`: () => void
|
|
13
13
|
- `dismissText?`: string
|
|
14
|
+
- `placement?`: 'overlay' | 'inline'
|
|
14
15
|
|
|
15
16
|
Example: `<G9UpdateBar actionText="actionText" onAction={() => {}} shown text="Label" />`
|