@g9tm/lynxcontrols 2.3.0 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/bin/g9lynx.mjs +103 -0
- package/bin/g9lynx.test.mjs +80 -0
- package/catalog/cards/DateTimeSheetBody.md +17 -0
- package/catalog/cards/G9ActionRow.md +11 -0
- package/catalog/cards/G9ActionSheet.md +14 -0
- package/catalog/cards/G9Activity.md +11 -0
- package/catalog/cards/G9ActivityIndicator.md +14 -0
- package/catalog/cards/G9AllocationInput.md +17 -0
- package/catalog/cards/G9Anchor.md +17 -0
- package/catalog/cards/G9AnimatedCheck.md +13 -0
- package/catalog/cards/G9AppBar.md +17 -0
- package/catalog/cards/G9AppShell.md +17 -0
- package/catalog/cards/G9Art.md +13 -0
- package/catalog/cards/G9Avatar.md +16 -0
- package/catalog/cards/G9Badge.md +15 -0
- package/catalog/cards/G9Bento.md +13 -0
- package/catalog/cards/G9Button.md +17 -0
- package/catalog/cards/G9CameFromMark.md +9 -0
- package/catalog/cards/G9Card.md +17 -0
- package/catalog/cards/G9CascadePanel.md +17 -0
- package/catalog/cards/G9CheckBox.md +17 -0
- package/catalog/cards/G9Chip.md +17 -0
- package/catalog/cards/G9ChipGroup.md +17 -0
- package/catalog/cards/G9ChoiceList.md +17 -0
- package/catalog/cards/G9Columns.md +13 -0
- package/catalog/cards/G9ComboBox.md +17 -0
- package/catalog/cards/G9CommandPalette.md +15 -0
- package/catalog/cards/G9Confetti.md +15 -0
- package/catalog/cards/G9ConnectionBanner.md +15 -0
- package/catalog/cards/G9ContextMenu.md +15 -0
- package/catalog/cards/G9CornerBadge.md +15 -0
- package/catalog/cards/G9CultureDateTimeLabel.md +16 -0
- package/catalog/cards/G9DateTimePicker.md +17 -0
- package/catalog/cards/G9DayStepper.md +17 -0
- package/catalog/cards/G9DeferredContent.md +17 -0
- package/catalog/cards/G9Delta.md +17 -0
- package/catalog/cards/G9DesignNode.md +13 -0
- package/catalog/cards/G9DesignScope.md +11 -0
- package/catalog/cards/G9DragList.md +15 -0
- package/catalog/cards/G9EdgePanel.md +17 -0
- package/catalog/cards/G9Editor.md +17 -0
- package/catalog/cards/G9EmptyState.md +17 -0
- package/catalog/cards/G9ErrorBoundary.md +13 -0
- package/catalog/cards/G9Expander.md +17 -0
- package/catalog/cards/G9FloatingOrb.md +17 -0
- package/catalog/cards/G9FormField.md +15 -0
- package/catalog/cards/G9HScroll.md +16 -0
- package/catalog/cards/G9HeaderActionButton.md +17 -0
- package/catalog/cards/G9HoldButton.md +17 -0
- package/catalog/cards/G9Host.md +17 -0
- package/catalog/cards/G9Icon.md +16 -0
- package/catalog/cards/G9IconButton.md +17 -0
- package/catalog/cards/G9IconRail.md +15 -0
- package/catalog/cards/G9IconSlot.md +17 -0
- package/catalog/cards/G9Image.md +17 -0
- package/catalog/cards/G9InlineMessage.md +16 -0
- package/catalog/cards/G9KeepAlive.md +11 -0
- package/catalog/cards/G9Keycap.md +13 -0
- package/catalog/cards/G9Kpi.md +17 -0
- package/catalog/cards/G9KpiGrid.md +12 -0
- package/catalog/cards/G9ListRow.md +17 -0
- package/catalog/cards/G9LiveBadge.md +11 -0
- package/catalog/cards/G9LiveDot.md +12 -0
- package/catalog/cards/G9LoadState.md +13 -0
- package/catalog/cards/G9LoadableSheetContent.md +17 -0
- package/catalog/cards/G9LockOverlay.md +15 -0
- package/catalog/cards/G9Menu.md +17 -0
- package/catalog/cards/G9MenuList.md +12 -0
- package/catalog/cards/G9NavCard.md +17 -0
- package/catalog/cards/G9NumPad.md +13 -0
- package/catalog/cards/G9NumberEntry.md +17 -0
- package/catalog/cards/G9OutlinedField.md +17 -0
- package/catalog/cards/G9OverlayRoot.md +12 -0
- package/catalog/cards/G9Page.md +17 -0
- package/catalog/cards/G9PageLoadingOverlay.md +12 -0
- package/catalog/cards/G9Pager.md +16 -0
- package/catalog/cards/G9Photo.md +17 -0
- package/catalog/cards/G9Picker.md +17 -0
- package/catalog/cards/G9PinEntry.md +17 -0
- package/catalog/cards/G9Place.md +17 -0
- package/catalog/cards/G9PlaceScroll.md +13 -0
- package/catalog/cards/G9PlusButton.md +17 -0
- package/catalog/cards/G9Popover.md +17 -0
- package/catalog/cards/G9PopupDragHandle.md +10 -0
- package/catalog/cards/G9PopupView.md +15 -0
- package/catalog/cards/G9Pressable.md +17 -0
- package/catalog/cards/G9ProcessingSheetContent.md +13 -0
- package/catalog/cards/G9ProgressBar.md +17 -0
- package/catalog/cards/G9ProgressRing.md +17 -0
- package/catalog/cards/G9Provider.md +17 -0
- package/catalog/cards/G9PullToRefresh.md +13 -0
- package/catalog/cards/G9RadioGroup.md +17 -0
- package/catalog/cards/G9RangeSlider.md +17 -0
- package/catalog/cards/G9RatingInput.md +17 -0
- package/catalog/cards/G9RevealText.md +15 -0
- package/catalog/cards/G9SafeButton.md +17 -0
- package/catalog/cards/G9SafeIconButton.md +17 -0
- package/catalog/cards/G9SaveBar.md +16 -0
- package/catalog/cards/G9ScaleInput.md +17 -0
- package/catalog/cards/G9ScrollSpyBar.md +12 -0
- package/catalog/cards/G9ScrollerScope.md +10 -0
- package/catalog/cards/G9SearchEntry.md +17 -0
- package/catalog/cards/G9Section.md +16 -0
- package/catalog/cards/G9SectionHeader.md +14 -0
- package/catalog/cards/G9Segmented.md +17 -0
- package/catalog/cards/G9Separator.md +17 -0
- package/catalog/cards/G9SettingsGroup.md +13 -0
- package/catalog/cards/G9Sheet.md +13 -0
- package/catalog/cards/G9SheetBackdropScope.md +10 -0
- package/catalog/cards/G9SheetFooter.md +10 -0
- package/catalog/cards/G9SheetFooterBar.md +11 -0
- package/catalog/cards/G9SheetFrame.md +17 -0
- package/catalog/cards/G9SheetHeader.md +11 -0
- package/catalog/cards/G9SheetScrollIndicator.md +10 -0
- package/catalog/cards/G9SheetScrollRegion.md +11 -0
- package/catalog/cards/G9SheetSkeleton.md +13 -0
- package/catalog/cards/G9ShimmerBand.md +10 -0
- package/catalog/cards/G9ShortcutList.md +11 -0
- package/catalog/cards/G9ShortcutsSheet.md +15 -0
- package/catalog/cards/G9SideNav.md +16 -0
- package/catalog/cards/G9Skeleton.md +13 -0
- package/catalog/cards/G9SkeletonPage.md +13 -0
- package/catalog/cards/G9SkeletonRows.md +13 -0
- package/catalog/cards/G9SplitPane.md +17 -0
- package/catalog/cards/G9StatusPill.md +17 -0
- package/catalog/cards/G9StepSlider.md +16 -0
- package/catalog/cards/G9StepTracker.md +13 -0
- package/catalog/cards/G9Stepper.md +17 -0
- package/catalog/cards/G9SuccessHeader.md +14 -0
- package/catalog/cards/G9Swatch.md +13 -0
- package/catalog/cards/G9SwipeGroup.md +11 -0
- package/catalog/cards/G9SwipeView.md +17 -0
- package/catalog/cards/G9Switch.md +17 -0
- package/catalog/cards/G9SwitchGroup.md +15 -0
- package/catalog/cards/G9SwitchRow.md +17 -0
- package/catalog/cards/G9TabBar.md +17 -0
- package/catalog/cards/G9TabView.md +17 -0
- package/catalog/cards/G9Tag.md +14 -0
- package/catalog/cards/G9TagEntry.md +16 -0
- package/catalog/cards/G9TextEntry.md +17 -0
- package/catalog/cards/G9ThemePreviewCard.md +15 -0
- package/catalog/cards/G9TimeEntry.md +17 -0
- package/catalog/cards/G9TimeSpanPicker.md +17 -0
- package/catalog/cards/G9TitleWithLine.md +13 -0
- package/catalog/cards/G9TopBar.md +13 -0
- package/catalog/cards/G9UnsavedBar.md +16 -0
- package/catalog/cards/G9UpdateBar.md +15 -0
- package/catalog/cards/G9VerticalIconTextButton.md +15 -0
- package/catalog/cards/G9VirtualList.md +17 -0
- package/catalog/cards/G9Wave.md +15 -0
- package/catalog/cards/G9WheelColumn.md +17 -0
- package/catalog/cards/PickerField.md +14 -0
- package/catalog/cards/PickerSheetHeader.md +12 -0
- package/catalog/cards/PopupFrame.md +15 -0
- package/catalog/cards/PopupInputForm.md +11 -0
- package/catalog/cards/SelectionValueIcon.md +12 -0
- package/catalog/cards/TimeSpanSheetBody.md +16 -0
- package/catalog/catalog.json +47916 -0
- package/catalog/index.md +159 -0
- package/dist/.tsbuildinfo +1 -1
- package/dist/anchor/index.d.ts +1 -1
- package/dist/anchor/index.d.ts.map +1 -1
- package/dist/anchor/registry.d.ts +5 -0
- package/dist/anchor/registry.d.ts.map +1 -1
- package/dist/base/base.css +1 -0
- package/dist/base/base.css.map +1 -1
- package/dist/button/button-variants.css +4 -0
- package/dist/button/button-variants.css.map +1 -1
- package/dist/button/button.css +12 -5
- package/dist/button/button.css.map +1 -1
- package/dist/button/variant-css.d.ts.map +1 -1
- package/dist/button/variant-css.jsx +2 -1
- package/dist/cascade/cascade.css +2 -1
- package/dist/cascade/cascade.css.map +1 -1
- package/dist/commands/commands.css +12 -6
- package/dist/commands/commands.css.map +1 -1
- package/dist/design/design.d.ts +39 -0
- package/dist/design/design.d.ts.map +1 -0
- package/dist/design/design.jsx +54 -0
- package/dist/design/index.d.ts +3 -0
- package/dist/design/index.d.ts.map +1 -0
- package/dist/design/index.jsx +2 -0
- package/dist/design/probe.d.ts +62 -0
- package/dist/design/probe.d.ts.map +1 -0
- package/dist/design/probe.jsx +141 -0
- package/dist/display/data-uri.d.ts +9 -0
- package/dist/display/data-uri.d.ts.map +1 -0
- package/dist/display/data-uri.jsx +56 -0
- package/dist/display/display.css +10 -3
- package/dist/display/display.css.map +1 -1
- package/dist/display/extras.css +8 -2
- package/dist/display/extras.css.map +1 -1
- package/dist/display/figures.css +28 -7
- package/dist/display/figures.css.map +1 -1
- package/dist/display/figures.d.ts +10 -0
- package/dist/display/figures.d.ts.map +1 -1
- package/dist/display/figures.jsx +28 -5
- package/dist/display/image.d.ts +9 -2
- package/dist/display/image.d.ts.map +1 -1
- package/dist/display/image.jsx +20 -6
- package/dist/display/keycap.css +1 -0
- package/dist/display/keycap.css.map +1 -1
- package/dist/display/motion-figures.css +4 -1
- package/dist/display/motion-figures.css.map +1 -1
- package/dist/display/separator.d.ts.map +1 -1
- package/dist/display/separator.jsx +1 -1
- package/dist/display/status.css +5 -0
- package/dist/display/status.css.map +1 -1
- package/dist/display/theme-preview.css +6 -3
- package/dist/display/theme-preview.css.map +1 -1
- package/dist/edge-panel/edge-panel.css +6 -3
- package/dist/edge-panel/edge-panel.css.map +1 -1
- package/dist/effects/effects.css +4 -2
- package/dist/effects/effects.css.map +1 -1
- package/dist/expander/expander.css +2 -1
- package/dist/expander/expander.css.map +1 -1
- package/dist/fields/extra-entries.css +14 -6
- package/dist/fields/extra-entries.css.map +1 -1
- package/dist/fields/fields.css +21 -10
- package/dist/fields/fields.css.map +1 -1
- package/dist/fields/text-entry.d.ts.map +1 -1
- package/dist/fields/text-entry.jsx +3 -0
- package/dist/guide/guide.css +17 -5
- package/dist/guide/guide.css.map +1 -1
- package/dist/header/header.css +6 -2
- package/dist/header/header.css.map +1 -1
- package/dist/icon/icon.d.ts +9 -2
- package/dist/icon/icon.d.ts.map +1 -1
- package/dist/icon/icon.jsx +26 -4
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/layout/layout.css +15 -5
- package/dist/layout/layout.css.map +1 -1
- package/dist/layout/scrollers.d.ts +6 -0
- package/dist/layout/scrollers.d.ts.map +1 -1
- package/dist/layout/scrollers.jsx +5 -1
- package/dist/list/list.css +18 -8
- package/dist/list/list.css.map +1 -1
- package/dist/orb/orb.css +2 -1
- package/dist/orb/orb.css.map +1 -1
- package/dist/pickers/day-stepper.css +2 -1
- package/dist/pickers/day-stepper.css.map +1 -1
- package/dist/pickers/pickers.css +19 -9
- package/dist/pickers/pickers.css.map +1 -1
- package/dist/plus-button/plus-button.css +2 -1
- package/dist/plus-button/plus-button.css.map +1 -1
- package/dist/popover/popover.css +9 -4
- package/dist/popover/popover.css.map +1 -1
- package/dist/popup/popup.css +11 -5
- package/dist/popup/popup.css.map +1 -1
- package/dist/popup/service.d.ts.map +1 -1
- package/dist/popup/service.jsx +5 -1
- package/dist/provider/index.d.ts +1 -1
- package/dist/provider/index.d.ts.map +1 -1
- package/dist/provider/provider.css.map +1 -1
- package/dist/provider/provider.d.ts +25 -1
- package/dist/provider/provider.d.ts.map +1 -1
- package/dist/provider/provider.jsx +48 -12
- package/dist/range-slider/range-slider.css +9 -4
- package/dist/range-slider/range-slider.css.map +1 -1
- package/dist/selection/selection.css +10 -5
- package/dist/selection/selection.css.map +1 -1
- package/dist/sheet/frame.d.ts +6 -0
- package/dist/sheet/frame.d.ts.map +1 -1
- package/dist/sheet/frame.jsx +5 -1
- package/dist/sheet/header.d.ts.map +1 -1
- package/dist/sheet/header.jsx +5 -2
- package/dist/sheet/service.d.ts +5 -0
- package/dist/sheet/service.d.ts.map +1 -1
- package/dist/sheet/service.jsx +9 -6
- package/dist/sheet/sheet.css +1 -0
- package/dist/sheet/sheet.css.map +1 -1
- package/dist/shell/shell.css +19 -8
- package/dist/shell/shell.css.map +1 -1
- package/dist/survey/survey.css +15 -7
- package/dist/survey/survey.css.map +1 -1
- package/dist/swipe/swipe.css +1 -0
- package/dist/swipe/swipe.css.map +1 -1
- package/dist/tab-bar/index.d.ts +1 -1
- package/dist/tab-bar/index.d.ts.map +1 -1
- package/dist/tab-bar/index.jsx +1 -1
- package/dist/tab-bar/model.d.ts +14 -0
- package/dist/tab-bar/model.d.ts.map +1 -1
- package/dist/tab-bar/model.jsx +19 -1
- package/dist/tab-bar/tab-bar.css +4 -1
- package/dist/tab-bar/tab-bar.css.map +1 -1
- package/dist/tab-bar/tab-bar.d.ts.map +1 -1
- package/dist/tab-bar/tab-bar.jsx +12 -8
- package/dist/tabs/tabs.css +3 -1
- package/dist/tabs/tabs.css.map +1 -1
- package/dist/toast/toast.css +9 -4
- package/dist/toast/toast.css.map +1 -1
- package/dist/toggle/choice.css +15 -6
- package/dist/toggle/choice.css.map +1 -1
- package/dist/toggle/toggle.css +12 -6
- package/dist/toggle/toggle.css.map +1 -1
- package/package.json +16 -4
- package/skills/g9-lynx-app/SKILL.md +42 -0
- package/skills/g9-lynx-app/references/adaptive-layout.md +10 -0
- package/skills/g9-lynx-app/references/anchors-guide.md +9 -0
- package/skills/g9-lynx-app/references/catalog-index.md +80 -0
- package/skills/g9-lynx-app/references/common-mistakes.md +12 -0
- package/skills/g9-lynx-app/references/components/anchor.md +30 -0
- package/skills/g9-lynx-app/references/components/barcode-qr.md +19 -0
- package/skills/g9-lynx-app/references/components/barcode.md +37 -0
- package/skills/g9-lynx-app/references/components/base.md +35 -0
- package/skills/g9-lynx-app/references/components/button.md +125 -0
- package/skills/g9-lynx-app/references/components/calendar.md +128 -0
- package/skills/g9-lynx-app/references/components/cascade.md +19 -0
- package/skills/g9-lynx-app/references/components/charts.md +193 -0
- package/skills/g9-lynx-app/references/components/chat.md +98 -0
- package/skills/g9-lynx-app/references/components/commands.md +45 -0
- package/skills/g9-lynx-app/references/components/commerce.md +69 -0
- package/skills/g9-lynx-app/references/components/datagrid.md +19 -0
- package/skills/g9-lynx-app/references/components/deferred.md +19 -0
- package/skills/g9-lynx-app/references/components/design.md +27 -0
- package/skills/g9-lynx-app/references/components/display-1.md +193 -0
- package/skills/g9-lynx-app/references/components/display-2.md +196 -0
- package/skills/g9-lynx-app/references/components/display-3.md +122 -0
- package/skills/g9-lynx-app/references/components/edge-panel.md +19 -0
- package/skills/g9-lynx-app/references/components/effects.md +46 -0
- package/skills/g9-lynx-app/references/components/expander.md +19 -0
- package/skills/g9-lynx-app/references/components/fields.md +174 -0
- package/skills/g9-lynx-app/references/components/header.md +19 -0
- package/skills/g9-lynx-app/references/components/host.md +32 -0
- package/skills/g9-lynx-app/references/components/icon.md +64 -0
- package/skills/g9-lynx-app/references/components/intro-carousel.md +19 -0
- package/skills/g9-lynx-app/references/components/layout-1.md +188 -0
- package/skills/g9-lynx-app/references/components/layout-2.md +18 -0
- package/skills/g9-lynx-app/references/components/list.md +116 -0
- package/skills/g9-lynx-app/references/components/map.md +19 -0
- package/skills/g9-lynx-app/references/components/media.md +115 -0
- package/skills/g9-lynx-app/references/components/orb.md +37 -0
- package/skills/g9-lynx-app/references/components/pickers.md +185 -0
- package/skills/g9-lynx-app/references/components/pilot.md +40 -0
- package/skills/g9-lynx-app/references/components/plus-button.md +19 -0
- package/skills/g9-lynx-app/references/components/popover.md +94 -0
- package/skills/g9-lynx-app/references/components/popup.md +56 -0
- package/skills/g9-lynx-app/references/components/provider.md +43 -0
- package/skills/g9-lynx-app/references/components/range-slider.md +36 -0
- package/skills/g9-lynx-app/references/components/route.md +19 -0
- package/skills/g9-lynx-app/references/components/sheet.md +134 -0
- package/skills/g9-lynx-app/references/components/shell.md +98 -0
- package/skills/g9-lynx-app/references/components/survey.md +55 -0
- package/skills/g9-lynx-app/references/components/swipe.md +31 -0
- package/skills/g9-lynx-app/references/components/tab-bar.md +19 -0
- package/skills/g9-lynx-app/references/components/tabs.md +19 -0
- package/skills/g9-lynx-app/references/components/toggle.md +161 -0
- package/skills/g9-lynx-app/references/lists.md +13 -0
- package/skills/g9-lynx-app/references/localization-rtl.md +13 -0
- package/skills/g9-lynx-app/references/navigation-route.md +21 -0
- package/skills/g9-lynx-app/references/overlays.md +27 -0
- package/skills/g9-lynx-app/references/pilot.md +10 -0
- package/skills/g9-lynx-app/references/platform-rules.md +42 -0
- package/skills/g9-lynx-app/references/provider-and-host.md +37 -0
- package/skills/g9-lynx-app/references/theming.md +18 -0
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols-charts` (generated)
|
|
2
|
+
|
|
3
|
+
# G9BarChart
|
|
4
|
+
|
|
5
|
+
`import { G9BarChart } from '@g9tm/lynxcontrols-charts';`
|
|
6
|
+
|
|
7
|
+
Bars (SAC hourly, G9Hub admin BarChart, ShopManager Bars).
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `values`: number[]
|
|
11
|
+
- `tooltip?`: (index: number) => void
|
|
12
|
+
- `yFormat?`: (v: number) => void
|
|
13
|
+
- `color?`: color
|
|
14
|
+
- `everyX?`: number
|
|
15
|
+
- `height?`: number = 180
|
|
16
|
+
- `highlightIndex?`: number
|
|
17
|
+
- `legend?`: object[]
|
|
18
|
+
|
|
19
|
+
Example: `<G9BarChart values={values} />`
|
|
20
|
+
|
|
21
|
+
# G9CandleChart
|
|
22
|
+
|
|
23
|
+
`import { G9CandleChart } from '@g9tm/lynxcontrols-charts';`
|
|
24
|
+
|
|
25
|
+
Candlesticks (Riskara Candles): success colour up, error colour down, the last close dashed.
|
|
26
|
+
|
|
27
|
+
Props:
|
|
28
|
+
- `candles`: object[]
|
|
29
|
+
- `tooltip?`: (index: number) => void
|
|
30
|
+
- `yFormat?`: (v: number) => void
|
|
31
|
+
- `everyX?`: number
|
|
32
|
+
- `height?`: number = 180
|
|
33
|
+
- `legend?`: object[]
|
|
34
|
+
- `width?`: number
|
|
35
|
+
- `xLabels?`: string[]
|
|
36
|
+
|
|
37
|
+
Example: `<G9CandleChart candles={candles} />`
|
|
38
|
+
|
|
39
|
+
# G9ChartBox
|
|
40
|
+
|
|
41
|
+
`import { G9ChartBox } from '@g9tm/lynxcontrols-charts';`
|
|
42
|
+
|
|
43
|
+
A chart in its frame (SAC kit ChartBox): y labels on the end side in the reading direction (right in RTL), x labels under, a legend, and a tooltip that follows the finger to the nearest slot.
|
|
44
|
+
|
|
45
|
+
Props:
|
|
46
|
+
- `build`: (width: number, height: number, palette: G9PaletteValues) => void
|
|
47
|
+
- `deps`: {}[]
|
|
48
|
+
- `tooltip?`: (index: number) => void
|
|
49
|
+
- `yFormat?`: (v: number) => void
|
|
50
|
+
- `everyX?`: number
|
|
51
|
+
- `height?`: number = 180
|
|
52
|
+
- `legend?`: object[]
|
|
53
|
+
- `width?`: number
|
|
54
|
+
|
|
55
|
+
Example: `<G9ChartBox build={build} deps={deps} />`
|
|
56
|
+
|
|
57
|
+
# G9Donut
|
|
58
|
+
|
|
59
|
+
`import { G9Donut } from '@g9tm/lynxcontrols-charts';`
|
|
60
|
+
|
|
61
|
+
A donut with its legend and shares (SAC DonutBox, Riskara Donut); at most about six slices read well.
|
|
62
|
+
|
|
63
|
+
Props:
|
|
64
|
+
- `slices`: object[]
|
|
65
|
+
- `children?`: ReactNode
|
|
66
|
+
- `size?`: number = 160
|
|
67
|
+
- `legend?`: boolean = true
|
|
68
|
+
- `thickness?`: number = 18
|
|
69
|
+
- `width?`: number
|
|
70
|
+
- `accessibilityLabel?`: string
|
|
71
|
+
|
|
72
|
+
Example: `<G9Donut slices={slices} />`
|
|
73
|
+
|
|
74
|
+
# G9FanChart
|
|
75
|
+
|
|
76
|
+
`import { G9FanChart } from '@g9tm/lynxcontrols-charts';`
|
|
77
|
+
|
|
78
|
+
A forecast fan (Riskara FanBox).
|
|
79
|
+
|
|
80
|
+
Props:
|
|
81
|
+
- `points`: object[]
|
|
82
|
+
- `tooltip?`: (index: number) => void
|
|
83
|
+
- `yFormat?`: (v: number) => void
|
|
84
|
+
- `color?`: color
|
|
85
|
+
- `everyX?`: number
|
|
86
|
+
- `height?`: number = 180
|
|
87
|
+
- `legend?`: object[]
|
|
88
|
+
- `width?`: number
|
|
89
|
+
|
|
90
|
+
Example: `<G9FanChart points={points} />`
|
|
91
|
+
|
|
92
|
+
# G9Gauge
|
|
93
|
+
|
|
94
|
+
`import { G9Gauge } from '@g9tm/lynxcontrols-charts';`
|
|
95
|
+
|
|
96
|
+
A gauge on a spectrum arc (Riskara Gauge, ShopChat Needle).
|
|
97
|
+
|
|
98
|
+
Props:
|
|
99
|
+
- `value`: number
|
|
100
|
+
- `children?`: ReactNode
|
|
101
|
+
- `size?`: number = 200
|
|
102
|
+
- `stops?`: string[]
|
|
103
|
+
- `thickness?`: number
|
|
104
|
+
- `width?`: number
|
|
105
|
+
- `accessibilityLabel?`: string
|
|
106
|
+
|
|
107
|
+
Example: `<G9Gauge value={1} />`
|
|
108
|
+
|
|
109
|
+
# G9Heatmap
|
|
110
|
+
|
|
111
|
+
`import { G9Heatmap } from '@g9tm/lynxcontrols-charts';`
|
|
112
|
+
|
|
113
|
+
An hour × weekday heatmap (SAC HeatmapBox), row labels on the start side.
|
|
114
|
+
|
|
115
|
+
Props:
|
|
116
|
+
- `grid`: number[][]
|
|
117
|
+
- `colLabels?`: string[]
|
|
118
|
+
- `color?`: color
|
|
119
|
+
- `everyCol?`: number = 3
|
|
120
|
+
- `height?`: number = 160
|
|
121
|
+
- `rowLabels?`: string[]
|
|
122
|
+
- `width?`: number
|
|
123
|
+
- `accessibilityLabel?`: string
|
|
124
|
+
|
|
125
|
+
Example: `<G9Heatmap grid={grid} />`
|
|
126
|
+
|
|
127
|
+
# G9LineChart
|
|
128
|
+
|
|
129
|
+
`import { G9LineChart } from '@g9tm/lynxcontrols-charts';`
|
|
130
|
+
|
|
131
|
+
Lines and areas over time (SAC sales, Riskara LineBox, G9Hub insights).
|
|
132
|
+
|
|
133
|
+
Props:
|
|
134
|
+
- `series`: object[]
|
|
135
|
+
- `tooltip?`: (index: number) => void
|
|
136
|
+
- `yFormat?`: (v: number) => void
|
|
137
|
+
- `everyX?`: number
|
|
138
|
+
- `height?`: number = 180
|
|
139
|
+
- `legend?`: boolean
|
|
140
|
+
- `max?`: number
|
|
141
|
+
- `min?`: number
|
|
142
|
+
|
|
143
|
+
Example: `<G9LineChart series={series} />`
|
|
144
|
+
|
|
145
|
+
# G9Radar
|
|
146
|
+
|
|
147
|
+
`import { G9Radar } from '@g9tm/lynxcontrols-charts';`
|
|
148
|
+
|
|
149
|
+
A radar of dimensions (Riskara risk DNA radar) with labels at the axis ends.
|
|
150
|
+
|
|
151
|
+
Props:
|
|
152
|
+
- `labels`: string[]
|
|
153
|
+
- `values`: number[]
|
|
154
|
+
- `size?`: number = 280
|
|
155
|
+
- `color?`: color
|
|
156
|
+
- `width?`: number
|
|
157
|
+
- `accessibilityLabel?`: string
|
|
158
|
+
|
|
159
|
+
Example: `<G9Radar labels={labels} values={values} />`
|
|
160
|
+
|
|
161
|
+
# G9Sparkline
|
|
162
|
+
|
|
163
|
+
`import { G9Sparkline } from '@g9tm/lynxcontrols-charts';`
|
|
164
|
+
|
|
165
|
+
A tiny trend (SAC/Riskara/ShopManager sparklines) — for KPI tiles (`G9Kpi trend={…}`).
|
|
166
|
+
|
|
167
|
+
Props:
|
|
168
|
+
- `values`: number[]
|
|
169
|
+
- `color?`: color
|
|
170
|
+
- `height?`: number = 30
|
|
171
|
+
- `kind?`: 'line' | 'bars'
|
|
172
|
+
- `width?`: number
|
|
173
|
+
- `accessibilityLabel?`: string
|
|
174
|
+
|
|
175
|
+
Example: `<G9Sparkline values={values} />`
|
|
176
|
+
|
|
177
|
+
# G9StackedBarChart
|
|
178
|
+
|
|
179
|
+
`import { G9StackedBarChart } from '@g9tm/lynxcontrols-charts';`
|
|
180
|
+
|
|
181
|
+
Stacked bars with a legend of the parts (SAC channel mix by day).
|
|
182
|
+
|
|
183
|
+
Props:
|
|
184
|
+
- `parts`: string[]
|
|
185
|
+
- `stacks`: number[][]
|
|
186
|
+
- `tooltip?`: (index: number) => void
|
|
187
|
+
- `yFormat?`: (v: number) => void
|
|
188
|
+
- `colors?`: string[]
|
|
189
|
+
- `everyX?`: number
|
|
190
|
+
- `height?`: number = 180
|
|
191
|
+
- `width?`: number
|
|
192
|
+
|
|
193
|
+
Example: `<G9StackedBarChart parts={parts} stacks={stacks} />`
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols-chat` (generated)
|
|
2
|
+
|
|
3
|
+
# G9ChatComposer
|
|
4
|
+
|
|
5
|
+
`import { G9ChatComposer } from '@g9tm/lynxcontrols-chat';`
|
|
6
|
+
|
|
7
|
+
The message box: a growing text area (up to 5 lines), attach and emoji at the start, send at the end — send only when there is text; Enter on a hardware keyboard sends, Shift+Enter breaks the line.
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `onSend`: (text: string) => void
|
|
11
|
+
- `placeholder`: string
|
|
12
|
+
- `value?`: string
|
|
13
|
+
- `onChange?`: (text: string) => void
|
|
14
|
+
- `disabled?`: boolean
|
|
15
|
+
- `onAttach?`: () => void
|
|
16
|
+
- `onEmoji?`: () => void
|
|
17
|
+
- `attachLabel?`: string
|
|
18
|
+
|
|
19
|
+
Example: `<G9ChatComposer onSend={() => {}} placeholder="placeholder" />`
|
|
20
|
+
|
|
21
|
+
# G9ChatThread
|
|
22
|
+
|
|
23
|
+
`import { G9ChatThread } from '@g9tm/lynxcontrols-chat';`
|
|
24
|
+
|
|
25
|
+
A conversation on the recycler: starts at the newest message, day dividers sticky, rows rendered as they come into view (deferred list items), older pages asked for near the top.
|
|
26
|
+
|
|
27
|
+
Props:
|
|
28
|
+
- `me`: string
|
|
29
|
+
- `messages`: object[]
|
|
30
|
+
- `dayLabel?`: (dayStartMs: number) => void
|
|
31
|
+
- `onLoadOlder?`: () => void
|
|
32
|
+
- `onLongPress?`: (message: G9Message) => void
|
|
33
|
+
- `onRetry?`: (message: G9Message) => void
|
|
34
|
+
- `renderAttachment?`: (message) => ReactNode
|
|
35
|
+
- `names?`: object
|
|
36
|
+
|
|
37
|
+
Example: `<G9ChatThread me="me" messages={messages} />`
|
|
38
|
+
|
|
39
|
+
# G9ConversationRow
|
|
40
|
+
|
|
41
|
+
`import { G9ConversationRow } from '@g9tm/lynxcontrols-chat';`
|
|
42
|
+
|
|
43
|
+
A conversation in the inbox: avatar (with presence), name, the last message or «typing…», its time, unread count.
|
|
44
|
+
|
|
45
|
+
Props:
|
|
46
|
+
- `at`: number
|
|
47
|
+
- `name`: string
|
|
48
|
+
- `preview`: string
|
|
49
|
+
- `onPress?`: () => void
|
|
50
|
+
- `typingText?`: string
|
|
51
|
+
- `avatar?`: string
|
|
52
|
+
- `muted?`: boolean
|
|
53
|
+
- `online?`: boolean
|
|
54
|
+
|
|
55
|
+
Example: `<G9ConversationRow at={1} name="name" preview="preview" />`
|
|
56
|
+
|
|
57
|
+
# G9EmojiPicker
|
|
58
|
+
|
|
59
|
+
`import { G9EmojiPicker } from '@g9tm/lynxcontrols-chat';`
|
|
60
|
+
|
|
61
|
+
Emoji by category: tabs over a grid of 44 dp targets.
|
|
62
|
+
|
|
63
|
+
Props:
|
|
64
|
+
- `onPick`: (emoji: string) => void
|
|
65
|
+
- `columns?`: number
|
|
66
|
+
- `labels?`: object
|
|
67
|
+
- `sets?`: object
|
|
68
|
+
|
|
69
|
+
Example: `<G9EmojiPicker onPick={() => {}} />`
|
|
70
|
+
|
|
71
|
+
# G9MessageBubble
|
|
72
|
+
|
|
73
|
+
`import { G9MessageBubble } from '@g9tm/lynxcontrols-chat';`
|
|
74
|
+
|
|
75
|
+
One message: mine on the end side in the primary container colour, theirs on the start side on the surface; the corner toward the sender is tightened inside a run (first/middle/last), the time and the status ticks under
|
|
76
|
+
|
|
77
|
+
Props:
|
|
78
|
+
- `message`: object
|
|
79
|
+
- `mine`: boolean
|
|
80
|
+
- `onLongPress?`: (message: G9Message) => void
|
|
81
|
+
- `onRetry?`: (message: G9Message) => void
|
|
82
|
+
- `attachment?`: ReactNode
|
|
83
|
+
- `position?`: 'single' | 'last' | 'first' | 'middle'
|
|
84
|
+
- `senderName?`: string
|
|
85
|
+
- `showTime?`: boolean
|
|
86
|
+
|
|
87
|
+
Example: `<G9MessageBubble message={message} mine />`
|
|
88
|
+
|
|
89
|
+
# G9TypingDots
|
|
90
|
+
|
|
91
|
+
`import { G9TypingDots } from '@g9tm/lynxcontrols-chat';`
|
|
92
|
+
|
|
93
|
+
Three dots that rise in turn (CSS animation: nothing runs in script).
|
|
94
|
+
|
|
95
|
+
Props:
|
|
96
|
+
- `label?`: string
|
|
97
|
+
|
|
98
|
+
Example: `<G9TypingDots />`
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols/commands` (generated)
|
|
2
|
+
|
|
3
|
+
# G9CommandPalette
|
|
4
|
+
|
|
5
|
+
`import { G9CommandPalette } from '@g9tm/lynxcontrols/commands';`
|
|
6
|
+
|
|
7
|
+
The command palette (SAC Palette, G9Hub CommandPalette; usually on Mod+K): one search over every place and action.
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `commands`: object[]
|
|
11
|
+
- `onClose`: () => void
|
|
12
|
+
- `open`: boolean
|
|
13
|
+
- `placeholder?`: string
|
|
14
|
+
- `emptyText?`: string
|
|
15
|
+
- `platform?`: 'mac' | 'other'
|
|
16
|
+
|
|
17
|
+
Example: `<G9CommandPalette commands={commands} onClose={() => {}} open />`
|
|
18
|
+
|
|
19
|
+
# G9ShortcutList
|
|
20
|
+
|
|
21
|
+
`import { G9ShortcutList } from '@g9tm/lynxcontrols/commands';`
|
|
22
|
+
|
|
23
|
+
The keyboard shortcuts as a readable list (G9Hub ShortcutsSheet; open it on `?`).
|
|
24
|
+
|
|
25
|
+
Props:
|
|
26
|
+
- `groups`: object[]
|
|
27
|
+
- `platform?`: 'mac' | 'other'
|
|
28
|
+
|
|
29
|
+
Example: `<G9ShortcutList groups={groups} />`
|
|
30
|
+
|
|
31
|
+
# G9ShortcutsSheet
|
|
32
|
+
|
|
33
|
+
`import { G9ShortcutsSheet } from '@g9tm/lynxcontrols/commands';`
|
|
34
|
+
|
|
35
|
+
The keyboard shortcuts in an action sheet (G9Hub «?»): groups of a label and its keycaps.
|
|
36
|
+
|
|
37
|
+
Props:
|
|
38
|
+
- `groups`: object[]
|
|
39
|
+
- `onClose`: () => void
|
|
40
|
+
- `open`: boolean
|
|
41
|
+
- `title`: string
|
|
42
|
+
- `closeText?`: string
|
|
43
|
+
- `platform?`: 'mac' | 'other'
|
|
44
|
+
|
|
45
|
+
Example: `<G9ShortcutsSheet groups={groups} onClose={() => {}} open title="Label" />`
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols-commerce` (generated)
|
|
2
|
+
|
|
3
|
+
# G9MiniCartBar
|
|
4
|
+
|
|
5
|
+
`import { G9MiniCartBar } from '@g9tm/lynxcontrols-commerce';`
|
|
6
|
+
|
|
7
|
+
The floating cart summary at the bottom (ShopManager MiniCart, SAC tray bar): slides in when the cart has items and out when it empties (transform only), above the safe area and any tab bar.
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `actionText`: string
|
|
11
|
+
- `count`: number
|
|
12
|
+
- `countText`: (count: string) => void
|
|
13
|
+
- `onPress`: () => void
|
|
14
|
+
- `total`: number
|
|
15
|
+
- `bottomOffset?`: number
|
|
16
|
+
- `currency?`: string & {} | string | string
|
|
17
|
+
|
|
18
|
+
Example: `<G9MiniCartBar actionText="actionText" count={1} countText={countText} onPress={() => {}} total={1} />`
|
|
19
|
+
|
|
20
|
+
# G9PriceTag
|
|
21
|
+
|
|
22
|
+
`import { G9PriceTag } from '@g9tm/lynxcontrols-commerce';`
|
|
23
|
+
|
|
24
|
+
A price in the culture's digits, the old price struck through and the percentage off when discounted.
|
|
25
|
+
|
|
26
|
+
Props:
|
|
27
|
+
- `price`: number
|
|
28
|
+
- `size?`: 'sm' | 'md' | 'lg'
|
|
29
|
+
- `compareAt?`: number
|
|
30
|
+
- `currency?`: string & {} | string | string
|
|
31
|
+
- `showPercent?`: boolean = true
|
|
32
|
+
|
|
33
|
+
Example: `<G9PriceTag price={1} />`
|
|
34
|
+
|
|
35
|
+
# G9ProductTile
|
|
36
|
+
|
|
37
|
+
`import { G9ProductTile } from '@g9tm/lynxcontrols-commerce';`
|
|
38
|
+
|
|
39
|
+
A product as a grid card or a list row: photo, title, price with discount, and the quantity control.
|
|
40
|
+
|
|
41
|
+
Props:
|
|
42
|
+
- `addText`: string
|
|
43
|
+
- `onQtyChange`: (qty: number) => void
|
|
44
|
+
- `price`: number
|
|
45
|
+
- `qty`: number
|
|
46
|
+
- `title`: string
|
|
47
|
+
- `subtitle?`: string
|
|
48
|
+
- `onPress?`: () => void
|
|
49
|
+
- `outOfStockText?`: string
|
|
50
|
+
|
|
51
|
+
Example: `<G9ProductTile addText="addText" onQtyChange={() => {}} price={1} qty={1} title="Label" />`
|
|
52
|
+
|
|
53
|
+
# G9QuantityControl
|
|
54
|
+
|
|
55
|
+
`import { G9QuantityControl } from '@g9tm/lynxcontrols-commerce';`
|
|
56
|
+
|
|
57
|
+
Add, then − n + (ShopManager AddControl, SAC tray, mardomi Stepper): one tap adds, the stepper takes over, reaching 0 folds it back into the button.
|
|
58
|
+
|
|
59
|
+
Props:
|
|
60
|
+
- `addText`: string
|
|
61
|
+
- `onChange`: (qty: number) => void
|
|
62
|
+
- `value`: number
|
|
63
|
+
- `size?`: 'sm' | 'md'
|
|
64
|
+
- `disabled?`: boolean
|
|
65
|
+
- `outOfStockText?`: string
|
|
66
|
+
- `block?`: boolean
|
|
67
|
+
- `stock?`: number
|
|
68
|
+
|
|
69
|
+
Example: `<G9QuantityControl addText="addText" onChange={() => {}} value={1} />`
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols-datagrid` (generated)
|
|
2
|
+
|
|
3
|
+
# G9DataGrid
|
|
4
|
+
|
|
5
|
+
`import { G9DataGrid } from '@g9tm/lynxcontrols-datagrid';`
|
|
6
|
+
|
|
7
|
+
A data grid (SAC kit DataGrid, Riskara admin Table): sortable headers (tap cycles), search and grouping from the state, sticky group headers, a totals row; numbers end-aligned in the culture's digits, the identity column
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `columns`: object[]
|
|
11
|
+
- `data`: NonNullable<T>[]
|
|
12
|
+
- `getId`: (row: T) => void
|
|
13
|
+
- `onEndReached?`: () => void
|
|
14
|
+
- `onRowPress?`: (row: T) => void
|
|
15
|
+
- `onStateChange?`: (state: G9GridState) => void
|
|
16
|
+
- `totalsLabel?`: string
|
|
17
|
+
- `empty?`: ReactNode
|
|
18
|
+
|
|
19
|
+
Example: `<G9DataGrid columns={columns} data={data} getId={getId} />`
|
|
@@ -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" />`
|