@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
@@ -0,0 +1,50 @@
1
+ "use client";
2
+ import { jsxs as o, jsx as i } from "react/jsx-runtime";
3
+ import { memo as k, forwardRef as u, useId as y } from "react";
4
+ import { ExclamationCircleFill as I } from "react-bootstrap-icons";
5
+ import { idList as N } from "../../helpers/aria.helper.js";
6
+ import { cx as C } from "../../helpers/class-name.helper.js";
7
+ import { named as $ } from "../../helpers/component.helper.js";
8
+ const e = {"checkbox":"ui-checkbox-FaFCj","checkbox__input":"ui-checkbox__input-nTHne","checkbox__body":"ui-checkbox__body-VAEW2","checkbox__label":"ui-checkbox__label-sSNZY","checkbox__hint":"ui-checkbox__hint-ish-J","checkbox__error":"ui-checkbox__error-J6StW"};
9
+ const j = /* @__PURE__ */ u(
10
+ ({
11
+ label: t,
12
+ hint: r,
13
+ error: a,
14
+ className: n,
15
+ id: m,
16
+ testId: b,
17
+ "aria-describedby": h,
18
+ "aria-invalid": p,
19
+ ...x
20
+ }, f) => {
21
+ const _ = y(), c = m ?? _, s = `${c}-label`, d = `${c}-hint`, l = `${c}-error`;
22
+ return /* @__PURE__ */ o("label", { className: C(e.checkbox, n), "data-testid": b, children: [
23
+ /* @__PURE__ */ i(
24
+ "input",
25
+ {
26
+ ref: f,
27
+ type: "checkbox",
28
+ id: c,
29
+ className: e.checkbox__input,
30
+ "aria-labelledby": s,
31
+ "aria-describedby": N(a && l, r && d, h),
32
+ "aria-invalid": a ? !0 : p,
33
+ ...x
34
+ }
35
+ ),
36
+ /* @__PURE__ */ o("span", { className: e.checkbox__body, children: [
37
+ /* @__PURE__ */ i("span", { id: s, className: e.checkbox__label, children: t }),
38
+ r && /* @__PURE__ */ i("span", { id: d, className: e.checkbox__hint, children: r }),
39
+ a && /* @__PURE__ */ o("span", { id: l, className: e.checkbox__error, role: "alert", children: [
40
+ /* @__PURE__ */ i(I, { "aria-hidden": !0 }),
41
+ a
42
+ ] })
43
+ ] })
44
+ ] });
45
+ }
46
+ ), q = /* @__PURE__ */ k(/* @__PURE__ */ $(j, "Checkbox"));
47
+ export {
48
+ q as default
49
+ };
50
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../src/components/Checkbox/index.tsx"],"sourcesContent":["'use client';\n\nimport { forwardRef, type InputHTMLAttributes, memo, type ReactNode, useId } from 'react';\n\nimport { ExclamationCircleFill } from 'react-bootstrap-icons';\n\nimport { idList } from '../../helpers/aria.helper';\nimport { cx } from '../../helpers/class-name.helper';\nimport { named } from '../../helpers/component.helper';\n\nimport styles from './index.module.scss';\n\ntype Props = Omit<InputHTMLAttributes<HTMLInputElement>, 'type'> & {\n label: ReactNode;\n /** Etiketin altındaki açıklama; `aria-describedby` ile bağlanır. */\n hint?: string;\n /**\n * The error under the label (2.2): the box is marked invalid (`aria-invalid`) and the message is\n * linked with `aria-describedby`, next to the hint and any `aria-describedby` passed in.\n */\n error?: string;\n testId?: string;\n};\n\n/** Onay kutusu. */\nconst Checkbox = /*#__PURE__*/ forwardRef<HTMLInputElement, Props>(\n (\n {\n label,\n hint,\n error,\n className,\n id,\n testId,\n 'aria-describedby': describedBy,\n 'aria-invalid': isInvalid,\n ...rest\n },\n ref,\n ) => {\n /* ⚠ İpucu ADA değil AÇIKLAMAYA bağlanır — gerekçe `Switch`te yazılı. */\n const generatedId = useId();\n const baseId = id ?? generatedId;\n const labelId = `${baseId}-label`;\n const hintId = `${baseId}-hint`;\n const errorId = `${baseId}-error`;\n\n return (\n <label className={cx(styles.checkbox, className)} data-testid={testId}>\n <input\n ref={ref}\n type=\"checkbox\"\n id={baseId}\n className={styles.checkbox__input}\n aria-labelledby={labelId}\n /* 2.2: the links are MERGED; a passed `aria-describedby` no longer drops the hint. */\n aria-describedby={idList(error && errorId, hint && hintId, describedBy)}\n aria-invalid={error ? true : isInvalid}\n {...rest}\n />\n <span className={styles.checkbox__body}>\n <span id={labelId} className={styles.checkbox__label}>\n {label}\n </span>\n {hint && (\n <span id={hintId} className={styles.checkbox__hint}>\n {hint}\n </span>\n )}\n {error && (\n <span id={errorId} className={styles.checkbox__error} role=\"alert\">\n <ExclamationCircleFill aria-hidden />\n {error}\n </span>\n )}\n </span>\n </label>\n );\n },\n);\n\nexport default /*#__PURE__*/ memo(/*#__PURE__*/ named(Checkbox, 'Checkbox')) as typeof Checkbox;\n"],"names":["Checkbox","forwardRef","label","hint","error","className","id","testId","describedBy","isInvalid","rest","ref","generatedId","useId","baseId","labelId","hintId","errorId","jsxs","cx","styles","jsx","idList","ExclamationCircleFill","index","memo","named"],"mappings":";;;;;;;;AAwBA,MAAMA,IAAyB,gBAAAC;AAAA,EAC7B,CACE;AAAA,IACE,OAAAC;AAAA,IACA,MAAAC;AAAA,IACA,OAAAC;AAAA,IACA,WAAAC;AAAA,IACA,IAAAC;AAAA,IACA,QAAAC;AAAA,IACA,oBAAoBC;AAAA,IACpB,gBAAgBC;AAAA,IAChB,GAAGC;AAAA,EAAA,GAELC,MACG;AAEH,UAAMC,IAAcC,EAAA,GACdC,IAASR,KAAMM,GACfG,IAAU,GAAGD,CAAM,UACnBE,IAAS,GAAGF,CAAM,SAClBG,IAAU,GAAGH,CAAM;AAEzB,WACE,gBAAAI,EAAC,WAAM,WAAWC,EAAGC,EAAO,UAAUf,CAAS,GAAG,eAAaE,GAC7D,UAAA;AAAA,MAAA,gBAAAc;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,KAAAV;AAAA,UACA,MAAK;AAAA,UACL,IAAIG;AAAA,UACJ,WAAWM,EAAO;AAAA,UAClB,mBAAiBL;AAAA,UAEjB,oBAAkBO,EAAOlB,KAASa,GAASd,KAAQa,GAAQR,CAAW;AAAA,UACtE,gBAAcJ,IAAQ,KAAOK;AAAA,UAC5B,GAAGC;AAAA,QAAA;AAAA,MAAA;AAAA,MAEN,gBAAAQ,EAAC,QAAA,EAAK,WAAWE,EAAO,gBACtB,UAAA;AAAA,QAAA,gBAAAC,EAAC,UAAK,IAAIN,GAAS,WAAWK,EAAO,iBAClC,UAAAlB,GACH;AAAA,QACCC,uBACE,QAAA,EAAK,IAAIa,GAAQ,WAAWI,EAAO,gBACjC,UAAAjB,EAAA,CACH;AAAA,QAEDC,uBACE,QAAA,EAAK,IAAIa,GAAS,WAAWG,EAAO,iBAAiB,MAAK,SACzD,UAAA;AAAA,UAAA,gBAAAC,EAACE,GAAA,EAAsB,eAAW,GAAA,CAAC;AAAA,UAClCnB;AAAA,QAAA,EAAA,CACH;AAAA,MAAA,EAAA,CAEJ;AAAA,IAAA,GACF;AAAA,EAEJ;AACF,GAEAoB,IAA6B,gBAAAC,EAAmB,gBAAAC,EAAM1B,GAAU,UAAU,CAAC;"}
@@ -0,0 +1 @@
1
+ @layer ui{.ui-checkbox-FaFCj{display:flex;align-items:flex-start;gap:var(--hd-space-3);cursor:pointer}.ui-checkbox__input-nTHne{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:inline-grid;place-content:center;flex-shrink:0;width:18px;height:18px;margin:0;border:1.5px solid var(--hd-border-control);border-radius:var(--hd-radius-xs);background-color:var(--hd-bg-surface);cursor:pointer;transition:background-color var(--hd-duration-fast) var(--hd-ease-standard),border-color var(--hd-duration-fast) var(--hd-ease-standard)}.ui-checkbox__input-nTHne:before{content:"";width:10px;height:10px;background-color:var(--hd-on-primary);scale:0;transition:scale var(--hd-duration-fast) var(--hd-ease-standard);clip-path:polygon(14% 44%,0 65%,50% 100%,100% 16%,80% 0%,43% 62%)}.ui-checkbox__input-nTHne:hover:not(:disabled){border-color:var(--hd-text-2)}.ui-checkbox__input-nTHne[aria-invalid=true]:not(:disabled){border-color:var(--hd-danger-solid)}.ui-checkbox__input-nTHne:checked,.ui-checkbox__input-nTHne:indeterminate{background-color:var(--hd-primary);border-color:var(--hd-primary)}.ui-checkbox__input-nTHne:checked:before,.ui-checkbox__input-nTHne:indeterminate:before{scale:1}.ui-checkbox__input-nTHne:checked:hover:not(:disabled),.ui-checkbox__input-nTHne:indeterminate:hover:not(:disabled){background-color:var(--hd-primary-hover);border-color:var(--hd-primary-hover)}.ui-checkbox__input-nTHne:indeterminate:before{clip-path:inset(40% 5%)}.ui-checkbox__input-nTHne:disabled{background-color:var(--hd-bg-disabled);border-color:var(--hd-border-strong);cursor:not-allowed}.ui-checkbox__input-nTHne:checked:disabled,.ui-checkbox__input-nTHne:indeterminate:disabled{background-color:var(--hd-text-disabled);border-color:transparent}.ui-checkbox__input-nTHne:checked:disabled:before,.ui-checkbox__input-nTHne:indeterminate:disabled:before{background-color:var(--hd-bg-surface)}@media (prefers-reduced-motion: reduce){.ui-checkbox__input-nTHne{transition:none}.ui-checkbox__input-nTHne:before{transition:none}}@media (forced-colors: active){.ui-checkbox__input-nTHne{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}.ui-checkbox__input-nTHne:before{display:none}}.ui-checkbox__input-nTHne{margin-top:2px}.ui-checkbox__input-nTHne:focus-visible{outline:var(--ui-ring-width, 2px) solid var(--hd-focus);outline-offset:var(--ui-ring-offset, 2px)}.ui-checkbox__body-VAEW2{display:flex;flex-direction:column;gap:var(--hd-space-1);flex:1;min-width:0}.ui-checkbox__label-sSNZY{font-size:var(--hd-type-small-size);line-height:var(--hd-type-body-line-height);color:var(--hd-text)}.ui-checkbox__hint-ish-J{font-size:var(--hd-type-caption-size);color:var(--hd-text-2);line-height:var(--hd-type-body-line-height)}.ui-checkbox__error-J6StW{display:flex;align-items:center;gap:var(--hd-space-1);margin:0;font-size:var(--hd-type-caption-size);font-weight:var(--hd-font-weight-medium);line-height:var(--hd-type-body-line-height);color:var(--hd-danger-fg)}.ui-checkbox__error-J6StW>svg{flex-shrink:0;font-size:14px}}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),h=require("react"),q=require("@handijitcom/utils"),b=require("../../helpers/class-name.helper.cjs"),v=require("../../helpers/component.helper.cjs"),g=require("../Link/index.cjs"),a={default:{"chip":"ui-chip--NLgU","chip__icon":"ui-chip__icon-IjjSb","chip__count":"ui-chip__count-MBGO3","chip__label":"ui-chip__label-cT4hw","chip--sm":"ui-chip--sm-60H-S","chip--md":"ui-chip--md--yAlm","chip--iconOnly":"ui-chip--iconOnly-5LT1h","chip--selected":"ui-chip--selected-FdpCr"}},C=h.forwardRef(({children:s,icon:i,endIcon:r,count:n,isSelected:t,size:m="md",label:c,href:l,linkProps:f,className:_,type:x="button",role:u,testId:d,...j},N)=>{const o=b.cx(a.default.chip,a.default[`chip--${m}`],t&&a.default["chip--selected"],!s&&a.default["chip--iconOnly"],_),p=e.jsxs(e.Fragment,{children:[i&&e.jsx("span",{className:a.default.chip__icon,"aria-hidden":!0,children:i}),s&&e.jsx("span",{className:a.default.chip__label,children:s}),q.isDefined(n)&&e.jsx("span",{className:a.default.chip__count,children:n}),r&&e.jsx("span",{className:a.default.chip__icon,"aria-hidden":!0,children:r})]});return l?e.jsx(g.default,{href:l,className:o,"aria-label":s?void 0:c,"aria-current":t?"page":void 0,"data-testid":d,...f,children:p}):e.jsx("button",{ref:N,type:x,role:u,className:o,"aria-label":s?void 0:c,"data-testid":d,...u==="radio"?{"aria-checked":!!t}:{"aria-pressed":!!t},...j,children:p})}),y=h.memo(v.named(C,"Chip"));exports.default=y;
2
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sources":["../../../src/components/Chip/index.tsx"],"sourcesContent":["import { type ButtonHTMLAttributes, forwardRef, memo, type ReactNode } from 'react';\n\nimport { isDefined } from '@handijitcom/utils';\n\nimport { cx } from '../../helpers/class-name.helper';\nimport { named } from '../../helpers/component.helper';\nimport type { UiLinkExtraProps } from '../../types/link.type';\nimport UiLink from '../Link';\n\nimport styles from './index.module.scss';\n\nexport type ChipSize = 'sm' | 'md';\n\ntype Props = Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children'> & {\n /** Görünen metin. */\n children?: ReactNode;\n /** Metnin solundaki ikon. */\n icon?: ReactNode;\n /** Metnin sağındaki ikon (ok, çarpı). */\n endIcon?: ReactNode;\n /** Sağda gösterilen sonuç adedi. */\n count?: number;\n isSelected?: boolean;\n size?: ChipSize;\n /** Erişilebilir ad. */\n label?: string;\n /** Verilirse çip bir bağlantı olarak çizilir. */\n href?: string;\n /** Yönlendiriciye geçirilecek ek props. */\n linkProps?: UiLinkExtraProps;\n /** Grup içindeki ARIA rolü. */\n role?: 'radio';\n testId?: string;\n};\n\n/** Çip — seçilebilir etiket. */\nconst Chip = /*#__PURE__*/ forwardRef<HTMLButtonElement, Props>(\n (\n {\n children,\n icon,\n endIcon,\n count,\n isSelected,\n size = 'md',\n label,\n href,\n linkProps,\n className,\n type = 'button',\n role,\n testId,\n ...rest\n },\n ref,\n ) => {\n const classNames = cx(\n styles.chip,\n styles[`chip--${size}`],\n isSelected && styles['chip--selected'],\n !children && styles['chip--iconOnly'],\n className,\n );\n\n const content = (\n <>\n {icon && (\n <span className={styles.chip__icon} aria-hidden>\n {icon}\n </span>\n )}\n {children && <span className={styles.chip__label}>{children}</span>}\n {isDefined(count) && <span className={styles.chip__count}>{count}</span>}\n {endIcon && (\n <span className={styles.chip__icon} aria-hidden>\n {endIcon}\n </span>\n )}\n </>\n );\n\n if (href)\n return (\n <UiLink\n href={href}\n className={classNames}\n aria-label={children ? undefined : label}\n aria-current={isSelected ? 'page' : undefined}\n data-testid={testId}\n {...linkProps}\n >\n {content}\n </UiLink>\n );\n\n return (\n <button\n ref={ref}\n type={type}\n role={role}\n className={classNames}\n aria-label={children ? undefined : label}\n data-testid={testId}\n // Tek seçimli grupta radyo semantiği, aksi halde basılı düğme.\n {...(role === 'radio'\n ? { 'aria-checked': Boolean(isSelected) }\n : { 'aria-pressed': Boolean(isSelected) })}\n {...rest}\n >\n {content}\n </button>\n );\n },\n);\n\nexport default /*#__PURE__*/ memo(/*#__PURE__*/ named(Chip, 'Chip')) as typeof Chip;\n"],"names":["Chip","forwardRef","children","icon","endIcon","count","isSelected","size","label","href","linkProps","className","type","role","testId","rest","ref","classNames","cx","styles","content","jsxs","Fragment","jsx","isDefined","UiLink","memo","named"],"mappings":"yWAoCMA,EAAqBC,EAAAA,WACzB,CACE,CACE,SAAAC,EACA,KAAAC,EACA,QAAAC,EACA,MAAAC,EACA,WAAAC,EACA,KAAAC,EAAO,KACP,MAAAC,EACA,KAAAC,EACA,UAAAC,EACA,UAAAC,EACA,KAAAC,EAAO,SACP,KAAAC,EACA,OAAAC,EACA,GAAGC,CAAA,EAELC,IACG,CACH,MAAMC,EAAaC,EAAAA,GACjBC,EAAAA,QAAO,KACPA,EAAAA,QAAO,SAASZ,CAAI,EAAE,EACtBD,GAAca,EAAAA,QAAO,gBAAgB,EACrC,CAACjB,GAAYiB,EAAAA,QAAO,gBAAgB,EACpCR,CAAA,EAGIS,EACJC,EAAAA,KAAAC,EAAAA,SAAA,CACG,SAAA,CAAAnB,SACE,OAAA,CAAK,UAAWgB,EAAAA,QAAO,WAAY,cAAW,GAC5C,SAAAhB,CAAA,CACH,EAEDD,GAAYqB,EAAAA,IAAC,OAAA,CAAK,UAAWJ,UAAO,YAAc,SAAAjB,EAAS,EAC3DsB,EAAAA,UAAUnB,CAAK,GAAKkB,EAAAA,IAAC,QAAK,UAAWJ,EAAAA,QAAO,YAAc,SAAAd,EAAM,EAChED,SACE,OAAA,CAAK,UAAWe,EAAAA,QAAO,WAAY,cAAW,GAC5C,SAAAf,CAAA,CACH,CAAA,EAEJ,EAGF,OAAIK,EAEAc,EAAAA,IAACE,EAAAA,QAAA,CACC,KAAAhB,EACA,UAAWQ,EACX,aAAYf,EAAW,OAAYM,EACnC,eAAcF,EAAa,OAAS,OACpC,cAAaQ,EACZ,GAAGJ,EAEH,SAAAU,CAAA,CAAA,EAKLG,EAAAA,IAAC,SAAA,CACC,IAAAP,EACA,KAAAJ,EACA,KAAAC,EACA,UAAWI,EACX,aAAYf,EAAW,OAAYM,EACnC,cAAaM,EAEZ,GAAID,IAAS,QACV,CAAE,eAAgB,EAAQP,CAAU,EACpC,CAAE,eAAgB,EAAQA,CAAU,EACvC,GAAGS,EAEH,SAAAK,CAAA,CAAA,CAGP,CACF,EAEApB,EAA6B0B,OAAmBC,EAAAA,MAAM3B,EAAM,MAAM,CAAC"}
@@ -0,0 +1,27 @@
1
+ import { ButtonHTMLAttributes, ReactNode } from 'react';
2
+ import { UiLinkExtraProps } from '../../types/link.type.cjs';
3
+ export type ChipSize = 'sm' | 'md';
4
+ /** Çip — seçilebilir etiket. */
5
+ declare const Chip: import('react').ForwardRefExoticComponent<Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children"> & {
6
+ /** Görünen metin. */
7
+ children?: ReactNode;
8
+ /** Metnin solundaki ikon. */
9
+ icon?: ReactNode;
10
+ /** Metnin sağındaki ikon (ok, çarpı). */
11
+ endIcon?: ReactNode;
12
+ /** Sağda gösterilen sonuç adedi. */
13
+ count?: number;
14
+ isSelected?: boolean;
15
+ size?: ChipSize;
16
+ /** Erişilebilir ad. */
17
+ label?: string;
18
+ /** Verilirse çip bir bağlantı olarak çizilir. */
19
+ href?: string;
20
+ /** Yönlendiriciye geçirilecek ek props. */
21
+ linkProps?: UiLinkExtraProps;
22
+ /** Grup içindeki ARIA rolü. */
23
+ role?: "radio";
24
+ testId?: string;
25
+ } & import('react').RefAttributes<HTMLButtonElement>>;
26
+ declare const _default: typeof Chip;
27
+ export default _default;
@@ -0,0 +1,27 @@
1
+ import { ButtonHTMLAttributes, ReactNode } from 'react';
2
+ import { UiLinkExtraProps } from '../../types/link.type.js';
3
+ export type ChipSize = 'sm' | 'md';
4
+ /** Çip — seçilebilir etiket. */
5
+ declare const Chip: import('react').ForwardRefExoticComponent<Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children"> & {
6
+ /** Görünen metin. */
7
+ children?: ReactNode;
8
+ /** Metnin solundaki ikon. */
9
+ icon?: ReactNode;
10
+ /** Metnin sağındaki ikon (ok, çarpı). */
11
+ endIcon?: ReactNode;
12
+ /** Sağda gösterilen sonuç adedi. */
13
+ count?: number;
14
+ isSelected?: boolean;
15
+ size?: ChipSize;
16
+ /** Erişilebilir ad. */
17
+ label?: string;
18
+ /** Verilirse çip bir bağlantı olarak çizilir. */
19
+ href?: string;
20
+ /** Yönlendiriciye geçirilecek ek props. */
21
+ linkProps?: UiLinkExtraProps;
22
+ /** Grup içindeki ARIA rolü. */
23
+ role?: "radio";
24
+ testId?: string;
25
+ } & import('react').RefAttributes<HTMLButtonElement>>;
26
+ declare const _default: typeof Chip;
27
+ export default _default;
@@ -0,0 +1,67 @@
1
+ import { jsxs as x, Fragment as v, jsx as i } from "react/jsx-runtime";
2
+ import { memo as C, forwardRef as g } from "react";
3
+ import { isDefined as j } from "@handijitcom/utils";
4
+ import { cx as k } from "../../helpers/class-name.helper.js";
5
+ import { named as y } from "../../helpers/component.helper.js";
6
+ import B from "../Link/index.js";
7
+ const a = {"chip":"ui-chip--NLgU","chip__icon":"ui-chip__icon-IjjSb","chip__count":"ui-chip__count-MBGO3","chip__label":"ui-chip__label-cT4hw","chip--sm":"ui-chip--sm-60H-S","chip--md":"ui-chip--md--yAlm","chip--iconOnly":"ui-chip--iconOnly-5LT1h","chip--selected":"ui-chip--selected-FdpCr"};
8
+ const $ = /* @__PURE__ */ g(
9
+ ({
10
+ children: r,
11
+ icon: s,
12
+ endIcon: t,
13
+ count: e,
14
+ isSelected: o,
15
+ size: l = "md",
16
+ label: m,
17
+ href: n,
18
+ linkProps: f,
19
+ className: u,
20
+ type: _ = "button",
21
+ role: c,
22
+ testId: p,
23
+ ...N
24
+ }, b) => {
25
+ const d = k(
26
+ a.chip,
27
+ a[`chip--${l}`],
28
+ o && a["chip--selected"],
29
+ !r && a["chip--iconOnly"],
30
+ u
31
+ ), h = /* @__PURE__ */ x(v, { children: [
32
+ s && /* @__PURE__ */ i("span", { className: a.chip__icon, "aria-hidden": !0, children: s }),
33
+ r && /* @__PURE__ */ i("span", { className: a.chip__label, children: r }),
34
+ j(e) && /* @__PURE__ */ i("span", { className: a.chip__count, children: e }),
35
+ t && /* @__PURE__ */ i("span", { className: a.chip__icon, "aria-hidden": !0, children: t })
36
+ ] });
37
+ return n ? /* @__PURE__ */ i(
38
+ B,
39
+ {
40
+ href: n,
41
+ className: d,
42
+ "aria-label": r ? void 0 : m,
43
+ "aria-current": o ? "page" : void 0,
44
+ "data-testid": p,
45
+ ...f,
46
+ children: h
47
+ }
48
+ ) : /* @__PURE__ */ i(
49
+ "button",
50
+ {
51
+ ref: b,
52
+ type: _,
53
+ role: c,
54
+ className: d,
55
+ "aria-label": r ? void 0 : m,
56
+ "data-testid": p,
57
+ ...c === "radio" ? { "aria-checked": !!o } : { "aria-pressed": !!o },
58
+ ...N,
59
+ children: h
60
+ }
61
+ );
62
+ }
63
+ ), q = /* @__PURE__ */ C(/* @__PURE__ */ y($, "Chip"));
64
+ export {
65
+ q as default
66
+ };
67
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../src/components/Chip/index.tsx"],"sourcesContent":["import { type ButtonHTMLAttributes, forwardRef, memo, type ReactNode } from 'react';\n\nimport { isDefined } from '@handijitcom/utils';\n\nimport { cx } from '../../helpers/class-name.helper';\nimport { named } from '../../helpers/component.helper';\nimport type { UiLinkExtraProps } from '../../types/link.type';\nimport UiLink from '../Link';\n\nimport styles from './index.module.scss';\n\nexport type ChipSize = 'sm' | 'md';\n\ntype Props = Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children'> & {\n /** Görünen metin. */\n children?: ReactNode;\n /** Metnin solundaki ikon. */\n icon?: ReactNode;\n /** Metnin sağındaki ikon (ok, çarpı). */\n endIcon?: ReactNode;\n /** Sağda gösterilen sonuç adedi. */\n count?: number;\n isSelected?: boolean;\n size?: ChipSize;\n /** Erişilebilir ad. */\n label?: string;\n /** Verilirse çip bir bağlantı olarak çizilir. */\n href?: string;\n /** Yönlendiriciye geçirilecek ek props. */\n linkProps?: UiLinkExtraProps;\n /** Grup içindeki ARIA rolü. */\n role?: 'radio';\n testId?: string;\n};\n\n/** Çip — seçilebilir etiket. */\nconst Chip = /*#__PURE__*/ forwardRef<HTMLButtonElement, Props>(\n (\n {\n children,\n icon,\n endIcon,\n count,\n isSelected,\n size = 'md',\n label,\n href,\n linkProps,\n className,\n type = 'button',\n role,\n testId,\n ...rest\n },\n ref,\n ) => {\n const classNames = cx(\n styles.chip,\n styles[`chip--${size}`],\n isSelected && styles['chip--selected'],\n !children && styles['chip--iconOnly'],\n className,\n );\n\n const content = (\n <>\n {icon && (\n <span className={styles.chip__icon} aria-hidden>\n {icon}\n </span>\n )}\n {children && <span className={styles.chip__label}>{children}</span>}\n {isDefined(count) && <span className={styles.chip__count}>{count}</span>}\n {endIcon && (\n <span className={styles.chip__icon} aria-hidden>\n {endIcon}\n </span>\n )}\n </>\n );\n\n if (href)\n return (\n <UiLink\n href={href}\n className={classNames}\n aria-label={children ? undefined : label}\n aria-current={isSelected ? 'page' : undefined}\n data-testid={testId}\n {...linkProps}\n >\n {content}\n </UiLink>\n );\n\n return (\n <button\n ref={ref}\n type={type}\n role={role}\n className={classNames}\n aria-label={children ? undefined : label}\n data-testid={testId}\n // Tek seçimli grupta radyo semantiği, aksi halde basılı düğme.\n {...(role === 'radio'\n ? { 'aria-checked': Boolean(isSelected) }\n : { 'aria-pressed': Boolean(isSelected) })}\n {...rest}\n >\n {content}\n </button>\n );\n },\n);\n\nexport default /*#__PURE__*/ memo(/*#__PURE__*/ named(Chip, 'Chip')) as typeof Chip;\n"],"names":["Chip","forwardRef","children","icon","endIcon","count","isSelected","size","label","href","linkProps","className","type","role","testId","rest","ref","classNames","cx","styles","content","jsxs","Fragment","jsx","isDefined","UiLink","Chip$1","memo","named"],"mappings":";;;;;;;AAoCA,MAAMA,IAAqB,gBAAAC;AAAA,EACzB,CACE;AAAA,IACE,UAAAC;AAAA,IACA,MAAAC;AAAA,IACA,SAAAC;AAAA,IACA,OAAAC;AAAA,IACA,YAAAC;AAAA,IACA,MAAAC,IAAO;AAAA,IACP,OAAAC;AAAA,IACA,MAAAC;AAAA,IACA,WAAAC;AAAA,IACA,WAAAC;AAAA,IACA,MAAAC,IAAO;AAAA,IACP,MAAAC;AAAA,IACA,QAAAC;AAAA,IACA,GAAGC;AAAA,EAAA,GAELC,MACG;AACH,UAAMC,IAAaC;AAAA,MACjBC,EAAO;AAAA,MACPA,EAAO,SAASZ,CAAI,EAAE;AAAA,MACtBD,KAAca,EAAO,gBAAgB;AAAA,MACrC,CAACjB,KAAYiB,EAAO,gBAAgB;AAAA,MACpCR;AAAA,IAAA,GAGIS,IACJ,gBAAAC,EAAAC,GAAA,EACG,UAAA;AAAA,MAAAnB,uBACE,QAAA,EAAK,WAAWgB,EAAO,YAAY,eAAW,IAC5C,UAAAhB,EAAA,CACH;AAAA,MAEDD,KAAY,gBAAAqB,EAAC,QAAA,EAAK,WAAWJ,EAAO,aAAc,UAAAjB,GAAS;AAAA,MAC3DsB,EAAUnB,CAAK,KAAK,gBAAAkB,EAAC,UAAK,WAAWJ,EAAO,aAAc,UAAAd,GAAM;AAAA,MAChED,uBACE,QAAA,EAAK,WAAWe,EAAO,YAAY,eAAW,IAC5C,UAAAf,EAAA,CACH;AAAA,IAAA,GAEJ;AAGF,WAAIK,IAEA,gBAAAc;AAAA,MAACE;AAAA,MAAA;AAAA,QACC,MAAAhB;AAAA,QACA,WAAWQ;AAAA,QACX,cAAYf,IAAW,SAAYM;AAAA,QACnC,gBAAcF,IAAa,SAAS;AAAA,QACpC,eAAaQ;AAAA,QACZ,GAAGJ;AAAA,QAEH,UAAAU;AAAA,MAAA;AAAA,IAAA,IAKL,gBAAAG;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,KAAAP;AAAA,QACA,MAAAJ;AAAA,QACA,MAAAC;AAAA,QACA,WAAWI;AAAA,QACX,cAAYf,IAAW,SAAYM;AAAA,QACnC,eAAaM;AAAA,QAEZ,GAAID,MAAS,UACV,EAAE,gBAAgB,EAAQP,EAAU,IACpC,EAAE,gBAAgB,EAAQA,EAAU;AAAA,QACvC,GAAGS;AAAA,QAEH,UAAAK;AAAA,MAAA;AAAA,IAAA;AAAA,EAGP;AACF,GAEAM,IAA6B,gBAAAC,EAAmB,gBAAAC,EAAM5B,GAAM,MAAM,CAAC;"}
@@ -0,0 +1 @@
1
+ @charset "UTF-8";@layer ui{.ui-chip--NLgU{position:relative}.ui-chip--NLgU:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:max(100%,44px);height:max(100%,44px)}.ui-chip--NLgU{display:inline-flex;align-items:center;justify-content:center;gap:var(--hd-space-2);background-color:var(--ui-chip-bg, var(--hd-bg-surface));border:1px solid var(--ui-chip-line, var(--hd-border));border-radius:var(--ui-chip-radius, var(--hd-radius-sm));color:var(--ui-chip-fg, var(--hd-text-2));font-family:var(--hd-font-body);font-weight:var(--ui-chip-weight, var(--hd-font-weight-medium));line-height:1;white-space:nowrap;cursor:pointer;text-decoration:none;transition:border-color var(--hd-duration-fast) var(--hd-ease-standard),color var(--hd-duration-fast) var(--hd-ease-standard),background-color var(--hd-duration-fast) var(--hd-ease-standard)}.ui-chip--NLgU:focus-visible{outline:var(--ui-ring-width, 2px) solid var(--hd-focus);outline-offset:var(--ui-ring-offset, 2px)}.ui-chip--NLgU:hover:not(:disabled){border-color:var(--hd-border-strong);color:var(--hd-text)}.ui-chip--NLgU:disabled{background-color:var(--hd-bg-raised);border-color:var(--hd-border);cursor:not-allowed;color:var(--hd-text-3)}@media (forced-colors: active){.ui-chip--NLgU:disabled{color:GrayText;border-color:GrayText}}.ui-chip--NLgU:disabled .ui-chip__icon-IjjSb,.ui-chip--NLgU:disabled .ui-chip__count-MBGO3{color:var(--hd-text-3)}@media (forced-colors: active){.ui-chip--NLgU:disabled .ui-chip__icon-IjjSb,.ui-chip--NLgU:disabled .ui-chip__count-MBGO3{color:GrayText}}@media (prefers-reduced-motion: reduce){.ui-chip--NLgU{transition:none}}.ui-chip__icon-IjjSb{display:inline-flex;align-items:center;flex-shrink:0;font-size:.92em;color:var(--hd-text-2);transition:color var(--hd-duration-fast) var(--hd-ease-standard)}@media (prefers-reduced-motion: reduce){.ui-chip__icon-IjjSb{transition:none}}.ui-chip__label-cT4hw{overflow:hidden;text-overflow:ellipsis}.ui-chip__count-MBGO3{font-size:var(--hd-type-caption-size);font-weight:var(--hd-font-weight-semibold);color:var(--hd-text-3);font-variant-numeric:tabular-nums;flex-shrink:0}.ui-chip--sm-60H-S{font-size:var(--hd-type-caption-size);padding:var(--hd-space-2) var(--hd-space-3);min-height:32px}.ui-chip--md--yAlm{font-size:var(--hd-type-small-size);padding:var(--hd-space-2) var(--hd-space-4);min-height:40px}.ui-chip--iconOnly-5LT1h{gap:0}.ui-chip--iconOnly-5LT1h.ui-chip--sm-60H-S{width:32px;padding:0}.ui-chip--iconOnly-5LT1h.ui-chip--md--yAlm{width:40px;padding:0}.ui-chip--iconOnly-5LT1h .ui-chip__icon-IjjSb{font-size:1em}.ui-chip--selected-FdpCr{border-color:var(--ui-chip-selected-line, var(--hd-primary));color:var(--ui-chip-selected-fg, var(--hd-primary-text));background-color:var(--ui-chip-selected-bg, var(--hd-primary-soft));font-weight:var(--ui-chip-selected-weight, var(--hd-font-weight-semibold))}.ui-chip--selected-FdpCr .ui-chip__icon-IjjSb,.ui-chip--selected-FdpCr .ui-chip__count-MBGO3{color:var(--ui-chip-selected-fg, var(--hd-primary-text))}.ui-chip--selected-FdpCr:hover:not(:disabled){border-color:var(--ui-chip-selected-line, var(--hd-primary-hover));color:var(--ui-chip-selected-fg, var(--hd-primary-text));background-color:var(--ui-chip-selected-bg, var(--hd-primary-soft-hover))}.ui-chip--selected-FdpCr:disabled{border-color:var(--hd-text-3)}}
@@ -0,0 +1,2 @@
1
+ "use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const b=require("react/jsx-runtime"),h=require("react"),A=require("../../helpers/class-name.helper.cjs"),_=require("../Chip/index.cjs"),t={default:{"group":"ui-group-0tnVf","group--scrollable":"ui-group--scrollable-PMu6V","group--readOnly":"ui-group--readOnly-uqpPV"}},I=({options:i,label:g,size:p="md",isScrollable:x,isDisabled:n,isReadOnly:l,id:M,required:m,"aria-describedby":y,"aria-invalid":q,className:w,...r})=>{var c;const s=h.useRef(null),D=e=>r.isMultiple?r.value.includes(e):r.value===e,S=e=>{if(!l){if(r.isMultiple){const a=r.value.includes(e)?r.value.filter(u=>u!==e):[...r.value,e];r.onChange(a);return}r.onChange(r.value===e?null:e)}},k=e=>{var o,v;if(r.isMultiple)return;const a=e.key==="ArrowRight"||e.key==="ArrowDown"?1:e.key==="ArrowLeft"||e.key==="ArrowUp"?-1:0;if(a===0||(e.preventDefault(),l||n))return;const u=i.filter(d=>!d.isDisabled);if(u.length===0)return;const j=u.findIndex(d=>d.value===r.value),f=u[(j+a+u.length)%u.length];r.onChange(f.value),(v=(o=s.current)==null?void 0:o.querySelector(`[data-chip-value="${f.value}"]`))==null||v.focus()},C=r.isMultiple?null:r.value??((c=i.find(e=>!e.isDisabled))==null?void 0:c.value)??null;return b.jsx("div",{ref:s,className:A.cx(t.default.group,x&&t.default["group--scrollable"],l&&t.default["group--readOnly"],w),id:M,role:r.isMultiple?"group":"radiogroup","aria-label":g,"aria-describedby":y,"aria-invalid":q||void 0,"aria-required":!r.isMultiple&&m||void 0,"aria-readonly":!r.isMultiple&&l||void 0,onKeyDown:k,children:i.map(e=>b.jsx(_.default,{size:p,icon:e.icon,count:e.count,isSelected:D(e.value),disabled:n||e.isDisabled,role:r.isMultiple?void 0:"radio",tabIndex:r.isMultiple||e.value===C?0:-1,"data-chip-value":e.value,onClick:()=>S(e.value),children:e.label},e.value))})},K=h.memo(I);exports.default=K;
2
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sources":["../../../src/components/ChipGroup/index.tsx"],"sourcesContent":["'use client';\n\nimport { type KeyboardEvent, memo, type ReactNode, useRef } from 'react';\n\nimport { cx } from '../../helpers/class-name.helper';\nimport Chip, { type ChipSize } from '../Chip';\n\nimport styles from './index.module.scss';\n\nexport type ChipOption<T extends string = string> = {\n value: T;\n label: string;\n icon?: ReactNode;\n count?: number;\n isDisabled?: boolean;\n};\n\ntype BaseProps<T extends string> = {\n options: ChipOption<T>[];\n /** Grubun erişilebilir adı (\"Sıralama\", \"Kalite\"). */\n label: string;\n size?: ChipSize;\n /** Taşan çipleri alta sarmak yerine yatay kaydırır (mobil filtre şeridi). */\n isScrollable?: boolean;\n /** Every chip disabled at once (2.2); `ChipOption.isDisabled` still disables one. */\n isDisabled?: boolean;\n /**\n * Read-only (2.2): the chips stay focusable and readable but a press does not change the\n * choice. A single choice announces it (`aria-readonly` on the `radiogroup`); `group`, the role\n * of a multiple choice, has no read-only state in ARIA.\n */\n isReadOnly?: boolean;\n /** The id of the group (2.2) — the `id` of `Field`'s `FieldChildProps`. */\n id?: string;\n /**\n * Zorunluluk — `Field`in `FieldChildProps` sözleşmesi (2.2); `aria-required` on a single\n * choice's `radiogroup` (a multiple choice's `group` has no required state in ARIA).\n */\n required?: boolean;\n /** On the group (2.2), with the error and hint ids of `Field`. */\n 'aria-describedby'?: string;\n /** On the group (2.2). */\n 'aria-invalid'?: boolean;\n className?: string;\n};\n\ntype SingleProps<T extends string> = BaseProps<T> & {\n isMultiple?: false;\n value: T | null;\n /** Seçili çipe tekrar basılırsa `null` gelir — seçim geri alınabilir. */\n onChange: (value: T | null) => void;\n};\n\ntype MultipleProps<T extends string> = BaseProps<T> & {\n isMultiple: true;\n value: T[];\n onChange: (value: T[]) => void;\n};\n\ntype Props<T extends string> = SingleProps<T> | MultipleProps<T>;\n\n/** Çip grubu — açılır liste yerine tek dokunuşla seçim. */\nconst ChipGroup = <T extends string>({\n options,\n label,\n size = 'md',\n isScrollable,\n isDisabled,\n isReadOnly,\n id,\n required,\n 'aria-describedby': describedBy,\n 'aria-invalid': isInvalid,\n className,\n ...selection\n}: Props<T>) => {\n const listRef = useRef<HTMLDivElement>(null);\n\n const isSelected = (value: T) =>\n selection.isMultiple ? selection.value.includes(value) : selection.value === value;\n\n const handleSelect = (value: T) => {\n if (isReadOnly) return;\n\n if (selection.isMultiple) {\n const next = selection.value.includes(value)\n ? selection.value.filter(item => item !== value)\n : [...selection.value, value];\n selection.onChange(next);\n return;\n }\n\n // Seçili çipe tekrar basmak seçimi kaldırır: \"hepsi\" seçeneği olmayan filtrelerde kullanıcının\n // geri dönebileceği tek yol bu.\n selection.onChange(selection.value === value ? null : value);\n };\n\n /** Ok tuşlarıyla gezinme; başta/sonda döner (yalnızca tek seçimde). */\n const handleKeyDown = (event: KeyboardEvent<HTMLDivElement>) => {\n if (selection.isMultiple) return;\n\n const offset =\n event.key === 'ArrowRight' || event.key === 'ArrowDown'\n ? 1\n : event.key === 'ArrowLeft' || event.key === 'ArrowUp'\n ? -1\n : 0;\n if (offset === 0) return;\n\n event.preventDefault();\n if (isReadOnly || isDisabled) return;\n\n const enabled = options.filter(option => !option.isDisabled);\n if (enabled.length === 0) return;\n\n const currentIndex = enabled.findIndex(option => option.value === selection.value);\n const next = enabled[(currentIndex + offset + enabled.length) % enabled.length];\n\n selection.onChange(next.value);\n listRef.current?.querySelector<HTMLButtonElement>(`[data-chip-value=\"${next.value}\"]`)?.focus();\n };\n\n // Roving tabindex: seçili çip tabbable; hiçbiri seçili değilse ilki.\n const tabbableValue = selection.isMultiple\n ? null\n : (selection.value ?? options.find(option => !option.isDisabled)?.value ?? null);\n\n return (\n <div\n ref={listRef}\n className={cx(\n styles.group,\n isScrollable && styles['group--scrollable'],\n isReadOnly && styles['group--readOnly'],\n className,\n )}\n id={id}\n role={selection.isMultiple ? 'group' : 'radiogroup'}\n aria-label={label}\n aria-describedby={describedBy}\n aria-invalid={isInvalid || undefined}\n aria-required={(!selection.isMultiple && required) || undefined}\n aria-readonly={(!selection.isMultiple && isReadOnly) || undefined}\n onKeyDown={handleKeyDown}\n >\n {options.map(option => (\n <Chip\n key={option.value}\n size={size}\n icon={option.icon}\n count={option.count}\n isSelected={isSelected(option.value)}\n disabled={isDisabled || option.isDisabled}\n role={selection.isMultiple ? undefined : 'radio'}\n tabIndex={selection.isMultiple || option.value === tabbableValue ? 0 : -1}\n data-chip-value={option.value}\n onClick={() => handleSelect(option.value)}\n >\n {option.label}\n </Chip>\n ))}\n </div>\n );\n};\n\nexport default /*#__PURE__*/ memo(ChipGroup) as typeof ChipGroup;\n"],"names":["ChipGroup","options","label","size","isScrollable","isDisabled","isReadOnly","id","required","describedBy","isInvalid","className","selection","listRef","useRef","isSelected","value","handleSelect","next","item","handleKeyDown","event","offset","enabled","option","currentIndex","_b","_a","tabbableValue","jsx","cx","styles","Chip","index"],"mappings":"sSA6DMA,EAAY,CAAmB,CACnC,QAAAC,EACA,MAAAC,EACA,KAAAC,EAAO,KACP,aAAAC,EACA,WAAAC,EACA,WAAAC,EACA,GAAAC,EACA,SAAAC,EACA,mBAAoBC,EACpB,eAAgBC,EAChB,UAAAC,EACA,GAAGC,CACL,IAAgB,OACd,MAAMC,EAAUC,EAAAA,OAAuB,IAAI,EAErCC,EAAcC,GAClBJ,EAAU,WAAaA,EAAU,MAAM,SAASI,CAAK,EAAIJ,EAAU,QAAUI,EAEzEC,EAAgBD,GAAa,CACjC,GAAI,CAAAV,EAEJ,IAAIM,EAAU,WAAY,CACxB,MAAMM,EAAON,EAAU,MAAM,SAASI,CAAK,EACvCJ,EAAU,MAAM,OAAOO,GAAQA,IAASH,CAAK,EAC7C,CAAC,GAAGJ,EAAU,MAAOI,CAAK,EAC9BJ,EAAU,SAASM,CAAI,EACvB,MACF,CAIAN,EAAU,SAASA,EAAU,QAAUI,EAAQ,KAAOA,CAAK,EAC7D,EAGMI,EAAiBC,GAAyC,SAC9D,GAAIT,EAAU,WAAY,OAE1B,MAAMU,EACJD,EAAM,MAAQ,cAAgBA,EAAM,MAAQ,YACxC,EACAA,EAAM,MAAQ,aAAeA,EAAM,MAAQ,UACzC,GACA,EAIR,GAHIC,IAAW,IAEfD,EAAM,eAAA,EACFf,GAAcD,GAAY,OAE9B,MAAMkB,EAAUtB,EAAQ,OAAOuB,GAAU,CAACA,EAAO,UAAU,EAC3D,GAAID,EAAQ,SAAW,EAAG,OAE1B,MAAME,EAAeF,EAAQ,aAAoBC,EAAO,QAAUZ,EAAU,KAAK,EAC3EM,EAAOK,GAASE,EAAeH,EAASC,EAAQ,QAAUA,EAAQ,MAAM,EAE9EX,EAAU,SAASM,EAAK,KAAK,GAC7BQ,GAAAC,EAAAd,EAAQ,UAAR,YAAAc,EAAiB,cAAiC,qBAAqBT,EAAK,KAAK,QAAjF,MAAAQ,EAAwF,OAC1F,EAGME,EAAgBhB,EAAU,WAC5B,KACCA,EAAU,SAASe,EAAA1B,EAAQ,KAAKuB,GAAU,CAACA,EAAO,UAAU,IAAzC,YAAAG,EAA4C,QAAS,KAE7E,OACEE,EAAAA,IAAC,MAAA,CACC,IAAKhB,EACL,UAAWiB,EAAAA,GACTC,EAAAA,QAAO,MACP3B,GAAgB2B,EAAAA,QAAO,mBAAmB,EAC1CzB,GAAcyB,EAAAA,QAAO,iBAAiB,EACtCpB,CAAA,EAEF,GAAAJ,EACA,KAAMK,EAAU,WAAa,QAAU,aACvC,aAAYV,EACZ,mBAAkBO,EAClB,eAAcC,GAAa,OAC3B,gBAAgB,CAACE,EAAU,YAAcJ,GAAa,OACtD,gBAAgB,CAACI,EAAU,YAAcN,GAAe,OACxD,UAAWc,EAEV,SAAAnB,EAAQ,IAAIuB,GACXK,EAAAA,IAACG,EAAAA,QAAA,CAEC,KAAA7B,EACA,KAAMqB,EAAO,KACb,MAAOA,EAAO,MACd,WAAYT,EAAWS,EAAO,KAAK,EACnC,SAAUnB,GAAcmB,EAAO,WAC/B,KAAMZ,EAAU,WAAa,OAAY,QACzC,SAAUA,EAAU,YAAcY,EAAO,QAAUI,EAAgB,EAAI,GACvE,kBAAiBJ,EAAO,MACxB,QAAS,IAAMP,EAAaO,EAAO,KAAK,EAEvC,SAAAA,EAAO,KAAA,EAXHA,EAAO,KAAA,CAaf,CAAA,CAAA,CAGP,EAEAS,SAAkCjC,CAAS"}
@@ -0,0 +1,53 @@
1
+ import { ReactNode } from 'react';
2
+ import { ChipSize } from '../Chip/index.cjs';
3
+ export type ChipOption<T extends string = string> = {
4
+ value: T;
5
+ label: string;
6
+ icon?: ReactNode;
7
+ count?: number;
8
+ isDisabled?: boolean;
9
+ };
10
+ type BaseProps<T extends string> = {
11
+ options: ChipOption<T>[];
12
+ /** Grubun erişilebilir adı ("Sıralama", "Kalite"). */
13
+ label: string;
14
+ size?: ChipSize;
15
+ /** Taşan çipleri alta sarmak yerine yatay kaydırır (mobil filtre şeridi). */
16
+ isScrollable?: boolean;
17
+ /** Every chip disabled at once (2.2); `ChipOption.isDisabled` still disables one. */
18
+ isDisabled?: boolean;
19
+ /**
20
+ * Read-only (2.2): the chips stay focusable and readable but a press does not change the
21
+ * choice. A single choice announces it (`aria-readonly` on the `radiogroup`); `group`, the role
22
+ * of a multiple choice, has no read-only state in ARIA.
23
+ */
24
+ isReadOnly?: boolean;
25
+ /** The id of the group (2.2) — the `id` of `Field`'s `FieldChildProps`. */
26
+ id?: string;
27
+ /**
28
+ * Zorunluluk — `Field`in `FieldChildProps` sözleşmesi (2.2); `aria-required` on a single
29
+ * choice's `radiogroup` (a multiple choice's `group` has no required state in ARIA).
30
+ */
31
+ required?: boolean;
32
+ /** On the group (2.2), with the error and hint ids of `Field`. */
33
+ 'aria-describedby'?: string;
34
+ /** On the group (2.2). */
35
+ 'aria-invalid'?: boolean;
36
+ className?: string;
37
+ };
38
+ type SingleProps<T extends string> = BaseProps<T> & {
39
+ isMultiple?: false;
40
+ value: T | null;
41
+ /** Seçili çipe tekrar basılırsa `null` gelir — seçim geri alınabilir. */
42
+ onChange: (value: T | null) => void;
43
+ };
44
+ type MultipleProps<T extends string> = BaseProps<T> & {
45
+ isMultiple: true;
46
+ value: T[];
47
+ onChange: (value: T[]) => void;
48
+ };
49
+ type Props<T extends string> = SingleProps<T> | MultipleProps<T>;
50
+ /** Çip grubu — açılır liste yerine tek dokunuşla seçim. */
51
+ declare const ChipGroup: <T extends string>({ options, label, size, isScrollable, isDisabled, isReadOnly, id, required, "aria-describedby": describedBy, "aria-invalid": isInvalid, className, ...selection }: Props<T>) => import("react").JSX.Element;
52
+ declare const _default: typeof ChipGroup;
53
+ export default _default;
@@ -0,0 +1,53 @@
1
+ import { ReactNode } from 'react';
2
+ import { ChipSize } from '../Chip/index.js';
3
+ export type ChipOption<T extends string = string> = {
4
+ value: T;
5
+ label: string;
6
+ icon?: ReactNode;
7
+ count?: number;
8
+ isDisabled?: boolean;
9
+ };
10
+ type BaseProps<T extends string> = {
11
+ options: ChipOption<T>[];
12
+ /** Grubun erişilebilir adı ("Sıralama", "Kalite"). */
13
+ label: string;
14
+ size?: ChipSize;
15
+ /** Taşan çipleri alta sarmak yerine yatay kaydırır (mobil filtre şeridi). */
16
+ isScrollable?: boolean;
17
+ /** Every chip disabled at once (2.2); `ChipOption.isDisabled` still disables one. */
18
+ isDisabled?: boolean;
19
+ /**
20
+ * Read-only (2.2): the chips stay focusable and readable but a press does not change the
21
+ * choice. A single choice announces it (`aria-readonly` on the `radiogroup`); `group`, the role
22
+ * of a multiple choice, has no read-only state in ARIA.
23
+ */
24
+ isReadOnly?: boolean;
25
+ /** The id of the group (2.2) — the `id` of `Field`'s `FieldChildProps`. */
26
+ id?: string;
27
+ /**
28
+ * Zorunluluk — `Field`in `FieldChildProps` sözleşmesi (2.2); `aria-required` on a single
29
+ * choice's `radiogroup` (a multiple choice's `group` has no required state in ARIA).
30
+ */
31
+ required?: boolean;
32
+ /** On the group (2.2), with the error and hint ids of `Field`. */
33
+ 'aria-describedby'?: string;
34
+ /** On the group (2.2). */
35
+ 'aria-invalid'?: boolean;
36
+ className?: string;
37
+ };
38
+ type SingleProps<T extends string> = BaseProps<T> & {
39
+ isMultiple?: false;
40
+ value: T | null;
41
+ /** Seçili çipe tekrar basılırsa `null` gelir — seçim geri alınabilir. */
42
+ onChange: (value: T | null) => void;
43
+ };
44
+ type MultipleProps<T extends string> = BaseProps<T> & {
45
+ isMultiple: true;
46
+ value: T[];
47
+ onChange: (value: T[]) => void;
48
+ };
49
+ type Props<T extends string> = SingleProps<T> | MultipleProps<T>;
50
+ /** Çip grubu — açılır liste yerine tek dokunuşla seçim. */
51
+ declare const ChipGroup: <T extends string>({ options, label, size, isScrollable, isDisabled, isReadOnly, id, required, "aria-describedby": describedBy, "aria-invalid": isInvalid, className, ...selection }: Props<T>) => import("react").JSX.Element;
52
+ declare const _default: typeof ChipGroup;
53
+ export default _default;
@@ -0,0 +1,81 @@
1
+ "use client";
2
+ import { jsx as c } from "react/jsx-runtime";
3
+ import { memo as I, useRef as q } from "react";
4
+ import { cx as K } from "../../helpers/class-name.helper.js";
5
+ import j from "../Chip/index.js";
6
+ const t = {"group":"ui-group-0tnVf","group--scrollable":"ui-group--scrollable-PMu6V","group--readOnly":"ui-group--readOnly-uqpPV"};
7
+ const G = ({
8
+ options: i,
9
+ label: b,
10
+ size: h = "md",
11
+ isScrollable: m,
12
+ isDisabled: n,
13
+ isReadOnly: e,
14
+ id: g,
15
+ required: x,
16
+ "aria-describedby": y,
17
+ "aria-invalid": M,
18
+ className: w,
19
+ ...l
20
+ }) => {
21
+ var o;
22
+ const f = q(null), C = (r) => l.isMultiple ? l.value.includes(r) : l.value === r, D = (r) => {
23
+ if (!e) {
24
+ if (l.isMultiple) {
25
+ const u = l.value.includes(r) ? l.value.filter((a) => a !== r) : [...l.value, r];
26
+ l.onChange(u);
27
+ return;
28
+ }
29
+ l.onChange(l.value === r ? null : r);
30
+ }
31
+ }, k = (r) => {
32
+ var p, v;
33
+ if (l.isMultiple) return;
34
+ const u = r.key === "ArrowRight" || r.key === "ArrowDown" ? 1 : r.key === "ArrowLeft" || r.key === "ArrowUp" ? -1 : 0;
35
+ if (u === 0 || (r.preventDefault(), e || n)) return;
36
+ const a = i.filter((d) => !d.isDisabled);
37
+ if (a.length === 0) return;
38
+ const S = a.findIndex((d) => d.value === l.value), s = a[(S + u + a.length) % a.length];
39
+ l.onChange(s.value), (v = (p = f.current) == null ? void 0 : p.querySelector(`[data-chip-value="${s.value}"]`)) == null || v.focus();
40
+ }, A = l.isMultiple ? null : l.value ?? ((o = i.find((r) => !r.isDisabled)) == null ? void 0 : o.value) ?? null;
41
+ return /* @__PURE__ */ c(
42
+ "div",
43
+ {
44
+ ref: f,
45
+ className: K(
46
+ t.group,
47
+ m && t["group--scrollable"],
48
+ e && t["group--readOnly"],
49
+ w
50
+ ),
51
+ id: g,
52
+ role: l.isMultiple ? "group" : "radiogroup",
53
+ "aria-label": b,
54
+ "aria-describedby": y,
55
+ "aria-invalid": M || void 0,
56
+ "aria-required": !l.isMultiple && x || void 0,
57
+ "aria-readonly": !l.isMultiple && e || void 0,
58
+ onKeyDown: k,
59
+ children: i.map((r) => /* @__PURE__ */ c(
60
+ j,
61
+ {
62
+ size: h,
63
+ icon: r.icon,
64
+ count: r.count,
65
+ isSelected: C(r.value),
66
+ disabled: n || r.isDisabled,
67
+ role: l.isMultiple ? void 0 : "radio",
68
+ tabIndex: l.isMultiple || r.value === A ? 0 : -1,
69
+ "data-chip-value": r.value,
70
+ onClick: () => D(r.value),
71
+ children: r.label
72
+ },
73
+ r.value
74
+ ))
75
+ }
76
+ );
77
+ }, z = /* @__PURE__ */ I(G);
78
+ export {
79
+ z as default
80
+ };
81
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../src/components/ChipGroup/index.tsx"],"sourcesContent":["'use client';\n\nimport { type KeyboardEvent, memo, type ReactNode, useRef } from 'react';\n\nimport { cx } from '../../helpers/class-name.helper';\nimport Chip, { type ChipSize } from '../Chip';\n\nimport styles from './index.module.scss';\n\nexport type ChipOption<T extends string = string> = {\n value: T;\n label: string;\n icon?: ReactNode;\n count?: number;\n isDisabled?: boolean;\n};\n\ntype BaseProps<T extends string> = {\n options: ChipOption<T>[];\n /** Grubun erişilebilir adı (\"Sıralama\", \"Kalite\"). */\n label: string;\n size?: ChipSize;\n /** Taşan çipleri alta sarmak yerine yatay kaydırır (mobil filtre şeridi). */\n isScrollable?: boolean;\n /** Every chip disabled at once (2.2); `ChipOption.isDisabled` still disables one. */\n isDisabled?: boolean;\n /**\n * Read-only (2.2): the chips stay focusable and readable but a press does not change the\n * choice. A single choice announces it (`aria-readonly` on the `radiogroup`); `group`, the role\n * of a multiple choice, has no read-only state in ARIA.\n */\n isReadOnly?: boolean;\n /** The id of the group (2.2) — the `id` of `Field`'s `FieldChildProps`. */\n id?: string;\n /**\n * Zorunluluk — `Field`in `FieldChildProps` sözleşmesi (2.2); `aria-required` on a single\n * choice's `radiogroup` (a multiple choice's `group` has no required state in ARIA).\n */\n required?: boolean;\n /** On the group (2.2), with the error and hint ids of `Field`. */\n 'aria-describedby'?: string;\n /** On the group (2.2). */\n 'aria-invalid'?: boolean;\n className?: string;\n};\n\ntype SingleProps<T extends string> = BaseProps<T> & {\n isMultiple?: false;\n value: T | null;\n /** Seçili çipe tekrar basılırsa `null` gelir — seçim geri alınabilir. */\n onChange: (value: T | null) => void;\n};\n\ntype MultipleProps<T extends string> = BaseProps<T> & {\n isMultiple: true;\n value: T[];\n onChange: (value: T[]) => void;\n};\n\ntype Props<T extends string> = SingleProps<T> | MultipleProps<T>;\n\n/** Çip grubu — açılır liste yerine tek dokunuşla seçim. */\nconst ChipGroup = <T extends string>({\n options,\n label,\n size = 'md',\n isScrollable,\n isDisabled,\n isReadOnly,\n id,\n required,\n 'aria-describedby': describedBy,\n 'aria-invalid': isInvalid,\n className,\n ...selection\n}: Props<T>) => {\n const listRef = useRef<HTMLDivElement>(null);\n\n const isSelected = (value: T) =>\n selection.isMultiple ? selection.value.includes(value) : selection.value === value;\n\n const handleSelect = (value: T) => {\n if (isReadOnly) return;\n\n if (selection.isMultiple) {\n const next = selection.value.includes(value)\n ? selection.value.filter(item => item !== value)\n : [...selection.value, value];\n selection.onChange(next);\n return;\n }\n\n // Seçili çipe tekrar basmak seçimi kaldırır: \"hepsi\" seçeneği olmayan filtrelerde kullanıcının\n // geri dönebileceği tek yol bu.\n selection.onChange(selection.value === value ? null : value);\n };\n\n /** Ok tuşlarıyla gezinme; başta/sonda döner (yalnızca tek seçimde). */\n const handleKeyDown = (event: KeyboardEvent<HTMLDivElement>) => {\n if (selection.isMultiple) return;\n\n const offset =\n event.key === 'ArrowRight' || event.key === 'ArrowDown'\n ? 1\n : event.key === 'ArrowLeft' || event.key === 'ArrowUp'\n ? -1\n : 0;\n if (offset === 0) return;\n\n event.preventDefault();\n if (isReadOnly || isDisabled) return;\n\n const enabled = options.filter(option => !option.isDisabled);\n if (enabled.length === 0) return;\n\n const currentIndex = enabled.findIndex(option => option.value === selection.value);\n const next = enabled[(currentIndex + offset + enabled.length) % enabled.length];\n\n selection.onChange(next.value);\n listRef.current?.querySelector<HTMLButtonElement>(`[data-chip-value=\"${next.value}\"]`)?.focus();\n };\n\n // Roving tabindex: seçili çip tabbable; hiçbiri seçili değilse ilki.\n const tabbableValue = selection.isMultiple\n ? null\n : (selection.value ?? options.find(option => !option.isDisabled)?.value ?? null);\n\n return (\n <div\n ref={listRef}\n className={cx(\n styles.group,\n isScrollable && styles['group--scrollable'],\n isReadOnly && styles['group--readOnly'],\n className,\n )}\n id={id}\n role={selection.isMultiple ? 'group' : 'radiogroup'}\n aria-label={label}\n aria-describedby={describedBy}\n aria-invalid={isInvalid || undefined}\n aria-required={(!selection.isMultiple && required) || undefined}\n aria-readonly={(!selection.isMultiple && isReadOnly) || undefined}\n onKeyDown={handleKeyDown}\n >\n {options.map(option => (\n <Chip\n key={option.value}\n size={size}\n icon={option.icon}\n count={option.count}\n isSelected={isSelected(option.value)}\n disabled={isDisabled || option.isDisabled}\n role={selection.isMultiple ? undefined : 'radio'}\n tabIndex={selection.isMultiple || option.value === tabbableValue ? 0 : -1}\n data-chip-value={option.value}\n onClick={() => handleSelect(option.value)}\n >\n {option.label}\n </Chip>\n ))}\n </div>\n );\n};\n\nexport default /*#__PURE__*/ memo(ChipGroup) as typeof ChipGroup;\n"],"names":["ChipGroup","options","label","size","isScrollable","isDisabled","isReadOnly","id","required","describedBy","isInvalid","className","selection","listRef","useRef","isSelected","value","handleSelect","next","item","handleKeyDown","event","offset","enabled","option","currentIndex","_b","_a","tabbableValue","jsx","cx","styles","Chip","index"],"mappings":";;;;;;AA6DA,MAAMA,IAAY,CAAmB;AAAA,EACnC,SAAAC;AAAA,EACA,OAAAC;AAAA,EACA,MAAAC,IAAO;AAAA,EACP,cAAAC;AAAA,EACA,YAAAC;AAAA,EACA,YAAAC;AAAA,EACA,IAAAC;AAAA,EACA,UAAAC;AAAA,EACA,oBAAoBC;AAAA,EACpB,gBAAgBC;AAAA,EAChB,WAAAC;AAAA,EACA,GAAGC;AACL,MAAgB;;AACd,QAAMC,IAAUC,EAAuB,IAAI,GAErCC,IAAa,CAACC,MAClBJ,EAAU,aAAaA,EAAU,MAAM,SAASI,CAAK,IAAIJ,EAAU,UAAUI,GAEzEC,IAAe,CAACD,MAAa;AACjC,QAAI,CAAAV,GAEJ;AAAA,UAAIM,EAAU,YAAY;AACxB,cAAMM,IAAON,EAAU,MAAM,SAASI,CAAK,IACvCJ,EAAU,MAAM,OAAO,CAAAO,MAAQA,MAASH,CAAK,IAC7C,CAAC,GAAGJ,EAAU,OAAOI,CAAK;AAC9B,QAAAJ,EAAU,SAASM,CAAI;AACvB;AAAA,MACF;AAIA,MAAAN,EAAU,SAASA,EAAU,UAAUI,IAAQ,OAAOA,CAAK;AAAA;AAAA,EAC7D,GAGMI,IAAgB,CAACC,MAAyC;;AAC9D,QAAIT,EAAU,WAAY;AAE1B,UAAMU,IACJD,EAAM,QAAQ,gBAAgBA,EAAM,QAAQ,cACxC,IACAA,EAAM,QAAQ,eAAeA,EAAM,QAAQ,YACzC,KACA;AAIR,QAHIC,MAAW,MAEfD,EAAM,eAAA,GACFf,KAAcD,GAAY;AAE9B,UAAMkB,IAAUtB,EAAQ,OAAO,CAAAuB,MAAU,CAACA,EAAO,UAAU;AAC3D,QAAID,EAAQ,WAAW,EAAG;AAE1B,UAAME,IAAeF,EAAQ,UAAU,OAAUC,EAAO,UAAUZ,EAAU,KAAK,GAC3EM,IAAOK,GAASE,IAAeH,IAASC,EAAQ,UAAUA,EAAQ,MAAM;AAE9E,IAAAX,EAAU,SAASM,EAAK,KAAK,IAC7BQ,KAAAC,IAAAd,EAAQ,YAAR,gBAAAc,EAAiB,cAAiC,qBAAqBT,EAAK,KAAK,UAAjF,QAAAQ,EAAwF;AAAA,EAC1F,GAGME,IAAgBhB,EAAU,aAC5B,OACCA,EAAU,WAASe,IAAA1B,EAAQ,KAAK,CAAAuB,MAAU,CAACA,EAAO,UAAU,MAAzC,gBAAAG,EAA4C,UAAS;AAE7E,SACE,gBAAAE;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,KAAKhB;AAAA,MACL,WAAWiB;AAAA,QACTC,EAAO;AAAA,QACP3B,KAAgB2B,EAAO,mBAAmB;AAAA,QAC1CzB,KAAcyB,EAAO,iBAAiB;AAAA,QACtCpB;AAAA,MAAA;AAAA,MAEF,IAAAJ;AAAA,MACA,MAAMK,EAAU,aAAa,UAAU;AAAA,MACvC,cAAYV;AAAA,MACZ,oBAAkBO;AAAA,MAClB,gBAAcC,KAAa;AAAA,MAC3B,iBAAgB,CAACE,EAAU,cAAcJ,KAAa;AAAA,MACtD,iBAAgB,CAACI,EAAU,cAAcN,KAAe;AAAA,MACxD,WAAWc;AAAA,MAEV,UAAAnB,EAAQ,IAAI,CAAAuB,MACX,gBAAAK;AAAA,QAACG;AAAA,QAAA;AAAA,UAEC,MAAA7B;AAAA,UACA,MAAMqB,EAAO;AAAA,UACb,OAAOA,EAAO;AAAA,UACd,YAAYT,EAAWS,EAAO,KAAK;AAAA,UACnC,UAAUnB,KAAcmB,EAAO;AAAA,UAC/B,MAAMZ,EAAU,aAAa,SAAY;AAAA,UACzC,UAAUA,EAAU,cAAcY,EAAO,UAAUI,IAAgB,IAAI;AAAA,UACvE,mBAAiBJ,EAAO;AAAA,UACxB,SAAS,MAAMP,EAAaO,EAAO,KAAK;AAAA,UAEvC,UAAAA,EAAO;AAAA,QAAA;AAAA,QAXHA,EAAO;AAAA,MAAA,CAaf;AAAA,IAAA;AAAA,EAAA;AAGP,GAEAS,sBAAkCjC,CAAS;"}
@@ -0,0 +1 @@
1
+ @layer ui{.ui-group-0tnVf{display:flex;flex-wrap:wrap;gap:var(--hd-space-2)}.ui-group--scrollable-PMu6V{display:flex;gap:var(--hd-space-2);position:relative;overflow-x:auto;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;padding-block:var(--hd-space-1) var(--hd-space-3);scrollbar-width:none;-ms-overflow-style:none}.ui-group--scrollable-PMu6V::-webkit-scrollbar{display:none}.ui-group--scrollable-PMu6V>*{scroll-snap-align:start;flex-shrink:0}.ui-group--scrollable-PMu6V{flex-wrap:nowrap;padding-block:2px}.ui-group-0tnVf.ui-group--readOnly-uqpPV>*{cursor:default}}
@@ -0,0 +1,2 @@
1
+ "use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react/jsx-runtime"),N=require("react"),b=require("react-bootstrap-icons"),m=require("../../helpers/class-name.helper.cjs"),B=require("../../helpers/component.helper.cjs"),s=require("../../helpers/label.helper.cjs"),L=require("../../hooks/useCopyFeedback.cjs"),k=require("../../theme/context.cjs"),I=require("../Link/index.cjs"),a={default:{"badge":"ui-badge-b14ZG","badge--xs":"ui-badge--xs-PBD2E","badge__code":"ui-badge__code-RRDlH","badge--sm":"ui-badge--sm-Fr4vY","badge--md":"ui-badge--md-HGRL4","badge--lg":"ui-badge--lg-J4aiq","badge--interactive":"ui-badge--interactive-mxvxZ","badge__action":"ui-badge__action-OCHTM","badge__button":"ui-badge__button-CVr21","badge__button--done":"ui-badge__button--done-k6XeK","badge__srOnly":"ui-badge__srOnly-ow8L5"}},M=({code:o,isCopyable:_,copyLabel:g,copiedLabel:x,copiedAnnouncement:f,size:y="md",onClick:n,href:r,linkProps:h,label:i,className:j,testId:q})=>{var l,u,p;const{labels:e}=k.useUi(),{isCopied:d,copy:C,nodeRef:F}=L.useCopyFeedback(o),v=!!(n||r),c=t.jsx("span",{className:a.default.badge__code,ref:F,children:o});return t.jsxs("span",{className:m.cx(a.default.badge,a.default[`badge--${y}`],v&&a.default["badge--interactive"],j),"data-testid":q,children:[r?t.jsx(I.default,{...h,href:r,className:a.default.badge__action,"aria-label":i,children:c}):n?t.jsx("button",{type:"button",className:a.default.badge__action,onClick:n,"aria-label":i,children:c}):c,_&&t.jsx("button",{type:"button",className:m.cx(a.default.badge__button,d&&a.default["badge__button--done"]),onClick:C,"aria-label":d?x??s.resolveFormatter("CodeBadge.copiedLabel",(l=e==null?void 0:e.copyField)==null?void 0:l.copied,o):g??s.resolveFormatter("CodeBadge.copyLabel",(u=e==null?void 0:e.copyField)==null?void 0:u.copy,o),children:d?t.jsx(b.ClipboardCheckFill,{"aria-hidden":!0}):t.jsx(b.ClipboardFill,{"aria-hidden":!0})}),t.jsx("span",{"aria-live":"polite",className:a.default.badge__srOnly,children:d?s.resolveLabel("CodeBadge.copiedAnnouncement",f,(p=e==null?void 0:e.copyField)==null?void 0:p.announcement):""})]})},O=N.memo(B.named(M,"CodeBadge"));exports.default=O;
2
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sources":["../../../src/components/CodeBadge/index.tsx"],"sourcesContent":["'use client';\n\nimport { type FC, memo } from 'react';\n\nimport { ClipboardCheckFill, ClipboardFill } from 'react-bootstrap-icons';\n\nimport { cx } from '../../helpers/class-name.helper';\nimport { named } from '../../helpers/component.helper';\nimport { resolveFormatter, resolveLabel } from '../../helpers/label.helper';\nimport { useCopyFeedback } from '../../hooks/useCopyFeedback';\nimport { useUi } from '../../theme/context';\nimport type { UiLinkExtraProps } from '../../types/link.type';\nimport UiLink from '../Link';\n\nimport styles from './index.module.scss';\n\nexport type CodeBadgeSize = 'xs' | 'sm' | 'md' | 'lg';\n\ntype Props = {\n /** Gösterilecek teknik kod (arıza kodu, parça numarası, şase). */\n code: string;\n /** Kopyalama düğmesi ekler. */\n isCopyable?: boolean;\n /** Kopyalama düğmesinin erişilebilir adı. */\n copyLabel?: string;\n /** Kopyalandıktan sonraki ad. */\n copiedLabel?: string;\n /** `aria-live` ile duyurulan onay cümlesi. */\n copiedAnnouncement?: string;\n size?: CodeBadgeSize;\n /** Kodu ETKİLEŞİMLİ yapar (kaynağı aç, ayrıntıya git): kod bir düğme olur. */\n onClick?: () => void;\n /** Kodu bir BAĞLANTI yapar; `onClick` ile birlikte verilmez. */\n href?: string;\n linkProps?: UiLinkExtraProps;\n /**\n * Etkileşimli kodun okunan adı. Kısa kimliklerde (\"A3\") kod tek başına ne açılacağını söylemez\n * (\"A3 kaynağını aç\"). Verilmezse kodun kendisi.\n */\n label?: string;\n className?: string;\n testId?: string;\n};\n\n/**\n * Teknik kod rozeti — monospace kod, MÜREKKEP zemin (iki temada aynı).\n * Etkileşimli kipte (`onClick` / `href`) kod bir düğme ya da bağlantıdır; kopyalama düğmesi onun\n * KARDEŞİ kalır (iç içe düğme geçersiz HTML).\n */\nconst CodeBadge: FC<Props> = ({\n code,\n isCopyable,\n copyLabel,\n copiedLabel,\n copiedAnnouncement,\n size = 'md',\n onClick,\n href,\n linkProps,\n label,\n className,\n testId,\n}) => {\n const { labels } = useUi();\n const { isCopied, copy, nodeRef } = useCopyFeedback(code);\n const isInteractive = Boolean(onClick || href);\n\n /* `user-select: all` (CSS): tek tiklama kodun TAMAMINI secer — yalnizca etkilesimsiz kipte. */\n const codeNode = (\n <span className={styles.badge__code} ref={nodeRef}>\n {code}\n </span>\n );\n\n return (\n <span\n className={cx(\n styles.badge,\n styles[`badge--${size}`],\n isInteractive && styles['badge--interactive'],\n className,\n )}\n data-testid={testId}\n >\n {href ? (\n <UiLink {...linkProps} href={href} className={styles.badge__action} aria-label={label}>\n {codeNode}\n </UiLink>\n ) : onClick ? (\n <button type=\"button\" className={styles.badge__action} onClick={onClick} aria-label={label}>\n {codeNode}\n </button>\n ) : (\n codeNode\n )}\n\n {isCopyable && (\n <button\n type=\"button\"\n className={cx(styles.badge__button, isCopied && styles['badge__button--done'])}\n onClick={copy}\n aria-label={\n isCopied\n ? (copiedLabel ??\n resolveFormatter('CodeBadge.copiedLabel', labels?.copyField?.copied, code))\n : (copyLabel ??\n resolveFormatter('CodeBadge.copyLabel', labels?.copyField?.copy, code))\n }\n >\n {isCopied ? <ClipboardCheckFill aria-hidden /> : <ClipboardFill aria-hidden />}\n </button>\n )}\n\n <span aria-live=\"polite\" className={styles.badge__srOnly}>\n {isCopied\n ? resolveLabel(\n 'CodeBadge.copiedAnnouncement',\n copiedAnnouncement,\n labels?.copyField?.announcement,\n )\n : ''}\n </span>\n </span>\n );\n};\n\nexport default /*#__PURE__*/ memo(/*#__PURE__*/ named(CodeBadge, 'CodeBadge')) as typeof CodeBadge;\n"],"names":["CodeBadge","code","isCopyable","copyLabel","copiedLabel","copiedAnnouncement","size","onClick","href","linkProps","label","className","testId","labels","useUi","isCopied","copy","nodeRef","useCopyFeedback","isInteractive","codeNode","styles","jsxs","cx","jsx","UiLink","resolveFormatter","_a","_b","ClipboardCheckFill","ClipboardFill","resolveLabel","_c","index","memo","named"],"mappings":"ufAgDMA,EAAuB,CAAC,CAC5B,KAAAC,EACA,WAAAC,EACA,UAAAC,EACA,YAAAC,EACA,mBAAAC,EACA,KAAAC,EAAO,KACP,QAAAC,EACA,KAAAC,EACA,UAAAC,EACA,MAAAC,EACA,UAAAC,EACA,OAAAC,CACF,IAAM,WACJ,KAAM,CAAE,OAAAC,CAAA,EAAWC,QAAA,EACb,CAAE,SAAAC,EAAU,KAAAC,EAAM,QAAAC,CAAA,EAAYC,EAAAA,gBAAgBjB,CAAI,EAClDkB,EAAgB,GAAQZ,GAAWC,GAGnCY,QACH,OAAA,CAAK,UAAWC,EAAAA,QAAO,YAAa,IAAKJ,EACvC,SAAAhB,CAAA,CACH,EAGF,OACEqB,EAAAA,KAAC,OAAA,CACC,UAAWC,EAAAA,GACTF,EAAAA,QAAO,MACPA,EAAAA,QAAO,UAAUf,CAAI,EAAE,EACvBa,GAAiBE,EAAAA,QAAO,oBAAoB,EAC5CV,CAAA,EAEF,cAAaC,EAEZ,SAAA,CAAAJ,EACCgB,EAAAA,IAACC,EAAAA,QAAA,CAAQ,GAAGhB,EAAW,KAAAD,EAAY,UAAWa,EAAAA,QAAO,cAAe,aAAYX,EAC7E,SAAAU,CAAA,CACH,EACEb,EACFiB,EAAAA,IAAC,SAAA,CAAO,KAAK,SAAS,UAAWH,EAAAA,QAAO,cAAe,QAAAd,EAAkB,aAAYG,EAClF,SAAAU,CAAA,CACH,EAEAA,EAGDlB,GACCsB,EAAAA,IAAC,SAAA,CACC,KAAK,SACL,UAAWD,EAAAA,GAAGF,UAAO,cAAeN,GAAYM,EAAAA,QAAO,qBAAqB,CAAC,EAC7E,QAASL,EACT,aACED,EACKX,GACDsB,EAAAA,iBAAiB,yBAAyBC,EAAAd,GAAA,YAAAA,EAAQ,YAAR,YAAAc,EAAmB,OAAQ1B,CAAI,EACxEE,GACDuB,EAAAA,iBAAiB,uBAAuBE,EAAAf,GAAA,YAAAA,EAAQ,YAAR,YAAAe,EAAmB,KAAM3B,CAAI,EAG1E,SAAAc,QAAYc,EAAAA,mBAAA,CAAmB,cAAW,GAAC,EAAKL,EAAAA,IAACM,EAAAA,cAAA,CAAc,cAAW,EAAA,CAAC,CAAA,CAAA,QAI/E,OAAA,CAAK,YAAU,SAAS,UAAWT,EAAAA,QAAO,cACxC,SAAAN,EACGgB,EAAAA,aACE,+BACA1B,GACA2B,EAAAnB,GAAA,YAAAA,EAAQ,YAAR,YAAAmB,EAAmB,YAAA,EAErB,EAAA,CACN,CAAA,CAAA,CAAA,CAGN,EAEAC,EAA6BC,OAAmBC,EAAAA,MAAMnC,EAAW,WAAW,CAAC"}
@@ -0,0 +1,36 @@
1
+ import { FC } from 'react';
2
+ import { UiLinkExtraProps } from '../../types/link.type.cjs';
3
+ export type CodeBadgeSize = 'xs' | 'sm' | 'md' | 'lg';
4
+ type Props = {
5
+ /** Gösterilecek teknik kod (arıza kodu, parça numarası, şase). */
6
+ code: string;
7
+ /** Kopyalama düğmesi ekler. */
8
+ isCopyable?: boolean;
9
+ /** Kopyalama düğmesinin erişilebilir adı. */
10
+ copyLabel?: string;
11
+ /** Kopyalandıktan sonraki ad. */
12
+ copiedLabel?: string;
13
+ /** `aria-live` ile duyurulan onay cümlesi. */
14
+ copiedAnnouncement?: string;
15
+ size?: CodeBadgeSize;
16
+ /** Kodu ETKİLEŞİMLİ yapar (kaynağı aç, ayrıntıya git): kod bir düğme olur. */
17
+ onClick?: () => void;
18
+ /** Kodu bir BAĞLANTI yapar; `onClick` ile birlikte verilmez. */
19
+ href?: string;
20
+ linkProps?: UiLinkExtraProps;
21
+ /**
22
+ * Etkileşimli kodun okunan adı. Kısa kimliklerde ("A3") kod tek başına ne açılacağını söylemez
23
+ * ("A3 kaynağını aç"). Verilmezse kodun kendisi.
24
+ */
25
+ label?: string;
26
+ className?: string;
27
+ testId?: string;
28
+ };
29
+ /**
30
+ * Teknik kod rozeti — monospace kod, MÜREKKEP zemin (iki temada aynı).
31
+ * Etkileşimli kipte (`onClick` / `href`) kod bir düğme ya da bağlantıdır; kopyalama düğmesi onun
32
+ * KARDEŞİ kalır (iç içe düğme geçersiz HTML).
33
+ */
34
+ declare const CodeBadge: FC<Props>;
35
+ declare const _default: typeof CodeBadge;
36
+ export default _default;
@@ -0,0 +1,36 @@
1
+ import { FC } from 'react';
2
+ import { UiLinkExtraProps } from '../../types/link.type.js';
3
+ export type CodeBadgeSize = 'xs' | 'sm' | 'md' | 'lg';
4
+ type Props = {
5
+ /** Gösterilecek teknik kod (arıza kodu, parça numarası, şase). */
6
+ code: string;
7
+ /** Kopyalama düğmesi ekler. */
8
+ isCopyable?: boolean;
9
+ /** Kopyalama düğmesinin erişilebilir adı. */
10
+ copyLabel?: string;
11
+ /** Kopyalandıktan sonraki ad. */
12
+ copiedLabel?: string;
13
+ /** `aria-live` ile duyurulan onay cümlesi. */
14
+ copiedAnnouncement?: string;
15
+ size?: CodeBadgeSize;
16
+ /** Kodu ETKİLEŞİMLİ yapar (kaynağı aç, ayrıntıya git): kod bir düğme olur. */
17
+ onClick?: () => void;
18
+ /** Kodu bir BAĞLANTI yapar; `onClick` ile birlikte verilmez. */
19
+ href?: string;
20
+ linkProps?: UiLinkExtraProps;
21
+ /**
22
+ * Etkileşimli kodun okunan adı. Kısa kimliklerde ("A3") kod tek başına ne açılacağını söylemez
23
+ * ("A3 kaynağını aç"). Verilmezse kodun kendisi.
24
+ */
25
+ label?: string;
26
+ className?: string;
27
+ testId?: string;
28
+ };
29
+ /**
30
+ * Teknik kod rozeti — monospace kod, MÜREKKEP zemin (iki temada aynı).
31
+ * Etkileşimli kipte (`onClick` / `href`) kod bir düğme ya da bağlantıdır; kopyalama düğmesi onun
32
+ * KARDEŞİ kalır (iç içe düğme geçersiz HTML).
33
+ */
34
+ declare const CodeBadge: FC<Props>;
35
+ declare const _default: typeof CodeBadge;
36
+ export default _default;