neba 1.6.0 → 1.8.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 (476) hide show
  1. package/README.md +37 -6
  2. package/dist/components/accordion/Accordion.d.ts +1 -1
  3. package/dist/components/accordion/Accordion.js +1 -1
  4. package/dist/components/accordion/index.d.ts +2 -2
  5. package/dist/components/accordion/index.js +1 -1
  6. package/dist/components/alert/Alert.d.ts +1 -1
  7. package/dist/components/alert/Alert.js +1 -1
  8. package/dist/components/alert/index.d.ts +2 -2
  9. package/dist/components/alert/index.js +1 -1
  10. package/dist/components/animate-appear/AnimateAppear.d.ts +1 -1
  11. package/dist/components/animate-appear/AnimateAppear.js +1 -1
  12. package/dist/components/animate-appear/index.d.ts +2 -2
  13. package/dist/components/animate-appear/index.js +1 -1
  14. package/dist/components/animate-blink/AnimateBlink.d.ts +1 -1
  15. package/dist/components/animate-blink/AnimateBlink.js +1 -1
  16. package/dist/components/animate-blink/index.d.ts +2 -2
  17. package/dist/components/animate-blink/index.js +1 -1
  18. package/dist/components/animate-fade/AnimateFade.d.ts +1 -1
  19. package/dist/components/animate-fade/AnimateFade.js +1 -1
  20. package/dist/components/animate-fade/index.d.ts +2 -2
  21. package/dist/components/animate-fade/index.js +1 -1
  22. package/dist/components/animate-grow/AnimateGrow.d.ts +1 -1
  23. package/dist/components/animate-grow/AnimateGrow.js +1 -1
  24. package/dist/components/animate-grow/index.d.ts +2 -2
  25. package/dist/components/animate-grow/index.js +1 -1
  26. package/dist/components/animate-headline/AnimateHeadline.d.ts +1 -1
  27. package/dist/components/animate-headline/AnimateHeadline.js +1 -1
  28. package/dist/components/animate-headline/index.d.ts +2 -2
  29. package/dist/components/animate-headline/index.js +1 -1
  30. package/dist/components/animate-lighting/AnimateLighting.d.ts +1 -1
  31. package/dist/components/animate-lighting/AnimateLighting.js +1 -1
  32. package/dist/components/animate-lighting/index.d.ts +2 -2
  33. package/dist/components/animate-lighting/index.js +1 -1
  34. package/dist/components/animate-marquee/AnimateMarquee.d.ts +1 -1
  35. package/dist/components/animate-marquee/AnimateMarquee.js +1 -1
  36. package/dist/components/animate-marquee/index.d.ts +2 -2
  37. package/dist/components/animate-marquee/index.js +1 -1
  38. package/dist/components/animate-rotate/AnimateRotate.d.ts +1 -1
  39. package/dist/components/animate-rotate/AnimateRotate.js +1 -1
  40. package/dist/components/animate-rotate/index.d.ts +2 -2
  41. package/dist/components/animate-rotate/index.js +1 -1
  42. package/dist/components/animate-slide/AnimateSlide.d.ts +1 -1
  43. package/dist/components/animate-slide/AnimateSlide.js +1 -1
  44. package/dist/components/animate-slide/index.d.ts +2 -2
  45. package/dist/components/animate-slide/index.js +1 -1
  46. package/dist/components/animate-typing/AnimateTyping.d.ts +1 -1
  47. package/dist/components/animate-typing/AnimateTyping.js +1 -1
  48. package/dist/components/animate-typing/index.d.ts +2 -2
  49. package/dist/components/animate-typing/index.js +1 -1
  50. package/dist/components/animate-zoom/AnimateZoom.d.ts +1 -1
  51. package/dist/components/animate-zoom/AnimateZoom.js +1 -1
  52. package/dist/components/animate-zoom/index.d.ts +2 -2
  53. package/dist/components/animate-zoom/index.js +1 -1
  54. package/dist/components/app-logo/AppLogo.d.ts +148 -0
  55. package/dist/components/app-logo/AppLogo.js +1 -0
  56. package/dist/components/app-logo/index.d.ts +2 -0
  57. package/dist/components/app-logo/index.js +1 -0
  58. package/dist/components/area-chart/AreaChart.d.ts +3 -3
  59. package/dist/components/area-chart/AreaChart.js +1 -1
  60. package/dist/components/area-chart/index.d.ts +2 -2
  61. package/dist/components/area-chart/index.js +1 -1
  62. package/dist/components/aspect-ratio/AspectRatio.d.ts +1 -1
  63. package/dist/components/aspect-ratio/AspectRatio.js +1 -1
  64. package/dist/components/aspect-ratio/index.d.ts +2 -2
  65. package/dist/components/aspect-ratio/index.js +1 -1
  66. package/dist/components/avatar/Avatar.d.ts +1 -1
  67. package/dist/components/avatar/Avatar.js +1 -1
  68. package/dist/components/avatar/index.d.ts +2 -2
  69. package/dist/components/avatar/index.js +1 -1
  70. package/dist/components/badge/Badge.d.ts +1 -1
  71. package/dist/components/badge/Badge.js +1 -1
  72. package/dist/components/badge/index.d.ts +2 -2
  73. package/dist/components/badge/index.js +1 -1
  74. package/dist/components/bar-chart/BarChart.d.ts +2 -2
  75. package/dist/components/bar-chart/BarChart.js +1 -1
  76. package/dist/components/bar-chart/index.d.ts +2 -2
  77. package/dist/components/bar-chart/index.js +1 -1
  78. package/dist/components/blockquote/Blockquote.d.ts +1 -1
  79. package/dist/components/blockquote/Blockquote.js +1 -1
  80. package/dist/components/blockquote/index.d.ts +2 -2
  81. package/dist/components/blockquote/index.js +1 -1
  82. package/dist/components/bottom-navigation/BottomNavigation.d.ts +3 -3
  83. package/dist/components/bottom-navigation/BottomNavigation.js +1 -1
  84. package/dist/components/bottom-navigation/index.d.ts +1 -1
  85. package/dist/components/bottom-navigation/index.js +1 -1
  86. package/dist/components/box/Box.d.ts +1 -1
  87. package/dist/components/box/Box.js +1 -1
  88. package/dist/components/box/index.d.ts +2 -2
  89. package/dist/components/box/index.js +1 -1
  90. package/dist/components/breadcrumb/Breadcrumb.d.ts +1 -1
  91. package/dist/components/breadcrumb/Breadcrumb.js +1 -1
  92. package/dist/components/breadcrumb/index.d.ts +2 -2
  93. package/dist/components/breadcrumb/index.js +1 -1
  94. package/dist/components/button/Button.d.ts +1 -1
  95. package/dist/components/button/Button.js +1 -1
  96. package/dist/components/button/index.d.ts +2 -2
  97. package/dist/components/button/index.js +1 -1
  98. package/dist/components/button-group/ButtonGroup.d.ts +1 -1
  99. package/dist/components/button-group/ButtonGroup.js +1 -1
  100. package/dist/components/button-group/index.d.ts +2 -2
  101. package/dist/components/button-group/index.js +1 -1
  102. package/dist/components/card/Card.d.ts +1 -1
  103. package/dist/components/card/Card.js +1 -1
  104. package/dist/components/card/index.d.ts +2 -2
  105. package/dist/components/card/index.js +1 -1
  106. package/dist/components/carousel/Carousel.d.ts +1 -1
  107. package/dist/components/carousel/Carousel.js +1 -1
  108. package/dist/components/carousel/index.d.ts +2 -2
  109. package/dist/components/carousel/index.js +1 -1
  110. package/dist/components/chat-bubble/ChatBubble.d.ts +1 -1
  111. package/dist/components/chat-bubble/ChatBubble.js +1 -1
  112. package/dist/components/chat-bubble/index.d.ts +2 -2
  113. package/dist/components/chat-bubble/index.js +1 -1
  114. package/dist/components/checkbox/Checkbox.d.ts +1 -1
  115. package/dist/components/checkbox/Checkbox.js +1 -1
  116. package/dist/components/checkbox/index.d.ts +2 -2
  117. package/dist/components/checkbox/index.js +1 -1
  118. package/dist/components/chip/Chip.d.ts +1 -1
  119. package/dist/components/chip/Chip.js +1 -1
  120. package/dist/components/chip/index.d.ts +2 -2
  121. package/dist/components/chip/index.js +1 -1
  122. package/dist/components/code-block/CodeBlock.d.ts +170 -0
  123. package/dist/components/code-block/CodeBlock.js +1 -0
  124. package/dist/components/code-block/index.d.ts +2 -0
  125. package/dist/components/code-block/index.js +1 -0
  126. package/dist/components/collapsible/Collapsible.d.ts +1 -1
  127. package/dist/components/collapsible/Collapsible.js +1 -1
  128. package/dist/components/collapsible/index.d.ts +1 -1
  129. package/dist/components/collapsible/index.js +1 -1
  130. package/dist/components/color-picker/ColorPicker.d.ts +3 -3
  131. package/dist/components/color-picker/ColorPicker.js +1 -1
  132. package/dist/components/color-picker/index.d.ts +2 -2
  133. package/dist/components/color-picker/index.js +1 -1
  134. package/dist/components/combobox/Combobox.d.ts +1 -1
  135. package/dist/components/combobox/Combobox.js +1 -1
  136. package/dist/components/combobox/index.d.ts +2 -2
  137. package/dist/components/combobox/index.js +1 -1
  138. package/dist/components/container/Container.d.ts +1 -1
  139. package/dist/components/container/Container.js +1 -1
  140. package/dist/components/container/index.d.ts +2 -2
  141. package/dist/components/container/index.js +1 -1
  142. package/dist/components/data-table/DataTable.d.ts +1 -1
  143. package/dist/components/data-table/DataTable.js +1 -1
  144. package/dist/components/data-table/index.d.ts +2 -2
  145. package/dist/components/data-table/index.js +1 -1
  146. package/dist/components/date-picker/DatePicker.d.ts +3 -3
  147. package/dist/components/date-picker/DatePicker.js +1 -1
  148. package/dist/components/date-picker/index.d.ts +2 -2
  149. package/dist/components/date-picker/index.js +1 -1
  150. package/dist/components/date-range-picker/DateRangePicker.d.ts +3 -3
  151. package/dist/components/date-range-picker/DateRangePicker.js +1 -1
  152. package/dist/components/date-range-picker/index.d.ts +2 -2
  153. package/dist/components/date-range-picker/index.js +1 -1
  154. package/dist/components/date-time-picker/DateTimePicker.d.ts +4 -4
  155. package/dist/components/date-time-picker/DateTimePicker.js +1 -1
  156. package/dist/components/date-time-picker/index.d.ts +2 -2
  157. package/dist/components/date-time-picker/index.js +1 -1
  158. package/dist/components/dialog/Dialog.d.ts +1 -1
  159. package/dist/components/dialog/Dialog.js +1 -1
  160. package/dist/components/dialog/index.d.ts +2 -2
  161. package/dist/components/dialog/index.js +1 -1
  162. package/dist/components/divider/Divider.d.ts +1 -1
  163. package/dist/components/divider/Divider.js +1 -1
  164. package/dist/components/divider/index.d.ts +2 -2
  165. package/dist/components/divider/index.js +1 -1
  166. package/dist/components/drawer/Drawer.d.ts +1 -1
  167. package/dist/components/drawer/Drawer.js +1 -1
  168. package/dist/components/drawer/index.d.ts +2 -2
  169. package/dist/components/drawer/index.js +1 -1
  170. package/dist/components/empty/Empty.d.ts +1 -1
  171. package/dist/components/empty/Empty.js +1 -1
  172. package/dist/components/empty/index.d.ts +2 -2
  173. package/dist/components/empty/index.js +1 -1
  174. package/dist/components/file-picker/FilePicker.d.ts +1 -1
  175. package/dist/components/file-picker/FilePicker.js +1 -1
  176. package/dist/components/file-picker/index.d.ts +2 -2
  177. package/dist/components/file-picker/index.js +1 -1
  178. package/dist/components/floating-action-button/FloatingActionButton.d.ts +1 -1
  179. package/dist/components/floating-action-button/FloatingActionButton.js +1 -1
  180. package/dist/components/floating-action-button/index.d.ts +1 -1
  181. package/dist/components/floating-action-button/index.js +1 -1
  182. package/dist/components/floating-bottom-navigation/FloatingBottomNavigation.d.ts +2 -2
  183. package/dist/components/floating-bottom-navigation/FloatingBottomNavigation.js +1 -1
  184. package/dist/components/floating-bottom-navigation/index.d.ts +2 -2
  185. package/dist/components/floating-bottom-navigation/index.js +1 -1
  186. package/dist/components/footer/Footer.d.ts +85 -0
  187. package/dist/components/footer/Footer.js +1 -0
  188. package/dist/components/footer/index.d.ts +2 -0
  189. package/dist/components/footer/index.js +1 -0
  190. package/dist/components/grid/Grid.d.ts +1 -1
  191. package/dist/components/grid/Grid.js +1 -1
  192. package/dist/components/grid/index.d.ts +2 -2
  193. package/dist/components/grid/index.js +1 -1
  194. package/dist/components/grid-container/GridContainer.d.ts +1 -1
  195. package/dist/components/grid-container/GridContainer.js +1 -1
  196. package/dist/components/grid-container/index.d.ts +2 -2
  197. package/dist/components/grid-container/index.js +1 -1
  198. package/dist/components/header/Header.d.ts +114 -0
  199. package/dist/components/header/Header.js +1 -0
  200. package/dist/components/header/index.d.ts +2 -0
  201. package/dist/components/header/index.js +1 -0
  202. package/dist/components/heatmap-chart/HeatmapChart.d.ts +3 -3
  203. package/dist/components/heatmap-chart/HeatmapChart.js +1 -1
  204. package/dist/components/heatmap-chart/index.d.ts +2 -2
  205. package/dist/components/heatmap-chart/index.js +1 -1
  206. package/dist/components/highlight/Highlight.d.ts +2 -2
  207. package/dist/components/highlight/Highlight.js +1 -1
  208. package/dist/components/highlight/index.d.ts +2 -2
  209. package/dist/components/highlight/index.js +1 -1
  210. package/dist/components/how-to-steps/HowToSteps.d.ts +167 -0
  211. package/dist/components/how-to-steps/HowToSteps.js +1 -0
  212. package/dist/components/how-to-steps/index.d.ts +2 -0
  213. package/dist/components/how-to-steps/index.js +1 -0
  214. package/dist/components/icon/Icon.d.ts +1 -1
  215. package/dist/components/icon/Icon.js +1 -1
  216. package/dist/components/icon/index.d.ts +2 -2
  217. package/dist/components/icon/index.js +1 -1
  218. package/dist/components/icon-button/IconButton.d.ts +1 -1
  219. package/dist/components/icon-button/IconButton.js +1 -1
  220. package/dist/components/icon-button/index.d.ts +2 -2
  221. package/dist/components/icon-button/index.js +1 -1
  222. package/dist/components/line-chart/LineChart.d.ts +3 -3
  223. package/dist/components/line-chart/LineChart.js +1 -1
  224. package/dist/components/line-chart/index.d.ts +2 -2
  225. package/dist/components/line-chart/index.js +1 -1
  226. package/dist/components/list/List.d.ts +1 -1
  227. package/dist/components/list/List.js +1 -1
  228. package/dist/components/list/index.d.ts +2 -2
  229. package/dist/components/list/index.js +1 -1
  230. package/dist/components/menu/Menu.d.ts +1 -1
  231. package/dist/components/menu/Menu.js +1 -1
  232. package/dist/components/menu/index.d.ts +2 -2
  233. package/dist/components/menu/index.js +1 -1
  234. package/dist/components/mockup/Mockup.d.ts +3 -3
  235. package/dist/components/mockup/Mockup.js +1 -1
  236. package/dist/components/mockup/index.d.ts +2 -2
  237. package/dist/components/mockup/index.js +1 -1
  238. package/dist/components/number-field/NumberField.d.ts +1 -1
  239. package/dist/components/number-field/NumberField.js +1 -1
  240. package/dist/components/number-field/index.d.ts +2 -2
  241. package/dist/components/number-field/index.js +1 -1
  242. package/dist/components/otp-field/OtpField.d.ts +1 -1
  243. package/dist/components/otp-field/OtpField.js +1 -1
  244. package/dist/components/otp-field/index.d.ts +2 -2
  245. package/dist/components/otp-field/index.js +1 -1
  246. package/dist/components/overlay/Overlay.d.ts +1 -1
  247. package/dist/components/overlay/Overlay.js +1 -1
  248. package/dist/components/overlay/index.d.ts +2 -2
  249. package/dist/components/overlay/index.js +1 -1
  250. package/dist/components/page-layout/PageLayout.d.ts +144 -0
  251. package/dist/components/page-layout/PageLayout.js +1 -0
  252. package/dist/components/page-layout/index.d.ts +2 -0
  253. package/dist/components/page-layout/index.js +1 -0
  254. package/dist/components/pagination/Pagination.d.ts +1 -1
  255. package/dist/components/pagination/Pagination.js +1 -1
  256. package/dist/components/pagination/index.d.ts +2 -2
  257. package/dist/components/pagination/index.js +1 -1
  258. package/dist/components/panes/Panes.d.ts +1 -1
  259. package/dist/components/panes/Panes.js +1 -1
  260. package/dist/components/panes/index.d.ts +2 -2
  261. package/dist/components/panes/index.js +1 -1
  262. package/dist/components/pie-chart/PieChart.d.ts +2 -2
  263. package/dist/components/pie-chart/PieChart.js +1 -1
  264. package/dist/components/pie-chart/index.d.ts +2 -2
  265. package/dist/components/pie-chart/index.js +1 -1
  266. package/dist/components/pill/Pill.d.ts +1 -1
  267. package/dist/components/pill/Pill.js +1 -1
  268. package/dist/components/pill/index.d.ts +2 -2
  269. package/dist/components/pill/index.js +1 -1
  270. package/dist/components/popover/Popover.d.ts +1 -1
  271. package/dist/components/popover/Popover.js +1 -1
  272. package/dist/components/popover/index.d.ts +2 -2
  273. package/dist/components/popover/index.js +1 -1
  274. package/dist/components/progress-box/ProgressBox.d.ts +2 -2
  275. package/dist/components/progress-box/ProgressBox.js +1 -1
  276. package/dist/components/progress-box/index.d.ts +2 -2
  277. package/dist/components/progress-box/index.js +1 -1
  278. package/dist/components/progress-circular/ProgressCircular.d.ts +2 -2
  279. package/dist/components/progress-circular/ProgressCircular.js +1 -1
  280. package/dist/components/progress-circular/index.d.ts +2 -2
  281. package/dist/components/progress-circular/index.js +1 -1
  282. package/dist/components/progress-linear/ProgressLinear.d.ts +2 -2
  283. package/dist/components/progress-linear/ProgressLinear.js +1 -1
  284. package/dist/components/progress-linear/index.d.ts +2 -2
  285. package/dist/components/progress-linear/index.js +1 -1
  286. package/dist/components/radio-group/RadioGroup.d.ts +1 -1
  287. package/dist/components/radio-group/RadioGroup.js +1 -1
  288. package/dist/components/radio-group/index.d.ts +2 -2
  289. package/dist/components/radio-group/index.js +1 -1
  290. package/dist/components/rating/Rating.d.ts +1 -1
  291. package/dist/components/rating/Rating.js +1 -1
  292. package/dist/components/rating/index.d.ts +1 -1
  293. package/dist/components/rating/index.js +1 -1
  294. package/dist/components/scatter-chart/ScatterChart.d.ts +2 -2
  295. package/dist/components/scatter-chart/ScatterChart.js +1 -1
  296. package/dist/components/scatter-chart/index.d.ts +2 -2
  297. package/dist/components/scatter-chart/index.js +1 -1
  298. package/dist/components/scroll-zone/ScrollZone.d.ts +1 -1
  299. package/dist/components/scroll-zone/ScrollZone.js +1 -1
  300. package/dist/components/scroll-zone/index.d.ts +2 -2
  301. package/dist/components/scroll-zone/index.js +1 -1
  302. package/dist/components/segmented-button/SegmentedButton.d.ts +1 -1
  303. package/dist/components/segmented-button/SegmentedButton.js +1 -1
  304. package/dist/components/segmented-button/index.d.ts +2 -2
  305. package/dist/components/segmented-button/index.js +1 -1
  306. package/dist/components/select/Select.d.ts +1 -1
  307. package/dist/components/select/Select.js +1 -1
  308. package/dist/components/select/index.d.ts +2 -2
  309. package/dist/components/select/index.js +1 -1
  310. package/dist/components/shortcut/Shortcut.d.ts +1 -1
  311. package/dist/components/shortcut/Shortcut.js +1 -1
  312. package/dist/components/shortcut/index.d.ts +2 -2
  313. package/dist/components/shortcut/index.js +1 -1
  314. package/dist/components/sidebar/Sidebar.d.ts +144 -0
  315. package/dist/components/sidebar/Sidebar.js +1 -0
  316. package/dist/components/sidebar/SidebarTrigger.d.ts +36 -0
  317. package/dist/components/sidebar/SidebarTrigger.js +1 -0
  318. package/dist/components/sidebar/index.d.ts +4 -0
  319. package/dist/components/sidebar/index.js +1 -0
  320. package/dist/components/skeleton/Skeleton.d.ts +1 -1
  321. package/dist/components/skeleton/Skeleton.js +1 -1
  322. package/dist/components/skeleton/index.d.ts +2 -2
  323. package/dist/components/skeleton/index.js +1 -1
  324. package/dist/components/slider/Slider.d.ts +1 -1
  325. package/dist/components/slider/Slider.js +1 -1
  326. package/dist/components/slider/index.d.ts +2 -2
  327. package/dist/components/slider/index.js +1 -1
  328. package/dist/components/sparkline/Sparkline.d.ts +1 -1
  329. package/dist/components/sparkline/Sparkline.js +1 -1
  330. package/dist/components/sparkline/index.d.ts +2 -2
  331. package/dist/components/sparkline/index.js +1 -1
  332. package/dist/components/spoiler/Spoiler.d.ts +1 -1
  333. package/dist/components/spoiler/Spoiler.js +1 -1
  334. package/dist/components/spoiler/index.d.ts +2 -2
  335. package/dist/components/spoiler/index.js +1 -1
  336. package/dist/components/statistic/Statistic.d.ts +2 -2
  337. package/dist/components/statistic/Statistic.js +1 -1
  338. package/dist/components/statistic/index.d.ts +2 -2
  339. package/dist/components/statistic/index.js +1 -1
  340. package/dist/components/switch/Switch.d.ts +1 -1
  341. package/dist/components/switch/Switch.js +1 -1
  342. package/dist/components/switch/index.d.ts +2 -2
  343. package/dist/components/switch/index.js +1 -1
  344. package/dist/components/table/Table.d.ts +2 -2
  345. package/dist/components/table/Table.js +1 -1
  346. package/dist/components/table/index.d.ts +2 -2
  347. package/dist/components/table/index.js +1 -1
  348. package/dist/components/tabs/Tabs.d.ts +1 -1
  349. package/dist/components/tabs/Tabs.js +1 -1
  350. package/dist/components/tabs/index.d.ts +2 -2
  351. package/dist/components/tabs/index.js +1 -1
  352. package/dist/components/text-field/TextField.d.ts +1 -1
  353. package/dist/components/text-field/TextField.js +1 -1
  354. package/dist/components/text-field/index.d.ts +2 -2
  355. package/dist/components/text-field/index.js +1 -1
  356. package/dist/components/text-link/TextLink.d.ts +1 -1
  357. package/dist/components/text-link/TextLink.js +1 -1
  358. package/dist/components/text-link/index.d.ts +2 -2
  359. package/dist/components/text-link/index.js +1 -1
  360. package/dist/components/time-picker/TimePicker.d.ts +2 -2
  361. package/dist/components/time-picker/TimePicker.js +1 -1
  362. package/dist/components/time-picker/index.d.ts +2 -2
  363. package/dist/components/time-picker/index.js +1 -1
  364. package/dist/components/timeline/Timeline.d.ts +1 -1
  365. package/dist/components/timeline/Timeline.js +1 -1
  366. package/dist/components/timeline/index.d.ts +2 -2
  367. package/dist/components/timeline/index.js +1 -1
  368. package/dist/components/timeline-chart/TimelineChart.d.ts +2 -2
  369. package/dist/components/timeline-chart/TimelineChart.js +1 -1
  370. package/dist/components/timeline-chart/index.d.ts +2 -2
  371. package/dist/components/timeline-chart/index.js +1 -1
  372. package/dist/components/toast/Toast.d.ts +1 -1
  373. package/dist/components/toast/Toast.js +1 -1
  374. package/dist/components/toast/index.d.ts +2 -2
  375. package/dist/components/toast/index.js +1 -1
  376. package/dist/components/toolbar/Toolbar.d.ts +1 -1
  377. package/dist/components/toolbar/Toolbar.js +1 -1
  378. package/dist/components/toolbar/index.d.ts +2 -2
  379. package/dist/components/toolbar/index.js +1 -1
  380. package/dist/components/tooltip/Tooltip.d.ts +1 -1
  381. package/dist/components/tooltip/Tooltip.js +1 -1
  382. package/dist/components/tooltip/index.d.ts +2 -2
  383. package/dist/components/tooltip/index.js +1 -1
  384. package/dist/components/tree-view/TreeView.d.ts +1 -1
  385. package/dist/components/tree-view/TreeView.js +1 -1
  386. package/dist/components/tree-view/index.d.ts +2 -2
  387. package/dist/components/tree-view/index.js +1 -1
  388. package/dist/components/typography/Typography.d.ts +1 -1
  389. package/dist/components/typography/Typography.js +1 -1
  390. package/dist/components/typography/index.d.ts +2 -2
  391. package/dist/components/typography/index.js +1 -1
  392. package/dist/components/window-pane/WindowPane.d.ts +3 -3
  393. package/dist/components/window-pane/WindowPane.js +1 -1
  394. package/dist/components/window-pane/index.d.ts +2 -2
  395. package/dist/components/window-pane/index.js +1 -1
  396. package/dist/index.d.ts +99 -92
  397. package/dist/index.js +1 -1
  398. package/dist/internal/animate.d.ts +1 -1
  399. package/dist/internal/bottom-navigation.d.ts +5 -4
  400. package/dist/internal/bottom-navigation.js +1 -1
  401. package/dist/internal/button-group.d.ts +1 -1
  402. package/dist/internal/button-group.js +1 -1
  403. package/dist/internal/calendar.d.ts +2 -2
  404. package/dist/internal/calendar.js +1 -1
  405. package/dist/internal/chart-frame.d.ts +3 -3
  406. package/dist/internal/chart-frame.js +1 -1
  407. package/dist/internal/chart-line.d.ts +2 -2
  408. package/dist/internal/chart-line.js +1 -1
  409. package/dist/internal/chart.d.ts +4 -3
  410. package/dist/internal/chart.js +1 -1
  411. package/dist/internal/color.d.ts +2 -2
  412. package/dist/internal/data-table.d.ts +1 -1
  413. package/dist/internal/date.d.ts +4 -5
  414. package/dist/internal/date.js +1 -1
  415. package/dist/internal/grid.d.ts +1 -1
  416. package/dist/internal/highlight.d.ts +97 -0
  417. package/dist/internal/highlight.js +1 -0
  418. package/dist/internal/i18n.d.ts +427 -229
  419. package/dist/internal/i18n.js +1 -1
  420. package/dist/internal/icons.d.ts +38 -2
  421. package/dist/internal/icons.js +1 -1
  422. package/dist/internal/initials.d.ts +24 -0
  423. package/dist/internal/initials.js +1 -0
  424. package/dist/internal/menu.d.ts +1 -1
  425. package/dist/internal/menu.js +1 -1
  426. package/dist/internal/mockup.d.ts +1 -1
  427. package/dist/internal/page-layout.d.ts +143 -0
  428. package/dist/internal/page-layout.js +1 -0
  429. package/dist/internal/picker.d.ts +2 -2
  430. package/dist/internal/picker.js +1 -1
  431. package/dist/internal/progress.d.ts +1 -1
  432. package/dist/internal/styles.d.ts +12 -1
  433. package/dist/internal/styles.js +1 -1
  434. package/dist/internal/window.d.ts +1 -1
  435. package/dist/internal/window.js +1 -1
  436. package/dist/locales/ar.d.ts +14 -0
  437. package/dist/locales/ar.js +1 -0
  438. package/dist/locales/de.d.ts +14 -0
  439. package/dist/locales/de.js +1 -0
  440. package/dist/locales/es.d.ts +14 -0
  441. package/dist/locales/es.js +1 -0
  442. package/dist/locales/fr.d.ts +14 -0
  443. package/dist/locales/fr.js +1 -0
  444. package/dist/locales/hi.d.ts +14 -0
  445. package/dist/locales/hi.js +1 -0
  446. package/dist/locales/id.d.ts +14 -0
  447. package/dist/locales/id.js +1 -0
  448. package/dist/locales/index.d.ts +45 -0
  449. package/dist/locales/index.js +1 -0
  450. package/dist/locales/it.d.ts +14 -0
  451. package/dist/locales/it.js +1 -0
  452. package/dist/locales/ja.d.ts +14 -0
  453. package/dist/locales/ja.js +1 -0
  454. package/dist/locales/ko.d.ts +14 -0
  455. package/dist/locales/ko.js +1 -0
  456. package/dist/locales/nl.d.ts +14 -0
  457. package/dist/locales/nl.js +1 -0
  458. package/dist/locales/pl.d.ts +14 -0
  459. package/dist/locales/pl.js +1 -0
  460. package/dist/locales/pt.d.ts +14 -0
  461. package/dist/locales/pt.js +1 -0
  462. package/dist/locales/ru.d.ts +14 -0
  463. package/dist/locales/ru.js +1 -0
  464. package/dist/locales/th.d.ts +14 -0
  465. package/dist/locales/th.js +1 -0
  466. package/dist/locales/tr.d.ts +14 -0
  467. package/dist/locales/tr.js +1 -0
  468. package/dist/locales/vi.d.ts +14 -0
  469. package/dist/locales/vi.js +1 -0
  470. package/dist/locales/zh-hans.d.ts +17 -0
  471. package/dist/locales/zh-hans.js +1 -0
  472. package/dist/locales/zh-hant.d.ts +17 -0
  473. package/dist/locales/zh-hant.js +1 -0
  474. package/dist/styles.css +1 -1
  475. package/dist/tailwind.css +473 -0
  476. package/package.json +40 -9
@@ -14,6 +14,16 @@
14
14
  * a picker's "Today", a Pagination's "Next page" — should get it from the same
15
15
  * place rather than starting a second table beside this one.
16
16
  *
17
+ * **One exported table per namespace, and never one table of all of them.** A
18
+ * bundler drops an unused `export const`, and it cannot drop a key out of an
19
+ * object literal — so a Chip that needs the word "Remove" and reaches it
20
+ * through a single table holding every namespace ships the ColorPicker's seven
21
+ * colour words and the Table's seven column words in eighteen languages too.
22
+ * That was thirty-eight kilobytes of translations behind a two-kilobyte
23
+ * component. Split per namespace, the Chip carries the four `action` strings
24
+ * and nothing else. Adding a namespace is therefore a new `export const`
25
+ * beside the others, not a new key inside one of them.
26
+ *
17
27
  * What is *not* in here is anything `Intl` already knows. Month names, weekday
18
28
  * names, AM/PM and number formats come from the platform, which speaks more
19
29
  * languages than this file ever will. This is only for the words the platform
@@ -24,255 +34,367 @@
24
34
  * you a translation for free, and the prop gets you one for anything else.
25
35
  */
26
36
  /**
27
- * One namespace per component, rather than one flat list of keys.
37
+ * One namespace's strings, in every language that has them.
38
+ *
39
+ * `''` is English and is complete by construction — every other tag fills in as
40
+ * much as it has and is merged over English when it is read, so a half-finished
41
+ * translation is a half-finished translation rather than a page of blanks.
42
+ */
43
+ export interface MessageTable<T> {
44
+ '': T;
45
+ [tag: string]: Partial<T>;
46
+ }
47
+ /**
48
+ * The words more than one component needs.
28
49
  *
29
- * A namespace is what makes a partial translation possible: a locale supplies
30
- * whatever it has and the rest falls back to English one namespace at a time,
31
- * so adding a namespace here does not silently blank the strings in every
32
- * language that has not caught up with it yet.
50
+ * The one namespace here that is not a component, and it exists because five
51
+ * of them draw the same × and would otherwise each carry their own "Close" in
52
+ * eighteen languages. A reader meeting that button on a Dialog, a Drawer, a
53
+ * Popover and a Toast should hear the same word every time, which is easier to
54
+ * guarantee when there is only one of it.
33
55
  */
34
- export interface NebaMessages {
56
+ export interface ActionMessages {
57
+ /** The × on a Dialog, a Drawer, a Popover and a Toast. */
58
+ close: string;
35
59
  /**
36
- * The words more than one component needs.
37
- *
38
- * The one namespace here that is not a component, and it exists because five
39
- * of them draw the same × and would otherwise each carry their own "Close" in
40
- * eighteen languages. A reader meeting that button on a Dialog, a Drawer, a
41
- * Popover and a Toast should hear the same word every time, which is easier to
42
- * guarantee when there is only one of it.
60
+ * And the one on an Alert, which is a different act: a dialog is closed
61
+ * because it has been answered, an alert is waved away.
43
62
  */
44
- action: {
45
- /** The × on a Dialog, a Drawer, a Popover and a Toast. */
46
- close: string;
47
- /**
48
- * And the one on an Alert, which is a different act: a dialog is closed
49
- * because it has been answered, an alert is waved away.
50
- */
51
- dismiss: string;
52
- /** The × that empties a Combobox. */
53
- clear: string;
54
- /** The × on a Chip. */
55
- remove: string;
56
- };
57
- /** TextLink. */
58
- link: {
59
- /**
60
- * What is read out after a link that opens a new tab, and never drawn. A
61
- * window changing under the reader is the one thing about a link that is
62
- * invisible until it has already happened.
63
- */
64
- newTab: string;
65
- };
66
- /** Spoiler. */
67
- spoiler: {
68
- /** The button that uncovers the content. */
69
- reveal: string;
70
- /** And the one that covers it again, when the Spoiler is reversible. */
71
- hide: string;
72
- /** The line above the button, saying why the content is covered. */
73
- notice: string;
74
- };
75
- /** ChatBubble. */
76
- chat: {
77
- /** The four steps a message goes through, as the mark under it. */
78
- sending: string;
79
- sent: string;
80
- delivered: string;
81
- read: string;
82
- /** And the fifth, which is not a step: it did not go. */
83
- failed: string;
84
- /** What the three dots mean. */
85
- typing: string;
86
- };
87
- /** Empty. */
88
- empty: {
89
- /**
90
- * The headline over a region with nothing in it.
91
- *
92
- * The one string in here that is *drawn* at full size rather than read out
93
- * or written on a button, and it is here for the same reason the rest are:
94
- * an empty state has nothing to take its words from. What is missing is the
95
- * caller's — a search, an inbox, a folder — so the default says only that
96
- * there is nothing, and anything more specific is the `title` prop.
97
- */
98
- title: string;
99
- };
63
+ dismiss: string;
64
+ /** The × that empties a Combobox. */
65
+ clear: string;
66
+ /** The × on a Chip. */
67
+ remove: string;
68
+ }
69
+ /** The `action` namespace, as Alert, Chip, Combobox, Dialog, Drawer, Popover and Toast read it. */
70
+ export declare const actionMessages: MessageTable<ActionMessages>;
71
+ /** TextLink. */
72
+ export interface LinkMessages {
100
73
  /**
101
- * DataTable.
102
- *
103
- * A DataTable is the one component in the library that draws chrome of its
104
- * own — a search field, a header tick that chooses everything at once, a
105
- * footer counting what is on screen — so it is also the one that has the most
106
- * to say without being handed the words.
74
+ * What is read out after a link that opens a new tab, and never drawn. A
75
+ * window changing under the reader is the one thing about a link that is
76
+ * invisible until it has already happened.
107
77
  */
108
- table: {
109
- /** Placeholder and accessible name of the search field. */
110
- search: string;
111
- /** The tick in the header row, which chooses every row at once. */
112
- selectAll: string;
113
- /** The tick on a row. */
114
- selectRow: string;
115
- /** Beside the footer's page-size Select. */
116
- rowsPerPage: string;
117
- /**
118
- * Which rows are on screen, out of how many there are. `{start}`, `{end}`
119
- * and `{total}` are replaced with the numbers, already formatted for the
120
- * locale — a template rather than three fragments, because the order the
121
- * three appear in is exactly what differs between languages.
122
- */
123
- range: string;
124
- /** How many rows are chosen. `{count}` is replaced the same way. */
125
- selected: string;
126
- /**
127
- * What a table with no rows in it says. Shared with Table, which has the
128
- * same nothing to report and no chrome of its own to say it with.
129
- */
130
- empty: string;
131
- };
78
+ newTab: string;
79
+ }
80
+ /** The `link` namespace, as TextLink read it. */
81
+ export declare const linkMessages: MessageTable<LinkMessages>;
82
+ /** Spoiler. */
83
+ export interface SpoilerMessages {
84
+ /** The button that uncovers the content. */
85
+ reveal: string;
86
+ /** And the one that covers it again, when the Spoiler is reversible. */
87
+ hide: string;
88
+ /** The line above the button, saying why the content is covered. */
89
+ notice: string;
90
+ }
91
+ /** The `spoiler` namespace, as Spoiler read it. */
92
+ export declare const spoilerMessages: MessageTable<SpoilerMessages>;
93
+ /** ChatBubble. */
94
+ export interface ChatMessages {
95
+ /** The four steps a message goes through, as the mark under it. */
96
+ sending: string;
97
+ sent: string;
98
+ delivered: string;
99
+ read: string;
100
+ /** And the fifth, which is not a step: it did not go. */
101
+ failed: string;
102
+ /** What the three dots mean. */
103
+ typing: string;
104
+ }
105
+ /** The `chat` namespace, as ChatBubble read it. */
106
+ export declare const chatMessages: MessageTable<ChatMessages>;
107
+ /** Empty. */
108
+ export interface EmptyMessages {
132
109
  /**
133
- * ColorPicker.
110
+ * The headline over a region with nothing in it.
134
111
  *
135
- * All but one of these are names for something with no text on it: a square
136
- * of colour, two rails, a grid of swatches. A control a sighted reader
137
- * understands from a glance at a gradient is a control that says nothing at
138
- * all without them, which makes this the one namespace here where the strings
139
- * are the entire accessible interface rather than a convenience on top of it.
112
+ * The one string in here that is *drawn* at full size rather than read out
113
+ * or written on a button, and it is here for the same reason the rest are:
114
+ * an empty state has nothing to take its words from. What is missing is the
115
+ * caller's — a search, an inbox, a folder — so the default says only that
116
+ * there is nothing, and anything more specific is the `title` prop.
140
117
  */
141
- color: {
142
- /** The saturation/brightness square. */
143
- area: string;
144
- /** The rail beside it. */
145
- hue: string;
146
- /** The rail below that, when `alpha` is on. */
147
- alpha: string;
148
- /** The field the colour can be typed into. */
149
- value: string;
150
- /** The grid of ready-made colours. */
151
- swatches: string;
152
- /** The × that empties the control. */
153
- clear: string;
154
- /** What the trigger reads before anything has been chosen. */
155
- empty: string;
156
- };
118
+ title: string;
119
+ }
120
+ /** The `empty` namespace, as Empty, DataTable, HeatmapChart and PieChart read it. */
121
+ export declare const emptyMessages: MessageTable<EmptyMessages>;
122
+ /**
123
+ * DataTable.
124
+ *
125
+ * A DataTable is the one component in the library that draws chrome of its
126
+ * own — a search field, a header tick that chooses everything at once, a
127
+ * footer counting what is on screen — so it is also the one that has the most
128
+ * to say without being handed the words.
129
+ */
130
+ export interface TableMessages {
131
+ /** Placeholder and accessible name of the search field. */
132
+ search: string;
133
+ /** The tick in the header row, which chooses every row at once. */
134
+ selectAll: string;
135
+ /** The tick on a row. */
136
+ selectRow: string;
137
+ /** Beside the footer's page-size Select. */
138
+ rowsPerPage: string;
157
139
  /**
158
- * Rating.
159
- *
160
- * A row of stars is the same case the ColorPicker's rails are: the whole
161
- * control is a picture, and without these it says nothing at all to a reader
162
- * who is not looking at it.
140
+ * Which rows are on screen, out of how many there are. `{start}`, `{end}`
141
+ * and `{total}` are replaced with the numbers, already formatted for the
142
+ * locale — a template rather than three fragments, because the order the
143
+ * three appear in is exactly what differs between languages.
163
144
  */
164
- rating: {
165
- /** Names the group, when the caller has not named it themselves. */
166
- label: string;
167
- /**
168
- * What one star — and the whole control, once it is read only — is called.
169
- * `{value}` and `{max}` are replaced with the numbers, already formatted
170
- * for the locale.
171
- *
172
- * A sentence with both numbers in it rather than "3 stars", because a count
173
- * of stars is a plural in most languages and a fraction in none of them:
174
- * "3 out of 5" is one string per locale, and "3 stars" is one per locale
175
- * per plural form.
176
- */
177
- value: string;
178
- /** And what it is called before anything has been chosen. */
179
- empty: string;
180
- };
145
+ range: string;
146
+ /** How many rows are chosen. `{count}` is replaced the same way. */
147
+ selected: string;
181
148
  /**
182
- * NumberField.
183
- *
184
- * Two buttons with an arrow on each and nothing else, which is the same case
185
- * the ColorPicker's rails are.
149
+ * What a table with no rows in it says. Shared with Table, which has the
150
+ * same nothing to report and no chrome of its own to say it with.
186
151
  */
187
- number: {
188
- /** The stepper that goes up. */
189
- increase: string;
190
- /** And the one that goes down. */
191
- decrease: string;
192
- };
152
+ empty: string;
153
+ }
154
+ /** The `table` namespace, as Table and DataTable read it. */
155
+ export declare const tableMessages: MessageTable<TableMessages>;
156
+ /**
157
+ * ColorPicker.
158
+ *
159
+ * All but one of these are names for something with no text on it: a square
160
+ * of colour, two rails, a grid of swatches. A control a sighted reader
161
+ * understands from a glance at a gradient is a control that says nothing at
162
+ * all without them, which makes this the one namespace here where the strings
163
+ * are the entire accessible interface rather than a convenience on top of it.
164
+ */
165
+ export interface ColorMessages {
166
+ /** The saturation/brightness square. */
167
+ area: string;
168
+ /** The rail beside it. */
169
+ hue: string;
170
+ /** The rail below that, when `alpha` is on. */
171
+ alpha: string;
172
+ /** The field the colour can be typed into. */
173
+ value: string;
174
+ /** The grid of ready-made colours. */
175
+ swatches: string;
176
+ /** The × that empties the control. */
177
+ clear: string;
178
+ /** What the trigger reads before anything has been chosen. */
179
+ empty: string;
180
+ }
181
+ /** The `color` namespace, as ColorPicker read it. */
182
+ export declare const colorMessages: MessageTable<ColorMessages>;
183
+ /**
184
+ * Rating.
185
+ *
186
+ * A row of stars is the same case the ColorPicker's rails are: the whole
187
+ * control is a picture, and without these it says nothing at all to a reader
188
+ * who is not looking at it.
189
+ */
190
+ export interface RatingMessages {
191
+ /** Names the group, when the caller has not named it themselves. */
192
+ label: string;
193
193
  /**
194
- * Pagination.
194
+ * What one star — and the whole control, once it is read only — is called.
195
+ * `{value}` and `{max}` are replaced with the numbers, already formatted
196
+ * for the locale.
195
197
  *
196
- * Every string here names a control that is a number or an arrow, so without
197
- * them the row reads out as a list of digits with no idea what they page
198
- * through.
198
+ * A sentence with both numbers in it rather than "3 stars", because a count
199
+ * of stars is a plural in most languages and a fraction in none of them:
200
+ * "3 out of 5" is one string per locale, and "3 stars" is one per locale
201
+ * per plural form.
199
202
  */
200
- pagination: {
201
- /** Names the `<nav>` landmark. */
202
- label: string;
203
- /** One page button. `{page}` is replaced with the number. */
204
- page: string;
205
- /**
206
- * Where the reader is, read out rather than drawn. `{page}` and `{total}`
207
- * are both replaced — one sentence rather than two fragments, because a
208
- * count of pages and the page you are on go in opposite orders depending on
209
- * the language.
210
- */
211
- status: string;
212
- previous: string;
213
- next: string;
214
- first: string;
215
- last: string;
216
- };
217
- /** Carousel. */
218
- carousel: {
219
- /** Names the region, beside the `carousel` roledescription. */
220
- label: string;
221
- /** One slide. `{index}` and `{total}` are replaced with the numbers. */
222
- slide: string;
223
- previous: string;
224
- next: string;
225
- };
203
+ value: string;
204
+ /** And what it is called before anything has been chosen. */
205
+ empty: string;
206
+ }
207
+ /** The `rating` namespace, as Rating read it. */
208
+ export declare const ratingMessages: MessageTable<RatingMessages>;
209
+ /**
210
+ * NumberField.
211
+ *
212
+ * Two buttons with an arrow on each and nothing else, which is the same case
213
+ * the ColorPicker's rails are.
214
+ */
215
+ export interface NumberMessages {
216
+ /** The stepper that goes up. */
217
+ increase: string;
218
+ /** And the one that goes down. */
219
+ decrease: string;
220
+ }
221
+ /** The `number` namespace, as NumberField read it. */
222
+ export declare const numberMessages: MessageTable<NumberMessages>;
223
+ /**
224
+ * Pagination.
225
+ *
226
+ * Every string here names a control that is a number or an arrow, so without
227
+ * them the row reads out as a list of digits with no idea what they page
228
+ * through.
229
+ */
230
+ export interface PaginationMessages {
231
+ /** Names the `<nav>` landmark. */
232
+ label: string;
233
+ /** One page button. `{page}` is replaced with the number. */
234
+ page: string;
226
235
  /**
227
- * ScrollZone.
228
- *
229
- * Both buttons are an arrow with nothing else on them, and which way the
230
- * strip runs is a prop — so the words are logical rather than physical. A
231
- * vertical zone's "back" is up, and under RTL a horizontal one's is to the
232
- * right.
236
+ * Where the reader is, read out rather than drawn. `{page}` and `{total}`
237
+ * are both replaced — one sentence rather than two fragments, because a
238
+ * count of pages and the page you are on go in opposite orders depending on
239
+ * the language.
233
240
  */
234
- scroll: {
235
- previous: string;
236
- next: string;
237
- };
238
- /** Breadcrumb. */
239
- breadcrumb: {
240
- /** Names the `<nav>` landmark. */
241
- label: string;
242
- /** The `…` that puts the folded middle of the trail back. */
243
- expand: string;
244
- };
245
- /** Combobox. */
246
- combobox: {
247
- /** The line where the list would be, when nothing matched what was typed. */
248
- empty: string;
249
- /** The × on one chosen entry. `{label}` is replaced with its own label. */
250
- remove: string;
251
- };
252
- /** Overlay. */
253
- overlay: {
254
- /** Names the sheet that covers whatever it was wrapped around. */
255
- label: string;
256
- };
241
+ status: string;
242
+ previous: string;
243
+ next: string;
244
+ first: string;
245
+ last: string;
246
+ }
247
+ /** The `pagination` namespace, as Pagination read it. */
248
+ export declare const paginationMessages: MessageTable<PaginationMessages>;
249
+ /** Carousel. */
250
+ export interface CarouselMessages {
251
+ /** Names the region, beside the `carousel` roledescription. */
252
+ label: string;
253
+ /** One slide. `{index}` and `{total}` are replaced with the numbers. */
254
+ slide: string;
255
+ previous: string;
256
+ next: string;
257
+ }
258
+ /** The `carousel` namespace, as Carousel read it. */
259
+ export declare const carouselMessages: MessageTable<CarouselMessages>;
260
+ /**
261
+ * ScrollZone.
262
+ *
263
+ * Both buttons are an arrow with nothing else on them, and which way the
264
+ * strip runs is a prop — so the words are logical rather than physical. A
265
+ * vertical zone's "back" is up, and under RTL a horizontal one's is to the
266
+ * right.
267
+ */
268
+ export interface ScrollMessages {
269
+ previous: string;
270
+ next: string;
271
+ }
272
+ /** The `scroll` namespace, as ScrollZone read it. */
273
+ export declare const scrollMessages: MessageTable<ScrollMessages>;
274
+ /** Breadcrumb. */
275
+ export interface BreadcrumbMessages {
276
+ /** Names the `<nav>` landmark. */
277
+ label: string;
278
+ /** The `…` that puts the folded middle of the trail back. */
279
+ expand: string;
280
+ }
281
+ /** The `breadcrumb` namespace, as Breadcrumb read it. */
282
+ export declare const breadcrumbMessages: MessageTable<BreadcrumbMessages>;
283
+ /** Combobox. */
284
+ export interface ComboboxMessages {
285
+ /** The line where the list would be, when nothing matched what was typed. */
286
+ empty: string;
287
+ /** The × on one chosen entry. `{label}` is replaced with its own label. */
288
+ remove: string;
289
+ }
290
+ /** The `combobox` namespace, as Combobox read it. */
291
+ export declare const comboboxMessages: MessageTable<ComboboxMessages>;
292
+ /** Overlay. */
293
+ export interface OverlayMessages {
294
+ /** Names the sheet that covers whatever it was wrapped around. */
295
+ label: string;
296
+ }
297
+ /** The `overlay` namespace, as Overlay read it. */
298
+ export declare const overlayMessages: MessageTable<OverlayMessages>;
299
+ /**
300
+ * WindowPane.
301
+ *
302
+ * The three buttons on a title bar that are drawings of what they do, and the
303
+ * handle that has no drawing at all. The × is `action.close`, which every
304
+ * other component's close button already reads — a reader meeting it on a
305
+ * Dialog and on a window should hear the same word.
306
+ */
307
+ export interface WindowMessages {
308
+ minimize: string;
309
+ maximize: string;
310
+ /** What the maximize button becomes once the window is maximized. */
311
+ restore: string;
312
+ /** Names the corner a pointer drags to resize. */
313
+ resize: string;
314
+ }
315
+ /** The `window` namespace, as WindowPane read it. */
316
+ export declare const windowMessages: MessageTable<WindowMessages>;
317
+ /**
318
+ * PageLayout, Header, Footer and Sidebar.
319
+ *
320
+ * A layout draws almost no text of its own — a header says whatever it was
321
+ * handed — so what is here is only the words that exist *because* the page has
322
+ * a structure: the link that jumps past it, the name of the region a reader
323
+ * lands in, and the button that puts a sidebar back on screen once the window
324
+ * is too narrow to hold one.
325
+ */
326
+ export interface LayoutMessages {
257
327
  /**
258
- * WindowPane.
259
- *
260
- * The three buttons on a title bar that are drawings of what they do, and the
261
- * handle that has no drawing at all. The × is `action.close`, which every
262
- * other component's close button already reads — a reader meeting it on a
263
- * Dialog and on a window should hear the same word.
328
+ * The link that jumps a keyboard reader past the header and the sidebars,
329
+ * drawn only while it holds the focus. It is the first thing in the document
330
+ * and, on a page with forty links in its navigation, the difference between
331
+ * reaching the article and tabbing through the site map first.
264
332
  */
265
- window: {
266
- minimize: string;
267
- maximize: string;
268
- /** What the maximize button becomes once the window is maximized. */
269
- restore: string;
270
- /** Names the corner a pointer drags to resize. */
271
- resize: string;
272
- };
333
+ skipToContent: string;
334
+ /** Names the `<aside>` when the caller gives it no name of its own. */
335
+ sidebar: string;
336
+ /** The button that brings back a sidebar the window has become too narrow to hold. */
337
+ openSidebar: string;
338
+ /** And the one that puts it away again. */
339
+ closeSidebar: string;
340
+ /** Names the edge a pointer drags to make a sidebar wider or narrower. */
341
+ resizeSidebar: string;
342
+ }
343
+ /** The `layout` namespace, as PageLayout and Sidebar read it. */
344
+ export declare const layoutMessages: MessageTable<LayoutMessages>;
345
+ /**
346
+ * CodeBlock.
347
+ *
348
+ * The one component in the library whose chrome sits *on* the content rather
349
+ * than beside it: a code block's buttons are inside the block, over the code,
350
+ * and a reader who cannot see them still has to be told what they do.
351
+ */
352
+ export interface CodeMessages {
353
+ /** Names the block itself — the scrollable region, and the fallback when no `title` is given. */
354
+ code: string;
355
+ /** The button that puts the code on the clipboard. */
356
+ copy: string;
357
+ /** What that button says once it has. */
358
+ copied: string;
359
+ /** And what it says when the browser refused — a page served over plain HTTP, mostly. */
360
+ copyFailed: string;
361
+ /** The toggle that drops the colouring and shows the characters as they are. */
362
+ raw: string;
363
+ /** What is read out in place of a prompt symbol, which is decoration and not code. */
364
+ prompt: string;
273
365
  }
366
+ /** The `code` namespace, as CodeBlock reads it. */
367
+ export declare const codeMessages: MessageTable<CodeMessages>;
274
368
  /**
275
- * The strings for a locale, merged over English.
369
+ * HowToSteps.
370
+ *
371
+ * Five words and a pair of counted sentences. The counted ones carry `{index}`,
372
+ * `{total}` and `{title}`, so a language that puts the number after the noun
373
+ * can, which is the whole reason they are strings with slots rather than
374
+ * numbers the component concatenates.
375
+ */
376
+ export interface StepsMessages {
377
+ /** The button that goes back one step. */
378
+ previous: string;
379
+ /** The one that goes forward. */
380
+ next: string;
381
+ /** And what it becomes on the last step. */
382
+ done: string;
383
+ /** The button under a finished guide. */
384
+ restart: string;
385
+ /** What a finished guide says. */
386
+ completed: string;
387
+ /** Names the list of steps for a screen reader. */
388
+ steps: string;
389
+ /** The counter over the step's body — `{index}` of `{total}`. */
390
+ position: string;
391
+ /** How one row in the list is announced. */
392
+ step: string;
393
+ }
394
+ /** The `steps` namespace, as HowToSteps reads it. */
395
+ export declare const stepsMessages: MessageTable<StepsMessages>;
396
+ /**
397
+ * One namespace's strings for a locale, merged over English.
276
398
  *
277
399
  * `undefined` is English rather than the runtime's own locale, and that is
278
400
  * deliberate: `navigator.language` differs between the server that renders the
@@ -281,9 +403,9 @@ export interface NebaMessages {
281
403
  * at. A component that should follow the reader is told which language to
282
404
  * follow.
283
405
  */
284
- export declare function resolveMessages(locale?: string): NebaMessages;
406
+ export declare function resolveMessages<T extends object>(table: MessageTable<T>, locale?: string): T;
285
407
  /** The same, as a hook, for the components that read it during a render. */
286
- export declare function useMessages(locale?: string): NebaMessages;
408
+ export declare function useMessages<T extends object>(table: MessageTable<T>, locale?: string): T;
287
409
  /**
288
410
  * Fills the `{placeholders}` in one of the strings above.
289
411
  *
@@ -295,3 +417,79 @@ export declare function useMessages(locale?: string): NebaMessages;
295
417
  * hole in the middle of a sentence.
296
418
  */
297
419
  export declare function fillMessage(template: string, values: Record<string, string>): string;
420
+ /**
421
+ * A language, as `neba/locales` hands it over.
422
+ *
423
+ * Every namespace is optional and every string inside one is too: a locale
424
+ * fills in what it has and English answers for the rest, so a translation that
425
+ * has not caught up with a new component is a translation that has not caught
426
+ * up rather than a page of blanks.
427
+ */
428
+ export interface NebaLocale {
429
+ /** Action. */
430
+ action?: Partial<ActionMessages>;
431
+ /** Link. */
432
+ link?: Partial<LinkMessages>;
433
+ /** Spoiler. */
434
+ spoiler?: Partial<SpoilerMessages>;
435
+ /** Chat. */
436
+ chat?: Partial<ChatMessages>;
437
+ /** Empty. */
438
+ empty?: Partial<EmptyMessages>;
439
+ /** Table. */
440
+ table?: Partial<TableMessages>;
441
+ /** Color. */
442
+ color?: Partial<ColorMessages>;
443
+ /** Rating. */
444
+ rating?: Partial<RatingMessages>;
445
+ /** Number. */
446
+ number?: Partial<NumberMessages>;
447
+ /** Pagination. */
448
+ pagination?: Partial<PaginationMessages>;
449
+ /** Carousel. */
450
+ carousel?: Partial<CarouselMessages>;
451
+ /** Scroll. */
452
+ scroll?: Partial<ScrollMessages>;
453
+ /** Breadcrumb. */
454
+ breadcrumb?: Partial<BreadcrumbMessages>;
455
+ /** Combobox. */
456
+ combobox?: Partial<ComboboxMessages>;
457
+ /** Overlay. */
458
+ overlay?: Partial<OverlayMessages>;
459
+ /** Window. */
460
+ window?: Partial<WindowMessages>;
461
+ /** Layout. */
462
+ layout?: Partial<LayoutMessages>;
463
+ /** Code. */
464
+ code?: Partial<CodeMessages>;
465
+ /** Steps. */
466
+ steps?: Partial<StepsMessages>;
467
+ }
468
+ /**
469
+ * Teaches the library a language.
470
+ *
471
+ * English is the only one built in. Everything else is a module under
472
+ * `neba/locales` that a project imports and registers once, at module scope,
473
+ * before it renders:
474
+ *
475
+ * ```ts
476
+ * import { registerMessages, ko } from 'neba/locales';
477
+ *
478
+ * registerMessages('ko', ko);
479
+ * ```
480
+ *
481
+ * Shipping the other seventeen unconditionally would put them in the bundle of
482
+ * every product that speaks one language, because a bundler cannot drop a key
483
+ * out of an object literal — which is the same reason the namespaces above are
484
+ * fourteen exports rather than one table. Registering is what makes the cost
485
+ * follow the need.
486
+ *
487
+ * The tag is matched the way a `locale` prop is: by script, then by region,
488
+ * then by language. Registering `zh-hans` answers `zh-CN` and a bare `zh`;
489
+ * registering `pt` answers `pt-BR`.
490
+ *
491
+ * Calling this after a tree has rendered does not re-render it. It replaces
492
+ * what a locale had, rather than merging into it, so a second call with a
493
+ * partial locale is a correction and not an addition.
494
+ */
495
+ export declare function registerMessages(tag: string, locale: NebaLocale): void;