@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,19 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols-intro-carousel` (generated)
|
|
2
|
+
|
|
3
|
+
# G9IntroCarousel
|
|
4
|
+
|
|
5
|
+
`import { G9IntroCarousel } from '@g9tm/lynxcontrols-intro-carousel';`
|
|
6
|
+
|
|
7
|
+
Full-screen onboarding slides (MAUI `G9IntroCarousel`): one media slot behind a dark (flat or gradient) overlay, logo, localized title and subtitle, step pills, previous / next (swapped in RTL), a language button and the
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `onComplete?`: () => void
|
|
11
|
+
- `onCurrentIndexChange?`: (index: number) => void
|
|
12
|
+
- `onFirstContentReady?`: () => void
|
|
13
|
+
- `onLanguage?`: () => void
|
|
14
|
+
- `onMediaFallback?`: (index: number, reason: G9IntroFallbackReason) => void
|
|
15
|
+
- `overlayColor?`: color
|
|
16
|
+
- `overlayOpacity?`: number = 0.52
|
|
17
|
+
- `overlayTopOpacity?`: number
|
|
18
|
+
|
|
19
|
+
Example: `<G9IntroCarousel />`
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols/layout` (part 1 of 2) (generated)
|
|
2
|
+
|
|
3
|
+
# G9ActionRow
|
|
4
|
+
|
|
5
|
+
`import { G9ActionRow } from '@g9tm/lynxcontrols/layout';`
|
|
6
|
+
|
|
7
|
+
The main action(s) of a form or page (SAC ActionRow): on a desk at the end at their own width (a page-wide bar reads as a banner, not a button); on a phone full width for the thumb.
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `children?`: ReactNode
|
|
11
|
+
- `top?`: number = 12
|
|
12
|
+
|
|
13
|
+
Example: `<G9ActionRow />`
|
|
14
|
+
|
|
15
|
+
# G9Bento
|
|
16
|
+
|
|
17
|
+
`import { G9Bento } from '@g9tm/lynxcontrols/layout';`
|
|
18
|
+
|
|
19
|
+
A responsive bento row (Riskara Bento): children share 12 columns on wide windows, stack on narrow ones.
|
|
20
|
+
|
|
21
|
+
Props:
|
|
22
|
+
- `spans`: number[]
|
|
23
|
+
- `children?`: ReactNode
|
|
24
|
+
- `stackBelow?`: 'tablet' | 'desktop' = "tablet"
|
|
25
|
+
- `gap?`: number
|
|
26
|
+
|
|
27
|
+
Example: `<G9Bento spans={spans} />`
|
|
28
|
+
|
|
29
|
+
# G9Card
|
|
30
|
+
|
|
31
|
+
`import { G9Card } from '@g9tm/lynxcontrols/layout';`
|
|
32
|
+
|
|
33
|
+
A card (every app's Card/Panel surface).
|
|
34
|
+
|
|
35
|
+
Props:
|
|
36
|
+
- `children?`: ReactNode
|
|
37
|
+
- `onPress?`: () => void
|
|
38
|
+
- `disabled?`: boolean = false
|
|
39
|
+
- `appearance?`: 'outlined' | 'filled' | 'elevated' | 'glass'
|
|
40
|
+
- `edge?`: string
|
|
41
|
+
- `enterDelay?`: number
|
|
42
|
+
- `glow?`: string
|
|
43
|
+
- `padding?`: number = 16
|
|
44
|
+
|
|
45
|
+
Example: `<G9Card />`
|
|
46
|
+
|
|
47
|
+
# G9Columns
|
|
48
|
+
|
|
49
|
+
`import { G9Columns } from '@g9tm/lynxcontrols/layout';`
|
|
50
|
+
|
|
51
|
+
Form or content columns on wide windows, one column on narrow ones (SAC Cols).
|
|
52
|
+
|
|
53
|
+
Props:
|
|
54
|
+
- `children?`: ReactNode
|
|
55
|
+
- `from?`: 'tablet' | 'desktop' = "tablet"
|
|
56
|
+
- `gap?`: number = 16
|
|
57
|
+
- `weights?`: number[]
|
|
58
|
+
|
|
59
|
+
Example: `<G9Columns />`
|
|
60
|
+
|
|
61
|
+
# G9HScroll
|
|
62
|
+
|
|
63
|
+
`import { G9HScroll } from '@g9tm/lynxcontrols/layout';`
|
|
64
|
+
|
|
65
|
+
A row of chips, tabs or cards that may not fit (SAC HScroll): it scrolls sideways and the far end fades while there is more, so a label is never squeezed to break mid-word.
|
|
66
|
+
|
|
67
|
+
Props:
|
|
68
|
+
- `children?`: ReactNode
|
|
69
|
+
- `alignItems?`: 'center' | 'flex-start' | 'flex-end' | 'stretch' = "center"
|
|
70
|
+
- `fadeColor?`: color | boolean
|
|
71
|
+
- `gap?`: number = 8
|
|
72
|
+
- `height?`: number | string = 40
|
|
73
|
+
- `padding?`: number = 16
|
|
74
|
+
- `wrapWhenWide?`: boolean
|
|
75
|
+
|
|
76
|
+
Example: `<G9HScroll />`
|
|
77
|
+
|
|
78
|
+
# G9Page
|
|
79
|
+
|
|
80
|
+
`import { G9Page } from '@g9tm/lynxcontrols/layout';`
|
|
81
|
+
|
|
82
|
+
A screen (ShopManager Screen/Page, Riskara Page, SAC page): a fixed header, one scrolling body with the layout's gutters and a maximum width (desktop never shows a phone column), a fixed footer, an overlay layer.
|
|
83
|
+
|
|
84
|
+
Props:
|
|
85
|
+
- `children?`: ReactNode
|
|
86
|
+
- `maxWidth?`: number = 1360
|
|
87
|
+
- `footer?`: ReactNode
|
|
88
|
+
- `header?`: ReactNode
|
|
89
|
+
- `overlay?`: ReactNode
|
|
90
|
+
- `background?`: color
|
|
91
|
+
- `gutter?`: number | object = "{ phone: 16, tablet: 24, desktop: 32 }"
|
|
92
|
+
- `place?`: string
|
|
93
|
+
|
|
94
|
+
Example: `<G9Page />`
|
|
95
|
+
|
|
96
|
+
# G9PlaceScroll
|
|
97
|
+
|
|
98
|
+
`import { G9PlaceScroll } from '@g9tm/lynxcontrols/layout';`
|
|
99
|
+
|
|
100
|
+
A vertical scroll that keeps its place (SAC PlaceScroll): leaving and coming back restores the position.
|
|
101
|
+
|
|
102
|
+
Props:
|
|
103
|
+
- `place`: string
|
|
104
|
+
- `children?`: ReactNode
|
|
105
|
+
- `onScroll?`: (top: number) => void
|
|
106
|
+
- `lifeMs?`: number = 30
|
|
107
|
+
|
|
108
|
+
Example: `<G9PlaceScroll place="place" />`
|
|
109
|
+
|
|
110
|
+
# G9SaveBar
|
|
111
|
+
|
|
112
|
+
`import { G9SaveBar } from '@g9tm/lynxcontrols/layout';`
|
|
113
|
+
|
|
114
|
+
SAC's name for `G9UnsavedBar` (the same control).
|
|
115
|
+
|
|
116
|
+
Props:
|
|
117
|
+
- `dirty`: boolean
|
|
118
|
+
- `message`: string
|
|
119
|
+
- `onSave`: () => void
|
|
120
|
+
- `saveText`: string
|
|
121
|
+
- `onDiscard?`: () => void
|
|
122
|
+
- `discardText?`: string
|
|
123
|
+
- `busy?`: boolean
|
|
124
|
+
|
|
125
|
+
Example: `<G9SaveBar dirty message="message" onSave={() => {}} saveText="saveText" />`
|
|
126
|
+
|
|
127
|
+
# G9ScrollSpyBar
|
|
128
|
+
|
|
129
|
+
`import { G9ScrollSpyBar } from '@g9tm/lynxcontrols/layout';`
|
|
130
|
+
|
|
131
|
+
A row of section pills that follows the page (SAC menu sections): the active one is filled and kept in view; a tap reports its key.
|
|
132
|
+
|
|
133
|
+
Props:
|
|
134
|
+
- `active`: string
|
|
135
|
+
- `onSelect`: (key: K) => void
|
|
136
|
+
- `sections`: object[]
|
|
137
|
+
|
|
138
|
+
Example: `<G9ScrollSpyBar active="active" onSelect={() => {}} sections={sections} />`
|
|
139
|
+
|
|
140
|
+
# G9Section
|
|
141
|
+
|
|
142
|
+
`import { G9Section } from '@g9tm/lynxcontrols/layout';`
|
|
143
|
+
|
|
144
|
+
A titled block of a page or form (SAC Section/Panel, ShopManager Section, Riskara SectionHead, G9Hub SettingsGroup).
|
|
145
|
+
|
|
146
|
+
Props:
|
|
147
|
+
- `title?`: string
|
|
148
|
+
- `children?`: ReactNode
|
|
149
|
+
- `icon?`: icon
|
|
150
|
+
- `subtitle?`: string
|
|
151
|
+
- `actions?`: ReactNode
|
|
152
|
+
- `card?`: boolean
|
|
153
|
+
- `padding?`: number = 16
|
|
154
|
+
|
|
155
|
+
Example: `<G9Section />`
|
|
156
|
+
|
|
157
|
+
# G9SectionHeader
|
|
158
|
+
|
|
159
|
+
`import { G9SectionHeader } from '@g9tm/lynxcontrols/layout';`
|
|
160
|
+
|
|
161
|
+
A section's title row: icon, title, a line under it, and an action at the end.
|
|
162
|
+
|
|
163
|
+
Props:
|
|
164
|
+
- `title`: string
|
|
165
|
+
- `icon?`: icon
|
|
166
|
+
- `subtitle?`: string
|
|
167
|
+
- `actions?`: ReactNode
|
|
168
|
+
- `action?`: object
|
|
169
|
+
|
|
170
|
+
Example: `<G9SectionHeader title="Label" />`
|
|
171
|
+
|
|
172
|
+
# G9SplitPane
|
|
173
|
+
|
|
174
|
+
`import { G9SplitPane } from '@g9tm/lynxcontrols/layout';`
|
|
175
|
+
|
|
176
|
+
A list beside its detail on wide windows, one of them on phones (G9Hub SplitPane + Navigator).
|
|
177
|
+
|
|
178
|
+
Props:
|
|
179
|
+
- `start`: ReactNode
|
|
180
|
+
- `children?`: ReactNode
|
|
181
|
+
- `size?`: number = 360
|
|
182
|
+
- `phonePane?`: 'start' | 'detail' = "start"
|
|
183
|
+
- `onResize?`: (size: number) => void
|
|
184
|
+
- `fixed?`: boolean
|
|
185
|
+
- `max?`: number
|
|
186
|
+
- `min?`: number
|
|
187
|
+
|
|
188
|
+
Example: `<G9SplitPane start={start} />`
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols/layout` (part 2 of 2) (generated)
|
|
2
|
+
|
|
3
|
+
# G9UnsavedBar
|
|
4
|
+
|
|
5
|
+
`import { G9UnsavedBar } from '@g9tm/lynxcontrols/layout';`
|
|
6
|
+
|
|
7
|
+
A bar that appears while a form has unsaved changes (G9Hub UnsavedBar, SAC SaveBar): the message, discard, save.
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `dirty`: boolean
|
|
11
|
+
- `message`: string
|
|
12
|
+
- `onSave`: () => void
|
|
13
|
+
- `saveText`: string
|
|
14
|
+
- `onDiscard?`: () => void
|
|
15
|
+
- `discardText?`: string
|
|
16
|
+
- `busy?`: boolean
|
|
17
|
+
|
|
18
|
+
Example: `<G9UnsavedBar dirty message="message" onSave={() => {}} saveText="saveText" />`
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols/list` (generated)
|
|
2
|
+
|
|
3
|
+
# G9DragList
|
|
4
|
+
|
|
5
|
+
`import { G9DragList } from '@g9tm/lynxcontrols/list';`
|
|
6
|
+
|
|
7
|
+
Reorder by dragging (G9Hub board columns, ShopManager menu order): long-press lifts a row, it follows the finger, the rows it passes slide aside, release drops it.
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `getKey`: (item: T) => void
|
|
11
|
+
- `items`: NonNullable<T>[]
|
|
12
|
+
- `onReorder`: (items: T[]) => void
|
|
13
|
+
- `renderItem`: (item, dragging) => ReactNode
|
|
14
|
+
- `disabled?`: boolean
|
|
15
|
+
- `rowHeight?`: number = 56
|
|
16
|
+
|
|
17
|
+
Example: `<G9DragList getKey={getKey} items={items} onReorder={() => {}} renderItem={renderItem} />`
|
|
18
|
+
|
|
19
|
+
# G9ListRow
|
|
20
|
+
|
|
21
|
+
`import { G9ListRow } from '@g9tm/lynxcontrols/list';`
|
|
22
|
+
|
|
23
|
+
One line of a list (SAC kit ListRow, ShopManager Row, G9Hub SettingsRow): icon or avatar at the start, title and a line or two, a value or control at the end, a chevron for drill-down.
|
|
24
|
+
|
|
25
|
+
Props:
|
|
26
|
+
- `title`: string
|
|
27
|
+
- `value?`: string
|
|
28
|
+
- `icon?`: icon
|
|
29
|
+
- `subtitle?`: string
|
|
30
|
+
- `onPress?`: () => void
|
|
31
|
+
- `disabled?`: boolean = false
|
|
32
|
+
- `iconTone?`: 'primary' | 'info' | 'success' | 'warning' | 'error' | 'accent' | 'neutral' = "neutral"
|
|
33
|
+
- `hint?`: string
|
|
34
|
+
|
|
35
|
+
Example: `<G9ListRow title="Label" />`
|
|
36
|
+
|
|
37
|
+
# G9Pager
|
|
38
|
+
|
|
39
|
+
`import { G9Pager } from '@g9tm/lynxcontrols/list';`
|
|
40
|
+
|
|
41
|
+
Previous / next under a paged list (SAC LogsAudit Pager).
|
|
42
|
+
|
|
43
|
+
Props:
|
|
44
|
+
- `onPage`: (page: number) => void
|
|
45
|
+
- `page`: number
|
|
46
|
+
- `pageSize`: number
|
|
47
|
+
- `total`: number
|
|
48
|
+
- `label?`: (from: number, to: number, total: number) => void
|
|
49
|
+
- `disabled?`: boolean = false
|
|
50
|
+
- `accessibilityLabel?`: string
|
|
51
|
+
|
|
52
|
+
Example: `<G9Pager onPage={() => {}} page={1} pageSize={1} total={1} />`
|
|
53
|
+
|
|
54
|
+
# G9PullToRefresh
|
|
55
|
+
|
|
56
|
+
`import { G9PullToRefresh } from '@g9tm/lynxcontrols/list';`
|
|
57
|
+
|
|
58
|
+
A vertical scroller that refreshes when pulled down from the top.
|
|
59
|
+
|
|
60
|
+
Props:
|
|
61
|
+
- `onRefresh`: () => void
|
|
62
|
+
- `children?`: ReactNode
|
|
63
|
+
- `disabled?`: boolean
|
|
64
|
+
- `threshold?`: number = 72
|
|
65
|
+
|
|
66
|
+
Example: `<G9PullToRefresh onRefresh={onRefresh} />`
|
|
67
|
+
|
|
68
|
+
# G9SettingsGroup
|
|
69
|
+
|
|
70
|
+
`import { G9SettingsGroup } from '@g9tm/lynxcontrols/list';`
|
|
71
|
+
|
|
72
|
+
Rows grouped in a card with a title and a note (G9Hub SettingsGroup, iOS grouped lists).
|
|
73
|
+
|
|
74
|
+
Props:
|
|
75
|
+
- `title?`: string
|
|
76
|
+
- `children?`: ReactNode
|
|
77
|
+
- `description?`: string
|
|
78
|
+
- `footer?`: ReactNode
|
|
79
|
+
|
|
80
|
+
Example: `<G9SettingsGroup />`
|
|
81
|
+
|
|
82
|
+
# G9SwitchRow
|
|
83
|
+
|
|
84
|
+
`import { G9SwitchRow } from '@g9tm/lynxcontrols/list';`
|
|
85
|
+
|
|
86
|
+
A setting that is on or off (SAC ToggleRow): the whole row toggles, the switch shows the state.
|
|
87
|
+
|
|
88
|
+
Props:
|
|
89
|
+
- `checked`: boolean
|
|
90
|
+
- `onCheckedChange`: (checked: boolean) => void
|
|
91
|
+
- `title`: string
|
|
92
|
+
- `icon?`: icon
|
|
93
|
+
- `subtitle?`: string
|
|
94
|
+
- `disabled?`: boolean = false
|
|
95
|
+
- `iconTone?`: 'primary' | 'info' | 'success' | 'warning' | 'error' | 'accent' | 'neutral' = "neutral"
|
|
96
|
+
- `hint?`: string
|
|
97
|
+
|
|
98
|
+
Example: `<G9SwitchRow checked onCheckedChange={() => {}} title="Label" />`
|
|
99
|
+
|
|
100
|
+
# G9VirtualList
|
|
101
|
+
|
|
102
|
+
`import { G9VirtualList } from '@g9tm/lynxcontrols/list';`
|
|
103
|
+
|
|
104
|
+
A virtualised list on Lynx's native `<list>` (G9Hub VirtualList, SAC DataGrid rows, every long list): elements are recycled and laid out lazily by the engine, so 10 000 rows cost what one screen costs.
|
|
105
|
+
|
|
106
|
+
Props:
|
|
107
|
+
- `getKey`: (item: T, index: number) => void
|
|
108
|
+
- `items`: NonNullable<T>[]
|
|
109
|
+
- `renderItem`: (item, index) => ReactNode
|
|
110
|
+
- `columns?`: number = 1
|
|
111
|
+
- `isFullSpan?`: (item: T, index: number) => void
|
|
112
|
+
- `isSticky?`: (item: T, index: number) => void
|
|
113
|
+
- `onEndReached?`: () => void
|
|
114
|
+
- `onScroll?`: (detail: { scrollTop: number; scrollLeft: number; }) => void
|
|
115
|
+
|
|
116
|
+
Example: `<G9VirtualList getKey={getKey} items={items} renderItem={renderItem} />`
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols-map` (generated)
|
|
2
|
+
|
|
3
|
+
# G9StaticMap
|
|
4
|
+
|
|
5
|
+
`import { G9StaticMap } from '@g9tm/lynxcontrols-map';`
|
|
6
|
+
|
|
7
|
+
A static tile map with pins, lines and zones; measures its width and draws only the tiles it shows.
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `attribution`: string
|
|
11
|
+
- `height`: number
|
|
12
|
+
- `tileTemplate`: string
|
|
13
|
+
- `onPinPress?`: (pin: G9MapPin) => void
|
|
14
|
+
- `center?`: object
|
|
15
|
+
- `fit?`: boolean | G9LatLng[]
|
|
16
|
+
- `pins?`: object[]
|
|
17
|
+
- `shapes?`: object[]
|
|
18
|
+
|
|
19
|
+
Example: `<G9StaticMap attribution="attribution" height={1} tileTemplate="tileTemplate" />`
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols-media` (generated)
|
|
2
|
+
|
|
3
|
+
# G9BlurhashView
|
|
4
|
+
|
|
5
|
+
`import { G9BlurhashView } from '@g9tm/lynxcontrols-media';`
|
|
6
|
+
|
|
7
|
+
A blurhash placeholder under a photo that fades in on load (one SVG built per hash).
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `hash`: string
|
|
11
|
+
- `height`: string | number
|
|
12
|
+
- `width`: string | number
|
|
13
|
+
- `radius?`: number
|
|
14
|
+
- `mode?`: 'aspectFill' | 'aspectFit'
|
|
15
|
+
- `src?`: string
|
|
16
|
+
|
|
17
|
+
Example: `<G9BlurhashView hash="hash" height={height} width={width} />`
|
|
18
|
+
|
|
19
|
+
# G9DropZone
|
|
20
|
+
|
|
21
|
+
`import { G9DropZone } from '@g9tm/lynxcontrols-media';`
|
|
22
|
+
|
|
23
|
+
Two uses: `<G9DropZone label onFiles />` is a tappable area that opens the chooser (the way in on a phone); `<G9DropZone label onFiles>{thread}</G9DropZone>` makes the content the target of files dropped on the window, w
|
|
24
|
+
|
|
25
|
+
Props:
|
|
26
|
+
- `label`: string
|
|
27
|
+
- `onFiles`: (files: readonly G9FileRef[]) => void
|
|
28
|
+
- `children?`: ReactNode
|
|
29
|
+
- `disabled?`: boolean
|
|
30
|
+
- `hint?`: string
|
|
31
|
+
- `accept?`: string
|
|
32
|
+
- `multiple?`: boolean = true
|
|
33
|
+
- `tapToPick?`: boolean
|
|
34
|
+
|
|
35
|
+
Example: `<G9DropZone label="Label" onFiles={() => {}} />`
|
|
36
|
+
|
|
37
|
+
# G9ImageCropper
|
|
38
|
+
|
|
39
|
+
`import { G9ImageCropper } from '@g9tm/lynxcontrols-media';`
|
|
40
|
+
|
|
41
|
+
Drag to place, − zoom + to scale (a pinch where the host reports it); the crop rectangle in image pixels comes out.
|
|
42
|
+
|
|
43
|
+
Props:
|
|
44
|
+
- `frame`: object
|
|
45
|
+
- `image`: object
|
|
46
|
+
- `src`: string
|
|
47
|
+
- `onChange?`: (crop: { readonly x: number; readonly y: number; readonly width: number; readonly height: number; }, state: G9CropState) => void
|
|
48
|
+
- `maxZoom?`: number
|
|
49
|
+
- `round?`: boolean
|
|
50
|
+
|
|
51
|
+
Example: `<G9ImageCropper frame={frame} image={image} src="src" />`
|
|
52
|
+
|
|
53
|
+
# G9Lightbox
|
|
54
|
+
|
|
55
|
+
`import { G9Lightbox } from '@g9tm/lynxcontrols-media';`
|
|
56
|
+
|
|
57
|
+
The photos full screen on black: swipe between them (Lynx's native `<viewpager>`, snapping), the position «۲ / ۵», a close button; fades in with opacity only.
|
|
58
|
+
|
|
59
|
+
Props:
|
|
60
|
+
- `index`: number
|
|
61
|
+
- `items`: object[]
|
|
62
|
+
- `onClose`: () => void
|
|
63
|
+
- `open`: boolean
|
|
64
|
+
- `onIndexChange?`: (index: number) => void
|
|
65
|
+
- `closeLabel?`: string
|
|
66
|
+
- `actions?`: ReactNode
|
|
67
|
+
|
|
68
|
+
Example: `<G9Lightbox index={1} items={items} onClose={() => {}} open />`
|
|
69
|
+
|
|
70
|
+
# G9MediaGrid
|
|
71
|
+
|
|
72
|
+
`import { G9MediaGrid } from '@g9tm/lynxcontrols-media';`
|
|
73
|
+
|
|
74
|
+
1–4 tiles (and «+k» on the fourth) in a chat or feed post; a tap opens the photo.
|
|
75
|
+
|
|
76
|
+
Props:
|
|
77
|
+
- `items`: object[]
|
|
78
|
+
- `width`: number
|
|
79
|
+
- `onOpen?`: (index: number) => void
|
|
80
|
+
- `radius?`: number
|
|
81
|
+
- `gap?`: number
|
|
82
|
+
- `height?`: number
|
|
83
|
+
|
|
84
|
+
Example: `<G9MediaGrid items={items} width={1} />`
|
|
85
|
+
|
|
86
|
+
# G9MediaPager
|
|
87
|
+
|
|
88
|
+
`import { G9MediaPager } from '@g9tm/lynxcontrols-media';`
|
|
89
|
+
|
|
90
|
+
Pictures one per page, swiped (Lynx's native `<viewpager>`, snapping), each fitted on the page.
|
|
91
|
+
|
|
92
|
+
Props:
|
|
93
|
+
- `index`: number
|
|
94
|
+
- `items`: object[]
|
|
95
|
+
- `onIndexChange?`: (index: number) => void
|
|
96
|
+
|
|
97
|
+
Example: `<G9MediaPager index={1} items={items} />`
|
|
98
|
+
|
|
99
|
+
# G9VoicePlayer
|
|
100
|
+
|
|
101
|
+
`import { G9VoicePlayer } from '@g9tm/lynxcontrols-media';`
|
|
102
|
+
|
|
103
|
+
A voice note: play/pause, the waveform filling as it plays, the time left.
|
|
104
|
+
|
|
105
|
+
Props:
|
|
106
|
+
- `duration`: number
|
|
107
|
+
- `onToggle`: () => void
|
|
108
|
+
- `playing`: boolean
|
|
109
|
+
- `position`: number
|
|
110
|
+
- `onSeek?`: (fraction: number) => void
|
|
111
|
+
- `pauseLabel?`: string
|
|
112
|
+
- `playLabel?`: string
|
|
113
|
+
- `bars?`: number
|
|
114
|
+
|
|
115
|
+
Example: `<G9VoicePlayer duration={1} onToggle={() => {}} playing position={1} />`
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols/orb` (generated)
|
|
2
|
+
|
|
3
|
+
# G9FloatingOrb
|
|
4
|
+
|
|
5
|
+
`import { G9FloatingOrb } from '@g9tm/lynxcontrols/orb';`
|
|
6
|
+
|
|
7
|
+
A control that floats over a page and the operator can move: drag it anywhere — it snaps to the nearer side along the edge, remembered for the app session; push it past the edge — it tucks, a sliver of the disc left show
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `children?`: ReactNode
|
|
11
|
+
- `size?`: number = 84
|
|
12
|
+
- `side?`: 'left' | 'right' = "right"
|
|
13
|
+
- `onTap?`: () => void
|
|
14
|
+
- `discSize?`: number = 60
|
|
15
|
+
- `accessory?`: ReactNode
|
|
16
|
+
- `hidden?`: boolean
|
|
17
|
+
- `hold?`: object
|
|
18
|
+
|
|
19
|
+
Example: `<G9FloatingOrb />`
|
|
20
|
+
|
|
21
|
+
# G9HoldButton
|
|
22
|
+
|
|
23
|
+
`import { G9HoldButton } from '@g9tm/lynxcontrols/orb';`
|
|
24
|
+
|
|
25
|
+
A calm, neutral button that acts only when HELD (MAUI TrackingOrbDetailsView's hold-to-stop): under a finger a light fill of `fillColor` grows from the leading edge over `durationMs`, a tick each second, and `onComplete`
|
|
26
|
+
|
|
27
|
+
Props:
|
|
28
|
+
- `onComplete`: () => void
|
|
29
|
+
- `text`: string
|
|
30
|
+
- `disabled?`: boolean
|
|
31
|
+
- `onTap?`: () => void
|
|
32
|
+
- `onTick?`: (seconds: number) => void
|
|
33
|
+
- `fillColor?`: color = "var(--g9-error)"
|
|
34
|
+
- `delayMs?`: number = 300
|
|
35
|
+
- `durationMs?`: number = 5000
|
|
36
|
+
|
|
37
|
+
Example: `<G9HoldButton onComplete={() => {}} text="Label" />`
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols/pickers` (generated)
|
|
2
|
+
|
|
3
|
+
# DateTimeSheetBody
|
|
4
|
+
|
|
5
|
+
`import { DateTimeSheetBody } from '@g9tm/lynxcontrols/pickers';`
|
|
6
|
+
|
|
7
|
+
The drum sheet body (MAUI `G9DateTimePickerSheet`): header, live preview, Today/Now chip, the wheels.
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `bounds`: object
|
|
11
|
+
- `calendar`: 'gregorian' | 'persian'
|
|
12
|
+
- `cancel`: () => void
|
|
13
|
+
- `culture`: object
|
|
14
|
+
- `done`: (value: G9LocalDateTime) => void
|
|
15
|
+
- `format`: (value: G9LocalDateTime) => void
|
|
16
|
+
- `initial`: object
|
|
17
|
+
- `mode`: 'dateTime' | 'date' | 'time'
|
|
18
|
+
|
|
19
|
+
Example: `<DateTimeSheetBody bounds={bounds} calendar="gregorian" cancel={() => {}} culture={culture} done={() => {}} format={format} initial={initial} mode="dateTime" now={now} showToday title="Label" twentyFourHour />`
|
|
20
|
+
|
|
21
|
+
# G9ComboBox
|
|
22
|
+
|
|
23
|
+
`import { G9ComboBox } from '@g9tm/lynxcontrols/pickers';`
|
|
24
|
+
|
|
25
|
+
Searchable single or multi selection in an outlined box (MAUI `G9ComboBox`).
|
|
26
|
+
|
|
27
|
+
Props:
|
|
28
|
+
- `items`: G9SelectionItem<unknown>[]
|
|
29
|
+
- `label?`: string
|
|
30
|
+
- `value?`: string
|
|
31
|
+
- `leadingIcon?`: icon
|
|
32
|
+
- `placeholder?`: string
|
|
33
|
+
- `onValueChange?`: (key: string | null, item: T | null) => void
|
|
34
|
+
- `disabled?`: boolean = false
|
|
35
|
+
- `onLeadingPress?`: () => void
|
|
36
|
+
|
|
37
|
+
Example: `<G9ComboBox items={items} />`
|
|
38
|
+
|
|
39
|
+
# G9DateTimePicker
|
|
40
|
+
|
|
41
|
+
`import { G9DateTimePicker } from '@g9tm/lynxcontrols/pickers';`
|
|
42
|
+
|
|
43
|
+
Date, time or date-time in an outlined box (MAUI `G9DateTimePicker`): a tap opens the drum sheet (Cancel, title, Done, live preview, Today/Now, day/month/year and hour/minute wheels).
|
|
44
|
+
|
|
45
|
+
Props:
|
|
46
|
+
- `label?`: string
|
|
47
|
+
- `value?`: object
|
|
48
|
+
- `leadingIcon?`: icon
|
|
49
|
+
- `placeholder?`: string
|
|
50
|
+
- `onValueChange?`: (value: G9LocalDateTime | null) => void
|
|
51
|
+
- `disabled?`: boolean = false
|
|
52
|
+
- `displayFormat?`: 'custom' | 'shortDate' | 'longDate' | 'timeOnly' | 'shortDateTime' | 'longDateTime' = "shortDate"
|
|
53
|
+
- `mode?`: 'dateTime' | 'date' | 'time' = "date"
|
|
54
|
+
|
|
55
|
+
Example: `<G9DateTimePicker />`
|
|
56
|
+
|
|
57
|
+
# G9DayStepper
|
|
58
|
+
|
|
59
|
+
`import { G9DayStepper } from '@g9tm/lynxcontrols/pickers';`
|
|
60
|
+
|
|
61
|
+
One day with back/forward and quick jumps (SAC EventsPage DatePick, reservation days): the calendar of the culture on screen, an ISO-able `G9LocalDate` underneath; the arrows point the reading direction's way.
|
|
62
|
+
|
|
63
|
+
Props:
|
|
64
|
+
- `today`: object
|
|
65
|
+
- `value?`: object
|
|
66
|
+
- `onChange?`: (day: G9LocalDate) => void
|
|
67
|
+
- `disabled?`: boolean = false
|
|
68
|
+
- `defaultValue?`: object
|
|
69
|
+
- `max?`: object
|
|
70
|
+
- `min?`: object
|
|
71
|
+
- `pattern?`: string = "dddd d MMMM"
|
|
72
|
+
|
|
73
|
+
Example: `<G9DayStepper today={today} />`
|
|
74
|
+
|
|
75
|
+
# G9Picker
|
|
76
|
+
|
|
77
|
+
`import { G9Picker } from '@g9tm/lynxcontrols/pickers';`
|
|
78
|
+
|
|
79
|
+
Single selection from a list in an outlined box (MAUI `G9Picker`): a tap opens the selection sheet (no search; a pick closes it), the box shows the item's icon or swatch and text, the trailing chevron hints at the sheet.
|
|
80
|
+
|
|
81
|
+
Props:
|
|
82
|
+
- `items`: G9SelectionItem<unknown>[]
|
|
83
|
+
- `label?`: string
|
|
84
|
+
- `value?`: string
|
|
85
|
+
- `leadingIcon?`: icon
|
|
86
|
+
- `placeholder?`: string
|
|
87
|
+
- `onValueChange?`: (key: string | null, item: T | null) => void
|
|
88
|
+
- `disabled?`: boolean = false
|
|
89
|
+
- `onItemSelected?`: (item: T) => void
|
|
90
|
+
|
|
91
|
+
Example: `<G9Picker items={items} />`
|
|
92
|
+
|
|
93
|
+
# G9TimeSpanPicker
|
|
94
|
+
|
|
95
|
+
`import { G9TimeSpanPicker } from '@g9tm/lynxcontrols/pickers';`
|
|
96
|
+
|
|
97
|
+
A duration in an outlined box (MAUI `G9TimeSpanPicker`): a tap opens the drum sheet; Done writes the value and fires `onTimeSpanSelected`, Cancel and dismissals write nothing.
|
|
98
|
+
|
|
99
|
+
Props:
|
|
100
|
+
- `label?`: string
|
|
101
|
+
- `value?`: number
|
|
102
|
+
- `leadingIcon?`: icon
|
|
103
|
+
- `placeholder?`: string
|
|
104
|
+
- `onValueChange?`: (ms: number | null) => void
|
|
105
|
+
- `disabled?`: boolean = false
|
|
106
|
+
- `mode?`: 'yearsMonths' | 'yearsMonthsDays' | 'yearsMonthsDaysHours' | 'yearsMonthsDaysHoursMinutes' | 'yearsMonthsDaysHoursMinutesSeconds' = "yearsMonthsDays"
|
|
107
|
+
- `onLeadingPress?`: () => void
|
|
108
|
+
|
|
109
|
+
Example: `<G9TimeSpanPicker label="Tree age" value={ageMs} onValueChange={setAgeMs} />`
|
|
110
|
+
|
|
111
|
+
# G9WheelColumn
|
|
112
|
+
|
|
113
|
+
`import { G9WheelColumn } from '@g9tm/lynxcontrols/pickers';`
|
|
114
|
+
|
|
115
|
+
One drum of the date/time and duration pickers (MAUI `G9DrumColumn`): a vertical `scroll-view` of fixed-height rows behind a selection band.
|
|
116
|
+
|
|
117
|
+
Props:
|
|
118
|
+
- `items`: object[]
|
|
119
|
+
- `onValueChange`: (value: V) => void
|
|
120
|
+
- `value`: string | number
|
|
121
|
+
- `label?`: string
|
|
122
|
+
- `onNearEdge?`: (edge: "end" | "start") => void
|
|
123
|
+
- `rowHeight?`: number
|
|
124
|
+
- `visibleRows?`: number
|
|
125
|
+
- `weight?`: number = 1
|
|
126
|
+
|
|
127
|
+
Example: `<G9WheelColumn items={items} onValueChange={() => {}} value={value} />`
|
|
128
|
+
|
|
129
|
+
# PickerField
|
|
130
|
+
|
|
131
|
+
`import { PickerField } from '@g9tm/lynxcontrols/pickers';`
|
|
132
|
+
|
|
133
|
+
The tap-to-open outlined box every picker uses (MAUI `G9OutlinedFieldBase` with a tap recognizer): no keyboard, the label floats while there is a value, a tap on the box opens the sheet unless disabled or read-only.
|
|
134
|
+
|
|
135
|
+
Props:
|
|
136
|
+
- `field`: object
|
|
137
|
+
- `hasValue`: boolean
|
|
138
|
+
- `onOpen`: () => void
|
|
139
|
+
- `children?`: ReactNode
|
|
140
|
+
- `trailingAffordance?`: object
|
|
141
|
+
|
|
142
|
+
Example: `<PickerField field={field} hasValue onOpen={() => {}} />`
|
|
143
|
+
|
|
144
|
+
# PickerSheetHeader
|
|
145
|
+
|
|
146
|
+
`import { PickerSheetHeader } from '@g9tm/lynxcontrols/pickers';`
|
|
147
|
+
|
|
148
|
+
The drum sheet header (MAUI `G9DateTimePickerSheet` / `G9TimeSpanPickerSheet.CreateHeader`): a Grid "Auto,*,Auto" of Padding (16, 10) — Cancel as a small Text-variant G9Button (Primary text in an Outline pill), the title
|
|
149
|
+
|
|
150
|
+
Props:
|
|
151
|
+
- `onCancel`: () => void
|
|
152
|
+
- `onDone`: () => void
|
|
153
|
+
- `title`: string
|
|
154
|
+
|
|
155
|
+
Example: `<PickerSheetHeader onCancel={() => {}} onDone={() => {}} title="Label" />`
|
|
156
|
+
|
|
157
|
+
# SelectionValueIcon
|
|
158
|
+
|
|
159
|
+
`import { SelectionValueIcon } from '@g9tm/lynxcontrols/pickers';`
|
|
160
|
+
|
|
161
|
+
The leading icon (or colour swatch) of a selected item inside the trigger (MAUI `CreateValueIcon`, 18 px).
|
|
162
|
+
|
|
163
|
+
Props:
|
|
164
|
+
- `item`: object
|
|
165
|
+
- `color?`: color
|
|
166
|
+
- `inChip?`: boolean
|
|
167
|
+
|
|
168
|
+
Example: `<SelectionValueIcon item={item} />`
|
|
169
|
+
|
|
170
|
+
# TimeSpanSheetBody
|
|
171
|
+
|
|
172
|
+
`import { TimeSpanSheetBody } from '@g9tm/lynxcontrols/pickers';`
|
|
173
|
+
|
|
174
|
+
The duration drum sheet body (MAUI `G9TimeSpanPickerSheet`, plus the hours/minutes/seconds drums).
|
|
175
|
+
|
|
176
|
+
Props:
|
|
177
|
+
- `cancel`: () => void
|
|
178
|
+
- `culture`: object
|
|
179
|
+
- `done`: (ms: number) => void
|
|
180
|
+
- `initial`: number
|
|
181
|
+
- `mode`: 'yearsMonths' | 'yearsMonthsDays' | 'yearsMonthsDaysHours' | 'yearsMonthsDaysHoursMinutes' | 'yearsMonthsDaysHoursMinutesSeconds'
|
|
182
|
+
- `secondsLabel`: string
|
|
183
|
+
- `title`: string
|
|
184
|
+
|
|
185
|
+
Example: `<TimeSpanSheetBody cancel={() => {}} culture={culture} done={() => {}} initial={1} mode="yearsMonths" secondsLabel="secondsLabel" title="Label" />`
|