@g9tm/lynxcontrols 2.3.0 → 2.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/bin/g9lynx.mjs +103 -0
- package/bin/g9lynx.test.mjs +80 -0
- package/catalog/cards/DateTimeSheetBody.md +17 -0
- package/catalog/cards/G9ActionRow.md +11 -0
- package/catalog/cards/G9ActionSheet.md +14 -0
- package/catalog/cards/G9Activity.md +11 -0
- package/catalog/cards/G9ActivityIndicator.md +14 -0
- package/catalog/cards/G9AllocationInput.md +17 -0
- package/catalog/cards/G9Anchor.md +17 -0
- package/catalog/cards/G9AnimatedCheck.md +13 -0
- package/catalog/cards/G9AppBar.md +17 -0
- package/catalog/cards/G9AppShell.md +17 -0
- package/catalog/cards/G9Art.md +13 -0
- package/catalog/cards/G9Avatar.md +16 -0
- package/catalog/cards/G9Badge.md +15 -0
- package/catalog/cards/G9Bento.md +13 -0
- package/catalog/cards/G9Button.md +17 -0
- package/catalog/cards/G9CameFromMark.md +9 -0
- package/catalog/cards/G9Card.md +17 -0
- package/catalog/cards/G9CascadePanel.md +17 -0
- package/catalog/cards/G9CheckBox.md +17 -0
- package/catalog/cards/G9Chip.md +17 -0
- package/catalog/cards/G9ChipGroup.md +17 -0
- package/catalog/cards/G9ChoiceList.md +17 -0
- package/catalog/cards/G9Columns.md +13 -0
- package/catalog/cards/G9ComboBox.md +17 -0
- package/catalog/cards/G9CommandPalette.md +15 -0
- package/catalog/cards/G9Confetti.md +15 -0
- package/catalog/cards/G9ConnectionBanner.md +15 -0
- package/catalog/cards/G9ContextMenu.md +15 -0
- package/catalog/cards/G9CornerBadge.md +15 -0
- package/catalog/cards/G9CultureDateTimeLabel.md +16 -0
- package/catalog/cards/G9DateTimePicker.md +17 -0
- package/catalog/cards/G9DayStepper.md +17 -0
- package/catalog/cards/G9DeferredContent.md +17 -0
- package/catalog/cards/G9Delta.md +17 -0
- package/catalog/cards/G9DesignNode.md +13 -0
- package/catalog/cards/G9DesignScope.md +11 -0
- package/catalog/cards/G9DragList.md +15 -0
- package/catalog/cards/G9EdgePanel.md +17 -0
- package/catalog/cards/G9Editor.md +17 -0
- package/catalog/cards/G9EmptyState.md +17 -0
- package/catalog/cards/G9ErrorBoundary.md +13 -0
- package/catalog/cards/G9Expander.md +17 -0
- package/catalog/cards/G9FloatingOrb.md +17 -0
- package/catalog/cards/G9FormField.md +15 -0
- package/catalog/cards/G9HScroll.md +16 -0
- package/catalog/cards/G9HeaderActionButton.md +17 -0
- package/catalog/cards/G9HoldButton.md +17 -0
- package/catalog/cards/G9Host.md +17 -0
- package/catalog/cards/G9Icon.md +16 -0
- package/catalog/cards/G9IconButton.md +17 -0
- package/catalog/cards/G9IconRail.md +15 -0
- package/catalog/cards/G9IconSlot.md +17 -0
- package/catalog/cards/G9Image.md +17 -0
- package/catalog/cards/G9InlineMessage.md +16 -0
- package/catalog/cards/G9KeepAlive.md +11 -0
- package/catalog/cards/G9Keycap.md +13 -0
- package/catalog/cards/G9Kpi.md +17 -0
- package/catalog/cards/G9KpiGrid.md +12 -0
- package/catalog/cards/G9ListRow.md +17 -0
- package/catalog/cards/G9LiveBadge.md +11 -0
- package/catalog/cards/G9LiveDot.md +12 -0
- package/catalog/cards/G9LoadState.md +13 -0
- package/catalog/cards/G9LoadableSheetContent.md +17 -0
- package/catalog/cards/G9LockOverlay.md +15 -0
- package/catalog/cards/G9Menu.md +17 -0
- package/catalog/cards/G9MenuList.md +12 -0
- package/catalog/cards/G9NavCard.md +17 -0
- package/catalog/cards/G9NumPad.md +13 -0
- package/catalog/cards/G9NumberEntry.md +17 -0
- package/catalog/cards/G9OutlinedField.md +17 -0
- package/catalog/cards/G9OverlayRoot.md +12 -0
- package/catalog/cards/G9Page.md +17 -0
- package/catalog/cards/G9PageLoadingOverlay.md +12 -0
- package/catalog/cards/G9Pager.md +16 -0
- package/catalog/cards/G9Photo.md +17 -0
- package/catalog/cards/G9Picker.md +17 -0
- package/catalog/cards/G9PinEntry.md +17 -0
- package/catalog/cards/G9Place.md +17 -0
- package/catalog/cards/G9PlaceScroll.md +13 -0
- package/catalog/cards/G9PlusButton.md +17 -0
- package/catalog/cards/G9Popover.md +17 -0
- package/catalog/cards/G9PopupDragHandle.md +10 -0
- package/catalog/cards/G9PopupView.md +15 -0
- package/catalog/cards/G9Pressable.md +17 -0
- package/catalog/cards/G9ProcessingSheetContent.md +13 -0
- package/catalog/cards/G9ProgressBar.md +17 -0
- package/catalog/cards/G9ProgressRing.md +17 -0
- package/catalog/cards/G9Provider.md +17 -0
- package/catalog/cards/G9PullToRefresh.md +13 -0
- package/catalog/cards/G9RadioGroup.md +17 -0
- package/catalog/cards/G9RangeSlider.md +17 -0
- package/catalog/cards/G9RatingInput.md +17 -0
- package/catalog/cards/G9RevealText.md +15 -0
- package/catalog/cards/G9SafeButton.md +17 -0
- package/catalog/cards/G9SafeIconButton.md +17 -0
- package/catalog/cards/G9SaveBar.md +16 -0
- package/catalog/cards/G9ScaleInput.md +17 -0
- package/catalog/cards/G9ScrollSpyBar.md +12 -0
- package/catalog/cards/G9ScrollerScope.md +10 -0
- package/catalog/cards/G9SearchEntry.md +17 -0
- package/catalog/cards/G9Section.md +16 -0
- package/catalog/cards/G9SectionHeader.md +14 -0
- package/catalog/cards/G9Segmented.md +17 -0
- package/catalog/cards/G9Separator.md +17 -0
- package/catalog/cards/G9SettingsGroup.md +13 -0
- package/catalog/cards/G9Sheet.md +13 -0
- package/catalog/cards/G9SheetBackdropScope.md +10 -0
- package/catalog/cards/G9SheetFooter.md +10 -0
- package/catalog/cards/G9SheetFooterBar.md +11 -0
- package/catalog/cards/G9SheetFrame.md +17 -0
- package/catalog/cards/G9SheetHeader.md +11 -0
- package/catalog/cards/G9SheetScrollIndicator.md +10 -0
- package/catalog/cards/G9SheetScrollRegion.md +11 -0
- package/catalog/cards/G9SheetSkeleton.md +13 -0
- package/catalog/cards/G9ShimmerBand.md +10 -0
- package/catalog/cards/G9ShortcutList.md +11 -0
- package/catalog/cards/G9ShortcutsSheet.md +15 -0
- package/catalog/cards/G9SideNav.md +16 -0
- package/catalog/cards/G9Skeleton.md +13 -0
- package/catalog/cards/G9SkeletonPage.md +13 -0
- package/catalog/cards/G9SkeletonRows.md +13 -0
- package/catalog/cards/G9SplitPane.md +17 -0
- package/catalog/cards/G9StatusPill.md +17 -0
- package/catalog/cards/G9StepSlider.md +16 -0
- package/catalog/cards/G9StepTracker.md +13 -0
- package/catalog/cards/G9Stepper.md +17 -0
- package/catalog/cards/G9SuccessHeader.md +14 -0
- package/catalog/cards/G9Swatch.md +13 -0
- package/catalog/cards/G9SwipeGroup.md +11 -0
- package/catalog/cards/G9SwipeView.md +17 -0
- package/catalog/cards/G9Switch.md +17 -0
- package/catalog/cards/G9SwitchGroup.md +15 -0
- package/catalog/cards/G9SwitchRow.md +17 -0
- package/catalog/cards/G9TabBar.md +17 -0
- package/catalog/cards/G9TabView.md +17 -0
- package/catalog/cards/G9Tag.md +14 -0
- package/catalog/cards/G9TagEntry.md +16 -0
- package/catalog/cards/G9TextEntry.md +17 -0
- package/catalog/cards/G9ThemePreviewCard.md +15 -0
- package/catalog/cards/G9TimeEntry.md +17 -0
- package/catalog/cards/G9TimeSpanPicker.md +17 -0
- package/catalog/cards/G9TitleWithLine.md +13 -0
- package/catalog/cards/G9TopBar.md +13 -0
- package/catalog/cards/G9UnsavedBar.md +16 -0
- package/catalog/cards/G9UpdateBar.md +15 -0
- package/catalog/cards/G9VerticalIconTextButton.md +15 -0
- package/catalog/cards/G9VirtualList.md +17 -0
- package/catalog/cards/G9Wave.md +15 -0
- package/catalog/cards/G9WheelColumn.md +17 -0
- package/catalog/cards/PickerField.md +14 -0
- package/catalog/cards/PickerSheetHeader.md +12 -0
- package/catalog/cards/PopupFrame.md +15 -0
- package/catalog/cards/PopupInputForm.md +11 -0
- package/catalog/cards/SelectionValueIcon.md +12 -0
- package/catalog/cards/TimeSpanSheetBody.md +16 -0
- package/catalog/catalog.json +47936 -0
- package/catalog/index.md +159 -0
- package/dist/.tsbuildinfo +1 -1
- package/dist/anchor/index.d.ts +1 -1
- package/dist/anchor/index.d.ts.map +1 -1
- package/dist/anchor/registry.d.ts +5 -0
- package/dist/anchor/registry.d.ts.map +1 -1
- package/dist/base/base.css +1 -0
- package/dist/base/base.css.map +1 -1
- package/dist/button/button-variants.css +4 -0
- package/dist/button/button-variants.css.map +1 -1
- package/dist/button/button.css +12 -5
- package/dist/button/button.css.map +1 -1
- package/dist/button/variant-css.d.ts.map +1 -1
- package/dist/button/variant-css.jsx +2 -1
- package/dist/cascade/cascade.css +2 -1
- package/dist/cascade/cascade.css.map +1 -1
- package/dist/commands/commands.css +12 -6
- package/dist/commands/commands.css.map +1 -1
- package/dist/design/design.d.ts +39 -0
- package/dist/design/design.d.ts.map +1 -0
- package/dist/design/design.jsx +54 -0
- package/dist/design/index.d.ts +3 -0
- package/dist/design/index.d.ts.map +1 -0
- package/dist/design/index.jsx +2 -0
- package/dist/design/probe.d.ts +62 -0
- package/dist/design/probe.d.ts.map +1 -0
- package/dist/design/probe.jsx +141 -0
- package/dist/display/data-uri.d.ts +9 -0
- package/dist/display/data-uri.d.ts.map +1 -0
- package/dist/display/data-uri.jsx +56 -0
- package/dist/display/display.css +10 -3
- package/dist/display/display.css.map +1 -1
- package/dist/display/extras.css +8 -2
- package/dist/display/extras.css.map +1 -1
- package/dist/display/figures.css +28 -7
- package/dist/display/figures.css.map +1 -1
- package/dist/display/figures.d.ts +10 -0
- package/dist/display/figures.d.ts.map +1 -1
- package/dist/display/figures.jsx +28 -5
- package/dist/display/image.d.ts +9 -2
- package/dist/display/image.d.ts.map +1 -1
- package/dist/display/image.jsx +20 -6
- package/dist/display/keycap.css +1 -0
- package/dist/display/keycap.css.map +1 -1
- package/dist/display/motion-figures.css +4 -1
- package/dist/display/motion-figures.css.map +1 -1
- package/dist/display/separator.d.ts.map +1 -1
- package/dist/display/separator.jsx +1 -1
- package/dist/display/status.css +5 -0
- package/dist/display/status.css.map +1 -1
- package/dist/display/theme-preview.css +6 -3
- package/dist/display/theme-preview.css.map +1 -1
- package/dist/edge-panel/edge-panel.css +6 -3
- package/dist/edge-panel/edge-panel.css.map +1 -1
- package/dist/effects/effects.css +4 -2
- package/dist/effects/effects.css.map +1 -1
- package/dist/expander/expander.css +2 -1
- package/dist/expander/expander.css.map +1 -1
- package/dist/fields/extra-entries.css +14 -6
- package/dist/fields/extra-entries.css.map +1 -1
- package/dist/fields/fields.css +21 -10
- package/dist/fields/fields.css.map +1 -1
- package/dist/fields/text-entry.d.ts.map +1 -1
- package/dist/fields/text-entry.jsx +3 -0
- package/dist/guide/guide.css +17 -5
- package/dist/guide/guide.css.map +1 -1
- package/dist/header/header.css +6 -2
- package/dist/header/header.css.map +1 -1
- package/dist/icon/icon.d.ts +9 -2
- package/dist/icon/icon.d.ts.map +1 -1
- package/dist/icon/icon.jsx +26 -4
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/layout/layout.css +15 -5
- package/dist/layout/layout.css.map +1 -1
- package/dist/layout/scrollers.d.ts +6 -0
- package/dist/layout/scrollers.d.ts.map +1 -1
- package/dist/layout/scrollers.jsx +5 -1
- package/dist/list/list.css +18 -8
- package/dist/list/list.css.map +1 -1
- package/dist/orb/orb.css +2 -1
- package/dist/orb/orb.css.map +1 -1
- package/dist/orb/orb.d.ts.map +1 -1
- package/dist/orb/orb.jsx +9 -4
- package/dist/pickers/day-stepper.css +2 -1
- package/dist/pickers/day-stepper.css.map +1 -1
- package/dist/pickers/pickers.css +19 -9
- package/dist/pickers/pickers.css.map +1 -1
- package/dist/plus-button/plus-button.css +2 -1
- package/dist/plus-button/plus-button.css.map +1 -1
- package/dist/popover/popover.css +9 -4
- package/dist/popover/popover.css.map +1 -1
- package/dist/popup/popup.css +11 -5
- package/dist/popup/popup.css.map +1 -1
- package/dist/popup/service.d.ts.map +1 -1
- package/dist/popup/service.jsx +5 -1
- package/dist/provider/index.d.ts +1 -1
- package/dist/provider/index.d.ts.map +1 -1
- package/dist/provider/provider.css.map +1 -1
- package/dist/provider/provider.d.ts +25 -1
- package/dist/provider/provider.d.ts.map +1 -1
- package/dist/provider/provider.jsx +48 -12
- package/dist/range-slider/range-slider.css +9 -4
- package/dist/range-slider/range-slider.css.map +1 -1
- package/dist/selection/selection.css +10 -5
- package/dist/selection/selection.css.map +1 -1
- package/dist/sheet/frame.d.ts +15 -0
- package/dist/sheet/frame.d.ts.map +1 -1
- package/dist/sheet/frame.jsx +18 -6
- package/dist/sheet/header.d.ts.map +1 -1
- package/dist/sheet/header.jsx +5 -2
- package/dist/sheet/service.d.ts +5 -0
- package/dist/sheet/service.d.ts.map +1 -1
- package/dist/sheet/service.jsx +9 -6
- package/dist/sheet/sheet.css +1 -0
- package/dist/sheet/sheet.css.map +1 -1
- package/dist/shell/shell.css +19 -8
- package/dist/shell/shell.css.map +1 -1
- package/dist/survey/survey.css +15 -7
- package/dist/survey/survey.css.map +1 -1
- package/dist/swipe/swipe.css +1 -0
- package/dist/swipe/swipe.css.map +1 -1
- package/dist/tab-bar/index.d.ts +1 -1
- package/dist/tab-bar/index.d.ts.map +1 -1
- package/dist/tab-bar/index.jsx +1 -1
- package/dist/tab-bar/model.d.ts +16 -0
- package/dist/tab-bar/model.d.ts.map +1 -1
- package/dist/tab-bar/model.jsx +19 -1
- package/dist/tab-bar/tab-bar.css +25 -1
- package/dist/tab-bar/tab-bar.css.map +1 -1
- package/dist/tab-bar/tab-bar.d.ts +6 -0
- package/dist/tab-bar/tab-bar.d.ts.map +1 -1
- package/dist/tab-bar/tab-bar.jsx +61 -11
- package/dist/tabs/tabs.css +3 -1
- package/dist/tabs/tabs.css.map +1 -1
- package/dist/toast/toast.css +9 -4
- package/dist/toast/toast.css.map +1 -1
- package/dist/toggle/choice.css +15 -6
- package/dist/toggle/choice.css.map +1 -1
- package/dist/toggle/toggle.css +12 -6
- package/dist/toggle/toggle.css.map +1 -1
- package/package.json +16 -4
- package/skills/g9-lynx-app/SKILL.md +42 -0
- package/skills/g9-lynx-app/references/adaptive-layout.md +10 -0
- package/skills/g9-lynx-app/references/anchors-guide.md +9 -0
- package/skills/g9-lynx-app/references/catalog-index.md +80 -0
- package/skills/g9-lynx-app/references/common-mistakes.md +12 -0
- package/skills/g9-lynx-app/references/components/anchor.md +30 -0
- package/skills/g9-lynx-app/references/components/barcode-qr.md +19 -0
- package/skills/g9-lynx-app/references/components/barcode.md +37 -0
- package/skills/g9-lynx-app/references/components/base.md +35 -0
- package/skills/g9-lynx-app/references/components/button.md +125 -0
- package/skills/g9-lynx-app/references/components/calendar.md +128 -0
- package/skills/g9-lynx-app/references/components/cascade.md +19 -0
- package/skills/g9-lynx-app/references/components/charts.md +193 -0
- package/skills/g9-lynx-app/references/components/chat.md +98 -0
- package/skills/g9-lynx-app/references/components/commands.md +45 -0
- package/skills/g9-lynx-app/references/components/commerce.md +69 -0
- package/skills/g9-lynx-app/references/components/datagrid.md +19 -0
- package/skills/g9-lynx-app/references/components/deferred.md +19 -0
- package/skills/g9-lynx-app/references/components/design.md +27 -0
- package/skills/g9-lynx-app/references/components/display-1.md +193 -0
- package/skills/g9-lynx-app/references/components/display-2.md +196 -0
- package/skills/g9-lynx-app/references/components/display-3.md +122 -0
- package/skills/g9-lynx-app/references/components/edge-panel.md +19 -0
- package/skills/g9-lynx-app/references/components/effects.md +46 -0
- package/skills/g9-lynx-app/references/components/expander.md +19 -0
- package/skills/g9-lynx-app/references/components/fields.md +174 -0
- package/skills/g9-lynx-app/references/components/header.md +19 -0
- package/skills/g9-lynx-app/references/components/host.md +32 -0
- package/skills/g9-lynx-app/references/components/icon.md +64 -0
- package/skills/g9-lynx-app/references/components/intro-carousel.md +19 -0
- package/skills/g9-lynx-app/references/components/layout-1.md +188 -0
- package/skills/g9-lynx-app/references/components/layout-2.md +18 -0
- package/skills/g9-lynx-app/references/components/list.md +116 -0
- package/skills/g9-lynx-app/references/components/map.md +19 -0
- package/skills/g9-lynx-app/references/components/media.md +115 -0
- package/skills/g9-lynx-app/references/components/orb.md +37 -0
- package/skills/g9-lynx-app/references/components/pickers.md +185 -0
- package/skills/g9-lynx-app/references/components/pilot.md +40 -0
- package/skills/g9-lynx-app/references/components/plus-button.md +19 -0
- package/skills/g9-lynx-app/references/components/popover.md +94 -0
- package/skills/g9-lynx-app/references/components/popup.md +56 -0
- package/skills/g9-lynx-app/references/components/provider.md +43 -0
- package/skills/g9-lynx-app/references/components/range-slider.md +36 -0
- package/skills/g9-lynx-app/references/components/route.md +19 -0
- package/skills/g9-lynx-app/references/components/sheet.md +134 -0
- package/skills/g9-lynx-app/references/components/shell.md +98 -0
- package/skills/g9-lynx-app/references/components/survey.md +55 -0
- package/skills/g9-lynx-app/references/components/swipe.md +31 -0
- package/skills/g9-lynx-app/references/components/tab-bar.md +19 -0
- package/skills/g9-lynx-app/references/components/tabs.md +19 -0
- package/skills/g9-lynx-app/references/components/toggle.md +161 -0
- package/skills/g9-lynx-app/references/lists.md +13 -0
- package/skills/g9-lynx-app/references/localization-rtl.md +13 -0
- package/skills/g9-lynx-app/references/navigation-route.md +21 -0
- package/skills/g9-lynx-app/references/overlays.md +27 -0
- package/skills/g9-lynx-app/references/pilot.md +10 -0
- package/skills/g9-lynx-app/references/platform-rules.md +42 -0
- package/skills/g9-lynx-app/references/provider-and-host.md +37 -0
- package/skills/g9-lynx-app/references/theming.md +18 -0
|
@@ -0,0 +1,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" />`
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols-pilot` (generated)
|
|
2
|
+
|
|
3
|
+
# G9PilotHost
|
|
4
|
+
|
|
5
|
+
`import { G9PilotHost } from '@g9tm/lynxcontrols-pilot';`
|
|
6
|
+
|
|
7
|
+
Renders its children: this build carries no G9AppPilot.
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `children?`: ReactNode
|
|
11
|
+
- `askConsent?`: (request: { readonly kid: string; readonly reading: boolean; readonly reason?: string; }) => void
|
|
12
|
+
- `commands?`: (api: G9PilotApi) => void
|
|
13
|
+
- `onReport?`: (report: G9PilotReport) => void
|
|
14
|
+
- `badgeLabel?`: string
|
|
15
|
+
- `bottomBarPrefix?`: string
|
|
16
|
+
- `notes?`: string[]
|
|
17
|
+
|
|
18
|
+
Example: `<G9PilotHost />`
|
|
19
|
+
|
|
20
|
+
# G9PilotMask
|
|
21
|
+
|
|
22
|
+
`import { G9PilotMask } from '@g9tm/lynxcontrols-pilot';`
|
|
23
|
+
|
|
24
|
+
The masked box, as a plain box: this build takes no screenshots.
|
|
25
|
+
|
|
26
|
+
Props:
|
|
27
|
+
- `children?`: ReactNode
|
|
28
|
+
|
|
29
|
+
Example: `<G9PilotMask />`
|
|
30
|
+
|
|
31
|
+
# G9PilotPanel
|
|
32
|
+
|
|
33
|
+
`import { G9PilotPanel } from '@g9tm/lynxcontrols-pilot';`
|
|
34
|
+
|
|
35
|
+
Nothing: this build carries no watch to show.
|
|
36
|
+
|
|
37
|
+
Props:
|
|
38
|
+
- `findings?`: number
|
|
39
|
+
|
|
40
|
+
Example: `<G9PilotPanel />`
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols/plus-button` (generated)
|
|
2
|
+
|
|
3
|
+
# G9PlusButton
|
|
4
|
+
|
|
5
|
+
`import { G9PlusButton } from '@g9tm/lynxcontrols/plus-button';`
|
|
6
|
+
|
|
7
|
+
A round add button that unfolds a column of labelled actions (MAUI `G9PlusButton`): the button shrinks and its plus turns into a ×, then each item slides up, grows its label pill and fades its label in, staggered; collap
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `items`: object[]
|
|
11
|
+
- `onExpandedChange?`: (expanded: boolean) => void
|
|
12
|
+
- `textBorderTargetWidth?`: number
|
|
13
|
+
- `expanded?`: boolean
|
|
14
|
+
- `controller?`: object
|
|
15
|
+
- `defaultExpanded?`: boolean
|
|
16
|
+
- `itemsStartDelayMs?`: number
|
|
17
|
+
- `itemStaggerMs?`: number
|
|
18
|
+
|
|
19
|
+
Example: `<G9PlusButton items={items} />`
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols/popover` (generated)
|
|
2
|
+
|
|
3
|
+
# G9ActionSheet
|
|
4
|
+
|
|
5
|
+
`import { G9ActionSheet } from '@g9tm/lynxcontrols/popover';`
|
|
6
|
+
|
|
7
|
+
A light bottom panel for a short list of actions (the phone form of a menu).
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `onClose`: () => void
|
|
11
|
+
- `open`: boolean
|
|
12
|
+
- `title?`: string
|
|
13
|
+
- `children?`: ReactNode
|
|
14
|
+
- `cancelText?`: string
|
|
15
|
+
|
|
16
|
+
Example: `<G9ActionSheet onClose={() => {}} open />`
|
|
17
|
+
|
|
18
|
+
# G9ContextMenu
|
|
19
|
+
|
|
20
|
+
`import { G9ContextMenu } from '@g9tm/lynxcontrols/popover';`
|
|
21
|
+
|
|
22
|
+
A long-press menu on its child (G9Hub ContextMenu, a message, a row): a light haptic, then the menu by the child.
|
|
23
|
+
|
|
24
|
+
Props:
|
|
25
|
+
- `items`: object[]
|
|
26
|
+
- `onSelect`: (key: string) => void
|
|
27
|
+
- `title?`: string
|
|
28
|
+
- `children?`: ReactNode
|
|
29
|
+
- `disabled?`: boolean
|
|
30
|
+
- `onOpen?`: () => void
|
|
31
|
+
|
|
32
|
+
Example: `<G9ContextMenu items={items} onSelect={() => {}} />`
|
|
33
|
+
|
|
34
|
+
# G9Menu
|
|
35
|
+
|
|
36
|
+
`import { G9Menu } from '@g9tm/lynxcontrols/popover';`
|
|
37
|
+
|
|
38
|
+
A menu (G9Hub Menu): a popover by the anchor on wide windows, an action sheet from the bottom on phones.
|
|
39
|
+
|
|
40
|
+
Props:
|
|
41
|
+
- `items`: object[]
|
|
42
|
+
- `onClose`: () => void
|
|
43
|
+
- `onSelect`: (key: string) => void
|
|
44
|
+
- `open`: boolean
|
|
45
|
+
- `title?`: string
|
|
46
|
+
- `placement?`: 'end' | 'start' | 'top' | 'bottom' | 'bottom-start' | 'bottom-end' | 'top-start' | 'top-end' = "bottom-start"
|
|
47
|
+
- `cancelText?`: string
|
|
48
|
+
- `matchWidth?`: boolean
|
|
49
|
+
|
|
50
|
+
Example: `<G9Menu items={items} onClose={() => {}} onSelect={() => {}} open />`
|
|
51
|
+
|
|
52
|
+
# G9MenuList
|
|
53
|
+
|
|
54
|
+
`import { G9MenuList } from '@g9tm/lynxcontrols/popover';`
|
|
55
|
+
|
|
56
|
+
The entries of a menu (G9Hub MenuList): icon, label, shortcut, check; destructive entries in red.
|
|
57
|
+
|
|
58
|
+
Props:
|
|
59
|
+
- `items`: object[]
|
|
60
|
+
- `onSelect`: (key: string) => void
|
|
61
|
+
- `density?`: 'sheet' | 'popover'
|
|
62
|
+
|
|
63
|
+
Example: `<G9MenuList items={items} onSelect={() => {}} />`
|
|
64
|
+
|
|
65
|
+
# G9OverlayRoot
|
|
66
|
+
|
|
67
|
+
`import { G9OverlayRoot } from '@g9tm/lynxcontrols/popover';`
|
|
68
|
+
|
|
69
|
+
An overlay's root view that is also an anchor when it has an id: rendered INSIDE the overlay's layer element, so the anchor reports the popups layer (automation finds a menu, an action sheet or the palette by its id and
|
|
70
|
+
|
|
71
|
+
Props:
|
|
72
|
+
- `attrs`: object
|
|
73
|
+
- `label?`: string
|
|
74
|
+
- `children?`: ReactNode
|
|
75
|
+
|
|
76
|
+
Example: `<G9OverlayRoot attrs={attrs} />`
|
|
77
|
+
|
|
78
|
+
# G9Popover
|
|
79
|
+
|
|
80
|
+
`import { G9Popover } from '@g9tm/lynxcontrols/popover';`
|
|
81
|
+
|
|
82
|
+
A panel anchored to a control (G9Hub Popover): drawn in the host's popup layer above everything, measured first and shown only once placed (no jump), flipped and clamped into the window, closed by a tap outside or Back.
|
|
83
|
+
|
|
84
|
+
Props:
|
|
85
|
+
- `onClose`: () => void
|
|
86
|
+
- `open`: boolean
|
|
87
|
+
- `children?`: ReactNode
|
|
88
|
+
- `placement?`: 'end' | 'start' | 'top' | 'bottom' | 'bottom-start' | 'bottom-end' | 'top-start' | 'top-end' = "bottom-start"
|
|
89
|
+
- `matchWidth?`: boolean
|
|
90
|
+
- `anchorId?`: string
|
|
91
|
+
- `anchorNode?`: object
|
|
92
|
+
- `anchorRect?`: object
|
|
93
|
+
|
|
94
|
+
Example: `<G9Popover onClose={() => {}} open />`
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols/popup` (generated)
|
|
2
|
+
|
|
3
|
+
# G9PopupDragHandle
|
|
4
|
+
|
|
5
|
+
`import { G9PopupDragHandle } from '@g9tm/lynxcontrols/popup';`
|
|
6
|
+
|
|
7
|
+
The grip of a draggable popup (MAUI `DragHandle`): put the header inside it so taps in the body keep working.
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `children?`: ReactNode
|
|
11
|
+
|
|
12
|
+
Example: `<G9PopupDragHandle />`
|
|
13
|
+
|
|
14
|
+
# G9PopupView
|
|
15
|
+
|
|
16
|
+
`import { G9PopupView } from '@g9tm/lynxcontrols/popup';`
|
|
17
|
+
|
|
18
|
+
A popup card you place yourself (MAUI `G9PopupView` hosted in your own layout): the same scrim, card, motions, placement and drag as the queued popups, but outside the queue: for floating tools (non-modal `overlayMode: '
|
|
19
|
+
|
|
20
|
+
Props:
|
|
21
|
+
- `open`: boolean
|
|
22
|
+
- `children?`: ReactNode
|
|
23
|
+
- `onBackgroundTap?`: () => void
|
|
24
|
+
- `onClosed?`: () => void
|
|
25
|
+
- `onOpenChange?`: (open: boolean) => void
|
|
26
|
+
- `options?`: object
|
|
27
|
+
|
|
28
|
+
Example: `<G9PopupView open />`
|
|
29
|
+
|
|
30
|
+
# PopupFrame
|
|
31
|
+
|
|
32
|
+
`import { PopupFrame } from '@g9tm/lynxcontrols/popup';`
|
|
33
|
+
|
|
34
|
+
Scrim + card (MAUI `G9PopupView` visuals): the scrim fades on its own (also when the card has no motion); the card runs one compound transition (opacity with transform) between its pose and identity; no shadow, the strok
|
|
35
|
+
|
|
36
|
+
Props:
|
|
37
|
+
- `hostWidth`: number
|
|
38
|
+
- `options`: object
|
|
39
|
+
- `phase`: 'open' | 'enter' | 'leave'
|
|
40
|
+
- `children?`: ReactNode
|
|
41
|
+
- `onBackgroundTap?`: () => void
|
|
42
|
+
- `testId?`: string
|
|
43
|
+
|
|
44
|
+
Example: `<PopupFrame hostWidth={1} options={options} phase="open" />`
|
|
45
|
+
|
|
46
|
+
# PopupInputForm
|
|
47
|
+
|
|
48
|
+
`import { PopupInputForm } from '@g9tm/lynxcontrols/popup';`
|
|
49
|
+
|
|
50
|
+
The input popup's form (MAUI `ShowInputG9PopupAsync` form view): a `G9TextEntry` per text field (keyboard and direction from the field), a `G9Editor` for multiline/text-area, a `G9CheckBox` per check-box option and radio
|
|
51
|
+
|
|
52
|
+
Props:
|
|
53
|
+
- `focusFirst`: boolean
|
|
54
|
+
- `store`: object
|
|
55
|
+
|
|
56
|
+
Example: `<PopupInputForm focusFirst store={store} />`
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols/provider` (generated)
|
|
2
|
+
|
|
3
|
+
# G9Activity
|
|
4
|
+
|
|
5
|
+
`import { G9Activity } from '@g9tm/lynxcontrols/provider';`
|
|
6
|
+
|
|
7
|
+
Marks a kept-mounted region as shown or hidden (nested regions are hidden when any ancestor is).
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `mode`: 'visible' | 'hidden'
|
|
11
|
+
- `children?`: ReactNode
|
|
12
|
+
|
|
13
|
+
Example: `<G9Activity mode="visible" />`
|
|
14
|
+
|
|
15
|
+
# G9KeepAlive
|
|
16
|
+
|
|
17
|
+
`import { G9KeepAlive } from '@g9tm/lynxcontrols/provider';`
|
|
18
|
+
|
|
19
|
+
A region kept mounted while hidden (the pages of a shell, the screens of a stack): state, scroll position and loaded data survive, switching back costs a style change.
|
|
20
|
+
|
|
21
|
+
Props:
|
|
22
|
+
- `active`: boolean
|
|
23
|
+
- `children?`: ReactNode
|
|
24
|
+
|
|
25
|
+
Example: `<G9KeepAlive active />`
|
|
26
|
+
|
|
27
|
+
# G9Provider
|
|
28
|
+
|
|
29
|
+
`import { G9Provider } from '@g9tm/lynxcontrols/provider';`
|
|
30
|
+
|
|
31
|
+
The root every G9 component lives in (plan/specs/01 §5, MAUI `G9Theme`/`G9Culture`/`G9Strings` statics, `G9ServiceProvider`, `G9ScreenHelper`, `G9KeyboardHelper`): culture and strings, the theme as CSS variables on one r
|
|
32
|
+
|
|
33
|
+
Props:
|
|
34
|
+
- `services`: object
|
|
35
|
+
- `children?`: ReactNode
|
|
36
|
+
- `shape?`: object
|
|
37
|
+
- `breakpoints?`: object
|
|
38
|
+
- `culture?`: string | object | object = "en"
|
|
39
|
+
- `diagnostics?`: object
|
|
40
|
+
- `persistTheme?`: boolean = true
|
|
41
|
+
- `preview?`: object
|
|
42
|
+
|
|
43
|
+
Example: `<G9Provider services={services} />`
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols/range-slider` (generated)
|
|
2
|
+
|
|
3
|
+
# G9RangeSlider
|
|
4
|
+
|
|
5
|
+
`import { G9RangeSlider } from '@g9tm/lynxcontrols/range-slider';`
|
|
6
|
+
|
|
7
|
+
One- or two-thumb slider (MAUI `G9RangeSlider`) on lynx-ui `SliderRoot`: lynx-ui owns the gesture (main-thread drag, thumbs that meet but never cross); G9 maps minimum/maximum/step onto its normalized value, snaps with t
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `value?`: number
|
|
11
|
+
- `onValueChange?`: (value: number) => void
|
|
12
|
+
- `disabled?`: boolean
|
|
13
|
+
- `mode?`: 'single' | 'range' = "range"
|
|
14
|
+
- `onRangeChange?`: (start: number, end: number) => void
|
|
15
|
+
- `onValueChanged?`: (value: number) => void
|
|
16
|
+
- `defaultValue?`: number
|
|
17
|
+
- `bands?`: object[]
|
|
18
|
+
|
|
19
|
+
Example: `<G9RangeSlider />`
|
|
20
|
+
|
|
21
|
+
# G9StepSlider
|
|
22
|
+
|
|
23
|
+
`import { G9StepSlider } from '@g9tm/lynxcontrols/range-slider';`
|
|
24
|
+
|
|
25
|
+
Discrete steps as dots in a row (G9RangeSlider for a continuous value).
|
|
26
|
+
|
|
27
|
+
Props:
|
|
28
|
+
- `max`: number
|
|
29
|
+
- `value?`: number
|
|
30
|
+
- `onValueChange?`: (value: number) => void
|
|
31
|
+
- `disabled?`: boolean = false
|
|
32
|
+
- `defaultValue?`: number
|
|
33
|
+
- `labels?`: string[]
|
|
34
|
+
- `accessibilityLabel?`: string
|
|
35
|
+
|
|
36
|
+
Example: `<G9StepSlider max={1} />`
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols/route` (generated)
|
|
2
|
+
|
|
3
|
+
# G9Place
|
|
4
|
+
|
|
5
|
+
`import { G9Place } from '@g9tm/lynxcontrols/route';`
|
|
6
|
+
|
|
7
|
+
Declares a place around its children (renders no element).
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `layer`: 'root' | 'page' | 'mode' | 'inner' | 'sheet' | 'popup'
|
|
11
|
+
- `segment`: string | object | () => void
|
|
12
|
+
- `title?`: () => void
|
|
13
|
+
- `children?`: ReactNode
|
|
14
|
+
- `applyView?`: (view: Readonly<Record<string, string>>) => void
|
|
15
|
+
- `canLeave?`: () => void
|
|
16
|
+
- `close?`: () => void
|
|
17
|
+
- `describeChanges?`: () => void
|
|
18
|
+
|
|
19
|
+
Example: `<G9Place layer="root" segment={segment} />`
|