@g9tm/lynxcontrols 2.5.6 → 2.5.8
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/catalog/cards/G9AppBar.md +1 -1
- package/catalog/cards/G9AppearancePage.md +17 -0
- package/catalog/cards/G9Badge.md +1 -1
- package/catalog/cards/G9Button.md +2 -2
- package/catalog/cards/G9Card.md +1 -1
- package/catalog/cards/G9CarryContexts.md +10 -0
- package/catalog/cards/G9CheckBox.md +1 -1
- package/catalog/cards/G9Chip.md +1 -1
- package/catalog/cards/G9ChipStrip.md +16 -0
- package/catalog/cards/G9CodeBlock.md +17 -0
- package/catalog/cards/G9CommandPalette.md +3 -1
- package/catalog/cards/G9ConnectionBanner.md +1 -1
- package/catalog/cards/G9ContrastPanel.md +15 -0
- package/catalog/cards/G9DashboardCustomizeSheet.md +17 -0
- package/catalog/cards/G9DashboardGrid.md +17 -0
- package/catalog/cards/G9DragList.md +4 -2
- package/catalog/cards/G9Editor.md +1 -1
- package/catalog/cards/G9ErrorBoundary.md +3 -2
- package/catalog/cards/G9FormField.md +2 -2
- package/catalog/cards/G9ListRow.md +1 -1
- package/catalog/cards/G9Menu.md +1 -1
- package/catalog/cards/G9MenuList.md +2 -0
- package/catalog/cards/G9NotificationCenter.md +17 -0
- package/catalog/cards/G9NotificationCenterPanel.md +17 -0
- package/catalog/cards/G9PathNavigator.md +13 -0
- package/catalog/cards/G9PersonalThemeSheet.md +17 -0
- package/catalog/cards/G9Popover.md +1 -1
- package/catalog/cards/G9Provider.md +1 -1
- package/catalog/cards/G9RangeSlider.md +2 -2
- package/catalog/cards/G9ReaderSheet.md +17 -0
- package/catalog/cards/G9ReaderView.md +17 -0
- package/catalog/cards/G9SafeButton.md +2 -2
- package/catalog/cards/G9SearchEntry.md +1 -1
- package/catalog/cards/G9SecretValue.md +17 -0
- package/catalog/cards/G9ShortcutList.md +4 -0
- package/catalog/cards/G9ShortcutsSheet.md +3 -1
- package/catalog/cards/G9StatusPill.md +1 -1
- package/catalog/cards/G9Stepper.md +1 -1
- package/catalog/cards/G9SwitchRow.md +1 -1
- package/catalog/cards/G9Tag.md +1 -1
- package/catalog/cards/G9TextEntry.md +1 -1
- package/catalog/cards/G9UpdateBar.md +2 -1
- package/catalog/cards/G9VirtualList.md +1 -1
- package/catalog/cards/G9WallpaperSwatch.md +16 -0
- package/catalog/cards/G9WidgetSkeleton.md +9 -0
- package/catalog/cards/G9WidgetSlot.md +13 -0
- package/catalog/cards/PopupFrame.md +2 -2
- package/catalog/catalog.json +9460 -2155
- package/catalog/index.md +20 -3
- package/dist/.tsbuildinfo +1 -1
- package/dist/appearance/appearance.css +264 -0
- package/dist/appearance/appearance.css.map +1 -0
- package/dist/appearance/appearance.d.ts +148 -0
- package/dist/appearance/appearance.d.ts.map +1 -0
- package/dist/appearance/appearance.jsx +604 -0
- package/dist/appearance/index.d.ts +2 -0
- package/dist/appearance/index.d.ts.map +1 -0
- package/dist/appearance/index.jsx +1 -0
- package/dist/base/control.d.ts +15 -0
- package/dist/base/control.d.ts.map +1 -1
- package/dist/base/control.jsx +13 -1
- package/dist/base/index.d.ts +1 -1
- package/dist/base/index.d.ts.map +1 -1
- package/dist/base/index.jsx +1 -1
- package/dist/base/selection-item.d.ts +5 -0
- package/dist/base/selection-item.d.ts.map +1 -1
- package/dist/button/button.css +4 -0
- package/dist/button/button.css.map +1 -1
- package/dist/cascade/cascade.css +2 -0
- package/dist/cascade/cascade.css.map +1 -1
- package/dist/commands/commands.css +46 -0
- package/dist/commands/commands.css.map +1 -1
- package/dist/commands/index.d.ts +2 -2
- package/dist/commands/index.d.ts.map +1 -1
- package/dist/commands/index.jsx +2 -2
- package/dist/commands/keys.d.ts +15 -1
- package/dist/commands/keys.d.ts.map +1 -1
- package/dist/commands/keys.jsx +20 -1
- package/dist/commands/palette.d.ts +73 -7
- package/dist/commands/palette.d.ts.map +1 -1
- package/dist/commands/palette.jsx +174 -20
- package/dist/dashboard/dashboard.css +101 -0
- package/dist/dashboard/dashboard.css.map +1 -0
- package/dist/dashboard/dashboard.d.ts +73 -0
- package/dist/dashboard/dashboard.d.ts.map +1 -0
- package/dist/dashboard/dashboard.jsx +297 -0
- package/dist/dashboard/index.d.ts +3 -0
- package/dist/dashboard/index.d.ts.map +1 -0
- package/dist/dashboard/index.jsx +2 -0
- package/dist/dashboard/model.d.ts +53 -0
- package/dist/dashboard/model.d.ts.map +1 -0
- package/dist/dashboard/model.jsx +76 -0
- package/dist/display/code.css +109 -0
- package/dist/display/code.css.map +1 -0
- package/dist/display/code.d.ts +43 -0
- package/dist/display/code.d.ts.map +1 -0
- package/dist/display/code.jsx +101 -0
- package/dist/display/extras.d.ts +7 -2
- package/dist/display/extras.d.ts.map +1 -1
- package/dist/display/extras.jsx +13 -4
- package/dist/display/figures.d.ts.map +1 -1
- package/dist/display/figures.jsx +10 -2
- package/dist/display/index.d.ts +1 -0
- package/dist/display/index.d.ts.map +1 -1
- package/dist/display/index.jsx +1 -0
- package/dist/display/motion-figures.css +2 -0
- package/dist/display/motion-figures.css.map +1 -1
- package/dist/display/motion-figures.d.ts.map +1 -1
- package/dist/display/motion-figures.jsx +14 -7
- package/dist/display/status.d.ts +1 -1
- package/dist/display/status.d.ts.map +1 -1
- package/dist/display/status.jsx +15 -3
- package/dist/display/theme-preview.css +4 -0
- package/dist/display/theme-preview.css.map +1 -1
- package/dist/effects/effects.d.ts.map +1 -1
- package/dist/effects/effects.jsx +8 -1
- package/dist/fields/extra-entries.css +1 -0
- package/dist/fields/extra-entries.css.map +1 -1
- package/dist/fields/extra-entries.d.ts +4 -1
- package/dist/fields/extra-entries.d.ts.map +1 -1
- package/dist/fields/extra-entries.jsx +54 -19
- package/dist/fields/fields.css +21 -0
- package/dist/fields/fields.css.map +1 -1
- package/dist/fields/outlined-field.d.ts +9 -0
- package/dist/fields/outlined-field.d.ts.map +1 -1
- package/dist/fields/outlined-field.jsx +6 -1
- package/dist/fields/pin-entry.d.ts.map +1 -1
- package/dist/fields/pin-entry.jsx +36 -3
- package/dist/fields/text-entry.d.ts +4 -0
- package/dist/fields/text-entry.d.ts.map +1 -1
- package/dist/fields/text-entry.jsx +32 -25
- package/dist/fields/use-text-input.d.ts +3 -2
- package/dist/fields/use-text-input.d.ts.map +1 -1
- package/dist/fields/use-text-input.jsx +3 -0
- package/dist/header/app-bar.d.ts +6 -0
- package/dist/header/app-bar.d.ts.map +1 -1
- package/dist/header/app-bar.jsx +22 -8
- package/dist/header/header.css +14 -0
- package/dist/header/header.css.map +1 -1
- package/dist/host/bottom-overlays.d.ts +5 -0
- package/dist/host/bottom-overlays.d.ts.map +1 -1
- package/dist/host/bottom-overlays.jsx +17 -1
- package/dist/host/carry-contexts.d.ts +28 -0
- package/dist/host/carry-contexts.d.ts.map +1 -0
- package/dist/host/carry-contexts.jsx +76 -0
- package/dist/host/host.d.ts.map +1 -1
- package/dist/host/host.jsx +5 -1
- package/dist/host/index.d.ts +2 -0
- package/dist/host/index.d.ts.map +1 -1
- package/dist/host/index.jsx +2 -0
- package/dist/icon/icon.d.ts.map +1 -1
- package/dist/icon/icon.jsx +13 -9
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/layout/containers.d.ts.map +1 -1
- package/dist/layout/containers.jsx +2 -1
- package/dist/layout/layout.css +7 -0
- package/dist/layout/layout.css.map +1 -1
- package/dist/list/gestures.d.ts +39 -6
- package/dist/list/gestures.d.ts.map +1 -1
- package/dist/list/gestures.jsx +284 -89
- package/dist/list/index.d.ts +3 -2
- package/dist/list/index.d.ts.map +1 -1
- package/dist/list/index.jsx +2 -1
- package/dist/list/keyboard.d.ts +50 -0
- package/dist/list/keyboard.d.ts.map +1 -0
- package/dist/list/keyboard.jsx +117 -0
- package/dist/list/list.css +50 -5
- package/dist/list/list.css.map +1 -1
- package/dist/list/rows.d.ts +13 -1
- package/dist/list/rows.d.ts.map +1 -1
- package/dist/list/rows.jsx +42 -23
- package/dist/list/virtual-list.d.ts +27 -1
- package/dist/list/virtual-list.d.ts.map +1 -1
- package/dist/list/virtual-list.jsx +49 -4
- package/dist/notifications/index.d.ts +3 -0
- package/dist/notifications/index.d.ts.map +1 -0
- package/dist/notifications/index.jsx +2 -0
- package/dist/notifications/model.d.ts +47 -0
- package/dist/notifications/model.d.ts.map +1 -0
- package/dist/notifications/model.jsx +51 -0
- package/dist/notifications/notification-center.d.ts +98 -0
- package/dist/notifications/notification-center.d.ts.map +1 -0
- package/dist/notifications/notification-center.jsx +424 -0
- package/dist/notifications/notifications.css +266 -0
- package/dist/notifications/notifications.css.map +1 -0
- package/dist/orb/orb.css +2 -0
- package/dist/orb/orb.css.map +1 -1
- package/dist/pickers/pickers.css +15 -0
- package/dist/pickers/pickers.css.map +1 -1
- package/dist/plus-button/plus-button.css +2 -0
- package/dist/plus-button/plus-button.css.map +1 -1
- package/dist/plus-button/plus-button.d.ts.map +1 -1
- package/dist/plus-button/plus-button.jsx +2 -1
- package/dist/popover/popover.css +23 -1
- package/dist/popover/popover.css.map +1 -1
- package/dist/popover/popover.d.ts +14 -0
- package/dist/popover/popover.d.ts.map +1 -1
- package/dist/popover/popover.jsx +73 -12
- package/dist/popover/position.d.ts +6 -2
- package/dist/popover/position.d.ts.map +1 -1
- package/dist/popover/position.jsx +15 -4
- package/dist/popup/popup.css +3 -0
- package/dist/popup/popup.css.map +1 -1
- package/dist/provider/direction-scope.d.ts +8 -0
- package/dist/provider/direction-scope.d.ts.map +1 -1
- package/dist/provider/direction-scope.jsx +13 -2
- package/dist/provider/index.d.ts +1 -1
- package/dist/provider/index.d.ts.map +1 -1
- package/dist/provider/provider.css +7 -0
- package/dist/provider/provider.css.map +1 -1
- package/dist/provider/provider.d.ts +6 -1
- package/dist/provider/provider.d.ts.map +1 -1
- package/dist/provider/provider.jsx +22 -2
- package/dist/provider/settings.d.ts +14 -0
- package/dist/provider/settings.d.ts.map +1 -1
- package/dist/provider/settings.jsx +4 -1
- package/dist/range-slider/index.d.ts +1 -1
- package/dist/range-slider/index.d.ts.map +1 -1
- package/dist/range-slider/range-slider.css +69 -0
- package/dist/range-slider/range-slider.css.map +1 -1
- package/dist/range-slider/range-slider.d.ts +22 -0
- package/dist/range-slider/range-slider.d.ts.map +1 -1
- package/dist/range-slider/range-slider.jsx +34 -5
- package/dist/reader/index.d.ts +2 -0
- package/dist/reader/index.d.ts.map +1 -0
- package/dist/reader/index.jsx +1 -0
- package/dist/reader/reader.css +74 -0
- package/dist/reader/reader.css.map +1 -0
- package/dist/reader/reader.d.ts +76 -0
- package/dist/reader/reader.d.ts.map +1 -0
- package/dist/reader/reader.jsx +149 -0
- package/dist/route/index.d.ts +2 -0
- package/dist/route/index.d.ts.map +1 -1
- package/dist/route/index.jsx +2 -0
- package/dist/route/path-navigator.css +42 -0
- package/dist/route/path-navigator.css.map +1 -0
- package/dist/route/path-navigator.d.ts +25 -0
- package/dist/route/path-navigator.d.ts.map +1 -0
- package/dist/route/path-navigator.jsx +98 -0
- package/dist/route/path-router.d.ts +162 -0
- package/dist/route/path-router.d.ts.map +1 -0
- package/dist/route/path-router.jsx +327 -0
- package/dist/selection/selection-sheet.d.ts.map +1 -1
- package/dist/selection/selection-sheet.jsx +23 -10
- package/dist/selection/selection.css +18 -1
- package/dist/selection/selection.css.map +1 -1
- package/dist/sheet/frame.d.ts.map +1 -1
- package/dist/sheet/frame.jsx +9 -8
- package/dist/sheet/options.d.ts +6 -1
- package/dist/sheet/options.d.ts.map +1 -1
- package/dist/sheet/options.jsx +2 -1
- package/dist/sheet/panel-frame.d.ts.map +1 -1
- package/dist/sheet/panel-frame.jsx +5 -4
- package/dist/sheet/sizing.d.ts +3 -3
- package/dist/sheet/sizing.d.ts.map +1 -1
- package/dist/sheet/sizing.jsx +1 -0
- package/dist/shell/shell.css +18 -1
- package/dist/shell/shell.css.map +1 -1
- package/dist/shell/shell.d.ts +10 -1
- package/dist/shell/shell.d.ts.map +1 -1
- package/dist/shell/shell.jsx +13 -9
- package/dist/survey/survey.css +15 -0
- package/dist/survey/survey.css.map +1 -1
- package/dist/survey/survey.d.ts +6 -0
- package/dist/survey/survey.d.ts.map +1 -1
- package/dist/survey/survey.jsx +24 -6
- package/dist/swipe/swipe.css +2 -0
- package/dist/swipe/swipe.css.map +1 -1
- package/dist/tab-bar/flat.d.ts.map +1 -1
- package/dist/tab-bar/flat.jsx +53 -38
- package/dist/tab-bar/tab-bar.css +2 -0
- 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 +28 -6
- package/dist/tabs/tab-view.jsx +10 -3
- package/dist/tabs/tabs.css +5 -0
- package/dist/tabs/tabs.css.map +1 -1
- package/dist/toast/index.d.ts +1 -1
- package/dist/toast/index.d.ts.map +1 -1
- package/dist/toast/service.d.ts.map +1 -1
- package/dist/toast/service.jsx +18 -5
- package/dist/toast/store.d.ts +22 -0
- package/dist/toast/store.d.ts.map +1 -1
- package/dist/toast/store.jsx +35 -3
- package/dist/toast/toast.css +22 -0
- package/dist/toast/toast.css.map +1 -1
- package/dist/toggle/checkbox.d.ts +5 -0
- package/dist/toggle/checkbox.d.ts.map +1 -1
- package/dist/toggle/checkbox.jsx +7 -2
- package/dist/toggle/choice.css +35 -0
- package/dist/toggle/choice.css.map +1 -1
- package/dist/toggle/choice.d.ts +45 -0
- package/dist/toggle/choice.d.ts.map +1 -1
- package/dist/toggle/choice.jsx +97 -23
- package/dist/toggle/index.d.ts +1 -1
- package/dist/toggle/index.d.ts.map +1 -1
- package/dist/toggle/index.jsx +1 -1
- package/package.json +22 -2
- package/skills/g9-lynx-app/references/catalog-index.md +24 -8
- package/skills/g9-lynx-app/references/components/appearance.md +70 -0
- package/skills/g9-lynx-app/references/components/barcode.md +1 -1
- package/skills/g9-lynx-app/references/components/button.md +4 -4
- package/skills/g9-lynx-app/references/components/calendar-1.md +205 -0
- package/skills/g9-lynx-app/references/components/calendar-2.md +36 -0
- package/skills/g9-lynx-app/references/components/canvas.md +33 -0
- package/skills/g9-lynx-app/references/components/chat-1.md +199 -0
- package/skills/g9-lynx-app/references/components/chat-2.md +119 -0
- package/skills/g9-lynx-app/references/components/commands.md +10 -2
- package/skills/g9-lynx-app/references/components/commerce.md +1 -1
- package/skills/g9-lynx-app/references/components/dashboard.md +61 -0
- package/skills/g9-lynx-app/references/components/display-1.md +22 -21
- package/skills/g9-lynx-app/references/components/display-2.md +36 -39
- package/skills/g9-lynx-app/references/components/display-3.md +41 -2
- package/skills/g9-lynx-app/references/components/fields.md +5 -5
- package/skills/g9-lynx-app/references/components/header.md +1 -1
- package/skills/g9-lynx-app/references/components/host.md +11 -0
- package/skills/g9-lynx-app/references/components/layout-1.md +1 -1
- package/skills/g9-lynx-app/references/components/list.md +7 -5
- package/skills/g9-lynx-app/references/components/map.md +19 -1
- package/skills/g9-lynx-app/references/components/media-1.md +203 -0
- package/skills/g9-lynx-app/references/components/media-2.md +66 -0
- package/skills/g9-lynx-app/references/components/notifications.md +37 -0
- package/skills/g9-lynx-app/references/components/popover.md +4 -2
- package/skills/g9-lynx-app/references/components/popup.md +2 -2
- package/skills/g9-lynx-app/references/components/projects.md +73 -0
- package/skills/g9-lynx-app/references/components/provider.md +1 -1
- package/skills/g9-lynx-app/references/components/range-slider.md +2 -2
- package/skills/g9-lynx-app/references/components/reader.md +37 -0
- package/skills/g9-lynx-app/references/components/richtext.md +54 -0
- package/skills/g9-lynx-app/references/components/route.md +14 -0
- package/skills/g9-lynx-app/references/components/shell.md +3 -2
- package/skills/g9-lynx-app/references/components/toggle.md +20 -3
- package/skills/g9-lynx-app/references/provider-and-host.md +4 -3
- package/skills/g9-lynx-app/references/components/calendar.md +0 -128
- package/skills/g9-lynx-app/references/components/chat.md +0 -98
- package/skills/g9-lynx-app/references/components/media.md +0 -115
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# G9AppearancePage
|
|
2
|
+
|
|
3
|
+
`import { G9AppearancePage } from '@g9tm/lynxcontrols/appearance';`
|
|
4
|
+
|
|
5
|
+
Settings → Appearance: mode, themes, accent, wallpaper, text size, density, effects.
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `onChange`: (settings: G9AppearanceSettings) => void
|
|
9
|
+
- `settings`: object
|
|
10
|
+
- `systemScheme`: 'light' | 'dark'
|
|
11
|
+
- `themes`: object[]
|
|
12
|
+
- `onCreateTheme?`: () => void
|
|
13
|
+
- `onEditTheme?`: (theme: G9ThemeDefinition) => void
|
|
14
|
+
- `accents?`: object[]
|
|
15
|
+
- `language?`: string
|
|
16
|
+
|
|
17
|
+
Example: `<G9AppearancePage onChange={() => {}} settings={settings} systemScheme="light" themes={themes} />`
|
package/catalog/cards/G9Badge.md
CHANGED
|
@@ -6,7 +6,7 @@ A count or a dot (G9Hub Counter/Badge, tab and bell counts).
|
|
|
6
6
|
|
|
7
7
|
Props:
|
|
8
8
|
- `value?`: string | number
|
|
9
|
-
- `appearance?`: '
|
|
9
|
+
- `appearance?`: 'solid' | 'outline' | 'plain' | 'soft' = "solid"
|
|
10
10
|
- `tone?`: 'primary' | 'info' | 'success' | 'warning' | 'error' | 'accent' | 'neutral' = "error"
|
|
11
11
|
- `dot?`: boolean
|
|
12
12
|
- `hideZero?`: boolean = true
|
|
@@ -7,11 +7,11 @@ Text button (MAUI `G9Button`): variant fill (gradient for the solid variants), 1
|
|
|
7
7
|
Props:
|
|
8
8
|
- `text?`: string
|
|
9
9
|
- `variant?`: 'text' | 'primary' | 'default' | 'secondary' | 'info' | 'success' | 'warning' | 'error' | 'surface' | 'outline' | 'accent' | 'tonal' | 'errorTonal' | 'ghost' | 'inverse' = "primary"
|
|
10
|
-
- `size?`: 'small' | '
|
|
10
|
+
- `size?`: 'small' | 'large' | 'medium' | 'hero' = "medium"
|
|
11
11
|
- `leadingIcon?`: icon
|
|
12
12
|
- `onPress?`: () => void
|
|
13
13
|
- `disabled?`: boolean = false
|
|
14
|
-
- `fontAttributes?`: '
|
|
14
|
+
- `fontAttributes?`: 'none' | 'bold' | 'italic' | 'boldItalic' = "bold"
|
|
15
15
|
- `loadingText?`: string
|
|
16
16
|
|
|
17
17
|
Example: `<G9Button text="Cancel" variant="outline" />`
|
package/catalog/cards/G9Card.md
CHANGED
|
@@ -8,7 +8,7 @@ Props:
|
|
|
8
8
|
- `children?`: ReactNode
|
|
9
9
|
- `onPress?`: () => void
|
|
10
10
|
- `disabled?`: boolean = false
|
|
11
|
-
- `appearance?`: '
|
|
11
|
+
- `appearance?`: 'glass' | 'outlined' | 'filled' | 'elevated'
|
|
12
12
|
- `edge?`: string
|
|
13
13
|
- `enterDelay?`: number
|
|
14
14
|
- `glow?`: string
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# G9CarryContexts
|
|
2
|
+
|
|
3
|
+
`import { G9CarryContexts } from '@g9tm/lynxcontrols/host';`
|
|
4
|
+
|
|
5
|
+
Carries React context into the nearest G9Host's layers: sheets, popups, toasts and menus then read `contexts` with their live values, though they render outside the page (SAC's tray sheet read «GuestContext missing» with
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `contexts`: object[]
|
|
9
|
+
|
|
10
|
+
Example: `<G9CarryContexts contexts={contexts} />`
|
|
@@ -11,7 +11,7 @@ Props:
|
|
|
11
11
|
- `disabled?`: boolean = false
|
|
12
12
|
- `onCheckedChange?`: (checked: boolean) => void
|
|
13
13
|
- `onIndeterminateChange?`: (indeterminate: boolean) => void
|
|
14
|
+
- `labelGap?`: number = 2
|
|
14
15
|
- `defaultChecked?`: boolean
|
|
15
|
-
- `defaultIndeterminate?`: boolean
|
|
16
16
|
|
|
17
17
|
Example: `<G9CheckBox text="I agree" checked={agree} onCheckedChange={setAgree} />`
|
package/catalog/cards/G9Chip.md
CHANGED
|
@@ -12,6 +12,6 @@ Props:
|
|
|
12
12
|
- `onPress?`: () => void
|
|
13
13
|
- `disabled?`: boolean = false
|
|
14
14
|
- `tone?`: 'primary' | 'info' | 'success' | 'warning' | 'error' | 'accent' | 'neutral' = "primary"
|
|
15
|
-
- `
|
|
15
|
+
- `nodeRef?`: (node: NodesRef | null) => void
|
|
16
16
|
|
|
17
17
|
Example: `<G9Chip text="Label" />`
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# G9ChipStrip
|
|
2
|
+
|
|
3
|
+
`import { G9ChipStrip } from '@g9tm/lynxcontrols/toggle';`
|
|
4
|
+
|
|
5
|
+
One scrolling line of chips with one chosen (G9Hub's folder tabs: all, unread, mentions, my folders with their unread counts; 2.5.8): the chosen chip scrolls into view whenever it changes, in reading order.
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `items`: object[]
|
|
9
|
+
- `onChange`: (key: K) => void
|
|
10
|
+
- `value`: string
|
|
11
|
+
- `size?`: 'sm' | 'md' | 'lg'
|
|
12
|
+
- `appearance?`: 'solid' | 'outline' | 'dashed' | 'soft'
|
|
13
|
+
- `tone?`: 'primary' | 'info' | 'success' | 'warning' | 'error' | 'accent' | 'neutral'
|
|
14
|
+
- `haptic?`: boolean | string | string | string | string | string | string | string | string | string
|
|
15
|
+
|
|
16
|
+
Example: `<G9ChipStrip items={items} onChange={() => {}} value="value" />`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# G9CodeBlock
|
|
2
|
+
|
|
3
|
+
`import { G9CodeBlock } from '@g9tm/lynxcontrols/display';`
|
|
4
|
+
|
|
5
|
+
A code sample: monospace, left to right, scrolled sideways (or wrapped), with line numbers and a copy button.
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `text`: string
|
|
9
|
+
- `onCopy?`: (text: string) => void
|
|
10
|
+
- `caption?`: string
|
|
11
|
+
- `copiedLabel?`: string
|
|
12
|
+
- `copyLabel?`: string
|
|
13
|
+
- `maxHeight?`: number
|
|
14
|
+
- `lineNumbers?`: boolean
|
|
15
|
+
- `wrap?`: boolean
|
|
16
|
+
|
|
17
|
+
Example: `<G9CodeBlock text="Label" />`
|
|
@@ -9,7 +9,9 @@ Props:
|
|
|
9
9
|
- `onClose`: () => void
|
|
10
10
|
- `open`: boolean
|
|
11
11
|
- `placeholder?`: string
|
|
12
|
+
- `onQueryChange?`: (query: string) => void
|
|
13
|
+
- `onRun?`: (command: G9Command) => void
|
|
12
14
|
- `emptyText?`: string
|
|
13
|
-
- `
|
|
15
|
+
- `loadingText?`: string
|
|
14
16
|
|
|
15
17
|
Example: `<G9CommandPalette commands={commands} onClose={() => {}} open />`
|
|
@@ -7,7 +7,7 @@ A slim line when the network is gone, coming back, or slow (G9Hub ConnectionBann
|
|
|
7
7
|
Props:
|
|
8
8
|
- `offlineText`: string
|
|
9
9
|
- `reconnectingText`: string
|
|
10
|
-
- `status`: 'online' | '
|
|
10
|
+
- `status`: 'online' | 'connecting' | 'offline' | 'reconnecting' | 'poor'
|
|
11
11
|
- `onRetry?`: () => void
|
|
12
12
|
- `backOnlineText?`: string
|
|
13
13
|
- `connectingText?`: string = "reconnectingText"
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# G9ContrastPanel
|
|
2
|
+
|
|
3
|
+
`import { G9ContrastPanel } from '@g9tm/lynxcontrols/appearance';`
|
|
4
|
+
|
|
5
|
+
A palette's contrast report: a sample, the ratio, AA / AAA and a fix for each failing pair.
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `palette`: object
|
|
9
|
+
- `onFix?`: (foreground: string, value: string) => void
|
|
10
|
+
- `onlyFailures?`: boolean
|
|
11
|
+
- `pairs?`: object[]
|
|
12
|
+
- `rules?`: object[]
|
|
13
|
+
- `words?`: object
|
|
14
|
+
|
|
15
|
+
Example: `<G9ContrastPanel palette={palette} />`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# G9DashboardCustomizeSheet
|
|
2
|
+
|
|
3
|
+
`import { G9DashboardCustomizeSheet } from '@g9tm/lynxcontrols/dashboard';`
|
|
4
|
+
|
|
5
|
+
Customize a dashboard: drag (or step) to reorder, show or hide each widget, pick half or full width, reset.
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `onChange`: (layout: { order: string[]; hidden: string[]; sizes: Record<string, G9WidgetSize>; }) => void
|
|
9
|
+
- `onClose`: () => void
|
|
10
|
+
- `open`: boolean
|
|
11
|
+
- `widgets`: object[]
|
|
12
|
+
- `layout?`: object
|
|
13
|
+
- `options?`: object
|
|
14
|
+
- `sizes?`: boolean = true
|
|
15
|
+
- `words?`: object
|
|
16
|
+
|
|
17
|
+
Example: `<G9DashboardCustomizeSheet onChange={() => {}} onClose={() => {}} open widgets={widgets} />`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# G9DashboardGrid
|
|
2
|
+
|
|
3
|
+
`import { G9DashboardGrid } from '@g9tm/lynxcontrols/dashboard';`
|
|
4
|
+
|
|
5
|
+
The dashboard: the person's widgets in their order and widths, full-width cards alone, half-width ones in two columns.
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `widgets`: object[]
|
|
9
|
+
- `columns?`: 1 | 2 | 'auto'
|
|
10
|
+
- `onWidgetError?`: (id: string, error: unknown) => void
|
|
11
|
+
- `empty?`: ReactNode
|
|
12
|
+
- `fallback?`: ReactNode
|
|
13
|
+
- `renderCard?`: (placed, content) => ReactNode
|
|
14
|
+
- `skeleton?`: ReactNode
|
|
15
|
+
- `gap?`: number = 12
|
|
16
|
+
|
|
17
|
+
Example: `<G9DashboardGrid widgets={widgets} />`
|
|
@@ -2,14 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
`import { G9DragList } from '@g9tm/lynxcontrols/list';`
|
|
4
4
|
|
|
5
|
-
Reorder by dragging (G9Hub
|
|
5
|
+
Reorder by dragging (G9Hub's home customising, ShopManager menu order): a long press — or a touch on the row's handle (`handle`) — lifts a row, it follows the finger on the main thread, the rows it passes slide aside, re
|
|
6
6
|
|
|
7
7
|
Props:
|
|
8
8
|
- `getKey`: (item: T) => void
|
|
9
9
|
- `items`: NonNullable<T>[]
|
|
10
10
|
- `onReorder`: (items: T[]) => void
|
|
11
|
-
- `renderItem`: (item, dragging) => ReactNode
|
|
11
|
+
- `renderItem`: (item, dragging, controls) => ReactNode
|
|
12
12
|
- `disabled?`: boolean
|
|
13
|
+
- `onStart?`: (item: T, index: number) => void
|
|
14
|
+
- `handleLabel?`: string
|
|
13
15
|
- `rowHeight?`: number = 56
|
|
14
16
|
|
|
15
17
|
Example: `<G9DragList getKey={getKey} items={items} onReorder={() => {}} renderItem={renderItem} />`
|
|
@@ -11,7 +11,7 @@ Props:
|
|
|
11
11
|
- `placeholder?`: string
|
|
12
12
|
- `onValueChange?`: (value: string, details: G9ValueChangeDetails) => void
|
|
13
13
|
- `disabled?`: boolean = false
|
|
14
|
-
- `inputType?`: 'number' | '
|
|
14
|
+
- `inputType?`: 'number' | 'custom' | 'default' | 'email' | 'phone' | 'url' | 'letters' | 'decimal' | 'signedNumber' | 'signedDecimal' | 'lettersAndNumbers' | 'lettersNumbersSpace' | 'persianLetters' | 'persianLettersAndNumbers' | 'multilingualLettersAndNumbers' | 'noSpecialChars' = "default"
|
|
15
15
|
- `keyboardType?`: 'number' | 'default' | 'email' | 'phone' | 'password' | 'url' = "default"
|
|
16
16
|
|
|
17
17
|
Example: `<G9Editor />`
|
|
@@ -5,9 +5,10 @@
|
|
|
5
5
|
Keeps a failing part from taking the page down (SAC ErrorBoundary): a fallback with a retry, the error reported once.
|
|
6
6
|
|
|
7
7
|
Props:
|
|
8
|
-
- `fallback`: (error, retry) => ReactNode
|
|
9
8
|
- `children?`: ReactNode
|
|
10
9
|
- `onError?`: (error: unknown) => void
|
|
10
|
+
- `fallback?`: ReactNode
|
|
11
|
+
- `resetKey?`: {}
|
|
11
12
|
- `source?`: string
|
|
12
13
|
|
|
13
|
-
Example: `<G9ErrorBoundary
|
|
14
|
+
Example: `<G9ErrorBoundary />`
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
A label above any control, a hint or an error below (SAC Field, G9Hub Field): for controls without a floating label.
|
|
6
6
|
|
|
7
7
|
Props:
|
|
8
|
-
- `label
|
|
8
|
+
- `label?`: string
|
|
9
9
|
- `children?`: ReactNode
|
|
10
10
|
- `hint?`: string
|
|
11
11
|
- `aside?`: ReactNode
|
|
12
12
|
- `error?`: string
|
|
13
13
|
- `required?`: boolean
|
|
14
14
|
|
|
15
|
-
Example: `<G9FormField
|
|
15
|
+
Example: `<G9FormField />`
|
|
@@ -12,6 +12,6 @@ Props:
|
|
|
12
12
|
- `onPress?`: () => void
|
|
13
13
|
- `disabled?`: boolean = false
|
|
14
14
|
- `iconTone?`: 'primary' | 'info' | 'success' | 'warning' | 'error' | 'accent' | 'neutral' = "neutral"
|
|
15
|
-
- `
|
|
15
|
+
- `pressFeedback?`: 'none' | 'tint' = "none"
|
|
16
16
|
|
|
17
17
|
Example: `<G9ListRow title="Label" />`
|
package/catalog/cards/G9Menu.md
CHANGED
|
@@ -10,7 +10,7 @@ Props:
|
|
|
10
10
|
- `onSelect`: (key: string) => void
|
|
11
11
|
- `open`: boolean
|
|
12
12
|
- `title?`: string
|
|
13
|
-
- `placement?`: 'end' | 'start' | 'top' | 'bottom' | 'bottom-start' | 'bottom-end' | 'top-start' | 'top-end' = "bottom-start"
|
|
13
|
+
- `placement?`: 'end' | 'start' | 'top' | 'bottom' | 'bottom-start' | 'bottom-end' | 'top-start' | 'top-end' | 'start-start' | 'start-end' | 'end-start' | 'end-end' = "bottom-start"
|
|
14
14
|
- `cancelText?`: string
|
|
15
15
|
- `matchWidth?`: boolean
|
|
16
16
|
|
|
@@ -7,6 +7,8 @@ The entries of a menu (G9Hub MenuList): icon, label, shortcut, check; destructiv
|
|
|
7
7
|
Props:
|
|
8
8
|
- `items`: object[]
|
|
9
9
|
- `onSelect`: (key: string) => void
|
|
10
|
+
- `backLabel?`: string
|
|
10
11
|
- `density?`: 'sheet' | 'popover'
|
|
12
|
+
- `keyboard?`: boolean = false
|
|
11
13
|
|
|
12
14
|
Example: `<G9MenuList items={items} onSelect={() => {}} />`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# G9NotificationCenter
|
|
2
|
+
|
|
3
|
+
`import { G9NotificationCenter } from '@g9tm/lynxcontrols/notifications';`
|
|
4
|
+
|
|
5
|
+
The notification center's content (inside a popover, a sheet or a page).
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `items`: object[]
|
|
9
|
+
- `variant?`: 'sheet' | 'panel'
|
|
10
|
+
- `groupTitle?`: (group: G9NotificationGroup) => void
|
|
11
|
+
- `onFilterChange?`: (key: string) => void
|
|
12
|
+
- `onMarkAllRead?`: () => void
|
|
13
|
+
- `onMarkRead?`: (ids: readonly string[]) => void
|
|
14
|
+
- `onMenuItem?`: (key: string) => void
|
|
15
|
+
- `onOpen?`: (entry: G9NotificationEntry) => void
|
|
16
|
+
|
|
17
|
+
Example: `<G9NotificationCenter items={items} />`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# G9NotificationCenterPanel
|
|
2
|
+
|
|
3
|
+
`import { G9NotificationCenterPanel } from '@g9tm/lynxcontrols/notifications';`
|
|
4
|
+
|
|
5
|
+
The center beside its bell (a popover) on wide windows, as a sheet on phones; opening an entry closes it.
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `items`: object[]
|
|
9
|
+
- `onClose`: () => void
|
|
10
|
+
- `open`: boolean
|
|
11
|
+
- `placement?`: 'end' | 'start' | 'top' | 'bottom' | 'bottom-start' | 'bottom-end' | 'top-start' | 'top-end' | 'start-start' | 'start-end' | 'end-start' | 'end-end' = "end-end"
|
|
12
|
+
- `groupTitle?`: (group: G9NotificationGroup) => void
|
|
13
|
+
- `onFilterChange?`: (key: string) => void
|
|
14
|
+
- `onMarkAllRead?`: () => void
|
|
15
|
+
- `onMarkRead?`: (ids: readonly string[]) => void
|
|
16
|
+
|
|
17
|
+
Example: `<G9NotificationCenterPanel items={items} onClose={() => {}} open />`
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# G9PathNavigator
|
|
2
|
+
|
|
3
|
+
`import { G9PathNavigator } from '@g9tm/lynxcontrols/route';`
|
|
4
|
+
|
|
5
|
+
Draws the router: the top page (and the one parked under it), or a list and its detail side by side.
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `router`: object
|
|
9
|
+
- `renderPage?`: (entry, page, pane) => ReactNode
|
|
10
|
+
- `leaveMs?`: number = 0
|
|
11
|
+
- `wide?`: boolean
|
|
12
|
+
|
|
13
|
+
Example: `<G9PathNavigator router={router} />`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# G9PersonalThemeSheet
|
|
2
|
+
|
|
3
|
+
`import { G9PersonalThemeSheet } from '@g9tm/lynxcontrols/appearance';`
|
|
4
|
+
|
|
5
|
+
The personal theme editor: base, accent, surfaces, mode, wallpaper, a live preview and its contrast.
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `bases`: object[]
|
|
9
|
+
- `onClose`: () => void
|
|
10
|
+
- `onSave`: (theme: G9ThemeDefinition, draft: G9PersonalThemeDraft) => void
|
|
11
|
+
- `open`: boolean
|
|
12
|
+
- `onDelete?`: (id: string) => void
|
|
13
|
+
- `onExport?`: (theme: G9ThemeDefinition) => void
|
|
14
|
+
- `accents?`: object[]
|
|
15
|
+
- `draft?`: object
|
|
16
|
+
|
|
17
|
+
Example: `<G9PersonalThemeSheet bases={bases} onClose={() => {}} onSave={() => {}} open />`
|
|
@@ -8,7 +8,7 @@ Props:
|
|
|
8
8
|
- `onClose`: () => void
|
|
9
9
|
- `open`: boolean
|
|
10
10
|
- `children?`: ReactNode
|
|
11
|
-
- `placement?`: 'end' | 'start' | 'top' | 'bottom' | 'bottom-start' | 'bottom-end' | 'top-start' | 'top-end' = "bottom-start"
|
|
11
|
+
- `placement?`: 'end' | 'start' | 'top' | 'bottom' | 'bottom-start' | 'bottom-end' | 'top-start' | 'top-end' | 'start-start' | 'start-end' | 'end-start' | 'end-end' = "bottom-start"
|
|
12
12
|
- `matchWidth?`: boolean
|
|
13
13
|
- `anchorId?`: string
|
|
14
14
|
- `anchorNode?`: object
|
|
@@ -7,11 +7,11 @@ The root every G9 component lives in (plan/specs/01 §5, MAUI `G9Theme`/`G9Cultu
|
|
|
7
7
|
Props:
|
|
8
8
|
- `services`: object
|
|
9
9
|
- `children?`: ReactNode
|
|
10
|
+
- `themeExtras?`: (theme: G9ResolvedTheme) => void
|
|
10
11
|
- `shape?`: object
|
|
11
12
|
- `breakpoints?`: object
|
|
12
13
|
- `culture?`: string | object | object = "en"
|
|
13
14
|
- `diagnostics?`: object
|
|
14
15
|
- `persistTheme?`: boolean = true
|
|
15
|
-
- `preview?`: object
|
|
16
16
|
|
|
17
17
|
Example: `<G9Provider services={services} />`
|
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
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
|
|
6
6
|
|
|
7
7
|
Props:
|
|
8
|
+
- `label?`: string
|
|
8
9
|
- `value?`: number
|
|
9
10
|
- `onValueChange?`: (value: number) => void
|
|
10
11
|
- `disabled?`: boolean
|
|
11
12
|
- `mode?`: 'single' | 'range' = "range"
|
|
13
|
+
- `formatValue?`: (value: number) => void
|
|
12
14
|
- `onRangeChange?`: (start: number, end: number) => void
|
|
13
15
|
- `onValueChanged?`: (value: number) => void
|
|
14
|
-
- `defaultValue?`: number
|
|
15
|
-
- `bands?`: object[]
|
|
16
16
|
|
|
17
17
|
Example: `<G9RangeSlider />`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# G9ReaderSheet
|
|
2
|
+
|
|
3
|
+
`import { G9ReaderSheet } from '@g9tm/lynxcontrols/reader';`
|
|
4
|
+
|
|
5
|
+
A long text read in a sheet: title, author and reading time, A− / A+ and close, then the `G9ReaderView`.
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `onClose`: () => void
|
|
9
|
+
- `open`: boolean
|
|
10
|
+
- `text`: string
|
|
11
|
+
- `title?`: string
|
|
12
|
+
- `size?`: string
|
|
13
|
+
- `minutesLabel?`: (minutes: number) => void
|
|
14
|
+
- `onSizeChange?`: (size: string) => void
|
|
15
|
+
- `closeLabel?`: string
|
|
16
|
+
|
|
17
|
+
Example: `<G9ReaderSheet onClose={() => {}} open text="Label" />`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# G9ReaderView
|
|
2
|
+
|
|
3
|
+
`import { G9ReaderView } from '@g9tm/lynxcontrols/reader';`
|
|
4
|
+
|
|
5
|
+
The text alone at the reader's size, measure and direction (inside any page or sheet).
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `text`: string
|
|
9
|
+
- `size?`: string
|
|
10
|
+
- `maxWidth?`: number = 680
|
|
11
|
+
- `renderText?`: (text, style) => ReactNode
|
|
12
|
+
- `direction?`: 'ltr' | 'rtl' | 'auto'
|
|
13
|
+
- `lineHeightFactors?`: object
|
|
14
|
+
- `sizes?`: object[]
|
|
15
|
+
- `accessibilityLabel?`: string
|
|
16
|
+
|
|
17
|
+
Example: `<G9ReaderView text="Label" />`
|
|
@@ -7,11 +7,11 @@ Button with guarded execution (MAUI `G9SafeButton`): a tap calls `onPress`, then
|
|
|
7
7
|
Props:
|
|
8
8
|
- `text?`: string
|
|
9
9
|
- `variant?`: 'text' | 'primary' | 'default' | 'secondary' | 'info' | 'success' | 'warning' | 'error' | 'surface' | 'outline' | 'accent' | 'tonal' | 'errorTonal' | 'ghost' | 'inverse' = "primary"
|
|
10
|
-
- `size?`: 'small' | '
|
|
10
|
+
- `size?`: 'small' | 'large' | 'medium' | 'hero' = "medium"
|
|
11
11
|
- `leadingIcon?`: icon
|
|
12
12
|
- `onPress?`: () => void
|
|
13
13
|
- `disabled?`: boolean = false
|
|
14
|
-
- `fontAttributes?`: '
|
|
14
|
+
- `fontAttributes?`: 'none' | 'bold' | 'italic' | 'boldItalic' = "bold"
|
|
15
15
|
- `onExecute?`: (context: G9SafeRunContext) => void
|
|
16
16
|
|
|
17
17
|
Example: `<G9SafeButton />`
|
|
@@ -12,6 +12,6 @@ Props:
|
|
|
12
12
|
- `onValueChange?`: (value: string, details: G9ValueChangeDetails) => void
|
|
13
13
|
- `disabled?`: boolean = false
|
|
14
14
|
- `confirmType?`: 'search' | 'done' | 'send' | 'go' | 'next' = "done"
|
|
15
|
-
- `inputType?`: 'number' | '
|
|
15
|
+
- `inputType?`: 'number' | 'custom' | 'default' | 'email' | 'phone' | 'url' | 'letters' | 'decimal' | 'signedNumber' | 'signedDecimal' | 'lettersAndNumbers' | 'lettersNumbersSpace' | 'persianLetters' | 'persianLettersAndNumbers' | 'multilingualLettersAndNumbers' | 'noSpecialChars' = "default"
|
|
16
16
|
|
|
17
17
|
Example: `<G9SearchEntry />`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# G9SecretValue
|
|
2
|
+
|
|
3
|
+
`import { G9SecretValue } from '@g9tm/lynxcontrols/display';`
|
|
4
|
+
|
|
5
|
+
A secret (an API token, a webhook address) in a box with its copy button; dots until revealed when asked.
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `value`: string
|
|
9
|
+
- `label?`: string
|
|
10
|
+
- `onCopy?`: (value: string) => void
|
|
11
|
+
- `copiedLabel?`: string
|
|
12
|
+
- `copyLabel?`: string
|
|
13
|
+
- `hideLabel?`: string
|
|
14
|
+
- `revealLabel?`: string
|
|
15
|
+
- `wrap?`: (value) => ReactNode
|
|
16
|
+
|
|
17
|
+
Example: `<G9SecretValue value="value" />`
|
|
@@ -6,6 +6,10 @@ The keyboard shortcuts as a readable list (G9Hub ShortcutsSheet; open it on `?`)
|
|
|
6
6
|
|
|
7
7
|
Props:
|
|
8
8
|
- `groups`: object[]
|
|
9
|
+
- `columns?`: 1 | 2 | 'auto'
|
|
10
|
+
- `hint?`: string
|
|
11
|
+
- `orText?`: string
|
|
12
|
+
- `thenText?`: string
|
|
9
13
|
- `platform?`: 'mac' | 'other'
|
|
10
14
|
|
|
11
15
|
Example: `<G9ShortcutList groups={groups} />`
|
|
@@ -9,7 +9,9 @@ Props:
|
|
|
9
9
|
- `onClose`: () => void
|
|
10
10
|
- `open`: boolean
|
|
11
11
|
- `title`: string
|
|
12
|
+
- `columns?`: 1 | 2 | 'auto'
|
|
12
13
|
- `closeText?`: string
|
|
13
|
-
- `
|
|
14
|
+
- `hint?`: string
|
|
15
|
+
- `orText?`: string
|
|
14
16
|
|
|
15
17
|
Example: `<G9ShortcutsSheet groups={groups} onClose={() => {}} open title="Label" />`
|
|
@@ -8,7 +8,7 @@ Props:
|
|
|
8
8
|
- `text`: string
|
|
9
9
|
- `size?`: 'sm' | 'md' | 'lg'
|
|
10
10
|
- `icon?`: icon
|
|
11
|
-
- `appearance?`: '
|
|
11
|
+
- `appearance?`: 'solid' | 'outline' | 'plain' | 'soft' = "soft"
|
|
12
12
|
- `tone?`: 'primary' | 'info' | 'success' | 'warning' | 'error' | 'accent' | 'neutral' = "neutral"
|
|
13
13
|
- `fillAlpha?`: number = 0.15
|
|
14
14
|
- `bordered?`: boolean
|
|
@@ -10,8 +10,8 @@ Props:
|
|
|
10
10
|
- `onChange?`: (value: number) => void
|
|
11
11
|
- `disabled?`: boolean = false
|
|
12
12
|
- `format?`: (value: number) => void
|
|
13
|
+
- `addLabel?`: string
|
|
13
14
|
- `decreaseLabel?`: string
|
|
14
15
|
- `increaseLabel?`: string
|
|
15
|
-
- `removeLabel?`: string = "decreaseLabel"
|
|
16
16
|
|
|
17
17
|
Example: `<G9Stepper />`
|
|
@@ -12,6 +12,6 @@ Props:
|
|
|
12
12
|
- `subtitle?`: string
|
|
13
13
|
- `disabled?`: boolean = false
|
|
14
14
|
- `iconTone?`: 'primary' | 'info' | 'success' | 'warning' | 'error' | 'accent' | 'neutral' = "neutral"
|
|
15
|
-
- `
|
|
15
|
+
- `pressFeedback?`: 'none' | 'tint' = "none"
|
|
16
16
|
|
|
17
17
|
Example: `<G9SwitchRow checked onCheckedChange={() => {}} title="Label" />`
|
package/catalog/cards/G9Tag.md
CHANGED
|
@@ -7,7 +7,7 @@ A small label on a card or row (menu item tags, statuses that are not states): t
|
|
|
7
7
|
Props:
|
|
8
8
|
- `text`: string
|
|
9
9
|
- `icon?`: icon
|
|
10
|
-
- `appearance?`: '
|
|
10
|
+
- `appearance?`: 'solid' | 'outline' | 'plain' | 'soft'
|
|
11
11
|
- `tone?`: 'primary' | 'info' | 'success' | 'warning' | 'error' | 'accent' | 'neutral'
|
|
12
12
|
- `emoji?`: string
|
|
13
13
|
|
|
@@ -12,6 +12,6 @@ Props:
|
|
|
12
12
|
- `onValueChange?`: (value: string, details: G9ValueChangeDetails) => void
|
|
13
13
|
- `disabled?`: boolean = false
|
|
14
14
|
- `confirmType?`: 'search' | 'done' | 'send' | 'go' | 'next' = "done"
|
|
15
|
-
- `inputType?`: 'number' | '
|
|
15
|
+
- `inputType?`: 'number' | 'custom' | 'default' | 'email' | 'phone' | 'url' | 'letters' | 'decimal' | 'signedNumber' | 'signedDecimal' | 'lettersAndNumbers' | 'lettersNumbersSpace' | 'persianLetters' | 'persianLettersAndNumbers' | 'multilingualLettersAndNumbers' | 'noSpecialChars' = "default"
|
|
16
16
|
|
|
17
17
|
Example: `<G9TextEntry />`
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
`import { G9UpdateBar } from '@g9tm/lynxcontrols/shell';`
|
|
4
4
|
|
|
5
|
-
«A new version is ready — restart» (SAC UpdatePrompt, live updates): a slim bar
|
|
5
|
+
«A new version is ready — restart» (SAC UpdatePrompt, live updates): a slim bar with the action and an optional dismissal.
|
|
6
6
|
|
|
7
7
|
Props:
|
|
8
8
|
- `actionText`: string
|
|
@@ -11,5 +11,6 @@ Props:
|
|
|
11
11
|
- `text`: string
|
|
12
12
|
- `onDismiss?`: () => void
|
|
13
13
|
- `dismissText?`: string
|
|
14
|
+
- `placement?`: 'overlay' | 'inline'
|
|
14
15
|
|
|
15
16
|
Example: `<G9UpdateBar actionText="actionText" onAction={() => {}} shown text="Label" />`
|
|
@@ -7,7 +7,7 @@ A virtualised list on Lynx's native `<list>` (G9Hub VirtualList, SAC DataGrid ro
|
|
|
7
7
|
Props:
|
|
8
8
|
- `getKey`: (item: T, index: number) => void
|
|
9
9
|
- `items`: NonNullable<T>[]
|
|
10
|
-
- `renderItem`: (item, index) => ReactNode
|
|
10
|
+
- `renderItem`: (item, index, state) => ReactNode
|
|
11
11
|
- `columns?`: number = 1
|
|
12
12
|
- `isFullSpan?`: (item: T, index: number) => void
|
|
13
13
|
- `isSticky?`: (item: T, index: number) => void
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# G9WallpaperSwatch
|
|
2
|
+
|
|
3
|
+
`import { G9WallpaperSwatch } from '@g9tm/lynxcontrols/appearance';`
|
|
4
|
+
|
|
5
|
+
A wallpaper as a small swatch in the palette's colours, with its name and a ring when chosen.
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `palette`: object
|
|
9
|
+
- `scheme`: 'light' | 'dark'
|
|
10
|
+
- `wallpaper`: object
|
|
11
|
+
- `label?`: string
|
|
12
|
+
- `selected?`: boolean
|
|
13
|
+
- `onPress?`: () => void
|
|
14
|
+
- `height?`: number = 56
|
|
15
|
+
|
|
16
|
+
Example: `<G9WallpaperSwatch palette={palette} scheme="light" wallpaper={wallpaper} />`
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# G9WidgetSlot
|
|
2
|
+
|
|
3
|
+
`import { G9WidgetSlot } from '@g9tm/lynxcontrols/dashboard';`
|
|
4
|
+
|
|
5
|
+
One widget: drawn at once, or after its code arrives (a skeleton meanwhile); a failure leaves the slot.
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `widget`: object
|
|
9
|
+
- `onError?`: (id: string, error: unknown) => void
|
|
10
|
+
- `fallback?`: ReactNode
|
|
11
|
+
- `skeleton?`: ReactNode
|
|
12
|
+
|
|
13
|
+
Example: `<G9WidgetSlot widget={widget} />`
|