@g9tm/lynxcontrols 2.3.0 → 2.4.0
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/README.md +1 -0
- package/bin/g9lynx.mjs +103 -0
- package/bin/g9lynx.test.mjs +80 -0
- package/catalog/cards/DateTimeSheetBody.md +17 -0
- package/catalog/cards/G9ActionRow.md +11 -0
- package/catalog/cards/G9ActionSheet.md +14 -0
- package/catalog/cards/G9Activity.md +11 -0
- package/catalog/cards/G9ActivityIndicator.md +14 -0
- package/catalog/cards/G9AllocationInput.md +17 -0
- package/catalog/cards/G9Anchor.md +17 -0
- package/catalog/cards/G9AnimatedCheck.md +13 -0
- package/catalog/cards/G9AppBar.md +17 -0
- package/catalog/cards/G9AppShell.md +17 -0
- package/catalog/cards/G9Art.md +13 -0
- package/catalog/cards/G9Avatar.md +16 -0
- package/catalog/cards/G9Badge.md +15 -0
- package/catalog/cards/G9Bento.md +13 -0
- package/catalog/cards/G9Button.md +17 -0
- package/catalog/cards/G9CameFromMark.md +9 -0
- package/catalog/cards/G9Card.md +17 -0
- package/catalog/cards/G9CascadePanel.md +17 -0
- package/catalog/cards/G9CheckBox.md +17 -0
- package/catalog/cards/G9Chip.md +17 -0
- package/catalog/cards/G9ChipGroup.md +17 -0
- package/catalog/cards/G9ChoiceList.md +17 -0
- package/catalog/cards/G9Columns.md +13 -0
- package/catalog/cards/G9ComboBox.md +17 -0
- package/catalog/cards/G9CommandPalette.md +15 -0
- package/catalog/cards/G9Confetti.md +15 -0
- package/catalog/cards/G9ConnectionBanner.md +15 -0
- package/catalog/cards/G9ContextMenu.md +15 -0
- package/catalog/cards/G9CornerBadge.md +15 -0
- package/catalog/cards/G9CultureDateTimeLabel.md +16 -0
- package/catalog/cards/G9DateTimePicker.md +17 -0
- package/catalog/cards/G9DayStepper.md +17 -0
- package/catalog/cards/G9DeferredContent.md +17 -0
- package/catalog/cards/G9Delta.md +17 -0
- package/catalog/cards/G9DesignNode.md +13 -0
- package/catalog/cards/G9DesignScope.md +11 -0
- package/catalog/cards/G9DragList.md +15 -0
- package/catalog/cards/G9EdgePanel.md +17 -0
- package/catalog/cards/G9Editor.md +17 -0
- package/catalog/cards/G9EmptyState.md +17 -0
- package/catalog/cards/G9ErrorBoundary.md +13 -0
- package/catalog/cards/G9Expander.md +17 -0
- package/catalog/cards/G9FloatingOrb.md +17 -0
- package/catalog/cards/G9FormField.md +15 -0
- package/catalog/cards/G9HScroll.md +16 -0
- package/catalog/cards/G9HeaderActionButton.md +17 -0
- package/catalog/cards/G9HoldButton.md +17 -0
- package/catalog/cards/G9Host.md +17 -0
- package/catalog/cards/G9Icon.md +16 -0
- package/catalog/cards/G9IconButton.md +17 -0
- package/catalog/cards/G9IconRail.md +15 -0
- package/catalog/cards/G9IconSlot.md +17 -0
- package/catalog/cards/G9Image.md +17 -0
- package/catalog/cards/G9InlineMessage.md +16 -0
- package/catalog/cards/G9KeepAlive.md +11 -0
- package/catalog/cards/G9Keycap.md +13 -0
- package/catalog/cards/G9Kpi.md +17 -0
- package/catalog/cards/G9KpiGrid.md +12 -0
- package/catalog/cards/G9ListRow.md +17 -0
- package/catalog/cards/G9LiveBadge.md +11 -0
- package/catalog/cards/G9LiveDot.md +12 -0
- package/catalog/cards/G9LoadState.md +13 -0
- package/catalog/cards/G9LoadableSheetContent.md +17 -0
- package/catalog/cards/G9LockOverlay.md +15 -0
- package/catalog/cards/G9Menu.md +17 -0
- package/catalog/cards/G9MenuList.md +12 -0
- package/catalog/cards/G9NavCard.md +17 -0
- package/catalog/cards/G9NumPad.md +13 -0
- package/catalog/cards/G9NumberEntry.md +17 -0
- package/catalog/cards/G9OutlinedField.md +17 -0
- package/catalog/cards/G9OverlayRoot.md +12 -0
- package/catalog/cards/G9Page.md +17 -0
- package/catalog/cards/G9PageLoadingOverlay.md +12 -0
- package/catalog/cards/G9Pager.md +16 -0
- package/catalog/cards/G9Photo.md +17 -0
- package/catalog/cards/G9Picker.md +17 -0
- package/catalog/cards/G9PinEntry.md +17 -0
- package/catalog/cards/G9Place.md +17 -0
- package/catalog/cards/G9PlaceScroll.md +13 -0
- package/catalog/cards/G9PlusButton.md +17 -0
- package/catalog/cards/G9Popover.md +17 -0
- package/catalog/cards/G9PopupDragHandle.md +10 -0
- package/catalog/cards/G9PopupView.md +15 -0
- package/catalog/cards/G9Pressable.md +17 -0
- package/catalog/cards/G9ProcessingSheetContent.md +13 -0
- package/catalog/cards/G9ProgressBar.md +17 -0
- package/catalog/cards/G9ProgressRing.md +17 -0
- package/catalog/cards/G9Provider.md +17 -0
- package/catalog/cards/G9PullToRefresh.md +13 -0
- package/catalog/cards/G9RadioGroup.md +17 -0
- package/catalog/cards/G9RangeSlider.md +17 -0
- package/catalog/cards/G9RatingInput.md +17 -0
- package/catalog/cards/G9RevealText.md +15 -0
- package/catalog/cards/G9SafeButton.md +17 -0
- package/catalog/cards/G9SafeIconButton.md +17 -0
- package/catalog/cards/G9SaveBar.md +16 -0
- package/catalog/cards/G9ScaleInput.md +17 -0
- package/catalog/cards/G9ScrollSpyBar.md +12 -0
- package/catalog/cards/G9ScrollerScope.md +10 -0
- package/catalog/cards/G9SearchEntry.md +17 -0
- package/catalog/cards/G9Section.md +16 -0
- package/catalog/cards/G9SectionHeader.md +14 -0
- package/catalog/cards/G9Segmented.md +17 -0
- package/catalog/cards/G9Separator.md +17 -0
- package/catalog/cards/G9SettingsGroup.md +13 -0
- package/catalog/cards/G9Sheet.md +13 -0
- package/catalog/cards/G9SheetBackdropScope.md +10 -0
- package/catalog/cards/G9SheetFooter.md +10 -0
- package/catalog/cards/G9SheetFooterBar.md +11 -0
- package/catalog/cards/G9SheetFrame.md +17 -0
- package/catalog/cards/G9SheetHeader.md +11 -0
- package/catalog/cards/G9SheetScrollIndicator.md +10 -0
- package/catalog/cards/G9SheetScrollRegion.md +11 -0
- package/catalog/cards/G9SheetSkeleton.md +13 -0
- package/catalog/cards/G9ShimmerBand.md +10 -0
- package/catalog/cards/G9ShortcutList.md +11 -0
- package/catalog/cards/G9ShortcutsSheet.md +15 -0
- package/catalog/cards/G9SideNav.md +16 -0
- package/catalog/cards/G9Skeleton.md +13 -0
- package/catalog/cards/G9SkeletonPage.md +13 -0
- package/catalog/cards/G9SkeletonRows.md +13 -0
- package/catalog/cards/G9SplitPane.md +17 -0
- package/catalog/cards/G9StatusPill.md +17 -0
- package/catalog/cards/G9StepSlider.md +16 -0
- package/catalog/cards/G9StepTracker.md +13 -0
- package/catalog/cards/G9Stepper.md +17 -0
- package/catalog/cards/G9SuccessHeader.md +14 -0
- package/catalog/cards/G9Swatch.md +13 -0
- package/catalog/cards/G9SwipeGroup.md +11 -0
- package/catalog/cards/G9SwipeView.md +17 -0
- package/catalog/cards/G9Switch.md +17 -0
- package/catalog/cards/G9SwitchGroup.md +15 -0
- package/catalog/cards/G9SwitchRow.md +17 -0
- package/catalog/cards/G9TabBar.md +17 -0
- package/catalog/cards/G9TabView.md +17 -0
- package/catalog/cards/G9Tag.md +14 -0
- package/catalog/cards/G9TagEntry.md +16 -0
- package/catalog/cards/G9TextEntry.md +17 -0
- package/catalog/cards/G9ThemePreviewCard.md +15 -0
- package/catalog/cards/G9TimeEntry.md +17 -0
- package/catalog/cards/G9TimeSpanPicker.md +17 -0
- package/catalog/cards/G9TitleWithLine.md +13 -0
- package/catalog/cards/G9TopBar.md +13 -0
- package/catalog/cards/G9UnsavedBar.md +16 -0
- package/catalog/cards/G9UpdateBar.md +15 -0
- package/catalog/cards/G9VerticalIconTextButton.md +15 -0
- package/catalog/cards/G9VirtualList.md +17 -0
- package/catalog/cards/G9Wave.md +15 -0
- package/catalog/cards/G9WheelColumn.md +17 -0
- package/catalog/cards/PickerField.md +14 -0
- package/catalog/cards/PickerSheetHeader.md +12 -0
- package/catalog/cards/PopupFrame.md +15 -0
- package/catalog/cards/PopupInputForm.md +11 -0
- package/catalog/cards/SelectionValueIcon.md +12 -0
- package/catalog/cards/TimeSpanSheetBody.md +16 -0
- package/catalog/catalog.json +47916 -0
- package/catalog/index.md +159 -0
- package/dist/.tsbuildinfo +1 -1
- package/dist/anchor/index.d.ts +1 -1
- package/dist/anchor/index.d.ts.map +1 -1
- package/dist/anchor/registry.d.ts +5 -0
- package/dist/anchor/registry.d.ts.map +1 -1
- package/dist/base/base.css +1 -0
- package/dist/base/base.css.map +1 -1
- package/dist/button/button-variants.css +4 -0
- package/dist/button/button-variants.css.map +1 -1
- package/dist/button/button.css +12 -5
- package/dist/button/button.css.map +1 -1
- package/dist/button/variant-css.d.ts.map +1 -1
- package/dist/button/variant-css.jsx +2 -1
- package/dist/cascade/cascade.css +2 -1
- package/dist/cascade/cascade.css.map +1 -1
- package/dist/commands/commands.css +12 -6
- package/dist/commands/commands.css.map +1 -1
- package/dist/design/design.d.ts +39 -0
- package/dist/design/design.d.ts.map +1 -0
- package/dist/design/design.jsx +54 -0
- package/dist/design/index.d.ts +3 -0
- package/dist/design/index.d.ts.map +1 -0
- package/dist/design/index.jsx +2 -0
- package/dist/design/probe.d.ts +62 -0
- package/dist/design/probe.d.ts.map +1 -0
- package/dist/design/probe.jsx +141 -0
- package/dist/display/data-uri.d.ts +9 -0
- package/dist/display/data-uri.d.ts.map +1 -0
- package/dist/display/data-uri.jsx +56 -0
- package/dist/display/display.css +10 -3
- package/dist/display/display.css.map +1 -1
- package/dist/display/extras.css +8 -2
- package/dist/display/extras.css.map +1 -1
- package/dist/display/figures.css +28 -7
- package/dist/display/figures.css.map +1 -1
- package/dist/display/figures.d.ts +10 -0
- package/dist/display/figures.d.ts.map +1 -1
- package/dist/display/figures.jsx +28 -5
- package/dist/display/image.d.ts +9 -2
- package/dist/display/image.d.ts.map +1 -1
- package/dist/display/image.jsx +20 -6
- package/dist/display/keycap.css +1 -0
- package/dist/display/keycap.css.map +1 -1
- package/dist/display/motion-figures.css +4 -1
- package/dist/display/motion-figures.css.map +1 -1
- package/dist/display/separator.d.ts.map +1 -1
- package/dist/display/separator.jsx +1 -1
- package/dist/display/status.css +5 -0
- package/dist/display/status.css.map +1 -1
- package/dist/display/theme-preview.css +6 -3
- package/dist/display/theme-preview.css.map +1 -1
- package/dist/edge-panel/edge-panel.css +6 -3
- package/dist/edge-panel/edge-panel.css.map +1 -1
- package/dist/effects/effects.css +4 -2
- package/dist/effects/effects.css.map +1 -1
- package/dist/expander/expander.css +2 -1
- package/dist/expander/expander.css.map +1 -1
- package/dist/fields/extra-entries.css +14 -6
- package/dist/fields/extra-entries.css.map +1 -1
- package/dist/fields/fields.css +21 -10
- package/dist/fields/fields.css.map +1 -1
- package/dist/fields/text-entry.d.ts.map +1 -1
- package/dist/fields/text-entry.jsx +3 -0
- package/dist/guide/guide.css +17 -5
- package/dist/guide/guide.css.map +1 -1
- package/dist/header/header.css +6 -2
- package/dist/header/header.css.map +1 -1
- package/dist/icon/icon.d.ts +9 -2
- package/dist/icon/icon.d.ts.map +1 -1
- package/dist/icon/icon.jsx +26 -4
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/layout/layout.css +15 -5
- package/dist/layout/layout.css.map +1 -1
- package/dist/layout/scrollers.d.ts +6 -0
- package/dist/layout/scrollers.d.ts.map +1 -1
- package/dist/layout/scrollers.jsx +5 -1
- package/dist/list/list.css +18 -8
- package/dist/list/list.css.map +1 -1
- package/dist/orb/orb.css +2 -1
- package/dist/orb/orb.css.map +1 -1
- package/dist/pickers/day-stepper.css +2 -1
- package/dist/pickers/day-stepper.css.map +1 -1
- package/dist/pickers/pickers.css +19 -9
- package/dist/pickers/pickers.css.map +1 -1
- package/dist/plus-button/plus-button.css +2 -1
- package/dist/plus-button/plus-button.css.map +1 -1
- package/dist/popover/popover.css +9 -4
- package/dist/popover/popover.css.map +1 -1
- package/dist/popup/popup.css +11 -5
- package/dist/popup/popup.css.map +1 -1
- package/dist/popup/service.d.ts.map +1 -1
- package/dist/popup/service.jsx +5 -1
- package/dist/provider/index.d.ts +1 -1
- package/dist/provider/index.d.ts.map +1 -1
- package/dist/provider/provider.css.map +1 -1
- package/dist/provider/provider.d.ts +25 -1
- package/dist/provider/provider.d.ts.map +1 -1
- package/dist/provider/provider.jsx +48 -12
- package/dist/range-slider/range-slider.css +9 -4
- package/dist/range-slider/range-slider.css.map +1 -1
- package/dist/selection/selection.css +10 -5
- package/dist/selection/selection.css.map +1 -1
- package/dist/sheet/frame.d.ts +6 -0
- package/dist/sheet/frame.d.ts.map +1 -1
- package/dist/sheet/frame.jsx +5 -1
- package/dist/sheet/header.d.ts.map +1 -1
- package/dist/sheet/header.jsx +5 -2
- package/dist/sheet/service.d.ts +5 -0
- package/dist/sheet/service.d.ts.map +1 -1
- package/dist/sheet/service.jsx +9 -6
- package/dist/sheet/sheet.css +1 -0
- package/dist/sheet/sheet.css.map +1 -1
- package/dist/shell/shell.css +19 -8
- package/dist/shell/shell.css.map +1 -1
- package/dist/survey/survey.css +15 -7
- package/dist/survey/survey.css.map +1 -1
- package/dist/swipe/swipe.css +1 -0
- package/dist/swipe/swipe.css.map +1 -1
- package/dist/tab-bar/index.d.ts +1 -1
- package/dist/tab-bar/index.d.ts.map +1 -1
- package/dist/tab-bar/index.jsx +1 -1
- package/dist/tab-bar/model.d.ts +14 -0
- package/dist/tab-bar/model.d.ts.map +1 -1
- package/dist/tab-bar/model.jsx +19 -1
- package/dist/tab-bar/tab-bar.css +4 -1
- package/dist/tab-bar/tab-bar.css.map +1 -1
- package/dist/tab-bar/tab-bar.d.ts.map +1 -1
- package/dist/tab-bar/tab-bar.jsx +12 -8
- package/dist/tabs/tabs.css +3 -1
- package/dist/tabs/tabs.css.map +1 -1
- package/dist/toast/toast.css +9 -4
- package/dist/toast/toast.css.map +1 -1
- package/dist/toggle/choice.css +15 -6
- package/dist/toggle/choice.css.map +1 -1
- package/dist/toggle/toggle.css +12 -6
- package/dist/toggle/toggle.css.map +1 -1
- package/package.json +16 -4
- package/skills/g9-lynx-app/SKILL.md +42 -0
- package/skills/g9-lynx-app/references/adaptive-layout.md +10 -0
- package/skills/g9-lynx-app/references/anchors-guide.md +9 -0
- package/skills/g9-lynx-app/references/catalog-index.md +80 -0
- package/skills/g9-lynx-app/references/common-mistakes.md +12 -0
- package/skills/g9-lynx-app/references/components/anchor.md +30 -0
- package/skills/g9-lynx-app/references/components/barcode-qr.md +19 -0
- package/skills/g9-lynx-app/references/components/barcode.md +37 -0
- package/skills/g9-lynx-app/references/components/base.md +35 -0
- package/skills/g9-lynx-app/references/components/button.md +125 -0
- package/skills/g9-lynx-app/references/components/calendar.md +128 -0
- package/skills/g9-lynx-app/references/components/cascade.md +19 -0
- package/skills/g9-lynx-app/references/components/charts.md +193 -0
- package/skills/g9-lynx-app/references/components/chat.md +98 -0
- package/skills/g9-lynx-app/references/components/commands.md +45 -0
- package/skills/g9-lynx-app/references/components/commerce.md +69 -0
- package/skills/g9-lynx-app/references/components/datagrid.md +19 -0
- package/skills/g9-lynx-app/references/components/deferred.md +19 -0
- package/skills/g9-lynx-app/references/components/design.md +27 -0
- package/skills/g9-lynx-app/references/components/display-1.md +193 -0
- package/skills/g9-lynx-app/references/components/display-2.md +196 -0
- package/skills/g9-lynx-app/references/components/display-3.md +122 -0
- package/skills/g9-lynx-app/references/components/edge-panel.md +19 -0
- package/skills/g9-lynx-app/references/components/effects.md +46 -0
- package/skills/g9-lynx-app/references/components/expander.md +19 -0
- package/skills/g9-lynx-app/references/components/fields.md +174 -0
- package/skills/g9-lynx-app/references/components/header.md +19 -0
- package/skills/g9-lynx-app/references/components/host.md +32 -0
- package/skills/g9-lynx-app/references/components/icon.md +64 -0
- package/skills/g9-lynx-app/references/components/intro-carousel.md +19 -0
- package/skills/g9-lynx-app/references/components/layout-1.md +188 -0
- package/skills/g9-lynx-app/references/components/layout-2.md +18 -0
- package/skills/g9-lynx-app/references/components/list.md +116 -0
- package/skills/g9-lynx-app/references/components/map.md +19 -0
- package/skills/g9-lynx-app/references/components/media.md +115 -0
- package/skills/g9-lynx-app/references/components/orb.md +37 -0
- package/skills/g9-lynx-app/references/components/pickers.md +185 -0
- package/skills/g9-lynx-app/references/components/pilot.md +40 -0
- package/skills/g9-lynx-app/references/components/plus-button.md +19 -0
- package/skills/g9-lynx-app/references/components/popover.md +94 -0
- package/skills/g9-lynx-app/references/components/popup.md +56 -0
- package/skills/g9-lynx-app/references/components/provider.md +43 -0
- package/skills/g9-lynx-app/references/components/range-slider.md +36 -0
- package/skills/g9-lynx-app/references/components/route.md +19 -0
- package/skills/g9-lynx-app/references/components/sheet.md +134 -0
- package/skills/g9-lynx-app/references/components/shell.md +98 -0
- package/skills/g9-lynx-app/references/components/survey.md +55 -0
- package/skills/g9-lynx-app/references/components/swipe.md +31 -0
- package/skills/g9-lynx-app/references/components/tab-bar.md +19 -0
- package/skills/g9-lynx-app/references/components/tabs.md +19 -0
- package/skills/g9-lynx-app/references/components/toggle.md +161 -0
- package/skills/g9-lynx-app/references/lists.md +13 -0
- package/skills/g9-lynx-app/references/localization-rtl.md +13 -0
- package/skills/g9-lynx-app/references/navigation-route.md +21 -0
- package/skills/g9-lynx-app/references/overlays.md +27 -0
- package/skills/g9-lynx-app/references/pilot.md +10 -0
- package/skills/g9-lynx-app/references/platform-rules.md +42 -0
- package/skills/g9-lynx-app/references/provider-and-host.md +37 -0
- package/skills/g9-lynx-app/references/theming.md +18 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols-pilot` (generated)
|
|
2
|
+
|
|
3
|
+
# G9PilotHost
|
|
4
|
+
|
|
5
|
+
`import { G9PilotHost } from '@g9tm/lynxcontrols-pilot';`
|
|
6
|
+
|
|
7
|
+
Renders its children: this build carries no G9AppPilot.
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `children?`: ReactNode
|
|
11
|
+
- `askConsent?`: (request: { readonly kid: string; readonly reading: boolean; readonly reason?: string; }) => void
|
|
12
|
+
- `commands?`: (api: G9PilotApi) => void
|
|
13
|
+
- `onReport?`: (report: G9PilotReport) => void
|
|
14
|
+
- `badgeLabel?`: string
|
|
15
|
+
- `bottomBarPrefix?`: string
|
|
16
|
+
- `notes?`: string[]
|
|
17
|
+
|
|
18
|
+
Example: `<G9PilotHost />`
|
|
19
|
+
|
|
20
|
+
# G9PilotMask
|
|
21
|
+
|
|
22
|
+
`import { G9PilotMask } from '@g9tm/lynxcontrols-pilot';`
|
|
23
|
+
|
|
24
|
+
The masked box, as a plain box: this build takes no screenshots.
|
|
25
|
+
|
|
26
|
+
Props:
|
|
27
|
+
- `children?`: ReactNode
|
|
28
|
+
|
|
29
|
+
Example: `<G9PilotMask />`
|
|
30
|
+
|
|
31
|
+
# G9PilotPanel
|
|
32
|
+
|
|
33
|
+
`import { G9PilotPanel } from '@g9tm/lynxcontrols-pilot';`
|
|
34
|
+
|
|
35
|
+
Nothing: this build carries no watch to show.
|
|
36
|
+
|
|
37
|
+
Props:
|
|
38
|
+
- `findings?`: number
|
|
39
|
+
|
|
40
|
+
Example: `<G9PilotPanel />`
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols/plus-button` (generated)
|
|
2
|
+
|
|
3
|
+
# G9PlusButton
|
|
4
|
+
|
|
5
|
+
`import { G9PlusButton } from '@g9tm/lynxcontrols/plus-button';`
|
|
6
|
+
|
|
7
|
+
A round add button that unfolds a column of labelled actions (MAUI `G9PlusButton`): the button shrinks and its plus turns into a ×, then each item slides up, grows its label pill and fades its label in, staggered; collap
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `items`: object[]
|
|
11
|
+
- `onExpandedChange?`: (expanded: boolean) => void
|
|
12
|
+
- `textBorderTargetWidth?`: number
|
|
13
|
+
- `expanded?`: boolean
|
|
14
|
+
- `controller?`: object
|
|
15
|
+
- `defaultExpanded?`: boolean
|
|
16
|
+
- `itemsStartDelayMs?`: number
|
|
17
|
+
- `itemStaggerMs?`: number
|
|
18
|
+
|
|
19
|
+
Example: `<G9PlusButton items={items} />`
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols/popover` (generated)
|
|
2
|
+
|
|
3
|
+
# G9ActionSheet
|
|
4
|
+
|
|
5
|
+
`import { G9ActionSheet } from '@g9tm/lynxcontrols/popover';`
|
|
6
|
+
|
|
7
|
+
A light bottom panel for a short list of actions (the phone form of a menu).
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `onClose`: () => void
|
|
11
|
+
- `open`: boolean
|
|
12
|
+
- `title?`: string
|
|
13
|
+
- `children?`: ReactNode
|
|
14
|
+
- `cancelText?`: string
|
|
15
|
+
|
|
16
|
+
Example: `<G9ActionSheet onClose={() => {}} open />`
|
|
17
|
+
|
|
18
|
+
# G9ContextMenu
|
|
19
|
+
|
|
20
|
+
`import { G9ContextMenu } from '@g9tm/lynxcontrols/popover';`
|
|
21
|
+
|
|
22
|
+
A long-press menu on its child (G9Hub ContextMenu, a message, a row): a light haptic, then the menu by the child.
|
|
23
|
+
|
|
24
|
+
Props:
|
|
25
|
+
- `items`: object[]
|
|
26
|
+
- `onSelect`: (key: string) => void
|
|
27
|
+
- `title?`: string
|
|
28
|
+
- `children?`: ReactNode
|
|
29
|
+
- `disabled?`: boolean
|
|
30
|
+
- `onOpen?`: () => void
|
|
31
|
+
|
|
32
|
+
Example: `<G9ContextMenu items={items} onSelect={() => {}} />`
|
|
33
|
+
|
|
34
|
+
# G9Menu
|
|
35
|
+
|
|
36
|
+
`import { G9Menu } from '@g9tm/lynxcontrols/popover';`
|
|
37
|
+
|
|
38
|
+
A menu (G9Hub Menu): a popover by the anchor on wide windows, an action sheet from the bottom on phones.
|
|
39
|
+
|
|
40
|
+
Props:
|
|
41
|
+
- `items`: object[]
|
|
42
|
+
- `onClose`: () => void
|
|
43
|
+
- `onSelect`: (key: string) => void
|
|
44
|
+
- `open`: boolean
|
|
45
|
+
- `title?`: string
|
|
46
|
+
- `placement?`: 'end' | 'start' | 'top' | 'bottom' | 'bottom-start' | 'bottom-end' | 'top-start' | 'top-end' = "bottom-start"
|
|
47
|
+
- `cancelText?`: string
|
|
48
|
+
- `matchWidth?`: boolean
|
|
49
|
+
|
|
50
|
+
Example: `<G9Menu items={items} onClose={() => {}} onSelect={() => {}} open />`
|
|
51
|
+
|
|
52
|
+
# G9MenuList
|
|
53
|
+
|
|
54
|
+
`import { G9MenuList } from '@g9tm/lynxcontrols/popover';`
|
|
55
|
+
|
|
56
|
+
The entries of a menu (G9Hub MenuList): icon, label, shortcut, check; destructive entries in red.
|
|
57
|
+
|
|
58
|
+
Props:
|
|
59
|
+
- `items`: object[]
|
|
60
|
+
- `onSelect`: (key: string) => void
|
|
61
|
+
- `density?`: 'sheet' | 'popover'
|
|
62
|
+
|
|
63
|
+
Example: `<G9MenuList items={items} onSelect={() => {}} />`
|
|
64
|
+
|
|
65
|
+
# G9OverlayRoot
|
|
66
|
+
|
|
67
|
+
`import { G9OverlayRoot } from '@g9tm/lynxcontrols/popover';`
|
|
68
|
+
|
|
69
|
+
An overlay's root view that is also an anchor when it has an id: rendered INSIDE the overlay's layer element, so the anchor reports the popups layer (automation finds a menu, an action sheet or the palette by its id and
|
|
70
|
+
|
|
71
|
+
Props:
|
|
72
|
+
- `attrs`: object
|
|
73
|
+
- `label?`: string
|
|
74
|
+
- `children?`: ReactNode
|
|
75
|
+
|
|
76
|
+
Example: `<G9OverlayRoot attrs={attrs} />`
|
|
77
|
+
|
|
78
|
+
# G9Popover
|
|
79
|
+
|
|
80
|
+
`import { G9Popover } from '@g9tm/lynxcontrols/popover';`
|
|
81
|
+
|
|
82
|
+
A panel anchored to a control (G9Hub Popover): drawn in the host's popup layer above everything, measured first and shown only once placed (no jump), flipped and clamped into the window, closed by a tap outside or Back.
|
|
83
|
+
|
|
84
|
+
Props:
|
|
85
|
+
- `onClose`: () => void
|
|
86
|
+
- `open`: boolean
|
|
87
|
+
- `children?`: ReactNode
|
|
88
|
+
- `placement?`: 'end' | 'start' | 'top' | 'bottom' | 'bottom-start' | 'bottom-end' | 'top-start' | 'top-end' = "bottom-start"
|
|
89
|
+
- `matchWidth?`: boolean
|
|
90
|
+
- `anchorId?`: string
|
|
91
|
+
- `anchorNode?`: object
|
|
92
|
+
- `anchorRect?`: object
|
|
93
|
+
|
|
94
|
+
Example: `<G9Popover onClose={() => {}} open />`
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols/popup` (generated)
|
|
2
|
+
|
|
3
|
+
# G9PopupDragHandle
|
|
4
|
+
|
|
5
|
+
`import { G9PopupDragHandle } from '@g9tm/lynxcontrols/popup';`
|
|
6
|
+
|
|
7
|
+
The grip of a draggable popup (MAUI `DragHandle`): put the header inside it so taps in the body keep working.
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `children?`: ReactNode
|
|
11
|
+
|
|
12
|
+
Example: `<G9PopupDragHandle />`
|
|
13
|
+
|
|
14
|
+
# G9PopupView
|
|
15
|
+
|
|
16
|
+
`import { G9PopupView } from '@g9tm/lynxcontrols/popup';`
|
|
17
|
+
|
|
18
|
+
A popup card you place yourself (MAUI `G9PopupView` hosted in your own layout): the same scrim, card, motions, placement and drag as the queued popups, but outside the queue: for floating tools (non-modal `overlayMode: '
|
|
19
|
+
|
|
20
|
+
Props:
|
|
21
|
+
- `open`: boolean
|
|
22
|
+
- `children?`: ReactNode
|
|
23
|
+
- `onBackgroundTap?`: () => void
|
|
24
|
+
- `onClosed?`: () => void
|
|
25
|
+
- `onOpenChange?`: (open: boolean) => void
|
|
26
|
+
- `options?`: object
|
|
27
|
+
|
|
28
|
+
Example: `<G9PopupView open />`
|
|
29
|
+
|
|
30
|
+
# PopupFrame
|
|
31
|
+
|
|
32
|
+
`import { PopupFrame } from '@g9tm/lynxcontrols/popup';`
|
|
33
|
+
|
|
34
|
+
Scrim + card (MAUI `G9PopupView` visuals): the scrim fades on its own (also when the card has no motion); the card runs one compound transition (opacity with transform) between its pose and identity; no shadow, the strok
|
|
35
|
+
|
|
36
|
+
Props:
|
|
37
|
+
- `hostWidth`: number
|
|
38
|
+
- `options`: object
|
|
39
|
+
- `phase`: 'open' | 'enter' | 'leave'
|
|
40
|
+
- `children?`: ReactNode
|
|
41
|
+
- `onBackgroundTap?`: () => void
|
|
42
|
+
- `testId?`: string
|
|
43
|
+
|
|
44
|
+
Example: `<PopupFrame hostWidth={1} options={options} phase="open" />`
|
|
45
|
+
|
|
46
|
+
# PopupInputForm
|
|
47
|
+
|
|
48
|
+
`import { PopupInputForm } from '@g9tm/lynxcontrols/popup';`
|
|
49
|
+
|
|
50
|
+
The input popup's form (MAUI `ShowInputG9PopupAsync` form view): a `G9TextEntry` per text field (keyboard and direction from the field), a `G9Editor` for multiline/text-area, a `G9CheckBox` per check-box option and radio
|
|
51
|
+
|
|
52
|
+
Props:
|
|
53
|
+
- `focusFirst`: boolean
|
|
54
|
+
- `store`: object
|
|
55
|
+
|
|
56
|
+
Example: `<PopupInputForm focusFirst store={store} />`
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols/provider` (generated)
|
|
2
|
+
|
|
3
|
+
# G9Activity
|
|
4
|
+
|
|
5
|
+
`import { G9Activity } from '@g9tm/lynxcontrols/provider';`
|
|
6
|
+
|
|
7
|
+
Marks a kept-mounted region as shown or hidden (nested regions are hidden when any ancestor is).
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `mode`: 'visible' | 'hidden'
|
|
11
|
+
- `children?`: ReactNode
|
|
12
|
+
|
|
13
|
+
Example: `<G9Activity mode="visible" />`
|
|
14
|
+
|
|
15
|
+
# G9KeepAlive
|
|
16
|
+
|
|
17
|
+
`import { G9KeepAlive } from '@g9tm/lynxcontrols/provider';`
|
|
18
|
+
|
|
19
|
+
A region kept mounted while hidden (the pages of a shell, the screens of a stack): state, scroll position and loaded data survive, switching back costs a style change.
|
|
20
|
+
|
|
21
|
+
Props:
|
|
22
|
+
- `active`: boolean
|
|
23
|
+
- `children?`: ReactNode
|
|
24
|
+
|
|
25
|
+
Example: `<G9KeepAlive active />`
|
|
26
|
+
|
|
27
|
+
# G9Provider
|
|
28
|
+
|
|
29
|
+
`import { G9Provider } from '@g9tm/lynxcontrols/provider';`
|
|
30
|
+
|
|
31
|
+
The root every G9 component lives in (plan/specs/01 §5, MAUI `G9Theme`/`G9Culture`/`G9Strings` statics, `G9ServiceProvider`, `G9ScreenHelper`, `G9KeyboardHelper`): culture and strings, the theme as CSS variables on one r
|
|
32
|
+
|
|
33
|
+
Props:
|
|
34
|
+
- `services`: object
|
|
35
|
+
- `children?`: ReactNode
|
|
36
|
+
- `shape?`: object
|
|
37
|
+
- `breakpoints?`: object
|
|
38
|
+
- `culture?`: string | object | object = "en"
|
|
39
|
+
- `diagnostics?`: object
|
|
40
|
+
- `persistTheme?`: boolean = true
|
|
41
|
+
- `preview?`: object
|
|
42
|
+
|
|
43
|
+
Example: `<G9Provider services={services} />`
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols/range-slider` (generated)
|
|
2
|
+
|
|
3
|
+
# G9RangeSlider
|
|
4
|
+
|
|
5
|
+
`import { G9RangeSlider } from '@g9tm/lynxcontrols/range-slider';`
|
|
6
|
+
|
|
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
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `value?`: number
|
|
11
|
+
- `onValueChange?`: (value: number) => void
|
|
12
|
+
- `disabled?`: boolean
|
|
13
|
+
- `mode?`: 'single' | 'range' = "range"
|
|
14
|
+
- `onRangeChange?`: (start: number, end: number) => void
|
|
15
|
+
- `onValueChanged?`: (value: number) => void
|
|
16
|
+
- `defaultValue?`: number
|
|
17
|
+
- `bands?`: object[]
|
|
18
|
+
|
|
19
|
+
Example: `<G9RangeSlider />`
|
|
20
|
+
|
|
21
|
+
# G9StepSlider
|
|
22
|
+
|
|
23
|
+
`import { G9StepSlider } from '@g9tm/lynxcontrols/range-slider';`
|
|
24
|
+
|
|
25
|
+
Discrete steps as dots in a row (G9RangeSlider for a continuous value).
|
|
26
|
+
|
|
27
|
+
Props:
|
|
28
|
+
- `max`: number
|
|
29
|
+
- `value?`: number
|
|
30
|
+
- `onValueChange?`: (value: number) => void
|
|
31
|
+
- `disabled?`: boolean = false
|
|
32
|
+
- `defaultValue?`: number
|
|
33
|
+
- `labels?`: string[]
|
|
34
|
+
- `accessibilityLabel?`: string
|
|
35
|
+
|
|
36
|
+
Example: `<G9StepSlider max={1} />`
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols/route` (generated)
|
|
2
|
+
|
|
3
|
+
# G9Place
|
|
4
|
+
|
|
5
|
+
`import { G9Place } from '@g9tm/lynxcontrols/route';`
|
|
6
|
+
|
|
7
|
+
Declares a place around its children (renders no element).
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `layer`: 'root' | 'page' | 'mode' | 'inner' | 'sheet' | 'popup'
|
|
11
|
+
- `segment`: string | object | () => void
|
|
12
|
+
- `title?`: () => void
|
|
13
|
+
- `children?`: ReactNode
|
|
14
|
+
- `applyView?`: (view: Readonly<Record<string, string>>) => void
|
|
15
|
+
- `canLeave?`: () => void
|
|
16
|
+
- `close?`: () => void
|
|
17
|
+
- `describeChanges?`: () => void
|
|
18
|
+
|
|
19
|
+
Example: `<G9Place layer="root" segment={segment} />`
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols/sheet` (generated)
|
|
2
|
+
|
|
3
|
+
# G9LoadableSheetContent
|
|
4
|
+
|
|
5
|
+
`import { G9LoadableSheetContent } from '@g9tm/lynxcontrols/sheet';`
|
|
6
|
+
|
|
7
|
+
Open-then-fill sheet body (MAUI `LoadableSheetContentView`): shows a loading state that fills the sheet's seeded height, loads once after the open motion (or at once with `loadWhileStaged`), cancels on close, and never a
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `children`: (data) => ReactNode
|
|
11
|
+
- `load`: (signal: G9AbortSignal) => void
|
|
12
|
+
- `skeleton?`: 'none' | 'formFields' | 'listRows' = "none"
|
|
13
|
+
- `onLoadFailed?`: (error: unknown) => void
|
|
14
|
+
- `onLoadingChange?`: (loading: boolean) => void
|
|
15
|
+
- `loadingHeight?`: number = 180
|
|
16
|
+
- `renderEmpty?`: () => ReactNode
|
|
17
|
+
- `renderError?`: (error) => ReactNode
|
|
18
|
+
|
|
19
|
+
Example: `<G9LoadableSheetContent children={children} load={load} />`
|
|
20
|
+
|
|
21
|
+
# G9ProcessingSheetContent
|
|
22
|
+
|
|
23
|
+
`import { G9ProcessingSheetContent } from '@g9tm/lynxcontrols/sheet';`
|
|
24
|
+
|
|
25
|
+
The body of a processing sheet (MAUI `ProcessingSheetContentView`): a 42 px spinner in a `loadingHeight` box, then the built body swapped in at once.
|
|
26
|
+
|
|
27
|
+
Props:
|
|
28
|
+
- `build`: (handle, signal) => ReactNode
|
|
29
|
+
- `handle?`: () => void
|
|
30
|
+
- `onError?`: (error: unknown, handle: G9SheetHandle) => void
|
|
31
|
+
- `loadingHeight?`: number = 160
|
|
32
|
+
|
|
33
|
+
Example: `<G9ProcessingSheetContent build={build} />`
|
|
34
|
+
|
|
35
|
+
# G9Sheet
|
|
36
|
+
|
|
37
|
+
`import { G9Sheet } from '@g9tm/lynxcontrols/sheet';`
|
|
38
|
+
|
|
39
|
+
Declarative sheet (the `G9Sheet` adapter): mounts the children as a sheet of the nearest host while `open`, keeps them live (re-renders update the sheet in place), and reports closes the sheet made itself through `onOpen
|
|
40
|
+
|
|
41
|
+
Props:
|
|
42
|
+
- `open`: boolean
|
|
43
|
+
- `children?`: ReactNode
|
|
44
|
+
- `onOpenChange?`: (open: boolean, reason: G9SheetCloseReason) => void
|
|
45
|
+
- `options?`: object
|
|
46
|
+
|
|
47
|
+
Example: `<G9Sheet open />`
|
|
48
|
+
|
|
49
|
+
# G9SheetBackdropScope
|
|
50
|
+
|
|
51
|
+
`import { G9SheetBackdropScope } from '@g9tm/lynxcontrols/sheet';`
|
|
52
|
+
|
|
53
|
+
Wrap the page region that should recede behind an open sheet (the settings' `backdropCardMode` decides when): scaled back, moved down and rounded, over the backdrop colour.
|
|
54
|
+
|
|
55
|
+
Props:
|
|
56
|
+
- `children?`: ReactNode
|
|
57
|
+
|
|
58
|
+
Example: `<G9SheetBackdropScope />`
|
|
59
|
+
|
|
60
|
+
# G9SheetFooter
|
|
61
|
+
|
|
62
|
+
`import { G9SheetFooter } from '@g9tm/lynxcontrols/sheet';`
|
|
63
|
+
|
|
64
|
+
The sheet footer: `footerBand`, else `footerView` in the band, else `footerButtons` in equal columns (3 per row by default), with a divider.
|
|
65
|
+
|
|
66
|
+
Props:
|
|
67
|
+
- `options`: object
|
|
68
|
+
|
|
69
|
+
Example: `<G9SheetFooter options={options} />`
|
|
70
|
+
|
|
71
|
+
# G9SheetFooterBar
|
|
72
|
+
|
|
73
|
+
`import { G9SheetFooterBar } from '@g9tm/lynxcontrols/sheet';`
|
|
74
|
+
|
|
75
|
+
The footer band (divider, padding, equal-width button columns); nothing at all without buttons (MAUI `SheetFooterBar` hides with no visible button).
|
|
76
|
+
|
|
77
|
+
Props:
|
|
78
|
+
- `buttons`: ReactNode
|
|
79
|
+
- `maxButtonsPerRow?`: number = 3
|
|
80
|
+
|
|
81
|
+
Example: `<G9SheetFooterBar buttons={buttons} />`
|
|
82
|
+
|
|
83
|
+
# G9SheetFrame
|
|
84
|
+
|
|
85
|
+
`import { G9SheetFrame } from '@g9tm/lynxcontrols/sheet';`
|
|
86
|
+
|
|
87
|
+
One sheet of the stack on lynx-ui `SheetRoot` (motion, drag, snap points from lynx-ui; G9 adds detent mapping, scrim, header/footer, deferred content, recede and results).
|
|
88
|
+
|
|
89
|
+
Props:
|
|
90
|
+
- `culture`: string
|
|
91
|
+
- `entry`: object
|
|
92
|
+
- `hostHeight`: number
|
|
93
|
+
- `hostWidth`: number
|
|
94
|
+
- `isTop`: boolean
|
|
95
|
+
- `memo`: object
|
|
96
|
+
- `settings`: object
|
|
97
|
+
- `stack`: object
|
|
98
|
+
|
|
99
|
+
Example: `<G9SheetFrame culture="culture" entry={entry} hostHeight={1} hostWidth={1} isTop memo={memo} settings={settings} stack={stack} topInset={1} />`
|
|
100
|
+
|
|
101
|
+
# G9SheetHeader
|
|
102
|
+
|
|
103
|
+
`import { G9SheetHeader } from '@g9tm/lynxcontrols/sheet';`
|
|
104
|
+
|
|
105
|
+
The three-slot sheet header (MAUI header template): leading back/close button (RTL-aware arrow, or × with `useCloseIcon`), the title (centre or near the back button), the trailing toolbar items; slot overrides `headerVie
|
|
106
|
+
|
|
107
|
+
Props:
|
|
108
|
+
- `onBack`: () => void
|
|
109
|
+
- `options`: object
|
|
110
|
+
|
|
111
|
+
Example: `<G9SheetHeader onBack={() => {}} options={options} />`
|
|
112
|
+
|
|
113
|
+
# G9SheetScrollIndicator
|
|
114
|
+
|
|
115
|
+
`import { G9SheetScrollIndicator } from '@g9tm/lynxcontrols/sheet';`
|
|
116
|
+
|
|
117
|
+
The thumb at the body's inline END (left in a right-to-left sheet), in the side inset; touches pass through.
|
|
118
|
+
|
|
119
|
+
Props:
|
|
120
|
+
- `model`: object
|
|
121
|
+
|
|
122
|
+
Example: `<G9SheetScrollIndicator model={model} />`
|
|
123
|
+
|
|
124
|
+
# G9SheetScrollRegion
|
|
125
|
+
|
|
126
|
+
`import { G9SheetScrollRegion } from '@g9tm/lynxcontrols/sheet';`
|
|
127
|
+
|
|
128
|
+
A vertical scroller as tall as its content, up to what the sheet's other parts leave free under its cap — measured, never estimated, however they change (a discount panel opening above, the keyboard shrinking the window)
|
|
129
|
+
|
|
130
|
+
Props:
|
|
131
|
+
- `children?`: ReactNode
|
|
132
|
+
- `max?`: number
|
|
133
|
+
|
|
134
|
+
Example: `<G9SheetScrollRegion />`
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols/shell` (generated)
|
|
2
|
+
|
|
3
|
+
# G9AppShell
|
|
4
|
+
|
|
5
|
+
`import { G9AppShell } from '@g9tm/lynxcontrols/shell';`
|
|
6
|
+
|
|
7
|
+
The app's frame by window size (SAC StaffApp shell, Riskara Frame, G9Hub AppShell): phones get the tab bar (up to four destinations plus «more»), tablets an icon rail, desktops a side nav with a top bar.
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `destinations`: object[]
|
|
11
|
+
- `onChange`: (key: K) => void
|
|
12
|
+
- `value`: string
|
|
13
|
+
- `children?`: ReactNode
|
|
14
|
+
- `moreText?`: string
|
|
15
|
+
- `brand?`: ReactNode
|
|
16
|
+
- `navFooter?`: ReactNode
|
|
17
|
+
- `navSearch?`: ReactNode
|
|
18
|
+
|
|
19
|
+
Example: `<G9AppShell destinations={destinations} onChange={() => {}} value="value" />`
|
|
20
|
+
|
|
21
|
+
# G9ConnectionBanner
|
|
22
|
+
|
|
23
|
+
`import { G9ConnectionBanner } from '@g9tm/lynxcontrols/shell';`
|
|
24
|
+
|
|
25
|
+
A slim line when the network is gone or coming back (G9Hub ConnectionBanner); a short «back online» then nothing.
|
|
26
|
+
|
|
27
|
+
Props:
|
|
28
|
+
- `offlineText`: string
|
|
29
|
+
- `reconnectingText`: string
|
|
30
|
+
- `status`: 'online' | 'offline' | 'reconnecting'
|
|
31
|
+
- `onRetry?`: () => void
|
|
32
|
+
- `backOnlineText?`: string
|
|
33
|
+
- `retryText?`: string
|
|
34
|
+
|
|
35
|
+
Example: `<G9ConnectionBanner offlineText="offlineText" reconnectingText="reconnectingText" status="online" />`
|
|
36
|
+
|
|
37
|
+
# G9IconRail
|
|
38
|
+
|
|
39
|
+
`import { G9IconRail } from '@g9tm/lynxcontrols/shell';`
|
|
40
|
+
|
|
41
|
+
The tablet rail (SAC IconRail, Riskara tablet frame): icons with short labels in a narrow column.
|
|
42
|
+
|
|
43
|
+
Props:
|
|
44
|
+
- `destinations`: object[]
|
|
45
|
+
- `onChange`: (key: K) => void
|
|
46
|
+
- `value`: string
|
|
47
|
+
- `footer?`: ReactNode
|
|
48
|
+
- `header?`: ReactNode
|
|
49
|
+
- `width?`: number = 72
|
|
50
|
+
|
|
51
|
+
Example: `<G9IconRail destinations={destinations} onChange={() => {}} value="value" />`
|
|
52
|
+
|
|
53
|
+
# G9SideNav
|
|
54
|
+
|
|
55
|
+
`import { G9SideNav } from '@g9tm/lynxcontrols/shell';`
|
|
56
|
+
|
|
57
|
+
The desktop side navigation (SAC SideNav, G9Hub AppShell side): grouped entries with icons and counts.
|
|
58
|
+
|
|
59
|
+
Props:
|
|
60
|
+
- `destinations`: object[]
|
|
61
|
+
- `onChange`: (key: K) => void
|
|
62
|
+
- `value`: string
|
|
63
|
+
- `footer?`: ReactNode
|
|
64
|
+
- `header?`: ReactNode
|
|
65
|
+
- `search?`: ReactNode
|
|
66
|
+
- `width?`: number = 232
|
|
67
|
+
|
|
68
|
+
Example: `<G9SideNav destinations={destinations} onChange={() => {}} value="value" />`
|
|
69
|
+
|
|
70
|
+
# G9TopBar
|
|
71
|
+
|
|
72
|
+
`import { G9TopBar } from '@g9tm/lynxcontrols/shell';`
|
|
73
|
+
|
|
74
|
+
The desktop global bar over the content (SAC TopBar, Riskara StatusStrip).
|
|
75
|
+
|
|
76
|
+
Props:
|
|
77
|
+
- `title?`: string
|
|
78
|
+
- `actions?`: ReactNode
|
|
79
|
+
- `start?`: ReactNode
|
|
80
|
+
- `height?`: number = 56
|
|
81
|
+
|
|
82
|
+
Example: `<G9TopBar />`
|
|
83
|
+
|
|
84
|
+
# G9UpdateBar
|
|
85
|
+
|
|
86
|
+
`import { G9UpdateBar } from '@g9tm/lynxcontrols/shell';`
|
|
87
|
+
|
|
88
|
+
«A new version is ready — restart» (SAC UpdatePrompt, live updates): a slim bar that slides down when shown.
|
|
89
|
+
|
|
90
|
+
Props:
|
|
91
|
+
- `actionText`: string
|
|
92
|
+
- `onAction`: () => void
|
|
93
|
+
- `shown`: boolean
|
|
94
|
+
- `text`: string
|
|
95
|
+
- `onDismiss?`: () => void
|
|
96
|
+
- `dismissText?`: string
|
|
97
|
+
|
|
98
|
+
Example: `<G9UpdateBar actionText="actionText" onAction={() => {}} shown text="Label" />`
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols/survey` (generated)
|
|
2
|
+
|
|
3
|
+
# G9AllocationInput
|
|
4
|
+
|
|
5
|
+
`import { G9AllocationInput } from '@g9tm/lynxcontrols/survey';`
|
|
6
|
+
|
|
7
|
+
Share a total between options (Riskara Split «۱۰۰ سکه», budget splits): − and + per option, a stacked bar of the shares, what is left.
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `options`: object[]
|
|
11
|
+
- `value?`: object
|
|
12
|
+
- `onChange?`: (value: Readonly<Record<K, number>>) => void
|
|
13
|
+
- `disabled?`: boolean = false
|
|
14
|
+
- `format?`: (units: number) => void
|
|
15
|
+
- `defaultValue?`: object
|
|
16
|
+
- `step?`: number = 5
|
|
17
|
+
- `total?`: number = 100
|
|
18
|
+
|
|
19
|
+
Example: `<G9AllocationInput options={options} />`
|
|
20
|
+
|
|
21
|
+
# G9ChoiceList
|
|
22
|
+
|
|
23
|
+
`import { G9ChoiceList } from '@g9tm/lynxcontrols/survey';`
|
|
24
|
+
|
|
25
|
+
Cards to choose from (Riskara check-up Single/Multi, ShopManager `choice`, onboarding questions): icon or art, label, a line under it; the chosen card is outlined in the brand colour and announced as selected.
|
|
26
|
+
|
|
27
|
+
Props:
|
|
28
|
+
- `options`: object[]
|
|
29
|
+
- `value?`: string[]
|
|
30
|
+
- `columns?`: number = 1
|
|
31
|
+
- `onChange?`: (keys: readonly K[]) => void
|
|
32
|
+
- `disabled?`: boolean = false
|
|
33
|
+
- `onPicked?`: (key: K) => void
|
|
34
|
+
- `defaultValue?`: string[]
|
|
35
|
+
- `max?`: number
|
|
36
|
+
|
|
37
|
+
Example: `<G9ChoiceList options={options} />`
|
|
38
|
+
|
|
39
|
+
# G9ScaleInput
|
|
40
|
+
|
|
41
|
+
`import { G9ScaleInput } from '@g9tm/lynxcontrols/survey';`
|
|
42
|
+
|
|
43
|
+
A Likert / 0–10 scale (Riskara Scale, satisfaction questions): one row of numbered targets, the ends labelled.
|
|
44
|
+
|
|
45
|
+
Props:
|
|
46
|
+
- `value?`: number
|
|
47
|
+
- `onChange?`: (value: number) => void
|
|
48
|
+
- `disabled?`: boolean = false
|
|
49
|
+
- `defaultValue?`: number
|
|
50
|
+
- `endLabels?`: string[]
|
|
51
|
+
- `max?`: number = 5
|
|
52
|
+
- `min?`: number = 1
|
|
53
|
+
- `accessibilityLabel?`: string
|
|
54
|
+
|
|
55
|
+
Example: `<G9ScaleInput />`
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols/swipe` (generated)
|
|
2
|
+
|
|
3
|
+
# G9SwipeGroup
|
|
4
|
+
|
|
5
|
+
`import { G9SwipeGroup } from '@g9tm/lynxcontrols/swipe';`
|
|
6
|
+
|
|
7
|
+
Scopes the one-open-row policy to a list (rows outside any group share one default group).
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `children?`: ReactNode
|
|
11
|
+
- `group?`: object
|
|
12
|
+
|
|
13
|
+
Example: `<G9SwipeGroup />`
|
|
14
|
+
|
|
15
|
+
# G9SwipeView
|
|
16
|
+
|
|
17
|
+
`import { G9SwipeView } from '@g9tm/lynxcontrols/swipe';`
|
|
18
|
+
|
|
19
|
+
A card row with swipe-to-reveal action panes on both edges (MAUI `G9SwipeView`).
|
|
20
|
+
|
|
21
|
+
Props:
|
|
22
|
+
- `children?`: ReactNode
|
|
23
|
+
- `onOpenChange?`: (side: "leading" | "trailing" | null) => void
|
|
24
|
+
- `cornerRadius?`: number = 14
|
|
25
|
+
- `cardContent?`: ReactNode
|
|
26
|
+
- `cardBackground?`: color
|
|
27
|
+
- `cardStroke?`: color
|
|
28
|
+
- `cardStrokeThickness?`: number
|
|
29
|
+
- `itemKey?`: string | number
|
|
30
|
+
|
|
31
|
+
Example: `<G9SwipeView />`
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols/tab-bar` (generated)
|
|
2
|
+
|
|
3
|
+
# G9TabBar
|
|
4
|
+
|
|
5
|
+
`import { G9TabBar } from '@g9tm/lynxcontrols/tab-bar';`
|
|
6
|
+
|
|
7
|
+
Bottom navigation with a floating action button (MAUI `G9TabBar`): the FAB rises out of a notch and fans out a horizontal sub-menu row; more than five items collapse behind a More trigger with a vertical overflow column;
|
|
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: `<G9TabBar items={items} />`
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols/tabs` (generated)
|
|
2
|
+
|
|
3
|
+
# G9TabView
|
|
4
|
+
|
|
5
|
+
`import { G9TabView } from '@g9tm/lynxcontrols/tabs';`
|
|
6
|
+
|
|
7
|
+
Tabs with a bar and lazily realized bodies (MAUI `G9TabView`).
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `items`: object[]
|
|
11
|
+
- `onSelectionChange?`: (index: number) => void
|
|
12
|
+
- `routeSegment?`: (key: string) => void
|
|
13
|
+
- `contentPadding?`: number | number[] = 10
|
|
14
|
+
- `frameCornerRadius?`: number = 0
|
|
15
|
+
- `indicatorColor?`: color
|
|
16
|
+
- `tabHeight?`: number = 52
|
|
17
|
+
- `tabStyle?`: 'pill' | 'underlined'
|
|
18
|
+
|
|
19
|
+
Example: `<G9TabView items={items} />`
|