@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,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 />`
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols/fields` (generated)
|
|
2
|
+
|
|
3
|
+
# G9Editor
|
|
4
|
+
|
|
5
|
+
`import { G9Editor } from '@g9tm/lynxcontrols/fields';`
|
|
6
|
+
|
|
7
|
+
Multi-line outlined text area (MAUI `G9Editor`): the text-entry behaviour on a `<textarea>`, a microphone pinned to the bottom-end corner whenever dictation is available, height from `minimumEditorHeight`/`maxEditorHeigh
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `label?`: string
|
|
11
|
+
- `value?`: string
|
|
12
|
+
- `leadingIcon?`: icon
|
|
13
|
+
- `placeholder?`: string
|
|
14
|
+
- `onValueChange?`: (value: string, details: G9ValueChangeDetails) => void
|
|
15
|
+
- `disabled?`: boolean = false
|
|
16
|
+
- `inputType?`: 'number' | 'default' | 'email' | 'phone' | 'custom' | 'url' | 'letters' | 'decimal' | 'signedNumber' | 'signedDecimal' | 'lettersAndNumbers' | 'lettersNumbersSpace' | 'persianLetters' | 'persianLettersAndNumbers' | 'multilingualLettersAndNumbers' | 'noSpecialChars' = "default"
|
|
17
|
+
- `keyboardType?`: 'number' | 'default' | 'email' | 'phone' | 'password' | 'url' = "default"
|
|
18
|
+
|
|
19
|
+
Example: `<G9Editor />`
|
|
20
|
+
|
|
21
|
+
# G9FormField
|
|
22
|
+
|
|
23
|
+
`import { G9FormField } from '@g9tm/lynxcontrols/fields';`
|
|
24
|
+
|
|
25
|
+
A label above any control, a hint or an error below (SAC Field, G9Hub Field): for controls without a floating label.
|
|
26
|
+
|
|
27
|
+
Props:
|
|
28
|
+
- `label`: string
|
|
29
|
+
- `children?`: ReactNode
|
|
30
|
+
- `hint?`: string
|
|
31
|
+
- `aside?`: ReactNode
|
|
32
|
+
- `error?`: string
|
|
33
|
+
- `required?`: boolean
|
|
34
|
+
|
|
35
|
+
Example: `<G9FormField label="Label" />`
|
|
36
|
+
|
|
37
|
+
# G9NumberEntry
|
|
38
|
+
|
|
39
|
+
`import { G9NumberEntry } from '@g9tm/lynxcontrols/fields';`
|
|
40
|
+
|
|
41
|
+
THE number field (SAC NumIn, G9Hub NumberField, prices and quantities everywhere): thousands grouped while the person types, Persian digits on a Persian screen (drawn by the native field; the element and every value even
|
|
42
|
+
|
|
43
|
+
Props:
|
|
44
|
+
- `label?`: string
|
|
45
|
+
- `value?`: number
|
|
46
|
+
- `leadingIcon?`: icon
|
|
47
|
+
- `placeholder?`: string
|
|
48
|
+
- `onValueChange?`: (value: number | null) => void
|
|
49
|
+
- `disabled?`: boolean = false
|
|
50
|
+
- `onBlur?`: () => void
|
|
51
|
+
- `onConfirm?`: (value: number | null) => void
|
|
52
|
+
|
|
53
|
+
Example: `<G9NumberEntry />`
|
|
54
|
+
|
|
55
|
+
# G9NumPad
|
|
56
|
+
|
|
57
|
+
`import { G9NumPad } from '@g9tm/lynxcontrols/fields';`
|
|
58
|
+
|
|
59
|
+
A big numeric keypad (SAC PinPad and CodePad): works whatever the system keyboard does (an in-app browser that never opens it).
|
|
60
|
+
|
|
61
|
+
Props:
|
|
62
|
+
- `onKey`: (key: string) => void
|
|
63
|
+
- `disabled?`: boolean
|
|
64
|
+
- `dark?`: boolean
|
|
65
|
+
- `extraKey?`: string
|
|
66
|
+
|
|
67
|
+
Example: `<G9NumPad onKey={() => {}} />`
|
|
68
|
+
|
|
69
|
+
# G9OutlinedField
|
|
70
|
+
|
|
71
|
+
`import { G9OutlinedField } from '@g9tm/lynxcontrols/fields';`
|
|
72
|
+
|
|
73
|
+
The outlined field frame (MAUI `G9OutlinedFieldBase`): outline with a notched floating label, leading and trailing icon slots, helper/error line and counter.
|
|
74
|
+
|
|
75
|
+
Props:
|
|
76
|
+
- `focused`: boolean
|
|
77
|
+
- `hasValue`: boolean
|
|
78
|
+
- `label?`: string
|
|
79
|
+
- `children?`: ReactNode
|
|
80
|
+
- `leadingIcon?`: icon
|
|
81
|
+
- `placeholder?`: string
|
|
82
|
+
- `disabled?`: boolean = false
|
|
83
|
+
- `onFocusRequest?`: () => void
|
|
84
|
+
|
|
85
|
+
Example: `<G9OutlinedField focused hasValue />`
|
|
86
|
+
|
|
87
|
+
# G9PinEntry
|
|
88
|
+
|
|
89
|
+
`import { G9PinEntry } from '@g9tm/lynxcontrols/fields';`
|
|
90
|
+
|
|
91
|
+
One-time-code / PIN entry (MAUI `G9PinEntry`): a row of cells over one hidden `<input>` (the lynx-ui `InputOTP` pattern).
|
|
92
|
+
|
|
93
|
+
Props:
|
|
94
|
+
- `value?`: string
|
|
95
|
+
- `placeholder?`: string
|
|
96
|
+
- `onValueChange?`: (value: string) => void
|
|
97
|
+
- `disabled?`: boolean
|
|
98
|
+
- `type?`: 'number' | 'password' | 'letters' | 'alphanumeric' = "number"
|
|
99
|
+
- `onComplete?`: (value: string) => void
|
|
100
|
+
- `cellHeight?`: number = 52
|
|
101
|
+
- `cellWidth?`: number = 44
|
|
102
|
+
|
|
103
|
+
Example: `<G9PinEntry />`
|
|
104
|
+
|
|
105
|
+
# G9SearchEntry
|
|
106
|
+
|
|
107
|
+
`import { G9SearchEntry } from '@g9tm/lynxcontrols/fields';`
|
|
108
|
+
|
|
109
|
+
Search field (MAUI `G9SearchEntry`): a `G9TextEntry` with a leading search glyph, the clear button, dictation on, the localized `search` placeholder, the floating-label clearance reserved, the keyboard's search key, and
|
|
110
|
+
|
|
111
|
+
Props:
|
|
112
|
+
- `label?`: string
|
|
113
|
+
- `value?`: string
|
|
114
|
+
- `leadingIcon?`: icon
|
|
115
|
+
- `placeholder?`: string
|
|
116
|
+
- `onValueChange?`: (value: string, details: G9ValueChangeDetails) => void
|
|
117
|
+
- `disabled?`: boolean = false
|
|
118
|
+
- `confirmType?`: 'search' | 'done' | 'send' | 'go' | 'next' = "done"
|
|
119
|
+
- `inputType?`: 'number' | 'default' | 'email' | 'phone' | 'custom' | 'url' | 'letters' | 'decimal' | 'signedNumber' | 'signedDecimal' | 'lettersAndNumbers' | 'lettersNumbersSpace' | 'persianLetters' | 'persianLettersAndNumbers' | 'multilingualLettersAndNumbers' | 'noSpecialChars' = "default"
|
|
120
|
+
|
|
121
|
+
Example: `<G9SearchEntry />`
|
|
122
|
+
|
|
123
|
+
# G9TagEntry
|
|
124
|
+
|
|
125
|
+
`import { G9TagEntry } from '@g9tm/lynxcontrols/fields';`
|
|
126
|
+
|
|
127
|
+
Free words as removable chips (SAC ChipsIn): Enter, «،» or «,» adds; suggestions one tap away; duplicates ignored.
|
|
128
|
+
|
|
129
|
+
Props:
|
|
130
|
+
- `value?`: string[]
|
|
131
|
+
- `placeholder?`: string
|
|
132
|
+
- `onChange?`: (tags: readonly string[]) => void
|
|
133
|
+
- `disabled?`: boolean
|
|
134
|
+
- `defaultValue?`: string[]
|
|
135
|
+
- `max?`: number = 20
|
|
136
|
+
- `suggestions?`: string[]
|
|
137
|
+
|
|
138
|
+
Example: `<G9TagEntry />`
|
|
139
|
+
|
|
140
|
+
# G9TextEntry
|
|
141
|
+
|
|
142
|
+
`import { G9TextEntry } from '@g9tm/lynxcontrols/fields';`
|
|
143
|
+
|
|
144
|
+
Single-line outlined text field (MAUI `G9TextEntry`): floating label, input-type keyboard/filter/validation, password eye, clear button, optional dictation (`voiceEnabled` + `services.speech`).
|
|
145
|
+
|
|
146
|
+
Props:
|
|
147
|
+
- `label?`: string
|
|
148
|
+
- `value?`: string
|
|
149
|
+
- `leadingIcon?`: icon
|
|
150
|
+
- `placeholder?`: string
|
|
151
|
+
- `onValueChange?`: (value: string, details: G9ValueChangeDetails) => void
|
|
152
|
+
- `disabled?`: boolean = false
|
|
153
|
+
- `confirmType?`: 'search' | 'done' | 'send' | 'go' | 'next' = "done"
|
|
154
|
+
- `inputType?`: 'number' | 'default' | 'email' | 'phone' | 'custom' | 'url' | 'letters' | 'decimal' | 'signedNumber' | 'signedDecimal' | 'lettersAndNumbers' | 'lettersNumbersSpace' | 'persianLetters' | 'persianLettersAndNumbers' | 'multilingualLettersAndNumbers' | 'noSpecialChars' = "default"
|
|
155
|
+
|
|
156
|
+
Example: `<G9TextEntry />`
|
|
157
|
+
|
|
158
|
+
# G9TimeEntry
|
|
159
|
+
|
|
160
|
+
`import { G9TimeEntry } from '@g9tm/lynxcontrols/fields';`
|
|
161
|
+
|
|
162
|
+
A time typed as people type it (SAC TimeIn): «۷۳۰» becomes ۰۷:۳۰ on blur; an impossible time is shown as an error.
|
|
163
|
+
|
|
164
|
+
Props:
|
|
165
|
+
- `label?`: string
|
|
166
|
+
- `value?`: number
|
|
167
|
+
- `leadingIcon?`: icon
|
|
168
|
+
- `placeholder?`: string
|
|
169
|
+
- `onValueChange?`: (minutes: number | null) => void
|
|
170
|
+
- `disabled?`: boolean = false
|
|
171
|
+
- `onLeadingPress?`: () => void
|
|
172
|
+
- `onTrailingPress?`: () => void
|
|
173
|
+
|
|
174
|
+
Example: `<G9TimeEntry />`
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols/header` (generated)
|
|
2
|
+
|
|
3
|
+
# G9AppBar
|
|
4
|
+
|
|
5
|
+
`import { G9AppBar } from '@g9tm/lynxcontrols/header';`
|
|
6
|
+
|
|
7
|
+
The bar at a page's top (ShopManager Head/Bar/Back, mardomi Header, Riskara PhoneHeader, G9Hub PageHeader): back, title or brand with a place line, actions at the end.
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `title?`: string
|
|
11
|
+
- `children?`: ReactNode
|
|
12
|
+
- `subtitle?`: string
|
|
13
|
+
- `disabled?`: boolean = false
|
|
14
|
+
- `onBack?`: () => void
|
|
15
|
+
- `backLabel?`: string = "Back"
|
|
16
|
+
- `align?`: 'start' | 'center'
|
|
17
|
+
- `actions?`: ReactNode
|
|
18
|
+
|
|
19
|
+
Example: `<G9AppBar />`
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols/host` (generated)
|
|
2
|
+
|
|
3
|
+
# G9Host
|
|
4
|
+
|
|
5
|
+
`import { G9Host } from '@g9tm/lynxcontrols/host';`
|
|
6
|
+
|
|
7
|
+
The page frame (MAUI `G9PageBase` + `G9PageTemplate`): the content and the overlay layers in a fixed z-order (`content` → `edgePanel` → `sheets` → `popups` → `feedback` → `floating`, then the loading cover), the page's b
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `children?`: ReactNode
|
|
11
|
+
- `computeBottomSafeAreaWithTabBar?`: (bottomInset: number) => void
|
|
12
|
+
- `onAppearing?`: (context: { readonly signal: G9AbortSignal; }) => void
|
|
13
|
+
- `onBack?`: () => void
|
|
14
|
+
- `onDisappearing?`: () => void
|
|
15
|
+
- `routeClose?`: () => void
|
|
16
|
+
- `backdropColor?`: color
|
|
17
|
+
- `active?`: boolean = true
|
|
18
|
+
|
|
19
|
+
Example: `<G9Host />`
|
|
20
|
+
|
|
21
|
+
# G9PageLoadingOverlay
|
|
22
|
+
|
|
23
|
+
`import { G9PageLoadingOverlay } from '@g9tm/lynxcontrols/host';`
|
|
24
|
+
|
|
25
|
+
The full-screen cover that hides a page while it assembles itself (MAUI `G9PageLoadingOverlay`): input-opaque, a centred 48 px spinner, the top of the host's z-stack.
|
|
26
|
+
|
|
27
|
+
Props:
|
|
28
|
+
- `backgroundColor?`: color
|
|
29
|
+
- `spinnerColor?`: color
|
|
30
|
+
- `exiting?`: boolean
|
|
31
|
+
|
|
32
|
+
Example: `<G9PageLoadingOverlay />`
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols/icon` (generated)
|
|
2
|
+
|
|
3
|
+
# G9Art
|
|
4
|
+
|
|
5
|
+
`import { G9Art } from '@g9tm/lynxcontrols/icon';`
|
|
6
|
+
|
|
7
|
+
An illustration or a logo drawn in the theme (SAC `Art` / `Logo`): any viewBox, `currentColor` painted with a theme token resolved to its value (SVG content cannot read CSS variables).
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `svg`: string
|
|
11
|
+
- `color?`: color
|
|
12
|
+
- `height?`: number = 44
|
|
13
|
+
- `accessibilityLabel?`: string
|
|
14
|
+
|
|
15
|
+
Example: `<G9Art svg="svg" />`
|
|
16
|
+
|
|
17
|
+
# G9Icon
|
|
18
|
+
|
|
19
|
+
`import { G9Icon } from '@g9tm/lynxcontrols/icon';`
|
|
20
|
+
|
|
21
|
+
Draws one icon (MAUI `G9IconView` + `G9GlyphDrawable`): a built-in glyph as `<svg content>` (the golden SVG, coloured and weighted, from a bounded shared cache), a font glyph as `<text>` in its family, an SVG icon as `<s
|
|
22
|
+
|
|
23
|
+
Props:
|
|
24
|
+
- `icon`: icon
|
|
25
|
+
- `size?`: number = 20
|
|
26
|
+
- `imageCornerRadius?`: number = 4
|
|
27
|
+
- `color?`: color
|
|
28
|
+
- `mirrorInRtl?`: boolean = false
|
|
29
|
+
- `weight?`: number = 1
|
|
30
|
+
- `accessibilityLabel?`: string
|
|
31
|
+
|
|
32
|
+
Example: `<G9Icon icon="search" />`
|
|
33
|
+
|
|
34
|
+
# G9IconSlot
|
|
35
|
+
|
|
36
|
+
`import { G9IconSlot } from '@g9tm/lynxcontrols/icon';`
|
|
37
|
+
|
|
38
|
+
Renders one icon slot (MAUI `G9IconFactory.Create`): an emoji as text (no fixed height, an emoji renders taller than its em square), an icon as `G9Icon`, an image through the provider's image renderer in a rounded clip,
|
|
39
|
+
|
|
40
|
+
Props:
|
|
41
|
+
- `size?`: number = 20
|
|
42
|
+
- `icon?`: icon
|
|
43
|
+
- `imageCornerRadius?`: number = 4
|
|
44
|
+
- `color?`: color
|
|
45
|
+
- `emoji?`: string
|
|
46
|
+
- `image?`: object | object | object
|
|
47
|
+
- `imagePath?`: string
|
|
48
|
+
- `weight?`: number = 1
|
|
49
|
+
|
|
50
|
+
Example: `<G9IconSlot />`
|
|
51
|
+
|
|
52
|
+
# G9Swatch
|
|
53
|
+
|
|
54
|
+
`import { G9Swatch } from '@g9tm/lynxcontrols/icon';`
|
|
55
|
+
|
|
56
|
+
The variety colour swatch shown in place of an icon for items that only carry stored colours (MAUI `G9Visuals.CreateSwatch`), ONE convention for every surface that shows a variety (picker and combo triggers, selection-sh
|
|
57
|
+
|
|
58
|
+
Props:
|
|
59
|
+
- `size?`: number = 18
|
|
60
|
+
- `direction?`: 'ltr' | 'rtl'
|
|
61
|
+
- `first?`: string
|
|
62
|
+
- `second?`: string
|
|
63
|
+
|
|
64
|
+
Example: `<G9Swatch />`
|