@handijitcom/ui 0.0.0-stage → 1.0.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 (878) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +1023 -2
  3. package/build/base.css +1 -0
  4. package/build/calendar.cjs +2 -0
  5. package/build/calendar.cjs.map +1 -0
  6. package/build/calendar.css +1 -0
  7. package/build/calendar.js +741 -0
  8. package/build/calendar.js.map +1 -0
  9. package/build/charts.cjs +2 -0
  10. package/build/charts.cjs.map +1 -0
  11. package/build/charts.css +1 -0
  12. package/build/charts.js +1866 -0
  13. package/build/charts.js.map +1 -0
  14. package/build/chat.cjs +4 -0
  15. package/build/chat.cjs.map +1 -0
  16. package/build/chat.css +1 -0
  17. package/build/chat.js +1126 -0
  18. package/build/chat.js.map +1 -0
  19. package/build/components/Accordion/index.cjs +2 -0
  20. package/build/components/Accordion/index.cjs.map +1 -0
  21. package/build/components/Accordion/index.d.cts +29 -0
  22. package/build/components/Accordion/index.d.ts +29 -0
  23. package/build/components/Accordion/index.js +42 -0
  24. package/build/components/Accordion/index.js.map +1 -0
  25. package/build/components/Accordion/style.css +1 -0
  26. package/build/components/Alert/index.cjs +2 -0
  27. package/build/components/Alert/index.cjs.map +1 -0
  28. package/build/components/Alert/index.d.cts +15 -0
  29. package/build/components/Alert/index.d.ts +15 -0
  30. package/build/components/Alert/index.js +32 -0
  31. package/build/components/Alert/index.js.map +1 -0
  32. package/build/components/Alert/style.css +1 -0
  33. package/build/components/Avatar/index.cjs +2 -0
  34. package/build/components/Avatar/index.cjs.map +1 -0
  35. package/build/components/Avatar/index.d.cts +26 -0
  36. package/build/components/Avatar/index.d.ts +26 -0
  37. package/build/components/Avatar/index.js +57 -0
  38. package/build/components/Avatar/index.js.map +1 -0
  39. package/build/components/Avatar/style.css +1 -0
  40. package/build/components/Badge/index.cjs +2 -0
  41. package/build/components/Badge/index.cjs.map +1 -0
  42. package/build/components/Badge/index.d.cts +21 -0
  43. package/build/components/Badge/index.d.ts +21 -0
  44. package/build/components/Badge/index.js +26 -0
  45. package/build/components/Badge/index.js.map +1 -0
  46. package/build/components/Badge/style.css +1 -0
  47. package/build/components/BottomSheet/index.cjs +2 -0
  48. package/build/components/BottomSheet/index.cjs.map +1 -0
  49. package/build/components/BottomSheet/index.d.cts +21 -0
  50. package/build/components/BottomSheet/index.d.ts +21 -0
  51. package/build/components/BottomSheet/index.js +85 -0
  52. package/build/components/BottomSheet/index.js.map +1 -0
  53. package/build/components/BottomSheet/style.css +1 -0
  54. package/build/components/Breadcrumb/index.cjs +2 -0
  55. package/build/components/Breadcrumb/index.cjs.map +1 -0
  56. package/build/components/Breadcrumb/index.d.cts +20 -0
  57. package/build/components/Breadcrumb/index.d.ts +20 -0
  58. package/build/components/Breadcrumb/index.js +31 -0
  59. package/build/components/Breadcrumb/index.js.map +1 -0
  60. package/build/components/Breadcrumb/style.css +1 -0
  61. package/build/components/Button/index.cjs +2 -0
  62. package/build/components/Button/index.cjs.map +1 -0
  63. package/build/components/Button/index.d.cts +32 -0
  64. package/build/components/Button/index.d.ts +32 -0
  65. package/build/components/Button/index.js +88 -0
  66. package/build/components/Button/index.js.map +1 -0
  67. package/build/components/Button/style.css +1 -0
  68. package/build/components/Card/index.cjs +2 -0
  69. package/build/components/Card/index.cjs.map +1 -0
  70. package/build/components/Card/index.d.cts +51 -0
  71. package/build/components/Card/index.d.ts +51 -0
  72. package/build/components/Card/index.js +58 -0
  73. package/build/components/Card/index.js.map +1 -0
  74. package/build/components/Card/style.css +1 -0
  75. package/build/components/Carousel/index.cjs +2 -0
  76. package/build/components/Carousel/index.cjs.map +1 -0
  77. package/build/components/Carousel/index.d.cts +24 -0
  78. package/build/components/Carousel/index.d.ts +24 -0
  79. package/build/components/Carousel/index.js +111 -0
  80. package/build/components/Carousel/index.js.map +1 -0
  81. package/build/components/Carousel/style.css +1 -0
  82. package/build/components/Checkbox/index.cjs +2 -0
  83. package/build/components/Checkbox/index.cjs.map +1 -0
  84. package/build/components/Checkbox/index.d.cts +15 -0
  85. package/build/components/Checkbox/index.d.ts +15 -0
  86. package/build/components/Checkbox/index.js +50 -0
  87. package/build/components/Checkbox/index.js.map +1 -0
  88. package/build/components/Checkbox/style.css +1 -0
  89. package/build/components/Chip/index.cjs +2 -0
  90. package/build/components/Chip/index.cjs.map +1 -0
  91. package/build/components/Chip/index.d.cts +27 -0
  92. package/build/components/Chip/index.d.ts +27 -0
  93. package/build/components/Chip/index.js +67 -0
  94. package/build/components/Chip/index.js.map +1 -0
  95. package/build/components/Chip/style.css +1 -0
  96. package/build/components/ChipGroup/index.cjs +2 -0
  97. package/build/components/ChipGroup/index.cjs.map +1 -0
  98. package/build/components/ChipGroup/index.d.cts +53 -0
  99. package/build/components/ChipGroup/index.d.ts +53 -0
  100. package/build/components/ChipGroup/index.js +81 -0
  101. package/build/components/ChipGroup/index.js.map +1 -0
  102. package/build/components/ChipGroup/style.css +1 -0
  103. package/build/components/CodeBadge/index.cjs +2 -0
  104. package/build/components/CodeBadge/index.cjs.map +1 -0
  105. package/build/components/CodeBadge/index.d.cts +36 -0
  106. package/build/components/CodeBadge/index.d.ts +36 -0
  107. package/build/components/CodeBadge/index.js +62 -0
  108. package/build/components/CodeBadge/index.js.map +1 -0
  109. package/build/components/CodeBadge/style.css +1 -0
  110. package/build/components/Combobox/index.cjs +2 -0
  111. package/build/components/Combobox/index.cjs.map +1 -0
  112. package/build/components/Combobox/index.d.cts +8 -0
  113. package/build/components/Combobox/index.d.ts +8 -0
  114. package/build/components/Combobox/index.js +332 -0
  115. package/build/components/Combobox/index.js.map +1 -0
  116. package/build/components/Combobox/style.css +1 -0
  117. package/build/components/CommandPalette/index.cjs +2 -0
  118. package/build/components/CommandPalette/index.cjs.map +1 -0
  119. package/build/components/CommandPalette/index.d.cts +37 -0
  120. package/build/components/CommandPalette/index.d.ts +37 -0
  121. package/build/components/CommandPalette/index.js +181 -0
  122. package/build/components/CommandPalette/index.js.map +1 -0
  123. package/build/components/CommandPalette/style.css +1 -0
  124. package/build/components/ConfirmDialog/index.cjs +2 -0
  125. package/build/components/ConfirmDialog/index.cjs.map +1 -0
  126. package/build/components/ConfirmDialog/index.d.cts +34 -0
  127. package/build/components/ConfirmDialog/index.d.ts +34 -0
  128. package/build/components/ConfirmDialog/index.js +85 -0
  129. package/build/components/ConfirmDialog/index.js.map +1 -0
  130. package/build/components/CopyField/index.cjs +2 -0
  131. package/build/components/CopyField/index.cjs.map +1 -0
  132. package/build/components/CopyField/index.d.cts +20 -0
  133. package/build/components/CopyField/index.d.ts +20 -0
  134. package/build/components/CopyField/index.js +44 -0
  135. package/build/components/CopyField/index.js.map +1 -0
  136. package/build/components/CopyField/style.css +1 -0
  137. package/build/components/DataTable/index.cjs +2 -0
  138. package/build/components/DataTable/index.cjs.map +1 -0
  139. package/build/components/DataTable/index.d.cts +60 -0
  140. package/build/components/DataTable/index.d.ts +60 -0
  141. package/build/components/DataTable/index.js +109 -0
  142. package/build/components/DataTable/index.js.map +1 -0
  143. package/build/components/DataTable/style.css +1 -0
  144. package/build/components/DateField/index.cjs +2 -0
  145. package/build/components/DateField/index.cjs.map +1 -0
  146. package/build/components/DateField/index.d.cts +57 -0
  147. package/build/components/DateField/index.d.ts +57 -0
  148. package/build/components/DateField/index.js +90 -0
  149. package/build/components/DateField/index.js.map +1 -0
  150. package/build/components/DateField/style.css +1 -0
  151. package/build/components/Directory/index.cjs +2 -0
  152. package/build/components/Directory/index.cjs.map +1 -0
  153. package/build/components/Directory/index.d.cts +51 -0
  154. package/build/components/Directory/index.d.ts +51 -0
  155. package/build/components/Directory/index.js +46 -0
  156. package/build/components/Directory/index.js.map +1 -0
  157. package/build/components/Directory/style.css +1 -0
  158. package/build/components/Disclosure/index.cjs +2 -0
  159. package/build/components/Disclosure/index.cjs.map +1 -0
  160. package/build/components/Disclosure/index.d.cts +34 -0
  161. package/build/components/Disclosure/index.d.ts +34 -0
  162. package/build/components/Disclosure/index.js +64 -0
  163. package/build/components/Disclosure/index.js.map +1 -0
  164. package/build/components/Disclosure/style.css +1 -0
  165. package/build/components/Divider/index.cjs +2 -0
  166. package/build/components/Divider/index.cjs.map +1 -0
  167. package/build/components/Divider/index.d.cts +10 -0
  168. package/build/components/Divider/index.d.ts +10 -0
  169. package/build/components/Divider/index.js +24 -0
  170. package/build/components/Divider/index.js.map +1 -0
  171. package/build/components/Divider/style.css +1 -0
  172. package/build/components/Drawer/index.cjs +2 -0
  173. package/build/components/Drawer/index.cjs.map +1 -0
  174. package/build/components/Drawer/index.d.cts +29 -0
  175. package/build/components/Drawer/index.d.ts +29 -0
  176. package/build/components/Drawer/index.js +91 -0
  177. package/build/components/Drawer/index.js.map +1 -0
  178. package/build/components/Drawer/style.css +1 -0
  179. package/build/components/EmptyState/index.cjs +2 -0
  180. package/build/components/EmptyState/index.cjs.map +1 -0
  181. package/build/components/EmptyState/index.d.cts +19 -0
  182. package/build/components/EmptyState/index.d.ts +19 -0
  183. package/build/components/EmptyState/index.js +35 -0
  184. package/build/components/EmptyState/index.js.map +1 -0
  185. package/build/components/EmptyState/style.css +1 -0
  186. package/build/components/Field/index.cjs +2 -0
  187. package/build/components/Field/index.cjs.map +1 -0
  188. package/build/components/Field/index.d.cts +37 -0
  189. package/build/components/Field/index.d.ts +37 -0
  190. package/build/components/Field/index.js +54 -0
  191. package/build/components/Field/index.js.map +1 -0
  192. package/build/components/Field/style.css +1 -0
  193. package/build/components/FileUpload/index.cjs +2 -0
  194. package/build/components/FileUpload/index.cjs.map +1 -0
  195. package/build/components/FileUpload/index.d.cts +42 -0
  196. package/build/components/FileUpload/index.d.ts +42 -0
  197. package/build/components/FileUpload/index.js +145 -0
  198. package/build/components/FileUpload/index.js.map +1 -0
  199. package/build/components/FileUpload/style.css +1 -0
  200. package/build/components/FilterBar/index.cjs +2 -0
  201. package/build/components/FilterBar/index.cjs.map +1 -0
  202. package/build/components/FilterBar/index.d.cts +28 -0
  203. package/build/components/FilterBar/index.d.ts +28 -0
  204. package/build/components/FilterBar/index.js +35 -0
  205. package/build/components/FilterBar/index.js.map +1 -0
  206. package/build/components/FilterBar/style.css +1 -0
  207. package/build/components/IconButton/index.cjs +2 -0
  208. package/build/components/IconButton/index.cjs.map +1 -0
  209. package/build/components/IconButton/index.d.cts +26 -0
  210. package/build/components/IconButton/index.d.ts +26 -0
  211. package/build/components/IconButton/index.js +61 -0
  212. package/build/components/IconButton/index.js.map +1 -0
  213. package/build/components/IconButton/style.css +1 -0
  214. package/build/components/Input/index.cjs +2 -0
  215. package/build/components/Input/index.cjs.map +1 -0
  216. package/build/components/Input/index.d.cts +15 -0
  217. package/build/components/Input/index.d.ts +15 -0
  218. package/build/components/Input/index.js +52 -0
  219. package/build/components/Input/index.js.map +1 -0
  220. package/build/components/Input/style.css +1 -0
  221. package/build/components/Kbd/index.cjs +2 -0
  222. package/build/components/Kbd/index.cjs.map +1 -0
  223. package/build/components/Kbd/index.d.cts +12 -0
  224. package/build/components/Kbd/index.d.ts +12 -0
  225. package/build/components/Kbd/index.js +13 -0
  226. package/build/components/Kbd/index.js.map +1 -0
  227. package/build/components/Kbd/style.css +1 -0
  228. package/build/components/Link/index.cjs +2 -0
  229. package/build/components/Link/index.cjs.map +1 -0
  230. package/build/components/Link/index.d.cts +5 -0
  231. package/build/components/Link/index.d.ts +5 -0
  232. package/build/components/Link/index.js +11 -0
  233. package/build/components/Link/index.js.map +1 -0
  234. package/build/components/Menu/index.cjs +2 -0
  235. package/build/components/Menu/index.cjs.map +1 -0
  236. package/build/components/Menu/index.d.cts +46 -0
  237. package/build/components/Menu/index.d.ts +46 -0
  238. package/build/components/Menu/index.js +241 -0
  239. package/build/components/Menu/index.js.map +1 -0
  240. package/build/components/Menu/style.css +1 -0
  241. package/build/components/Modal/index.cjs +2 -0
  242. package/build/components/Modal/index.cjs.map +1 -0
  243. package/build/components/Modal/index.d.cts +35 -0
  244. package/build/components/Modal/index.d.ts +35 -0
  245. package/build/components/Modal/index.js +95 -0
  246. package/build/components/Modal/index.js.map +1 -0
  247. package/build/components/Modal/style.css +1 -0
  248. package/build/components/MoneyInput/index.cjs +2 -0
  249. package/build/components/MoneyInput/index.cjs.map +1 -0
  250. package/build/components/MoneyInput/index.d.cts +17 -0
  251. package/build/components/MoneyInput/index.d.ts +17 -0
  252. package/build/components/MoneyInput/index.js +22 -0
  253. package/build/components/MoneyInput/index.js.map +1 -0
  254. package/build/components/PageHeader/index.cjs +2 -0
  255. package/build/components/PageHeader/index.cjs.map +1 -0
  256. package/build/components/PageHeader/index.d.cts +24 -0
  257. package/build/components/PageHeader/index.d.ts +24 -0
  258. package/build/components/PageHeader/index.js +34 -0
  259. package/build/components/PageHeader/index.js.map +1 -0
  260. package/build/components/PageHeader/style.css +1 -0
  261. package/build/components/Pagination/index.cjs +2 -0
  262. package/build/components/Pagination/index.cjs.map +1 -0
  263. package/build/components/Pagination/index.d.cts +39 -0
  264. package/build/components/Pagination/index.d.ts +39 -0
  265. package/build/components/Pagination/index.js +128 -0
  266. package/build/components/Pagination/index.js.map +1 -0
  267. package/build/components/Pagination/style.css +1 -0
  268. package/build/components/Panel/index.cjs +2 -0
  269. package/build/components/Panel/index.cjs.map +1 -0
  270. package/build/components/Panel/index.d.cts +43 -0
  271. package/build/components/Panel/index.d.ts +43 -0
  272. package/build/components/Panel/index.js +55 -0
  273. package/build/components/Panel/index.js.map +1 -0
  274. package/build/components/Panel/style.css +1 -0
  275. package/build/components/PasswordInput/index.cjs +2 -0
  276. package/build/components/PasswordInput/index.cjs.map +1 -0
  277. package/build/components/PasswordInput/index.d.cts +14 -0
  278. package/build/components/PasswordInput/index.d.ts +14 -0
  279. package/build/components/PasswordInput/index.js +40 -0
  280. package/build/components/PasswordInput/index.js.map +1 -0
  281. package/build/components/PasswordInput/style.css +1 -0
  282. package/build/components/PercentInput/index.cjs +2 -0
  283. package/build/components/PercentInput/index.cjs.map +1 -0
  284. package/build/components/PercentInput/index.d.cts +10 -0
  285. package/build/components/PercentInput/index.d.ts +10 -0
  286. package/build/components/PercentInput/index.js +14 -0
  287. package/build/components/PercentInput/index.js.map +1 -0
  288. package/build/components/Popover/index.cjs +2 -0
  289. package/build/components/Popover/index.cjs.map +1 -0
  290. package/build/components/Popover/index.d.cts +26 -0
  291. package/build/components/Popover/index.d.ts +26 -0
  292. package/build/components/Popover/index.js +106 -0
  293. package/build/components/Popover/index.js.map +1 -0
  294. package/build/components/Popover/style.css +1 -0
  295. package/build/components/Price/index.cjs +2 -0
  296. package/build/components/Price/index.cjs.map +1 -0
  297. package/build/components/Price/index.d.cts +22 -0
  298. package/build/components/Price/index.d.ts +22 -0
  299. package/build/components/Price/index.js +46 -0
  300. package/build/components/Price/index.js.map +1 -0
  301. package/build/components/Price/style.css +1 -0
  302. package/build/components/Progress/index.cjs +2 -0
  303. package/build/components/Progress/index.cjs.map +1 -0
  304. package/build/components/Progress/index.d.cts +59 -0
  305. package/build/components/Progress/index.d.ts +59 -0
  306. package/build/components/Progress/index.js +124 -0
  307. package/build/components/Progress/index.js.map +1 -0
  308. package/build/components/Progress/style.css +1 -0
  309. package/build/components/PromptDialog/index.cjs +2 -0
  310. package/build/components/PromptDialog/index.cjs.map +1 -0
  311. package/build/components/PromptDialog/index.d.cts +36 -0
  312. package/build/components/PromptDialog/index.d.ts +36 -0
  313. package/build/components/PromptDialog/index.js +119 -0
  314. package/build/components/PromptDialog/index.js.map +1 -0
  315. package/build/components/PromptDialog/style.css +1 -0
  316. package/build/components/QuantityInput/index.cjs +2 -0
  317. package/build/components/QuantityInput/index.cjs.map +1 -0
  318. package/build/components/QuantityInput/index.d.cts +17 -0
  319. package/build/components/QuantityInput/index.d.ts +17 -0
  320. package/build/components/QuantityInput/index.js +23 -0
  321. package/build/components/QuantityInput/index.js.map +1 -0
  322. package/build/components/QuantityStepper/index.cjs +2 -0
  323. package/build/components/QuantityStepper/index.cjs.map +1 -0
  324. package/build/components/QuantityStepper/index.d.cts +37 -0
  325. package/build/components/QuantityStepper/index.d.ts +37 -0
  326. package/build/components/QuantityStepper/index.js +118 -0
  327. package/build/components/QuantityStepper/index.js.map +1 -0
  328. package/build/components/QuantityStepper/style.css +1 -0
  329. package/build/components/Radio/index.cjs +2 -0
  330. package/build/components/Radio/index.cjs.map +1 -0
  331. package/build/components/Radio/index.d.cts +18 -0
  332. package/build/components/Radio/index.d.ts +18 -0
  333. package/build/components/Radio/index.js +53 -0
  334. package/build/components/Radio/index.js.map +1 -0
  335. package/build/components/Radio/style.css +1 -0
  336. package/build/components/RadioCard/index.cjs +2 -0
  337. package/build/components/RadioCard/index.cjs.map +1 -0
  338. package/build/components/RadioCard/index.d.cts +16 -0
  339. package/build/components/RadioCard/index.d.ts +16 -0
  340. package/build/components/RadioCard/index.js +48 -0
  341. package/build/components/RadioCard/index.js.map +1 -0
  342. package/build/components/RadioCard/style.css +1 -0
  343. package/build/components/RangeSlider/index.cjs +2 -0
  344. package/build/components/RangeSlider/index.cjs.map +1 -0
  345. package/build/components/RangeSlider/index.d.cts +45 -0
  346. package/build/components/RangeSlider/index.d.ts +45 -0
  347. package/build/components/RangeSlider/index.js +121 -0
  348. package/build/components/RangeSlider/index.js.map +1 -0
  349. package/build/components/RangeSlider/style.css +1 -0
  350. package/build/components/RateInput/index.cjs +2 -0
  351. package/build/components/RateInput/index.cjs.map +1 -0
  352. package/build/components/RateInput/index.d.cts +9 -0
  353. package/build/components/RateInput/index.d.ts +9 -0
  354. package/build/components/RateInput/index.js +18 -0
  355. package/build/components/RateInput/index.js.map +1 -0
  356. package/build/components/Rating/index.cjs +2 -0
  357. package/build/components/Rating/index.cjs.map +1 -0
  358. package/build/components/Rating/index.d.cts +16 -0
  359. package/build/components/Rating/index.d.ts +16 -0
  360. package/build/components/Rating/index.js +29 -0
  361. package/build/components/Rating/index.js.map +1 -0
  362. package/build/components/Rating/style.css +1 -0
  363. package/build/components/RatingInput/index.cjs +2 -0
  364. package/build/components/RatingInput/index.cjs.map +1 -0
  365. package/build/components/RatingInput/index.d.cts +34 -0
  366. package/build/components/RatingInput/index.d.ts +34 -0
  367. package/build/components/RatingInput/index.js +89 -0
  368. package/build/components/RatingInput/index.js.map +1 -0
  369. package/build/components/RatingInput/style.css +1 -0
  370. package/build/components/ScaledInput/index.cjs +2 -0
  371. package/build/components/ScaledInput/index.cjs.map +1 -0
  372. package/build/components/ScaledInput/index.d.cts +77 -0
  373. package/build/components/ScaledInput/index.d.ts +77 -0
  374. package/build/components/ScaledInput/index.js +77 -0
  375. package/build/components/ScaledInput/index.js.map +1 -0
  376. package/build/components/ScaledInput/style.css +1 -0
  377. package/build/components/ScrollArea/index.cjs +2 -0
  378. package/build/components/ScrollArea/index.cjs.map +1 -0
  379. package/build/components/ScrollArea/index.d.cts +23 -0
  380. package/build/components/ScrollArea/index.d.ts +23 -0
  381. package/build/components/ScrollArea/index.js +65 -0
  382. package/build/components/ScrollArea/index.js.map +1 -0
  383. package/build/components/ScrollArea/style.css +1 -0
  384. package/build/components/SectionHeader/index.cjs +2 -0
  385. package/build/components/SectionHeader/index.cjs.map +1 -0
  386. package/build/components/SectionHeader/index.d.cts +17 -0
  387. package/build/components/SectionHeader/index.d.ts +17 -0
  388. package/build/components/SectionHeader/index.js +25 -0
  389. package/build/components/SectionHeader/index.js.map +1 -0
  390. package/build/components/SectionHeader/style.css +1 -0
  391. package/build/components/SegmentedControl/index.cjs +2 -0
  392. package/build/components/SegmentedControl/index.cjs.map +1 -0
  393. package/build/components/SegmentedControl/index.d.cts +39 -0
  394. package/build/components/SegmentedControl/index.d.ts +39 -0
  395. package/build/components/SegmentedControl/index.js +84 -0
  396. package/build/components/SegmentedControl/index.js.map +1 -0
  397. package/build/components/SegmentedControl/style.css +1 -0
  398. package/build/components/Select/index.cjs +2 -0
  399. package/build/components/Select/index.cjs.map +1 -0
  400. package/build/components/Select/index.d.cts +52 -0
  401. package/build/components/Select/index.d.ts +52 -0
  402. package/build/components/Select/index.js +206 -0
  403. package/build/components/Select/index.js.map +1 -0
  404. package/build/components/Select/style.css +1 -0
  405. package/build/components/Skeleton/index.cjs +2 -0
  406. package/build/components/Skeleton/index.cjs.map +1 -0
  407. package/build/components/Skeleton/index.d.cts +25 -0
  408. package/build/components/Skeleton/index.d.ts +25 -0
  409. package/build/components/Skeleton/index.js +50 -0
  410. package/build/components/Skeleton/index.js.map +1 -0
  411. package/build/components/Skeleton/style.css +1 -0
  412. package/build/components/Spinner/index.cjs +2 -0
  413. package/build/components/Spinner/index.cjs.map +1 -0
  414. package/build/components/Spinner/index.d.cts +16 -0
  415. package/build/components/Spinner/index.d.ts +16 -0
  416. package/build/components/Spinner/index.js +15 -0
  417. package/build/components/Spinner/index.js.map +1 -0
  418. package/build/components/Spinner/style.css +1 -0
  419. package/build/components/Stat/index.cjs +2 -0
  420. package/build/components/Stat/index.cjs.map +1 -0
  421. package/build/components/Stat/index.d.cts +34 -0
  422. package/build/components/Stat/index.d.ts +34 -0
  423. package/build/components/Stat/index.js +72 -0
  424. package/build/components/Stat/index.js.map +1 -0
  425. package/build/components/Stat/style.css +1 -0
  426. package/build/components/StatusDot/index.cjs +2 -0
  427. package/build/components/StatusDot/index.cjs.map +1 -0
  428. package/build/components/StatusDot/index.d.cts +23 -0
  429. package/build/components/StatusDot/index.d.ts +23 -0
  430. package/build/components/StatusDot/index.js +23 -0
  431. package/build/components/StatusDot/index.js.map +1 -0
  432. package/build/components/StatusDot/style.css +1 -0
  433. package/build/components/Steps/index.cjs +2 -0
  434. package/build/components/Steps/index.cjs.map +1 -0
  435. package/build/components/Steps/index.d.cts +23 -0
  436. package/build/components/Steps/index.d.ts +23 -0
  437. package/build/components/Steps/index.js +69 -0
  438. package/build/components/Steps/index.js.map +1 -0
  439. package/build/components/Steps/style.css +1 -0
  440. package/build/components/SummaryCard/index.cjs +2 -0
  441. package/build/components/SummaryCard/index.cjs.map +1 -0
  442. package/build/components/SummaryCard/index.d.cts +24 -0
  443. package/build/components/SummaryCard/index.d.ts +24 -0
  444. package/build/components/SummaryCard/index.js +33 -0
  445. package/build/components/SummaryCard/index.js.map +1 -0
  446. package/build/components/SummaryCard/style.css +1 -0
  447. package/build/components/Switch/index.cjs +2 -0
  448. package/build/components/Switch/index.cjs.map +1 -0
  449. package/build/components/Switch/index.d.cts +21 -0
  450. package/build/components/Switch/index.d.ts +21 -0
  451. package/build/components/Switch/index.js +60 -0
  452. package/build/components/Switch/index.js.map +1 -0
  453. package/build/components/Switch/style.css +1 -0
  454. package/build/components/Table/index.cjs +2 -0
  455. package/build/components/Table/index.cjs.map +1 -0
  456. package/build/components/Table/index.d.cts +28 -0
  457. package/build/components/Table/index.d.ts +28 -0
  458. package/build/components/Table/index.js +58 -0
  459. package/build/components/Table/index.js.map +1 -0
  460. package/build/components/Table/style.css +1 -0
  461. package/build/components/TableCheckbox/index.cjs +2 -0
  462. package/build/components/TableCheckbox/index.cjs.map +1 -0
  463. package/build/components/TableCheckbox/index.d.cts +15 -0
  464. package/build/components/TableCheckbox/index.d.ts +15 -0
  465. package/build/components/TableCheckbox/index.js +31 -0
  466. package/build/components/TableCheckbox/index.js.map +1 -0
  467. package/build/components/TableCheckbox/style.css +1 -0
  468. package/build/components/Tabs/index.cjs +2 -0
  469. package/build/components/Tabs/index.cjs.map +1 -0
  470. package/build/components/Tabs/index.d.cts +27 -0
  471. package/build/components/Tabs/index.d.ts +27 -0
  472. package/build/components/Tabs/index.js +102 -0
  473. package/build/components/Tabs/index.js.map +1 -0
  474. package/build/components/Tabs/style.css +1 -0
  475. package/build/components/TagInput/index.cjs +2 -0
  476. package/build/components/TagInput/index.cjs.map +1 -0
  477. package/build/components/TagInput/index.d.cts +43 -0
  478. package/build/components/TagInput/index.d.ts +43 -0
  479. package/build/components/TagInput/index.js +134 -0
  480. package/build/components/TagInput/index.js.map +1 -0
  481. package/build/components/TagInput/style.css +1 -0
  482. package/build/components/TextLink/index.cjs +2 -0
  483. package/build/components/TextLink/index.cjs.map +1 -0
  484. package/build/components/TextLink/index.d.cts +16 -0
  485. package/build/components/TextLink/index.d.ts +16 -0
  486. package/build/components/TextLink/index.js +32 -0
  487. package/build/components/TextLink/index.js.map +1 -0
  488. package/build/components/TextLink/style.css +1 -0
  489. package/build/components/Textarea/index.cjs +2 -0
  490. package/build/components/Textarea/index.cjs.map +1 -0
  491. package/build/components/Textarea/index.d.cts +20 -0
  492. package/build/components/Textarea/index.d.ts +20 -0
  493. package/build/components/Textarea/index.js +68 -0
  494. package/build/components/Textarea/index.js.map +1 -0
  495. package/build/components/Textarea/style.css +1 -0
  496. package/build/components/Tile/index.cjs +2 -0
  497. package/build/components/Tile/index.cjs.map +1 -0
  498. package/build/components/Tile/index.d.cts +19 -0
  499. package/build/components/Tile/index.d.ts +19 -0
  500. package/build/components/Tile/index.js +24 -0
  501. package/build/components/Tile/index.js.map +1 -0
  502. package/build/components/Tile/style.css +1 -0
  503. package/build/components/Timeline/index.cjs +2 -0
  504. package/build/components/Timeline/index.cjs.map +1 -0
  505. package/build/components/Timeline/index.d.cts +24 -0
  506. package/build/components/Timeline/index.d.ts +24 -0
  507. package/build/components/Timeline/index.js +56 -0
  508. package/build/components/Timeline/index.js.map +1 -0
  509. package/build/components/Timeline/style.css +1 -0
  510. package/build/components/Toast/index.cjs +2 -0
  511. package/build/components/Toast/index.cjs.map +1 -0
  512. package/build/components/Toast/index.d.cts +63 -0
  513. package/build/components/Toast/index.d.ts +63 -0
  514. package/build/components/Toast/index.js +159 -0
  515. package/build/components/Toast/index.js.map +1 -0
  516. package/build/components/Toast/style.css +1 -0
  517. package/build/components/ToastPortal/index.cjs +2 -0
  518. package/build/components/ToastPortal/index.cjs.map +1 -0
  519. package/build/components/ToastPortal/index.d.cts +10 -0
  520. package/build/components/ToastPortal/index.d.ts +10 -0
  521. package/build/components/ToastPortal/index.js +15 -0
  522. package/build/components/ToastPortal/index.js.map +1 -0
  523. package/build/components/Tooltip/index.cjs +2 -0
  524. package/build/components/Tooltip/index.cjs.map +1 -0
  525. package/build/components/Tooltip/index.d.cts +23 -0
  526. package/build/components/Tooltip/index.d.ts +23 -0
  527. package/build/components/Tooltip/index.js +116 -0
  528. package/build/components/Tooltip/index.js.map +1 -0
  529. package/build/components/Tooltip/style.css +1 -0
  530. package/build/constants/breakpoint.constants.cjs +2 -0
  531. package/build/constants/breakpoint.constants.cjs.map +1 -0
  532. package/build/constants/breakpoint.constants.d.cts +15 -0
  533. package/build/constants/breakpoint.constants.d.ts +15 -0
  534. package/build/constants/breakpoint.constants.js +12 -0
  535. package/build/constants/breakpoint.constants.js.map +1 -0
  536. package/build/constants/combobox.constants.cjs +2 -0
  537. package/build/constants/combobox.constants.cjs.map +1 -0
  538. package/build/constants/combobox.constants.d.cts +11 -0
  539. package/build/constants/combobox.constants.d.ts +11 -0
  540. package/build/constants/combobox.constants.js +7 -0
  541. package/build/constants/combobox.constants.js.map +1 -0
  542. package/build/constants/scale.constants.cjs +2 -0
  543. package/build/constants/scale.constants.cjs.map +1 -0
  544. package/build/constants/scale.constants.d.cts +11 -0
  545. package/build/constants/scale.constants.d.ts +11 -0
  546. package/build/constants/scale.constants.js +8 -0
  547. package/build/constants/scale.constants.js.map +1 -0
  548. package/build/constants/scroll.constants.cjs +2 -0
  549. package/build/constants/scroll.constants.cjs.map +1 -0
  550. package/build/constants/scroll.constants.d.cts +7 -0
  551. package/build/constants/scroll.constants.d.ts +7 -0
  552. package/build/constants/scroll.constants.js +5 -0
  553. package/build/constants/scroll.constants.js.map +1 -0
  554. package/build/enums/ui-size.enum.cjs +2 -0
  555. package/build/enums/ui-size.enum.cjs.map +1 -0
  556. package/build/enums/ui-size.enum.d.cts +12 -0
  557. package/build/enums/ui-size.enum.d.ts +12 -0
  558. package/build/enums/ui-size.enum.js +5 -0
  559. package/build/enums/ui-size.enum.js.map +1 -0
  560. package/build/enums/ui-variant.enum.cjs +2 -0
  561. package/build/enums/ui-variant.enum.cjs.map +1 -0
  562. package/build/enums/ui-variant.enum.d.cts +20 -0
  563. package/build/enums/ui-variant.enum.d.ts +20 -0
  564. package/build/enums/ui-variant.enum.js +5 -0
  565. package/build/enums/ui-variant.enum.js.map +1 -0
  566. package/build/helpers/aria.helper.cjs +2 -0
  567. package/build/helpers/aria.helper.cjs.map +1 -0
  568. package/build/helpers/aria.helper.d.cts +7 -0
  569. package/build/helpers/aria.helper.d.ts +7 -0
  570. package/build/helpers/aria.helper.js +5 -0
  571. package/build/helpers/aria.helper.js.map +1 -0
  572. package/build/helpers/class-name.helper.cjs +2 -0
  573. package/build/helpers/class-name.helper.cjs.map +1 -0
  574. package/build/helpers/class-name.helper.d.cts +3 -0
  575. package/build/helpers/class-name.helper.d.ts +3 -0
  576. package/build/helpers/class-name.helper.js +10 -0
  577. package/build/helpers/class-name.helper.js.map +1 -0
  578. package/build/helpers/component.helper.cjs +2 -0
  579. package/build/helpers/component.helper.cjs.map +1 -0
  580. package/build/helpers/component.helper.d.cts +13 -0
  581. package/build/helpers/component.helper.d.ts +13 -0
  582. package/build/helpers/component.helper.js +5 -0
  583. package/build/helpers/component.helper.js.map +1 -0
  584. package/build/helpers/focus.helper.cjs +2 -0
  585. package/build/helpers/focus.helper.cjs.map +1 -0
  586. package/build/helpers/focus.helper.d.cts +90 -0
  587. package/build/helpers/focus.helper.d.ts +90 -0
  588. package/build/helpers/focus.helper.js +83 -0
  589. package/build/helpers/focus.helper.js.map +1 -0
  590. package/build/helpers/label.helper.cjs +2 -0
  591. package/build/helpers/label.helper.cjs.map +1 -0
  592. package/build/helpers/label.helper.d.cts +11 -0
  593. package/build/helpers/label.helper.d.ts +11 -0
  594. package/build/helpers/label.helper.js +11 -0
  595. package/build/helpers/label.helper.js.map +1 -0
  596. package/build/helpers/portal.helper.cjs +2 -0
  597. package/build/helpers/portal.helper.cjs.map +1 -0
  598. package/build/helpers/portal.helper.d.cts +28 -0
  599. package/build/helpers/portal.helper.d.ts +28 -0
  600. package/build/helpers/portal.helper.js +36 -0
  601. package/build/helpers/portal.helper.js.map +1 -0
  602. package/build/helpers/ref.helper.cjs +2 -0
  603. package/build/helpers/ref.helper.cjs.map +1 -0
  604. package/build/helpers/ref.helper.d.cts +3 -0
  605. package/build/helpers/ref.helper.d.ts +3 -0
  606. package/build/helpers/ref.helper.js +7 -0
  607. package/build/helpers/ref.helper.js.map +1 -0
  608. package/build/helpers/scaled-number.helper.cjs +2 -0
  609. package/build/helpers/scaled-number.helper.cjs.map +1 -0
  610. package/build/helpers/scaled-number.helper.d.cts +55 -0
  611. package/build/helpers/scaled-number.helper.d.ts +55 -0
  612. package/build/helpers/scaled-number.helper.js +34 -0
  613. package/build/helpers/scaled-number.helper.js.map +1 -0
  614. package/build/helpers/scroll.helper.cjs +2 -0
  615. package/build/helpers/scroll.helper.cjs.map +1 -0
  616. package/build/helpers/scroll.helper.d.cts +8 -0
  617. package/build/helpers/scroll.helper.d.ts +8 -0
  618. package/build/helpers/scroll.helper.js +11 -0
  619. package/build/helpers/scroll.helper.js.map +1 -0
  620. package/build/helpers/text.helper.cjs +2 -0
  621. package/build/helpers/text.helper.cjs.map +1 -0
  622. package/build/helpers/text.helper.d.cts +5 -0
  623. package/build/helpers/text.helper.d.ts +5 -0
  624. package/build/helpers/text.helper.js +6 -0
  625. package/build/helpers/text.helper.js.map +1 -0
  626. package/build/helpers/theme.helper.cjs +2 -0
  627. package/build/helpers/theme.helper.cjs.map +1 -0
  628. package/build/helpers/theme.helper.d.cts +18 -0
  629. package/build/helpers/theme.helper.d.ts +18 -0
  630. package/build/helpers/theme.helper.js +37 -0
  631. package/build/helpers/theme.helper.js.map +1 -0
  632. package/build/hooks/useAnnounce.cjs +2 -0
  633. package/build/hooks/useAnnounce.cjs.map +1 -0
  634. package/build/hooks/useAnnounce.d.cts +4 -0
  635. package/build/hooks/useAnnounce.d.ts +4 -0
  636. package/build/hooks/useAnnounce.js +23 -0
  637. package/build/hooks/useAnnounce.js.map +1 -0
  638. package/build/hooks/useAsyncSearch.cjs +2 -0
  639. package/build/hooks/useAsyncSearch.cjs.map +1 -0
  640. package/build/hooks/useAsyncSearch.d.cts +11 -0
  641. package/build/hooks/useAsyncSearch.d.ts +11 -0
  642. package/build/hooks/useAsyncSearch.js +17 -0
  643. package/build/hooks/useAsyncSearch.js.map +1 -0
  644. package/build/hooks/useCopyFeedback.cjs +2 -0
  645. package/build/hooks/useCopyFeedback.cjs.map +1 -0
  646. package/build/hooks/useCopyFeedback.d.cts +10 -0
  647. package/build/hooks/useCopyFeedback.d.ts +10 -0
  648. package/build/hooks/useCopyFeedback.js +25 -0
  649. package/build/hooks/useCopyFeedback.js.map +1 -0
  650. package/build/hooks/useDismissOnEscape.cjs +2 -0
  651. package/build/hooks/useDismissOnEscape.cjs.map +1 -0
  652. package/build/hooks/useDismissOnEscape.d.cts +16 -0
  653. package/build/hooks/useDismissOnEscape.d.ts +16 -0
  654. package/build/hooks/useDismissOnEscape.js +18 -0
  655. package/build/hooks/useDismissOnEscape.js.map +1 -0
  656. package/build/hooks/useListboxNavigation.cjs +2 -0
  657. package/build/hooks/useListboxNavigation.cjs.map +1 -0
  658. package/build/hooks/useListboxNavigation.d.cts +7 -0
  659. package/build/hooks/useListboxNavigation.d.ts +7 -0
  660. package/build/hooks/useListboxNavigation.js +53 -0
  661. package/build/hooks/useListboxNavigation.js.map +1 -0
  662. package/build/hooks/usePortalSurface.cjs +2 -0
  663. package/build/hooks/usePortalSurface.cjs.map +1 -0
  664. package/build/hooks/usePortalSurface.d.cts +25 -0
  665. package/build/hooks/usePortalSurface.d.ts +25 -0
  666. package/build/hooks/usePortalSurface.js +19 -0
  667. package/build/hooks/usePortalSurface.js.map +1 -0
  668. package/build/hooks/usePositioning.cjs +2 -0
  669. package/build/hooks/usePositioning.cjs.map +1 -0
  670. package/build/hooks/usePositioning.d.cts +13 -0
  671. package/build/hooks/usePositioning.d.ts +13 -0
  672. package/build/hooks/usePositioning.js +74 -0
  673. package/build/hooks/usePositioning.js.map +1 -0
  674. package/build/hooks/useScrollLock.cjs +2 -0
  675. package/build/hooks/useScrollLock.cjs.map +1 -0
  676. package/build/hooks/useScrollLock.d.cts +2 -0
  677. package/build/hooks/useScrollLock.d.ts +2 -0
  678. package/build/hooks/useScrollLock.js +34 -0
  679. package/build/hooks/useScrollLock.js.map +1 -0
  680. package/build/hooks/useSheetViewport.cjs +2 -0
  681. package/build/hooks/useSheetViewport.cjs.map +1 -0
  682. package/build/hooks/useSheetViewport.d.cts +6 -0
  683. package/build/hooks/useSheetViewport.d.ts +6 -0
  684. package/build/hooks/useSheetViewport.js +29 -0
  685. package/build/hooks/useSheetViewport.js.map +1 -0
  686. package/build/hooks/useStickToBottom.cjs +2 -0
  687. package/build/hooks/useStickToBottom.cjs.map +1 -0
  688. package/build/hooks/useStickToBottom.d.cts +12 -0
  689. package/build/hooks/useStickToBottom.d.ts +12 -0
  690. package/build/hooks/useStickToBottom.js +39 -0
  691. package/build/hooks/useStickToBottom.js.map +1 -0
  692. package/build/hooks/useUiTheme.cjs +2 -0
  693. package/build/hooks/useUiTheme.cjs.map +1 -0
  694. package/build/hooks/useUiTheme.d.cts +10 -0
  695. package/build/hooks/useUiTheme.d.ts +10 -0
  696. package/build/hooks/useUiTheme.js +42 -0
  697. package/build/hooks/useUiTheme.js.map +1 -0
  698. package/build/hooks/useUiTokens.cjs +2 -0
  699. package/build/hooks/useUiTokens.cjs.map +1 -0
  700. package/build/hooks/useUiTokens.d.cts +11 -0
  701. package/build/hooks/useUiTokens.d.ts +11 -0
  702. package/build/hooks/useUiTokens.js +36 -0
  703. package/build/hooks/useUiTokens.js.map +1 -0
  704. package/build/hooks/useVirtualList.cjs +2 -0
  705. package/build/hooks/useVirtualList.cjs.map +1 -0
  706. package/build/hooks/useVirtualList.d.cts +13 -0
  707. package/build/hooks/useVirtualList.d.ts +13 -0
  708. package/build/hooks/useVirtualList.js +41 -0
  709. package/build/hooks/useVirtualList.js.map +1 -0
  710. package/build/index.cjs +2 -0
  711. package/build/index.cjs.map +1 -0
  712. package/build/index.d.cts +98 -0
  713. package/build/index.d.ts +98 -0
  714. package/build/index.js +209 -0
  715. package/build/index.js.map +1 -0
  716. package/build/scss/_index.scss +7 -0
  717. package/build/scss/_mixins.scss +861 -0
  718. package/build/scss/_variables.scss +245 -0
  719. package/build/styles/base.d.cts +0 -0
  720. package/build/styles/base.d.ts +0 -0
  721. package/build/styles.css +135 -0
  722. package/build/theme/UiProvider.cjs +2 -0
  723. package/build/theme/UiProvider.cjs.map +1 -0
  724. package/build/theme/UiProvider.d.cts +23 -0
  725. package/build/theme/UiProvider.d.ts +23 -0
  726. package/build/theme/UiProvider.js +12 -0
  727. package/build/theme/UiProvider.js.map +1 -0
  728. package/build/theme/UiThemeScript.cjs +2 -0
  729. package/build/theme/UiThemeScript.cjs.map +1 -0
  730. package/build/theme/UiThemeScript.d.cts +22 -0
  731. package/build/theme/UiThemeScript.d.ts +22 -0
  732. package/build/theme/UiThemeScript.js +8 -0
  733. package/build/theme/UiThemeScript.js.map +1 -0
  734. package/build/theme/context.cjs +2 -0
  735. package/build/theme/context.cjs.map +1 -0
  736. package/build/theme/context.d.cts +5 -0
  737. package/build/theme/context.d.ts +5 -0
  738. package/build/theme/context.js +8 -0
  739. package/build/theme/context.js.map +1 -0
  740. package/build/types/calendar/Calendar/EventBlock.d.cts +29 -0
  741. package/build/types/calendar/Calendar/EventBlock.d.ts +29 -0
  742. package/build/types/calendar/Calendar/MonthGrid.d.cts +28 -0
  743. package/build/types/calendar/Calendar/MonthGrid.d.ts +28 -0
  744. package/build/types/calendar/Calendar/TimeGrid.d.cts +37 -0
  745. package/build/types/calendar/Calendar/TimeGrid.d.ts +37 -0
  746. package/build/types/calendar/Calendar/index.d.cts +72 -0
  747. package/build/types/calendar/Calendar/index.d.ts +72 -0
  748. package/build/types/calendar/core/layout.d.cts +43 -0
  749. package/build/types/calendar/core/layout.d.ts +43 -0
  750. package/build/types/calendar/core/moves.d.cts +37 -0
  751. package/build/types/calendar/core/moves.d.ts +37 -0
  752. package/build/types/calendar/core/time.d.cts +19 -0
  753. package/build/types/calendar/core/time.d.ts +19 -0
  754. package/build/types/calendar/core/types.d.cts +75 -0
  755. package/build/types/calendar/core/types.d.ts +75 -0
  756. package/build/types/calendar/core/useCalendarDrag.d.cts +32 -0
  757. package/build/types/calendar/core/useCalendarDrag.d.ts +32 -0
  758. package/build/types/calendar/index.d.cts +13 -0
  759. package/build/types/calendar/index.d.ts +13 -0
  760. package/build/types/charts/AreaChart/index.d.cts +14 -0
  761. package/build/types/charts/AreaChart/index.d.ts +14 -0
  762. package/build/types/charts/BarChart/index.d.cts +16 -0
  763. package/build/types/charts/BarChart/index.d.ts +16 -0
  764. package/build/types/charts/BoxPlot/index.d.cts +43 -0
  765. package/build/types/charts/BoxPlot/index.d.ts +43 -0
  766. package/build/types/charts/ComposedChart/index.d.cts +16 -0
  767. package/build/types/charts/ComposedChart/index.d.ts +16 -0
  768. package/build/types/charts/Heatmap/index.d.cts +30 -0
  769. package/build/types/charts/Heatmap/index.d.ts +30 -0
  770. package/build/types/charts/Histogram/index.d.cts +29 -0
  771. package/build/types/charts/Histogram/index.d.ts +29 -0
  772. package/build/types/charts/LineChart/index.d.cts +14 -0
  773. package/build/types/charts/LineChart/index.d.ts +14 -0
  774. package/build/types/charts/PieChart/index.d.cts +36 -0
  775. package/build/types/charts/PieChart/index.d.ts +36 -0
  776. package/build/types/charts/RadarChart/index.d.cts +40 -0
  777. package/build/types/charts/RadarChart/index.d.ts +40 -0
  778. package/build/types/charts/ScatterPlot/index.d.cts +41 -0
  779. package/build/types/charts/ScatterPlot/index.d.ts +41 -0
  780. package/build/types/charts/core/CartesianChart.d.cts +43 -0
  781. package/build/types/charts/core/CartesianChart.d.ts +43 -0
  782. package/build/types/charts/core/ChartFrame.d.cts +55 -0
  783. package/build/types/charts/core/ChartFrame.d.ts +55 -0
  784. package/build/types/charts/core/axes.d.cts +37 -0
  785. package/build/types/charts/core/axes.d.ts +37 -0
  786. package/build/types/charts/core/cartesian.d.cts +80 -0
  787. package/build/types/charts/core/cartesian.d.ts +80 -0
  788. package/build/types/charts/core/format.d.cts +19 -0
  789. package/build/types/charts/core/format.d.ts +19 -0
  790. package/build/types/charts/core/margins.d.cts +9 -0
  791. package/build/types/charts/core/margins.d.ts +9 -0
  792. package/build/types/charts/core/palette.d.cts +11 -0
  793. package/build/types/charts/core/palette.d.ts +11 -0
  794. package/build/types/charts/core/path.d.cts +24 -0
  795. package/build/types/charts/core/path.d.ts +24 -0
  796. package/build/types/charts/core/scale.d.cts +40 -0
  797. package/build/types/charts/core/scale.d.ts +40 -0
  798. package/build/types/charts/core/series.d.cts +11 -0
  799. package/build/types/charts/core/series.d.ts +11 -0
  800. package/build/types/charts/core/spatial.d.cts +12 -0
  801. package/build/types/charts/core/spatial.d.ts +12 -0
  802. package/build/types/charts/core/stats.d.cts +34 -0
  803. package/build/types/charts/core/stats.d.ts +34 -0
  804. package/build/types/charts/core/types.d.cts +31 -0
  805. package/build/types/charts/core/types.d.ts +31 -0
  806. package/build/types/charts/core/useChartWidth.d.cts +7 -0
  807. package/build/types/charts/core/useChartWidth.d.ts +7 -0
  808. package/build/types/charts/index.d.cts +21 -0
  809. package/build/types/charts/index.d.ts +21 -0
  810. package/build/types/chat/ActionList/index.d.cts +46 -0
  811. package/build/types/chat/ActionList/index.d.ts +46 -0
  812. package/build/types/chat/AppBar/index.d.cts +21 -0
  813. package/build/types/chat/AppBar/index.d.ts +21 -0
  814. package/build/types/chat/ChatMessage/index.d.cts +24 -0
  815. package/build/types/chat/ChatMessage/index.d.ts +24 -0
  816. package/build/types/chat/ChatThread/index.d.cts +24 -0
  817. package/build/types/chat/ChatThread/index.d.ts +24 -0
  818. package/build/types/chat/Citation/index.d.cts +15 -0
  819. package/build/types/chat/Citation/index.d.ts +15 -0
  820. package/build/types/chat/CodeBlock/format.d.cts +7 -0
  821. package/build/types/chat/CodeBlock/format.d.ts +7 -0
  822. package/build/types/chat/CodeBlock/grammars.d.cts +44 -0
  823. package/build/types/chat/CodeBlock/grammars.d.ts +44 -0
  824. package/build/types/chat/CodeBlock/highlight.d.cts +22 -0
  825. package/build/types/chat/CodeBlock/highlight.d.ts +22 -0
  826. package/build/types/chat/CodeBlock/index.d.cts +33 -0
  827. package/build/types/chat/CodeBlock/index.d.ts +33 -0
  828. package/build/types/chat/DescriptionList/index.d.cts +16 -0
  829. package/build/types/chat/DescriptionList/index.d.ts +16 -0
  830. package/build/types/chat/Legend/index.d.cts +21 -0
  831. package/build/types/chat/Legend/index.d.ts +21 -0
  832. package/build/types/chat/MessageActions/index.d.cts +21 -0
  833. package/build/types/chat/MessageActions/index.d.ts +21 -0
  834. package/build/types/chat/PromptInput/index.d.cts +47 -0
  835. package/build/types/chat/PromptInput/index.d.ts +47 -0
  836. package/build/types/chat/PromptSuggestions/index.d.cts +25 -0
  837. package/build/types/chat/PromptSuggestions/index.d.ts +25 -0
  838. package/build/types/chat/Prose/index.d.cts +15 -0
  839. package/build/types/chat/Prose/index.d.ts +15 -0
  840. package/build/types/chat/ReasoningBlock/index.d.cts +24 -0
  841. package/build/types/chat/ReasoningBlock/index.d.ts +24 -0
  842. package/build/types/chat/ReasoningText/index.d.cts +14 -0
  843. package/build/types/chat/ReasoningText/index.d.ts +14 -0
  844. package/build/types/chat/SegmentBar/index.d.cts +46 -0
  845. package/build/types/chat/SegmentBar/index.d.ts +46 -0
  846. package/build/types/chat/SourceList/index.d.cts +25 -0
  847. package/build/types/chat/SourceList/index.d.ts +25 -0
  848. package/build/types/chat/TerminalOutput/index.d.cts +25 -0
  849. package/build/types/chat/TerminalOutput/index.d.ts +25 -0
  850. package/build/types/chat/ToolCall/index.d.cts +41 -0
  851. package/build/types/chat/ToolCall/index.d.ts +41 -0
  852. package/build/types/chat/index.d.cts +26 -0
  853. package/build/types/chat/index.d.ts +26 -0
  854. package/build/types/combobox.type.d.cts +65 -0
  855. package/build/types/combobox.type.d.ts +65 -0
  856. package/build/types/common-element-props.type.d.cts +8 -0
  857. package/build/types/common-element-props.type.d.ts +8 -0
  858. package/build/types/helpers/class-name.helper.d.cts +3 -0
  859. package/build/types/helpers/class-name.helper.d.ts +3 -0
  860. package/build/types/helpers/component.helper.d.cts +13 -0
  861. package/build/types/helpers/component.helper.d.ts +13 -0
  862. package/build/types/helpers/label.helper.d.cts +12 -0
  863. package/build/types/helpers/label.helper.d.ts +12 -0
  864. package/build/types/hook.type.d.cts +36 -0
  865. package/build/types/hook.type.d.ts +36 -0
  866. package/build/types/link.type.d.cts +14 -0
  867. package/build/types/link.type.d.ts +14 -0
  868. package/build/types/positioning.type.d.cts +38 -0
  869. package/build/types/positioning.type.d.ts +38 -0
  870. package/build/types/theme.type.d.cts +197 -0
  871. package/build/types/theme.type.d.ts +197 -0
  872. package/build/types/types/common-element-props.type.d.cts +8 -0
  873. package/build/types/types/common-element-props.type.d.ts +8 -0
  874. package/build/types/types/link.type.d.cts +14 -0
  875. package/build/types/types/link.type.d.ts +14 -0
  876. package/build/types/types/theme.type.d.cts +197 -0
  877. package/build/types/types/theme.type.d.ts +197 -0
  878. package/package.json +905 -4
package/README.md CHANGED
@@ -1,3 +1,1024 @@
1
- # Temporary Holding Version
1
+ # @handijitcom/ui
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Accessible React components for Han Dijit applications: the site, the staff
4
+ panel and the desktop programs. Built on SCSS Modules and drawn with the tokens
5
+ of [`@handijit/design`](https://www.npmjs.com/package/@handijit/design).
6
+
7
+ - **One design source.** Colours, type, radii, spacing, motion and layers come
8
+ from `@handijit/design` (`--hd-*`). This package holds no palette of its own.
9
+ - **Light and dark.** Both themes ship; the choice rides on `data-theme`, the
10
+ contract `@handijit/design` defines.
11
+ - **The router is injected.** `next/link`, `react-router`, a plain `<a>`: the
12
+ application decides.
13
+ - **Text comes from outside, once.** The library invents no string in any
14
+ language; user-visible strings are defined in one place, on the provider.
15
+ - **Native elements are kept.** `<dialog>`, `<input type="range">`,
16
+ `<input type="radio">`: focus trapping, keyboard handling and screen reader
17
+ announcements come from the browser.
18
+ - **Three sub-entries, zero bytes in the main bundle.** `@handijitcom/ui/chat`
19
+ (chat and tool interfaces), `@handijitcom/ui/charts` (dependency-free SVG
20
+ charts), `@handijitcom/ui/scss` (token variables and mixins).
21
+
22
+ ```bash
23
+ npm install @handijitcom/ui @handijit/design @handijitcom/utils react-bootstrap-icons
24
+ ```
25
+
26
+ `react`, `react-dom`, `@handijit/design` (`^1.1.0`), `@handijitcom/utils`
27
+ (`^2.0.0`) and `react-bootstrap-icons` are **peer** dependencies. The design
28
+ package is a peer on purpose: an application has exactly one copy of the tokens,
29
+ and the site, the panel and the components all read the same custom properties.
30
+
31
+ Coming from 1.x? The migration is in [`CHANGELOG.md`](./CHANGELOG.md) under
32
+ 2.0.0, old name → new name for every token, variable, prop, variant and export.
33
+
34
+ ---
35
+
36
+ ## Quick start
37
+
38
+ ```tsx
39
+ // Once, at the root of the application. The order matters.
40
+ import '@handijit/design/tokens.css'; // the --hd-* custom properties, both themes
41
+ import '@handijit/design/fonts.css'; // optional: Archivo, Inter, IBM Plex Mono
42
+ import '@handijitcom/ui/styles.css';
43
+ ```
44
+
45
+ ```tsx
46
+ import { Button, Field, Input, UIVariant } from '@handijitcom/ui';
47
+
48
+ <Field label="E-posta" isRequired error={error}>
49
+ {props => <Input {...props} type="email" value={email} onChange={onChange} />}
50
+ </Field>
51
+
52
+ <Button variant={UIVariant.PRIMARY} isLoading={isSaving} onClick={save}>
53
+ Kaydet
54
+ </Button>;
55
+ ```
56
+
57
+ The provider is **optional**: the package works with no configuration. Links
58
+ are plain `<a>` elements and labels are whatever each call passes.
59
+
60
+ `@handijitcom/ui/styles.css` carries **no tokens**. Without
61
+ `@handijit/design/tokens.css` every colour resolves to nothing. `fonts.css` is
62
+ optional: load the three families your own way (`next/font`, self-hosted
63
+ `@font-face`) if you prefer, the tokens only name them.
64
+
65
+ ### A subset of the CSS
66
+
67
+ An application that wants less imports `base.css` (box model, `@keyframes`,
68
+ helpers) and the `components/<Name>/style.css` files of the components it uses,
69
+ and lets its own build join them:
70
+
71
+ ```scss
72
+ // styles/ui.scss: Sass inlines plain CSS files.
73
+ @use '@handijitcom/ui/base.css';
74
+ @use '@handijitcom/ui/components/Button/style.css';
75
+ @use '@handijitcom/ui/components/Chip/style.css';
76
+ ```
77
+
78
+ The JavaScript modules do not import CSS. That is deliberate: under Turbopack
79
+ every client boundary's CSS landed in its own file, and the number of
80
+ render-blocking files hurt LCP more than the bytes did.
81
+
82
+ Every component also has a subpath (`@handijitcom/ui/button`, `/chip-group`,
83
+ `/combobox`, …). The main entry is a pure re-export, so a bundler reaches the
84
+ same file either way.
85
+
86
+ The sub-entries have their own stylesheets, imported **after** `styles.css`:
87
+ `@handijitcom/ui/chat.css`, `@handijitcom/ui/charts.css`, `@handijitcom/ui/calendar.css`.
88
+
89
+ ---
90
+
91
+ ## Theme
92
+
93
+ ### The choice rides on `<html data-theme>`
94
+
95
+ ```html
96
+ <html data-theme="dark"></html>
97
+ ```
98
+
99
+ This is the contract of `@handijit/design`, not a setting of this package:
100
+ `data-theme="light"` or `"dark"` on the root element picks the theme, and
101
+ without the attribute `prefers-color-scheme` decides. An explicit choice is
102
+ never overridden by the system setting. The attribute also works on any
103
+ element, to draw one region in the other theme.
104
+
105
+ ### Write it before the first paint: `UiThemeScript`
106
+
107
+ ```tsx
108
+ // app/layout.tsx, a server layout, inside <head>.
109
+ import { UiThemeScript } from '@handijitcom/ui';
110
+
111
+ <head>
112
+ <UiThemeScript nonce={nonce} />
113
+ </head>;
114
+ ```
115
+
116
+ It renders the boot script of `@handijit/design` (`THEME_BOOT_SCRIPT`) as an
117
+ inline `<script>`. The script reads `localStorage["hd-theme"]` (`light` or
118
+ `dark`; anything else means "follow the system"), writes `data-theme` while the
119
+ HTML is still being parsed, and follows the system setting when it changes.
120
+ Without it a user who chose dark sees one light frame.
121
+
122
+ It is a component and not a function because a plain function exported from a
123
+ package with `'use client'` files cannot be called from a Next.js server layout.
124
+
125
+ ### Content Security Policy
126
+
127
+ The boot script is the **only** element this library injects. It injects no
128
+ `<style>` element at all.
129
+
130
+ | Policy style | What to do |
131
+ | ----------------- | --------------------------------------------------------------------------- |
132
+ | Nonce per request | `<UiThemeScript nonce={nonce} />` |
133
+ | Static hash | add `'${THEME_BOOT_SCRIPT_HASH}'` to `script-src`; the page stays cacheable |
134
+
135
+ ```ts
136
+ import { THEME_BOOT_SCRIPT_HASH } from '@handijitcom/ui'; // re-exported from @handijit/design
137
+
138
+ const policy = `script-src 'self' '${THEME_BOOT_SCRIPT_HASH}'`;
139
+ ```
140
+
141
+ `THEME_ATTRIBUTE`, `THEME_STORAGE_KEY`, `THEME_BOOT_SCRIPT` and
142
+ `THEME_BOOT_SCRIPT_HASH` are re-exports, not copies: the digest always matches
143
+ the script the installed design package ships.
144
+
145
+ Some components position or size themselves with inline `style` attributes
146
+ (popover coordinates, progress width, virtual list offsets). A nonce cannot
147
+ cover an attribute; a policy that restricts inline styles needs
148
+ `style-src-attr 'unsafe-inline'`.
149
+
150
+ ### Changing the theme
151
+
152
+ ```tsx
153
+ const { scheme, preference, setScheme, toggle, isReady } = useUiTheme();
154
+ ```
155
+
156
+ | Field | |
157
+ | ------------ | ---------------------------------------------------------------------- |
158
+ | `scheme` | the **resolved** theme, the one on screen (`light` \| `dark`) |
159
+ | `preference` | the user's **choice** (`light` \| `dark` \| `system`) |
160
+ | `setScheme` | stores the choice and applies it; `'system'` removes the stored choice |
161
+ | `toggle` | flips between light and dark |
162
+ | `isReady` | `false` on the server and on the first client frame |
163
+
164
+ A three-state switch (Light / Dark / System) reads `preference`; if it read
165
+ `scheme`, "System" would show "Dark" as selected.
166
+
167
+ `setScheme` writes where the boot script reads: `localStorage["hd-theme"]`
168
+ holds `light` or `dark`, "system" removes the key, and the attribute always
169
+ carries the resolved theme. A choice made through the hook therefore survives a
170
+ reload without a flash. Wait for `isReady` before drawing the switch: the
171
+ server does not know the choice, and a guessed switch mismatched on hydration
172
+ even when the guess was right.
173
+
174
+ ### Brand and product overrides
175
+
176
+ There is no theme prop. A value is changed where it is defined, as a custom
177
+ property, in the application's own stylesheet:
178
+
179
+ ```css
180
+ :root {
181
+ --hd-radius-md: 10px;
182
+ }
183
+
184
+ /* The same selector the design package uses, or the override loses on <html>. */
185
+ :root[data-theme='dark'] {
186
+ --hd-bg-page: #0b0d12;
187
+ }
188
+ ```
189
+
190
+ Change the tokens of `@handijit/design` sparingly: the contrast of every text
191
+ and focus pair is measured against the published values.
192
+
193
+ ### Overriding our CSS: `@layer ui`
194
+
195
+ All of the library's CSS is inside `@layer ui`. A layered rule **always loses**
196
+ to an unlayered one, whatever the specificity or source order:
197
+
198
+ ```css
199
+ /* This is enough; no `!important`, no `.app .card .card`. */
200
+ .my-card {
201
+ padding: 0;
202
+ }
203
+ ```
204
+
205
+ Without the layer your class and ours competed at the same specificity and the
206
+ winner was decided by source order, which is in your bundler's hands and need
207
+ not be the same in development and production.
208
+
209
+ ### Component variables
210
+
211
+ Besides the design tokens, a few components read custom properties of their own
212
+ (`var(--ui-…, default)`) so an application can restyle one component from
213
+ `:root` without a class selector:
214
+
215
+ | Component | Variables |
216
+ | ------------ | ------------------------------------------------------------------------------------------------------------------------------------- |
217
+ | focus ring | `--ui-ring-width` (2px) · `--ui-ring-offset` (2px; `-2px` pulls it inside) |
218
+ | inputs | `--ui-placeholder` (`text-3`) |
219
+ | modal scrim | `--ui-scrim-blur` |
220
+ | `Button` | `--ui-button-radius` · `-weight` · `-tracking` · `-wrap` (`nowrap`) |
221
+ | `Chip` | `--ui-chip-bg` · `-line` · `-fg` · `-radius` · `-weight` · `-selected-bg` · `-selected-line` · `-selected-fg` · `-selected-weight` |
222
+ | `Badge` | `--ui-badge-font` · `-weight` · `-tracking` · `-transform` · `-radius` · `-bg` · `-line` · `-fg` |
223
+ | `Stat` | `--ui-stat-label-font/-size/-weight/-tracking/-transform` · `-value-font/-weight/-tracking` · `-unit-font/-size/-tracking/-transform` |
224
+ | `Tabs` | `--ui-tab-weight` |
225
+ | `RadioCard` | `--ui-radio-card-line` · `-radius` |
226
+ | sticky parts | `--ui-header-height` (see below) |
227
+
228
+ ```css
229
+ :root {
230
+ --ui-ring-offset: -2px;
231
+ --ui-button-weight: 500;
232
+ --ui-chip-radius: var(--hd-radius-pill);
233
+ --ui-badge-font: var(--hd-font-mono);
234
+ --ui-badge-transform: uppercase;
235
+ }
236
+ ```
237
+
238
+ `--ui-*` is the prefix of component-private variables only. Every global value
239
+ (colour, size, radius, duration, layer) is `--hd-*`.
240
+
241
+ ### Reading tokens in JavaScript
242
+
243
+ ```tsx
244
+ const colors = useUiTokens(['border', 'chart-1']); // { border: '#…', 'chart-1': '#…' }
245
+ ```
246
+
247
+ `useUiTokens` returns the resolved values of design tokens and follows theme
248
+ changes; it is for canvas and third-party charts that cannot read `var()`. On
249
+ the server and the first frame it returns `currentColor`. The names are
250
+ `TokenName` of `@handijit/design`.
251
+
252
+ ---
253
+
254
+ ## Labels
255
+
256
+ The library cannot write "Close": it does not know the language, the tone or
257
+ the term. Spreading the same string over a hundred call sites is not right
258
+ either. Labels are given **once**, on the provider:
259
+
260
+ ```tsx
261
+ <UiProvider
262
+ labels={{
263
+ close: 'Kapat',
264
+ cancel: 'Vazgeç',
265
+ submit: 'Kaydet',
266
+ loading: 'Yükleniyor',
267
+ required: '(zorunlu)',
268
+ filters: 'Filtreler',
269
+ breadcrumb: 'Konum',
270
+ directoryJump: 'Harfe göre atla',
271
+ selectPlaceholder: 'Seçiniz',
272
+ locale: 'tr',
273
+ currency: '₺',
274
+ combobox: {
275
+ searchPlaceholder: 'Ara…',
276
+ emptyMessage: 'Sonuç bulunamadı',
277
+ loadingMessage: 'Aranıyor…',
278
+ clearLabel: 'Seçimi temizle',
279
+ },
280
+ pagination: { label: 'Sayfalar', previous: 'Önceki sayfa', next: 'Sonraki sayfa' },
281
+ quantity: { label: 'Adet', decrease: 'Adeti azalt', increase: 'Adeti artır' },
282
+ range: { min: 'En az', max: 'En çok' },
283
+ dataTable: { empty: 'Kayıt bulunamadı.', loading: 'Yükleniyor…' },
284
+ copyField: {
285
+ copy: value => `${value} kopyala`,
286
+ copied: value => `${value} kopyalandı`,
287
+ announcement: 'Panoya kopyalandı',
288
+ },
289
+ calendar: {
290
+ instructions: 'Oklarla gezinin, Enter ile açın; ⌘ ve oklarla taşıyın, ⌘ ⇧ ↑ ↓ ile kısaltıp uzatın.',
291
+ cancelled: 'İptal',
292
+ more: count => `+${count} daha`,
293
+ moved: (title, when) => `${title} taşındı: ${when}`,
294
+ },
295
+ rating: {
296
+ srLabel: (value, count) => `5 üzerinden ${value}${count ? `, ${count} değerlendirme` : ''}`,
297
+ starCount: star => `${star} yıldız`,
298
+ scale: { 1: 'Hiç memnun kalmadım', 2: 'Beklentimi karşılamadı', 3: 'İdare eder', 4: 'Memnun kaldım', 5: 'Çok memnun kaldım' },
299
+ },
300
+ }}
301
+ >
302
+ ```
303
+
304
+ **Resolution order: prop → provider → development warning.** A prop wins when
305
+ given; pass one where the wording depends on the context
306
+ (`closeLabel="Daha sonra"`).
307
+
308
+ Text that belongs to **one element** never goes on the provider, because it
309
+ differs at every call site: `Modal.title`, `ConfirmDialog.confirmLabel` ("Sil":
310
+ it must repeat the action; "OK" does not say what is being confirmed),
311
+ `IconButton.label`, `Select.label`, `Combobox.labels.placeholder`,
312
+ `TableCheckbox.label`, `ChipGroup.label`, `RatingInput.label`.
313
+
314
+ TypeScript cannot see what the provider carries at run time, so the props are
315
+ optional. With neither a prop nor a provider value the element stays unnamed
316
+ and, in development, the console says so once per key:
317
+
318
+ ```
319
+ [@handijitcom/ui] Eksik metin: Modal.closeLabel. Prop olarak geçin ya da
320
+ <UiProvider labels={…}> içinde bir kez tanımlayın.
321
+ ```
322
+
323
+ ---
324
+
325
+ ## Router
326
+
327
+ ```tsx
328
+ import NextLink from 'next/link';
329
+
330
+ <UiProvider linkComponent={NextLink}>…</UiProvider>;
331
+ ```
332
+
333
+ A component library cannot choose the router: importing `next/link` ties the
334
+ package to Next.js, importing `react-router` breaks another application.
335
+ Router-specific props travel through `linkProps`:
336
+
337
+ ```tsx
338
+ <Pagination buildHref={page => `?sayfa=${page}`} linkProps={{ scroll: false }} … />
339
+ ```
340
+
341
+ ### Back to the top after a page change
342
+
343
+ ```tsx
344
+ <Pagination page={page} totalPages={totalPages} scrollTo="top" … />
345
+ ```
346
+
347
+ It works in both modes (`buildHref` and `onPageChange`). The scroll is instant
348
+ and does **not** happen when the active page is pressed, when the click opens a
349
+ new tab (Ctrl/Cmd/middle button), or when the prop is absent. Do not pass it
350
+ for a list inside a page (reviews in a tab): it throws the reader to the top.
351
+
352
+ ### Sticky header
353
+
354
+ Components that stick while the page scrolls (`DirectoryGroup`,
355
+ `DirectoryJump`, a `DataTable` with a caption) read their offset from
356
+ `--ui-header-height`, **0 by default**. If the application has a sticky band,
357
+ write its real height:
358
+
359
+ ```tsx
360
+ useEffect(() => {
361
+ const observer = new ResizeObserver(([entry]) =>
362
+ document.documentElement.style.setProperty(
363
+ '--ui-header-height',
364
+ `${entry.contentRect.height}px`,
365
+ ),
366
+ );
367
+ observer.observe(headerRef.current!);
368
+ return () => observer.disconnect();
369
+ }, []);
370
+ ```
371
+
372
+ Do not write a constant: the band grows when the search box wraps on a phone
373
+ and changes when an announcement strip appears.
374
+
375
+ ---
376
+
377
+ ## Component catalogue
378
+
379
+ | Group | Components |
380
+ | --------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
381
+ | Action | `Button` · `IconButton` · `TextLink` · `Tooltip` · `Menu` · `ContextMenu` · `Popover` |
382
+ | Choice | `Chip` · `ChipGroup` · `SegmentedControl` · `Select` · `Combobox` · `Checkbox` · `Switch` · `Radio` · `RadioCard` · `RangeSlider` · `RatingInput` · `QuantityStepper` · `TableCheckbox` |
383
+ | Input | `Input` · `PasswordInput` · `Textarea` · `TagInput` · `DateField` (+ `DateRange`) · `FileUpload` · `Field` · `ScaledInput` · `MoneyInput` · `QuantityInput` · `RateInput` · `PercentInput` |
384
+ | Surface | `Card` (+ `CardMedia`, `CardOverlay`, `CardBody`, `CardFooter`) · `SummaryCard` · `Panel` (+ `PanelForm`, `PanelRow`) · `PageHeader` · `SectionHeader` · `Tile` · `Directory` (+ `DirectoryGroup`, `DirectoryRow`, `DirectoryJump`) · `Carousel` · `ScrollArea` · `Disclosure` · `Accordion` · `Tabs` |
385
+ | Feedback | `Alert` · `Badge` · `StatusDot` · `CodeBadge` · `Kbd` · `EmptyState` · `Skeleton` (+ `SkeletonCard`, `SkeletonRows`, `SkeletonTable`) · `Spinner` · `Progress` · `Steps` · `Divider` · `Avatar` · `Rating` · `Price` · `Stat` · `CopyField` · `Breadcrumb` · `ToastHub` (+ `ToastPortal`) |
386
+ | Modal | `Modal` · `Drawer` · `BottomSheet` · `ConfirmDialog` · `PromptDialog` · `CommandPalette` |
387
+ | Data | `Table` (+ `TableScroller`) · `DataTable` (+ `DataTableRow`) · `FilterBar` (+ `FilterBarField`) · `Pagination` · `Timeline` |
388
+ | Theme and hooks | `UiProvider` · `UiThemeScript` · `useUi` · `useUiTheme` · `useUiTokens` · `useAnnounce` · `useStickToBottom` · `usePositioning` · `useVirtualList` · `useListboxNavigation` · `hasOpenSurface` |
389
+ | Chat, `/chat` | `ChatThread` · `ChatMessage` · `PromptInput` · `PromptSuggestions` · `Prose` · `CodeBlock` · `ReasoningBlock` (+ `ReasoningText`) · `ToolCall` (+ `ToolCallSection`) · `TerminalOutput` · `SourceList` · `Citation` · `MessageActions` · `AppBar` · `ActionList` (+ `ActionListItem`) · `SegmentBar` · `Legend` · `DescriptionList` |
390
+ | Charts, `/charts` | `LineChart` · `AreaChart` · `BarChart` · `ComposedChart` · `PieChart` · `ScatterPlot` · `Heatmap` · `BoxPlot` · `Histogram` · `RadarChart` |
391
+ | Calendar, `/calendar` | `Calendar` |
392
+
393
+ ### Variants and sizes
394
+
395
+ | `UIVariant` | Use |
396
+ | ----------- | ----------------------------------------------------------------------- |
397
+ | `PRIMARY` | the one expected action of the screen: cobalt fill |
398
+ | `ACCENT` | the conversion action (download, try, subscribe): coral fill, only that |
399
+ | `SECONDARY` | a neutral second action: grey border, body text |
400
+ | `OUTLINE` | a cobalt frame: an encouraged navigation that is not the primary action |
401
+ | `SOFT` | a neutral fill: a secondary action inside a card |
402
+ | `GHOST` | no surface: toolbar and inline secondary actions, in the link colour |
403
+ | `DANGER` | a destructive action |
404
+ | `ON_BAND` | an action on the brand band (deep cobalt in both themes) |
405
+
406
+ `UISize`: `XSMALL` 28px · `SMALL` 32px · `MEDIUM` 40px · `LARGE` 48px. Fields
407
+ are 40px with 15px text on desktop and 44px with 16px text on a narrow or touch
408
+ screen (no iOS zoom, a full touch target).
409
+
410
+ `IconButton variant`: `ghost` · `secondary` · `outline` · `solid` · `accent` ·
411
+ `danger`. `secondary` and `outline` are drawn exactly like the `Button` variants
412
+ of the same name: the neutral frame and the cobalt frame. (Until 2.1 `outline`
413
+ was the neutral frame; use `secondary` for that look.)
414
+ `Badge tone`: `neutral` · `success` · `danger` · `warning` · `info` ·
415
+ `highlight`, each as `soft`, `solid` or `outline`.
416
+
417
+ ### The number of options picks the element
418
+
419
+ | Options | Element |
420
+ | ------------- | ---------------------------------------------------- |
421
+ | ≤7 | `ChipGroup`: all on screen, one tap |
422
+ | 5–20 | `Select`: a list without search |
423
+ | 20+ | `Combobox`: type to search |
424
+ | A range | `RangeSlider` (+ a number input for the exact value) |
425
+ | A single flag | `Checkbox` |
426
+
427
+ ### Dropdown or bottom sheet
428
+
429
+ `Select` and `Combobox` open a **dropdown anchored to the trigger** on every
430
+ screen except a narrow touch one, where they open a **bottom sheet**. The rule
431
+ is one media query, exported as `SHEET_MEDIA_QUERY`:
432
+ `(max-width: 640px) and (pointer: coarse)`. A narrow desktop window, an
433
+ Electron window included, keeps the dropdown.
434
+
435
+ ### Form fields (2.2)
436
+
437
+ Every field component speaks `Field`'s contract, so a form library binds them
438
+ the same way: spread `FieldChildProps` (`id`, `aria-invalid`,
439
+ `aria-describedby`, `required`) on the control and the label, error and hint
440
+ are linked for a screen reader.
441
+
442
+ ```tsx
443
+ <Field id="plan" label="Plan" hint="İstediğiniz zaman değiştirebilirsiniz" error={error}>
444
+ {props => (
445
+ <SegmentedControl {...props} label="Plan" options={PLANS} value={plan} onChange={setPlan} />
446
+ )}
447
+ </Field>
448
+ ```
449
+
450
+ - **`Field`** takes an `id` (the control's; the messages take `<id>-error` and
451
+ `<id>-hint`) and a `ReactNode` label.
452
+ - **`Checkbox`, `Switch`, `Radio`** take `error`: the message under the label,
453
+ `aria-invalid` and the link. A passed `aria-describedby` is **merged** with
454
+ the error and the hint, each id once (until 2.1 it replaced the hint).
455
+ - **Composites** take the four props of `FieldChildProps`. Where they land:
456
+
457
+ | Component | `id` | `aria-invalid` · `aria-describedby` | `required` |
458
+ | ------------------ | ---------------------------- | ----------------------------------- | -------------------------- |
459
+ | `QuantityStepper` | the number box | the number box | `aria-required` |
460
+ | `SegmentedControl` | the `radiogroup` | the `radiogroup` | `aria-required` |
461
+ | `ChipGroup` | the group | the group | single choice only |
462
+ | `RangeSlider` | the low thumb (`<id>-high`) | both thumbs | — (always holds a value) |
463
+ | `RatingInput` | the `<fieldset>` | the `<fieldset>` | native, on the five radios |
464
+ | `DateRange` | the start field (`<id>-end`) | both fields | native, on both fields |
465
+
466
+ - **`Select`** holds `null` (the placeholder shows) and, with **`Combobox`**,
467
+ takes `onBlur` (focus left the whole control: moving into its own list or
468
+ search box is not a blur) and a `ref` to the trigger.
469
+ - **Read-only**: `isReadOnly` on `Select`, `Combobox`, `QuantityStepper`,
470
+ `SegmentedControl`, `ChipGroup`, `RangeSlider`, `RatingInput`, `DateRange`
471
+ and `TagInput`. The value stays focusable and readable (`aria-readonly` where
472
+ the role has it); nothing changes it.
473
+ - **`SegmentedControl` and `ChipGroup`** take a group-wide `isDisabled`.
474
+ - **`TagInput`** takes `value` like every other field (`values` still works,
475
+ deprecated until 3.0) and `duplicateLabel` for the "already added"
476
+ announcement (or `labels.tagInput.duplicate`).
477
+ - **`Button`** has no default `type`: inside a `<form>` a button without one
478
+ submits, as in HTML. Write `type="button"` for every other button in a form.
479
+ The default becomes `"button"` in 3.0.
480
+
481
+ ### Notices, shortcuts and focus (2.3)
482
+
483
+ **Where the notices stand.** `ToastPortal` (and `ToastHub`) take a
484
+ `placement` — `bottom-end` (the default), `bottom-start`, `bottom-center`,
485
+ `top-end`, `top-start`, `top-center` — that holds at **every** width, and an
486
+ `inset` of CSS lengths that moves the stack off the window's edges. An
487
+ application with a sidebar keeps the notices over its content:
488
+
489
+ ```tsx
490
+ <ToastPortal placement="bottom-end" inset={{ inlineStart: 'var(--app-sidebar-width)' }} />
491
+ ```
492
+
493
+ `start` and `end` follow the writing direction. Until 2.2 the stack centred
494
+ its notices below 1025px whatever the application wanted.
495
+
496
+ **Which surfaces own the keyboard.** `hasOpenSurface()` is true while a
497
+ surface that takes the keyboard is open: a modal dialog (`Modal`, `Drawer`,
498
+ `BottomSheet`, `ConfirmDialog`, `PromptDialog`), the `CommandPalette`, an open
499
+ `Popover`. A visible toast and an open tooltip do **not** count: they still
500
+ close on `Escape` (newest first), but ⌘K and the application's shortcuts keep
501
+ working while they are on screen.
502
+
503
+ ```ts
504
+ // An application shortcut (⌘S, ⌘N, F2…)
505
+ if (hasOpenSurface()) return;
506
+ // A page-level Escape listener: a toast or a tooltip takes that key first
507
+ if (event.defaultPrevented || hasOpenSurface({ includeTransient: true })) return;
508
+ ```
509
+
510
+ **Opening focus.** `Modal`, `Drawer` and `Popover` focus, in this order, the
511
+ element of `initialFocus` (a ref inside the surface), the element marked
512
+ `data-ui-autofocus`, or the first focusable element (the close button skipped).
513
+ React's `autoFocus` does not work inside them: it runs before the dialog is
514
+ shown, and the browser ignores focus on a hidden element. In a `Modal` or a
515
+ `Drawer` a first text field keeps the focus on a desktop; only on a touch
516
+ screen does the dialog take it instead (no on-screen keyboard nobody asked
517
+ for; `BottomSheet` always does). Closing gives the focus back
518
+ to the element that opened the surface. A `Popover` gives its first focus once
519
+ it is placed (it is hidden until then), and Tab at either edge leaves it for a
520
+ real stop: past the last element to the one after the trigger, before the
521
+ first back to the trigger; it closes in both cases.
522
+
523
+ **Field heights.** `Combobox` takes `size="sm"`: at each size `Combobox`,
524
+ `Select` and `Input` are one height (40px and 32px). The placeholder of an
525
+ `isTechnical` input is drawn in the body font: it is an instruction, not code,
526
+ and in monospace it was cut short in a narrow scan field.
527
+
528
+ ### Number fields: scaled integers (2.4)
529
+
530
+ `ScaledInput`, `MoneyInput`, `QuantityInput`, `RateInput` and `PercentInput`
531
+ take and give a **scaled integer**, never a float: the integer types of the
532
+ data contract. `123450` with two decimal places is "1.234,50".
533
+
534
+ | Field | Value | Scale | At rest |
535
+ | --------------- | ------------------------ | ---------------------------- | ------------------- |
536
+ | `MoneyInput` | `Kurus` (the minor unit) | `minorDigits` (TRY 2, JPY 0) | "1.234,50 TL" |
537
+ | `QuantityInput` | `Qty4` | 4; `unitDigits` may be typed | "2,5 kg" |
538
+ | `RateInput` | `Rate6` | 6 | "34,1235" |
539
+ | `PercentInput` | `Pct2` | 2 | "%12,5" |
540
+ | `ScaledInput` | any (`Price4`, `Ppm`) | `scaleDigits` | `minFractionDigits` |
541
+
542
+ ```tsx
543
+ <Field label="Tutar" error={errors.amount}>
544
+ {props => (
545
+ <MoneyInput {...props} value={amount} onChange={setAmount} minorDigits={2} currency="TL" />
546
+ )}
547
+ </Field>
548
+ <QuantityInput aria-label="Miktar" value={qty} onChange={setQty} unitDigits={3} unit="kg" />
549
+ <PercentInput aria-label="KDV" value={vat} onChange={setVat} />
550
+ ```
551
+
552
+ - **`onChange` on every keystroke that changes the meaning**: the integer, or
553
+ `null` while the field is empty or holds a number still being typed ("-",
554
+ "1.250.0"). Left with such a text, the field keeps it and marks itself
555
+ `aria-invalid`.
556
+ - **The grammar is the one of app-kit's `parseDecimal`**: the comma is the
557
+ decimal point; with a comma, dots only group by three; without one, "1.250"
558
+ is a thousand two hundred and fifty, "0.250" and "12.5" are decimals (the dot
559
+ key of a number pad). Spaces and signs around the number are dropped, so a
560
+ pasted "1.234,56 TL" reads; a letter inside it does not.
561
+ - **A keystroke the field cannot hold is refused**, the text stays: a letter,
562
+ one decimal too many (`unitDigits={0}` refuses the comma), a minus when `min`
563
+ is 0 or more (the default), a value past `max` or past the safe integers.
564
+ Nothing is rounded.
565
+ - **At rest grouped, while focused plain and selected** ("1234,50"), so typing
566
+ replaces it. A value under a positive `min` is raised to it on blur or Enter.
567
+ - `Field`'s contract (`id`, `aria-invalid`, `aria-describedby`, `required`),
568
+ `ref`, `size`, `prefix`/`suffix`, `disabled` and `readOnly` pass to the
569
+ input. Right-aligned, tabular figures.
570
+ - The scale is never guessed: `minorDigits` comes from the currency table of
571
+ `@handijit/tr-codes`, `unitDigits` from the unit. Display elsewhere is
572
+ app-kit's formatters' (`formatMoney`, `formatQuantity` …); `Price` stays a
573
+ display of an already formatted text.
574
+
575
+ ### TypeScript resolution
576
+
577
+ The declarations resolve under every `moduleResolution`: `bundler`, `node16`
578
+ and `nodenext` (from ES modules and from CommonJS; the `require` condition has
579
+ `.d.cts` files). `npm run check:types` compiles a `nodenext` consumer against
580
+ the build with `skipLibCheck` off.
581
+
582
+ ---
583
+
584
+ ## Decisions the system carries
585
+
586
+ **Cobalt acts, coral converts, turquoise highlights.** Cobalt is the primary
587
+ action, the link, the selection and the focus ring. Coral is the conversion
588
+ button (`UIVariant.ACCENT` on `Button`, `variant="accent"` on `IconButton`) and
589
+ appears nowhere else. Turquoise marks a highlight or a live state
590
+ (`Badge tone="highlight"`, `Avatar tone="highlight"`); it is a fill, never body
591
+ text.
592
+ `colour-footprint.test.ts` turns a coral or turquoise token in any other
593
+ component's stylesheet into a failing test.
594
+
595
+ **One `PRIMARY` per screen.** `UIVariant` is a hierarchy of emphasis: two
596
+ filled buttons side by side and neither stands out.
597
+
598
+ **Status is a tint, an action is a fill or a border.** `Alert` and the soft
599
+ `Badge` sit on tinted grounds; when that distinction blurs, users try to click
600
+ status labels.
601
+
602
+ **Colour never carries meaning alone** (WCAG 1.4.1). Every state is also told
603
+ by a text, an icon or a mark: each `Alert` tone has its own icon, the required
604
+ star of `Field` has a readable text next to it.
605
+
606
+ **Icons come from `react-bootstrap-icons`, in the filled version.** A thin
607
+ outline disappears on a tint at small sizes. Where no filled twin exists (`X`,
608
+ `Check`, `Plus`, `Dash`) the heavy `*Lg` version is used, and `Caret*Fill`
609
+ instead of a chevron. Content icons (a category mark, a logo) always come from
610
+ outside as a `ReactNode` prop.
611
+
612
+ **Icon size is separate from text size.** The scale is its own set of values
613
+ (`$icon-xs` … `$icon-xl`: 14/16/18/20/24px); every box that carries an icon
614
+ takes its size from there.
615
+
616
+ **"Could not load" and "empty" are different states.** `DataTable` never draws
617
+ the empty message while `error` is set.
618
+
619
+ **A native element beats an imitation.** `<dialog>`, `<input type="range">`,
620
+ `<input type="radio">` are kept. The one exception is `<select>`: its list
621
+ cannot be styled and its mobile wheel looks like nothing else in the
622
+ application.
623
+
624
+ **A touch target is at least 44×44px** (WCAG 2.5.8). The visual box may be
625
+ smaller; an invisible overlay keeps the area.
626
+
627
+ **Motion uses the design durations** (`fast` 120ms, `base` 200ms, `slow`
628
+ 320ms for a sheet) and every animation honours `prefers-reduced-motion`.
629
+
630
+ **The focus ring is `:focus-visible`**, 2px of cobalt with a 2px offset.
631
+
632
+ ---
633
+
634
+ ## Next.js App Router
635
+
636
+ The package draws the `'use client'` boundary **inside itself, per file**:
637
+ components without hooks (`Alert`, `Badge`, `Button`, `Card`, `Chip`,
638
+ `Divider`, `EmptyState`, `IconButton`, `Kbd`, `PageHeader`, `Panel`,
639
+ `Progress`, `SectionHeader`, `Skeleton`, `StatusDot`, `SummaryCard`,
640
+ `TextLink`, `Tile`) render as server components and send no JavaScript; the
641
+ interactive ones carry their own directive. No thin `Client*` wrappers are
642
+ needed, and `UIVariant` / `UISize` can be imported on the server.
643
+
644
+ ```ts
645
+ // next.config.ts: the main entry is pure, so imports short-circuit to the component file.
646
+ const nextConfig = {
647
+ experimental: { optimizePackageImports: ['@handijitcom/ui'] },
648
+ };
649
+ ```
650
+
651
+ ```tsx
652
+ // app/layout.tsx, a server component
653
+ import '@handijit/design/tokens.css';
654
+ import '@handijit/design/fonts.css';
655
+ import '@handijitcom/ui/styles.css';
656
+ import '@handijitcom/ui/chat.css'; // only if /chat is used
657
+ import '@handijitcom/ui/charts.css'; // only if /charts is used
658
+ import { UiProvider, UiThemeScript } from '@handijitcom/ui';
659
+ import NextLink from 'next/link';
660
+
661
+ export default function RootLayout({ children }: { children: React.ReactNode }) {
662
+ return (
663
+ <html lang="tr" suppressHydrationWarning>
664
+ <head>
665
+ <UiThemeScript />
666
+ </head>
667
+ <body>
668
+ <UiProvider linkComponent={NextLink}>{children}</UiProvider>
669
+ </body>
670
+ </html>
671
+ );
672
+ }
673
+ ```
674
+
675
+ `suppressHydrationWarning`: the boot script adds an attribute to `<html>` that
676
+ the server did not write; the warning is silenced for that element only.
677
+
678
+ ## Electron
679
+
680
+ The same three stylesheet imports in the renderer entry, and the boot script in
681
+ the HTML shell. With the usual strict policy of a packaged program, allow the
682
+ script by hash (`THEME_BOOT_SCRIPT_HASH`), and keep `style-src-attr
683
+ 'unsafe-inline'` for the positioned components (and for `ToastPortal`'s
684
+ `inset`). With a mouse or a trackpad `Select` and `Combobox` open dropdowns
685
+ whatever the window width. A window with a sidebar gives `ToastPortal` an
686
+ `inset` (see "Notices, shortcuts and focus").
687
+
688
+ ---
689
+
690
+ ## Chat components: `@handijitcom/ui/chat`
691
+
692
+ A separate entry for chat and tool interfaces; it adds nothing to the main
693
+ bundle or to `styles.css`.
694
+
695
+ ```tsx
696
+ import '@handijitcom/ui/styles.css';
697
+ import '@handijitcom/ui/chat.css'; // AFTER styles.css
698
+
699
+ import { ChatMessage, ChatThread, PromptInput } from '@handijitcom/ui/chat';
700
+
701
+ <ChatThread
702
+ isStreaming={isStreaming}
703
+ dock={
704
+ <PromptInput
705
+ value={draft}
706
+ onChange={setDraft}
707
+ onSubmit={send}
708
+ onStop={stop}
709
+ isBusy={isStreaming}
710
+ placeholder="Mesajınızı yazın…"
711
+ />
712
+ }
713
+ >
714
+ {messages.map(message => (
715
+ <ChatMessage key={message.id} author={message.author}>
716
+ {message.content}
717
+ </ChatMessage>
718
+ ))}
719
+ </ChatThread>;
720
+ ```
721
+
722
+ Labels come from the same provider, under `labels.chat`:
723
+
724
+ ```tsx
725
+ <UiProvider
726
+ labels={{
727
+ chat: {
728
+ thread: 'Sohbet',
729
+ send: 'Gönder',
730
+ stop: 'Durdur',
731
+ scrollToLatest: 'En yeniye in',
732
+ replyReady: 'Yanıt hazır',
733
+ messageActions: 'Mesaj eylemleri',
734
+ sources: 'Kaynaklar',
735
+ citation: index => `Kaynak ${index}`,
736
+ stderr: 'hata çıktısı',
737
+ toolStatus: { running: 'çalışıyor', ok: 'tamamlandı', error: 'hata', aborted: 'durduruldu', interrupted: 'kesildi' },
738
+ codeCopy: language => `${language} kodunu kopyala`,
739
+ codeCopied: 'Kod kopyalandı',
740
+ },
741
+ }}
742
+ >
743
+ ```
744
+
745
+ `CodeBlock` highlights and formats the code itself, with no dependency:
746
+
747
+ ```tsx
748
+ <CodeBlock language="json" code={JSON.stringify(payload)} />
749
+ ```
750
+
751
+ JSON is re-indented with two spaces (values are kept as text: large numbers are
752
+ not rounded) and blank lines at the edges are dropped; other languages keep
753
+ their indentation. More than 30 languages are recognised; an unknown one is
754
+ drawn plain. The token colours are design tokens (keyword `primary-text`,
755
+ string `success-fg`, number `warning-fg`, type `highlight-text`), so they
756
+ follow the theme and stay inside the measured text pairs. For Shiki-grade
757
+ accuracy pass pre-highlighted HTML as `html` (its safety is yours).
758
+
759
+ Markdown parsing stays in the application: `Prose` is a typography container
760
+ only.
761
+
762
+ ## Charts: `@handijitcom/ui/charts`
763
+
764
+ Ten SVG charts with no dependency (drawing, scales and statistics live in the
765
+ library).
766
+
767
+ ```tsx
768
+ import '@handijitcom/ui/styles.css';
769
+ import '@handijitcom/ui/charts.css'; // AFTER styles.css
770
+
771
+ import { BarChart, LineChart, PieChart } from '@handijitcom/ui/charts';
772
+
773
+ <LineChart
774
+ label="Aylık gelir ve gider"
775
+ description="Gelir ekimde zirve yaptı"
776
+ xKey="month"
777
+ data={[
778
+ { month: 'Oca', revenue: 120, cost: 90 },
779
+ { month: 'Şub', revenue: 180, cost: null }, // null = no data: the line BREAKS
780
+ ]}
781
+ series={[
782
+ { key: 'revenue', label: 'Gelir' },
783
+ { key: 'cost', label: 'Gider', format: value => `${value} ₺` },
784
+ ]}
785
+ />;
786
+ ```
787
+
788
+ | Chart | When |
789
+ | ------------------------- | --------------------------------------------------------------- |
790
+ | `LineChart` · `AreaChart` | a trend over time; `AreaChart isStacked` for parts of a total |
791
+ | `BarChart` | comparing categories; `orientation="horizontal"` for long names |
792
+ | `ComposedChart` | bars and a line; a different unit on `axis: 'right'` |
793
+ | `PieChart` | at most six parts of a whole (`variant="donut"` by default) |
794
+ | `ScatterPlot` | the relation of two variables; a bubble with `size` |
795
+ | `Heatmap` | density on two categorical axes (day × hour) |
796
+ | `BoxPlot` · `Histogram` | distribution: comparing groups · the shape of one variable |
797
+ | `RadarChart` | a few series on one set of axes, all on the SAME scale |
798
+
799
+ Every chart is a single tab stop: arrows walk the items (each is announced),
800
+ `Home` / `End` go to the ends, `Escape` clears the highlight. A screen reader
801
+ also reads the chart as a hidden **data table**. Width is measured from the
802
+ container (or fixed with `width`); numbers are formatted with `labels.locale`.
803
+ Colours come from the data series of the design (`tone`: `chart-1` … `chart-6`,
804
+ `muted`).
805
+
806
+ ## Calendar: `@handijitcom/ui/calendar`
807
+
808
+ The base of app-kit's `takvim` pattern (2.4): a **time grid** (days as
809
+ columns, the drawn hours as rows; with `resources` a column per teacher, room
810
+ or technician under every day) or a **month** of day cells. A separate entry,
811
+ so the main entry's budget does not grow (5,9 kB gzip, `calendar.css` 2 kB).
812
+
813
+ ```tsx
814
+ import '@handijitcom/ui/styles.css';
815
+ import '@handijitcom/ui/calendar.css'; // AFTER styles.css
816
+
817
+ import { Calendar, type CalendarEvent } from '@handijitcom/ui/calendar';
818
+
819
+ <Calendar
820
+ label="Ders planı"
821
+ days={week} // [{ date: '2026-11-09', label: 'Pazartesi 9 Kasım', shortLabel: 'Pzt 9', isToday, isOff }]
822
+ resources={rooms} // optional: [{ id: 'r1', label: 'Derslik 1', detail: '7 / 8', tone: 'warning' }]
823
+ bands={[{ label: 'Sabah', start: '08:00', end: '12:00' }]} // optional, 2.5
824
+ events={lessons} // [{ id, title, start: '2026-11-09T09:00', end: '2026-11-09T10:30', resourceId, tone, isCancelled, isLocked }]
825
+ startTime="08:00"
826
+ endTime="22:00"
827
+ slotMinutes={15}
828
+ onEventChange={change => (conflicts(change) ? toast(why(change)) : save(change))}
829
+ onEventOpen={id => openLesson(id)}
830
+ onSlotSelect={slot => newLesson(slot)}
831
+ onExternalDrop={({ data, start, resourceId }) => assign(data, start, resourceId)}
832
+ renderEvent={lesson => `${lesson.title} · ${fill(lesson)}`}
833
+ />;
834
+ ```
835
+
836
+ - **Times are the data contract's wall clock** (`YYYY-MM-DDTHH:MM`, the firm's
837
+ time zone) and **days come from the caller**: the calendar converts no time
838
+ zone and does no day arithmetic (that is `@handijit/tr`'s). The month takes
839
+ its 35 or 42 `days` (`isOutside` for the neighbouring months), `weekdays`,
840
+ `maxEventsPerDay` (3; the rest behind "+N" → `onDaySelect`) and
841
+ `selectedDate`.
842
+ - **Controlled.** A drop, a stretch or a keyboard move calls `onEventChange`
843
+ with `{ id, start, end, resourceId }`; the move stands when `events` carries
844
+ it. A refused move (a conflict) is simply not applied: say why in a toast.
845
+ Without `onEventChange` the calendar only shows and opens.
846
+ - **Pointer.** Drag the body to move (snapped to `slotMinutes`, into another
847
+ column), the bottom edge to stretch; a preview shows where it lands, `Escape`
848
+ gives up. A multi-day or `isLocked` event is drawn but not moved.
849
+ `onExternalDrop` takes a drop from outside (an unassigned job), with its
850
+ `text/plain` drag data.
851
+ - **Keyboard.** One event is in the tab order; ← ↑ → ↓ go to the neighbouring
852
+ event, Enter opens it, ⌘/Ctrl + arrows move it one slot or one column (month:
853
+ a day or a week), ⌘/Ctrl ⇧ ↑ ↓ shorten or lengthen it. The new place is
854
+ announced (`labels.calendar.moved`) and the focus follows the event.
855
+ - **Resource headers and bands (2.5).** A resource's `detail` is a second
856
+ header line and its `tone` tints the header (Teknik Servis: `warning` at 80%
857
+ of the day's capacity — the percentage goes in `detail`, colour is never
858
+ alone); `renderResource` draws the header instead. `bands` (`CalendarBand`:
859
+ `{ label, start, end }`, `HH:MM`) draws named stretches of the day ("Sabah",
860
+ "Öğle", "Akşam") as a labelled strip beside the hours and a shaded stretch
861
+ across the columns, under the events; clipped to the drawn hours, they catch
862
+ no click or drop. The band labels are visual only (the hours column is
863
+ `aria-hidden`); every event's name already carries its time.
864
+ - **Colour is never alone**: `tone` tints an event; a cancelled one is struck
865
+ through _and_ read as `labels.calendar.cancelled`; today is underlined and
866
+ `aria-current="date"`.
867
+ - **Budgets of the pilots**, measured in jsdom (`__tests__/calendar/performance.test.tsx`):
868
+ a week of 500 lessons draws in ~40–100 ms (budget 300 ms); a day of 20
869
+ technicians and 200 jobs in ~16–30 ms (budget 500 ms). No virtualisation:
870
+ the grid is bounded by its days and hours.
871
+ - Sizes are component variables: `--ui-calendar-hour-height` (3rem),
872
+ `--ui-calendar-column-min` (7rem), `--ui-calendar-gutter` (3.5rem; 4.75rem
873
+ with `bands`).
874
+
875
+ ## SCSS API: `@handijitcom/ui/scss`
876
+
877
+ Variables and mixins for the application's own stylesheets. The variables are
878
+ `var(--hd-…)` references, so the theme turns at run time; the module emits no
879
+ rules.
880
+
881
+ ```scss
882
+ @use '@handijitcom/ui/scss' as ui;
883
+
884
+ .panel {
885
+ padding: ui.$space-4;
886
+ border: 1px solid ui.$border;
887
+ border-radius: ui.$radius-md;
888
+
889
+ @include ui.type(small);
890
+ @include ui.focus-ring;
891
+
892
+ @media (max-width: ui.$breakpoint-md) {
893
+ padding: ui.$space-3;
894
+ }
895
+ }
896
+ ```
897
+
898
+ **The values are custom properties, so SCSS arithmetic does not work.**
899
+ `$space-8 - $space-2` compiles to `var(--a)-var(--b)` without an error and the
900
+ browser drops the declaration. Write the calculation in `calc()`:
901
+
902
+ ```scss
903
+ padding-inline-start: calc(#{ui.$space-8} - #{ui.$space-2});
904
+ margin-inline: calc(-1 * #{ui.$space-2});
905
+ ```
906
+
907
+ Sass colour functions do not work either; mix in CSS:
908
+ `color-mix(in srgb, #{ui.$primary} 20%, transparent)`.
909
+
910
+ Next.js (Turbopack and webpack) resolves the package `exports`. For a compiler
911
+ that cannot, add `node_modules/@handijitcom/ui/build/scss` to `loadPaths` and
912
+ write `@use 'index' as ui`. An application that needs only the tokens can use
913
+ `@handijit/design/tokens.scss` directly.
914
+
915
+ ---
916
+
917
+ ## Development
918
+
919
+ ```bash
920
+ nvm use # .nvmrc → 24
921
+ npm install
922
+ npm run verify # contrast → typecheck → lint → coverage → build → types → API → animations → size
923
+ npm run playground # component gallery → http://localhost:5273
924
+ ```
925
+
926
+ | Command | |
927
+ | ------------------------ | ------------------------------------------------------------------------------------------- |
928
+ | `npm run build` | `build/`: main entry, `chat`, `charts` (ESM + CJS + `.d.ts` / `.d.cts` + CSS), `build/scss` |
929
+ | `npm run test` | Jest + Testing Library + `jest-axe` |
930
+ | `npm run test:coverage` | coverage gate over all of `src/`: lines 89 · statements 86 · functions 80 · branches 75 |
931
+ | `npm run check:contrast` | WCAG contrast of the pairs the components draw, both themes (254 pairs) |
932
+ | `npm run check:api` | public API guard: four entries, four baselines (main 163 · chat 30 · charts 22 · SCSS 227) |
933
+ | `npm run check:types` | the built declarations as a `nodenext` consumer sees them, ESM and CJS, `skipLibCheck` off |
934
+ | `npm run size` | bundle budget (`size-limit`) |
935
+ | `npm run exports` | writes the `exports` map of `package.json` (`check:exports` verifies; last step of `build`) |
936
+ | `npm run lint` | ESLint (TypeScript) + stylelint (SCSS) |
937
+ | `npm run format:check` | Prettier over `src`, `playground`, `__tests__` |
938
+ | `npm run typecheck` | `tsc --noEmit` |
939
+ | `npm run test:visual` | visual regression (Playwright); NOT part of `verify`, see below |
940
+ | `npm run test:device` | iOS (WebKit) and Android (Chromium) behaviour guards |
941
+
942
+ ### What the guards protect
943
+
944
+ - **Design contract** (`__tests__/styles/design-contract.test.ts`): every
945
+ `--hd-*` name in the compiled stylesheets, the SCSS aliases and the
946
+ TypeScript sources exists in the installed `@handijit/design`; breakpoints
947
+ and layers match it; no stylesheet declares an `--hd-*` property or carries
948
+ a literal colour.
949
+ - **Colour footprint** (`colour-footprint.test.ts`): coral and turquoise tokens
950
+ are used only by the components on a justified allow-list.
951
+ - **Contrast**: text ≥ 4.5:1, icons and the focus ring ≥ 3:1, measured on the
952
+ values of the installed design package for every pair a component draws.
953
+ - **Accessibility scan** (`__tests__/components/a11y.test.tsx`): every exported
954
+ component in each meaningful state. A new component missing from the ledger
955
+ fails the test.
956
+ - **Keyboard contract**: the key matrix is in each component's JSDoc; its guard
957
+ is `keyboard.test.tsx`.
958
+ - **Control sizes** (`control-size.test.tsx`): `Input`, `DateField`,
959
+ `DateRange` and `Select` take their size from one mixin, and a text field
960
+ never drops below 16px on a narrow or touch screen.
961
+ - **Public API**: the exports of each entry are compared with a baseline. A
962
+ dropped name is **breaking** and surfaces as a build error at the consumer's
963
+ next install. For a deliberate change: `npm run build`, then
964
+ `node scripts/check-api.mjs --update`, and a line in the CHANGELOG.
965
+ - **Bundle size**: budgets in `.size-limit.js` (main entry 44 kB, `styles.css`
966
+ 25 kB gzip). When `size-limit` turns red, measure what was added before
967
+ raising a limit.
968
+ - **Sub-entry boundary**: `chat` and `charts` import the main entry by PACKAGE
969
+ NAME only (`subentry-boundary.test.ts`); a relative path would bundle a
970
+ second copy of the provider context and the modal stack.
971
+ - **No fading with opacity**: any `opacity` other than `0` / `1` fails
972
+ (`passive-opacity.test.ts`); a disabled state is drawn with tokens.
973
+ - **Focus ring and motion scale**: stylelint rejects `outline` outside the
974
+ `focus-ring` mixin and raw durations in component SCSS.
975
+
976
+ ### Device guards: `npm run test:device`
977
+
978
+ ```bash
979
+ npm run test:device:install # WebKit and Chromium binaries (once)
980
+ npm run test:device # ios (iPhone 14 · WebKit) + android (Pixel 7 · Chromium)
981
+ ```
982
+
983
+ The most expensive bugs of this repository were invisible on a desktop: a
984
+ collapsed sheet body, a bottom bar under the keyboard. They are layout and
985
+ paint bugs and can only be measured in a real layout engine. This run compares
986
+ numbers (height, overflow, focus, computed style), not pixels, so it needs no
987
+ reference files.
988
+
989
+ **Visual regression is not part of `verify`**: screenshots depend on the
990
+ platform (font rasterisation), and a reference made on macOS fails on the
991
+ ubuntu CI runner. References are stored per platform under
992
+ `__tests__/e2e/__screenshots__/{platform}/`.
993
+
994
+ > When refreshing references write `--update-snapshots=all`, not the bare
995
+ > flag: the bare flag writes only **missing** files and leaves mismatching ones
996
+ > in place while the run reports success.
997
+
998
+ ### Releasing
999
+
1000
+ Every push to `master` runs `.github/workflows/publish.yml`: it checks the formatting,
1001
+ runs `npm run verify`, and publishes with the `NPM_ACCESS_TOKEN` repository
1002
+ secret and npm provenance **when `package.json` carries a version that is not
1003
+ on npm yet**; otherwise it skips. A published version gets a `vX.Y.Z` tag and a
1004
+ GitHub Release whose notes are that version's section of `CHANGELOG.md`, so the
1005
+ section must exist before the push.
1006
+
1007
+ ## Design contract
1008
+
1009
+ Which element to use when, the surface ladder, colour roles, typography roles,
1010
+ accessibility thresholds and the motion scale are in **`CLAUDE.md`**. That file
1011
+ is normative for applications that use the library too. The visual language
1012
+ itself (palette, type, logo) belongs to `@handijit/design`.
1013
+
1014
+ <!-- handijit:about:start -->
1015
+ ## About Han Dijit
1016
+
1017
+ `@handijitcom/ui` is built and maintained by **[Han Dijit](https://www.handijit.com)**, a software company serving businesses across Türkiye: web, e-commerce, mobile, artificial intelligence, cyber security and enterprise software projects.
1018
+
1019
+ [www.handijit.com](https://www.handijit.com) · [All Han Dijit packages on npm](https://www.npmjs.com/org/handijitcom)
1020
+ <!-- handijit:about:end -->
1021
+
1022
+ ## License
1023
+
1024
+ MIT