@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,19 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols/deferred` (generated)
|
|
2
|
+
|
|
3
|
+
# G9DeferredContent
|
|
4
|
+
|
|
5
|
+
`import { G9DeferredContent } from '@g9tm/lynxcontrols/deferred';`
|
|
6
|
+
|
|
7
|
+
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.
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `children?`: ReactNode
|
|
11
|
+
- `placeholder?`: ReactNode
|
|
12
|
+
- `onContentCreated?`: () => void
|
|
13
|
+
- `onContentLoaded?`: () => void
|
|
14
|
+
- `onRevealSettled?`: () => void
|
|
15
|
+
- `render?`: () => ReactNode
|
|
16
|
+
- `renderError?`: (error, retry) => ReactNode
|
|
17
|
+
- `autoLoad?`: boolean = true
|
|
18
|
+
|
|
19
|
+
Example: `<G9DeferredContent />`
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols/design` (generated)
|
|
2
|
+
|
|
3
|
+
# G9DesignNode
|
|
4
|
+
|
|
5
|
+
`import { G9DesignNode } from '@g9tm/lynxcontrols/design';`
|
|
6
|
+
|
|
7
|
+
A layout-neutral box that is an anchor (the probe measures it, hit-tests it, follows it).
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `label?`: string
|
|
11
|
+
- `children?`: ReactNode
|
|
12
|
+
- `kind?`: 'label' | 'image' | 'button' | 'entry' | 'toggle' | 'picker' | 'chips' | 'tab' | 'tab-view' | 'list' | 'scroll' | 'item' | 'card' | 'map' | 'view' = "view"
|
|
13
|
+
- `name?`: string
|
|
14
|
+
|
|
15
|
+
Example: `<G9DesignNode />`
|
|
16
|
+
|
|
17
|
+
# G9DesignScope
|
|
18
|
+
|
|
19
|
+
`import { G9DesignScope } from '@g9tm/lynxcontrols/design';`
|
|
20
|
+
|
|
21
|
+
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
|
|
22
|
+
|
|
23
|
+
Props:
|
|
24
|
+
- `children?`: ReactNode
|
|
25
|
+
- `prefix?`: string = "design"
|
|
26
|
+
|
|
27
|
+
Example: `<G9DesignScope />`
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols/display` (part 1 of 3) (generated)
|
|
2
|
+
|
|
3
|
+
# G9ActivityIndicator
|
|
4
|
+
|
|
5
|
+
`import { G9ActivityIndicator } from '@g9tm/lynxcontrols/display';`
|
|
6
|
+
|
|
7
|
+
A spinner: a ring with a transparent quarter rotating once per 800 ms (CSS keyframes, no JavaScript per frame).
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `size?`: number = 20
|
|
11
|
+
- `color?`: color = "var(--g9-primary)"
|
|
12
|
+
- `running?`: boolean = false
|
|
13
|
+
- `thickness?`: number = "max(2, size / 10)"
|
|
14
|
+
- `accessibilityLabel?`: string
|
|
15
|
+
|
|
16
|
+
Example: `<G9ActivityIndicator />`
|
|
17
|
+
|
|
18
|
+
# G9Avatar
|
|
19
|
+
|
|
20
|
+
`import { G9Avatar } from '@g9tm/lynxcontrols/display';`
|
|
21
|
+
|
|
22
|
+
A person: photo or initials in a tinted disc (SAC/ShopManager/Riskara Avatar, G9Hub Avatar).
|
|
23
|
+
|
|
24
|
+
Props:
|
|
25
|
+
- `name`: string
|
|
26
|
+
- `size?`: number | string | string | string | string | string = "md"
|
|
27
|
+
- `tone?`: 'primary' | 'info' | 'success' | 'warning' | 'error' | 'accent' | 'neutral'
|
|
28
|
+
- `gradient?`: boolean
|
|
29
|
+
- `image?`: string
|
|
30
|
+
- `ring?`: string
|
|
31
|
+
- `status?`: 'online' | 'busy' | 'away' | 'offline'
|
|
32
|
+
|
|
33
|
+
Example: `<G9Avatar name="name" />`
|
|
34
|
+
|
|
35
|
+
# G9Badge
|
|
36
|
+
|
|
37
|
+
`import { G9Badge } from '@g9tm/lynxcontrols/display';`
|
|
38
|
+
|
|
39
|
+
A count or a dot (G9Hub Counter/Badge, tab and bell counts).
|
|
40
|
+
|
|
41
|
+
Props:
|
|
42
|
+
- `value?`: string | number
|
|
43
|
+
- `appearance?`: 'outline' | 'soft' | 'solid' | 'plain' = "solid"
|
|
44
|
+
- `tone?`: 'primary' | 'info' | 'success' | 'warning' | 'error' | 'accent' | 'neutral' = "error"
|
|
45
|
+
- `dot?`: boolean
|
|
46
|
+
- `hideZero?`: boolean = true
|
|
47
|
+
- `max?`: number = 99
|
|
48
|
+
|
|
49
|
+
Example: `<G9Badge />`
|
|
50
|
+
|
|
51
|
+
# G9CameFromMark
|
|
52
|
+
|
|
53
|
+
`import { G9CameFromMark } from '@g9tm/lynxcontrols/display';`
|
|
54
|
+
|
|
55
|
+
A soft mark on the row the person came back from (SAC `CameFrom`): the primary colour at a fifth, fading out by itself in ~2 s (CSS, nothing runs in script); it never takes a touch.
|
|
56
|
+
|
|
57
|
+
Props:
|
|
58
|
+
|
|
59
|
+
Example: `<G9CameFromMark />`
|
|
60
|
+
|
|
61
|
+
# G9CultureDateTimeLabel
|
|
62
|
+
|
|
63
|
+
`import { G9CultureDateTimeLabel } from '@g9tm/lynxcontrols/display';`
|
|
64
|
+
|
|
65
|
+
A culture-aware date/time text (MAUI `G9CultureDateTimeLabel`); re-renders on culture changes.
|
|
66
|
+
|
|
67
|
+
Props:
|
|
68
|
+
- `value?`: object
|
|
69
|
+
- `disabled?`: boolean = false
|
|
70
|
+
- `displayMode?`: 'dateTime' | 'date' | 'time' | 'relative' | 'relativeDay' = "dateTime"
|
|
71
|
+
- `relativeDayNow?`: () => void
|
|
72
|
+
- `emptyText?`: string = ""
|
|
73
|
+
- `utcOffsetMinutes?`: number = 0
|
|
74
|
+
- `accessibilityLabel?`: string
|
|
75
|
+
|
|
76
|
+
Example: `<G9CultureDateTimeLabel />`
|
|
77
|
+
|
|
78
|
+
# G9Delta
|
|
79
|
+
|
|
80
|
+
`import { G9Delta } from '@g9tm/lynxcontrols/display';`
|
|
81
|
+
|
|
82
|
+
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.
|
|
83
|
+
|
|
84
|
+
Props:
|
|
85
|
+
- `value`: number
|
|
86
|
+
- `goodWhen?`: 'up' | 'down' = "up"
|
|
87
|
+
- `kind?`: 'number' | 'percent' = "percent"
|
|
88
|
+
- `appearance?`: 'pill' | 'plain'
|
|
89
|
+
- `arrow?`: boolean = true
|
|
90
|
+
- `decimals?`: number = 1
|
|
91
|
+
- `fromFraction?`: boolean
|
|
92
|
+
- `suffix?`: string
|
|
93
|
+
|
|
94
|
+
Example: `<G9Delta value={1} />`
|
|
95
|
+
|
|
96
|
+
# G9EmptyState
|
|
97
|
+
|
|
98
|
+
`import { G9EmptyState } from '@g9tm/lynxcontrols/display';`
|
|
99
|
+
|
|
100
|
+
Nothing here yet: what this is, and the one step that fills it (every app's Empty).
|
|
101
|
+
|
|
102
|
+
Props:
|
|
103
|
+
- `title`: string
|
|
104
|
+
- `children?`: ReactNode
|
|
105
|
+
- `icon?`: icon = "search"
|
|
106
|
+
- `message?`: string
|
|
107
|
+
- `compact?`: boolean
|
|
108
|
+
- `tone?`: 'primary' | 'info' | 'success' | 'warning' | 'error' | 'accent' | 'neutral'
|
|
109
|
+
- `art?`: ReactNode
|
|
110
|
+
- `action?`: object
|
|
111
|
+
|
|
112
|
+
Example: `<G9EmptyState title="Label" />`
|
|
113
|
+
|
|
114
|
+
# G9ErrorBoundary
|
|
115
|
+
|
|
116
|
+
`import { G9ErrorBoundary } from '@g9tm/lynxcontrols/display';`
|
|
117
|
+
|
|
118
|
+
Keeps a failing part from taking the page down (SAC ErrorBoundary): a fallback with a retry, the error reported once.
|
|
119
|
+
|
|
120
|
+
Props:
|
|
121
|
+
- `fallback`: (error, retry) => ReactNode
|
|
122
|
+
- `children?`: ReactNode
|
|
123
|
+
- `onError?`: (error: unknown) => void
|
|
124
|
+
- `source?`: string
|
|
125
|
+
|
|
126
|
+
Example: `<G9ErrorBoundary fallback={fallback} />`
|
|
127
|
+
|
|
128
|
+
# G9Image
|
|
129
|
+
|
|
130
|
+
`import { G9Image } from '@g9tm/lynxcontrols/display';`
|
|
131
|
+
|
|
132
|
+
A photo with a calm placeholder, a fade-in and a designed fallback.
|
|
133
|
+
|
|
134
|
+
Props:
|
|
135
|
+
- `onError?`: () => void
|
|
136
|
+
- `onLoad?`: () => void
|
|
137
|
+
- `fallbackIcon?`: icon
|
|
138
|
+
- `radius?`: number
|
|
139
|
+
- `alt?`: string
|
|
140
|
+
- `aspectRatio?`: number
|
|
141
|
+
- `fadeIn?`: boolean = true
|
|
142
|
+
- `fit?`: 'contain' | 'stretch' | 'cover'
|
|
143
|
+
|
|
144
|
+
Example: `<G9Image />`
|
|
145
|
+
|
|
146
|
+
# G9InlineMessage
|
|
147
|
+
|
|
148
|
+
`import { G9InlineMessage } from '@g9tm/lynxcontrols/display';`
|
|
149
|
+
|
|
150
|
+
A message in the flow of a page (ShopManager Message, Riskara Disclaimer, form errors): calm, never a modal.
|
|
151
|
+
|
|
152
|
+
Props:
|
|
153
|
+
- `text`: string
|
|
154
|
+
- `title?`: string
|
|
155
|
+
- `children?`: ReactNode
|
|
156
|
+
- `icon?`: icon
|
|
157
|
+
- `tone?`: 'primary' | 'info' | 'success' | 'warning' | 'error' | 'accent' | 'neutral' = "info"
|
|
158
|
+
- `onDismiss?`: () => void
|
|
159
|
+
- `action?`: object
|
|
160
|
+
|
|
161
|
+
Example: `<G9InlineMessage text="Label" />`
|
|
162
|
+
|
|
163
|
+
# G9Keycap
|
|
164
|
+
|
|
165
|
+
`import { G9Keycap } from '@g9tm/lynxcontrols/display';`
|
|
166
|
+
|
|
167
|
+
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.
|
|
168
|
+
|
|
169
|
+
Props:
|
|
170
|
+
- `combo`: string
|
|
171
|
+
- `size?`: 'sm' | 'md'
|
|
172
|
+
- `color?`: color
|
|
173
|
+
- `platform?`: 'mac' | 'other'
|
|
174
|
+
|
|
175
|
+
Example: `<G9Keycap combo="combo" />`
|
|
176
|
+
|
|
177
|
+
# G9Kpi
|
|
178
|
+
|
|
179
|
+
`import { G9Kpi } from '@g9tm/lynxcontrols/display';`
|
|
180
|
+
|
|
181
|
+
The KPI tile (SAC Kpi, ShopManager Tile, G9Hub StatTile, Riskara Kpi): label and icon, the value large, the change, a trend.
|
|
182
|
+
|
|
183
|
+
Props:
|
|
184
|
+
- `label`: string
|
|
185
|
+
- `value`: string
|
|
186
|
+
- `icon?`: icon
|
|
187
|
+
- `onPress?`: () => void
|
|
188
|
+
- `tone?`: 'primary' | 'info' | 'success' | 'warning' | 'error' | 'accent' | 'neutral'
|
|
189
|
+
- `loading?`: boolean
|
|
190
|
+
- `trend?`: ReactNode
|
|
191
|
+
- `delta?`: object
|
|
192
|
+
|
|
193
|
+
Example: `<G9Kpi label="Label" value="value" />`
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols/display` (part 2 of 3) (generated)
|
|
2
|
+
|
|
3
|
+
# G9KpiGrid
|
|
4
|
+
|
|
5
|
+
`import { G9KpiGrid } from '@g9tm/lynxcontrols/display';`
|
|
6
|
+
|
|
7
|
+
KPI tiles in rows of `columns`; each tile takes an equal share (re-renders only when the layout class changes).
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `columns?`: object = "{ phone: 2, tablet: 3, desktop: 4 }"
|
|
11
|
+
- `children?`: ReactNode
|
|
12
|
+
- `gap?`: number = 12
|
|
13
|
+
|
|
14
|
+
Example: `<G9KpiGrid />`
|
|
15
|
+
|
|
16
|
+
# G9LiveBadge
|
|
17
|
+
|
|
18
|
+
`import { G9LiveBadge } from '@g9tm/lynxcontrols/display';`
|
|
19
|
+
|
|
20
|
+
«● زنده» — a pulsing dot and a word (live prices, live orders).
|
|
21
|
+
|
|
22
|
+
Props:
|
|
23
|
+
- `text`: string
|
|
24
|
+
- `tone?`: 'primary' | 'info' | 'success' | 'warning' | 'error' | 'accent' | 'neutral'
|
|
25
|
+
|
|
26
|
+
Example: `<G9LiveBadge text="Label" />`
|
|
27
|
+
|
|
28
|
+
# G9LiveDot
|
|
29
|
+
|
|
30
|
+
`import { G9LiveDot } from '@g9tm/lynxcontrols/display';`
|
|
31
|
+
|
|
32
|
+
A live dot with an expanding ring (Riskara Pulse, «online», a running sync).
|
|
33
|
+
|
|
34
|
+
Props:
|
|
35
|
+
- `size?`: number = 8
|
|
36
|
+
- `tone?`: 'primary' | 'info' | 'success' | 'warning' | 'error' | 'accent' | 'neutral' = "success"
|
|
37
|
+
- `pulse?`: boolean = true
|
|
38
|
+
|
|
39
|
+
Example: `<G9LiveDot />`
|
|
40
|
+
|
|
41
|
+
# G9LoadState
|
|
42
|
+
|
|
43
|
+
`import { G9LoadState } from '@g9tm/lynxcontrols/display';`
|
|
44
|
+
|
|
45
|
+
A page body while its data loads, or its error with a retry (SAC Loading).
|
|
46
|
+
|
|
47
|
+
Props:
|
|
48
|
+
- `onRetry?`: () => void
|
|
49
|
+
- `message?`: string
|
|
50
|
+
- `retryText?`: string
|
|
51
|
+
- `error?`: string
|
|
52
|
+
|
|
53
|
+
Example: `<G9LoadState />`
|
|
54
|
+
|
|
55
|
+
# G9LockOverlay
|
|
56
|
+
|
|
57
|
+
`import { G9LockOverlay } from '@g9tm/lynxcontrols/display';`
|
|
58
|
+
|
|
59
|
+
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.
|
|
60
|
+
|
|
61
|
+
Props:
|
|
62
|
+
- `locked`: boolean
|
|
63
|
+
- `title`: string
|
|
64
|
+
- `children?`: ReactNode
|
|
65
|
+
- `onAction?`: () => void
|
|
66
|
+
- `actionText?`: string
|
|
67
|
+
- `message?`: string
|
|
68
|
+
|
|
69
|
+
Example: `<G9LockOverlay locked title="Label" />`
|
|
70
|
+
|
|
71
|
+
# G9Photo
|
|
72
|
+
|
|
73
|
+
`import { G9Photo } from '@g9tm/lynxcontrols/display';`
|
|
74
|
+
|
|
75
|
+
A photo with a designed placeholder (SAC Photo, ShopManager Thumb): the brand's soft tint and an icon until the image loads, and if it fails.
|
|
76
|
+
|
|
77
|
+
Props:
|
|
78
|
+
- `size?`: number = 64
|
|
79
|
+
- `mode?`: 'aspectFill' | 'aspectFit' | 'scaleToFill' = "aspectFill"
|
|
80
|
+
- `onError?`: () => void
|
|
81
|
+
- `onLoad?`: () => void
|
|
82
|
+
- `placeholderIcon?`: icon = "search"
|
|
83
|
+
- `radius?`: number
|
|
84
|
+
- `height?`: string | number
|
|
85
|
+
- `src?`: string
|
|
86
|
+
|
|
87
|
+
Example: `<G9Photo />`
|
|
88
|
+
|
|
89
|
+
# G9ProgressBar
|
|
90
|
+
|
|
91
|
+
`import { G9ProgressBar } from '@g9tm/lynxcontrols/display';`
|
|
92
|
+
|
|
93
|
+
Linear progress (MAUI `G9ProgressBar`): gradient fill (colour → 24 % lighter), diagonal stripes while running, optional segments and label, indeterminate sweep.
|
|
94
|
+
|
|
95
|
+
Props:
|
|
96
|
+
- `value?`: number = 0
|
|
97
|
+
- `disabled?`: boolean = false
|
|
98
|
+
- `labelPlacement?`: 'none' | 'above' | 'end' = "none"
|
|
99
|
+
- `progressType?`: 'primary' | 'success' | 'warning' | 'error' = "primary"
|
|
100
|
+
- `barHeight?`: number = 10
|
|
101
|
+
- `cornerRadius?`: number = 999
|
|
102
|
+
- `progressColor?`: color
|
|
103
|
+
- `trackColor?`: color = "var(--g9-surface-variant)"
|
|
104
|
+
|
|
105
|
+
Example: `<G9ProgressBar value={0.4} labelPlacement="end" />`
|
|
106
|
+
|
|
107
|
+
# G9ProgressRing
|
|
108
|
+
|
|
109
|
+
`import { G9ProgressRing } from '@g9tm/lynxcontrols/display';`
|
|
110
|
+
|
|
111
|
+
A progress ring (ShopManager Ring, G9Hub ProgressRing): done of total, with words inside.
|
|
112
|
+
|
|
113
|
+
Props:
|
|
114
|
+
- `value`: number
|
|
115
|
+
- `children?`: ReactNode
|
|
116
|
+
- `size?`: number = 72
|
|
117
|
+
- `tone?`: 'primary' | 'info' | 'success' | 'warning' | 'error' | 'accent' | 'neutral' = "primary"
|
|
118
|
+
- `trackColor?`: color
|
|
119
|
+
- `color?`: color
|
|
120
|
+
- `thickness?`: number = 6
|
|
121
|
+
- `accessibilityLabel?`: string
|
|
122
|
+
|
|
123
|
+
Example: `<G9ProgressRing value={1} />`
|
|
124
|
+
|
|
125
|
+
# G9RevealText
|
|
126
|
+
|
|
127
|
+
`import { G9RevealText } from '@g9tm/lynxcontrols/display';`
|
|
128
|
+
|
|
129
|
+
An answer that appears word by word while the person watches (ShopChat Reveal, Riskara RevealText).
|
|
130
|
+
|
|
131
|
+
Props:
|
|
132
|
+
- `text`: string
|
|
133
|
+
- `onDone?`: () => void
|
|
134
|
+
- `textStyle?`: object
|
|
135
|
+
- `animate?`: boolean = true
|
|
136
|
+
- `durationMs?`: number = 1500
|
|
137
|
+
- `textClassName?`: string
|
|
138
|
+
|
|
139
|
+
Example: `<G9RevealText text="Label" />`
|
|
140
|
+
|
|
141
|
+
# G9Separator
|
|
142
|
+
|
|
143
|
+
`import { G9Separator } from '@g9tm/lynxcontrols/display';`
|
|
144
|
+
|
|
145
|
+
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).
|
|
146
|
+
|
|
147
|
+
Props:
|
|
148
|
+
- `title?`: string
|
|
149
|
+
- `icon?`: icon
|
|
150
|
+
- `disabled?`: boolean = false
|
|
151
|
+
- `iconEmoji?`: string
|
|
152
|
+
- `iconImage?`: object | object | object
|
|
153
|
+
- `lineColor?`: color = "var(--g9-divider)"
|
|
154
|
+
- `titleColor?`: color = "var(--g9-text-tertiary)"
|
|
155
|
+
- `iconPath?`: string
|
|
156
|
+
|
|
157
|
+
Example: `<G9Separator title="Crops" />`
|
|
158
|
+
|
|
159
|
+
# G9SheetSkeleton
|
|
160
|
+
|
|
161
|
+
`import { G9SheetSkeleton } from '@g9tm/lynxcontrols/display';`
|
|
162
|
+
|
|
163
|
+
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).
|
|
164
|
+
|
|
165
|
+
Props:
|
|
166
|
+
- `skeleton`: 'none' | 'formFields' | 'listRows'
|
|
167
|
+
- `backgroundColor?`: color = "var(--g9-background)"
|
|
168
|
+
- `active?`: boolean = true
|
|
169
|
+
- `rowCount?`: number
|
|
170
|
+
|
|
171
|
+
Example: `<G9SheetSkeleton skeleton="none" />`
|
|
172
|
+
|
|
173
|
+
# G9ShimmerBand
|
|
174
|
+
|
|
175
|
+
`import { G9ShimmerBand } from '@g9tm/lynxcontrols/display';`
|
|
176
|
+
|
|
177
|
+
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.
|
|
178
|
+
|
|
179
|
+
Props:
|
|
180
|
+
- `active?`: boolean = true
|
|
181
|
+
|
|
182
|
+
Example: `<G9ShimmerBand />`
|
|
183
|
+
|
|
184
|
+
# G9Skeleton
|
|
185
|
+
|
|
186
|
+
`import { G9Skeleton } from '@g9tm/lynxcontrols/display';`
|
|
187
|
+
|
|
188
|
+
One placeholder bar (SAC Skeleton, Riskara Shimmer).
|
|
189
|
+
|
|
190
|
+
Props:
|
|
191
|
+
- `radius?`: number = 8
|
|
192
|
+
- `circle?`: boolean
|
|
193
|
+
- `height?`: string | number = 12
|
|
194
|
+
- `width?`: string | number = "100%"
|
|
195
|
+
|
|
196
|
+
Example: `<G9Skeleton />`
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols/display` (part 3 of 3) (generated)
|
|
2
|
+
|
|
3
|
+
# G9SkeletonPage
|
|
4
|
+
|
|
5
|
+
`import { G9SkeletonPage } from '@g9tm/lynxcontrols/display';`
|
|
6
|
+
|
|
7
|
+
A dashboard or list page while it loads: KPI tiles, a chart, rows (SAC SkeletonPage).
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `rows?`: number = 5
|
|
11
|
+
- `chart?`: boolean
|
|
12
|
+
- `kpis?`: number = 0
|
|
13
|
+
- `thumb?`: boolean
|
|
14
|
+
|
|
15
|
+
Example: `<G9SkeletonPage />`
|
|
16
|
+
|
|
17
|
+
# G9SkeletonRows
|
|
18
|
+
|
|
19
|
+
`import { G9SkeletonRows } from '@g9tm/lynxcontrols/display';`
|
|
20
|
+
|
|
21
|
+
A list while it loads: the shape of what is coming, never one grey block (SAC SkeletonRows).
|
|
22
|
+
|
|
23
|
+
Props:
|
|
24
|
+
- `rowHeight?`: number = 56
|
|
25
|
+
- `rows?`: number = 5
|
|
26
|
+
- `dividers?`: boolean = true
|
|
27
|
+
- `thumb?`: boolean
|
|
28
|
+
|
|
29
|
+
Example: `<G9SkeletonRows />`
|
|
30
|
+
|
|
31
|
+
# G9StatusPill
|
|
32
|
+
|
|
33
|
+
`import { G9StatusPill } from '@g9tm/lynxcontrols/display';`
|
|
34
|
+
|
|
35
|
+
A status as a pill — never a control (SAC Pill/StatusPill/Tag, ShopManager Pill, G9Hub Badge, Riskara Delta chips).
|
|
36
|
+
|
|
37
|
+
Props:
|
|
38
|
+
- `text`: string
|
|
39
|
+
- `size?`: 'sm' | 'md' | 'lg'
|
|
40
|
+
- `icon?`: icon
|
|
41
|
+
- `appearance?`: 'outline' | 'soft' | 'solid' | 'plain' = "soft"
|
|
42
|
+
- `tone?`: 'primary' | 'info' | 'success' | 'warning' | 'error' | 'accent' | 'neutral' = "neutral"
|
|
43
|
+
- `fillAlpha?`: number = 0.15
|
|
44
|
+
- `bordered?`: boolean
|
|
45
|
+
- `color?`: color
|
|
46
|
+
|
|
47
|
+
Example: `<G9StatusPill text="Label" />`
|
|
48
|
+
|
|
49
|
+
# G9StepTracker
|
|
50
|
+
|
|
51
|
+
`import { G9StepTracker } from '@g9tm/lynxcontrols/display';`
|
|
52
|
+
|
|
53
|
+
Where an order (a delivery, a wizard) is: done, current, to come (ShopManager Steps, SAC order status).
|
|
54
|
+
|
|
55
|
+
Props:
|
|
56
|
+
- `current`: number
|
|
57
|
+
- `steps`: string[]
|
|
58
|
+
- `tone?`: 'primary' | 'info' | 'success' | 'warning' | 'error' | 'accent' | 'neutral' = "primary"
|
|
59
|
+
- `failedAt?`: number
|
|
60
|
+
|
|
61
|
+
Example: `<G9StepTracker current={1} steps={steps} />`
|
|
62
|
+
|
|
63
|
+
# G9Tag
|
|
64
|
+
|
|
65
|
+
`import { G9Tag } from '@g9tm/lynxcontrols/display';`
|
|
66
|
+
|
|
67
|
+
A small label on a card or row (menu item tags, statuses that are not states): tone + appearance, never pressable.
|
|
68
|
+
|
|
69
|
+
Props:
|
|
70
|
+
- `text`: string
|
|
71
|
+
- `icon?`: icon
|
|
72
|
+
- `appearance?`: 'outline' | 'soft' | 'solid' | 'plain'
|
|
73
|
+
- `tone?`: 'primary' | 'info' | 'success' | 'warning' | 'error' | 'accent' | 'neutral'
|
|
74
|
+
- `emoji?`: string
|
|
75
|
+
|
|
76
|
+
Example: `<G9Tag text="Label" />`
|
|
77
|
+
|
|
78
|
+
# G9ThemePreviewCard
|
|
79
|
+
|
|
80
|
+
`import { G9ThemePreviewCard } from '@g9tm/lynxcontrols/display';`
|
|
81
|
+
|
|
82
|
+
A card showing a theme as a small app (rail, two chat bubbles, a field), its name, and a check when chosen.
|
|
83
|
+
|
|
84
|
+
Props:
|
|
85
|
+
- `name`: string
|
|
86
|
+
- `theme`: object
|
|
87
|
+
- `selected?`: boolean
|
|
88
|
+
- `onSelect?`: () => void
|
|
89
|
+
- `hint?`: string
|
|
90
|
+
- `tag?`: string
|
|
91
|
+
|
|
92
|
+
Example: `<G9ThemePreviewCard name="name" theme={theme} />`
|
|
93
|
+
|
|
94
|
+
# G9TitleWithLine
|
|
95
|
+
|
|
96
|
+
`import { G9TitleWithLine } from '@g9tm/lynxcontrols/display';`
|
|
97
|
+
|
|
98
|
+
A 16 px title over a 1 px line (MAUI `G9TitleWithLine`).
|
|
99
|
+
|
|
100
|
+
Props:
|
|
101
|
+
- `text?`: string = "ابزار"
|
|
102
|
+
- `disabled?`: boolean = false
|
|
103
|
+
- `padding?`: number[] = "[18, 3, 18, 0]"
|
|
104
|
+
- `accessibilityLabel?`: string
|
|
105
|
+
|
|
106
|
+
Example: `<G9TitleWithLine />`
|
|
107
|
+
|
|
108
|
+
# G9Wave
|
|
109
|
+
|
|
110
|
+
`import { G9Wave } from '@g9tm/lynxcontrols/display';`
|
|
111
|
+
|
|
112
|
+
An audio-like wave of breathing bars (Riskara Wave; voice notes, «thinking»).
|
|
113
|
+
|
|
114
|
+
Props:
|
|
115
|
+
- `barWidth?`: number = 3
|
|
116
|
+
- `active?`: boolean = true
|
|
117
|
+
- `bars?`: number = 12
|
|
118
|
+
- `color?`: color
|
|
119
|
+
- `gap?`: number
|
|
120
|
+
- `height?`: number = 18
|
|
121
|
+
|
|
122
|
+
Example: `<G9Wave />`
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols/edge-panel` (generated)
|
|
2
|
+
|
|
3
|
+
# G9EdgePanel
|
|
4
|
+
|
|
5
|
+
`import { G9EdgePanel } from '@g9tm/lynxcontrols/edge-panel';`
|
|
6
|
+
|
|
7
|
+
A panel that slides in from a screen edge (MAUI `G9EdgePanel`), mounted in the host's `edgePanel` layer whatever its place in the tree.
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `side?`: 'left' | 'right' = "left"
|
|
11
|
+
- `onClosed?`: () => void
|
|
12
|
+
- `onClosing?`: () => void
|
|
13
|
+
- `onOpenChange?`: (open: boolean) => void
|
|
14
|
+
- `onOpened?`: () => void
|
|
15
|
+
- `collapsedTabIcon?`: icon
|
|
16
|
+
- `maxPanelHeight?`: number
|
|
17
|
+
- `panelBackgroundColor?`: color
|
|
18
|
+
|
|
19
|
+
Example: `<G9EdgePanel />`
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols/effects` (generated)
|
|
2
|
+
|
|
3
|
+
# G9AnimatedCheck
|
|
4
|
+
|
|
5
|
+
`import { G9AnimatedCheck } from '@g9tm/lynxcontrols/effects';`
|
|
6
|
+
|
|
7
|
+
A check that pops in (G9Hub AnimatedCheck, ShopManager Done): a disc scales up, the check follows.
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `size?`: number = 72
|
|
11
|
+
- `color?`: color
|
|
12
|
+
- `haptic?`: boolean = true
|
|
13
|
+
- `accessibilityLabel?`: string
|
|
14
|
+
|
|
15
|
+
Example: `<G9AnimatedCheck />`
|
|
16
|
+
|
|
17
|
+
# G9Confetti
|
|
18
|
+
|
|
19
|
+
`import { G9Confetti } from '@g9tm/lynxcontrols/effects';`
|
|
20
|
+
|
|
21
|
+
A one-shot burst behind a success (mardomi Tracking Confetti, G9Hub delights): each piece moves by a transform transition on the compositor — no JS frame loop.
|
|
22
|
+
|
|
23
|
+
Props:
|
|
24
|
+
- `fire`: string | number
|
|
25
|
+
- `onDone?`: () => void
|
|
26
|
+
- `colors?`: string[]
|
|
27
|
+
- `durationMs?`: number = 1100
|
|
28
|
+
- `pieces?`: number = 28
|
|
29
|
+
- `spread?`: number = 180
|
|
30
|
+
|
|
31
|
+
Example: `<G9Confetti fire={fire} />`
|
|
32
|
+
|
|
33
|
+
# G9SuccessHeader
|
|
34
|
+
|
|
35
|
+
`import { G9SuccessHeader } from '@g9tm/lynxcontrols/effects';`
|
|
36
|
+
|
|
37
|
+
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.
|
|
38
|
+
|
|
39
|
+
Props:
|
|
40
|
+
- `title`: string
|
|
41
|
+
- `children?`: ReactNode
|
|
42
|
+
- `subtitle?`: string
|
|
43
|
+
- `art?`: ReactNode
|
|
44
|
+
- `haptic?`: boolean = true
|
|
45
|
+
|
|
46
|
+
Example: `<G9SuccessHeader title="Label" />`
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols/expander` (generated)
|
|
2
|
+
|
|
3
|
+
# G9Expander
|
|
4
|
+
|
|
5
|
+
`import { G9Expander } from '@g9tm/lynxcontrols/expander';`
|
|
6
|
+
|
|
7
|
+
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).
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `title?`: string
|
|
11
|
+
- `children?`: ReactNode
|
|
12
|
+
- `icon?`: icon
|
|
13
|
+
- `disabled?`: boolean = false
|
|
14
|
+
- `onExpandedChange?`: (expanded: boolean) => void
|
|
15
|
+
- `chevronColor?`: color = "var(--g9-text-secondary)"
|
|
16
|
+
- `contentPadding?`: number[] = 0
|
|
17
|
+
- `headerHeight?`: number = 48
|
|
18
|
+
|
|
19
|
+
Example: `<G9Expander />`
|