@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,42 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: g9-lynx-app
|
|
3
|
+
description: Build or change a ReactLynx app that uses G9LynxControls (@g9tm/lynxcontrols*): which control, the provider and host, theming, RTL and Persian, overlays, lists, navigation, anchors, adaptive layout, G9AppPilot. Read before writing UI code in such an app.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# G9 Lynx app
|
|
7
|
+
|
|
8
|
+
This app's UI comes from G9LynxControls. **The installed package's code and catalog win over this text**: when they
|
|
9
|
+
disagree, trust `node_modules/@g9tm/lynxcontrols*/catalog/catalog.json` and the types, and say so.
|
|
10
|
+
|
|
11
|
+
## The job → read this → then
|
|
12
|
+
|
|
13
|
+
| The job | Read | Then |
|
|
14
|
+
| --- | --- | --- |
|
|
15
|
+
| Find the control for a need | `references/catalog-index.md` (one line per component) | its family file in `references/components/`, then the package's card `catalog/cards/<Export>.md` |
|
|
16
|
+
| Set up or fix the app's root | `references/provider-and-host.md` | `references/platform-rules.md` |
|
|
17
|
+
| Anything about Lynx itself (CSS, timers, threads, no DOM) | `references/platform-rules.md` | `references/common-mistakes.md` |
|
|
18
|
+
| Colours, light and dark, a brand, fonts, density | `references/theming.md` | the foundation catalog's `design` section |
|
|
19
|
+
| Persian, Arabic, RTL, calendars, digits | `references/localization-rtl.md` | `references/platform-rules.md` (direction) |
|
|
20
|
+
| A sheet, popup, toast, menu or palette | `references/overlays.md` | `references/provider-and-host.md` (the host) |
|
|
21
|
+
| A long list, settings rows, a grid | `references/lists.md` | `references/adaptive-layout.md` |
|
|
22
|
+
| Screens, tabs, the app shell, deep links | `references/navigation-route.md` | `references/adaptive-layout.md` |
|
|
23
|
+
| Phone, tablet and desktop from one screen | `references/adaptive-layout.md` | — |
|
|
24
|
+
| Test ids, a guided tour, an automation target | `references/anchors-guide.md` | `references/pilot.md` |
|
|
25
|
+
| G9AppPilot (test builds, the watch, reports) | `references/pilot.md` | — |
|
|
26
|
+
| Before you hand the work back | `references/common-mistakes.md` | run the app's own checks |
|
|
27
|
+
|
|
28
|
+
## Three rules most often broken
|
|
29
|
+
|
|
30
|
+
1. **One `G9Provider` per LynxView, one `G9Host` per page, and services passed once** (`clock`, `preferences`,
|
|
31
|
+
`host` are required; a missing one throws `G9CapabilityMissingError`). Overlays need the host above them.
|
|
32
|
+
2. **Lynx is not the browser**: no `Intl`, `toLocale*`, DOM or `@media`; `direction` does not inherit, so rows mirror
|
|
33
|
+
through `g9RowStyle` / the `--rtl` classes, never through `direction`; inline `var(--g9-*)` needs `pluginG9Lynx()`
|
|
34
|
+
in `lynx.config.ts`.
|
|
35
|
+
3. **Use the library before writing your own**: a control, a token (`g9Token('Primary')`) or a culture function
|
|
36
|
+
(`formatNumber`, `toNativeDigits`) exists for most needs; give every control a person or a test acts on an `id`.
|
|
37
|
+
|
|
38
|
+
## How the references are made
|
|
39
|
+
|
|
40
|
+
The hand-written files say how to use the library; `references/catalog-index.md` and `references/components/` are
|
|
41
|
+
generated from the installed catalogs (`node_modules/@g9tm/lynxcontrols/bin/g9lynx.mjs skills sync` refreshes them in
|
|
42
|
+
an app). Every identifier and path here is checked against the library when it is released.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Adaptive layout: phone, tablet, desktop
|
|
2
|
+
|
|
3
|
+
- `useG9Layout()` gives `layout` (`'phone'`, `'tablet'` or `'desktop'`), `wide` and `landscape`, from the
|
|
4
|
+
LynxView's own width (phone < 720 ≤ tablet < 1100 ≤ desktop by default; the `breakpoints` prop moves them). Never
|
|
5
|
+
`@media`.
|
|
6
|
+
- `byLayout(layout, { phone, tablet, desktop })` picks a value; `G9Columns` lays out columns from the class.
|
|
7
|
+
- Overlays adapt by themselves (a sheet becomes a dialog or a side panel on a wide window; a menu a popover).
|
|
8
|
+
- Safe areas: `useG9SafeInsets()`; an app bar with `safeTop`, the shell's tab bar above the home indicator.
|
|
9
|
+
- The keyboard: `useG9Keyboard()`; the shell's tab bar steps aside while it is up.
|
|
10
|
+
- A design preview forces a class: `G9Provider preview={{ layout: 'tablet' }}`.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Anchors, test ids and guided tours
|
|
2
|
+
|
|
3
|
+
- **Every G9 control with an `id` is an anchor**: a test target (G9AppPilot), a guide step's target and a scroll
|
|
4
|
+
position. Ids are dotted names (`Orders.Save`); the element id is the same with `_` for the dots.
|
|
5
|
+
- **Your own element**: `const save = useG9Anchor('Form.Save', { kind: 'button' })` then `<view {...save.props} />`,
|
|
6
|
+
or wrap it in `<G9Anchor id="…">`.
|
|
7
|
+
- **A guided tour**: `useG9Guide()` / `g9Guide()` with steps that point at anchor ids.
|
|
8
|
+
- **A design tool's probe** (`@g9tm/lynxcontrols/design`, design builds only): `useG9DesignProbe()` measures every
|
|
9
|
+
anchor; `G9DesignNode` inside a `G9DesignScope` gives any node an anchor without an id.
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
# Component index (generated)
|
|
2
|
+
|
|
3
|
+
Generated from the installed packages' catalogs (`<package>/catalog`): one line per family. Open the family's file in
|
|
4
|
+
`components/` for its cards (props, defaults, the anchor, an example); the catalog JSON has every fact.
|
|
5
|
+
|
|
6
|
+
## @g9tm/lynxcontrols-barcode
|
|
7
|
+
|
|
8
|
+
- `@g9tm/lynxcontrols-barcode`: G9BarcodeTextEntry, G9ScanCard → `components/barcode.md`
|
|
9
|
+
- `@g9tm/lynxcontrols-barcode/qr`: G9QrCode → `components/barcode-qr.md`
|
|
10
|
+
|
|
11
|
+
## @g9tm/lynxcontrols-calendar
|
|
12
|
+
|
|
13
|
+
- `@g9tm/lynxcontrols-calendar`: G9AgendaView, G9DateInput, G9MiniMonth, G9MonthDayPicker, G9MonthView, G9RepeatPicker, G9TimeGrid, G9ZonePicker → `components/calendar.md`
|
|
14
|
+
|
|
15
|
+
## @g9tm/lynxcontrols-charts
|
|
16
|
+
|
|
17
|
+
- `@g9tm/lynxcontrols-charts`: G9BarChart, G9CandleChart, G9ChartBox, G9Donut, G9FanChart, G9Gauge, G9Heatmap, G9LineChart, G9Radar, G9Sparkline, G9StackedBarChart → `components/charts.md`
|
|
18
|
+
|
|
19
|
+
## @g9tm/lynxcontrols-chat
|
|
20
|
+
|
|
21
|
+
- `@g9tm/lynxcontrols-chat`: G9ChatComposer, G9ChatThread, G9ConversationRow, G9EmojiPicker, G9MessageBubble, G9TypingDots → `components/chat.md`
|
|
22
|
+
|
|
23
|
+
## @g9tm/lynxcontrols-commerce
|
|
24
|
+
|
|
25
|
+
- `@g9tm/lynxcontrols-commerce`: G9MiniCartBar, G9PriceTag, G9ProductTile, G9QuantityControl → `components/commerce.md`
|
|
26
|
+
|
|
27
|
+
## @g9tm/lynxcontrols
|
|
28
|
+
|
|
29
|
+
- `@g9tm/lynxcontrols/anchor`: G9Anchor, G9ScrollerScope → `components/anchor.md`
|
|
30
|
+
- `@g9tm/lynxcontrols/base`: G9CornerBadge, G9Pressable → `components/base.md`
|
|
31
|
+
- `@g9tm/lynxcontrols/button`: G9Button, G9HeaderActionButton, G9IconButton, G9NavCard, G9SafeButton, G9SafeIconButton, G9VerticalIconTextButton → `components/button.md`
|
|
32
|
+
- `@g9tm/lynxcontrols/cascade`: G9CascadePanel → `components/cascade.md`
|
|
33
|
+
- `@g9tm/lynxcontrols/commands`: G9CommandPalette, G9ShortcutList, G9ShortcutsSheet → `components/commands.md`
|
|
34
|
+
- `@g9tm/lynxcontrols/deferred`: G9DeferredContent → `components/deferred.md`
|
|
35
|
+
- `@g9tm/lynxcontrols/design`: G9DesignNode, G9DesignScope → `components/design.md`
|
|
36
|
+
- `@g9tm/lynxcontrols/display`: G9ActivityIndicator, G9Avatar, G9Badge, G9CameFromMark, G9CultureDateTimeLabel, G9Delta, G9EmptyState, G9ErrorBoundary, G9Image, G9InlineMessage, G9Keycap, G9Kpi, G9KpiGrid, G9LiveBadge, G9LiveDot, G9LoadState, G9LockOverlay, G9Photo, G9ProgressBar, G9ProgressRing, G9RevealText, G9Separator, G9SheetSkeleton, G9ShimmerBand, G9Skeleton, G9SkeletonPage, G9SkeletonRows, G9StatusPill, G9StepTracker, G9Tag, G9ThemePreviewCard, G9TitleWithLine, G9Wave → `components/display-1.md`, `components/display-2.md`, `components/display-3.md`
|
|
37
|
+
- `@g9tm/lynxcontrols/edge-panel`: G9EdgePanel → `components/edge-panel.md`
|
|
38
|
+
- `@g9tm/lynxcontrols/effects`: G9AnimatedCheck, G9Confetti, G9SuccessHeader → `components/effects.md`
|
|
39
|
+
- `@g9tm/lynxcontrols/expander`: G9Expander → `components/expander.md`
|
|
40
|
+
- `@g9tm/lynxcontrols/fields`: G9Editor, G9FormField, G9NumberEntry, G9NumPad, G9OutlinedField, G9PinEntry, G9SearchEntry, G9TagEntry, G9TextEntry, G9TimeEntry → `components/fields.md`
|
|
41
|
+
- `@g9tm/lynxcontrols/header`: G9AppBar → `components/header.md`
|
|
42
|
+
- `@g9tm/lynxcontrols/host`: G9Host, G9PageLoadingOverlay → `components/host.md`
|
|
43
|
+
- `@g9tm/lynxcontrols/icon`: G9Art, G9Icon, G9IconSlot, G9Swatch → `components/icon.md`
|
|
44
|
+
- `@g9tm/lynxcontrols/layout`: G9ActionRow, G9Bento, G9Card, G9Columns, G9HScroll, G9Page, G9PlaceScroll, G9SaveBar, G9ScrollSpyBar, G9Section, G9SectionHeader, G9SplitPane, G9UnsavedBar → `components/layout-1.md`, `components/layout-2.md`
|
|
45
|
+
- `@g9tm/lynxcontrols/list`: G9DragList, G9ListRow, G9Pager, G9PullToRefresh, G9SettingsGroup, G9SwitchRow, G9VirtualList → `components/list.md`
|
|
46
|
+
- `@g9tm/lynxcontrols/orb`: G9FloatingOrb, G9HoldButton → `components/orb.md`
|
|
47
|
+
- `@g9tm/lynxcontrols/pickers`: DateTimeSheetBody, G9ComboBox, G9DateTimePicker, G9DayStepper, G9Picker, G9TimeSpanPicker, G9WheelColumn, PickerField, PickerSheetHeader, SelectionValueIcon, TimeSpanSheetBody → `components/pickers.md`
|
|
48
|
+
- `@g9tm/lynxcontrols/plus-button`: G9PlusButton → `components/plus-button.md`
|
|
49
|
+
- `@g9tm/lynxcontrols/popover`: G9ActionSheet, G9ContextMenu, G9Menu, G9MenuList, G9OverlayRoot, G9Popover → `components/popover.md`
|
|
50
|
+
- `@g9tm/lynxcontrols/popup`: G9PopupDragHandle, G9PopupView, PopupFrame, PopupInputForm → `components/popup.md`
|
|
51
|
+
- `@g9tm/lynxcontrols/provider`: G9Activity, G9KeepAlive, G9Provider → `components/provider.md`
|
|
52
|
+
- `@g9tm/lynxcontrols/range-slider`: G9RangeSlider, G9StepSlider → `components/range-slider.md`
|
|
53
|
+
- `@g9tm/lynxcontrols/route`: G9Place → `components/route.md`
|
|
54
|
+
- `@g9tm/lynxcontrols/sheet`: G9LoadableSheetContent, G9ProcessingSheetContent, G9Sheet, G9SheetBackdropScope, G9SheetFooter, G9SheetFooterBar, G9SheetFrame, G9SheetHeader, G9SheetScrollIndicator, G9SheetScrollRegion → `components/sheet.md`
|
|
55
|
+
- `@g9tm/lynxcontrols/shell`: G9AppShell, G9ConnectionBanner, G9IconRail, G9SideNav, G9TopBar, G9UpdateBar → `components/shell.md`
|
|
56
|
+
- `@g9tm/lynxcontrols/survey`: G9AllocationInput, G9ChoiceList, G9ScaleInput → `components/survey.md`
|
|
57
|
+
- `@g9tm/lynxcontrols/swipe`: G9SwipeGroup, G9SwipeView → `components/swipe.md`
|
|
58
|
+
- `@g9tm/lynxcontrols/tab-bar`: G9TabBar → `components/tab-bar.md`
|
|
59
|
+
- `@g9tm/lynxcontrols/tabs`: G9TabView → `components/tabs.md`
|
|
60
|
+
- `@g9tm/lynxcontrols/toggle`: G9CheckBox, G9Chip, G9ChipGroup, G9RadioGroup, G9RatingInput, G9Segmented, G9Stepper, G9Switch, G9SwitchGroup → `components/toggle.md`
|
|
61
|
+
|
|
62
|
+
## @g9tm/lynxcontrols-datagrid
|
|
63
|
+
|
|
64
|
+
- `@g9tm/lynxcontrols-datagrid`: G9DataGrid → `components/datagrid.md`
|
|
65
|
+
|
|
66
|
+
## @g9tm/lynxcontrols-intro-carousel
|
|
67
|
+
|
|
68
|
+
- `@g9tm/lynxcontrols-intro-carousel`: G9IntroCarousel → `components/intro-carousel.md`
|
|
69
|
+
|
|
70
|
+
## @g9tm/lynxcontrols-map
|
|
71
|
+
|
|
72
|
+
- `@g9tm/lynxcontrols-map`: G9StaticMap → `components/map.md`
|
|
73
|
+
|
|
74
|
+
## @g9tm/lynxcontrols-media
|
|
75
|
+
|
|
76
|
+
- `@g9tm/lynxcontrols-media`: G9BlurhashView, G9DropZone, G9ImageCropper, G9Lightbox, G9MediaGrid, G9MediaPager, G9VoicePlayer → `components/media.md`
|
|
77
|
+
|
|
78
|
+
## @g9tm/lynxcontrols-pilot
|
|
79
|
+
|
|
80
|
+
- `@g9tm/lynxcontrols-pilot`: G9PilotHost, G9PilotMask, G9PilotPanel → `components/pilot.md`
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Common mistakes (check before handing back)
|
|
2
|
+
|
|
3
|
+
1. A second `G9Provider` inside the tree, or an overlay hook outside a `G9Host`.
|
|
4
|
+
2. `Intl`, `toLocaleString`, DOM APIs or `@media` in the app's code.
|
|
5
|
+
3. A row that relies on `direction` to mirror (use `g9RowStyle`, a `--rtl` class).
|
|
6
|
+
4. Hard-coded colours instead of tokens (`var(--g9-…)`, `g9Token`), so dark mode breaks.
|
|
7
|
+
5. Inline `var(--g9-…)` without `pluginG9Lynx()` in `lynx.config.ts`.
|
|
8
|
+
6. A custom sheet, popup, toggle or list where a G9 control exists (find it in `catalog-index.md`).
|
|
9
|
+
7. Controls a person or a test acts on without an `id`.
|
|
10
|
+
8. Latin digits shown in Persian text (format with the culture).
|
|
11
|
+
9. `globalThis.setTimeout` or `globalThis.lynx`.
|
|
12
|
+
10. A theme font that is not registered with the host.
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols/anchor` (generated)
|
|
2
|
+
|
|
3
|
+
# G9Anchor
|
|
4
|
+
|
|
5
|
+
`import { G9Anchor } from '@g9tm/lynxcontrols/anchor';`
|
|
6
|
+
|
|
7
|
+
Makes any part of a page an anchor: a layout-neutral wrapper (a flex column unless a class is given) that carries the id.
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `label?`: () => void
|
|
11
|
+
- `children?`: ReactNode
|
|
12
|
+
- `risk?`: 'none' | 'commit' | 'destructive' = "none"
|
|
13
|
+
- `changes?`: () => void
|
|
14
|
+
- `enabled?`: () => void
|
|
15
|
+
- `capabilities?`: object
|
|
16
|
+
- `kind?`: 'label' | 'image' | 'button' | 'entry' | 'toggle' | 'picker' | 'chips' | 'tab' | 'tab-view' | 'list' | 'scroll' | 'item' | 'card' | 'map' | 'view'
|
|
17
|
+
- `secret?`: boolean = false
|
|
18
|
+
|
|
19
|
+
Example: `<G9Anchor id="id" />`
|
|
20
|
+
|
|
21
|
+
# G9ScrollerScope
|
|
22
|
+
|
|
23
|
+
`import { G9ScrollerScope } from '@g9tm/lynxcontrols/anchor';`
|
|
24
|
+
|
|
25
|
+
The anchors below sit in scroller `id` (renders no element).
|
|
26
|
+
|
|
27
|
+
Props:
|
|
28
|
+
- `children?`: ReactNode
|
|
29
|
+
|
|
30
|
+
Example: `<G9ScrollerScope id="id" />`
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols-barcode/qr` (generated)
|
|
2
|
+
|
|
3
|
+
# G9QrCode
|
|
4
|
+
|
|
5
|
+
`import { G9QrCode } from '@g9tm/lynxcontrols-barcode/qr';`
|
|
6
|
+
|
|
7
|
+
A QR code (SAC tickets, ShopManager courier code, G9Hub invite links): byte mode, level M, versions 1–10, encoded offline.
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `accessibilityLabel`: string
|
|
11
|
+
- `value`: string
|
|
12
|
+
- `size?`: number = 200
|
|
13
|
+
- `fallback?`: ReactNode
|
|
14
|
+
- `background?`: color
|
|
15
|
+
- `color?`: color
|
|
16
|
+
- `quietZone?`: number = 4
|
|
17
|
+
- `renderer?`: 'svg' | 'views' | 'png'
|
|
18
|
+
|
|
19
|
+
Example: `<G9QrCode accessibilityLabel="accessibilityLabel" value="value" />`
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols-barcode` (generated)
|
|
2
|
+
|
|
3
|
+
# G9BarcodeTextEntry
|
|
4
|
+
|
|
5
|
+
`import { G9BarcodeTextEntry } from '@g9tm/lynxcontrols-barcode';`
|
|
6
|
+
|
|
7
|
+
A scanner-aware text field (MAUI `G9BarcodeTextEntry`) on `G9TextEntry`: a trailing scan affordance (pinned right, text pinned LTR), idle → spinner → ✓ / ⓘ states layered over your own field values, an acceptor for scann
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `label?`: string
|
|
11
|
+
- `value?`: string
|
|
12
|
+
- `leadingIcon?`: icon
|
|
13
|
+
- `placeholder?`: string
|
|
14
|
+
- `onValueChange?`: (value: string, details: { readonly source: G9BarcodeValueSource; }) => void
|
|
15
|
+
- `disabled?`: boolean = false
|
|
16
|
+
- `confirmType?`: 'search' | 'done' | 'send' | 'go' | 'next' = "done"
|
|
17
|
+
- `inputType?`: 'number' | 'default' | 'email' | 'phone' | 'custom' | 'url' | 'letters' | 'decimal' | 'signedNumber' | 'signedDecimal' | 'lettersAndNumbers' | 'lettersNumbersSpace' | 'persianLetters' | 'persianLettersAndNumbers' | 'multilingualLettersAndNumbers' | 'noSpecialChars' = "default"
|
|
18
|
+
|
|
19
|
+
Example: `<G9BarcodeTextEntry />`
|
|
20
|
+
|
|
21
|
+
# G9ScanCard
|
|
22
|
+
|
|
23
|
+
`import { G9ScanCard } from '@g9tm/lynxcontrols-barcode';`
|
|
24
|
+
|
|
25
|
+
A camera card for a walk that scans one code after another (MAUI 6.2.52 TagScanCameraCard): a card of a FIXED height, pinned where the page puts it (the top), the camera's picture dimmed under its chrome, a status chip a
|
|
26
|
+
|
|
27
|
+
Props:
|
|
28
|
+
- `headline`: string
|
|
29
|
+
- `height`: number
|
|
30
|
+
- `children?`: ReactNode
|
|
31
|
+
- `pictureOpacity?`: number = 0.79
|
|
32
|
+
- `tone?`: string
|
|
33
|
+
- `bottomEnd?`: ReactNode
|
|
34
|
+
- `bottomStart?`: ReactNode
|
|
35
|
+
- `camera?`: ReactNode
|
|
36
|
+
|
|
37
|
+
Example: `<G9ScanCard headline="headline" height={1} />`
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols/base` (generated)
|
|
2
|
+
|
|
3
|
+
# G9CornerBadge
|
|
4
|
+
|
|
5
|
+
`import { G9CornerBadge } from '@g9tm/lynxcontrols/base';`
|
|
6
|
+
|
|
7
|
+
The one corner badge of the library (MAUI `G9CornerBadge`, guide rule 14): centred on the host's top-trailing corner (top-left in RTL), no negative margins (the host reserves half the badge), the number dead-centred, nev
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `text?`: string
|
|
11
|
+
- `ringColor?`: color = "var(--g9-surface)"
|
|
12
|
+
- `textColor?`: color = "var(--g9-on-error)"
|
|
13
|
+
- `color?`: color = "var(--g9-error)"
|
|
14
|
+
- `dot?`: boolean
|
|
15
|
+
- `mirrorTextInRtl?`: boolean = true
|
|
16
|
+
|
|
17
|
+
Example: `<G9CornerBadge />`
|
|
18
|
+
|
|
19
|
+
# G9Pressable
|
|
20
|
+
|
|
21
|
+
`import { G9Pressable } from '@g9tm/lynxcontrols/base';`
|
|
22
|
+
|
|
23
|
+
Opacity press feedback around any content (MAUI `G9PressFeedbackBehavior` attached to a view; `.For(command)` is `<G9Pressable onPress={…}>`).
|
|
24
|
+
|
|
25
|
+
Props:
|
|
26
|
+
- `children?`: ReactNode
|
|
27
|
+
- `onPress?`: () => void
|
|
28
|
+
- `disabled?`: boolean = false
|
|
29
|
+
- `hoveredOpacity?`: number = 0.86
|
|
30
|
+
- `pressedOpacity?`: number = 0.78
|
|
31
|
+
- `restOpacity?`: number = 1
|
|
32
|
+
- `animationDurationMs?`: number = 110
|
|
33
|
+
- `feedback?`: 'card' | 'opacity'
|
|
34
|
+
|
|
35
|
+
Example: `<G9Pressable />`
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols/button` (generated)
|
|
2
|
+
|
|
3
|
+
# G9Button
|
|
4
|
+
|
|
5
|
+
`import { G9Button } from '@g9tm/lynxcontrols/button';`
|
|
6
|
+
|
|
7
|
+
Text button (MAUI `G9Button`): variant fill (gradient for the solid variants), 12 px corners, no shadow, optional leading/trailing icons, loading state with a spinner.
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `text?`: string
|
|
11
|
+
- `variant?`: 'text' | 'primary' | 'default' | 'secondary' | 'info' | 'success' | 'warning' | 'error' | 'surface' | 'outline' | 'accent' | 'tonal' | 'errorTonal' | 'ghost' | 'inverse' = "primary"
|
|
12
|
+
- `size?`: 'small' | 'medium' | 'large' | 'hero' = "medium"
|
|
13
|
+
- `leadingIcon?`: icon
|
|
14
|
+
- `onPress?`: () => void
|
|
15
|
+
- `disabled?`: boolean = false
|
|
16
|
+
- `fontAttributes?`: 'bold' | 'none' | 'italic' | 'boldItalic' = "bold"
|
|
17
|
+
- `loadingText?`: string
|
|
18
|
+
|
|
19
|
+
Example: `<G9Button text="Cancel" variant="outline" />`
|
|
20
|
+
|
|
21
|
+
# G9HeaderActionButton
|
|
22
|
+
|
|
23
|
+
`import { G9HeaderActionButton } from '@g9tm/lynxcontrols/button';`
|
|
24
|
+
|
|
25
|
+
Toolbar/header action (MAUI `G9HeaderActionButton`): bordered square with a glyph, image or short text.
|
|
26
|
+
|
|
27
|
+
Props:
|
|
28
|
+
- `icon?`: icon = "G9Glyph.Menu"
|
|
29
|
+
- `onPress?`: () => void
|
|
30
|
+
- `disabled?`: boolean = false
|
|
31
|
+
- `badgeText?`: string
|
|
32
|
+
- `buttonText?`: string
|
|
33
|
+
- `buttonSize?`: number = 0
|
|
34
|
+
- `iconImage?`: object | object | object
|
|
35
|
+
- `iconSize?`: number = 24
|
|
36
|
+
|
|
37
|
+
Example: `<G9HeaderActionButton />`
|
|
38
|
+
|
|
39
|
+
# G9IconButton
|
|
40
|
+
|
|
41
|
+
`import { G9IconButton } from '@g9tm/lynxcontrols/button';`
|
|
42
|
+
|
|
43
|
+
Square icon button (MAUI `G9IconButton`): one icon, variant/ghost fill, optional circle, corner badge that is never dimmed (opacity applies to the frame only), loading spinner, minimum touch target.
|
|
44
|
+
|
|
45
|
+
Props:
|
|
46
|
+
- `variant?`: 'text' | 'primary' | 'default' | 'secondary' | 'info' | 'success' | 'warning' | 'error' | 'surface' | 'outline' | 'accent' | 'tonal' | 'errorTonal' | 'ghost' | 'inverse' = "surface"
|
|
47
|
+
- `icon?`: icon
|
|
48
|
+
- `onPress?`: () => void
|
|
49
|
+
- `disabled?`: boolean = false
|
|
50
|
+
- `activeVariant?`: 'text' | 'primary' | 'default' | 'secondary' | 'info' | 'success' | 'warning' | 'error' | 'surface' | 'outline' | 'accent' | 'tonal' | 'errorTonal' | 'ghost' | 'inverse' = "tonal"
|
|
51
|
+
- `badgeText?`: string
|
|
52
|
+
- `badgeColor?`: color = "var(--g9-error)"
|
|
53
|
+
- `baseBackgroundColor?`: color
|
|
54
|
+
|
|
55
|
+
Example: `<G9IconButton />`
|
|
56
|
+
|
|
57
|
+
# G9NavCard
|
|
58
|
+
|
|
59
|
+
`import { G9NavCard } from '@g9tm/lynxcontrols/button';`
|
|
60
|
+
|
|
61
|
+
Navigation row card (MAUI `G9NavCard`): icon tile (pastel, or filled with `useFilledIconChip`) with optional corner badge, title (with an optional `titleAccessory` after it)/subtitle, value text, chevron or coming-soon b
|
|
62
|
+
|
|
63
|
+
Props:
|
|
64
|
+
- `title?`: string
|
|
65
|
+
- `icon?`: icon
|
|
66
|
+
- `subtitle?`: string
|
|
67
|
+
- `onPress?`: () => void
|
|
68
|
+
- `disabled?`: boolean = false
|
|
69
|
+
- `comingSoonText?`: string
|
|
70
|
+
- `iconBadgeText?`: string
|
|
71
|
+
- `valueText?`: string
|
|
72
|
+
|
|
73
|
+
Example: `<G9NavCard />`
|
|
74
|
+
|
|
75
|
+
# G9SafeButton
|
|
76
|
+
|
|
77
|
+
`import { G9SafeButton } from '@g9tm/lynxcontrols/button';`
|
|
78
|
+
|
|
79
|
+
Button with guarded execution (MAUI `G9SafeButton`): a tap calls `onPress`, then runs `onExecute` (and `onExecuteHandlers`) through the provider's safe executor: throttle (369 ms per key), one run at a time, optional del
|
|
80
|
+
|
|
81
|
+
Props:
|
|
82
|
+
- `text?`: string
|
|
83
|
+
- `variant?`: 'text' | 'primary' | 'default' | 'secondary' | 'info' | 'success' | 'warning' | 'error' | 'surface' | 'outline' | 'accent' | 'tonal' | 'errorTonal' | 'ghost' | 'inverse' = "primary"
|
|
84
|
+
- `size?`: 'small' | 'medium' | 'large' | 'hero' = "medium"
|
|
85
|
+
- `leadingIcon?`: icon
|
|
86
|
+
- `onPress?`: () => void
|
|
87
|
+
- `disabled?`: boolean = false
|
|
88
|
+
- `fontAttributes?`: 'bold' | 'none' | 'italic' | 'boldItalic' = "bold"
|
|
89
|
+
- `onExecute?`: (context: G9SafeRunContext) => void
|
|
90
|
+
|
|
91
|
+
Example: `<G9SafeButton />`
|
|
92
|
+
|
|
93
|
+
# G9SafeIconButton
|
|
94
|
+
|
|
95
|
+
`import { G9SafeIconButton } from '@g9tm/lynxcontrols/button';`
|
|
96
|
+
|
|
97
|
+
Icon button with guarded execution (MAUI `G9SafeIconButton`); see `G9SafeButton`.
|
|
98
|
+
|
|
99
|
+
Props:
|
|
100
|
+
- `variant?`: 'text' | 'primary' | 'default' | 'secondary' | 'info' | 'success' | 'warning' | 'error' | 'surface' | 'outline' | 'accent' | 'tonal' | 'errorTonal' | 'ghost' | 'inverse' = "surface"
|
|
101
|
+
- `icon?`: icon
|
|
102
|
+
- `onPress?`: () => void
|
|
103
|
+
- `disabled?`: boolean = false
|
|
104
|
+
- `activeVariant?`: 'text' | 'primary' | 'default' | 'secondary' | 'info' | 'success' | 'warning' | 'error' | 'surface' | 'outline' | 'accent' | 'tonal' | 'errorTonal' | 'ghost' | 'inverse' = "tonal"
|
|
105
|
+
- `onExecute?`: (context: G9SafeRunContext) => void
|
|
106
|
+
- `onResult?`: (result: G9SafeRunResult<unknown>) => void
|
|
107
|
+
- `badgeText?`: string
|
|
108
|
+
|
|
109
|
+
Example: `<G9SafeIconButton />`
|
|
110
|
+
|
|
111
|
+
# G9VerticalIconTextButton
|
|
112
|
+
|
|
113
|
+
`import { G9VerticalIconTextButton } from '@g9tm/lynxcontrols/button';`
|
|
114
|
+
|
|
115
|
+
Image over a centred label in a bordered tile (MAUI `G9VerticalIconTextButton`).
|
|
116
|
+
|
|
117
|
+
Props:
|
|
118
|
+
- `text?`: string
|
|
119
|
+
- `onPress?`: () => void
|
|
120
|
+
- `disabled?`: boolean = false
|
|
121
|
+
- `imageSize?`: number = 32
|
|
122
|
+
- `image?`: object | object | object
|
|
123
|
+
- `accessibilityLabel?`: string
|
|
124
|
+
|
|
125
|
+
Example: `<G9VerticalIconTextButton />`
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols-calendar` (generated)
|
|
2
|
+
|
|
3
|
+
# G9AgendaView
|
|
4
|
+
|
|
5
|
+
`import { G9AgendaView } from '@g9tm/lynxcontrols-calendar';`
|
|
6
|
+
|
|
7
|
+
Days with events, each a sticky header over its events (time, title), on the recycler.
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `events`: object[]
|
|
11
|
+
- `today`: object
|
|
12
|
+
- `onSelectEvent?`: (event: G9CalendarEvent) => void
|
|
13
|
+
- `allDayText?`: string
|
|
14
|
+
- `empty?`: ReactNode
|
|
15
|
+
|
|
16
|
+
Example: `<G9AgendaView events={events} today={today} />`
|
|
17
|
+
|
|
18
|
+
# G9DateInput
|
|
19
|
+
|
|
20
|
+
`import { G9DateInput } from '@g9tm/lynxcontrols-calendar';`
|
|
21
|
+
|
|
22
|
+
A date typed the way people say it — «فردا», «۱۵ مهر», «2026-03-21», «next friday» — read on blur (parseNaturalDate), with a month to tap under it.
|
|
23
|
+
|
|
24
|
+
Props:
|
|
25
|
+
- `label`: string
|
|
26
|
+
- `onChange`: (date: G9LocalDate | null) => void
|
|
27
|
+
- `today`: object
|
|
28
|
+
- `value`: object
|
|
29
|
+
- `invalidText?`: string
|
|
30
|
+
- `max?`: object
|
|
31
|
+
- `min?`: object
|
|
32
|
+
|
|
33
|
+
Example: `<G9DateInput label="Label" onChange={() => {}} today={today} value={value} />`
|
|
34
|
+
|
|
35
|
+
# G9MiniMonth
|
|
36
|
+
|
|
37
|
+
`import { G9MiniMonth } from '@g9tm/lynxcontrols-calendar';`
|
|
38
|
+
|
|
39
|
+
A compact month: header with arrows, weekday initials, 6×7 days; today ringed, the value filled, a range tinted.
|
|
40
|
+
|
|
41
|
+
Props:
|
|
42
|
+
- `today`: object
|
|
43
|
+
- `value?`: object
|
|
44
|
+
- `onSelect?`: (date: G9LocalDate) => void
|
|
45
|
+
- `marked?`: (date: G9LocalDate) => void
|
|
46
|
+
- `initialMonth?`: object
|
|
47
|
+
- `max?`: object
|
|
48
|
+
- `min?`: object
|
|
49
|
+
- `range?`: object
|
|
50
|
+
|
|
51
|
+
Example: `<G9MiniMonth today={today} />`
|
|
52
|
+
|
|
53
|
+
# G9MonthDayPicker
|
|
54
|
+
|
|
55
|
+
`import { G9MonthDayPicker } from '@g9tm/lynxcontrols-calendar';`
|
|
56
|
+
|
|
57
|
+
Two rows of chips: the twelve months of the culture's calendar, then the chosen month's days.
|
|
58
|
+
|
|
59
|
+
Props:
|
|
60
|
+
- `onChange`: (value: G9MonthDay | null) => void
|
|
61
|
+
- `value`: object
|
|
62
|
+
|
|
63
|
+
Example: `<G9MonthDayPicker onChange={() => {}} value={value} />`
|
|
64
|
+
|
|
65
|
+
# G9MonthView
|
|
66
|
+
|
|
67
|
+
`import { G9MonthView } from '@g9tm/lynxcontrols-calendar';`
|
|
68
|
+
|
|
69
|
+
A full month with each day's first events as chips and «+n» for the rest.
|
|
70
|
+
|
|
71
|
+
Props:
|
|
72
|
+
- `events`: object[]
|
|
73
|
+
- `month`: object
|
|
74
|
+
- `today`: object
|
|
75
|
+
- `onSelectDay?`: (date: G9LocalDate) => void
|
|
76
|
+
- `onSelectEvent?`: (event: G9CalendarEvent) => void
|
|
77
|
+
- `perDay?`: number = 2
|
|
78
|
+
|
|
79
|
+
Example: `<G9MonthView events={events} month={month} today={today} />`
|
|
80
|
+
|
|
81
|
+
# G9RepeatPicker
|
|
82
|
+
|
|
83
|
+
`import { G9RepeatPicker } from '@g9tm/lynxcontrols-calendar';`
|
|
84
|
+
|
|
85
|
+
Never / daily / weekly (with weekday chips) / monthly / yearly.
|
|
86
|
+
|
|
87
|
+
Props:
|
|
88
|
+
- `labels`: object
|
|
89
|
+
- `onChange`: (rule: G9Recurrence | null) => void
|
|
90
|
+
- `value`: object
|
|
91
|
+
|
|
92
|
+
Example: `<G9RepeatPicker labels={labels} onChange={() => {}} value={value} />`
|
|
93
|
+
|
|
94
|
+
# G9TimeGrid
|
|
95
|
+
|
|
96
|
+
`import { G9TimeGrid } from '@g9tm/lynxcontrols-calendar';`
|
|
97
|
+
|
|
98
|
+
Hours down the side, a column per day, timed events packed into lanes where they overlap, the now line.
|
|
99
|
+
|
|
100
|
+
Props:
|
|
101
|
+
- `events`: object[]
|
|
102
|
+
- `start`: object
|
|
103
|
+
- `today`: object
|
|
104
|
+
- `onSelectEvent?`: (event: G9CalendarEvent) => void
|
|
105
|
+
- `onSelectSlot?`: (date: G9LocalDate, minutes: number) => void
|
|
106
|
+
- `hourHeight?`: number
|
|
107
|
+
- `days?`: number
|
|
108
|
+
- `fromHour?`: number
|
|
109
|
+
|
|
110
|
+
Example: `<G9TimeGrid events={events} start={start} today={today} />`
|
|
111
|
+
|
|
112
|
+
# G9ZonePicker
|
|
113
|
+
|
|
114
|
+
`import { G9ZonePicker } from '@g9tm/lynxcontrols-calendar';`
|
|
115
|
+
|
|
116
|
+
A searchable time-zone picker: the rows are windowed, so ~420 zones open as fast as ten.
|
|
117
|
+
|
|
118
|
+
Props:
|
|
119
|
+
- `onChange`: (zone: string) => void
|
|
120
|
+
- `value`: string
|
|
121
|
+
- `zones`: string[]
|
|
122
|
+
- `label?`: string
|
|
123
|
+
- `leadingIcon?`: icon
|
|
124
|
+
- `placeholder?`: string
|
|
125
|
+
- `disabled?`: boolean = false
|
|
126
|
+
- `offsetOf?`: (zone: string) => void
|
|
127
|
+
|
|
128
|
+
Example: `<G9ZonePicker onChange={() => {}} value="value" zones={zones} />`
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols/cascade` (generated)
|
|
2
|
+
|
|
3
|
+
# G9CascadePanel
|
|
4
|
+
|
|
5
|
+
`import { G9CascadePanel } from '@g9tm/lynxcontrols/cascade';`
|
|
6
|
+
|
|
7
|
+
In-place drill-down navigation (MAUI `G9CascadePanel`): `controller.push(view, { title })` slides a panel in over the current one from any edge, `pop()` slides it back; panels stack to any depth inside whatever container
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `onPanelPopped?`: (depth: number) => void
|
|
11
|
+
- `onPanelPushed?`: (depth: number) => void
|
|
12
|
+
- `rootTitle?`: string
|
|
13
|
+
- `cornerRadius?`: number = 16
|
|
14
|
+
- `rootContent?`: ReactNode
|
|
15
|
+
- `rootContentFactory?`: () => ReactNode
|
|
16
|
+
- `animateRoot?`: boolean = false
|
|
17
|
+
- `animationDurationMs?`: number = 280
|
|
18
|
+
|
|
19
|
+
Example: `<G9CascadePanel />`
|