@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,15 @@
|
|
|
1
|
+
# G9ContextMenu
|
|
2
|
+
|
|
3
|
+
`import { G9ContextMenu } from '@g9tm/lynxcontrols/popover';`
|
|
4
|
+
|
|
5
|
+
A long-press menu on its child (G9Hub ContextMenu, a message, a row): a light haptic, then the menu by the child.
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `items`: object[]
|
|
9
|
+
- `onSelect`: (key: string) => void
|
|
10
|
+
- `title?`: string
|
|
11
|
+
- `children?`: ReactNode
|
|
12
|
+
- `disabled?`: boolean
|
|
13
|
+
- `onOpen?`: () => void
|
|
14
|
+
|
|
15
|
+
Example: `<G9ContextMenu items={items} onSelect={() => {}} />`
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# G9CornerBadge
|
|
2
|
+
|
|
3
|
+
`import { G9CornerBadge } from '@g9tm/lynxcontrols/base';`
|
|
4
|
+
|
|
5
|
+
The one corner badge of the library (MAUI `G9CornerBadge`, guide rule 14): centred on the host's top-trailing corner (top-left in RTL), no negative margins (the host reserves half the badge), the number dead-centred, nev
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `text?`: string
|
|
9
|
+
- `ringColor?`: color = "var(--g9-surface)"
|
|
10
|
+
- `textColor?`: color = "var(--g9-on-error)"
|
|
11
|
+
- `color?`: color = "var(--g9-error)"
|
|
12
|
+
- `dot?`: boolean
|
|
13
|
+
- `mirrorTextInRtl?`: boolean = true
|
|
14
|
+
|
|
15
|
+
Example: `<G9CornerBadge />`
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# G9CultureDateTimeLabel
|
|
2
|
+
|
|
3
|
+
`import { G9CultureDateTimeLabel } from '@g9tm/lynxcontrols/display';`
|
|
4
|
+
|
|
5
|
+
A culture-aware date/time text (MAUI `G9CultureDateTimeLabel`); re-renders on culture changes.
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `value?`: object
|
|
9
|
+
- `disabled?`: boolean = false
|
|
10
|
+
- `displayMode?`: 'dateTime' | 'date' | 'time' | 'relative' | 'relativeDay' = "dateTime"
|
|
11
|
+
- `relativeDayNow?`: () => void
|
|
12
|
+
- `emptyText?`: string = ""
|
|
13
|
+
- `utcOffsetMinutes?`: number = 0
|
|
14
|
+
- `accessibilityLabel?`: string
|
|
15
|
+
|
|
16
|
+
Example: `<G9CultureDateTimeLabel />`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# G9DateTimePicker
|
|
2
|
+
|
|
3
|
+
`import { G9DateTimePicker } from '@g9tm/lynxcontrols/pickers';`
|
|
4
|
+
|
|
5
|
+
Date, time or date-time in an outlined box (MAUI `G9DateTimePicker`): a tap opens the drum sheet (Cancel, title, Done, live preview, Today/Now, day/month/year and hour/minute wheels).
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `label?`: string
|
|
9
|
+
- `value?`: object
|
|
10
|
+
- `leadingIcon?`: icon
|
|
11
|
+
- `placeholder?`: string
|
|
12
|
+
- `onValueChange?`: (value: G9LocalDateTime | null) => void
|
|
13
|
+
- `disabled?`: boolean = false
|
|
14
|
+
- `displayFormat?`: 'custom' | 'shortDate' | 'longDate' | 'timeOnly' | 'shortDateTime' | 'longDateTime' = "shortDate"
|
|
15
|
+
- `mode?`: 'dateTime' | 'date' | 'time' = "date"
|
|
16
|
+
|
|
17
|
+
Example: `<G9DateTimePicker />`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# G9DayStepper
|
|
2
|
+
|
|
3
|
+
`import { G9DayStepper } from '@g9tm/lynxcontrols/pickers';`
|
|
4
|
+
|
|
5
|
+
One day with back/forward and quick jumps (SAC EventsPage DatePick, reservation days): the calendar of the culture on screen, an ISO-able `G9LocalDate` underneath; the arrows point the reading direction's way.
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `today`: object
|
|
9
|
+
- `value?`: object
|
|
10
|
+
- `onChange?`: (day: G9LocalDate) => void
|
|
11
|
+
- `disabled?`: boolean = false
|
|
12
|
+
- `defaultValue?`: object
|
|
13
|
+
- `max?`: object
|
|
14
|
+
- `min?`: object
|
|
15
|
+
- `pattern?`: string = "dddd d MMMM"
|
|
16
|
+
|
|
17
|
+
Example: `<G9DayStepper today={today} />`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# G9DeferredContent
|
|
2
|
+
|
|
3
|
+
`import { G9DeferredContent } from '@g9tm/lynxcontrols/deferred';`
|
|
4
|
+
|
|
5
|
+
Shows a placeholder first and the real content after the host's open animation (MAUI `DeferredContentView`), so an expensive body never blocks the animation and the user sees motion, not a blank host.
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `children?`: ReactNode
|
|
9
|
+
- `placeholder?`: ReactNode
|
|
10
|
+
- `onContentCreated?`: () => void
|
|
11
|
+
- `onContentLoaded?`: () => void
|
|
12
|
+
- `onRevealSettled?`: () => void
|
|
13
|
+
- `render?`: () => ReactNode
|
|
14
|
+
- `renderError?`: (error, retry) => ReactNode
|
|
15
|
+
- `autoLoad?`: boolean = true
|
|
16
|
+
|
|
17
|
+
Example: `<G9DeferredContent />`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# G9Delta
|
|
2
|
+
|
|
3
|
+
`import { G9Delta } from '@g9tm/lynxcontrols/display';`
|
|
4
|
+
|
|
5
|
+
A change against the comparison period (SAC Delta, Riskara Delta/ChangePill): sign always shown and kept in its own left-to-right run, so right-to-left text never moves it; colour from what is good news.
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `value`: number
|
|
9
|
+
- `goodWhen?`: 'up' | 'down' = "up"
|
|
10
|
+
- `kind?`: 'number' | 'percent' = "percent"
|
|
11
|
+
- `appearance?`: 'pill' | 'plain'
|
|
12
|
+
- `arrow?`: boolean = true
|
|
13
|
+
- `decimals?`: number = 1
|
|
14
|
+
- `fromFraction?`: boolean
|
|
15
|
+
- `suffix?`: string
|
|
16
|
+
|
|
17
|
+
Example: `<G9Delta value={1} />`
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# G9DesignNode
|
|
2
|
+
|
|
3
|
+
`import { G9DesignNode } from '@g9tm/lynxcontrols/design';`
|
|
4
|
+
|
|
5
|
+
A layout-neutral box that is an anchor (the probe measures it, hit-tests it, follows it).
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `label?`: string
|
|
9
|
+
- `children?`: ReactNode
|
|
10
|
+
- `kind?`: 'label' | 'image' | 'button' | 'entry' | 'toggle' | 'picker' | 'chips' | 'tab' | 'tab-view' | 'list' | 'scroll' | 'item' | 'card' | 'map' | 'view' = "view"
|
|
11
|
+
- `name?`: string
|
|
12
|
+
|
|
13
|
+
Example: `<G9DesignNode />`
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# G9DesignScope
|
|
2
|
+
|
|
3
|
+
`import { G9DesignScope } from '@g9tm/lynxcontrols/design';`
|
|
4
|
+
|
|
5
|
+
Hands every `G9DesignNode` inside an id of its own (`<prefix>.<n>`, in mount order, kept for the node's life), so a design tool gets an anchor — and so a rect, a hit test and a selection box — for each node of a tree it
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `children?`: ReactNode
|
|
9
|
+
- `prefix?`: string = "design"
|
|
10
|
+
|
|
11
|
+
Example: `<G9DesignScope />`
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# G9DragList
|
|
2
|
+
|
|
3
|
+
`import { G9DragList } from '@g9tm/lynxcontrols/list';`
|
|
4
|
+
|
|
5
|
+
Reorder by dragging (G9Hub board columns, ShopManager menu order): long-press lifts a row, it follows the finger, the rows it passes slide aside, release drops it.
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `getKey`: (item: T) => void
|
|
9
|
+
- `items`: NonNullable<T>[]
|
|
10
|
+
- `onReorder`: (items: T[]) => void
|
|
11
|
+
- `renderItem`: (item, dragging) => ReactNode
|
|
12
|
+
- `disabled?`: boolean
|
|
13
|
+
- `rowHeight?`: number = 56
|
|
14
|
+
|
|
15
|
+
Example: `<G9DragList getKey={getKey} items={items} onReorder={() => {}} renderItem={renderItem} />`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# G9EdgePanel
|
|
2
|
+
|
|
3
|
+
`import { G9EdgePanel } from '@g9tm/lynxcontrols/edge-panel';`
|
|
4
|
+
|
|
5
|
+
A panel that slides in from a screen edge (MAUI `G9EdgePanel`), mounted in the host's `edgePanel` layer whatever its place in the tree.
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `side?`: 'left' | 'right' = "left"
|
|
9
|
+
- `onClosed?`: () => void
|
|
10
|
+
- `onClosing?`: () => void
|
|
11
|
+
- `onOpenChange?`: (open: boolean) => void
|
|
12
|
+
- `onOpened?`: () => void
|
|
13
|
+
- `collapsedTabIcon?`: icon
|
|
14
|
+
- `maxPanelHeight?`: number
|
|
15
|
+
- `panelBackgroundColor?`: color
|
|
16
|
+
|
|
17
|
+
Example: `<G9EdgePanel />`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# G9Editor
|
|
2
|
+
|
|
3
|
+
`import { G9Editor } from '@g9tm/lynxcontrols/fields';`
|
|
4
|
+
|
|
5
|
+
Multi-line outlined text area (MAUI `G9Editor`): the text-entry behaviour on a `<textarea>`, a microphone pinned to the bottom-end corner whenever dictation is available, height from `minimumEditorHeight`/`maxEditorHeigh
|
|
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
|
+
- `inputType?`: 'number' | 'default' | 'email' | 'phone' | 'custom' | 'url' | 'letters' | 'decimal' | 'signedNumber' | 'signedDecimal' | 'lettersAndNumbers' | 'lettersNumbersSpace' | 'persianLetters' | 'persianLettersAndNumbers' | 'multilingualLettersAndNumbers' | 'noSpecialChars' = "default"
|
|
15
|
+
- `keyboardType?`: 'number' | 'default' | 'email' | 'phone' | 'password' | 'url' = "default"
|
|
16
|
+
|
|
17
|
+
Example: `<G9Editor />`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# G9EmptyState
|
|
2
|
+
|
|
3
|
+
`import { G9EmptyState } from '@g9tm/lynxcontrols/display';`
|
|
4
|
+
|
|
5
|
+
Nothing here yet: what this is, and the one step that fills it (every app's Empty).
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `title`: string
|
|
9
|
+
- `children?`: ReactNode
|
|
10
|
+
- `icon?`: icon = "search"
|
|
11
|
+
- `message?`: string
|
|
12
|
+
- `compact?`: boolean
|
|
13
|
+
- `tone?`: 'primary' | 'info' | 'success' | 'warning' | 'error' | 'accent' | 'neutral'
|
|
14
|
+
- `art?`: ReactNode
|
|
15
|
+
- `action?`: object
|
|
16
|
+
|
|
17
|
+
Example: `<G9EmptyState title="Label" />`
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# G9ErrorBoundary
|
|
2
|
+
|
|
3
|
+
`import { G9ErrorBoundary } from '@g9tm/lynxcontrols/display';`
|
|
4
|
+
|
|
5
|
+
Keeps a failing part from taking the page down (SAC ErrorBoundary): a fallback with a retry, the error reported once.
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `fallback`: (error, retry) => ReactNode
|
|
9
|
+
- `children?`: ReactNode
|
|
10
|
+
- `onError?`: (error: unknown) => void
|
|
11
|
+
- `source?`: string
|
|
12
|
+
|
|
13
|
+
Example: `<G9ErrorBoundary fallback={fallback} />`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# G9Expander
|
|
2
|
+
|
|
3
|
+
`import { G9Expander } from '@g9tm/lynxcontrols/expander';`
|
|
4
|
+
|
|
5
|
+
Collapsible section (MAUI `G9Expander`): only the header toggles; the chevron turns 180° and the content height animates over 220 ms (CSS transition on the measured height; instant when it cannot be measured).
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `title?`: string
|
|
9
|
+
- `children?`: ReactNode
|
|
10
|
+
- `icon?`: icon
|
|
11
|
+
- `disabled?`: boolean = false
|
|
12
|
+
- `onExpandedChange?`: (expanded: boolean) => void
|
|
13
|
+
- `chevronColor?`: color = "var(--g9-text-secondary)"
|
|
14
|
+
- `contentPadding?`: number[] = 0
|
|
15
|
+
- `headerHeight?`: number = 48
|
|
16
|
+
|
|
17
|
+
Example: `<G9Expander />`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# G9FloatingOrb
|
|
2
|
+
|
|
3
|
+
`import { G9FloatingOrb } from '@g9tm/lynxcontrols/orb';`
|
|
4
|
+
|
|
5
|
+
A control that floats over a page and the operator can move: drag it anywhere — it snaps to the nearer side along the edge, remembered for the app session; push it past the edge — it tucks, a sliver of the disc left show
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `children?`: ReactNode
|
|
9
|
+
- `size?`: number = 84
|
|
10
|
+
- `side?`: 'left' | 'right' = "right"
|
|
11
|
+
- `onTap?`: () => void
|
|
12
|
+
- `discSize?`: number = 60
|
|
13
|
+
- `accessory?`: ReactNode
|
|
14
|
+
- `hidden?`: boolean
|
|
15
|
+
- `hold?`: object
|
|
16
|
+
|
|
17
|
+
Example: `<G9FloatingOrb />`
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# G9FormField
|
|
2
|
+
|
|
3
|
+
`import { G9FormField } from '@g9tm/lynxcontrols/fields';`
|
|
4
|
+
|
|
5
|
+
A label above any control, a hint or an error below (SAC Field, G9Hub Field): for controls without a floating label.
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `label`: string
|
|
9
|
+
- `children?`: ReactNode
|
|
10
|
+
- `hint?`: string
|
|
11
|
+
- `aside?`: ReactNode
|
|
12
|
+
- `error?`: string
|
|
13
|
+
- `required?`: boolean
|
|
14
|
+
|
|
15
|
+
Example: `<G9FormField label="Label" />`
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# G9HScroll
|
|
2
|
+
|
|
3
|
+
`import { G9HScroll } from '@g9tm/lynxcontrols/layout';`
|
|
4
|
+
|
|
5
|
+
A row of chips, tabs or cards that may not fit (SAC HScroll): it scrolls sideways and the far end fades while there is more, so a label is never squeezed to break mid-word.
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `children?`: ReactNode
|
|
9
|
+
- `alignItems?`: 'center' | 'flex-start' | 'flex-end' | 'stretch' = "center"
|
|
10
|
+
- `fadeColor?`: color | boolean
|
|
11
|
+
- `gap?`: number = 8
|
|
12
|
+
- `height?`: number | string = 40
|
|
13
|
+
- `padding?`: number = 16
|
|
14
|
+
- `wrapWhenWide?`: boolean
|
|
15
|
+
|
|
16
|
+
Example: `<G9HScroll />`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# G9HeaderActionButton
|
|
2
|
+
|
|
3
|
+
`import { G9HeaderActionButton } from '@g9tm/lynxcontrols/button';`
|
|
4
|
+
|
|
5
|
+
Toolbar/header action (MAUI `G9HeaderActionButton`): bordered square with a glyph, image or short text.
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `icon?`: icon = "G9Glyph.Menu"
|
|
9
|
+
- `onPress?`: () => void
|
|
10
|
+
- `disabled?`: boolean = false
|
|
11
|
+
- `badgeText?`: string
|
|
12
|
+
- `buttonText?`: string
|
|
13
|
+
- `buttonSize?`: number = 0
|
|
14
|
+
- `iconImage?`: object | object | object
|
|
15
|
+
- `iconSize?`: number = 24
|
|
16
|
+
|
|
17
|
+
Example: `<G9HeaderActionButton />`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# G9HoldButton
|
|
2
|
+
|
|
3
|
+
`import { G9HoldButton } from '@g9tm/lynxcontrols/orb';`
|
|
4
|
+
|
|
5
|
+
A calm, neutral button that acts only when HELD (MAUI TrackingOrbDetailsView's hold-to-stop): under a finger a light fill of `fillColor` grows from the leading edge over `durationMs`, a tick each second, and `onComplete`
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `onComplete`: () => void
|
|
9
|
+
- `text`: string
|
|
10
|
+
- `disabled?`: boolean
|
|
11
|
+
- `onTap?`: () => void
|
|
12
|
+
- `onTick?`: (seconds: number) => void
|
|
13
|
+
- `fillColor?`: color = "var(--g9-error)"
|
|
14
|
+
- `delayMs?`: number = 300
|
|
15
|
+
- `durationMs?`: number = 5000
|
|
16
|
+
|
|
17
|
+
Example: `<G9HoldButton onComplete={() => {}} text="Label" />`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# G9Host
|
|
2
|
+
|
|
3
|
+
`import { G9Host } from '@g9tm/lynxcontrols/host';`
|
|
4
|
+
|
|
5
|
+
The page frame (MAUI `G9PageBase` + `G9PageTemplate`): the content and the overlay layers in a fixed z-order (`content` → `edgePanel` → `sheets` → `popups` → `feedback` → `floating`, then the loading cover), the page's b
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `children?`: ReactNode
|
|
9
|
+
- `computeBottomSafeAreaWithTabBar?`: (bottomInset: number) => void
|
|
10
|
+
- `onAppearing?`: (context: { readonly signal: G9AbortSignal; }) => void
|
|
11
|
+
- `onBack?`: () => void
|
|
12
|
+
- `onDisappearing?`: () => void
|
|
13
|
+
- `routeClose?`: () => void
|
|
14
|
+
- `backdropColor?`: color
|
|
15
|
+
- `active?`: boolean = true
|
|
16
|
+
|
|
17
|
+
Example: `<G9Host />`
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# G9Icon
|
|
2
|
+
|
|
3
|
+
`import { G9Icon } from '@g9tm/lynxcontrols/icon';`
|
|
4
|
+
|
|
5
|
+
Draws one icon (MAUI `G9IconView` + `G9GlyphDrawable`): a built-in glyph as `<svg content>` (the golden SVG, coloured and weighted, from a bounded shared cache), a font glyph as `<text>` in its family, an SVG icon as `<s
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `icon`: icon
|
|
9
|
+
- `size?`: number = 20
|
|
10
|
+
- `imageCornerRadius?`: number = 4
|
|
11
|
+
- `color?`: color
|
|
12
|
+
- `mirrorInRtl?`: boolean = false
|
|
13
|
+
- `weight?`: number = 1
|
|
14
|
+
- `accessibilityLabel?`: string
|
|
15
|
+
|
|
16
|
+
Example: `<G9Icon icon="search" />`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# G9IconButton
|
|
2
|
+
|
|
3
|
+
`import { G9IconButton } from '@g9tm/lynxcontrols/button';`
|
|
4
|
+
|
|
5
|
+
Square icon button (MAUI `G9IconButton`): one icon, variant/ghost fill, optional circle, corner badge that is never dimmed (opacity applies to the frame only), loading spinner, minimum touch target.
|
|
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
|
+
- `badgeText?`: string
|
|
14
|
+
- `badgeColor?`: color = "var(--g9-error)"
|
|
15
|
+
- `baseBackgroundColor?`: color
|
|
16
|
+
|
|
17
|
+
Example: `<G9IconButton />`
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# G9IconRail
|
|
2
|
+
|
|
3
|
+
`import { G9IconRail } from '@g9tm/lynxcontrols/shell';`
|
|
4
|
+
|
|
5
|
+
The tablet rail (SAC IconRail, Riskara tablet frame): icons with short labels in a narrow column.
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `destinations`: object[]
|
|
9
|
+
- `onChange`: (key: K) => void
|
|
10
|
+
- `value`: string
|
|
11
|
+
- `footer?`: ReactNode
|
|
12
|
+
- `header?`: ReactNode
|
|
13
|
+
- `width?`: number = 72
|
|
14
|
+
|
|
15
|
+
Example: `<G9IconRail destinations={destinations} onChange={() => {}} value="value" />`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# G9IconSlot
|
|
2
|
+
|
|
3
|
+
`import { G9IconSlot } from '@g9tm/lynxcontrols/icon';`
|
|
4
|
+
|
|
5
|
+
Renders one icon slot (MAUI `G9IconFactory.Create`): an emoji as text (no fixed height, an emoji renders taller than its em square), an icon as `G9Icon`, an image through the provider's image renderer in a rounded clip,
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `size?`: number = 20
|
|
9
|
+
- `icon?`: icon
|
|
10
|
+
- `imageCornerRadius?`: number = 4
|
|
11
|
+
- `color?`: color
|
|
12
|
+
- `emoji?`: string
|
|
13
|
+
- `image?`: object | object | object
|
|
14
|
+
- `imagePath?`: string
|
|
15
|
+
- `weight?`: number = 1
|
|
16
|
+
|
|
17
|
+
Example: `<G9IconSlot />`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# G9Image
|
|
2
|
+
|
|
3
|
+
`import { G9Image } from '@g9tm/lynxcontrols/display';`
|
|
4
|
+
|
|
5
|
+
A photo with a calm placeholder, a fade-in and a designed fallback.
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `onError?`: () => void
|
|
9
|
+
- `onLoad?`: () => void
|
|
10
|
+
- `fallbackIcon?`: icon
|
|
11
|
+
- `radius?`: number
|
|
12
|
+
- `alt?`: string
|
|
13
|
+
- `aspectRatio?`: number
|
|
14
|
+
- `fadeIn?`: boolean = true
|
|
15
|
+
- `fit?`: 'contain' | 'stretch' | 'cover'
|
|
16
|
+
|
|
17
|
+
Example: `<G9Image />`
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# G9InlineMessage
|
|
2
|
+
|
|
3
|
+
`import { G9InlineMessage } from '@g9tm/lynxcontrols/display';`
|
|
4
|
+
|
|
5
|
+
A message in the flow of a page (ShopManager Message, Riskara Disclaimer, form errors): calm, never a modal.
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `text`: string
|
|
9
|
+
- `title?`: string
|
|
10
|
+
- `children?`: ReactNode
|
|
11
|
+
- `icon?`: icon
|
|
12
|
+
- `tone?`: 'primary' | 'info' | 'success' | 'warning' | 'error' | 'accent' | 'neutral' = "info"
|
|
13
|
+
- `onDismiss?`: () => void
|
|
14
|
+
- `action?`: object
|
|
15
|
+
|
|
16
|
+
Example: `<G9InlineMessage text="Label" />`
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# G9KeepAlive
|
|
2
|
+
|
|
3
|
+
`import { G9KeepAlive } from '@g9tm/lynxcontrols/provider';`
|
|
4
|
+
|
|
5
|
+
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.
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `active`: boolean
|
|
9
|
+
- `children?`: ReactNode
|
|
10
|
+
|
|
11
|
+
Example: `<G9KeepAlive active />`
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# G9Keycap
|
|
2
|
+
|
|
3
|
+
`import { G9Keycap } from '@g9tm/lynxcontrols/display';`
|
|
4
|
+
|
|
5
|
+
A keyboard shortcut as a key cap (SAC `Keycap`, G9Hub `Kbd`): set beside a label, never glued into its text, so «پذیرش A» does not read as a word.
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `combo`: string
|
|
9
|
+
- `size?`: 'sm' | 'md'
|
|
10
|
+
- `color?`: color
|
|
11
|
+
- `platform?`: 'mac' | 'other'
|
|
12
|
+
|
|
13
|
+
Example: `<G9Keycap combo="combo" />`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# G9Kpi
|
|
2
|
+
|
|
3
|
+
`import { G9Kpi } from '@g9tm/lynxcontrols/display';`
|
|
4
|
+
|
|
5
|
+
The KPI tile (SAC Kpi, ShopManager Tile, G9Hub StatTile, Riskara Kpi): label and icon, the value large, the change, a trend.
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `label`: string
|
|
9
|
+
- `value`: string
|
|
10
|
+
- `icon?`: icon
|
|
11
|
+
- `onPress?`: () => void
|
|
12
|
+
- `tone?`: 'primary' | 'info' | 'success' | 'warning' | 'error' | 'accent' | 'neutral'
|
|
13
|
+
- `loading?`: boolean
|
|
14
|
+
- `trend?`: ReactNode
|
|
15
|
+
- `delta?`: object
|
|
16
|
+
|
|
17
|
+
Example: `<G9Kpi label="Label" value="value" />`
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# G9KpiGrid
|
|
2
|
+
|
|
3
|
+
`import { G9KpiGrid } from '@g9tm/lynxcontrols/display';`
|
|
4
|
+
|
|
5
|
+
KPI tiles in rows of `columns`; each tile takes an equal share (re-renders only when the layout class changes).
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `columns?`: object = "{ phone: 2, tablet: 3, desktop: 4 }"
|
|
9
|
+
- `children?`: ReactNode
|
|
10
|
+
- `gap?`: number = 12
|
|
11
|
+
|
|
12
|
+
Example: `<G9KpiGrid />`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# G9ListRow
|
|
2
|
+
|
|
3
|
+
`import { G9ListRow } from '@g9tm/lynxcontrols/list';`
|
|
4
|
+
|
|
5
|
+
One line of a list (SAC kit ListRow, ShopManager Row, G9Hub SettingsRow): icon or avatar at the start, title and a line or two, a value or control at the end, a chevron for drill-down.
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `title`: string
|
|
9
|
+
- `value?`: string
|
|
10
|
+
- `icon?`: icon
|
|
11
|
+
- `subtitle?`: string
|
|
12
|
+
- `onPress?`: () => void
|
|
13
|
+
- `disabled?`: boolean = false
|
|
14
|
+
- `iconTone?`: 'primary' | 'info' | 'success' | 'warning' | 'error' | 'accent' | 'neutral' = "neutral"
|
|
15
|
+
- `hint?`: string
|
|
16
|
+
|
|
17
|
+
Example: `<G9ListRow title="Label" />`
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# G9LiveBadge
|
|
2
|
+
|
|
3
|
+
`import { G9LiveBadge } from '@g9tm/lynxcontrols/display';`
|
|
4
|
+
|
|
5
|
+
«● زنده» — a pulsing dot and a word (live prices, live orders).
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `text`: string
|
|
9
|
+
- `tone?`: 'primary' | 'info' | 'success' | 'warning' | 'error' | 'accent' | 'neutral'
|
|
10
|
+
|
|
11
|
+
Example: `<G9LiveBadge text="Label" />`
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# G9LiveDot
|
|
2
|
+
|
|
3
|
+
`import { G9LiveDot } from '@g9tm/lynxcontrols/display';`
|
|
4
|
+
|
|
5
|
+
A live dot with an expanding ring (Riskara Pulse, «online», a running sync).
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `size?`: number = 8
|
|
9
|
+
- `tone?`: 'primary' | 'info' | 'success' | 'warning' | 'error' | 'accent' | 'neutral' = "success"
|
|
10
|
+
- `pulse?`: boolean = true
|
|
11
|
+
|
|
12
|
+
Example: `<G9LiveDot />`
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# G9LoadState
|
|
2
|
+
|
|
3
|
+
`import { G9LoadState } from '@g9tm/lynxcontrols/display';`
|
|
4
|
+
|
|
5
|
+
A page body while its data loads, or its error with a retry (SAC Loading).
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `onRetry?`: () => void
|
|
9
|
+
- `message?`: string
|
|
10
|
+
- `retryText?`: string
|
|
11
|
+
- `error?`: string
|
|
12
|
+
|
|
13
|
+
Example: `<G9LoadState />`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# G9LoadableSheetContent
|
|
2
|
+
|
|
3
|
+
`import { G9LoadableSheetContent } from '@g9tm/lynxcontrols/sheet';`
|
|
4
|
+
|
|
5
|
+
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
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `children`: (data) => ReactNode
|
|
9
|
+
- `load`: (signal: G9AbortSignal) => void
|
|
10
|
+
- `skeleton?`: 'none' | 'formFields' | 'listRows' = "none"
|
|
11
|
+
- `onLoadFailed?`: (error: unknown) => void
|
|
12
|
+
- `onLoadingChange?`: (loading: boolean) => void
|
|
13
|
+
- `loadingHeight?`: number = 180
|
|
14
|
+
- `renderEmpty?`: () => ReactNode
|
|
15
|
+
- `renderError?`: (error) => ReactNode
|
|
16
|
+
|
|
17
|
+
Example: `<G9LoadableSheetContent children={children} load={load} />`
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# G9LockOverlay
|
|
2
|
+
|
|
3
|
+
`import { G9LockOverlay } from '@g9tm/lynxcontrols/display';`
|
|
4
|
+
|
|
5
|
+
Premium content behind a lock (Riskara subscriptions): the content stays laid out (so the page keeps its size) but dimmed and untouchable, with a lock, a line and the unlock action over it.
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `locked`: boolean
|
|
9
|
+
- `title`: string
|
|
10
|
+
- `children?`: ReactNode
|
|
11
|
+
- `onAction?`: () => void
|
|
12
|
+
- `actionText?`: string
|
|
13
|
+
- `message?`: string
|
|
14
|
+
|
|
15
|
+
Example: `<G9LockOverlay locked title="Label" />`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# G9Menu
|
|
2
|
+
|
|
3
|
+
`import { G9Menu } from '@g9tm/lynxcontrols/popover';`
|
|
4
|
+
|
|
5
|
+
A menu (G9Hub Menu): a popover by the anchor on wide windows, an action sheet from the bottom on phones.
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `items`: object[]
|
|
9
|
+
- `onClose`: () => void
|
|
10
|
+
- `onSelect`: (key: string) => void
|
|
11
|
+
- `open`: boolean
|
|
12
|
+
- `title?`: string
|
|
13
|
+
- `placement?`: 'end' | 'start' | 'top' | 'bottom' | 'bottom-start' | 'bottom-end' | 'top-start' | 'top-end' = "bottom-start"
|
|
14
|
+
- `cancelText?`: string
|
|
15
|
+
- `matchWidth?`: boolean
|
|
16
|
+
|
|
17
|
+
Example: `<G9Menu items={items} onClose={() => {}} onSelect={() => {}} open />`
|