@g9tm/lynxcontrols 2.5.2 → 2.5.4
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/G9AppShell.md +1 -1
- package/catalog/cards/G9Badge.md +1 -1
- package/catalog/cards/G9DirectionScope.md +10 -0
- package/catalog/cards/G9IconButton.md +1 -1
- package/catalog/cards/G9SafeIconButton.md +1 -1
- package/catalog/cards/G9StatusPill.md +1 -1
- package/catalog/cards/G9Stepper.md +1 -1
- package/catalog/cards/G9Tag.md +1 -1
- package/catalog/catalog.json +434 -32
- package/catalog/index.md +2 -1
- package/dist/.tsbuildinfo +1 -1
- package/dist/base/base.css +1 -1
- package/dist/base/base.css.map +1 -1
- package/dist/base/node-ref.d.ts +8 -0
- package/dist/base/node-ref.d.ts.map +1 -0
- package/dist/base/node-ref.jsx +11 -0
- package/dist/base/pressable.d.ts +5 -0
- package/dist/base/pressable.d.ts.map +1 -1
- package/dist/base/pressable.jsx +4 -1
- package/dist/base/sizing.d.ts +4 -0
- package/dist/base/sizing.d.ts.map +1 -0
- package/dist/base/sizing.jsx +6 -0
- package/dist/button/button-variants.css +4 -4
- package/dist/button/button-variants.css.map +1 -1
- package/dist/button/button.css +5 -5
- package/dist/button/button.css.map +1 -1
- package/dist/button/button.d.ts +6 -0
- package/dist/button/button.d.ts.map +1 -1
- package/dist/button/button.jsx +14 -3
- package/dist/button/icon-button.d.ts +14 -0
- package/dist/button/icon-button.d.ts.map +1 -1
- package/dist/button/icon-button.jsx +21 -7
- package/dist/button/variant-css.jsx +1 -1
- package/dist/button/visuals.d.ts +1 -0
- package/dist/button/visuals.d.ts.map +1 -1
- package/dist/button/visuals.jsx +4 -1
- package/dist/cascade/cascade.css +1 -1
- package/dist/cascade/cascade.css.map +1 -1
- package/dist/commands/commands.css +1 -1
- package/dist/commands/commands.css.map +1 -1
- package/dist/display/display.css +2 -2
- package/dist/display/display.css.map +1 -1
- package/dist/display/extras.css +3 -3
- package/dist/display/extras.css.map +1 -1
- package/dist/display/figures.css +5 -5
- package/dist/display/figures.css.map +1 -1
- package/dist/display/figures.d.ts.map +1 -1
- package/dist/display/figures.jsx +7 -2
- package/dist/display/keycap.css +1 -1
- package/dist/display/keycap.css.map +1 -1
- package/dist/display/motion-figures.css +1 -1
- package/dist/display/motion-figures.css.map +1 -1
- package/dist/display/progress-bar.d.ts +6 -1
- package/dist/display/progress-bar.d.ts.map +1 -1
- package/dist/display/progress-bar.jsx +12 -2
- package/dist/display/status.css +4 -4
- package/dist/display/status.css.map +1 -1
- package/dist/display/theme-preview.css +2 -2
- package/dist/display/theme-preview.css.map +1 -1
- package/dist/edge-panel/edge-panel.css +1 -1
- package/dist/edge-panel/edge-panel.css.map +1 -1
- package/dist/effects/effects.css +1 -1
- package/dist/effects/effects.css.map +1 -1
- package/dist/expander/expander.css +1 -1
- package/dist/expander/expander.css.map +1 -1
- package/dist/fields/extra-entries.css +2 -2
- package/dist/fields/extra-entries.css.map +1 -1
- package/dist/fields/outlined-field.d.ts +10 -3
- package/dist/fields/outlined-field.d.ts.map +1 -1
- package/dist/fields/outlined-field.jsx +21 -5
- package/dist/fields/text-entry.d.ts.map +1 -1
- package/dist/fields/text-entry.jsx +7 -1
- package/dist/guide/guide.css +6 -6
- package/dist/guide/guide.css.map +1 -1
- package/dist/header/header.css +2 -2
- package/dist/header/header.css.map +1 -1
- package/dist/host/host.d.ts.map +1 -1
- package/dist/host/host.jsx +3 -2
- package/dist/icon/icon.d.ts.map +1 -1
- package/dist/icon/icon.jsx +3 -1
- package/dist/layout/layout.css +4 -4
- package/dist/layout/layout.css.map +1 -1
- package/dist/list/list.css +2 -2
- package/dist/list/list.css.map +1 -1
- package/dist/orb/orb.css +1 -1
- package/dist/orb/orb.css.map +1 -1
- package/dist/pickers/day-stepper.css +1 -1
- package/dist/pickers/day-stepper.css.map +1 -1
- package/dist/pickers/pickers.css +6 -6
- package/dist/pickers/pickers.css.map +1 -1
- package/dist/plus-button/plus-button.css +1 -1
- package/dist/plus-button/plus-button.css.map +1 -1
- package/dist/popover/popover.css +2 -2
- package/dist/popover/popover.css.map +1 -1
- package/dist/popup/popup.css +2 -2
- package/dist/popup/popup.css.map +1 -1
- package/dist/provider/direction-scope.d.ts +13 -0
- package/dist/provider/direction-scope.d.ts.map +1 -0
- package/dist/provider/direction-scope.jsx +12 -0
- package/dist/provider/index.d.ts +1 -0
- package/dist/provider/index.d.ts.map +1 -1
- package/dist/provider/index.jsx +1 -0
- package/dist/range-slider/range-slider.css +1 -1
- package/dist/range-slider/range-slider.css.map +1 -1
- package/dist/selection/selection-sheet.d.ts.map +1 -1
- package/dist/selection/selection-sheet.jsx +2 -0
- package/dist/sheet/frame.d.ts.map +1 -1
- package/dist/sheet/frame.jsx +3 -2
- package/dist/sheet/panel-frame.css +2 -0
- package/dist/sheet/panel-frame.css.map +1 -1
- package/dist/sheet/panel-frame.jsx +1 -1
- package/dist/sheet/sheet.css +1 -1
- package/dist/sheet/sheet.css.map +1 -1
- package/dist/shell/shell.css +6 -6
- package/dist/shell/shell.css.map +1 -1
- package/dist/shell/shell.d.ts +11 -0
- package/dist/shell/shell.d.ts.map +1 -1
- package/dist/shell/shell.jsx +17 -12
- package/dist/survey/survey.css +3 -3
- package/dist/survey/survey.css.map +1 -1
- package/dist/tab-bar/tab-bar.d.ts.map +1 -1
- package/dist/tab-bar/tab-bar.jsx +5 -2
- package/dist/tabs/tab-view.d.ts.map +1 -1
- package/dist/tabs/tab-view.jsx +3 -1
- package/dist/tabs/tabs.css +1 -1
- package/dist/tabs/tabs.css.map +1 -1
- package/dist/toast/toast.css +2 -2
- package/dist/toast/toast.css.map +1 -1
- package/dist/toggle/chip-group.d.ts.map +1 -1
- package/dist/toggle/chip-group.jsx +3 -1
- package/dist/toggle/choice.css +21 -6
- package/dist/toggle/choice.css.map +1 -1
- package/dist/toggle/choice.d.ts +5 -0
- package/dist/toggle/choice.d.ts.map +1 -1
- package/dist/toggle/choice.jsx +38 -13
- package/dist/toggle/toggle.css +3 -3
- package/dist/toggle/toggle.css.map +1 -1
- package/package.json +2 -2
- package/skills/g9-lynx-app/references/catalog-index.md +1 -1
- package/skills/g9-lynx-app/references/components/button.md +2 -2
- package/skills/g9-lynx-app/references/components/display-1.md +1 -1
- package/skills/g9-lynx-app/references/components/display-3.md +2 -2
- package/skills/g9-lynx-app/references/components/provider.md +11 -0
- package/skills/g9-lynx-app/references/components/shell.md +1 -1
- package/skills/g9-lynx-app/references/components/toggle.md +1 -1
- package/skills/g9-lynx-app/references/localization-rtl.md +4 -0
- package/skills/g9-lynx-app/references/provider-and-host.md +3 -0
- package/skills/g9-lynx-app/references/theming.md +5 -2
|
@@ -38,7 +38,7 @@ Props:
|
|
|
38
38
|
- `text`: string
|
|
39
39
|
- `size?`: 'sm' | 'md' | 'lg'
|
|
40
40
|
- `icon?`: icon
|
|
41
|
-
- `appearance?`: 'outline' | '
|
|
41
|
+
- `appearance?`: 'outline' | 'plain' | 'soft' | 'solid' = "soft"
|
|
42
42
|
- `tone?`: 'primary' | 'info' | 'success' | 'warning' | 'error' | 'accent' | 'neutral' = "neutral"
|
|
43
43
|
- `fillAlpha?`: number = 0.15
|
|
44
44
|
- `bordered?`: boolean
|
|
@@ -69,7 +69,7 @@ A small label on a card or row (menu item tags, statuses that are not states): t
|
|
|
69
69
|
Props:
|
|
70
70
|
- `text`: string
|
|
71
71
|
- `icon?`: icon
|
|
72
|
-
- `appearance?`: 'outline' | '
|
|
72
|
+
- `appearance?`: 'outline' | 'plain' | 'soft' | 'solid'
|
|
73
73
|
- `tone?`: 'primary' | 'info' | 'success' | 'warning' | 'error' | 'accent' | 'neutral'
|
|
74
74
|
- `emoji?`: string
|
|
75
75
|
|
|
@@ -12,6 +12,17 @@ Props:
|
|
|
12
12
|
|
|
13
13
|
Example: `<G9Activity mode="visible" />`
|
|
14
14
|
|
|
15
|
+
# G9DirectionScope
|
|
16
|
+
|
|
17
|
+
`import { G9DirectionScope } from '@g9tm/lynxcontrols/provider';`
|
|
18
|
+
|
|
19
|
+
A view in the culture's direction (`g9-dir-rtl` / `g9-dir-ltr`), for content an app puts in a G9 row's slot when the app inherits CSS direction.
|
|
20
|
+
|
|
21
|
+
Props:
|
|
22
|
+
- `children?`: ReactNode
|
|
23
|
+
|
|
24
|
+
Example: `<G9DirectionScope />`
|
|
25
|
+
|
|
15
26
|
# G9KeepAlive
|
|
16
27
|
|
|
17
28
|
`import { G9KeepAlive } from '@g9tm/lynxcontrols/provider';`
|
|
@@ -12,9 +12,9 @@ Props:
|
|
|
12
12
|
- `value`: string
|
|
13
13
|
- `children?`: ReactNode
|
|
14
14
|
- `moreText?`: string
|
|
15
|
+
- `topBarModes?`: 'side' | 'rail' | 'tabs'[] = "['side']"
|
|
15
16
|
- `brand?`: ReactNode
|
|
16
17
|
- `navFooter?`: ReactNode
|
|
17
|
-
- `navSearch?`: ReactNode
|
|
18
18
|
|
|
19
19
|
Example: `<G9AppShell destinations={destinations} onChange={() => {}} value="value" />`
|
|
20
20
|
|
|
@@ -120,9 +120,9 @@ Props:
|
|
|
120
120
|
- `onChange?`: (value: number) => void
|
|
121
121
|
- `disabled?`: boolean = false
|
|
122
122
|
- `format?`: (value: number) => void
|
|
123
|
+
- `appearance?`: 'plain' | 'tray'
|
|
123
124
|
- `block?`: boolean
|
|
124
125
|
- `defaultValue?`: number
|
|
125
|
-
- `collapsedAtMin?`: string | boolean | boolean
|
|
126
126
|
|
|
127
127
|
Example: `<G9Stepper />`
|
|
128
128
|
|
|
@@ -4,6 +4,10 @@
|
|
|
4
4
|
`useG9CultureStore().setCulture('en')`. Readers: `useG9Culture()`, `useG9Direction()`.
|
|
5
5
|
- **Direction**: every G9 control mirrors itself. Your own rows: `style={g9RowStyle(direction)}`; your own text
|
|
6
6
|
alignment: `g9TextStart(direction)`; a `--rtl` modifier class for anything else. Never rely on CSS `direction`.
|
|
7
|
+
- **An app that inherits `direction`** (`enableCSSInheritance` with direction in its list): G9 rows are
|
|
8
|
+
`direction: ltr` + row-reverse, and the slot content they hold inherits that `ltr`. Wrap what you put in a row's slot
|
|
9
|
+
(top bar actions, a list row's trailing part, a section's actions) in `<G9DirectionScope>`. The shell's content,
|
|
10
|
+
sheets, the wide panel and the host's overlay layers already carry the culture's direction.
|
|
7
11
|
- **Digits and numbers**: `formatNumber(value, culture)`, `toNativeDigits(text, 'persian')`. A G9 field stores ASCII
|
|
8
12
|
digits and draws the culture's; a Latin number inside Persian text is a finding of G9AppPilot's watch.
|
|
9
13
|
- **Words**: the library's own words (OK, Cancel, Search…) come from string tables: pass `g9BuiltInStringTables` in
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
# The provider and the host
|
|
2
2
|
|
|
3
|
+
> Sheets, popups, toasts and menus render in `G9Host`'s layers, outside your own root view: CSS variables your app
|
|
4
|
+
> sets for its content belong on a view AROUND `G9Host`, or they are missing inside a sheet.
|
|
5
|
+
|
|
3
6
|
```tsx
|
|
4
7
|
import { G9Host } from '@g9tm/lynxcontrols/host';
|
|
5
8
|
import { G9Provider } from '@g9tm/lynxcontrols/provider';
|
|
@@ -12,7 +12,10 @@
|
|
|
12
12
|
palette).
|
|
13
13
|
- **A full palette from a server**: `store.apply(values)`; layers: `setPalettes`, `setOverrides`.
|
|
14
14
|
- **Shape** (`shape` prop or a definition's `shape`): `radii` by role, `heights` (sm / md / lg), the type scale,
|
|
15
|
-
`fonts` per script (`latin`, `arabic`, `mono`: every G9 text reads `--g9-font-text`)
|
|
16
|
-
(`
|
|
15
|
+
`fonts` per script (`latin`, `arabic`, `mono`: every G9 text reads `--g9-font-text`) and per weight
|
|
16
|
+
(`arabicByWeight: { 500: 'AppMd', 700: 'AppBd' }`: Android ignores an @font-face weight; register each file under
|
|
17
|
+
BOTH Typeface.NORMAL and BOLD), `density` (`compact` / `regular` / `comfortable`), `touchTarget` (never under 44),
|
|
18
|
+
and `sizing: 'shared'` when your design sizes every control from the three heights (buttons, icon buttons, fields,
|
|
19
|
+
chips, segmented, steppers follow them; the default keeps each control's own table).
|
|
17
20
|
- **Your own components**: read colours from `useG9Theme().palette` and derive with `withAlpha`, `darken`, `mix`
|
|
18
21
|
once per theme change, never per frame. G9's look uses no shadows: elevation is surface tokens and borders.
|