@handijitcom/ui 0.0.0-stage → 1.1.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 (905) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +1025 -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 +10 -0
  545. package/build/constants/scale.constants.d.ts +10 -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/design/fonts/LICENSE-archivo.txt +93 -0
  555. package/build/design/fonts/LICENSE-ibm-plex-mono.txt +93 -0
  556. package/build/design/fonts/LICENSE-inter.txt +93 -0
  557. package/build/design/fonts/archivo-latin-ext-wdth-normal.woff2 +0 -0
  558. package/build/design/fonts/archivo-latin-wdth-normal.woff2 +0 -0
  559. package/build/design/fonts/ibm-plex-mono-latin-400-normal.woff2 +0 -0
  560. package/build/design/fonts/ibm-plex-mono-latin-500-normal.woff2 +0 -0
  561. package/build/design/fonts/ibm-plex-mono-latin-ext-400-normal.woff2 +0 -0
  562. package/build/design/fonts/ibm-plex-mono-latin-ext-500-normal.woff2 +0 -0
  563. package/build/design/fonts/inter-latin-ext-wght-normal.woff2 +0 -0
  564. package/build/design/fonts/inter-latin-wght-normal.woff2 +0 -0
  565. package/build/design/fonts.css +75 -0
  566. package/build/design/fonts.d.css.ts +1 -0
  567. package/build/design/index.cjs +778 -0
  568. package/build/design/index.cjs.map +1 -0
  569. package/build/design/index.d.cts +263 -0
  570. package/build/design/index.d.mts +263 -0
  571. package/build/design/index.mjs +751 -0
  572. package/build/design/index.mjs.map +1 -0
  573. package/build/design/index.umd.cjs +2 -0
  574. package/build/design/index.umd.cjs.map +1 -0
  575. package/build/design/logos/horizontal.svg +1 -0
  576. package/build/design/logos/mark.svg +1 -0
  577. package/build/design/tokens.css +477 -0
  578. package/build/design/tokens.d.css.ts +1 -0
  579. package/build/design/tokens.json +542 -0
  580. package/build/design/tokens.scss +616 -0
  581. package/build/enums/ui-size.enum.cjs +2 -0
  582. package/build/enums/ui-size.enum.cjs.map +1 -0
  583. package/build/enums/ui-size.enum.d.cts +12 -0
  584. package/build/enums/ui-size.enum.d.ts +12 -0
  585. package/build/enums/ui-size.enum.js +5 -0
  586. package/build/enums/ui-size.enum.js.map +1 -0
  587. package/build/enums/ui-variant.enum.cjs +2 -0
  588. package/build/enums/ui-variant.enum.cjs.map +1 -0
  589. package/build/enums/ui-variant.enum.d.cts +20 -0
  590. package/build/enums/ui-variant.enum.d.ts +20 -0
  591. package/build/enums/ui-variant.enum.js +5 -0
  592. package/build/enums/ui-variant.enum.js.map +1 -0
  593. package/build/helpers/aria.helper.cjs +2 -0
  594. package/build/helpers/aria.helper.cjs.map +1 -0
  595. package/build/helpers/aria.helper.d.cts +7 -0
  596. package/build/helpers/aria.helper.d.ts +7 -0
  597. package/build/helpers/aria.helper.js +5 -0
  598. package/build/helpers/aria.helper.js.map +1 -0
  599. package/build/helpers/class-name.helper.cjs +2 -0
  600. package/build/helpers/class-name.helper.cjs.map +1 -0
  601. package/build/helpers/class-name.helper.d.cts +3 -0
  602. package/build/helpers/class-name.helper.d.ts +3 -0
  603. package/build/helpers/class-name.helper.js +10 -0
  604. package/build/helpers/class-name.helper.js.map +1 -0
  605. package/build/helpers/component.helper.cjs +2 -0
  606. package/build/helpers/component.helper.cjs.map +1 -0
  607. package/build/helpers/component.helper.d.cts +13 -0
  608. package/build/helpers/component.helper.d.ts +13 -0
  609. package/build/helpers/component.helper.js +5 -0
  610. package/build/helpers/component.helper.js.map +1 -0
  611. package/build/helpers/focus.helper.cjs +2 -0
  612. package/build/helpers/focus.helper.cjs.map +1 -0
  613. package/build/helpers/focus.helper.d.cts +90 -0
  614. package/build/helpers/focus.helper.d.ts +90 -0
  615. package/build/helpers/focus.helper.js +83 -0
  616. package/build/helpers/focus.helper.js.map +1 -0
  617. package/build/helpers/label.helper.cjs +2 -0
  618. package/build/helpers/label.helper.cjs.map +1 -0
  619. package/build/helpers/label.helper.d.cts +11 -0
  620. package/build/helpers/label.helper.d.ts +11 -0
  621. package/build/helpers/label.helper.js +11 -0
  622. package/build/helpers/label.helper.js.map +1 -0
  623. package/build/helpers/portal.helper.cjs +2 -0
  624. package/build/helpers/portal.helper.cjs.map +1 -0
  625. package/build/helpers/portal.helper.d.cts +28 -0
  626. package/build/helpers/portal.helper.d.ts +28 -0
  627. package/build/helpers/portal.helper.js +36 -0
  628. package/build/helpers/portal.helper.js.map +1 -0
  629. package/build/helpers/ref.helper.cjs +2 -0
  630. package/build/helpers/ref.helper.cjs.map +1 -0
  631. package/build/helpers/ref.helper.d.cts +3 -0
  632. package/build/helpers/ref.helper.d.ts +3 -0
  633. package/build/helpers/ref.helper.js +7 -0
  634. package/build/helpers/ref.helper.js.map +1 -0
  635. package/build/helpers/scaled-number.helper.cjs +2 -0
  636. package/build/helpers/scaled-number.helper.cjs.map +1 -0
  637. package/build/helpers/scaled-number.helper.d.cts +54 -0
  638. package/build/helpers/scaled-number.helper.d.ts +54 -0
  639. package/build/helpers/scaled-number.helper.js +34 -0
  640. package/build/helpers/scaled-number.helper.js.map +1 -0
  641. package/build/helpers/scroll.helper.cjs +2 -0
  642. package/build/helpers/scroll.helper.cjs.map +1 -0
  643. package/build/helpers/scroll.helper.d.cts +8 -0
  644. package/build/helpers/scroll.helper.d.ts +8 -0
  645. package/build/helpers/scroll.helper.js +11 -0
  646. package/build/helpers/scroll.helper.js.map +1 -0
  647. package/build/helpers/text.helper.cjs +2 -0
  648. package/build/helpers/text.helper.cjs.map +1 -0
  649. package/build/helpers/text.helper.d.cts +5 -0
  650. package/build/helpers/text.helper.d.ts +5 -0
  651. package/build/helpers/text.helper.js +6 -0
  652. package/build/helpers/text.helper.js.map +1 -0
  653. package/build/helpers/theme.helper.cjs +2 -0
  654. package/build/helpers/theme.helper.cjs.map +1 -0
  655. package/build/helpers/theme.helper.d.cts +18 -0
  656. package/build/helpers/theme.helper.d.ts +18 -0
  657. package/build/helpers/theme.helper.js +37 -0
  658. package/build/helpers/theme.helper.js.map +1 -0
  659. package/build/hooks/useAnnounce.cjs +2 -0
  660. package/build/hooks/useAnnounce.cjs.map +1 -0
  661. package/build/hooks/useAnnounce.d.cts +4 -0
  662. package/build/hooks/useAnnounce.d.ts +4 -0
  663. package/build/hooks/useAnnounce.js +23 -0
  664. package/build/hooks/useAnnounce.js.map +1 -0
  665. package/build/hooks/useAsyncSearch.cjs +2 -0
  666. package/build/hooks/useAsyncSearch.cjs.map +1 -0
  667. package/build/hooks/useAsyncSearch.d.cts +11 -0
  668. package/build/hooks/useAsyncSearch.d.ts +11 -0
  669. package/build/hooks/useAsyncSearch.js +17 -0
  670. package/build/hooks/useAsyncSearch.js.map +1 -0
  671. package/build/hooks/useCopyFeedback.cjs +2 -0
  672. package/build/hooks/useCopyFeedback.cjs.map +1 -0
  673. package/build/hooks/useCopyFeedback.d.cts +10 -0
  674. package/build/hooks/useCopyFeedback.d.ts +10 -0
  675. package/build/hooks/useCopyFeedback.js +25 -0
  676. package/build/hooks/useCopyFeedback.js.map +1 -0
  677. package/build/hooks/useDismissOnEscape.cjs +2 -0
  678. package/build/hooks/useDismissOnEscape.cjs.map +1 -0
  679. package/build/hooks/useDismissOnEscape.d.cts +16 -0
  680. package/build/hooks/useDismissOnEscape.d.ts +16 -0
  681. package/build/hooks/useDismissOnEscape.js +18 -0
  682. package/build/hooks/useDismissOnEscape.js.map +1 -0
  683. package/build/hooks/useListboxNavigation.cjs +2 -0
  684. package/build/hooks/useListboxNavigation.cjs.map +1 -0
  685. package/build/hooks/useListboxNavigation.d.cts +7 -0
  686. package/build/hooks/useListboxNavigation.d.ts +7 -0
  687. package/build/hooks/useListboxNavigation.js +53 -0
  688. package/build/hooks/useListboxNavigation.js.map +1 -0
  689. package/build/hooks/usePortalSurface.cjs +2 -0
  690. package/build/hooks/usePortalSurface.cjs.map +1 -0
  691. package/build/hooks/usePortalSurface.d.cts +25 -0
  692. package/build/hooks/usePortalSurface.d.ts +25 -0
  693. package/build/hooks/usePortalSurface.js +19 -0
  694. package/build/hooks/usePortalSurface.js.map +1 -0
  695. package/build/hooks/usePositioning.cjs +2 -0
  696. package/build/hooks/usePositioning.cjs.map +1 -0
  697. package/build/hooks/usePositioning.d.cts +13 -0
  698. package/build/hooks/usePositioning.d.ts +13 -0
  699. package/build/hooks/usePositioning.js +74 -0
  700. package/build/hooks/usePositioning.js.map +1 -0
  701. package/build/hooks/useScrollLock.cjs +2 -0
  702. package/build/hooks/useScrollLock.cjs.map +1 -0
  703. package/build/hooks/useScrollLock.d.cts +2 -0
  704. package/build/hooks/useScrollLock.d.ts +2 -0
  705. package/build/hooks/useScrollLock.js +34 -0
  706. package/build/hooks/useScrollLock.js.map +1 -0
  707. package/build/hooks/useSheetViewport.cjs +2 -0
  708. package/build/hooks/useSheetViewport.cjs.map +1 -0
  709. package/build/hooks/useSheetViewport.d.cts +6 -0
  710. package/build/hooks/useSheetViewport.d.ts +6 -0
  711. package/build/hooks/useSheetViewport.js +29 -0
  712. package/build/hooks/useSheetViewport.js.map +1 -0
  713. package/build/hooks/useStickToBottom.cjs +2 -0
  714. package/build/hooks/useStickToBottom.cjs.map +1 -0
  715. package/build/hooks/useStickToBottom.d.cts +12 -0
  716. package/build/hooks/useStickToBottom.d.ts +12 -0
  717. package/build/hooks/useStickToBottom.js +39 -0
  718. package/build/hooks/useStickToBottom.js.map +1 -0
  719. package/build/hooks/useUiTheme.cjs +2 -0
  720. package/build/hooks/useUiTheme.cjs.map +1 -0
  721. package/build/hooks/useUiTheme.d.cts +10 -0
  722. package/build/hooks/useUiTheme.d.ts +10 -0
  723. package/build/hooks/useUiTheme.js +42 -0
  724. package/build/hooks/useUiTheme.js.map +1 -0
  725. package/build/hooks/useUiTokens.cjs +2 -0
  726. package/build/hooks/useUiTokens.cjs.map +1 -0
  727. package/build/hooks/useUiTokens.d.cts +11 -0
  728. package/build/hooks/useUiTokens.d.ts +11 -0
  729. package/build/hooks/useUiTokens.js +36 -0
  730. package/build/hooks/useUiTokens.js.map +1 -0
  731. package/build/hooks/useVirtualList.cjs +2 -0
  732. package/build/hooks/useVirtualList.cjs.map +1 -0
  733. package/build/hooks/useVirtualList.d.cts +13 -0
  734. package/build/hooks/useVirtualList.d.ts +13 -0
  735. package/build/hooks/useVirtualList.js +41 -0
  736. package/build/hooks/useVirtualList.js.map +1 -0
  737. package/build/index.cjs +2 -0
  738. package/build/index.cjs.map +1 -0
  739. package/build/index.d.cts +98 -0
  740. package/build/index.d.ts +98 -0
  741. package/build/index.js +209 -0
  742. package/build/index.js.map +1 -0
  743. package/build/scss/_index.scss +7 -0
  744. package/build/scss/_mixins.scss +861 -0
  745. package/build/scss/_variables.scss +245 -0
  746. package/build/styles/base.d.cts +0 -0
  747. package/build/styles/base.d.ts +0 -0
  748. package/build/styles.css +135 -0
  749. package/build/theme/UiProvider.cjs +2 -0
  750. package/build/theme/UiProvider.cjs.map +1 -0
  751. package/build/theme/UiProvider.d.cts +23 -0
  752. package/build/theme/UiProvider.d.ts +23 -0
  753. package/build/theme/UiProvider.js +12 -0
  754. package/build/theme/UiProvider.js.map +1 -0
  755. package/build/theme/UiThemeScript.cjs +2 -0
  756. package/build/theme/UiThemeScript.cjs.map +1 -0
  757. package/build/theme/UiThemeScript.d.cts +22 -0
  758. package/build/theme/UiThemeScript.d.ts +22 -0
  759. package/build/theme/UiThemeScript.js +8 -0
  760. package/build/theme/UiThemeScript.js.map +1 -0
  761. package/build/theme/context.cjs +2 -0
  762. package/build/theme/context.cjs.map +1 -0
  763. package/build/theme/context.d.cts +5 -0
  764. package/build/theme/context.d.ts +5 -0
  765. package/build/theme/context.js +8 -0
  766. package/build/theme/context.js.map +1 -0
  767. package/build/types/calendar/Calendar/EventBlock.d.cts +29 -0
  768. package/build/types/calendar/Calendar/EventBlock.d.ts +29 -0
  769. package/build/types/calendar/Calendar/MonthGrid.d.cts +28 -0
  770. package/build/types/calendar/Calendar/MonthGrid.d.ts +28 -0
  771. package/build/types/calendar/Calendar/TimeGrid.d.cts +37 -0
  772. package/build/types/calendar/Calendar/TimeGrid.d.ts +37 -0
  773. package/build/types/calendar/Calendar/index.d.cts +72 -0
  774. package/build/types/calendar/Calendar/index.d.ts +72 -0
  775. package/build/types/calendar/core/layout.d.cts +43 -0
  776. package/build/types/calendar/core/layout.d.ts +43 -0
  777. package/build/types/calendar/core/moves.d.cts +37 -0
  778. package/build/types/calendar/core/moves.d.ts +37 -0
  779. package/build/types/calendar/core/time.d.cts +19 -0
  780. package/build/types/calendar/core/time.d.ts +19 -0
  781. package/build/types/calendar/core/types.d.cts +75 -0
  782. package/build/types/calendar/core/types.d.ts +75 -0
  783. package/build/types/calendar/core/useCalendarDrag.d.cts +32 -0
  784. package/build/types/calendar/core/useCalendarDrag.d.ts +32 -0
  785. package/build/types/calendar/index.d.cts +13 -0
  786. package/build/types/calendar/index.d.ts +13 -0
  787. package/build/types/charts/AreaChart/index.d.cts +14 -0
  788. package/build/types/charts/AreaChart/index.d.ts +14 -0
  789. package/build/types/charts/BarChart/index.d.cts +16 -0
  790. package/build/types/charts/BarChart/index.d.ts +16 -0
  791. package/build/types/charts/BoxPlot/index.d.cts +43 -0
  792. package/build/types/charts/BoxPlot/index.d.ts +43 -0
  793. package/build/types/charts/ComposedChart/index.d.cts +16 -0
  794. package/build/types/charts/ComposedChart/index.d.ts +16 -0
  795. package/build/types/charts/Heatmap/index.d.cts +30 -0
  796. package/build/types/charts/Heatmap/index.d.ts +30 -0
  797. package/build/types/charts/Histogram/index.d.cts +29 -0
  798. package/build/types/charts/Histogram/index.d.ts +29 -0
  799. package/build/types/charts/LineChart/index.d.cts +14 -0
  800. package/build/types/charts/LineChart/index.d.ts +14 -0
  801. package/build/types/charts/PieChart/index.d.cts +36 -0
  802. package/build/types/charts/PieChart/index.d.ts +36 -0
  803. package/build/types/charts/RadarChart/index.d.cts +40 -0
  804. package/build/types/charts/RadarChart/index.d.ts +40 -0
  805. package/build/types/charts/ScatterPlot/index.d.cts +41 -0
  806. package/build/types/charts/ScatterPlot/index.d.ts +41 -0
  807. package/build/types/charts/core/CartesianChart.d.cts +43 -0
  808. package/build/types/charts/core/CartesianChart.d.ts +43 -0
  809. package/build/types/charts/core/ChartFrame.d.cts +55 -0
  810. package/build/types/charts/core/ChartFrame.d.ts +55 -0
  811. package/build/types/charts/core/axes.d.cts +37 -0
  812. package/build/types/charts/core/axes.d.ts +37 -0
  813. package/build/types/charts/core/cartesian.d.cts +80 -0
  814. package/build/types/charts/core/cartesian.d.ts +80 -0
  815. package/build/types/charts/core/format.d.cts +19 -0
  816. package/build/types/charts/core/format.d.ts +19 -0
  817. package/build/types/charts/core/margins.d.cts +9 -0
  818. package/build/types/charts/core/margins.d.ts +9 -0
  819. package/build/types/charts/core/palette.d.cts +11 -0
  820. package/build/types/charts/core/palette.d.ts +11 -0
  821. package/build/types/charts/core/path.d.cts +24 -0
  822. package/build/types/charts/core/path.d.ts +24 -0
  823. package/build/types/charts/core/scale.d.cts +40 -0
  824. package/build/types/charts/core/scale.d.ts +40 -0
  825. package/build/types/charts/core/series.d.cts +11 -0
  826. package/build/types/charts/core/series.d.ts +11 -0
  827. package/build/types/charts/core/spatial.d.cts +12 -0
  828. package/build/types/charts/core/spatial.d.ts +12 -0
  829. package/build/types/charts/core/stats.d.cts +34 -0
  830. package/build/types/charts/core/stats.d.ts +34 -0
  831. package/build/types/charts/core/types.d.cts +31 -0
  832. package/build/types/charts/core/types.d.ts +31 -0
  833. package/build/types/charts/core/useChartWidth.d.cts +7 -0
  834. package/build/types/charts/core/useChartWidth.d.ts +7 -0
  835. package/build/types/charts/index.d.cts +21 -0
  836. package/build/types/charts/index.d.ts +21 -0
  837. package/build/types/chat/ActionList/index.d.cts +46 -0
  838. package/build/types/chat/ActionList/index.d.ts +46 -0
  839. package/build/types/chat/AppBar/index.d.cts +21 -0
  840. package/build/types/chat/AppBar/index.d.ts +21 -0
  841. package/build/types/chat/ChatMessage/index.d.cts +24 -0
  842. package/build/types/chat/ChatMessage/index.d.ts +24 -0
  843. package/build/types/chat/ChatThread/index.d.cts +24 -0
  844. package/build/types/chat/ChatThread/index.d.ts +24 -0
  845. package/build/types/chat/Citation/index.d.cts +15 -0
  846. package/build/types/chat/Citation/index.d.ts +15 -0
  847. package/build/types/chat/CodeBlock/format.d.cts +7 -0
  848. package/build/types/chat/CodeBlock/format.d.ts +7 -0
  849. package/build/types/chat/CodeBlock/grammars.d.cts +44 -0
  850. package/build/types/chat/CodeBlock/grammars.d.ts +44 -0
  851. package/build/types/chat/CodeBlock/highlight.d.cts +22 -0
  852. package/build/types/chat/CodeBlock/highlight.d.ts +22 -0
  853. package/build/types/chat/CodeBlock/index.d.cts +33 -0
  854. package/build/types/chat/CodeBlock/index.d.ts +33 -0
  855. package/build/types/chat/DescriptionList/index.d.cts +16 -0
  856. package/build/types/chat/DescriptionList/index.d.ts +16 -0
  857. package/build/types/chat/Legend/index.d.cts +21 -0
  858. package/build/types/chat/Legend/index.d.ts +21 -0
  859. package/build/types/chat/MessageActions/index.d.cts +21 -0
  860. package/build/types/chat/MessageActions/index.d.ts +21 -0
  861. package/build/types/chat/PromptInput/index.d.cts +47 -0
  862. package/build/types/chat/PromptInput/index.d.ts +47 -0
  863. package/build/types/chat/PromptSuggestions/index.d.cts +25 -0
  864. package/build/types/chat/PromptSuggestions/index.d.ts +25 -0
  865. package/build/types/chat/Prose/index.d.cts +15 -0
  866. package/build/types/chat/Prose/index.d.ts +15 -0
  867. package/build/types/chat/ReasoningBlock/index.d.cts +24 -0
  868. package/build/types/chat/ReasoningBlock/index.d.ts +24 -0
  869. package/build/types/chat/ReasoningText/index.d.cts +14 -0
  870. package/build/types/chat/ReasoningText/index.d.ts +14 -0
  871. package/build/types/chat/SegmentBar/index.d.cts +46 -0
  872. package/build/types/chat/SegmentBar/index.d.ts +46 -0
  873. package/build/types/chat/SourceList/index.d.cts +25 -0
  874. package/build/types/chat/SourceList/index.d.ts +25 -0
  875. package/build/types/chat/TerminalOutput/index.d.cts +25 -0
  876. package/build/types/chat/TerminalOutput/index.d.ts +25 -0
  877. package/build/types/chat/ToolCall/index.d.cts +41 -0
  878. package/build/types/chat/ToolCall/index.d.ts +41 -0
  879. package/build/types/chat/index.d.cts +26 -0
  880. package/build/types/chat/index.d.ts +26 -0
  881. package/build/types/combobox.type.d.cts +65 -0
  882. package/build/types/combobox.type.d.ts +65 -0
  883. package/build/types/common-element-props.type.d.cts +8 -0
  884. package/build/types/common-element-props.type.d.ts +8 -0
  885. package/build/types/helpers/class-name.helper.d.cts +3 -0
  886. package/build/types/helpers/class-name.helper.d.ts +3 -0
  887. package/build/types/helpers/component.helper.d.cts +13 -0
  888. package/build/types/helpers/component.helper.d.ts +13 -0
  889. package/build/types/helpers/label.helper.d.cts +12 -0
  890. package/build/types/helpers/label.helper.d.ts +12 -0
  891. package/build/types/hook.type.d.cts +36 -0
  892. package/build/types/hook.type.d.ts +36 -0
  893. package/build/types/link.type.d.cts +14 -0
  894. package/build/types/link.type.d.ts +14 -0
  895. package/build/types/positioning.type.d.cts +38 -0
  896. package/build/types/positioning.type.d.ts +38 -0
  897. package/build/types/theme.type.d.cts +197 -0
  898. package/build/types/theme.type.d.ts +197 -0
  899. package/build/types/types/common-element-props.type.d.cts +8 -0
  900. package/build/types/types/common-element-props.type.d.ts +8 -0
  901. package/build/types/types/link.type.d.cts +14 -0
  902. package/build/types/types/link.type.d.ts +14 -0
  903. package/build/types/types/theme.type.d.cts +197 -0
  904. package/build/types/types/theme.type.d.ts +197 -0
  905. package/package.json +929 -4
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sources":["../../../src/components/PromptDialog/index.tsx"],"sourcesContent":["'use client';\n\nimport { type FC, memo, type ReactNode, useEffect, useId, useRef, useState } from 'react';\n\nimport { resolveLabel } from '../../helpers/label.helper';\nimport { useUi } from '../../theme/context';\nimport UISize from '../../enums/ui-size.enum';\nimport UIVariant from '../../enums/ui-variant.enum';\nimport Button from '../Button';\nimport Field, { type FieldChildProps } from '../Field';\nimport Input from '../Input';\nimport Modal from '../Modal';\nimport Textarea from '../Textarea';\n\nimport styles from './index.module.scss';\n\ntype BaseProps = {\n isOpen: boolean;\n /** Vazgeçme ve perde/Escape kapanışı. */\n onClose: () => void;\n /** Girilen değerle çalışır (değer kırpılmış gönderilir). */\n onSubmit: (value: string) => void | Promise<void>;\n title: string;\n /** Girdi alanının etiketi. */\n label: string;\n /** Verilmezse `labels.submit`. */\n submitLabel?: string;\n /** Verilmezse `labels.cancel`. */\n cancelLabel?: string;\n /** Kapatma düğmesinin erişilebilir adı. */\n closeLabel?: string;\n /** Başlığın altındaki bir cümlelik bağlam. */\n description?: ReactNode;\n hint?: string;\n placeholder?: string;\n defaultValue?: string;\n /** `text` tek satır, `multiline` gerekçe gibi uzun metin, `number` adet/fark gibi sayılar. */\n inputMode?: 'text' | 'multiline' | 'number';\n maxLength?: number;\n rows?: number;\n};\n\ntype Props = BaseProps & {\n /** Boş (yalnızca boşluk dahil) değer gönderilemez. */\n isRequired?: boolean;\n /** Zorunluluk yıldızının ekran okuyucu karşılığı (\"(zorunlu)\"). */\n requiredLabel?: string;\n};\n\n/** Metin isteyen pencere — `window.prompt()` yerine. */\nconst PromptDialog: FC<Props> = ({\n isOpen,\n onClose,\n onSubmit,\n title,\n label,\n submitLabel,\n cancelLabel,\n closeLabel,\n description,\n hint,\n placeholder,\n defaultValue = '',\n isRequired,\n requiredLabel,\n inputMode = 'text',\n maxLength,\n rows = 4,\n}) => {\n const { labels } = useUi();\n const formId = useId();\n const [value, setValue] = useState(defaultValue);\n const [isBusy, setIsBusy] = useState(false);\n\n /*\n * Deger yalnizca ACILIS kenarinda tazelenir. `isOpen`'a bagli duz bir etki, pencere acikken gelen\n * her ust render'da yazilani ezebilirdi\n */\n const wasOpenRef = useRef(false);\n useEffect(() => {\n if (isOpen && !wasOpenRef.current) setValue(defaultValue);\n wasOpenRef.current = isOpen;\n }, [isOpen, defaultValue]);\n\n const trimmed = value.trim();\n const isSubmitDisabled = Boolean(isRequired) && trimmed === '';\n\n /** Girdi, `Field`in urettigi erisilebilirlik baglariyla cizilir. */\n const renderControl = (props: FieldChildProps) =>\n inputMode === 'multiline' ? (\n <Textarea\n {...props}\n value={value}\n onChange={event => setValue(event.target.value)}\n placeholder={placeholder}\n maxLength={maxLength}\n rows={rows}\n />\n ) : (\n <Input\n {...props}\n type={inputMode === 'number' ? 'number' : 'text'}\n value={value}\n onChange={event => setValue(event.target.value)}\n placeholder={placeholder}\n maxLength={maxLength}\n />\n );\n\n const handleSubmit = async () => {\n if (isSubmitDisabled || isBusy) return;\n\n setIsBusy(true);\n try {\n await onSubmit(trimmed);\n // Yalnizca basarida: hata durumunda pencere acik, metin yerinde kalir.\n onClose();\n } catch {\n // Bildirim cagiranin isi; burada yalnizca pencere acik tutulur.\n } finally {\n setIsBusy(false);\n }\n };\n\n return (\n <Modal\n isOpen={isOpen}\n onClose={onClose}\n title={title}\n closeLabel={closeLabel ?? labels?.close}\n description={description}\n size=\"sm\"\n // Istek surerken kapanmaz: kapanis \"islem iptal oldu\" gibi gorunuyordu.\n isDismissable={!isBusy}\n footer={\n <>\n <Button\n variant={UIVariant.SECONDARY}\n size={UISize.MEDIUM}\n onClick={onClose}\n disabled={isBusy}\n >\n {resolveLabel('PromptDialog.cancelLabel', cancelLabel, labels?.cancel)}\n </Button>\n <Button\n type=\"submit\"\n form={formId}\n variant={UIVariant.PRIMARY}\n size={UISize.MEDIUM}\n disabled={isSubmitDisabled}\n isLoading={isBusy}\n >\n {resolveLabel('PromptDialog.submitLabel', submitLabel, labels?.submit)}\n </Button>\n </>\n }\n >\n <form\n id={formId}\n className={styles.form}\n onSubmit={event => {\n event.preventDefault();\n handleSubmit();\n }}\n >\n <Field label={label} hint={hint} isRequired={isRequired} requiredLabel={requiredLabel}>\n {renderControl}\n </Field>\n </form>\n </Modal>\n );\n};\n\nexport default /*#__PURE__*/ memo(PromptDialog) as typeof PromptDialog;\n"],"names":["PromptDialog","isOpen","onClose","onSubmit","title","label","submitLabel","cancelLabel","closeLabel","description","hint","placeholder","defaultValue","isRequired","requiredLabel","inputMode","maxLength","rows","labels","useUi","formId","useId","value","setValue","useState","isBusy","setIsBusy","wasOpenRef","useRef","useEffect","trimmed","isSubmitDisabled","renderControl","props","jsx","Textarea","event","Input","handleSubmit","Modal","jsxs","Fragment","Button","UIVariant","UISize","resolveLabel","styles","Field","index"],"mappings":"kiBAiDMA,EAA0B,CAAC,CAC/B,OAAAC,EACA,QAAAC,EACA,SAAAC,EACA,MAAAC,EACA,MAAAC,EACA,YAAAC,EACA,YAAAC,EACA,WAAAC,EACA,YAAAC,EACA,KAAAC,EACA,YAAAC,EACA,aAAAC,EAAe,GACf,WAAAC,EACA,cAAAC,EACA,UAAAC,EAAY,OACZ,UAAAC,EACA,KAAAC,EAAO,CACT,IAAM,CACJ,KAAM,CAAE,OAAAC,CAAA,EAAWC,QAAA,EACbC,EAASC,EAAAA,MAAA,EACT,CAACC,EAAOC,CAAQ,EAAIC,EAAAA,SAASZ,CAAY,EACzC,CAACa,EAAQC,CAAS,EAAIF,EAAAA,SAAS,EAAK,EAMpCG,EAAaC,EAAAA,OAAO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AU,QACnB,KAAMC,EAAAA,QAAO,OACb,SAAUb,EACV,UAAWN,EAEV,SAAAoB,EAAAA,aAAa,2BAA4BvC,EAAaY,GAAA,YAAAA,EAAQ,MAAM,CAAA,CAAA,CACvE,EACF,EAGF,SAAAgB,EAAAA,IAAC,OAAA,CACC,GAAId,EACJ,UAAW0B,EAAAA,QAAO,KAClB,SAAUV,GAAS,CACjBA,EAAM,eAAA,EACNE,EAAA,CACF,EAEA,eAACS,EAAAA,QAAA,CAAM,MAAA1C,EAAc,KAAAK,EAAY,WAAAG,EAAwB,cAAAC,EACtD,SAAAkB,CAAA,CACH,CAAA,CAAA,CACF,CAAA,CAGN,EAEAgB,SAAkChD,CAAY"}
@@ -0,0 +1,36 @@
1
+ import { FC, ReactNode } from 'react';
2
+ type BaseProps = {
3
+ isOpen: boolean;
4
+ /** Vazgeçme ve perde/Escape kapanışı. */
5
+ onClose: () => void;
6
+ /** Girilen değerle çalışır (değer kırpılmış gönderilir). */
7
+ onSubmit: (value: string) => void | Promise<void>;
8
+ title: string;
9
+ /** Girdi alanının etiketi. */
10
+ label: string;
11
+ /** Verilmezse `labels.submit`. */
12
+ submitLabel?: string;
13
+ /** Verilmezse `labels.cancel`. */
14
+ cancelLabel?: string;
15
+ /** Kapatma düğmesinin erişilebilir adı. */
16
+ closeLabel?: string;
17
+ /** Başlığın altındaki bir cümlelik bağlam. */
18
+ description?: ReactNode;
19
+ hint?: string;
20
+ placeholder?: string;
21
+ defaultValue?: string;
22
+ /** `text` tek satır, `multiline` gerekçe gibi uzun metin, `number` adet/fark gibi sayılar. */
23
+ inputMode?: 'text' | 'multiline' | 'number';
24
+ maxLength?: number;
25
+ rows?: number;
26
+ };
27
+ type Props = BaseProps & {
28
+ /** Boş (yalnızca boşluk dahil) değer gönderilemez. */
29
+ isRequired?: boolean;
30
+ /** Zorunluluk yıldızının ekran okuyucu karşılığı ("(zorunlu)"). */
31
+ requiredLabel?: string;
32
+ };
33
+ /** Metin isteyen pencere — `window.prompt()` yerine. */
34
+ declare const PromptDialog: FC<Props>;
35
+ declare const _default: typeof PromptDialog;
36
+ export default _default;
@@ -0,0 +1,36 @@
1
+ import { FC, ReactNode } from 'react';
2
+ type BaseProps = {
3
+ isOpen: boolean;
4
+ /** Vazgeçme ve perde/Escape kapanışı. */
5
+ onClose: () => void;
6
+ /** Girilen değerle çalışır (değer kırpılmış gönderilir). */
7
+ onSubmit: (value: string) => void | Promise<void>;
8
+ title: string;
9
+ /** Girdi alanının etiketi. */
10
+ label: string;
11
+ /** Verilmezse `labels.submit`. */
12
+ submitLabel?: string;
13
+ /** Verilmezse `labels.cancel`. */
14
+ cancelLabel?: string;
15
+ /** Kapatma düğmesinin erişilebilir adı. */
16
+ closeLabel?: string;
17
+ /** Başlığın altındaki bir cümlelik bağlam. */
18
+ description?: ReactNode;
19
+ hint?: string;
20
+ placeholder?: string;
21
+ defaultValue?: string;
22
+ /** `text` tek satır, `multiline` gerekçe gibi uzun metin, `number` adet/fark gibi sayılar. */
23
+ inputMode?: 'text' | 'multiline' | 'number';
24
+ maxLength?: number;
25
+ rows?: number;
26
+ };
27
+ type Props = BaseProps & {
28
+ /** Boş (yalnızca boşluk dahil) değer gönderilemez. */
29
+ isRequired?: boolean;
30
+ /** Zorunluluk yıldızının ekran okuyucu karşılığı ("(zorunlu)"). */
31
+ requiredLabel?: string;
32
+ };
33
+ /** Metin isteyen pencere — `window.prompt()` yerine. */
34
+ declare const PromptDialog: FC<Props>;
35
+ declare const _default: typeof PromptDialog;
36
+ export default _default;
@@ -0,0 +1,119 @@
1
+ "use client";
2
+ import { jsx as r, jsxs as F, Fragment as N } from "react/jsx-runtime";
3
+ import { memo as Y, useId as k, useState as h, useRef as T, useEffect as G } from "react";
4
+ import { resolveLabel as y } from "../../helpers/label.helper.js";
5
+ import { useUi as H } from "../../theme/context.js";
6
+ import v from "../../enums/ui-size.enum.js";
7
+ import x from "../../enums/ui-variant.enum.js";
8
+ import S from "../Button/index.js";
9
+ import J from "../Field/index.js";
10
+ import K from "../Input/index.js";
11
+ import Q from "../Modal/index.js";
12
+ import V from "../Textarea/index.js";
13
+ const W = {"form":"ui-form-zpZn4"};
14
+ const X = ({
15
+ isOpen: e,
16
+ onClose: m,
17
+ onSubmit: M,
18
+ title: U,
19
+ label: z,
20
+ submitLabel: B,
21
+ cancelLabel: E,
22
+ closeLabel: L,
23
+ description: P,
24
+ hint: R,
25
+ placeholder: f,
26
+ defaultValue: s = "",
27
+ isRequired: l,
28
+ requiredLabel: C,
29
+ inputMode: u = "text",
30
+ maxLength: d,
31
+ rows: j = 4
32
+ }) => {
33
+ const { labels: t } = H(), p = k(), [n, a] = h(s), [o, b] = h(!1), D = T(!1);
34
+ G(() => {
35
+ e && !D.current && a(s), D.current = e;
36
+ }, [e, s]);
37
+ const I = n.trim(), g = !!l && I === "", w = (i) => u === "multiline" ? /* @__PURE__ */ r(
38
+ V,
39
+ {
40
+ ...i,
41
+ value: n,
42
+ onChange: (c) => a(c.target.value),
43
+ placeholder: f,
44
+ maxLength: d,
45
+ rows: j
46
+ }
47
+ ) : /* @__PURE__ */ r(
48
+ K,
49
+ {
50
+ ...i,
51
+ type: u === "number" ? "number" : "text",
52
+ value: n,
53
+ onChange: (c) => a(c.target.value),
54
+ placeholder: f,
55
+ maxLength: d
56
+ }
57
+ ), A = async () => {
58
+ if (!(g || o)) {
59
+ b(!0);
60
+ try {
61
+ await M(I), m();
62
+ } catch {
63
+ } finally {
64
+ b(!1);
65
+ }
66
+ }
67
+ };
68
+ return /* @__PURE__ */ r(
69
+ Q,
70
+ {
71
+ isOpen: e,
72
+ onClose: m,
73
+ title: U,
74
+ closeLabel: L ?? (t == null ? void 0 : t.close),
75
+ description: P,
76
+ size: "sm",
77
+ isDismissable: !o,
78
+ footer: /* @__PURE__ */ F(N, { children: [
79
+ /* @__PURE__ */ r(
80
+ S,
81
+ {
82
+ variant: x.SECONDARY,
83
+ size: v.MEDIUM,
84
+ onClick: m,
85
+ disabled: o,
86
+ children: y("PromptDialog.cancelLabel", E, t == null ? void 0 : t.cancel)
87
+ }
88
+ ),
89
+ /* @__PURE__ */ r(
90
+ S,
91
+ {
92
+ type: "submit",
93
+ form: p,
94
+ variant: x.PRIMARY,
95
+ size: v.MEDIUM,
96
+ disabled: g,
97
+ isLoading: o,
98
+ children: y("PromptDialog.submitLabel", B, t == null ? void 0 : t.submit)
99
+ }
100
+ )
101
+ ] }),
102
+ children: /* @__PURE__ */ r(
103
+ "form",
104
+ {
105
+ id: p,
106
+ className: W.form,
107
+ onSubmit: (i) => {
108
+ i.preventDefault(), A();
109
+ },
110
+ children: /* @__PURE__ */ r(J, { label: z, hint: R, isRequired: l, requiredLabel: C, children: w })
111
+ }
112
+ )
113
+ }
114
+ );
115
+ }, nt = /* @__PURE__ */ Y(X);
116
+ export {
117
+ nt as default
118
+ };
119
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../src/components/PromptDialog/index.tsx"],"sourcesContent":["'use client';\n\nimport { type FC, memo, type ReactNode, useEffect, useId, useRef, useState } from 'react';\n\nimport { resolveLabel } from '../../helpers/label.helper';\nimport { useUi } from '../../theme/context';\nimport UISize from '../../enums/ui-size.enum';\nimport UIVariant from '../../enums/ui-variant.enum';\nimport Button from '../Button';\nimport Field, { type FieldChildProps } from '../Field';\nimport Input from '../Input';\nimport Modal from '../Modal';\nimport Textarea from '../Textarea';\n\nimport styles from './index.module.scss';\n\ntype BaseProps = {\n isOpen: boolean;\n /** Vazgeçme ve perde/Escape kapanışı. */\n onClose: () => void;\n /** Girilen değerle çalışır (değer kırpılmış gönderilir). */\n onSubmit: (value: string) => void | Promise<void>;\n title: string;\n /** Girdi alanının etiketi. */\n label: string;\n /** Verilmezse `labels.submit`. */\n submitLabel?: string;\n /** Verilmezse `labels.cancel`. */\n cancelLabel?: string;\n /** Kapatma düğmesinin erişilebilir adı. */\n closeLabel?: string;\n /** Başlığın altındaki bir cümlelik bağlam. */\n description?: ReactNode;\n hint?: string;\n placeholder?: string;\n defaultValue?: string;\n /** `text` tek satır, `multiline` gerekçe gibi uzun metin, `number` adet/fark gibi sayılar. */\n inputMode?: 'text' | 'multiline' | 'number';\n maxLength?: number;\n rows?: number;\n};\n\ntype Props = BaseProps & {\n /** Boş (yalnızca boşluk dahil) değer gönderilemez. */\n isRequired?: boolean;\n /** Zorunluluk yıldızının ekran okuyucu karşılığı (\"(zorunlu)\"). */\n requiredLabel?: string;\n};\n\n/** Metin isteyen pencere — `window.prompt()` yerine. */\nconst PromptDialog: FC<Props> = ({\n isOpen,\n onClose,\n onSubmit,\n title,\n label,\n submitLabel,\n cancelLabel,\n closeLabel,\n description,\n hint,\n placeholder,\n defaultValue = '',\n isRequired,\n requiredLabel,\n inputMode = 'text',\n maxLength,\n rows = 4,\n}) => {\n const { labels } = useUi();\n const formId = useId();\n const [value, setValue] = useState(defaultValue);\n const [isBusy, setIsBusy] = useState(false);\n\n /*\n * Deger yalnizca ACILIS kenarinda tazelenir. `isOpen`'a bagli duz bir etki, pencere acikken gelen\n * her ust render'da yazilani ezebilirdi\n */\n const wasOpenRef = useRef(false);\n useEffect(() => {\n if (isOpen && !wasOpenRef.current) setValue(defaultValue);\n wasOpenRef.current = isOpen;\n }, [isOpen, defaultValue]);\n\n const trimmed = value.trim();\n const isSubmitDisabled = Boolean(isRequired) && trimmed === '';\n\n /** Girdi, `Field`in urettigi erisilebilirlik baglariyla cizilir. */\n const renderControl = (props: FieldChildProps) =>\n inputMode === 'multiline' ? (\n <Textarea\n {...props}\n value={value}\n onChange={event => setValue(event.target.value)}\n placeholder={placeholder}\n maxLength={maxLength}\n rows={rows}\n />\n ) : (\n <Input\n {...props}\n type={inputMode === 'number' ? 'number' : 'text'}\n value={value}\n onChange={event => setValue(event.target.value)}\n placeholder={placeholder}\n maxLength={maxLength}\n />\n );\n\n const handleSubmit = async () => {\n if (isSubmitDisabled || isBusy) return;\n\n setIsBusy(true);\n try {\n await onSubmit(trimmed);\n // Yalnizca basarida: hata durumunda pencere acik, metin yerinde kalir.\n onClose();\n } catch {\n // Bildirim cagiranin isi; burada yalnizca pencere acik tutulur.\n } finally {\n setIsBusy(false);\n }\n };\n\n return (\n <Modal\n isOpen={isOpen}\n onClose={onClose}\n title={title}\n closeLabel={closeLabel ?? labels?.close}\n description={description}\n size=\"sm\"\n // Istek surerken kapanmaz: kapanis \"islem iptal oldu\" gibi gorunuyordu.\n isDismissable={!isBusy}\n footer={\n <>\n <Button\n variant={UIVariant.SECONDARY}\n size={UISize.MEDIUM}\n onClick={onClose}\n disabled={isBusy}\n >\n {resolveLabel('PromptDialog.cancelLabel', cancelLabel, labels?.cancel)}\n </Button>\n <Button\n type=\"submit\"\n form={formId}\n variant={UIVariant.PRIMARY}\n size={UISize.MEDIUM}\n disabled={isSubmitDisabled}\n isLoading={isBusy}\n >\n {resolveLabel('PromptDialog.submitLabel', submitLabel, labels?.submit)}\n </Button>\n </>\n }\n >\n <form\n id={formId}\n className={styles.form}\n onSubmit={event => {\n event.preventDefault();\n handleSubmit();\n }}\n >\n <Field label={label} hint={hint} isRequired={isRequired} requiredLabel={requiredLabel}>\n {renderControl}\n </Field>\n </form>\n </Modal>\n );\n};\n\nexport default /*#__PURE__*/ memo(PromptDialog) as typeof PromptDialog;\n"],"names":["PromptDialog","isOpen","onClose","onSubmit","title","label","submitLabel","cancelLabel","closeLabel","description","hint","placeholder","defaultValue","isRequired","requiredLabel","inputMode","maxLength","rows","labels","useUi","formId","useId","value","setValue","useState","isBusy","setIsBusy","wasOpenRef","useRef","useEffect","trimmed","isSubmitDisabled","renderControl","props","jsx","Textarea","event","Input","handleSubmit","Modal","jsxs","Fragment","Button","UIVariant","UISize","resolveLabel","styles","Field","index"],"mappings":";;;;;;;;;;;;;AAiDA,MAAMA,IAA0B,CAAC;AAAA,EAC/B,QAAAC;AAAA,EACA,SAAAC;AAAA,EACA,UAAAC;AAAA,EACA,OAAAC;AAAA,EACA,OAAAC;AAAA,EACA,aAAAC;AAAA,EACA,aA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+ @layer ui{.ui-form-zpZn4{display:flex;flex-direction:column;gap:var(--hd-space-4)}}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("react/jsx-runtime"),t=require("react"),e=require("../../constants/scale.constants.cjs"),o=require("../../helpers/component.helper.cjs"),a=require("../ScaledInput/index.cjs"),c=t.forwardRef(({unitDigits:n,unit:i,...r},s)=>u.jsx(a.default,{ref:s,...r,scaleDigits:e.QTY4_DIGITS,maxFractionDigits:Math.min(n,e.QTY4_DIGITS),suffix:i})),l=t.memo(o.named(c,"QuantityInput"));exports.default=l;
2
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sources":["../../../src/components/QuantityInput/index.tsx"],"sourcesContent":["import { forwardRef, memo, type ReactNode } from 'react';\n\nimport { QTY4_DIGITS } from '../../constants/scale.constants';\nimport { named } from '../../helpers/component.helper';\nimport ScaledInput, { type ScaledInputProps } from '../ScaledInput';\n\ntype Props = Omit<\n ScaledInputProps,\n 'scaleDigits' | 'maxFractionDigits' | 'minFractionDigits' | 'suffix'\n> & {\n /**\n * The decimal places the unit takes (a piece 0, a kilogram 3; at most 4). The stored scale stays\n * 4 whatever the unit: \"2,5\" kg is `25000`.\n */\n unitDigits: number;\n /** The unit after the number (\"kg\", \"adet\"). */\n unit?: ReactNode;\n};\n\n/**\n * Quantity field (2.4): takes and gives a `Qty4`, ten-thousandths of the base unit — \"2,5\" is\n * `25000`, \"3\" pieces `30000`. Not `QuantityStepper`, which counts whole pieces with two buttons.\n */\nconst QuantityInput = /*#__PURE__*/ forwardRef<HTMLInputElement, Props>(\n ({ unitDigits, unit, ...rest }, ref) => (\n <ScaledInput\n ref={ref}\n {...rest}\n scaleDigits={QTY4_DIGITS}\n maxFractionDigits={Math.min(unitDigits, QTY4_DIGITS)}\n suffix={unit}\n />\n ),\n);\n\nexport default /*#__PURE__*/ memo(\n /*#__PURE__*/ named(QuantityInput, 'QuantityInput'),\n) as typeof QuantityInput;\n"],"names":["QuantityInput","forwardRef","unitDigits","unit","rest","ref","jsx","ScaledInput","QTY4_DIGITS","index","memo","named"],"mappings":"2SAuBMA,EAA8BC,EAAAA,WAClC,CAAC,CAAE,WAAAC,EAAY,KAAAC,EAAM,GAAGC,CAAA,EAAQC,IAC9BC,EAAAA,IAACC,EAAAA,QAAA,CACC,IAAAF,EACC,GAAGD,EACJ,YAAaI,EAAAA,YACb,kBAAmB,KAAK,IAAIN,EAAYM,EAAAA,WAAW,EACnD,OAAQL,CAAA,CAAA,CAGd,EAEAM,EAA6BC,EAAAA,KACbC,EAAAA,MAAMX,EAAe,eAAe,CACpD"}
@@ -0,0 +1,17 @@
1
+ import { ReactNode } from 'react';
2
+ import { ScaledInputProps } from '../ScaledInput/index.cjs';
3
+ /**
4
+ * Quantity field (2.4): takes and gives a `Qty4`, ten-thousandths of the base unit — "2,5" is
5
+ * `25000`, "3" pieces `30000`. Not `QuantityStepper`, which counts whole pieces with two buttons.
6
+ */
7
+ declare const QuantityInput: import('react').ForwardRefExoticComponent<Omit<ScaledInputProps, "suffix" | "scaleDigits" | "minFractionDigits" | "maxFractionDigits"> & {
8
+ /**
9
+ * The decimal places the unit takes (a piece 0, a kilogram 3; at most 4). The stored scale stays
10
+ * 4 whatever the unit: "2,5" kg is `25000`.
11
+ */
12
+ unitDigits: number;
13
+ /** The unit after the number ("kg", "adet"). */
14
+ unit?: ReactNode;
15
+ } & import('react').RefAttributes<HTMLInputElement>>;
16
+ declare const _default: typeof QuantityInput;
17
+ export default _default;
@@ -0,0 +1,17 @@
1
+ import { ReactNode } from 'react';
2
+ import { ScaledInputProps } from '../ScaledInput/index.js';
3
+ /**
4
+ * Quantity field (2.4): takes and gives a `Qty4`, ten-thousandths of the base unit — "2,5" is
5
+ * `25000`, "3" pieces `30000`. Not `QuantityStepper`, which counts whole pieces with two buttons.
6
+ */
7
+ declare const QuantityInput: import('react').ForwardRefExoticComponent<Omit<ScaledInputProps, "suffix" | "scaleDigits" | "minFractionDigits" | "maxFractionDigits"> & {
8
+ /**
9
+ * The decimal places the unit takes (a piece 0, a kilogram 3; at most 4). The stored scale stays
10
+ * 4 whatever the unit: "2,5" kg is `25000`.
11
+ */
12
+ unitDigits: number;
13
+ /** The unit after the number ("kg", "adet"). */
14
+ unit?: ReactNode;
15
+ } & import('react').RefAttributes<HTMLInputElement>>;
16
+ declare const _default: typeof QuantityInput;
17
+ export default _default;
@@ -0,0 +1,23 @@
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ import { memo as n, forwardRef as f } from "react";
3
+ import { QTY4_DIGITS as t } from "../../constants/scale.constants.js";
4
+ import { named as p } from "../../helpers/component.helper.js";
5
+ import e from "../ScaledInput/index.js";
6
+ const s = /* @__PURE__ */ f(
7
+ ({ unitDigits: o, unit: i, ...m }, r) => /* @__PURE__ */ a(
8
+ e,
9
+ {
10
+ ref: r,
11
+ ...m,
12
+ scaleDigits: t,
13
+ maxFractionDigits: Math.min(o, t),
14
+ suffix: i
15
+ }
16
+ )
17
+ ), l = /* @__PURE__ */ n(
18
+ /* @__PURE__ */ p(s, "QuantityInput")
19
+ );
20
+ export {
21
+ l as default
22
+ };
23
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../src/components/QuantityInput/index.tsx"],"sourcesContent":["import { forwardRef, memo, type ReactNode } from 'react';\n\nimport { QTY4_DIGITS } from '../../constants/scale.constants';\nimport { named } from '../../helpers/component.helper';\nimport ScaledInput, { type ScaledInputProps } from '../ScaledInput';\n\ntype Props = Omit<\n ScaledInputProps,\n 'scaleDigits' | 'maxFractionDigits' | 'minFractionDigits' | 'suffix'\n> & {\n /**\n * The decimal places the unit takes (a piece 0, a kilogram 3; at most 4). The stored scale stays\n * 4 whatever the unit: \"2,5\" kg is `25000`.\n */\n unitDigits: number;\n /** The unit after the number (\"kg\", \"adet\"). */\n unit?: ReactNode;\n};\n\n/**\n * Quantity field (2.4): takes and gives a `Qty4`, ten-thousandths of the base unit — \"2,5\" is\n * `25000`, \"3\" pieces `30000`. Not `QuantityStepper`, which counts whole pieces with two buttons.\n */\nconst QuantityInput = /*#__PURE__*/ forwardRef<HTMLInputElement, Props>(\n ({ unitDigits, unit, ...rest }, ref) => (\n <ScaledInput\n ref={ref}\n {...rest}\n scaleDigits={QTY4_DIGITS}\n maxFractionDigits={Math.min(unitDigits, QTY4_DIGITS)}\n suffix={unit}\n />\n ),\n);\n\nexport default /*#__PURE__*/ memo(\n /*#__PURE__*/ named(QuantityInput, 'QuantityInput'),\n) as typeof QuantityInput;\n"],"names":["QuantityInput","forwardRef","unitDigits","unit","rest","ref","jsx","ScaledInput","QTY4_DIGITS","index","memo","named"],"mappings":";;;;;AAuBA,MAAMA,IAA8B,gBAAAC;AAAA,EAClC,CAAC,EAAE,YAAAC,GAAY,MAAAC,GAAM,GAAGC,EAAA,GAAQC,MAC9B,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,KAAAF;AAAA,MACC,GAAGD;AAAA,MACJ,aAAaI;AAAA,MACb,mBAAmB,KAAK,IAAIN,GAAYM,CAAW;AAAA,MACnD,QAAQL;AAAA,IAAA;AAAA,EAAA;AAGd,GAEAM,IAA6B,gBAAAC;AAAA,EACb,gBAAAC,EAAMX,GAAe,eAAe;AACpD;"}
@@ -0,0 +1,2 @@
1
+ "use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("react/jsx-runtime"),x=require("react"),k=require("react-bootstrap-icons"),U=require("../../helpers/class-name.helper.cjs"),b=require("../../helpers/label.helper.cjs"),A=require("../../theme/context.cjs"),c={default:{"stepper":"ui-stepper-8s5Ih","stepper__input":"ui-stepper__input-OQh5v","stepper__button":"ui-stepper__button-h6g7d","stepper--sm":"ui-stepper--sm-RvrBP","stepper--md":"ui-stepper--md-Cnjei"}},B=({value:r,onChange:a,label:D,decreaseLabel:h,increaseLabel:j,min:l=1,max:n=99,isDisabled:p,isReadOnly:i,size:L="md",id:S,required:M,"aria-describedby":w,"aria-invalid":N,className:P,testId:Q})=>{var m,g,q;const{labels:t}=A.useUi(),f=b.resolveLabel("QuantityStepper.label",D,(m=t==null?void 0:t.quantity)==null?void 0:m.label),[v,o]=x.useState(null),d=e=>Math.min(Math.max(e,l),n),y=e=>{if(o(null),i)return;const s=e.replace(/\D/g,"");s!==""&&a(d(Number(s)))};return u.jsxs("div",{className:U.cx(c.default.stepper,c.default[`stepper--${L}`],P),role:"group","aria-label":f,"data-testid":Q,children:[u.jsx("button",{type:"button",className:c.default.stepper__button,onClick:()=>a(Math.max(r-1,l)),disabled:p||i||r<=l,"aria-label":b.resolveLabel("QuantityStepper.decreaseLabel",h,(g=t==null?void 0:t.quantity)==null?void 0:g.decrease),children:u.jsx(k.DashLg,{"aria-hidden":!0})}),u.jsx("input",{id:S,className:c.default.stepper__input,value:v??String(r),onChange:e=>o(e.target.value.replace(/\D/g,"").slice(0,2)),onBlur:e=>y(e.target.value),onKeyDown:e=>{if(i)return;const s=e.key==="ArrowUp"?1:e.key==="ArrowDown"?-1:0;if(s!==0){e.preventDefault(),o(null),a(d(r+s));return}const _=e.key==="PageUp"?10:e.key==="PageDown"?-10:0;if(_!==0){e.preventDefault(),o(null),a(d(r+_));return}if(e.key==="Home"||e.key==="End"){e.preventDefault(),o(null),a(e.key==="Home"?l:n);return}e.key==="Enter"&&(e.preventDefault(),y(e.target.value))},inputMode:"numeric",disabled:p,readOnly:i,"aria-readonly":i||void 0,"aria-required":M||void 0,"aria-invalid":N||void 0,"aria-describedby":w,role:"spinbutton","aria-valuenow":r,"aria-valuemin":l,"aria-valuemax":n,"aria-label":f}),u.jsx("button",{type:"button",className:c.default.stepper__button,onClick:()=>a(Math.min(r+1,n)),disabled:p||i||r>=n,"aria-label":b.resolveLabel("QuantityStepper.increaseLabel",j,(q=t==null?void 0:t.quantity)==null?void 0:q.increase),children:u.jsx(k.PlusLg,{"aria-hidden":!0})})]})},E=x.memo(B);exports.default=E;
2
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sources":["../../../src/components/QuantityStepper/index.tsx"],"sourcesContent":["'use client';\n\nimport { type FC, memo, useState } from 'react';\n\nimport { DashLg, PlusLg } from 'react-bootstrap-icons';\n\nimport { cx } from '../../helpers/class-name.helper';\nimport { resolveLabel } from '../../helpers/label.helper';\nimport { useUi } from '../../theme/context';\n\nimport styles from './index.module.scss';\n\ntype Props = {\n value: number;\n onChange: (value: number) => void;\n /** Grubun ve girdinin erişilebilir adı. */\n label?: string;\n /** Verilmezse `labels.quantity.decrease`. */\n decreaseLabel?: string;\n /** Verilmezse `labels.quantity.increase`. */\n increaseLabel?: string;\n min?: number;\n max?: number;\n isDisabled?: boolean;\n /**\n * Read-only (2.2): the number stays focusable and readable (`aria-readonly`); typing, the arrow\n * keys and the two buttons do not change it.\n */\n isReadOnly?: boolean;\n size?: 'sm' | 'md';\n /**\n * The id of the number box (2.2) — the `id` of `Field`'s `FieldChildProps`, so the field's label\n * and a form's focus reach the box.\n */\n id?: string;\n /** Zorunluluk — `Field`in `FieldChildProps` sözleşmesi (2.2); `aria-required` on the box. */\n required?: boolean;\n /** On the number box (2.2), with the error and hint ids of `Field`. */\n 'aria-describedby'?: string;\n /** On the number box (2.2): `spinbutton` takes `aria-invalid`. */\n 'aria-invalid'?: boolean;\n className?: string;\n testId?: string;\n};\n\n/** Adet seçici. */\nconst QuantityStepper: FC<Props> = ({\n value,\n onChange,\n label,\n decreaseLabel,\n increaseLabel,\n min = 1,\n max = 99,\n isDisabled,\n isReadOnly,\n size = 'md',\n id,\n required,\n 'aria-describedby': describedBy,\n 'aria-invalid': isInvalid,\n className,\n testId,\n}) => {\n const { labels } = useUi();\n const groupLabel = resolveLabel('QuantityStepper.label', label, labels?.quantity?.label);\n const [draft, setDraft] = useState<string | null>(null);\n\n const clamp = (next: number) => Math.min(Math.max(next, min), max);\n\n const commit = (raw: string) => {\n setDraft(null);\n if (isReadOnly) return;\n\n /*\n * Onceki bicim `if (!parsed) return;` diyordu ve `0` falsy: `min={0}` ile kurulmus bir alanda\n * (stok duzeltme formu) kullanici `0` yazip alandan…\n * ⚠ BOSLUK KONTROLU HAM DIZEDEN yapilir, sayidan DEGIL.\n */\n const digits = raw.replace(/\\D/g, '');\n if (digits === '') return;\n\n onChange(clamp(Number(digits)));\n };\n\n return (\n <div\n className={cx(styles.stepper, styles[`stepper--${size}`], className)}\n role=\"group\"\n aria-label={groupLabel}\n data-testid={testId}\n >\n <button\n type=\"button\"\n className={styles.stepper__button}\n onClick={() => onChange(Math.max(value - 1, min))}\n disabled={isDisabled || isReadOnly || value <= min}\n aria-label={resolveLabel(\n 'QuantityStepper.decreaseLabel',\n decreaseLabel,\n labels?.quantity?.decrease,\n )}\n >\n <DashLg aria-hidden />\n </button>\n\n <input\n id={id}\n className={styles.stepper__input}\n value={draft ?? String(value)}\n onChange={event => setDraft(event.target.value.replace(/\\D/g, '').slice(0, 2))}\n onBlur={event => commit(event.target.value)}\n /* ⚠ `spinbutton` ROLU BIR SOZ VERIR: */\n onKeyDown={event => {\n if (isReadOnly) return;\n\n const step = event.key === 'ArrowUp' ? 1 : event.key === 'ArrowDown' ? -1 : 0;\n\n if (step !== 0) {\n event.preventDefault();\n setDraft(null);\n onChange(clamp(value + step));\n return;\n }\n\n const page = event.key === 'PageUp' ? 10 : event.key === 'PageDown' ? -10 : 0;\n\n if (page !== 0) {\n event.preventDefault();\n setDraft(null);\n onChange(clamp(value + page));\n return;\n }\n\n if (event.key === 'Home' || event.key === 'End') {\n event.preventDefault();\n setDraft(null);\n onChange(event.key === 'Home' ? min : max);\n return;\n }\n\n if (event.key === 'Enter') {\n event.preventDefault();\n commit((event.target as HTMLInputElement).value);\n }\n }}\n inputMode=\"numeric\"\n disabled={isDisabled}\n readOnly={isReadOnly}\n aria-readonly={isReadOnly || undefined}\n aria-required={required || undefined}\n aria-invalid={isInvalid || undefined}\n aria-describedby={describedBy}\n /* ⚠ ARALIK ETIKETE GOMULMEZ, ROLE ILE BILDIRILIR. */\n role=\"spinbutton\"\n aria-valuenow={value}\n aria-valuemin={min}\n aria-valuemax={max}\n aria-label={groupLabel}\n />\n\n <button\n type=\"button\"\n className={styles.stepper__button}\n onClick={() => onChange(Math.min(value + 1, max))}\n disabled={isDisabled || isReadOnly || value >= max}\n aria-label={resolveLabel(\n 'QuantityStepper.increaseLabel',\n increaseLabel,\n labels?.quantity?.increase,\n )}\n >\n <PlusLg aria-hidden />\n </button>\n </div>\n );\n};\n\nexport default /*#__PURE__*/ memo(QuantityStepper) as typeof QuantityStepper;\n"],"names":["QuantityStepper","value","onChange","label","decreaseLabel","increaseLabel","min","max","isDisabled","isReadOnly","size","id","required","describedBy","isInvalid","className","testId","labels","useUi","groupLabel","resolveLabel","_a","draft","setDraft","useState","clamp","next","commit","raw","digits","jsxs","cx","styles","jsx","_b","DashLg","event","step","page","_c","PlusLg","index"],"mappings":"2XA6CMA,EAA6B,CAAC,CAClC,MAAAC,EACA,SAAAC,EACA,MAAAC,EACA,cAAAC,EACA,cAAAC,EACA,IAAAC,EAAM,EACN,IAAAC,EAAM,GACN,WAAAC,EACA,WAAAC,EACA,KAAAC,EAAO,KACP,GAAAC,EACA,SAAAC,EACA,mBAAoBC,EACpB,eAAgBC,EAChB,UAAAC,EACA,OAAAC,CACF,IAAM,WACJ,KAAM,CAAE,OAAAC,CAAA,EAAWC,QAAA,EACbC,EAAaC,EAAAA,aAAa,wBAAyBjB,GAAOkB,EAAAJ,GAAA,YAAAA,EAAQ,WAAR,YAAAI,EAAkB,KAAK,EACjF,CAACC,EAAOC,CAAQ,EAAIC,EAAAA,SAAwB,IAAI,EAEhDC,EAASC,GAAiB,KAAK,IAAI,KAAK,IAAIA,EAAMpB,CAAG,EAAGC,CAAG,EAE3DoB,EAAUC,GAAgB,CAE9B,GADAL,EAAS,IAAI,EACTd,EAAY,OAOhB,MAAMoB,EAAS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AAMxB,EAAQqC,CAAI,CAAC,EAC5B,MACF,CAEA,GAAIF,EAAM,MAAQ,QAAUA,EAAM,MAAQ,MAAO,CAC/CA,EAAM,eAAA,EACNb,EAAS,IAAI,EACbrB,EAASkC,EAAM,MAAQ,OAAS9B,EAAMC,CAAG,EACzC,MACF,CAEI6B,EAAM,MAAQ,UAChBA,EAAM,eAAA,EACNT,EAAQS,EAAM,OAA4B,KAAK,EAEnD,EACA,UAAU,UACV,SAAU5B,EACV,SAAUC,EACV,gBAAeA,GAAc,OAC7B,gBAAeG,GAAY,OAC3B,eAAcE,GAAa,OAC3B,mBAAkBD,EAElB,KAAK,aACL,gBAAeZ,EACf,gBAAeK,EACf,gBAAeC,EACf,aAAYY,CAAA,CAAA,EAGdc,EAAAA,IAAC,SAAA,CACC,KAAK,SACL,UAAWD,EAAAA,QAAO,gBAClB,QAAS,IAAM9B,EAAS,KAAK,IAAID,EAAQ,EAAGM,CAAG,CAAC,EAChD,SAAUC,GAAcC,GAAcR,GAASM,EAC/C,aAAYa,EAAAA,aACV,gCACAf,GACAkC,EAAAtB,GAAA,YAAAA,EAAQ,WAAR,YAAAsB,EAAkB,QAAA,EAGpB,SAAAN,EAAAA,IAACO,EAAAA,OAAA,CAAO,cAAW,EAAA,CAAC,CAAA,CAAA,CACtB,CAAA,CAAA,CAGN,EAEAC,SAAkCzC,CAAe"}
@@ -0,0 +1,37 @@
1
+ import { FC } from 'react';
2
+ type Props = {
3
+ value: number;
4
+ onChange: (value: number) => void;
5
+ /** Grubun ve girdinin erişilebilir adı. */
6
+ label?: string;
7
+ /** Verilmezse `labels.quantity.decrease`. */
8
+ decreaseLabel?: string;
9
+ /** Verilmezse `labels.quantity.increase`. */
10
+ increaseLabel?: string;
11
+ min?: number;
12
+ max?: number;
13
+ isDisabled?: boolean;
14
+ /**
15
+ * Read-only (2.2): the number stays focusable and readable (`aria-readonly`); typing, the arrow
16
+ * keys and the two buttons do not change it.
17
+ */
18
+ isReadOnly?: boolean;
19
+ size?: 'sm' | 'md';
20
+ /**
21
+ * The id of the number box (2.2) — the `id` of `Field`'s `FieldChildProps`, so the field's label
22
+ * and a form's focus reach the box.
23
+ */
24
+ id?: string;
25
+ /** Zorunluluk — `Field`in `FieldChildProps` sözleşmesi (2.2); `aria-required` on the box. */
26
+ required?: boolean;
27
+ /** On the number box (2.2), with the error and hint ids of `Field`. */
28
+ 'aria-describedby'?: string;
29
+ /** On the number box (2.2): `spinbutton` takes `aria-invalid`. */
30
+ 'aria-invalid'?: boolean;
31
+ className?: string;
32
+ testId?: string;
33
+ };
34
+ /** Adet seçici. */
35
+ declare const QuantityStepper: FC<Props>;
36
+ declare const _default: typeof QuantityStepper;
37
+ export default _default;
@@ -0,0 +1,37 @@
1
+ import { FC } from 'react';
2
+ type Props = {
3
+ value: number;
4
+ onChange: (value: number) => void;
5
+ /** Grubun ve girdinin erişilebilir adı. */
6
+ label?: string;
7
+ /** Verilmezse `labels.quantity.decrease`. */
8
+ decreaseLabel?: string;
9
+ /** Verilmezse `labels.quantity.increase`. */
10
+ increaseLabel?: string;
11
+ min?: number;
12
+ max?: number;
13
+ isDisabled?: boolean;
14
+ /**
15
+ * Read-only (2.2): the number stays focusable and readable (`aria-readonly`); typing, the arrow
16
+ * keys and the two buttons do not change it.
17
+ */
18
+ isReadOnly?: boolean;
19
+ size?: 'sm' | 'md';
20
+ /**
21
+ * The id of the number box (2.2) — the `id` of `Field`'s `FieldChildProps`, so the field's label
22
+ * and a form's focus reach the box.
23
+ */
24
+ id?: string;
25
+ /** Zorunluluk — `Field`in `FieldChildProps` sözleşmesi (2.2); `aria-required` on the box. */
26
+ required?: boolean;
27
+ /** On the number box (2.2), with the error and hint ids of `Field`. */
28
+ 'aria-describedby'?: string;
29
+ /** On the number box (2.2): `spinbutton` takes `aria-invalid`. */
30
+ 'aria-invalid'?: boolean;
31
+ className?: string;
32
+ testId?: string;
33
+ };
34
+ /** Adet seçici. */
35
+ declare const QuantityStepper: FC<Props>;
36
+ declare const _default: typeof QuantityStepper;
37
+ export default _default;
@@ -0,0 +1,118 @@
1
+ "use client";
2
+ import { jsxs as U, jsx as l } from "react/jsx-runtime";
3
+ import { memo as j, useState as A } from "react";
4
+ import { DashLg as E, PlusLg as H } from "react-bootstrap-icons";
5
+ import { cx as B } from "../../helpers/class-name.helper.js";
6
+ import { resolveLabel as m } from "../../helpers/label.helper.js";
7
+ import { useUi as K } from "../../theme/context.js";
8
+ const s = {"stepper":"ui-stepper-8s5Ih","stepper__input":"ui-stepper__input-OQh5v","stepper__button":"ui-stepper__button-h6g7d","stepper--sm":"ui-stepper--sm-RvrBP","stepper--md":"ui-stepper--md-Cnjei"};
9
+ const $ = ({
10
+ value: e,
11
+ onChange: a,
12
+ label: h,
13
+ decreaseLabel: w,
14
+ increaseLabel: L,
15
+ min: o = 1,
16
+ max: u = 99,
17
+ isDisabled: c,
18
+ isReadOnly: i,
19
+ size: S = "md",
20
+ id: _,
21
+ required: M,
22
+ "aria-describedby": N,
23
+ "aria-invalid": q,
24
+ className: x,
25
+ testId: Q
26
+ }) => {
27
+ var y, g, k;
28
+ const { labels: t } = K(), f = m("QuantityStepper.label", h, (y = t == null ? void 0 : t.quantity) == null ? void 0 : y.label), [P, p] = A(null), d = (r) => Math.min(Math.max(r, o), u), b = (r) => {
29
+ if (p(null), i) return;
30
+ const n = r.replace(/\D/g, "");
31
+ n !== "" && a(d(Number(n)));
32
+ };
33
+ return /* @__PURE__ */ U(
34
+ "div",
35
+ {
36
+ className: B(s.stepper, s[`stepper--${S}`], x),
37
+ role: "group",
38
+ "aria-label": f,
39
+ "data-testid": Q,
40
+ children: [
41
+ /* @__PURE__ */ l(
42
+ "button",
43
+ {
44
+ type: "button",
45
+ className: s.stepper__button,
46
+ onClick: () => a(Math.max(e - 1, o)),
47
+ disabled: c || i || e <= o,
48
+ "aria-label": m(
49
+ "QuantityStepper.decreaseLabel",
50
+ w,
51
+ (g = t == null ? void 0 : t.quantity) == null ? void 0 : g.decrease
52
+ ),
53
+ children: /* @__PURE__ */ l(E, { "aria-hidden": !0 })
54
+ }
55
+ ),
56
+ /* @__PURE__ */ l(
57
+ "input",
58
+ {
59
+ id: _,
60
+ className: s.stepper__input,
61
+ value: P ?? String(e),
62
+ onChange: (r) => p(r.target.value.replace(/\D/g, "").slice(0, 2)),
63
+ onBlur: (r) => b(r.target.value),
64
+ onKeyDown: (r) => {
65
+ if (i) return;
66
+ const n = r.key === "ArrowUp" ? 1 : r.key === "ArrowDown" ? -1 : 0;
67
+ if (n !== 0) {
68
+ r.preventDefault(), p(null), a(d(e + n));
69
+ return;
70
+ }
71
+ const D = r.key === "PageUp" ? 10 : r.key === "PageDown" ? -10 : 0;
72
+ if (D !== 0) {
73
+ r.preventDefault(), p(null), a(d(e + D));
74
+ return;
75
+ }
76
+ if (r.key === "Home" || r.key === "End") {
77
+ r.preventDefault(), p(null), a(r.key === "Home" ? o : u);
78
+ return;
79
+ }
80
+ r.key === "Enter" && (r.preventDefault(), b(r.target.value));
81
+ },
82
+ inputMode: "numeric",
83
+ disabled: c,
84
+ readOnly: i,
85
+ "aria-readonly": i || void 0,
86
+ "aria-required": M || void 0,
87
+ "aria-invalid": q || void 0,
88
+ "aria-describedby": N,
89
+ role: "spinbutton",
90
+ "aria-valuenow": e,
91
+ "aria-valuemin": o,
92
+ "aria-valuemax": u,
93
+ "aria-label": f
94
+ }
95
+ ),
96
+ /* @__PURE__ */ l(
97
+ "button",
98
+ {
99
+ type: "button",
100
+ className: s.stepper__button,
101
+ onClick: () => a(Math.min(e + 1, u)),
102
+ disabled: c || i || e >= u,
103
+ "aria-label": m(
104
+ "QuantityStepper.increaseLabel",
105
+ L,
106
+ (k = t == null ? void 0 : t.quantity) == null ? void 0 : k.increase
107
+ ),
108
+ children: /* @__PURE__ */ l(H, { "aria-hidden": !0 })
109
+ }
110
+ )
111
+ ]
112
+ }
113
+ );
114
+ }, W = /* @__PURE__ */ j($);
115
+ export {
116
+ W as default
117
+ };
118
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../src/components/QuantityStepper/index.tsx"],"sourcesContent":["'use client';\n\nimport { type FC, memo, useState } from 'react';\n\nimport { DashLg, PlusLg } from 'react-bootstrap-icons';\n\nimport { cx } from '../../helpers/class-name.helper';\nimport { resolveLabel } from '../../helpers/label.helper';\nimport { useUi } from '../../theme/context';\n\nimport styles from './index.module.scss';\n\ntype Props = {\n value: number;\n onChange: (value: number) => void;\n /** Grubun ve girdinin erişilebilir adı. */\n label?: string;\n /** Verilmezse `labels.quantity.decrease`. */\n decreaseLabel?: string;\n /** Verilmezse `labels.quantity.increase`. */\n increaseLabel?: string;\n min?: number;\n max?: number;\n isDisabled?: boolean;\n /**\n * Read-only (2.2): the number stays focusable and readable (`aria-readonly`); typing, the arrow\n * keys and the two buttons do not change it.\n */\n isReadOnly?: boolean;\n size?: 'sm' | 'md';\n /**\n * The id of the number box (2.2) — the `id` of `Field`'s `FieldChildProps`, so the field's label\n * and a form's focus reach the box.\n */\n id?: string;\n /** Zorunluluk — `Field`in `FieldChildProps` sözleşmesi (2.2); `aria-required` on the box. */\n required?: boolean;\n /** On the number box (2.2), with the error and hint ids of `Field`. */\n 'aria-describedby'?: string;\n /** On the number box (2.2): `spinbutton` takes `aria-invalid`. */\n 'aria-invalid'?: boolean;\n className?: string;\n testId?: string;\n};\n\n/** Adet seçici. */\nconst QuantityStepper: FC<Props> = ({\n value,\n onChange,\n label,\n decreaseLabel,\n increaseLabel,\n min = 1,\n max = 99,\n isDisabled,\n isReadOnly,\n size = 'md',\n id,\n required,\n 'aria-describedby': describedBy,\n 'aria-invalid': isInvalid,\n className,\n testId,\n}) => {\n const { labels } = useUi();\n const groupLabel = resolveLabel('QuantityStepper.label', label, labels?.quantity?.label);\n const [draft, setDraft] = useState<string | null>(null);\n\n const clamp = (next: number) => Math.min(Math.max(next, min), max);\n\n const commit = (raw: string) => {\n setDraft(null);\n if (isReadOnly) return;\n\n /*\n * Onceki bicim `if (!parsed) return;` diyordu ve `0` falsy: `min={0}` ile kurulmus bir alanda\n * (stok duzeltme formu) kullanici `0` yazip alandan…\n * ⚠ BOSLUK KONTROLU HAM DIZEDEN yapilir, sayidan DEGIL.\n */\n const digits = raw.replace(/\\D/g, '');\n if (digits === '') return;\n\n onChange(clamp(Number(digits)));\n };\n\n return (\n <div\n className={cx(styles.stepper, styles[`stepper--${size}`], className)}\n role=\"group\"\n aria-label={groupLabel}\n data-testid={testId}\n >\n <button\n type=\"button\"\n className={styles.stepper__button}\n onClick={() => onChange(Math.max(value - 1, min))}\n disabled={isDisabled || isReadOnly || value <= min}\n aria-label={resolveLabel(\n 'QuantityStepper.decreaseLabel',\n decreaseLabel,\n labels?.quantity?.decrease,\n )}\n >\n <DashLg aria-hidden />\n </button>\n\n <input\n id={id}\n className={styles.stepper__input}\n value={draft ?? String(value)}\n onChange={event => setDraft(event.target.value.replace(/\\D/g, '').slice(0, 2))}\n onBlur={event => commit(event.target.value)}\n /* ⚠ `spinbutton` ROLU BIR SOZ VERIR: */\n onKeyDown={event => {\n if (isReadOnly) return;\n\n const step = event.key === 'ArrowUp' ? 1 : event.key === 'ArrowDown' ? -1 : 0;\n\n if (step !== 0) {\n event.preventDefault();\n setDraft(null);\n onChange(clamp(value + step));\n return;\n }\n\n const page = event.key === 'PageUp' ? 10 : event.key === 'PageDown' ? -10 : 0;\n\n if (page !== 0) {\n event.preventDefault();\n setDraft(null);\n onChange(clamp(value + page));\n return;\n }\n\n if (event.key === 'Home' || event.key === 'End') {\n event.preventDefault();\n setDraft(null);\n onChange(event.key === 'Home' ? min : max);\n return;\n }\n\n if (event.key === 'Enter') {\n event.preventDefault();\n commit((event.target as HTMLInputElement).value);\n }\n }}\n inputMode=\"numeric\"\n disabled={isDisabled}\n readOnly={isReadOnly}\n aria-readonly={isReadOnly || undefined}\n aria-required={required || undefined}\n aria-invalid={isInvalid || undefined}\n aria-describedby={describedBy}\n /* ⚠ ARALIK ETIKETE GOMULMEZ, ROLE ILE BILDIRILIR. */\n role=\"spinbutton\"\n aria-valuenow={value}\n aria-valuemin={min}\n aria-valuemax={max}\n aria-label={groupLabel}\n />\n\n <button\n type=\"button\"\n className={styles.stepper__button}\n onClick={() => onChange(Math.min(value + 1, max))}\n disabled={isDisabled || isReadOnly || value >= max}\n aria-label={resolveLabel(\n 'QuantityStepper.increaseLabel',\n increaseLabel,\n labels?.quantity?.increase,\n )}\n >\n <PlusLg aria-hidden />\n </button>\n </div>\n );\n};\n\nexport default /*#__PURE__*/ memo(QuantityStepper) as typeof QuantityStepper;\n"],"names":["QuantityStepper","value","onChange","label","decreaseLabel","increaseLabel","min","max","isDisabled","isReadOnly","size","id","required","describedBy","isInvalid","className","testId","labels","useUi","groupLabel","resolveLabel","_a","draft","setDraft","useState","clamp","next","commit","raw","digits","jsxs","cx","styles","jsx","_b","DashLg","event","step","page","_c","PlusLg","index"],"mappings":";;;;;;;;AA6CA,MAAMA,IAA6B,CAAC;AAAA,EAClC,OAAAC;AAAA,EACA,UAAAC;AAAA,EACA,OAAAC;AAAA,EACA,eAAAC;AAAA,EACA,eAAAC;AAAA,EACA,KAAAC,IAAM;AAAA,EACN,KAAAC,IAAM;AAAA,EACN,YAAAC;AAAA,EACA,YAAAC;AAAA,EACA,MAAAC,IAAO;AAAA,EACP,IAAAC;AAAA,EACA,UAAAC;AAAA,EACA,oBAAoBC;AAAA,EACpB,gBAAgBC;AAAA,EAChB,WAAAC;AAAA,EACA,QAAAC;AACF,MAAM;;AACJ,QAAM,EAAE,QAAAC,EAAA,IAAWC,EAAA,GACbC,IAAaC,EAAa,yBAAyBjB,IAAOkB,IAAAJ,KAAA,gBAAAA,EAAQ,aAAR,gBAAAI,EAAkB,KAAK,GACjF,CAACC,GAAOC,CAAQ,IAAIC,EAAwB,IAAI,GAEhDC,IAAQ,CAACC,MAAiB,KAAK,IAAI,KAAK,IAAIA,GAAMpB,CAAG,GAAGC,CAAG,GAE3DoB,IAAS,CAACC,MAAgB;AAE9B,QADAL,E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B;AAAA,IAAA;AAAA,EAAA;AAGN,GAEAC,sBAAkCzC,CAAe;"}
@@ -0,0 +1 @@
1
+ @layer ui{.ui-stepper-8s5Ih{display:inline-flex;align-items:stretch;border:1px solid var(--hd-border-control);border-radius:var(--hd-radius-sm);background-color:var(--hd-bg-surface);overflow:hidden}.ui-stepper-8s5Ih:has(.ui-stepper__input-OQh5v[aria-invalid=true]){border-color:var(--hd-danger-solid)}.ui-stepper__button-h6g7d{display:flex;align-items:center;justify-content:center;border:none;background:none;color:var(--hd-text-2);cursor:pointer;padding-inline:var(--hd-space-3);transition:background-color var(--hd-duration-fast) var(--hd-ease-standard)}.ui-stepper__button-h6g7d:hover:not(:disabled){background-color:var(--hd-bg-raised);color:var(--hd-text)}.ui-stepper__button-h6g7d: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-stepper__button-h6g7d:disabled{color:GrayText;border-color:GrayText}}.ui-stepper__button-h6g7d:focus-visible{outline:var(--ui-ring-width, 2px) solid var(--hd-focus);outline-offset:var(--ui-ring-offset, -2px)}@media (prefers-reduced-motion: reduce){.ui-stepper__button-h6g7d{transition:none}}.ui-stepper__input-OQh5v{font-family:var(--hd-font-mono);font-size:var(--hd-type-small-size);letter-spacing:.02em;font-variant-numeric:tabular-nums;width:40px;border:none;border-inline:1px solid var(--hd-border);background:none;text-align:center;color:var(--hd-text);font-weight:var(--hd-font-weight-semibold)}@media (hover: none) and (pointer: coarse){.ui-stepper__input-OQh5v{font-size:max(16px,var(--hd-type-body-size))}}.ui-stepper__input-OQh5v:focus{outline:none;background-color:var(--hd-bg-raised)}.ui-stepper__input-OQh5v:disabled{color:var(--hd-text-2)}.ui-stepper--sm-RvrBP .ui-stepper__button-h6g7d{height:32px;font-size:16px}.ui-stepper--sm-RvrBP .ui-stepper__input-OQh5v{width:34px;font-size:var(--hd-type-caption-size)}@media (hover: none) and (pointer: coarse){.ui-stepper--sm-RvrBP .ui-stepper__input-OQh5v{font-size:max(16px,var(--hd-type-body-size))}}.ui-stepper--md-Cnjei .ui-stepper__button-h6g7d{height:44px;font-size:18px}.ui-stepper--md-Cnjei .ui-stepper__input-OQh5v{width:46px}}
@@ -0,0 +1,2 @@
1
+ "use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),t=require("react"),N=require("react-bootstrap-icons"),u=require("@handijitcom/utils"),_=require("../../helpers/aria.helper.cjs"),y=require("../../helpers/class-name.helper.cjs"),v=require("../../helpers/component.helper.cjs"),a={default:{"radio":"ui-radio-KoZak","radio__input":"ui-radio__input-gVMgh","radio__body":"ui-radio__body-oZWg6","radio__label":"ui-radio__label-d-5ce","radio__hint":"ui-radio__hint-baVbs","radio__error":"ui-radio__error-vguvt","radio__count":"ui-radio__count-OtkUM"}},R=t.forwardRef(({label:m,hint:d,error:s,count:r,className:b,id:p,testId:f,"aria-describedby":x,"aria-invalid":h,...j},q)=>{const I=t.useId(),i=p??I,l=`${i}-label`,n=`${i}-hint`,c=`${i}-error`,o=`${i}-count`;return e.jsxs("label",{className:y.cx(a.default.radio,b),"data-testid":f,children:[e.jsx("input",{ref:q,type:"radio",id:i,className:a.default.radio__input,"aria-labelledby":_.idList(l,u.isDefined(r)&&o),"aria-describedby":_.idList(s&&c,d&&n,x),"aria-invalid":s?!0:h,...j}),e.jsxs("span",{className:a.default.radio__body,children:[e.jsx("span",{id:l,className:a.default.radio__label,children:m}),d&&e.jsx("span",{id:n,className:a.default.radio__hint,children:d}),s&&e.jsxs("span",{id:c,className:a.default.radio__error,role:"alert",children:[e.jsx(N.ExclamationCircleFill,{"aria-hidden":!0}),s]})]}),u.isDefined(r)&&e.jsx("span",{id:o,className:a.default.radio__count,children:r})]})}),$=t.memo(v.named(R,"Radio"));exports.default=$;
2
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sources":["../../../src/components/Radio/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 { isDefined } from '@handijitcom/utils';\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 radio is marked invalid (`aria-invalid`) and the message\n * is linked with `aria-describedby`. The error of a whole group belongs on the group (its\n * `radiogroup` element with `aria-invalid`, or a `Field` around it), not on every radio.\n */\n error?: string;\n /** Sağda gösterilen sonuç adedi (filtre listelerinde). */\n count?: number;\n testId?: string;\n};\n\n/** Radyo düğmesi. */\nconst Radio = /*#__PURE__*/ forwardRef<HTMLInputElement, Props>(\n (\n {\n label,\n hint,\n error,\n count,\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 const countId = `${baseId}-count`;\n\n return (\n <label className={cx(styles.radio, className)} data-testid={testId}>\n <input\n ref={ref}\n type=\"radio\"\n id={baseId}\n className={styles.radio__input}\n /*\n * Sayaç ADIN İÇİNDE KALIR (\"Disk Balata, 128\"): filtre listesinde kaç sonuç olduğu\n * seçimin bir parçası.\n */\n aria-labelledby={idList(labelId, isDefined(count) && countId)}\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.radio__body}>\n <span id={labelId} className={styles.radio__label}>\n {label}\n </span>\n {hint && (\n <span id={hintId} className={styles.radio__hint}>\n {hint}\n </span>\n )}\n {error && (\n <span id={errorId} className={styles.radio__error} role=\"alert\">\n <ExclamationCircleFill aria-hidden />\n {error}\n </span>\n )}\n </span>\n {isDefined(count) && (\n <span id={countId} className={styles.radio__count}>\n {count}\n </span>\n )}\n </label>\n );\n },\n);\n\nexport default /*#__PURE__*/ memo(/*#__PURE__*/ named(Radio, 'Radio')) as typeof Radio;\n"],"names":["Radio","forwardRef","label","hint","error","count","className","id","testId","describedBy","isInvalid","rest","ref","generatedId","useId","baseId","labelId","hintId","errorId","countId","jsxs","cx","styles","jsx","idList","isDefined","ExclamationCircleFill","index","memo","named"],"mappings":"qaA6BMA,EAAsBC,EAAAA,WAC1B,CACE,CACE,MAAAC,EACA,KAAAC,EACA,MAAAC,EACA,MAAAC,EACA,UAAAC,EACA,GAAAC,EACA,OAAAC,EACA,mBAAoBC,EACpB,eAAgBC,EAChB,GAAGC,CAAA,EAELC,IACG,CAEH,MAAMC,EAAcC,EAAAA,MAAA,EACdC,EAASR,GAAMM,EACfG,EAAU,GAAGD,CAAM,SACnBE,EAAS,GAAGF,CAAM,QAClBG,EAAU,GAAGH,CAAM,SACnBI,EAAU,GAAGJ,CAAM,SAEzB,OACEK,OAAC,SAAM,UAAWC,EAAAA,GAAGC,EAAAA,QAAO,MAAOhB,CAAS,EAAG,cAAaE,EAC1D,SAAA,CAAAe,EAAAA,IAAC,QAAA,CACC,IAAAX,EACA,KAAK,QACL,GAAIG,EACJ,UAAWO,EAAAA,QAAO,aAKlB,kBAAiBE,EAAAA,OAAOR,EAASS,EAAAA,UAAUpB,CAAK,GAAKc,CAAO,EAE5D,mBAAkBK,EAAAA,OAAOpB,GAASc,EAASf,GAAQc,EAAQR,CAAW,EACtE,eAAcL,EAAQ,GAAOM,EAC5B,GAAGC,CAAA,CAAA,EAENS,EAAAA,KAAC,OAAA,CAAK,UAAWE,EAAAA,QAAO,YACtB,SAAA,CAAAC,MAAC,QAAK,GAAIP,EAAS,UAAWM,EAAAA,QAAO,aAClC,SAAApB,EACH,EACCC,SACE,OAAA,CAAK,GAAIc,EAAQ,UAAWK,UAAO,YACjC,SAAAnB,CAAA,CACH,EAEDC,UACE,OAAA,CAAK,GAAIc,EAAS,UAAWI,EAAAA,QAAO,aAAc,KAAK,QACtD,SAAA,CAAAC,EAAAA,IAACG,EAAAA,sBAAA,CAAsB,cAAW,EAAA,CAAC,EAClCtB,CAAA,CAAA,CACH,CAAA,EAEJ,EACCqB,EAAAA,UAAUpB,CAAK,GACdkB,EAAAA,IAAC,OAAA,CAAK,GAAIJ,EAAS,UAAWG,EAAAA,QAAO,aAClC,SAAAjB,CAAA,CACH,CAAA,EAEJ,CAEJ,CACF,EAEAsB,EAA6BC,OAAmBC,EAAAA,MAAM7B,EAAO,OAAO,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { InputHTMLAttributes, ReactNode } from 'react';
2
+ /** Radyo düğmesi. */
3
+ declare const Radio: import('react').ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "type"> & {
4
+ label: ReactNode;
5
+ /** Etiketin altındaki açıklama; `aria-describedby` ile bağlanır. */
6
+ hint?: string;
7
+ /**
8
+ * The error under the label (2.2): the radio is marked invalid (`aria-invalid`) and the message
9
+ * is linked with `aria-describedby`. The error of a whole group belongs on the group (its
10
+ * `radiogroup` element with `aria-invalid`, or a `Field` around it), not on every radio.
11
+ */
12
+ error?: string;
13
+ /** Sağda gösterilen sonuç adedi (filtre listelerinde). */
14
+ count?: number;
15
+ testId?: string;
16
+ } & import('react').RefAttributes<HTMLInputElement>>;
17
+ declare const _default: typeof Radio;
18
+ export default _default;