@senvenli/react 0.0.0-stage → 0.1.0

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 (636) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +32 -2
  3. package/dist/action/button-group.d.ts +26 -0
  4. package/dist/action/button-group.js +12 -0
  5. package/dist/action/button-group.js.map +1 -0
  6. package/dist/action/button.d.ts +42 -0
  7. package/dist/action/button.js +58 -0
  8. package/dist/action/button.js.map +1 -0
  9. package/dist/action/close-button.d.ts +12 -0
  10. package/dist/action/close-button.js +13 -0
  11. package/dist/action/close-button.js.map +1 -0
  12. package/dist/action/copy-button.d.ts +21 -0
  13. package/dist/action/copy-button.js +38 -0
  14. package/dist/action/copy-button.js.map +1 -0
  15. package/dist/action/fab.d.ts +29 -0
  16. package/dist/action/fab.js +57 -0
  17. package/dist/action/fab.js.map +1 -0
  18. package/dist/action/files.d.ts +70 -0
  19. package/dist/action/files.js +156 -0
  20. package/dist/action/files.js.map +1 -0
  21. package/dist/action/index.d.ts +23 -0
  22. package/dist/action/index.js +16 -0
  23. package/dist/action/index.js.map +1 -0
  24. package/dist/action/language-names.d.ts +19 -0
  25. package/dist/action/language-names.js +79 -0
  26. package/dist/action/language-names.js.map +1 -0
  27. package/dist/action/language-switcher.d.ts +57 -0
  28. package/dist/action/language-switcher.js +53 -0
  29. package/dist/action/language-switcher.js.map +1 -0
  30. package/dist/action/link-button.d.ts +57 -0
  31. package/dist/action/link-button.js +48 -0
  32. package/dist/action/link-button.js.map +1 -0
  33. package/dist/action/link.d.ts +24 -0
  34. package/dist/action/link.js +18 -0
  35. package/dist/action/link.js.map +1 -0
  36. package/dist/action/pressable.d.ts +40 -0
  37. package/dist/action/pressable.js +65 -0
  38. package/dist/action/pressable.js.map +1 -0
  39. package/dist/action/styles.d.ts +60 -0
  40. package/dist/action/styles.js +109 -0
  41. package/dist/action/styles.js.map +1 -0
  42. package/dist/action/theme-script.d.ts +12 -0
  43. package/dist/action/theme-script.js +23 -0
  44. package/dist/action/theme-script.js.map +1 -0
  45. package/dist/action/theme-switcher.d.ts +43 -0
  46. package/dist/action/theme-switcher.js +260 -0
  47. package/dist/action/theme-switcher.js.map +1 -0
  48. package/dist/action/theme-toggle.d.ts +43 -0
  49. package/dist/action/theme-toggle.js +259 -0
  50. package/dist/action/theme-toggle.js.map +1 -0
  51. package/dist/action/toggle.d.ts +44 -0
  52. package/dist/action/toggle.js +28 -0
  53. package/dist/action/toggle.js.map +1 -0
  54. package/dist/action/touch-target.d.ts +9 -0
  55. package/dist/action/touch-target.js +14 -0
  56. package/dist/action/touch-target.js.map +1 -0
  57. package/dist/charts/axis-width.d.ts +186 -0
  58. package/dist/charts/axis-width.js +1262 -0
  59. package/dist/charts/axis-width.js.map +1 -0
  60. package/dist/charts/bar-public.d.ts +16 -0
  61. package/dist/charts/bar-public.js +16 -0
  62. package/dist/charts/bar-public.js.map +1 -0
  63. package/dist/charts/chart-parts.d.ts +136 -0
  64. package/dist/charts/chart-parts.js +160 -0
  65. package/dist/charts/chart-parts.js.map +1 -0
  66. package/dist/charts/core-charts.d.ts +157 -0
  67. package/dist/charts/core-charts.js +505 -0
  68. package/dist/charts/core-charts.js.map +1 -0
  69. package/dist/charts/index.d.ts +12 -0
  70. package/dist/charts/index.js +8 -0
  71. package/dist/charts/index.js.map +1 -0
  72. package/dist/charts/list-charts.d.ts +124 -0
  73. package/dist/charts/list-charts.js +308 -0
  74. package/dist/charts/list-charts.js.map +1 -0
  75. package/dist/charts/more-charts.d.ts +138 -0
  76. package/dist/charts/more-charts.js +284 -0
  77. package/dist/charts/more-charts.js.map +1 -0
  78. package/dist/charts/report-charts.d.ts +138 -0
  79. package/dist/charts/report-charts.js +370 -0
  80. package/dist/charts/report-charts.js.map +1 -0
  81. package/dist/charts/value-tick.d.ts +178 -0
  82. package/dist/charts/value-tick.js +240 -0
  83. package/dist/charts/value-tick.js.map +1 -0
  84. package/dist/collection/data-table-url-hook.d.ts +34 -0
  85. package/dist/collection/data-table-url-hook.js +70 -0
  86. package/dist/collection/data-table-url-hook.js.map +1 -0
  87. package/dist/collection/data-table-url.d.ts +30 -0
  88. package/dist/collection/data-table-url.js +48 -0
  89. package/dist/collection/data-table-url.js.map +1 -0
  90. package/dist/collection/data-table.d.ts +112 -0
  91. package/dist/collection/data-table.js +188 -0
  92. package/dist/collection/data-table.js.map +1 -0
  93. package/dist/collection/grid-list-public.d.ts +18 -0
  94. package/dist/collection/grid-list-public.js +19 -0
  95. package/dist/collection/grid-list-public.js.map +1 -0
  96. package/dist/collection/grid-list.d.ts +73 -0
  97. package/dist/collection/grid-list.js +46 -0
  98. package/dist/collection/grid-list.js.map +1 -0
  99. package/dist/collection/index.d.ts +14 -0
  100. package/dist/collection/index.js +8 -0
  101. package/dist/collection/index.js.map +1 -0
  102. package/dist/collection/list.d.ts +61 -0
  103. package/dist/collection/list.js +38 -0
  104. package/dist/collection/list.js.map +1 -0
  105. package/dist/collection/selection-checkbox.d.ts +5 -0
  106. package/dist/collection/selection-checkbox.js +13 -0
  107. package/dist/collection/selection-checkbox.js.map +1 -0
  108. package/dist/collection/table.d.ts +91 -0
  109. package/dist/collection/table.js +183 -0
  110. package/dist/collection/table.js.map +1 -0
  111. package/dist/collection/tree.d.ts +31 -0
  112. package/dist/collection/tree.js +22 -0
  113. package/dist/collection/tree.js.map +1 -0
  114. package/dist/color/color.d.ts +87 -0
  115. package/dist/color/color.js +200 -0
  116. package/dist/color/color.js.map +1 -0
  117. package/dist/color/contrast.d.ts +34 -0
  118. package/dist/color/contrast.js +44 -0
  119. package/dist/color/contrast.js.map +1 -0
  120. package/dist/color/index.d.ts +4 -0
  121. package/dist/color/index.js +5 -0
  122. package/dist/color/index.js.map +1 -0
  123. package/dist/date/calendar.d.ts +71 -0
  124. package/dist/date/calendar.js +291 -0
  125. package/dist/date/calendar.js.map +1 -0
  126. package/dist/date/fields.d.ts +174 -0
  127. package/dist/date/fields.js +250 -0
  128. package/dist/date/fields.js.map +1 -0
  129. package/dist/date/index.d.ts +7 -0
  130. package/dist/date/index.js +6 -0
  131. package/dist/date/index.js.map +1 -0
  132. package/dist/date/month-grid.d.ts +31 -0
  133. package/dist/date/month-grid.js +115 -0
  134. package/dist/date/month-grid.js.map +1 -0
  135. package/dist/date/pickers.d.ts +118 -0
  136. package/dist/date/pickers.js +176 -0
  137. package/dist/date/pickers.js.map +1 -0
  138. package/dist/date/public.d.ts +25 -0
  139. package/dist/date/public.js +24 -0
  140. package/dist/date/public.js.map +1 -0
  141. package/dist/date/segments.d.ts +153 -0
  142. package/dist/date/segments.js +433 -0
  143. package/dist/date/segments.js.map +1 -0
  144. package/dist/defaults.d.ts +74 -0
  145. package/dist/defaults.js +100 -0
  146. package/dist/defaults.js.map +1 -0
  147. package/dist/density.d.ts +2 -0
  148. package/dist/density.js +2 -0
  149. package/dist/density.js.map +1 -0
  150. package/dist/display/avatar.d.ts +29 -0
  151. package/dist/display/avatar.js +71 -0
  152. package/dist/display/avatar.js.map +1 -0
  153. package/dist/display/badge.d.ts +65 -0
  154. package/dist/display/badge.js +99 -0
  155. package/dist/display/badge.js.map +1 -0
  156. package/dist/display/card.d.ts +72 -0
  157. package/dist/display/card.js +91 -0
  158. package/dist/display/card.js.map +1 -0
  159. package/dist/display/carousel.d.ts +47 -0
  160. package/dist/display/carousel.js +214 -0
  161. package/dist/display/carousel.js.map +1 -0
  162. package/dist/display/description-list.d.ts +25 -0
  163. package/dist/display/description-list.js +36 -0
  164. package/dist/display/description-list.js.map +1 -0
  165. package/dist/display/icon-aliases.d.ts +1 -0
  166. package/dist/display/icon-aliases.js +259 -0
  167. package/dist/display/icon-aliases.js.map +1 -0
  168. package/dist/display/icon-names.d.ts +4 -0
  169. package/dist/display/icon-names.js +2 -0
  170. package/dist/display/icon-names.js.map +1 -0
  171. package/dist/display/icon.d.ts +51 -0
  172. package/dist/display/icon.js +96 -0
  173. package/dist/display/icon.js.map +1 -0
  174. package/dist/display/image-crop.d.ts +106 -0
  175. package/dist/display/image-crop.js +117 -0
  176. package/dist/display/image-crop.js.map +1 -0
  177. package/dist/display/image-cropper.d.ts +68 -0
  178. package/dist/display/image-cropper.js +284 -0
  179. package/dist/display/image-cropper.js.map +1 -0
  180. package/dist/display/image-viewer.d.ts +54 -0
  181. package/dist/display/image-viewer.js +84 -0
  182. package/dist/display/image-viewer.js.map +1 -0
  183. package/dist/display/image.d.ts +26 -0
  184. package/dist/display/image.js +17 -0
  185. package/dist/display/image.js.map +1 -0
  186. package/dist/display/index.d.ts +29 -0
  187. package/dist/display/index.js +16 -0
  188. package/dist/display/index.js.map +1 -0
  189. package/dist/display/iso-chip.d.ts +19 -0
  190. package/dist/display/iso-chip.js +21 -0
  191. package/dist/display/iso-chip.js.map +1 -0
  192. package/dist/display/kbd.d.ts +11 -0
  193. package/dist/display/kbd.js +33 -0
  194. package/dist/display/kbd.js.map +1 -0
  195. package/dist/display/lozenge.d.ts +30 -0
  196. package/dist/display/lozenge.js +55 -0
  197. package/dist/display/lozenge.js.map +1 -0
  198. package/dist/display/scroll-area.d.ts +29 -0
  199. package/dist/display/scroll-area.js +95 -0
  200. package/dist/display/scroll-area.js.map +1 -0
  201. package/dist/display/separator.d.ts +13 -0
  202. package/dist/display/separator.js +24 -0
  203. package/dist/display/separator.js.map +1 -0
  204. package/dist/display/stat.d.ts +35 -0
  205. package/dist/display/stat.js +41 -0
  206. package/dist/display/stat.js.map +1 -0
  207. package/dist/display/timeline.d.ts +44 -0
  208. package/dist/display/timeline.js +111 -0
  209. package/dist/display/timeline.js.map +1 -0
  210. package/dist/display/typography.d.ts +37 -0
  211. package/dist/display/typography.js +53 -0
  212. package/dist/display/typography.js.map +1 -0
  213. package/dist/display/visually-hidden.d.ts +14 -0
  214. package/dist/display/visually-hidden.js +10 -0
  215. package/dist/display/visually-hidden.js.map +1 -0
  216. package/dist/feedback/banner.d.ts +46 -0
  217. package/dist/feedback/banner.js +157 -0
  218. package/dist/feedback/banner.js.map +1 -0
  219. package/dist/feedback/cooldown.d.ts +17 -0
  220. package/dist/feedback/cooldown.js +59 -0
  221. package/dist/feedback/cooldown.js.map +1 -0
  222. package/dist/feedback/empty-state.d.ts +35 -0
  223. package/dist/feedback/empty-state.js +39 -0
  224. package/dist/feedback/empty-state.js.map +1 -0
  225. package/dist/feedback/index.d.ts +12 -0
  226. package/dist/feedback/index.js +11 -0
  227. package/dist/feedback/index.js.map +1 -0
  228. package/dist/feedback/meter.d.ts +33 -0
  229. package/dist/feedback/meter.js +42 -0
  230. package/dist/feedback/meter.js.map +1 -0
  231. package/dist/feedback/motion.d.ts +9 -0
  232. package/dist/feedback/motion.js +57 -0
  233. package/dist/feedback/motion.js.map +1 -0
  234. package/dist/feedback/progress.d.ts +39 -0
  235. package/dist/feedback/progress.js +68 -0
  236. package/dist/feedback/progress.js.map +1 -0
  237. package/dist/feedback/skeleton.d.ts +48 -0
  238. package/dist/feedback/skeleton.js +61 -0
  239. package/dist/feedback/skeleton.js.map +1 -0
  240. package/dist/feedback/spinner.d.ts +19 -0
  241. package/dist/feedback/spinner.js +29 -0
  242. package/dist/feedback/spinner.js.map +1 -0
  243. package/dist/feedback/status-dot.d.ts +23 -0
  244. package/dist/feedback/status-dot.js +37 -0
  245. package/dist/feedback/status-dot.js.map +1 -0
  246. package/dist/form/countries.d.ts +34 -0
  247. package/dist/form/countries.js +273 -0
  248. package/dist/form/countries.js.map +1 -0
  249. package/dist/form/data-attributes.d.ts +11 -0
  250. package/dist/form/data-attributes.js +22 -0
  251. package/dist/form/data-attributes.js.map +1 -0
  252. package/dist/form/field-parts.d.ts +113 -0
  253. package/dist/form/field-parts.js +178 -0
  254. package/dist/form/field-parts.js.map +1 -0
  255. package/dist/form/field.d.ts +36 -0
  256. package/dist/form/field.js +65 -0
  257. package/dist/form/field.js.map +1 -0
  258. package/dist/form/files.d.ts +70 -0
  259. package/dist/form/files.js +156 -0
  260. package/dist/form/files.js.map +1 -0
  261. package/dist/form/form.d.ts +40 -0
  262. package/dist/form/form.js +74 -0
  263. package/dist/form/form.js.map +1 -0
  264. package/dist/form/image-crop.d.ts +106 -0
  265. package/dist/form/image-crop.js +117 -0
  266. package/dist/form/image-crop.js.map +1 -0
  267. package/dist/form/image-cropper.d.ts +68 -0
  268. package/dist/form/image-cropper.js +284 -0
  269. package/dist/form/image-cropper.js.map +1 -0
  270. package/dist/form/index.d.ts +24 -0
  271. package/dist/form/index.js +15 -0
  272. package/dist/form/index.js.map +1 -0
  273. package/dist/form/input-group.d.ts +63 -0
  274. package/dist/form/input-group.js +63 -0
  275. package/dist/form/input-group.js.map +1 -0
  276. package/dist/form/input-otp.d.ts +35 -0
  277. package/dist/form/input-otp.js +83 -0
  278. package/dist/form/input-otp.js.map +1 -0
  279. package/dist/form/input.d.ts +36 -0
  280. package/dist/form/input.js +41 -0
  281. package/dist/form/input.js.map +1 -0
  282. package/dist/form/number-field.d.ts +84 -0
  283. package/dist/form/number-field.js +81 -0
  284. package/dist/form/number-field.js.map +1 -0
  285. package/dist/form/otp-field.d.ts +37 -0
  286. package/dist/form/otp-field.js +116 -0
  287. package/dist/form/otp-field.js.map +1 -0
  288. package/dist/form/password-field.d.ts +61 -0
  289. package/dist/form/password-field.js +61 -0
  290. package/dist/form/password-field.js.map +1 -0
  291. package/dist/form/phone-field.d.ts +104 -0
  292. package/dist/form/phone-field.js +275 -0
  293. package/dist/form/phone-field.js.map +1 -0
  294. package/dist/form/phone-paste.d.ts +24 -0
  295. package/dist/form/phone-paste.js +40 -0
  296. package/dist/form/phone-paste.js.map +1 -0
  297. package/dist/form/phone.d.ts +159 -0
  298. package/dist/form/phone.js +309 -0
  299. package/dist/form/phone.js.map +1 -0
  300. package/dist/form/search-field.d.ts +29 -0
  301. package/dist/form/search-field.js +23 -0
  302. package/dist/form/search-field.js.map +1 -0
  303. package/dist/form/styles.d.ts +31 -0
  304. package/dist/form/styles.js +43 -0
  305. package/dist/form/styles.js.map +1 -0
  306. package/dist/form/text-area.d.ts +70 -0
  307. package/dist/form/text-area.js +93 -0
  308. package/dist/form/text-area.js.map +1 -0
  309. package/dist/form/text-field.d.ts +131 -0
  310. package/dist/form/text-field.js +59 -0
  311. package/dist/form/text-field.js.map +1 -0
  312. package/dist/form/validation.d.ts +145 -0
  313. package/dist/form/validation.js +136 -0
  314. package/dist/form/validation.js.map +1 -0
  315. package/dist/i18n.d.ts +438 -0
  316. package/dist/i18n.js +948 -0
  317. package/dist/i18n.js.map +1 -0
  318. package/dist/index.d.ts +9 -0
  319. package/dist/index.js +7 -0
  320. package/dist/index.js.map +1 -0
  321. package/dist/intl-locale.d.ts +30 -0
  322. package/dist/intl-locale.js +83 -0
  323. package/dist/intl-locale.js.map +1 -0
  324. package/dist/layers.d.ts +32 -0
  325. package/dist/layers.js +33 -0
  326. package/dist/layers.js.map +1 -0
  327. package/dist/layout/auth-form-layout.d.ts +71 -0
  328. package/dist/layout/auth-form-layout.js +61 -0
  329. package/dist/layout/auth-form-layout.js.map +1 -0
  330. package/dist/layout/auth-layout.d.ts +59 -0
  331. package/dist/layout/auth-layout.js +26 -0
  332. package/dist/layout/auth-layout.js.map +1 -0
  333. package/dist/layout/box.d.ts +26 -0
  334. package/dist/layout/box.js +16 -0
  335. package/dist/layout/box.js.map +1 -0
  336. package/dist/layout/grid.d.ts +27 -0
  337. package/dist/layout/grid.js +26 -0
  338. package/dist/layout/grid.js.map +1 -0
  339. package/dist/layout/index.d.ts +16 -0
  340. package/dist/layout/index.js +12 -0
  341. package/dist/layout/index.js.map +1 -0
  342. package/dist/layout/pressable.d.ts +40 -0
  343. package/dist/layout/pressable.js +65 -0
  344. package/dist/layout/pressable.js.map +1 -0
  345. package/dist/layout/reset-sent-card.d.ts +39 -0
  346. package/dist/layout/reset-sent-card.js +22 -0
  347. package/dist/layout/reset-sent-card.js.map +1 -0
  348. package/dist/layout/scroll-area.d.ts +29 -0
  349. package/dist/layout/scroll-area.js +95 -0
  350. package/dist/layout/scroll-area.js.map +1 -0
  351. package/dist/layout/section.d.ts +41 -0
  352. package/dist/layout/section.js +22 -0
  353. package/dist/layout/section.js.map +1 -0
  354. package/dist/layout/split.d.ts +50 -0
  355. package/dist/layout/split.js +35 -0
  356. package/dist/layout/split.js.map +1 -0
  357. package/dist/layout/stack.d.ts +44 -0
  358. package/dist/layout/stack.js +36 -0
  359. package/dist/layout/stack.js.map +1 -0
  360. package/dist/layout/tokens.d.ts +33 -0
  361. package/dist/layout/tokens.js +85 -0
  362. package/dist/layout/tokens.js.map +1 -0
  363. package/dist/layout/toolbar.d.ts +37 -0
  364. package/dist/layout/toolbar.js +334 -0
  365. package/dist/layout/toolbar.js.map +1 -0
  366. package/dist/navigate-context.d.ts +12 -0
  367. package/dist/navigate-context.js +13 -0
  368. package/dist/navigate-context.js.map +1 -0
  369. package/dist/navigation/accordion.d.ts +40 -0
  370. package/dist/navigation/accordion.js +33 -0
  371. package/dist/navigation/accordion.js.map +1 -0
  372. package/dist/navigation/bottom-nav.d.ts +29 -0
  373. package/dist/navigation/bottom-nav.js +48 -0
  374. package/dist/navigation/bottom-nav.js.map +1 -0
  375. package/dist/navigation/brand-link-context.d.ts +8 -0
  376. package/dist/navigation/brand-link-context.js +9 -0
  377. package/dist/navigation/brand-link-context.js.map +1 -0
  378. package/dist/navigation/breadcrumbs.d.ts +36 -0
  379. package/dist/navigation/breadcrumbs.js +51 -0
  380. package/dist/navigation/breadcrumbs.js.map +1 -0
  381. package/dist/navigation/dock.d.ts +27 -0
  382. package/dist/navigation/dock.js +47 -0
  383. package/dist/navigation/dock.js.map +1 -0
  384. package/dist/navigation/footer.d.ts +43 -0
  385. package/dist/navigation/footer.js +43 -0
  386. package/dist/navigation/footer.js.map +1 -0
  387. package/dist/navigation/index.d.ts +22 -0
  388. package/dist/navigation/index.js +17 -0
  389. package/dist/navigation/index.js.map +1 -0
  390. package/dist/navigation/language-names.d.ts +19 -0
  391. package/dist/navigation/language-names.js +79 -0
  392. package/dist/navigation/language-names.js.map +1 -0
  393. package/dist/navigation/language-switcher.d.ts +55 -0
  394. package/dist/navigation/language-switcher.js +53 -0
  395. package/dist/navigation/language-switcher.js.map +1 -0
  396. package/dist/navigation/nav-panel.d.ts +18 -0
  397. package/dist/navigation/nav-panel.js +51 -0
  398. package/dist/navigation/nav-panel.js.map +1 -0
  399. package/dist/navigation/navbar.d.ts +73 -0
  400. package/dist/navigation/navbar.js +64 -0
  401. package/dist/navigation/navbar.js.map +1 -0
  402. package/dist/navigation/page-header.d.ts +37 -0
  403. package/dist/navigation/page-header.js +50 -0
  404. package/dist/navigation/page-header.js.map +1 -0
  405. package/dist/navigation/pagination.d.ts +25 -0
  406. package/dist/navigation/pagination.js +51 -0
  407. package/dist/navigation/pagination.js.map +1 -0
  408. package/dist/navigation/panel-header.d.ts +37 -0
  409. package/dist/navigation/panel-header.js +50 -0
  410. package/dist/navigation/panel-header.js.map +1 -0
  411. package/dist/navigation/sidebar-script.d.ts +12 -0
  412. package/dist/navigation/sidebar-script.js +20 -0
  413. package/dist/navigation/sidebar-script.js.map +1 -0
  414. package/dist/navigation/sidebar.d.ts +149 -0
  415. package/dist/navigation/sidebar.js +332 -0
  416. package/dist/navigation/sidebar.js.map +1 -0
  417. package/dist/navigation/skip-link.d.ts +12 -0
  418. package/dist/navigation/skip-link.js +30 -0
  419. package/dist/navigation/skip-link.js.map +1 -0
  420. package/dist/navigation/stepper.d.ts +50 -0
  421. package/dist/navigation/stepper.js +96 -0
  422. package/dist/navigation/stepper.js.map +1 -0
  423. package/dist/navigation/tabs.d.ts +84 -0
  424. package/dist/navigation/tabs.js +118 -0
  425. package/dist/navigation/tabs.js.map +1 -0
  426. package/dist/navigation/toolbar.d.ts +37 -0
  427. package/dist/navigation/toolbar.js +334 -0
  428. package/dist/navigation/toolbar.js.map +1 -0
  429. package/dist/overlay/alert-dialog.d.ts +63 -0
  430. package/dist/overlay/alert-dialog.js +76 -0
  431. package/dist/overlay/alert-dialog.js.map +1 -0
  432. package/dist/overlay/command-palette.d.ts +53 -0
  433. package/dist/overlay/command-palette.js +130 -0
  434. package/dist/overlay/command-palette.js.map +1 -0
  435. package/dist/overlay/command.d.ts +53 -0
  436. package/dist/overlay/command.js +129 -0
  437. package/dist/overlay/command.js.map +1 -0
  438. package/dist/overlay/context-menu.d.ts +29 -0
  439. package/dist/overlay/context-menu.js +58 -0
  440. package/dist/overlay/context-menu.js.map +1 -0
  441. package/dist/overlay/dialog.d.ts +162 -0
  442. package/dist/overlay/dialog.js +174 -0
  443. package/dist/overlay/dialog.js.map +1 -0
  444. package/dist/overlay/drawer.d.ts +41 -0
  445. package/dist/overlay/drawer.js +114 -0
  446. package/dist/overlay/drawer.js.map +1 -0
  447. package/dist/overlay/floating.d.ts +142 -0
  448. package/dist/overlay/floating.js +226 -0
  449. package/dist/overlay/floating.js.map +1 -0
  450. package/dist/overlay/hover-card.d.ts +19 -0
  451. package/dist/overlay/hover-card.js +31 -0
  452. package/dist/overlay/hover-card.js.map +1 -0
  453. package/dist/overlay/index.d.ts +18 -0
  454. package/dist/overlay/index.js +12 -0
  455. package/dist/overlay/index.js.map +1 -0
  456. package/dist/overlay/overlay-base.d.ts +105 -0
  457. package/dist/overlay/overlay-base.js +250 -0
  458. package/dist/overlay/overlay-base.js.map +1 -0
  459. package/dist/overlay/overlay.d.ts +299 -0
  460. package/dist/overlay/overlay.js +558 -0
  461. package/dist/overlay/overlay.js.map +1 -0
  462. package/dist/overlay/toast.d.ts +58 -0
  463. package/dist/overlay/toast.js +145 -0
  464. package/dist/overlay/toast.js.map +1 -0
  465. package/dist/provider.d.ts +26 -0
  466. package/dist/provider.js +30 -0
  467. package/dist/provider.js.map +1 -0
  468. package/dist/selection/autocomplete.d.ts +54 -0
  469. package/dist/selection/autocomplete.js +122 -0
  470. package/dist/selection/autocomplete.js.map +1 -0
  471. package/dist/selection/checkbox.d.ts +56 -0
  472. package/dist/selection/checkbox.js +49 -0
  473. package/dist/selection/checkbox.js.map +1 -0
  474. package/dist/selection/choice-size.d.ts +26 -0
  475. package/dist/selection/choice-size.js +50 -0
  476. package/dist/selection/choice-size.js.map +1 -0
  477. package/dist/selection/choice-text.d.ts +21 -0
  478. package/dist/selection/choice-text.js +33 -0
  479. package/dist/selection/choice-text.js.map +1 -0
  480. package/dist/selection/combobox.d.ts +173 -0
  481. package/dist/selection/combobox.js +410 -0
  482. package/dist/selection/combobox.js.map +1 -0
  483. package/dist/selection/index.d.ts +20 -0
  484. package/dist/selection/index.js +13 -0
  485. package/dist/selection/index.js.map +1 -0
  486. package/dist/selection/list-box.d.ts +30 -0
  487. package/dist/selection/list-box.js +16 -0
  488. package/dist/selection/list-box.js.map +1 -0
  489. package/dist/selection/listbox.d.ts +44 -0
  490. package/dist/selection/listbox.js +49 -0
  491. package/dist/selection/listbox.js.map +1 -0
  492. package/dist/selection/match.d.ts +20 -0
  493. package/dist/selection/match.js +57 -0
  494. package/dist/selection/match.js.map +1 -0
  495. package/dist/selection/multi-select.d.ts +72 -0
  496. package/dist/selection/multi-select.js +138 -0
  497. package/dist/selection/multi-select.js.map +1 -0
  498. package/dist/selection/radio-card.d.ts +31 -0
  499. package/dist/selection/radio-card.js +29 -0
  500. package/dist/selection/radio-card.js.map +1 -0
  501. package/dist/selection/radio.d.ts +72 -0
  502. package/dist/selection/radio.js +64 -0
  503. package/dist/selection/radio.js.map +1 -0
  504. package/dist/selection/select-public.d.ts +19 -0
  505. package/dist/selection/select-public.js +24 -0
  506. package/dist/selection/select-public.js.map +1 -0
  507. package/dist/selection/select.d.ts +72 -0
  508. package/dist/selection/select.js +69 -0
  509. package/dist/selection/select.js.map +1 -0
  510. package/dist/selection/slider.d.ts +16 -0
  511. package/dist/selection/slider.js +44 -0
  512. package/dist/selection/slider.js.map +1 -0
  513. package/dist/selection/styles.d.ts +26 -0
  514. package/dist/selection/styles.js +78 -0
  515. package/dist/selection/styles.js.map +1 -0
  516. package/dist/selection/switch.d.ts +24 -0
  517. package/dist/selection/switch.js +27 -0
  518. package/dist/selection/switch.js.map +1 -0
  519. package/dist/selection/tag-group.d.ts +38 -0
  520. package/dist/selection/tag-group.js +45 -0
  521. package/dist/selection/tag-group.js.map +1 -0
  522. package/dist/tone.d.ts +6 -0
  523. package/dist/tone.js +2 -0
  524. package/dist/tone.js.map +1 -0
  525. package/dist/utils.d.ts +9 -0
  526. package/dist/utils.js +42 -0
  527. package/dist/utils.js.map +1 -0
  528. package/manifest/component.full.schema.json +391 -0
  529. package/manifest/component.schema.json +279 -0
  530. package/manifests/accordion.json +299 -0
  531. package/manifests/alert-dialog.json +261 -0
  532. package/manifests/area-chart.json +338 -0
  533. package/manifests/autocomplete.json +299 -0
  534. package/manifests/avatar.json +253 -0
  535. package/manifests/badge.json +288 -0
  536. package/manifests/banner.json +185 -0
  537. package/manifests/bar-chart.json +454 -0
  538. package/manifests/bar-list.json +262 -0
  539. package/manifests/bottom-nav.json +139 -0
  540. package/manifests/box.json +3450 -0
  541. package/manifests/breadcrumbs.json +199 -0
  542. package/manifests/button-group.json +2294 -0
  543. package/manifests/button.json +1211 -0
  544. package/manifests/calendar-heatmap.json +218 -0
  545. package/manifests/calendar.json +299 -0
  546. package/manifests/card.json +308 -0
  547. package/manifests/carousel.json +263 -0
  548. package/manifests/chart-parts.json +309 -0
  549. package/manifests/checkbox.json +998 -0
  550. package/manifests/close-button.json +1000 -0
  551. package/manifests/color-field.json +276 -0
  552. package/manifests/color-picker.json +161 -0
  553. package/manifests/color-swatch-picker.json +220 -0
  554. package/manifests/color-swatch.json +140 -0
  555. package/manifests/combobox.json +581 -0
  556. package/manifests/command.json +275 -0
  557. package/manifests/composed-chart.json +287 -0
  558. package/manifests/context-menu.json +148 -0
  559. package/manifests/copy-button.json +192 -0
  560. package/manifests/data-table.json +334 -0
  561. package/manifests/date-field.json +302 -0
  562. package/manifests/date-picker.json +472 -0
  563. package/manifests/description-list.json +201 -0
  564. package/manifests/dialog.json +322 -0
  565. package/manifests/donut-chart.json +264 -0
  566. package/manifests/drawer.json +211 -0
  567. package/manifests/empty-state.json +185 -0
  568. package/manifests/fab.json +172 -0
  569. package/manifests/field.json +209 -0
  570. package/manifests/file-upload.json +791 -0
  571. package/manifests/form.json +829 -0
  572. package/manifests/funnel-chart.json +223 -0
  573. package/manifests/gauge-chart.json +252 -0
  574. package/manifests/grid-list.json +335 -0
  575. package/manifests/grid.json +3482 -0
  576. package/manifests/heading.json +183 -0
  577. package/manifests/heatmap.json +265 -0
  578. package/manifests/hover-card.json +172 -0
  579. package/manifests/icon.json +201 -0
  580. package/manifests/image-cropper.json +295 -0
  581. package/manifests/image-viewer.json +198 -0
  582. package/manifests/image.json +193 -0
  583. package/manifests/index.json +2035 -0
  584. package/manifests/input-group.json +3571 -0
  585. package/manifests/input.json +1557 -0
  586. package/manifests/kbd.json +98 -0
  587. package/manifests/language-switcher.json +274 -0
  588. package/manifests/line-chart.json +342 -0
  589. package/manifests/link.json +867 -0
  590. package/manifests/list-box.json +213 -0
  591. package/manifests/menu.json +453 -0
  592. package/manifests/meter.json +145 -0
  593. package/manifests/navbar.json +281 -0
  594. package/manifests/otp-field.json +1029 -0
  595. package/manifests/page-header.json +164 -0
  596. package/manifests/pagination.json +181 -0
  597. package/manifests/popover.json +205 -0
  598. package/manifests/pressable.json +367 -0
  599. package/manifests/progress.json +282 -0
  600. package/manifests/radar-chart.json +229 -0
  601. package/manifests/radial-chart.json +195 -0
  602. package/manifests/radio.json +975 -0
  603. package/manifests/scatter-chart.json +277 -0
  604. package/manifests/scroll-area.json +127 -0
  605. package/manifests/section.json +169 -0
  606. package/manifests/select.json +474 -0
  607. package/manifests/separator.json +119 -0
  608. package/manifests/sidebar.json +584 -0
  609. package/manifests/skeleton.json +235 -0
  610. package/manifests/skip-link.json +89 -0
  611. package/manifests/slider.json +706 -0
  612. package/manifests/sparkline.json +208 -0
  613. package/manifests/spinner.json +105 -0
  614. package/manifests/split.json +6618 -0
  615. package/manifests/stack.json +3541 -0
  616. package/manifests/stat.json +192 -0
  617. package/manifests/stepper.json +279 -0
  618. package/manifests/switch.json +205 -0
  619. package/manifests/table.json +375 -0
  620. package/manifests/tabs.json +438 -0
  621. package/manifests/tag-group.json +264 -0
  622. package/manifests/text-area.json +1136 -0
  623. package/manifests/text.json +244 -0
  624. package/manifests/theme-switcher.json +152 -0
  625. package/manifests/time-field.json +284 -0
  626. package/manifests/timeline.json +196 -0
  627. package/manifests/toast.json +87 -0
  628. package/manifests/toggle-button.json +1489 -0
  629. package/manifests/toolbar.json +145 -0
  630. package/manifests/tooltip.json +181 -0
  631. package/manifests/tracker.json +192 -0
  632. package/manifests/tree.json +245 -0
  633. package/manifests/visually-hidden.json +114 -0
  634. package/package.json +117 -3
  635. package/styles/base.css +56 -0
  636. package/styles/theme.css +154 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"axis-width.js","sourceRoot":"","sources":["../../src/charts/axis-width.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAE7C,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAG5C;;;;;;;;;;;;GAYG;AACH,uGAAuG;AACvG,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC;AAC5B;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,CAAC;AAE5B;;;;;GAKG;AACH,MAAM,UAAU,WAAW,CAAC,KAAc;IACxC,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,CAAC,KAAK,YAAY,MAAM,CAAC,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,CAAC,KAAK,YAAY,IAAI,CAAC;QAAE,OAAO,SAAS,CAAC;IACvI,MAAM,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;IAC7B,OAAO,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;AACtD,CAAC;AAED;;;;;;;;;;;;GAYG;AACH,qJAAqJ;AACrJ,MAAM,QAAQ,GAA2C;IACvD,CAAC,GAA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AAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,SAAS,CAAC,IAAY,EAAE,IAAY,EAAE,KAAa,EAAE,MAAc,EAAE,MAAwB;IAC3G,OAAO,SAAS,CAAC,IAAI,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,CAAC,iBAAiB,EAAE,CAAC,CAAC;AAC9K,CAAC","sourcesContent":["import { getNiceTickValues } from \"recharts\";\n\nimport { localWords } from \"../intl-locale\";\nimport type { ChartValueFormatter } from \"./chart-parts\";\n\n/*\n * How wide a vertical axis must be for its ticks, and how a tick or a bar-end label fits the room\n * it has. Shared by every chart with a value axis; not exported from the package.\n *\n * Recharts draws a tick on a vertical axis 8px in from the plot (its tick size, 6px, and tick margin, 2px, also\n * with the tick line off), and keeps a tick on one line only while the tick, measured, is narrower than the\n * width it is given (strictly: `width < given`). Each tick is given the axis's width less those 8px\n * ({@link tickWrapWidth}): the room it has between the axis's outer edge and where it is drawn. So an axis 8px\n * wider than its longest tick's estimate draws that tick whole, on one line.\n *\n * A tick is estimated by {@link textWidth}: each character at the widest Geist or its fallback draws it at 11px,\n * so a tick is never wider than its estimate, before the web font loads too.\n */\n/** Recharts' tick size and tick margin: where a vertical axis draws its ticks from the plot's edge. */\nexport const TICK_INSET = 8;\n/**\n * Past this an axis would squeeze the plot, so a value axis the DS sizes is never wider (an axis that\n * grew for an unbreakable tick left a 320px chart a 26px plot). A tick estimated longer than the room the clamped\n * axis leaves it (128px less the 8px inset) wraps between its units, as each tick's width is that room; one that\n * cannot is shown compact by the DS's ticks ({@link tickText}); what still does not fit is clipped within the axis\n * by the tick itself (value-tick's ValueTick), its reading start kept, its whole text its accessible name and hover\n * title: never over the plot, never past the chart's edge.\n */\nexport const AXIS_MAX = 128;\n\n/**\n * @internal A value as Recharts plots it on a number axis (its `makeNumber`): a number (a `Number` object too), or\n * a string or date that converts to one, when the result is finite; `undefined` otherwise (a gap: null, missing,\n * \"abc\", NaN). `\"1500000\"` is drawn at 1,500,000, so it counts wherever the plotted values count and is shown\n * wherever they are shown (the data table, the tooltip).\n */\nexport function chartNumber(value: unknown): number | undefined {\n if (typeof value !== \"number\" && !(value instanceof Number) && typeof value !== \"string\" && !(value instanceof Date)) return undefined;\n const number = Number(value);\n return Number.isFinite(number) ? number : undefined;\n}\n\n/*\n * Character widths in hundredths of a px at 11px, measured in Chromium: each\n * character alone, the widest it is drawn by any face a chart may use, hinted to whole pixels (as Linux draws) and at\n * its true advance (as macOS and Windows draw): Geist; the \"Geist Fallback\" apps get from next/font (Arial at\n * size-adjust 104.76%, as a Next.js build emits it), drawn before Geist loads; Arial (as Liberation Sans, its metric\n * twin); system-ui, Noto Sans and DejaVu Sans, which draw what the others lack. Kerning only narrows a pair, and a\n * mark set on a letter (an accent, once decomposed; a vowel sign in an Indic script) takes no room of its own, so a\n * text is never wider than the sum of its characters. Each character is measured in pages of 31 languages too, as\n * Chromium picks an Arabic, Persian, Indic or Han fallback face by the page's language (ar-EG draws Arabic-Indic\n * figures wider than ar). Checked against every number Intl formats (246 locales, every numbering system; decimal,\n * currency by symbol, code and name, compact short and long, percent, units), each drawn in a page of its own\n * language (36,489 strings): none is wider than its estimate in any of the faces.\n */\n/** Every base character of Latin (to Latin Extended-B), Greek, Cyrillic, Armenian, Hebrew and Arabic, the spaces, punctuation and currency signs. */\nconst MEASURED: readonly (readonly [number, string])[] = [\n [125, \"\\u200a\"],\n [200, \"ۥ\\u2006⁄\"],\n [250, \"\\u2009\\u202f\"],\n [275, \"՛՝′\"],\n [300, \"լյויןٱٲٳ\\u2005\\u205f\"],\n [304, \"'\"],\n [307, \"ijl\"],\n [325, \"ıłƚǃȷɉͿϳіјֈ؞اـٴ\"],\n [350, \" ,.\\u00a0ՙ՚۔\\u2008‘’‚‛⁞\"],\n [372, \":;\"],\n [374, \"I\"],\n [375, \"ƗǀΙІӀӏ։\"],\n [400, \"·ŀſƖ͵ι՜ז،؛٫٬ۦ\\u2004‐‑⁏⁚⁝\"],\n [425, \"؍ۯ⁁\"],\n [430, \"()[]\"],\n [433, \"t\"],\n [434, \"f\"],\n [443, \"!\"],\n [450, \"¡²³¹ŧƫƭչٵہۃ″‸‹›⁅⁆\"],\n [455, \"r\"],\n [475, \"ɍ\"],\n [500, \"-\\\\ƪ՞ւ֊גנ׳؋ٶۄۅۉۊۏ۽‶⁒\"],\n [507, \"\\\"\"],\n [525, \"ªºȴȶϝءدذڈډڊڋڌڍڎڏڐۮ\"],\n [528, \"/\"],\n [550, \"`°´¸ɂ՟շرزوڑڒړڗژڙۆۇۈۋ۾‾\"],\n [575, \"ljȝէ“”„‟\"],\n [600, \"szƨƶƾȥȿɀɈεζϯгзѕѯґҙӷԑԼץװױײ؏؟ةه٠١٢٤٥٦٩٪٭ڔږە۰۱۲۴۵۶۹ۼ\\u2002․‼‽⁃\"],\n [607, \"*c|\"],\n [625, \"¦ijƈǁȼͱͻͼͽνξϲсэєҁҫջךכר‖⁎\"],\n [649, \"k\"],\n [650, \"¨ĸƙƽͺ΄κςχϛвтғҭӻԇԯל٣٧٨۳۷۸•‣‴⁊⁖\"],\n [652, \"vxy\"],\n [675, \"ƛɏγλτϮкухчь҂ҍҐқҝҟүұҳҹӌӽӿԟօ\"],\n [700, \"$?JL_abdeghnopqu{}¢£¤¥§«¯µ»ðþđĿŁŋƀƃƅƌƍƐƒƞƥƹƺƻƿǂǝǥȜȣȽɁɇɋΓδηθμορυϐϑϙϡϧϫϭϱϵ϶ϸϼЈГабеоряђѮѳҏҕҮҰҷһӄәӡөӶԁԐԛԩԭՒբեզըիծկհձղճմնոսվրցքבדעצعغمٷڕڠ۩‒–‗†‡‷₣₤₫₰₶₸₺\"],\n [704, \"FT\"],\n [725, \"¶¿ßøŦƑƩƬƮȾͰͳͷΣΤβσϏϜЗТилнпћџҘҬԓԧԷգժռףפ״؆؇جحخځڂڃڄڅچڇڿ⁋⁌⁍₮\"],\n [750, \"ƷƸƼαϗϟϥϰцѣҋҒңӆӈӊӠӺԍդۿ\\u2007₹\"],\n [755, \"Z\"],\n [775, \"ħƔƵǷȢȤΖдҩԥՐ\"],\n [800, \"ABEKPSVXYÞƂƄƋƎƦƧȺɃɅɆɎΑΒΔΕΚΛΞΡΥΧπφϕϞϨϩϷϻЅАБВЕКРУХЧЬъѫѵҌҎҔҚҜҞҲҸҺӃӋӼӾԀԆԏԞԬԮԻՀՉՏאהחטםמסקתلڵڶڷڸھ€₭₱₳₷₽\"],\n [825, \"ƘƴȠҶҽҿԦԨԲԵԸԿՅՆՈՍՑթ֏نڹںڻڼڽ\"],\n [850, \"ͶϤϪЛмѻԒԳԴԶԺՁՂՃՇՋՔ؉ؠؽؾؿۑ⁈⁉₾\"],\n [858, \"&\"],\n [875, \"ϦѧӅӎԤՖ₴\"],\n [900, \"CDGHNOQRUÐØĐʼnŊƁƆƇƉƏƓƝƟƤƱƲƳǤȻɄɊɌΗΘΝΟΠΩψϒϘϚϬϴϹϽϾϿЄЏДИНОПСЦЭЯыѢѥѲҀҊҢҪҵӇӉӘӨԌԎԚԝՄՊՌՎՓՕֆև֍֎שׯ؝قىيٯڧڨیێې‿⁀⁐⁔⁗⁛₡₢₦₲₵₻₼₿⃀⃁\"],\n [901, \"w\"],\n [922, \"#+<=>^~\"],\n [925, \"¬±×÷ωѡѿҡԱ⁕⁘⁙⁜−\"],\n [950, \"IJƣȡȵͲϖФюҠԹԾٸ\"],\n [975, \"njϠѦѱҥҨԗ₠\"],\n [1000, \"MƊLjΜΦΨϣϺЂЋМЪжфњѪѭѰѴҗԅԖԡ؎ػؼكکګڬڭڮگڰڱڲڳڴۍ₪\"],\n [1025, \"ĦшҧӍԣԽՠ؈طظڟ⁇\"],\n [1050, \"щѺҼҾے\"],\n [1072, \"m\"],\n [1075, \"¼½¾ապտփ₥\"],\n [1100, \"%W©®æƕȸȹϢЫљѤҴӕԃԉԋԕԙԜխ؊بتثٮٹٺٻټٽپٿڀ۞‥‧‵※⁑⁓₩\\u3000\"],\n [1125, \"NjѩҤԄ\"],\n [1150, \"œƜѽԘفڡڢڣڤڥڦ\"],\n [1200, \"@ÆŒƢЖШЮҖӔԂԈԠڪ\\u2003—―…\"],\n [1225, \"ǶЊЩѹԊԢ\"],\n [1250, \"⁂\"],\n [1300, \"džLJdzЉѨѬԔԫ\"],\n [1325, \"﷼\"],\n [1350, \"Ѹسشښڛڜۺ\"],\n [1400, \"ѼҦ₧₨₯\"],\n [1450, \"صضڝڞۻ\"],\n [1500, \"DžNJDz‰\"],\n [1550, \"Ԫ\"],\n [1600, \"DŽDZѠѾ\"],\n [1925, \"‱\"],\n [7950, \"﷽\"],\n];\n/** Proportional figures (labels), \"0\" to \"9\": Geist's \"0\" is its widest. */\nconst PROPORTIONAL_FIGURES = [729, 700, 700, 700, 700, 700, 700, 700, 700, 700] as const;\n/** Tabular figures (axis ticks, `tabular-nums`): 7px in every face (Geist's are 7px hinted, 6.6px at their true advance). */\nconst TABULAR_FIGURE = 700;\nconst GLYPHS = new Map<string, number>(MEASURED.flatMap(([width, chars]) => Array.from(chars, (char) => [char, width] as const)));\n/**\n * Any other letter, spacing mark or figure, by its script: the widest measured in it (Han and kana 1em; Tamil and\n * Myanmar letters and vowel signs up to 28px, \"ஔ\"). A script missing here, or one the browser's regular expressions\n * do not know yet, counts at 36px, the widest letter of any script (a cuneiform sign).\n */\nconst SCRIPT_WIDTHS: readonly (readonly [number, string])[] = [\n [1100, \"Adlam Anatolian_Hieroglyphs Bamum Bopomofo Carian Caucasian_Albanian Chorasmian Cypriot Cypro_Minoan Deseret Dives_Akuru Dogra Elbasan Gothic Han Hangul Hanifi_Rohingya Hatran Hebrew Hiragana Imperial_Aramaic Kaithi Katakana Kawi Kayah_Li Kharoshthi Khitan_Small_Script Lisu Lycian Lydian Makasar Marchen Modi Mro Multani Nabataean Nag_Mundari Nandinagari Nko Nushu Nyiakeng_Puachue_Hmong Ol_Chiki Old_North_Arabian Old_Permic Old_South_Arabian Old_Turkic Old_Uyghur Osage Osmanya Pahawh_Hmong Pau_Cin_Hau Phoenician Rejang Runic Shavian Siddham Sora_Sompeng Syloti_Nagri Tai_Le Takri Tangsa Tangut Thai Tibetan Tifinagh Toto Vithkuqi Wancho Warang_Citi Yezidi Yi\"],\n [1300, \"Bassa_Vah Batak Bengali Bhaiksuki Brahmi Buhid Chakma Coptic Devanagari Elymaic Georgian Gujarati Gunjala_Gondi Hanunoo Khojki Lao Lepcha Mahajani Mandaic Meetei_Mayek Old_Hungarian Palmyrene Phags_Pa Samaritan Sharada Tagalog Tagbanwa Thaana Zanabazar_Square\"],\n [1550, \"Ahom Avestan Buginese Cherokee Cyrillic Duployan Ethiopic Glagolitic Greek Inscriptional_Pahlavi Inscriptional_Parthian Khmer Khudawadi Latin Limbu Linear_A Manichaean Masaram_Gondi Medefaidrin Mende_Kikakui Miao Mongolian New_Tai_Lue Ogham Old_Sogdian Psalter_Pahlavi Soyombo Syriac Tai_Tham Tai_Viet Tirhuta Ugaritic Vai\"],\n [1800, \"Armenian Canadian_Aboriginal Cham Gurmukhi Javanese Meroitic_Hieroglyphs Newa Old_Italic Oriya Saurashtra Sogdian\"],\n [2200, \"Balinese Egyptian_Hieroglyphs Kannada Linear_B Meroitic_Cursive Old_Persian Sinhala Sundanese Telugu\"],\n [2400, \"Malayalam\"],\n [2800, \"Arabic Myanmar Tamil\"],\n [2400, \"Common Inherited\"],\n];\nconst UNKNOWN_LETTER = 3600;\nconst SCRIPTS = SCRIPT_WIDTHS.flatMap(([width, names]) =>\n names.split(\" \").flatMap((name) => {\n try {\n return [[new RegExp(`\\\\p{Script=${name}}`, \"u\"), width] as const];\n } catch {\n return [];\n }\n }),\n);\n/** Any other space; any other sign or punctuation mark (the widest measured, \"⸻\", 31.25px). */\nconst OTHER_SPACE = 1200;\nconst OTHER_SIGN = 3125;\n\nfunction charWidth(char: string, tabular: boolean): number {\n if (char >= \"0\" && char <= \"9\") return tabular ? TABULAR_FIGURE : PROPORTIONAL_FIGURES[char.charCodeAt(0) - 48]!;\n const known = GLYPHS.get(char);\n if (known !== undefined) return known;\n // Format and bidi marks (U+200F, U+061C…) and marks set on a letter take no room.\n if (/[\\p{Cf}\\p{Mn}\\p{Me}]/u.test(char)) return 0;\n if (/[\\p{L}\\p{N}\\p{Mc}]/u.test(char)) {\n for (const [script, width] of SCRIPTS) if (script.test(char)) return width;\n return UNKNOWN_LETTER;\n }\n if (/\\s/u.test(char)) return OTHER_SPACE;\n return OTHER_SIGN;\n}\n\n/** How a text's figures are drawn: `tabular` (`tabular-nums`, value ticks) or `proportional` (labels). */\ntype Figures = \"proportional\" | \"tabular\";\n\n/**\n * @internal A text's width in px as drawn at 11px, estimated from its characters: the sum of each\n * character's widest width (see above), accents decomposed (a Turkish \"ş\" counts as an \"s\"), rounded up. Never\n * under the text as any of the measured faces draws it, Geist's next/font fallback included, in any script: a figure\n * 7px, \".\" and \",\" 3.5px, the space 3.5px, \"€\" 8px, \"%\" 11px, a Latin letter 3–11px (\"W\" 11px), a Cyrillic or\n * Greek one up to 16px (\"Ѡ\"), an Arabic one up to 14.5px. `tabular` for `tabular-nums` figures (axis ticks),\n * proportional otherwise (labels). The same on the server, in tests and before the web font loads, so a layout sized\n * by it never moves after the first render.\n */\nexport function textWidth(text: string, figures: Figures = \"proportional\"): number {\n let hundredths = 0;\n for (const char of text.normalize(\"NFD\")) hundredths += charWidth(char, figures === \"tabular\");\n return Math.ceil(hundredths / 100);\n}\n\n/**\n * The axis's width for these ticks: the longest's {@link textWidth} (in tabular figures, as ticks are drawn), plus\n * the 8px inset and any further room the axis holds beside its ticks (an axis name), within min–128px.\n *\n * With the chart's `locale`, ticks as the axis shows them ({@link tickText}): when a tick does not fit the room\n * the 128px axis leaves it, even between its units, every tick is shown with its figures compact and exact\n * (\"€ 150 Tn\", \"€ 2,25 Mn\"), and the axis is sized for the longest line of those, so a compact axis is no wider\n * than its ticks. Never past 128px: a tick that still does not fit (a formatter's long word against a figure) is\n * clipped within the axis by the tick (value-tick's ValueTick), never the plot squeezed for it.\n *\n * The ticks are drawn in the room the axis then gives them (its width less the inset and `room`): no wider than\n * the 120px (less `room`) they are laid out in here, and no narrower than their longest line, and in any room\n * between those {@link tickText} lays them out the same (what did not fit the wider room fits no narrower one, and\n * each line kept fits both), so the ticks drawn are the ones the axis was sized for. `values` are the values the ticks\n * were formatted from ({@link formattedValues}), as the ticks are given them, so both read the figures alike.\n */\nexport function tickAxisWidth(ticks: Iterable<string>, min: number, room = 0, locale?: string, values?: FormattedValues): number {\n const texts = [...ticks];\n let longest = 0;\n for (const tick of texts) longest = Math.max(longest, textWidth(tick, \"tabular\"));\n const whole = Math.min(AXIS_MAX, Math.max(min, longest + TICK_INSET + room));\n // Under the clamp every tick has the room of the longest, on one line; only at it may one not fit.\n const tickRoom = tickWrapWidth(whole, room);\n if (locale === undefined || whole < AXIS_MAX || !compactsAxis(texts, tickRoom)) return whole;\n let shown = 0;\n for (const tick of texts) for (const line of tickText(tick, tickRoom, locale, texts, values).lines) shown = Math.max(shown, textWidth(line, \"tabular\"));\n return Math.min(AXIS_MAX, Math.max(min, shown + TICK_INSET + room));\n}\n\n/** The px a value tick's line takes (its 11px font, one line under the last, `dy` 1em). */\nconst TICK_LINE = 11;\n\n/**\n * @internal How far a value axis's top tick stands above its gridline, past one line: a\n * tick is centered on its gridline, so a tick of `n` lines reaches (n − 1) half-lines higher than a one-line tick,\n * and the chart's top margin (which holds a one-line tick's upper half) takes that much more, so the tick stays\n * inside the chart (\"€ 1.500.000 net | this month\" passed the svg's top by 4px). `top` is the topmost tick as formatted,\n * `axisTexts` every tick of the axis, `values` the values they were formatted from, `room` what the tick is given; 0\n * for a one-line top tick.\n */\nexport function tickOverhang(top: string | undefined, room: number, locale: string, axisTexts: readonly string[] = [], values?: FormattedValues): number {\n if (top === undefined) return 0;\n const { lines } = tickText(top, room, locale, axisTexts, values);\n return Math.ceil(((lines.length - 1) * TICK_LINE) / 2);\n}\n\n/**\n * The width Recharts may give each tick of an axis this wide before it wraps the tick at a space: the axis less\n * its 8px inset and any room beside the ticks. Below the 128px clamp it is never reached (the axis was sized for\n * the longest tick); at the clamp it is exactly the room left, so a longer tick wraps rather than crossing the\n * axis's outer edge.\n */\nexport function tickWrapWidth(axisWidth: number, room = 0): number {\n return Math.max(0, axisWidth - TICK_INSET - room);\n}\n\n/**\n * The ticks Recharts draws on a value axis whose domain is `[0, \"auto\"]` (its default): the range of the\n * values, always with zero in it, extended to Recharts' own nice ticks (its public `getNiceTickValues`, as the\n * axis calls it). Values count as Recharts plots them ({@link chartNumber}): numeric strings among them; a gap\n * is left out, as the plot leaves it out. `allowDecimals: false` keeps the steps whole, as the axis's own\n * `allowDecimals` does: counts read 0 / 1 / 2 / 3, never 0.7 / 1.4 / 2.1.\n */\nexport function valueAxisTicks(values: Iterable<unknown>, tickCount: number, allowDecimals = true): number[] {\n let low = 0;\n let high = 0;\n for (const value of values) {\n const number = chartNumber(value);\n if (number === undefined) continue;\n low = Math.min(low, number);\n high = Math.max(high, number);\n }\n return getNiceTickValues([low, high], tickCount, allowDecimals, \"adaptive\");\n}\n\n/**\n * The width of a value axis over these values: its ticks as Recharts computes them, formatted as the axis\n * formats them, through {@link tickAxisWidth} (with the chart's `locale`, as the axis shows them).\n */\nexport function valueAxisWidth(values: Iterable<unknown>, format: ChartValueFormatter, options: { tickCount: number; min: number; locale?: string; allowDecimals?: boolean }): number {\n const ticks = valueAxisTicks(values, options.tickCount, options.allowDecimals);\n return tickAxisWidth(ticks.map(format), options.min, 0, options.locale, formattedValues(ticks, format));\n}\n\n/* ── Units and lines ─────────────────────────────────────────── */\n\n/**\n * The spaces a label may break at, as Recharts' Text breaks: ordinary ones only. A no-break space (U+00A0, U+202F)\n * is where Intl keeps a figure together (\"1\\u00a0450\\u00a0000,00\\u00a0€\" in ru, fr), so it never parts.\n */\nconst BREAK = /([ \\t\\n\\f\\r\\v\\u2028\\u2029]+)/;\n/** The ordinary spaces at a text's start, and a word (up to the next ordinary space): as a label breaks. */\nconst SPACES_AHEAD = /^[ \\t\\n\\f\\r\\v\\u2028\\u2029]+/;\nconst WORD_AHEAD = /^[^ \\t\\n\\f\\r\\v\\u2028\\u2029]+/;\nconst LETTER = /\\p{L}/u;\nconst DIGIT = /\\p{Nd}/u;\n/** A word that ends in a separator: a comma (Latin, Arabic, CJK), a semicolon, a slash, a bar, a middle dot or a dash. */\nconst SEPARATED = /[,،、,;؛;/|·•–—]$/u;\n\n/** A run of a label's words that never parts, with the spaces before it. */\ntype TextUnit = { space: string; unit: string };\n\n/** A label's words, each with the ordinary spaces before it. */\nfunction wordsOf(text: string): { space: string; word: string }[] {\n const parts = text.split(BREAK);\n const words: { space: string; word: string }[] = [];\n for (let index = 0; index < parts.length; index += 2) {\n const word = parts[index]!;\n if (word !== \"\") words.push({ space: index === 0 ? \"\" : parts[index - 1]!, word });\n }\n return words;\n}\n\n/** Whether a figure stands ahead of `from`, before the next word with a letter: a separator there parts two figures. */\nfunction figureAhead(words: readonly { word: string }[], from: number): boolean {\n for (let at = from; at < words.length; at += 1) {\n const { word } = words[at]!;\n if (DIGIT.test(word)) return true;\n if (LETTER.test(word)) return false;\n }\n return false;\n}\n\n/**\n * @internal A label's unbreakable units, each with the spaces before it. A label breaks only at a space\n * between two words that both hold a letter: a space beside a word without one (a figure, a currency sign, a minus,\n * a \"%\", a \"/\") never breaks. So a figure keeps the words a formatter writes against it, whatever they are and in any\n * locale: its sign and currency sign (\"€ -350.000\", \"48.920,00 €\", \"% 12\", \"– 350.000 €\"), its currency code or name\n * (\"1.450.000 TL\", \"TRY 1.450.000\", \"1.450.000,00 Türk\"), its unit (\"-12.000 km\", \"120 km / h\") and magnitude\n * (\"€ 1,2 Mn\", \"-1,2 milyon\", \"-1.2 مليون\"), and a word qualifying it (\"€ 12.000.000 net\", \"total € 1.450.000\");\n * only a phrase parts, between its own words (\"124 orders | this month\", \"1.450.000,00 Türk | lirası\"). No word list:\n * what a figure keeps is decided by where the formatter puts it, so it holds for any formatter and locale. A label\n * also breaks after a separator that ends a word between two figures, each with its words: a \",\"\n * or a \"/\" with a figure before it and another ahead, before the next word with a letter: \"12 orders, | 3 canceled\",\n * \"€ 900.000 / | € 1.450.000 target\", \"€ 900 – | € 1.450\", so a label of several figures wraps between them, each\n * figure still with its own words. A separator with no figure before it is a sign (\"– 350.000 €\"), and one with no\n * figure ahead parts no figures (\"120 km / h\", \"€ 1.450.000 | target\"): neither breaks. The one rule for\n * bar-end labels and value ticks.\n */\nexport function textUnits(text: string): TextUnit[] {\n const words = wordsOf(text);\n const units: (TextUnit & { lettered: boolean })[] = [];\n words.forEach(({ space, word }, at) => {\n const lettered = LETTER.test(word);\n const last = units.at(-1);\n // `lettered` on a unit is its last word's: a break needs a letter on both sides of the space, or a separator\n // between two figures before it.\n const separates = last !== undefined && SEPARATED.test(last.unit) && DIGIT.test(last.unit) && figureAhead(words, at);\n if (last && !(last.lettered && lettered) && !separates) {\n last.unit += space + word;\n last.lettered = lettered;\n } else units.push({ space: units.length === 0 ? \"\" : space, unit: word, lettered });\n });\n return units.map(({ space, unit }) => ({ space, unit }));\n}\n\nconst joinUnits = (units: readonly TextUnit[]) => units.map((unit, index) => (index === 0 ? unit.unit : unit.space + unit.unit)).join(\"\");\n\n/**\n * Units laid into lines: each line as long as fits the room by {@link textWidth}. When a unit is wider than the room\n * the text stays one line (wider than the room, the caller places or shortens it): breaking it would only add lines\n * that still overflow.\n */\nfunction unitLines(units: readonly TextUnit[], room: number, figures: Figures): string[] {\n if (units.some(({ unit }) => textWidth(unit, figures) > room)) return units.length > 0 ? [joinUnits(units)] : [];\n const lines: string[] = [];\n let line = \"\";\n for (const { space, unit } of units) {\n const joined = line === \"\" ? unit : line + space + unit;\n if (line !== \"\" && textWidth(joined, figures) > room) {\n lines.push(line);\n line = unit;\n } else {\n line = joined;\n }\n }\n if (line !== \"\") lines.push(line);\n return lines;\n}\n\n/**\n * @internal A text's lines for the room it has: whole when it fits, otherwise broken between its units\n * ({@link textUnits}: never beside a figure), each line as long as fits, by the same estimate as the room. When a\n * unit is wider than the room, the whole text on one line, wider than the room.\n */\nexport function textLines(text: string, room: number, figures: Figures = \"proportional\"): string[] {\n if (textWidth(text, figures) <= room) return [text];\n const lines = unitLines(textUnits(text), room, figures);\n return lines.length > 0 ? lines : [text];\n}\n\nconst fitsRoom = (lines: readonly string[], room: number) => lines.every((line) => textWidth(line, \"tabular\") <= room);\n/** Whether a tick fits its room, whole or between its units. */\nconst tickFits = (text: string, room: number) => fitsRoom(textLines(text, room, \"tabular\"), room);\n/** Whether an axis shows its figures compact: one of its ticks does not fit the room, even between its units. */\nconst compactsAxis = (texts: readonly string[], room: number) => texts.some((text) => !tickFits(text, room));\n\n/* ── Compact figures ─────────────────────────────────────────── */\n\n/**\n * A figure as a formatter writes it: digits of one script with the group and decimal marks between them\n * (\"150.000.000\", \"1\\u00a0450\\u00a0000,5\", \"١٥٠٬٠٠٠\"); a plain space only as a group mark (three digits after it).\n */\nconst FIGURE = /\\p{Nd}+(?:(?:[.,'’\\u00a0\\u202f\\u2009٫٬]|\\x20(?=\\p{Nd}{3}(?!\\p{Nd})))\\p{Nd}+)*/gu;\n/** Intl's names for the digit scripts a formatter may write in, by their zero. */\nconst NUMBERING = new Map([\n [0x30, \"latn\"],\n [0x660, \"arab\"],\n [0x6f0, \"arabext\"],\n [0x966, \"deva\"],\n [0x9e6, \"beng\"],\n [0xe50, \"thai\"],\n [0xff10, \"fullwide\"],\n]);\n/**\n * Marks that only ever group a figure's digits: the spaces, the apostrophes (de-CH) and the Arabic thousands\n * separator. The Arabic decimal separator only ever is the decimal mark. \".\" and \",\" are either, by the formatter's\n * locale, which need not be the chart's.\n */\nconst GROUP_MARK = /[\\x20\\u00a0\\u2009\\u202f'’٬]/;\nconst DECIMAL_MARK = \"٫\";\n\n/** The zero of a digit's script: Unicode puts each script's ten digits in a row. */\nfunction digitZero(code: number): number {\n let start = code;\n while (DIGIT.test(String.fromCodePoint(start - 1))) start -= 1;\n return code - ((code - start) % 10);\n}\n\n/**\n * Intl reads a decimal string exactly (Intl.NumberFormat v3, in every engine the DS supports), past a double's 15–17\n * digits; ES2022's types know only numbers. An engine without it reads the string as a number.\n */\ntype DecimalFormat = { format(value: string): string; formatToParts(value: string): Intl.NumberFormatPart[] };\nconst formats = new Map<string, DecimalFormat>();\nfunction numberFormat(locale: string, options: Intl.NumberFormatOptions): DecimalFormat {\n const key = `${locale}|${JSON.stringify(options)}`;\n let format = formats.get(key);\n if (!format) {\n format = new Intl.NumberFormat(locale, options) as unknown as DecimalFormat;\n formats.set(key, format);\n }\n return format;\n}\n\n/** A figure's digits (as Latin ones) and the marks between them, each with the count of digits before it. */\ntype FigureMarks = { digits: string; marks: { mark: string; at: number }[] };\n\nfunction figureMarks(figure: string): FigureMarks {\n let digits = \"\";\n const marks: { mark: string; at: number }[] = [];\n for (const char of figure) {\n const code = char.codePointAt(0)!;\n if (DIGIT.test(char)) digits += String(code - digitZero(code));\n else marks.push({ mark: char, at: digits.length });\n }\n return { digits, marks };\n}\n\ntype Role = \"group\" | \"decimal\";\n/** A way a formatter may have written a figure: each of its marks' role, and where that puts its decimal point. */\ntype Reading = { roles: ReadonlyMap<string, Role>; point: number };\n\n/**\n * Where these roles put a figure's decimal point, when a formatter writes figures so: one decimal\n * mark at most, once, after every group mark; one group mark, the digits grouped as Intl groups them, in threes\n * (\"1.450.000\") or in the Indian way, twos then the last three (\"1,45,00,000\"), the first group one to three digits\n * (one or two in the Indian way) and never a leading zero. Undefined otherwise: \"15.10.2026\", \"192.168.1.1\",\n * \"0555 123\" and \"1.4500\" are not figures any formatter writes.\n */\nfunction pointOf({ digits, marks }: FigureMarks, roles: ReadonlyMap<string, Role>): number | undefined {\n const decimals = marks.filter(({ mark }) => roles.get(mark) === \"decimal\");\n const groups = marks.filter(({ mark }) => roles.get(mark) === \"group\");\n if (decimals.length > 1) return undefined;\n const point = decimals[0]?.at ?? digits.length;\n if (groups.length === 0) return point;\n if (new Set(groups.map(({ mark }) => mark)).size > 1 || groups.some(({ at }) => at >= point) || digits[0] === \"0\") return undefined;\n const bounds = [0, ...groups.map(({ at }) => at), point];\n const [first, ...rest] = bounds.slice(1).map((bound, index) => bound - bounds[index]!);\n const threes = first! <= 3 && rest.every((size) => size === 3);\n const indian = first! <= 2 && rest.at(-1) === 3 && rest.slice(0, -1).every((size) => size === 2);\n return first! >= 1 && (threes || indian) ? point : undefined;\n}\n\n/**\n * Every reading of a figure a formatter may have written ({@link pointOf}): the spaces, the apostrophes (de-CH) and\n * the Arabic thousands separator only ever group; the Arabic decimal separator only ever is the decimal mark; \".\" and\n * \",\" are either, by the formatter's locale, which need not be the chart's. None for marks no formatter writes, one\n * when the marks prove themselves (\"1.450.000\", \"1.450.000,5\", \"0,500\"), two when they cannot tell (\"1,500\": fifteen\n * hundred in en, one and a half in de).\n */\nfunction readingsOf(figure: FigureMarks): Reading[] {\n const distinct = [...new Set(figure.marks.map(({ mark }) => mark))];\n const choices = distinct.map((mark): readonly Role[] => (GROUP_MARK.test(mark) ? [\"group\"] : mark === DECIMAL_MARK ? [\"decimal\"] : [\"group\", \"decimal\"]));\n const readings: Reading[] = [];\n const walk = (at: number, roles: Map<string, Role>) => {\n if (at === distinct.length) {\n const point = pointOf(figure, roles);\n if (point !== undefined) readings.push({ roles: new Map(roles), point });\n return;\n }\n for (const role of choices[at]!) walk(at + 1, new Map(roles).set(distinct[at]!, role));\n };\n walk(0, new Map());\n return readings;\n}\n\n/** The marks an axis's figures prove to group, and the ones they prove to be the decimal mark. */\ntype MarkRoles = { group: ReadonlySet<string>; decimal: ReadonlySet<string>; byValue: boolean };\n\n/**\n * Whether a reading agrees with what the axis proves: one formatter writes every tick of an axis, with one group mark\n * and one decimal mark, so a mark proven to group never is the decimal mark, and a mark is not a role another mark\n * proved. `proven` also asks that each mark's role be proven, by the mark itself or by the other mark's.\n */\nfunction agrees(reading: Reading, { group, decimal }: MarkRoles, proven: boolean): boolean {\n for (const [mark, role] of reading.roles) {\n const same = role === \"group\" ? group : decimal;\n const other = role === \"group\" ? decimal : group;\n if (other.has(mark) || [...same].some((each) => each !== mark)) return false;\n if (proven && !same.has(mark) && ![...other].some((each) => each !== mark)) return false;\n }\n return true;\n}\n\n/**\n * Whether a figure read so is the value it was formatted from: equal to it, as rounded to the figure's last\n * significant digit (a formatter rounds to its fraction or significant digits: \"1.450.000\" for 1,450,000.4 or, at\n * two significant digits, for 1,452,345). The readings of a figure differ a thousandfold, so at most one is.\n */\nfunction writesValue({ digits }: FigureMarks, point: number, value: number): boolean {\n const figure = Number(`${digits.slice(0, point) || \"0\"}.${digits.slice(point) || \"0\"}`);\n const lastSignificant = Math.max(...[...digits].map((digit, at) => (digit === \"0\" ? -1 : at)));\n const place = point - 1 - (lastSignificant < 0 ? digits.length - 1 : lastSignificant);\n const difference = Math.abs(figure - Math.abs(value));\n return difference <= 0.5 * 10 ** place * (1 + 1e-9) || difference <= Math.abs(value) * 4 * Number.EPSILON;\n}\n\n/**\n * @internal The values the ticks or labels of an axis were formatted from, by their formatted text:\n * what proves how the formatter writes its marks. A text formats one value, so the last one counts.\n */\nexport type FormattedValues = ReadonlyMap<string, number>;\n\n/** @internal These values as `format` writes them ({@link FormattedValues}); a value that is not a finite number is left out. */\nexport function formattedValues(values: Iterable<unknown>, format: (value: number) => string): FormattedValues {\n const map = new Map<string, number>();\n for (const value of values) {\n const number = chartNumber(value);\n if (number !== undefined) map.set(format(number), number);\n }\n return map;\n}\n\n/**\n * What the figures of an axis prove of their marks (\"1,500\" from a de formatter in an en chart was read\n * as fifteen hundred, \"1.5K\"). With the values the ticks were formatted from, outright: the reading\n * under which a figure is its tick's value is the formatter's (\"€60,000\" of 60,000 proves \",\" groups; \"1,500\" of 1.5\n * that it is the decimal mark). A figure that is no value of its text (a formatter's own scaling, an identifier)\n * proves nothing. Only without values, by the figures alone: a mark a figure proves by its own marks\n * ({@link readingsOf}, one reading) holds for the others.\n */\nfunction markRoles(texts: readonly string[], values: FormattedValues | undefined): MarkRoles {\n const group = new Set<string>();\n const decimal = new Set<string>();\n const known = values ? texts.flatMap((text) => (values.has(text) ? [[text, values.get(text)!] as const] : [])) : [];\n const byValue = known.length > 0;\n const prove = (reading: Reading) => {\n for (const [mark, role] of reading.roles) (role === \"group\" ? group : decimal).add(mark);\n };\n if (byValue) {\n for (const [text, value] of known) {\n for (const [match] of text.matchAll(FIGURE)) {\n const figure = figureMarks(match);\n const matching = readingsOf(figure).filter((reading) => writesValue(figure, reading.point, value));\n if (matching.length === 1) prove(matching[0]!);\n }\n }\n } else {\n for (const text of texts) {\n for (const [match] of text.matchAll(FIGURE)) {\n const readings = readingsOf(figureMarks(match));\n if (readings.length === 1) prove(readings[0]!);\n }\n }\n }\n // Proven both ways (two formatters, or a figure that only seemed one): proven neither.\n for (const mark of [...group]) {\n if (decimal.delete(mark)) group.delete(mark);\n }\n return { group, decimal, byValue };\n}\n\n/** A figure as the number it writes: its value as a decimal string, its digits' zero and Intl's name for them. */\ntype Figure = { value: string; zero: number; numbering: string | undefined };\n\n/**\n * A figure read by the one reading ({@link readingsOf}) that agrees with what its axis proves ({@link markRoles}):\n * with values, only a reading the values prove; without, one its own marks or the axis's figures leave. Undefined\n * where no reading or more than one remains, so it is kept as written rather than misread (never by the chart's\n * locale, which need not be the formatter's), and under 1,000, which is short already.\n */\nfunction readFigure(figure: string, roles: MarkRoles): Figure | undefined {\n const zero = digitZero(figure.codePointAt(0)!);\n const numbering = NUMBERING.get(zero);\n const marks = figureMarks(figure);\n const readings = readingsOf(marks).filter((reading) => agrees(reading, roles, roles.byValue));\n if (readings.length !== 1) return undefined;\n const { point } = readings[0]!;\n const whole = marks.digits.slice(0, point).replace(/^0+(?=\\d)/, \"\");\n if (whole.length < 4) return undefined;\n return { value: `${whole}.${marks.digits.slice(point) || \"0\"}`, zero, numbering };\n}\n\n/**\n * A figure compact with exactly these fraction digits, or with as many as it needs (up to 20) when none are given:\n * then it is exact. In the locale and the figure's own digits.\n */\nfunction compactParts(figure: Figure, locale: string, digits?: number): Intl.NumberFormatPart[] {\n const fraction = digits === undefined ? { maximumFractionDigits: 20 } : { minimumFractionDigits: digits, maximumFractionDigits: digits };\n return numberFormat(locale, { notation: \"compact\", numberingSystem: figure.numbering ?? \"latn\", ...fraction }).formatToParts(figure.value);\n}\n\n/** A figure's exact compact form: the magnitude Intl writes it in (\"Mn\", \"ترليون\"; none where a locale keeps it whole, as de under a million) and the fraction digits it needs. */\nfunction exactCompact(figure: Figure, locale: string): { magnitude: string; digits: number } {\n const parts = compactParts(figure, locale);\n const magnitude = parts.filter((part) => part.type === \"compact\").map((part) => part.value).join(\"\");\n const digits = parts.filter((part) => part.type === \"fraction\").reduce((sum, part) => sum + Array.from(part.value).length, 0);\n return { magnitude: `${figure.numbering ?? figure.zero}|${magnitude}`, digits };\n}\n\n/**\n * How an axis writes a figure short: compact (`padded` with its magnitude's fraction digits), or, `scientific`, in\n * scientific notation where that is narrower; undefined where it keeps it as written.\n */\ntype AxisFigures = (figure: string, padded: boolean, scientific: boolean) => string | undefined;\n\n/**\n * The figures of an axis written short, in the chart's locale and the figure's own digits, always\n * exactly, so a tick never names a value its gridline does not stand at (\"₺2,25 Tn\", never Intl's \"₺2,3 Tn\" of two\n * significant digits; \"€ 1,95 Mn\", never \"€ 2 Mn\"):\n * - compact, in the fewest words its locale has; `padded`, the figures of one magnitude with the same fraction\n * digits, as many as the one of them that needs most (\"€ 1,50 Mn\" beside \"€ 2,25 Mn\"; \"€ 750 B\" beside them keeps\n * its own none); otherwise each with only the digits it needs (\"€ 1,5 Mn\"): still exact, and narrower, for an axis\n * whose padded ticks do not fit;\n * - `scientific`, in scientific notation, exact (\"1,5E29 €\"), where that is narrower than compact: a figure past the\n * largest magnitude its locale names, which compact keeps with every digit above it (\"150 000 000 000 000 000 трлн\n * €\", \"15,000,000,000,000京\"). When an axis takes it is {@link shortText}'s, by fit.\n * Undefined under 1,000, where the figure's marks cannot be read for certain ({@link readFigure}), and where the\n * short form is no shorter than the figure as written (\"1.450.000.000.007\" stays): the figure is then kept as written.\n */\nfunction axisFigures(texts: readonly string[], locale: string, values: FormattedValues | undefined, figures: Figures): AxisFigures {\n const roles = markRoles(texts, values);\n const digits = new Map<string, number>();\n type Forms = { exact: { magnitude: string; digits: number }; compact: (padded: boolean) => string; scientific: string };\n const forms = new Map<string, Forms | undefined>();\n const formsOf = (match: string) => {\n if (forms.has(match)) return forms.get(match);\n const figure = readFigure(match, roles);\n // A script Intl has no name for: its own digits for the Latin ones.\n const own = (text: string) => (figure?.numbering ? text : text.replace(/[0-9]/g, (digit) => String.fromCodePoint(figure!.zero + Number(digit))));\n const exact = figure && exactCompact(figure, locale);\n const found: Forms | undefined = figure && exact && {\n exact,\n compact: (padded: boolean) => own(compactParts(figure, locale, padded ? Math.max(exact.digits, digits.get(exact.magnitude) ?? 0) : exact.digits).map((part) => part.value).join(\"\")),\n scientific: own(numberFormat(locale, { notation: \"scientific\", numberingSystem: figure.numbering ?? \"latn\", maximumFractionDigits: 20 }).format(figure.value)),\n };\n forms.set(match, found);\n return found;\n };\n const matches = texts.flatMap((text) => [...text.matchAll(FIGURE)].map(([match]) => match));\n for (const match of matches) {\n const found = formsOf(match);\n if (found) digits.set(found.exact.magnitude, Math.max(digits.get(found.exact.magnitude) ?? 0, found.exact.digits));\n }\n return (match, padded, scientific) => {\n const found = formsOf(match);\n if (!found) return undefined;\n const compact = found.compact(padded);\n const written = scientific && textWidth(found.scientific, figures) < textWidth(compact, figures) ? found.scientific : compact;\n // Exact can be long (\"1,450000000007 Tn\"): a figure is written short only where that is shorter.\n return textWidth(written, figures) < textWidth(match, figures) ? written : undefined;\n };\n}\n\n/**\n * A text as an axis shows it: its units, and where its figures stand (the first one's start, the last one's start\n * and its end, a compact magnitude with it).\n */\ntype Shown = { units: TextUnit[]; text: string; figures?: { first: number; last: number; end: number } };\n\n/** Each unit with its figures written by `write` in place (a currency, a sign, a unit word stay as the formatter wrote them). */\nfunction shownText(units: readonly TextUnit[], write: (figure: string) => string | undefined): Shown {\n let text = \"\";\n let first = -1;\n let last = -1;\n let end = -1;\n const shown = units.map(({ space, unit }, index) => {\n if (index > 0) text += space;\n let written = \"\";\n let from = 0;\n for (const match of unit.matchAll(FIGURE)) {\n written += unit.slice(from, match.index);\n last = text.length + written.length;\n if (first < 0) first = last;\n written += write(match[0]) ?? match[0];\n end = text.length + written.length;\n from = match.index + match[0].length;\n }\n written += unit.slice(from);\n text += written;\n return { space, unit: written };\n });\n return { units: shown, text, figures: first < 0 ? undefined : { first, last, end } };\n}\n\n/* ── The last resort ─────────────────────────────── */\n\n/** The scripts written right to left whose letters are bidi class AL (Arabic letters) and R (the others), UAX #9. */\nconst AL_SCRIPT = /[\\p{Script=Arabic}\\p{Script=Syriac}\\p{Script=Thaana}\\p{Script=Hanifi_Rohingya}]/u;\nconst R_SCRIPT = /[\\p{Script=Hebrew}\\p{Script=Nko}\\p{Script=Samaritan}\\p{Script=Mandaic}\\p{Script=Adlam}\\p{Script=Mende_Kikakui}\\p{Script=Yezidi}]/u;\nconst RTL_LETTER = { test: (char: string) => LETTER.test(char) && (AL_SCRIPT.test(char) || R_SCRIPT.test(char)) };\n/** A sign that is a figure's unit: a currency sign, a percent or per-mille sign. */\nconst UNIT_SIGN = /[\\p{Sc}%‰‱]/u;\n/** Words as they are compared with Intl's: format and bidi marks left out, every space one plain space. */\nconst plain = (text: string) => text.replace(/\\p{Cf}/gu, \"\").replace(/\\s+/gu, \" \").trim();\n/** The longest affix: a currency name or a unit runs to a few words (\"Bosna-Hersek konvertibl markı\"). */\nconst AFFIX_WORDS = 4;\n\ntype Affixes = { units: ReadonlySet<string>; magnitudes: ReadonlySet<string> };\nconst affixesByLocale = new Map<string, Affixes>();\n\n/**\n * What Intl writes against a figure in the chart's locale: every currency's ISO code, symbol, narrow symbol and name\n * (each plural form), every unit short, narrow and long (each plural form), and the magnitudes of its compact\n * notation, short and long. Intl's own words, not a list of the DS's: what makes a word a figure's currency or unit\n * rather than a qualifier (\"Türk lirası\", \"ج.م.\", \"km\" against \"net\", \"this month\"). Built once a locale, and only for a\n * tick that reaches the last resort.\n */\nfunction affixes(locale: string): Affixes {\n const known = affixesByLocale.get(locale);\n if (known) return known;\n const units = new Set<string>();\n const magnitudes = new Set<string>();\n const add = (set: Set<string>, parts: Intl.NumberFormatPart[], type: Intl.NumberFormatPartTypes) => {\n for (const part of parts) if (part.type === type && plain(part.value) !== \"\") set.add(plain(part.value));\n };\n const plural = new Intl.PluralRules(locale);\n // One number of each plural form the locale has, as names and long units change with it.\n const samples = [...new Map([0, 1, 2, 3, 5, 11, 21, 100, 0.5, 1.5].map((value) => [plural.select(value), value] as const)).values()];\n const supported = (key: \"currency\" | \"unit\") => (typeof Intl.supportedValuesOf === \"function\" ? Intl.supportedValuesOf(key) : []);\n for (const currency of supported(\"currency\")) {\n units.add(currency);\n for (const currencyDisplay of [\"symbol\", \"narrowSymbol\"] as const) add(units, new Intl.NumberFormat(locale, { style: \"currency\", currency, currencyDisplay }).formatToParts(1), \"currency\");\n const named = new Intl.NumberFormat(locale, { style: \"currency\", currency, currencyDisplay: \"name\" });\n for (const sample of samples) {\n const parts = named.formatToParts(sample);\n add(units, parts, \"currency\");\n // An app writes Bosnian currency names through localWords (\"eura\", not Intl's \"evra\"): both are unit words.\n add(units, parts.map((part) => ({ ...part, value: localWords(locale, part.value) })), \"currency\");\n }\n }\n for (const unit of supported(\"unit\")) {\n for (const unitDisplay of [\"short\", \"narrow\", \"long\"] as const) {\n const format = new Intl.NumberFormat(locale, { style: \"unit\", unit, unitDisplay });\n for (const sample of samples) add(units, format.formatToParts(sample), \"unit\");\n }\n }\n for (const compactDisplay of [\"short\", \"long\"] as const) {\n const format = new Intl.NumberFormat(locale, { notation: \"compact\", compactDisplay });\n for (let power = 3; power <= 18; power += 1) for (const lead of [1, 2, 5]) add(magnitudes, format.formatToParts(lead * 10 ** power), \"compact\");\n }\n const found = { units, magnitudes };\n affixesByLocale.set(locale, found);\n return found;\n}\n\n/** The length of the longest phrase of `set` that `text` starts with, as whole words; 0 for none. */\nfunction phraseAhead(text: string, set: ReadonlySet<string>): number {\n const words: string[] = [];\n let at = 0;\n const ends: number[] = [];\n while (words.length < AFFIX_WORDS) {\n const space = words.length === 0 ? \"\" : SPACES_AHEAD.exec(text.slice(at))?.[0];\n if (space === undefined) break;\n const word = WORD_AHEAD.exec(text.slice(at + space.length))?.[0];\n if (word === undefined) break;\n words.push(word);\n at += space.length + word.length;\n ends.push(at);\n }\n for (let count = words.length; count > 0; count -= 1) if (set.has(plain(words.slice(0, count).join(\" \")))) return ends[count - 1]!;\n return 0;\n}\n\n/** The length of the longest phrase of `set` that `text` ends with, as whole words; 0 for none. */\nfunction phraseBehind(text: string, set: ReadonlySet<string>): number {\n const words = wordsOf(trimBreaks(text));\n for (let count = Math.min(AFFIX_WORDS, words.length); count > 0; count -= 1) {\n const phrase = words.slice(-count);\n if (set.has(plain(phrase.map(({ word }) => word).join(\" \")))) return phrase.reduce((sum, { space, word }, index) => sum + (index === 0 ? 0 : space.length) + word.length, 0) + (text.length - trimBreaks(text).length);\n }\n return 0;\n}\n\n/** A text without the ordinary spaces at its end (a no-break space stays: it is part of a word). */\nconst trimBreaks = (text: string) => text.replace(/[ \\t\\n\\f\\r\\v\\u2028\\u2029]+$/, \"\");\n\n/**\n * Where a figure's group starts, from the figure at `at`: its own word (\"-€150\", \"\\u200f١٥٠\"), the words before it with no\n * letter (a currency sign, a sign: \"€ \", \"– \"), and, when those hold no currency or percent sign, the currency or\n * unit Intl writes right before it (\"TRY \", \"US$ \"). `unit` when the figure has its currency or unit there.\n */\nfunction groupStart(text: string, at: number, units: ReadonlySet<string>): { start: number; unit: boolean } {\n let start = at;\n while (start > 0 && !BREAK.test(text[start - 1]!)) start -= 1;\n let unit = UNIT_SIGN.test(text.slice(start, at));\n for (;;) {\n const before = text.slice(0, start);\n const word = wordsOf(before).at(-1);\n if (!word || DIGIT.test(word.word)) break;\n const wordStart = trimBreaks(before).length - word.word.length;\n if (!LETTER.test(word.word)) {\n start = wordStart;\n if (UNIT_SIGN.test(word.word)) unit = true;\n continue;\n }\n if (!unit) {\n const phrase = phraseBehind(before, units);\n if (phrase > 0) {\n start -= phrase;\n unit = true;\n }\n }\n break;\n }\n return { start, unit };\n}\n\n/**\n * Where a figure's group ends, from the end of the last figure (`at`, a compact magnitude with it): the rest of its\n * word (\"1,5 MnTL\"); then, word by word, a word with no letter (a currency sign, a \"%\", a \"/\"), with the word it\n * holds to after it (\"/ h\"); a magnitude the formatter wrote (\"1,5 milyon\"); the currency or unit Intl writes in the\n * chart's locale (\"Türk lirası\", \"km\", \"ج.م.\"), and, when the figure has none yet, the first word after it as its unit\n * (a formatter's own: \"1.450.000 TL\", \"124 orders\"). What follows is a qualifier (\"net\", \"this month\").\n */\nfunction groupEnd(text: string, at: number, unit: boolean, found: Affixes): number {\n const rest = WORD_AHEAD.exec(text.slice(at))?.[0] ?? \"\";\n let end = at + rest.length;\n // A currency or unit Intl joins to the figure's word with a no-break space (\"ترليون\\u00a0ج.م.\") is its unit too.\n let hasUnit = unit || UNIT_SIGN.test(rest) || rest.split(/[\\u00a0\\u202f]/).some((piece) => found.units.has(plain(piece)));\n let held = false;\n let magnitude = true;\n for (;;) {\n const space = SPACES_AHEAD.exec(text.slice(end))?.[0];\n if (space === undefined) break;\n const from = end + space.length;\n const word = WORD_AHEAD.exec(text.slice(from))?.[0];\n if (word === undefined) break;\n if (!LETTER.test(word)) {\n end = from + word.length;\n hasUnit ||= UNIT_SIGN.test(word);\n held = SEPARATED.test(word);\n continue;\n }\n const ahead = text.slice(from);\n const scale = magnitude ? phraseAhead(ahead, found.magnitudes) : 0;\n if (scale > 0) {\n end = from + scale;\n magnitude = false;\n continue;\n }\n // Intl's currency or unit is the figure's even beside its sign (\"₺150 Tn Türk lirası\", tr's currency name); a\n // first word is when the figure has none; after a separator with no figure ahead (\"km / h\") the word holds to\n // it, as textUnits holds it.\n const named = phraseAhead(ahead, found.units);\n if (named > 0 || !hasUnit || held) {\n end = from + (named || word.length);\n hasUnit = true;\n held = false;\n magnitude = false;\n continue;\n }\n break;\n }\n return end;\n}\n\n/** Extended Arabic-Indic figures (Persian, Urdu): bidi class EN, as European figures are (see readsRightToLeft's extension). */\nconst EXTENDED_ARABIC_FIGURE = /[\\u06f0-\\u06f9]/u;\n/** The isolate initiators (LRI, RLI, FSI) and their terminator (PDI), whose content UAX #9's rule P2 passes over. */\nconst ISOLATE_INITIATOR = /[\\u2066\\u2067\\u2068]/u;\nconst PDI = \"\\u2069\";\n\n/**\n * @internal Whether a text reads from the right, by its first strong character: UAX #9's rule P2, as a\n * browser decides `dir=\"auto\"` and `unicode-bidi: plaintext`, with one extension.\n *\n * P2: the first character of bidi class L, R or AL decides, passing over what an isolate (LRI, RLI or FSI to its PDI,\n * or to the end without one) holds. A right-to-left mark or letter (R, AL; the Arabic letter mark U+061C is AL) reads\n * from the right; a left-to-right mark or any other letter, or a figure of class L (\"१५०\"), from the left. Figures of\n * class EN or AN, signs, currency signs, spaces and punctuation are weak or neutral and decide nothing: \"150 ترليون\",\n * \"€ 50 ترليون\", \"0 كم\" and \"150 ترليون TL\" (Intl's \"ar\", \"ar-MA\", \"ur\" write Latin figures) read from the right,\n * their first letter Arabic, as \"\\u200f١٥٠ ترليون €\" and \"إجمالي € 1.450.000\" do; \"€ 1.450.000 net\", \"150 трлн €\"\n * and \"\\u200e-150 ترليون\" from the left. A line with no strong character (\"€ 1.450.000\", \"%12,4\") reads left to\n * right, the plot's direction.\n *\n * The extension: before any strong character, an Arabic-Indic figure or Arabic number sign (class AN, U+0660–0669,\n * U+0600–0605 and the Arabic separators) or an Extended Arabic-Indic figure (U+06F0–06F9, class EN like the European\n * figures) also decides right to left, where P2 would leave \"١٥٠\" or \"۱۵۰\" to the plot's left-to-right direction. The\n * reason: only right-to-left locales write these figures (Arabic, Persian, Urdu, Pashto, Sorani…), so such a line is\n * given the direction the rest of its axis reads in, which is also the side a clipped line keeps in view\n * (clipDirection). The figures themselves are drawn in the same order either way (EN and AN figures are laid out left to\n * right at any level), and the line's anchor follows its direction (value-tick's anchorFor), so it stands where it\n * stood. What can differ is a neutral or a Latin word after the figures: measured in Chromium over Intl's output (26\n * locales, 9 styles, 7 values; 106 lines where the extension decides and P2 would not), for every Arabic locale (ar,\n * ar-EG, ar-SA, ar-IQ, ar-SY, ar-YE, ar-SD) and \"ur\" it changes nothing drawn, as Intl writes an Arabic letter mark (AL)\n * or a right-to-left mark where a sign or a symbol would move; in fa (scientific notation only), fa-AF, ur-IN, ps, ckb,\n * sd, ks, pa-Arab, uz-Arab, mzn and lrc (60 lines) a sign, percent sign, currency or Latin unit after the figures stands\n * on their left, as a right-to-left reader reads it (\"١٣ ٪\" in ckb, \"۱۲٫۵ km\" in ps), where P2 would put it on the right.\n *\n * The direction every tick and label line is drawn in (value-tick's lineDirection), and a clipped line's own direction\n * (clipDirection), so its reading start stays in view.\n */\nexport function readsRightToLeft(text: string): boolean {\n let isolates = 0;\n for (const char of text) {\n if (ISOLATE_INITIATOR.test(char)) {\n isolates += 1;\n continue;\n }\n if (char === PDI) {\n isolates = Math.max(0, isolates - 1);\n continue;\n }\n if (isolates > 0) continue;\n const type = bidiClass(char);\n if (type === \"R\" || type === \"AL\") return true;\n if (type === \"L\") return false;\n // The extension above (not P2).\n if (type === \"AN\" || EXTENDED_ARABIC_FIGURE.test(char)) return true;\n }\n return false;\n}\n\n/* ── A clipped line's direction ──────────────────────────── */\n\n/** The Unicode bidirectional classes a chart's text uses (UAX #9), explicit embeddings aside. */\ntype BidiClass = \"L\" | \"R\" | \"AL\" | \"EN\" | \"AN\" | \"ES\" | \"ET\" | \"CS\" | \"NSM\" | \"BN\" | \"WS\" | \"ON\";\n\nfunction bidiClass(char: string): BidiClass {\n if (char === \"\\u200e\") return \"L\";\n if (char === \"\\u200f\") return \"R\";\n if (/[\\u061c\\u060b\\u060d\\u061b\\u061d-\\u061f\\u066d\\u06d4]/u.test(char)) return \"AL\";\n if (/[\\u0600-\\u0605\\u0660-\\u0669\\u066b\\u066c\\u06dd\\u0890\\u0891\\u08e2\\u{10d30}-\\u{10d39}]/u.test(char)) return \"AN\";\n // European figures (and their full-width, mathematical and Extended Arabic-Indic forms) are EN; the figures of a\n // right-to-left script (N'Ko, Adlam) are R; every other script's figures (\"१५०\", \"๑๕๐\") are L.\n if (/[0-9\\u06f0-\\u06f9\\uff10-\\uff19\\u{1d7ce}-\\u{1d7ff}\\u{1fbf0}-\\u{1fbf9}]/u.test(char)) return \"EN\";\n if (/\\p{Nd}/u.test(char)) return R_SCRIPT.test(char) ? \"R\" : \"L\";\n if (/[\\p{Mn}\\p{Me}]/u.test(char)) return \"NSM\";\n if (/\\p{Cf}/u.test(char)) return \"BN\";\n if (AL_SCRIPT.test(char) && /\\p{L}/u.test(char)) return \"AL\";\n if (R_SCRIPT.test(char) && /\\p{L}/u.test(char)) return \"R\";\n if (/[\\p{L}\\p{Mc}]/u.test(char)) return \"L\";\n if (/[+\\-\\u207a\\u207b\\u208a\\u208b\\u2212\\ufb29\\ufe62\\ufe63\\uff0b\\uff0d]/u.test(char)) return \"ES\";\n if (/[\\p{Sc}#%°‰‱\\u066a\\u0609\\u060a\\u2030-\\u2034]/u.test(char)) return \"ET\";\n if (/[,.:/\\u00a0\\u060c\\u202f\\u2044\\ufe50\\ufe52\\ufe55\\uff0c\\uff0e\\uff0f\\uff1a]/u.test(char)) return \"CS\";\n if (/\\s/u.test(char)) return \"WS\";\n return \"ON\";\n}\n\n/**\n * A line's characters in the order a browser draws them from the left, in a paragraph of this direction: the Unicode\n * bidirectional algorithm (UAX #9: its weak, neutral and implicit rules and its reordering) for a line without\n * explicit embeddings, as a chart's ticks and labels are. Format marks keep the level before them.\n */\nfunction visualOrder(chars: readonly string[], rtl: boolean): number[] {\n const base = rtl ? 1 : 0;\n const edge: BidiClass = rtl ? \"R\" : \"L\";\n const types = chars.map(bidiClass);\n const kept = types.flatMap((type, at) => (type === \"BN\" ? [] : [at]));\n const t = kept.map((at) => types[at]!);\n // W1–W3: a mark takes the class before it; a European figure after Arabic letters is an Arabic one; AL is R.\n let strong: BidiClass = edge;\n t.forEach((type, at) => {\n if (type === \"NSM\") t[at] = at === 0 ? edge : t[at - 1]!;\n if (t[at] === \"L\" || t[at] === \"R\" || t[at] === \"AL\") strong = t[at]!;\n if (t[at] === \"EN\" && strong === \"AL\") t[at] = \"AN\";\n });\n t.forEach((type, at) => {\n if (type === \"AL\") t[at] = \"R\";\n });\n // W4: one separator between two figures of a kind joins them.\n for (let at = 1; at < t.length - 1; at += 1) {\n const [before, after] = [t[at - 1], t[at + 1]];\n if (t[at] === \"ES\" && before === \"EN\" && after === \"EN\") t[at] = \"EN\";\n else if (t[at] === \"CS\" && before === after && (before === \"EN\" || before === \"AN\")) t[at] = before!;\n }\n // W5: a run of terminators beside a European figure is one.\n for (let at = 0; at < t.length; at += 1) {\n if (t[at] !== \"ET\") continue;\n let end = at;\n while (end < t.length && t[end] === \"ET\") end += 1;\n if (t[at - 1] === \"EN\" || t[end] === \"EN\") for (let each = at; each < end; each += 1) t[each] = \"EN\";\n at = end;\n }\n // W6, W7: other separators and terminators are neutral; a European figure after Latin letters is Latin.\n strong = edge;\n t.forEach((type, at) => {\n if (type === \"ES\" || type === \"ET\" || type === \"CS\") t[at] = \"ON\";\n if (t[at] === \"L\" || t[at] === \"R\") strong = t[at]!;\n if (t[at] === \"EN\" && strong === \"L\") t[at] = \"L\";\n });\n // N1, N2: neutrals between two of one direction (figures count as R) take it; others the paragraph's.\n const direction = (type: BidiClass | undefined) => (type === undefined ? edge : type === \"L\" ? \"L\" : \"R\");\n for (let at = 0; at < t.length; at += 1) {\n if (t[at] !== \"WS\" && t[at] !== \"ON\") continue;\n let end = at;\n while (end < t.length && (t[end] === \"WS\" || t[end] === \"ON\")) end += 1;\n const before = direction(t[at - 1]);\n const resolved = before === direction(t[end]) ? before : edge;\n for (let each = at; each < end; each += 1) t[each] = resolved;\n at = end;\n }\n // I1, I2: the implicit levels.\n const levels = new Array<number>(chars.length).fill(base);\n kept.forEach((index, at) => {\n const type = t[at]!;\n levels[index] = rtl ? (type === \"R\" ? 1 : 2) : type === \"L\" ? 0 : type === \"R\" ? 1 : 2;\n });\n types.forEach((type, at) => {\n if (type === \"BN\") levels[at] = at === 0 ? base : levels[at - 1]!;\n });\n // L2: from the highest level to the lowest odd one, each run at or above it reversed.\n const order = chars.map((_, at) => at);\n const highest = Math.max(base, ...levels);\n const lowestOdd = Math.min(...levels.filter((level) => level % 2 === 1), highest + 1);\n for (let level = highest; level >= lowestOdd && level > 0; level -= 1) {\n for (let at = 0; at < order.length; at += 1) {\n if (levels[order[at]!]! < level) continue;\n let end = at;\n while (end < order.length && levels[order[end]!]! >= level) end += 1;\n order.splice(at, end - at, ...order.slice(at, end).reverse());\n at = end;\n }\n }\n return order;\n}\n\n/**\n * @internal The direction a clipped line is laid out in, so its reading start, its first character,\n * is drawn inside its clip: the clip's start edge holds the paragraph's start (its left in \"ltr\", its right in \"rtl\"),\n * and the characters a browser draws between that edge and the first one ({@link visualOrder}, at their\n * {@link textWidth}) push it in. The line's own direction ({@link readsRightToLeft}) where its first character then\n * fits within `room` (\"\\u200f١٥٠ ترليون €xxxx\" in \"rtl\", its figure at the right edge); otherwise the other where it\n * does (\"\\u200f1.45M €xxxx\", whose right-to-left mark leads a left-to-right run: in \"rtl\" that run would stand at\n * the right edge with its figure at its far left, clipped; in \"ltr\" the figure is at the left edge); otherwise the\n * one that brings it nearer the edge.\n */\nexport function clipDirection(line: string, room: number, figures: Figures = \"proportional\"): \"ltr\" | \"rtl\" {\n const chars = Array.from(line.normalize(\"NFC\"));\n const first = chars.findIndex((char) => !/[\\p{Cf}\\p{Mn}\\p{Me}\\s]/u.test(char));\n const own: \"ltr\" | \"rtl\" = readsRightToLeft(line) ? \"rtl\" : \"ltr\";\n if (first < 0) return own;\n const width = (char: string) => textWidth(char, figures);\n const reach = (rtl: boolean) => {\n const order = visualOrder(chars, rtl);\n const at = order.indexOf(first);\n const before = rtl ? order.slice(at + 1) : order.slice(0, at);\n return before.reduce((sum, index) => sum + width(chars[index]!), 0) + width(chars[first]!);\n };\n const other = own === \"rtl\" ? \"ltr\" : \"rtl\";\n const [ownReach, otherReach] = [reach(own === \"rtl\"), reach(other === \"rtl\")];\n if (ownReach <= room) return own;\n if (otherReach <= room) return other;\n return otherReach < ownReach ? other : own;\n}\n\n/** A line ending in \"…\", which after a right-to-left word takes a right-to-left mark (U+200F, no width), so it stays at that word's end. */\nfunction ended(line: string): string {\n const lastLetter = Array.from(line).reverse().find((char) => LETTER.test(char));\n return `${line}…${lastLetter && RTL_LETTER.test(lastLetter) ? \"‏\" : \"\"}`;\n}\n\n/**\n * The most whole words of `words` from their start that fit the room on a line of `base` (none when `base` is \"\"),\n * with \"…\" after them when some are left out: the line, and whether any were. \"…\" is left out only where it alone\n * does not fit after `base`.\n */\nfunction wordsThatFit(base: string, words: readonly { space: string; word: string }[], room: number, figures: Figures): { line: string; dropped: boolean } {\n const join = (count: number) => words.slice(0, count).reduce((line, { space, word }) => (line === \"\" ? word : line + space + word), base);\n const all = join(words.length);\n if (textWidth(all, figures) <= room) return { line: all, dropped: false };\n for (let count = words.length - 1; count >= 0; count -= 1) {\n const line = ended(join(count).trimEnd());\n if (textWidth(line, figures) <= room) return { line, dropped: true };\n }\n return { line: base, dropped: words.length > 0 };\n}\n\n/**\n * The last resort for a text that does not fit its room even with its figures short:\n * words that are not the figure's are dropped, whole, and \"…\" stands for them. A text's figure group is never dropped\n * or cut: from the first figure's sign and currency (or the currency or unit Intl writes before it, \"TRY\") to the\n * last figure, its magnitude and its own currency or unit after it ({@link groupEnd}: \"€ 150 Tn\", \"150 Tn Türk\n * lirası\", \"1,5 ترليون TL\", \"‏١٥٠ ترليون ج.م.‏\"), its units broken only as {@link textUnits} breaks them. After it,\n * qualifiers (\"net\", \"this month\") stand on its last line while they fit, and \"…\" after the last kept. A phrase before it\n * (\"Total order revenue\") stands on a line of its own above, as many of its words as fit and \"…\" after them, so\n * a text takes at most one more line than its figure group: \"Total…\" over \"€ 145 Tn net…\", and none more than\n * `maxLines` (a tick under the plot: its band's), the phrase before it then dropped. A text with no figure\n * keeps its first word as that group. What is kept and still does not fit (a formatter's long word against a\n * figure) is clipped by the tick or label, its reading start kept. `dropped` when words were.\n */\nfunction lastResort(shown: Shown, room: number, locale: string, figures: Figures, maxLines = Number.POSITIVE_INFINITY): { lines: string[]; dropped: boolean } {\n const { text } = shown;\n let start: number;\n let end: number;\n if (shown.figures) {\n const found = affixes(locale);\n start = groupStart(text, shown.figures.first, found.units).start;\n end = groupEnd(text, shown.figures.end, groupStart(text, shown.figures.last, found.units).unit, found);\n } else {\n start = SPACES_AHEAD.exec(text)?.[0].length ?? 0;\n end = start + (WORD_AHEAD.exec(text.slice(start))?.[0].length ?? 0);\n }\n // The group parts only between its figures, after a separator (\"€ 900.000 / | € 1.450.000\"), never from its own\n // magnitude, currency or unit (\"1,45 Mn TL\"); and, as any label, not at all when a part is wider than the room\n // (breaking it would only add lines that still overflow).\n const parts: TextUnit[] = [];\n for (const unit of textUnits(text.slice(start, end))) {\n const last = parts.at(-1);\n if (last && !(SEPARATED.test(last.unit) && DIGIT.test(unit.unit))) last.unit += unit.space + unit.unit;\n else parts.push({ ...unit });\n }\n const group = linesWithin(parts, room, figures, maxLines);\n const after = wordsThatFit(group.pop() ?? \"\", wordsOf(text.slice(end)), room, figures);\n const lines = [...group, after.line];\n const lead = wordsOf(text.slice(0, start));\n if (lead.length === 0) return { lines, dropped: after.dropped };\n const before = wordsThatFit(\"\", lead, room, figures);\n // Above the figure's lines only where its band holds one more (a tick under the plot holds few).\n const above = textWidth(before.line, figures) <= room && lines.length < maxLines;\n return { lines: above ? [before.line, ...lines] : lines, dropped: after.dropped || before.dropped || !above };\n}\n\n/**\n * How a text is laid out and when it fits: its lines in `room`, each no wider than `limit`, its figures drawn so;\n * `rebreak` to break a shortened text between the units of the text as shown rather than as written. `clips` where a\n * line wider than `limit` is clipped there (a value tick beside the plot, within its axis; a bar-end label, at the\n * plot's start or the chart's edge); where nothing clips it (a value tick under the plot), a line may stand wider\n * than its room, and the text is never more than compact (see {@link shortText}), unless a line would pass `edge`, the\n * chart's width, where the svg's edge cuts it whatever else stands there.\n */\ntype Fit = { room: number; limit: number; figures: Figures; locale: string; values?: FormattedValues; rebreak: boolean; clips: boolean; maxLines: number; edge?: number };\n\n/**\n * Units in lines of `room` ({@link unitLines}), or, where that takes more than `maxLines` lines, in the narrowest wider\n * room that takes no more (the x band guard). For a value tick under the plot, which nothing clips\n * sideways (Recharts spaces those ticks by the whole formatted tick on one line) but whose band below the plot holds\n * only so many lines (Recharts' 30px x axis: two 11px lines under its 8px inset); past them a line stood past the\n * svg's bottom, into the axis name or the legend under it. Its lines then grow wider, never taller: every line is still\n * part of the one-line text Recharts spaced the ticks by, so it never reaches a neighbor or the chart's edge, and no\n * word is dropped or written in scientific notation (never under the plot). Greedy breaking takes no more lines in\n * a wider room, so the room is found by halving.\n */\nfunction linesWithin(units: readonly TextUnit[], room: number, figures: Figures, maxLines: number): string[] {\n const lines = unitLines(units, room, figures);\n if (lines.length <= maxLines) return lines;\n let low = room;\n let high = textWidth(joinUnits(units), figures);\n while (high - low > 1) {\n const middle = Math.floor((low + high) / 2);\n if (unitLines(units, middle, figures).length <= maxLines) high = middle;\n else low = middle;\n }\n return unitLines(units, high, figures);\n}\n\n/**\n * The one chain by which a value tick and a bar-end label are shortened, each step\n * only when the one before does not fit (`fit`: every line within its limit), the same on the server and in the\n * browser:\n * 1. whole, or broken between its units ({@link textLines});\n * 2. its figures short and exact ({@link axisFigures}): compact, in the fewest words its locale has; or, only where\n * a line would otherwise be clipped, in scientific notation: where\n * the text clips (`fit.clips`), its figure group, the least it keeps at the last (step 3), is still wider than its\n * limit compact, so compact it would be clipped even with its other words dropped for \"…\", and in scientific\n * notation it fits (\"1,5E29 €\", \"€1.5E29\" for ja's \"€15,000,000,000,000京\"; never where compact fits, as\n * \"1500兆\", nor where neither does, as scientific notation would then be clipped too). The trigger is the clip,\n * never the magnitude, so it is the same in every locale;\n * 3. the words that are not its figure's dropped and \"…\" for them ({@link lastResort}): never a word cut, never a\n * figure, its magnitude or its currency or unit.\n * What still does not fit is clipped by the tick or the label, its reading start in view. Where nothing but the\n * chart's own edge clips a text (a value tick under the plot: the tick moves in from the chart's edges, value-tick's\n * ValueTick), the chain stops at step 2's compact form, the readable one (\"€ 1.5 ترليون\", \"12 млн km / h\"), wider than\n * its room or not: never scientific notation, never \"…\", unless a line of the axis is wider than the whole chart\n * (`fit.edge`), which the svg's edge would cut: then the chain goes on for every tick of that axis, with the chart's\n * width as its limit.\n * `axis` is every text the same formatter wrote beside this one (a value axis's ticks): the step an axis takes, every\n * tick of it takes, so an axis never mixes \"€ 9.000.000.000.000\" with \"€ 12 Tn\", nor \"€ 900 Tn\" with \"€ 1,5E29\": when\n * one tick of an axis beside the plot would be clipped compact and is not in scientific notation, the whole axis is in\n * scientific notation, its other ticks too, which alone would not be clipped (one notation on an axis, so its ticks\n * read against one another). The figures of one magnitude share their fraction digits (\"€ 1,50 Mn\", \"€ 2,25 Mn\")\n * where those all fit, or each has only the digits it needs (\"€ 1,5 Mn\", \"€ 2,25 Mn\"). `values` are what proves how\n * the formatter writes its marks ({@link markRoles}). `shortened` when the lines are not the text as written, which\n * the tick or label then carries whole for assistive technology and as a hover title. The tooltip and the data table\n * always show the values whole.\n */\nfunction shortText(text: string, axis: readonly string[], fit: Fit): { lines: string[]; shortened: boolean } {\n const { room, limit, figures, locale } = fit;\n const fits = (lines: readonly string[]) => lines.every((line) => textWidth(line, figures) <= limit);\n // In lines of the room, between its units: a tick's as written, so a tick takes at most one more line than its\n // figure group; a label's as shown, a compact magnitude a word of its own (\"€ 1,45 млн | target\").\n const lay = (shown: Shown) => linesWithin(fit.rebreak ? textUnits(shown.text) : shown.units, room, figures, fit.maxLines);\n // As written: whole where it fits, else broken between its units, in at most `maxLines` lines.\n const written = (each: string) => (textWidth(each, figures) <= room ? [each] : linesWithin(textUnits(each), room, figures, fit.maxLines));\n const texts = [text, ...axis];\n if (texts.every((each) => fits(written(each)))) return { lines: written(text), shortened: false };\n const short = axisFigures(texts, locale, fit.values, figures);\n const write = (each: string, padded: boolean, scientific: boolean) => shownText(textUnits(each), (figure) => short(figure, padded, scientific));\n // What a text keeps at the last, its figure group, fits: whole, or with its other words dropped.\n const keeps = (shown: Shown) => fits(lay(shown)) || fits(lastResort(shown, limit, locale, figures, fit.maxLines).lines);\n // Scientific notation only where a text clips and it, and only it, keeps that text from being clipped: then for the\n // whole axis. Never where nothing clips.\n const scientific = fit.clips && texts.some((each) => !keeps(write(each, false, false)) && keeps(write(each, false, true)));\n const padded = !scientific && texts.every((each) => fits(lay(write(each, true, false))));\n // Under the plot only the chart's own edge cuts a tick (it is moved in from the edges, as a category tick is): a line\n // no wider than the chart stands compact; one wider would be cut there, so the chain goes on with the chart's width\n // as the limit the clip gives a tick beside the plot (scientific notation where that alone fits, else qualifiers\n // dropped for \"…\"). That is decided once for the axis, as every step is: when one tick's compact line\n // would pass the edge, every tick of the axis goes on, so an axis never mixes \"€80.000.000.000.000.000 Tn\" with\n // \"€1,2E29\".\n const edge = fit.edge;\n if (!fit.clips && edge !== undefined && texts.some((each) => lay(write(each, padded, false)).some((line) => textWidth(line, figures) > edge))) {\n return shortText(text, axis, { ...fit, clips: true, limit: edge });\n }\n const shown = write(text, padded, scientific);\n const lines = lay(shown);\n // Where nothing clips, compact is the last step: wider than its room or not, the text is read whole.\n if (fits(lines) || !fit.clips) return { lines, shortened: shown.text !== text };\n const resort = lastResort(shown, limit, locale, figures, fit.maxLines);\n return { lines: resort.lines, shortened: resort.dropped || shown.text !== text };\n}\n\n/**\n * @internal A value tick as its axis shows it in `room`: {@link shortText}'s chain, in tabular figures,\n * every tick of its axis (`axisTexts`, written by the same formatter from `values`) taking the same step. `clips` for\n * a tick beside the plot (a vertical axis), whose line still wider than the room is clipped by the tick within the\n * axis (value-tick's ValueTick); `false` for one under the plot (a horizontal axis), which nothing clips: it is at\n * most compact, never in scientific notation nor shortened with \"…\", and may stand wider than its room.\n * `maxLines`, the lines its band holds under the plot: a tick that would take more is laid out wider, in no more\n * ({@link linesWithin}). `edge`, the chart's width under the plot: the one bound a tick there has, as the svg's edge\n * cuts what passes it; only an axis with a line wider than the whole chart takes the chain's last steps there, every\n * tick of it.\n */\nexport function tickText(text: string, room: number, locale: string, axisTexts: readonly string[] = [], values?: FormattedValues, clips = true, maxLines = Number.POSITIVE_INFINITY, edge?: number): { lines: string[]; shortened: boolean } {\n return shortText(text, axisTexts, { room, limit: room, figures: \"tabular\", locale, values, rebreak: false, clips, maxLines, edge });\n}\n\n/**\n * @internal A bar-end label as it stands at its bar's end: {@link shortText}'s chain,\n * the value ticks' own, in proportional figures. Its lines are laid out in `room` (to the chart's edge, or the plot's\n * start); a line may pass it up to `limit` (back over its own bar), and only what passes that is shortened. `values`\n * are the chart's labels by their text, each with the total it was formatted from: what proves how the formatter\n * writes its marks. A line still wider than `limit` is clipped by the label (core-charts' BarEndLabel).\n */\nexport function labelText(text: string, room: number, limit: number, locale: string, values?: FormattedValues): { lines: string[]; shortened: boolean } {\n return shortText(text, [], { room, limit: Math.max(room, limit), figures: \"proportional\", locale, values, rebreak: true, clips: true, maxLines: Number.POSITIVE_INFINITY });\n}\n"]}
@@ -0,0 +1,16 @@
1
+ import * as React from "react";
2
+ import { type BarChartProps as BarsProps } from "./core-charts.js";
3
+ import { type WaterfallChartProps } from "./report-charts.js";
4
+ type Row = Record<string, unknown>;
5
+ export type BarChartWaterfallProps = WaterfallChartProps & {
6
+ /** `waterfall`: a start, the steps up and down, and the end, each bar starting where the last one ended. */
7
+ type: "waterfall";
8
+ };
9
+ /** `type`: `grouped` (default), `stacked`, `percent`, or `waterfall` (its own data shape: start, steps, end). */
10
+ export type BarChartProps<T extends Row> = BarsProps<T> | BarChartWaterfallProps;
11
+ /**
12
+ * Values across categories or periods as bars: grouped, stacked or percent, in columns or rows; or a waterfall
13
+ * from a start through its steps to the end (as Mantine's BarChart `type`).
14
+ */
15
+ export declare function BarChart<T extends Row>(props: BarChartProps<T>): React.JSX.Element;
16
+ export {};
@@ -0,0 +1,16 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import { BarChart as Bars } from "./core-charts.js";
4
+ import { WaterfallChart } from "./report-charts.js";
5
+ /**
6
+ * Values across categories or periods as bars: grouped, stacked or percent, in columns or rows; or a waterfall
7
+ * from a start through its steps to the end (as Mantine's BarChart `type`).
8
+ */
9
+ export function BarChart(props) {
10
+ if (props.type === "waterfall") {
11
+ const { type: _type, ...rest } = props;
12
+ return _jsx(WaterfallChart, { ...rest });
13
+ }
14
+ return _jsx(Bars, { ...props });
15
+ }
16
+ //# sourceMappingURL=bar-public.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bar-public.js","sourceRoot":"","sources":["../../src/charts/bar-public.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,QAAQ,IAAI,IAAI,EAAmC,MAAM,eAAe,CAAC;AAClF,OAAO,EAAE,cAAc,EAA4B,MAAM,iBAAiB,CAAC;AAY3E;;;GAGG;AACH,MAAM,UAAU,QAAQ,CAAgB,KAAuB;IAC7D,IAAI,KAAK,CAAC,IAAI,KAAK,WAAW,EAAE,CAAC;QAC/B,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,CAAC;QACvC,OAAO,KAAC,cAAc,OAAK,IAAI,GAAI,CAAC;IACtC,CAAC;IACD,OAAO,KAAC,IAAI,OAAK,KAAK,GAAI,CAAC;AAC7B,CAAC","sourcesContent":["import * as React from \"react\";\n\nimport { BarChart as Bars, type BarChartProps as BarsProps } from \"./core-charts\";\nimport { WaterfallChart, type WaterfallChartProps } from \"./report-charts\";\n\ntype Row = Record<string, unknown>;\n\nexport type BarChartWaterfallProps = WaterfallChartProps & {\n /** `waterfall`: a start, the steps up and down, and the end, each bar starting where the last one ended. */\n type: \"waterfall\";\n};\n\n/** `type`: `grouped` (default), `stacked`, `percent`, or `waterfall` (its own data shape: start, steps, end). */\nexport type BarChartProps<T extends Row> = BarsProps<T> | BarChartWaterfallProps;\n\n/**\n * Values across categories or periods as bars: grouped, stacked or percent, in columns or rows; or a waterfall\n * from a start through its steps to the end (as Mantine's BarChart `type`).\n */\nexport function BarChart<T extends Row>(props: BarChartProps<T>) {\n if (props.type === \"waterfall\") {\n const { type: _type, ...rest } = props;\n return <WaterfallChart {...rest} />;\n }\n return <Bars {...props} />;\n}\n"]}
@@ -0,0 +1,136 @@
1
+ import * as React from "react";
2
+ import { type TableColumn } from "../collection/table.js";
3
+ /** The categorical chart colors, in order; never hex in a chart. */
4
+ export declare const CHART_COLORS: readonly ["var(--ds-chart-1)", "var(--ds-chart-2)", "var(--ds-chart-3)", "var(--ds-chart-4)", "var(--ds-chart-5)"];
5
+ /** Comparison series (last year, the target, "other"). */
6
+ export declare const CHART_NEUTRAL = "var(--ds-chart-neutral)";
7
+ /** The color of the n-th series (0-based), cycling through the five. */
8
+ export declare const chartColor: (index: number) => "var(--ds-chart-1)" | "var(--ds-chart-2)" | "var(--ds-chart-3)" | "var(--ds-chart-4)" | "var(--ds-chart-5)";
9
+ export type ChartSeriesStyle = {
10
+ color: string;
11
+ strokeDasharray?: string;
12
+ };
13
+ /**
14
+ * How the n-th series (0-based) is drawn. The chart
15
+ * colors share one lightness, so series are told apart by lightness or pattern, never hue alone: the
16
+ * first series is the brand color, a comparison series (last year, the target) is `ds-chart-neutral`,
17
+ * lines after the second are dashed, and every series carries a legend key or a direct label. Bars and
18
+ * areas take no pattern: their legend key or direct label tells them apart.
19
+ */
20
+ export declare function chartSeries(index: number, options?: {
21
+ kind?: "line" | "area" | "bar";
22
+ isComparison?: boolean;
23
+ }): ChartSeriesStyle;
24
+ /**
25
+ * Turns chart animation off for everything inside, deterministically: snapshot tests and the DS lab
26
+ * render the final frame at once. Reduced motion turns it off without this.
27
+ */
28
+ export declare function ChartAnimation({ isEnabled, children }: {
29
+ isEnabled: boolean;
30
+ children: React.ReactNode;
31
+ }): React.JSX.Element;
32
+ /** Whether a chart may animate: pass it to Recharts' `isAnimationActive`. */
33
+ export declare function useChartAnimation(): boolean;
34
+ /**
35
+ * How a cartesian chart follows the reading direction: in RTL time runs from the right, so the category
36
+ * axis is reversed and the value axis sits on the right. Spread into Recharts' axes:
37
+ * `<XAxis reversed={direction.reversed} />`, `<YAxis orientation={direction.valueAxis} />`.
38
+ */
39
+ export declare function useChartDirection(): {
40
+ isRtl: boolean;
41
+ reversed: boolean;
42
+ valueAxis: "left" | "right";
43
+ };
44
+ /** Which series the legend has hidden; charts skip (or fade) hidden series. */
45
+ export declare function useChartSeries(): {
46
+ hidden: ReadonlySet<string>;
47
+ toggle: (key: string) => void;
48
+ isHidden: (key: string) => boolean;
49
+ };
50
+ export type ChartValueFormatter = (value: number) => string;
51
+ /** One series in the tooltip, as Recharts hands it over. */
52
+ export type ChartTooltipEntry = {
53
+ dataKey?: string | number;
54
+ name?: string | number;
55
+ value?: unknown;
56
+ color?: string;
57
+ stroke?: string;
58
+ fill?: string;
59
+ };
60
+ export type ChartTooltipProps = {
61
+ /** Set by Recharts when used as `<Tooltip content={<ChartTooltip … />} />`. */
62
+ active?: boolean;
63
+ payload?: readonly ChartTooltipEntry[];
64
+ label?: unknown;
65
+ /** Shared with the chart: "€ 55,0k". */
66
+ valueFormatter?: ChartValueFormatter;
67
+ /** The period title ("August 2026"); the category label by default. */
68
+ labelFormatter?: (label: unknown) => React.ReactNode;
69
+ /** Series names by data key ("2026", "Website"). */
70
+ labels?: Readonly<Record<string, string>>;
71
+ /** An optional change row, colored by meaning ("Change +11.8%"). */
72
+ change?: (payload: readonly ChartTooltipEntry[]) => {
73
+ label: string;
74
+ value: string;
75
+ tone: "success" | "danger" | "neutral";
76
+ } | null;
77
+ };
78
+ /**
79
+ * The tooltip every chart uses: the period as title, one row per series with its color key and value
80
+ * in tabular figures, and an optional change row. On `ds-surface-overlay`. It follows keyboard focus on
81
+ * data points as well as the pointer (Recharts' accessibility layer moves it with the arrow keys).
82
+ */
83
+ export declare function ChartTooltip({ active, payload, label, valueFormatter, labelFormatter, labels, change }: ChartTooltipProps): React.JSX.Element | null;
84
+ export type ChartLegendItem = {
85
+ key: string;
86
+ label: string;
87
+ color: string;
88
+ /** Lines get a 2px line key (dashed like the line); areas and bars a 10px square. */
89
+ kind?: "line" | "area" | "bar";
90
+ /** The line's dash pattern, from `chartSeries()`. */
91
+ strokeDasharray?: string;
92
+ };
93
+ export type ChartLegendProps = {
94
+ items: readonly ChartLegendItem[];
95
+ /** From `useChartSeries()`: pressing a key hides or shows its series. Leave out for a static legend. */
96
+ hidden?: ReadonlySet<string>;
97
+ onToggle?: (key: string) => void;
98
+ };
99
+ /** Series keys with their labels in `ds-text-subtle`; pressing one hides or shows it (hidden at 45%). */
100
+ export declare function ChartLegend({ items, hidden, onToggle }: ChartLegendProps): React.JSX.Element;
101
+ export type ChartDataTable<T> = {
102
+ /** Names the table ("Monthly revenue"). */
103
+ caption: string;
104
+ columns: readonly TableColumn<T>[];
105
+ rows: readonly T[];
106
+ rowKey?: (row: T) => string | number;
107
+ /** Opens a row's item from the shown table: the keyboard's way to what a press on a data point opens. */
108
+ onRowAction?: (row: T) => void;
109
+ };
110
+ export type ChartFrameProps<T> = {
111
+ /** The chart's height in px: loading, empty and the plot all keep it. */
112
+ height: number;
113
+ isLoading?: boolean;
114
+ /** Shown instead of the plot when there is nothing to draw (a compact EmptyState); `null` while there is data. */
115
+ emptyState?: React.ReactNode;
116
+ /**
117
+ * The same data as a compact Table: always there for screen readers, shown on request. Cells are
118
+ * values: a `render` that returns text (a formatted figure) is used; anything else falls back to the
119
+ * raw value in the hidden table.
120
+ */
121
+ dataTable: ChartDataTable<T>;
122
+ /** The Legend: above the plot, or below it (LineChart). */
123
+ legend?: React.ReactNode;
124
+ legendPlacement?: "top" | "bottom";
125
+ /**
126
+ * The Recharts chart (inside a ResponsiveContainer), named by the table's caption. Its keyboard layer
127
+ * (arrow keys move between data points, the tooltip follows) stays on; the table carries the data in full.
128
+ */
129
+ children: React.ReactNode;
130
+ };
131
+ /**
132
+ * The frame every chart sits in. While loading, a Skeleton at the chart's real size; with nothing to
133
+ * draw, a compact EmptyState in the same space; otherwise the plot. Under every chart a "Show the data
134
+ * as a table" button shows the same data as a compact Table, which screen readers get by default.
135
+ */
136
+ export declare function ChartFrame<T extends object>({ height, isLoading, emptyState, dataTable, legend, legendPlacement, children }: ChartFrameProps<T>): React.JSX.Element;