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
@@ -1 +1 @@
1
- import*as e from"react";const a={action:{close:"Close",dismiss:"Dismiss",clear:"Clear",remove:"Remove"},link:{newTab:"(opens in a new tab)"},spoiler:{reveal:"Reveal",hide:"Hide",notice:"This may contain spoilers"},chat:{sending:"Sending",sent:"Sent",delivered:"Delivered",read:"Read",failed:"Not sent",typing:"Typing…"},empty:{title:"Nothing here"},table:{search:"Search",selectAll:"Select all rows",selectRow:"Select row",rowsPerPage:"Rows per page",range:"{start}–{end} of {total}",selected:"{count} selected",empty:"No data"},color:{area:"Saturation and brightness",hue:"Hue",alpha:"Opacity",value:"Colour value",swatches:"Preset colours",clear:"Clear",empty:"Choose a colour"},rating:{label:"Rating",value:"{value} out of {max}",empty:"No rating"},number:{increase:"Increase",decrease:"Decrease"},pagination:{label:"Pagination",page:"Page {page}",status:"Page {page} of {total}",previous:"Previous page",next:"Next page",first:"First page",last:"Last page"},carousel:{label:"Carousel",slide:"Slide {index} of {total}",previous:"Previous slide",next:"Next slide"},scroll:{previous:"Scroll back",next:"Scroll forward"},breadcrumb:{label:"Breadcrumb",expand:"Show hidden steps"},combobox:{empty:"No matches",remove:"Remove {label}"},overlay:{label:"Overlay"},window:{minimize:"Minimize",maximize:"Maximize",restore:"Restore",resize:"Resize window"}},i={ko:{action:{close:"닫기",dismiss:"알림 닫기",clear:"지우기",remove:"삭제"},link:{newTab:"(새 창에서 열림)"},spoiler:{reveal:"내용 보기",hide:"숨기기",notice:"스포일러가 포함되어 있을 수 있습니다"},chat:{sending:"보내는 중",sent:"보냄",delivered:"전달됨",read:"읽음",failed:"전송 실패",typing:"입력 중…"},empty:{title:"내용이 없습니다"},table:{search:"검색",selectAll:"모든 행 선택",selectRow:"행 선택",rowsPerPage:"페이지당 행 수",range:"전체 {total}개 중 {start}–{end}",selected:"{count}개 선택됨",empty:"데이터 없음"},color:{area:"채도와 명도",hue:"색상",alpha:"불투명도",value:"색상 값",swatches:"기본 색상",clear:"지우기",empty:"색상 선택"},rating:{label:"별점",value:"{max}점 만점에 {value}점",empty:"별점 없음"},number:{increase:"값 늘리기",decrease:"값 줄이기"},pagination:{label:"페이지 매기기",page:"{page}페이지",status:"전체 {total}페이지 중 {page}페이지",previous:"이전 페이지",next:"다음 페이지",first:"첫 페이지",last:"마지막 페이지"},carousel:{label:"캐러셀",slide:"전체 {total}장 중 {index}장",previous:"이전 슬라이드",next:"다음 슬라이드"},scroll:{previous:"뒤로 스크롤",next:"앞으로 스크롤"},breadcrumb:{label:"탐색 경로",expand:"숨겨진 단계 보기"},combobox:{empty:"일치하는 항목 없음",remove:"{label} 삭제"},overlay:{label:"오버레이"},window:{minimize:"최소화",maximize:"최대화",restore:"이전 크기로 복원",resize:"창 크기 조절"}},ja:{action:{close:"閉じる",dismiss:"閉じる",clear:"クリア",remove:"削除"},link:{newTab:"(新しいタブで開きます)"},spoiler:{reveal:"表示する",hide:"隠す",notice:"ネタバレを含む可能性があります"},chat:{sending:"送信中",sent:"送信済み",delivered:"配信済み",read:"既読",failed:"送信できませんでした",typing:"入力中…"},empty:{title:"表示するものがありません"},table:{search:"検索",selectAll:"すべての行を選択",selectRow:"行を選択",rowsPerPage:"1 ページの行数",range:"{total} 件中 {start}–{end} 件",selected:"{count} 件を選択中",empty:"データがありません"},color:{area:"彩度と明度",hue:"色相",alpha:"不透明度",value:"カラー値",swatches:"プリセットの色",clear:"クリア",empty:"色を選択"},rating:{label:"評価",value:"{max} 段階中 {value}",empty:"評価なし"},number:{increase:"増やす",decrease:"減らす"},pagination:{label:"ページ送り",page:"{page} ページ",status:"{total} ページ中 {page} ページ",previous:"前のページ",next:"次のページ",first:"最初のページ",last:"最後のページ"},carousel:{label:"カルーセル",slide:"{total} 枚中 {index} 枚目",previous:"前のスライド",next:"次のスライド"},scroll:{previous:"前へスクロール",next:"次へスクロール"},breadcrumb:{label:"パンくずリスト",expand:"省略された階層を表示"},combobox:{empty:"一致する項目がありません",remove:"{label} を削除"},overlay:{label:"オーバーレイ"},window:{minimize:"最小化",maximize:"最大化",restore:"元のサイズに戻す",resize:"ウィンドウのサイズを変更"}},"zh-hans":{action:{close:"关闭",dismiss:"关闭",clear:"清除",remove:"移除"},link:{newTab:"(在新标签页中打开)"},spoiler:{reveal:"显示内容",hide:"隐藏",notice:"此内容可能包含剧透"},chat:{sending:"发送中",sent:"已发送",delivered:"已送达",read:"已读",failed:"发送失败",typing:"正在输入…"},empty:{title:"暂无内容"},table:{search:"搜索",selectAll:"全选所有行",selectRow:"选择此行",rowsPerPage:"每页行数",range:"第 {start}–{end} 行,共 {total} 行",selected:"已选择 {count} 行",empty:"暂无数据"},color:{area:"饱和度和明度",hue:"色相",alpha:"不透明度",value:"颜色值",swatches:"预设颜色",clear:"清除",empty:"选择颜色"},rating:{label:"评分",value:"{max} 分中的 {value} 分",empty:"未评分"},number:{increase:"增加",decrease:"减少"},pagination:{label:"分页",page:"第 {page} 页",status:"第 {page} 页,共 {total} 页",previous:"上一页",next:"下一页",first:"第一页",last:"最后一页"},carousel:{label:"轮播",slide:"第 {index} 张,共 {total} 张",previous:"上一张",next:"下一张"},scroll:{previous:"向前滚动",next:"向后滚动"},breadcrumb:{label:"面包屑导航",expand:"显示隐藏的层级"},combobox:{empty:"无匹配项",remove:"移除 {label}"},overlay:{label:"遮罩层"},window:{minimize:"最小化",maximize:"最大化",restore:"向下还原",resize:"调整窗口大小"}},"zh-hant":{action:{close:"關閉",dismiss:"關閉",clear:"清除",remove:"移除"},link:{newTab:"(在新分頁中開啟)"},spoiler:{reveal:"顯示內容",hide:"隱藏",notice:"此內容可能包含劇透"},chat:{sending:"傳送中",sent:"已傳送",delivered:"已送達",read:"已讀",failed:"傳送失敗",typing:"正在輸入…"},empty:{title:"沒有內容"},table:{search:"搜尋",selectAll:"全選所有列",selectRow:"選擇此列",rowsPerPage:"每頁列數",range:"第 {start}–{end} 列,共 {total} 列",selected:"已選擇 {count} 列",empty:"沒有資料"},color:{area:"飽和度與明度",hue:"色相",alpha:"不透明度",value:"顏色值",swatches:"預設顏色",clear:"清除",empty:"選擇顏色"},rating:{label:"評分",value:"{max} 分中的 {value} 分",empty:"未評分"},number:{increase:"增加",decrease:"減少"},pagination:{label:"分頁",page:"第 {page} 頁",status:"第 {page} 頁,共 {total} 頁",previous:"上一頁",next:"下一頁",first:"第一頁",last:"最後一頁"},carousel:{label:"輪播",slide:"第 {index} 張,共 {total} 張",previous:"上一張",next:"下一張"},scroll:{previous:"向前捲動",next:"向後捲動"},breadcrumb:{label:"麵包屑導覽",expand:"顯示隱藏的層級"},combobox:{empty:"沒有相符的項目",remove:"移除 {label}"},overlay:{label:"遮罩層"},window:{minimize:"最小化",maximize:"最大化",restore:"還原",resize:"調整視窗大小"}},es:{action:{close:"Cerrar",dismiss:"Descartar",clear:"Borrar",remove:"Quitar"},link:{newTab:"(se abre en una pestaña nueva)"},spoiler:{reveal:"Mostrar",hide:"Ocultar",notice:"Puede contener spoilers"},chat:{sending:"Enviando",sent:"Enviado",delivered:"Entregado",read:"Leído",failed:"No enviado",typing:"Escribiendo…"},empty:{title:"No hay nada aquí"},table:{search:"Buscar",selectAll:"Seleccionar todas las filas",selectRow:"Seleccionar fila",rowsPerPage:"Filas por página",range:"{start}–{end} de {total}",selected:"{count} seleccionadas",empty:"Sin datos"},color:{area:"Saturación y brillo",hue:"Tono",alpha:"Opacidad",value:"Valor del color",swatches:"Colores predefinidos",clear:"Borrar",empty:"Elegir un color"},rating:{label:"Valoración",value:"{value} de {max}",empty:"Sin valoración"},number:{increase:"Aumentar",decrease:"Disminuir"},pagination:{label:"Paginación",page:"Página {page}",status:"Página {page} de {total}",previous:"Página anterior",next:"Página siguiente",first:"Primera página",last:"Última página"},carousel:{label:"Carrusel",slide:"Diapositiva {index} de {total}",previous:"Diapositiva anterior",next:"Diapositiva siguiente"},scroll:{previous:"Desplazar hacia atrás",next:"Desplazar hacia adelante"},breadcrumb:{label:"Ruta de navegación",expand:"Mostrar los pasos ocultos"},combobox:{empty:"Sin coincidencias",remove:"Quitar {label}"},overlay:{label:"Superposición"},window:{minimize:"Minimizar",maximize:"Maximizar",restore:"Restaurar",resize:"Cambiar el tamaño de la ventana"}},pt:{action:{close:"Fechar",dismiss:"Dispensar",clear:"Limpar",remove:"Remover"},link:{newTab:"(abre em uma nova aba)"},spoiler:{reveal:"Mostrar",hide:"Ocultar",notice:"Pode conter spoilers"},chat:{sending:"Enviando",sent:"Enviado",delivered:"Entregue",read:"Lido",failed:"Não enviado",typing:"Digitando…"},empty:{title:"Nada por aqui"},table:{search:"Pesquisar",selectAll:"Selecionar todas as linhas",selectRow:"Selecionar linha",rowsPerPage:"Linhas por página",range:"{start}–{end} de {total}",selected:"{count} selecionadas",empty:"Sem dados"},color:{area:"Saturação e brilho",hue:"Matiz",alpha:"Opacidade",value:"Valor da cor",swatches:"Cores predefinidas",clear:"Limpar",empty:"Escolher uma cor"},rating:{label:"Avaliação",value:"{value} de {max}",empty:"Sem avaliação"},number:{increase:"Aumentar",decrease:"Diminuir"},pagination:{label:"Paginação",page:"Página {page}",status:"Página {page} de {total}",previous:"Página anterior",next:"Próxima página",first:"Primeira página",last:"Última página"},carousel:{label:"Carrossel",slide:"Slide {index} de {total}",previous:"Slide anterior",next:"Próximo slide"},scroll:{previous:"Rolar para trás",next:"Rolar para a frente"},breadcrumb:{label:"Trilha de navegação",expand:"Mostrar as etapas ocultas"},combobox:{empty:"Nenhuma correspondência",remove:"Remover {label}"},overlay:{label:"Sobreposição"},window:{minimize:"Minimizar",maximize:"Maximizar",restore:"Restaurar",resize:"Redimensionar a janela"}},fr:{action:{close:"Fermer",dismiss:"Ignorer",clear:"Effacer",remove:"Supprimer"},link:{newTab:"(s’ouvre dans un nouvel onglet)"},spoiler:{reveal:"Afficher",hide:"Masquer",notice:"Peut contenir des spoilers"},chat:{sending:"Envoi en cours",sent:"Envoyé",delivered:"Distribué",read:"Lu",failed:"Non envoyé",typing:"En train d’écrire…"},empty:{title:"Rien ici"},table:{search:"Rechercher",selectAll:"Sélectionner toutes les lignes",selectRow:"Sélectionner la ligne",rowsPerPage:"Lignes par page",range:"{start}–{end} sur {total}",selected:"{count} sélectionnées",empty:"Aucune donnée"},color:{area:"Saturation et luminosité",hue:"Teinte",alpha:"Opacité",value:"Valeur de la couleur",swatches:"Couleurs prédéfinies",clear:"Effacer",empty:"Choisir une couleur"},rating:{label:"Note",value:"{value} sur {max}",empty:"Aucune note"},number:{increase:"Augmenter",decrease:"Diminuer"},pagination:{label:"Pagination",page:"Page {page}",status:"Page {page} sur {total}",previous:"Page précédente",next:"Page suivante",first:"Première page",last:"Dernière page"},carousel:{label:"Carrousel",slide:"Diapositive {index} sur {total}",previous:"Diapositive précédente",next:"Diapositive suivante"},scroll:{previous:"Faire défiler vers l’arrière",next:"Faire défiler vers l’avant"},breadcrumb:{label:"Fil d’Ariane",expand:"Afficher les étapes masquées"},combobox:{empty:"Aucun résultat",remove:"Supprimer {label}"},overlay:{label:"Superposition"},window:{minimize:"Réduire",maximize:"Agrandir",restore:"Restaurer",resize:"Redimensionner la fenêtre"}},de:{action:{close:"Schließen",dismiss:"Ausblenden",clear:"Löschen",remove:"Entfernen"},link:{newTab:"(wird in einem neuen Tab geöffnet)"},spoiler:{reveal:"Anzeigen",hide:"Ausblenden",notice:"Kann Spoiler enthalten"},chat:{sending:"Wird gesendet",sent:"Gesendet",delivered:"Zugestellt",read:"Gelesen",failed:"Nicht gesendet",typing:"Schreibt…"},empty:{title:"Nichts vorhanden"},table:{search:"Suchen",selectAll:"Alle Zeilen auswählen",selectRow:"Zeile auswählen",rowsPerPage:"Zeilen pro Seite",range:"{start}–{end} von {total}",selected:"{count} ausgewählt",empty:"Keine Daten"},color:{area:"Sättigung und Helligkeit",hue:"Farbton",alpha:"Deckkraft",value:"Farbwert",swatches:"Vorgegebene Farben",clear:"Löschen",empty:"Farbe auswählen"},rating:{label:"Bewertung",value:"{value} von {max}",empty:"Keine Bewertung"},number:{increase:"Erhöhen",decrease:"Verringern"},pagination:{label:"Seitennavigation",page:"Seite {page}",status:"Seite {page} von {total}",previous:"Vorherige Seite",next:"Nächste Seite",first:"Erste Seite",last:"Letzte Seite"},carousel:{label:"Karussell",slide:"Folie {index} von {total}",previous:"Vorherige Folie",next:"Nächste Folie"},scroll:{previous:"Zurückscrollen",next:"Weiterscrollen"},breadcrumb:{label:"Breadcrumb-Navigation",expand:"Ausgeblendete Schritte anzeigen"},combobox:{empty:"Keine Treffer",remove:"{label} entfernen"},overlay:{label:"Overlay"},window:{minimize:"Minimieren",maximize:"Maximieren",restore:"Wiederherstellen",resize:"Fenstergröße ändern"}},it:{action:{close:"Chiudi",dismiss:"Ignora",clear:"Cancella",remove:"Rimuovi"},link:{newTab:"(si apre in una nuova scheda)"},spoiler:{reveal:"Mostra",hide:"Nascondi",notice:"Può contenere spoiler"},chat:{sending:"Invio in corso",sent:"Inviato",delivered:"Consegnato",read:"Letto",failed:"Non inviato",typing:"Sta scrivendo…"},empty:{title:"Non c’è nulla"},table:{search:"Cerca",selectAll:"Seleziona tutte le righe",selectRow:"Seleziona riga",rowsPerPage:"Righe per pagina",range:"{start}–{end} di {total}",selected:"{count} selezionate",empty:"Nessun dato"},color:{area:"Saturazione e luminosità",hue:"Tonalità",alpha:"Opacità",value:"Valore del colore",swatches:"Colori predefiniti",clear:"Cancella",empty:"Scegli un colore"},rating:{label:"Valutazione",value:"{value} su {max}",empty:"Nessuna valutazione"},number:{increase:"Aumenta",decrease:"Diminuisci"},pagination:{label:"Impaginazione",page:"Pagina {page}",status:"Pagina {page} di {total}",previous:"Pagina precedente",next:"Pagina successiva",first:"Prima pagina",last:"Ultima pagina"},carousel:{label:"Carosello",slide:"Diapositiva {index} di {total}",previous:"Diapositiva precedente",next:"Diapositiva successiva"},scroll:{previous:"Scorri indietro",next:"Scorri avanti"},breadcrumb:{label:"Percorso di navigazione",expand:"Mostra i passaggi nascosti"},combobox:{empty:"Nessun risultato",remove:"Rimuovi {label}"},overlay:{label:"Sovrapposizione"},window:{minimize:"Riduci a icona",maximize:"Ingrandisci",restore:"Ripristina",resize:"Ridimensiona la finestra"}},nl:{action:{close:"Sluiten",dismiss:"Negeren",clear:"Wissen",remove:"Verwijderen"},link:{newTab:"(opent in een nieuw tabblad)"},spoiler:{reveal:"Tonen",hide:"Verbergen",notice:"Kan spoilers bevatten"},chat:{sending:"Wordt verzonden",sent:"Verzonden",delivered:"Afgeleverd",read:"Gelezen",failed:"Niet verzonden",typing:"Aan het typen…"},empty:{title:"Hier is niets"},table:{search:"Zoeken",selectAll:"Alle rijen selecteren",selectRow:"Rij selecteren",rowsPerPage:"Rijen per pagina",range:"{start}–{end} van {total}",selected:"{count} geselecteerd",empty:"Geen gegevens"},color:{area:"Verzadiging en helderheid",hue:"Kleurtoon",alpha:"Dekking",value:"Kleurwaarde",swatches:"Vooraf ingestelde kleuren",clear:"Wissen",empty:"Kies een kleur"},rating:{label:"Beoordeling",value:"{value} van {max}",empty:"Geen beoordeling"},number:{increase:"Verhogen",decrease:"Verlagen"},pagination:{label:"Paginering",page:"Pagina {page}",status:"Pagina {page} van {total}",previous:"Vorige pagina",next:"Volgende pagina",first:"Eerste pagina",last:"Laatste pagina"},carousel:{label:"Carrousel",slide:"Dia {index} van {total}",previous:"Vorige dia",next:"Volgende dia"},scroll:{previous:"Terugscrollen",next:"Vooruitscrollen"},breadcrumb:{label:"Kruimelpad",expand:"Verborgen stappen tonen"},combobox:{empty:"Geen resultaten",remove:"{label} verwijderen"},overlay:{label:"Overlay"},window:{minimize:"Minimaliseren",maximize:"Maximaliseren",restore:"Vorig formaat",resize:"Venstergrootte wijzigen"}},pl:{action:{close:"Zamknij",dismiss:"Odrzuć",clear:"Wyczyść",remove:"Usuń"},link:{newTab:"(otwiera się w nowej karcie)"},spoiler:{reveal:"Pokaż",hide:"Ukryj",notice:"Może zawierać spoilery"},chat:{sending:"Wysyłanie",sent:"Wysłano",delivered:"Dostarczono",read:"Przeczytano",failed:"Nie wysłano",typing:"Pisze…"},empty:{title:"Nic tu nie ma"},table:{search:"Szukaj",selectAll:"Zaznacz wszystkie wiersze",selectRow:"Zaznacz wiersz",rowsPerPage:"Wierszy na stronę",range:"{start}–{end} z {total}",selected:"Zaznaczono: {count}",empty:"Brak danych"},color:{area:"Nasycenie i jasność",hue:"Barwa",alpha:"Krycie",value:"Wartość koloru",swatches:"Kolory predefiniowane",clear:"Wyczyść",empty:"Wybierz kolor"},rating:{label:"Ocena",value:"{value} z {max}",empty:"Brak oceny"},number:{increase:"Zwiększ",decrease:"Zmniejsz"},pagination:{label:"Paginacja",page:"Strona {page}",status:"Strona {page} z {total}",previous:"Poprzednia strona",next:"Następna strona",first:"Pierwsza strona",last:"Ostatnia strona"},carousel:{label:"Karuzela",slide:"Slajd {index} z {total}",previous:"Poprzedni slajd",next:"Następny slajd"},scroll:{previous:"Przewiń wstecz",next:"Przewiń dalej"},breadcrumb:{label:"Ścieżka nawigacji",expand:"Pokaż ukryte kroki"},combobox:{empty:"Brak wyników",remove:"Usuń {label}"},overlay:{label:"Nakładka"},window:{minimize:"Minimalizuj",maximize:"Maksymalizuj",restore:"Przywróć",resize:"Zmień rozmiar okna"}},ru:{action:{close:"Закрыть",dismiss:"Скрыть",clear:"Очистить",remove:"Удалить"},link:{newTab:"(откроется в новой вкладке)"},spoiler:{reveal:"Показать",hide:"Скрыть",notice:"Может содержать спойлеры"},chat:{sending:"Отправляется",sent:"Отправлено",delivered:"Доставлено",read:"Прочитано",failed:"Не отправлено",typing:"Печатает…"},empty:{title:"Здесь пусто"},table:{search:"Поиск",selectAll:"Выбрать все строки",selectRow:"Выбрать строку",rowsPerPage:"Строк на странице",range:"{start}–{end} из {total}",selected:"Выбрано: {count}",empty:"Нет данных"},color:{area:"Насыщенность и яркость",hue:"Оттенок",alpha:"Непрозрачность",value:"Значение цвета",swatches:"Готовые цвета",clear:"Очистить",empty:"Выберите цвет"},rating:{label:"Оценка",value:"{value} из {max}",empty:"Без оценки"},number:{increase:"Увеличить",decrease:"Уменьшить"},pagination:{label:"Постраничная навигация",page:"Страница {page}",status:"Страница {page} из {total}",previous:"Предыдущая страница",next:"Следующая страница",first:"Первая страница",last:"Последняя страница"},carousel:{label:"Карусель",slide:"Слайд {index} из {total}",previous:"Предыдущий слайд",next:"Следующий слайд"},scroll:{previous:"Прокрутить назад",next:"Прокрутить вперёд"},breadcrumb:{label:"Навигационная цепочка",expand:"Показать скрытые шаги"},combobox:{empty:"Совпадений нет",remove:"Удалить {label}"},overlay:{label:"Наложение"},window:{minimize:"Свернуть",maximize:"Развернуть",restore:"Восстановить",resize:"Изменить размер окна"}},tr:{action:{close:"Kapat",dismiss:"Yoksay",clear:"Temizle",remove:"Kaldır"},link:{newTab:"(yeni sekmede açılır)"},spoiler:{reveal:"Göster",hide:"Gizle",notice:"Spoiler içerebilir"},chat:{sending:"Gönderiliyor",sent:"Gönderildi",delivered:"İletildi",read:"Okundu",failed:"Gönderilemedi",typing:"Yazıyor…"},empty:{title:"Burada bir şey yok"},table:{search:"Ara",selectAll:"Tüm satırları seç",selectRow:"Satırı seç",rowsPerPage:"Sayfa başına satır",range:"{total} kayıttan {start}–{end}",selected:"{count} seçildi",empty:"Veri yok"},color:{area:"Doygunluk ve parlaklık",hue:"Renk tonu",alpha:"Opaklık",value:"Renk değeri",swatches:"Hazır renkler",clear:"Temizle",empty:"Bir renk seçin"},rating:{label:"Değerlendirme",value:"{max} üzerinden {value}",empty:"Değerlendirilmedi"},number:{increase:"Artır",decrease:"Azalt"},pagination:{label:"Sayfalama",page:"{page}. sayfa",status:"{total} sayfadan {page}. sayfa",previous:"Önceki sayfa",next:"Sonraki sayfa",first:"İlk sayfa",last:"Son sayfa"},carousel:{label:"Karusel",slide:"{total} slayttan {index}. slayt",previous:"Önceki slayt",next:"Sonraki slayt"},scroll:{previous:"Geri kaydır",next:"İleri kaydır"},breadcrumb:{label:"Gezinti yolu",expand:"Gizli adımları göster"},combobox:{empty:"Eşleşme yok",remove:"{label} kaldır"},overlay:{label:"Kaplama"},window:{minimize:"Simge durumuna küçült",maximize:"Ekranı kapla",restore:"Geri yükle",resize:"Pencereyi yeniden boyutlandır"}},ar:{action:{close:"إغلاق",dismiss:"تجاهل",clear:"مسح",remove:"إزالة"},link:{newTab:"(يفتح في علامة تبويب جديدة)"},spoiler:{reveal:"إظهار",hide:"إخفاء",notice:"قد يحتوي على حرق للأحداث"},chat:{sending:"جارٍ الإرسال",sent:"تم الإرسال",delivered:"تم التسليم",read:"تمت القراءة",failed:"لم يتم الإرسال",typing:"يكتب الآن…"},empty:{title:"لا يوجد شيء هنا"},table:{search:"بحث",selectAll:"تحديد كل الصفوف",selectRow:"تحديد الصف",rowsPerPage:"صفوف لكل صفحة",range:"{start}–{end} من {total}",selected:"تم تحديد {count}",empty:"لا توجد بيانات"},color:{area:"التشبع والسطوع",hue:"درجة اللون",alpha:"العتامة",value:"قيمة اللون",swatches:"ألوان جاهزة",clear:"مسح",empty:"اختر لونًا"},rating:{label:"التقييم",value:"{value} من {max}",empty:"بدون تقييم"},number:{increase:"زيادة",decrease:"إنقاص"},pagination:{label:"ترقيم الصفحات",page:"الصفحة {page}",status:"الصفحة {page} من {total}",previous:"الصفحة السابقة",next:"الصفحة التالية",first:"الصفحة الأولى",last:"الصفحة الأخيرة"},carousel:{label:"شريط عرض",slide:"الشريحة {index} من {total}",previous:"الشريحة السابقة",next:"الشريحة التالية"},scroll:{previous:"التمرير للخلف",next:"التمرير للأمام"},breadcrumb:{label:"مسار التنقل",expand:"إظهار الخطوات المخفية"},combobox:{empty:"لا توجد نتائج مطابقة",remove:"إزالة {label}"},overlay:{label:"تراكب"},window:{minimize:"تصغير",maximize:"تكبير",restore:"استعادة",resize:"تغيير حجم النافذة"}},hi:{action:{close:"बंद करें",dismiss:"खारिज करें",clear:"साफ़ करें",remove:"हटाएँ"},link:{newTab:"(नए टैब में खुलता है)"},spoiler:{reveal:"दिखाएँ",hide:"छिपाएँ",notice:"इसमें स्पॉइलर हो सकते हैं"},chat:{sending:"भेजा जा रहा है",sent:"भेजा गया",delivered:"डिलीवर हुआ",read:"पढ़ा गया",failed:"नहीं भेजा गया",typing:"टाइप कर रहे हैं…"},empty:{title:"यहाँ कुछ नहीं है"},table:{search:"खोजें",selectAll:"सभी पंक्तियाँ चुनें",selectRow:"पंक्ति चुनें",rowsPerPage:"प्रति पृष्ठ पंक्तियाँ",range:"{total} में से {start}–{end}",selected:"{count} चुनी गईं",empty:"कोई डेटा नहीं"},color:{area:"संतृप्ति और चमक",hue:"रंग",alpha:"अपारदर्शिता",value:"रंग मान",swatches:"पूर्व निर्धारित रंग",clear:"साफ़ करें",empty:"एक रंग चुनें"},rating:{label:"रेटिंग",value:"{max} में से {value}",empty:"कोई रेटिंग नहीं"},number:{increase:"बढ़ाएँ",decrease:"घटाएँ"},pagination:{label:"पृष्ठ क्रमांकन",page:"पृष्ठ {page}",status:"{total} में से पृष्ठ {page}",previous:"पिछला पृष्ठ",next:"अगला पृष्ठ",first:"पहला पृष्ठ",last:"अंतिम पृष्ठ"},carousel:{label:"कैरोसेल",slide:"{total} में से स्लाइड {index}",previous:"पिछली स्लाइड",next:"अगली स्लाइड"},scroll:{previous:"पीछे स्क्रॉल करें",next:"आगे स्क्रॉल करें"},breadcrumb:{label:"ब्रेडक्रंब",expand:"छिपे हुए चरण दिखाएँ"},combobox:{empty:"कोई मिलान नहीं",remove:"{label} हटाएँ"},overlay:{label:"ओवरले"},window:{minimize:"छोटा करें",maximize:"बड़ा करें",restore:"पुनर्स्थापित करें",resize:"विंडो का आकार बदलें"}},id:{action:{close:"Tutup",dismiss:"Abaikan",clear:"Bersihkan",remove:"Hapus"},link:{newTab:"(terbuka di tab baru)"},spoiler:{reveal:"Tampilkan",hide:"Sembunyikan",notice:"Mungkin mengandung spoiler"},chat:{sending:"Mengirim",sent:"Terkirim",delivered:"Diterima",read:"Dibaca",failed:"Gagal terkirim",typing:"Sedang mengetik…"},empty:{title:"Tidak ada apa-apa di sini"},table:{search:"Cari",selectAll:"Pilih semua baris",selectRow:"Pilih baris",rowsPerPage:"Baris per halaman",range:"{start}–{end} dari {total}",selected:"{count} dipilih",empty:"Tidak ada data"},color:{area:"Saturasi dan kecerahan",hue:"Rona",alpha:"Opasitas",value:"Nilai warna",swatches:"Warna preset",clear:"Hapus",empty:"Pilih warna"},rating:{label:"Peringkat",value:"{value} dari {max}",empty:"Belum ada peringkat"},number:{increase:"Tambah",decrease:"Kurangi"},pagination:{label:"Penomoran halaman",page:"Halaman {page}",status:"Halaman {page} dari {total}",previous:"Halaman sebelumnya",next:"Halaman berikutnya",first:"Halaman pertama",last:"Halaman terakhir"},carousel:{label:"Korsel",slide:"Slide {index} dari {total}",previous:"Slide sebelumnya",next:"Slide berikutnya"},scroll:{previous:"Gulir ke belakang",next:"Gulir ke depan"},breadcrumb:{label:"Remah roti",expand:"Tampilkan langkah tersembunyi"},combobox:{empty:"Tidak ada yang cocok",remove:"Hapus {label}"},overlay:{label:"Hamparan"},window:{minimize:"Perkecil",maximize:"Perbesar",restore:"Pulihkan",resize:"Ubah ukuran jendela"}},vi:{action:{close:"Đóng",dismiss:"Bỏ qua",clear:"Xóa",remove:"Gỡ bỏ"},link:{newTab:"(mở trong tab mới)"},spoiler:{reveal:"Hiện nội dung",hide:"Ẩn",notice:"Có thể chứa nội dung tiết lộ"},chat:{sending:"Đang gửi",sent:"Đã gửi",delivered:"Đã nhận",read:"Đã xem",failed:"Chưa gửi được",typing:"Đang nhập…"},empty:{title:"Không có gì ở đây"},table:{search:"Tìm kiếm",selectAll:"Chọn tất cả các hàng",selectRow:"Chọn hàng",rowsPerPage:"Số hàng mỗi trang",range:"{start}–{end} trên {total}",selected:"Đã chọn {count}",empty:"Không có dữ liệu"},color:{area:"Độ bão hòa và độ sáng",hue:"Sắc độ",alpha:"Độ mờ đục",value:"Giá trị màu",swatches:"Màu dựng sẵn",clear:"Xóa",empty:"Chọn màu"},rating:{label:"Đánh giá",value:"{value} trên {max}",empty:"Chưa đánh giá"},number:{increase:"Tăng",decrease:"Giảm"},pagination:{label:"Phân trang",page:"Trang {page}",status:"Trang {page} trên {total}",previous:"Trang trước",next:"Trang sau",first:"Trang đầu",last:"Trang cuối"},carousel:{label:"Băng chuyền",slide:"Trang chiếu {index} trên {total}",previous:"Trang chiếu trước",next:"Trang chiếu sau"},scroll:{previous:"Cuộn lùi lại",next:"Cuộn tới"},breadcrumb:{label:"Đường dẫn",expand:"Hiện các bước đã ẩn"},combobox:{empty:"Không có kết quả",remove:"Gỡ bỏ {label}"},overlay:{label:"Lớp phủ"},window:{minimize:"Thu nhỏ",maximize:"Phóng to",restore:"Khôi phục",resize:"Thay đổi kích thước cửa sổ"}},th:{action:{close:"ปิด",dismiss:"ปิดการแจ้งเตือน",clear:"ล้าง",remove:"นำออก"},link:{newTab:"(เปิดในแท็บใหม่)"},spoiler:{reveal:"แสดงเนื้อหา",hide:"ซ่อน",notice:"อาจมีการเปิดเผยเนื้อหา"},chat:{sending:"กำลังส่ง",sent:"ส่งแล้ว",delivered:"ส่งถึงแล้ว",read:"อ่านแล้ว",failed:"ส่งไม่สำเร็จ",typing:"กำลังพิมพ์…"},empty:{title:"ไม่มีอะไรที่นี่"},table:{search:"ค้นหา",selectAll:"เลือกทุกแถว",selectRow:"เลือกแถวนี้",rowsPerPage:"จำนวนแถวต่อหน้า",range:"{start}–{end} จาก {total}",selected:"เลือกแล้ว {count} รายการ",empty:"ไม่มีข้อมูล"},color:{area:"ความอิ่มตัวและความสว่าง",hue:"เฉดสี",alpha:"ความทึบ",value:"ค่าสี",swatches:"สีที่กำหนดไว้",clear:"ล้าง",empty:"เลือกสี"},rating:{label:"คะแนน",value:"{value} จาก {max}",empty:"ยังไม่มีคะแนน"},number:{increase:"เพิ่ม",decrease:"ลด"},pagination:{label:"การแบ่งหน้า",page:"หน้า {page}",status:"หน้า {page} จาก {total}",previous:"หน้าก่อนหน้า",next:"หน้าถัดไป",first:"หน้าแรก",last:"หน้าสุดท้าย"},carousel:{label:"ภาพเลื่อน",slide:"สไลด์ {index} จาก {total}",previous:"สไลด์ก่อนหน้า",next:"สไลด์ถัดไป"},scroll:{previous:"เลื่อนย้อนกลับ",next:"เลื่อนไปข้างหน้า"},breadcrumb:{label:"เส้นทางนำทาง",expand:"แสดงขั้นตอนที่ซ่อนอยู่"},combobox:{empty:"ไม่พบรายการที่ตรงกัน",remove:"นำ {label} ออก"},overlay:{label:"เลเยอร์ซ้อน"},window:{minimize:"ย่อ",maximize:"ขยาย",restore:"คืนค่า",resize:"ปรับขนาดหน้าต่าง"}}},r={zh:"zh-hans","zh-cn":"zh-hans","zh-my":"zh-hans","zh-sg":"zh-hans","zh-hk":"zh-hant","zh-mo":"zh-hant","zh-tw":"zh-hant"};const l=new Map([["",a]]);export function resolveMessages(e){const t=e?.trim()??"",n=l.get(t);if(n)return n;const s=function(e){const a=e.toLowerCase().split(/[-_]/).filter(Boolean),i=a[0];if(!i)return[];const r=a.slice(1),l=r.find(e=>/^[a-z]{4}$/.test(e)),t=r.find(e=>/^([a-z]{2}|\d{3})$/.test(e));return[l?`${i}-${l}`:"",t?`${i}-${t}`:"",i].filter(Boolean)}(t).map(e=>i[e]??i[r[e]??""]).find(Boolean),o=s?{action:{...a.action,...s.action},link:{...a.link,...s.link},spoiler:{...a.spoiler,...s.spoiler},chat:{...a.chat,...s.chat},empty:{...a.empty,...s.empty},table:{...a.table,...s.table},color:{...a.color,...s.color},rating:{...a.rating,...s.rating},number:{...a.number,...s.number},pagination:{...a.pagination,...s.pagination},carousel:{...a.carousel,...s.carousel},scroll:{...a.scroll,...s.scroll},breadcrumb:{...a.breadcrumb,...s.breadcrumb},combobox:{...a.combobox,...s.combobox},overlay:{...a.overlay,...s.overlay},window:{...a.window,...s.window}}:a;return l.set(t,o),o}export function useMessages(a){return e.useMemo(()=>resolveMessages(a),[a])}export function fillMessage(e,a){return e.replace(/\{(\w+)\}/g,(e,i)=>a[i]??e)}
1
+ import*as e from"react";export const actionMessages={"":{close:"Close",dismiss:"Dismiss",clear:"Clear",remove:"Remove"}};export const linkMessages={"":{newTab:"(opens in a new tab)"}};export const spoilerMessages={"":{reveal:"Reveal",hide:"Hide",notice:"This may contain spoilers"}};export const chatMessages={"":{sending:"Sending",sent:"Sent",delivered:"Delivered",read:"Read",failed:"Not sent",typing:"Typing…"}};export const emptyMessages={"":{title:"Nothing here"}};export const tableMessages={"":{search:"Search",selectAll:"Select all rows",selectRow:"Select row",rowsPerPage:"Rows per page",range:"{start}–{end} of {total}",selected:"{count} selected",empty:"No data"}};export const colorMessages={"":{area:"Saturation and brightness",hue:"Hue",alpha:"Opacity",value:"Colour value",swatches:"Preset colours",clear:"Clear",empty:"Choose a colour"}};export const ratingMessages={"":{label:"Rating",value:"{value} out of {max}",empty:"No rating"}};export const numberMessages={"":{increase:"Increase",decrease:"Decrease"}};export const paginationMessages={"":{label:"Pagination",page:"Page {page}",status:"Page {page} of {total}",previous:"Previous page",next:"Next page",first:"First page",last:"Last page"}};export const carouselMessages={"":{label:"Carousel",slide:"Slide {index} of {total}",previous:"Previous slide",next:"Next slide"}};export const scrollMessages={"":{previous:"Scroll back",next:"Scroll forward"}};export const breadcrumbMessages={"":{label:"Breadcrumb",expand:"Show hidden steps"}};export const comboboxMessages={"":{empty:"No matches",remove:"Remove {label}"}};export const overlayMessages={"":{label:"Overlay"}};export const windowMessages={"":{minimize:"Minimize",maximize:"Maximize",restore:"Restore",resize:"Resize window"}};export const layoutMessages={"":{skipToContent:"Skip to content",sidebar:"Sidebar",openSidebar:"Open sidebar",closeSidebar:"Close sidebar",resizeSidebar:"Resize sidebar"}};export const codeMessages={"":{code:"Code",copy:"Copy",copied:"Copied",copyFailed:"Could not copy",raw:"Raw",prompt:"Prompt"}};export const stepsMessages={"":{previous:"Previous",next:"Next",done:"Done",restart:"Start over",completed:"All steps complete",steps:"Steps",position:"{index} of {total}",step:"Step {index}: {title}"}};const s={zh:"zh-hans","zh-cn":"zh-hans","zh-my":"zh-hans","zh-sg":"zh-hans","zh-hk":"zh-hant","zh-mo":"zh-hant","zh-tw":"zh-hant"};const o=new WeakMap;export function resolveMessages(e,t){const a=e[""],r=t?.trim()??"";if(!r)return a;let n=o.get(e);n||(n=new Map,o.set(e,n));const i=n.get(r);if(i)return i;const l=function(e){const s=e.toLowerCase().split(/[-_]/).filter(Boolean),o=s[0];if(!o)return[];const t=s.slice(1),a=t.find(e=>/^[a-z]{4}$/.test(e)),r=t.find(e=>/^([a-z]{2}|\d{3})$/.test(e));return[a?`${o}-${a}`:"",r?`${o}-${r}`:"",o].filter(Boolean)}(r).map(o=>{const t=s[o];return e[o]??(t?e[t]:void 0)}).find(Boolean),c=l?{...a,...l}:a;return n.set(r,c),c}export function useMessages(s,o){return e.useMemo(()=>resolveMessages(s,o),[s,o])}export function fillMessage(e,s){return e.replace(/\{(\w+)\}/g,(e,o)=>s[o]??e)}const t={action:actionMessages,link:linkMessages,spoiler:spoilerMessages,chat:chatMessages,empty:emptyMessages,table:tableMessages,color:colorMessages,rating:ratingMessages,number:numberMessages,pagination:paginationMessages,carousel:carouselMessages,scroll:scrollMessages,breadcrumb:breadcrumbMessages,combobox:comboboxMessages,overlay:overlayMessages,window:windowMessages,layout:layoutMessages,code:codeMessages,steps:stepsMessages};export function registerMessages(e,s){const a=e.trim().toLowerCase();for(const[e,r]of Object.entries(s)){const s=t[e];s&&r&&(s[a]=r,o.delete(s))}}
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import type { NebaColor } from '../types';
2
+ import type { NebaColor } from '../types.js';
3
3
  /**
4
4
  * The glyphs more than one component draws.
5
5
  *
@@ -81,6 +81,26 @@ export declare function ArrowRightIcon(): React.JSX.Element;
81
81
  */
82
82
  export declare function LinkIcon(): React.JSX.Element;
83
83
  export declare function ExternalLinkIcon(): React.JSX.Element;
84
+ /**
85
+ * The two sheets of a copy, and the angle brackets of a raw view.
86
+ *
87
+ * A pair for the steppers' reason: they sit next to each other in a CodeBlock's
88
+ * toolbar and nowhere else, so a copy drawn at one weight beside brackets drawn
89
+ * at another reads as two toolkits in one bar. The copy is the back sheet
90
+ * showing behind the front one, which is the shape every editor has used for
91
+ * long enough that it needs no label; the brackets are the mark for "show me
92
+ * what is actually there".
93
+ */
94
+ export declare function CopyIcon(): React.JSX.Element;
95
+ export declare function CodeIcon(): React.JSX.Element;
96
+ /**
97
+ * The arrow that comes back round to where it started.
98
+ *
99
+ * Not the chevron turned, and not two arrows chasing each other: this one means
100
+ * "from the beginning", which is a different act from "again". HowToSteps draws
101
+ * it on the button under a finished guide.
102
+ */
103
+ export declare function RestartIcon(): React.JSX.Element;
84
104
  /**
85
105
  * The three dots that stand for what has been left out.
86
106
  *
@@ -94,11 +114,27 @@ export declare function StarIcon(): React.JSX.Element;
94
114
  export declare function StarOutlineIcon(): React.JSX.Element;
95
115
  /** The filled dot: the chosen one of a set, where a tick would say "and". */
96
116
  export declare function DotIcon(): React.JSX.Element;
117
+ /** The neutral note: a circled `i` without the serif problem an `i` has at 16px. */
118
+ export declare function NoteIcon(): React.JSX.Element;
119
+ /** The tick in a circle: the one that went through. */
120
+ export declare function SuccessIcon(): React.JSX.Element;
121
+ /** The triangle: the one that needs looking at before it goes wrong. */
122
+ export declare function WarningIcon(): React.JSX.Element;
123
+ /** The cross in a circle: the one that did not. */
124
+ export declare function DangerIcon(): React.JSX.Element;
97
125
  /**
98
126
  * One drawing per colour family.
99
127
  *
100
128
  * `primary` and `secondary` have no severity to draw, so they take the note the
101
129
  * informational one uses — three shapes for six families, because the three
102
130
  * that mean something are the three worth telling apart.
131
+ *
132
+ * A function rather than a `Record` of elements, for the reason the tables in
133
+ * `i18n.ts` are one per namespace: a bundler drops an unused function and it
134
+ * cannot drop a key out of an object literal, so a ChatBubble that draws only
135
+ * the failed mark would otherwise carry all four drawings. The ones that pick
136
+ * by a `color` prop call this and keep them all, which is what they need; the
137
+ * one that wants a single mark imports that mark. It also stops six React
138
+ * elements being built at import time for a page that may draw none of them.
103
139
  */
104
- export declare const severityIcons: Record<NebaColor, React.ReactNode>;
140
+ export declare function severityIcon(color: NebaColor): React.ReactElement;
@@ -1 +1 @@
1
- import{jsx as r,jsxs as e}from"react/jsx-runtime";export function CloseIcon(){return r("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:r("path",{d:"m4.5 4.5 7 7m0-7-7 7",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round"})})}export function ChevronIcon(){return r("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:r("path",{d:"m4.5 6.5 3.5 3.5 3.5-3.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}export function CheckIcon(){return r("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:r("path",{d:"m3.5 8.5 3 3 6-6",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round"})})}export function MinusIcon(){return r("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:r("path",{d:"M3.5 8h9",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round"})})}export function PlusIcon(){return r("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:r("path",{d:"M8 3.5v9M3.5 8h9",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round"})})}export function TrendUpIcon(){return e("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[r("path",{d:"M3 11 6.5 7.5 9 10l4-4",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round"}),r("path",{d:"M9.5 6h3.5v3.5",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round"})]})}export function TrendDownIcon(){return e("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[r("path",{d:"M3 5 6.5 8.5 9 6l4 4",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round"}),r("path",{d:"M9.5 10h3.5V6.5",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round"})]})}export function CalendarIcon(){return e("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[r("rect",{x:"2",y:"3.25",width:"12",height:"10.75",rx:"2",stroke:"currentColor",strokeWidth:"1.5"}),r("path",{d:"M2 6.75h12",stroke:"currentColor",strokeWidth:"1.5"}),r("path",{d:"M5.25 1.75v2.5M10.75 1.75v2.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})}export function ClockIcon(){return e("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[r("circle",{cx:"8",cy:"8",r:"6.25",stroke:"currentColor",strokeWidth:"1.5"}),r("path",{d:"M8 4.5V8l2.4 1.6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}export function ArrowRightIcon(){return r("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:r("path",{d:"M3 8h10m-3.5-3.5L13 8l-3.5 3.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}export function LinkIcon(){return e("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[r("path",{d:"M6.5 9.5a2.75 2.75 0 0 0 4 .25l1.75-1.75a2.75 2.75 0 0 0-3.9-3.9L7.75 5.2",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),r("path",{d:"M9.5 6.5a2.75 2.75 0 0 0-4-.25L3.75 8a2.75 2.75 0 0 0 3.9 3.9l.6-.6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})}export function ExternalLinkIcon(){return e("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[r("path",{d:"M12.75 9.25v2.5a1.5 1.5 0 0 1-1.5 1.5h-7a1.5 1.5 0 0 1-1.5-1.5v-7a1.5 1.5 0 0 1 1.5-1.5h2.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),r("path",{d:"M9.5 2.75h3.75V6.5M7.25 8.75l5.75-5.75",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}export function EllipsisIcon(){return e("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[r("circle",{cx:"3.5",cy:"8",r:"1.15",fill:"currentColor"}),r("circle",{cx:"8",cy:"8",r:"1.15",fill:"currentColor"}),r("circle",{cx:"12.5",cy:"8",r:"1.15",fill:"currentColor"})]})}const o="M8 1.4 9.71 5.65 14.28 5.96 10.76 8.9 11.88 13.34 8 10.9 4.12 13.34 5.24 8.9 1.72 5.96 6.29 5.65Z";export function StarIcon(){return r("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:r("path",{d:o,fill:"currentColor",stroke:"currentColor",strokeLinejoin:"round"})})}export function StarOutlineIcon(){return r("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:r("path",{d:o,stroke:"currentColor",strokeWidth:"1.25",strokeLinejoin:"round"})})}export function DotIcon(){return r("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:r("circle",{cx:"8",cy:"8",r:"3.25",fill:"currentColor"})})}function n(){return e("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[r("circle",{cx:"8",cy:"8",r:"6.25",stroke:"currentColor",strokeWidth:"1.5"}),r("path",{d:"M8 7.25v4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),r("circle",{cx:"8",cy:"4.9",r:"0.85",fill:"currentColor"})]})}export const severityIcons={primary:r(n,{}),secondary:r(n,{}),info:r(n,{}),success:e("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[r("circle",{cx:"8",cy:"8",r:"6.25",stroke:"currentColor",strokeWidth:"1.5"}),r("path",{d:"m5.25 8.25 1.9 1.9 3.6-3.9",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),warning:e("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[r("path",{d:"M7.13 2.6 1.9 11.7a1 1 0 0 0 .87 1.5h10.46a1 1 0 0 0 .87-1.5L8.87 2.6a1 1 0 0 0-1.74 0Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinejoin:"round"}),r("path",{d:"M8 6.1v3",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),r("circle",{cx:"8",cy:"11.2",r:"0.85",fill:"currentColor"})]}),danger:e("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[r("circle",{cx:"8",cy:"8",r:"6.25",stroke:"currentColor",strokeWidth:"1.5"}),r("path",{d:"m5.9 5.9 4.2 4.2m0-4.2-4.2 4.2",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})};
1
+ import{jsx as r,jsxs as e}from"react/jsx-runtime";export function CloseIcon(){return r("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:r("path",{d:"m4.5 4.5 7 7m0-7-7 7",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round"})})}export function ChevronIcon(){return r("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:r("path",{d:"m4.5 6.5 3.5 3.5 3.5-3.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}export function CheckIcon(){return r("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:r("path",{d:"m3.5 8.5 3 3 6-6",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round"})})}export function MinusIcon(){return r("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:r("path",{d:"M3.5 8h9",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round"})})}export function PlusIcon(){return r("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:r("path",{d:"M8 3.5v9M3.5 8h9",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round"})})}export function TrendUpIcon(){return e("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[r("path",{d:"M3 11 6.5 7.5 9 10l4-4",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round"}),r("path",{d:"M9.5 6h3.5v3.5",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round"})]})}export function TrendDownIcon(){return e("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[r("path",{d:"M3 5 6.5 8.5 9 6l4 4",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round"}),r("path",{d:"M9.5 10h3.5V6.5",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round"})]})}export function CalendarIcon(){return e("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[r("rect",{x:"2",y:"3.25",width:"12",height:"10.75",rx:"2",stroke:"currentColor",strokeWidth:"1.5"}),r("path",{d:"M2 6.75h12",stroke:"currentColor",strokeWidth:"1.5"}),r("path",{d:"M5.25 1.75v2.5M10.75 1.75v2.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})}export function ClockIcon(){return e("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[r("circle",{cx:"8",cy:"8",r:"6.25",stroke:"currentColor",strokeWidth:"1.5"}),r("path",{d:"M8 4.5V8l2.4 1.6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}export function ArrowRightIcon(){return r("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:r("path",{d:"M3 8h10m-3.5-3.5L13 8l-3.5 3.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}export function LinkIcon(){return e("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[r("path",{d:"M6.5 9.5a2.75 2.75 0 0 0 4 .25l1.75-1.75a2.75 2.75 0 0 0-3.9-3.9L7.75 5.2",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),r("path",{d:"M9.5 6.5a2.75 2.75 0 0 0-4-.25L3.75 8a2.75 2.75 0 0 0 3.9 3.9l.6-.6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})}export function ExternalLinkIcon(){return e("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[r("path",{d:"M12.75 9.25v2.5a1.5 1.5 0 0 1-1.5 1.5h-7a1.5 1.5 0 0 1-1.5-1.5v-7a1.5 1.5 0 0 1 1.5-1.5h2.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),r("path",{d:"M9.5 2.75h3.75V6.5M7.25 8.75l5.75-5.75",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}export function CopyIcon(){return e("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[r("rect",{x:"5.75",y:"5.75",width:"7.5",height:"7.5",rx:"1.75",stroke:"currentColor",strokeWidth:"1.5"}),r("path",{d:"M10.25 3.6a1.85 1.85 0 0 0-1.5-.85h-4a2 2 0 0 0-2 2v4c0 .62.28 1.17.72 1.54",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})}export function CodeIcon(){return r("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:r("path",{d:"M5.75 4.5 2.5 8l3.25 3.5m4.5-7L13.5 8l-3.25 3.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}export function RestartIcon(){return e("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[r("path",{d:"M13 8a5 5 0 1 1-1.6-3.67",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),r("path",{d:"M13.25 2.25v3h-3",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}export function EllipsisIcon(){return e("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[r("circle",{cx:"3.5",cy:"8",r:"1.15",fill:"currentColor"}),r("circle",{cx:"8",cy:"8",r:"1.15",fill:"currentColor"}),r("circle",{cx:"12.5",cy:"8",r:"1.15",fill:"currentColor"})]})}const o="M8 1.4 9.71 5.65 14.28 5.96 10.76 8.9 11.88 13.34 8 10.9 4.12 13.34 5.24 8.9 1.72 5.96 6.29 5.65Z";export function StarIcon(){return r("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:r("path",{d:o,fill:"currentColor",stroke:"currentColor",strokeLinejoin:"round"})})}export function StarOutlineIcon(){return r("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:r("path",{d:o,stroke:"currentColor",strokeWidth:"1.25",strokeLinejoin:"round"})})}export function DotIcon(){return r("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:r("circle",{cx:"8",cy:"8",r:"3.25",fill:"currentColor"})})}export function NoteIcon(){return e("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[r("circle",{cx:"8",cy:"8",r:"6.25",stroke:"currentColor",strokeWidth:"1.5"}),r("path",{d:"M8 7.25v4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),r("circle",{cx:"8",cy:"4.9",r:"0.85",fill:"currentColor"})]})}export function SuccessIcon(){return e("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[r("circle",{cx:"8",cy:"8",r:"6.25",stroke:"currentColor",strokeWidth:"1.5"}),r("path",{d:"m5.25 8.25 1.9 1.9 3.6-3.9",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}export function WarningIcon(){return e("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[r("path",{d:"M7.13 2.6 1.9 11.7a1 1 0 0 0 .87 1.5h10.46a1 1 0 0 0 .87-1.5L8.87 2.6a1 1 0 0 0-1.74 0Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinejoin:"round"}),r("path",{d:"M8 6.1v3",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),r("circle",{cx:"8",cy:"11.2",r:"0.85",fill:"currentColor"})]})}export function DangerIcon(){return e("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[r("circle",{cx:"8",cy:"8",r:"6.25",stroke:"currentColor",strokeWidth:"1.5"}),r("path",{d:"m5.9 5.9 4.2 4.2m0-4.2-4.2 4.2",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})}export function severityIcon(e){switch(e){case"success":return r(SuccessIcon,{});case"warning":return r(WarningIcon,{});case"danger":return r(DangerIcon,{});default:return r(NoteIcon,{})}}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * The letters that stand in for a picture that is not there.
3
+ *
4
+ * One function, in `internal/` for the reason `button-group.ts` is: two
5
+ * components draw it — an [Avatar] with no photograph and an [AppLogo] with no
6
+ * artwork — and neither should have to import the other to say what "the first
7
+ * letter of a name" means. It is a rule about names rather than about pictures,
8
+ * and a library with two of them would spell the same person's initials two
9
+ * ways on the same page.
10
+ */
11
+ /**
12
+ * The first character of the first word, plus the first of the last.
13
+ *
14
+ * `Array.from` rather than `[0]`, so a name that starts with an emoji or with
15
+ * any character outside the basic plane is not cut in half between its two code
16
+ * units. `normalize('NFC')` first, so a name whose accents arrived decomposed —
17
+ * which is what a macOS filename and a good many APIs hand you — yields `Ä`
18
+ * rather than a bare `A`.
19
+ *
20
+ * One word gives one character on purpose. Korean, Japanese and Chinese names
21
+ * are a single token, and two of their characters at 32px is a smudge where one
22
+ * is a name.
23
+ */
24
+ export declare function initialsOf(name: string): string;
@@ -0,0 +1 @@
1
+ export function initialsOf(r){const t=r.normalize("NFC").trim().split(/\s+/).filter(Boolean);if(0===t.length)return"";return((Array.from(t[0])[0]??"")+(t.length>1?Array.from(t[t.length-1])[0]??"":"")).toLocaleUpperCase()}
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import type { NebaColor, NebaDensity, NebaSize } from '../types';
2
+ import type { NebaColor, NebaDensity, NebaSize } from '../types.js';
3
3
  /**
4
4
  * What a menu item inherits from the menu around it.
5
5
  *
@@ -1 +1 @@
1
- import*as t from"react";export const MenuContext=t.createContext({size:"md",color:"primary",density:"default"});
1
+ import*as t from"react";export const MenuContext=/*@__PURE__*/t.createContext({size:"md",color:"primary",density:"default"});
@@ -26,7 +26,7 @@
26
26
  * goes reads as a bug, and it is a prop.
27
27
  */
28
28
  import * as React from 'react';
29
- import type { NebaSize } from '../types';
29
+ import type { NebaSize } from '../types.js';
30
30
  /** Which machine the mockup is a picture of. */
31
31
  export type NebaMockupDevice = 'desktop' | 'tablet' | 'mobile';
32
32
  /**
@@ -0,0 +1,143 @@
1
+ import * as React from 'react';
2
+ import type { NebaBreakpoint, NebaSide } from '../types.js';
3
+ /**
4
+ * The vocabulary a page's structure is written in, and the context the four
5
+ * components that build one share.
6
+ *
7
+ * It lives in `internal/` for the reason `menu.ts` does rather than the reason
8
+ * `button-group.ts` does: four components read it — PageLayout, Header, Footer
9
+ * and Sidebar, plus SidebarTrigger, which is a fifth — and every one of them is
10
+ * also usable on its own. Keeping the context in PageLayout's file would make a
11
+ * Header import a layout it may never be inside.
12
+ *
13
+ * Nothing here draws anything. The layout is flexbox and media queries, both of
14
+ * which CSS states better than JavaScript can; what needs a context is the
15
+ * handful of facts a slot cannot work out from where it sits — how wide the
16
+ * window has to be before a sidebar stops being a column, whether a drawer is
17
+ * open, and which language the layout's own two or three words are in.
18
+ */
19
+ /** Which end of the band a sidebar takes. Logical, so it flips under RTL. */
20
+ export type SidebarSide = 'start' | 'end';
21
+ /** The two slots a layout measures, because a sidebar has to start below them. */
22
+ export type PageLayoutSlot = 'header' | 'footer';
23
+ /**
24
+ * How far across a header or a footer reaches.
25
+ *
26
+ * - `full` — the whole width, with the sidebars beginning underneath it. The
27
+ * arrangement of a website: one bar across the top, and the page below it.
28
+ * - `content` — only the column between the sidebars, which run the full height
29
+ * of the window beside it. The arrangement of an application: the navigation
30
+ * is the outermost thing on the screen and the bar belongs to the view.
31
+ *
32
+ * There is no third value, because there is no third arrangement: what is being
33
+ * decided is which of the two takes the corner.
34
+ */
35
+ export type PageLayoutSpan = 'full' | 'content';
36
+ /**
37
+ * What scrolls.
38
+ *
39
+ * - `page` — the document does, the way a website does. The header and the
40
+ * sidebars hold their place with `position: sticky`, the browser's own
41
+ * address bar hides on a phone, and the scroll position is restored on a
42
+ * back navigation. This is the default, and it is what almost every page
43
+ * wants.
44
+ * - `content` — the layout takes exactly the height of the window and only the
45
+ * region between the header and the footer scrolls, the way an application
46
+ * does. Reach for it when the page is a workspace rather than a document.
47
+ */
48
+ export type PageLayoutScroll = 'page' | 'content';
49
+ /**
50
+ * The width below which a sidebar stops being part of the layout and becomes a
51
+ * drawer that is opened, or `none` to keep it in the layout at every width.
52
+ *
53
+ * `xs` is the breakpoint whose floor is `0`, so nothing is ever below it — it
54
+ * means the same as `none` and is accepted only because `NebaBreakpoint` has
55
+ * five values everywhere else in the library.
56
+ */
57
+ export type PageLayoutCollapse = NebaBreakpoint | 'none';
58
+ export interface PageLayoutContextValue {
59
+ /**
60
+ * Whether there is a PageLayout above at all.
61
+ *
62
+ * A Header, a Footer and a Sidebar all render perfectly well without one —
63
+ * they are a bar, a bar and a panel. What they cannot do on their own is
64
+ * agree with each other about where they sit, which is the whole of what a
65
+ * layout adds and the reason a component has to be able to tell.
66
+ */
67
+ present: boolean;
68
+ /**
69
+ * Hands the layout the element filling one of its slots.
70
+ *
71
+ * The layout measures it and writes its height onto its own root as a custom
72
+ * property, because a sidebar that holds its place has to start below a
73
+ * header whose height only the header knows. A callback rather than a
74
+ * `querySelector`, so a header rendered through `render={<MyBar />}` is found
75
+ * as reliably as one that is not.
76
+ */
77
+ register: (slot: PageLayoutSlot, node: HTMLElement | null) => void;
78
+ /** Where the sidebars stop being columns. */
79
+ collapseBelow: PageLayoutCollapse;
80
+ /** Whether each sidebar's drawer is open. Only meaningful while it is collapsed. */
81
+ open: Record<SidebarSide, boolean>;
82
+ setOpen: (side: SidebarSide, open: boolean) => void;
83
+ /** How the page scrolls, which decides how a sidebar holds its place. */
84
+ scroll: PageLayoutScroll;
85
+ /** The language the layout's own words are in. */
86
+ locale?: string;
87
+ }
88
+ export declare const PageLayoutContext: React.Context<PageLayoutContextValue>;
89
+ /**
90
+ * Which end of the band the sidebar being rendered right now takes.
91
+ *
92
+ * A second, one-value context rather than a field on the one above, because it
93
+ * is the one fact that differs *between* two sidebars in the same layout: the
94
+ * layout wraps each slot in its own provider, and a Sidebar handed to the
95
+ * trailing slot needs no `side` prop of its own to know where it is. `null` is
96
+ * "nobody said", which a standalone sidebar reads as `start`.
97
+ */
98
+ export declare const SidebarSideContext: React.Context<SidebarSide | null>;
99
+ /**
100
+ * The same five widths as Tailwind variants, for the parts of this that are
101
+ * decided in CSS rather than in JavaScript.
102
+ *
103
+ * Written out per breakpoint because Tailwind only ever sees class names that
104
+ * appear literally in the source — the same reason every table in
105
+ * `internal/styles.ts` is a `Record` of complete strings.
106
+ *
107
+ * `belowClasses` hides something at and above the breakpoint, which is what a
108
+ * sidebar's own trigger wants: the hamburger exists exactly while the sidebar
109
+ * does not. `aboveClasses` hides it below, which is what the sidebar's column
110
+ * wants for the one paint between the server's HTML arriving and JavaScript
111
+ * finding out how wide the window is — without it a phone draws the sidebar
112
+ * full width and then throws it away.
113
+ */
114
+ export declare const collapsedOnlyClasses: Record<PageLayoutCollapse, string>;
115
+ export declare const expandedOnlyClasses: Record<PageLayoutCollapse, string>;
116
+ /**
117
+ * Whether the window is currently narrower than the breakpoint a sidebar
118
+ * collapses at.
119
+ *
120
+ * `useSyncExternalStore` rather than an effect and a `useState`, for the one
121
+ * reason that matters here: it has a server snapshot, and the server's answer
122
+ * has to be "not collapsed". A sidebar that is collapsed is a Drawer, a Drawer
123
+ * is a portal, and a portal rendered into `document.body` on the server is not
124
+ * a thing — so the markup that ships is the column, and the CSS above is what
125
+ * keeps that column off a narrow screen until this hook can say otherwise.
126
+ */
127
+ export declare function useCollapsed(breakpoint: PageLayoutCollapse): boolean;
128
+ /**
129
+ * `start` and `end` as the two sides a Drawer speaks.
130
+ *
131
+ * A sidebar says which end of the band it takes, because that is a layout
132
+ * question and a layout flips under RTL on its own. A drawer is attached to an
133
+ * edge of the *window*, which `NebaSide` names physically for the same reason a
134
+ * tooltip above a button is above it in every writing direction — so the two
135
+ * have to be translated, and the document's own direction is what translates
136
+ * them.
137
+ *
138
+ * Read during render rather than in an effect, which is safe here for a
139
+ * narrower reason than it looks: the only caller is a sidebar that has already
140
+ * collapsed, and collapsing is a client-side answer. There is no server render
141
+ * of this to disagree with.
142
+ */
143
+ export declare function drawerSide(side: SidebarSide): NebaSide;
@@ -0,0 +1 @@
1
+ import*as e from"react";export const PageLayoutContext=/*@__PURE__*/e.createContext({present:!1,register:()=>{},collapseBelow:"none",open:{start:!1,end:!1},setOpen:()=>{},scroll:"page"});export const SidebarSideContext=/*@__PURE__*/e.createContext(null);const n={xs:null,sm:"(width < 40rem)",md:"(width < 48rem)",lg:"(width < 64rem)",xl:"(width < 80rem)"};export const collapsedOnlyClasses={none:"hidden",xs:"hidden",sm:"sm:hidden",md:"md:hidden",lg:"lg:hidden",xl:"xl:hidden"};export const expandedOnlyClasses={none:"",xs:"",sm:"max-sm:hidden",md:"max-md:hidden",lg:"max-lg:hidden",xl:"max-xl:hidden"};export function useCollapsed(t){const d="none"===t?null:n[t],o=e.useCallback(e=>{if(!d||"undefined"==typeof window||!window.matchMedia)return()=>{};const n=window.matchMedia(d);return n.addEventListener("change",e),()=>n.removeEventListener("change",e)},[d]),i=e.useCallback(()=>!(!d||"undefined"==typeof window||!window.matchMedia)&&window.matchMedia(d).matches,[d]);return e.useSyncExternalStore(o,i,()=>!1)}export function drawerSide(e){const n="undefined"!=typeof document&&"rtl"===getComputedStyle(document.documentElement).direction;return"start"===e?n?"right":"left":n?"left":"right"}
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
- import type { PickerLabels } from './calendar';
3
- import type { NebaColor, NebaElevation, NebaSize, NebaStyleProps } from '../types';
2
+ import type { PickerLabels } from './calendar.js';
3
+ import type { NebaColor, NebaElevation, NebaSize, NebaStyleProps } from '../types.js';
4
4
  /**
5
5
  * The shell all four pickers wear: a field-shaped trigger with a popup hanging
6
6
  * off it.
@@ -1 +1 @@
1
- import{jsx as e,jsxs as n}from"react/jsx-runtime";import*as a from"react";import{Field as i}from"@base-ui/react/field";import{Popover as t}from"@base-ui/react/popover";import{CloseIcon as l}from"./icons";import{WidthSizer as r}from"./sizer";import{chipRemoveClasses as o,controlHeightClasses as s,controlTextLeadingClasses as d,cx as c,disabledClasses as p,fieldReadOnlyClasses as u,fieldRestClasses as m,focusWithinRingClasses as f,gapClasses as b,iconClasses as h,metaTextClasses as x,paddingXClasses as g,radiusClasses as v,stackGapClasses as y,surfaceClasses as N,surfaceSlots as w,transitionClasses as P}from"./styles";export function popupSlots(e,n){return{...w(e,n),"--n-fill":`var(--neba-${e}-fill)`,"--n-fill-hover":`var(--neba-${e}-fill-hover)`,"--n-fill-active":`var(--neba-${e}-fill-active)`,"--n-on-solid":`var(--neba-${e}-on-solid)`}}const k=["group relative flex w-full items-center select-none","[-webkit-tap-highlight-color:transparent] [touch-action:manipulation]",P,"focus-within:[transition-duration:0ms]",f,h].join(" ");export const pickerPopupClasses=[N,"border bg-(--n-panel-press)","[border-color:var(--n-line)]","[box-shadow:var(--neba-shadow-3),var(--neba-plate-glass)]","[outline:none]","[transition:opacity_var(--neba-duration)_var(--neba-ease)]","data-[starting-style]:opacity-0 data-[ending-style]:opacity-0"].join(" ");export const popupPaddingClasses={xs:"p-1.5",sm:"p-2",md:"p-2.5",lg:"p-3",xl:"p-3.5"};export function PickerShell({variant:f="outline",size:h="md",color:N="primary",density:P="default",elevation:C=0,label:$,description:j,error:O,invalid:z,startIcon:F,fullWidth:R=!1,disabled:S=!1,readOnly:q=!1,required:D=!1,id:I,className:_,style:B,display:E,samples:L,empty:T,clearable:V=!1,onClear:W,open:A,onOpenChange:G,labels:H,hiddenValues:J,sideOffset:K=6,children:M,triggerRef:Q,...U}){const X=a.useId(),Y=I??`${X}-trigger`,Z=`${X}-label`,ee=`${X}-description`,ne=`${X}-error`,ae=null!=O&&!1!==O&&""!==O,ie=z??ae,te=ie?"danger":N,le=S||q,re=[j?ee:null,ae?ne:null].filter(Boolean).join(" ")||void 0;return n(i.Root,{disabled:S,invalid:ie,className:c("flex-col align-top",y[h],R?"flex w-full":"inline-flex",_),style:{...w(te,C),...B},...U,children:[$?e(i.Label,{id:Z,htmlFor:Y,className:c(x[h],"font-medium",S?"text-(--neba-disabled-fg)":"text-(--neba-fg)"),children:$}):null,n(t.Root,{open:A,onOpenChange:e=>G(e),children:[n("span",{className:c(k,s[h],d[h],v[h],b[h],g[P][h],S?p[f]:q?u[f]:m[f]),children:[n(t.Trigger,{id:Y,ref:Q,disabled:S,"aria-labelledby":$?Z:void 0,"aria-describedby":re,"aria-required":D||void 0,"aria-invalid":ie||void 0,className:c("flex min-w-0 flex-1 items-center bg-transparent text-start [font:inherit] text-inherit",b[h],"[outline:none]",le?"cursor-default":"cursor-pointer"),children:[F?e("span",{className:"flex h-[1lh] shrink-0 items-center text-(--neba-muted-fg) transition-[color] duration-(--neba-duration) group-focus-within:text-(--n-accent)",children:F}):null,n("span",{className:"flex min-w-0 flex-1 flex-col",children:[e("span",{className:c("w-full truncate",T?"text-(--neba-muted-fg)":"text-(--neba-fg)"),children:E}),e(r,{samples:L??[]})]})]}),!V||T||le?null:e("button",{type:"button","aria-label":H.clear,className:c(o,"text-(--neba-muted-fg)"),onClick:e=>{e.stopPropagation(),W()},children:e(l,{})})]}),e(t.Portal,{children:e(t.Positioner,{className:"neba-portal z-50 [outline:none]",sideOffset:K,align:"start",children:e(t.Popup,{initialFocus:!1,className:c(pickerPopupClasses,v[h],popupPaddingClasses[h],d[h]),style:popupSlots(te,3),children:M})})})]}),j?e(i.Description,{id:ee,className:c(x[h],"text-(--neba-muted-fg)"),children:j}):null,ae?e(i.Error,{id:ne,match:!0,className:c(x[h],"text-(--n-accent)"),children:O}):null,J?.map((n,a)=>e("input",{type:"hidden",name:n.name,value:n.value},a))]})}export function PickerFooter({size:n,children:a}){return e("div",{className:c("flex items-center justify-end border-t pt-1.5","[border-color:var(--n-line)]",b[n]),children:a})}export function PickerDivider(){return e("div",{"aria-hidden":"true",className:"w-px self-stretch bg-(--n-line)"})}
1
+ import{jsx as e,jsxs as n}from"react/jsx-runtime";import*as a from"react";import{Field as i}from"@base-ui/react/field";import{Popover as t}from"@base-ui/react/popover";import{CloseIcon as l}from"./icons.js";import{WidthSizer as r}from"./sizer.js";import{chipRemoveClasses as o,controlHeightClasses as s,controlTextLeadingClasses as d,cx as c,disabledClasses as p,fieldReadOnlyClasses as u,fieldRestClasses as m,focusWithinRingClasses as f,gapClasses as b,iconClasses as h,metaTextClasses as x,paddingXClasses as g,radiusClasses as v,stackGapClasses as y,surfaceClasses as N,surfaceSlots as w,transitionClasses as P}from"./styles.js";export function popupSlots(e,n){return{...w(e,n),"--n-fill":`var(--neba-${e}-fill)`,"--n-fill-hover":`var(--neba-${e}-fill-hover)`,"--n-fill-active":`var(--neba-${e}-fill-active)`,"--n-on-solid":`var(--neba-${e}-on-solid)`}}const j=["group relative flex w-full items-center select-none","[-webkit-tap-highlight-color:transparent] [touch-action:manipulation]",P,"focus-within:[transition-duration:0ms]",f,h].join(" ");export const pickerPopupClasses=[N,"border bg-(--n-panel-press)","[border-color:var(--n-line)]","[box-shadow:var(--neba-shadow-3),var(--neba-plate-glass)]","[outline:none]","[transition:opacity_var(--neba-duration)_var(--neba-ease)]","data-[starting-style]:opacity-0 data-[ending-style]:opacity-0"].join(" ");export const popupPaddingClasses={xs:"p-1.5",sm:"p-2",md:"p-2.5",lg:"p-3",xl:"p-3.5"};export function PickerShell({variant:f="outline",size:h="md",color:N="primary",density:P="default",elevation:k=0,label:C,description:$,error:O,invalid:z,startIcon:F,fullWidth:R=!1,disabled:S=!1,readOnly:q=!1,required:D=!1,id:I,className:_,style:B,display:E,samples:L,empty:T,clearable:V=!1,onClear:W,open:A,onOpenChange:G,labels:H,hiddenValues:J,sideOffset:K=6,children:M,triggerRef:Q,...U}){const X=a.useId(),Y=I??`${X}-trigger`,Z=`${X}-label`,ee=`${X}-description`,ne=`${X}-error`,ae=null!=O&&!1!==O&&""!==O,ie=z??ae,te=ie?"danger":N,le=S||q,re=[$?ee:null,ae?ne:null].filter(Boolean).join(" ")||void 0;return n(i.Root,{disabled:S,invalid:ie,className:c("flex-col align-top",y[h],R?"flex w-full":"inline-flex",_),style:{...w(te,k),...B},...U,children:[C?e(i.Label,{id:Z,htmlFor:Y,className:c(x[h],"font-medium",S?"text-(--neba-disabled-fg)":"text-(--neba-fg)"),children:C}):null,n(t.Root,{open:A,onOpenChange:e=>G(e),children:[n("span",{className:c(j,s[h],d[h],v[h],b[h],g[P][h],S?p[f]:q?u[f]:m[f]),children:[n(t.Trigger,{id:Y,ref:Q,disabled:S,"aria-labelledby":C?Z:void 0,"aria-describedby":re,"aria-required":D||void 0,"aria-invalid":ie||void 0,className:c("flex min-w-0 flex-1 items-center bg-transparent text-start [font:inherit] text-inherit",b[h],"[outline:none]",le?"cursor-default":"cursor-pointer"),children:[F?e("span",{className:"flex h-[1lh] shrink-0 items-center text-(--neba-muted-fg) transition-[color] duration-(--neba-duration) group-focus-within:text-(--n-accent)",children:F}):null,n("span",{className:"flex min-w-0 flex-1 flex-col",children:[e("span",{className:c("w-full truncate",T?"text-(--neba-muted-fg)":"text-(--neba-fg)"),children:E}),e(r,{samples:L??[]})]})]}),!V||T||le?null:e("button",{type:"button","aria-label":H.clear,className:c(o,"text-(--neba-muted-fg)"),onClick:e=>{e.stopPropagation(),W()},children:e(l,{})})]}),e(t.Portal,{children:e(t.Positioner,{className:"neba-portal z-50 [outline:none]",sideOffset:K,align:"start",children:e(t.Popup,{initialFocus:!1,className:c(pickerPopupClasses,v[h],popupPaddingClasses[h],d[h]),style:popupSlots(te,3),children:M})})})]}),$?e(i.Description,{id:ee,className:c(x[h],"text-(--neba-muted-fg)"),children:$}):null,ae?e(i.Error,{id:ne,match:!0,className:c(x[h],"text-(--n-accent)"),children:O}):null,J?.map((n,a)=>e("input",{type:"hidden",name:n.name,value:n.value},a))]})}export function PickerFooter({size:n,children:a}){return e("div",{className:c("flex items-center justify-end border-t pt-1.5","[border-color:var(--n-line)]",b[n]),children:a})}export function PickerDivider(){return e("div",{"aria-hidden":"true",className:"w-px self-stretch bg-(--n-line)"})}
@@ -11,7 +11,7 @@
11
11
  * point: they are the only thing that genuinely differs.
12
12
  */
13
13
  import type * as React from 'react';
14
- import type { NebaColor, NebaSize } from '../types';
14
+ import type { NebaColor, NebaSize } from '../types.js';
15
15
  /**
16
16
  * The props all three indicators take.
17
17
  *
@@ -15,7 +15,7 @@
15
15
  * '.'` in `styles.css` covers this folder in the repository and in `dist/`.
16
16
  */
17
17
  import type * as React from 'react';
18
- import type { NebaColor, NebaDensity, NebaElevation, NebaSize, NebaVariant } from '../types';
18
+ import type { NebaColor, NebaDensity, NebaElevation, NebaSize, NebaVariant } from '../types.js';
19
19
  /**
20
20
  * Corner radius. ~45% of the control height at every step, held just short of
21
21
  * the 50% that would make it a pill.
@@ -253,5 +253,16 @@ export declare const readOnlyFilterClasses = "[filter:saturate(0.55)]";
253
253
  export declare const chipRemoveClasses: string;
254
254
  /** `false`, `null`, `undefined` and `''` all mean "this slot is not filled". */
255
255
  export declare function hasContent(node: React.ReactNode): boolean;
256
+ /**
257
+ * A number is pixels; a string is already a CSS length, and nothing at all
258
+ * stays nothing.
259
+ *
260
+ * The one rule the library makes about a length a caller writes: `width={240}`
261
+ * and `width="15rem"` are both accepted and the number is never guessed at. It
262
+ * lives here rather than in whichever component needed it first because a
263
+ * second copy would eventually disagree about `0` — which is falsy, and is a
264
+ * length.
265
+ */
266
+ export declare function toLength(value: number | string | undefined): string | undefined;
256
267
  /** Joins class name fragments, dropping the empty ones. */
257
268
  export declare function cx(...parts: Array<string | false | null | undefined>): string;
@@ -1 +1 @@
1
- export const radiusClasses={xs:"rounded-(--neba-radius-xs)",sm:"rounded-(--neba-radius-sm)",md:"rounded-(--neba-radius-md)",lg:"rounded-(--neba-radius-lg)",xl:"rounded-(--neba-radius-xl)"};export const controlHeightClasses={xs:"h-5.5",sm:"h-6.5",md:"h-8",lg:"h-10",xl:"h-12"};export const controlSquareClasses={xs:"w-5.5",sm:"w-6.5",md:"w-8",lg:"w-10",xl:"w-12"};export const controlTextClasses={xs:"text-[0.6875rem]",sm:"text-[0.75rem]",md:"text-[0.8125rem]",lg:"text-[0.9375rem]",xl:"text-[1.0625rem]"};export const controlTextLeadingClasses={xs:"text-[0.6875rem]/[0.875rem]",sm:"text-[0.75rem]/[1rem]",md:"text-[0.8125rem]/[1.25rem]",lg:"text-[0.9375rem]/[1.375rem]",xl:"text-[1.0625rem]/[1.625rem]"};export const metaTextClasses={xs:"text-[0.625rem]",sm:"text-[0.6875rem]",md:"text-[0.75rem]",lg:"text-[0.8125rem]",xl:"text-[0.875rem]"};export const paddingXClasses={default:{xs:"px-2.5",sm:"px-3",md:"px-4",lg:"px-5",xl:"px-6"},compact:{xs:"px-1.5",sm:"px-2",md:"px-2.5",lg:"px-3",xl:"px-4"}};export const iconSizeClasses={xs:"size-3.5",sm:"size-4",md:"size-5",lg:"size-6",xl:"size-7"};export const tickSizeClasses={xs:"size-3.5",sm:"size-4",md:"size-4.5",lg:"size-5",xl:"size-6"};export const tickRadiusClasses={xs:"rounded-[0.25rem]",sm:"rounded-[0.3125rem]",md:"rounded-[0.375rem]",lg:"rounded-[0.4375rem]",xl:"rounded-[0.5rem]"};export const tickDotClasses={xs:"size-[0.3125rem]",sm:"size-1.5",md:"size-[0.4375rem]",lg:"size-2",xl:"size-[0.5625rem]"};export const tickRowLeadingClasses="leading-[1.4]";export const paddingXValues={default:{xs:"0.625rem",sm:"0.75rem",md:"1rem",lg:"1.25rem",xl:"1.5rem"},compact:{xs:"0.375rem",sm:"0.5rem",md:"0.625rem",lg:"0.75rem",xl:"1rem"}};export const gapClasses={xs:"gap-1",sm:"gap-1.5",md:"gap-1.5",lg:"gap-2",xl:"gap-2.5"};export const stackGapClasses={xs:"gap-1",sm:"gap-1",md:"gap-1.5",lg:"gap-1.5",xl:"gap-2"};export const sheetTitleClasses={xs:"text-[0.75rem]/[1rem]",sm:"text-[0.8125rem]/[1.125rem]",md:"text-[0.9375rem]/[1.25rem]",lg:"text-[1.0625rem]/[1.5rem]",xl:"text-[1.25rem]/[1.75rem]"};export const sheetBodyClasses={xs:"text-[0.6875rem]/[1rem]",sm:"text-[0.75rem]/[1.125rem]",md:"text-[0.8125rem]/[1.375rem]",lg:"text-[0.9375rem]/[1.5rem]",xl:"text-[1.0625rem]/[1.75rem]"};export const sheetHeaderGapClasses={xs:"gap-0.5",sm:"gap-0.5",md:"gap-1",lg:"gap-1",xl:"gap-1.5"};export const sheetSectionGapClasses={xs:"gap-1.5",sm:"gap-2",md:"gap-3",lg:"gap-3.5",xl:"gap-4"};export const surfaceClasses="[background-image:var(--neba-grain),var(--neba-sheen)] [background-blend-mode:overlay,normal] [backdrop-filter:var(--neba-blur)]";export const transitionClasses=["[transition-property:background-color,border-color,box-shadow,color]","[transition-duration:var(--neba-duration-fill),var(--neba-duration),var(--neba-duration),var(--neba-duration)]","[transition-timing-function:var(--neba-ease)]"].join(" ");export const pressTransitionClasses="active:[transition-duration:0ms]";export const focusRingClasses="focus-visible:[outline:2px_solid_var(--n-ring)] focus-visible:outline-offset-2";export const focusWithinRingClasses="has-[:focus-visible]:[outline:2px_solid_var(--n-ring)] has-[:focus-visible]:outline-offset-2";export const iconClasses="[&_svg]:pointer-events-none [&_svg]:size-[1.2em] [&_svg]:shrink-0";export const srOnlyClasses="absolute size-px overflow-hidden whitespace-nowrap [clip-path:inset(50%)]";export function controlSlots(e,s,r){const n="solid"===r;return{"--n-fill":`var(--neba-${e}-fill)`,"--n-fill-hover":`var(--neba-${e}-fill-hover)`,"--n-fill-active":`var(--neba-${e}-fill-active)`,"--n-on-solid":`var(--neba-${e}-on-solid)`,"--n-accent":`var(--neba-${e}-accent)`,"--n-soft":`var(--neba-${e}-soft)`,"--n-soft-hover":`var(--neba-${e}-soft-hover)`,"--n-soft-press":`var(--neba-${e}-soft-press)`,"--n-panel":`var(--neba-${e}-panel)`,"--n-panel-hover":`var(--neba-${e}-panel-hover)`,"--n-panel-press":`var(--neba-${e}-panel-press)`,"--n-line":`var(--neba-${e}-line)`,"--n-line-hover":`var(--neba-${e}-line-hover)`,"--n-ring":`var(--neba-${e}-ring)`,"--n-glow":n?"var(--neba-glow-on-fill)":`var(--neba-${e}-soft)`,"--n-flash":n?"var(--neba-flash-on-fill)":`var(--neba-${e}-soft-press)`,"--n-elev":`var(--neba-shadow-${s})`,"--n-elev-hover":`var(--neba-shadow-${Math.min(s+1,4)})`,"--n-elev-press":`var(--neba-shadow-${Math.max(s-1,0)})`}}export function surfaceSlots(e,s){return{"--n-accent":`var(--neba-${e}-accent)`,"--n-soft":`var(--neba-${e}-soft)`,"--n-soft-hover":`var(--neba-${e}-soft-hover)`,"--n-soft-press":`var(--neba-${e}-soft-press)`,"--n-panel":"var(--neba-panel)","--n-panel-hover":"var(--neba-panel-hover)","--n-panel-press":"var(--neba-panel-press)","--n-line":`var(--neba-${e}-line)`,"--n-line-hover":`var(--neba-${e}-line-hover)`,"--n-ring":`var(--neba-${e}-ring)`,"--n-elev":`var(--neba-shadow-${s})`}}export const disabledClasses={solid:"cursor-not-allowed bg-(--neba-disabled-bg) text-(--neba-disabled-fg) shadow-none",outline:"cursor-not-allowed border bg-transparent text-(--neba-disabled-fg) [border-color:var(--neba-disabled-border)] shadow-none",text:"cursor-not-allowed bg-transparent text-(--neba-disabled-fg) shadow-none"};export const fieldRestClasses={solid:[surfaceClasses,"text-(--neba-fg) bg-(--n-panel-hover)","[box-shadow:var(--n-elev),var(--neba-plate-solid)]","hover:bg-(--n-panel-press)","focus-within:bg-(--n-panel-press)"].join(" "),outline:[surfaceClasses,"border text-(--neba-fg) bg-(--n-panel)","[border-color:var(--n-line)]","[box-shadow:var(--n-elev),var(--neba-plate-glass)]","hover:bg-(--n-panel-hover) hover:[border-color:var(--n-line-hover)]","focus-within:bg-(--n-panel-hover) focus-within:[border-color:var(--n-ring)]"].join(" "),text:["text-(--neba-fg) bg-transparent","hover:bg-(--n-soft)","focus-within:bg-(--n-soft-hover)"].join(" ")};export const fieldReadOnlyClasses={solid:[surfaceClasses,"text-(--neba-fg) bg-(--n-panel-hover)","[box-shadow:var(--neba-plate-solid)] [filter:saturate(0.55)]"].join(" "),outline:[surfaceClasses,"border text-(--neba-fg) bg-(--n-panel)","[border-color:var(--n-line)] [box-shadow:var(--neba-plate-glass)] [filter:saturate(0.55)]"].join(" "),text:"text-(--neba-fg) bg-transparent [filter:saturate(0.55)]"};export const readOnlyFilterClasses="[filter:saturate(0.55)]";export const chipRemoveClasses=["ms-0.5 inline-flex shrink-0 items-center justify-center rounded-full","size-[1.15em] cursor-pointer opacity-70","[transition:opacity_var(--neba-duration)_var(--neba-ease)]","hover:opacity-100 focus-visible:opacity-100","focus-visible:[outline:2px_solid_var(--n-ring)] focus-visible:outline-offset-1","disabled:cursor-not-allowed"].join(" ");export function hasContent(e){return null!=e&&!1!==e&&""!==e}export function cx(...e){return e.filter(Boolean).join(" ")}
1
+ export const radiusClasses={xs:"rounded-(--neba-radius-xs)",sm:"rounded-(--neba-radius-sm)",md:"rounded-(--neba-radius-md)",lg:"rounded-(--neba-radius-lg)",xl:"rounded-(--neba-radius-xl)"};export const controlHeightClasses={xs:"h-5.5",sm:"h-6.5",md:"h-8",lg:"h-10",xl:"h-12"};export const controlSquareClasses={xs:"w-5.5",sm:"w-6.5",md:"w-8",lg:"w-10",xl:"w-12"};export const controlTextClasses={xs:"text-[0.6875rem]",sm:"text-[0.75rem]",md:"text-[0.8125rem]",lg:"text-[0.9375rem]",xl:"text-[1.0625rem]"};export const controlTextLeadingClasses={xs:"text-[0.6875rem]/[0.875rem]",sm:"text-[0.75rem]/[1rem]",md:"text-[0.8125rem]/[1.25rem]",lg:"text-[0.9375rem]/[1.375rem]",xl:"text-[1.0625rem]/[1.625rem]"};export const metaTextClasses={xs:"text-[0.625rem]",sm:"text-[0.6875rem]",md:"text-[0.75rem]",lg:"text-[0.8125rem]",xl:"text-[0.875rem]"};export const paddingXClasses={default:{xs:"px-2.5",sm:"px-3",md:"px-4",lg:"px-5",xl:"px-6"},compact:{xs:"px-1.5",sm:"px-2",md:"px-2.5",lg:"px-3",xl:"px-4"}};export const iconSizeClasses={xs:"size-3.5",sm:"size-4",md:"size-5",lg:"size-6",xl:"size-7"};export const tickSizeClasses={xs:"size-3.5",sm:"size-4",md:"size-4.5",lg:"size-5",xl:"size-6"};export const tickRadiusClasses={xs:"rounded-[0.25rem]",sm:"rounded-[0.3125rem]",md:"rounded-[0.375rem]",lg:"rounded-[0.4375rem]",xl:"rounded-[0.5rem]"};export const tickDotClasses={xs:"size-[0.3125rem]",sm:"size-1.5",md:"size-[0.4375rem]",lg:"size-2",xl:"size-[0.5625rem]"};export const tickRowLeadingClasses="leading-[1.4]";export const paddingXValues={default:{xs:"0.625rem",sm:"0.75rem",md:"1rem",lg:"1.25rem",xl:"1.5rem"},compact:{xs:"0.375rem",sm:"0.5rem",md:"0.625rem",lg:"0.75rem",xl:"1rem"}};export const gapClasses={xs:"gap-1",sm:"gap-1.5",md:"gap-1.5",lg:"gap-2",xl:"gap-2.5"};export const stackGapClasses={xs:"gap-1",sm:"gap-1",md:"gap-1.5",lg:"gap-1.5",xl:"gap-2"};export const sheetTitleClasses={xs:"text-[0.75rem]/[1rem]",sm:"text-[0.8125rem]/[1.125rem]",md:"text-[0.9375rem]/[1.25rem]",lg:"text-[1.0625rem]/[1.5rem]",xl:"text-[1.25rem]/[1.75rem]"};export const sheetBodyClasses={xs:"text-[0.6875rem]/[1rem]",sm:"text-[0.75rem]/[1.125rem]",md:"text-[0.8125rem]/[1.375rem]",lg:"text-[0.9375rem]/[1.5rem]",xl:"text-[1.0625rem]/[1.75rem]"};export const sheetHeaderGapClasses={xs:"gap-0.5",sm:"gap-0.5",md:"gap-1",lg:"gap-1",xl:"gap-1.5"};export const sheetSectionGapClasses={xs:"gap-1.5",sm:"gap-2",md:"gap-3",lg:"gap-3.5",xl:"gap-4"};export const surfaceClasses="[background-image:var(--neba-grain),var(--neba-sheen)] [background-blend-mode:overlay,normal] [backdrop-filter:var(--neba-blur)]";export const transitionClasses=["[transition-property:background-color,border-color,box-shadow,color]","[transition-duration:var(--neba-duration-fill),var(--neba-duration),var(--neba-duration),var(--neba-duration)]","[transition-timing-function:var(--neba-ease)]"].join(" ");export const pressTransitionClasses="active:[transition-duration:0ms]";export const focusRingClasses="focus-visible:[outline:2px_solid_var(--n-ring)] focus-visible:outline-offset-2";export const focusWithinRingClasses="has-[:focus-visible]:[outline:2px_solid_var(--n-ring)] has-[:focus-visible]:outline-offset-2";export const iconClasses="[&_svg]:pointer-events-none [&_svg]:size-[1.2em] [&_svg]:shrink-0";export const srOnlyClasses="absolute size-px overflow-hidden whitespace-nowrap [clip-path:inset(50%)]";export function controlSlots(e,s,r){const n="solid"===r;return{"--n-fill":`var(--neba-${e}-fill)`,"--n-fill-hover":`var(--neba-${e}-fill-hover)`,"--n-fill-active":`var(--neba-${e}-fill-active)`,"--n-on-solid":`var(--neba-${e}-on-solid)`,"--n-accent":`var(--neba-${e}-accent)`,"--n-soft":`var(--neba-${e}-soft)`,"--n-soft-hover":`var(--neba-${e}-soft-hover)`,"--n-soft-press":`var(--neba-${e}-soft-press)`,"--n-panel":`var(--neba-${e}-panel)`,"--n-panel-hover":`var(--neba-${e}-panel-hover)`,"--n-panel-press":`var(--neba-${e}-panel-press)`,"--n-line":`var(--neba-${e}-line)`,"--n-line-hover":`var(--neba-${e}-line-hover)`,"--n-ring":`var(--neba-${e}-ring)`,"--n-glow":n?"var(--neba-glow-on-fill)":`var(--neba-${e}-soft)`,"--n-flash":n?"var(--neba-flash-on-fill)":`var(--neba-${e}-soft-press)`,"--n-elev":`var(--neba-shadow-${s})`,"--n-elev-hover":`var(--neba-shadow-${Math.min(s+1,4)})`,"--n-elev-press":`var(--neba-shadow-${Math.max(s-1,0)})`}}export function surfaceSlots(e,s){return{"--n-accent":`var(--neba-${e}-accent)`,"--n-soft":`var(--neba-${e}-soft)`,"--n-soft-hover":`var(--neba-${e}-soft-hover)`,"--n-soft-press":`var(--neba-${e}-soft-press)`,"--n-panel":"var(--neba-panel)","--n-panel-hover":"var(--neba-panel-hover)","--n-panel-press":"var(--neba-panel-press)","--n-line":`var(--neba-${e}-line)`,"--n-line-hover":`var(--neba-${e}-line-hover)`,"--n-ring":`var(--neba-${e}-ring)`,"--n-elev":`var(--neba-shadow-${s})`}}export const disabledClasses={solid:"cursor-not-allowed bg-(--neba-disabled-bg) text-(--neba-disabled-fg) shadow-none",outline:"cursor-not-allowed border bg-transparent text-(--neba-disabled-fg) [border-color:var(--neba-disabled-border)] shadow-none",text:"cursor-not-allowed bg-transparent text-(--neba-disabled-fg) shadow-none"};export const fieldRestClasses={solid:[surfaceClasses,"text-(--neba-fg) bg-(--n-panel-hover)","[box-shadow:var(--n-elev),var(--neba-plate-solid)]","hover:bg-(--n-panel-press)","focus-within:bg-(--n-panel-press)"].join(" "),outline:[surfaceClasses,"border text-(--neba-fg) bg-(--n-panel)","[border-color:var(--n-line)]","[box-shadow:var(--n-elev),var(--neba-plate-glass)]","hover:bg-(--n-panel-hover) hover:[border-color:var(--n-line-hover)]","focus-within:bg-(--n-panel-hover) focus-within:[border-color:var(--n-ring)]"].join(" "),text:["text-(--neba-fg) bg-transparent","hover:bg-(--n-soft)","focus-within:bg-(--n-soft-hover)"].join(" ")};export const fieldReadOnlyClasses={solid:[surfaceClasses,"text-(--neba-fg) bg-(--n-panel-hover)","[box-shadow:var(--neba-plate-solid)] [filter:saturate(0.55)]"].join(" "),outline:[surfaceClasses,"border text-(--neba-fg) bg-(--n-panel)","[border-color:var(--n-line)] [box-shadow:var(--neba-plate-glass)] [filter:saturate(0.55)]"].join(" "),text:"text-(--neba-fg) bg-transparent [filter:saturate(0.55)]"};export const readOnlyFilterClasses="[filter:saturate(0.55)]";export const chipRemoveClasses=["ms-0.5 inline-flex shrink-0 items-center justify-center rounded-full","size-[1.15em] cursor-pointer opacity-70","[transition:opacity_var(--neba-duration)_var(--neba-ease)]","hover:opacity-100 focus-visible:opacity-100","focus-visible:[outline:2px_solid_var(--n-ring)] focus-visible:outline-offset-1","disabled:cursor-not-allowed"].join(" ");export function hasContent(e){return null!=e&&!1!==e&&""!==e}export function toLength(e){if(null!=e)return"number"==typeof e?`${e}px`:e}export function cx(...e){return e.filter(Boolean).join(" ")}
@@ -26,7 +26,7 @@
26
26
  * which is exactly how a close button ends up white on white.
27
27
  */
28
28
  import * as React from 'react';
29
- import type { NebaColor, NebaSize } from '../types';
29
+ import type { NebaColor, NebaSize } from '../types.js';
30
30
  /**
31
31
  * Whose window this is a picture of.
32
32
  *
@@ -1 +1 @@
1
- import{jsx as e,jsxs as i}from"react/jsx-runtime";import{cx as t}from"./styles";const n={macos:{bar:38,radius:10,radiusBottom:10,padX:12,padEnd:12,gap:8,title:13,glyph:7,weight:500,frame:1,band:{side:0,bottom:0},control:{width:12,height:12},titleAlign:"center",controlsSide:"start",shape:"dot",rule:!1,stroke:1.4,boxRadius:0,tint:[6,3],accentBorder:!1,paint:null,image:null,shadow:null,glass:!1},macosx:{bar:26,radius:8,radiusBottom:0,padX:10,padEnd:10,gap:8,title:12,glyph:7,weight:700,frame:1,band:{side:0,bottom:0},control:{width:13,height:13},titleAlign:"center",controlsSide:"start",shape:"gloss-dot",rule:!0,stroke:1.5,boxRadius:0,tint:[0,0],accentBorder:!1,paint:{fill:"#e4e4e4",ink:"#333333",dark:!1},image:"repeating-linear-gradient(180deg, rgb(255 255 255 / 0.55) 0 1px, rgb(0 0 0 / 0.035) 1px 2px), linear-gradient(180deg, rgb(255 255 255 / 0.8), rgb(0 0 0 / 0.07))",shadow:"0 1px 0 rgb(255 255 255 / 0.85)",glass:!1},windows11:{bar:32,radius:8,radiusBottom:8,padX:12,padEnd:0,gap:0,title:12,glyph:10,weight:400,frame:1,band:{side:0,bottom:0},control:{width:46,height:32},titleAlign:"start",controlsSide:"end",shape:"square",rule:!1,tint:[3,1],stroke:1,boxRadius:1.6,accentBorder:!1,paint:null,image:null,shadow:null,glass:!1},windows10:{bar:30,radius:0,radiusBottom:0,padX:10,padEnd:0,gap:0,title:12,glyph:10,weight:400,frame:1,band:{side:0,bottom:0},control:{width:45,height:30},titleAlign:"start",controlsSide:"end",shape:"square",rule:!0,tint:[0,0],stroke:.9,boxRadius:0,accentBorder:!0,paint:null,image:null,shadow:null,glass:!1},windows8:{bar:32,radius:0,radiusBottom:0,padX:10,padEnd:0,gap:0,title:12,glyph:11,weight:400,frame:2,band:{side:0,bottom:0},control:{width:45,height:32},titleAlign:"start",controlsSide:"end",shape:"square",rule:!1,tint:[0,0],stroke:1,boxRadius:0,accentBorder:!0,paint:null,image:null,shadow:null,glass:!1},windows7:{bar:30,radius:7,radiusBottom:0,padX:10,padEnd:3,gap:2,title:12,glyph:10,weight:400,frame:1,band:{side:7,bottom:7},control:{width:29,height:20},closeWidth:45,titleAlign:"start",controlsSide:"end",shape:"aero",rule:!1,tint:[0,0],stroke:1.1,boxRadius:0,accentBorder:!1,paint:{fill:"rgb(198 218 242 / 0.45)",ink:"#12314f",dark:!1},image:"linear-gradient(180deg, rgb(255 255 255 / 0.62), rgb(255 255 255 / 0.1) 46%, rgb(255 255 255 / 0.34) 88%, rgb(255 255 255 / 0.5))",shadow:"0 0 6px rgb(255 255 255 / 0.95), 0 0 3px rgb(255 255 255 / 0.95)",glass:!0},windowsxp:{bar:30,radius:8,radiusBottom:0,padX:6,padEnd:4,gap:2,title:13,glyph:9,weight:700,frame:1,band:{side:4,bottom:4},control:{width:21,height:21},closeWidth:26,titleAlign:"start",controlsSide:"end",shape:"plate",rule:!1,tint:[0,0],stroke:1.8,boxRadius:3,accentBorder:!1,paint:{fill:"#1f66d6",ink:"#ffffff",dark:!0},image:"linear-gradient(180deg, rgb(255 255 255 / 0.55), rgb(255 255 255 / 0.26) 7%, rgb(0 0 0 / 0.11) 42%, rgb(0 0 0 / 0.05) 56%, rgb(255 255 255 / 0.22) 76%, rgb(255 255 255 / 0.34) 88%, rgb(0 0 0 / 0.16) 96%, rgb(0 0 0 / 0.34))",shadow:"0 1px 1px rgb(0 0 0 / 0.45)",glass:!1},linux:{bar:44,radius:12,radiusBottom:12,padX:10,padEnd:10,gap:6,title:14,glyph:10,weight:600,frame:1,band:{side:0,bottom:0},control:{width:24,height:24},titleAlign:"center",controlsSide:"end",shape:"circle",rule:!1,stroke:1.2,boxRadius:0,tint:[11,5],accentBorder:!1,paint:null,image:null,shadow:null,glass:!1}},a={xs:.8,sm:.9,md:1,lg:1.15,xl:1.3};export function windowMetrics(e,i){const t=n[e],r=a[i],o=e=>Math.round(e*r),s={width:o(t.control.width),height:o(t.control.height)},d=o(t.gap),l=void 0===t.closeWidth?s.width:o(t.closeWidth);return{bar:o(t.bar),radius:t.radius,radiusBottom:t.radiusBottom,frame:t.frame,band:{side:o(t.band.side),bottom:o(t.band.bottom)},padX:o(t.padX),padEnd:o(t.padEnd),gap:d,title:o(t.title),glyph:o(t.glyph),weight:t.weight,control:s,controlsWidth:e=>e<=0?0:l+(e-1)*s.width+(e-1)*d,closeWidth:l}}export function windowChrome(e){return n[e]}const r={macos:["close","minimize","maximize"],macosx:["close","minimize","maximize"],windows11:["minimize","maximize","close"],windows10:["minimize","maximize","close"],windows8:["minimize","maximize","close"],windows7:["minimize","maximize","close"],windowsxp:["minimize","maximize","close"],linux:["minimize","maximize","close"]};export function orderControls(e,i){return r[e].filter(e=>i.includes(e))}function o(e,i){const t=Math.round(100*(1-i));return t>=100?e:`color-mix(in oklab, ${e} ${t}%, transparent)`}export function windowSlots(e){const{os:i,color:t,accent:a,transparency:r,active:s,elevation:d}=e,l=n[i],c=Math.min(Math.max(r,0),1),g="var(--neba-surface)",b=l.tint[s?0:1],h=0===b?g:`color-mix(in oklab, ${g} ${100-b}%, var(--neba-fg))`,p=a&&s,m=l.paint,u=m?s?m.fill:`color-mix(in oklab, ${m.fill} 45%, #c6c9ce)`:null,w=p?`var(--neba-${t}-solid)`:u??h,x=p?`var(--neba-${t}-on-solid)`:m?s?m.ink:`color-mix(in oklab, ${m.ink} 60%, transparent)`:s?"var(--neba-fg)":"var(--neba-muted-fg)",f=l.band.side>0,v=f?o(p?`var(--neba-${t}-solid)`:u??h,c):"transparent",k=f?`color-mix(in oklab, ${p?`var(--neba-${t}-solid)`:u??"var(--neba-border)"} 72%, black)`:p&&l.accentBorder?`var(--neba-${t}-solid)`:s?"var(--neba-border)":"color-mix(in oklab, var(--neba-border) 55%, transparent)",z=p||(m?.dark??!1);return{"--n-window-bar":o(w,c),"--n-window-bar-fg":x,"--n-window-bar-image":l.image??"none","--n-window-bar-shadow":l.shadow??"none","--n-window-body":o(g,c),"--n-window-line":k,"--n-window-band":v,"--n-window-hover":z?"rgb(255 255 255 / 0.18)":"color-mix(in oklab, var(--neba-fg) 9%, transparent)","--n-window-press":z?"rgb(255 255 255 / 0.28)":"color-mix(in oklab, var(--neba-fg) 16%, transparent)","--n-window-shadow":`var(--neba-shadow-${s?d:Math.max(d-1,0)})`,"--n-accent":`var(--neba-${t}-accent)`,"--n-ring":`var(--neba-${t}-ring)`}}function s({size:i,stroke:t,round:n,children:a}){return e("svg",{viewBox:"0 0 10 10",width:i,height:i,fill:"none",stroke:"currentColor",strokeWidth:t,strokeLinecap:n?"round":"square",strokeLinejoin:n?"round":"miter","aria-hidden":"true",children:a})}function d(t,n,a,r){const o=a.stroke,d=a.boxRadius>0||"square"!==a.shape,l=a.boxRadius;return"minimize"===t?e(s,{size:r,stroke:o,round:d,children:e("path",{d:"plate"===a.shape?"M2 7.5h6":"M1.5 5h7"})}):"close"===t?e(s,{size:r,stroke:o,round:d,children:e("path",{d:"m1.6 1.6 6.8 6.8M8.4 1.6 1.6 8.4"})}):n?i(s,{size:r,stroke:o,round:d,children:[e("rect",{x:"1.4",y:"3.4",width:"5.2",height:"5.2",rx:l}),e("path",{d:"M3.6 3.4v-2h5v5h-2"})]}):e(s,{size:r,stroke:o,round:d,children:e("rect",{x:"1.5",y:"1.5",width:"7",height:"7",rx:l})})}const l={close:"#ff5f57",minimize:"#febc2e",maximize:"#28c840"},c={close:"#cf4b36",minimize:"#4b85d4",maximize:"#4b85d4"},g={macos:null,macosx:null,windows11:"#c42b1c",windows10:"#e81123",windows8:"#e81123",windows7:"#e04a45",windowsxp:null,linux:null};export function WindowControls({os:i,metrics:a,controls:r,maximized:o,active:s,labels:b,onCommand:h}){const p=n[i],m=orderControls(i,r);if(0===m.length)return null;const u="dot"===p.shape||"gloss-dot"===p.shape,w="circle"===p.shape,x="plate"===p.shape,f="aero"===p.shape;return e("div",{className:t("group/controls flex shrink-0 items-center",f?"self-start":"self-stretch"),style:{gap:a.gap},onPointerDown:e=>e.stopPropagation(),onDoubleClick:e=>e.stopPropagation(),children:m.map(n=>{const r="maximize"===n&&o?b.restore:b[n],m="close"===n?g[i]:null,{face:v,ink:k,image:z,plate:y}=function(e,i,t){switch(e.shape){case"dot":case"gloss-dot":return{face:t?l[i]:"color-mix(in oklab, var(--neba-fg) 22%, transparent)",ink:"rgb(0 0 0 / 0.55)",image:"gloss-dot"===e.shape?"radial-gradient(circle at 50% 26%, rgb(255 255 255 / 0.8), rgb(255 255 255 / 0) 62%)":void 0,plate:"gloss-dot"===e.shape?"inset 0 0 0 1px rgb(0 0 0 / 0.22), inset 0 -1px 1px rgb(0 0 0 / 0.15)":void 0};case"plate":return{face:t?c[i]:`color-mix(in oklab, ${c[i]} 45%, #c6c9ce)`,ink:"#ffffff",image:"linear-gradient(180deg, rgb(255 255 255 / 0.5), rgb(255 255 255 / 0.05) 55%, rgb(0 0 0 / 0.14))",plate:"inset 0 0 0 1px rgb(255 255 255 / 0.4)"};case"aero":return{face:"rgb(255 255 255 / 0.3)",image:"linear-gradient(180deg, rgb(255 255 255 / 0.6), rgb(255 255 255 / 0.08) 52%, rgb(255 255 255 / 0.3))",plate:"inset 0 0 0 1px rgb(255 255 255 / 0.55)"};default:return{}}}(p,n,s);return e("button",{type:"button","aria-label":r,title:r,className:t("relative flex shrink-0 cursor-pointer items-center justify-center","[transition:background-color_var(--neba-duration)_var(--neba-ease),color_var(--neba-duration)_var(--neba-ease),filter_var(--neba-duration)_var(--neba-ease)]","focus-visible:[outline:2px_solid_var(--n-ring)] focus-visible:[outline-offset:-2px]",u||w?"rounded-full":"",w?"bg-(--n-window-hover)":"",v?"bg-(--n-window-face)":"",m?"hover:bg-(--n-window-danger) hover:text-white active:bg-(--n-window-danger)":u?"":x?"hover:brightness-110 active:brightness-95":w?"hover:bg-(--n-window-press) active:bg-(--n-window-press)":f?"hover:brightness-110 active:brightness-95":"hover:bg-(--n-window-hover) active:bg-(--n-window-press)"),style:{width:u?a.control.height:"close"===n?a.closeWidth:a.control.width,height:a.control.height,borderRadius:x?p.boxRadius+1:f?"0 0 3px 3px":void 0,backgroundImage:z,boxShadow:y,color:k,...v?{"--n-window-face":v}:{},...m?{"--n-window-danger":m}:{}},onClick:()=>h(n),children:e("span",{className:t("flex items-center justify-center",u?"opacity-0 [transition:opacity_var(--neba-duration)_var(--neba-ease)] group-hover/controls:opacity-100":""),children:d(n,o,p,a.glyph)})},n)})})}
1
+ import{jsx as e,jsxs as i}from"react/jsx-runtime";import{cx as t}from"./styles.js";const n={macos:{bar:38,radius:10,radiusBottom:10,padX:12,padEnd:12,gap:8,title:13,glyph:7,weight:500,frame:1,band:{side:0,bottom:0},control:{width:12,height:12},titleAlign:"center",controlsSide:"start",shape:"dot",rule:!1,stroke:1.4,boxRadius:0,tint:[6,3],accentBorder:!1,paint:null,image:null,shadow:null,glass:!1},macosx:{bar:26,radius:8,radiusBottom:0,padX:10,padEnd:10,gap:8,title:12,glyph:7,weight:700,frame:1,band:{side:0,bottom:0},control:{width:13,height:13},titleAlign:"center",controlsSide:"start",shape:"gloss-dot",rule:!0,stroke:1.5,boxRadius:0,tint:[0,0],accentBorder:!1,paint:{fill:"#e4e4e4",ink:"#333333",dark:!1},image:"repeating-linear-gradient(180deg, rgb(255 255 255 / 0.55) 0 1px, rgb(0 0 0 / 0.035) 1px 2px), linear-gradient(180deg, rgb(255 255 255 / 0.8), rgb(0 0 0 / 0.07))",shadow:"0 1px 0 rgb(255 255 255 / 0.85)",glass:!1},windows11:{bar:32,radius:8,radiusBottom:8,padX:12,padEnd:0,gap:0,title:12,glyph:10,weight:400,frame:1,band:{side:0,bottom:0},control:{width:46,height:32},titleAlign:"start",controlsSide:"end",shape:"square",rule:!1,tint:[3,1],stroke:1,boxRadius:1.6,accentBorder:!1,paint:null,image:null,shadow:null,glass:!1},windows10:{bar:30,radius:0,radiusBottom:0,padX:10,padEnd:0,gap:0,title:12,glyph:10,weight:400,frame:1,band:{side:0,bottom:0},control:{width:45,height:30},titleAlign:"start",controlsSide:"end",shape:"square",rule:!0,tint:[0,0],stroke:.9,boxRadius:0,accentBorder:!0,paint:null,image:null,shadow:null,glass:!1},windows8:{bar:32,radius:0,radiusBottom:0,padX:10,padEnd:0,gap:0,title:12,glyph:11,weight:400,frame:2,band:{side:0,bottom:0},control:{width:45,height:32},titleAlign:"start",controlsSide:"end",shape:"square",rule:!1,tint:[0,0],stroke:1,boxRadius:0,accentBorder:!0,paint:null,image:null,shadow:null,glass:!1},windows7:{bar:30,radius:7,radiusBottom:0,padX:10,padEnd:3,gap:2,title:12,glyph:10,weight:400,frame:1,band:{side:7,bottom:7},control:{width:29,height:20},closeWidth:45,titleAlign:"start",controlsSide:"end",shape:"aero",rule:!1,tint:[0,0],stroke:1.1,boxRadius:0,accentBorder:!1,paint:{fill:"rgb(198 218 242 / 0.45)",ink:"#12314f",dark:!1},image:"linear-gradient(180deg, rgb(255 255 255 / 0.62), rgb(255 255 255 / 0.1) 46%, rgb(255 255 255 / 0.34) 88%, rgb(255 255 255 / 0.5))",shadow:"0 0 6px rgb(255 255 255 / 0.95), 0 0 3px rgb(255 255 255 / 0.95)",glass:!0},windowsxp:{bar:30,radius:8,radiusBottom:0,padX:6,padEnd:4,gap:2,title:13,glyph:9,weight:700,frame:1,band:{side:4,bottom:4},control:{width:21,height:21},closeWidth:26,titleAlign:"start",controlsSide:"end",shape:"plate",rule:!1,tint:[0,0],stroke:1.8,boxRadius:3,accentBorder:!1,paint:{fill:"#1f66d6",ink:"#ffffff",dark:!0},image:"linear-gradient(180deg, rgb(255 255 255 / 0.55), rgb(255 255 255 / 0.26) 7%, rgb(0 0 0 / 0.11) 42%, rgb(0 0 0 / 0.05) 56%, rgb(255 255 255 / 0.22) 76%, rgb(255 255 255 / 0.34) 88%, rgb(0 0 0 / 0.16) 96%, rgb(0 0 0 / 0.34))",shadow:"0 1px 1px rgb(0 0 0 / 0.45)",glass:!1},linux:{bar:44,radius:12,radiusBottom:12,padX:10,padEnd:10,gap:6,title:14,glyph:10,weight:600,frame:1,band:{side:0,bottom:0},control:{width:24,height:24},titleAlign:"center",controlsSide:"end",shape:"circle",rule:!1,stroke:1.2,boxRadius:0,tint:[11,5],accentBorder:!1,paint:null,image:null,shadow:null,glass:!1}},a={xs:.8,sm:.9,md:1,lg:1.15,xl:1.3};export function windowMetrics(e,i){const t=n[e],r=a[i],o=e=>Math.round(e*r),s={width:o(t.control.width),height:o(t.control.height)},d=o(t.gap),l=void 0===t.closeWidth?s.width:o(t.closeWidth);return{bar:o(t.bar),radius:t.radius,radiusBottom:t.radiusBottom,frame:t.frame,band:{side:o(t.band.side),bottom:o(t.band.bottom)},padX:o(t.padX),padEnd:o(t.padEnd),gap:d,title:o(t.title),glyph:o(t.glyph),weight:t.weight,control:s,controlsWidth:e=>e<=0?0:l+(e-1)*s.width+(e-1)*d,closeWidth:l}}export function windowChrome(e){return n[e]}const r={macos:["close","minimize","maximize"],macosx:["close","minimize","maximize"],windows11:["minimize","maximize","close"],windows10:["minimize","maximize","close"],windows8:["minimize","maximize","close"],windows7:["minimize","maximize","close"],windowsxp:["minimize","maximize","close"],linux:["minimize","maximize","close"]};export function orderControls(e,i){return r[e].filter(e=>i.includes(e))}function o(e,i){const t=Math.round(100*(1-i));return t>=100?e:`color-mix(in oklab, ${e} ${t}%, transparent)`}export function windowSlots(e){const{os:i,color:t,accent:a,transparency:r,active:s,elevation:d}=e,l=n[i],c=Math.min(Math.max(r,0),1),g="var(--neba-surface)",b=l.tint[s?0:1],h=0===b?g:`color-mix(in oklab, ${g} ${100-b}%, var(--neba-fg))`,p=a&&s,m=l.paint,u=m?s?m.fill:`color-mix(in oklab, ${m.fill} 45%, #c6c9ce)`:null,w=p?`var(--neba-${t}-solid)`:u??h,x=p?`var(--neba-${t}-on-solid)`:m?s?m.ink:`color-mix(in oklab, ${m.ink} 60%, transparent)`:s?"var(--neba-fg)":"var(--neba-muted-fg)",f=l.band.side>0,v=f?o(p?`var(--neba-${t}-solid)`:u??h,c):"transparent",k=f?`color-mix(in oklab, ${p?`var(--neba-${t}-solid)`:u??"var(--neba-border)"} 72%, black)`:p&&l.accentBorder?`var(--neba-${t}-solid)`:s?"var(--neba-border)":"color-mix(in oklab, var(--neba-border) 55%, transparent)",z=p||(m?.dark??!1);return{"--n-window-bar":o(w,c),"--n-window-bar-fg":x,"--n-window-bar-image":l.image??"none","--n-window-bar-shadow":l.shadow??"none","--n-window-body":o(g,c),"--n-window-line":k,"--n-window-band":v,"--n-window-hover":z?"rgb(255 255 255 / 0.18)":"color-mix(in oklab, var(--neba-fg) 9%, transparent)","--n-window-press":z?"rgb(255 255 255 / 0.28)":"color-mix(in oklab, var(--neba-fg) 16%, transparent)","--n-window-shadow":`var(--neba-shadow-${s?d:Math.max(d-1,0)})`,"--n-accent":`var(--neba-${t}-accent)`,"--n-ring":`var(--neba-${t}-ring)`}}function s({size:i,stroke:t,round:n,children:a}){return e("svg",{viewBox:"0 0 10 10",width:i,height:i,fill:"none",stroke:"currentColor",strokeWidth:t,strokeLinecap:n?"round":"square",strokeLinejoin:n?"round":"miter","aria-hidden":"true",children:a})}function d(t,n,a,r){const o=a.stroke,d=a.boxRadius>0||"square"!==a.shape,l=a.boxRadius;return"minimize"===t?e(s,{size:r,stroke:o,round:d,children:e("path",{d:"plate"===a.shape?"M2 7.5h6":"M1.5 5h7"})}):"close"===t?e(s,{size:r,stroke:o,round:d,children:e("path",{d:"m1.6 1.6 6.8 6.8M8.4 1.6 1.6 8.4"})}):n?i(s,{size:r,stroke:o,round:d,children:[e("rect",{x:"1.4",y:"3.4",width:"5.2",height:"5.2",rx:l}),e("path",{d:"M3.6 3.4v-2h5v5h-2"})]}):e(s,{size:r,stroke:o,round:d,children:e("rect",{x:"1.5",y:"1.5",width:"7",height:"7",rx:l})})}const l={close:"#ff5f57",minimize:"#febc2e",maximize:"#28c840"},c={close:"#cf4b36",minimize:"#4b85d4",maximize:"#4b85d4"},g={macos:null,macosx:null,windows11:"#c42b1c",windows10:"#e81123",windows8:"#e81123",windows7:"#e04a45",windowsxp:null,linux:null};export function WindowControls({os:i,metrics:a,controls:r,maximized:o,active:s,labels:b,onCommand:h}){const p=n[i],m=orderControls(i,r);if(0===m.length)return null;const u="dot"===p.shape||"gloss-dot"===p.shape,w="circle"===p.shape,x="plate"===p.shape,f="aero"===p.shape;return e("div",{className:t("group/controls flex shrink-0 items-center",f?"self-start":"self-stretch"),style:{gap:a.gap},onPointerDown:e=>e.stopPropagation(),onDoubleClick:e=>e.stopPropagation(),children:m.map(n=>{const r="maximize"===n&&o?b.restore:b[n],m="close"===n?g[i]:null,{face:v,ink:k,image:z,plate:y}=function(e,i,t){switch(e.shape){case"dot":case"gloss-dot":return{face:t?l[i]:"color-mix(in oklab, var(--neba-fg) 22%, transparent)",ink:"rgb(0 0 0 / 0.55)",image:"gloss-dot"===e.shape?"radial-gradient(circle at 50% 26%, rgb(255 255 255 / 0.8), rgb(255 255 255 / 0) 62%)":void 0,plate:"gloss-dot"===e.shape?"inset 0 0 0 1px rgb(0 0 0 / 0.22), inset 0 -1px 1px rgb(0 0 0 / 0.15)":void 0};case"plate":return{face:t?c[i]:`color-mix(in oklab, ${c[i]} 45%, #c6c9ce)`,ink:"#ffffff",image:"linear-gradient(180deg, rgb(255 255 255 / 0.5), rgb(255 255 255 / 0.05) 55%, rgb(0 0 0 / 0.14))",plate:"inset 0 0 0 1px rgb(255 255 255 / 0.4)"};case"aero":return{face:"rgb(255 255 255 / 0.3)",image:"linear-gradient(180deg, rgb(255 255 255 / 0.6), rgb(255 255 255 / 0.08) 52%, rgb(255 255 255 / 0.3))",plate:"inset 0 0 0 1px rgb(255 255 255 / 0.55)"};default:return{}}}(p,n,s);return e("button",{type:"button","aria-label":r,title:r,className:t("relative flex shrink-0 cursor-pointer items-center justify-center","[transition:background-color_var(--neba-duration)_var(--neba-ease),color_var(--neba-duration)_var(--neba-ease),filter_var(--neba-duration)_var(--neba-ease)]","focus-visible:[outline:2px_solid_var(--n-ring)] focus-visible:[outline-offset:-2px]",u||w?"rounded-full":"",w?"bg-(--n-window-hover)":"",v?"bg-(--n-window-face)":"",m?"hover:bg-(--n-window-danger) hover:text-white active:bg-(--n-window-danger)":u?"":x?"hover:brightness-110 active:brightness-95":w?"hover:bg-(--n-window-press) active:bg-(--n-window-press)":f?"hover:brightness-110 active:brightness-95":"hover:bg-(--n-window-hover) active:bg-(--n-window-press)"),style:{width:u?a.control.height:"close"===n?a.closeWidth:a.control.width,height:a.control.height,borderRadius:x?p.boxRadius+1:f?"0 0 3px 3px":void 0,backgroundImage:z,boxShadow:y,color:k,...v?{"--n-window-face":v}:{},...m?{"--n-window-danger":m}:{}},onClick:()=>h(n),children:e("span",{className:t("flex items-center justify-center",u?"opacity-0 [transition:opacity_var(--neba-duration)_var(--neba-ease)] group-hover/controls:opacity-100":""),children:d(n,o,p,a.glyph)})},n)})})}