@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.
Files changed (148) hide show
  1. package/catalog/cards/G9AppShell.md +1 -1
  2. package/catalog/cards/G9Badge.md +1 -1
  3. package/catalog/cards/G9DirectionScope.md +10 -0
  4. package/catalog/cards/G9IconButton.md +1 -1
  5. package/catalog/cards/G9SafeIconButton.md +1 -1
  6. package/catalog/cards/G9StatusPill.md +1 -1
  7. package/catalog/cards/G9Stepper.md +1 -1
  8. package/catalog/cards/G9Tag.md +1 -1
  9. package/catalog/catalog.json +434 -32
  10. package/catalog/index.md +2 -1
  11. package/dist/.tsbuildinfo +1 -1
  12. package/dist/base/base.css +1 -1
  13. package/dist/base/base.css.map +1 -1
  14. package/dist/base/node-ref.d.ts +8 -0
  15. package/dist/base/node-ref.d.ts.map +1 -0
  16. package/dist/base/node-ref.jsx +11 -0
  17. package/dist/base/pressable.d.ts +5 -0
  18. package/dist/base/pressable.d.ts.map +1 -1
  19. package/dist/base/pressable.jsx +4 -1
  20. package/dist/base/sizing.d.ts +4 -0
  21. package/dist/base/sizing.d.ts.map +1 -0
  22. package/dist/base/sizing.jsx +6 -0
  23. package/dist/button/button-variants.css +4 -4
  24. package/dist/button/button-variants.css.map +1 -1
  25. package/dist/button/button.css +5 -5
  26. package/dist/button/button.css.map +1 -1
  27. package/dist/button/button.d.ts +6 -0
  28. package/dist/button/button.d.ts.map +1 -1
  29. package/dist/button/button.jsx +14 -3
  30. package/dist/button/icon-button.d.ts +14 -0
  31. package/dist/button/icon-button.d.ts.map +1 -1
  32. package/dist/button/icon-button.jsx +21 -7
  33. package/dist/button/variant-css.jsx +1 -1
  34. package/dist/button/visuals.d.ts +1 -0
  35. package/dist/button/visuals.d.ts.map +1 -1
  36. package/dist/button/visuals.jsx +4 -1
  37. package/dist/cascade/cascade.css +1 -1
  38. package/dist/cascade/cascade.css.map +1 -1
  39. package/dist/commands/commands.css +1 -1
  40. package/dist/commands/commands.css.map +1 -1
  41. package/dist/display/display.css +2 -2
  42. package/dist/display/display.css.map +1 -1
  43. package/dist/display/extras.css +3 -3
  44. package/dist/display/extras.css.map +1 -1
  45. package/dist/display/figures.css +5 -5
  46. package/dist/display/figures.css.map +1 -1
  47. package/dist/display/figures.d.ts.map +1 -1
  48. package/dist/display/figures.jsx +7 -2
  49. package/dist/display/keycap.css +1 -1
  50. package/dist/display/keycap.css.map +1 -1
  51. package/dist/display/motion-figures.css +1 -1
  52. package/dist/display/motion-figures.css.map +1 -1
  53. package/dist/display/progress-bar.d.ts +6 -1
  54. package/dist/display/progress-bar.d.ts.map +1 -1
  55. package/dist/display/progress-bar.jsx +12 -2
  56. package/dist/display/status.css +4 -4
  57. package/dist/display/status.css.map +1 -1
  58. package/dist/display/theme-preview.css +2 -2
  59. package/dist/display/theme-preview.css.map +1 -1
  60. package/dist/edge-panel/edge-panel.css +1 -1
  61. package/dist/edge-panel/edge-panel.css.map +1 -1
  62. package/dist/effects/effects.css +1 -1
  63. package/dist/effects/effects.css.map +1 -1
  64. package/dist/expander/expander.css +1 -1
  65. package/dist/expander/expander.css.map +1 -1
  66. package/dist/fields/extra-entries.css +2 -2
  67. package/dist/fields/extra-entries.css.map +1 -1
  68. package/dist/fields/outlined-field.d.ts +10 -3
  69. package/dist/fields/outlined-field.d.ts.map +1 -1
  70. package/dist/fields/outlined-field.jsx +21 -5
  71. package/dist/fields/text-entry.d.ts.map +1 -1
  72. package/dist/fields/text-entry.jsx +7 -1
  73. package/dist/guide/guide.css +6 -6
  74. package/dist/guide/guide.css.map +1 -1
  75. package/dist/header/header.css +2 -2
  76. package/dist/header/header.css.map +1 -1
  77. package/dist/host/host.d.ts.map +1 -1
  78. package/dist/host/host.jsx +3 -2
  79. package/dist/icon/icon.d.ts.map +1 -1
  80. package/dist/icon/icon.jsx +3 -1
  81. package/dist/layout/layout.css +4 -4
  82. package/dist/layout/layout.css.map +1 -1
  83. package/dist/list/list.css +2 -2
  84. package/dist/list/list.css.map +1 -1
  85. package/dist/orb/orb.css +1 -1
  86. package/dist/orb/orb.css.map +1 -1
  87. package/dist/pickers/day-stepper.css +1 -1
  88. package/dist/pickers/day-stepper.css.map +1 -1
  89. package/dist/pickers/pickers.css +6 -6
  90. package/dist/pickers/pickers.css.map +1 -1
  91. package/dist/plus-button/plus-button.css +1 -1
  92. package/dist/plus-button/plus-button.css.map +1 -1
  93. package/dist/popover/popover.css +2 -2
  94. package/dist/popover/popover.css.map +1 -1
  95. package/dist/popup/popup.css +2 -2
  96. package/dist/popup/popup.css.map +1 -1
  97. package/dist/provider/direction-scope.d.ts +13 -0
  98. package/dist/provider/direction-scope.d.ts.map +1 -0
  99. package/dist/provider/direction-scope.jsx +12 -0
  100. package/dist/provider/index.d.ts +1 -0
  101. package/dist/provider/index.d.ts.map +1 -1
  102. package/dist/provider/index.jsx +1 -0
  103. package/dist/range-slider/range-slider.css +1 -1
  104. package/dist/range-slider/range-slider.css.map +1 -1
  105. package/dist/selection/selection-sheet.d.ts.map +1 -1
  106. package/dist/selection/selection-sheet.jsx +2 -0
  107. package/dist/sheet/frame.d.ts.map +1 -1
  108. package/dist/sheet/frame.jsx +3 -2
  109. package/dist/sheet/panel-frame.css +2 -0
  110. package/dist/sheet/panel-frame.css.map +1 -1
  111. package/dist/sheet/panel-frame.jsx +1 -1
  112. package/dist/sheet/sheet.css +1 -1
  113. package/dist/sheet/sheet.css.map +1 -1
  114. package/dist/shell/shell.css +6 -6
  115. package/dist/shell/shell.css.map +1 -1
  116. package/dist/shell/shell.d.ts +11 -0
  117. package/dist/shell/shell.d.ts.map +1 -1
  118. package/dist/shell/shell.jsx +17 -12
  119. package/dist/survey/survey.css +3 -3
  120. package/dist/survey/survey.css.map +1 -1
  121. package/dist/tab-bar/tab-bar.d.ts.map +1 -1
  122. package/dist/tab-bar/tab-bar.jsx +5 -2
  123. package/dist/tabs/tab-view.d.ts.map +1 -1
  124. package/dist/tabs/tab-view.jsx +3 -1
  125. package/dist/tabs/tabs.css +1 -1
  126. package/dist/tabs/tabs.css.map +1 -1
  127. package/dist/toast/toast.css +2 -2
  128. package/dist/toast/toast.css.map +1 -1
  129. package/dist/toggle/chip-group.d.ts.map +1 -1
  130. package/dist/toggle/chip-group.jsx +3 -1
  131. package/dist/toggle/choice.css +21 -6
  132. package/dist/toggle/choice.css.map +1 -1
  133. package/dist/toggle/choice.d.ts +5 -0
  134. package/dist/toggle/choice.d.ts.map +1 -1
  135. package/dist/toggle/choice.jsx +38 -13
  136. package/dist/toggle/toggle.css +3 -3
  137. package/dist/toggle/toggle.css.map +1 -1
  138. package/package.json +2 -2
  139. package/skills/g9-lynx-app/references/catalog-index.md +1 -1
  140. package/skills/g9-lynx-app/references/components/button.md +2 -2
  141. package/skills/g9-lynx-app/references/components/display-1.md +1 -1
  142. package/skills/g9-lynx-app/references/components/display-3.md +2 -2
  143. package/skills/g9-lynx-app/references/components/provider.md +11 -0
  144. package/skills/g9-lynx-app/references/components/shell.md +1 -1
  145. package/skills/g9-lynx-app/references/components/toggle.md +1 -1
  146. package/skills/g9-lynx-app/references/localization-rtl.md +4 -0
  147. package/skills/g9-lynx-app/references/provider-and-host.md +3 -0
  148. 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' | 'soft' | 'solid' | 'plain' = "soft"
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' | 'soft' | 'solid' | 'plain'
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`), `density`
16
- (`compact` / `regular` / `comfortable`), `touchTarget` (never under 44).
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.