@forthtilliath/forth-ui 0.2.5 → 0.4.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 (372) hide show
  1. package/README.md +91 -34
  2. package/dist/components/accordion/accordion-items.d.ts +1 -1
  3. package/dist/components/accordion/accordion-items.d.ts.map +1 -1
  4. package/dist/components/accordion/accordion-items.js +3 -2
  5. package/dist/components/accordion/accordion-multiple.d.ts +1 -1
  6. package/dist/components/accordion/accordion-multiple.d.ts.map +1 -1
  7. package/dist/components/accordion/accordion-multiple.js +2 -2
  8. package/dist/components/accordion/accordion-single.d.ts +1 -1
  9. package/dist/components/accordion/accordion-single.d.ts.map +1 -1
  10. package/dist/components/accordion/accordion-single.js +2 -2
  11. package/dist/components/accordion/accordion-trigger.d.ts +15 -0
  12. package/dist/components/accordion/accordion-trigger.d.ts.map +1 -0
  13. package/dist/components/accordion/accordion-trigger.js +25 -0
  14. package/dist/components/accordion/accordion.d.ts +1 -1
  15. package/dist/components/accordion/accordion.d.ts.map +1 -1
  16. package/dist/components/accordion/accordion.js +2 -2
  17. package/dist/components/accordion/index.d.ts +1 -1
  18. package/dist/components/accordion/index.d.ts.map +1 -1
  19. package/dist/components/accordion/index.js +1 -1
  20. package/dist/components/accordion/types.d.ts +1 -1
  21. package/dist/components/accordion/types.d.ts.map +1 -1
  22. package/dist/components/alert/alert.d.ts +8 -2
  23. package/dist/components/alert/alert.d.ts.map +1 -1
  24. package/dist/components/alert/alert.js +5 -3
  25. package/dist/components/alert/index.d.ts +3 -3
  26. package/dist/components/alert/index.d.ts.map +1 -1
  27. package/dist/components/alert/index.js +1 -1
  28. package/dist/components/alert/variants.d.ts.map +1 -1
  29. package/dist/components/alert/variants.js +11 -4
  30. package/dist/components/avatar/avatar-group.d.ts +1 -1
  31. package/dist/components/avatar/avatar-group.d.ts.map +1 -1
  32. package/dist/components/avatar/avatar-group.js +1 -1
  33. package/dist/components/avatar/avatar.d.ts +9 -3
  34. package/dist/components/avatar/avatar.d.ts.map +1 -1
  35. package/dist/components/avatar/avatar.js +7 -4
  36. package/dist/components/avatar/index.d.ts +4 -4
  37. package/dist/components/avatar/index.d.ts.map +1 -1
  38. package/dist/components/avatar/index.js +2 -2
  39. package/dist/components/avatar/variants.d.ts.map +1 -1
  40. package/dist/components/avatar/variants.js +39 -39
  41. package/dist/components/badge/badge.d.ts +8 -2
  42. package/dist/components/badge/badge.d.ts.map +1 -1
  43. package/dist/components/badge/badge.js +5 -3
  44. package/dist/components/badge/index.d.ts +3 -3
  45. package/dist/components/badge/index.d.ts.map +1 -1
  46. package/dist/components/badge/index.js +1 -1
  47. package/dist/components/badge/variants.d.ts.map +1 -1
  48. package/dist/components/badge/variants.js +8 -4
  49. package/dist/components/banner/banner.d.ts +8 -2
  50. package/dist/components/banner/banner.d.ts.map +1 -1
  51. package/dist/components/banner/banner.js +5 -3
  52. package/dist/components/banner/index.d.ts +3 -3
  53. package/dist/components/banner/index.d.ts.map +1 -1
  54. package/dist/components/banner/index.js +1 -1
  55. package/dist/components/bento-grid/index.d.ts +2 -2
  56. package/dist/components/bento-grid/index.d.ts.map +1 -1
  57. package/dist/components/bento-grid/index.js +1 -1
  58. package/dist/components/breadcrumb/breadcrumb.d.ts +8 -2
  59. package/dist/components/breadcrumb/breadcrumb.d.ts.map +1 -1
  60. package/dist/components/breadcrumb/breadcrumb.js +8 -3
  61. package/dist/components/breadcrumb/index.d.ts +2 -2
  62. package/dist/components/breadcrumb/index.d.ts.map +1 -1
  63. package/dist/components/breadcrumb/index.js +1 -1
  64. package/dist/components/button/button.d.ts +1 -1
  65. package/dist/components/button/button.d.ts.map +1 -1
  66. package/dist/components/button/button.js +1 -1
  67. package/dist/components/button/index.d.ts +5 -5
  68. package/dist/components/button/index.d.ts.map +1 -1
  69. package/dist/components/button/index.js +2 -2
  70. package/dist/components/checkbox/index.d.ts +2 -2
  71. package/dist/components/checkbox/index.d.ts.map +1 -1
  72. package/dist/components/checkbox/index.js +1 -1
  73. package/dist/components/chip/chip.d.ts +2 -2
  74. package/dist/components/chip/chip.d.ts.map +1 -1
  75. package/dist/components/chip/chip.js +2 -2
  76. package/dist/components/chip/index.d.ts +2 -2
  77. package/dist/components/chip/index.d.ts.map +1 -1
  78. package/dist/components/chip/index.js +1 -1
  79. package/dist/components/code-block/code-block.d.ts +7 -1
  80. package/dist/components/code-block/code-block.d.ts.map +1 -1
  81. package/dist/components/code-block/code-block.js +4 -2
  82. package/dist/components/code-block/index.d.ts +2 -2
  83. package/dist/components/code-block/index.d.ts.map +1 -1
  84. package/dist/components/code-block/index.js +1 -1
  85. package/dist/components/collapsible/index.d.ts +6 -6
  86. package/dist/components/collapsible/index.d.ts.map +1 -1
  87. package/dist/components/collapsible/index.js +3 -3
  88. package/dist/components/color-picker/color-picker.d.ts +7 -1
  89. package/dist/components/color-picker/color-picker.d.ts.map +1 -1
  90. package/dist/components/color-picker/color-picker.js +5 -3
  91. package/dist/components/color-picker/index.d.ts +2 -2
  92. package/dist/components/color-picker/index.d.ts.map +1 -1
  93. package/dist/components/color-picker/index.js +1 -1
  94. package/dist/components/column-menu/column-menu.d.ts +39 -0
  95. package/dist/components/column-menu/column-menu.d.ts.map +1 -0
  96. package/dist/components/column-menu/column-menu.js +74 -0
  97. package/dist/components/column-menu/index.d.ts +6 -0
  98. package/dist/components/column-menu/index.d.ts.map +1 -0
  99. package/dist/components/column-menu/index.js +3 -0
  100. package/dist/components/column-menu/sortable-column-row.d.ts +13 -0
  101. package/dist/components/column-menu/sortable-column-row.d.ts.map +1 -0
  102. package/dist/components/column-menu/sortable-column-row.js +22 -0
  103. package/dist/components/column-menu/types.d.ts +21 -0
  104. package/dist/components/column-menu/types.d.ts.map +1 -0
  105. package/dist/components/column-menu/types.js +7 -0
  106. package/dist/components/column-menu/use-dnd-sensors.d.ts +6 -0
  107. package/dist/components/column-menu/use-dnd-sensors.d.ts.map +1 -0
  108. package/dist/components/column-menu/use-dnd-sensors.js +14 -0
  109. package/dist/components/combobox/combobox.d.ts +16 -1
  110. package/dist/components/combobox/combobox.d.ts.map +1 -1
  111. package/dist/components/combobox/combobox.js +7 -3
  112. package/dist/components/combobox/index.d.ts +4 -4
  113. package/dist/components/combobox/index.d.ts.map +1 -1
  114. package/dist/components/combobox/index.js +2 -2
  115. package/dist/components/combobox/multi-select.d.ts +17 -2
  116. package/dist/components/combobox/multi-select.d.ts.map +1 -1
  117. package/dist/components/combobox/multi-select.js +8 -4
  118. package/dist/components/command-palette/command-palette.d.ts +7 -1
  119. package/dist/components/command-palette/command-palette.d.ts.map +1 -1
  120. package/dist/components/command-palette/command-palette.js +6 -2
  121. package/dist/components/command-palette/index.d.ts +2 -2
  122. package/dist/components/command-palette/index.d.ts.map +1 -1
  123. package/dist/components/command-palette/index.js +1 -1
  124. package/dist/components/confirm-dialog/confirm-dialog.d.ts +7 -1
  125. package/dist/components/confirm-dialog/confirm-dialog.d.ts.map +1 -1
  126. package/dist/components/confirm-dialog/confirm-dialog.js +12 -6
  127. package/dist/components/confirm-dialog/index.d.ts +3 -3
  128. package/dist/components/confirm-dialog/index.d.ts.map +1 -1
  129. package/dist/components/confirm-dialog/index.js +2 -2
  130. package/dist/components/confirm-dialog/use-confirm.d.ts +1 -1
  131. package/dist/components/confirm-dialog/use-confirm.d.ts.map +1 -1
  132. package/dist/components/confirm-dialog/use-confirm.js +1 -1
  133. package/dist/components/copy-menu-item/copy-menu-item.d.ts +18 -0
  134. package/dist/components/copy-menu-item/copy-menu-item.d.ts.map +1 -0
  135. package/dist/components/copy-menu-item/copy-menu-item.js +23 -0
  136. package/dist/components/copy-menu-item/index.d.ts +3 -0
  137. package/dist/components/copy-menu-item/index.d.ts.map +1 -0
  138. package/dist/components/copy-menu-item/index.js +1 -0
  139. package/dist/components/count-animation/index.d.ts +2 -2
  140. package/dist/components/count-animation/index.d.ts.map +1 -1
  141. package/dist/components/count-animation/index.js +1 -1
  142. package/dist/components/date-picker/date-picker.d.ts +7 -1
  143. package/dist/components/date-picker/date-picker.d.ts.map +1 -1
  144. package/dist/components/date-picker/date-picker.js +6 -3
  145. package/dist/components/date-picker/index.d.ts +2 -2
  146. package/dist/components/date-picker/index.d.ts.map +1 -1
  147. package/dist/components/date-picker/index.js +1 -1
  148. package/dist/components/description-list/index.d.ts +1 -1
  149. package/dist/components/description-list/index.d.ts.map +1 -1
  150. package/dist/components/description-list/index.js +1 -1
  151. package/dist/components/dropdrawer/index.d.ts +2 -2
  152. package/dist/components/dropdrawer/index.d.ts.map +1 -1
  153. package/dist/components/dropdrawer/index.js +1 -1
  154. package/dist/components/dropzone/dropzone.d.ts +7 -1
  155. package/dist/components/dropzone/dropzone.d.ts.map +1 -1
  156. package/dist/components/dropzone/dropzone.js +5 -3
  157. package/dist/components/dropzone/index.d.ts +2 -2
  158. package/dist/components/dropzone/index.d.ts.map +1 -1
  159. package/dist/components/dropzone/index.js +1 -1
  160. package/dist/components/field/index.d.ts +2 -2
  161. package/dist/components/field/index.d.ts.map +1 -1
  162. package/dist/components/field/index.js +1 -1
  163. package/dist/components/file-list/file-list.d.ts +4 -1
  164. package/dist/components/file-list/file-list.d.ts.map +1 -1
  165. package/dist/components/file-list/file-list.js +4 -1
  166. package/dist/components/file-list/index.d.ts +2 -2
  167. package/dist/components/file-list/index.d.ts.map +1 -1
  168. package/dist/components/file-list/index.js +1 -1
  169. package/dist/components/gradient-frame/gradient-frame.d.ts +27 -0
  170. package/dist/components/gradient-frame/gradient-frame.d.ts.map +1 -0
  171. package/dist/components/gradient-frame/gradient-frame.js +16 -0
  172. package/dist/components/gradient-frame/index.d.ts +3 -0
  173. package/dist/components/gradient-frame/index.d.ts.map +1 -0
  174. package/dist/components/gradient-frame/index.js +1 -0
  175. package/dist/components/grid/context.d.ts.map +1 -1
  176. package/dist/components/grid/context.js +1 -0
  177. package/dist/components/grid/grid-item.d.ts +1 -1
  178. package/dist/components/grid/grid-item.d.ts.map +1 -1
  179. package/dist/components/grid/grid-item.js +3 -2
  180. package/dist/components/grid/grid.d.ts +3 -3
  181. package/dist/components/grid/grid.d.ts.map +1 -1
  182. package/dist/components/grid/grid.js +4 -3
  183. package/dist/components/grid/index.d.ts +2 -2
  184. package/dist/components/grid/index.d.ts.map +1 -1
  185. package/dist/components/grid/index.js +2 -2
  186. package/dist/components/grid/variants.d.ts +2 -2
  187. package/dist/components/icon-bubble/icon-bubble.d.ts +21 -0
  188. package/dist/components/icon-bubble/icon-bubble.d.ts.map +1 -0
  189. package/dist/components/icon-bubble/icon-bubble.js +16 -0
  190. package/dist/components/icon-bubble/index.d.ts +4 -0
  191. package/dist/components/icon-bubble/index.d.ts.map +1 -0
  192. package/dist/components/icon-bubble/index.js +1 -0
  193. package/dist/components/icon-bubble/variants.d.ts +12 -0
  194. package/dist/components/icon-bubble/variants.d.ts.map +1 -0
  195. package/dist/components/icon-bubble/variants.js +19 -0
  196. package/dist/components/image-input/image-input.d.ts +7 -1
  197. package/dist/components/image-input/image-input.d.ts.map +1 -1
  198. package/dist/components/image-input/image-input.js +4 -2
  199. package/dist/components/image-input/index.d.ts +2 -2
  200. package/dist/components/image-input/index.d.ts.map +1 -1
  201. package/dist/components/image-input/index.js +1 -1
  202. package/dist/components/infinite-scroll/index.d.ts +2 -2
  203. package/dist/components/infinite-scroll/index.d.ts.map +1 -1
  204. package/dist/components/infinite-scroll/index.js +1 -1
  205. package/dist/components/kbd/index.d.ts +1 -1
  206. package/dist/components/kbd/index.d.ts.map +1 -1
  207. package/dist/components/kbd/index.js +1 -1
  208. package/dist/components/link/index.d.ts +6 -6
  209. package/dist/components/link/index.d.ts.map +1 -1
  210. package/dist/components/link/index.js +3 -3
  211. package/dist/components/link/link.d.ts +1 -1
  212. package/dist/components/link/link.d.ts.map +1 -1
  213. package/dist/components/link/link.js +1 -1
  214. package/dist/components/marquee/index.d.ts +2 -2
  215. package/dist/components/marquee/index.d.ts.map +1 -1
  216. package/dist/components/marquee/index.js +1 -1
  217. package/dist/components/mode-toggle/index.d.ts +4 -0
  218. package/dist/components/mode-toggle/index.d.ts.map +1 -0
  219. package/dist/components/mode-toggle/index.js +2 -0
  220. package/dist/components/mode-toggle/mode-toggle.d.ts +22 -0
  221. package/dist/components/mode-toggle/mode-toggle.d.ts.map +1 -0
  222. package/dist/components/mode-toggle/mode-toggle.js +26 -0
  223. package/dist/components/mode-toggle/theme-provider.d.ts +13 -0
  224. package/dist/components/mode-toggle/theme-provider.d.ts.map +1 -0
  225. package/dist/components/mode-toggle/theme-provider.js +15 -0
  226. package/dist/components/multi-step-loader/index.d.ts +2 -2
  227. package/dist/components/multi-step-loader/index.d.ts.map +1 -1
  228. package/dist/components/multi-step-loader/index.js +1 -1
  229. package/dist/components/multi-step-loader/multi-step-loader.js +2 -2
  230. package/dist/components/navbar/index.d.ts +4 -4
  231. package/dist/components/navbar/index.d.ts.map +1 -1
  232. package/dist/components/navbar/index.js +2 -2
  233. package/dist/components/navbar/navbar-mobile-menu.d.ts +7 -1
  234. package/dist/components/navbar/navbar-mobile-menu.d.ts.map +1 -1
  235. package/dist/components/navbar/navbar-mobile-menu.js +5 -3
  236. package/dist/components/notification-center/index.d.ts +2 -2
  237. package/dist/components/notification-center/index.d.ts.map +1 -1
  238. package/dist/components/notification-center/index.js +1 -1
  239. package/dist/components/notification-center/notification-center.d.ts +7 -1
  240. package/dist/components/notification-center/notification-center.d.ts.map +1 -1
  241. package/dist/components/notification-center/notification-center.js +7 -4
  242. package/dist/components/number-input/index.d.ts +2 -2
  243. package/dist/components/number-input/index.d.ts.map +1 -1
  244. package/dist/components/number-input/index.js +1 -1
  245. package/dist/components/number-input/number-input.d.ts +7 -1
  246. package/dist/components/number-input/number-input.d.ts.map +1 -1
  247. package/dist/components/number-input/number-input.js +6 -4
  248. package/dist/components/pagination/index.d.ts +4 -4
  249. package/dist/components/pagination/index.d.ts.map +1 -1
  250. package/dist/components/pagination/index.js +2 -2
  251. package/dist/components/pagination/pagination.d.ts +8 -2
  252. package/dist/components/pagination/pagination.d.ts.map +1 -1
  253. package/dist/components/pagination/pagination.js +12 -9
  254. package/dist/components/password-input/index.d.ts +4 -4
  255. package/dist/components/password-input/index.d.ts.map +1 -1
  256. package/dist/components/password-input/index.js +2 -2
  257. package/dist/components/password-input/password-input.d.ts +9 -2
  258. package/dist/components/password-input/password-input.d.ts.map +1 -1
  259. package/dist/components/password-input/password-input.js +4 -2
  260. package/dist/components/progress/index.d.ts +3 -3
  261. package/dist/components/progress/index.d.ts.map +1 -1
  262. package/dist/components/progress/index.js +1 -1
  263. package/dist/components/progress/progress.d.ts +5 -2
  264. package/dist/components/progress/progress.d.ts.map +1 -1
  265. package/dist/components/progress/progress.js +5 -3
  266. package/dist/components/qr-code/index.d.ts +2 -2
  267. package/dist/components/qr-code/index.d.ts.map +1 -1
  268. package/dist/components/qr-code/index.js +1 -1
  269. package/dist/components/qr-code/qr-code.d.ts +7 -1
  270. package/dist/components/qr-code/qr-code.d.ts.map +1 -1
  271. package/dist/components/qr-code/qr-code.js +5 -2
  272. package/dist/components/radio/index.d.ts +2 -2
  273. package/dist/components/radio/index.d.ts.map +1 -1
  274. package/dist/components/radio/index.js +1 -1
  275. package/dist/components/rating/index.d.ts +2 -2
  276. package/dist/components/rating/index.d.ts.map +1 -1
  277. package/dist/components/rating/index.js +1 -1
  278. package/dist/components/rating/rating.d.ts +7 -1
  279. package/dist/components/rating/rating.d.ts.map +1 -1
  280. package/dist/components/rating/rating.js +23 -2
  281. package/dist/components/relative-time/index.d.ts +2 -2
  282. package/dist/components/relative-time/index.d.ts.map +1 -1
  283. package/dist/components/relative-time/index.js +1 -1
  284. package/dist/components/reparent/index.d.ts +2 -2
  285. package/dist/components/reparent/index.d.ts.map +1 -1
  286. package/dist/components/reparent/index.js +1 -1
  287. package/dist/components/repeat/index.d.ts +1 -1
  288. package/dist/components/repeat/index.d.ts.map +1 -1
  289. package/dist/components/repeat/index.js +1 -1
  290. package/dist/components/scroll-progress/index.d.ts +2 -2
  291. package/dist/components/scroll-progress/index.d.ts.map +1 -1
  292. package/dist/components/scroll-progress/index.js +1 -1
  293. package/dist/components/scroll-shadow/index.d.ts +2 -2
  294. package/dist/components/scroll-shadow/index.d.ts.map +1 -1
  295. package/dist/components/scroll-shadow/index.js +1 -1
  296. package/dist/components/scroll-shadow/scroll-shadow.d.ts.map +1 -1
  297. package/dist/components/scroll-shadow/scroll-shadow.js +3 -1
  298. package/dist/components/scrollspy/index.d.ts +2 -2
  299. package/dist/components/scrollspy/index.d.ts.map +1 -1
  300. package/dist/components/scrollspy/index.js +1 -1
  301. package/dist/components/separator/index.d.ts +2 -2
  302. package/dist/components/separator/index.d.ts.map +1 -1
  303. package/dist/components/separator/index.js +1 -1
  304. package/dist/components/snippet/index.d.ts +2 -2
  305. package/dist/components/snippet/index.d.ts.map +1 -1
  306. package/dist/components/snippet/index.js +1 -1
  307. package/dist/components/snippet/snippet.d.ts +7 -1
  308. package/dist/components/snippet/snippet.d.ts.map +1 -1
  309. package/dist/components/snippet/snippet.js +6 -2
  310. package/dist/components/sortable/index.d.ts +2 -2
  311. package/dist/components/sortable/index.d.ts.map +1 -1
  312. package/dist/components/sortable/index.js +1 -1
  313. package/dist/components/spacer/index.d.ts +2 -2
  314. package/dist/components/spacer/index.d.ts.map +1 -1
  315. package/dist/components/spacer/index.js +1 -1
  316. package/dist/components/spinner/index.d.ts +3 -3
  317. package/dist/components/spinner/index.d.ts.map +1 -1
  318. package/dist/components/spinner/index.js +1 -1
  319. package/dist/components/spinner/spinner.d.ts +8 -2
  320. package/dist/components/spinner/spinner.d.ts.map +1 -1
  321. package/dist/components/spinner/spinner.js +6 -3
  322. package/dist/components/stepper/index.d.ts +2 -2
  323. package/dist/components/stepper/index.d.ts.map +1 -1
  324. package/dist/components/stepper/index.js +1 -1
  325. package/dist/components/submit-button/index.d.ts +2 -2
  326. package/dist/components/submit-button/index.d.ts.map +1 -1
  327. package/dist/components/submit-button/index.js +1 -1
  328. package/dist/components/submit-button/submit-button.d.ts +1 -1
  329. package/dist/components/submit-button/submit-button.d.ts.map +1 -1
  330. package/dist/components/submit-button/submit-button.js +1 -1
  331. package/dist/components/tags-input/index.d.ts +2 -2
  332. package/dist/components/tags-input/index.d.ts.map +1 -1
  333. package/dist/components/tags-input/index.js +1 -1
  334. package/dist/components/tags-input/tags-input.d.ts +14 -1
  335. package/dist/components/tags-input/tags-input.d.ts.map +1 -1
  336. package/dist/components/tags-input/tags-input.js +7 -4
  337. package/dist/components/theme-image/index.d.ts +3 -0
  338. package/dist/components/theme-image/index.d.ts.map +1 -0
  339. package/dist/components/theme-image/index.js +1 -0
  340. package/dist/components/theme-image/theme-image.d.ts +25 -0
  341. package/dist/components/theme-image/theme-image.d.ts.map +1 -0
  342. package/dist/components/theme-image/theme-image.js +19 -0
  343. package/dist/components/timeline/index.d.ts +2 -2
  344. package/dist/components/timeline/index.d.ts.map +1 -1
  345. package/dist/components/timeline/index.js +1 -1
  346. package/dist/components/toggle-switch/index.d.ts +4 -0
  347. package/dist/components/toggle-switch/index.d.ts.map +1 -0
  348. package/dist/components/toggle-switch/index.js +1 -0
  349. package/dist/components/toggle-switch/toggle-switch.d.ts +37 -0
  350. package/dist/components/toggle-switch/toggle-switch.d.ts.map +1 -0
  351. package/dist/components/toggle-switch/toggle-switch.js +25 -0
  352. package/dist/components/toggle-switch/variants.d.ts +9 -0
  353. package/dist/components/toggle-switch/variants.d.ts.map +1 -0
  354. package/dist/components/toggle-switch/variants.js +30 -0
  355. package/dist/components/tree/index.d.ts +2 -2
  356. package/dist/components/tree/index.d.ts.map +1 -1
  357. package/dist/components/tree/index.js +1 -1
  358. package/dist/components/tree/tree.js +1 -1
  359. package/dist/globals.css +1509 -121
  360. package/dist/locale/UiLocaleProvider.d.ts +19 -0
  361. package/dist/locale/UiLocaleProvider.d.ts.map +1 -0
  362. package/dist/locale/UiLocaleProvider.js +17 -0
  363. package/dist/locale/index.d.ts +4 -0
  364. package/dist/locale/index.d.ts.map +1 -0
  365. package/dist/locale/index.js +3 -0
  366. package/dist/locale/locale.d.ts +15 -0
  367. package/dist/locale/locale.d.ts.map +1 -0
  368. package/dist/locale/locale.js +19 -0
  369. package/dist/locale/messages.d.ts +98 -0
  370. package/dist/locale/messages.d.ts.map +1 -0
  371. package/dist/locale/messages.js +99 -0
  372. package/package.json +34 -15
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/navbar/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,YAAY,EACV,oBAAoB,EACpB,qBAAqB,GACtB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/navbar/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,YAAY,EACV,oBAAoB,EACpB,qBAAqB,GACtB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC"}
@@ -1,2 +1,2 @@
1
- export { Navbar } from "./navbar";
2
- export { NavbarMobileMenu } from "./navbar-mobile-menu";
1
+ export { Navbar } from "./navbar.js";
2
+ export { NavbarMobileMenu } from "./navbar-mobile-menu.js";
@@ -1,4 +1,5 @@
1
1
  import type * as React from "react";
2
+ import { type UiLocale } from "../../locale/locale.js";
2
3
  export interface NavbarMobileMenuItem {
3
4
  label: React.ReactNode;
4
5
  href: string;
@@ -10,6 +11,11 @@ export interface NavbarMobileMenuProps {
10
11
  className?: string;
11
12
  /** Visible only below this breakpoint's prefix (Tailwind's `md` by default). @default "md" */
12
13
  hideFrom?: "sm" | "md" | "lg";
14
+ /**
15
+ * Language of the built-in labels — French by default, or the nearest
16
+ * `UiLocaleProvider`'s. Explicit text props still win.
17
+ */
18
+ locale?: UiLocale;
13
19
  }
14
20
  /**
15
21
  * A hamburger-triggered slide-down panel for a `Navbar`'s links on small
@@ -20,5 +26,5 @@ export interface NavbarMobileMenuProps {
20
26
  * @author Forth
21
27
  * @copyright 2026 Forth
22
28
  */
23
- export declare function NavbarMobileMenu({ items, footer, className, hideFrom, }: NavbarMobileMenuProps): React.JSX.Element;
29
+ export declare function NavbarMobileMenu({ items, footer, className, hideFrom, locale, }: NavbarMobileMenuProps): React.JSX.Element;
24
30
  //# sourceMappingURL=navbar-mobile-menu.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"navbar-mobile-menu.d.ts","sourceRoot":"","sources":["../../../src/components/navbar/navbar-mobile-menu.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAWpC,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,oBAAoB,EAAE,CAAC;IAC9B,kEAAkE;IAClE,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,8FAA8F;IAC9F,QAAQ,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;CAC/B;AAED;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,KAAK,EACL,MAAM,EACN,SAAS,EACT,QAAe,GAChB,EAAE,qBAAqB,qBAkCvB"}
1
+ {"version":3,"file":"navbar-mobile-menu.d.ts","sourceRoot":"","sources":["../../../src/components/navbar/navbar-mobile-menu.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAYpC,OAAO,EAAE,KAAK,QAAQ,EAAiB,MAAM,wBAAwB,CAAC;AAEtE,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,oBAAoB,EAAE,CAAC;IAC9B,kEAAkE;IAClE,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,8FAA8F;IAC9F,QAAQ,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC9B;;;OAGG;IACH,MAAM,CAAC,EAAE,QAAQ,CAAC;CACnB;AAED;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,KAAK,EACL,MAAM,EACN,SAAS,EACT,QAAe,EACf,MAAM,GACP,EAAE,qBAAqB,qBAoCvB"}
@@ -2,8 +2,9 @@
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { MenuIcon } from "lucide-react";
4
4
  import { Button } from "@forthtilliath/shadcn-ui/components/button";
5
- import { Sheet, SheetContent, SheetTrigger, } from "@forthtilliath/shadcn-ui/components/sheet";
5
+ import { Sheet, SheetContent, SheetTitle, SheetTrigger, } from "@forthtilliath/shadcn-ui/components/sheet";
6
6
  import { cn } from "@forthtilliath/shadcn-ui/lib/utils";
7
+ import { useUiMessages } from "../../locale/locale.js";
7
8
  /**
8
9
  * A hamburger-triggered slide-down panel for a `Navbar`'s links on small
9
10
  * screens — pairs with `Navbar`, consolidating aceternity's
@@ -13,6 +14,7 @@ import { cn } from "@forthtilliath/shadcn-ui/lib/utils";
13
14
  * @author Forth
14
15
  * @copyright 2026 Forth
15
16
  */
16
- export function NavbarMobileMenu({ items, footer, className, hideFrom = "md", }) {
17
- return (_jsxs(Sheet, { children: [_jsx(SheetTrigger, { asChild: true, children: _jsx(Button, { variant: "ghost", size: "icon", "aria-label": "Toggle menu", className: cn(hideFrom === "sm" && "sm:hidden", hideFrom === "md" && "md:hidden", hideFrom === "lg" && "lg:hidden", className), children: _jsx(MenuIcon, {}) }) }), _jsxs(SheetContent, { side: "top", children: [_jsx("nav", { className: "flex flex-col gap-1 pt-8", children: items.map((item) => (_jsx("a", { href: item.href, className: "hover:bg-accent hover:text-accent-foreground rounded-md px-3 py-2 text-sm", children: item.label }, item.href))) }), footer] })] }));
17
+ export function NavbarMobileMenu({ items, footer, className, hideFrom = "md", locale, }) {
18
+ const messages = useUiMessages(locale);
19
+ return (_jsxs(Sheet, { children: [_jsx(SheetTrigger, { asChild: true, children: _jsx(Button, { variant: "ghost", size: "icon", "aria-label": messages.navbar.toggleMenu, className: cn(hideFrom === "sm" && "sm:hidden", hideFrom === "md" && "md:hidden", hideFrom === "lg" && "lg:hidden", className), children: _jsx(MenuIcon, {}) }) }), _jsxs(SheetContent, { side: "top", children: [_jsx(SheetTitle, { className: "sr-only", children: messages.navbar.menu }), _jsx("nav", { className: "flex flex-col gap-1 pt-8", children: items.map((item) => (_jsx("a", { href: item.href, className: "hover:bg-accent hover:text-accent-foreground rounded-md px-3 py-2 text-sm", children: item.label }, item.href))) }), footer] })] }));
18
20
  }
@@ -1,3 +1,3 @@
1
- export type { NotificationCenterProps, NotificationItem, } from "./notification-center";
2
- export { NotificationCenter } from "./notification-center";
1
+ export type { NotificationCenterProps, NotificationItem, } from "./notification-center.js";
2
+ export { NotificationCenter } from "./notification-center.js";
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/notification-center/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,uBAAuB,EACvB,gBAAgB,GACjB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/notification-center/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,uBAAuB,EACvB,gBAAgB,GACjB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC"}
@@ -1 +1 @@
1
- export { NotificationCenter } from "./notification-center";
1
+ export { NotificationCenter } from "./notification-center.js";
@@ -1,4 +1,5 @@
1
1
  import type React from "react";
2
+ import { type UiLocale } from "../../locale/locale.js";
2
3
  export interface NotificationItem {
3
4
  id: string;
4
5
  title: React.ReactNode;
@@ -12,6 +13,11 @@ export interface NotificationCenterProps {
12
13
  onMarkAllRead?: () => void;
13
14
  emptyMessage?: string;
14
15
  className?: string;
16
+ /**
17
+ * Language of the built-in labels — French by default, or the nearest
18
+ * `UiLocaleProvider`'s. Explicit text props still win.
19
+ */
20
+ locale?: UiLocale;
15
21
  }
16
22
  /**
17
23
  * A bell-icon trigger with an unread-count badge, opening a popover list
@@ -24,5 +30,5 @@ export interface NotificationCenterProps {
24
30
  * @author Forth
25
31
  * @copyright 2026 Forth
26
32
  */
27
- export declare function NotificationCenter({ notifications, onNotificationClick, onMarkAllRead, emptyMessage, className, }: NotificationCenterProps): React.JSX.Element;
33
+ export declare function NotificationCenter({ notifications, onNotificationClick, onMarkAllRead, emptyMessage, className, locale, }: NotificationCenterProps): React.JSX.Element;
28
34
  //# sourceMappingURL=notification-center.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"notification-center.d.ts","sourceRoot":"","sources":["../../../src/components/notification-center/notification-center.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAa/B,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,WAAW,uBAAuB;IACtC,aAAa,EAAE,gBAAgB,EAAE,CAAC;IAClC,mBAAmB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,aAAa,EACb,mBAAmB,EACnB,aAAa,EACb,YAAiC,EACjC,SAAS,GACV,EAAE,uBAAuB,qBA2EzB"}
1
+ {"version":3,"file":"notification-center.d.ts","sourceRoot":"","sources":["../../../src/components/notification-center/notification-center.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAU/B,OAAO,EAAE,KAAK,QAAQ,EAAiB,MAAM,wBAAwB,CAAC;AAItE,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,WAAW,uBAAuB;IACtC,aAAa,EAAE,gBAAgB,EAAE,CAAC;IAClC,mBAAmB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,MAAM,CAAC,EAAE,QAAQ,CAAC;CACnB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,aAAa,EACb,mBAAmB,EACnB,aAAa,EACb,YAAY,EACZ,SAAS,EACT,MAAM,GACP,EAAE,uBAAuB,qBAmFzB"}
@@ -3,8 +3,9 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { BellIcon } from "lucide-react";
4
4
  import { Popover, PopoverContent, PopoverTrigger, } from "@forthtilliath/shadcn-ui/components/popover";
5
5
  import { cn } from "@forthtilliath/shadcn-ui/lib/utils";
6
- import { Badge } from "../badge";
7
- import { Button } from "../button";
6
+ import { useUiMessages } from "../../locale/locale.js";
7
+ import { Badge } from "../badge/index.js";
8
+ import { Button } from "../button/index.js";
8
9
  /**
9
10
  * A bell-icon trigger with an unread-count badge, opening a popover list
10
11
  * of notifications — a presentational shell only (no push/realtime
@@ -16,9 +17,11 @@ import { Button } from "../button";
16
17
  * @author Forth
17
18
  * @copyright 2026 Forth
18
19
  */
19
- export function NotificationCenter({ notifications, onNotificationClick, onMarkAllRead, emptyMessage = "No notifications", className, }) {
20
+ export function NotificationCenter({ notifications, onNotificationClick, onMarkAllRead, emptyMessage, className, locale, }) {
21
+ const messages = useUiMessages(locale);
22
+ const emptyMessageText = emptyMessage ?? messages.notificationCenter.empty;
20
23
  const unreadCount = notifications.filter((notification) => notification.read !== true).length;
21
- return (_jsxs(Popover, { children: [_jsx(PopoverTrigger, { asChild: true, children: _jsxs(Button, { variant: "ghost", size: "icon", className: "relative", "aria-label": "Notifications", children: [_jsx(BellIcon, {}), unreadCount > 0 && (_jsx(Badge, { variant: "destructive", size: "sm", className: "absolute -top-1 -right-1 size-4 justify-center rounded-full p-0", children: unreadCount > 9 ? "9+" : unreadCount }))] }) }), _jsxs(PopoverContent, { className: cn("w-80 p-0", className), align: "end", children: [_jsxs("div", { className: "flex items-center justify-between border-b p-3", children: [_jsx("p", { className: "text-sm font-medium", children: "Notifications" }), unreadCount > 0 && onMarkAllRead !== undefined && (_jsx("button", { type: "button", onClick: onMarkAllRead, className: "text-muted-foreground hover:text-foreground text-xs", children: "Mark all as read" }))] }), _jsx("div", { className: "max-h-80 overflow-y-auto", children: notifications.length === 0 ? (_jsx("p", { className: "text-muted-foreground p-6 text-center text-sm", children: emptyMessage })) : (notifications.map((notification) => (_jsxs("button", { type: "button", onClick: () => {
24
+ return (_jsxs(Popover, { children: [_jsx(PopoverTrigger, { asChild: true, children: _jsxs(Button, { variant: "ghost", size: "icon", className: "relative", "aria-label": messages.notificationCenter.title, children: [_jsx(BellIcon, {}), unreadCount > 0 && (_jsx(Badge, { variant: "destructive", size: "sm", className: "absolute -top-1 -right-1 size-4 justify-center rounded-full p-0", children: unreadCount > 9 ? "9+" : unreadCount }))] }) }), _jsxs(PopoverContent, { "aria-label": messages.notificationCenter.title, className: cn("w-80 p-0", className), align: "end", children: [_jsxs("div", { className: "flex items-center justify-between border-b p-3", children: [_jsx("p", { className: "text-sm font-medium", children: messages.notificationCenter.title }), unreadCount > 0 && onMarkAllRead !== undefined && (_jsx("button", { type: "button", onClick: onMarkAllRead, className: "text-muted-foreground hover:text-foreground text-xs", children: "Mark all as read" }))] }), _jsx("div", { className: "max-h-80 overflow-y-auto", children: notifications.length === 0 ? (_jsx("p", { className: "text-muted-foreground p-6 text-center text-sm", children: emptyMessageText })) : (notifications.map((notification) => (_jsxs("button", { type: "button", onClick: () => {
22
25
  onNotificationClick?.(notification.id);
23
26
  }, className: cn("hover:bg-accent flex w-full flex-col gap-0.5 border-b p-3 text-left last:border-0", notification.read !== true && "bg-accent/40"), children: [_jsx("p", { className: "text-sm font-medium", children: notification.title }), notification.description !== undefined && (_jsx("p", { className: "text-muted-foreground text-xs", children: notification.description })), notification.date !== undefined && (_jsx("p", { className: "text-muted-foreground text-xs", children: notification.date }))] }, notification.id)))) })] })] }));
24
27
  }
@@ -1,3 +1,3 @@
1
- export type { NumberInputProps } from "./number-input";
2
- export { NumberInput } from "./number-input";
1
+ export type { NumberInputProps } from "./number-input.js";
2
+ export { NumberInput } from "./number-input.js";
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/number-input/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/number-input/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC"}
@@ -1 +1 @@
1
- export { NumberInput } from "./number-input";
1
+ export { NumberInput } from "./number-input.js";
@@ -1,4 +1,5 @@
1
1
  import * as React from "react";
2
+ import { type UiLocale } from "../../locale/locale.js";
2
3
  export type NumberInputProps = Omit<React.ComponentProps<"input">, "type" | "value" | "defaultValue" | "onChange"> & {
3
4
  value?: number;
4
5
  defaultValue?: number;
@@ -6,6 +7,11 @@ export type NumberInputProps = Omit<React.ComponentProps<"input">, "type" | "val
6
7
  min?: number;
7
8
  max?: number;
8
9
  step?: number;
10
+ /**
11
+ * Language of the built-in labels — French by default, or the nearest
12
+ * `UiLocaleProvider`'s. Explicit text props still win.
13
+ */
14
+ locale?: UiLocale;
9
15
  };
10
16
  /**
11
17
  * A numeric input with increment/decrement stepper buttons, clamped to
@@ -18,5 +24,5 @@ export type NumberInputProps = Omit<React.ComponentProps<"input">, "type" | "val
18
24
  * @author Forth
19
25
  * @copyright 2026 Forth
20
26
  */
21
- export declare function NumberInput({ className, value, defaultValue, onValueChange, min, max, step, disabled, ...props }: NumberInputProps): React.JSX.Element;
27
+ export declare function NumberInput({ className, value, defaultValue, onValueChange, min, max, step, disabled, locale, ...props }: NumberInputProps): React.JSX.Element;
22
28
  //# sourceMappingURL=number-input.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"number-input.d.ts","sourceRoot":"","sources":["../../../src/components/number-input/number-input.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,MAAM,MAAM,gBAAgB,GAAG,IAAI,CACjC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,EAC7B,MAAM,GAAG,OAAO,GAAG,cAAc,GAAG,UAAU,CAC/C,GAAG;IACF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;;;;;;;;;GAUG;AACH,wBAAgB,WAAW,CAAC,EAC1B,SAAS,EACT,KAAK,EACL,YAAgB,EAChB,aAAa,EACb,GAAe,EACf,GAAc,EACd,IAAQ,EACR,QAAgB,EAChB,GAAG,KAAK,EACT,EAAE,gBAAgB,qBA6DlB"}
1
+ {"version":3,"file":"number-input.d.ts","sourceRoot":"","sources":["../../../src/components/number-input/number-input.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,EAAE,KAAK,QAAQ,EAAiB,MAAM,wBAAwB,CAAC;AAGtE,MAAM,MAAM,gBAAgB,GAAG,IAAI,CACjC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,EAC7B,MAAM,GAAG,OAAO,GAAG,cAAc,GAAG,UAAU,CAC/C,GAAG;IACF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,MAAM,CAAC,EAAE,QAAQ,CAAC;CACnB,CAAC;AAEF;;;;;;;;;;GAUG;AACH,wBAAgB,WAAW,CAAC,EAC1B,SAAS,EACT,KAAK,EACL,YAAgB,EAChB,aAAa,EACb,GAAe,EACf,GAAc,EACd,IAAQ,EACR,QAAgB,EAChB,MAAM,EACN,GAAG,KAAK,EACT,EAAE,gBAAgB,qBA8DlB"}
@@ -4,7 +4,8 @@ import * as React from "react";
4
4
  import { MinusIcon, PlusIcon } from "lucide-react";
5
5
  import { Input } from "@forthtilliath/shadcn-ui/components/input";
6
6
  import { cn } from "@forthtilliath/shadcn-ui/lib/utils";
7
- import { Button } from "../button";
7
+ import { useUiMessages } from "../../locale/locale.js";
8
+ import { Button } from "../button/index.js";
8
9
  /**
9
10
  * A numeric input with increment/decrement stepper buttons, clamped to
10
11
  * `min`/`max`.
@@ -16,7 +17,8 @@ import { Button } from "../button";
16
17
  * @author Forth
17
18
  * @copyright 2026 Forth
18
19
  */
19
- export function NumberInput({ className, value, defaultValue = 0, onValueChange, min = -Infinity, max = Infinity, step = 1, disabled = false, ...props }) {
20
+ export function NumberInput({ className, value, defaultValue = 0, onValueChange, min = -Infinity, max = Infinity, step = 1, disabled = false, locale, ...props }) {
21
+ const messages = useUiMessages(locale);
20
22
  const [uncontrolledValue, setUncontrolledValue] = React.useState(defaultValue);
21
23
  const current = value ?? uncontrolledValue;
22
24
  function commit(next) {
@@ -26,12 +28,12 @@ export function NumberInput({ className, value, defaultValue = 0, onValueChange,
26
28
  }
27
29
  return (_jsxs("div", { "data-slot": "number-input", className: cn("flex w-fit items-stretch", className), children: [_jsx(Button, { type: "button", variant: "outline", size: "icon", disabled: disabled || current <= min, onClick: () => {
28
30
  commit(current - step);
29
- }, "aria-label": "Decrement", className: "rounded-r-none", children: _jsx(MinusIcon, {}) }), _jsx(Input, { type: "number", inputMode: "numeric", value: current, min: min === -Infinity ? undefined : min, max: max === Infinity ? undefined : max, step: step, disabled: disabled, onChange: (e) => {
31
+ }, "aria-label": messages.numberInput.decrement, className: "rounded-r-none", children: _jsx(MinusIcon, {}) }), _jsx(Input, { type: "number", inputMode: "numeric", value: current, min: min === -Infinity ? undefined : min, max: max === Infinity ? undefined : max, step: step, disabled: disabled, onChange: (e) => {
30
32
  const parsed = Number(e.target.value);
31
33
  if (!Number.isNaN(parsed)) {
32
34
  commit(parsed);
33
35
  }
34
36
  }, className: "w-16 rounded-none text-center [appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none", ...props }), _jsx(Button, { type: "button", variant: "outline", size: "icon", disabled: disabled || current >= max, onClick: () => {
35
37
  commit(current + step);
36
- }, "aria-label": "Increment", className: "rounded-l-none", children: _jsx(PlusIcon, {}) })] }));
38
+ }, "aria-label": messages.numberInput.increment, className: "rounded-l-none", children: _jsx(PlusIcon, {}) })] }));
37
39
  }
@@ -1,5 +1,5 @@
1
- export type { PaginationProps } from "./pagination";
2
- export { Pagination } from "./pagination";
3
- export type { PaginationRangeItem, PaginationRangeOptions, } from "./pagination-range";
4
- export { getPaginationRange } from "./pagination-range";
1
+ export type { PaginationProps } from "./pagination.js";
2
+ export { Pagination } from "./pagination.js";
3
+ export type { PaginationRangeItem, PaginationRangeOptions, } from "./pagination-range.js";
4
+ export { getPaginationRange } from "./pagination-range.js";
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/pagination/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EACV,mBAAmB,EACnB,sBAAsB,GACvB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/pagination/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,YAAY,EACV,mBAAmB,EACnB,sBAAsB,GACvB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC"}
@@ -1,2 +1,2 @@
1
- export { Pagination } from "./pagination";
2
- export { getPaginationRange } from "./pagination-range";
1
+ export { Pagination } from "./pagination.js";
2
+ export { getPaginationRange } from "./pagination-range.js";
@@ -1,4 +1,5 @@
1
- import type { PaginationRangeOptions } from "./pagination-range";
1
+ import { type UiLocale } from "../../locale/locale.js";
2
+ import type { PaginationRangeOptions } from "./pagination-range.js";
2
3
  export type PaginationProps = Omit<PaginationRangeOptions, "page"> & {
3
4
  /** The current page, 1-indexed. */
4
5
  page: number;
@@ -7,6 +8,11 @@ export type PaginationProps = Omit<PaginationRangeOptions, "page"> & {
7
8
  showFirstLast?: boolean;
8
9
  disabled?: boolean;
9
10
  className?: string;
11
+ /**
12
+ * Language of the built-in labels — French by default, or the nearest
13
+ * `UiLocaleProvider`'s. Explicit text props still win.
14
+ */
15
+ locale?: UiLocale;
10
16
  };
11
17
  /**
12
18
  * Navigates between pages of a paginated set, computing the visible page
@@ -22,5 +28,5 @@ export type PaginationProps = Omit<PaginationRangeOptions, "page"> & {
22
28
  * @author Forth
23
29
  * @copyright 2026 Forth
24
30
  */
25
- export declare function Pagination({ page, totalPages, siblingCount, boundaryCount, onPageChange, showFirstLast, disabled, className, }: PaginationProps): import("react").JSX.Element;
31
+ export declare function Pagination({ page, totalPages, siblingCount, boundaryCount, onPageChange, showFirstLast, disabled, className, locale, }: PaginationProps): import("react").JSX.Element;
26
32
  //# sourceMappingURL=pagination.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../../src/components/pagination/pagination.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAGjE,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,sBAAsB,EAAE,MAAM,CAAC,GAAG;IACnE,mCAAmC;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,6EAA6E;IAC7E,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,wBAAgB,UAAU,CAAC,EACzB,IAAI,EACJ,UAAU,EACV,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,aAAqB,EACrB,QAAgB,EAChB,SAAS,GACV,EAAE,eAAe,+BAyGjB"}
1
+ {"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../../src/components/pagination/pagination.tsx"],"names":[],"mappings":"AAkBA,OAAO,EAAE,KAAK,QAAQ,EAAiB,MAAM,wBAAwB,CAAC;AAEtE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAGpE,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,sBAAsB,EAAE,MAAM,CAAC,GAAG;IACnE,mCAAmC;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,6EAA6E;IAC7E,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,MAAM,CAAC,EAAE,QAAQ,CAAC;CACnB,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,wBAAgB,UAAU,CAAC,EACzB,IAAI,EACJ,UAAU,EACV,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,aAAqB,EACrB,QAAgB,EAChB,SAAS,EACT,MAAM,GACP,EAAE,eAAe,+BA0HjB"}
@@ -1,8 +1,10 @@
1
+ "use client";
1
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { ChevronsLeftIcon, ChevronsRightIcon } from "lucide-react";
3
- import { Pagination as PaginationPrimitive, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, } from "@forthtilliath/shadcn-ui/components/pagination";
3
+ import { ChevronLeftIcon, ChevronRightIcon, ChevronsLeftIcon, ChevronsRightIcon, } from "lucide-react";
4
+ import { Pagination as PaginationPrimitive, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, } from "@forthtilliath/shadcn-ui/components/pagination";
4
5
  import { cn } from "@forthtilliath/shadcn-ui/lib/utils";
5
- import { getPaginationRange } from "./pagination-range";
6
+ import { useUiMessages } from "../../locale/locale.js";
7
+ import { getPaginationRange } from "./pagination-range.js";
6
8
  /**
7
9
  * Navigates between pages of a paginated set, computing the visible page
8
10
  * numbers and ellipses itself from `page`/`totalPages` — shadcn-ui's own
@@ -17,7 +19,8 @@ import { getPaginationRange } from "./pagination-range";
17
19
  * @author Forth
18
20
  * @copyright 2026 Forth
19
21
  */
20
- export function Pagination({ page, totalPages, siblingCount, boundaryCount, onPageChange, showFirstLast = false, disabled = false, className, }) {
22
+ export function Pagination({ page, totalPages, siblingCount, boundaryCount, onPageChange, showFirstLast = false, disabled = false, className, locale, }) {
23
+ const messages = useUiMessages(locale);
21
24
  const items = getPaginationRange({
22
25
  page,
23
26
  totalPages,
@@ -29,19 +32,19 @@ export function Pagination({ page, totalPages, siblingCount, boundaryCount, onPa
29
32
  onPageChange(target);
30
33
  }
31
34
  }
32
- return (_jsx(PaginationPrimitive, { "data-slot": "pagination-root", className: cn(disabled && "pointer-events-none opacity-50", className), children: _jsxs(PaginationContent, { children: [showFirstLast && (_jsx(PaginationItem, { children: _jsx(PaginationLink, { href: "#", "aria-label": "Go to first page", size: "icon", "aria-disabled": page <= 1, className: cn(page <= 1 && "pointer-events-none opacity-50"), onClick: (e) => {
35
+ return (_jsx(PaginationPrimitive, { "data-slot": "pagination-root", className: cn(disabled && "pointer-events-none opacity-50", className), children: _jsxs(PaginationContent, { children: [showFirstLast && (_jsx(PaginationItem, { children: _jsx(PaginationLink, { href: "#", "aria-label": messages.pagination.first, size: "icon", "aria-disabled": page <= 1, className: cn(page <= 1 && "pointer-events-none opacity-50"), onClick: (e) => {
33
36
  e.preventDefault();
34
37
  goTo(1);
35
- }, children: _jsx(ChevronsLeftIcon, {}) }) })), _jsx(PaginationItem, { children: _jsx(PaginationPrevious, { href: "#", "aria-disabled": page <= 1, className: cn(page <= 1 && "pointer-events-none opacity-50"), onClick: (e) => {
38
+ }, children: _jsx(ChevronsLeftIcon, {}) }) })), _jsx(PaginationItem, { children: _jsxs(PaginationLink, { href: "#", "aria-label": messages.pagination.previousLabel, size: "default", "aria-disabled": page <= 1, className: cn("gap-1 px-2.5 sm:pl-2.5", page <= 1 && "pointer-events-none opacity-50"), onClick: (e) => {
36
39
  e.preventDefault();
37
40
  goTo(page - 1);
38
- } }) }), items.map((item) => item === "ellipsis-start" || item === "ellipsis-end" ? (_jsx(PaginationItem, { children: _jsx(PaginationEllipsis, {}) }, item)) : (_jsx(PaginationItem, { children: _jsx(PaginationLink, { href: "#", isActive: item === page, onClick: (e) => {
41
+ }, children: [_jsx(ChevronLeftIcon, {}), _jsx("span", { className: "hidden sm:block", children: messages.pagination.previous })] }) }), items.map((item) => item === "ellipsis-start" || item === "ellipsis-end" ? (_jsx(PaginationItem, { children: _jsx(PaginationEllipsis, {}) }, item)) : (_jsx(PaginationItem, { children: _jsx(PaginationLink, { href: "#", isActive: item === page, onClick: (e) => {
39
42
  e.preventDefault();
40
43
  goTo(item);
41
- }, children: item }) }, item))), _jsx(PaginationItem, { children: _jsx(PaginationNext, { href: "#", "aria-disabled": page >= totalPages, className: cn(page >= totalPages && "pointer-events-none opacity-50"), onClick: (e) => {
44
+ }, children: item }) }, item))), _jsx(PaginationItem, { children: _jsxs(PaginationLink, { href: "#", "aria-label": messages.pagination.nextLabel, size: "default", "aria-disabled": page >= totalPages, className: cn("gap-1 px-2.5 sm:pr-2.5", page >= totalPages && "pointer-events-none opacity-50"), onClick: (e) => {
42
45
  e.preventDefault();
43
46
  goTo(page + 1);
44
- } }) }), showFirstLast && (_jsx(PaginationItem, { children: _jsx(PaginationLink, { href: "#", "aria-label": "Go to last page", size: "icon", "aria-disabled": page >= totalPages, className: cn(page >= totalPages && "pointer-events-none opacity-50"), onClick: (e) => {
47
+ }, children: [_jsx("span", { className: "hidden sm:block", children: messages.pagination.next }), _jsx(ChevronRightIcon, {})] }) }), showFirstLast && (_jsx(PaginationItem, { children: _jsx(PaginationLink, { href: "#", "aria-label": messages.pagination.last, size: "icon", "aria-disabled": page >= totalPages, className: cn(page >= totalPages && "pointer-events-none opacity-50"), onClick: (e) => {
45
48
  e.preventDefault();
46
49
  goTo(totalPages);
47
50
  }, children: _jsx(ChevronsRightIcon, {}) }) }))] }) }));
@@ -1,5 +1,5 @@
1
- export type { PasswordInputProps } from "./password-input";
2
- export { PasswordInput } from "./password-input";
3
- export type { PasswordStrengthMeterProps } from "./password-strength-meter";
4
- export { PasswordStrengthMeter } from "./password-strength-meter";
1
+ export type { PasswordInputProps } from "./password-input.js";
2
+ export { PasswordInput } from "./password-input.js";
3
+ export type { PasswordStrengthMeterProps } from "./password-strength-meter.js";
4
+ export { PasswordStrengthMeter } from "./password-strength-meter.js";
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/password-input/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,YAAY,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AAC5E,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/password-input/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,YAAY,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC/E,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC"}
@@ -1,2 +1,2 @@
1
- export { PasswordInput } from "./password-input";
2
- export { PasswordStrengthMeter } from "./password-strength-meter";
1
+ export { PasswordInput } from "./password-input.js";
2
+ export { PasswordStrengthMeter } from "./password-strength-meter.js";
@@ -1,5 +1,12 @@
1
1
  import * as React from "react";
2
- export type PasswordInputProps = Omit<React.ComponentProps<"input">, "type">;
2
+ import { type UiLocale } from "../../locale/locale.js";
3
+ export type PasswordInputProps = Omit<React.ComponentProps<"input">, "type"> & {
4
+ /**
5
+ * Language of the built-in labels — French by default, or the nearest
6
+ * `UiLocaleProvider`'s. Explicit text props still win.
7
+ */
8
+ locale?: UiLocale;
9
+ };
3
10
  /**
4
11
  * A password `Input` with a show/hide visibility toggle.
5
12
  *
@@ -11,5 +18,5 @@ export type PasswordInputProps = Omit<React.ComponentProps<"input">, "type">;
11
18
  * @author Forth
12
19
  * @copyright 2026 Forth
13
20
  */
14
- export declare function PasswordInput({ className, ...props }: PasswordInputProps): React.JSX.Element;
21
+ export declare function PasswordInput({ className, locale, ...props }: PasswordInputProps): React.JSX.Element;
15
22
  //# sourceMappingURL=password-input.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"password-input.d.ts","sourceRoot":"","sources":["../../../src/components/password-input/password-input.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,CAAC;AAE7E;;;;;;;;;;GAUG;AACH,wBAAgB,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,qBA0BxE"}
1
+ {"version":3,"file":"password-input.d.ts","sourceRoot":"","sources":["../../../src/components/password-input/password-input.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,EAAE,KAAK,QAAQ,EAAiB,MAAM,wBAAwB,CAAC;AAEtE,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,GAAG;IAC7E;;;OAGG;IACH,MAAM,CAAC,EAAE,QAAQ,CAAC;CACnB,CAAC;AAEF;;;;;;;;;;GAUG;AACH,wBAAgB,aAAa,CAAC,EAC5B,SAAS,EACT,MAAM,EACN,GAAG,KAAK,EACT,EAAE,kBAAkB,qBA6BpB"}
@@ -4,6 +4,7 @@ import * as React from "react";
4
4
  import { EyeIcon, EyeOffIcon } from "lucide-react";
5
5
  import { Input } from "@forthtilliath/shadcn-ui/components/input";
6
6
  import { cn } from "@forthtilliath/shadcn-ui/lib/utils";
7
+ import { useUiMessages } from "../../locale/locale.js";
7
8
  /**
8
9
  * A password `Input` with a show/hide visibility toggle.
9
10
  *
@@ -15,9 +16,10 @@ import { cn } from "@forthtilliath/shadcn-ui/lib/utils";
15
16
  * @author Forth
16
17
  * @copyright 2026 Forth
17
18
  */
18
- export function PasswordInput({ className, ...props }) {
19
+ export function PasswordInput({ className, locale, ...props }) {
20
+ const messages = useUiMessages(locale);
19
21
  const [visible, setVisible] = React.useState(false);
20
22
  return (_jsxs("div", { className: cn("relative", className), children: [_jsx(Input, { type: visible ? "text" : "password", className: "w-full pr-9", ...props }), _jsx("button", { type: "button", onClick: () => {
21
23
  setVisible((prev) => !prev);
22
- }, "aria-label": visible ? "Hide password" : "Show password", className: "text-muted-foreground hover:text-foreground absolute inset-y-0 right-0 flex items-center px-3", children: visible ? (_jsx(EyeOffIcon, { className: "size-4" })) : (_jsx(EyeIcon, { className: "size-4" })) })] }));
24
+ }, "aria-label": visible ? messages.passwordInput.hide : messages.passwordInput.show, className: "text-muted-foreground hover:text-foreground absolute inset-y-0 right-0 flex items-center px-3", children: visible ? (_jsx(EyeOffIcon, { className: "size-4" })) : (_jsx(EyeIcon, { className: "size-4" })) })] }));
23
25
  }
@@ -1,4 +1,4 @@
1
- export type { ProgressProps } from "./progress";
2
- export { Progress } from "./progress";
3
- export type { ProgressVariants } from "./variants";
1
+ export type { ProgressProps } from "./progress.js";
2
+ export { Progress } from "./progress.js";
3
+ export type { ProgressVariants } from "./variants.js";
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/progress/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/progress/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC"}
@@ -1 +1 @@
1
- export { Progress } from "./progress";
1
+ export { Progress } from "./progress.js";
@@ -1,8 +1,11 @@
1
1
  import type React from "react";
2
2
  import { Progress as ProgressPrimitive } from "@forthtilliath/shadcn-ui/components/progress";
3
- import type { ProgressVariants } from "./variants";
3
+ import type { ProgressVariants } from "./variants.js";
4
4
  export type ProgressProps = React.ComponentProps<typeof ProgressPrimitive> & ProgressVariants & {
5
- /** A label rendered above the bar, on the left. */
5
+ /**
6
+ * A label rendered above the bar, on the left — also the bar's
7
+ * accessible name. Without one, pass an `aria-label`.
8
+ */
6
9
  label?: React.ReactNode;
7
10
  /**
8
11
  * Shows the numeric `value` (rounded, with a `%` suffix) above the bar,
@@ -1 +1 @@
1
- {"version":3,"file":"progress.d.ts","sourceRoot":"","sources":["../../../src/components/progress/progress.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AAG7F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAGnD,MAAM,MAAM,aAAa,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,iBAAiB,CAAC,GACxE,gBAAgB,GAAG;IACjB,mDAAmD;IACnD,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEJ;;;;;;;;;;GAUG;AACH,wBAAgB,QAAQ,CAAC,EACvB,SAAS,EACT,OAAO,EACP,IAAI,EACJ,KAAK,EACL,SAAiB,EACjB,KAAK,EACL,GAAG,KAAK,EACT,EAAE,aAAa,qBA8Bf"}
1
+ {"version":3,"file":"progress.d.ts","sourceRoot":"","sources":["../../../src/components/progress/progress.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AAG7F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAGtD,MAAM,MAAM,aAAa,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,iBAAiB,CAAC,GACxE,gBAAgB,GAAG;IACjB;;;OAGG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEJ;;;;;;;;;;GAUG;AACH,wBAAgB,QAAQ,CAAC,EACvB,SAAS,EACT,OAAO,EACP,IAAI,EACJ,KAAK,EACL,SAAiB,EACjB,KAAK,EACL,GAAG,KAAK,EACT,EAAE,aAAa,qBAgCf"}
@@ -1,7 +1,8 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useId } from "react";
2
3
  import { Progress as ProgressPrimitive } from "@forthtilliath/shadcn-ui/components/progress";
3
4
  import { cn } from "@forthtilliath/shadcn-ui/lib/utils";
4
- import { progressVariants } from "./variants";
5
+ import { progressVariants } from "./variants.js";
5
6
  /**
6
7
  * Displays an indicator showing the completion progress of a task.
7
8
  *
@@ -14,10 +15,11 @@ import { progressVariants } from "./variants";
14
15
  * @copyright 2026 Forth
15
16
  */
16
17
  export function Progress({ className, variant, size, label, showValue = false, value, ...props }) {
17
- const bar = (_jsx(ProgressPrimitive, { className: cn(progressVariants({ variant, size }), className), value: value, ...props }));
18
+ const labelId = useId();
18
19
  const hasLabel = label !== undefined && label !== null;
20
+ const bar = (_jsx(ProgressPrimitive, { className: cn(progressVariants({ variant, size }), className), value: value, "aria-labelledby": hasLabel ? labelId : undefined, ...props }));
19
21
  if (!hasLabel && !showValue) {
20
22
  return bar;
21
23
  }
22
- return (_jsxs("div", { className: "w-full space-y-1.5", children: [(hasLabel || showValue) && (_jsxs("div", { className: "flex items-center justify-between text-sm", children: [hasLabel && _jsx("span", { children: label }), showValue && (_jsxs("span", { className: "text-muted-foreground tabular-nums", children: [Math.round(value ?? 0), "%"] }))] })), bar] }));
24
+ return (_jsxs("div", { className: "w-full space-y-1.5", children: [(hasLabel || showValue) && (_jsxs("div", { className: "flex items-center justify-between text-sm", children: [hasLabel && _jsx("span", { id: labelId, children: label }), showValue && (_jsxs("span", { className: "text-muted-foreground tabular-nums", children: [Math.round(value ?? 0), "%"] }))] })), bar] }));
23
25
  }
@@ -1,3 +1,3 @@
1
- export type { QrCodeProps } from "./qr-code";
2
- export { QrCode } from "./qr-code";
1
+ export type { QrCodeProps } from "./qr-code.js";
2
+ export { QrCode } from "./qr-code.js";
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/qr-code/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/qr-code/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC"}
@@ -1 +1 @@
1
- export { QrCode } from "./qr-code";
1
+ export { QrCode } from "./qr-code.js";
@@ -1,4 +1,5 @@
1
1
  import type React from "react";
2
+ import { type UiLocale } from "../../locale/locale.js";
2
3
  export interface QrCodeProps extends Omit<React.SVGProps<SVGSVGElement>, "viewBox"> {
3
4
  /** The data to encode. */
4
5
  value: string;
@@ -12,6 +13,11 @@ export interface QrCodeProps extends Omit<React.SVGProps<SVGSVGElement>, "viewBo
12
13
  foreground?: string;
13
14
  /** @default "transparent" */
14
15
  background?: string;
16
+ /**
17
+ * Language of the built-in labels — French by default, or the nearest
18
+ * `UiLocaleProvider`'s. Explicit text props still win.
19
+ */
20
+ locale?: UiLocale;
15
21
  }
16
22
  /**
17
23
  * Generates a QR code from a string, rendered as SVG (no canvas — works in
@@ -24,5 +30,5 @@ export interface QrCodeProps extends Omit<React.SVGProps<SVGSVGElement>, "viewBo
24
30
  * @author Forth
25
31
  * @copyright 2026 Forth
26
32
  */
27
- export declare function QrCode({ value, robustness, foreground, background, className, ...props }: QrCodeProps): React.JSX.Element;
33
+ export declare function QrCode({ value, robustness, foreground, background, className, locale, ...props }: QrCodeProps): React.JSX.Element;
28
34
  //# sourceMappingURL=qr-code.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"qr-code.d.ts","sourceRoot":"","sources":["../../../src/components/qr-code/qr-code.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,MAAM,WAAW,WAAY,SAAQ,IAAI,CACvC,KAAK,CAAC,QAAQ,CAAC,aAAa,CAAC,EAC7B,SAAS,CACV;IACC,0BAA0B;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,UAAU,CAAC,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;IACnC,8BAA8B;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,6BAA6B;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,MAAM,CAAC,EACrB,KAAK,EACL,UAAgB,EAChB,UAA2B,EAC3B,UAA0B,EAC1B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,WAAW,qBAiCb"}
1
+ {"version":3,"file":"qr-code.d.ts","sourceRoot":"","sources":["../../../src/components/qr-code/qr-code.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAAE,KAAK,QAAQ,EAAiB,MAAM,wBAAwB,CAAC;AAEtE,MAAM,WAAW,WAAY,SAAQ,IAAI,CACvC,KAAK,CAAC,QAAQ,CAAC,aAAa,CAAC,EAC7B,SAAS,CACV;IACC,0BAA0B;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,UAAU,CAAC,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;IACnC,8BAA8B;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,6BAA6B;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,MAAM,CAAC,EAAE,QAAQ,CAAC;CACnB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,MAAM,CAAC,EACrB,KAAK,EACL,UAAgB,EAChB,UAA2B,EAC3B,UAA0B,EAC1B,SAAS,EACT,MAAM,EACN,GAAG,KAAK,EACT,EAAE,WAAW,qBAkCb"}
@@ -1,6 +1,8 @@
1
+ "use client";
1
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
3
  import { create } from "qrcode";
3
4
  import { cn } from "@forthtilliath/shadcn-ui/lib/utils";
5
+ import { useUiMessages } from "../../locale/locale.js";
4
6
  /**
5
7
  * Generates a QR code from a string, rendered as SVG (no canvas — works in
6
8
  * Server Components too).
@@ -12,7 +14,8 @@ import { cn } from "@forthtilliath/shadcn-ui/lib/utils";
12
14
  * @author Forth
13
15
  * @copyright 2026 Forth
14
16
  */
15
- export function QrCode({ value, robustness = "M", foreground = "currentColor", background = "transparent", className, ...props }) {
17
+ export function QrCode({ value, robustness = "M", foreground = "currentColor", background = "transparent", className, locale, ...props }) {
18
+ const messages = useUiMessages(locale);
16
19
  const { modules } = create(value, { errorCorrectionLevel: robustness });
17
20
  const size = modules.size;
18
21
  const cells = [];
@@ -23,5 +26,5 @@ export function QrCode({ value, robustness = "M", foreground = "currentColor", b
23
26
  }
24
27
  }
25
28
  }
26
- return (_jsxs("svg", { viewBox: `0 0 ${size.toString()} ${size.toString()}`, role: "img", "aria-label": `QR code encoding: ${value}`, className: cn("size-32", className), ...props, children: [_jsx("rect", { width: size, height: size, fill: background }), _jsx("g", { fill: foreground, children: cells })] }));
29
+ return (_jsxs("svg", { viewBox: `0 0 ${size.toString()} ${size.toString()}`, role: "img", "aria-label": messages.qrCode.label(value), className: cn("size-32", className), ...props, children: [_jsx("rect", { width: size, height: size, fill: background }), _jsx("g", { fill: foreground, children: cells })] }));
27
30
  }
@@ -1,3 +1,3 @@
1
- export type { RadioCardProps } from "./radio-card";
2
- export { RadioCard } from "./radio-card";
1
+ export type { RadioCardProps } from "./radio-card.js";
2
+ export { RadioCard } from "./radio-card.js";
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/radio/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/radio/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC"}
@@ -1 +1 @@
1
- export { RadioCard } from "./radio-card";
1
+ export { RadioCard } from "./radio-card.js";
@@ -1,3 +1,3 @@
1
- export type { RatingProps } from "./rating";
2
- export { Rating } from "./rating";
1
+ export type { RatingProps } from "./rating.js";
2
+ export { Rating } from "./rating.js";
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/rating/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/rating/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC"}