@g9tm/lynxcontrols 2.5.7 → 2.5.9

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 (254) hide show
  1. package/catalog/cards/G9AppearancePage.md +17 -0
  2. package/catalog/cards/G9Badge.md +1 -1
  3. package/catalog/cards/G9Button.md +2 -2
  4. package/catalog/cards/G9Card.md +1 -1
  5. package/catalog/cards/G9Chip.md +1 -1
  6. package/catalog/cards/G9ChipStrip.md +16 -0
  7. package/catalog/cards/G9CodeBlock.md +17 -0
  8. package/catalog/cards/G9CommandPalette.md +3 -1
  9. package/catalog/cards/G9ConnectionBanner.md +1 -1
  10. package/catalog/cards/G9ContrastPanel.md +15 -0
  11. package/catalog/cards/G9DashboardCustomizeSheet.md +17 -0
  12. package/catalog/cards/G9DashboardGrid.md +17 -0
  13. package/catalog/cards/G9DragList.md +4 -2
  14. package/catalog/cards/G9Editor.md +1 -1
  15. package/catalog/cards/G9ErrorBoundary.md +3 -2
  16. package/catalog/cards/G9Menu.md +1 -1
  17. package/catalog/cards/G9MenuList.md +2 -0
  18. package/catalog/cards/G9NotificationCenter.md +17 -0
  19. package/catalog/cards/G9NotificationCenterPanel.md +17 -0
  20. package/catalog/cards/G9PathNavigator.md +17 -0
  21. package/catalog/cards/G9PersonalThemeSheet.md +17 -0
  22. package/catalog/cards/G9Popover.md +1 -1
  23. package/catalog/cards/G9Provider.md +1 -1
  24. package/catalog/cards/G9ReaderSheet.md +17 -0
  25. package/catalog/cards/G9ReaderView.md +17 -0
  26. package/catalog/cards/G9SafeButton.md +2 -2
  27. package/catalog/cards/G9SearchEntry.md +1 -1
  28. package/catalog/cards/G9SecretValue.md +17 -0
  29. package/catalog/cards/G9ShortcutList.md +4 -0
  30. package/catalog/cards/G9ShortcutsSheet.md +3 -1
  31. package/catalog/cards/G9StatusPill.md +1 -1
  32. package/catalog/cards/G9Tag.md +1 -1
  33. package/catalog/cards/G9TextEntry.md +1 -1
  34. package/catalog/cards/G9VirtualList.md +1 -1
  35. package/catalog/cards/G9WallpaperSwatch.md +16 -0
  36. package/catalog/cards/G9WidgetSkeleton.md +9 -0
  37. package/catalog/cards/G9WidgetSlot.md +13 -0
  38. package/catalog/cards/PopupFrame.md +2 -2
  39. package/catalog/catalog.json +6987 -446
  40. package/catalog/index.md +18 -2
  41. package/dist/.tsbuildinfo +1 -1
  42. package/dist/appearance/appearance.css +264 -0
  43. package/dist/appearance/appearance.css.map +1 -0
  44. package/dist/appearance/appearance.d.ts +148 -0
  45. package/dist/appearance/appearance.d.ts.map +1 -0
  46. package/dist/appearance/appearance.jsx +604 -0
  47. package/dist/appearance/index.d.ts +2 -0
  48. package/dist/appearance/index.d.ts.map +1 -0
  49. package/dist/appearance/index.jsx +1 -0
  50. package/dist/base/control.d.ts +15 -0
  51. package/dist/base/control.d.ts.map +1 -1
  52. package/dist/base/control.jsx +13 -1
  53. package/dist/base/index.d.ts +1 -1
  54. package/dist/base/index.d.ts.map +1 -1
  55. package/dist/base/index.jsx +1 -1
  56. package/dist/button/button.css +4 -0
  57. package/dist/button/button.css.map +1 -1
  58. package/dist/cascade/cascade.css +2 -0
  59. package/dist/cascade/cascade.css.map +1 -1
  60. package/dist/commands/commands.css +46 -0
  61. package/dist/commands/commands.css.map +1 -1
  62. package/dist/commands/index.d.ts +2 -2
  63. package/dist/commands/index.d.ts.map +1 -1
  64. package/dist/commands/index.jsx +2 -2
  65. package/dist/commands/keys.d.ts +15 -1
  66. package/dist/commands/keys.d.ts.map +1 -1
  67. package/dist/commands/keys.jsx +20 -1
  68. package/dist/commands/palette.d.ts +73 -7
  69. package/dist/commands/palette.d.ts.map +1 -1
  70. package/dist/commands/palette.jsx +174 -20
  71. package/dist/dashboard/dashboard.css +101 -0
  72. package/dist/dashboard/dashboard.css.map +1 -0
  73. package/dist/dashboard/dashboard.d.ts +73 -0
  74. package/dist/dashboard/dashboard.d.ts.map +1 -0
  75. package/dist/dashboard/dashboard.jsx +297 -0
  76. package/dist/dashboard/index.d.ts +3 -0
  77. package/dist/dashboard/index.d.ts.map +1 -0
  78. package/dist/dashboard/index.jsx +2 -0
  79. package/dist/dashboard/model.d.ts +53 -0
  80. package/dist/dashboard/model.d.ts.map +1 -0
  81. package/dist/dashboard/model.jsx +76 -0
  82. package/dist/display/code.css +109 -0
  83. package/dist/display/code.css.map +1 -0
  84. package/dist/display/code.d.ts +43 -0
  85. package/dist/display/code.d.ts.map +1 -0
  86. package/dist/display/code.jsx +101 -0
  87. package/dist/display/extras.d.ts +7 -2
  88. package/dist/display/extras.d.ts.map +1 -1
  89. package/dist/display/extras.jsx +13 -4
  90. package/dist/display/index.d.ts +1 -0
  91. package/dist/display/index.d.ts.map +1 -1
  92. package/dist/display/index.jsx +1 -0
  93. package/dist/display/motion-figures.css +2 -0
  94. package/dist/display/motion-figures.css.map +1 -1
  95. package/dist/display/motion-figures.d.ts.map +1 -1
  96. package/dist/display/motion-figures.jsx +14 -7
  97. package/dist/display/theme-preview.css +4 -0
  98. package/dist/display/theme-preview.css.map +1 -1
  99. package/dist/fields/extra-entries.css +1 -0
  100. package/dist/fields/extra-entries.css.map +1 -1
  101. package/dist/fields/extra-entries.d.ts +2 -0
  102. package/dist/fields/extra-entries.d.ts.map +1 -1
  103. package/dist/fields/extra-entries.jsx +3 -2
  104. package/dist/header/header.css +2 -0
  105. package/dist/header/header.css.map +1 -1
  106. package/dist/host/carry-contexts.d.ts.map +1 -1
  107. package/dist/host/carry-contexts.jsx +22 -8
  108. package/dist/index.d.ts +4 -0
  109. package/dist/index.d.ts.map +1 -1
  110. package/dist/layout/layout.css +2 -0
  111. package/dist/layout/layout.css.map +1 -1
  112. package/dist/list/gestures.d.ts +39 -6
  113. package/dist/list/gestures.d.ts.map +1 -1
  114. package/dist/list/gestures.jsx +284 -89
  115. package/dist/list/index.d.ts +3 -2
  116. package/dist/list/index.d.ts.map +1 -1
  117. package/dist/list/index.jsx +2 -1
  118. package/dist/list/keyboard.d.ts +50 -0
  119. package/dist/list/keyboard.d.ts.map +1 -0
  120. package/dist/list/keyboard.jsx +117 -0
  121. package/dist/list/list.css +28 -5
  122. package/dist/list/list.css.map +1 -1
  123. package/dist/list/rows.d.ts.map +1 -1
  124. package/dist/list/rows.jsx +3 -3
  125. package/dist/list/virtual-list.d.ts +27 -1
  126. package/dist/list/virtual-list.d.ts.map +1 -1
  127. package/dist/list/virtual-list.jsx +49 -4
  128. package/dist/notifications/index.d.ts +3 -0
  129. package/dist/notifications/index.d.ts.map +1 -0
  130. package/dist/notifications/index.jsx +2 -0
  131. package/dist/notifications/model.d.ts +47 -0
  132. package/dist/notifications/model.d.ts.map +1 -0
  133. package/dist/notifications/model.jsx +51 -0
  134. package/dist/notifications/notification-center.d.ts +98 -0
  135. package/dist/notifications/notification-center.d.ts.map +1 -0
  136. package/dist/notifications/notification-center.jsx +424 -0
  137. package/dist/notifications/notifications.css +266 -0
  138. package/dist/notifications/notifications.css.map +1 -0
  139. package/dist/orb/orb.css +2 -0
  140. package/dist/orb/orb.css.map +1 -1
  141. package/dist/pickers/pickers.css +15 -0
  142. package/dist/pickers/pickers.css.map +1 -1
  143. package/dist/plus-button/plus-button.css +2 -0
  144. package/dist/plus-button/plus-button.css.map +1 -1
  145. package/dist/plus-button/plus-button.d.ts.map +1 -1
  146. package/dist/plus-button/plus-button.jsx +2 -1
  147. package/dist/popover/popover.css +23 -1
  148. package/dist/popover/popover.css.map +1 -1
  149. package/dist/popover/popover.d.ts +14 -0
  150. package/dist/popover/popover.d.ts.map +1 -1
  151. package/dist/popover/popover.jsx +73 -12
  152. package/dist/popover/position.d.ts +6 -2
  153. package/dist/popover/position.d.ts.map +1 -1
  154. package/dist/popover/position.jsx +15 -4
  155. package/dist/popup/popup.css +3 -0
  156. package/dist/popup/popup.css.map +1 -1
  157. package/dist/provider/keep-alive.d.ts +2 -0
  158. package/dist/provider/keep-alive.d.ts.map +1 -1
  159. package/dist/provider/keep-alive.jsx +3 -1
  160. package/dist/provider/provider.d.ts +6 -1
  161. package/dist/provider/provider.d.ts.map +1 -1
  162. package/dist/provider/provider.jsx +22 -2
  163. package/dist/reader/index.d.ts +2 -0
  164. package/dist/reader/index.d.ts.map +1 -0
  165. package/dist/reader/index.jsx +1 -0
  166. package/dist/reader/reader.css +74 -0
  167. package/dist/reader/reader.css.map +1 -0
  168. package/dist/reader/reader.d.ts +76 -0
  169. package/dist/reader/reader.d.ts.map +1 -0
  170. package/dist/reader/reader.jsx +149 -0
  171. package/dist/route/index.d.ts +2 -0
  172. package/dist/route/index.d.ts.map +1 -1
  173. package/dist/route/index.jsx +2 -0
  174. package/dist/route/path-navigator.css +219 -0
  175. package/dist/route/path-navigator.css.map +1 -0
  176. package/dist/route/path-navigator.d.ts +49 -0
  177. package/dist/route/path-navigator.d.ts.map +1 -0
  178. package/dist/route/path-navigator.jsx +176 -0
  179. package/dist/route/path-router.d.ts +185 -0
  180. package/dist/route/path-router.d.ts.map +1 -0
  181. package/dist/route/path-router.jsx +369 -0
  182. package/dist/selection/selection.css +2 -0
  183. package/dist/selection/selection.css.map +1 -1
  184. package/dist/sheet/frame.d.ts.map +1 -1
  185. package/dist/sheet/frame.jsx +9 -8
  186. package/dist/sheet/options.d.ts +6 -1
  187. package/dist/sheet/options.d.ts.map +1 -1
  188. package/dist/sheet/options.jsx +2 -1
  189. package/dist/sheet/panel-frame.d.ts.map +1 -1
  190. package/dist/sheet/panel-frame.jsx +5 -4
  191. package/dist/sheet/sizing.d.ts +3 -3
  192. package/dist/sheet/sizing.d.ts.map +1 -1
  193. package/dist/sheet/sizing.jsx +1 -0
  194. package/dist/shell/shell.css +12 -1
  195. package/dist/shell/shell.css.map +1 -1
  196. package/dist/shell/shell.d.ts.map +1 -1
  197. package/dist/shell/shell.jsx +7 -5
  198. package/dist/survey/survey.d.ts.map +1 -1
  199. package/dist/survey/survey.jsx +9 -6
  200. package/dist/swipe/swipe.css +2 -0
  201. package/dist/swipe/swipe.css.map +1 -1
  202. package/dist/tab-bar/flat.jsx +5 -4
  203. package/dist/tab-bar/tab-bar.css +2 -0
  204. package/dist/tab-bar/tab-bar.css.map +1 -1
  205. package/dist/toast/index.d.ts +1 -1
  206. package/dist/toast/index.d.ts.map +1 -1
  207. package/dist/toast/service.d.ts.map +1 -1
  208. package/dist/toast/service.jsx +18 -5
  209. package/dist/toast/store.d.ts +22 -0
  210. package/dist/toast/store.d.ts.map +1 -1
  211. package/dist/toast/store.jsx +35 -3
  212. package/dist/toast/toast.css +22 -0
  213. package/dist/toast/toast.css.map +1 -1
  214. package/dist/toggle/choice.css +27 -0
  215. package/dist/toggle/choice.css.map +1 -1
  216. package/dist/toggle/choice.d.ts +36 -0
  217. package/dist/toggle/choice.d.ts.map +1 -1
  218. package/dist/toggle/choice.jsx +77 -13
  219. package/dist/toggle/index.d.ts +1 -1
  220. package/dist/toggle/index.d.ts.map +1 -1
  221. package/dist/toggle/index.jsx +1 -1
  222. package/package.json +22 -2
  223. package/skills/g9-lynx-app/references/catalog-index.md +22 -6
  224. package/skills/g9-lynx-app/references/components/appearance.md +70 -0
  225. package/skills/g9-lynx-app/references/components/barcode.md +1 -1
  226. package/skills/g9-lynx-app/references/components/button.md +4 -4
  227. package/skills/g9-lynx-app/references/components/calendar-1.md +205 -0
  228. package/skills/g9-lynx-app/references/components/calendar-2.md +36 -0
  229. package/skills/g9-lynx-app/references/components/canvas.md +33 -0
  230. package/skills/g9-lynx-app/references/components/chat-1.md +199 -0
  231. package/skills/g9-lynx-app/references/components/chat-2.md +119 -0
  232. package/skills/g9-lynx-app/references/components/commands.md +10 -2
  233. package/skills/g9-lynx-app/references/components/dashboard.md +61 -0
  234. package/skills/g9-lynx-app/references/components/display-1.md +22 -21
  235. package/skills/g9-lynx-app/references/components/display-2.md +36 -39
  236. package/skills/g9-lynx-app/references/components/display-3.md +41 -2
  237. package/skills/g9-lynx-app/references/components/fields.md +3 -3
  238. package/skills/g9-lynx-app/references/components/layout-1.md +1 -1
  239. package/skills/g9-lynx-app/references/components/list.md +5 -3
  240. package/skills/g9-lynx-app/references/components/media-1.md +203 -0
  241. package/skills/g9-lynx-app/references/components/media-2.md +66 -0
  242. package/skills/g9-lynx-app/references/components/notifications.md +37 -0
  243. package/skills/g9-lynx-app/references/components/popover.md +4 -2
  244. package/skills/g9-lynx-app/references/components/popup.md +2 -2
  245. package/skills/g9-lynx-app/references/components/projects.md +73 -0
  246. package/skills/g9-lynx-app/references/components/provider.md +1 -1
  247. package/skills/g9-lynx-app/references/components/reader.md +37 -0
  248. package/skills/g9-lynx-app/references/components/richtext.md +54 -0
  249. package/skills/g9-lynx-app/references/components/route.md +18 -0
  250. package/skills/g9-lynx-app/references/components/shell.md +1 -1
  251. package/skills/g9-lynx-app/references/components/toggle.md +18 -1
  252. package/skills/g9-lynx-app/references/components/calendar.md +0 -128
  253. package/skills/g9-lynx-app/references/components/chat.md +0 -98
  254. package/skills/g9-lynx-app/references/components/media.md +0 -115
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack://./src/toast/toast.css"],"names":[],"mappings":"AAAA;EACE,kBAAkB;EAClB,MAAM;EACN,SAAS;EACT,OAAO;EACP,QAAQ;AACV;;AAMA;EAHE,sBAAsB;EACtB,2BAA2B;EAC3B,oBAAoB;EACpB,aAAa;EACb,eAAe;AACjB;;AAMA;EAHE,8BAA8B;AAChC;;AAMA;EAHE,uBAAuB;AACzB;;AAQA;EALE,kBAAkB;AACpB;;AASA;EANE,mBAAmB;EACnB,iBAAiB;EACjB,uCAAuC;EACvC,mCAAmC;EACnC,mBAAmB;EACnB,mBAAmB;EACnB,mBAAmB;EACnB,gBAAgB;EAChB,eAAe;EACf,kBAAkB;EAClB,kBAAkB;EAClB,aAAa;EACb,kBAAkB;EAClB,gBAAgB;AAClB;;AASA;EANE,eAAe;EACf,gCAAgC;EAChC,2BAA2B;EAC3B,cAAc;EACd,iBAAiB;EACjB,kBAAkB;AACpB;;AASA;EANE,eAAe;EACf,gCAAgC;EAChC,+BAA+B;EAC/B,iBAAiB;EACjB,kBAAkB;AACpB;;AAUA;EAPE,mBAAmB;EACnB,kBAAkB;EAClB,MAAM;EACN,SAAS;EACT,OAAO;EACP,QAAQ;AACV;;AAUA;EAPE,kBAAkB;EAClB,mBAAmB;EACnB,YAAY;EACZ,iBAAiB;EACjB,kBAAkB;EAClB,iBAAiB;EACjB,kBAAkB;EAClB,aAAa;AACf;;AAUA;EAPE,eAAe;EACf,oCAAoC;EACpC,gBAAgB;AAClB;;AAUA;EAPE,gBAAgB;AAClB;;AAUA;EAPE,mCAAmC;EACnC,YAAY;EACZ,0BAA0B;EAC1B,kBAAkB;EAClB,MAAM;EACN,SAAS;EACT,OAAO;EACP,QAAQ;AACV;;AAUA;EAPE,sBAAsB;EACtB,OAAO;EACP,aAAa;AACf;;AAUA;EAPE,6CAA6C;EAC7C,mBAAmB;EACnB,gBAAgB;AAClB;;AAUA;EAPE,eAAe;EACf,oCAAoC;EACpC,qCAAqC;EACrC,gBAAgB;AAClB;;AAUA;EAPE,uBAAuB;EACvB,mBAAmB;EACnB,aAAa;EACb,kBAAkB;EAClB,MAAM;EACN,SAAS;EACT,OAAO;EACP,QAAQ;AACV;;AAUA;EAPE,iCAAiC;EACjC,kBAAkB;EAClB,MAAM;EACN,SAAS;EACT,OAAO;EACP,QAAQ;AACV;;AAUA;EAPE,mBAAmB;EACnB,iBAAiB;EACjB,uCAAuC;EACvC,2CAA2C;EAC3C,mBAAmB;EACnB,sBAAsB;EACtB,mBAAmB;EACnB,kBAAkB;EAClB,aAAa;AACf;;AAUA;EAPE,eAAe;EACf,gCAAgC;EAChC,kBAAkB;EAClB,mCAAmC;EACnC,gBAAgB;AAClB","sourcesContent":[".g9-toast-layer {\n position: absolute;\n top: 0px;\n left: 0px;\n right: 0px;\n bottom: 0px;\n}\n\n/* Fixed (like .g9-popup): a stack exists only while it holds toasts, so it is created after any open sheet — lynx-ui's\n `position: fixed` SheetView — and lands above it instead of under it. Every stack spans the width between the edge\n margins and its toasts FILL it (MAUI ApplyInlineG9ToastPosition: HorizontalOptions = Fill; the position only picks\n top / middle / bottom). The compact loading toast stays centred (MAUI: Center). */\n.g9-toast-stack {\n position: fixed;\n display: flex;\n flex-direction: column;\n align-items: stretch;\n justify-content: flex-start;\n}\n\n.g9-toast-stack--bottom {\n flex-direction: column-reverse;\n}\n\n.g9-toast-stack--middleLeft,\n.g9-toast-stack--middleCenter,\n.g9-toast-stack--middleRight {\n justify-content: center;\n}\n\n.g9-toast--loading {\n align-self: center;\n}\n\n/* MAUI G9ToastHelper.BuildInlineToastView: radius 10, padding 14 / 12, filled with the type's colour (inline style). */\n.g9-toast {\n display: flex;\n flex-direction: row;\n align-items: center;\n min-height: 48px;\n padding: 12px 14px;\n margin-top: 4px;\n margin-bottom: 4px;\n border-radius: 10px;\n border-width: 1px;\n border-style: solid;\n border-color: var(--g9-outline-variant);\n background-color: var(--g9-surface);\n overflow: hidden;\n position: relative;\n}\n\n.g9-toast__message {\n flex-shrink: 1;\n font-size: 14px;\n font-family: var(--g9-font-text);\n color: var(--g9-on-surface);\n margin-left: 10px;\n margin-right: 10px;\n}\n\n.g9-toast__detail {\n font-size: 12px;\n font-family: var(--g9-font-text);\n color: var(--g9-text-secondary);\n margin-left: 10px;\n margin-right: 10px;\n}\n\n/* The lifetime countdown (MAUI's fill layer): grows from the reading start, behind the content. */\n.g9-toast__countdown {\n position: absolute;\n top: 0px;\n bottom: 0px;\n left: 0px;\n right: 0px;\n border-radius: 10px;\n}\n\n.g9-toast__action {\n border-radius: 6px;\n margin-left: 10px;\n margin-right: 10px;\n height: 32px;\n padding-left: 8px;\n padding-right: 8px;\n display: flex;\n align-items: center;\n}\n\n.g9-toast__action-text {\n font-size: 14px;\n font-family: var(--g9-font-text-700);\n font-weight: 700;\n}\n\n.g9-toast--progress {\n min-width: 240px;\n}\n\n.g9-toast__fill {\n position: absolute;\n top: 0px;\n bottom: 0px;\n left: 0px;\n right: 0px;\n background-color: var(--g9-primary);\n opacity: 0.34;\n transition: transform 250ms;\n}\n\n.g9-toast__progress-text {\n flex: 1;\n display: flex;\n flex-direction: column;\n}\n\n.g9-toast__pill {\n padding: 2px 8px;\n border-radius: 10px;\n background-color: var(--g9-primary-container);\n}\n\n.g9-toast__pill-text {\n font-size: 12px;\n font-family: var(--g9-font-text-700);\n font-weight: 700;\n color: var(--g9-on-primary-container);\n}\n\n.g9-loader {\n position: absolute;\n top: 0px;\n left: 0px;\n right: 0px;\n bottom: 0px;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.g9-loader__scrim {\n position: absolute;\n top: 0px;\n left: 0px;\n right: 0px;\n bottom: 0px;\n background-color: var(--g9-scrim);\n}\n\n.g9-loader__card {\n display: flex;\n flex-direction: column;\n align-items: center;\n padding: 20px 24px;\n border-radius: 14px;\n border-width: 1px;\n border-style: solid;\n border-color: var(--g9-outline-variant);\n background-color: var(--g9-inverse-surface);\n}\n\n.g9-loader__text {\n margin-top: 12px;\n font-size: 14px;\n font-family: var(--g9-font-text);\n text-align: center;\n color: var(--g9-inverse-on-surface);\n}\n"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack://./src/toast/toast.css"],"names":[],"mappings":"AAAA;EACE,kBAAkB;EAClB,MAAM;EACN,SAAS;EACT,OAAO;EACP,QAAQ;AACV;;AAMA;EAHE,sBAAsB;EACtB,2BAA2B;EAC3B,oBAAoB;EACpB,aAAa;EACb,eAAe;AACjB;;AAMA;EAHE,8BAA8B;AAChC;;AAMA;EAHE,uBAAuB;AACzB;;AAQA;EALE,kBAAkB;AACpB;;AASA;EANE,mBAAmB;EACnB,iBAAiB;EACjB,uCAAuC;EACvC,mCAAmC;EACnC,oBAAoB;EACpB,mBAAmB;EACnB,mBAAmB;EACnB,mBAAmB;EACnB,gBAAgB;EAChB,eAAe;EACf,kBAAkB;EAClB,kBAAkB;EAClB,aAAa;EACb,kBAAkB;EAClB,gBAAgB;AAClB;;AAUA;EAPE,eAAe;EACf,gCAAgC;EAChC,2BAA2B;EAC3B,cAAc;EACd,iBAAiB;EACjB,kBAAkB;AACpB;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,gCAAgC;EAChC,WAAW;AACb","sourcesContent":[".g9-toast-layer {\n position: absolute;\n top: 0px;\n left: 0px;\n right: 0px;\n bottom: 0px;\n}\n\n/* Fixed (like .g9-popup): a stack exists only while it holds toasts, so it is created after any open sheet — lynx-ui's\n `position: fixed` SheetView — and lands above it instead of under it. Every stack spans the width between the edge\n margins and its toasts FILL it (MAUI ApplyInlineG9ToastPosition: HorizontalOptions = Fill; the position only picks\n top / middle / bottom). The compact loading toast stays centred (MAUI: Center). */\n.g9-toast-stack {\n position: fixed;\n display: flex;\n flex-direction: column;\n align-items: stretch;\n justify-content: flex-start;\n}\n\n.g9-toast-stack--bottom {\n flex-direction: column-reverse;\n}\n\n.g9-toast-stack--middleLeft,\n.g9-toast-stack--middleCenter,\n.g9-toast-stack--middleRight {\n justify-content: center;\n}\n\n.g9-toast--loading {\n align-self: center;\n}\n\n/* MAUI G9ToastHelper.BuildInlineToastView: radius 10, padding 14 / 12, filled with the type's colour (inline style). */\n.g9-toast {\n display: flex;\n flex-direction: row;\n align-items: center;\n min-height: 48px;\n padding: 12px 14px;\n margin-top: 4px;\n margin-bottom: 4px;\n border-radius: 10px;\n border-width: 1px;\n border-style: solid;\n border-color: var(--g9-outline-variant);\n background-color: var(--g9-surface);\n overflow: hidden;\n position: relative;\n /* an interactive surface in a pass-through layer (a browser inherits `none`; G9Hub, 2.5.8) */\n pointer-events: auto;\n}\n\n.g9-toast__message {\n flex-shrink: 1;\n font-size: 14px;\n font-family: var(--g9-font-text);\n color: var(--g9-on-surface);\n margin-left: 10px;\n margin-right: 10px;\n}\n\n.g9-toast__detail {\n font-size: 12px;\n font-family: var(--g9-font-text);\n color: var(--g9-text-secondary);\n margin-left: 10px;\n margin-right: 10px;\n}\n\n/* The lifetime countdown (MAUI's fill layer): grows from the reading start, behind the content. */\n.g9-toast__countdown {\n position: absolute;\n top: 0px;\n bottom: 0px;\n left: 0px;\n right: 0px;\n border-radius: 10px;\n}\n\n.g9-toast__action {\n border-radius: 6px;\n margin-left: 10px;\n margin-right: 10px;\n height: 32px;\n padding-left: 8px;\n padding-right: 8px;\n display: flex;\n align-items: center;\n}\n\n.g9-toast__action-text {\n font-size: 14px;\n font-family: var(--g9-font-text-700);\n font-weight: 700;\n}\n\n.g9-toast--progress {\n min-width: 240px;\n}\n\n.g9-toast__fill {\n position: absolute;\n top: 0px;\n bottom: 0px;\n left: 0px;\n right: 0px;\n background-color: var(--g9-primary);\n opacity: 0.34;\n transition: transform 250ms;\n}\n\n.g9-toast__progress-text {\n flex: 1;\n display: flex;\n flex-direction: column;\n}\n\n.g9-toast__pill {\n padding: 2px 8px;\n border-radius: 10px;\n background-color: var(--g9-primary-container);\n}\n\n.g9-toast__pill-text {\n font-size: 12px;\n font-family: var(--g9-font-text-700);\n font-weight: 700;\n color: var(--g9-on-primary-container);\n}\n\n.g9-loader {\n position: absolute;\n top: 0px;\n left: 0px;\n right: 0px;\n bottom: 0px;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.g9-loader__scrim {\n position: absolute;\n top: 0px;\n left: 0px;\n right: 0px;\n bottom: 0px;\n background-color: var(--g9-scrim);\n /* an interactive surface in a pass-through layer (a browser inherits `none`; G9Hub, 2.5.8) */\n pointer-events: auto;\n}\n\n.g9-loader__card {\n display: flex;\n flex-direction: column;\n align-items: center;\n padding: 20px 24px;\n border-radius: 14px;\n border-width: 1px;\n border-style: solid;\n border-color: var(--g9-outline-variant);\n background-color: var(--g9-inverse-surface);\n}\n\n.g9-loader__text {\n margin-top: 12px;\n font-size: 14px;\n font-family: var(--g9-font-text);\n text-align: center;\n color: var(--g9-inverse-on-surface);\n}\n\n/* A toast's message over its detail (2.5.8). */\n.g9-toast__texts {\n display: flex;\n flex-direction: column;\n flex-shrink: 1;\n min-width: 0px;\n margin-left: 10px;\n margin-right: 10px;\n}\n\n.g9-toast__message--stacked {\n margin-left: 0px;\n margin-right: 0px;\n}\n\n.g9-toast__detail {\n font-size: 12px;\n font-family: var(--g9-font-text);\n opacity: 0.8;\n}\n"],"sourceRoot":""}
@@ -282,5 +282,32 @@
282
282
  display: flex;
283
283
  }
284
284
 
285
+ .g9-chip2__count {
286
+ border-radius: 9px;
287
+ justify-content: center;
288
+ align-items: center;
289
+ min-width: 18px;
290
+ height: 18px;
291
+ padding: 0 5px;
292
+ display: flex;
293
+ }
294
+
295
+ .g9-chip2__count-text {
296
+ font-size: 11px;
297
+ font-weight: 700;
298
+ font-family: var(--g9-font-text-700);
299
+ }
300
+
301
+ .g9-chip-strip {
302
+ width: 100%;
303
+ }
304
+
305
+ .g9-chip-strip__row {
306
+ align-items: center;
307
+ column-gap: 8px;
308
+ padding: 4px 16px;
309
+ display: flex;
310
+ }
311
+
285
312
 
286
313
  /*# sourceMappingURL=choice.css.map */
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack://./src/toggle/choice.css"],"names":[],"mappings":"AACA;EAAE,mBAAmB;EACnB,iBAAiB;EACjB,cAAc;EACd,sBAAsB;EACtB,mBAAmB;EACnB,eAAe;EACf,aAAa;AACf;;AAGA;EAAE,oBAAoB;AACtB;;AAGA;EAAE,mBAAmB;EACnB,gBAAgB;EAChB,oCAAoC;AACtC;;AAGA;EAAE,mBAAmB;EACnB,uBAAuB;EACvB,mBAAmB;EACnB,WAAW;EACX,YAAY;EACZ,aAAa;AACf;;AAGA;EAAE,kDAAkD;EAClD,oBAAoB;EACpB,YAAY;EACZ,aAAa;EACb,kBAAkB;AACpB;;AAGA;EAAE,0BAA0B;EAC1B,wBAAwB;EACxB,sCAAsC;EACtC,uBAAuB;EACvB,UAAU;AACZ;;AAGA;EAAE,oDAAoD;EACpD,kBAAkB;EAClB,QAAQ;EACR,WAAW;AACb;;AAGA;EAAE,mCAAmC;EACnC,mBAAmB;EACnB,iBAAiB;EACjB,uCAAuC;AACzC;;AAGA;EAAE,mCAAmC;AACrC;;AAGA;EAAE,sBAAsB;EACtB,OAAO;EACP,uBAAuB;EACvB,mBAAmB;EACnB,YAAY;EACZ,cAAc;EACd,aAAa;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;EAHE,eAAe;EACf,gCAAgC;EAChC,+BAA+B;EAC/B,iBAAiB;AACnB;;AAMA;EAHE,kDAAkD;EAClD,8BAA8B;EAC9B,sBAAsB;EACtB,mBAAmB;EACnB,aAAa;AACf;;AAMA;EAHE,mBAAmB;AACrB;;AAMA;EAHE,mCAAmC;EACnC,mBAAmB;EACnB,uBAAuB;EACvB,eAAe;EACf,eAAe;EACf,aAAa;AACf;;AAMA;EAHE,eAAe;EACf,oCAAoC;EACpC,2BAA2B;EAC3B,gBAAgB;AAClB;;AAMA;EAHE,uBAAuB;EACvB,mBAAmB;EACnB,aAAa;AACf;;AAMA;EAHE,YAAY;AACd;;AAOA;EAJE,6CAA6C;AAC/C;;AAOA;EAJE,mCAAmC;AACrC;;AAOA;EAJE,eAAe;EACf,oCAAoC;EACpC,qCAAqC;EACrC,gBAAgB;AAClB;;AAOA;EAJE,kBAAkB;EAClB,eAAe;EACf,eAAe;EACf,oCAAoC;EACpC,6BAA6B;EAC7B,gBAAgB;AAClB;;AAOA;EAJE,mBAAmB;EACnB,aAAa;AACf;;AAOA;EAJE,uBAAuB;EACvB,mBAAmB;EACnB,aAAa;AACf","sourcesContent":["/* G9Chip, G9Segmented, G9RadioGroup, G9Stepper, G9RatingInput. */\n.g9-chip2 {\n display: flex;\n align-items: center;\n align-self: flex-start;\n flex-shrink: 0;\n border-style: solid;\n border-width: 1px;\n column-gap: 5px;\n}\n\n.g9-chip2--dashed {\n border-style: dashed;\n}\n\n.g9-chip2__text {\n font-weight: 600;\n white-space: nowrap;\n font-family: var(--g9-font-text-600);\n}\n\n.g9-chip2__remove {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 22px;\n height: 22px;\n border-radius: 11px;\n}\n\n.g9-seg {\n display: flex;\n position: relative;\n align-items: stretch;\n padding: 3px;\n background-color: var(--g9-surface-container-high);\n}\n\n.g9-seg--underline {\n padding: 0px;\n background-color: transparent;\n border-bottom-width: 1px;\n border-bottom-style: solid;\n border-bottom-color: var(--g9-divider);\n}\n\n.g9-seg__indicator {\n position: absolute;\n top: 3px;\n bottom: 3px;\n transition: transform 220ms cubic-bezier(0.2, 0, 0, 1);\n}\n\n.g9-seg__indicator--lift {\n background-color: var(--g9-surface);\n border-width: 1px;\n border-style: solid;\n border-color: var(--g9-outline-variant);\n}\n\n.g9-seg__indicator--filled {\n background-color: var(--g9-primary);\n}\n\n.g9-seg__item {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n flex: 1;\n min-width: 0px;\n padding: 0px 8px;\n}\n\n.g9-seg__item--content {\n flex: 1 1 auto;\n}\n\n.g9-seg__item--underline {\n border-bottom-width: 2px;\n border-bottom-style: solid;\n border-bottom-color: transparent;\n}\n\n.g9-seg__item--disabled {\n opacity: 0.38;\n}\n\n.g9-seg__line {\n display: flex;\n flex-direction: row;\n align-items: center;\n column-gap: 5px;\n max-width: 100%;\n min-width: 0px;\n}\n\n.g9-seg__label {\n font-size: 14px;\n font-family: var(--g9-font-text-500);\n font-weight: 500;\n white-space: nowrap;\n /* a label longer than its segment ends in «…» instead of spilling into the next (G9Hub, 2.5.7) */\n flex-shrink: 1;\n min-width: 0px;\n text-overflow: ellipsis;\n overflow: hidden;\n}\n\n.g9-seg__label--on {\n font-weight: 700;\n font-family: var(--g9-font-text-700);\n}\n\n.g9-seg__sub {\n font-size: 11px;\n font-family: var(--g9-font-text);\n opacity: 0.8;\n max-width: 100%;\n text-overflow: ellipsis;\n}\n\n.g9-seg__count {\n display: flex;\n align-items: center;\n justify-content: center;\n min-width: 18px;\n height: 18px;\n padding: 0px 5px;\n border-radius: 9px;\n}\n\n.g9-seg__count-text {\n font-size: 11px;\n font-family: var(--g9-font-text-700);\n font-weight: 700;\n}\n\n.g9-radio-group {\n display: flex;\n flex-direction: column;\n}\n\n.g9-radio {\n display: flex;\n align-items: center;\n min-height: 48px;\n column-gap: 12px;\n padding: 6px 0px;\n}\n\n.g9-radio--card {\n padding: 12px 14px;\n border-radius: var(--g9-radius-card);\n border-width: 1px;\n border-style: solid;\n border-color: var(--g9-outline-variant);\n background-color: var(--g9-surface);\n}\n\n.g9-radio--card-on {\n border-width: 2px;\n border-color: var(--g9-primary);\n background-color: var(--g9-primary-container);\n}\n\n.g9-radio--disabled {\n opacity: 0.38;\n}\n\n.g9-radio__mark {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 22px;\n height: 22px;\n border-radius: 11px;\n border-width: 2px;\n border-style: solid;\n border-color: var(--g9-outline);\n flex-shrink: 0;\n}\n\n.g9-radio__mark--on {\n border-color: var(--g9-primary);\n}\n\n.g9-radio__dot {\n width: 10px;\n height: 10px;\n border-radius: 5px;\n background-color: var(--g9-primary);\n}\n\n.g9-radio__body {\n display: flex;\n flex-direction: column;\n flex: 1;\n min-width: 0px;\n}\n\n.g9-radio__label {\n font-size: 15px;\n font-family: var(--g9-font-text);\n line-height: 24px;\n color: var(--g9-text-primary);\n}\n\n.g9-radio__desc {\n font-size: 12px;\n font-family: var(--g9-font-text);\n line-height: 20px;\n color: var(--g9-text-secondary);\n}\n\n.g9-stepper {\n display: flex;\n align-items: center;\n justify-content: space-between;\n align-self: flex-start;\n background-color: var(--g9-surface-container-high);\n}\n\n.g9-stepper--block {\n align-self: stretch;\n}\n\n.g9-stepper--add {\n display: flex;\n flex-direction: row;\n justify-content: center;\n padding: 0px 14px;\n column-gap: 6px;\n background-color: var(--g9-primary);\n}\n\n.g9-stepper__add-text {\n font-size: 14px;\n font-family: var(--g9-font-text-700);\n font-weight: 700;\n color: var(--g9-on-primary);\n}\n\n.g9-stepper__btn {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.g9-stepper__btn--off {\n opacity: 0.35;\n}\n\n/* the tray look (appearance 'tray'): the pill in the primary container, round surface buttons inside, a bold count */\n.g9-stepper--tray {\n background-color: var(--g9-primary-container);\n}\n\n.g9-stepper__btn--tray {\n background-color: var(--g9-surface);\n}\n\n.g9-stepper__value--tray {\n font-size: 17px;\n font-family: var(--g9-font-text-700);\n font-weight: 700;\n color: var(--g9-on-primary-container);\n}\n\n.g9-stepper__value {\n min-width: 28px;\n text-align: center;\n font-size: 15px;\n font-family: var(--g9-font-text-800);\n font-weight: 800;\n color: var(--g9-text-primary);\n}\n\n.g9-rating {\n display: flex;\n align-items: center;\n}\n\n.g9-rating__star {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack://./src/toggle/choice.css"],"names":[],"mappings":"AACA;EAAE,mBAAmB;EACnB,iBAAiB;EACjB,cAAc;EACd,sBAAsB;EACtB,mBAAmB;EACnB,eAAe;EACf,aAAa;AACf;;AAGA;EAAE,oBAAoB;AACtB;;AAGA;EAAE,mBAAmB;EACnB,gBAAgB;EAChB,oCAAoC;AACtC;;AAGA;EAAE,mBAAmB;EACnB,uBAAuB;EACvB,mBAAmB;EACnB,WAAW;EACX,YAAY;EACZ,aAAa;AACf;;AAGA;EAAE,kDAAkD;EAClD,oBAAoB;EACpB,YAAY;EACZ,aAAa;EACb,kBAAkB;AACpB;;AAGA;EAAE,0BAA0B;EAC1B,wBAAwB;EACxB,sCAAsC;EACtC,uBAAuB;EACvB,UAAU;AACZ;;AAGA;EAAE,oDAAoD;EACpD,kBAAkB;EAClB,QAAQ;EACR,WAAW;AACb;;AAGA;EAAE,mCAAmC;EACnC,mBAAmB;EACnB,iBAAiB;EACjB,uCAAuC;AACzC;;AAGA;EAAE,mCAAmC;AACrC;;AAGA;EAAE,sBAAsB;EACtB,OAAO;EACP,uBAAuB;EACvB,mBAAmB;EACnB,YAAY;EACZ,cAAc;EACd,aAAa;AACf;;AAGA;EAAE,UAAU;AACZ;;AAGA;EAAE,8BAA8B;AAChC;;AAKA;EAFE,YAAY;AACd;;AAKA;EAFE,mBAAmB;EACnB,mBAAmB;EACnB,eAAe;EACf,YAAY;EACZ,eAAe;EACf,aAAa;AACf;;AAKA;EAFE,eAAe;EACf,oCAAoC;EACpC,mBAAmB;EACnB,uBAAuB;EACvB,cAAc;EACd,YAAY;EAC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a;AACf;;AAMA;EAHE,eAAe;EACf,oCAAoC;EACpC,2BAA2B;EAC3B,gBAAgB;AAClB;;AAMA;EAHE,uBAAuB;EACvB,mBAAmB;EACnB,aAAa;AACf;;AAMA;EAHE,YAAY;AACd;;AAOA;EAJE,6CAA6C;AAC/C;;AAOA;EAJE,mCAAmC;AACrC;;AAOA;EAJE,eAAe;EACf,oCAAoC;EACpC,qCAAqC;EACrC,gBAAgB;AAClB;;AAOA;EAJE,kBAAkB;EAClB,eAAe;EACf,eAAe;EACf,oCAAoC;EACpC,6BAA6B;EAC7B,gBAAgB;AAClB;;AAOA;EAJE,mBAAmB;EACnB,aAAa;AACf;;AAOA;EAJE,uBAAuB;EACvB,mBAAmB;EACnB,aAAa;AACf;;AAQA;EALE,kBAAkB;EAClB,uBAAuB;EACvB,mBAAmB;EACnB,eAAe;EACf,YAAY;EACZ,cAAc;EACd,aAAa;AACf;;AAQA;EALE,eAAe;EACf,gBAAgB;EAChB,oCAAoC;AACtC;;AASA;EANE,WAAW;AACb;;AASA;EANE,mBAAmB;EACnB,eAAe;EACf,iBAAiB;EACjB,aAAa;AACf","sourcesContent":["/* G9Chip, G9Segmented, G9RadioGroup, G9Stepper, G9RatingInput. */\n.g9-chip2 {\n display: flex;\n align-items: center;\n align-self: flex-start;\n flex-shrink: 0;\n border-style: solid;\n border-width: 1px;\n column-gap: 5px;\n}\n\n.g9-chip2--dashed {\n border-style: dashed;\n}\n\n.g9-chip2__text {\n font-weight: 600;\n white-space: nowrap;\n font-family: var(--g9-font-text-600);\n}\n\n.g9-chip2__remove {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 22px;\n height: 22px;\n border-radius: 11px;\n}\n\n.g9-seg {\n display: flex;\n position: relative;\n align-items: stretch;\n padding: 3px;\n background-color: var(--g9-surface-container-high);\n}\n\n.g9-seg--underline {\n padding: 0px;\n background-color: transparent;\n border-bottom-width: 1px;\n border-bottom-style: solid;\n border-bottom-color: var(--g9-divider);\n}\n\n.g9-seg__indicator {\n position: absolute;\n top: 3px;\n bottom: 3px;\n transition: transform 220ms cubic-bezier(0.2, 0, 0, 1);\n}\n\n.g9-seg__indicator--lift {\n background-color: var(--g9-surface);\n border-width: 1px;\n border-style: solid;\n border-color: var(--g9-outline-variant);\n}\n\n.g9-seg__indicator--filled {\n background-color: var(--g9-primary);\n}\n\n.g9-seg__item {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n flex: 1;\n min-width: 0px;\n padding: 0px 8px;\n}\n\n.g9-seg__item--content {\n flex: 1 1 auto;\n}\n\n.g9-seg__item--underline {\n border-bottom-width: 2px;\n border-bottom-style: solid;\n border-bottom-color: transparent;\n}\n\n.g9-seg__item--disabled {\n opacity: 0.38;\n}\n\n.g9-seg__line {\n display: flex;\n flex-direction: row;\n align-items: center;\n column-gap: 5px;\n max-width: 100%;\n min-width: 0px;\n}\n\n.g9-seg__label {\n font-size: 14px;\n font-family: var(--g9-font-text-500);\n font-weight: 500;\n white-space: nowrap;\n /* a label longer than its segment ends in «…» instead of spilling into the next (G9Hub, 2.5.7) */\n flex-shrink: 1;\n min-width: 0px;\n text-overflow: ellipsis;\n overflow: hidden;\n}\n\n.g9-seg__label--on {\n font-weight: 700;\n font-family: var(--g9-font-text-700);\n}\n\n.g9-seg__sub {\n font-size: 11px;\n font-family: var(--g9-font-text);\n opacity: 0.8;\n max-width: 100%;\n text-overflow: ellipsis;\n}\n\n.g9-seg__count {\n display: flex;\n align-items: center;\n justify-content: center;\n min-width: 18px;\n height: 18px;\n padding: 0px 5px;\n border-radius: 9px;\n}\n\n.g9-seg__count-text {\n font-size: 11px;\n font-family: var(--g9-font-text-700);\n font-weight: 700;\n}\n\n.g9-radio-group {\n display: flex;\n flex-direction: column;\n}\n\n.g9-radio {\n display: flex;\n align-items: center;\n min-height: 48px;\n column-gap: 12px;\n padding: 6px 0px;\n}\n\n.g9-radio--card {\n padding: 12px 14px;\n border-radius: var(--g9-radius-card);\n border-width: 1px;\n border-style: solid;\n border-color: var(--g9-outline-variant);\n background-color: var(--g9-surface);\n}\n\n.g9-radio--card-on {\n border-width: 2px;\n border-color: var(--g9-primary);\n background-color: var(--g9-primary-container);\n}\n\n.g9-radio--disabled {\n opacity: 0.38;\n}\n\n.g9-radio__mark {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 22px;\n height: 22px;\n border-radius: 11px;\n border-width: 2px;\n border-style: solid;\n border-color: var(--g9-outline);\n flex-shrink: 0;\n}\n\n.g9-radio__mark--on {\n border-color: var(--g9-primary);\n}\n\n.g9-radio__dot {\n width: 10px;\n height: 10px;\n border-radius: 5px;\n background-color: var(--g9-primary);\n}\n\n.g9-radio__body {\n display: flex;\n flex-direction: column;\n flex: 1;\n min-width: 0px;\n}\n\n.g9-radio__label {\n font-size: 15px;\n font-family: var(--g9-font-text);\n line-height: 24px;\n color: var(--g9-text-primary);\n}\n\n.g9-radio__desc {\n font-size: 12px;\n font-family: var(--g9-font-text);\n line-height: 20px;\n color: var(--g9-text-secondary);\n}\n\n.g9-stepper {\n display: flex;\n align-items: center;\n justify-content: space-between;\n align-self: flex-start;\n background-color: var(--g9-surface-container-high);\n}\n\n.g9-stepper--block {\n align-self: stretch;\n}\n\n.g9-stepper--add {\n display: flex;\n flex-direction: row;\n justify-content: center;\n padding: 0px 14px;\n column-gap: 6px;\n background-color: var(--g9-primary);\n}\n\n.g9-stepper__add-text {\n font-size: 14px;\n font-family: var(--g9-font-text-700);\n font-weight: 700;\n color: var(--g9-on-primary);\n}\n\n.g9-stepper__btn {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.g9-stepper__btn--off {\n opacity: 0.35;\n}\n\n/* the tray look (appearance 'tray'): the pill in the primary container, round surface buttons inside, a bold count */\n.g9-stepper--tray {\n background-color: var(--g9-primary-container);\n}\n\n.g9-stepper__btn--tray {\n background-color: var(--g9-surface);\n}\n\n.g9-stepper__value--tray {\n font-size: 17px;\n font-family: var(--g9-font-text-700);\n font-weight: 700;\n color: var(--g9-on-primary-container);\n}\n\n.g9-stepper__value {\n min-width: 28px;\n text-align: center;\n font-size: 15px;\n font-family: var(--g9-font-text-800);\n font-weight: 800;\n color: var(--g9-text-primary);\n}\n\n.g9-rating {\n display: flex;\n align-items: center;\n}\n\n.g9-rating__star {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n/* A chip's count (2.5.8). */\n.g9-chip2__count {\n display: flex;\n align-items: center;\n justify-content: center;\n min-width: 18px;\n height: 18px;\n padding: 0px 5px;\n border-radius: 9px;\n}\n\n.g9-chip2__count-text {\n font-size: 11px;\n font-weight: 700;\n font-family: var(--g9-font-text-700);\n}\n\n/* G9ChipStrip: one scrolling line (2.5.8). */\n.g9-chip-strip {\n width: 100%;\n}\n\n.g9-chip-strip__row {\n display: flex;\n align-items: center;\n column-gap: 8px;\n padding: 4px 16px;\n}\n"],"sourceRoot":""}
@@ -3,6 +3,7 @@ import { type G9HapticKind } from '@g9tm/lynxcontrols-foundation';
3
3
  import { type ReactNode } from '@lynx-js/react';
4
4
  import { type G9ControlBaseProps } from '../base/control.js';
5
5
  import { type G9Tone } from '../base/tone.js';
6
+ import { type G9NodeRef } from '../fields/use-text-input.js';
6
7
  import { type G9IconInput } from '../icon/icon.js';
7
8
  /** Props of {@link G9Chip}. */
8
9
  export interface G9ChipProps extends G9ControlBaseProps {
@@ -20,9 +21,44 @@ export interface G9ChipProps extends G9ControlBaseProps {
20
21
  /** Shows an ✕ that calls this (a tag that can be removed). */
21
22
  readonly onRemove?: () => void;
22
23
  readonly haptic?: G9HapticKind | false;
24
+ /** A count inside the chip after its label (unread in a folder; G9Hub, 2.5.8): culture digits, 99+ past 99, none at 0. */
25
+ readonly count?: number;
26
+ /**
27
+ * Anything at the chip's start instead of the icon: a person's avatar in a picked-people chip (G9PersonPicker). Sized
28
+ * by the app; keep it within the chip's height.
29
+ */
30
+ readonly leading?: ReactNode;
31
+ /** The chip's node, to scroll it into view (G9ChipStrip does). */
32
+ readonly nodeRef?: (node: G9NodeRef | null) => void;
23
33
  }
24
34
  /** One chip (SAC Chip, G9Hub Chip, ShopManager chip): a filter, a choice, a removable tag. Never wraps its label. */
25
35
  export declare const G9Chip: import("react").NamedExoticComponent<G9ChipProps>;
36
+ /** One chip of a {@link G9ChipStrip}. */
37
+ export interface G9ChipStripItem<K extends string = string> {
38
+ readonly key: K;
39
+ readonly text: string;
40
+ readonly icon?: G9IconInput;
41
+ readonly count?: number;
42
+ readonly disabled?: boolean;
43
+ }
44
+ /** Props of {@link G9ChipStrip}. */
45
+ export interface G9ChipStripProps<K extends string = string> {
46
+ readonly items: readonly G9ChipStripItem<K>[];
47
+ readonly value: K | null;
48
+ readonly onChange: (key: K) => void;
49
+ /** Its chips are `<id>_<key>`. */
50
+ readonly id?: string;
51
+ readonly className?: string;
52
+ readonly size?: G9ChipProps['size'];
53
+ readonly appearance?: G9ChipProps['appearance'];
54
+ readonly tone?: G9Tone;
55
+ readonly haptic?: G9HapticKind | false;
56
+ }
57
+ /**
58
+ * One scrolling line of chips with one chosen (G9Hub's folder tabs: all, unread, mentions, my folders with their
59
+ * unread counts; 2.5.8): the chosen chip scrolls into view whenever it changes, in reading order.
60
+ */
61
+ export declare function G9ChipStrip<K extends string = string>(props: G9ChipStripProps<K>): ReactNode;
26
62
  /** One segment. */
27
63
  export interface G9SegmentItem<K extends string = string> {
28
64
  readonly key: K;
@@ -1 +1 @@
1
- {"version":3,"file":"choice.d.ts","sourceRoot":"","sources":["../../src/toggle/choice.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AACtB,OAAO,EAAE,KAAK,YAAY,EAAY,MAAM,+BAA+B,CAAC;AAC5E,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAE,KAAK,kBAAkB,EAA+D,MAAM,iBAAiB,CAAC;AAGvH,OAAO,EAAE,KAAK,MAAM,EAAc,MAAM,cAAc,CAAC;AAGvD,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AAQxD,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,SAAS,CAAC,KAAK,EAAE,cAAc,GAAG,SAAS,CAgI1D;AAID,sCAAsC;AACtC,MAAM,WAAW,kBAAmB,SAAQ,kBAAkB;IAC5D,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,iBAAiB;IACjB,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IACtB,+CAA+C;IAC/C,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAC5B,wDAAwD;IACxD,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACpC,QAAQ,CAAC,MAAM,CAAC,EAAE,YAAY,GAAG,KAAK,CAAC;CACxC;AAKD,4FAA4F;AAC5F,wBAAgB,aAAa,CAAC,KAAK,EAAE,kBAAkB,GAAG,SAAS,CAiElE"}
@@ -1,13 +1,16 @@
1
1
  import "./choice.css";
2
- import { g9Haptic } from "@g9tm/lynxcontrols-foundation";
3
- import { memo } from "@lynx-js/react";
4
- import { g9ChildId, g9IdProps, g9RowStyle, g9TextStart, useG9Control } from "../base/control.jsx";
2
+ import { G9StringKey, g9Haptic, toNativeDigits } from "@g9tm/lynxcontrols-foundation";
3
+ import { memo, useContext, useEffect, useRef } from "@lynx-js/react";
4
+ import { g9ChildId, g9IdProps, g9Paragraph, g9RowStyle, g9SelectedA11y, g9TextStart, useG9Control } from "../base/control.jsx";
5
5
  import { useG9Press } from "../base/press.jsx";
6
6
  import { useG9SharedHeights } from "../base/sizing.jsx";
7
7
  import { toneColors } from "../base/tone.jsx";
8
8
  import { useControllableState } from "../base/use-controllable-state.jsx";
9
9
  import { G9ActivityIndicator } from "../display/activity-indicator.jsx";
10
+ import { invokeNodeWhenReady } from "../fields/use-text-input.jsx";
10
11
  import { G9Icon } from "../icon/icon.jsx";
12
+ import { G9CultureContext } from "../provider/contexts.jsx";
13
+ import { useG9Direction, useG9Strings } from "../provider/hooks.jsx";
11
14
  const tick = (kind)=>{
12
15
  if (false !== kind) g9Haptic(null != kind ? kind : 'tick');
13
16
  };
@@ -17,7 +20,8 @@ const CHIP_H = {
17
20
  lg: 40
18
21
  };
19
22
  const G9Chip = memo(function(props) {
20
- var _props_appearance, _props_tone, _props_size, _props_accessibilityLabel;
23
+ var _props_appearance, _props_tone, _props_size, _ref, _props_accessibilityLabel;
24
+ const selectedWord = useG9Strings().get(G9StringKey.Selected);
21
25
  const selected = true === props.selected;
22
26
  const control = useG9Control(props, 'g9-chip2', {
23
27
  kind: 'button',
@@ -45,7 +49,11 @@ const G9Chip = memo(function(props) {
45
49
  const c = selected ? on : off;
46
50
  const shared = useG9SharedHeights();
47
51
  const h = shared ? 'lg' === props.size ? shared.md : shared.sm : CHIP_H[null != (_props_size = props.size) ? _props_size : 'md'];
48
- return <view className={`${control.className}${'dashed' === appearance && !selected ? ' g9-chip2--dashed' : ''}`} {...control.idProps} style={control.rootStyle({
52
+ const culture = useContext(G9CultureContext);
53
+ const count = void 0 !== props.count && props.count > 0 ? toNativeDigits(props.count > 99 ? '99+' : String(props.count), null != (_ref = null == culture ? void 0 : culture.culture.numberingSystem) ? _ref : 'latin') : null;
54
+ return <view className={`${control.className}${'dashed' === appearance && !selected ? ' g9-chip2--dashed' : ''}`} {...control.idProps} {...props.nodeRef ? {
55
+ ref: props.nodeRef
56
+ } : {}} style={control.rootStyle({
49
57
  ...g9RowStyle(control.direction),
50
58
  height: `${h}px`,
51
59
  borderRadius: `${h / 2}px`,
@@ -53,14 +61,23 @@ const G9Chip = memo(function(props) {
53
61
  borderColor: selected ? on.border : 'dashed' === appearance ? 'var(--g9-primary)' : off.border,
54
62
  paddingLeft: `${props.onRemove ? 8 : 12}px`,
55
63
  paddingRight: `${props.onRemove ? 8 : 12}px`
56
- })} accessibility-element={true} accessibility-traits="button" accessibility-label={null != (_props_accessibilityLabel = props.accessibilityLabel) ? _props_accessibilityLabel : props.text} accessibility-status={selected ? 'selected' : ''} bindtap={press}>
57
- {props.icon ? <G9Icon icon={props.icon} size={h <= 26 ? 13 : 15} color={c.foreground}/> : null}
64
+ })} accessibility-element={true} accessibility-traits="button" accessibility-label={null != (_props_accessibilityLabel = props.accessibilityLabel) ? _props_accessibilityLabel : count ? `${props.text}, ${count}` : props.text} {...g9SelectedA11y(selected, selectedWord)} bindtap={press}>
65
+ {void 0 !== props.leading ? props.leading : props.icon ? <G9Icon icon={props.icon} size={h <= 26 ? 13 : 15} color={c.foreground}/> : null}
58
66
  <text className="g9-chip2__text" style={{
59
67
  color: 'dashed' !== appearance || selected ? c.foreground : 'var(--g9-primary)',
60
68
  fontSize: `${h <= 26 ? 12 : 13}px`
61
69
  }}>
62
70
  {props.text}
63
71
  </text>
72
+ {count ? <view className="g9-chip2__count" style={{
73
+ backgroundColor: selected ? 'rgba(255,255,255,0.24)' : 'var(--g9-surface-container-highest)'
74
+ }}>
75
+ <text className="g9-chip2__count-text" style={{
76
+ color: c.foreground
77
+ }}>
78
+ {count}
79
+ </text>
80
+ </view> : null}
64
81
  {props.onRemove ? <view className="g9-chip2__remove" catchtap={()=>{
65
82
  var _props_onRemove;
66
83
  tick(props.haptic);
@@ -70,6 +87,50 @@ const G9Chip = memo(function(props) {
70
87
  </view> : null}
71
88
  </view>;
72
89
  });
90
+ function G9ChipStrip(props) {
91
+ const dir = useG9Direction();
92
+ const nodes = useRef({});
93
+ useEffect(()=>{
94
+ var _nodes_current_props_value;
95
+ if (null === props.value) return;
96
+ invokeNodeWhenReady({
97
+ current: null != (_nodes_current_props_value = nodes.current[props.value]) ? _nodes_current_props_value : null
98
+ }, 'scrollIntoView', {
99
+ scrollIntoViewOptions: {
100
+ behavior: 'smooth',
101
+ block: 'nearest',
102
+ inline: 'center'
103
+ }
104
+ });
105
+ }, [
106
+ props.value
107
+ ]);
108
+ return <scroll-view className={`g9-chip-strip${props.className ? ` ${props.className}` : ''}`} scroll-orientation="horizontal" {...g9IdProps(props.id)}>
109
+ <view className="g9-chip-strip__row" style={g9RowStyle(dir)}>
110
+ {props.items.map((it)=><G9Chip key={it.key} {...props.id ? {
111
+ id: g9ChildId(props.id, it.key)
112
+ } : {}} text={it.text} {...it.icon ? {
113
+ icon: it.icon
114
+ } : {}} {...void 0 !== it.count ? {
115
+ count: it.count
116
+ } : {}} {...it.disabled ? {
117
+ disabled: true
118
+ } : {}} selected={it.key === props.value} {...props.size ? {
119
+ size: props.size
120
+ } : {}} {...props.appearance ? {
121
+ appearance: props.appearance
122
+ } : {}} {...props.tone ? {
123
+ tone: props.tone
124
+ } : {}} {...void 0 !== props.haptic ? {
125
+ haptic: props.haptic
126
+ } : {}} nodeRef={(n)=>{
127
+ nodes.current[it.key] = n;
128
+ }} onPress={()=>{
129
+ if (it.key !== props.value) props.onChange(it.key);
130
+ }}/>)}
131
+ </view>
132
+ </scroll-view>;
133
+ }
73
134
  const SEG_H = {
74
135
  sm: 32,
75
136
  md: 40,
@@ -143,6 +204,7 @@ function G9Segmented(props) {
143
204
  </view>;
144
205
  }
145
206
  const Segment = memo(function(p) {
207
+ const selectedWord = useG9Strings().get(G9StringKey.Selected);
146
208
  const press = useG9Press(p.onTap, {
147
209
  blocked: p.blocked,
148
210
  source: 'G9Segmented',
@@ -159,7 +221,7 @@ const Segment = memo(function(p) {
159
221
  return <view className={`g9-seg__item${'content' === p.fit ? ' g9-seg__item--content' : ''}${'underline' === p.appearance ? ' g9-seg__item--underline' : ''}${p.blocked ? ' g9-seg__item--disabled' : ''}`} {...g9IdProps(p.id)} style={{
160
222
  ...paint,
161
223
  borderRadius: 'underline' === p.appearance ? '0px' : `${(p.height - 6) / 2}px`
162
- }} accessibility-element={true} accessibility-traits="button" accessibility-label={p.item.label} accessibility-status={p.on ? 'selected' : ''} bindtap={press}>
224
+ }} accessibility-element={true} accessibility-traits="button" accessibility-label={p.item.label} {...g9SelectedA11y(p.on, selectedWord)} bindtap={press}>
163
225
  <view className="g9-seg__line">
164
226
  {p.item.icon ? <G9Icon icon={p.item.icon} size={15} color={fg}/> : null}
165
227
  <text className={`g9-seg__label${p.on ? ' g9-seg__label--on' : ''}`} text-maxline="1" style={{
@@ -226,22 +288,23 @@ function G9RadioGroup(props) {
226
288
  </view>;
227
289
  }
228
290
  const RadioRow = memo(function(p) {
291
+ const selectedWord = useG9Strings().get(G9StringKey.Selected);
229
292
  const press = useG9Press(p.onTap, {
230
293
  blocked: p.blocked,
231
294
  source: 'G9RadioGroup',
232
295
  guardMs: 0
233
296
  });
234
- return <view className={`g9-radio${p.cards ? ' g9-radio--card' : ''}${p.cards && p.on ? ' g9-radio--card-on' : ''}${p.blocked ? ' g9-radio--disabled' : ''}`} {...g9IdProps(p.id)} style={g9RowStyle(p.direction)} flatten={false} accessibility-element={true} accessibility-traits="button" accessibility-label={p.option.label} accessibility-status={p.on ? 'selected' : ''} bindtap={press}>
297
+ return <view className={`g9-radio${p.cards ? ' g9-radio--card' : ''}${p.cards && p.on ? ' g9-radio--card-on' : ''}${p.blocked ? ' g9-radio--disabled' : ''}`} {...g9IdProps(p.id)} style={g9RowStyle(p.direction)} flatten={false} accessibility-element={true} accessibility-traits="button" accessibility-label={p.option.label} {...g9SelectedA11y(p.on, selectedWord)} bindtap={press}>
235
298
  <view className={`g9-radio__mark${p.on ? ' g9-radio__mark--on' : ''}`}>
236
299
  {p.on ? <view className="g9-radio__dot"/> : null}
237
300
  </view>
238
301
  {p.option.icon ? <G9Icon icon={p.option.icon} size={20} color="var(--g9-text-secondary)"/> : null}
239
302
  <view className="g9-radio__body">
240
303
  <text className="g9-radio__label" style={g9TextStart(p.direction)}>
241
- {p.option.label}
304
+ {g9Paragraph(p.option.label, p.direction)}
242
305
  </text>
243
306
  {p.option.description ? <text className="g9-radio__desc" style={g9TextStart(p.direction)}>
244
- {p.option.description}
307
+ {g9Paragraph(p.option.description, p.direction)}
245
308
  </text> : null}
246
309
  </view>
247
310
  </view>;
@@ -352,6 +415,7 @@ function G9Stepper(props) {
352
415
  const STAR = (fill, stroke)=>`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2.8l2.85 5.78 6.38.93-4.62 4.5 1.09 6.35L12 17.36l-5.7 3 1.09-6.35-4.62-4.5 6.38-.93z" fill="${fill}" stroke="${stroke}" stroke-width="1.5" stroke-linejoin="round"/></svg>`;
353
416
  function G9RatingInput(props) {
354
417
  var _props_max, _props_defaultValue, _props_size;
418
+ const selectedWord = useG9Strings().get(G9StringKey.Selected);
355
419
  const max = null != (_props_max = props.max) ? _props_max : 5;
356
420
  const [value, setValue] = useControllableState({
357
421
  value: props.value,
@@ -389,7 +453,7 @@ function G9RatingInput(props) {
389
453
  return <view key={n} className="g9-rating__star" {...g9IdProps(g9ChildId(props.id, String(n)))} style={{
390
454
  width: `${Math.max(44, size)}px`,
391
455
  height: `${Math.max(44, size)}px`
392
- }} accessibility-element={!props.readOnly} accessibility-traits="button" accessibility-label={null != (_ref = null == (_props_labels = props.labels) ? void 0 : _props_labels[i]) ? _ref : String(n)} accessibility-status={on ? 'selected' : ''} {...props.readOnly || control.disabled ? {} : {
456
+ }} accessibility-element={!props.readOnly} accessibility-traits="button" accessibility-label={null != (_ref = null == (_props_labels = props.labels) ? void 0 : _props_labels[i]) ? _ref : String(n)} {...g9SelectedA11y(on, selectedWord)} {...props.readOnly || control.disabled ? {} : {
393
457
  bindtap: ()=>{
394
458
  tick(props.haptic);
395
459
  setValue(n === value ? n - 1 : n);
@@ -403,4 +467,4 @@ function G9RatingInput(props) {
403
467
  })}
404
468
  </view>;
405
469
  }
406
- export { G9Chip, G9RadioGroup, G9RatingInput, G9Segmented, G9Stepper };
470
+ export { G9Chip, G9ChipStrip, G9RadioGroup, G9RatingInput, G9Segmented, G9Stepper };
@@ -1,6 +1,6 @@
1
1
  export { checkBoxColors, checkBoxSvg, G9CheckBox, type G9CheckBoxColors, type G9CheckBoxHandle, type G9CheckBoxProps, g9CheckBoxMetrics, } from './checkbox.js';
2
2
  export { checkMarkPath, clamp01, fillAmount, firstArmLength, type G9CheckMarkGeometry, type G9CheckMarkTrim, g9CheckFillPhaseEnd, g9CheckGeometry, g9CheckMarkPhaseStart, g9DashGeometry, markAmount, nextOnTap, resolveCheckMarkGeometry, secondArmLength, targetMorph, targetProgress, trimCheckMark, } from './checkbox-math.js';
3
3
  export { G9ChipGroup, type G9ChipGroupProps } from './chip-group.js';
4
- export { G9Chip, type G9ChipProps, G9RadioGroup, type G9RadioGroupProps, type G9RadioOption, G9RatingInput, type G9RatingInputProps, G9Segmented, type G9SegmentedProps, type G9SegmentItem, G9Stepper, type G9StepperProps, } from './choice.js';
4
+ export { G9Chip, type G9ChipProps, G9ChipStrip, type G9ChipStripItem, type G9ChipStripProps, G9RadioGroup, type G9RadioGroupProps, type G9RadioOption, G9RatingInput, type G9RatingInputProps, G9Segmented, type G9SegmentedProps, type G9SegmentItem, G9Stepper, type G9StepperProps, } from './choice.js';
5
5
  export { G9Switch, G9SwitchGroup, type G9SwitchGroupProps, type G9SwitchHandle, type G9SwitchProps } from './switch.js';
6
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/toggle/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,WAAW,EACX,UAAU,EACV,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,iBAAiB,GAClB,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,aAAa,EACb,OAAO,EACP,UAAU,EACV,cAAc,EACd,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,mBAAmB,EACnB,eAAe,EACf,qBAAqB,EACrB,cAAc,EACd,UAAU,EACV,SAAS,EACT,wBAAwB,EACxB,eAAe,EACf,WAAW,EACX,cAAc,EACd,aAAa,GACd,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAClE,OAAO,EACL,MAAM,EACN,KAAK,WAAW,EAChB,YAAY,EACZ,KAAK,iBAAiB,EACtB,KAAK,aAAa,EAClB,aAAa,EACb,KAAK,kBAAkB,EACvB,WAAW,EACX,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,SAAS,EACT,KAAK,cAAc,GACpB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,KAAK,kBAAkB,EAAE,KAAK,cAAc,EAAE,KAAK,aAAa,EAAE,MAAM,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/toggle/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,WAAW,EACX,UAAU,EACV,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,iBAAiB,GAClB,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,aAAa,EACb,OAAO,EACP,UAAU,EACV,cAAc,EACd,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,mBAAmB,EACnB,eAAe,EACf,qBAAqB,EACrB,cAAc,EACd,UAAU,EACV,SAAS,EACT,wBAAwB,EACxB,eAAe,EACf,WAAW,EACX,cAAc,EACd,aAAa,GACd,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAClE,OAAO,EACL,MAAM,EACN,KAAK,WAAW,EAChB,WAAW,EACX,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,YAAY,EACZ,KAAK,iBAAiB,EACtB,KAAK,aAAa,EAClB,aAAa,EACb,KAAK,kBAAkB,EACvB,WAAW,EACX,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,SAAS,EACT,KAAK,cAAc,GACpB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,KAAK,kBAAkB,EAAE,KAAK,cAAc,EAAE,KAAK,aAAa,EAAE,MAAM,UAAU,CAAC"}
@@ -1,5 +1,5 @@
1
1
  export { G9CheckBox, checkBoxColors, checkBoxSvg, g9CheckBoxMetrics } from "./checkbox.jsx";
2
2
  export { checkMarkPath, clamp01, fillAmount, firstArmLength, g9CheckFillPhaseEnd, g9CheckGeometry, g9CheckMarkPhaseStart, g9DashGeometry, markAmount, nextOnTap, resolveCheckMarkGeometry, secondArmLength, targetMorph, targetProgress, trimCheckMark } from "./checkbox-math.jsx";
3
3
  export { G9ChipGroup } from "./chip-group.jsx";
4
- export { G9Chip, G9RadioGroup, G9RatingInput, G9Segmented, G9Stepper } from "./choice.jsx";
4
+ export { G9Chip, G9ChipStrip, G9RadioGroup, G9RatingInput, G9Segmented, G9Stepper } from "./choice.jsx";
5
5
  export { G9Switch, G9SwitchGroup } from "./switch.jsx";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@g9tm/lynxcontrols",
3
- "version": "2.5.7",
3
+ "version": "2.5.9",
4
4
  "description": "ReactLynx controls and overlay infrastructure: provider/host, sheets, popups, toasts, fields, buttons, pickers, tab view, tab bar, edge panel, swipe rows.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -23,11 +23,21 @@
23
23
  "types": "./dist/guide/index.d.ts",
24
24
  "default": "./dist/guide/index.jsx"
25
25
  },
26
+ "./reader": {
27
+ "source": "./src/reader/index.ts",
28
+ "types": "./dist/reader/index.d.ts",
29
+ "default": "./dist/reader/index.jsx"
30
+ },
26
31
  "./route": {
27
32
  "source": "./src/route/index.ts",
28
33
  "types": "./dist/route/index.d.ts",
29
34
  "default": "./dist/route/index.jsx"
30
35
  },
36
+ "./appearance": {
37
+ "source": "./src/appearance/index.ts",
38
+ "types": "./dist/appearance/index.d.ts",
39
+ "default": "./dist/appearance/index.jsx"
40
+ },
31
41
  "./base": {
32
42
  "source": "./src/base/index.ts",
33
43
  "types": "./dist/base/index.d.ts",
@@ -43,6 +53,11 @@
43
53
  "types": "./dist/host/index.d.ts",
44
54
  "default": "./dist/host/index.jsx"
45
55
  },
56
+ "./dashboard": {
57
+ "source": "./src/dashboard/index.ts",
58
+ "types": "./dist/dashboard/index.d.ts",
59
+ "default": "./dist/dashboard/index.jsx"
60
+ },
46
61
  "./deferred": {
47
62
  "source": "./src/deferred/index.ts",
48
63
  "types": "./dist/deferred/index.d.ts",
@@ -182,6 +197,11 @@
182
197
  "types": "./dist/effects/index.d.ts",
183
198
  "default": "./dist/effects/index.jsx"
184
199
  },
200
+ "./notifications": {
201
+ "source": "./src/notifications/index.ts",
202
+ "types": "./dist/notifications/index.d.ts",
203
+ "default": "./dist/notifications/index.jsx"
204
+ },
185
205
  "./orb": {
186
206
  "source": "./src/orb/index.ts",
187
207
  "types": "./dist/orb/index.d.ts",
@@ -214,7 +234,7 @@
214
234
  "build": "rslib build"
215
235
  },
216
236
  "dependencies": {
217
- "@g9tm/lynxcontrols-foundation": "2.5.7"
237
+ "@g9tm/lynxcontrols-foundation": "2.5.9"
218
238
  },
219
239
  "peerDependencies": {
220
240
  "@lynx-js/react": ">=0.129.3 <0.130.0",
@@ -10,7 +10,11 @@ Generated from the installed packages' catalogs (`<package>/catalog`): one line
10
10
 
11
11
  ## @g9tm/lynxcontrols-calendar
12
12
 
13
- - `@g9tm/lynxcontrols-calendar`: G9AgendaView, G9DateInput, G9MiniMonth, G9MonthDayPicker, G9MonthView, G9RepeatPicker, G9TimeGrid, G9ZonePicker → `components/calendar.md`
13
+ - `@g9tm/lynxcontrols-calendar`: G9AgendaView, G9BirthdayField, G9DateInput, G9EventCard, G9FindTime, G9MiniMonth, G9MonthDayPicker, G9MonthView, G9RepeatPicker, G9TimeGrid, G9TimeListPicker, G9TodayWidget, G9WorkingHoursEditor, G9ZonePicker → `components/calendar-1.md`, `components/calendar-2.md`
14
+
15
+ ## @g9tm/lynxcontrols-canvas
16
+
17
+ - `@g9tm/lynxcontrols-canvas`: G9Canvas, G9CanvasStylePanel → `components/canvas.md`
14
18
 
15
19
  ## @g9tm/lynxcontrols-charts
16
20
 
@@ -18,7 +22,7 @@ Generated from the installed packages' catalogs (`<package>/catalog`): one line
18
22
 
19
23
  ## @g9tm/lynxcontrols-chat
20
24
 
21
- - `@g9tm/lynxcontrols-chat`: G9ChatComposer, G9ChatThread, G9ConversationRow, G9EmojiPicker, G9MessageBubble, G9TypingDots → `components/chat.md`
25
+ - `@g9tm/lynxcontrols-chat`: G9ChatComposer, G9ChatThread, G9ConversationRow, G9EmojiLibrary, G9EmojiPicker, G9FileCard, G9GifPicker, G9LinkPreview, G9MessageBubble, G9MessageMenu, G9MessageMeta, G9MessageText, G9PersonPicker, G9PinnedBar, G9ReactionBar, G9SlashSuggestions, G9StickerPicker, G9TypingDots → `components/chat-1.md`, `components/chat-2.md`
22
26
 
23
27
  ## @g9tm/lynxcontrols-commerce
24
28
 
@@ -27,13 +31,15 @@ Generated from the installed packages' catalogs (`<package>/catalog`): one line
27
31
  ## @g9tm/lynxcontrols
28
32
 
29
33
  - `@g9tm/lynxcontrols/anchor`: G9Anchor, G9ScrollerScope → `components/anchor.md`
34
+ - `@g9tm/lynxcontrols/appearance`: G9AppearancePage, G9ContrastPanel, G9PersonalThemeSheet, G9WallpaperSwatch → `components/appearance.md`
30
35
  - `@g9tm/lynxcontrols/base`: G9CornerBadge, G9Pressable → `components/base.md`
31
36
  - `@g9tm/lynxcontrols/button`: G9Button, G9HeaderActionButton, G9IconButton, G9NavCard, G9SafeButton, G9SafeIconButton, G9VerticalIconTextButton → `components/button.md`
32
37
  - `@g9tm/lynxcontrols/cascade`: G9CascadePanel → `components/cascade.md`
33
38
  - `@g9tm/lynxcontrols/commands`: G9CommandPalette, G9ShortcutList, G9ShortcutsSheet → `components/commands.md`
39
+ - `@g9tm/lynxcontrols/dashboard`: G9DashboardCustomizeSheet, G9DashboardGrid, G9WidgetSkeleton, G9WidgetSlot → `components/dashboard.md`
34
40
  - `@g9tm/lynxcontrols/deferred`: G9DeferredContent → `components/deferred.md`
35
41
  - `@g9tm/lynxcontrols/design`: G9DesignNode, G9DesignScope → `components/design.md`
36
- - `@g9tm/lynxcontrols/display`: G9ActivityIndicator, G9Avatar, G9Badge, G9CameFromMark, G9CultureDateTimeLabel, G9Delta, G9EmptyState, G9ErrorBoundary, G9Image, G9InlineMessage, G9Keycap, G9Kpi, G9KpiGrid, G9LiveBadge, G9LiveDot, G9LoadState, G9LockOverlay, G9Photo, G9ProgressBar, G9ProgressRing, G9RevealText, G9Separator, G9SheetSkeleton, G9ShimmerBand, G9Skeleton, G9SkeletonPage, G9SkeletonRows, G9StatusPill, G9StepTracker, G9Tag, G9ThemePreviewCard, G9TitleWithLine, G9Wave → `components/display-1.md`, `components/display-2.md`, `components/display-3.md`
42
+ - `@g9tm/lynxcontrols/display`: G9ActivityIndicator, G9Avatar, G9Badge, G9CameFromMark, G9CodeBlock, G9CultureDateTimeLabel, G9Delta, G9EmptyState, G9ErrorBoundary, G9Image, G9InlineMessage, G9Keycap, G9Kpi, G9KpiGrid, G9LiveBadge, G9LiveDot, G9LoadState, G9LockOverlay, G9Photo, G9ProgressBar, G9ProgressRing, G9RevealText, G9SecretValue, G9Separator, G9SheetSkeleton, G9ShimmerBand, G9Skeleton, G9SkeletonPage, G9SkeletonRows, G9StatusPill, G9StepTracker, G9Tag, G9ThemePreviewCard, G9TitleWithLine, G9Wave → `components/display-1.md`, `components/display-2.md`, `components/display-3.md`
37
43
  - `@g9tm/lynxcontrols/edge-panel`: G9EdgePanel → `components/edge-panel.md`
38
44
  - `@g9tm/lynxcontrols/effects`: G9AnimatedCheck, G9Confetti, G9SuccessHeader → `components/effects.md`
39
45
  - `@g9tm/lynxcontrols/expander`: G9Expander → `components/expander.md`
@@ -43,6 +49,7 @@ Generated from the installed packages' catalogs (`<package>/catalog`): one line
43
49
  - `@g9tm/lynxcontrols/icon`: G9Art, G9Icon, G9IconSlot, G9Swatch → `components/icon.md`
44
50
  - `@g9tm/lynxcontrols/layout`: G9ActionRow, G9Bento, G9Card, G9Columns, G9HScroll, G9Page, G9PlaceScroll, G9SaveBar, G9ScrollSpyBar, G9Section, G9SectionHeader, G9SplitPane, G9UnsavedBar → `components/layout-1.md`, `components/layout-2.md`
45
51
  - `@g9tm/lynxcontrols/list`: G9DragList, G9ListRow, G9Pager, G9PullToRefresh, G9SettingsGroup, G9SwitchRow, G9VirtualList → `components/list.md`
52
+ - `@g9tm/lynxcontrols/notifications`: G9NotificationCenter, G9NotificationCenterPanel → `components/notifications.md`
46
53
  - `@g9tm/lynxcontrols/orb`: G9FloatingOrb, G9HoldButton → `components/orb.md`
47
54
  - `@g9tm/lynxcontrols/pickers`: DateTimeSheetBody, G9ComboBox, G9DateTimePicker, G9DayStepper, G9Picker, G9TimeSpanPicker, G9WheelColumn, PickerField, PickerSheetHeader, SelectionValueIcon, TimeSpanSheetBody → `components/pickers.md`
48
55
  - `@g9tm/lynxcontrols/plus-button`: G9PlusButton → `components/plus-button.md`
@@ -50,14 +57,15 @@ Generated from the installed packages' catalogs (`<package>/catalog`): one line
50
57
  - `@g9tm/lynxcontrols/popup`: G9PopupDragHandle, G9PopupView, PopupFrame, PopupInputForm → `components/popup.md`
51
58
  - `@g9tm/lynxcontrols/provider`: G9Activity, G9DirectionScope, G9KeepAlive, G9Provider → `components/provider.md`
52
59
  - `@g9tm/lynxcontrols/range-slider`: G9RangeSlider, G9StepSlider → `components/range-slider.md`
53
- - `@g9tm/lynxcontrols/route`: G9Place → `components/route.md`
60
+ - `@g9tm/lynxcontrols/reader`: G9ReaderSheet, G9ReaderView → `components/reader.md`
61
+ - `@g9tm/lynxcontrols/route`: G9PathNavigator, G9Place → `components/route.md`
54
62
  - `@g9tm/lynxcontrols/sheet`: G9LoadableSheetContent, G9ProcessingSheetContent, G9Sheet, G9SheetBackdropScope, G9SheetFooter, G9SheetFooterBar, G9SheetFrame, G9SheetHeader, G9SheetScrollIndicator, G9SheetScrollRegion → `components/sheet.md`
55
63
  - `@g9tm/lynxcontrols/shell`: G9AppShell, G9ConnectionBanner, G9IconRail, G9SideNav, G9TopBar, G9UpdateBar → `components/shell.md`
56
64
  - `@g9tm/lynxcontrols/survey`: G9AllocationInput, G9ChoiceList, G9ScaleInput → `components/survey.md`
57
65
  - `@g9tm/lynxcontrols/swipe`: G9SwipeGroup, G9SwipeView → `components/swipe.md`
58
66
  - `@g9tm/lynxcontrols/tab-bar`: G9FlatTabBar, G9TabBar → `components/tab-bar.md`
59
67
  - `@g9tm/lynxcontrols/tabs`: G9TabView → `components/tabs.md`
60
- - `@g9tm/lynxcontrols/toggle`: G9CheckBox, G9Chip, G9ChipGroup, G9RadioGroup, G9RatingInput, G9Segmented, G9Stepper, G9Switch, G9SwitchGroup → `components/toggle.md`
68
+ - `@g9tm/lynxcontrols/toggle`: G9CheckBox, G9Chip, G9ChipGroup, G9ChipStrip, G9RadioGroup, G9RatingInput, G9Segmented, G9Stepper, G9Switch, G9SwitchGroup → `components/toggle.md`
61
69
 
62
70
  ## @g9tm/lynxcontrols-datagrid
63
71
 
@@ -73,8 +81,16 @@ Generated from the installed packages' catalogs (`<package>/catalog`): one line
73
81
 
74
82
  ## @g9tm/lynxcontrols-media
75
83
 
76
- - `@g9tm/lynxcontrols-media`: G9BlurhashView, G9DropZone, G9ImageCropper, G9Lightbox, G9MediaGrid, G9MediaPager, G9VoicePlayer → `components/media.md`
84
+ - `@g9tm/lynxcontrols-media`: G9BlurhashView, G9CallControls, G9CallStage, G9CallTileView, G9Captcha, G9ClipPlayer, G9DropZone, G9ImageCropper, G9IncomingCall, G9Lightbox, G9MediaGrid, G9MediaPager, G9QualityBars, G9SelfPip, G9VideoNote, G9VoicePlayer → `components/media-1.md`, `components/media-2.md`
77
85
 
78
86
  ## @g9tm/lynxcontrols-pilot
79
87
 
80
88
  - `@g9tm/lynxcontrols-pilot`: G9PilotHost, G9PilotMask, G9PilotPanel → `components/pilot.md`
89
+
90
+ ## @g9tm/lynxcontrols-projects
91
+
92
+ - `@g9tm/lynxcontrols-projects`: G9Board, G9RuleBuilder, G9TaskCard, G9Timeline → `components/projects.md`
93
+
94
+ ## @g9tm/lynxcontrols-richtext
95
+
96
+ - `@g9tm/lynxcontrols-richtext`: G9RichLines, G9RichText, G9RichTextEditor → `components/richtext.md`
@@ -0,0 +1,70 @@
1
+ # `@g9tm/lynxcontrols/appearance` (generated)
2
+
3
+ # G9AppearancePage
4
+
5
+ `import { G9AppearancePage } from '@g9tm/lynxcontrols/appearance';`
6
+
7
+ Settings → Appearance: mode, themes, accent, wallpaper, text size, density, effects.
8
+
9
+ Props:
10
+ - `onChange`: (settings: G9AppearanceSettings) => void
11
+ - `settings`: object
12
+ - `systemScheme`: 'light' | 'dark'
13
+ - `themes`: object[]
14
+ - `onCreateTheme?`: () => void
15
+ - `onEditTheme?`: (theme: G9ThemeDefinition) => void
16
+ - `accents?`: object[]
17
+ - `language?`: string
18
+
19
+ Example: `<G9AppearancePage onChange={() => {}} settings={settings} systemScheme="light" themes={themes} />`
20
+
21
+ # G9ContrastPanel
22
+
23
+ `import { G9ContrastPanel } from '@g9tm/lynxcontrols/appearance';`
24
+
25
+ A palette's contrast report: a sample, the ratio, AA / AAA and a fix for each failing pair.
26
+
27
+ Props:
28
+ - `palette`: object
29
+ - `onFix?`: (foreground: string, value: string) => void
30
+ - `onlyFailures?`: boolean
31
+ - `pairs?`: object[]
32
+ - `rules?`: object[]
33
+ - `words?`: object
34
+
35
+ Example: `<G9ContrastPanel palette={palette} />`
36
+
37
+ # G9PersonalThemeSheet
38
+
39
+ `import { G9PersonalThemeSheet } from '@g9tm/lynxcontrols/appearance';`
40
+
41
+ The personal theme editor: base, accent, surfaces, mode, wallpaper, a live preview and its contrast.
42
+
43
+ Props:
44
+ - `bases`: object[]
45
+ - `onClose`: () => void
46
+ - `onSave`: (theme: G9ThemeDefinition, draft: G9PersonalThemeDraft) => void
47
+ - `open`: boolean
48
+ - `onDelete?`: (id: string) => void
49
+ - `onExport?`: (theme: G9ThemeDefinition) => void
50
+ - `accents?`: object[]
51
+ - `draft?`: object
52
+
53
+ Example: `<G9PersonalThemeSheet bases={bases} onClose={() => {}} onSave={() => {}} open />`
54
+
55
+ # G9WallpaperSwatch
56
+
57
+ `import { G9WallpaperSwatch } from '@g9tm/lynxcontrols/appearance';`
58
+
59
+ A wallpaper as a small swatch in the palette's colours, with its name and a ring when chosen.
60
+
61
+ Props:
62
+ - `palette`: object
63
+ - `scheme`: 'light' | 'dark'
64
+ - `wallpaper`: object
65
+ - `label?`: string
66
+ - `selected?`: boolean
67
+ - `onPress?`: () => void
68
+ - `height?`: number = 56
69
+
70
+ Example: `<G9WallpaperSwatch palette={palette} scheme="light" wallpaper={wallpaper} />`
@@ -14,7 +14,7 @@ Props:
14
14
  - `onValueChange?`: (value: string, details: { readonly source: G9BarcodeValueSource; }) => void
15
15
  - `disabled?`: boolean = false
16
16
  - `confirmType?`: 'search' | 'done' | 'send' | 'go' | 'next' = "done"
17
- - `inputType?`: 'number' | 'default' | 'email' | 'phone' | 'custom' | 'url' | 'letters' | 'decimal' | 'signedNumber' | 'signedDecimal' | 'lettersAndNumbers' | 'lettersNumbersSpace' | 'persianLetters' | 'persianLettersAndNumbers' | 'multilingualLettersAndNumbers' | 'noSpecialChars' = "default"
17
+ - `inputType?`: 'number' | 'custom' | 'default' | 'email' | 'phone' | 'url' | 'letters' | 'decimal' | 'signedNumber' | 'signedDecimal' | 'lettersAndNumbers' | 'lettersNumbersSpace' | 'persianLetters' | 'persianLettersAndNumbers' | 'multilingualLettersAndNumbers' | 'noSpecialChars' = "default"
18
18
 
19
19
  Example: `<G9BarcodeTextEntry />`
20
20