@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,174 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols/fields` (generated)
|
|
2
|
+
|
|
3
|
+
# G9Editor
|
|
4
|
+
|
|
5
|
+
`import { G9Editor } from '@g9tm/lynxcontrols/fields';`
|
|
6
|
+
|
|
7
|
+
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
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `label?`: string
|
|
11
|
+
- `value?`: string
|
|
12
|
+
- `leadingIcon?`: icon
|
|
13
|
+
- `placeholder?`: string
|
|
14
|
+
- `onValueChange?`: (value: string, details: G9ValueChangeDetails) => void
|
|
15
|
+
- `disabled?`: boolean = false
|
|
16
|
+
- `inputType?`: 'number' | 'default' | 'email' | 'phone' | 'custom' | 'url' | 'letters' | 'decimal' | 'signedNumber' | 'signedDecimal' | 'lettersAndNumbers' | 'lettersNumbersSpace' | 'persianLetters' | 'persianLettersAndNumbers' | 'multilingualLettersAndNumbers' | 'noSpecialChars' = "default"
|
|
17
|
+
- `keyboardType?`: 'number' | 'default' | 'email' | 'phone' | 'password' | 'url' = "default"
|
|
18
|
+
|
|
19
|
+
Example: `<G9Editor />`
|
|
20
|
+
|
|
21
|
+
# G9FormField
|
|
22
|
+
|
|
23
|
+
`import { G9FormField } from '@g9tm/lynxcontrols/fields';`
|
|
24
|
+
|
|
25
|
+
A label above any control, a hint or an error below (SAC Field, G9Hub Field): for controls without a floating label.
|
|
26
|
+
|
|
27
|
+
Props:
|
|
28
|
+
- `label`: string
|
|
29
|
+
- `children?`: ReactNode
|
|
30
|
+
- `hint?`: string
|
|
31
|
+
- `aside?`: ReactNode
|
|
32
|
+
- `error?`: string
|
|
33
|
+
- `required?`: boolean
|
|
34
|
+
|
|
35
|
+
Example: `<G9FormField label="Label" />`
|
|
36
|
+
|
|
37
|
+
# G9NumberEntry
|
|
38
|
+
|
|
39
|
+
`import { G9NumberEntry } from '@g9tm/lynxcontrols/fields';`
|
|
40
|
+
|
|
41
|
+
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
|
|
42
|
+
|
|
43
|
+
Props:
|
|
44
|
+
- `label?`: string
|
|
45
|
+
- `value?`: number
|
|
46
|
+
- `leadingIcon?`: icon
|
|
47
|
+
- `placeholder?`: string
|
|
48
|
+
- `onValueChange?`: (value: number | null) => void
|
|
49
|
+
- `disabled?`: boolean = false
|
|
50
|
+
- `onBlur?`: () => void
|
|
51
|
+
- `onConfirm?`: (value: number | null) => void
|
|
52
|
+
|
|
53
|
+
Example: `<G9NumberEntry />`
|
|
54
|
+
|
|
55
|
+
# G9NumPad
|
|
56
|
+
|
|
57
|
+
`import { G9NumPad } from '@g9tm/lynxcontrols/fields';`
|
|
58
|
+
|
|
59
|
+
A big numeric keypad (SAC PinPad and CodePad): works whatever the system keyboard does (an in-app browser that never opens it).
|
|
60
|
+
|
|
61
|
+
Props:
|
|
62
|
+
- `onKey`: (key: string) => void
|
|
63
|
+
- `disabled?`: boolean
|
|
64
|
+
- `dark?`: boolean
|
|
65
|
+
- `extraKey?`: string
|
|
66
|
+
|
|
67
|
+
Example: `<G9NumPad onKey={() => {}} />`
|
|
68
|
+
|
|
69
|
+
# G9OutlinedField
|
|
70
|
+
|
|
71
|
+
`import { G9OutlinedField } from '@g9tm/lynxcontrols/fields';`
|
|
72
|
+
|
|
73
|
+
The outlined field frame (MAUI `G9OutlinedFieldBase`): outline with a notched floating label, leading and trailing icon slots, helper/error line and counter.
|
|
74
|
+
|
|
75
|
+
Props:
|
|
76
|
+
- `focused`: boolean
|
|
77
|
+
- `hasValue`: boolean
|
|
78
|
+
- `label?`: string
|
|
79
|
+
- `children?`: ReactNode
|
|
80
|
+
- `leadingIcon?`: icon
|
|
81
|
+
- `placeholder?`: string
|
|
82
|
+
- `disabled?`: boolean = false
|
|
83
|
+
- `onFocusRequest?`: () => void
|
|
84
|
+
|
|
85
|
+
Example: `<G9OutlinedField focused hasValue />`
|
|
86
|
+
|
|
87
|
+
# G9PinEntry
|
|
88
|
+
|
|
89
|
+
`import { G9PinEntry } from '@g9tm/lynxcontrols/fields';`
|
|
90
|
+
|
|
91
|
+
One-time-code / PIN entry (MAUI `G9PinEntry`): a row of cells over one hidden `<input>` (the lynx-ui `InputOTP` pattern).
|
|
92
|
+
|
|
93
|
+
Props:
|
|
94
|
+
- `value?`: string
|
|
95
|
+
- `placeholder?`: string
|
|
96
|
+
- `onValueChange?`: (value: string) => void
|
|
97
|
+
- `disabled?`: boolean
|
|
98
|
+
- `type?`: 'number' | 'password' | 'letters' | 'alphanumeric' = "number"
|
|
99
|
+
- `onComplete?`: (value: string) => void
|
|
100
|
+
- `cellHeight?`: number = 52
|
|
101
|
+
- `cellWidth?`: number = 44
|
|
102
|
+
|
|
103
|
+
Example: `<G9PinEntry />`
|
|
104
|
+
|
|
105
|
+
# G9SearchEntry
|
|
106
|
+
|
|
107
|
+
`import { G9SearchEntry } from '@g9tm/lynxcontrols/fields';`
|
|
108
|
+
|
|
109
|
+
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
|
|
110
|
+
|
|
111
|
+
Props:
|
|
112
|
+
- `label?`: string
|
|
113
|
+
- `value?`: string
|
|
114
|
+
- `leadingIcon?`: icon
|
|
115
|
+
- `placeholder?`: string
|
|
116
|
+
- `onValueChange?`: (value: string, details: G9ValueChangeDetails) => void
|
|
117
|
+
- `disabled?`: boolean = false
|
|
118
|
+
- `confirmType?`: 'search' | 'done' | 'send' | 'go' | 'next' = "done"
|
|
119
|
+
- `inputType?`: 'number' | 'default' | 'email' | 'phone' | 'custom' | 'url' | 'letters' | 'decimal' | 'signedNumber' | 'signedDecimal' | 'lettersAndNumbers' | 'lettersNumbersSpace' | 'persianLetters' | 'persianLettersAndNumbers' | 'multilingualLettersAndNumbers' | 'noSpecialChars' = "default"
|
|
120
|
+
|
|
121
|
+
Example: `<G9SearchEntry />`
|
|
122
|
+
|
|
123
|
+
# G9TagEntry
|
|
124
|
+
|
|
125
|
+
`import { G9TagEntry } from '@g9tm/lynxcontrols/fields';`
|
|
126
|
+
|
|
127
|
+
Free words as removable chips (SAC ChipsIn): Enter, «،» or «,» adds; suggestions one tap away; duplicates ignored.
|
|
128
|
+
|
|
129
|
+
Props:
|
|
130
|
+
- `value?`: string[]
|
|
131
|
+
- `placeholder?`: string
|
|
132
|
+
- `onChange?`: (tags: readonly string[]) => void
|
|
133
|
+
- `disabled?`: boolean
|
|
134
|
+
- `defaultValue?`: string[]
|
|
135
|
+
- `max?`: number = 20
|
|
136
|
+
- `suggestions?`: string[]
|
|
137
|
+
|
|
138
|
+
Example: `<G9TagEntry />`
|
|
139
|
+
|
|
140
|
+
# G9TextEntry
|
|
141
|
+
|
|
142
|
+
`import { G9TextEntry } from '@g9tm/lynxcontrols/fields';`
|
|
143
|
+
|
|
144
|
+
Single-line outlined text field (MAUI `G9TextEntry`): floating label, input-type keyboard/filter/validation, password eye, clear button, optional dictation (`voiceEnabled` + `services.speech`).
|
|
145
|
+
|
|
146
|
+
Props:
|
|
147
|
+
- `label?`: string
|
|
148
|
+
- `value?`: string
|
|
149
|
+
- `leadingIcon?`: icon
|
|
150
|
+
- `placeholder?`: string
|
|
151
|
+
- `onValueChange?`: (value: string, details: G9ValueChangeDetails) => void
|
|
152
|
+
- `disabled?`: boolean = false
|
|
153
|
+
- `confirmType?`: 'search' | 'done' | 'send' | 'go' | 'next' = "done"
|
|
154
|
+
- `inputType?`: 'number' | 'default' | 'email' | 'phone' | 'custom' | 'url' | 'letters' | 'decimal' | 'signedNumber' | 'signedDecimal' | 'lettersAndNumbers' | 'lettersNumbersSpace' | 'persianLetters' | 'persianLettersAndNumbers' | 'multilingualLettersAndNumbers' | 'noSpecialChars' = "default"
|
|
155
|
+
|
|
156
|
+
Example: `<G9TextEntry />`
|
|
157
|
+
|
|
158
|
+
# G9TimeEntry
|
|
159
|
+
|
|
160
|
+
`import { G9TimeEntry } from '@g9tm/lynxcontrols/fields';`
|
|
161
|
+
|
|
162
|
+
A time typed as people type it (SAC TimeIn): «۷۳۰» becomes ۰۷:۳۰ on blur; an impossible time is shown as an error.
|
|
163
|
+
|
|
164
|
+
Props:
|
|
165
|
+
- `label?`: string
|
|
166
|
+
- `value?`: number
|
|
167
|
+
- `leadingIcon?`: icon
|
|
168
|
+
- `placeholder?`: string
|
|
169
|
+
- `onValueChange?`: (minutes: number | null) => void
|
|
170
|
+
- `disabled?`: boolean = false
|
|
171
|
+
- `onLeadingPress?`: () => void
|
|
172
|
+
- `onTrailingPress?`: () => void
|
|
173
|
+
|
|
174
|
+
Example: `<G9TimeEntry />`
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols/header` (generated)
|
|
2
|
+
|
|
3
|
+
# G9AppBar
|
|
4
|
+
|
|
5
|
+
`import { G9AppBar } from '@g9tm/lynxcontrols/header';`
|
|
6
|
+
|
|
7
|
+
The bar at a page's top (ShopManager Head/Bar/Back, mardomi Header, Riskara PhoneHeader, G9Hub PageHeader): back, title or brand with a place line, actions at the end.
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `title?`: string
|
|
11
|
+
- `children?`: ReactNode
|
|
12
|
+
- `subtitle?`: string
|
|
13
|
+
- `disabled?`: boolean = false
|
|
14
|
+
- `onBack?`: () => void
|
|
15
|
+
- `backLabel?`: string = "Back"
|
|
16
|
+
- `align?`: 'start' | 'center'
|
|
17
|
+
- `actions?`: ReactNode
|
|
18
|
+
|
|
19
|
+
Example: `<G9AppBar />`
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols/host` (generated)
|
|
2
|
+
|
|
3
|
+
# G9Host
|
|
4
|
+
|
|
5
|
+
`import { G9Host } from '@g9tm/lynxcontrols/host';`
|
|
6
|
+
|
|
7
|
+
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
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `children?`: ReactNode
|
|
11
|
+
- `computeBottomSafeAreaWithTabBar?`: (bottomInset: number) => void
|
|
12
|
+
- `onAppearing?`: (context: { readonly signal: G9AbortSignal; }) => void
|
|
13
|
+
- `onBack?`: () => void
|
|
14
|
+
- `onDisappearing?`: () => void
|
|
15
|
+
- `routeClose?`: () => void
|
|
16
|
+
- `backdropColor?`: color
|
|
17
|
+
- `active?`: boolean = true
|
|
18
|
+
|
|
19
|
+
Example: `<G9Host />`
|
|
20
|
+
|
|
21
|
+
# G9PageLoadingOverlay
|
|
22
|
+
|
|
23
|
+
`import { G9PageLoadingOverlay } from '@g9tm/lynxcontrols/host';`
|
|
24
|
+
|
|
25
|
+
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.
|
|
26
|
+
|
|
27
|
+
Props:
|
|
28
|
+
- `backgroundColor?`: color
|
|
29
|
+
- `spinnerColor?`: color
|
|
30
|
+
- `exiting?`: boolean
|
|
31
|
+
|
|
32
|
+
Example: `<G9PageLoadingOverlay />`
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols/icon` (generated)
|
|
2
|
+
|
|
3
|
+
# G9Art
|
|
4
|
+
|
|
5
|
+
`import { G9Art } from '@g9tm/lynxcontrols/icon';`
|
|
6
|
+
|
|
7
|
+
An illustration or a logo drawn in the theme (SAC `Art` / `Logo`): any viewBox, `currentColor` painted with a theme token resolved to its value (SVG content cannot read CSS variables).
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `svg`: string
|
|
11
|
+
- `color?`: color
|
|
12
|
+
- `height?`: number = 44
|
|
13
|
+
- `accessibilityLabel?`: string
|
|
14
|
+
|
|
15
|
+
Example: `<G9Art svg="svg" />`
|
|
16
|
+
|
|
17
|
+
# G9Icon
|
|
18
|
+
|
|
19
|
+
`import { G9Icon } from '@g9tm/lynxcontrols/icon';`
|
|
20
|
+
|
|
21
|
+
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
|
|
22
|
+
|
|
23
|
+
Props:
|
|
24
|
+
- `icon`: icon
|
|
25
|
+
- `size?`: number = 20
|
|
26
|
+
- `imageCornerRadius?`: number = 4
|
|
27
|
+
- `color?`: color
|
|
28
|
+
- `mirrorInRtl?`: boolean = false
|
|
29
|
+
- `weight?`: number = 1
|
|
30
|
+
- `accessibilityLabel?`: string
|
|
31
|
+
|
|
32
|
+
Example: `<G9Icon icon="search" />`
|
|
33
|
+
|
|
34
|
+
# G9IconSlot
|
|
35
|
+
|
|
36
|
+
`import { G9IconSlot } from '@g9tm/lynxcontrols/icon';`
|
|
37
|
+
|
|
38
|
+
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,
|
|
39
|
+
|
|
40
|
+
Props:
|
|
41
|
+
- `size?`: number = 20
|
|
42
|
+
- `icon?`: icon
|
|
43
|
+
- `imageCornerRadius?`: number = 4
|
|
44
|
+
- `color?`: color
|
|
45
|
+
- `emoji?`: string
|
|
46
|
+
- `image?`: object | object | object
|
|
47
|
+
- `imagePath?`: string
|
|
48
|
+
- `weight?`: number = 1
|
|
49
|
+
|
|
50
|
+
Example: `<G9IconSlot />`
|
|
51
|
+
|
|
52
|
+
# G9Swatch
|
|
53
|
+
|
|
54
|
+
`import { G9Swatch } from '@g9tm/lynxcontrols/icon';`
|
|
55
|
+
|
|
56
|
+
The variety colour swatch shown in place of an icon for items that only carry stored colours (MAUI `G9Visuals.CreateSwatch`), ONE convention for every surface that shows a variety (picker and combo triggers, selection-sh
|
|
57
|
+
|
|
58
|
+
Props:
|
|
59
|
+
- `size?`: number = 18
|
|
60
|
+
- `direction?`: 'ltr' | 'rtl'
|
|
61
|
+
- `first?`: string
|
|
62
|
+
- `second?`: string
|
|
63
|
+
|
|
64
|
+
Example: `<G9Swatch />`
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols-intro-carousel` (generated)
|
|
2
|
+
|
|
3
|
+
# G9IntroCarousel
|
|
4
|
+
|
|
5
|
+
`import { G9IntroCarousel } from '@g9tm/lynxcontrols-intro-carousel';`
|
|
6
|
+
|
|
7
|
+
Full-screen onboarding slides (MAUI `G9IntroCarousel`): one media slot behind a dark (flat or gradient) overlay, logo, localized title and subtitle, step pills, previous / next (swapped in RTL), a language button and the
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `onComplete?`: () => void
|
|
11
|
+
- `onCurrentIndexChange?`: (index: number) => void
|
|
12
|
+
- `onFirstContentReady?`: () => void
|
|
13
|
+
- `onLanguage?`: () => void
|
|
14
|
+
- `onMediaFallback?`: (index: number, reason: G9IntroFallbackReason) => void
|
|
15
|
+
- `overlayColor?`: color
|
|
16
|
+
- `overlayOpacity?`: number = 0.52
|
|
17
|
+
- `overlayTopOpacity?`: number
|
|
18
|
+
|
|
19
|
+
Example: `<G9IntroCarousel />`
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols/layout` (part 1 of 2) (generated)
|
|
2
|
+
|
|
3
|
+
# G9ActionRow
|
|
4
|
+
|
|
5
|
+
`import { G9ActionRow } from '@g9tm/lynxcontrols/layout';`
|
|
6
|
+
|
|
7
|
+
The main action(s) of a form or page (SAC ActionRow): on a desk at the end at their own width (a page-wide bar reads as a banner, not a button); on a phone full width for the thumb.
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `children?`: ReactNode
|
|
11
|
+
- `top?`: number = 12
|
|
12
|
+
|
|
13
|
+
Example: `<G9ActionRow />`
|
|
14
|
+
|
|
15
|
+
# G9Bento
|
|
16
|
+
|
|
17
|
+
`import { G9Bento } from '@g9tm/lynxcontrols/layout';`
|
|
18
|
+
|
|
19
|
+
A responsive bento row (Riskara Bento): children share 12 columns on wide windows, stack on narrow ones.
|
|
20
|
+
|
|
21
|
+
Props:
|
|
22
|
+
- `spans`: number[]
|
|
23
|
+
- `children?`: ReactNode
|
|
24
|
+
- `stackBelow?`: 'tablet' | 'desktop' = "tablet"
|
|
25
|
+
- `gap?`: number
|
|
26
|
+
|
|
27
|
+
Example: `<G9Bento spans={spans} />`
|
|
28
|
+
|
|
29
|
+
# G9Card
|
|
30
|
+
|
|
31
|
+
`import { G9Card } from '@g9tm/lynxcontrols/layout';`
|
|
32
|
+
|
|
33
|
+
A card (every app's Card/Panel surface).
|
|
34
|
+
|
|
35
|
+
Props:
|
|
36
|
+
- `children?`: ReactNode
|
|
37
|
+
- `onPress?`: () => void
|
|
38
|
+
- `disabled?`: boolean = false
|
|
39
|
+
- `appearance?`: 'outlined' | 'filled' | 'elevated' | 'glass'
|
|
40
|
+
- `edge?`: string
|
|
41
|
+
- `enterDelay?`: number
|
|
42
|
+
- `glow?`: string
|
|
43
|
+
- `padding?`: number = 16
|
|
44
|
+
|
|
45
|
+
Example: `<G9Card />`
|
|
46
|
+
|
|
47
|
+
# G9Columns
|
|
48
|
+
|
|
49
|
+
`import { G9Columns } from '@g9tm/lynxcontrols/layout';`
|
|
50
|
+
|
|
51
|
+
Form or content columns on wide windows, one column on narrow ones (SAC Cols).
|
|
52
|
+
|
|
53
|
+
Props:
|
|
54
|
+
- `children?`: ReactNode
|
|
55
|
+
- `from?`: 'tablet' | 'desktop' = "tablet"
|
|
56
|
+
- `gap?`: number = 16
|
|
57
|
+
- `weights?`: number[]
|
|
58
|
+
|
|
59
|
+
Example: `<G9Columns />`
|
|
60
|
+
|
|
61
|
+
# G9HScroll
|
|
62
|
+
|
|
63
|
+
`import { G9HScroll } from '@g9tm/lynxcontrols/layout';`
|
|
64
|
+
|
|
65
|
+
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.
|
|
66
|
+
|
|
67
|
+
Props:
|
|
68
|
+
- `children?`: ReactNode
|
|
69
|
+
- `alignItems?`: 'center' | 'flex-start' | 'flex-end' | 'stretch' = "center"
|
|
70
|
+
- `fadeColor?`: color | boolean
|
|
71
|
+
- `gap?`: number = 8
|
|
72
|
+
- `height?`: number | string = 40
|
|
73
|
+
- `padding?`: number = 16
|
|
74
|
+
- `wrapWhenWide?`: boolean
|
|
75
|
+
|
|
76
|
+
Example: `<G9HScroll />`
|
|
77
|
+
|
|
78
|
+
# G9Page
|
|
79
|
+
|
|
80
|
+
`import { G9Page } from '@g9tm/lynxcontrols/layout';`
|
|
81
|
+
|
|
82
|
+
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.
|
|
83
|
+
|
|
84
|
+
Props:
|
|
85
|
+
- `children?`: ReactNode
|
|
86
|
+
- `maxWidth?`: number = 1360
|
|
87
|
+
- `footer?`: ReactNode
|
|
88
|
+
- `header?`: ReactNode
|
|
89
|
+
- `overlay?`: ReactNode
|
|
90
|
+
- `background?`: color
|
|
91
|
+
- `gutter?`: number | object = "{ phone: 16, tablet: 24, desktop: 32 }"
|
|
92
|
+
- `place?`: string
|
|
93
|
+
|
|
94
|
+
Example: `<G9Page />`
|
|
95
|
+
|
|
96
|
+
# G9PlaceScroll
|
|
97
|
+
|
|
98
|
+
`import { G9PlaceScroll } from '@g9tm/lynxcontrols/layout';`
|
|
99
|
+
|
|
100
|
+
A vertical scroll that keeps its place (SAC PlaceScroll): leaving and coming back restores the position.
|
|
101
|
+
|
|
102
|
+
Props:
|
|
103
|
+
- `place`: string
|
|
104
|
+
- `children?`: ReactNode
|
|
105
|
+
- `onScroll?`: (top: number) => void
|
|
106
|
+
- `lifeMs?`: number = 30
|
|
107
|
+
|
|
108
|
+
Example: `<G9PlaceScroll place="place" />`
|
|
109
|
+
|
|
110
|
+
# G9SaveBar
|
|
111
|
+
|
|
112
|
+
`import { G9SaveBar } from '@g9tm/lynxcontrols/layout';`
|
|
113
|
+
|
|
114
|
+
SAC's name for `G9UnsavedBar` (the same control).
|
|
115
|
+
|
|
116
|
+
Props:
|
|
117
|
+
- `dirty`: boolean
|
|
118
|
+
- `message`: string
|
|
119
|
+
- `onSave`: () => void
|
|
120
|
+
- `saveText`: string
|
|
121
|
+
- `onDiscard?`: () => void
|
|
122
|
+
- `discardText?`: string
|
|
123
|
+
- `busy?`: boolean
|
|
124
|
+
|
|
125
|
+
Example: `<G9SaveBar dirty message="message" onSave={() => {}} saveText="saveText" />`
|
|
126
|
+
|
|
127
|
+
# G9ScrollSpyBar
|
|
128
|
+
|
|
129
|
+
`import { G9ScrollSpyBar } from '@g9tm/lynxcontrols/layout';`
|
|
130
|
+
|
|
131
|
+
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.
|
|
132
|
+
|
|
133
|
+
Props:
|
|
134
|
+
- `active`: string
|
|
135
|
+
- `onSelect`: (key: K) => void
|
|
136
|
+
- `sections`: object[]
|
|
137
|
+
|
|
138
|
+
Example: `<G9ScrollSpyBar active="active" onSelect={() => {}} sections={sections} />`
|
|
139
|
+
|
|
140
|
+
# G9Section
|
|
141
|
+
|
|
142
|
+
`import { G9Section } from '@g9tm/lynxcontrols/layout';`
|
|
143
|
+
|
|
144
|
+
A titled block of a page or form (SAC Section/Panel, ShopManager Section, Riskara SectionHead, G9Hub SettingsGroup).
|
|
145
|
+
|
|
146
|
+
Props:
|
|
147
|
+
- `title?`: string
|
|
148
|
+
- `children?`: ReactNode
|
|
149
|
+
- `icon?`: icon
|
|
150
|
+
- `subtitle?`: string
|
|
151
|
+
- `actions?`: ReactNode
|
|
152
|
+
- `card?`: boolean
|
|
153
|
+
- `padding?`: number = 16
|
|
154
|
+
|
|
155
|
+
Example: `<G9Section />`
|
|
156
|
+
|
|
157
|
+
# G9SectionHeader
|
|
158
|
+
|
|
159
|
+
`import { G9SectionHeader } from '@g9tm/lynxcontrols/layout';`
|
|
160
|
+
|
|
161
|
+
A section's title row: icon, title, a line under it, and an action at the end.
|
|
162
|
+
|
|
163
|
+
Props:
|
|
164
|
+
- `title`: string
|
|
165
|
+
- `icon?`: icon
|
|
166
|
+
- `subtitle?`: string
|
|
167
|
+
- `actions?`: ReactNode
|
|
168
|
+
- `action?`: object
|
|
169
|
+
|
|
170
|
+
Example: `<G9SectionHeader title="Label" />`
|
|
171
|
+
|
|
172
|
+
# G9SplitPane
|
|
173
|
+
|
|
174
|
+
`import { G9SplitPane } from '@g9tm/lynxcontrols/layout';`
|
|
175
|
+
|
|
176
|
+
A list beside its detail on wide windows, one of them on phones (G9Hub SplitPane + Navigator).
|
|
177
|
+
|
|
178
|
+
Props:
|
|
179
|
+
- `start`: ReactNode
|
|
180
|
+
- `children?`: ReactNode
|
|
181
|
+
- `size?`: number = 360
|
|
182
|
+
- `phonePane?`: 'start' | 'detail' = "start"
|
|
183
|
+
- `onResize?`: (size: number) => void
|
|
184
|
+
- `fixed?`: boolean
|
|
185
|
+
- `max?`: number
|
|
186
|
+
- `min?`: number
|
|
187
|
+
|
|
188
|
+
Example: `<G9SplitPane start={start} />`
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols/layout` (part 2 of 2) (generated)
|
|
2
|
+
|
|
3
|
+
# G9UnsavedBar
|
|
4
|
+
|
|
5
|
+
`import { G9UnsavedBar } from '@g9tm/lynxcontrols/layout';`
|
|
6
|
+
|
|
7
|
+
A bar that appears while a form has unsaved changes (G9Hub UnsavedBar, SAC SaveBar): the message, discard, save.
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `dirty`: boolean
|
|
11
|
+
- `message`: string
|
|
12
|
+
- `onSave`: () => void
|
|
13
|
+
- `saveText`: string
|
|
14
|
+
- `onDiscard?`: () => void
|
|
15
|
+
- `discardText?`: string
|
|
16
|
+
- `busy?`: boolean
|
|
17
|
+
|
|
18
|
+
Example: `<G9UnsavedBar dirty message="message" onSave={() => {}} saveText="saveText" />`
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols/list` (generated)
|
|
2
|
+
|
|
3
|
+
# G9DragList
|
|
4
|
+
|
|
5
|
+
`import { G9DragList } from '@g9tm/lynxcontrols/list';`
|
|
6
|
+
|
|
7
|
+
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.
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `getKey`: (item: T) => void
|
|
11
|
+
- `items`: NonNullable<T>[]
|
|
12
|
+
- `onReorder`: (items: T[]) => void
|
|
13
|
+
- `renderItem`: (item, dragging) => ReactNode
|
|
14
|
+
- `disabled?`: boolean
|
|
15
|
+
- `rowHeight?`: number = 56
|
|
16
|
+
|
|
17
|
+
Example: `<G9DragList getKey={getKey} items={items} onReorder={() => {}} renderItem={renderItem} />`
|
|
18
|
+
|
|
19
|
+
# G9ListRow
|
|
20
|
+
|
|
21
|
+
`import { G9ListRow } from '@g9tm/lynxcontrols/list';`
|
|
22
|
+
|
|
23
|
+
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.
|
|
24
|
+
|
|
25
|
+
Props:
|
|
26
|
+
- `title`: string
|
|
27
|
+
- `value?`: string
|
|
28
|
+
- `icon?`: icon
|
|
29
|
+
- `subtitle?`: string
|
|
30
|
+
- `onPress?`: () => void
|
|
31
|
+
- `disabled?`: boolean = false
|
|
32
|
+
- `iconTone?`: 'primary' | 'info' | 'success' | 'warning' | 'error' | 'accent' | 'neutral' = "neutral"
|
|
33
|
+
- `hint?`: string
|
|
34
|
+
|
|
35
|
+
Example: `<G9ListRow title="Label" />`
|
|
36
|
+
|
|
37
|
+
# G9Pager
|
|
38
|
+
|
|
39
|
+
`import { G9Pager } from '@g9tm/lynxcontrols/list';`
|
|
40
|
+
|
|
41
|
+
Previous / next under a paged list (SAC LogsAudit Pager).
|
|
42
|
+
|
|
43
|
+
Props:
|
|
44
|
+
- `onPage`: (page: number) => void
|
|
45
|
+
- `page`: number
|
|
46
|
+
- `pageSize`: number
|
|
47
|
+
- `total`: number
|
|
48
|
+
- `label?`: (from: number, to: number, total: number) => void
|
|
49
|
+
- `disabled?`: boolean = false
|
|
50
|
+
- `accessibilityLabel?`: string
|
|
51
|
+
|
|
52
|
+
Example: `<G9Pager onPage={() => {}} page={1} pageSize={1} total={1} />`
|
|
53
|
+
|
|
54
|
+
# G9PullToRefresh
|
|
55
|
+
|
|
56
|
+
`import { G9PullToRefresh } from '@g9tm/lynxcontrols/list';`
|
|
57
|
+
|
|
58
|
+
A vertical scroller that refreshes when pulled down from the top.
|
|
59
|
+
|
|
60
|
+
Props:
|
|
61
|
+
- `onRefresh`: () => void
|
|
62
|
+
- `children?`: ReactNode
|
|
63
|
+
- `disabled?`: boolean
|
|
64
|
+
- `threshold?`: number = 72
|
|
65
|
+
|
|
66
|
+
Example: `<G9PullToRefresh onRefresh={onRefresh} />`
|
|
67
|
+
|
|
68
|
+
# G9SettingsGroup
|
|
69
|
+
|
|
70
|
+
`import { G9SettingsGroup } from '@g9tm/lynxcontrols/list';`
|
|
71
|
+
|
|
72
|
+
Rows grouped in a card with a title and a note (G9Hub SettingsGroup, iOS grouped lists).
|
|
73
|
+
|
|
74
|
+
Props:
|
|
75
|
+
- `title?`: string
|
|
76
|
+
- `children?`: ReactNode
|
|
77
|
+
- `description?`: string
|
|
78
|
+
- `footer?`: ReactNode
|
|
79
|
+
|
|
80
|
+
Example: `<G9SettingsGroup />`
|
|
81
|
+
|
|
82
|
+
# G9SwitchRow
|
|
83
|
+
|
|
84
|
+
`import { G9SwitchRow } from '@g9tm/lynxcontrols/list';`
|
|
85
|
+
|
|
86
|
+
A setting that is on or off (SAC ToggleRow): the whole row toggles, the switch shows the state.
|
|
87
|
+
|
|
88
|
+
Props:
|
|
89
|
+
- `checked`: boolean
|
|
90
|
+
- `onCheckedChange`: (checked: boolean) => void
|
|
91
|
+
- `title`: string
|
|
92
|
+
- `icon?`: icon
|
|
93
|
+
- `subtitle?`: string
|
|
94
|
+
- `disabled?`: boolean = false
|
|
95
|
+
- `iconTone?`: 'primary' | 'info' | 'success' | 'warning' | 'error' | 'accent' | 'neutral' = "neutral"
|
|
96
|
+
- `hint?`: string
|
|
97
|
+
|
|
98
|
+
Example: `<G9SwitchRow checked onCheckedChange={() => {}} title="Label" />`
|
|
99
|
+
|
|
100
|
+
# G9VirtualList
|
|
101
|
+
|
|
102
|
+
`import { G9VirtualList } from '@g9tm/lynxcontrols/list';`
|
|
103
|
+
|
|
104
|
+
A virtualised list on Lynx's native `<list>` (G9Hub VirtualList, SAC DataGrid rows, every long list): elements are recycled and laid out lazily by the engine, so 10 000 rows cost what one screen costs.
|
|
105
|
+
|
|
106
|
+
Props:
|
|
107
|
+
- `getKey`: (item: T, index: number) => void
|
|
108
|
+
- `items`: NonNullable<T>[]
|
|
109
|
+
- `renderItem`: (item, index) => ReactNode
|
|
110
|
+
- `columns?`: number = 1
|
|
111
|
+
- `isFullSpan?`: (item: T, index: number) => void
|
|
112
|
+
- `isSticky?`: (item: T, index: number) => void
|
|
113
|
+
- `onEndReached?`: () => void
|
|
114
|
+
- `onScroll?`: (detail: { scrollTop: number; scrollLeft: number; }) => void
|
|
115
|
+
|
|
116
|
+
Example: `<G9VirtualList getKey={getKey} items={items} renderItem={renderItem} />`
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols-map` (generated)
|
|
2
|
+
|
|
3
|
+
# G9StaticMap
|
|
4
|
+
|
|
5
|
+
`import { G9StaticMap } from '@g9tm/lynxcontrols-map';`
|
|
6
|
+
|
|
7
|
+
A static tile map with pins, lines and zones; measures its width and draws only the tiles it shows.
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `attribution`: string
|
|
11
|
+
- `height`: number
|
|
12
|
+
- `tileTemplate`: string
|
|
13
|
+
- `onPinPress?`: (pin: G9MapPin) => void
|
|
14
|
+
- `center?`: object
|
|
15
|
+
- `fit?`: boolean | G9LatLng[]
|
|
16
|
+
- `pins?`: object[]
|
|
17
|
+
- `shapes?`: object[]
|
|
18
|
+
|
|
19
|
+
Example: `<G9StaticMap attribution="attribution" height={1} tileTemplate="tileTemplate" />`
|