@g9tm/lynxcontrols 2.3.0 → 2.4.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/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 +47936 -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/orb/orb.d.ts.map +1 -1
- package/dist/orb/orb.jsx +9 -4
- 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 +15 -0
- package/dist/sheet/frame.d.ts.map +1 -1
- package/dist/sheet/frame.jsx +18 -6
- 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 +16 -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 +25 -1
- package/dist/tab-bar/tab-bar.css.map +1 -1
- package/dist/tab-bar/tab-bar.d.ts +6 -0
- package/dist/tab-bar/tab-bar.d.ts.map +1 -1
- package/dist/tab-bar/tab-bar.jsx +61 -11
- 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,12 @@
|
|
|
1
|
+
# G9MenuList
|
|
2
|
+
|
|
3
|
+
`import { G9MenuList } from '@g9tm/lynxcontrols/popover';`
|
|
4
|
+
|
|
5
|
+
The entries of a menu (G9Hub MenuList): icon, label, shortcut, check; destructive entries in red.
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `items`: object[]
|
|
9
|
+
- `onSelect`: (key: string) => void
|
|
10
|
+
- `density?`: 'sheet' | 'popover'
|
|
11
|
+
|
|
12
|
+
Example: `<G9MenuList items={items} onSelect={() => {}} />`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# G9NavCard
|
|
2
|
+
|
|
3
|
+
`import { G9NavCard } from '@g9tm/lynxcontrols/button';`
|
|
4
|
+
|
|
5
|
+
Navigation row card (MAUI `G9NavCard`): icon tile (pastel, or filled with `useFilledIconChip`) with optional corner badge, title (with an optional `titleAccessory` after it)/subtitle, value text, chevron or coming-soon b
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `title?`: string
|
|
9
|
+
- `icon?`: icon
|
|
10
|
+
- `subtitle?`: string
|
|
11
|
+
- `onPress?`: () => void
|
|
12
|
+
- `disabled?`: boolean = false
|
|
13
|
+
- `comingSoonText?`: string
|
|
14
|
+
- `iconBadgeText?`: string
|
|
15
|
+
- `valueText?`: string
|
|
16
|
+
|
|
17
|
+
Example: `<G9NavCard />`
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# G9NumPad
|
|
2
|
+
|
|
3
|
+
`import { G9NumPad } from '@g9tm/lynxcontrols/fields';`
|
|
4
|
+
|
|
5
|
+
A big numeric keypad (SAC PinPad and CodePad): works whatever the system keyboard does (an in-app browser that never opens it).
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `onKey`: (key: string) => void
|
|
9
|
+
- `disabled?`: boolean
|
|
10
|
+
- `dark?`: boolean
|
|
11
|
+
- `extraKey?`: string
|
|
12
|
+
|
|
13
|
+
Example: `<G9NumPad onKey={() => {}} />`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# G9NumberEntry
|
|
2
|
+
|
|
3
|
+
`import { G9NumberEntry } from '@g9tm/lynxcontrols/fields';`
|
|
4
|
+
|
|
5
|
+
THE number field (SAC NumIn, G9Hub NumberField, prices and quantities everywhere): thousands grouped while the person types, Persian digits on a Persian screen (drawn by the native field; the element and every value even
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `label?`: string
|
|
9
|
+
- `value?`: number
|
|
10
|
+
- `leadingIcon?`: icon
|
|
11
|
+
- `placeholder?`: string
|
|
12
|
+
- `onValueChange?`: (value: number | null) => void
|
|
13
|
+
- `disabled?`: boolean = false
|
|
14
|
+
- `onBlur?`: () => void
|
|
15
|
+
- `onConfirm?`: (value: number | null) => void
|
|
16
|
+
|
|
17
|
+
Example: `<G9NumberEntry />`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# G9OutlinedField
|
|
2
|
+
|
|
3
|
+
`import { G9OutlinedField } from '@g9tm/lynxcontrols/fields';`
|
|
4
|
+
|
|
5
|
+
The outlined field frame (MAUI `G9OutlinedFieldBase`): outline with a notched floating label, leading and trailing icon slots, helper/error line and counter.
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `focused`: boolean
|
|
9
|
+
- `hasValue`: boolean
|
|
10
|
+
- `label?`: string
|
|
11
|
+
- `children?`: ReactNode
|
|
12
|
+
- `leadingIcon?`: icon
|
|
13
|
+
- `placeholder?`: string
|
|
14
|
+
- `disabled?`: boolean = false
|
|
15
|
+
- `onFocusRequest?`: () => void
|
|
16
|
+
|
|
17
|
+
Example: `<G9OutlinedField focused hasValue />`
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# G9OverlayRoot
|
|
2
|
+
|
|
3
|
+
`import { G9OverlayRoot } from '@g9tm/lynxcontrols/popover';`
|
|
4
|
+
|
|
5
|
+
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
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `attrs`: object
|
|
9
|
+
- `label?`: string
|
|
10
|
+
- `children?`: ReactNode
|
|
11
|
+
|
|
12
|
+
Example: `<G9OverlayRoot attrs={attrs} />`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# G9Page
|
|
2
|
+
|
|
3
|
+
`import { G9Page } from '@g9tm/lynxcontrols/layout';`
|
|
4
|
+
|
|
5
|
+
A screen (ShopManager Screen/Page, Riskara Page, SAC page): a fixed header, one scrolling body with the layout's gutters and a maximum width (desktop never shows a phone column), a fixed footer, an overlay layer.
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `children?`: ReactNode
|
|
9
|
+
- `maxWidth?`: number = 1360
|
|
10
|
+
- `footer?`: ReactNode
|
|
11
|
+
- `header?`: ReactNode
|
|
12
|
+
- `overlay?`: ReactNode
|
|
13
|
+
- `background?`: color
|
|
14
|
+
- `gutter?`: number | object = "{ phone: 16, tablet: 24, desktop: 32 }"
|
|
15
|
+
- `place?`: string
|
|
16
|
+
|
|
17
|
+
Example: `<G9Page />`
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# G9PageLoadingOverlay
|
|
2
|
+
|
|
3
|
+
`import { G9PageLoadingOverlay } from '@g9tm/lynxcontrols/host';`
|
|
4
|
+
|
|
5
|
+
The full-screen cover that hides a page while it assembles itself (MAUI `G9PageLoadingOverlay`): input-opaque, a centred 48 px spinner, the top of the host's z-stack.
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `backgroundColor?`: color
|
|
9
|
+
- `spinnerColor?`: color
|
|
10
|
+
- `exiting?`: boolean
|
|
11
|
+
|
|
12
|
+
Example: `<G9PageLoadingOverlay />`
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# G9Pager
|
|
2
|
+
|
|
3
|
+
`import { G9Pager } from '@g9tm/lynxcontrols/list';`
|
|
4
|
+
|
|
5
|
+
Previous / next under a paged list (SAC LogsAudit Pager).
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `onPage`: (page: number) => void
|
|
9
|
+
- `page`: number
|
|
10
|
+
- `pageSize`: number
|
|
11
|
+
- `total`: number
|
|
12
|
+
- `label?`: (from: number, to: number, total: number) => void
|
|
13
|
+
- `disabled?`: boolean = false
|
|
14
|
+
- `accessibilityLabel?`: string
|
|
15
|
+
|
|
16
|
+
Example: `<G9Pager onPage={() => {}} page={1} pageSize={1} total={1} />`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# G9Photo
|
|
2
|
+
|
|
3
|
+
`import { G9Photo } from '@g9tm/lynxcontrols/display';`
|
|
4
|
+
|
|
5
|
+
A photo with a designed placeholder (SAC Photo, ShopManager Thumb): the brand's soft tint and an icon until the image loads, and if it fails.
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `size?`: number = 64
|
|
9
|
+
- `mode?`: 'aspectFill' | 'aspectFit' | 'scaleToFill' = "aspectFill"
|
|
10
|
+
- `onError?`: () => void
|
|
11
|
+
- `onLoad?`: () => void
|
|
12
|
+
- `placeholderIcon?`: icon = "search"
|
|
13
|
+
- `radius?`: number
|
|
14
|
+
- `height?`: string | number
|
|
15
|
+
- `src?`: string
|
|
16
|
+
|
|
17
|
+
Example: `<G9Photo />`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# G9Picker
|
|
2
|
+
|
|
3
|
+
`import { G9Picker } from '@g9tm/lynxcontrols/pickers';`
|
|
4
|
+
|
|
5
|
+
Single selection from a list in an outlined box (MAUI `G9Picker`): a tap opens the selection sheet (no search; a pick closes it), the box shows the item's icon or swatch and text, the trailing chevron hints at the sheet.
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `items`: G9SelectionItem<unknown>[]
|
|
9
|
+
- `label?`: string
|
|
10
|
+
- `value?`: string
|
|
11
|
+
- `leadingIcon?`: icon
|
|
12
|
+
- `placeholder?`: string
|
|
13
|
+
- `onValueChange?`: (key: string | null, item: T | null) => void
|
|
14
|
+
- `disabled?`: boolean = false
|
|
15
|
+
- `onItemSelected?`: (item: T) => void
|
|
16
|
+
|
|
17
|
+
Example: `<G9Picker items={items} />`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# G9PinEntry
|
|
2
|
+
|
|
3
|
+
`import { G9PinEntry } from '@g9tm/lynxcontrols/fields';`
|
|
4
|
+
|
|
5
|
+
One-time-code / PIN entry (MAUI `G9PinEntry`): a row of cells over one hidden `<input>` (the lynx-ui `InputOTP` pattern).
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `value?`: string
|
|
9
|
+
- `placeholder?`: string
|
|
10
|
+
- `onValueChange?`: (value: string) => void
|
|
11
|
+
- `disabled?`: boolean
|
|
12
|
+
- `type?`: 'number' | 'password' | 'letters' | 'alphanumeric' = "number"
|
|
13
|
+
- `onComplete?`: (value: string) => void
|
|
14
|
+
- `cellHeight?`: number = 52
|
|
15
|
+
- `cellWidth?`: number = 44
|
|
16
|
+
|
|
17
|
+
Example: `<G9PinEntry />`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# G9Place
|
|
2
|
+
|
|
3
|
+
`import { G9Place } from '@g9tm/lynxcontrols/route';`
|
|
4
|
+
|
|
5
|
+
Declares a place around its children (renders no element).
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `layer`: 'root' | 'page' | 'mode' | 'inner' | 'sheet' | 'popup'
|
|
9
|
+
- `segment`: string | object | () => void
|
|
10
|
+
- `title?`: () => void
|
|
11
|
+
- `children?`: ReactNode
|
|
12
|
+
- `applyView?`: (view: Readonly<Record<string, string>>) => void
|
|
13
|
+
- `canLeave?`: () => void
|
|
14
|
+
- `close?`: () => void
|
|
15
|
+
- `describeChanges?`: () => void
|
|
16
|
+
|
|
17
|
+
Example: `<G9Place layer="root" segment={segment} />`
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# G9PlaceScroll
|
|
2
|
+
|
|
3
|
+
`import { G9PlaceScroll } from '@g9tm/lynxcontrols/layout';`
|
|
4
|
+
|
|
5
|
+
A vertical scroll that keeps its place (SAC PlaceScroll): leaving and coming back restores the position.
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `place`: string
|
|
9
|
+
- `children?`: ReactNode
|
|
10
|
+
- `onScroll?`: (top: number) => void
|
|
11
|
+
- `lifeMs?`: number = 30
|
|
12
|
+
|
|
13
|
+
Example: `<G9PlaceScroll place="place" />`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# G9PlusButton
|
|
2
|
+
|
|
3
|
+
`import { G9PlusButton } from '@g9tm/lynxcontrols/plus-button';`
|
|
4
|
+
|
|
5
|
+
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
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `items`: object[]
|
|
9
|
+
- `onExpandedChange?`: (expanded: boolean) => void
|
|
10
|
+
- `textBorderTargetWidth?`: number
|
|
11
|
+
- `expanded?`: boolean
|
|
12
|
+
- `controller?`: object
|
|
13
|
+
- `defaultExpanded?`: boolean
|
|
14
|
+
- `itemsStartDelayMs?`: number
|
|
15
|
+
- `itemStaggerMs?`: number
|
|
16
|
+
|
|
17
|
+
Example: `<G9PlusButton items={items} />`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# G9Popover
|
|
2
|
+
|
|
3
|
+
`import { G9Popover } from '@g9tm/lynxcontrols/popover';`
|
|
4
|
+
|
|
5
|
+
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.
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `onClose`: () => void
|
|
9
|
+
- `open`: boolean
|
|
10
|
+
- `children?`: ReactNode
|
|
11
|
+
- `placement?`: 'end' | 'start' | 'top' | 'bottom' | 'bottom-start' | 'bottom-end' | 'top-start' | 'top-end' = "bottom-start"
|
|
12
|
+
- `matchWidth?`: boolean
|
|
13
|
+
- `anchorId?`: string
|
|
14
|
+
- `anchorNode?`: object
|
|
15
|
+
- `anchorRect?`: object
|
|
16
|
+
|
|
17
|
+
Example: `<G9Popover onClose={() => {}} open />`
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# G9PopupDragHandle
|
|
2
|
+
|
|
3
|
+
`import { G9PopupDragHandle } from '@g9tm/lynxcontrols/popup';`
|
|
4
|
+
|
|
5
|
+
The grip of a draggable popup (MAUI `DragHandle`): put the header inside it so taps in the body keep working.
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `children?`: ReactNode
|
|
9
|
+
|
|
10
|
+
Example: `<G9PopupDragHandle />`
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# G9PopupView
|
|
2
|
+
|
|
3
|
+
`import { G9PopupView } from '@g9tm/lynxcontrols/popup';`
|
|
4
|
+
|
|
5
|
+
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: '
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `open`: boolean
|
|
9
|
+
- `children?`: ReactNode
|
|
10
|
+
- `onBackgroundTap?`: () => void
|
|
11
|
+
- `onClosed?`: () => void
|
|
12
|
+
- `onOpenChange?`: (open: boolean) => void
|
|
13
|
+
- `options?`: object
|
|
14
|
+
|
|
15
|
+
Example: `<G9PopupView open />`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# G9Pressable
|
|
2
|
+
|
|
3
|
+
`import { G9Pressable } from '@g9tm/lynxcontrols/base';`
|
|
4
|
+
|
|
5
|
+
Opacity press feedback around any content (MAUI `G9PressFeedbackBehavior` attached to a view; `.For(command)` is `<G9Pressable onPress={…}>`).
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `children?`: ReactNode
|
|
9
|
+
- `onPress?`: () => void
|
|
10
|
+
- `disabled?`: boolean = false
|
|
11
|
+
- `hoveredOpacity?`: number = 0.86
|
|
12
|
+
- `pressedOpacity?`: number = 0.78
|
|
13
|
+
- `restOpacity?`: number = 1
|
|
14
|
+
- `animationDurationMs?`: number = 110
|
|
15
|
+
- `feedback?`: 'card' | 'opacity'
|
|
16
|
+
|
|
17
|
+
Example: `<G9Pressable />`
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# G9ProcessingSheetContent
|
|
2
|
+
|
|
3
|
+
`import { G9ProcessingSheetContent } from '@g9tm/lynxcontrols/sheet';`
|
|
4
|
+
|
|
5
|
+
The body of a processing sheet (MAUI `ProcessingSheetContentView`): a 42 px spinner in a `loadingHeight` box, then the built body swapped in at once.
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `build`: (handle, signal) => ReactNode
|
|
9
|
+
- `handle?`: () => void
|
|
10
|
+
- `onError?`: (error: unknown, handle: G9SheetHandle) => void
|
|
11
|
+
- `loadingHeight?`: number = 160
|
|
12
|
+
|
|
13
|
+
Example: `<G9ProcessingSheetContent build={build} />`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# G9ProgressBar
|
|
2
|
+
|
|
3
|
+
`import { G9ProgressBar } from '@g9tm/lynxcontrols/display';`
|
|
4
|
+
|
|
5
|
+
Linear progress (MAUI `G9ProgressBar`): gradient fill (colour → 24 % lighter), diagonal stripes while running, optional segments and label, indeterminate sweep.
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `value?`: number = 0
|
|
9
|
+
- `disabled?`: boolean = false
|
|
10
|
+
- `labelPlacement?`: 'none' | 'above' | 'end' = "none"
|
|
11
|
+
- `progressType?`: 'primary' | 'success' | 'warning' | 'error' = "primary"
|
|
12
|
+
- `barHeight?`: number = 10
|
|
13
|
+
- `cornerRadius?`: number = 999
|
|
14
|
+
- `progressColor?`: color
|
|
15
|
+
- `trackColor?`: color = "var(--g9-surface-variant)"
|
|
16
|
+
|
|
17
|
+
Example: `<G9ProgressBar value={0.4} labelPlacement="end" />`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# G9ProgressRing
|
|
2
|
+
|
|
3
|
+
`import { G9ProgressRing } from '@g9tm/lynxcontrols/display';`
|
|
4
|
+
|
|
5
|
+
A progress ring (ShopManager Ring, G9Hub ProgressRing): done of total, with words inside.
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `value`: number
|
|
9
|
+
- `children?`: ReactNode
|
|
10
|
+
- `size?`: number = 72
|
|
11
|
+
- `tone?`: 'primary' | 'info' | 'success' | 'warning' | 'error' | 'accent' | 'neutral' = "primary"
|
|
12
|
+
- `trackColor?`: color
|
|
13
|
+
- `color?`: color
|
|
14
|
+
- `thickness?`: number = 6
|
|
15
|
+
- `accessibilityLabel?`: string
|
|
16
|
+
|
|
17
|
+
Example: `<G9ProgressRing value={1} />`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# G9Provider
|
|
2
|
+
|
|
3
|
+
`import { G9Provider } from '@g9tm/lynxcontrols/provider';`
|
|
4
|
+
|
|
5
|
+
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
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `services`: object
|
|
9
|
+
- `children?`: ReactNode
|
|
10
|
+
- `shape?`: object
|
|
11
|
+
- `breakpoints?`: object
|
|
12
|
+
- `culture?`: string | object | object = "en"
|
|
13
|
+
- `diagnostics?`: object
|
|
14
|
+
- `persistTheme?`: boolean = true
|
|
15
|
+
- `preview?`: object
|
|
16
|
+
|
|
17
|
+
Example: `<G9Provider services={services} />`
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# G9PullToRefresh
|
|
2
|
+
|
|
3
|
+
`import { G9PullToRefresh } from '@g9tm/lynxcontrols/list';`
|
|
4
|
+
|
|
5
|
+
A vertical scroller that refreshes when pulled down from the top.
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `onRefresh`: () => void
|
|
9
|
+
- `children?`: ReactNode
|
|
10
|
+
- `disabled?`: boolean
|
|
11
|
+
- `threshold?`: number = 72
|
|
12
|
+
|
|
13
|
+
Example: `<G9PullToRefresh onRefresh={onRefresh} />`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# G9RadioGroup
|
|
2
|
+
|
|
3
|
+
`import { G9RadioGroup } from '@g9tm/lynxcontrols/toggle';`
|
|
4
|
+
|
|
5
|
+
One choice of several (G9Hub RadioGroup, mardomi Radio, payment and delivery options).
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `options`: object[]
|
|
9
|
+
- `value?`: string
|
|
10
|
+
- `onChange?`: (key: K) => void
|
|
11
|
+
- `disabled?`: boolean = false
|
|
12
|
+
- `appearance?`: 'list' | 'cards'
|
|
13
|
+
- `defaultValue?`: string
|
|
14
|
+
- `haptic?`: boolean | string | string | string | string | string | string | string | string | string
|
|
15
|
+
- `accessibilityLabel?`: string
|
|
16
|
+
|
|
17
|
+
Example: `<G9RadioGroup options={options} />`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# G9RangeSlider
|
|
2
|
+
|
|
3
|
+
`import { G9RangeSlider } from '@g9tm/lynxcontrols/range-slider';`
|
|
4
|
+
|
|
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
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `value?`: number
|
|
9
|
+
- `onValueChange?`: (value: number) => void
|
|
10
|
+
- `disabled?`: boolean
|
|
11
|
+
- `mode?`: 'single' | 'range' = "range"
|
|
12
|
+
- `onRangeChange?`: (start: number, end: number) => void
|
|
13
|
+
- `onValueChanged?`: (value: number) => void
|
|
14
|
+
- `defaultValue?`: number
|
|
15
|
+
- `bands?`: object[]
|
|
16
|
+
|
|
17
|
+
Example: `<G9RangeSlider />`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# G9RatingInput
|
|
2
|
+
|
|
3
|
+
`import { G9RatingInput } from '@g9tm/lynxcontrols/toggle';`
|
|
4
|
+
|
|
5
|
+
Stars (ShopManager AfterDelivery Stars): each star a 44 dp target with its own label.
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `value?`: number
|
|
9
|
+
- `size?`: number
|
|
10
|
+
- `onChange?`: (value: number) => void
|
|
11
|
+
- `disabled?`: boolean = false
|
|
12
|
+
- `defaultValue?`: number
|
|
13
|
+
- `readOnly?`: boolean
|
|
14
|
+
- `haptic?`: boolean | string | string | string | string | string | string | string | string | string
|
|
15
|
+
- `labels?`: string[]
|
|
16
|
+
|
|
17
|
+
Example: `<G9RatingInput />`
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# G9RevealText
|
|
2
|
+
|
|
3
|
+
`import { G9RevealText } from '@g9tm/lynxcontrols/display';`
|
|
4
|
+
|
|
5
|
+
An answer that appears word by word while the person watches (ShopChat Reveal, Riskara RevealText).
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `text`: string
|
|
9
|
+
- `onDone?`: () => void
|
|
10
|
+
- `textStyle?`: object
|
|
11
|
+
- `animate?`: boolean = true
|
|
12
|
+
- `durationMs?`: number = 1500
|
|
13
|
+
- `textClassName?`: string
|
|
14
|
+
|
|
15
|
+
Example: `<G9RevealText text="Label" />`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# G9SafeButton
|
|
2
|
+
|
|
3
|
+
`import { G9SafeButton } from '@g9tm/lynxcontrols/button';`
|
|
4
|
+
|
|
5
|
+
Button with guarded execution (MAUI `G9SafeButton`): a tap calls `onPress`, then runs `onExecute` (and `onExecuteHandlers`) through the provider's safe executor: throttle (369 ms per key), one run at a time, optional del
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `text?`: string
|
|
9
|
+
- `variant?`: 'text' | 'primary' | 'default' | 'secondary' | 'info' | 'success' | 'warning' | 'error' | 'surface' | 'outline' | 'accent' | 'tonal' | 'errorTonal' | 'ghost' | 'inverse' = "primary"
|
|
10
|
+
- `size?`: 'small' | 'medium' | 'large' | 'hero' = "medium"
|
|
11
|
+
- `leadingIcon?`: icon
|
|
12
|
+
- `onPress?`: () => void
|
|
13
|
+
- `disabled?`: boolean = false
|
|
14
|
+
- `fontAttributes?`: 'bold' | 'none' | 'italic' | 'boldItalic' = "bold"
|
|
15
|
+
- `onExecute?`: (context: G9SafeRunContext) => void
|
|
16
|
+
|
|
17
|
+
Example: `<G9SafeButton />`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# G9SafeIconButton
|
|
2
|
+
|
|
3
|
+
`import { G9SafeIconButton } from '@g9tm/lynxcontrols/button';`
|
|
4
|
+
|
|
5
|
+
Icon button with guarded execution (MAUI `G9SafeIconButton`); see `G9SafeButton`.
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `variant?`: 'text' | 'primary' | 'default' | 'secondary' | 'info' | 'success' | 'warning' | 'error' | 'surface' | 'outline' | 'accent' | 'tonal' | 'errorTonal' | 'ghost' | 'inverse' = "surface"
|
|
9
|
+
- `icon?`: icon
|
|
10
|
+
- `onPress?`: () => void
|
|
11
|
+
- `disabled?`: boolean = false
|
|
12
|
+
- `activeVariant?`: 'text' | 'primary' | 'default' | 'secondary' | 'info' | 'success' | 'warning' | 'error' | 'surface' | 'outline' | 'accent' | 'tonal' | 'errorTonal' | 'ghost' | 'inverse' = "tonal"
|
|
13
|
+
- `onExecute?`: (context: G9SafeRunContext) => void
|
|
14
|
+
- `onResult?`: (result: G9SafeRunResult<unknown>) => void
|
|
15
|
+
- `badgeText?`: string
|
|
16
|
+
|
|
17
|
+
Example: `<G9SafeIconButton />`
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# G9SaveBar
|
|
2
|
+
|
|
3
|
+
`import { G9SaveBar } from '@g9tm/lynxcontrols/layout';`
|
|
4
|
+
|
|
5
|
+
SAC's name for `G9UnsavedBar` (the same control).
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `dirty`: boolean
|
|
9
|
+
- `message`: string
|
|
10
|
+
- `onSave`: () => void
|
|
11
|
+
- `saveText`: string
|
|
12
|
+
- `onDiscard?`: () => void
|
|
13
|
+
- `discardText?`: string
|
|
14
|
+
- `busy?`: boolean
|
|
15
|
+
|
|
16
|
+
Example: `<G9SaveBar dirty message="message" onSave={() => {}} saveText="saveText" />`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# G9ScaleInput
|
|
2
|
+
|
|
3
|
+
`import { G9ScaleInput } from '@g9tm/lynxcontrols/survey';`
|
|
4
|
+
|
|
5
|
+
A Likert / 0–10 scale (Riskara Scale, satisfaction questions): one row of numbered targets, the ends labelled.
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `value?`: number
|
|
9
|
+
- `onChange?`: (value: number) => void
|
|
10
|
+
- `disabled?`: boolean = false
|
|
11
|
+
- `defaultValue?`: number
|
|
12
|
+
- `endLabels?`: string[]
|
|
13
|
+
- `max?`: number = 5
|
|
14
|
+
- `min?`: number = 1
|
|
15
|
+
- `accessibilityLabel?`: string
|
|
16
|
+
|
|
17
|
+
Example: `<G9ScaleInput />`
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# G9ScrollSpyBar
|
|
2
|
+
|
|
3
|
+
`import { G9ScrollSpyBar } from '@g9tm/lynxcontrols/layout';`
|
|
4
|
+
|
|
5
|
+
A row of section pills that follows the page (SAC menu sections): the active one is filled and kept in view; a tap reports its key.
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `active`: string
|
|
9
|
+
- `onSelect`: (key: K) => void
|
|
10
|
+
- `sections`: object[]
|
|
11
|
+
|
|
12
|
+
Example: `<G9ScrollSpyBar active="active" onSelect={() => {}} sections={sections} />`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# G9SearchEntry
|
|
2
|
+
|
|
3
|
+
`import { G9SearchEntry } from '@g9tm/lynxcontrols/fields';`
|
|
4
|
+
|
|
5
|
+
Search field (MAUI `G9SearchEntry`): a `G9TextEntry` with a leading search glyph, the clear button, dictation on, the localized `search` placeholder, the floating-label clearance reserved, the keyboard's search key, and
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `label?`: string
|
|
9
|
+
- `value?`: string
|
|
10
|
+
- `leadingIcon?`: icon
|
|
11
|
+
- `placeholder?`: string
|
|
12
|
+
- `onValueChange?`: (value: string, details: G9ValueChangeDetails) => void
|
|
13
|
+
- `disabled?`: boolean = false
|
|
14
|
+
- `confirmType?`: 'search' | 'done' | 'send' | 'go' | 'next' = "done"
|
|
15
|
+
- `inputType?`: 'number' | 'default' | 'email' | 'phone' | 'custom' | 'url' | 'letters' | 'decimal' | 'signedNumber' | 'signedDecimal' | 'lettersAndNumbers' | 'lettersNumbersSpace' | 'persianLetters' | 'persianLettersAndNumbers' | 'multilingualLettersAndNumbers' | 'noSpecialChars' = "default"
|
|
16
|
+
|
|
17
|
+
Example: `<G9SearchEntry />`
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# G9Section
|
|
2
|
+
|
|
3
|
+
`import { G9Section } from '@g9tm/lynxcontrols/layout';`
|
|
4
|
+
|
|
5
|
+
A titled block of a page or form (SAC Section/Panel, ShopManager Section, Riskara SectionHead, G9Hub SettingsGroup).
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `title?`: string
|
|
9
|
+
- `children?`: ReactNode
|
|
10
|
+
- `icon?`: icon
|
|
11
|
+
- `subtitle?`: string
|
|
12
|
+
- `actions?`: ReactNode
|
|
13
|
+
- `card?`: boolean
|
|
14
|
+
- `padding?`: number = 16
|
|
15
|
+
|
|
16
|
+
Example: `<G9Section />`
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# G9SectionHeader
|
|
2
|
+
|
|
3
|
+
`import { G9SectionHeader } from '@g9tm/lynxcontrols/layout';`
|
|
4
|
+
|
|
5
|
+
A section's title row: icon, title, a line under it, and an action at the end.
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `title`: string
|
|
9
|
+
- `icon?`: icon
|
|
10
|
+
- `subtitle?`: string
|
|
11
|
+
- `actions?`: ReactNode
|
|
12
|
+
- `action?`: object
|
|
13
|
+
|
|
14
|
+
Example: `<G9SectionHeader title="Label" />`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# G9Segmented
|
|
2
|
+
|
|
3
|
+
`import { G9Segmented } from '@g9tm/lynxcontrols/toggle';`
|
|
4
|
+
|
|
5
|
+
A segmented control (SAC Seg + kit Segmented, ShopManager seg, G9Hub Segmented, Riskara Seg).
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `items`: object[]
|
|
9
|
+
- `value?`: string
|
|
10
|
+
- `size?`: 'sm' | 'md' | 'lg' = "md"
|
|
11
|
+
- `onChange?`: (key: K) => void
|
|
12
|
+
- `disabled?`: boolean = false
|
|
13
|
+
- `appearance?`: 'filled' | 'lift' | 'underline' = "lift"
|
|
14
|
+
- `defaultValue?`: string
|
|
15
|
+
- `fit?`: 'content' | 'equal'
|
|
16
|
+
|
|
17
|
+
Example: `<G9Segmented items={items} />`
|