@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,17 @@
|
|
|
1
|
+
# G9Separator
|
|
2
|
+
|
|
3
|
+
`import { G9Separator } from '@g9tm/lynxcontrols/display';`
|
|
4
|
+
|
|
5
|
+
Section separator (MAUI `G9Separator`): a line, or a title with lines at the start, end or both sides (reading order: start/end swap in RTL).
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `title?`: string
|
|
9
|
+
- `icon?`: icon
|
|
10
|
+
- `disabled?`: boolean = false
|
|
11
|
+
- `iconEmoji?`: string
|
|
12
|
+
- `iconImage?`: object | object | object
|
|
13
|
+
- `lineColor?`: color = "var(--g9-divider)"
|
|
14
|
+
- `titleColor?`: color = "var(--g9-text-tertiary)"
|
|
15
|
+
- `iconPath?`: string
|
|
16
|
+
|
|
17
|
+
Example: `<G9Separator title="Crops" />`
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# G9SettingsGroup
|
|
2
|
+
|
|
3
|
+
`import { G9SettingsGroup } from '@g9tm/lynxcontrols/list';`
|
|
4
|
+
|
|
5
|
+
Rows grouped in a card with a title and a note (G9Hub SettingsGroup, iOS grouped lists).
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `title?`: string
|
|
9
|
+
- `children?`: ReactNode
|
|
10
|
+
- `description?`: string
|
|
11
|
+
- `footer?`: ReactNode
|
|
12
|
+
|
|
13
|
+
Example: `<G9SettingsGroup />`
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# G9Sheet
|
|
2
|
+
|
|
3
|
+
`import { G9Sheet } from '@g9tm/lynxcontrols/sheet';`
|
|
4
|
+
|
|
5
|
+
Declarative sheet (the `G9Sheet` adapter): mounts the children as a sheet of the nearest host while `open`, keeps them live (re-renders update the sheet in place), and reports closes the sheet made itself through `onOpen
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `open`: boolean
|
|
9
|
+
- `children?`: ReactNode
|
|
10
|
+
- `onOpenChange?`: (open: boolean, reason: G9SheetCloseReason) => void
|
|
11
|
+
- `options?`: object
|
|
12
|
+
|
|
13
|
+
Example: `<G9Sheet open />`
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# G9SheetBackdropScope
|
|
2
|
+
|
|
3
|
+
`import { G9SheetBackdropScope } from '@g9tm/lynxcontrols/sheet';`
|
|
4
|
+
|
|
5
|
+
Wrap the page region that should recede behind an open sheet (the settings' `backdropCardMode` decides when): scaled back, moved down and rounded, over the backdrop colour.
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `children?`: ReactNode
|
|
9
|
+
|
|
10
|
+
Example: `<G9SheetBackdropScope />`
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# G9SheetFooter
|
|
2
|
+
|
|
3
|
+
`import { G9SheetFooter } from '@g9tm/lynxcontrols/sheet';`
|
|
4
|
+
|
|
5
|
+
The sheet footer: `footerBand`, else `footerView` in the band, else `footerButtons` in equal columns (3 per row by default), with a divider.
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `options`: object
|
|
9
|
+
|
|
10
|
+
Example: `<G9SheetFooter options={options} />`
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# G9SheetFooterBar
|
|
2
|
+
|
|
3
|
+
`import { G9SheetFooterBar } from '@g9tm/lynxcontrols/sheet';`
|
|
4
|
+
|
|
5
|
+
The footer band (divider, padding, equal-width button columns); nothing at all without buttons (MAUI `SheetFooterBar` hides with no visible button).
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `buttons`: ReactNode
|
|
9
|
+
- `maxButtonsPerRow?`: number = 3
|
|
10
|
+
|
|
11
|
+
Example: `<G9SheetFooterBar buttons={buttons} />`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# G9SheetFrame
|
|
2
|
+
|
|
3
|
+
`import { G9SheetFrame } from '@g9tm/lynxcontrols/sheet';`
|
|
4
|
+
|
|
5
|
+
One sheet of the stack on lynx-ui `SheetRoot` (motion, drag, snap points from lynx-ui; G9 adds detent mapping, scrim, header/footer, deferred content, recede and results).
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `culture`: string
|
|
9
|
+
- `entry`: object
|
|
10
|
+
- `hostHeight`: number
|
|
11
|
+
- `hostWidth`: number
|
|
12
|
+
- `isTop`: boolean
|
|
13
|
+
- `memo`: object
|
|
14
|
+
- `settings`: object
|
|
15
|
+
- `stack`: object
|
|
16
|
+
|
|
17
|
+
Example: `<G9SheetFrame culture="culture" entry={entry} hostHeight={1} hostWidth={1} isTop memo={memo} settings={settings} stack={stack} topInset={1} />`
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# G9SheetHeader
|
|
2
|
+
|
|
3
|
+
`import { G9SheetHeader } from '@g9tm/lynxcontrols/sheet';`
|
|
4
|
+
|
|
5
|
+
The three-slot sheet header (MAUI header template): leading back/close button (RTL-aware arrow, or × with `useCloseIcon`), the title (centre or near the back button), the trailing toolbar items; slot overrides `headerVie
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `onBack`: () => void
|
|
9
|
+
- `options`: object
|
|
10
|
+
|
|
11
|
+
Example: `<G9SheetHeader onBack={() => {}} options={options} />`
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# G9SheetScrollIndicator
|
|
2
|
+
|
|
3
|
+
`import { G9SheetScrollIndicator } from '@g9tm/lynxcontrols/sheet';`
|
|
4
|
+
|
|
5
|
+
The thumb at the body's inline END (left in a right-to-left sheet), in the side inset; touches pass through.
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `model`: object
|
|
9
|
+
|
|
10
|
+
Example: `<G9SheetScrollIndicator model={model} />`
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# G9SheetScrollRegion
|
|
2
|
+
|
|
3
|
+
`import { G9SheetScrollRegion } from '@g9tm/lynxcontrols/sheet';`
|
|
4
|
+
|
|
5
|
+
A vertical scroller as tall as its content, up to what the sheet's other parts leave free under its cap — measured, never estimated, however they change (a discount panel opening above, the keyboard shrinking the window)
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `children?`: ReactNode
|
|
9
|
+
- `max?`: number
|
|
10
|
+
|
|
11
|
+
Example: `<G9SheetScrollRegion />`
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# G9SheetSkeleton
|
|
2
|
+
|
|
3
|
+
`import { G9SheetSkeleton } from '@g9tm/lynxcontrols/display';`
|
|
4
|
+
|
|
5
|
+
A sheet's loading skeleton with the shimmer band (MAUI `G9Shimmer.CreateSheetSkeleton`): form-field bars, or list rows (`'none'` renders list rows too, as MAUI).
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `skeleton`: 'none' | 'formFields' | 'listRows'
|
|
9
|
+
- `backgroundColor?`: color = "var(--g9-background)"
|
|
10
|
+
- `active?`: boolean = true
|
|
11
|
+
- `rowCount?`: number
|
|
12
|
+
|
|
13
|
+
Example: `<G9SheetSkeleton skeleton="none" />`
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# G9ShimmerBand
|
|
2
|
+
|
|
3
|
+
`import { G9ShimmerBand } from '@g9tm/lynxcontrols/display';`
|
|
4
|
+
|
|
5
|
+
The highlight band that sweeps over skeleton shapes (MAUI `G9ShimmerBandView`): left to right every 1100 ms, white (peak 0.38) in light themes and black (peak 0.20) in dark ones, input-transparent.
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `active?`: boolean = true
|
|
9
|
+
|
|
10
|
+
Example: `<G9ShimmerBand />`
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# G9ShortcutList
|
|
2
|
+
|
|
3
|
+
`import { G9ShortcutList } from '@g9tm/lynxcontrols/commands';`
|
|
4
|
+
|
|
5
|
+
The keyboard shortcuts as a readable list (G9Hub ShortcutsSheet; open it on `?`).
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `groups`: object[]
|
|
9
|
+
- `platform?`: 'mac' | 'other'
|
|
10
|
+
|
|
11
|
+
Example: `<G9ShortcutList groups={groups} />`
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# G9ShortcutsSheet
|
|
2
|
+
|
|
3
|
+
`import { G9ShortcutsSheet } from '@g9tm/lynxcontrols/commands';`
|
|
4
|
+
|
|
5
|
+
The keyboard shortcuts in an action sheet (G9Hub «?»): groups of a label and its keycaps.
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `groups`: object[]
|
|
9
|
+
- `onClose`: () => void
|
|
10
|
+
- `open`: boolean
|
|
11
|
+
- `title`: string
|
|
12
|
+
- `closeText?`: string
|
|
13
|
+
- `platform?`: 'mac' | 'other'
|
|
14
|
+
|
|
15
|
+
Example: `<G9ShortcutsSheet groups={groups} onClose={() => {}} open title="Label" />`
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# G9SideNav
|
|
2
|
+
|
|
3
|
+
`import { G9SideNav } from '@g9tm/lynxcontrols/shell';`
|
|
4
|
+
|
|
5
|
+
The desktop side navigation (SAC SideNav, G9Hub AppShell side): grouped entries with icons and counts.
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `destinations`: object[]
|
|
9
|
+
- `onChange`: (key: K) => void
|
|
10
|
+
- `value`: string
|
|
11
|
+
- `footer?`: ReactNode
|
|
12
|
+
- `header?`: ReactNode
|
|
13
|
+
- `search?`: ReactNode
|
|
14
|
+
- `width?`: number = 232
|
|
15
|
+
|
|
16
|
+
Example: `<G9SideNav destinations={destinations} onChange={() => {}} value="value" />`
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# G9Skeleton
|
|
2
|
+
|
|
3
|
+
`import { G9Skeleton } from '@g9tm/lynxcontrols/display';`
|
|
4
|
+
|
|
5
|
+
One placeholder bar (SAC Skeleton, Riskara Shimmer).
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `radius?`: number = 8
|
|
9
|
+
- `circle?`: boolean
|
|
10
|
+
- `height?`: string | number = 12
|
|
11
|
+
- `width?`: string | number = "100%"
|
|
12
|
+
|
|
13
|
+
Example: `<G9Skeleton />`
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# G9SkeletonPage
|
|
2
|
+
|
|
3
|
+
`import { G9SkeletonPage } from '@g9tm/lynxcontrols/display';`
|
|
4
|
+
|
|
5
|
+
A dashboard or list page while it loads: KPI tiles, a chart, rows (SAC SkeletonPage).
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `rows?`: number = 5
|
|
9
|
+
- `chart?`: boolean
|
|
10
|
+
- `kpis?`: number = 0
|
|
11
|
+
- `thumb?`: boolean
|
|
12
|
+
|
|
13
|
+
Example: `<G9SkeletonPage />`
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# G9SkeletonRows
|
|
2
|
+
|
|
3
|
+
`import { G9SkeletonRows } from '@g9tm/lynxcontrols/display';`
|
|
4
|
+
|
|
5
|
+
A list while it loads: the shape of what is coming, never one grey block (SAC SkeletonRows).
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `rowHeight?`: number = 56
|
|
9
|
+
- `rows?`: number = 5
|
|
10
|
+
- `dividers?`: boolean = true
|
|
11
|
+
- `thumb?`: boolean
|
|
12
|
+
|
|
13
|
+
Example: `<G9SkeletonRows />`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# G9SplitPane
|
|
2
|
+
|
|
3
|
+
`import { G9SplitPane } from '@g9tm/lynxcontrols/layout';`
|
|
4
|
+
|
|
5
|
+
A list beside its detail on wide windows, one of them on phones (G9Hub SplitPane + Navigator).
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `start`: ReactNode
|
|
9
|
+
- `children?`: ReactNode
|
|
10
|
+
- `size?`: number = 360
|
|
11
|
+
- `phonePane?`: 'start' | 'detail' = "start"
|
|
12
|
+
- `onResize?`: (size: number) => void
|
|
13
|
+
- `fixed?`: boolean
|
|
14
|
+
- `max?`: number
|
|
15
|
+
- `min?`: number
|
|
16
|
+
|
|
17
|
+
Example: `<G9SplitPane start={start} />`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# G9StatusPill
|
|
2
|
+
|
|
3
|
+
`import { G9StatusPill } from '@g9tm/lynxcontrols/display';`
|
|
4
|
+
|
|
5
|
+
A status as a pill — never a control (SAC Pill/StatusPill/Tag, ShopManager Pill, G9Hub Badge, Riskara Delta chips).
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `text`: string
|
|
9
|
+
- `size?`: 'sm' | 'md' | 'lg'
|
|
10
|
+
- `icon?`: icon
|
|
11
|
+
- `appearance?`: 'outline' | 'soft' | 'solid' | 'plain' = "soft"
|
|
12
|
+
- `tone?`: 'primary' | 'info' | 'success' | 'warning' | 'error' | 'accent' | 'neutral' = "neutral"
|
|
13
|
+
- `fillAlpha?`: number = 0.15
|
|
14
|
+
- `bordered?`: boolean
|
|
15
|
+
- `color?`: color
|
|
16
|
+
|
|
17
|
+
Example: `<G9StatusPill text="Label" />`
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# G9StepSlider
|
|
2
|
+
|
|
3
|
+
`import { G9StepSlider } from '@g9tm/lynxcontrols/range-slider';`
|
|
4
|
+
|
|
5
|
+
Discrete steps as dots in a row (G9RangeSlider for a continuous value).
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `max`: number
|
|
9
|
+
- `value?`: number
|
|
10
|
+
- `onValueChange?`: (value: number) => void
|
|
11
|
+
- `disabled?`: boolean = false
|
|
12
|
+
- `defaultValue?`: number
|
|
13
|
+
- `labels?`: string[]
|
|
14
|
+
- `accessibilityLabel?`: string
|
|
15
|
+
|
|
16
|
+
Example: `<G9StepSlider max={1} />`
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# G9StepTracker
|
|
2
|
+
|
|
3
|
+
`import { G9StepTracker } from '@g9tm/lynxcontrols/display';`
|
|
4
|
+
|
|
5
|
+
Where an order (a delivery, a wizard) is: done, current, to come (ShopManager Steps, SAC order status).
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `current`: number
|
|
9
|
+
- `steps`: string[]
|
|
10
|
+
- `tone?`: 'primary' | 'info' | 'success' | 'warning' | 'error' | 'accent' | 'neutral' = "primary"
|
|
11
|
+
- `failedAt?`: number
|
|
12
|
+
|
|
13
|
+
Example: `<G9StepTracker current={1} steps={steps} />`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# G9Stepper
|
|
2
|
+
|
|
3
|
+
`import { G9Stepper } from '@g9tm/lynxcontrols/toggle';`
|
|
4
|
+
|
|
5
|
+
− value + (SAC Stepper, ShopManager stepper and AddControl, mardomi Stepper), with an optional collapsed "add" state.
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `value?`: number
|
|
9
|
+
- `size?`: 'sm' | 'md' | 'lg' = "md"
|
|
10
|
+
- `onChange?`: (value: number) => void
|
|
11
|
+
- `disabled?`: boolean = false
|
|
12
|
+
- `format?`: (value: number) => void
|
|
13
|
+
- `block?`: boolean
|
|
14
|
+
- `defaultValue?`: number
|
|
15
|
+
- `collapsedAtMin?`: string | boolean | boolean
|
|
16
|
+
|
|
17
|
+
Example: `<G9Stepper />`
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# G9SuccessHeader
|
|
2
|
+
|
|
3
|
+
`import { G9SuccessHeader } from '@g9tm/lynxcontrols/effects';`
|
|
4
|
+
|
|
5
|
+
The top of a done screen (ShopManager `Done`: receipt in, delivered, order ready): the art pops in, the title and a line under it, read out together.
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `title`: string
|
|
9
|
+
- `children?`: ReactNode
|
|
10
|
+
- `subtitle?`: string
|
|
11
|
+
- `art?`: ReactNode
|
|
12
|
+
- `haptic?`: boolean = true
|
|
13
|
+
|
|
14
|
+
Example: `<G9SuccessHeader title="Label" />`
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# G9Swatch
|
|
2
|
+
|
|
3
|
+
`import { G9Swatch } from '@g9tm/lynxcontrols/icon';`
|
|
4
|
+
|
|
5
|
+
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
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `size?`: number = 18
|
|
9
|
+
- `direction?`: 'ltr' | 'rtl'
|
|
10
|
+
- `first?`: string
|
|
11
|
+
- `second?`: string
|
|
12
|
+
|
|
13
|
+
Example: `<G9Swatch />`
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# G9SwipeGroup
|
|
2
|
+
|
|
3
|
+
`import { G9SwipeGroup } from '@g9tm/lynxcontrols/swipe';`
|
|
4
|
+
|
|
5
|
+
Scopes the one-open-row policy to a list (rows outside any group share one default group).
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `children?`: ReactNode
|
|
9
|
+
- `group?`: object
|
|
10
|
+
|
|
11
|
+
Example: `<G9SwipeGroup />`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# G9SwipeView
|
|
2
|
+
|
|
3
|
+
`import { G9SwipeView } from '@g9tm/lynxcontrols/swipe';`
|
|
4
|
+
|
|
5
|
+
A card row with swipe-to-reveal action panes on both edges (MAUI `G9SwipeView`).
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `children?`: ReactNode
|
|
9
|
+
- `onOpenChange?`: (side: "leading" | "trailing" | null) => void
|
|
10
|
+
- `cornerRadius?`: number = 14
|
|
11
|
+
- `cardContent?`: ReactNode
|
|
12
|
+
- `cardBackground?`: color
|
|
13
|
+
- `cardStroke?`: color
|
|
14
|
+
- `cardStrokeThickness?`: number
|
|
15
|
+
- `itemKey?`: string | number
|
|
16
|
+
|
|
17
|
+
Example: `<G9SwipeView />`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# G9Switch
|
|
2
|
+
|
|
3
|
+
`import { G9Switch } from '@g9tm/lynxcontrols/toggle';`
|
|
4
|
+
|
|
5
|
+
Switch (MAUI `G9Switch`): 56 × 32 track, 24 px thumb that stretches while travelling, 240 ms spring-like CSS transition, tick/dot track mark; RTL moves the "on" side to the left unless `toggles.switchMirrorInRtl` is fals
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `title?`: string
|
|
9
|
+
- `checked?`: boolean
|
|
10
|
+
- `disabled?`: boolean = false
|
|
11
|
+
- `onCheckedChange?`: (checked: boolean) => void
|
|
12
|
+
- `description?`: string
|
|
13
|
+
- `defaultChecked?`: boolean
|
|
14
|
+
- `isInFormRow?`: boolean = false
|
|
15
|
+
- `isRequired?`: boolean = false
|
|
16
|
+
|
|
17
|
+
Example: `<G9Switch isInFormRow title="Sync" checked={sync} onCheckedChange={setSync} />`
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# G9SwitchGroup
|
|
2
|
+
|
|
3
|
+
`import { G9SwitchGroup } from '@g9tm/lynxcontrols/toggle';`
|
|
4
|
+
|
|
5
|
+
A vertical group of switches (MAUI `G9SwitchGroup`): counts its switches (nearest group only, as MAUI's direct children), optionally keeps one on and shows a live `active / total` status.
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `children?`: ReactNode
|
|
9
|
+
- `disabled?`: boolean = false
|
|
10
|
+
- `onActiveCountChange?`: (active: number, total: number) => void
|
|
11
|
+
- `minOneActive?`: boolean = false
|
|
12
|
+
- `showLiveStatus?`: boolean = false
|
|
13
|
+
- `accessibilityLabel?`: string
|
|
14
|
+
|
|
15
|
+
Example: `<G9SwitchGroup />`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# G9SwitchRow
|
|
2
|
+
|
|
3
|
+
`import { G9SwitchRow } from '@g9tm/lynxcontrols/list';`
|
|
4
|
+
|
|
5
|
+
A setting that is on or off (SAC ToggleRow): the whole row toggles, the switch shows the state.
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `checked`: boolean
|
|
9
|
+
- `onCheckedChange`: (checked: boolean) => void
|
|
10
|
+
- `title`: string
|
|
11
|
+
- `icon?`: icon
|
|
12
|
+
- `subtitle?`: string
|
|
13
|
+
- `disabled?`: boolean = false
|
|
14
|
+
- `iconTone?`: 'primary' | 'info' | 'success' | 'warning' | 'error' | 'accent' | 'neutral' = "neutral"
|
|
15
|
+
- `hint?`: string
|
|
16
|
+
|
|
17
|
+
Example: `<G9SwitchRow checked onCheckedChange={() => {}} title="Label" />`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# G9TabBar
|
|
2
|
+
|
|
3
|
+
`import { G9TabBar } from '@g9tm/lynxcontrols/tab-bar';`
|
|
4
|
+
|
|
5
|
+
Bottom navigation with a floating action button (MAUI `G9TabBar`): the FAB rises out of a notch and fans out a horizontal sub-menu row; more than five items collapse behind a More trigger with a vertical overflow column;
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `items`: object[]
|
|
9
|
+
- `onCenterFloatingChange?`: (floating: boolean) => void
|
|
10
|
+
- `onFabOpenChange?`: (open: boolean) => void
|
|
11
|
+
- `onFabTapped?`: (args: G9TabBarFabTappedEventArgs) => void
|
|
12
|
+
- `onItemSelected?`: (args: G9TabBarClickContext) => void
|
|
13
|
+
- `onOverflowOpenChange?`: (open: boolean) => void
|
|
14
|
+
- `onSelectedIndexChange?`: (index: number) => void
|
|
15
|
+
- `overflowText?`: string
|
|
16
|
+
|
|
17
|
+
Example: `<G9TabBar items={items} />`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# G9TabView
|
|
2
|
+
|
|
3
|
+
`import { G9TabView } from '@g9tm/lynxcontrols/tabs';`
|
|
4
|
+
|
|
5
|
+
Tabs with a bar and lazily realized bodies (MAUI `G9TabView`).
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `items`: object[]
|
|
9
|
+
- `onSelectionChange?`: (index: number) => void
|
|
10
|
+
- `routeSegment?`: (key: string) => void
|
|
11
|
+
- `contentPadding?`: number | number[] = 10
|
|
12
|
+
- `frameCornerRadius?`: number = 0
|
|
13
|
+
- `indicatorColor?`: color
|
|
14
|
+
- `tabHeight?`: number = 52
|
|
15
|
+
- `tabStyle?`: 'pill' | 'underlined'
|
|
16
|
+
|
|
17
|
+
Example: `<G9TabView items={items} />`
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# G9Tag
|
|
2
|
+
|
|
3
|
+
`import { G9Tag } from '@g9tm/lynxcontrols/display';`
|
|
4
|
+
|
|
5
|
+
A small label on a card or row (menu item tags, statuses that are not states): tone + appearance, never pressable.
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `text`: string
|
|
9
|
+
- `icon?`: icon
|
|
10
|
+
- `appearance?`: 'outline' | 'soft' | 'solid' | 'plain'
|
|
11
|
+
- `tone?`: 'primary' | 'info' | 'success' | 'warning' | 'error' | 'accent' | 'neutral'
|
|
12
|
+
- `emoji?`: string
|
|
13
|
+
|
|
14
|
+
Example: `<G9Tag text="Label" />`
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# G9TagEntry
|
|
2
|
+
|
|
3
|
+
`import { G9TagEntry } from '@g9tm/lynxcontrols/fields';`
|
|
4
|
+
|
|
5
|
+
Free words as removable chips (SAC ChipsIn): Enter, «،» or «,» adds; suggestions one tap away; duplicates ignored.
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `value?`: string[]
|
|
9
|
+
- `placeholder?`: string
|
|
10
|
+
- `onChange?`: (tags: readonly string[]) => void
|
|
11
|
+
- `disabled?`: boolean
|
|
12
|
+
- `defaultValue?`: string[]
|
|
13
|
+
- `max?`: number = 20
|
|
14
|
+
- `suggestions?`: string[]
|
|
15
|
+
|
|
16
|
+
Example: `<G9TagEntry />`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# G9TextEntry
|
|
2
|
+
|
|
3
|
+
`import { G9TextEntry } from '@g9tm/lynxcontrols/fields';`
|
|
4
|
+
|
|
5
|
+
Single-line outlined text field (MAUI `G9TextEntry`): floating label, input-type keyboard/filter/validation, password eye, clear button, optional dictation (`voiceEnabled` + `services.speech`).
|
|
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: `<G9TextEntry />`
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# G9ThemePreviewCard
|
|
2
|
+
|
|
3
|
+
`import { G9ThemePreviewCard } from '@g9tm/lynxcontrols/display';`
|
|
4
|
+
|
|
5
|
+
A card showing a theme as a small app (rail, two chat bubbles, a field), its name, and a check when chosen.
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `name`: string
|
|
9
|
+
- `theme`: object
|
|
10
|
+
- `selected?`: boolean
|
|
11
|
+
- `onSelect?`: () => void
|
|
12
|
+
- `hint?`: string
|
|
13
|
+
- `tag?`: string
|
|
14
|
+
|
|
15
|
+
Example: `<G9ThemePreviewCard name="name" theme={theme} />`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# G9TimeEntry
|
|
2
|
+
|
|
3
|
+
`import { G9TimeEntry } from '@g9tm/lynxcontrols/fields';`
|
|
4
|
+
|
|
5
|
+
A time typed as people type it (SAC TimeIn): «۷۳۰» becomes ۰۷:۳۰ on blur; an impossible time is shown as an error.
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `label?`: string
|
|
9
|
+
- `value?`: number
|
|
10
|
+
- `leadingIcon?`: icon
|
|
11
|
+
- `placeholder?`: string
|
|
12
|
+
- `onValueChange?`: (minutes: number | null) => void
|
|
13
|
+
- `disabled?`: boolean = false
|
|
14
|
+
- `onLeadingPress?`: () => void
|
|
15
|
+
- `onTrailingPress?`: () => void
|
|
16
|
+
|
|
17
|
+
Example: `<G9TimeEntry />`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# G9TimeSpanPicker
|
|
2
|
+
|
|
3
|
+
`import { G9TimeSpanPicker } from '@g9tm/lynxcontrols/pickers';`
|
|
4
|
+
|
|
5
|
+
A duration in an outlined box (MAUI `G9TimeSpanPicker`): a tap opens the drum sheet; Done writes the value and fires `onTimeSpanSelected`, Cancel and dismissals write nothing.
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `label?`: string
|
|
9
|
+
- `value?`: number
|
|
10
|
+
- `leadingIcon?`: icon
|
|
11
|
+
- `placeholder?`: string
|
|
12
|
+
- `onValueChange?`: (ms: number | null) => void
|
|
13
|
+
- `disabled?`: boolean = false
|
|
14
|
+
- `mode?`: 'yearsMonths' | 'yearsMonthsDays' | 'yearsMonthsDaysHours' | 'yearsMonthsDaysHoursMinutes' | 'yearsMonthsDaysHoursMinutesSeconds' = "yearsMonthsDays"
|
|
15
|
+
- `onLeadingPress?`: () => void
|
|
16
|
+
|
|
17
|
+
Example: `<G9TimeSpanPicker label="Tree age" value={ageMs} onValueChange={setAgeMs} />`
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# G9TitleWithLine
|
|
2
|
+
|
|
3
|
+
`import { G9TitleWithLine } from '@g9tm/lynxcontrols/display';`
|
|
4
|
+
|
|
5
|
+
A 16 px title over a 1 px line (MAUI `G9TitleWithLine`).
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `text?`: string = "ابزار"
|
|
9
|
+
- `disabled?`: boolean = false
|
|
10
|
+
- `padding?`: number[] = "[18, 3, 18, 0]"
|
|
11
|
+
- `accessibilityLabel?`: string
|
|
12
|
+
|
|
13
|
+
Example: `<G9TitleWithLine />`
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# G9TopBar
|
|
2
|
+
|
|
3
|
+
`import { G9TopBar } from '@g9tm/lynxcontrols/shell';`
|
|
4
|
+
|
|
5
|
+
The desktop global bar over the content (SAC TopBar, Riskara StatusStrip).
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `title?`: string
|
|
9
|
+
- `actions?`: ReactNode
|
|
10
|
+
- `start?`: ReactNode
|
|
11
|
+
- `height?`: number = 56
|
|
12
|
+
|
|
13
|
+
Example: `<G9TopBar />`
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# G9UnsavedBar
|
|
2
|
+
|
|
3
|
+
`import { G9UnsavedBar } from '@g9tm/lynxcontrols/layout';`
|
|
4
|
+
|
|
5
|
+
A bar that appears while a form has unsaved changes (G9Hub UnsavedBar, SAC SaveBar): the message, discard, save.
|
|
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: `<G9UnsavedBar dirty message="message" onSave={() => {}} saveText="saveText" />`
|